private static CultureInfo EmulateDownLevel() { // GetConsoleFallbackUICulture is not required. // This is retained in order not to break existing code. ushort langId = NativeCultureResolver.GetUserDefaultUILanguage(); CultureInfo ci = new CultureInfo((int)langId); return ci.GetConsoleFallbackUICulture(); }
private static CultureInfo EmulateDownLevel() { CultureInfo info = new CultureInfo(GetUserDefaultUILanguage()); return info.GetConsoleFallbackUICulture(); }