Click or drag to resize

TryCastWorkerBaseTValue, TResultElseThrow Method (String)

Throws an InvalidOperationException if none of the casts have succeeded.

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

Parameters

message
Type: SystemString
The message of the exception.

Return Value

Type: TResult
This method never returns, but throws the exception.
Exceptions
ExceptionCondition
InvalidOperationExceptionmessage
See Also