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 find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?

872


How do you declare an arraylist?

941


What is serialization of data?

943


Name the property of the textbox which cannot be changed at runtime?

913


What is _viewstart cshtml?

832


Which programming language is best for desktop applications?

874


How many types of constructors are there in c#?

901


What is the use of console readline () in c#?

807


How do I format a string in c#?

804


Can abstract class be sealed?

833


Define encapsulation?

1036


What is exe file in c#?

844


What is private static in c#?

857


Can namespace contain the private class?

887


What does == mean in c sharp?

929