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 / nitin kumar tomar

Dispose method is used to release unmanaged resources when
unmanaged resources are no longer in use and referenced and
is manually called by the programmer

Is This Answer Correct ?    54 Yes 12 No

What is Dispose method in .NET ?..

Answer / praveen kumar

Dispose method is used to free used resources when
it no longer in use. Programmers should keep in mind at
the time of codeing for best memory management.

Is This Answer Correct ?    47 Yes 7 No

What is Dispose method in .NET ?..

Answer / sanath

Dispose method is used to release unmanaged resources when
unmanaged resources are no longer in use.And Programmers
should keep in mind at
the time of codeing(using dispose method) for best memory
management.

Is This Answer Correct ?    17 Yes 1 No

What is Dispose method in .NET ?..

Answer / rajesh rajput

Is's a member of Idisposable interface provided by .net
framework.A class which implements this interface must
implement dispose(). that is responsible to remove
unmanaged resources from managed heap.

In this case, Garbage collector does not do anything as we
programmers handle the process of disposing the unmanaged
objects like DB objects etc.We should not infer that
garbage collector removes the objects which are no longer
in use in context of dispose only.

Is This Answer Correct ?    7 Yes 4 No

What is Dispose method in .NET ?..

Answer / siri

Use this method to release unmanaged resources i.e.,freeing
resources held by an object, or preparing an object for
reuse and if base class implements Idisposable,Objects must
also call the Dispose method of their base class.

Is This Answer Correct ?    2 Yes 0 No

What is Dispose method in .NET ?..

Answer / prashant patil

A type's Dispose method should release all the resources
that it owns. It should also release all resources owned by
its base types by calling its parent type's Dispose method.
The parent type's Dispose method should release all
resources that it owns and in turn call its parent type's
Dispose method, propagating this pattern through the
hierarchy of base types.

Is This Answer Correct ?    1 Yes 0 No

What is Dispose method in .NET ?..

Answer / manoj kumar

Dispose() method permanently removes any resource ((un)managed) from memory for cleanup and the resource no longer exists for any further processing.

Is This Answer Correct ?    1 Yes 0 No

What is Dispose method in .NET ?..

Answer / 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

What is Dispose method in .NET ?..

Answer / neerajtyagi

Whenever you want to release unusable resources used by
your class automatically , you should implement IDisposable
interface in your class.

Implementing IDisposable will provide you Dispose method in
subclass, where you can code your own to release unused
resources.

Is This Answer Correct ?    7 Yes 8 No

Post New Answer

More C Sharp Interview Questions

How will U encapsulate button trigger event into text_box event of Pressing Enter key?

3 Answers   TCS,


int i,string s, String s1 Which is valuetype which is refrence type.

6 Answers   Synechron, Sytel,


Why are there five tracing levels in System.Diagnostics.TraceSwitcher?

2 Answers   Siebel Systems,


What is the use of the static constructor? When static constructor gets compiled?

1 Answers   Syntel,


How Reflection is used and what it's significance ?

0 Answers   HCL,


What?s the difference between System.String and System.StringBuilder classes?

3 Answers  


What is the use of list in c#?

0 Answers  


Explain the three services model (three-tier application).

3 Answers   4Cplus,


What is default value of enum c#?

0 Answers  


How many types of interface are there in c#?

0 Answers  


What is the difference between static class and abstract class in c#?

0 Answers  


Which is the best way for keeping the data in XML or SQL server..and why?

8 Answers   Infosys, Satyam,


Categories