Try something like this:
foreach (DictionaryEntry i in hashtable)
{
if (i.Value is Ülke)
{
Ülke x = (Ülke)i.Value;
Console.WriteLine(" " + x.Ülke + " " + x.nüfus);
}
}
1
solved Convert object to integer in hashtable [closed]