Class Disposable<T>
Represents dispose pattern as a concept.
Inherited Members
Namespace: DotNext
Assembly: DotNext.Reflection.dll
Syntax
public static class Disposable<T>
Type Parameters
| Name | Description |
|---|---|
| T | A type which implements dispose pattern. |
Remarks
This concept provides access to Dispose method of type T even
if it doesn't implement IDisposable interface directly.
Methods
| Improve this Doc View SourceDispose(T)
Disposes specified object.
Declaration
public static void Dispose(in T obj)
Parameters
| Type | Name | Description |
|---|---|---|
| T | obj | An object to dispose passed by reference. |