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 operating systems will the .net framework 3.0 be available for?

972


Explain what is the difference between view and partial view?

1013


What are the 2 ways of adding constraints to a route?

940


What are ajax helpers in asp.net mvc?

1012


What is Area in ASP.Net MVC?

1041


what is split entity?

1014


What is the advantage of using asp.net routing?

1037


What are Code Blocks in Views?

1070


Explain the advantage of packaging over xcopy in .net?

921


Does razor engine supports for tdd?

1113


Is .net framework dead?

962


Can you please explain the request flow in ASP.NET MVC framework?

1063


What is razor code?

1023


What is .net core framework?

934


What is net framework 3.0 ?

1039