CultureManager(CultureSettingsImpl cultureSettings) { this.cultureSettings = cultureSettings; var cultureInfo = UICulture; if (cultureInfo != null) Thread.CurrentThread.CurrentUICulture = cultureInfo; // Make sure its static ctor gets called so it can initialize its fields var u = AppCulture.UICulture; Debug.Assert(Thread.CurrentThread.CurrentUICulture.Equals(u)); }
CultureManager(CultureSettingsImpl cultureSettings) { this.cultureSettings = cultureSettings; var cultureInfo = UICulture; if (cultureInfo != null) { Thread.CurrentThread.CurrentUICulture = cultureInfo; } // Make sure its static ctor gets called so it can initialize its fields var u = AppCulture.UICulture; Debug.Assert(Thread.CurrentThread.CurrentUICulture.Equals(u)); }
CultureService(CultureSettingsImpl cultureSettings) { this.cultureSettings = cultureSettings; InitializeCulture(UICulture ?? Thread.CurrentThread.CurrentUICulture); }
CultureManager(CultureSettingsImpl cultureSettings) { this.cultureSettings = cultureSettings; InitializeCulture(UICulture ?? Thread.CurrentThread.CurrentUICulture); }