Table of Contents

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

resource T

A reference to the instance for disposal

Type Parameters

T

The type of object to dispose

Remarks

This method hides any thrown exceptions that might occur during disposal of the object (by design)