7 implementations of Contains
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
142public bool Contains(T value)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
142public bool Contains(T value)
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedHashSet`1.cs (1)
142public bool Contains(T value)
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
142public bool Contains(T value)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
142public bool Contains(T value)
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
408public bool Contains(T item)
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
594public bool Contains(T value)
19 references to Contains
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
101if (s_nonEnumerableReturningLinqMethodNames.Contains(method.Name) &&
Microsoft.CodeAnalysis.Features (3)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
149if (allInternalsVisibleToAttributesOfProject.Contains(project.AssemblyName))
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
247if (documentToSearch.Contains(document))
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
101if (s_nonEnumerableReturningLinqMethodNames.Contains(method.Name) &&
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\ProjectInitializationHandler.cs (1)
78if (e.ImpactedServices.Contains(Descriptors.RemoteProjectInitializationStatusService.Moniker))
Microsoft.CodeAnalysis.UnitTests (7)
Collections\ImmutableSetTest.cs (7)
212Assert.True(set.Contains(null)); 229Assert.False(set.Contains(null)); 425Assert.True(set.Contains(value)); 497Assert.True(enumerateAddSet.Contains(value)); 503bool duplicate = set.Contains(value); 513Assert.Equal(duplicate, set.Contains(value)); 514Assert.True(nextSet.Contains(value));
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
48return dependentProjects.WhereAsArray(projects.Contains);
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
45if (documents != null && !documents.Contains(document))
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
104if (scope != null && !scope.Contains(document))
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
618if (solution.GetProjectDependencyGraph().GetProjectsThatThisProjectTransitivelyDependsOn(referencedProjectId).Contains(projectIdWithMetadataReference))
Workspace\Solution\SolutionState.cs (1)
1385=> _dependencyGraph.GetProjectsThatThisProjectTransitivelyDependsOn(fromProjectId).Contains(toProjectId);
Microsoft.VisualStudio.LanguageServices (2)
GenerateType\GenerateTypeDialogViewModel.cs (1)
740.Where(p => p != document.Project && !dependencyGraph.GetProjectsThatThisProjectTransitivelyDependsOn(p.Id).Contains(document.Project.Id))
Snippets\AbstractSnippetInfoService.cs (1)
108return snippetShortcuts.Contains(shortcut);