TryCastWorkerBaseTValue, TResult Class |
Namespace: TomsToolbox.Desktop
The TryCastWorkerBaseTValue, TResult type exposes the following members.
Name | Description | |
---|---|---|
InternalResult |
Gets the result of the action of the first succeeded cast.
| |
Value |
Gets the value to cast.
|
Name | Description | |
---|---|---|
ElseThrow |
Throws an InvalidOperationException if none of the casts have succeeded.
| |
ElseThrow(String) |
Throws an InvalidOperationException if none of the casts have succeeded.
| |
TryExecuteTTarget |
Tries to cast the value and executes the action if the cast was successful.
|
Name | Description | |
---|---|---|
SafeCastT |
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions.) |