[英]What is the equivalent of CultureInfo.GetCultures is .NET Core
Straight forward question really, What is the equivalent of CultureInfo.GetCultures
is .NET Core? 直截了当的问题,.NET Core相当于
CultureInfo.GetCultures
是什么?
Just trying to find a way to enumerate available cultures. 只是试图找到一种方法来枚举可用的文化。
Just to clarify, this isn't the same as GetCultureInfo
as that only gets a specified culture, (ie does not enumerate it) 为了澄清
GetCultureInfo
,这与GetCultureInfo
因为它仅获得指定的区域性(即不枚举它)。
There isn't a good way to enumerate all supported cultures in .NET Core < 2.0. 枚举.NET Core <2.0中没有一种好的方法来枚举所有受支持的区域性。 In .NET Core 2.0 the respective queries to the underlying localisation systems have been implemented for windows and *nix, making this API available.
在.NET Core 2.0中,已经针对Windows和* nix实现了对基础本地化系统的相应查询,从而使该API可用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.