56 references to Comparer
dotnet (2)
Commands\Run\FileBasedAppRunPlan.cs (1)
242var globalProperties = cacheEntry.GlobalProperties.Keys.Except(s_ignorableProperties, cacheEntry.GlobalProperties.Comparer);
Commands\Run\RunFileBuildCacheEntry.cs (1)
85Debug.Assert(globalProperties.Comparer == GlobalPropertiesComparer);
dotnet-aot (2)
src\sdk\src\Cli\dotnet\Commands\Run\FileBasedAppRunPlan.cs (1)
242var globalProperties = cacheEntry.GlobalProperties.Keys.Except(s_ignorableProperties, cacheEntry.GlobalProperties.Comparer);
src\sdk\src\Cli\dotnet\Commands\Run\RunFileBuildCacheEntry.cs (1)
85Debug.Assert(globalProperties.Comparer == GlobalPropertiesComparer);
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (2)
35var result = this.ToImmutableDictionary(this.Comparer); 40public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
139wildcardNamesBuilder.ToImmutableDictionaryAndFree(x => x.Key, x => x.Value.ToImmutableDictionaryAndFree(), wildcardNamesBuilder.Comparer));
Microsoft.AspNetCore.Http (2)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
65_copy = new Dictionary<TKey, TValue>(_source, _source.Comparer);
src\aspnetcore\src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
92_comparer = dict.Comparer;
Microsoft.AspNetCore.Mvc.Core (1)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
65_copy = new Dictionary<TKey, TValue>(_source, _source.Comparer);
Microsoft.AspNetCore.Razor.Runtime (1)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
65_copy = new Dictionary<TKey, TValue>(_source, _source.Comparer);
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (2)
35var result = this.ToImmutableDictionary(this.Comparer); 40public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.AspNetCore.Routing (1)
Tree\LinkGenerationDecisionTree.cs (1)
146!criterion.Branches.Comparer.Equals(value, string.Empty))
Microsoft.Build (3)
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
126Assumed.Equal(capturedItems.Comparer, StringComparer.OrdinalIgnoreCase, "MSBuild assumes case insensitive item name comparison");
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\PooledDictionary.cs (2)
31var result = this.ToImmutableDictionary(this.Comparer); 36public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.Build.Framework (1)
InterningWriteTranslator.cs (1)
68if (_stringToIds.Comparer == comparer)
Microsoft.CodeAnalysis (2)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (2)
35var result = this.ToImmutableDictionary(this.Comparer); 40public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (2)
35var result = this.ToImmutableDictionary(this.Comparer); 40public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
139wildcardNamesBuilder.ToImmutableDictionaryAndFree(x => x.Key, x => x.Value.ToImmutableDictionaryAndFree(), wildcardNamesBuilder.Comparer));
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (2)
35var result = this.ToImmutableDictionary(this.Comparer); 40public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
139wildcardNamesBuilder.ToImmutableDictionaryAndFree(x => x.Key, x => x.Value.ToImmutableDictionaryAndFree(), wildcardNamesBuilder.Comparer));
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (2)
35var result = this.ToImmutableDictionary(this.Comparer); 40public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.Extensions.Package (2)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (2)
35var result = this.ToImmutableDictionary(this.Comparer); 40public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.CodeAnalysis.NetAnalyzers (2)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
137wildcardNamesBuilder.ToImmutableDictionaryAndFree(x => x.Key, x => x.Value.ToImmutableDictionaryAndFree(), wildcardNamesBuilder.Comparer));
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
39result = this.ToImmutableDictionary(Comparer);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (2)
35var result = this.ToImmutableDictionary(this.Comparer); 40public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
139wildcardNamesBuilder.ToImmutableDictionaryAndFree(x => x.Key, x => x.Value.ToImmutableDictionaryAndFree(), wildcardNamesBuilder.Comparer));
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (2)
35var result = this.ToImmutableDictionary(this.Comparer); 40public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionArguments.cs (1)
82arguments is Dictionary<string, object?> dc && (comparer is null || ReferenceEquals(dc.Comparer, comparer)) ? dc :
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);
Microsoft.TemplateEngine.Utils (1)
DictionaryExtensions.cs (1)
31if (((Dictionary<string, T>)source).Comparer == comparer)
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (2)
35var result = this.ToImmutableDictionary(this.Comparer); 40public ImmutableDictionary<K, V> ToImmutableDictionary() => this.ToImmutableDictionary(this.Comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
139wildcardNamesBuilder.ToImmutableDictionaryAndFree(x => x.Key, x => x.Value.ToImmutableDictionaryAndFree(), wildcardNamesBuilder.Comparer));
System.Collections.Immutable (9)
System\Collections\Frozen\FrozenDictionary.cs (3)
132if (newDictionary is null || (newDictionary.Count != 0 && !newDictionary.Comparer.Equals(comparer))) 153Debug.Assert(newDictionary.Comparer.Equals(comparer)); 163IEqualityComparer<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)
31Debug.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\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
386info.AddValue(ComparerName, Comparer, typeof(IEqualityComparer<TKey>));
System.Text.Json (2)
System\Text\Json\JsonHelpers.cs (2)
199Debug.Assert(dictionary.Comparer is IAlternateEqualityComparer<ReadOnlySpan<char>, string>); 233Debug.Assert(dictionary.Comparer is ByteArrayOrdinalComparer);