简体   繁体   中英

What is the equivalent of CultureInfo.GetCultures is .NET Core

Straight forward question really, What is the equivalent of CultureInfo.GetCultures is .NET Core?

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)

There isn't a good way to enumerate all supported cultures in .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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM