Class Disposer
- Namespace
- HelixToolkit.SharpDX
- Assembly
- HelixToolkit.SharpDX.dll
public static class Disposer
- Inheritance
-
Disposer
- Inherited Members
Methods
RemoveAndDispose<T>(ref T?)
Dispose an object instance and set the reference to null
public static void RemoveAndDispose<T>(ref T? resource) where T : class, IDisposable
Parameters
resourceTA reference to the instance for disposal
Type Parameters
TThe type of object to dispose
Remarks
This method hides any thrown exceptions that might occur during disposal of the object (by design)