Пример #1
0
 public bool Equals(TestValue <T> x, TestValue <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(_Comparer.Equals(x.Value, y.Value));
 }
Пример #2
0
 public int GetHashCode(TestValue <T> obj)
 {
     return(_Comparer.GetHashCode(obj.Value));
 }