HybridDictionary is a specialized Collection in .Net 4. It implements IDictionary by using a ListDictionary when the collection is small, and a Hashtable when the collection is large.
When to Use?
HyBridDictionary class is recommended for cases where the number of elements in a dictionary is unknown. It takes advantage of the improved performance of a ListDictionary with small collections, and offers the flexibility of switching to a Hashtable which handles larger collections better than ListDictionary.
The foreach statement of requires the type of each element in the collection. Since each element of the HybridDictionary is a key/value pair, the element type is not the type of the key or the type of the value. Instead, the element type is DictionaryEntry.
Example:
using System;
Ammar ShaukatPosted Aug 18, 2018, 7:45 AM
Thanks for the information but for a novice its difficult to understand