Click or drag to resize

TryCastWorkerBaseTValue, TResult Methods

The TryCastWorkerBaseTValue, TResult type exposes the following members.

Methods
 NameDescription
Public methodElseThrow Throws an InvalidOperationException if none of the casts have succeeded.
Public methodElseThrow(String) Throws an InvalidOperationException if none of the casts have succeeded.
Protected methodTryExecuteTTarget Tries to cast the value and executes the action if the cast was successful.
Top
Extension Methods
 NameDescription
Public Extension MethodSafeCastT Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions)
Top
See Also