示例#1
0
 /// <inheritdoc/>
 public int CompareTo(InterlockedDateTime other)
 {
     return(GetValue().ToUtc().CompareTo(other.GetValue().ToUtc()));
 }
示例#2
0
 /// <inheritdoc/>
 public bool Equals(InterlockedDateTime other)
 {
     return(Equals(other.GetValue()));
 }
示例#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());
 }