开发者

what does setting the current thread's culture code do?

开发者 https://www.devze.com 2023-01-01 19:09 出处:网络
what is the result of setting the current thread\'s culture code? I understand if I use the resource file it will pull label\'s/strings from the .resx file.

what is the result of setting the current thread's culture code?

I understand if I use the resource file it will pull label's/strings from the .resx file.

What else? Will it effect my date/money fo开发者_如何学运维rmatting also?


Setting Thread.CurrentCulture will affect formatting and parsing of dates and numbers. Setting Thread.CurrentUICulture affects fetching resources from resource files.


yes, your Date, money and other setting will be according to your thread 's culture. When you set thread's culture, your application run under that culture.


It MIGHT affect date and money formatting, depending on how you do the formatting. I think the default ToString() will usually check the treads UI culture, but if you have any custom formatting it will override the defaults.


See http://msdn.microsoft.com/en-us/goglobal/bb896001 National Language Support codes in various operative systems

0

精彩评论

暂无评论...
验证码 换一张
取 消