how to set default culture info for entire c# application

前端 未结 3 1527
余生分开走
余生分开走 2020-12-13 12:26

I want to set default culture info for that class or for entire application.

For example in Turkey 3,2 = in english 3.2

so application uses my local but i wa

3条回答
  •  醉话见心
    2020-12-13 13:04

    With 4.0, you will need to manage this yourself by setting the culture for each thread as Alexei describes. But with 4.5, you can define a culture for the appdomain and that is the preferred way to handle this. The relevant apis are CultureInfo.DefaultThreadCurrentCulture and CultureInfo.DefaultThreadCurrentUICulture.

提交回复
热议问题