Click or drag to resize

TryCastWorkerBaseTValue, TResult Class

Provide fluent notation for try-casting types and returning a result.
Inheritance Hierarchy

Namespace:  TomsToolbox.Core
Assembly:  TomsToolbox.Core (in TomsToolbox.Core.dll) Version: 1.0.70.0
Syntax
public abstract class TryCastWorkerBase<TValue, TResult>

Type Parameters

TValue
The type of the value.
TResult
The type of the result.

The TryCastWorkerBaseTValue, TResult type exposes the following members.

Properties
  NameDescription
Protected propertyInternalResult
Gets the result of the action of the first succeeded cast.

[CanBeNull]

Protected propertyValue
Gets the value to cast.

[CanBeNull]

Top
Methods
Extension Methods
  NameDescription
Public Extension MethodSafeCastT
Performs a cast from object to T, avoiding possible null violations if T is a value type.

[CanBeNull]

(Defined by ObjectExtensions.)
Top
See Also