Synchronously executes the delegate on the thread that created this object and marshals the call to the creating thread.
- Parameters
-
method | A xtd::delegate that contains a method to call, in the context of the thread for the control. |
arg | An xtd::object that represents the argument to pass to the given method. |
- Returns
- An xtd::object that represents the return value from the delegate being invoked, or null if the delegate has no return value.
Implemented in xtd::forms::control, and xtd::forms::control.