Where is the system locale/culture set for .Net

后端 未结 7 1510
时光取名叫无心
时光取名叫无心 2020-12-09 20:49

I have a problem with a c# assembly (.net 2.0 written using Visual studio 2005) that is installed on a UK server and should use UK regional settings.

What my code do

7条回答
  •  死守一世寂寞
    2020-12-09 21:48

    Hmmm, according to the API Docs:

    When a thread is started, its culture is initially determined by using GetUserDefaultLCID from the Windows API.

    This method derives it's locale from the (as the name implies) User's Default Locale, which I assume is in the Control Panel. NOTE: This is NOT the same as the UI Locale.

提交回复
热议问题