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
disposableTObject to dispose.
Type Parameters
TType of the object.