![]() | Try |
The TryCastWorkerTValue type exposes the following members.
Name | Description | |
---|---|---|
![]() | Else | Executes the action if no previous cast has succeeded. |
![]() | ElseThrow |
Throws an InvalidOperationException if none of the casts have succeeded.
(Inherited from TryCastWorkerBaseTValue, TResult) |
![]() | ElseThrow(String) |
Throws an InvalidOperationException if none of the casts have succeeded.
(Inherited from TryCastWorkerBaseTValue, TResult) |
![]() | ReturningTResult | Adds a return value to the fluent chain. |
![]() | ReturningTResult(TResult) | Adds a return value to the fluent chain. |
![]() | TryExecuteTTarget |
Tries to cast the value and executes the action if the cast was successful.
(Inherited from TryCastWorkerBaseTValue, TResult) |
![]() | WhenTTarget | Tries to cast the value to TTarget; if the cast succeeds, the action is executed. |
Name | Description | |
---|---|---|
![]() | SafeCastT |
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions) |