Пример #1
0
 public override bool Equals(Object obj)
 {
     if (obj is TickClock)
     {
         TickClock other = (TickClock)obj;
         return(BaseClock.Equals(other.BaseClock) && TickNanos == other.TickNanos);
     }
     return(false);
 }
Пример #2
0
 public override bool Equals(Object obj)
 {
     if (obj is OffsetClock)
     {
         OffsetClock other = (OffsetClock)obj;
         return(BaseClock.Equals(other.BaseClock) && Offset.Equals(other.Offset));
     }
     return(false);
 }