public bool Equals(Expression <Func <TExpression, TValue> > x, Expression <Func <TExpression, TValue> > y) { string propertyPathX = ReflectionExtensions.BuildPropertyPath(x); string propertyPathY = ReflectionExtensions.BuildPropertyPath(y); return(propertyPathX == propertyPathY); }
public int GetHashCode(Expression <Func <TExpression, TValue> > obj) { string propertyPath = ReflectionExtensions.BuildPropertyPath(obj); if (propertyPath == null) { return(-1); } return(propertyPath.GetHashCode()); }