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...

What is Dispose method in .NET ?

Answer Posted / sudhir sheoran

There are two ways to release the unmanaged resources.
1) Finalize:- Managed/ called by CLR
2) Dispose:- Called by the programmer.

Dispose uses IDisposable interface and suppresses the finalize
method,when called by the programmer.
If programmer forgets to implement dispose method
finalize get invoked and unmanaged resources are freed.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to implement delegates in c#.net

1024


What is the difference between field and variable in c#?

1010


Which class comes after the SortedList class?

974


What is string pool in c#?

1016


What is tochararray in c#?

953


What is a clr host?

963


Which of the following API is used to hide a window?

1033


What is the C# syntax to catch any possible exception?

941


How many constructors can a class have c#?

913


What is single dimensional array in c#?

943


Explain what is copy constructor?

1032


Write a program to find the angle between the hours and minutes in a clock

930


Why does dllimport not work for me?

1050


So what makes your code really object-oriented #?

970


What is a generic c#?

916