Class DWriteUtils
Utility methods.
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public static class DWriteUtils
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, IDWriteReleasable
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, IDWriteReleasable
Parameters
| Type | Name | Description |
|---|---|---|
| T | o | The COM interface. |
Type Parameters
| Name | Description |
|---|---|
| T | A releasable type. |