2 instantiations of Comparers
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableDictionary_2.Comparers.cs (2)
26
internal static readonly Comparers Default = new
Comparers
(EqualityComparer<TKey>.Default, EqualityComparer<TValue>.Default);
158
: new
Comparers
(keyComparer, valueComparer);
25 references to Comparers
System.Collections.Immutable (25)
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (3)
41
private
Comparers
_comparers;
95
Comparers
comparers =
Comparers
.Get(value, this.ValueComparer);
System\Collections\Immutable\ImmutableDictionary_2.Comparers.cs (8)
9
/// Contains the inner <see cref="ImmutableDictionary{TKey, TValue}.
Comparers
"/> class.
26
internal static readonly
Comparers
Default = new Comparers(EqualityComparer<TKey>.Default, EqualityComparer<TValue>.Default);
39
/// Initializes a new instance of the <see cref="
Comparers
"/> class.
150
/// <returns>An instance of <see cref="
Comparers
"/></returns>
151
internal static
Comparers
Get(IEqualityComparer<TKey> keyComparer, IEqualityComparer<TValue> valueComparer)
162
/// Returns an instance of <see cref="
Comparers
"/> that shares the same key comparers
166
/// <returns>A new instance of <see cref="
Comparers
"/></returns>
167
internal
Comparers
WithValueComparer(IEqualityComparer<TValue> valueComparer)
System\Collections\Immutable\ImmutableDictionary_2.cs (9)
43
private readonly
Comparers
_comparers;
51
private ImmutableDictionary(SortedInt32KeyNode<HashBucket> root,
Comparers
comparers, int count)
65
private ImmutableDictionary(
Comparers
? comparers = null)
67
_comparers = comparers ??
Comparers
.Get(EqualityComparer<TKey>.Default, EqualityComparer<TValue>.Default);
441
ImmutableDictionary<TKey, TValue>.
Comparers
comparers = _comparers.WithValueComparer(valueComparer);
447
Comparers
comparers =
Comparers
.Get(keyComparer, valueComparer);
828
private static ImmutableDictionary<TKey, TValue> EmptyWithComparers(
Comparers
comparers)
1016
private static ImmutableDictionary<TKey, TValue> Wrap(SortedInt32KeyNode<HashBucket> root,
Comparers
comparers, int count)
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (2)
260
internal bool TryGetValue(TKey key,
Comparers
comparers, [MaybeNullWhen(false)] out TValue value)
299
internal bool TryGetKey(TKey equalKey,
Comparers
comparers, out TKey actualKey)
System\Collections\Immutable\ImmutableDictionary_2.MutationInput.cs (3)
27
private readonly
Comparers
_comparers;
37
Comparers
comparers)
64
internal
Comparers
Comparers