/// <summary> /// Gets an Expression which calls the binding target if the method binding succeeded. /// /// Throws InvalidOperationException if the binding failed. /// /// OBSOLETE /// </summary> public Expression MakeExpression(ParameterBinder parameterBinder, IList <Expression> parameters) { ContractUtils.RequiresNotNull(parameterBinder, "parameterBinder"); ContractUtils.RequiresNotNull(parameters, "parameters"); if (_target == null) { throw new InvalidOperationException("An expression cannot be produced because the method binding was unsuccessful."); } return(_target.MakeExpression(parameterBinder, parameters, ArgumentTests)); }