Exemple #1
0
        public int CompareTo(ZipPair <T> other)
        {
            int num = Index.CompareTo(other.Index);

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

            return(ComparatorUtil <T> .Default.Compare(this.Item, other.Item));;
        }
Exemple #2
0
 int IComparable <ZipPair <T> > .CompareTo(ZipPair <T> other)
 {
     return(CompareTo(other));
 }
Exemple #3
0
 public bool Equals(ZipPair <T> other)
 {
     return(Item != null &&
            Item.Equals(other.Item) &&
            Index.Equals(other.Index));
 }
Exemple #4
0
 bool IEquatable <ZipPair <T> > .Equals(ZipPair <T> other)
 {
     return(Equals(other));
 }