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)); }
public int GetHashCode(TestValue <T> obj) { return(_Comparer.GetHashCode(obj.Value)); }