Example #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));;
        }
Example #2
0
 int IComparable <ZipPair <T> > .CompareTo(ZipPair <T> other)
 {
     return(CompareTo(other));
 }
Example #3
0
 public bool Equals(ZipPair <T> other)
 {
     return(Item != null &&
            Item.Equals(other.Item) &&
            Index.Equals(other.Index));
 }
Example #4
0
 bool IEquatable <ZipPair <T> > .Equals(ZipPair <T> other)
 {
     return(Equals(other));
 }