Search Results for

    Show / Hide Table of Contents

    Struct CacheResult<T>

    Represents a cache operation result with a success flag.

    Implements
    IEquatable<CacheResult<T>>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Apache.Ignite.Core.Cache
    Assembly: Apache.Ignite.Core.dll
    Syntax
    public struct CacheResult<T> : IEquatable<CacheResult<T>>
    Type Parameters
    Name Description
    T

    Operation result value type.

    Constructors

    CacheResult(T)

    Initializes a new instance of the CacheResult<T> struct with a specified value and sets success flag to true.

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

    The value.

    Properties

    Success

    Gets a value indicating whether the operation completed successfully.

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

    Value

    Gets the cache value.

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

    Methods

    Equals(CacheResult<T>)

    Determines whether the specified object, is equal to this instance.

    Declaration
    public bool Equals(CacheResult<T> other)
    Parameters
    Type Name Description
    CacheResult<T> other

    The object to compare with this instance.

    Returns
    Type Description
    bool

    true if the specified object is equal to this instance; otherwise, false.

    Equals(object)

    Determines whether the specified object, is equal to this instance.

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

    The object to compare with this instance.

    Returns
    Type Description
    bool

    true if the specified object is equal to this instance; otherwise, false.

    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    ValueType.GetHashCode()

    Operators

    operator ==(CacheResult<T>, CacheResult<T>)

    Implements the operator ==.

    Declaration
    public static bool operator ==(CacheResult<T> left, CacheResult<T> right)
    Parameters
    Type Name Description
    CacheResult<T> left

    The left.

    CacheResult<T> right

    The right.

    Returns
    Type Description
    bool

    The result of the operator.

    operator !=(CacheResult<T>, CacheResult<T>)

    Implements the operator !=.

    Declaration
    public static bool operator !=(CacheResult<T> left, CacheResult<T> right)
    Parameters
    Type Name Description
    CacheResult<T> left

    The left.

    CacheResult<T> right

    The right.

    Returns
    Type Description
    bool

    The result of the operator.

    Implements

    IEquatable<T>
    In this article
    Back to top © 2015 - 2019 The Apache Software Foundation