Click or drag to resize

TryCastWorkerTValueReturningTResult(TResult) Method

Adds a return value to the fluent chain.

Namespace: TomsToolbox.Desktop
Assembly: TomsToolbox.Desktop (in TomsToolbox.Desktop.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public TryCastWorker<TValue, TResult> Returning<TResult>(
	TResult defaultValue
)

Parameters

defaultValue  TResult
The default value of the result if no cast succeeds.

Type Parameters

TResult
The type of the result.

Return Value

TryCastWorkerTValue, TResult
The TryCastWorkerTValue, TResult object.
See Also