ImmutableSortedDictionary<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(IComparer<TKey>) |
Gets an instance of the immutable sorted dictionary that uses the specified key comparer. |
WithComparers(IComparer<TKey>, IEqualityComparer<TValue>) |
Gets an instance of the immutable sorted dictionary that uses the specified key and value comparers. |
WithComparers(IComparer<TKey>)
Gets an instance of the immutable sorted dictionary that uses the specified key comparer.
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)
Parameters
- keyComparer
- IComparer<TKey>
The key comparer to use.
Returns
An instance of the immutable dictionary that uses the given comparer.
Applies to
WithComparers(IComparer<TKey>, IEqualityComparer<TValue>)
Gets an instance of the immutable sorted dictionary that uses the specified key and value comparers.
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)
Parameters
- keyComparer
- IComparer<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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for