Class AtomicDateTime
Defines an atomic DateTime.
Implements
IComparable<DateTime>
IEquatable<DateTime>
Inherited Members
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<>