19 references to Intersect
dotnet-svcutil-lib (2)
Shared\ProjectDependency.cs (2)
75if (!string.IsNullOrWhiteSpace(filePath) && Path.GetInvalidPathChars().Intersect(filePath).Count() > 0) 80if (!string.IsNullOrWhiteSpace(packageName) && Path.GetInvalidFileNameChars().Intersect(packageName).Count() > 0)
Microsoft.AspNetCore (1)
WebApplication.cs (1)
280if (compositeEndpointDataSource.DataSources.Intersect(_webApplication.DataSources).Count() == _webApplication.DataSources.Count)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
MapIdentityApiTests.cs (1)
878Assert.Empty(recoveryCodes.Intersect(resetRecoveryCodes));
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (1)
71var intersected = inputAnalyzers.Intersect(myAnalyzers);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
690var intersect = nextPragmaIds.Intersect(idsForPragma).ToImmutableArray();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\CSharpSimplificationService.Expander.cs (1)
826if (typeArgumentsInSymbol.Intersect(typeArgumentsInOriginalDefinition).Any(n => !typeArgumentSymbols.Contains(n)))
Microsoft.CodeAnalysis.EditorFeatures (1)
Preview\AbstractPreviewFactoryService.cs (1)
233var preservedProjectIds = oldProjectReferences.Keys.Intersect(newProjectReferences.Keys);
Microsoft.CodeAnalysis.Features (2)
ExtractMethod\MethodExtractor.VariableSymbol.cs (1)
169var commonTree = leftLocations.Select(l => l.SourceTree).Intersect(rightLocations.Select(l => l.SourceTree)).WhereNotNull().First();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
229var validParameters = _methodSymbol.Parameters.Intersect(expressionParameterMap.Values).ToImmutableArray();
Microsoft.CodeAnalysis.Test.Utilities (1)
CommonTestBase.cs (1)
674Assert.Equal(0, originalSet.Intersect(clonedSet).Count());
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
509return projectsThatCouldReferenceType.Intersect(allProjectsThatTheseProjectsDependOn)
Microsoft.DotNet.Build.Tasks.Packaging (1)
GenerateNuSpec.cs (1)
412return aggregate.Intersect(next).ToArray();
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\ValidateUsageAgainstBaseline.cs (1)
194Unchanged = actual.Intersect(baseline).ToArray();
Microsoft.ML.Core.Tests (1)
UnitTests\TestVBuffer.cs (1)
419var indices = union ? aIndices.Union(bIndices) : aIndices.Intersect(bIndices);
Microsoft.ML.Tests (3)
Scenarios\Api\TestApi.cs (3)
385Assert.True(Enumerable.Intersect(uniqueTrain, uniqueTest).Count() == 0); 398Assert.True(Enumerable.Intersect(uniqueSeedTrain, uniqueSeedTest).Count() == 0); 503Assert.True(Enumerable.Intersect(idsTest1, idsTest2).Count() == 0);
System.Data.Odbc (1)
Common\System\Data\Common\DBConnectionString.cs (1)
328Debug.Assert(!combinedSet._restrictionValues.Intersect(componentSet._restrictionValues).Any(), "Combined values allows values prevented by component set");