public int CompareTo(VTuple <T1, T2> other) { int c = Comparer <T1> .Default.Compare(Item1, other.Item1); if (c != 0) { return(c); } return(Comparer <T2> .Default.Compare(Item2, other.Item2)); }
public bool Equals(VTuple <T1, T2> other) { return(EqualityComparer <T1> .Default.Equals(Item1, other.Item1) && EqualityComparer <T2> .Default.Equals(Item2, other.Item2)); }