Esempio n. 1
0
 /// <inheritdoc/>
 public int CompareTo(InterlockedDateTime other)
 {
     return(GetValue().ToUtc().CompareTo(other.GetValue().ToUtc()));
 }
Esempio n. 2
0
 /// <inheritdoc/>
 public bool Equals(InterlockedDateTime other)
 {
     return(Equals(other.GetValue()));
 }
Esempio n. 3
0
 /// <summary>
 /// Converts to the given <paramref name="value"/> to a <see cref="DateTime"/>.
 /// </summary>
 /// <param name="value">
 /// The value to convert.
 /// </param>
 /// <returns>
 /// The <see cref="DateTime"/> representation of the given <paramref name="value"/>.
 /// </returns>
 public static DateTime ToDateTime(InterlockedDateTime value)
 {
     return(value.GetValue());
 }