示例#1
0
 public int CompareTo(ITimeComparable obj)
 {
     if (this.timestamp < obj.TimeStamp)
     {
         return(-1);
     }
     if (this.timestamp > obj.TimeStamp)
     {
         return(1);
     }
     return(0);
 }
 public int CompareTo(ITimeComparable obj)
 {
     if (obj == null) { return -1; }
     if (this.timestamp < obj.TimeStamp) return -1;
     if (this.timestamp > obj.TimeStamp) return 1;
     return 0;
 }