如何用C#检查我的语言电脑 [英] how Checked my language pc in C#

查看:65
本文介绍了如何用C#检查我的语言电脑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检查语言我的系统项目

i need check language my system in project

推荐答案

你可以获取文化:

You can fetch the culture:
CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;



但是这只会在应用程序/当前线程启动时获得有效的文化 - 如果您确实需要当前设置并且它们可能会在您的应用程序执行期间发生变化,然后您需要启动一个新线程并请求其中的文化 - 然后将其返回到调用线程进行处理。



CultureInfo包含您需要的所有信息。


But that only gets the culture that was in force when the application / current thread was started - if you actually need the current settings and they might change during your application execution, then you need to start a new thread and request the culture in that - then return it to the calling thread for processing.

The CultureInfo contains all the information you should need.


这篇关于如何用C#检查我的语言电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆