Click or drag to resize

IDispatcherMessageLoopInvokeIfRequiredT1, T2, TResult(FuncT1, T2, TResult, T1, T2) Method

Evaluates a function synchronously on the message loop thread.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
TResult InvokeIfRequired<T1, T2, TResult>(
	Func<T1, T2, TResult> function,
	T1 arg1,
	T2 arg2
)

Parameters

function  FuncT1, T2, TResult
The function to execute.
arg1  T1
The first function argument.
arg2  T2
The second function argument.

Type Parameters

T1
The type of the first function argument.
T2
The type of the second function argument.
TResult
The type of the function result.

Return Value

TResult
The result of the function evaluation.
See Also