Operator explicit operator
explicit operator PointerReadOnly<T>(Pointer)
Converts a Pointer to a PointerReadOnly<T>.
Declaration
public static explicit operator PointerReadOnly<T>(Pointer pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| Pointer | pointer | The Pointer to convert. |
Returns
| Type | Description |
|---|---|
| PointerReadOnly<T> | A PointerReadOnly<T> pointing to the same target as the specified Pointer. |
explicit operator PointerReadOnly<T>(PointerReadOnly)
Converts a PointerReadOnly to a PointerReadOnly<T>.
Declaration
public static explicit operator PointerReadOnly<T>(PointerReadOnly pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| PointerReadOnly | pointer | The PointerReadOnly to convert. |
Returns
| Type | Description |
|---|---|
| PointerReadOnly<T> | A PointerReadOnly<T> pointing to the same target as the specified PointerReadOnly. |
explicit operator PointerReadOnly<T>(SequencePointer)
Converts a SequencePointer to a PointerReadOnly<T>.
Declaration
public static explicit operator PointerReadOnly<T>(SequencePointer pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| SequencePointer | pointer | The SequencePointer to convert. |
Returns
| Type | Description |
|---|---|
| PointerReadOnly<T> | A PointerReadOnly<T> pointing to the same target as the specified SequencePointer. |
explicit operator PointerReadOnly<T>(SequencePointerReadOnly)
Converts a SequencePointerReadOnly to a PointerReadOnly<T>.
Declaration
public static explicit operator PointerReadOnly<T>(SequencePointerReadOnly pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| SequencePointerReadOnly | pointer | The SequencePointerReadOnly to convert. |
Returns
| Type | Description |
|---|---|
| PointerReadOnly<T> | A PointerReadOnly<T> pointing to the same target as the specified SequencePointerReadOnly. |
explicit operator PointerReadOnly<T>(PersistentPointer)
Converts a PersistentPointer to a PointerReadOnly<T>.
Declaration
public static explicit operator PointerReadOnly<T>(PersistentPointer pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| PersistentPointer | pointer | The PersistentPointer to convert. |
Returns
| Type | Description |
|---|---|
| PointerReadOnly<T> | A PointerReadOnly<T> pointing to the same target as the specified PersistentPointer. |
explicit operator PointerReadOnly<T>(PersistentPointerReadOnly)
Converts a PersistentPointerReadOnly to a PointerReadOnly<T>.
Declaration
public static explicit operator PointerReadOnly<T>(PersistentPointerReadOnly pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| PersistentPointerReadOnly | pointer | The PersistentPointerReadOnly to convert. |
Returns
| Type | Description |
|---|---|
| PointerReadOnly<T> | A PointerReadOnly<T> pointing to the same target as the specified PersistentPointerReadOnly. |
explicit operator PointerReadOnly<T>(PersistentSequencePointer)
Converts a PersistentSequencePointer to a PointerReadOnly<T>.
Declaration
public static explicit operator PointerReadOnly<T>(PersistentSequencePointer pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| PersistentSequencePointer | pointer | The PersistentSequencePointer to convert. |
Returns
| Type | Description |
|---|---|
| PointerReadOnly<T> | A PointerReadOnly<T> pointing to the same target as the specified PersistentSequencePointer. |
explicit operator PointerReadOnly<T>(PersistentSequencePointerReadOnly)
Converts a PersistentSequencePointerReadOnly to a PointerReadOnly<T>.
Declaration
public static explicit operator PointerReadOnly<T>(PersistentSequencePointerReadOnly pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| PersistentSequencePointerReadOnly | pointer | The PersistentSequencePointerReadOnly to convert. |
Returns
| Type | Description |
|---|---|
| PointerReadOnly<T> | A PointerReadOnly<T> pointing to the same target as the specified PersistentSequencePointerReadOnly. |
explicit operator PointerReadOnly<T>(FunctionPointer)
Converts a FunctionPointer to a PointerReadOnly<T>.
Declaration
public static explicit operator PointerReadOnly<T>(FunctionPointer pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| FunctionPointer | pointer | The FunctionPointer to convert. |
Returns
| Type | Description |
|---|---|
| PointerReadOnly<T> | A PointerReadOnly<T> pointing to the target that's the same target function as the specified FunctionPointer, reinterpreted as data. |
explicit operator FunctionPointer(PointerReadOnly<T>)
Converts a PointerReadOnly<T> to a FunctionPointer.
Declaration
public static explicit operator FunctionPointer(PointerReadOnly<T> pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| PointerReadOnly<T> | pointer | The PointerReadOnly<T> to convert. |
Returns
| Type | Description |
|---|---|
| FunctionPointer | A FunctionPointer pointing to the target function that's the same target as the specified PointerReadOnly<T>, reinterpreted as an executable function. |
explicit operator PointerReadOnly<T>(PersistentFunctionPointer)
Converts a PersistentFunctionPointer to a PointerReadOnly<T>.
Declaration
public static explicit operator PointerReadOnly<T>(PersistentFunctionPointer pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| PersistentFunctionPointer | pointer | The PersistentFunctionPointer to convert. |
Returns
| Type | Description |
|---|---|
| PointerReadOnly<T> | A PointerReadOnly<T> pointing to the target that's the same target function as the specified PersistentFunctionPointer, reinterpreted as data. |
explicit operator NullableFunctionPointer(PointerReadOnly<T>)
Converts a PointerReadOnly<T> to a NullableFunctionPointer.
Declaration
public static explicit operator NullableFunctionPointer(PointerReadOnly<T> pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| PointerReadOnly<T> | pointer | The PointerReadOnly<T> to convert. |
Returns
| Type | Description |
|---|---|
| NullableFunctionPointer | A NullableFunctionPointer pointing to the target function that's the same target as the specified PointerReadOnly<T>, reinterpreted as an executable function. |