Unosquare
    Show / Hide Table of Contents

    Class AtomicEnum<T>

    Defines an atomic generic Enum.

    Inheritance
    Object
    AtomicEnum<T>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Swan.Threading
    Syntax
    public sealed class AtomicEnum<T>
        where T : struct, IConvertible
    Type Parameters
    Name Description
    T

    The type of enum.

    Constructors

    AtomicEnum(T)

    Initializes a new instance of the AtomicEnum<T> class.

    Declaration
    public AtomicEnum(T initialValue)
    Parameters
    Type Name Description
    T initialValue

    The initial value.

    Properties

    Value

    Gets or sets the value.

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

    Comments

    Back to top Copyright © 2017-2019 Unosquare