Dispose<T> Method (DXUtil)
In This Topic
Safely dispose a referencem if not null, and set it to null after dispose.
Syntax
'Declaration
Public Shared Sub Dispose(Of As {Class, System.IDisposable})( _
ByRef As _
)
public static void Dispose<>(
ref
)
where T: class, System.IDisposable
Parameters
- comObject
- Object to dispose.
Type Parameters
- T
- The type of COM interface to dispose.
See Also