Set the current UI culture for the executing thread : CurrentUICulture : I18N Internationalization C# Examples


C# Examples » I18N Internationalization » CurrentUICulture »

 

Set the current UI culture for the executing thread









    
using  System;
using  System.Globalization;
using  System.Threading;

class  MainClass
{
    public  static  void  Main()  
    {
        Thread.CurrentThread.CurrentUICulture=new  CultureInfo("fr-FR");
        Console.WriteLine(Thread.CurrentThread.CurrentUICulture.Name);

    }

}
    
   
  
   



Output

fr-FR


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo I18N Internationalization
» CurrentUICulture