detect os language from c#

后端 未结 7 1302
北荒
北荒 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:55

    With the System.Globalization.CultureInfo class you can determine what you want.

    With CultureInfo.CurrentCulture you get the system set culture, with CultureInfo.CurrentUICulture you get the user set culture.

提交回复
热议问题