Represents a nongeneric collection of key/value pairs.
Assembly: mscorlib (in mscorlib.dll)
Gets a value indicating whether theobject has a fixed size.
Gets a value indicating whether theobject is read-only.
Gets or sets the element with the specified key.
Gets an ICollection object containing the keys of the object.
Gets an ICollection object containing the values in the object.
Adds an element with the provided key and value to theobject.
Removes all elements from theobject.
Determines whether theobject contains an element with the specified key.
Returns an IDictionaryEnumerator object for the object.
Removes the element with the specified key from theobject.
Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)
Each element is a key/value pair stored in a DictionaryEntry object.
Each pair must have a unique key. Implementations can vary in whether they allow the key to be null. The value can be null and does not have to be unique. Theinterface allows the contained keys and values to be enumerated, but it does not imply any particular sort order.
implementations fall into three categories: read-only, fixed-size, variable-size. A read-only object cannot be modified. A fixed-size object does not allow the addition or removal of elements, but does allow the modification of existing elements. A variable-size object allows the addition, removal, and modification of elements.
The foreach statement of the C# language (For Each in Visual Basic) returns an object of the type of the elements in the collection. Since each element of the DictionaryEntry. For example:object 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
The foreach statement is a wrapper around the enumerator, which allows only reading from but not writing to the collection.
Notes to Implementers:
The implementing class must have a means to compare keys.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1