public void ClearCachedData()
 {
     s_userDefaultUICulture         = null;
     s_userDefaultCulture           = null;
     RegionInfo.s_currentRegionInfo = null;
     TimeZone.ResetTimeZone();
     TimeZoneInfo.ClearCachedData();
     s_LcidCachedCultures = null;
     s_NameCachedCultures = null;
     CultureData.ClearCachedData();
 }
示例#2
0
        public void ClearCachedData()
        {
            // reset the default culture values
            s_userDefaultCulture   = GetUserDefaultCulture();
            s_userDefaultUICulture = GetUserDefaultUICulture();

            RegionInfo.s_currentRegionInfo = null;
            #pragma warning disable 0618 // disable the obsolete warning
            TimeZone.ResetTimeZone();
            #pragma warning restore 0618
            TimeZoneInfo.ClearCachedData();
            s_LcidCachedCultures = null;
            s_NameCachedCultures = null;

            CultureData.ClearCachedData();
        }