.NETJiNi@jigneshdesai.com  
  Home |  .NET<1.0 to 3.5> Forums Blogs |  Other Technologies Skip Navigation Links  | Quiz Contest   dotnetJini Training |   Software Development 
 
What is difference between dispose and destructor
Friday, 20-January-2006
Destructors are called by the CLR when the Garbage Collector destroys an object. In VB.NET it is called the Finalize() method. In C# it is declared by putting a til '~' in front of the class name (~MyClass() {}).

Since when exactly GC will call Finalize method is not know you might land up holding critical resources like database connections. it not advice to leave connection close statements in finalized methods, instead use dispose. The Dispose() method is simply a method you call manually to clean up your object. In reality, this is just another method of your class and you can call. Dispose() is the recommended naming standard. You should put all cleanup code here rather than in the
Finalizer
Numeric TextBox in ASP.NET - A Simple Way!
Thursday, 26-January-2006
Phishing filter in IE 7 make me curious and annoying
Tuesday, 03-January-2006
Virtual India
Thursday, 19-January-2006
Protecting SQL Server
Tuesday, 24-January-2006
ASP.NET:: Paging on Demand
Wednesday, 25-January-2006
Palm's world-class ease of use is now available on the Windows Mobile® platform
Saturday, 28-January-2006








   







Chat Online
 








Add URL | About ME Privacy Policy | Legal Disclaimer

Copyright (C) 2004 -2008 JigneshDesai.com. All rights reserved