Method FromUIntPtr
FromUIntPtr(nuint)
Creates a PersistentFunctionPointer<TDelegate> from a memory address given as a nint.
Declaration
public static PersistentFunctionPointer<TDelegate> FromUIntPtr(nuint value)
Parameters
| Type | Name | Description |
|---|---|---|
| nuint | value | The memory address to create a PersistentFunctionPointer<TDelegate> from. |
Returns
| Type | Description |
|---|---|
| PersistentFunctionPointer<TDelegate> | A PersistentFunctionPointer<TDelegate> that points to the same memory address as the specified |
Implements
Remarks
The value must not be 0. If it is, an ArgumentNullException will be thrown.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|