ImmutableDictionary<TKey,TValue>.WithComparers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithComparers(IEqualityComparer<TKey>) |
Gets an instance of the immutable dictionary that uses the specified key comparer. |
WithComparers(IEqualityComparer<TKey>, IEqualityComparer<TValue>) |
Gets an instance of the immutable dictionary that uses the specified key and value comparers. |
WithComparers(IEqualityComparer<TKey>)
- Source:
- ImmutableDictionary_2.cs
- Source:
- ImmutableDictionary_2.cs
- Source:
- ImmutableDictionary_2.cs
Gets an instance of the immutable dictionary that uses the specified key comparer.
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)
Parameters
- keyComparer
- IEqualityComparer<TKey>
The key comparer to use.
Returns
An instance of the immutable dictionary that uses the given comparer.
Applies to
WithComparers(IEqualityComparer<TKey>, IEqualityComparer<TValue>)
- Source:
- ImmutableDictionary_2.cs
- Source:
- ImmutableDictionary_2.cs
- Source:
- ImmutableDictionary_2.cs
Gets an instance of the immutable dictionary that uses the specified key and value comparers.
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)
Parameters
- keyComparer
- IEqualityComparer<TKey>
The key comparer to use.
- valueComparer
- IEqualityComparer<TValue>
The value comparer to use.
Returns
An instance of the immutable dictionary that uses the given comparers.
Applies to
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per