Пример #1
0
 public bool Equals(ValueReader <T> x, ValueReader <T> y)
 {
     if (ReferenceEquals(x, y))
     {
         return(true);
     }
     if (ReferenceEquals(x, null))
     {
         return(false);
     }
     if (ReferenceEquals(y, null))
     {
         return(false);
     }
     if (x.GetType() != y.GetType())
     {
         return(false);
     }
     return(Equals(x.GetMemberName(), y.GetMemberName()));
 }
Пример #2
0
 public int GetHashCode(ValueReader <T> obj)
 {
     return(obj.GetMemberName().GetHashCode());
 }