Click or drag to resize

IDispatcherMessageLoopInvokeIfRequiredT, TResult(FuncT, TResult, T) 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<T, TResult>(
	Func<T, TResult> function,
	T arg
)

Parameters

function  FuncT, TResult
The function to execute.
arg  T
The 1st function argument.

Type Parameters

T
The type of the function argument.
TResult
The type of function result.

Return Value

TResult
The result of the function evaluation.
See Also