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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應