Show / Hide Table of Contents

    Struct Result<T, E>

    Implements
    IResult
    ISerializable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Code.Library
    Assembly: Code.Library.dll
    Syntax
    [Serializable]
    public struct Result<T, E> : IResult, ISerializable
    Type Parameters
    Name Description
    T
    E

    Properties

    | Improve this Doc View Source

    Error

    Declaration
    public E Error { get; }
    Property Value
    Type Description
    E
    | Improve this Doc View Source

    IsFailure

    Declaration
    public bool IsFailure { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsSuccess

    Declaration
    public bool IsSuccess { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    Value

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

    Methods

    | Improve this Doc View Source

    Deconstruct(out bool, out bool)

    Declaration
    public void Deconstruct(out bool isSuccess, out bool isFailure)
    Parameters
    Type Name Description
    bool isSuccess
    bool isFailure
    | Improve this Doc View Source

    Deconstruct(out bool, out bool, out T)

    Declaration
    public void Deconstruct(out bool isSuccess, out bool isFailure, out T value)
    Parameters
    Type Name Description
    bool isSuccess
    bool isFailure
    T value
    | Improve this Doc View Source

    Deconstruct(out bool, out bool, out T, out E)

    Declaration
    public void Deconstruct(out bool isSuccess, out bool isFailure, out T value, out E error)
    Parameters
    Type Name Description
    bool isSuccess
    bool isFailure
    T value
    E error

    Operators

    | Improve this Doc View Source

    implicit operator Result(Result<T, E>)

    Declaration
    public static implicit operator Result(Result<T, E> result)
    Parameters
    Type Name Description
    Result<T, E> result
    Returns
    Type Description
    Result
    | Improve this Doc View Source

    implicit operator Result<T>(Result<T, E>)

    Declaration
    public static implicit operator Result<T>(Result<T, E> result)
    Parameters
    Type Name Description
    Result<T, E> result
    Returns
    Type Description
    Result<T>

    Implements

    IResult
    ISerializable

    Extension Methods

    SerializationHelper.SerializeObject<T>(T)
    SerializationHelper.SerializeObjectUsingBinaryFormatter<T>(T)
    SerializationHelper.SerializeToXML<T>(T)
    GenericTypeExtensions.GetGenericTypeName(object)
    • Improve this Doc
    • View Source
    Back to top Generated by Abhith Rajan using DocFX