using System; using System.Linq.Expressions; namespace Microsoft.AspNet.Mvc.Rendering { public static class HtmlHelperDisplayExtensions { public static HtmlString Display([NotNull] this IHtmlHelper html, string expression) { return html.Display(expression, templateName: null, htmlFieldName: null, additionalViewData: null); } public static HtmlString Display([NotNull] this IHtmlHelper html, string expression, object additionalViewData) { return html.Display(expression, templateName: null, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString Display([NotNull] this IHtmlHelper html, string expression, string templateName) { return html.Display(expression, templateName, htmlFieldName: null, additionalViewData: null); } public static HtmlString Display([NotNull] this IHtmlHelper html, string expression, string templateName, object additionalViewData) { return html.Display(expression, templateName, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString Display([NotNull] this IHtmlHelper html, string expression, string templateName, string htmlFieldName) { return html.Display(expression, templateName, htmlFieldName, additionalViewData: null); } public static HtmlString DisplayFor([NotNull] this IHtmlHelper html, [NotNull] Expression> expression) { return html.DisplayFor(expression, templateName: null, htmlFieldName: null, additionalViewData: null); } public static HtmlString DisplayFor([NotNull] this IHtmlHelper html, [NotNull] Expression> expression, object additionalViewData) { return html.DisplayFor(expression, templateName: null, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString DisplayFor([NotNull] this IHtmlHelper html, [NotNull] Expression> expression, string templateName) { return html.DisplayFor(expression, templateName, htmlFieldName: null, additionalViewData: null); } public static HtmlString DisplayFor([NotNull] this IHtmlHelper html, [NotNull] Expression> expression, string templateName, object additionalViewData) { return html.DisplayFor(expression, templateName, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString DisplayFor([NotNull] this IHtmlHelper html, [NotNull] Expression> expression, string templateName, string htmlFieldName) { return html.DisplayFor(expression, templateName: templateName, htmlFieldName: htmlFieldName, additionalViewData: null); } public static HtmlString DisplayForModel([NotNull] this IHtmlHelper html) { return html.DisplayForModel(templateName: null, htmlFieldName: null, additionalViewData: null); } public static HtmlString DisplayForModel([NotNull] this IHtmlHelper html, object additionalViewData) { return html.DisplayForModel(templateName: null, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString DisplayForModel([NotNull] this IHtmlHelper html, string templateName) { return html.DisplayForModel(templateName, htmlFieldName: null, additionalViewData: null); } public static HtmlString DisplayForModel([NotNull] this IHtmlHelper html, string templateName, object additionalViewData) { return html.DisplayForModel(templateName, htmlFieldName: null, additionalViewData: additionalViewData); } public static HtmlString DisplayForModel([NotNull] this IHtmlHelper html, string templateName, string htmlFieldName) { return html.DisplayForModel(templateName, htmlFieldName, additionalViewData: null); } } }