Search Results for

    Show / Hide Table of Contents

    Struct TTLValue<TValue>

    Implements
    IEquatable<TTLValue<TValue>>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Tenray.ZoneTree.PresetTypes
    Assembly: ZoneTree.dll
    Syntax
    public struct TTLValue<TValue> : IEquatable<TTLValue<TValue>>
    Type Parameters
    Name Description
    TValue

    Constructors

    | Improve this Doc View Source

    TTLValue(in TValue, DateTime)

    Declaration
    public TTLValue(in TValue value, DateTime expiration)
    Parameters
    Type Name Description
    TValue value
    DateTime expiration

    Fields

    | Improve this Doc View Source

    Expiration

    Declaration
    public DateTime Expiration
    Field Value
    Type Description
    DateTime
    | Improve this Doc View Source

    Value

    Declaration
    public TValue Value
    Field Value
    Type Description
    TValue

    Properties

    | Improve this Doc View Source

    IsExpired

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

    Methods

    | 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(TTLValue<TValue>)

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

    Declaration
    public bool Equals(TTLValue<TValue> other)
    Parameters
    Type Name Description
    TTLValue<TValue> 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

    Expire()

    Declaration
    public void Expire()
    | 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

    SlideExpiration(TimeSpan)

    Declaration
    public bool SlideExpiration(TimeSpan timeSpan)
    Parameters
    Type Name Description
    TimeSpan timeSpan
    Returns
    Type Description
    bool

    Operators

    | Improve this Doc View Source

    operator ==(TTLValue<TValue>, TTLValue<TValue>)

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

    operator !=(TTLValue<TValue>, TTLValue<TValue>)

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

    Implements

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