Method FromRaw
| Edit this page View SourceFromRaw(T*)
Creates a TSelf from a raw pointer.
Declaration
public static abstract TSelf FromRaw(T* raw)
Parameters
| Type | Name | Description |
|---|---|---|
| T* | raw | The raw pointer specifying the target that the resulting |
Returns
| Type | Description |
|---|---|
| TSelf | A |
Remarks
If TSelf represents a non-nullable pointer type, then the raw pointer must not be null. If it is, an ArgumentNullException will be thrown.
Otherwise, if TSelf represents a nullable pointer type, then the raw pointer may be null. If it is, then the resulting TSelf will represent a null pointer.
The resulting TSelf will point to the same target as the specified raw pointer.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|