From ba08f8e8d8dca9f95317d3e24b29c432cfae0f17 Mon Sep 17 00:00:00 2001 From: dougbu Date: Thu, 10 Apr 2014 08:38:14 -0700 Subject: [PATCH] Cleanup Display, Partial, and Validation extensions - correct file and class names for some HH extensions - three class names were correct but didn't match containing file - three class and file names matched but didn't start with HtmlHelper - clean up trailing whitespace and long lines in changed Extensions.cs files - `HtmlHelperPartialAsyncExtensions`, `HtmlHelperRenderPartialAsyncExtensions` and `HtmlHelperValidationExtensions` lacked some `[NotNull]` attributes - merge extension files by concept - Display / DisplayFor / DisplayForModel methods all into `HtmlHelperDisplayExtensions` - Partial / RenderPartial methods all into `HtmlHelperPartialExtensions` - use `IHtmlHelper` everywhere --- samples/MvcSample.Web/MvcSample.Web.kproj | 3 - src/Common/Common.kproj | 3 - .../Microsoft.AspNet.Mvc.Core.kproj | 9 +- .../Rendering/DisplayExtensions.cs | 42 ------- .../Rendering/DisplayForExtensions.cs | 45 ------- .../Rendering/DisplayForModelExtensions.cs | 37 ------ .../Rendering/HtmlHelperDisplayExtensions.cs | 117 ++++++++++++++++++ .../Rendering/HtmlHelperPartialExtensions.cs | 100 +++++++++++++++ .../HtmlHelperValidationExtensions.cs | 52 ++++++++ .../Rendering/PartialAsyncExtensions.cs | 55 -------- .../Rendering/RenderPartialAsyncExtensions.cs | 51 -------- .../Rendering/ValidationExtensions.cs | 42 ------- .../Microsoft.AspNet.Mvc.kproj | 3 - .../Microsoft.AspNet.Mvc.Core.Test.kproj | 3 - ...crosoft.AspNet.Mvc.ModelBinding.Test.kproj | 3 - .../Microsoft.AspNet.Mvc.Razor.Test.kproj | 3 - 16 files changed, 272 insertions(+), 296 deletions(-) delete mode 100644 src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayExtensions.cs delete mode 100644 src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayForExtensions.cs delete mode 100644 src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayForModelExtensions.cs create mode 100644 src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperDisplayExtensions.cs create mode 100644 src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperPartialExtensions.cs create mode 100644 src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperValidationExtensions.cs delete mode 100644 src/Microsoft.AspNet.Mvc.Core/Rendering/PartialAsyncExtensions.cs delete mode 100644 src/Microsoft.AspNet.Mvc.Core/Rendering/RenderPartialAsyncExtensions.cs delete mode 100644 src/Microsoft.AspNet.Mvc.Core/Rendering/ValidationExtensions.cs diff --git a/samples/MvcSample.Web/MvcSample.Web.kproj b/samples/MvcSample.Web/MvcSample.Web.kproj index 2956d976f2..1d5d97fbeb 100644 --- a/samples/MvcSample.Web/MvcSample.Web.kproj +++ b/samples/MvcSample.Web/MvcSample.Web.kproj @@ -60,8 +60,5 @@ - - - \ No newline at end of file diff --git a/src/Common/Common.kproj b/src/Common/Common.kproj index eabc129a05..a848b015d3 100644 --- a/src/Common/Common.kproj +++ b/src/Common/Common.kproj @@ -23,8 +23,5 @@ - - - \ No newline at end of file diff --git a/src/Microsoft.AspNet.Mvc.Core/Microsoft.AspNet.Mvc.Core.kproj b/src/Microsoft.AspNet.Mvc.Core/Microsoft.AspNet.Mvc.Core.kproj index 13b97e63b5..db0cce19de 100644 --- a/src/Microsoft.AspNet.Mvc.Core/Microsoft.AspNet.Mvc.Core.kproj +++ b/src/Microsoft.AspNet.Mvc.Core/Microsoft.AspNet.Mvc.Core.kproj @@ -125,9 +125,6 @@ - - - @@ -138,10 +135,13 @@ + + + @@ -157,9 +157,6 @@ - - - diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayExtensions.cs deleted file mode 100644 index 00d8e38507..0000000000 --- a/src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayExtensions.cs +++ /dev/null @@ -1,42 +0,0 @@ - -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); - } - } -} diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayForExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayForExtensions.cs deleted file mode 100644 index 4b66fc3900..0000000000 --- a/src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayForExtensions.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using System.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; - -namespace Microsoft.AspNet.Mvc.Rendering -{ - public static class HtmlHelperDisplayForExtensions - { - 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); - } - } -} diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayForModelExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayForModelExtensions.cs deleted file mode 100644 index 20806158bc..0000000000 --- a/src/Microsoft.AspNet.Mvc.Core/Rendering/DisplayForModelExtensions.cs +++ /dev/null @@ -1,37 +0,0 @@ - -namespace Microsoft.AspNet.Mvc.Rendering -{ - public static class HtmlHelperDisplayForModelExtensions - { - 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); - } - } -} \ No newline at end of file diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperDisplayExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperDisplayExtensions.cs new file mode 100644 index 0000000000..fd0390762a --- /dev/null +++ b/src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperDisplayExtensions.cs @@ -0,0 +1,117 @@ +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); + } + } +} diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperPartialExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperPartialExtensions.cs new file mode 100644 index 0000000000..a40721a040 --- /dev/null +++ b/src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperPartialExtensions.cs @@ -0,0 +1,100 @@ +using System.Threading.Tasks; + +namespace Microsoft.AspNet.Mvc.Rendering +{ + public static class HtmlHelperPartialExtensions + { + /// + /// Renders the partial view with the parent's view data and model to a string. + /// + /// The of the model. + /// The instance that this method extends. + /// The name of the partial view to render. + /// + /// A that represents when rendering to the has completed. + /// + public static Task PartialAsync([NotNull] this IHtmlHelper htmlHelper, + [NotNull] string partialViewName) + { + return htmlHelper.PartialAsync(partialViewName, htmlHelper.ViewData.Model, viewData: null); + } + + /// + /// Renders the partial view with the given view data and, implicitly, the given view data's model to a string. + /// + /// The of the model. + /// The instance that this method extends. + /// The name of the partial view to render. + /// + /// The that is provided to the partial view that will be rendered. + /// + /// + /// A that represents when rendering to the has completed. + /// + public static Task PartialAsync([NotNull] this IHtmlHelper htmlHelper, + [NotNull] string partialViewName, ViewDataDictionary viewData) + { + return htmlHelper.PartialAsync(partialViewName, htmlHelper.ViewData.Model, viewData: viewData); + } + + /// + /// Renders the partial view with an empty view data and the given model to a string. + /// + /// The of the model. + /// The instance that this method extends. + /// The name of the partial view to render. + /// The model to provide to the partial view that will be rendered. + /// + /// A that represents when rendering to the has completed. + /// + public static Task PartialAsync([NotNull] this IHtmlHelper htmlHelper, + [NotNull] string partialViewName, object model) + { + return htmlHelper.PartialAsync(partialViewName, model, viewData: null); + } + + /// + /// Renders the partial view with the parent's view data and model. + /// + /// The of the model. + /// The instance that this method extends. + /// The name of the partial view to render. + /// A that represents when rendering has completed. + public static Task RenderPartialAsync([NotNull] this IHtmlHelper htmlHelper, + [NotNull] string partialViewName) + { + return htmlHelper.RenderPartialAsync(partialViewName, htmlHelper.ViewData.Model, + viewData: htmlHelper.ViewData); + } + + /// + /// Renders the partial view with the given view data and, implicitly, the given view data's model. + /// + /// The of the model. + /// The instance that this method extends. + /// The name of the partial view to render. + /// + /// The that is provided to the partial view that will be rendered. + /// + /// A that represents when rendering has completed. + public static Task RenderPartialAsync([NotNull] this IHtmlHelper htmlHelper, + [NotNull] string partialViewName, ViewDataDictionary viewData) + { + return htmlHelper.RenderPartialAsync(partialViewName, htmlHelper.ViewData.Model, viewData: viewData); + } + + /// + /// Renders the partial view with an empty view data and the given model. + /// + /// The of the model. + /// The instance that this method extends. + /// The name of the partial view to render. + /// The model to provide to the partial view that will be rendered. + /// A that represents when rendering has completed. + public static Task RenderPartialAsync([NotNull] this IHtmlHelper htmlHelper, + [NotNull] string partialViewName, object model) + { + return htmlHelper.RenderPartialAsync(partialViewName, model, htmlHelper.ViewData); + } + } +} diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperValidationExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperValidationExtensions.cs new file mode 100644 index 0000000000..cf97f71ef6 --- /dev/null +++ b/src/Microsoft.AspNet.Mvc.Core/Rendering/HtmlHelperValidationExtensions.cs @@ -0,0 +1,52 @@ +using System.Collections.Generic; + +namespace Microsoft.AspNet.Mvc.Rendering +{ + public static class HtmlHelperValidationExtensions + { + public static HtmlString ValidationSummary([NotNull] this IHtmlHelper htmlHelper) + { + return ValidationSummary(htmlHelper, excludePropertyErrors: false); + } + + public static HtmlString ValidationSummary([NotNull] this IHtmlHelper htmlHelper, + bool excludePropertyErrors) + { + return ValidationSummary(htmlHelper, excludePropertyErrors, message: null); + } + + public static HtmlString ValidationSummary([NotNull] this IHtmlHelper htmlHelper, + string message) + { + return ValidationSummary(htmlHelper, excludePropertyErrors: false, message: message, + htmlAttributes: (object)null); + } + + public static HtmlString ValidationSummary([NotNull] this IHtmlHelper htmlHelper, + bool excludePropertyErrors, string message) + { + return ValidationSummary(htmlHelper, excludePropertyErrors, message, htmlAttributes: (object)null); + } + + public static HtmlString ValidationSummary([NotNull] this IHtmlHelper htmlHelper, + string message, object htmlAttributes) + { + return ValidationSummary(htmlHelper, excludePropertyErrors: false, message: message, + htmlAttributes: HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)); + } + + public static HtmlString ValidationSummary([NotNull] this IHtmlHelper htmlHelper, + bool excludePropertyErrors, string message, object htmlAttributes) + { + return htmlHelper.ValidationSummary(excludePropertyErrors, message, + HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)); + } + + public static HtmlString ValidationSummary([NotNull] this IHtmlHelper htmlHelper, + string message, IDictionary htmlAttributes) + { + return htmlHelper.ValidationSummary(excludePropertyErrors: false, message: message, + htmlAttributes: htmlAttributes); + } + } +} diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/PartialAsyncExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/PartialAsyncExtensions.cs deleted file mode 100644 index 2183ef6ff0..0000000000 --- a/src/Microsoft.AspNet.Mvc.Core/Rendering/PartialAsyncExtensions.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System.Threading.Tasks; - -namespace Microsoft.AspNet.Mvc.Rendering -{ - public static class PartialAsyncExtensions - { - /// - /// Renders the partial view with the parent's view data and model to a string. - /// - /// The of the model. - /// The instance that this method extends. - /// The name of the partial view to render. - /// - /// A that represents when rendering to the has completed. - /// - public static Task PartialAsync(this IHtmlHelper htmlHelper, [NotNull] string partialViewName) - { - return htmlHelper.PartialAsync(partialViewName, htmlHelper.ViewData.Model, viewData: null); - } - - /// - /// Renders the partial view with the given view data and, implicitly, the given view data's model to a string. - /// - /// The of the model. - /// The instance that this method extends. - /// The name of the partial view to render. - /// - /// The that is provided to the partial view that will be rendered. - /// - /// - /// A that represents when rendering to the has completed. - /// - public static Task PartialAsync(this IHtmlHelper htmlHelper, [NotNull] string partialViewName, - ViewDataDictionary viewData) - { - return htmlHelper.PartialAsync(partialViewName, htmlHelper.ViewData.Model, viewData: viewData); - } - - /// - /// Renders the partial view with an empty view data and the given model to a string. - /// - /// The of the model. - /// The instance that this method extends. - /// The name of the partial view to render. - /// The model to provide to the partial view that will be rendered. - /// - /// A that represents when rendering to the has completed. - /// - public static Task PartialAsync(this IHtmlHelper htmlHelper, [NotNull] string partialViewName, - object model) - { - return htmlHelper.PartialAsync(partialViewName, model, viewData: null); - } - } -} diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/RenderPartialAsyncExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/RenderPartialAsyncExtensions.cs deleted file mode 100644 index 3b1d31535c..0000000000 --- a/src/Microsoft.AspNet.Mvc.Core/Rendering/RenderPartialAsyncExtensions.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System.Threading.Tasks; - -namespace Microsoft.AspNet.Mvc.Rendering -{ - public static class RenderPartialAsyncExtensions - { - - /// - /// Renders the partial view with the parent's view data and model. - /// - /// The of the model. - /// The instance that this method extends. - /// The name of the partial view to render. - /// A that represents when rendering has completed. - public static Task RenderPartialAsync(this IHtmlHelper htmlHelper, [NotNull] string partialViewName) - { - return htmlHelper.RenderPartialAsync(partialViewName, htmlHelper.ViewData.Model, - viewData: htmlHelper.ViewData); - } - - /// - /// Renders the partial view with the given view data and, implicitly, the given view data's model. - /// - /// The of the model. - /// The instance that this method extends. - /// The name of the partial view to render. - /// - /// The that is provided to the partial view that will be rendered. - /// - /// A that represents when rendering has completed. - public static Task RenderPartialAsync(this IHtmlHelper htmlHelper, [NotNull] string partialViewName, - ViewDataDictionary viewData) - { - return htmlHelper.RenderPartialAsync(partialViewName, htmlHelper.ViewData.Model, viewData: viewData); - } - - /// - /// Renders the partial view with an empty view data and the given model. - /// - /// The of the model. - /// The instance that this method extends. - /// The name of the partial view to render. - /// The model to provide to the partial view that will be rendered. - /// A that represents when rendering has completed. - public static Task RenderPartialAsync(this IHtmlHelper htmlHelper, [NotNull] string partialViewName, - object model) - { - return htmlHelper.RenderPartialAsync(partialViewName, model, htmlHelper.ViewData); - } - } -} diff --git a/src/Microsoft.AspNet.Mvc.Core/Rendering/ValidationExtensions.cs b/src/Microsoft.AspNet.Mvc.Core/Rendering/ValidationExtensions.cs deleted file mode 100644 index 033e777d0b..0000000000 --- a/src/Microsoft.AspNet.Mvc.Core/Rendering/ValidationExtensions.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Collections.Generic; - -namespace Microsoft.AspNet.Mvc.Rendering -{ - public static class ValidationExtensions - { - public static HtmlString ValidationSummary(this IHtmlHelper htmlHelper) - { - return ValidationSummary(htmlHelper, excludePropertyErrors: false); - } - - public static HtmlString ValidationSummary(this IHtmlHelper htmlHelper, bool excludePropertyErrors) - { - return ValidationSummary(htmlHelper, excludePropertyErrors, message: null); - } - - public static HtmlString ValidationSummary(this IHtmlHelper htmlHelper, string message) - { - return ValidationSummary(htmlHelper, excludePropertyErrors: false, message: message, htmlAttributes: (object)null); - } - - public static HtmlString ValidationSummary(this IHtmlHelper htmlHelper, bool excludePropertyErrors, string message) - { - return ValidationSummary(htmlHelper, excludePropertyErrors, message, htmlAttributes: (object)null); - } - - public static HtmlString ValidationSummary(this IHtmlHelper htmlHelper, string message, object htmlAttributes) - { - return ValidationSummary(htmlHelper, excludePropertyErrors: false, message: message, htmlAttributes: HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)); - } - - public static HtmlString ValidationSummary(this IHtmlHelper htmlHelper, bool excludePropertyErrors, string message, object htmlAttributes) - { - return htmlHelper.ValidationSummary(excludePropertyErrors, message, HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)); - } - - public static HtmlString ValidationSummary(this IHtmlHelper htmlHelper, string message, IDictionary htmlAttributes) - { - return htmlHelper.ValidationSummary(excludePropertyErrors: false, message: message, htmlAttributes: htmlAttributes); - } - } -} diff --git a/src/Microsoft.AspNet.Mvc/Microsoft.AspNet.Mvc.kproj b/src/Microsoft.AspNet.Mvc/Microsoft.AspNet.Mvc.kproj index 4020974722..c1b586a170 100644 --- a/src/Microsoft.AspNet.Mvc/Microsoft.AspNet.Mvc.kproj +++ b/src/Microsoft.AspNet.Mvc/Microsoft.AspNet.Mvc.kproj @@ -22,8 +22,5 @@ - - - \ No newline at end of file diff --git a/test/Microsoft.AspNet.Mvc.Core.Test/Microsoft.AspNet.Mvc.Core.Test.kproj b/test/Microsoft.AspNet.Mvc.Core.Test/Microsoft.AspNet.Mvc.Core.Test.kproj index 00ef2fce71..17d4e4dc8e 100644 --- a/test/Microsoft.AspNet.Mvc.Core.Test/Microsoft.AspNet.Mvc.Core.Test.kproj +++ b/test/Microsoft.AspNet.Mvc.Core.Test/Microsoft.AspNet.Mvc.Core.Test.kproj @@ -36,8 +36,5 @@ - - - \ No newline at end of file diff --git a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Microsoft.AspNet.Mvc.ModelBinding.Test.kproj b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Microsoft.AspNet.Mvc.ModelBinding.Test.kproj index 41f28e309d..a9be9a260d 100644 --- a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Microsoft.AspNet.Mvc.ModelBinding.Test.kproj +++ b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Microsoft.AspNet.Mvc.ModelBinding.Test.kproj @@ -50,8 +50,5 @@ - - - \ No newline at end of file diff --git a/test/Microsoft.AspNet.Mvc.Razor.Test/Microsoft.AspNet.Mvc.Razor.Test.kproj b/test/Microsoft.AspNet.Mvc.Razor.Test/Microsoft.AspNet.Mvc.Razor.Test.kproj index 00d34abd8a..45daf3311b 100644 --- a/test/Microsoft.AspNet.Mvc.Razor.Test/Microsoft.AspNet.Mvc.Razor.Test.kproj +++ b/test/Microsoft.AspNet.Mvc.Razor.Test/Microsoft.AspNet.Mvc.Razor.Test.kproj @@ -26,8 +26,5 @@ - - - \ No newline at end of file