Tag: Learn C#

Apr 18

Dispose and Finalize in C#

C-Sharp

Dispose and Finalize in C# When the .NET framework instantiates an object, it allocates memory for that object on the managed heap. The object remains on the heap until it’s no longer referenced by any active code, at which point the memory it’s using is “garbage,” ready for memory deallocation by the .NET Garbage Collector …

Continue reading

Permanent link to this article: http://zappmania.in/2013/04/18/dispose-and-finalize-in-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