internal static CultureInfo GetUserCultureFromEcpCookie(RequestContext requestContext, EcpUserSettings settingToReload)
        {
            CultureInfo cultureInfo = null;

            if (UserContextUtilities.IsFlagSet((int)settingToReload, 32))
            {
                HttpCookie httpCookie = HttpContext.Current.Request.Cookies["mkt"];
                if (httpCookie != null && !string.IsNullOrEmpty(httpCookie.Value))
                {
                    CultureInfo cultureInfo2 = CultureInfo.GetCultureInfo(httpCookie.Value);
                    if (ClientCultures.IsSupportedCulture(cultureInfo2))
                    {
                        cultureInfo = cultureInfo2;
                    }
                }
                if (cultureInfo == null)
                {
                    ExTraceGlobals.UserContextCallTracer.TraceDebug(0L, "UserContext.ReloadUserSettings: The culture cookie doesn't have a valid value.");
                }
            }
            return(cultureInfo);
        }