c# - System Locale in .NET -


i have set system locale chinese (simplified prc) via

controlpanel >> region , language >> administrative >> change system locale 

i restarted computer , run .net 4.0 application.

running

thread.currentthread.currentculture.name 

returns

en-gb 

why?

msdn says

information, such default culture , format patterns, cached first time requested. information can change during life of appdomain, example, when user modifies regional , language options portion of control panel. however, cultureinfo class not automatically detect changes in system settings.

call first

 thread.currentthread.currentculture.clearcacheddata(); 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -