Esempio n. 1
0
        public int CompareTo(object other)
        {
            var x       = (ComparableTuple <T1, T2>)other;
            int result1 = Item1.CompareTo(x.Item1);

            if (result1 != 0)
            {
                return(result1);
            }

            return(Item2.CompareTo(x.Item2));
        }
Esempio n. 2
0
        public int CompareTo(object obj)
        {
            ComparablePair <S, T> op = obj as ComparablePair <S, T>;

            if (op == null)
            {
                return(-1);
            }

            var k = Item1.CompareTo(op.Item1);

            if (k != 0)
            {
                return(k);
            }
            else
            {
                return(Item2.CompareTo(op.Item2));
            }
        }
 public int CompareTo(ImmutableTuple <T1> value)
 {
     return(Item1.CompareTo(value.Item1));
 }
Esempio n. 4
0
 public int CompareTo(KeyItemPair <TKey, T> other)
 {
     return(Item1.CompareTo(other.Item1));
 }