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

Syntax

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

Value

A collection of the values in the dictionary.

Remarks

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.

Requirements

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