417 references to SelectMany
AnalyzerRunner (3)
CodeRefactoringRunner.cs (1)
231var languages = refactorings.SelectMany(refactoring => refactoring.Metadata.Languages).Distinct();
DiagnosticAnalyzerRunner.cs (1)
294.SelectMany(file => GetDiagnosticAnalyzersFromFile(file))
Program.cs (1)
192Parallel.ForEach(projects.SelectMany(project => project.Documents), document =>
Aspire.Dashboard (5)
Components\Controls\Chart\PlotlyChart.razor.cs (1)
154foreach (var exemplar in exemplarGroups.SelectMany(g => g.Value))
DashboardWebApplication.cs (1)
278.SelectMany(kvp => kvp.Value)
Otlp\Storage\TelemetryRepository.cs (1)
1149.SelectMany(a => a.GetInstrumentsSummary())
ResourceService\DashboardClient.cs (2)
461yield return batch.SelectMany(batch => batch).ToList(); 520yield return batch.SelectMany(batch => batch).ToList();
Aspire.Dashboard.Tests (1)
GlobalizationHelpersTests.cs (1)
17.SelectMany(kvp => kvp.Value)
Aspire.Hosting.Dapr (4)
CommandLineBuilder.cs (4)
45return new CommandLine(fileName, argBuilders.SelectMany(builder => builder())); 145return (values ?? Enumerable.Empty<string>()).SelectMany(value => NamedArg(name, value, assignValue)()); 153return (values ?? Enumerable.Empty<string>()).SelectMany(value => ModelNamedArg(name, value, assignValue)()); 217foreach (var arg in args.SelectMany(builder => builder()))
Aspire.Hosting.Tests (1)
Schema\SchemaTests.cs (1)
751var errorMessages = results.Details.Where(x => x.HasErrors).SelectMany(e => e.Errors!).Select(e => e.Value);
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (1)
52var allResourceNamedVolumes = builder.Resources.SelectMany(r => r.Annotations
Infrastructure\DistributedApplicationTestFactory.cs (1)
63.SelectMany(r => r.Annotations.OfType<ContainerImageAnnotation>()
Aspire.Workload.Tests (2)
StarterTemplateRunTestsBase.cs (2)
99var firstLoadText = string.Join(',', (await GetAndValidateCellTexts(tableLoc)).SelectMany(r => r)); 104var secondLoadText = string.Join(',', (await GetAndValidateCellTexts(tableLoc)).SelectMany(r => r));
BuildActionTelemetryTable (1)
Program.cs (1)
480var types = assemblies.SelectMany(
CodeGenerator (2)
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
800Bytes = responseHeaders.SelectMany(header => header.Bytes).ToArray() 807Bytes = responseTrailers.SelectMany(header => header.Bytes).ToArray()
IdeCoreBenchmarks (3)
FindReferencesBenchmarks.cs (1)
112var locations = refList.SelectMany(r => r.Locations).ToList();
NavigateToBenchmarks.cs (2)
86var docCount = _workspace.CurrentSolution.Projects.SelectMany(p => p.Documents).Count(); 191var tasks = _workspace.CurrentSolution.Projects.SelectMany(p => p.Documents).Select(d => Task.Run(
illink (1)
ILLink.RoslynAnalyzer (1)
DataFlow\ControlFlowGraphExtensions.cs (1)
30 => cfg.Blocks.SelectMany (b => b.DescendantOperations ());
installer.tasks (3)
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (3)
52.SelectMany(item => 148.SelectMany(o => o.Sections) 154.SelectMany(r => (r.Content?.Sections.Except(newSections)).NullAsEmpty())
IOperationGenerator (1)
IOperationClassWriter.cs (1)
315.SelectMany(n => n.OperationKind!.Entries.Select(e => (entry: e, node: n)))
Microsoft.Analyzers.Extra (2)
AsyncCallInsideUsingBlockAnalyzer.cs (1)
157.SelectMany(operation => operation.Descendants())
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
269var allNodes = comp.SyntaxTrees.SelectMany(s => s.GetRoot().DescendantNodes());
Microsoft.AspNetCore.Analyzer.Testing (1)
DiagnosticAnalyzerRunner.cs (1)
96foreach (var document in projects.SelectMany(p => p.Documents))
Microsoft.AspNetCore.App.Analyzers (1)
src\Shared\RoslynUtils\ParsabilityHelper.cs (1)
75.SelectMany(t => t.GetMembers("TryParse"))
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManagerConfiguration.cs (1)
210argsMap => argsMap.SelectMany(argNameValue => argNameValue.Value.Prepend(argNameValue.Key)).ToArray()),
Microsoft.AspNetCore.Components.Authorization.Tests (1)
src\Components\Shared\test\CapturedBatch.cs (1)
23=> GetComponentFrames<T>().SelectMany(f => DiffsByComponentId[f.ComponentId]);
Microsoft.AspNetCore.Components.Forms.Tests (1)
src\Components\Shared\test\CapturedBatch.cs (1)
23=> GetComponentFrames<T>().SelectMany(f => DiffsByComponentId[f.ComponentId]);
Microsoft.AspNetCore.Components.Tests (1)
src\Components\Shared\test\CapturedBatch.cs (1)
23=> GetComponentFrames<T>().SelectMany(f => DiffsByComponentId[f.ComponentId]);
Microsoft.AspNetCore.Components.Web.Tests (1)
src\Components\Shared\test\CapturedBatch.cs (1)
23=> GetComponentFrames<T>().SelectMany(f => DiffsByComponentId[f.ComponentId]);
Microsoft.AspNetCore.Diagnostics (2)
src\Shared\Diagnostics\BaseView.cs (1)
295.SelectMany(s => s.Split(new[] { '\r', '\n' }, StringSplitOptions.None))
src\Shared\RazorViews\BaseView.cs (1)
285.SelectMany(s => s.Split(NewLineChars, StringSplitOptions.None))
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
src\Shared\Diagnostics\BaseView.cs (1)
295.SelectMany(s => s.Split(new[] { '\r', '\n' }, StringSplitOptions.None))
src\Shared\RazorViews\BaseView.cs (1)
285.SelectMany(s => s.Split(NewLineChars, StringSplitOptions.None))
Microsoft.AspNetCore.Hosting (1)
src\Shared\RazorViews\BaseView.cs (1)
285.SelectMany(s => s.Split(NewLineChars, StringSplitOptions.None))
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateGenerator\CompileTimeIncrementalityTests.cs (2)
87.SelectMany(step => step.Value) 88.SelectMany(value => value.Outputs);
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
90.SelectMany(step => step.Outputs)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
90.SelectMany(step => step.Outputs)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\Shared\RoslynUtils\ParsabilityHelper.cs (1)
75.SelectMany(t => t.GetMembers("TryParse"))
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
367return action.ActionConstraints.OfType<HttpMethodActionConstraint>().SelectMany(c => c.HttpMethods);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (19)
EndpointMetadataApiDescriptionProviderTest.cs (19)
927context.Results.SelectMany(r => r.SupportedResponseTypes).OrderBy(r => r.StatusCode), 977context.Results.SelectMany(r => r.SupportedResponseTypes).OrderBy(r => r.StatusCode), 1014context.Results.SelectMany(r => r.SupportedRequestFormats), 1047var parameterDescriptions = context.Results.SelectMany(r => r.ParameterDescriptions); 1077context.Results.SelectMany(r => r.SupportedResponseTypes).OrderBy(r => r.StatusCode), 1106var parameterDescriptions = context.Results.SelectMany(r => r.ParameterDescriptions); 1113var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1138var parameterDescriptions = context.Results.SelectMany(r => r.ParameterDescriptions); 1145var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1170var parameterDescriptions = context.Results.SelectMany(r => r.ParameterDescriptions); 1177var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1198var parameterDescriptions = context.Results.SelectMany(r => r.ParameterDescriptions); 1205var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1227var parameterDescriptions = context.Results.SelectMany(r => r.ParameterDescriptions); 1234var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1256var parameterDescriptions = context.Results.SelectMany(r => r.ParameterDescriptions); 1263var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats); 1344var parameterDescriptions = context.Results.SelectMany(r => r.ParameterDescriptions); 1350var requestFormats = context.Results.SelectMany(r => r.SupportedRequestFormats);
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
634.SelectMany(a => a.HttpMethods)
ApplicationParts\ApplicationPartManager.cs (1)
84.SelectMany(GetAssemblyClosure);
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
648.SelectMany(c => c.HttpMethods)
TestFeatureProvider.cs (1)
26foreach (var type in parts.OfType<IApplicationPartTypeProvider>().SelectMany(t => t.Types).Where(_filter))
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
AssemblyPartExtensions.cs (1)
29return dependencyContext.CompileLibraries.SelectMany(library => library.ResolveReferencePaths());
CompilationFailedException.cs (1)
27compilationFailures.SelectMany(f => f.Messages!).Select(message => message!.FormattedMessage));
PageActionDescriptorChangeProvider.cs (1)
80.SelectMany(f => f.GetImports(file))
Microsoft.AspNetCore.Mvc.Razor.Test (1)
DependencyInjection\MvcRazorMvcCoreBuilderExtensionsTest.cs (1)
119foreach (var type in parts.OfType<IApplicationPartTypeProvider>().SelectMany(tp => tp.Types))
Microsoft.AspNetCore.Mvc.TagHelpers (2)
TagHelperOutputExtensions.cs (2)
172.SelectMany(perhapsEncoded => perhapsEncoded.Split(encodedSpaceChars, StringSplitOptions.RemoveEmptyEntries)) 236.SelectMany(perhapsEncoded => perhapsEncoded.Split(encodedSpaceChars, StringSplitOptions.RemoveEmptyEntries))
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
307.SelectMany(a => a.GetCustomAttributes<WebApplicationFactoryContentRootAttribute>())
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\ViewComponentFeatureProvider.cs (1)
20foreach (var type in parts.OfType<IApplicationPartTypeProvider>().SelectMany(p => p.Types))
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensionsTest.cs (1)
181foreach (var type in parts.OfType<IApplicationPartTypeProvider>().SelectMany(p => p.Types))
ViewComponents\DefaultViewComponentDescriptorProviderTest.cs (1)
180foreach (var type in parts.OfType<IApplicationPartTypeProvider>().SelectMany(p => p.Types))
ViewComponents\DefaultViewComponentHelperTest.cs (1)
201foreach (var type in parts.OfType<IApplicationPartTypeProvider>().SelectMany(p => p.Types))
ViewComponents\DefaultViewComponentSelectorTest.cs (1)
262foreach (var type in parts.OfType<IApplicationPartTypeProvider>().SelectMany(p => p.Types))
ViewDataDictionaryTest.cs (1)
162{ model.SelectMany(t => t.ToString()) },
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
382.SelectMany(attr => attr.ContentTypes);
Microsoft.AspNetCore.OpenApi.Tests (2)
Transformers\OperationTransformerTests.cs (2)
60Assert.All(document.Paths.Values.SelectMany(p => p.Operations).Select(p => p.Value), o => Assert.Equal("6", o.Description)); 114Assert.All(document.Paths.Values.SelectMany(p => p.Operations).Select(p => p.Value), o => Assert.Equal("6", o.Description));
Microsoft.AspNetCore.OutputCaching.Tests (1)
CachedResponseBodyTests.cs (1)
86Assert.Equal(new byte[] { 1, 2, 3 }, receivedSegments.SelectMany(x => x).ToArray());
Microsoft.AspNetCore.ResponseCaching.Tests (1)
CachedResponseBodyTests.cs (1)
92Assert.Equal(new byte[] { 1, 2, 3 }, receivedSegments.SelectMany(x => x).ToArray());
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\RazorViews\BaseView.cs (1)
285.SelectMany(s => s.Split(NewLineChars, StringSplitOptions.None))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
800Bytes = responseHeaders.SelectMany(header => header.Bytes).ToArray() 807Bytes = responseTrailers.SelectMany(header => header.Bytes).ToArray()
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (2)
2996foreach (var transport in TransportTypes().SelectMany(t => t).Cast<HttpTransportType>()) 3012foreach (var transport in TransportTypes().SelectMany(t => t).Cast<HttpTransportType>())
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
HubClientProxyGenerator.Parser.cs (1)
287.Union<IMethodSymbol>(providerSymbol.AllInterfaces.SelectMany(x => x
HubServerProxyGenerator.Parser.cs (1)
264.Concat(hubSymbol.AllInterfaces.SelectMany(x => x
Microsoft.Build (10)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
838var fragments = items.SelectMany(i => ExpressionShredder.SplitSemiColonSeparatedList(i.EvaluatedInclude));
Evaluation\LazyItemEvaluator.cs (1)
502return _itemLists.Values.SelectMany(itemList => itemList.GetItemData(ImmutableHashSet<string>.Empty))
FileMatcher.cs (2)
2624? listOfFiles.SelectMany(list => list).Where(f => !resultsToExclude.Contains(f)).ToArray() 2625: listOfFiles.SelectMany(list => list).ToArray();
Graph\GraphBuilder.cs (1)
224var referencedNodes = solutionDependency.Value.SelectMany(
Instance\TaskRegistry.cs (1)
673.SelectMany(tp => tp.Value)
Utilities\Utilities.cs (4)
721.SelectMany(tpl => tpl); 728.SelectMany(tpl => tpl); 781.SelectMany(j => j); 788.SelectMany(j => j);
Microsoft.Build.Engine.UnitTests (5)
BackEnd\BinaryTranslator_Tests.cs (1)
253.SelectMany(s => s.GetTypes())
Graph\GraphLoadedFromSolution_tests.cs (3)
635GetInnerBuilds(graph, 3).SelectMany(n => n.ProjectReferences).Count(r => GetProjectNumber(r) == 4).ShouldBe(2); 636GetInnerBuilds(graph, 3).SelectMany(n => GetIncomingEdgeItemsToNode(n, edges)).ShouldAllBe(edgeItem => !IsSolutionItemReference(edgeItem)); 637GetInnerBuilds(graph, 3).SelectMany(n => GetOutgoingEdgeItemsFromNode(n, edges)).ShouldAllBe(edgeItem => !IsSolutionItemReference(edgeItem));
Graph\ResultCacheBasedBuilds_Tests.cs (1)
498foreach (var referenceOutput in node.ProjectReferences.SelectMany(n => expectedNodeBuildOutput[n]))
Microsoft.Build.Framework (1)
XamlTypes\ProjectSchemaDefinitions.cs (1)
45return Nodes.SelectMany(node => node.GetSchemaObjectTypes()).Distinct();
Microsoft.Build.Tasks.Core (2)
FileMatcher.cs (2)
2624? listOfFiles.SelectMany(list => list).Where(f => !resultsToExclude.Contains(f)).ToArray() 2625: listOfFiles.SelectMany(list => list).ToArray();
Microsoft.Build.Utilities.Core (2)
FileMatcher.cs (2)
2624? listOfFiles.SelectMany(list => list).Where(f => !resultsToExclude.Contains(f)).ToArray() 2625: listOfFiles.SelectMany(list => list).ToArray();
Microsoft.Cci.Extensions (2)
Dgml\DgmlExtensions.cs (1)
17var referencedNames = materializedAssemblies.SelectMany(a => a.AssemblyReferences).Select(ar => ar.Name.Value);
Writers\CSharp\CSDeclarationWriter.Attributes.cs (1)
20if (!securityAttributes.SelectMany(s => s.Attributes).Any(IncludeAttribute))
Microsoft.CodeAnalysis (7)
Collections\UnionCollection.cs (1)
134return _collections.SelectMany(c => c).GetEnumerator();
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
898var analyzersSuppressedForSomeTree = SuppressedAnalyzersForTreeMap.SelectMany(kvp => kvp.Value).ToImmutableHashSet();
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
705declaredNode, declaredSymbol, executableCodeBlocks, (codeBlocks) => codeBlocks.SelectMany(
InternalUtilities\EnumerableExtensions.cs (1)
616return sequence.SelectMany(s => s);
ReferenceManager\CommonReferenceManager.State.cs (1)
678internal IEnumerable<string> ExternAliases => AliasesOfReferencedAssemblies.SelectMany(aliases => aliases);
SourceGeneration\RunResults.cs (2)
51ImmutableInterlocked.InterlockedInitialize(ref _lazyDiagnostics, Results.Where(r => !r.Diagnostics.IsDefaultOrEmpty).SelectMany(r => r.Diagnostics).ToImmutableArray()); 69ImmutableInterlocked.InterlockedInitialize(ref _lazyGeneratedTrees, Results.Where(r => !r.GeneratedSources.IsDefaultOrEmpty).SelectMany(r => r.GeneratedSources.Select(g => g.SyntaxTree)).ToImmutableArray());
Microsoft.CodeAnalysis.CodeStyle (15)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
616return sequence.SelectMany(s => s);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ControlFlowGraphExtensions.cs (1)
28=> cfg.Blocks.SelectMany(b => b.DescendantOperations());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (3)
71return type.GetBaseTypesAndThis().SelectMany(t => t.GetMembers(symbol.Name)) 372return [.. abstractClasses.SelectMany(a => a.GetBaseTypesAndThis()).Where(t => t.IsAbstractClass())]; 385interfaces.SelectMany(i => i.GetAllInterfacesIncludingThis()).Distinct());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
717.SelectMany(x => x.GetMembers()) 757.SelectMany(x => x.GetMembers())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
440return types.SelectMany(x => x.GetMembers().OfType<T>().Where(m => m.IsAccessibleWithin(within))); 505return types.SelectMany(x => x.GetMembers().OfType<T>().Where(m => m.IsAccessibleWithin(within))); 515return types.SelectMany(x => x.GetMembers(memberName).OfType<T>().Where(m => m.IsAccessibleWithin(within)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (1)
54=> [.. nodesOrTokens.SelectMany(nodeOrToken => nodeOrToken.GetLeadingTrivia().Concat(nodeOrToken.GetTrailingTrivia()))];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
151=> [.. tokens.SelectMany(token => SyntaxNodeOrTokenExtensions.GetTrivia(token))];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (1)
89=> spans.SelectMany(span => span.Subtract(except));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
200return SpansPreprocessorDirective(syntaxFacts, nodes.SelectMany(n => n.DescendantTokens()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
28var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).SelectAsArray(syntaxFacts.EscapeIdentifier);
Microsoft.CodeAnalysis.CSharp (5)
Compilation\CSharpCompilation.cs (1)
1216return Assembly.Modules.SelectMany(module => module.GetReferencedAssemblies());
Declarations\DeclarationTable.Cache.cs (1)
85MergedRoot.Declarations.OfType<RootSingleNamespaceDeclaration>().SelectMany(r => r.ReferenceDirectives).AsImmutable());
Symbols\MergedNamespaceSymbol.cs (2)
283return _namespacesToMerge.SelectMany(namespaceSymbol => namespaceSymbol.Locations).AsImmutable(); 291return _namespacesToMerge.SelectMany(namespaceSymbol => namespaceSymbol.DeclaringSyntaxReferences).AsImmutable();
Symbols\Source\SourceAssemblySymbol.cs (1)
577return this.Modules.SelectMany(m => m.Locations).AsImmutable();
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaListExtensions.cs (1)
71var triviaInLeadingBlankLines = GetLeadingBlankLines(triviaList).SelectMany(l => l);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
470var originalSwitchLabels = originalSwitchStatement.Sections.SelectMany(section => section.Labels).ToArray(); 471var newSwitchLabels = newSwitchStatement.Sections.SelectMany(section => section.Labels).ToArray();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
478var referenceLocations = symbolReferences.SelectMany(reference => reference.Locations);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
358foreach (var element in matches.SelectMany(m => CreateElements(m, preferredIndentation)))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
574return indexers.SelectMany(i => 779var matchingNameParameters = parameterizedSymbols.SelectMany(m => m) 2132if (switchStatement.Sections.SelectMany(ss => ss.Labels)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
364var editorconfig = solution.Projects.SelectMany(p => p.AnalyzerConfigDocuments.Where(a => a.FilePath == EditorconfigPath)).Single();
SymbolKey\SymbolKeyCompilationsTests.cs (2)
267var members1 = symbols1.OfType<INamespaceOrTypeSymbol>().SelectMany(n => n.GetMembers()).ToList(); 268var members2 = symbols2.OfType<INamespaceOrTypeSymbol>().SelectMany(n => n.GetMembers()).ToList();
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1425AssertEx.SetEqual(workspace.Projects.SelectMany(p => p.Documents).Select(d => d.Id), eventArgs.Select(e => e.DocumentId));
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
91var unspecifiedParameters = parameterLists.SelectMany(pl => pl)
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
202=> containingType.Constructors.SelectMany(
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
478var referenceLocations = symbolReferences.SelectMany(reference => reference.Locations);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
358foreach (var element in matches.SelectMany(m => CreateElements(m, preferredIndentation)))
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
347parameterList.Parameters.SelectMany(p => GetParameterInitializersAndAttributes(p)) : 355typeParameterList.Parameters.SelectMany(p => GetAttributes(p.AttributeLists)) :
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (4)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (4)
877return graph.Blocks.SelectMany(b => b.Operations.SelectMany(o => o.DescendantsAndSelf())).OfType<IFlowAnonymousFunctionOperation>().Single(); 933return graph.Blocks.SelectMany(b => b.Operations.SelectMany(o => o.DescendantsAndSelf())).OfType<IFlowAnonymousFunctionOperation>().ElementAt(index);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\FunctionPointerTests.cs (1)
3951.SelectMany(m => m.ParameterList.Parameters)
Semantics\ImportsTests.cs (1)
144var externAliases = compilationUnits.SelectMany(cu => cu.Externs).Select(e => e.Identifier.ValueText).Distinct();
Semantics\LambdaTests.cs (1)
3639return format(expr, method.GetAttributes(), method.GetReturnTypeAttributes(), method.Parameters.SelectMany(p => p.GetAttributes()));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
DocumentationComments\CrefTests.cs (2)
6616return compilation.SyntaxTrees.SelectMany(tree => 6619return docComments.SelectMany(docComment => docComment.DescendantNodes().OfType<XmlCrefAttributeSyntax>().Select(attr => attr.Cref));
DocumentationComments\ParameterTests.cs (2)
839return compilation.SyntaxTrees.SelectMany(tree => 842return docComments.SelectMany(docComment => docComment.DescendantNodes().OfType<XmlNameAttributeSyntax>().Select(attr => attr.Identifier));
Symbols\FunctionPointerTypeSymbolTests.cs (6)
126.SelectMany(m => m.ParameterList.Parameters) 206.SelectMany(m => m.ParameterList.Parameters) 407.SelectMany(m => m.ParameterList.Parameters) 487.SelectMany(m => m.ParameterList.Parameters) 604.SelectMany(m => m.ParameterList.Parameters) 1799.SelectMany(m => m.DescendantNodes().OfType<FunctionPointerTypeSyntax>())
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxNodeTests.cs (1)
2382var deepTrivia = expr.GetDirectives().SelectMany(d => d.DescendantTrivia().Where(tr => tr.Kind() == SyntaxKind.WhitespaceTrivia)).ToList();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestSource.cs (1)
70return testSources.SelectMany(s => s.GetSyntaxTrees(parseOptions, sourceFileName)).ToArray();
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3554.SelectMany(t => t);
Rename\CSharpRenameRewriterLanguageService.cs (1)
913.SelectMany(t => t.Locations);
Rename\LocalConflictVisitor.cs (1)
186var statements = node.ChildNodes().Where(x => x.IsKind(SyntaxKind.SwitchSection)).SelectMany(x => x.ChildNodes());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaListExtensions.cs (1)
71var triviaInLeadingBlankLines = GetLeadingBlankLines(triviaList).SelectMany(l => l);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
470var originalSwitchLabels = originalSwitchStatement.Sections.SelectMany(section => section.Labels).ToArray(); 471var newSwitchLabels = newSwitchStatement.Sections.SelectMany(section => section.Labels).ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
574return indexers.SelectMany(i => 779var matchingNameParameters = parameterizedSymbols.SelectMany(m => m) 2132if (switchStatement.Sections.SelectMany(ss => ss.Labels)
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (1)
31var analyzerReferences = RoslynEnumerableExtensions.DistinctBy(projectsInScope.SelectMany(p => p.AnalyzerReferences), a => a.Id).ToImmutableArray();
EditorConfigSettings\Updater\SettingsUpdaterBase.cs (1)
76.SelectMany(p => p.AnalyzerConfigDocuments)
InlineRename\IEditorInlineRenameService.cs (1)
133var replacements = info.DocumentIds.SelectMany(info.GetReplacements);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Adornments\AbstractAdornmentManager.cs (1)
145var translated = spans.SelectMany(span => span.GetSpans(targetSnapshot));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Native.cs (1)
454var localSlot0 = scopes.SelectMany(scope => scope.GetLocals()).FirstOrDefault(variable => variable.GetSlot() == 0);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
302var infos = interfaceMaps.SelectMany(map =>
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
SignatureHelp\FSharpSignatureHelpItem.cs (1)
70Parameters.SelectMany(p => p.GetAllParts())).Concat(
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
External\ConversionHelpers.cs (1)
25.SelectMany(section => section.TaggedParts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine)))
Microsoft.CodeAnalysis.Features (14)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (1)
367.SelectMany(p => p.GetChangedDocuments());
Completion\CommonCompletionItem.cs (1)
81=> string.Join("|", description.SelectMany(d => new[] { d.Tag, d.Text }).Select(t => t.Escape('\\', s_descriptionSeparators)));
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (2)
39.SelectMany(lazyLanguageService => ((IEmbeddedLanguagesProvider)lazyLanguageService.Value).Languages) 40.SelectMany(GetTriggerCharactersForEmbeddedLanguage)];
Debugging\AbstractBreakpointResolver.cs (3)
204var types = containers.SelectMany(GetTypeMembersRecursive).Where(t => MatchesNames(t, names, _identifierComparer)); 295INamespaceSymbol namespaceSymbol => namespaceSymbol.GetMembers().SelectMany(GetTypeMembersRecursive), 296INamedTypeSymbol typeSymbol => typeSymbol.GetTypeMembers().SelectMany(GetTypeMembersRecursive).Concat(typeSymbol),
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
448.SelectMany(@ref => @ref.Locations)
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
282.SelectMany(referencedSymbol => referencedSymbol.Locations)
NavigateTo\NavigateToSearcher.cs (2)
467allProjectIdSet.AddRange(orderedProjects.SelectMany(x => x).Select(p => p.Id)); 493Contract.ThrowIfFalse(orderedProjects.SelectMany(s => s).Count() == filteredProjects.SelectMany(s => s).Count());
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
173var getReferencesByDocument = getMethodReferences.SelectMany(r => r.Locations).ToLookup(loc => loc.Document);
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
105.SelectMany(kvp => kvp.Value)
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
49.SelectMany(framework => framework.Dependencies!.Keys.Where(key => framework.Dependencies[key].AutoReferenced))
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
283var generators = generatorProject.AnalyzerReferences.SelectMany(r => r.GetGenerators(language: generatorProject.Language));
Microsoft.CodeAnalysis.LanguageServer (1)
ExportProviderBuilder.cs (1)
190var erroredParts = configuration.CompositionErrors.FirstOrDefault()?.SelectMany(error => error.Parts).Select(part => part.Definition.Type.Name) ?? [];
Microsoft.CodeAnalysis.LanguageServer.Protocol (12)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
736newActions.AddRange(actionWithNestedActions.NestedActionSets.SelectMany(set => set.Actions));
Handler\CodeActions\CodeActionResolveHelper.cs (9)
153projectChanges.SelectMany(pc => pc.GetRemovedDocuments()), 158projectChanges.SelectMany(pc => pc.GetRemovedAnalyzerConfigDocuments()), 163projectChanges.SelectMany(pc => pc.GetRemovedAdditionalDocuments()), 168projectChanges.SelectMany(pc => pc.GetAddedDocuments()), 173projectChanges.SelectMany(pc => pc.GetAddedAnalyzerConfigDocuments()), 178projectChanges.SelectMany(pc => pc.GetAddedAdditionalDocuments()), 183projectChanges.SelectMany(pc => pc.GetChangedDocuments()), 189projectChanges.SelectMany(pc => pc.GetChangedAnalyzerConfigDocuments()), 195projectChanges.SelectMany(pc => pc.GetChangedAdditionalDocuments()),
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticsHandler.cs (1)
85? [.. progressValues.SelectMany(report => report.Match(r => r.Items, partial => partial.Items))]
Handler\Hover\HoverHandler.cs (1)
137.. info.Sections.SelectMany(static s => s.TaggedParts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine)))
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
SpellCheck\SpellCheckTests.cs (1)
565.SelectMany(kvp => kvp.Value.Select(textSpan => (kind: kvp.Key, textSpan))
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
RebuildCommandLineTests.cs (2)
246e = e.SelectMany(p); 439e = e.SelectMany(p);
Microsoft.CodeAnalysis.Test.Utilities (9)
Assert\EqualityUtil`1.cs (5)
92foreach (var value in _equalityUnits.SelectMany(x => x.AllValues)) 124foreach (var value in _equalityUnits.SelectMany(x => x.AllValues)) 161var allValues = _equalityUnits.SelectMany(x => x.AllValues); 173var allValues = _equalityUnits.SelectMany(x => x.AllValues); 222foreach (var cur in _equalityUnits.SelectMany(x => x.AllValues))
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
2601foreach (var variable in fields.SelectMany(f => f.Declaration.Variables))
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
83foreach (IVariableDeclaratorOperation variable in declaration.Declarations.SelectMany(decl => decl.Declarators))
Diagnostics\OperationTestAnalyzer.cs (1)
848foreach (var decl in declarationStatement.Declarations.SelectMany(multiDecl => multiDecl.Declarators))
Metadata\AggregatedMetadataReader.cs (1)
41Readers.SelectMany(r => r.AssemblyReferences.Select(h => r.GetAssemblyReference(h)));
Microsoft.CodeAnalysis.UnitTests (3)
Collections\HashSet\ISet_Generic_Tests`1.cs (1)
339new[] { EnumerableType.SegmentedHashSet, EnumerableType.List }.SelectMany(GetEnumerableTestData);
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (1)
100SegmentedHashSet<T> hashSetFromDuplicates = new SegmentedHashSet<T>(Enumerable.Range(0, 40).SelectMany(i => items).ToArray());
Collections\List\TestBase.Generic.cs (1)
51((IEnumerable<EnumerableType>)Enum.GetValues(typeof(EnumerableType))).SelectMany(GetEnumerableTestData);
Microsoft.CodeAnalysis.VisualBasic (1)
Declarations\MergedTypeDeclaration.vb (1)
150allSingleTypeDecls = Declarations.SelectMany(Function(d) d.Children.OfType(Of SingleTypeDeclaration)())
Microsoft.CodeAnalysis.Workspaces (33)
CodeActions\CodeAction_Cleanup.cs (2)
66.SelectMany(p => p.GetChangedDocuments(onlyGetDocumentsWithTextChanges: true).Concat(p.GetAddedDocuments())) 67.Concat(solutionChanges.GetAddedProjects().SelectMany(p => p.DocumentIds))
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (2)
116var orderedDiagnostics = documentToDiagnostics.SelectMany(kvp => kvp.Value) 170var changedDocumentIds = new SolutionChanges(changedSolution, solution).GetProjectChanges().SelectMany(p => p.GetChangedDocuments());
CodeRefactorings\FixAllOccurences\FixAllState.cs (1)
116documentsToFix = Project.Solution.Projects.SelectMany(p => p.Documents);
Diagnostics\HostDiagnosticAnalyzers.cs (1)
284var seen = new HashSet<DiagnosticAnalyzer>(map1.Values.SelectMany(v => v));
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
87var count = _solution.Projects.SelectMany(p => p.DocumentIds).Count();
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
495.SelectMany(p => dependencyGraph.GetProjectsThatThisProjectTransitivelyDependsOn(p.Id))
Recommendations\AbstractRecommendationService.cs (1)
148.SelectMany(o => o.GetBaseTypesAndThis())
Rename\RenameUtilities.cs (4)
93documentsOfRenameSymbolDeclaration.SelectMany(d => d.GetLinkedDocumentIds()) 102return projectIdsOfRenameSymbolDeclaration.SelectMany(p => solution.GetRequiredProject(p).Documents); 108var relevantProjects = projectIdsOfRenameSymbolDeclaration.Concat(projectIdsOfRenameSymbolDeclaration.SelectMany(p => 110return relevantProjects.SelectMany(p => solution.GetRequiredProject(p).Documents);
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
100return namespaceSymbols.SelectMany(n => n.GetAllTypes(cancellationToken));
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
198=> [.. _singletonListeners.Values.Where(l => l.TrackActiveTokens).SelectMany(l => l.ActiveDiagnosticTokens)];
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
616return sequence.SelectMany(s => s);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ControlFlowGraphExtensions.cs (1)
28=> cfg.Blocks.SelectMany(b => b.DescendantOperations());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (3)
71return type.GetBaseTypesAndThis().SelectMany(t => t.GetMembers(symbol.Name)) 372return [.. abstractClasses.SelectMany(a => a.GetBaseTypesAndThis()).Where(t => t.IsAbstractClass())]; 385interfaces.SelectMany(i => i.GetAllInterfacesIncludingThis()).Distinct());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
717.SelectMany(x => x.GetMembers()) 757.SelectMany(x => x.GetMembers())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
440return types.SelectMany(x => x.GetMembers().OfType<T>().Where(m => m.IsAccessibleWithin(within))); 505return types.SelectMany(x => x.GetMembers().OfType<T>().Where(m => m.IsAccessibleWithin(within))); 515return types.SelectMany(x => x.GetMembers(memberName).OfType<T>().Where(m => m.IsAccessibleWithin(within)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (1)
54=> [.. nodesOrTokens.SelectMany(nodeOrToken => nodeOrToken.GetLeadingTrivia().Concat(nodeOrToken.GetTrailingTrivia()))];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
151=> [.. tokens.SelectMany(token => SyntaxNodeOrTokenExtensions.GetTrivia(token))];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (1)
89=> spans.SelectMany(span => span.Subtract(except));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
200return SpansPreprocessorDirective(syntaxFacts, nodes.SelectMany(n => n.DescendantTokens()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
28var parts = folders.SelectMany(folder => folder.Split(NamespaceSeparatorArray)).SelectAsArray(syntaxFacts.EscapeIdentifier);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
171document = document.WithSyntaxRoot(originalRoot.TrackNodes(originalNodePairs.SelectMany(pair => pair.nodes.additionalNodes.Concat(pair.nodes.semanticNode))));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
126var allAffectedStatements = new HashSet<TStatementSyntax>(referencingStatements.SelectMany(
Workspace\Workspace_Editor.cs (1)
56docIds = [.. _projectToOpenDocumentsMap.Values.SelectMany(x => x)];
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
616return sequence.SelectMany(s => s);
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
Options\NamingStylePreferencesTests.cs (1)
207.SelectMany(group => group)
SolutionTests\ProjectDependencyGraphTests.cs (1)
734referencesByTargetProject.SelectMany(pair => pair.Value));
SymbolKeyTests.cs (5)
398TestRoundTrip(GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => ms.Parameters), compilation); 542var symbols = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => GetInteriorSymbols(ms, compilation).OfType<ILocalSymbol>()).ToList(); 564var symbols = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => GetInteriorSymbols(ms, compilation).OfType<ILabelSymbol>()).ToList(); 591var symbols = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => GetInteriorSymbols(ms, compilation).OfType<IRangeVariableSymbol>()).ToList(); 1404var symbols = methods.SelectMany(ms => GetInteriorSymbols(ms, compilation)).Where(s => SymbolKey.IsBodyLevelSymbol(s)).ToList();
Microsoft.DotNet.Arcade.Sdk (2)
src\InstallDotNetCore.cs (1)
82if (runtimeItems.SelectMany(r => r.Value).Select(r => r.Key).FirstOrDefault(f => !SemanticVersion.TryParse(f, out SemanticVersion version)) != null)
src\SourceBuild\AddSourceMappingToNugetConfig.cs (1)
50.SelectMany(e => e.Descendants().Where(e => e.Name == "package"))
Microsoft.DotNet.AsmDiff (4)
AssemblySet.cs (2)
103var allPaths = paths.SelectMany(HostEnvironment.SplitPaths).ToArray(); 191var allReferences = loadedAssemblies.Concat(loadedAssemblies.SelectMany(a => a.AssemblyReferences))
DiffCSharpWriter.cs (2)
447.SelectMany(c => _declHelper.GetTokenList(c)); 449.SelectMany(c => _declHelper.GetTokenList(c));
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\LatestLinksManager.cs (1)
93.SelectMany(links => links)
Microsoft.DotNet.Build.Tasks.Installers (3)
src\StabilizeWixFileId.cs (3)
69.SelectMany(f => f.Elements(GetQualifiedName("ComponentGroup"))) 70.SelectMany(cg => cg.Elements(GetQualifiedName("Component"))) 71.SelectMany(c => c.Elements(GetQualifiedName("File")))
Microsoft.DotNet.Build.Tasks.Packaging (8)
ApplyMetaPackages.cs (1)
122updatedDependencies.AddRange(metaPackagesToAdd.SelectMany(pair => pair.Value.Select(tfm => CreateDependency(pair.Key, tfm))));
GetApplicableAssetsFromPackages.cs (1)
130RuntimeAssets = runtimeItems.SelectMany(ri => PackageItemAndSymbolsAsResolvedAsset(ri)).ToArray();
GetLayoutFiles.cs (1)
120.SelectMany(a => CreateLayoutFile(a.LocalPath, subFolder, assetType));
PackageIndex.cs (1)
258return Packages.Values.SelectMany(info => info.InboxOn.GetInboxFrameworks()).Distinct().ToArray();
UpdatePackageIndex.cs (1)
315.SelectMany(p => p.Value.AssemblyVersionInPackageVersion)
ValidatePackage.cs (3)
143var allRuntimeGenerations = _report.Targets.Values.SelectMany(t => t.RuntimeAssets.NullAsEmpty()) 159foreach (var compileAsset in _report.Targets.Values.SelectMany(t => t.CompileAssets) 387var allDlls = _report.Targets.Values.SelectMany(t => t.CompileAssets.NullAsEmpty().Concat(t.RuntimeAssets.NullAsEmpty()));
Microsoft.DotNet.Build.Tasks.VisualStudio (7)
OptProf\GetRunSettingsSessionConfiguration.cs (7)
125? config.Products.SelectMany(x => x.Tests.Select(y => y.Container + ".dll")) 129? config.Assemblies.SelectMany(x => x.Tests.Select(y => y.Container + ".dll")) 143? config.Products.SelectMany(x => x.Tests.SelectMany(y => y.TestCases ?? y.FilteredTestCases.SelectMany(z => z.TestCases))) 147? config.Assemblies.SelectMany(x => x.Tests.SelectMany(y => y.TestCases))
Microsoft.DotNet.Helix.Sdk (1)
GetHelixWorkItems.cs (1)
34WorkItems = (await Task.WhenAll(Jobs.Select(j => GetWorkItemsAsync(j, cancellationToken))).ConfigureAwait(false)).SelectMany(r => r).ToArray();
Microsoft.DotNet.SignCheckLibrary (1)
Verification\Jar\JarFile.cs (1)
79return SignatureFiles.SelectMany(sf => sf.Timestamps);
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WritePackageUsageData.cs (1)
103.SelectMany(ReadRidsFromRuntimeJson)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Modeler\ServiceClientModelFactory.cs (1)
125.SelectMany(p => p.Value.Operations.Select(o => (path: p.Key, type: o.Key, operation: o.Value)))
Microsoft.DotNet.VersionTools (4)
Automation\DependencyUpdateUtils.cs (2)
30.SelectMany(results => results.UsedInfos) 44return updaters.SelectMany(updater => updater.GetUpdateTasks(dependencyInfos));
Dependencies\BuildManifest\OrchestratedBuildIdentityMatch.cs (1)
19.SelectMany(info => info.OrchestratedBuildModel.Builds
Dependencies\BuildOutput\ProjectJsonUpdater.cs (1)
154.SelectMany(o => o.Children<JProperty>());
Microsoft.Extensions.AI.Abstractions.Tests (2)
test\Shared\JsonSchemaExporter\SchemaTestHelpers.cs (1)
38.SelectMany(d => d.Errors!.Select(error => $"Path:${d.InstanceLocation} {error.Key}:{error.Value}"));
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
39.SelectMany(t => t.GetTestDataForAllValues())
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
131UsageContent usage = chunks.SelectMany(c => c.Contents).OfType<UsageContent>().Single();
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
283Messages = chatMessages.SelectMany(ToOllamaChatRequestMessages).ToArray(),
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
280UsageContent usage = updates.SelectMany(u => u.Contents).OfType<UsageContent>().Single(); 875UsageContent usage = updates.SelectMany(u => u.Contents).OfType<UsageContent>().Single();
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
242IEnumerable<AIContent> content = finalChat.SelectMany(m => m.Contents); 310IEnumerable<AIContent> content = finalChat.SelectMany(m => m.Contents); 551var allUpdateContents = updates.SelectMany(updates => updates.Contents).ToList();
Microsoft.Extensions.Configuration.KeyPerFile.Tests (2)
ConfigurationProviderCommandLineTest.cs (1)
32foreach (var tuple in section.Values.SelectMany(e => e.Value.Expand(e.Key)))
ConfigurationProviderTestBase.cs (1)
360foreach (var tuple in section.Values.SelectMany(e => e.Value.Expand(e.Key)))
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (3)
HealthCheckPublisherHostedServiceTest.cs (3)
386var entries = publisher.Entries.SelectMany(e => e.report.Entries.Select(e2 => e2.Key)).OrderBy(k => k).ToArray(); 641var entries = publishers[i].Entries.SelectMany(e => e.report.Entries.Select(e2 => e2.Key)).OrderBy(k => k).ToArray(); 657var entries = publishers[i].Entries.SelectMany(e => e.report.Entries.Select(e2 => e2.Key)).OrderBy(k => k).ToArray();
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Manifest\TestEntry.cs (1)
35var otherFiles = Children.Where(c => !c.IsFile).SelectMany(d => d.GetFiles()).ToArray();
Microsoft.Gen.ContextualOptions (4)
ContextReceiver.cs (1)
47.SelectMany(declarations => declarations.Select(declaration => (symbol: compilation.GetSemanticModel(declarations.Key).GetDeclaredSymbol(declaration), declaration)))
ContextualOptionsGenerator.cs (1)
39.SelectMany(declarations => declarations.Select(declaration => (symbol: compilation.GetSemanticModel(declarations.Key).GetDeclaredSymbol(declaration), declaration)))
Parser.cs (2)
30.SelectMany(def => def.Modifiers) 44.SelectMany(def => def.Modifiers)
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (1)
42return (await Task.WhenAll(sortedProjects.Select(context.GetAllDiagnosticsAsync)).ConfigureAwait(false)).SelectMany(diag => diag).ToImmutableArray();
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportCodeGenerator.cs (1)
168.Concat(_marshallers.NativeParameterMarshallers.OfType<IJSMarshallingGenerator>().SelectMany(p => p.GenerateBind()));
JSImportCodeGenerator.cs (1)
160.Concat(_marshallers.NativeParameterMarshallers.OfType<IJSMarshallingGenerator>().SelectMany(p => p.GenerateBind()));
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\CustomMarshallerAttributeFixer.cs (1)
96return ImmutableArray.CreateRange((await Task.WhenAll(context.Solution.Projects.Select(context.GetAllDiagnosticsAsync)).ConfigureAwait(false)).SelectMany(arr => arr));
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (1)
42return (await Task.WhenAll(sortedProjects.Select(context.GetAllDiagnosticsAsync)).ConfigureAwait(false)).SelectMany(diag => diag).ToImmutableArray();
Microsoft.Maui.Controls (2)
TableView\TableView.cs (2)
85 Root.SelectMany(r => r).ForEach(cell => cell.Parent = this); 128 foreach (Cell cell in Root.SelectMany(r => r))
Microsoft.Maui.Controls.Xaml (1)
ApplyPropertiesVisitor.cs (1)
828 .Concat(type.GetInterfaces().SelectMany(t => t.GetRuntimeMethods()));
Microsoft.ML.AutoML (1)
API\AutoCatalog.cs (1)
754.SelectMany(c => c);
Microsoft.ML.AutoML.SourceGenerator (6)
EstimatorTypeGenerator.cs (2)
37.SelectMany(union => union.EstimatorTypes.Select(t => Utils.CreateEstimatorName(union.FunctionName, t))) 42.SelectMany(union => union.EstimatorTypes.Select(t => Utils.CreateEstimatorName(union.FunctionName, t)))
SweepableEstimatorFactoryGenerator.cs (2)
34.SelectMany(union => union.EstimatorTypes.Select(t => (Utils.CreateEstimatorName(union.FunctionName, t), Utils.ToTitleCase(union.SearchOption)))) 39.SelectMany(union => union.EstimatorTypes.Select(t => (Utils.CreateEstimatorName(union.FunctionName, t), Utils.ToTitleCase(union.SearchOption))))
SweepableEstimatorGenerator.cs (2)
32.SelectMany(file => Utils.GetEstimatorsFromJson(file.GetText().ToString()).Estimators) 35var code = estimators.SelectMany(e => e.EstimatorTypes.Select(eType => (e, eType, Utils.CreateEstimatorName(e.FunctionName, eType)))
Microsoft.ML.AutoML.Tests (1)
TunerTests.cs (1)
177.SelectMany(loss => loss);
Microsoft.ML.CodeGenerator (4)
CodeGenerator\CSharp\CodeGenerator.cs (2)
223usings.AddRange(preTrainerTransformsAndUsings.Where(t => t.Item2 != null).SelectMany(t => t.Item2)); 224usings.AddRange(postTrainerTransformsAndUsings.Where(t => t.Item2 != null).SelectMany(t => t.Item2));
CodeGenerator\CSharp\PipelineExtension.cs (2)
41usings.AddRange(preTrainerTransformsAndUsings.Where(t => t.Item2 != null).SelectMany(t => t.Item2)); 42usings.AddRange(postTrainerTransformsAndUsings.Where(t => t.Item2 != null).SelectMany(t => t.Item2));
Microsoft.ML.Core (3)
Utilities\MatrixTransposeOps.cs (3)
93IEnumerable<Tuple<int, int>> ijenum = ienum.SelectMany(i => jenum.Select(j => new Tuple<int, int>(i, j))); 145IEnumerable<Tuple<int, int>> ijenum = ienum.SelectMany(i => jenum.Select(j => new Tuple<int, int>(i, j))); 198IEnumerable<Tuple<int, int>> ijenum = ienum.SelectMany(i => jenum.Select(j => new Tuple<int, int>(i, j)));
Microsoft.ML.Data (1)
Evaluators\EvaluatorBase.cs (1)
137foreach (var agg in dictionaries.SelectMany(dict => dict.GetAll()))
Microsoft.ML.Ensemble (1)
Trainer\EnsembleDistributionModelParameters.cs (1)
241averagedWeights = Models.SelectMany(model => model.Metrics).Where(m => m.Key == metric.Key).Select(m => (Single)m.Value).ToArray();
Microsoft.ML.FastTree (1)
Dataset\Dataset.cs (1)
635p => queries[p].SelectMany(q => Enumerable.Range(Boundaries[q], Boundaries[q + 1] - Boundaries[q])).ToArray()
Microsoft.ML.SearchSpace (4)
Option\NestOption.cs (2)
32.SelectMany(kv => kv.Value.Default) 43.SelectMany(kv => kv.Value.Step)
SearchSpace.cs (2)
60.SelectMany(kv => kv.Value.Default) 100.SelectMany(kv => kv.Value.Step)
Microsoft.ML.StandardTrainers (1)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
994node.AddAttribute("coefficients", Weights.SelectMany(w => w.DenseValues()));
Microsoft.ML.Tokenizers.Tests (1)
TokenizerTests.cs (1)
26tokenizer.Decode(Enumerable.Repeat("abcdefghijklmnopqrstuvwxyz", 100).SelectMany(s => s.Select(c => c - 'a'))));
Microsoft.ML.Transforms (1)
Text\WordHashBagProducingTransform.cs (1)
375.Append(new ColumnSelectingTransformer(h, null, tmpColNames.SelectMany(cols => cols).ToArray()));
Microsoft.VisualStudio.LanguageServices (11)
Preview\PreviewEngine.cs (8)
115var addedDocuments = projectChanges.SelectMany(p => p.GetAddedDocuments()); 116var removedDocuments = projectChanges.SelectMany(p => p.GetRemovedDocuments()); 124var changedAdditionalDocuments = projectChanges.SelectMany(p => p.GetChangedAdditionalDocuments()); 125var addedAdditionalDocuments = projectChanges.SelectMany(p => p.GetAddedAdditionalDocuments()); 126var removedAdditionalDocuments = projectChanges.SelectMany(p => p.GetRemovedAdditionalDocuments()); 133var changedAnalyzerConfigDocuments = projectChanges.SelectMany(p => p.GetChangedAnalyzerConfigDocuments()); 134var addedAnalyzerConfigDocuments = projectChanges.SelectMany(p => p.GetAddedAnalyzerConfigDocuments()); 135var removedAnalyzerConfigDocuments = projectChanges.SelectMany(p => p.GetRemovedAnalyzerConfigDocuments());
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
325var changedDocs = projectChanges.SelectMany(pd => pd.GetChangedDocuments(onlyGetDocumentsWithTextChanges: true).Concat(pd.GetChangedAdditionalDocuments())) 840return items.Concat(items.SelectMany(i => GetAllItems(i.ProjectItems)));
Workspace\VisualStudioSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
69var updatedDocumentIds = _updatedSolution.GetChanges(_startingSolution).GetProjectChanges().SelectMany(p => p.GetChangedDocuments());
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Interactive\Commands\ResetInteractiveTests.cs (1)
143var projectReferences = project.ProjectReferences.SelectMany(p => GetProjectReferences(
PrepareTests (2)
MinimizeUtil.cs (2)
137.SelectMany(pair => pair.Value.Select(fp => (Id: pair.Key, FilePath: fp))) 175.SelectMany(v => v)
RunTests (9)
AssemblyScheduler.cs (8)
74ConsoleUtil.WriteLine($"Found {orderedTypeInfos.Values.SelectMany(t => t).SelectMany(t => t.Tests).Count()} tests to run in {orderedTypeInfos.Keys.Count()} assemblies"); 175var allTests = assemblyTypes.Values.SelectMany(v => v).SelectMany(v => v.Tests).Select(t => t.FullyQualifiedName).ToList(); 177var totalExpectedRunTime = TimeSpan.FromMilliseconds(updated.Values.SelectMany(types => types).SelectMany(type => type.Tests).Sum(test => test.ExecutionTime.TotalMilliseconds)); 204types.SelectMany(t => t.Tests).ToList().ForEach(test => AddFilter(assembly, test)); 277var totalExecutionTime = TimeSpan.FromMilliseconds(workItem.Filters.Values.SelectMany(f => f).Sum(f => f.ExecutionTime.TotalMilliseconds));
ProcessTestExecutor.cs (1)
60var filters = workItem.Filters.Values.SelectMany(filter => filter).Where(filter => !string.IsNullOrEmpty(filter.FullyQualifiedName)).ToImmutableArray();
Shared.Tests (2)
JsonSchemaExporter\SchemaTestHelpers.cs (1)
38.SelectMany(d => d.Errors!.Select(error => $"Path:${d.InstanceLocation} {error.Key}:{error.Value}"));
JsonSchemaExporter\TestTypes.cs (1)
39.SelectMany(t => t.GetTestDataForAllValues())
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IPv6ScopeIdPresentConditionAttribute.cs (1)
26.SelectMany(iface => iface.GetIPProperties().UnicastAddresses)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
1181.SelectMany(i => i.GetIPProperties().UnicastAddresses)
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\IPv6ScopeIdPresentConditionAttribute.cs (1)
26.SelectMany(iface => iface.GetIPProperties().UnicastAddresses)
System.ComponentModel.Composition (11)
Microsoft\Internal\ReflectionServices.cs (1)
126return type.GetInterfaces().Concat(new Type[] { type }).SelectMany(itf => itf.GetProperties());
System\ComponentModel\Composition\Hosting\AggregateCatalog.cs (1)
196return _catalogs.SelectMany(catalog => catalog).GetEnumerator();
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (1)
103var removedParts = new Lazy<IEnumerable<ComposablePartDefinition>>(() => catalogs.SelectMany(catalog => catalog).ToArray(), LazyThreadSafetyMode.PublicationOnly);
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (2)
366batch.PartsToAdd.SelectMany(part => part.ExportDefinitions).ToArray() : 370batch.PartsToRemove.SelectMany(part => part.ExportDefinitions).ToArray() :
System\ComponentModel\Composition\Hosting\CompositionScopeDefinition.cs (1)
138return this.SelectMany((p) => p.ExportDefinitions);
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (4)
500return _catalogCollection.SelectMany(catalog => catalog as IEnumerable<ComposablePartDefinition>).GetEnumerator(); 528return _catalogCollection.SelectMany(catalog => catalog.GetExports(definition)); 602.SelectMany(cat => cat.Item2 as IEnumerable<ComposablePartDefinition>) 606.SelectMany(cat => cat.Item2 as IEnumerable<ComposablePartDefinition>)
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (1)
184.SelectMany(exports => exports);
System.Composition.TypedParts (2)
System\Composition\Hosting\ContainerConfiguration.cs (1)
217return WithParts(assemblies.SelectMany(a => a.DefinedTypes.Select(dt => dt.AsType())), conventions);
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
76.SelectMany(feature => feature.GetDependencies(_partType, definitionAccessor)))
System.Data.Common (1)
System\Data\TypeLimiter.cs (1)
121? dataSet.Tables.Cast<DataTable>().SelectMany(GetPreviouslyDeclaredDataTypes)
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\Unary\SelectManyQueryOperator.cs (1)
204return (IEnumerable<TOutput>)CancellableEnumerable.Wrap(Child.AsSequentialQuery(token), token).SelectMany(_rightChildSelector);
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (1)
69.SelectMany(al => al.Attributes)
xunit.console (2)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (2)
71.SelectMany(tuple => tuple.Item2.AssetPaths.Where(x => x != null) 85.SelectMany(tuple => tuple.Item2.AssetPaths.Where(x => x != null)