Above is peace of code that you can use to check if you have the same problem. If this code don't throw an exception, than you have some other problem.
private void test()
{
CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.AllCultures);
Hashtable hashtable = new Hashtable();
ArrayList m_languages = new ArrayList();
hashtable.Add("", "Default");
m_languages.Add("");
for (int i = 0; i < cultures.Length; i++)
{
CultureInfo info = cultures[i];
if (info.Name != "")
{
hashtable.Add(info.Name, info.DisplayName);
}
}
}
No comments:
Post a Comment