Partager via


ImmutableDictionary<TKey,TValue>.WithComparers Méthode

Définition

Surcharges

WithComparers(IEqualityComparer<TKey>)

Obtient une instance du dictionnaire immuable qui utilise le comparateur de clé spécifié.

WithComparers(IEqualityComparer<TKey>, IEqualityComparer<TValue>)

Obtient une instance du dictionnaire immuable qui utilise les comparateurs de clé et de valeur spécifiées.

WithComparers(IEqualityComparer<TKey>)

Source:
ImmutableDictionary_2.cs
Source:
ImmutableDictionary_2.cs
Source:
ImmutableDictionary_2.cs

Obtient une instance du dictionnaire immuable qui utilise le comparateur de clé spécifié.

public:
 System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ WithComparers(System::Collections::Generic::IEqualityComparer<TKey> ^ keyComparer);
public System.Collections.Immutable.ImmutableDictionary<TKey,TValue> WithComparers (System.Collections.Generic.IEqualityComparer<TKey> keyComparer);
public System.Collections.Immutable.ImmutableDictionary<TKey,TValue> WithComparers (System.Collections.Generic.IEqualityComparer<TKey>? keyComparer);
member this.WithComparers : System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function WithComparers (keyComparer As IEqualityComparer(Of TKey)) As ImmutableDictionary(Of TKey, TValue)

Paramètres

keyComparer
IEqualityComparer<TKey>

Comparateur de clé à utiliser.

Retours

Une instance du dictionnaire immuable qui utilise le comparateur donné.

S’applique à

WithComparers(IEqualityComparer<TKey>, IEqualityComparer<TValue>)

Source:
ImmutableDictionary_2.cs
Source:
ImmutableDictionary_2.cs
Source:
ImmutableDictionary_2.cs

Obtient une instance du dictionnaire immuable qui utilise les comparateurs de clé et de valeur spécifiées.

public:
 System::Collections::Immutable::ImmutableDictionary<TKey, TValue> ^ WithComparers(System::Collections::Generic::IEqualityComparer<TKey> ^ keyComparer, System::Collections::Generic::IEqualityComparer<TValue> ^ valueComparer);
public System.Collections.Immutable.ImmutableDictionary<TKey,TValue> WithComparers (System.Collections.Generic.IEqualityComparer<TKey> keyComparer, System.Collections.Generic.IEqualityComparer<TValue> valueComparer);
public System.Collections.Immutable.ImmutableDictionary<TKey,TValue> WithComparers (System.Collections.Generic.IEqualityComparer<TKey>? keyComparer, System.Collections.Generic.IEqualityComparer<TValue>? valueComparer);
member this.WithComparers : System.Collections.Generic.IEqualityComparer<'Key> * System.Collections.Generic.IEqualityComparer<'Value> -> System.Collections.Immutable.ImmutableDictionary<'Key, 'Value>
Public Function WithComparers (keyComparer As IEqualityComparer(Of TKey), valueComparer As IEqualityComparer(Of TValue)) As ImmutableDictionary(Of TKey, TValue)

Paramètres

keyComparer
IEqualityComparer<TKey>

Comparateur de clé à utiliser.

valueComparer
IEqualityComparer<TValue>

Comparateur de valeur à utiliser.

Retours

Une instance du dictionnaire immuable qui utilise les comparateurs donnés.

S’applique à