Esempio n. 1
0
 public int CompareTo(object obj)
 {
     if (obj is Time)
     {
         Time otherTime = (Time)obj;
         return(MSeconds.CompareTo(otherTime.MSeconds));
     }
     else
     {
         throw new ArgumentException("Object is not a Time");
     }
 }
Esempio n. 2
0
 public int CompareTo(Time other)
 {
     return(MSeconds.CompareTo(other.MSeconds));
 }