C# BackgroundWorker's culture

前端 未结 6 895
情歌与酒
情歌与酒 2021-02-07 04:28

I woudl like to set the culture for my whole application. I tried the following :

Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(wanted         


        
6条回答
  •  太阳男子
    2021-02-07 05:03

    You can't do this for every newly created thread. You should do it by hand (but I don't think that seting culture for thread pool threads is a good idea!). Maybe your application should depends on Application.CurrentCulture or some other global stuff..

提交回复
热议问题