C# Hashtable 读取 key 和 value
public static Hashtable hashtable = new Hashtable();
hashtable.Add("a","aaaaaaaa");
///......
foreach(DictionaryEntry h in hashtable)
{
Console.WriteLine(h.Key.ToString() + h.Value.ToString());
}
public static Hashtable hashtable = new Hashtable();
hashtable.Add("a","aaaaaaaa");
///......
foreach(DictionaryEntry h in hashtable)
{
Console.WriteLine(h.Key.ToString() + h.Value.ToString());
}