|
Este artículo proviene de un motor de traducción automática. Mueva el puntero sobre las frases del artículo para ver el texto original. Más información.
|
Traducción
Original
|
Dictionary<TKey, TValue> (Clase)
System.Collections.Generic.Dictionary<TKey, TValue>
System.ServiceModel.MessageQuerySet
Espacio de nombres: System.Collections.Generic
Ensamblado: mscorlib (en 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
Parámetros de tipo
- TKey
Tipo de las claves del diccionario.
- TValue
Tipo de los valores del diccionario.
El tipo Dictionary<TKey, TValue> expone los siguientes miembros.
| Nombre | Descripción | |
|---|---|---|
![]() ![]() ![]() ![]() | 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) |
| Nombre | Descripción | |
|---|---|---|
![]() ![]() ![]() ![]() | Comparer | |
![]() ![]() ![]() ![]() | Count | |
![]() ![]() ![]() ![]() | Item | |
![]() ![]() ![]() ![]() | Keys | |
![]() ![]() ![]() ![]() | Values |
| Nombre | Descripción | |
|---|---|---|
![]() ![]() ![]() ![]() | Add | |
![]() ![]() ![]() ![]() | Clear | |
![]() ![]() ![]() ![]() | ContainsKey | |
![]() ![]() ![]() ![]() | ContainsValue | |
![]() ![]() ![]() ![]() | Equals(Object) | |
![]() ![]() ![]() ![]() | Finalize | |
![]() ![]() ![]() ![]() | GetEnumerator | |
![]() ![]() ![]() ![]() | GetHashCode | |
![]() | GetObjectData | |
![]() ![]() ![]() ![]() | GetType | |
![]() ![]() ![]() ![]() | MemberwiseClone | |
![]() | OnDeserialization | |
![]() ![]() ![]() ![]() | Remove | |
![]() ![]() ![]() ![]() | ToString | |
![]() ![]() ![]() ![]() | TryGetValue |
| Nombre | Descripción | |
|---|---|---|
![]() ![]() ![]() ![]() | Aggregate<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, KeyValuePair<TKey, TValue>, KeyValuePair<TKey, TValue>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Aggregate<KeyValuePair<TKey, TValue>, TAccumulate>(TAccumulate, Func<TAccumulate, KeyValuePair<TKey, TValue>, TAccumulate>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Aggregate<KeyValuePair<TKey, TValue>, TAccumulate, TResult>(TAccumulate, Func<TAccumulate, KeyValuePair<TKey, TValue>, TAccumulate>, Func<TAccumulate, TResult>) | Sobrecargado. |
![]() ![]() ![]() ![]() | All<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Any<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | Any<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | AsEnumerable<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() | AsParallel() | Sobrecargado. |
![]() ![]() ![]() | AsParallel<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() | AsQueryable() | Sobrecargado. |
![]() ![]() ![]() | AsQueryable<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Cast<TResult> | |
![]() ![]() ![]() ![]() | Concat<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Contains<KeyValuePair<TKey, TValue>>(KeyValuePair<TKey, TValue>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Contains<KeyValuePair<TKey, TValue>>(KeyValuePair<TKey, TValue>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Count<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | Count<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | DefaultIfEmpty<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | DefaultIfEmpty<KeyValuePair<TKey, TValue>>(KeyValuePair<TKey, TValue>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Distinct<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | Distinct<KeyValuePair<TKey, TValue>>(IEqualityComparer<KeyValuePair<TKey, TValue>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | ElementAt<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | ElementAtOrDefault<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Except<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Except<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | First<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | First<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | FirstOrDefault<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | FirstOrDefault<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IEqualityComparer<TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>) | Sobrecargado. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<TKey, IEnumerable<KeyValuePair<TKey, TValue>>, TResult>) | Sobrecargado. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, IEqualityComparer<TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<TKey, IEnumerable<KeyValuePair<TKey, TValue>>, TResult>, IEqualityComparer<TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, Func<TKey, IEnumerable<TElement>, TResult>) | Sobrecargado. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, Func<TKey, IEnumerable<TElement>, TResult>, IEqualityComparer<TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | GroupJoin<KeyValuePair<TKey, TValue>, TInner, TKey, TResult>(IEnumerable<TInner>, Func<KeyValuePair<TKey, TValue>, TKey>, Func<TInner, TKey>, Func<KeyValuePair<TKey, TValue>, IEnumerable<TInner>, TResult>) | Sobrecargado. |
![]() ![]() ![]() ![]() | 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>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Intersect<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Intersect<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Join<KeyValuePair<TKey, TValue>, TInner, TKey, TResult>(IEnumerable<TInner>, Func<KeyValuePair<TKey, TValue>, TKey>, Func<TInner, TKey>, Func<KeyValuePair<TKey, TValue>, TInner, TResult>) | Sobrecargado. |
![]() ![]() ![]() ![]() | 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>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Last<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | Last<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | LastOrDefault<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | LastOrDefault<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | LongCount<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | LongCount<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, TResult>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, TResult>) | Sobrecargado. |
![]() ![]() ![]() ![]() | OfType<TResult> | |
![]() ![]() ![]() ![]() | OrderBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | OrderBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IComparer<TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | OrderByDescending<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | OrderByDescending<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IComparer<TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Reverse<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Select<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, TResult>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Select<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, Int32, TResult>) | Sobrecargado. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, IEnumerable<TResult>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, Int32, IEnumerable<TResult>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TCollection, TResult>(Func<KeyValuePair<TKey, TValue>, Int32, IEnumerable<TCollection>>, Func<KeyValuePair<TKey, TValue>, TCollection, TResult>) | Sobrecargado. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TCollection, TResult>(Func<KeyValuePair<TKey, TValue>, IEnumerable<TCollection>>, Func<KeyValuePair<TKey, TValue>, TCollection, TResult>) | Sobrecargado. |
![]() ![]() ![]() ![]() | SequenceEqual<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | SequenceEqual<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Single<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | Single<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | SingleOrDefault<KeyValuePair<TKey, TValue>>() | Sobrecargado. |
![]() ![]() ![]() ![]() | SingleOrDefault<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Skip<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | SkipWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | SkipWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Take<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | TakeWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | TakeWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | ToArray<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IEqualityComparer<TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>) | Sobrecargado. |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, IEqualityComparer<TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | ToList<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IEqualityComparer<TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>) | Sobrecargado. |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, IEqualityComparer<TKey>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Union<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Union<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Where<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Sobrecargado. |
![]() ![]() ![]() ![]() | Where<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32, Boolean>) | Sobrecargado. |
![]() ![]() ![]() | Zip<KeyValuePair<TKey, TValue>, TSecond, TResult> |
| Nombre | Descripción | |
|---|---|---|
![]() ![]() ![]() ![]() ![]() | 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 |
Nota |
|---|
Nota |
|---|
Nota |
|---|
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 (no se admite el rol Server Core), Windows Server 2008 R2 (se admite el rol Server Core con SP1 o versiones posteriores; no se admite Itanium)
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.



