| 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
)
Public Function Returning(Of TResult) (
defaultValue As TResult
) As TryCastWorker(Of TValue, TResult)
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