简体   繁体   English

什么是CultureInfo.GetCultures是.NET Core

[英]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.

相关问题 在.NET Windows应用商店应用中替换CultureInfo.GetCultures - Replacement for CultureInfo.GetCultures in .NET Windows Store apps 为什么不在CultureInfo.GetCultures()中展示所有国家/地区? - Why not all countries are presented in CultureInfo.GetCultures()? 为什么我们从CultureInfo.GetCultures(CultureTypes.AllCultures)获得相同的CultureInfo.LCID - Why we get the same CultureInfo.LCID from CultureInfo.GetCultures(CultureTypes.AllCultures) 为什么 CultureInfo.GetCultures(CultureTypes.AllCultures) 中缺少某些文化? - Why are certain cultures missing from CultureInfo.GetCultures(CultureTypes.AllCultures)? 为什么CultureInfo.GetCultures(CultureTypes.SpecificCultures)在不同的计算机上返回不同的文化集 - Why does CultureInfo.GetCultures(CultureTypes.SpecificCultures) return different sets of cultures on different computers CultureInfo.GetCultures (CultureTypes.NeutralCultures) DisplayName 属性在应用程序发布时给出不同的结果 - CultureInfo.GetCultures (CultureTypes.NeutralCultures) DisplayName property gives different results when the application is published KerberosRequestorSecurityToken的.Net核心等效项是什么? - What is the .Net core equivalent of KerberosRequestorSecurityToken? .Net Core中的.NET Framework ModelMetadataProvider相当于什么? - What is the equivalent of .NET Framework ModelMetadataProvider in .Net Core? CultureInfo 在 .NET 核心和 .NET 框架之间有所不同 - CultureInfo differs between .NET Core and .NET Framework 登录后覆盖.Net Core“ CultureInfo” - Overwrite .Net Core “CultureInfo” after login
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM