| TryCastWorkerTValue, TResultElse Method |
Executes the action and returns the result if no previous cast has succeeded.
Namespace:
TomsToolbox.Desktop
Assembly:
TomsToolbox.Desktop (in TomsToolbox.Desktop.dll)
Syntax public TResult Else(
Func<TValue, TResult> action
)
Public Function Else (
action As Func(Of TValue, TResult)
) As TResult
Parameters
- action
- Type: SystemFuncTValue, TResult
The action.
Return Value
Type:
TResultThe result.
See Also