2 instantiations of Comparers
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableDictionary_2.Comparers.cs (2)
26internal 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)
41private Comparers _comparers; 95Comparers 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. 26internal 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> 151internal 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> 167internal Comparers WithValueComparer(IEqualityComparer<TValue> valueComparer)
System\Collections\Immutable\ImmutableDictionary_2.cs (9)
43private readonly Comparers _comparers; 51private ImmutableDictionary(SortedInt32KeyNode<HashBucket> root, Comparers comparers, int count) 65private ImmutableDictionary(Comparers? comparers = null) 67_comparers = comparers ?? Comparers.Get(EqualityComparer<TKey>.Default, EqualityComparer<TValue>.Default); 441ImmutableDictionary<TKey, TValue>.Comparers comparers = _comparers.WithValueComparer(valueComparer); 447Comparers comparers = Comparers.Get(keyComparer, valueComparer); 828private static ImmutableDictionary<TKey, TValue> EmptyWithComparers(Comparers comparers) 1016private static ImmutableDictionary<TKey, TValue> Wrap(SortedInt32KeyNode<HashBucket> root, Comparers comparers, int count)
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (2)
260internal bool TryGetValue(TKey key, Comparers comparers, [MaybeNullWhen(false)] out TValue value) 299internal bool TryGetKey(TKey equalKey, Comparers comparers, out TKey actualKey)
System\Collections\Immutable\ImmutableDictionary_2.MutationInput.cs (3)
27private readonly Comparers _comparers; 37Comparers comparers) 64internal Comparers Comparers