学用 ASP.Net 之 System.Collections.Hashtable 类与 DictionaryEntry 结构


DictionaryEntry 是包含 Key / Value 一对值的简单结构;

Hashtable(哈希表)是一组 Key / Value 的集合, 准确地讲是一组 DictionaryEntry 的集合.

DictionaryEntry 简例:


Hashtable 成员:


入手练习:


遍历:


Contains()、ContainsKey()、ContainsValue():


Keys、Values:

原文地址:https://www.cnblogs.com/del/p/1925749.html