System.Collections.Generic.Dictionary<TKey,TValue>.Values Property
Gets a collection that contains the values in the dictionary.


public Dictionary<TKey, TValue>.ValueCollection Values { get; }


A collection of the values in the dictionary.


This property is read-only.

The order of the values in the value collection is unspecified, but it is the same order as the associated values in the key collection returned by the Dictionary<TKey, TValue>.Keys property.

The returned value collection is not a static copy; instead, it refers back to the values in the original dictionary. Therefore, changes to the dictionary continue to be reflected in the value collection.


Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions:,
Since: .NET 2.0