Extensions for INativeHandle.
More...
|
static void | NativeCall (this INativeHandle wrapper, Processing.StandardProcessingFunctionVoid action, string errorString) |
| Do a native call with automatic error handling. More...
|
|
static TOut | NativeCall< TOut > (this INativeHandle wrapper, Processing.StandardProcessingFunction1< TOut > action, string errorString) |
| Do a native call that returns a value with automatic error handling. More...
|
|
◆ NativeCall()
static void NativeCall |
( |
this INativeHandle |
wrapper, |
|
|
Processing.StandardProcessingFunctionVoid |
action, |
|
|
string |
errorString |
|
) |
| |
|
static |
Do a native call with automatic error handling.
- Parameters
-
wrapper | The object on which to perform the action . |
action | Native action to perform. |
errorString | Error message in case the native call fails. |
◆ NativeCall< TOut >()
static TOut NativeCall< TOut > |
( |
this INativeHandle |
wrapper, |
|
|
Processing.StandardProcessingFunction1< TOut > |
action, |
|
|
string |
errorString |
|
) |
| |
|
static |
Do a native call that returns a value with automatic error handling.
- Template Parameters
-
- Parameters
-
wrapper | The object on which to perform the action . |
action | Native action to perform. |
errorString | Error message in case the native call fails. |
- Returns
- The result of the action .