using System; namespace Swan.Threading { /// /// Defines an atomic DateTime. /// public sealed class AtomicDateTime : AtomicTypeBase { /// /// Initializes a new instance of the class. /// /// The initial value. public AtomicDateTime(DateTime initialValue) : base(initialValue.Ticks) { // placeholder } /// protected override DateTime FromLong(long backingValue) => new DateTime(backingValue); /// protected override long ToLong(DateTime value) => value.Ticks; } }