示例#1
0
 public bool Equals(Registered <T> other)
 {
     return(Equals(SystemTimestamp, other.SystemTimestamp) &&
            Equals(EmitterId, other.EmitterId) &&
            Equals(UpdateTimestamp, other.UpdateTimestamp) &&
            Equals(Value, other.Value));
 }
示例#2
0
 public int Compare(Registered <T> x, Registered <T> y)
 {
     if (x.SystemTimestamp == y.SystemTimestamp)
     {
         return(x.EmitterId.CompareTo(y.EmitterId));
     }
     else
     {
         return(x.SystemTimestamp.CompareTo(y.SystemTimestamp));
     }
 }