Interface IOneOf<T1, T2, T3, T4, T5>

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

Marker interface for a discriminated union of five possible types.

public interface IOneOf<T1, T2, T3, T4, T5>

Type Parameters

T1
T2
T3
T4
T5
Extension Methods

Properties

AsT1

T1 AsT1 { get; }

Property Value

T1

AsT2

T2 AsT2 { get; }

Property Value

T2

AsT3

T3 AsT3 { get; }

Property Value

T3

AsT4

T4 AsT4 { get; }

Property Value

T4

AsT5

T5 AsT5 { get; }

Property Value

T5

IsT1

bool IsT1 { get; }

Property Value

bool

IsT2

bool IsT2 { get; }

Property Value

bool

IsT3

bool IsT3 { get; }

Property Value

bool

IsT4

bool IsT4 { get; }

Property Value

bool

IsT5

bool IsT5 { get; }

Property Value

bool