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?

Answers were Sorted based on User's Feedback



What is Dispose method in .NET?..

Answer / susant

The GC call the Finalize () function automatically to
destroy the object called implicit destroy. When you want
to destroy a objects that you think no longer need and free
it from memory, then we will use the dispose function. For
better
Performance we will use the dispose function explicitly.


The Dispose method in .NET belongs to IDisposable interface
and it is best used to release unmanaged objects like File
objects, Windows API objects, Database connection objects,
COM objects etc from the memory. Its performance is better
than the finalize() method.

Is This Answer Correct ?    9 Yes 0 No

What is Dispose method in .NET?..

Answer / bhasker

The Dispose method may be called on any instance of any type implementing the IDisposable interface. This is supported by the C# using statement which makes calling Dispose automatically easy.

Is This Answer Correct ?    0 Yes 0 No

What is Dispose method in .NET?..

Answer / mkm

dispose method is last method excuted in c# program

while finally will excute after the try block

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Sharp Interview Questions

how to sort an array in c#

0 Answers   Cognizant,


Wht executescaler method is used?

0 Answers  


what is the purpose of using statement in c#

0 Answers   Cognizant,


what happens if you inherit multiple interfaces and they have conflicting method names?

0 Answers   Siebel Systems,


Explain the role of the datareader class in ado.net connections?

0 Answers  


Why do we use ienumerable in c#?

0 Answers  


How do you type a null character?

0 Answers  


What are the benefits of using generics in c#?

0 Answers  


What is connection pooling in ado.net?

0 Answers  


What is a constructor in c#?

3 Answers  


Overloaded constructor will call default constructor internally?

0 Answers  


How we free the memory in C#.NET.

3 Answers   Synechron,


Categories