using System; using System.Threading; using System.Globalization; public class Test { public static void Main() { var c1 = CultureInfo.GetCultureInfo("ru"); Thread.CurrentThread.CurrentCulture = c1; } }
Standard input is empty
Standard output is empty
Unhandled Exception: System.NotSupportedException: Culture "ru" is a neutral culture. It can not be used in formatting and parsing and therefore cannot be set as the thread's current culture. at System.Globalization.CultureInfo.CheckNeutral () [0x00000] in <filename unknown>:0 at System.Threading.Thread.set_CurrentCulture (System.Globalization.CultureInfo value) [0x00000] in <filename unknown>:0 at Test.Main () [0x00000] in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: Culture "ru" is a neutral culture. It can not be used in formatting and parsing and therefore cannot be set as the thread's current culture. at System.Globalization.CultureInfo.CheckNeutral () [0x00000] in <filename unknown>:0 at System.Threading.Thread.set_CurrentCulture (System.Globalization.CultureInfo value) [0x00000] in <filename unknown>:0 at Test.Main () [0x00000] in <filename unknown>:0