internal static CultureInfo ConstructCurrentCulture() { CultureInfo cultureInfo = new CultureInfo(); if (!CultureInfo.ConstructInternalLocaleFromCurrentLocale(cultureInfo)) { cultureInfo = CultureInfo.InvariantCulture; } CultureInfo.BootstrapCultureID = cultureInfo.cultureID; return(cultureInfo); }