ImmutableSortedDictionary<TKey,TValue>.WithComparers Metod

Definition

Överlagringar

Name Description
WithComparers(IComparer<TKey>)

Hämtar en instans av den oföränderliga sorterade ordlistan som använder den angivna nyckeljäxaren.

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

Hämtar en instans av den oföränderliga sorterade ordlistan som använder de angivna nyckel- och värdejäxarna.

WithComparers(IComparer<TKey>)

Källa:
ImmutableSortedDictionary_2.cs
Källa:
ImmutableSortedDictionary_2.cs
Källa:
ImmutableSortedDictionary_2.cs
Källa:
ImmutableSortedDictionary_2.cs
Källa:
ImmutableSortedDictionary_2.cs
Källa:
ImmutableSortedDictionary_2.cs

Hämtar en instans av den oföränderliga sorterade ordlistan som använder den angivna nyckeljäxaren.

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

Parametrar

keyComparer
IComparer<TKey>

Den nyckeljäxa som ska användas.

Returer

En instans av den oföränderliga ordlistan som använder den angivna jämförelsen.

Gäller för

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

Källa:
ImmutableSortedDictionary_2.cs
Källa:
ImmutableSortedDictionary_2.cs
Källa:
ImmutableSortedDictionary_2.cs
Källa:
ImmutableSortedDictionary_2.cs
Källa:
ImmutableSortedDictionary_2.cs
Källa:
ImmutableSortedDictionary_2.cs

Hämtar en instans av den oföränderliga sorterade ordlistan som använder de angivna nyckel- och värdejäxarna.

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

Parametrar

keyComparer
IComparer<TKey>

Den nyckeljäxa som ska användas.

valueComparer
IEqualityComparer<TValue>

Den värdejäxare som ska användas.

Returer

En instans av den oföränderliga ordlistan som använder de angivna jämförelserna.

Gäller för