fork(1) download
  1. using System;
  2. using System.Threading;
  3. using System.Globalization;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. var c1 = CultureInfo.GetCultureInfo("ru");
  10. Thread.CurrentThread.CurrentCulture = c1;
  11. }
  12. }
Runtime error #stdin #stdout #stderr 0.03s 36472KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
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