HashTable keys遍历两个snippets

1.
Dim hashTab As New Hashtable
For Each keyString As String In hashTab.Keys
  Console.WriteLine(keyString)
Next
2.
Dim arCollect As IDictionaryEnumerator = hashTab.GetEnumerator
While arCollect.MoveNext
  Console.WriteLine(arCollect.Key)
End While

posted on 2006-06-01 23:42  whyin  阅读(335)  评论(0编辑  收藏  举报

导航