Posts in "C#"

Set Culture for all threads in C# apps

Set the culture for all threads in C# before .NET 4.5 In the simplest form, to change the culture of .NET applications, we can just set the current thread Culture/UICulture during the initialization phase. But, problems can occur if the application is multi-threaded. Take a look at the example bellow. class Program { static void… Continue reading