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

What are native functions?

865


What debugging tools come with the .NET ssSDK?

1239


Can I use parseint?

885


What is the use of functional interface?

912


Why we use delegates in c#?

900


Does c# have its own class library?

980


What is the adv of using System.Text.StringBuilder over System.String?

969


What is static class in C#?

1026


How many digits are in an integer?

864


Why do we use polymorphism in c#?

890


What is a int in c#?

879


What is boxing & unboxing?

995


What is xor operator in c#?

947


Can I define a type that is an alias of another type (like typedef in c++)?

976


Explain states of a thread in c#?

964