[]
        
(Showing Draft Content)

C1.Util.DX.DXUtil.Dispose

Dispose Method

Dispose<T>(ref T)

Safely dispose a referencem if not null, and set it to null after dispose.

Declaration
public static void Dispose<T>(ref T comObject) where T : class, IDisposable
Parameters
Type Name Description
T comObject

Object to dispose.

Type Parameters
Name Description
T

The type of COM interface to dispose.

Remarks

The reference will be set to null after dispose.