/// <summary> /// Gets an accessor to the member that the argument should be compared with. /// </summary> /// <param name="parameter">This is the parameter representing the entity.</param> /// <returns></returns> public MemberAccess GetMemberAccess(ParameterExpression parameter) { return(ExpressionHelper.CalculateMemberAccess(parameter, Path)); }
/// <summary> /// Gets an accessor to the member that the argument should be compared with. /// </summary> /// <param name="comparison"></param> /// <param name="parameter">This is the parameter representing the entity.</param> /// <returns></returns> public static MemberAccess GetMemberAccess(this IMemberComparison comparison, ParameterExpression parameter) { return(ExpressionHelper.CalculateMemberAccess(parameter, comparison.GetPath(), false)); }