.NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library
by Brad Abrams
Description
A System.Collections.Hashtable represents a dictionary with a constant lookup time that contains entries of associated keys and values. The type of each entry in a System.Collections.Hashtable is System.Collections.DictionaryEntry. A statement that exposes each element in the collection is required to iterate over this type. [Note: See example.]
Objects used as keys in a System.Collections.Hashtable are required to either implement both System.Object.GetHashCode and System.Object.Equals or neither. Furthermore, for a particular key, these methods are required to produce the same results when called with the same parameters while that key exists in a particular System.Collections.Hashtable. Keys cannot be mutated while they are used ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access