From 1b7d52c84c24928eaad4a240b216ad10fcb24e0c Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Fri, 6 Jun 2014 14:39:04 -0700 Subject: [PATCH] fixing stylecop in .Mvc and .Mvc.Common --- src/Microsoft.AspNet.Mvc.Common/TypeExtensions.cs | 4 +++- src/Microsoft.AspNet.Mvc/MvcServices.cs | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.AspNet.Mvc.Common/TypeExtensions.cs b/src/Microsoft.AspNet.Mvc.Common/TypeExtensions.cs index 9df87c9ed2..1b0670779f 100644 --- a/src/Microsoft.AspNet.Mvc.Common/TypeExtensions.cs +++ b/src/Microsoft.AspNet.Mvc.Common/TypeExtensions.cs @@ -47,7 +47,9 @@ namespace Microsoft.AspNet.Mvc public static Type ExtractGenericInterface([NotNull] this Type queryType, Type interfaceType) { Func matchesInterface = t => t.IsGenericType() && t.GetGenericTypeDefinition() == interfaceType; - return (matchesInterface(queryType)) ? queryType : queryType.GetInterfaces().FirstOrDefault(matchesInterface); + return (matchesInterface(queryType)) ? + queryType : + queryType.GetInterfaces().FirstOrDefault(matchesInterface); } #if NETFX_CORE || K10 diff --git a/src/Microsoft.AspNet.Mvc/MvcServices.cs b/src/Microsoft.AspNet.Mvc/MvcServices.cs index 6147867aa4..5399bac152 100644 --- a/src/Microsoft.AspNet.Mvc/MvcServices.cs +++ b/src/Microsoft.AspNet.Mvc/MvcServices.cs @@ -75,14 +75,16 @@ namespace Microsoft.AspNet.Mvc yield return describe.Transient(); yield return describe.Transient(); - yield return describe.Transient, DefaultViewComponentInvokerProvider>(); + yield return describe.Transient, + DefaultViewComponentInvokerProvider>(); yield return describe.Transient(); yield return describe.Transient(); yield return describe.Transient(); yield return describe.Singleton(); yield return describe.Singleton(); - yield return describe.Singleton(); + yield return describe.Singleton(); yield return describe.Describe(