Interface IOneOf<T1, T2>

Namespace
REslava.Result.AdvancedPatterns
Assembly
REslava.Result.dll

Marker interface for a discriminated union of two possible types. Implemented by both OneOf<T1, T2> (value union) and ErrorsOf<T1, T2> (error union).

public interface IOneOf<T1, T2>

Type Parameters

T1
T2
Extension Methods

Properties

AsT1

T1 AsT1 { get; }

Property Value

T1

AsT2

T2 AsT2 { get; }

Property Value

T2

IsT1

bool IsT1 { get; }

Property Value

bool

IsT2

bool IsT2 { get; }

Property Value

bool