Exemple #1
0
        // Compares the Weight first (sum of every digit of the Num); if Weight is equal, compares Num
        public int CompareTo(Number num)
        {
            int compareValue = Weight.CompareTo(num.Weight);

            if (compareValue == 0)
            {
                compareValue = Num.CompareTo(num.Num);
            }

            return(compareValue);
        }
 public int CompareTo(object obj)
 {
     return(Num.CompareTo(((Cards)obj).num));
 }
Exemple #3
0
 public int CompareTo(Die d)
 {
     return(Num.CompareTo(d.Num));
 }
Exemple #4
0
 public int CompareTo(Feed other) => Num.CompareTo(other.Num);