Click or drag to resize

TryCastWorkerTValue, TResult Methods

The TryCastWorkerTValue, TResult generic type exposes the following members.

Methods
  NameDescription
Public methodElse
Executes the action and returns the result if no previous cast has succeeded.
Public methodElseThrow
Throws an InvalidOperationException if none of the casts have succeeded.
(Inherited from TryCastWorkerBaseTValue, TResult.)
Public methodElseThrow(String)
Throws an InvalidOperationException if none of the casts have succeeded.
(Inherited from TryCastWorkerBaseTValue, TResult.)
Protected methodTryExecuteTTarget
Tries to cast the value and executes the action if the cast was successful.
(Inherited from TryCastWorkerBaseTValue, TResult.)
Public methodWhenTTarget
Tries to cast the value to TTarget; if the cast succeeds, the action is executed and the result is stored in the Result property.
Top
Extension Methods
See Also