Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in [path]/includes/class_bootstrap.php(430) : eval()'d code on line 110
What is an IDisposable Interface?

Results 1 to 2 of 2

Thread: What is an IDisposable Interface?

  1. #1
    Senior Member
    Join Date
    Jun 2015
    Posts
    187
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What is an IDisposable Interface?

    • The primary use of this interface is to release unmanaged resources. The garbage collector automatically releases the memory allocated to a managed object when that object is no longer used.

    • However, it is not possible to predict when garbage collection will occur.

    • Furthermore, the garbage collector has no knowledge of unmanaged resources such as window handles, or open files and streams.

    • The consumer of an object can call this method when the object is no longer needed.

  2. #2
    Member
    Join Date
    Dec 2018
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The .NET garbage collector does not allocate or release unmanaged memory. The pattern for disposing an object, referred to as a dispose pattern, imposes order on the lifetime of an object. ... In this case, you implement the IDisposable interface and an additional Dispose(Boolean) method

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •