Tag: c#.net Code Examples

Jul 28

Create an auto implemented properties C#

C-Sharp

Create an auto implemented properties C#   Starting from C# 3 we can create an auto-implemented properties. This make our code look simpler and easier to read. When we create an auto-implemented properties the compiler will create a private, anonymous backing field that can only be accessed through the property’s get and set accessors.      

  …

Continue reading

Permanent link to this article: http://zappmania.in/2013/07/28/create-an-auto-implemented-properties-c.htm

Jan 24

C# Exception Handling : Basic

C-Sharp

C# Exception Handling C# programmers usually forget that when they throw an exception using “throw ex” they loose the stack trace. It is then considerably harder to debug an application and to achieve appropriate log messages. When simply using “throw” no data is lost and the whole exception together with the stack trace can be …

Continue reading

Permanent link to this article: http://zappmania.in/2013/01/24/c-exception-handling-basic.htm