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

When would you use generics in your code c#?

974


What do you understand by the terms datareader object and dataset object?

1031


Can we instantiate abstract class in c#?

949


What does the dispose method do with the connection object?

1021


What are the differences between a class and a struct?

1180


what is a constructor? What is a destructor?

1036


What is the use of return in c#?

996


Why do we need constructor?

972


Why do we use Design Pattern in C#?

1098


If a method's return type is void, can you use a return keyword in the method?

931


What is Named parameter in C#?

1046


Why linq is having select clause at the end?

969


What is continue in c#?

1045


What is a property c#?

1097


How does dll hell solve in .net?

1012