我注意到我们可以使用 Xml:lang="en-US"
设置表单的语言。我想查看其他语言的名称,但不确定在哪里可以从 C# 访问这些语言。
请帮忙。
编辑
我更喜欢知道列出值集的枚举类型。有可用的吗?或者我们必须自己创建它?
由于似乎没有可用的枚举类型,因此 这里 是我自己创建的枚举类型。
I notice that we can set the language for a form by using Xml:lang="en-US"
. I want to see the named of other languages but not sure where those can be accessed from C#.
Please help.
Edit
I prefer to know an enum type which list the value set. Is there one available? Or we have to create that ourselves?
Since it seems to be no available enum type for this, here is my own-created one.
发布评论
评论(3)
对于属于特定国家和地区的 .NET 文化:
要访问所有 .NET 文化(标准或非标准),请使用:
For .NET cultures belonging to a specific country and region:
To access all the .NET cultures (standard or not), use:
要获取所有有效的文化信息:
也许您需要这个:
To get all valid culture infos:
Maybe you need this:
如果您想查看其他文化的列表,可以找到它 在这里。
If you want to see a list of the other culture you can find it here.