Exemplo n.º 1
0
 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));
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public override bool Equals(Pair <T1, T2> x, Pair <T1, T2> y)
 => BaseComparer1.Equals(x.First, y.First) && BaseComparer2.Equals(x.Second, y.Second);
Exemplo n.º 5
0
 public override bool Equals(KeyValuePair <T1, T2> x, KeyValuePair <T1, T2> y)
 => BaseComparer1.Equals(x.Key, y.Key) && BaseComparer2.Equals(x.Value, y.Value);