what does setting the current thread's culture code do?
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
精彩评论