Unosquare
    Show / Hide Table of Contents

    Class AtomicTimeSpan

    Represents an atomic TimeSpan type.

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

    Constructors

    AtomicTimeSpan(TimeSpan)

    Initializes a new instance of the AtomicTimeSpan class.

    Declaration
    public AtomicTimeSpan(TimeSpan initialValue)
    Parameters
    Type Name Description
    TimeSpan initialValue

    The initial value.

    Methods

    FromLong(Int64)

    Converts from a long value to the target type.

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

    The backing value.

    Returns
    Type Description
    TimeSpan

    The value converted form a long value.

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

    ToLong(TimeSpan)

    Converts from the target type to a long value.

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

    The value converted to a long value.

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

    Implements

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

    Comments

    Back to top Copyright © 2017-2019 Unosquare