Defines a dictionary key/value pair that can be set or retrieved.
Assembly: mscorlib (in mscorlib.dll)
Initializes an instance of thetype with the specified key and value.
Indicates whether this instance and a specified object are equal.(Inherited from ValueType.)
Returns the hash code for this instance.(Inherited from ValueType.)
Returns the fully qualified type name of this instance.(Inherited from ValueType.)
The IDictionaryEnumerator.Entry method returns an instance of this type.
The foreach statement of the C# language (for each in Visual C++, For Each in Visual Basic) requires the type of each element in the collection. Since each element of the IDictionary 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 . For example:
The foreach statement is a wrapper around the enumerator, which only allows reading from, not writing to, the collection.
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
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.