18 references to WithComparers
Microsoft.Build (1)
CopyOnWriteDictionary.cs (1)
172private set => _backing = _backing.WithComparers(keyComparer: value);
Microsoft.Build.Tasks.Core (1)
CopyOnWriteDictionary.cs (1)
172private set => _backing = _backing.WithComparers(keyComparer: value);
Microsoft.Build.Utilities.Core (1)
CopyOnWriteDictionary.cs (1)
172private set => _backing = _backing.WithComparers(keyComparer: value);
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (1)
25ImmutableDictionary<string, OneOrMany<AdditionalText>>.Empty.WithComparers(PathUtilities.Comparer);
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
25private static ImmutableDictionary<LocalizableString, Exception?> s_localizableStringToException = ImmutableDictionary<LocalizableString, Exception?>.Empty.WithComparers(Roslyn.Utilities.ReferenceEqualityComparer.Instance);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
128var alternativeMap = ImmutableDictionary<string, T>.Empty.WithComparers(keyComparer: StringComparer.OrdinalIgnoreCase)
Microsoft.CodeAnalysis.CSharp (2)
BoundTree\UnboundLambda.cs (1)
521_bindingCache = ImmutableDictionary<(NamedTypeSymbol Type, bool IsExpressionLambda), BoundLambda>.Empty.WithComparers(BindingCacheComparer.Instance);
Symbols\Source\SourceNamespaceSymbol.cs (1)
23ImmutableDictionary<SingleNamespaceDeclaration, AliasesAndUsings>.Empty.WithComparers(ReferenceEqualityComparer.Instance);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Workspaces\LspWorkspaceManager.cs (1)
115private ImmutableDictionary<Uri, (SourceText Text, string LanguageId)> _trackedDocuments = ImmutableDictionary<Uri, (SourceText, string)>.Empty.WithComparers(LspUriComparer.Instance);
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
128var alternativeMap = ImmutableDictionary<string, T>.Empty.WithComparers(keyComparer: StringComparer.OrdinalIgnoreCase)
Workspace\ProjectSystem\ProjectSystemProjectFactory.ProjectUpdateState.cs (1)
61ImmutableDictionary<string, ImmutableArray<ProjectId>>.Empty.WithComparers(StringComparer.OrdinalIgnoreCase),
Workspace\Solution\SolutionState.cs (1)
61private ImmutableDictionary<string, ImmutableArray<DocumentId>> _lazyFilePathToRelatedDocumentIds = ImmutableDictionary<string, ImmutableArray<DocumentId>>.Empty.WithComparers(FilePathComparer);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
UtilityTest\ImmutableDictionaryExtensionsTests.cs (2)
32var emptyOrdinal = ImmutableDictionary<string, int>.Empty.WithComparers(keyComparer: StringComparer.Ordinal); 33var emptyIgnoreCase = ImmutableDictionary<string, int>.Empty.WithComparers(keyComparer: StringComparer.OrdinalIgnoreCase);
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\OpenTextBufferProvider.cs (1)
48private ImmutableDictionary<string, ITextBuffer> _monikerToTextBufferMap = ImmutableDictionary<string, ITextBuffer>.Empty.WithComparers(StringComparer.OrdinalIgnoreCase);
MSBuild (1)
CopyOnWriteDictionary.cs (1)
172private set => _backing = _backing.WithComparers(keyComparer: value);
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableDictionary.cs (2)
37return ImmutableDictionary<TKey, TValue>.Empty.WithComparers(keyComparer); 77return ImmutableDictionary<TKey, TValue>.Empty.WithComparers(keyComparer).AddRange(items);