CollectionExtensions Klass

Definition

Tillhandahåller tilläggsmetoder för allmänna samlingar.

public ref class CollectionExtensions abstract sealed
public static class CollectionExtensions
type CollectionExtensions = class
Public Module CollectionExtensions
Arv
CollectionExtensions

Metoder

Name Description
GetValueOrDefault<TKey,TValue>(IReadOnlyDictionary<TKey,TValue>, TKey, TValue)

Försöker hämta värdet som är associerat med det som anges key i dictionary.

GetValueOrDefault<TKey,TValue>(IReadOnlyDictionary<TKey,TValue>, TKey)

Försöker hämta värdet som är associerat med det som anges key i dictionary.

Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue)

Försöker ta bort värdet med angivet key från dictionary.

TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue)

Försöker lägga till den angivna key och value till dictionary.

Gäller för