Method SafeDisposeObject
SafeDisposeObject<T>(ref T?)
Safely disposes specified object which supports IDisposableObject interface.
public static void SafeDisposeObject<T>(ref T? disposable) where T : IDisposableObject
Parameters
disposable
TObject to dispose.
Type Parameters
T
Type of the object.