PlatformInvokeT Method (FuncT) |
Invoke the specified function within the context of this platform, returning its value.
Namespace:
Eto
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public T Invoke<T>(
Func<T> action
)
Public Function Invoke(Of T) (
action As Func(Of T)
) As T
member Invoke :
action : Func<'T> -> 'T
Parameters
- action
- Type: SystemFuncT
Action to execute.
Type Parameters
- T
- The type of value to return.
Return Value
Type:
T[Missing <returns> documentation for "M:Eto.Platform.Invoke``1(System.Func{``0})"]
Remarks
This is useful when you are using multiple platforms at the same time, and gives you an easy
way to execute code within the context of this platform, and return its value.
Examples var mycontrol = MyPlatform.Invoke(() => new MyControl());
See Also