ColinOL

A Small Website

用户工具

站点工具


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 · 最后更改: 2018/02/03 20:42 (外部编辑)