Ejemplo n.º 1
0
 public int CompareTo(ComparablePair <T, U> other)
 {
     return(First.CompareTo(other.First));
 }
Ejemplo n.º 2
0
 public bool Equals(ComparablePair <T, U> that)
 {
     return(this.Fst.Equals(that.Fst) && this.Snd.Equals(that.Snd));
 }
Ejemplo n.º 3
0
    // Lexicographic ordering
    public int CompareTo(ComparablePair <T, U> that)
    {
        int firstCmp = this.Fst.CompareTo(that.Fst);

        return(firstCmp != 0 ? firstCmp : this.Snd.CompareTo(that.Snd));
    }
Ejemplo n.º 4
0
 public int CompareTo(ComparablePair <TK, TV> other)
 {
     return(Key.CompareTo(other.Key));
 }
Ejemplo n.º 5
0
 public int CompareTo(ComparablePair <T, U> other)
 {
     return(Item1.CompareTo(other.Item1));
 }
Ejemplo n.º 6
0
        public int CompareTo(object obj)
        {
            ComparablePair <T, U> castedObj = (ComparablePair <T, U>)obj;

            return(this.Item1.CompareTo(castedObj.Item1));
        }