internal static CultureInfo GetUserDefaultCulture() { CultureInfo cultureInfo = null; string localeName; if (CultureData.GetDefaultLocaleName(out localeName)) { cultureInfo = GetCultureByName(localeName, true); cultureInfo._isReadOnly = true; } else { cultureInfo = CultureInfo.InvariantCulture; } return(cultureInfo); }
internal static CultureInfo GetUserDefaultCulture() { if (GlobalizationMode.Invariant) { return(CultureInfo.InvariantCulture); } CultureInfo cultureInfo = null; string localeName; if (CultureData.GetDefaultLocaleName(out localeName)) { cultureInfo = GetCultureByName(localeName); } else { cultureInfo = CultureInfo.InvariantCulture; } return(cultureInfo); }