public override bool Equals(Pair <T1, T2> x, Pair <T1, T2> y) { if (!BaseComparer1.Equals(x.First, y.First)) { return(false); } return(BaseComparer2.Equals(x.Second, y.Second)); }
public override bool Equals(KeyValuePair <T1, T2> x, KeyValuePair <T1, T2> y) { if (!BaseComparer1.Equals(x.Key, y.Key)) { return(false); } return(BaseComparer2.Equals(x.Value, y.Value)); }
public override bool Equals(Wrapper2 <T1, T2> x, Wrapper2 <T1, T2> y) { bool r = BaseComparer1.Equals(x.Value, y.Value); if (r) { r = BaseComparer2.Equals(x.Value2, y.Value2); } return(r); }
public override bool Equals(Pair <T1, T2> x, Pair <T1, T2> y) => BaseComparer1.Equals(x.First, y.First) && BaseComparer2.Equals(x.Second, y.Second);
public override bool Equals(KeyValuePair <T1, T2> x, KeyValuePair <T1, T2> y) => BaseComparer1.Equals(x.Key, y.Key) && BaseComparer2.Equals(x.Value, y.Value);