6 references to Instance
Microsoft.CodeAnalysis.Workspaces (6)
ExtensionManager\AbstractExtensionManager.cs (2)
12private readonly ConcurrentSet<object> _disabledProviders = new(ReferenceEqualityComparer.Instance); 13private readonly ConcurrentSet<object> _ignoredProviders = new(ReferenceEqualityComparer.Instance);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
30private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
32private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.Instance);
Workspace\Solution\SolutionCompilationState.cs (2)
784var addedReferences = stateChange.NewProjectState.AnalyzerReferences.Except<AnalyzerReference>(stateChange.OldProjectState.AnalyzerReferences, ReferenceEqualityComparer.Instance).ToImmutableArray(); 785var removedReferences = stateChange.OldProjectState.AnalyzerReferences.Except<AnalyzerReference>(stateChange.NewProjectState.AnalyzerReferences, ReferenceEqualityComparer.Instance).ToImmutableArray();