Class AtomicEnum<T>
Defines an atomic generic Enum.
Inherited Members
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 |