Method FromIntPtr
| Edit this page View SourceFromIntPtr(nint)
Creates a TSelf from a memory address given as an nint.
Declaration
public static TSelf FromIntPtr(nint value)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | value | The memory address to create a |
Returns
| Type | Description |
|---|---|
| TSelf | A |
Remarks
If TSelf represents a non-nullable pointer type, then the value pointer must not be 0. Otherwise, an ArgumentNullException will be thrown.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|