Click or drag to resize

TryCastWorkerBaseTValue, TResultElseThrow Method

Throws an InvalidOperationException if none of the casts have succeeded.

Namespace:  TomsToolbox.Desktop
Assembly:  TomsToolbox.Desktop (in TomsToolbox.Desktop.dll)
Syntax
public TResult ElseThrow()

Return Value

Type: TResult
This method never returns, but throws the exception.
Exceptions
ExceptionCondition
InvalidOperationExceptionEncountered an unexpected type: 'type name'
See Also