Search Results for

    Show / Hide Table of Contents

    Struct Either<T, U>

    Namespace: Algorand.Unity
    Assembly: cs.temp.dll.dll
    Syntax
    [AlgoApiFormatter(typeof(EitherFormatter<, >), "", "", 0)]
    public struct Either<T, U>
    Type Parameters
    Name Description
    T
    U

    Constructors

    Either(T)

    Declaration
    public Either(T value)
    Parameters
    Type Name Description
    T value

    Either(U)

    Declaration
    public Either(U value)
    Parameters
    Type Name Description
    U value

    Properties

    IsValue1

    Declaration
    public bool IsValue1 { get; }
    Property Value
    Type Description
    Boolean

    IsValue2

    Declaration
    public bool IsValue2 { get; }
    Property Value
    Type Description
    Boolean

    Value1

    Declaration
    public T Value1 { get; }
    Property Value
    Type Description
    T

    Value2

    Declaration
    public U Value2 { get; }
    Property Value
    Type Description
    U

    Methods

    Deconstruct(out T, out U)

    Declaration
    public void Deconstruct(out T value1, out U value2)
    Parameters
    Type Name Description
    T value1
    U value2

    TryGetValue1(out T)

    Declaration
    public bool TryGetValue1(out T value)
    Parameters
    Type Name Description
    T value
    Returns
    Type Description
    Boolean

    TryGetValue2(out U)

    Declaration
    public bool TryGetValue2(out U value)
    Parameters
    Type Name Description
    U value
    Returns
    Type Description
    Boolean

    Operators

    Implicit(T to Either<T, U>)

    Declaration
    public static implicit operator Either<T, U>(T value1)
    Parameters
    Type Name Description
    T value1
    Returns
    Type Description
    Either<T, U>

    Implicit(U to Either<T, U>)

    Declaration
    public static implicit operator Either<T, U>(U value2)
    Parameters
    Type Name Description
    U value2
    Returns
    Type Description
    Either<T, U>

    Implicit(Either<T, U> to Either<U, T>)

    Declaration
    public static implicit operator Either<U, T>(Either<T, U> either)
    Parameters
    Type Name Description
    Either<T, U> either
    Returns
    Type Description
    Either<U, T>
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾