public int CompareTo(Transformation other)
 {
     if (Time1 != other.Time1)
     {
         return(Time1.CompareTo(other.Time1));
     }
     return(Type.CompareTo(other.Type));
 }
        public int CompareTo(Transformation other)
        {
            int compare = Time1.CompareTo(other.Time1);

            if (compare != 0)
            {
                return(compare);
            }
            compare = Time2.CompareTo(other.Time2);
            if (compare != 0)
            {
                return(compare);
            }
            return(Type.CompareTo(other.Type));
        }
Exemple #3
0
        public int CompareTo(Transformation other)
        {
            int compare;

            if ((compare = StartTime.CompareTo(other.StartTime)) != 0)
            {
                return(compare);
            }

            if ((compare = EndTime.CompareTo(other.EndTime)) != 0)
            {
                return(compare);
            }

            return(Type.CompareTo(other.Type));
        }