Where can we see the whole list of named language values?

I noticed that we can set the language for the form using Xml:lang="en-US" . I want to see the names of other languages, but I donโ€™t know with whom I can access from C #.

Please, help.

Edit I prefer to know the type of enumeration that lists the set value. Is there one available? Or should we create it ourselves?

Since there is no enumeration type available for this, here is my own.

+4
source share
3 answers

If you want to see a list of another culture, you can find it here .

+2
source

For .NET crops specific to a specific country and region:

 CultureInfo.GetCultures(CultureTypes.SpecificCultures); 

To access all .NET cultures (standard or not), use:

 CultureInfo.GetCultures(CultureTypes.AllCultures); 
+8
source

To get all valid culture information:

 CultureInfo[] cultureInfos = CultureInfo.GetCultures(CultureTypes.AllCultures); 

Perhaps you need this:

 string xmlCulture = "en-US"; bool isSupported = CultureInfo.GetCultures(CultureTypes.AllCultures).Any(c => c.Name.Equals(xmlCulture)); 
+4
source

All Articles