Unosquare
    Show / Hide Table of Contents

    Class AtomicDateTime

    Defines an atomic DateTime.

    Inheritance
    Object
    AtomicTypeBase<DateTime>
    AtomicDateTime
    Implements
    IComparable<DateTime>
    IComparable<AtomicTypeBase<DateTime>>
    IEquatable<DateTime>
    IEquatable<AtomicTypeBase<DateTime>>
    Inherited Members
    AtomicTypeBase<DateTime>.Value
    AtomicTypeBase<DateTime>.BackingValue
    AtomicTypeBase<DateTime>.CompareTo(Object)
    AtomicTypeBase<DateTime>.CompareTo(DateTime)
    AtomicTypeBase<DateTime>.CompareTo(AtomicTypeBase<DateTime>)
    AtomicTypeBase<DateTime>.Equals(Object)
    AtomicTypeBase<DateTime>.GetHashCode()
    AtomicTypeBase<DateTime>.Equals(AtomicTypeBase<DateTime>)
    AtomicTypeBase<DateTime>.Equals(DateTime)
    Namespace: Swan.Threading
    Syntax
    public sealed class AtomicDateTime : AtomicTypeBase<DateTime>, IComparable<DateTime>, IComparable<AtomicTypeBase<DateTime>>, IEquatable<DateTime>, IEquatable<AtomicTypeBase<DateTime>>

    Constructors

    AtomicDateTime(DateTime)

    Initializes a new instance of the AtomicDateTime class.

    Declaration
    public AtomicDateTime(DateTime initialValue)
    Parameters
    Type Name Description
    DateTime initialValue

    The initial value.

    Methods

    FromLong(Int64)

    Converts from a long value to the target type.

    Declaration
    protected override DateTime FromLong(long backingValue)
    Parameters
    Type Name Description
    Int64 backingValue

    The backing value.

    Returns
    Type Description
    DateTime

    The value converted form a long value.

    Overrides
    Swan.Threading.AtomicTypeBase<DateTime>.FromLong(System.Int64)

    ToLong(DateTime)

    Converts from the target type to a long value.

    Declaration
    protected override long ToLong(DateTime value)
    Parameters
    Type Name Description
    DateTime value
    Returns
    Type Description
    Int64

    The value converted to a long value.

    Overrides
    Swan.Threading.AtomicTypeBase<DateTime>.ToLong(DateTime)

    Implements

    IComparable<>
    IComparable<>
    IEquatable<>
    IEquatable<>

    Comments

    Back to top Copyright © 2017-2019 Unosquare