TYPE
IDisposable
Defines the synchronous cleanup contract. The signature is shown for reference, not redeclaration in application code.
Formal Syntax & Structure
csharp syntaxcsharp
public interface IDisposable { void Dispose(); }Working Example
Example Snippetcsharp
sealed class LabHandle : IDisposable { public void Dispose() { } }