Comparteix a través de


ImmutableDictionary<TKey,TValue>.WithComparers Método

Definición

Sobrecargas

WithComparers(IEqualityComparer<TKey>)

Obtiene una instancia del diccionario inmutable que usa el comparador de claves especificado.

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

Obtiene una instancia del diccionario inmutable que usa los comparadores de clave y valor especificados.

WithComparers(IEqualityComparer<TKey>)

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

Obtiene una instancia del diccionario inmutable que usa el comparador de claves especificado.

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)

Parámetros

keyComparer
IEqualityComparer<TKey>

Comparador de claves a utilizar.

Devoluciones

Instancia del diccionario inmutable que usa el comparador especificado.

Se aplica a

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

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

Obtiene una instancia del diccionario inmutable que usa los comparadores de clave y valor especificados.

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)

Parámetros

keyComparer
IEqualityComparer<TKey>

Comparador de claves a utilizar.

valueComparer
IEqualityComparer<TValue>

Comparador de claves a utilizar.

Devoluciones

Instancia del diccionario inmutable que usa los comparadores especificados.

Se aplica a