Method Dispose
Dispose<T>(ref T?)
Disposes specified value and frees resources associated with it.
public static void Dispose<T>(ref T? value) where T : class, IDisposable
Parameters
value
TA value to be disposed.
Type Parameters
T
Type of object to dispose.
Dispose(IDisposable)
Disposes specified value and frees resources associated with it.
public static void Dispose(IDisposable value)
Parameters
value
IDisposableIDisposable object to be disposed.