Table of Contents

Struct PartialTypeCast<TSource>

Namespace
LfrlAnvil.Functional
Assembly
LfrlAnvil.Functional.dll

An intermediate object used for creating TypeCast<TSource, TDestination> instances.

public readonly struct PartialTypeCast<TSource>

Type Parameters

TSource

Source object type.

Inherited Members
Extension Methods

Fields

Value

Underlying source object.

public readonly TSource Value

Field Value

TSource

Methods

To<TDestination>()

Creates a new TypeCast<TSource, TDestination> instance by casting the source Value to the provided TDestination type.

[Pure]
public TypeCast<TSource, TDestination> To<TDestination>()

Returns

TypeCast<TSource, TDestination>

New TypeCast<TSource, TDestination> instance.

Type Parameters

TDestination

Destination type.