Method ToDelegate
ToDelegate()
Converts the current function pointer to a delegate of type TDelegate.
Declaration
public TDelegate? ToDelegate()
Returns
| Type | Description |
|---|---|
| TDelegate | A delegate of type |
Implements
Remarks
The current instance must not be a null pointer. If it is, an InvalidOperationException will be thrown.
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The current function pointer is a |