How is CultureInfo.CurrentCulture determined?

2019-08-07 18:47发布

问题:

I have a computer in Israel. I deployed an MVC website to the computer's IIS. In this website I show the CultureInfo.CurrentCulture (for my needs) and it shows "he-IL".

I changed:

Control Panel > Region and Language > Formats

to English (US).

Also I changed

Control Panel > Region and Language > Administrative > System Locale

to English (US) and of course restarted the computer.

But CultureInfo.CurrentCulture still shows me "he-IL"!

How can I change it without touching the code - only by setting or changing the system? (Windows 7)

I need to be dynamic and not hard-coded.