public MvcHtmlString EditorFor <TProperty>(Expression <Func <TModel, TProperty> > expression, EditorOptions options, object htmlAttributes) { return(EditorFor(expression, options, HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes))); }
public MvcHtmlString EditorFor <TProperty>(Expression <Func <TModel, TProperty> > expression, EditorOptions options, IDictionary <string, object> htmlAttributes) { if (expression == null) { throw new ArgumentNullException("expression"); } return(CreateEditor( ModelMetadata.FromLambdaExpression(expression, Helper.ViewData), ExpressionHelper.GetExpressionText(expression), options, htmlAttributes)); }
public MvcHtmlString EditorFor <TProperty>(Expression <Func <TModel, TProperty> > expression, EditorOptions options) { return(EditorFor(expression, options, new RouteValueDictionary())); }