예제 #1
0
 public int CompareTo(UTCDate other)
 {
     if (ReferenceEquals(this, other))
     {
         return(0);
     }
     if (ReferenceEquals(null, other))
     {
         return(1);
     }
     return(_datetime.CompareTo(other._datetime));
 }
예제 #2
0
 public bool Equals(UTCDate other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(_datetime.Equals(other._datetime));
 }