IDisposable is an interface within the Microsoft .NET Framework's Base Class Library (BCL). It is intended to provide a generic, deterministic method of releasing unmanaged resources within .NET application code.