What is the concept of DISPOSE method?

Mishra Ji

Total Post:37

Points:185

Posted by  Mishra Ji
C#  .NET  ASP.Net 
C#
 136  View(s)
Ratings:
Rate this:
  1. What is the concept of DISPOSE method?

    The DISPOSE method belongs to the IDisposable interface. This is used to free unmanaged resources like files, network connection, etc. This manages and handles this by an instance of the class that implements this interface. The dispose of methods must be called explicitly and hence any object using IDisposable must also implement finalizer to free resources in situations wherein Dispose is not called. Various calls to dispose of the method must be ignored when called once. The objects disposable methods must be called in the order of containment.

Answer