|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
Dictionary<TKey, TValue>, classe
System.Collections.Generic.Dictionary<TKey, TValue>
System.ServiceModel.MessageQuerySet
Espace de noms : System.Collections.Generic
Assembly : mscorlib (dans mscorlib.dll)
[SerializableAttribute] [ComVisibleAttribute(false)] public class Dictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IDictionary, ICollection, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, ISerializable, IDeserializationCallback
Paramètres de type
- TKey
Type des clés dans le dictionnaire.
- TValue
Type des valeurs dans le dictionnaire.
Le type Dictionary<TKey, TValue> expose les membres suivants.
| Nom | Description | |
|---|---|---|
![]() ![]() ![]() ![]() | Dictionary<TKey, TValue>() | |
![]() ![]() ![]() ![]() | Dictionary<TKey, TValue>(IDictionary<TKey, TValue>) | |
![]() ![]() ![]() ![]() | Dictionary<TKey, TValue>(IEqualityComparer<TKey>) | |
![]() ![]() ![]() ![]() | Dictionary<TKey, TValue>(Int32) | |
![]() ![]() ![]() ![]() | Dictionary<TKey, TValue>(IDictionary<TKey, TValue>, IEqualityComparer<TKey>) | |
![]() ![]() ![]() ![]() | Dictionary<TKey, TValue>(Int32, IEqualityComparer<TKey>) | |
![]() | Dictionary<TKey, TValue>(SerializationInfo, StreamingContext) |
| Nom | Description | |
|---|---|---|
![]() ![]() ![]() ![]() | Comparer | |
![]() ![]() ![]() ![]() | Count | |
![]() ![]() ![]() ![]() | Item | |
![]() ![]() ![]() ![]() | Keys | |
![]() ![]() ![]() ![]() | Values |
| Nom | Description | |
|---|---|---|
![]() ![]() ![]() ![]() | Add | |
![]() ![]() ![]() ![]() | Clear | |
![]() ![]() ![]() ![]() | ContainsKey | |
![]() ![]() ![]() ![]() | ContainsValue | |
![]() ![]() ![]() ![]() | Equals(Object) | |
![]() ![]() ![]() ![]() | Finalize | |
![]() ![]() ![]() ![]() | GetEnumerator | |
![]() ![]() ![]() ![]() | GetHashCode | |
![]() | GetObjectData | |
![]() ![]() ![]() ![]() | GetType | |
![]() ![]() ![]() ![]() | MemberwiseClone | |
![]() | OnDeserialization | |
![]() ![]() ![]() ![]() | Remove | |
![]() ![]() ![]() ![]() | ToString | |
![]() ![]() ![]() ![]() | TryGetValue |
| Nom | Description | |
|---|---|---|
![]() ![]() ![]() ![]() | Aggregate<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, KeyValuePair<TKey, TValue>, KeyValuePair<TKey, TValue>>) | Surchargé. |
![]() ![]() ![]() ![]() | Aggregate<KeyValuePair<TKey, TValue>, TAccumulate>(TAccumulate, Func<TAccumulate, KeyValuePair<TKey, TValue>, TAccumulate>) | Surchargé. |
![]() ![]() ![]() ![]() | Aggregate<KeyValuePair<TKey, TValue>, TAccumulate, TResult>(TAccumulate, Func<TAccumulate, KeyValuePair<TKey, TValue>, TAccumulate>, Func<TAccumulate, TResult>) | Surchargé. |
![]() ![]() ![]() ![]() | All<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Any<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | Any<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | AsEnumerable<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() | AsParallel() | Surchargé. |
![]() ![]() ![]() | AsParallel<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() | AsQueryable() | Surchargé. |
![]() ![]() ![]() | AsQueryable<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Surchargé. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Surchargé. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Surchargé. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Surchargé. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Surchargé. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Surchargé. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Surchargé. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Surchargé. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Surchargé. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Surchargé. |
![]() ![]() ![]() ![]() | Cast<TResult> | |
![]() ![]() ![]() ![]() | Concat<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Contains<KeyValuePair<TKey, TValue>>(KeyValuePair<TKey, TValue>) | Surchargé. |
![]() ![]() ![]() ![]() | Contains<KeyValuePair<TKey, TValue>>(KeyValuePair<TKey, TValue>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Surchargé. |
![]() ![]() ![]() ![]() | Count<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | Count<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | DefaultIfEmpty<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | DefaultIfEmpty<KeyValuePair<TKey, TValue>>(KeyValuePair<TKey, TValue>) | Surchargé. |
![]() ![]() ![]() ![]() | Distinct<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | Distinct<KeyValuePair<TKey, TValue>>(IEqualityComparer<KeyValuePair<TKey, TValue>>) | Surchargé. |
![]() ![]() ![]() ![]() | ElementAt<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | ElementAtOrDefault<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Except<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Surchargé. |
![]() ![]() ![]() ![]() | Except<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Surchargé. |
![]() ![]() ![]() ![]() | First<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | First<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | FirstOrDefault<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | FirstOrDefault<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IEqualityComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>) | Surchargé. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<TKey, IEnumerable<KeyValuePair<TKey, TValue>>, TResult>) | Surchargé. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, IEqualityComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<TKey, IEnumerable<KeyValuePair<TKey, TValue>>, TResult>, IEqualityComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, Func<TKey, IEnumerable<TElement>, TResult>) | Surchargé. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, Func<TKey, IEnumerable<TElement>, TResult>, IEqualityComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | GroupJoin<KeyValuePair<TKey, TValue>, TInner, TKey, TResult>(IEnumerable<TInner>, Func<KeyValuePair<TKey, TValue>, TKey>, Func<TInner, TKey>, Func<KeyValuePair<TKey, TValue>, IEnumerable<TInner>, TResult>) | Surchargé. |
![]() ![]() ![]() ![]() | GroupJoin<KeyValuePair<TKey, TValue>, TInner, TKey, TResult>(IEnumerable<TInner>, Func<KeyValuePair<TKey, TValue>, TKey>, Func<TInner, TKey>, Func<KeyValuePair<TKey, TValue>, IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | Intersect<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Surchargé. |
![]() ![]() ![]() ![]() | Intersect<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Surchargé. |
![]() ![]() ![]() ![]() | Join<KeyValuePair<TKey, TValue>, TInner, TKey, TResult>(IEnumerable<TInner>, Func<KeyValuePair<TKey, TValue>, TKey>, Func<TInner, TKey>, Func<KeyValuePair<TKey, TValue>, TInner, TResult>) | Surchargé. |
![]() ![]() ![]() ![]() | Join<KeyValuePair<TKey, TValue>, TInner, TKey, TResult>(IEnumerable<TInner>, Func<KeyValuePair<TKey, TValue>, TKey>, Func<TInner, TKey>, Func<KeyValuePair<TKey, TValue>, TInner, TResult>, IEqualityComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | Last<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | Last<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | LastOrDefault<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | LastOrDefault<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | LongCount<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | LongCount<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Surchargé. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, TResult>) | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Surchargé. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, TResult>) | Surchargé. |
![]() ![]() ![]() ![]() | OfType<TResult> | |
![]() ![]() ![]() ![]() | OrderBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | OrderBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | OrderByDescending<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | OrderByDescending<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | Reverse<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Select<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, TResult>) | Surchargé. |
![]() ![]() ![]() ![]() | Select<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, Int32, TResult>) | Surchargé. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, IEnumerable<TResult>>) | Surchargé. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, Int32, IEnumerable<TResult>>) | Surchargé. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TCollection, TResult>(Func<KeyValuePair<TKey, TValue>, Int32, IEnumerable<TCollection>>, Func<KeyValuePair<TKey, TValue>, TCollection, TResult>) | Surchargé. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TCollection, TResult>(Func<KeyValuePair<TKey, TValue>, IEnumerable<TCollection>>, Func<KeyValuePair<TKey, TValue>, TCollection, TResult>) | Surchargé. |
![]() ![]() ![]() ![]() | SequenceEqual<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Surchargé. |
![]() ![]() ![]() ![]() | SequenceEqual<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Surchargé. |
![]() ![]() ![]() ![]() | Single<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | Single<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | SingleOrDefault<KeyValuePair<TKey, TValue>>() | Surchargé. |
![]() ![]() ![]() ![]() | SingleOrDefault<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | Skip<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | SkipWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | SkipWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Surchargé. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Surchargé. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Surchargé. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Surchargé. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Surchargé. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Surchargé. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Surchargé. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Surchargé. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Surchargé. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Surchargé. |
![]() ![]() ![]() ![]() | Take<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | TakeWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | TakeWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | ToArray<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IEqualityComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>) | Surchargé. |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, IEqualityComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | ToList<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IEqualityComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>) | Surchargé. |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, IEqualityComparer<TKey>) | Surchargé. |
![]() ![]() ![]() ![]() | Union<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Surchargé. |
![]() ![]() ![]() ![]() | Union<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Surchargé. |
![]() ![]() ![]() ![]() | Where<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Surchargé. |
![]() ![]() ![]() ![]() | Where<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32, Boolean>) | Surchargé. |
![]() ![]() ![]() | Zip<KeyValuePair<TKey, TValue>, TSecond, TResult> |
| Nom | Description | |
|---|---|---|
![]() ![]() ![]() ![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.Add | |
![]() ![]() ![]() ![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.Contains | |
![]() ![]() ![]() ![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.CopyTo | |
![]() ![]() ![]() ![]() ![]() | ICollection.CopyTo | |
![]() ![]() ![]() ![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly | |
![]() ![]() ![]() ![]() ![]() | ICollection.IsSynchronized | |
![]() ![]() ![]() ![]() ![]() | ICollection<KeyValuePair<TKey, TValue>>.Remove | |
![]() ![]() ![]() ![]() ![]() | ICollection.SyncRoot | |
![]() ![]() ![]() ![]() ![]() | IDictionary.Add | |
![]() ![]() ![]() ![]() ![]() | IDictionary.Contains | |
![]() ![]() ![]() ![]() ![]() | IDictionary.GetEnumerator | |
![]() ![]() ![]() ![]() ![]() | IDictionary.IsFixedSize | |
![]() ![]() ![]() ![]() ![]() | IDictionary.IsReadOnly | |
![]() ![]() ![]() ![]() ![]() | IDictionary.Item | |
![]() ![]() ![]() ![]() ![]() | IDictionary<TKey, TValue>.Keys | |
![]() ![]() ![]() ![]() ![]() | IDictionary.Keys | |
![]() ![]() ![]() ![]() ![]() | IDictionary.Remove | |
![]() ![]() ![]() ![]() ![]() | IDictionary<TKey, TValue>.Values | |
![]() ![]() ![]() ![]() ![]() | IDictionary.Values | |
![]() ![]() ![]() ![]() ![]() | IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator | |
![]() ![]() ![]() ![]() ![]() | IEnumerable.GetEnumerator | |
![]() ![]() ![]() | IReadOnlyDictionary<TKey, TValue>.Keys | |
![]() ![]() ![]() | IReadOnlyDictionary<TKey, TValue>.Values |
Remarque |
|---|
Remarque |
|---|
Remarque |
|---|
using System; using System.Collections.Generic; public class Example { public static void Main() { // Create a new dictionary of strings, with string keys. // Dictionary<string, string> openWith = new Dictionary<string, string>(); // Add some elements to the dictionary. There are no // duplicate keys, but some of the values are duplicates. openWith.Add("txt", "notepad.exe"); openWith.Add("bmp", "paint.exe"); openWith.Add("dib", "paint.exe"); openWith.Add("rtf", "wordpad.exe"); // The Add method throws an exception if the new key is // already in the dictionary. try { openWith.Add("txt", "winword.exe"); } catch (ArgumentException) { Console.WriteLine("An element with Key = \"txt\" already exists."); } // The Item property is another name for the indexer, so you // can omit its name when accessing elements. Console.WriteLine("For key = \"rtf\", value = {0}.", openWith["rtf"]); // The indexer can be used to change the value associated // with a key. openWith["rtf"] = "winword.exe"; Console.WriteLine("For key = \"rtf\", value = {0}.", openWith["rtf"]); // If a key does not exist, setting the indexer for that key // adds a new key/value pair. openWith["doc"] = "winword.exe"; // The indexer throws an exception if the requested key is // not in the dictionary. try { Console.WriteLine("For key = \"tif\", value = {0}.", openWith["tif"]); } catch (KeyNotFoundException) { Console.WriteLine("Key = \"tif\" is not found."); } // When a program often has to try keys that turn out not to // be in the dictionary, TryGetValue can be a more efficient // way to retrieve values. string value = ""; if (openWith.TryGetValue("tif", out value)) { Console.WriteLine("For key = \"tif\", value = {0}.", value); } else { Console.WriteLine("Key = \"tif\" is not found."); } // ContainsKey can be used to test keys before inserting // them. if (!openWith.ContainsKey("ht")) { openWith.Add("ht", "hypertrm.exe"); Console.WriteLine("Value added for key = \"ht\": {0}", openWith["ht"]); } // When you use foreach to enumerate dictionary elements, // the elements are retrieved as KeyValuePair objects. Console.WriteLine(); foreach( KeyValuePair<string, string> kvp in openWith ) { Console.WriteLine("Key = {0}, Value = {1}", kvp.Key, kvp.Value); } // To get the values alone, use the Values property. Dictionary<string, string>.ValueCollection valueColl = openWith.Values; // The elements of the ValueCollection are strongly typed // with the type that was specified for dictionary values. Console.WriteLine(); foreach( string s in valueColl ) { Console.WriteLine("Value = {0}", s); } // To get the keys alone, use the Keys property. Dictionary<string, string>.KeyCollection keyColl = openWith.Keys; // The elements of the KeyCollection are strongly typed // with the type that was specified for dictionary keys. Console.WriteLine(); foreach( string s in keyColl ) { Console.WriteLine("Key = {0}", s); } // Use the Remove method to remove a key/value pair. Console.WriteLine("\nRemove(\"doc\")"); openWith.Remove("doc"); if (!openWith.ContainsKey("doc")) { Console.WriteLine("Key \"doc\" is not found."); } } } /* This code example produces the following output: An element with Key = "txt" already exists. For key = "rtf", value = wordpad.exe. For key = "rtf", value = winword.exe. Key = "tif" is not found. Key = "tif" is not found. Value added for key = "ht": hypertrm.exe Key = txt, Value = notepad.exe Key = bmp, Value = paint.exe Key = dib, Value = paint.exe Key = rtf, Value = winword.exe Key = doc, Value = winword.exe Key = ht, Value = hypertrm.exe Value = notepad.exe Value = paint.exe Value = paint.exe Value = winword.exe Value = winword.exe Value = hypertrm.exe Key = txt Key = bmp Key = dib Key = rtf Key = doc Key = ht Remove("doc") Key "doc" is not found. */
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.



