GetConsoleFallbackUICulture() private method

private GetConsoleFallbackUICulture ( ) : CultureInfo
return CultureInfo
コード例 #1
0
 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();
 }
コード例 #2
0
 private static CultureInfo EmulateDownLevel()
 {
     CultureInfo info = new CultureInfo(GetUserDefaultUILanguage());
     return info.GetConsoleFallbackUICulture();
 }