Method FromDelegate
FromDelegate(TDelegate?)
Creates a NullableFunctionPointer<TDelegate> from a delegate of type TDelegate.
Declaration
public static NullableFunctionPointer<TDelegate> FromDelegate(TDelegate? @delegate)
Parameters
| Type | Name | Description |
|---|---|---|
| TDelegate | delegate | The delegate to create a NullableFunctionPointer<TDelegate> from. |
Returns
| Type | Description |
|---|---|
| NullableFunctionPointer<TDelegate> | A NullableFunctionPointer<TDelegate> pointing to the target function represented by |
Implements
Remarks
The delegate pointer may be null. If it is, then the resulting NullableFunctionPointer<TDelegate> will represent a null pointer.