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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈