Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between Dispose and Finalize method

Answer Posted / kirti

Finalize method is used to free the memory used by some unmanaged resources like window handles (HWND). It's similar to the destructor syntax in C#. The GC calls this method when it founds no more references to the object. But, In some cases we may need release the memory used by the resources explicitely.To release the memory explicitly we need to implement the Dispose method of IDisposable interface.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the 'page life cycle' of an ASP.NET MVC?

1057


Explain bundle.config in mvc4?

1172


When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?

1361


what is entity graph in entity framework?

1137


What is the role of the jit compiler in .net framework?

1117


what is msl?

1036


Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?

1002


What are Code Blocks in Views?

1127


Is razor a server side?

981


What is html.renderpartial?

1025


What is entity framework? : Entity framework

1057


Explain JSON Binding?

1077


Is dapper better than entity framework?

978


What filters are executed in the end?

1045


What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?

993