Class D2D1Utils
Utility methods.
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public static class D2D1Utils
Methods
| Edit this page View SourceDisposeAndNull<T>(ref T?)
Immediately releases the unmanaged resources.
Declaration
public static void DisposeAndNull<T>(ref T? o) where T : class, ID2D1Releasable
Parameters
| Type | Name | Description |
|---|---|---|
| T | o | The object. |
Type Parameters
| Name | Description |
|---|---|
| T | A releasable type. |
ReleaseAndNull<T>(ref T?)
Releases the managed reference to the COM interface.
Declaration
public static void ReleaseAndNull<T>(ref T? o) where T : class, ID2D1Releasable
Parameters
| Type | Name | Description |
|---|---|---|
| T | o | The COM interface. |
Type Parameters
| Name | Description |
|---|---|
| T | A releasable type. |