DisposableUtility.Dispose<T> method

Disposes and nulls the specified object.

public static void Dispose<T>(ref T? obj)
    where T : class, IDisposable
parameter description
obj The object to dispose and null.

See Also