mscorlib 4.0.0.0 System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<TKey,TValue>> To be added. To be added.

Each element is a key/value pair that is stored in a object.

Each pair must have a unique key. Implementations can vary in whether they allow you to specify a key that is null. The value can be null and does not have to be unique. The interface allows the contained keys and values to be enumerated, but it does not imply any particular sort order.

The foreach statement of the C# language (For Each in Visual Basic, for each in C++) requires the type of each element in the collection. Because each element of the interface 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 , as the following example illustrates.

code reference: Generic.IDictionary#11

The foreach statement is a wrapper around the enumerator; it allows only reading from the collection, not writing to the collection.

Represents a generic read-only collection of key/value pairs.

- Method
  4.0.0.0
  System.Boolean `` To be added. To be added. To be added. To be added.
- Property
  4.0.0.0
  TValue `` To be added. To be added. To be added. To be added.
- Property
  4.0.0.0
  System.Collections.Generic.IEnumerable<TKey> To be added.

  The order of the keys in the enumerable collection is unspecified, but the implementation must guarantee that the keys are in the same order as the corresponding values in the enumerable collection that is returned by the property.

  Gets an enumerable collection that contains the keys in the read-only dictionary.

- Method
  4.0.0.0
  System.Boolean `` `` To be added. To be added. To be added. To be added. To be added.
- Property
  4.0.0.0
  System.Collections.Generic.IEnumerable<TValue> To be added.

  The order of the values in the enumerable collection is unspecified, but the implementation must guarantee that the values are in the same order as the corresponding keys in the enumerable collection that is returned by the property.

  Gets an enumerable collection that contains the values in the read-only dictionary.