Click or drag to resize

TryCastWorkerTValueReturningTResult Method (TResult)

Adds a return value to the fluent chain.

Namespace:  TomsToolbox.Desktop
Assembly:  TomsToolbox.Desktop (in TomsToolbox.Desktop.dll)
Syntax
public TryCastWorker<TValue, TResult> Returning<TResult>(
	TResult defaultValue
)

Parameters

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

Type Parameters

TResult
The type of the result.

Return Value

Type: TryCastWorkerTValue, TResult
The TryCastWorkerTValue, TResult object.
See Also