wiki:csharp:base-hashtable-enum-method

哈希表Hashtable的枚举

foreach( DictionaryEntry de in hashtable1 )
{
    Console.WriteLine("Key = {0}, Value = {1}", de.Key, de.Value);
}
foreach (string str in hashtable1.Keys)
{}
string strValue = hashtable1[key]

评论

请输入您的评论. 可以使用维基语法:
 
wiki/csharp/base-hashtable-enum-method.txt · 最后更改: 2023/01/03 15:25 由 127.0.0.1