ImmutableDictionary<TKey,TValue>.WithComparers Method
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.
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. |
- Source:
- ImmutableDictionary_2.cs
- 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
.NET 10 и друге верзије
Производ | Верзије |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- ImmutableDictionary_2.cs
- 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
.NET 10 и друге верзије
Производ | Верзије |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
.NET повратне информације
.NET је пројекат отвореног кода. Изаберите везу да бисте обезбедили повратне информације: