Class MarshalGCHandle
- Namespace
- Ubiquity.NET.InteropHelpers
- Assembly
- Ubiquity.NET.InteropHelpers.dll
Utility class for supporting use of a GCHandle (as a raw native void pointer)
public static class MarshalGCHandle
- Inheritance
-
MarshalGCHandle
- Inherited Members
Remarks
Many native APIs use a callback with a "Context" as a raw native void pointer. It is common in such cases to use a GCHandle as the context.
Methods
- TryGet<T>(void*, out T)
Try pattern to convert a GCHandle as a raw native void pointer