41 references to Comparer
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
743return _headerHandler.DecodedHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value, _headerHandler.DecodedHeaders.Comparer); 760return _headerHandler.DecodedHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value, _headerHandler.DecodedHeaders.Comparer);
Microsoft.AspNetCore.Http (2)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
65_copy = new Dictionary<TKey, TValue>(_source, _source.Comparer);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
93_comparer = dict.Comparer;
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
65_copy = new Dictionary<TKey, TValue>(_source, _source.Comparer);
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
65_copy = new Dictionary<TKey, TValue>(_source, _source.Comparer);
Microsoft.AspNetCore.Routing (1)
Tree\LinkGenerationDecisionTree.cs (1)
146!criterion.Branches.Comparer.Equals(value, string.Empty))
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
743return _headerHandler.DecodedHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value, _headerHandler.DecodedHeaders.Comparer); 760return _headerHandler.DecodedHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value, _headerHandler.DecodedHeaders.Comparer);
Microsoft.AspNetCore.Shared.Tests (4)
AdaptiveCapacityDictionaryTests.cs (2)
1293Assert.Equal(comparer, dict._dictionaryStorage.Comparer); 1309Assert.Equal(comparer, dict._dictionaryStorage.Comparer);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
65_copy = new Dictionary<TKey, TValue>(_source, _source.Comparer);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
93_comparer = dict.Comparer;
Microsoft.Build (1)
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
126capturedItems.Comparer == StringComparer.OrdinalIgnoreCase,
Microsoft.CodeAnalysis (2)
src\Dependencies\PooledObjects\PooledDictionary.cs (2)
26var result = this.ToImmutableDictionary(this.Comparer); 31public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Dependencies\PooledObjects\PooledDictionary.cs (2)
26var result = this.ToImmutableDictionary(this.Comparer); 31public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.PooledObjects.Package (2)
PooledDictionary.cs (2)
26var result = this.ToImmutableDictionary(this.Comparer); 31public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\PooledObjects\PooledDictionary.cs (2)
26var result = this.ToImmutableDictionary(this.Comparer); 31public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Dependencies\PooledObjects\PooledDictionary.cs (2)
26var result = this.ToImmutableDictionary(this.Comparer); 31public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.Maui.Controls (1)
OrderedDictionary.cs (1)
88 get { return _dict.Comparer; }
Microsoft.ML.Core (1)
Utilities\Tree.cs (1)
121return item.Value != null && item.Value._parent == this && _children.Comparer.Equals(item.Key, item.Value.Key);
MSBuildTaskHost (4)
Immutable\ImmutableDictionary.cs (4)
169return new ImmutableDictionary<K, V>(_backing.Comparer); 186_backing = new Dictionary<K, V>(imm._backing, keyComparer ?? imm._backing.Comparer); 202public IEqualityComparer<K> KeyComparer { get => _backing.Comparer; internal set => throw new NotSupportedException(); } 211var n = new Dictionary<K, V>(_backing, _backing.Comparer);
System.Collections.Immutable (9)
System\Collections\Frozen\FrozenDictionary.cs (3)
88if (newDictionary is null || (newDictionary.Count != 0 && !newDictionary.Comparer.Equals(comparer))) 108Debug.Assert(newDictionary.Comparer.Equals(comparer)); 118IEqualityComparer<TKey> comparer = source.Comparer;
System\Collections\Frozen\Int32\Int32FrozenDictionary.cs (1)
23Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<int>.Default));
System\Collections\Frozen\KeysAndValuesFrozenDictionary.cs (1)
18protected KeysAndValuesFrozenDictionary(Dictionary<TKey, TValue> source, bool keysAreHashCodes = false) : base(source.Comparer)
System\Collections\Frozen\SmallFrozenDictionary.cs (1)
24internal SmallFrozenDictionary(Dictionary<TKey, TValue> source) : base(source.Comparer)
System\Collections\Frozen\SmallValueTypeComparableFrozenDictionary.cs (1)
32Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<TKey>.Default));
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenDictionary.cs (1)
24Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<TKey>.Default));
System\Collections\Frozen\ValueTypeDefaultComparerFrozenDictionary.cs (1)
19Debug.Assert(ReferenceEquals(source.Comparer, EqualityComparer<TKey>.Default));
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
386info.AddValue(ComparerName, Comparer, typeof(IEqualityComparer<TKey>));
System.Text.Json (1)
System\Text\Json\JsonHelpers.cs (1)
223Debug.Assert(dictionary.Comparer is IAlternateEqualityComparer<ReadOnlySpan<char>, string>);