如同Dictionary<TKey, TValue>是HashTable的泛型版本一样,KeyValuePair<TKey, TValue>是DictionaryEntry的泛型版本。
KeyValuePair<TKey, TValue>常用来遍历Dictionary,而DictionaryEntry用来遍历HashTable。
如同Dictionary<TKey, TValue>是HashTable的泛型版本一样,KeyValuePair<TKey, TValue>是DictionaryEntry的泛型版本。
KeyValuePair<TKey, TValue>常用来遍历Dictionary,而DictionaryEntry用来遍历HashTable。