footleg

导航

2008年4月16日

关于Dictionary元素的遍历

摘要: 如何在C#中遍历Hashtable中的元素,每次遍历时,需要得到Key和Value IDictionary dictionary = new Hashtable();foreach (DictionaryEntry entry in dictionary){ Object key = entry.Key; Object val = entry.Value;} 阅读全文

posted @ 2008-04-16 12:38 迷途 阅读(331) 评论(0) 推荐(0)