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