detect os language from c#

后端 未结 7 1315
北荒
北荒 2020-12-06 01:32

Is there a way to detect the Language of the OS from within a c# class?

7条回答
  •  我在风中等你
    2020-12-06 01:52

    Do you mean whether the machine is configured (e.g.) with English, French or Japanese?

    Have a look at the CultureInfo class - particularly CurrentCulture, which is initialised from the OS current regional settings.

提交回复
热议问题