In C#, how to get the “Country or region” selected under “Region & language” in Windows 10?
问题 I am running Windows 10. When I open "Region & language settings" from the start menu, I can select a "Country or region". I am trying to get this value in a C# program. I am in Denmark. I have tried changing my country to Germany (see screenshot), but I cannot get my code to return Germany. Rebooting the computer did not help. I have written some code inspired by this thread. My code looks like this (trying various things at once, getting all the region/culture things I can think of):