編輯

共用方式為


ImmutableSortedDictionary<TKey,TValue>.WithComparers Method

Definition

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>)

Source:
ImmutableSortedDictionary_2.cs
Source:
ImmutableSortedDictionary_2.cs
Source:
ImmutableSortedDictionary_2.cs
Source:
ImmutableSortedDictionary_2.cs

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>)

Source:
ImmutableSortedDictionary_2.cs
Source:
ImmutableSortedDictionary_2.cs
Source:
ImmutableSortedDictionary_2.cs
Source:
ImmutableSortedDictionary_2.cs

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