From c228b65d478561869daa9161fc97a89ff02cad2e Mon Sep 17 00:00:00 2001 From: Hisham Abdullah Bin Ateya Date: Tue, 7 Jul 2015 07:35:37 +0300 Subject: [PATCH] Make 'DefaultCookieName' static readonly field instead of a property DefaultCookieName as Constant Add empty line --- .../CookieRequestCultureProvider.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Microsoft.AspNet.Localization/CookieRequestCultureProvider.cs b/src/Microsoft.AspNet.Localization/CookieRequestCultureProvider.cs index a9a20b03a7..7d477cbbb7 100644 --- a/src/Microsoft.AspNet.Localization/CookieRequestCultureProvider.cs +++ b/src/Microsoft.AspNet.Localization/CookieRequestCultureProvider.cs @@ -17,6 +17,11 @@ namespace Microsoft.AspNet.Localization private static readonly char[] _cookieSeparator = new[] { '|' }; private static readonly string _culturePrefix = "c="; private static readonly string _uiCulturePrefix = "uic="; + + /// + /// Represent the default cookie name used to track the user's preferred culture information, which is "ASPNET_CULTURE". + /// + public static readonly string DefaultCookieName = "ASPNET_CULTURE"; /// /// The name of the cookie that contains the user's preferred culture information. @@ -41,11 +46,6 @@ namespace Microsoft.AspNet.Localization return Task.FromResult(requestCulture); } - /// - /// The default name of the cookie used to track the user's preferred culture information. - /// - public static string DefaultCookieName { get; } = "ASPNET_CULTURE"; - /// /// Creates a string representation of a for placement in a cookie. ///