|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
Dictionary<TKey, TValue>-Klasse
System.Collections.Generic.Dictionary<TKey, TValue>
System.ServiceModel.MessageQuerySet
Namespace: System.Collections.Generic
Assembly: mscorlib (in 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
Typparameter
- TKey
Der Typ der Schlüssel im Wörterbuch.
- TValue
Der Typ der Werte im Wörterbuch.
Der Dictionary<TKey, TValue>-Typ macht die folgenden Member verfügbar.
| Name | Beschreibung | |
|---|---|---|
![]() ![]() ![]() ![]() | 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) |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() ![]() ![]() | Comparer | |
![]() ![]() ![]() ![]() | Count | |
![]() ![]() ![]() ![]() | Item | |
![]() ![]() ![]() ![]() | Keys | |
![]() ![]() ![]() ![]() | Values |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() ![]() ![]() | Add | |
![]() ![]() ![]() ![]() | Clear | |
![]() ![]() ![]() ![]() | ContainsKey | |
![]() ![]() ![]() ![]() | ContainsValue | |
![]() ![]() ![]() ![]() | Equals(Object) | |
![]() ![]() ![]() ![]() | Finalize | |
![]() ![]() ![]() ![]() | GetEnumerator | |
![]() ![]() ![]() ![]() | GetHashCode | |
![]() | GetObjectData | |
![]() ![]() ![]() ![]() | GetType | |
![]() ![]() ![]() ![]() | MemberwiseClone | |
![]() | OnDeserialization | |
![]() ![]() ![]() ![]() | Remove | |
![]() ![]() ![]() ![]() | ToString | |
![]() ![]() ![]() ![]() | TryGetValue |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() ![]() ![]() | Aggregate<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, KeyValuePair<TKey, TValue>, KeyValuePair<TKey, TValue>>) | Überladen. |
![]() ![]() ![]() ![]() | Aggregate<KeyValuePair<TKey, TValue>, TAccumulate>(TAccumulate, Func<TAccumulate, KeyValuePair<TKey, TValue>, TAccumulate>) | Überladen. |
![]() ![]() ![]() ![]() | Aggregate<KeyValuePair<TKey, TValue>, TAccumulate, TResult>(TAccumulate, Func<TAccumulate, KeyValuePair<TKey, TValue>, TAccumulate>, Func<TAccumulate, TResult>) | Überladen. |
![]() ![]() ![]() ![]() | All<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Any<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | Any<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | AsEnumerable<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() | AsParallel() | Überladen. |
![]() ![]() ![]() | AsParallel<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() | AsQueryable() | Überladen. |
![]() ![]() ![]() | AsQueryable<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Überladen. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Überladen. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Überladen. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Überladen. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Überladen. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Überladen. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Überladen. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Überladen. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Überladen. |
![]() ![]() ![]() ![]() | Average<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Überladen. |
![]() ![]() ![]() ![]() | Cast<TResult> | |
![]() ![]() ![]() ![]() | Concat<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Contains<KeyValuePair<TKey, TValue>>(KeyValuePair<TKey, TValue>) | Überladen. |
![]() ![]() ![]() ![]() | Contains<KeyValuePair<TKey, TValue>>(KeyValuePair<TKey, TValue>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Überladen. |
![]() ![]() ![]() ![]() | Count<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | Count<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | DefaultIfEmpty<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | DefaultIfEmpty<KeyValuePair<TKey, TValue>>(KeyValuePair<TKey, TValue>) | Überladen. |
![]() ![]() ![]() ![]() | Distinct<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | Distinct<KeyValuePair<TKey, TValue>>(IEqualityComparer<KeyValuePair<TKey, TValue>>) | Überladen. |
![]() ![]() ![]() ![]() | ElementAt<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | ElementAtOrDefault<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Except<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Überladen. |
![]() ![]() ![]() ![]() | Except<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Überladen. |
![]() ![]() ![]() ![]() | First<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | First<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | FirstOrDefault<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | FirstOrDefault<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Überladen. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IEqualityComparer<TKey>) | Überladen. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>) | Überladen. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<TKey, IEnumerable<KeyValuePair<TKey, TValue>>, TResult>) | Überladen. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, IEqualityComparer<TKey>) | Überladen. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<TKey, IEnumerable<KeyValuePair<TKey, TValue>>, TResult>, IEqualityComparer<TKey>) | Überladen. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, Func<TKey, IEnumerable<TElement>, TResult>) | Überladen. |
![]() ![]() ![]() ![]() | GroupBy<KeyValuePair<TKey, TValue>, TKey, TElement, TResult>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, Func<TKey, IEnumerable<TElement>, TResult>, IEqualityComparer<TKey>) | Überladen. |
![]() ![]() ![]() ![]() | GroupJoin<KeyValuePair<TKey, TValue>, TInner, TKey, TResult>(IEnumerable<TInner>, Func<KeyValuePair<TKey, TValue>, TKey>, Func<TInner, TKey>, Func<KeyValuePair<TKey, TValue>, IEnumerable<TInner>, TResult>) | Überladen. |
![]() ![]() ![]() ![]() | 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>) | Überladen. |
![]() ![]() ![]() ![]() | Intersect<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Überladen. |
![]() ![]() ![]() ![]() | Intersect<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Überladen. |
![]() ![]() ![]() ![]() | Join<KeyValuePair<TKey, TValue>, TInner, TKey, TResult>(IEnumerable<TInner>, Func<KeyValuePair<TKey, TValue>, TKey>, Func<TInner, TKey>, Func<KeyValuePair<TKey, TValue>, TInner, TResult>) | Überladen. |
![]() ![]() ![]() ![]() | 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>) | Überladen. |
![]() ![]() ![]() ![]() | Last<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | Last<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | LastOrDefault<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | LastOrDefault<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | LongCount<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | LongCount<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Überladen. |
![]() ![]() ![]() ![]() | Max<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, TResult>) | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Überladen. |
![]() ![]() ![]() ![]() | Min<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, TResult>) | Überladen. |
![]() ![]() ![]() ![]() | OfType<TResult> | |
![]() ![]() ![]() ![]() | OrderBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Überladen. |
![]() ![]() ![]() ![]() | OrderBy<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IComparer<TKey>) | Überladen. |
![]() ![]() ![]() ![]() | OrderByDescending<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Überladen. |
![]() ![]() ![]() ![]() | OrderByDescending<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IComparer<TKey>) | Überladen. |
![]() ![]() ![]() ![]() | Reverse<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | Select<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, TResult>) | Überladen. |
![]() ![]() ![]() ![]() | Select<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, Int32, TResult>) | Überladen. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, IEnumerable<TResult>>) | Überladen. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TResult>(Func<KeyValuePair<TKey, TValue>, Int32, IEnumerable<TResult>>) | Überladen. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TCollection, TResult>(Func<KeyValuePair<TKey, TValue>, Int32, IEnumerable<TCollection>>, Func<KeyValuePair<TKey, TValue>, TCollection, TResult>) | Überladen. |
![]() ![]() ![]() ![]() | SelectMany<KeyValuePair<TKey, TValue>, TCollection, TResult>(Func<KeyValuePair<TKey, TValue>, IEnumerable<TCollection>>, Func<KeyValuePair<TKey, TValue>, TCollection, TResult>) | Überladen. |
![]() ![]() ![]() ![]() | SequenceEqual<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Überladen. |
![]() ![]() ![]() ![]() | SequenceEqual<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Überladen. |
![]() ![]() ![]() ![]() | Single<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | Single<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | SingleOrDefault<KeyValuePair<TKey, TValue>>() | Überladen. |
![]() ![]() ![]() ![]() | SingleOrDefault<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | Skip<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | SkipWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | SkipWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Decimal>>) | Überladen. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Double>>) | Überladen. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32>) | Überladen. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int32>>) | Überladen. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int64>) | Überladen. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Int64>>) | Überladen. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Single>) | Überladen. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Nullable<Single>>) | Überladen. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Double>) | Überladen. |
![]() ![]() ![]() ![]() | Sum<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Decimal>) | Überladen. |
![]() ![]() ![]() ![]() | Take<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | TakeWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | TakeWhile<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | ToArray<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Überladen. |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IEqualityComparer<TKey>) | Überladen. |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>) | Überladen. |
![]() ![]() ![]() ![]() | ToDictionary<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, IEqualityComparer<TKey>) | Überladen. |
![]() ![]() ![]() ![]() | ToList<KeyValuePair<TKey, TValue>> | |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>) | Überladen. |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey>(Func<KeyValuePair<TKey, TValue>, TKey>, IEqualityComparer<TKey>) | Überladen. |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>) | Überladen. |
![]() ![]() ![]() ![]() | ToLookup<KeyValuePair<TKey, TValue>, TKey, TElement>(Func<KeyValuePair<TKey, TValue>, TKey>, Func<KeyValuePair<TKey, TValue>, TElement>, IEqualityComparer<TKey>) | Überladen. |
![]() ![]() ![]() ![]() | Union<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>) | Überladen. |
![]() ![]() ![]() ![]() | Union<KeyValuePair<TKey, TValue>>(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<KeyValuePair<TKey, TValue>>) | Überladen. |
![]() ![]() ![]() ![]() | Where<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Boolean>) | Überladen. |
![]() ![]() ![]() ![]() | Where<KeyValuePair<TKey, TValue>>(Func<KeyValuePair<TKey, TValue>, Int32, Boolean>) | Überladen. |
![]() ![]() ![]() | Zip<KeyValuePair<TKey, TValue>, TSecond, TResult> |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() ![]() ![]() ![]() | 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 |
Hinweis |
|---|
Hinweis |
|---|
Hinweis |
|---|
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 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.



