Show / Hide Table of Contents

    Struct CacheResult<T>

    Represents a cache operation result with a success flag.

    Implements
    System.IEquatable<CacheResult<T>>
    Inherited Members
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    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
    System.Boolean

    Value

    Gets the cache value.

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

    Methods

    Equals(CacheResult<T>)

    Determines whether the specified System.Object, is equal to this instance.

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

    The System.Object to compare with this instance.

    Returns
    Type Description
    System.Boolean

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

    Equals(Object)

    Determines whether the specified System.Object, is equal to this instance.

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

    The System.Object to compare with this instance.

    Returns
    Type Description
    System.Boolean

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

    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

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

    Overrides
    System.ValueType.GetHashCode()

    Operators

    Equality(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
    System.Boolean

    The result of the operator.

    Inequality(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
    System.Boolean

    The result of the operator.

    Implements

    System.IEquatable<T>
    Back to top © 2015 - 2019 The Apache Software Foundation