Search Results for

    Show / Hide Table of Contents

    Struct TransactionResult<TType>

    Implements
    ITransactionResult
    IEquatable<TransactionResult<TType>>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Tenray.ZoneTree.Transactional
    Assembly: ZoneTree.dll
    Syntax
    public readonly struct TransactionResult<TType> : ITransactionResult, IEquatable<TransactionResult<TType>>
    Type Parameters
    Name Description
    TType

    Constructors

    | Improve this Doc View Source

    TransactionResult()

    Declaration
    public TransactionResult()
    | Improve this Doc View Source

    TransactionResult(TType)

    Declaration
    public TransactionResult(TType result)
    Parameters
    Type Name Description
    TType result

    Properties

    | Improve this Doc View Source

    IsAborted

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

    Result

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

    Succeeded

    Declaration
    public bool Succeeded { get; }
    Property Value
    Type Description
    bool

    Methods

    | Improve this Doc View Source

    Aborted()

    Declaration
    public static TransactionResult<TType> Aborted()
    Returns
    Type Description
    TransactionResult<TType>
    | Improve this Doc View Source

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    ValueType.Equals(object)
    | Improve this Doc View Source

    Equals(TransactionResult<TType>)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(TransactionResult<TType> other)
    Parameters
    Type Name Description
    TransactionResult<TType> other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    | Improve this Doc View Source

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A 32-bit signed integer that is the hash code for this instance.

    Overrides
    ValueType.GetHashCode()
    | Improve this Doc View Source

    Success(TType)

    Declaration
    public static TransactionResult<TType> Success(TType result)
    Parameters
    Type Name Description
    TType result
    Returns
    Type Description
    TransactionResult<TType>

    Operators

    | Improve this Doc View Source

    operator ==(TransactionResult<TType>, TransactionResult<TType>)

    Declaration
    public static bool operator ==(TransactionResult<TType> left, TransactionResult<TType> right)
    Parameters
    Type Name Description
    TransactionResult<TType> left
    TransactionResult<TType> right
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    operator !=(TransactionResult<TType>, TransactionResult<TType>)

    Declaration
    public static bool operator !=(TransactionResult<TType> left, TransactionResult<TType> right)
    Parameters
    Type Name Description
    TransactionResult<TType> left
    TransactionResult<TType> right
    Returns
    Type Description
    bool

    Implements

    ITransactionResult
    IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io