Method FromRaw
FromRaw(void*)
Creates a PersistentFunctionPointer from a raw pointer.
Declaration
public static PersistentFunctionPointer FromRaw(void* raw)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | raw | The raw pointer specifying the target function that the resulting PersistentFunctionPointer will point to. |
Returns
| Type | Description |
|---|---|
| PersistentFunctionPointer | A PersistentFunctionPointer that points to the same target function as the specified |
Implements
Remarks
The raw pointer must not be null. If it is, an ArgumentNullException will be thrown.
The resulting PersistentFunctionPointer will point to the same target function as raw.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|