コード例 #1
0
        internal static CultureInfo ConstructCurrentCulture()
        {
            CultureInfo cultureInfo = new CultureInfo();

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