Our code is simple, get the cultures and put them in a dropdown list control.
items = new SortedDictionary<int, string>();
foreach (CultureInfo info in CultureInfo.GetCultures(CultureTypes.AllCultures))
{
string value = string.Format(System.Globalization.CultureInfo.CurrentCulture, "{0} - {1}", info.LCID, info.DisplayName);
if (!items.ContainsKey(info.LCID))
{
items.Add(info.LCID, value);
}
}
We want to use LCID as our key to the dictionary.
However, sometimes we get the same LCID value, for example, when LCID is 4, the displayname is "Chinese (Simplified)" or "Chinese (Simplified) Legacy", what it the difference between these CultureInfo ?
Can we still use LCID as the key ?
Thanks for your answer