DisposableObject DisposeAndNull T  Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Checks to see if the IDisposable reference is not null and sets it to null in a thread-safe way then calls Dispose(). Returns false if it is already null or not the original reference

Namespace: NFX
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static bool DisposeAndNull<T>(
	ref T obj
)
where T : class, IDisposable

Parameters

obj
Type: T 
Type Parameters

T

Return Value

Type: OnlineBoolean
See Also