1886 references to ToList
AnalyzerRunner (2)
Program.cs (2)
145var projects = solution.Projects.Where(project => project.Language is LanguageNames.CSharp or LanguageNames.VisualBasic).ToList(); 176var projects = solution.Projects.Where(project => project.Language is LanguageNames.CSharp or LanguageNames.VisualBasic).ToList();
Aspire.Dashboard (20)
Authentication\Connection\ConnectionTypeMiddleware.cs (1)
20_connectionTypes = connectionTypes.ToList();
Components\Controls\Chart\ChartBase.cs (1)
195return (traces.Select(kvp => kvp.Value).ToList(), xValues, exemplars);
Components\Controls\Chart\MetricTable.razor.cs (1)
29private IQueryable<MetricViewBase> _metricsView => _metrics.Values.AsEnumerable().Reverse().ToList().AsQueryable();
Components\Dialogs\FilterDialog.razor.cs (1)
133_filteredValues = newValues.Take(1000).ToList();
DashboardWebApplication.cs (1)
166_validationFailures = failureMessages.ToList();
Extensions\TelemetryFilterFormatter.cs (1)
89.ToList();
Model\StructuredLogsViewModel.cs (1)
82var filters = Filters.ToList();
Model\TracesViewModel.cs (1)
80var filters = Filters.ToList();
Otlp\Model\OtlpApplication.cs (2)
149.ToDictionary(grouping => grouping.Key, grouping => grouping.ToList()); 187internal List<OtlpApplicationView> GetViews() => _applicationViews.Values.ToList();
Otlp\Model\OtlpHelpers.cs (2)
406items = query.Select(select).ToList(); 410items = query.Cast<TResult>().ToList();
Otlp\Storage\TelemetryRepository.cs (4)
100var applications = results.OrderBy(a => a.ApplicationKey).ToList(); 448return keys.OrderBy(k => k).ToList(); 475return keys.OrderBy(k => k).ToList(); 944var currentSpanLinks = _spanLinks.ToList();
ResourceService\DashboardClient.cs (2)
461yield return batch.SelectMany(batch => batch).ToList(); 520yield return batch.SelectMany(batch => batch).ToList();
Utils\GlobalizationHelpers.cs (2)
30LocalizedCultures = localizedCultureNames.Select(CultureInfo.GetCultureInfo).ToList(); 74var allCultures = CultureInfo.GetCultures(CultureTypes.AllCultures).ToList();
Aspire.Dashboard.Tests (10)
GlobalizationHelpersTests.cs (1)
19.ToList();
Integration\FrontendBrowserTokenAuthTests.cs (3)
171var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList(); 232var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList(); 259var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList();
Integration\IntegrationTestHelpers.cs (1)
90foreach (var item in sources.ToList())
Integration\StartupTests.cs (2)
559var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList(); 639var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList();
TelemetryRepositoryTests\TraceTests.cs (3)
951var actualOrder = traces.PagedResult.Items.Select(t => t.TraceId).ToList(); 952var expectedOrder = traces.PagedResult.Items.OrderBy(t => t.FirstSpan.StartTime).Select(t => t.TraceId).ToList(); 1482var views = application.GetViews().OrderBy(v => v.Properties.Length).ToList();
Aspire.Hosting (4)
Dashboard\DashboardLifecycleHook.cs (1)
137var endpointAnnotations = dashboardResource.Annotations.OfType<EndpointAnnotation>().ToList();
Dcp\ApplicationExecutor.cs (1)
472= serviceProducerAnnotations.Select(e => e.ServiceName).ToList();
Publishing\ManifestPublishingContext.cs (2)
589var bindMounts = mounts.Where(mounts => mounts.Type == ContainerMountType.BindMount).ToList(); 615var volumes = mounts.Where(mounts => mounts.Type == ContainerMountType.Volume).ToList();
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
356.ToList();
Aspire.Hosting.Dapr (3)
CommandLineBuilder.cs (1)
19var args = this.Arguments.ToList();
DaprDistributedApplicationLifecycleHook.cs (1)
369.ToList();
src\Shared\Utf8JsonWriterExtensions.cs (1)
24var valuesList = values.ToList();
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
142var containerAnnotations = builder.Resource.Annotations.OfType<ContainerImageAnnotation>().ToList();
Aspire.Hosting.Testing.Tests (4)
TestingBuilderTests.cs (3)
22var realBuilderProperties = typeof(IDistributedApplicationBuilder).GetProperties().Select(p => p.Name).ToList(); 23var testBuilderProperties = typeof(IDistributedApplicationTestingBuilder).GetProperties().Select(p => p.Name).ToList(); 24var missingProperties = realBuilderProperties.Except(testBuilderProperties).ToList();
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
89var table = logTexts.ToList();
Aspire.Hosting.Tests (15)
Dcp\ApplicationExecutorTests.cs (5)
77var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 426var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 665var exes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 710var exes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 1037var commandAnnotations = resource.Annotations.OfType<ResourceCommandAnnotation>().ToList();
ResourceLoggerServiceTests.cs (1)
240var sortedLogs = allLogs.OrderBy(l => l.LineNumber).ToList();
Utils\LoggerNotificationExtensions.cs (1)
89var table = logTexts.ToList();
Utils\StringComparersTests.cs (8)
17var comparers = typeof(StringComparers).GetProperties(flags).OrderBy(c => c.Name, StringComparer.Ordinal).ToList(); 18var comparisons = typeof(StringComparisons).GetProperties(flags).OrderBy(c => c.Name, StringComparer.Ordinal).ToList(); 48var comparerNames = comparers.Select(c => c.Name).ToList(); 49var comparisonNames = comparisons.Select(c => c.Name).ToList(); 53var extraComparers = comparerNames.Except(comparisonNames, StringComparer.Ordinal).ToList(); 54var extraComparisons = comparisonNames.Except(comparerNames, StringComparer.Ordinal).ToList(); 68var comparerValues = comparers.Select(c => (c.Name, Value: (StringComparer)c.GetValue(null)!)).ToList(); 69var comparisonValues = comparisons.Select(c => (c.Name, Value: (StringComparison)c.GetValue(null)!)).ToList();
Aspire.Playground.Tests (6)
Infrastructure\DistributedApplicationExtensions.cs (5)
28var parameters = builder.Resources.OfType<ParameterResource>().Where(p => !p.IsConnectionString).ToList(); 56.ToList(); 116var appHostLogs = logs.Where(l => l.Category?.StartsWith($"{environment.ApplicationName}.Resources") == false).ToList(); 117var resourceLogs = logs.Where(l => l.Category?.StartsWith($"{environment.ApplicationName}.Resources") == true).ToList(); 133var assertableResourceLogNames = applicationModel.Resources.Where(ShouldAssertErrorsForResource).Select(r => $"{environment.ApplicationName}.Resources.{r.Name}").ToList();
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
89var table = logTexts.ToList();
Aspire.Workload.Tests (1)
WorkloadTestsBase.cs (1)
213.ToList();
BoundTreeGenerator (1)
BoundNodeClassWriter.cs (1)
1484var allSpecifiableFields = AllSpecifiableFields(node).ToList();
BuildBoss (2)
Program.cs (1)
79solutionFiles = Directory.EnumerateFiles(repositoryDirectory, "*.sln").ToList();
ProjectCheckerUtil.cs (1)
98var declaredList = declaredEntryList.Select(x => x.ProjectKey).ToList();
ClientSample (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
CodeGenerator (10)
HttpUtilities\HttpUtilities.cs (5)
36var methodsInfo = httpMethods.Select(GetMethodStringAndUlongAndMaskLength).ToList(); 38var methodsInfoWithoutGet = methodsInfo.Where(m => m.HttpMethod != "Get").ToList(); 122var distinctLengths = methodsInfo.Select(m => m.MaskLength).Distinct().ToList(); 149methodsInfo = methodsInfo.ToList(); 174methodsInfo = methodsInfo.ToList();
src\Servers\Kestrel\shared\KnownHeaders.cs (5)
321case {byLength.Key}:{AppendSwitchSection(byLength.Key, byLength.OrderBy(h => h, KnownHeaderComparer.Instance).ToList())} 448.ToList(); 1466{AppendQPackSwitch(h.QPackStaticTableFields.OrderBy(t => t.Index).ToList())} 1511}).Where(g => g.Header != null).ToList(); 1532}).Where(g => g.Header != null).ToList();
csc (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
68Arguments = new ReadOnlyCollection<Argument>(arguments.ToList());
CSharpSyntaxGenerator (31)
AbstractFileWriter.cs (1)
388return field.Kinds.Distinct().ToList();
SignatureWriter.cs (3)
51var nodes = _tree.Types.Where(n => n is not PredefinedNode).ToList(); 85var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 86var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList();
SourceWriter.cs (27)
76var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 114var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 115var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 153var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 154var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 366var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 434var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 442var nodeFields = node.Fields.Where(nd => IsNodeOrNodeList(nd.Type)).ToList(); 477var nodes = Tree.Types.Where(n => n is not PredefinedNode and not AbstractNode).ToList(); 494var nodes = Tree.Types.Where(n => n is not PredefinedNode and not AbstractNode).ToList(); 513var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 514var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 526var kinds = nd.Kinds.Distinct().ToList(); 561var kinds = field.Kinds.Distinct().ToList(); 683var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 693? an.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList() 695? nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList() 712var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 824var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 825var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 1061var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 1286var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 1332var nodes = Tree.Types.Where(n => n is not PredefinedNode and not AbstractNode).OfType<Node>().ToList(); 1419var valueFields = nd.Fields.Where(n => IsValueField(n)).ToList(); 1420var nodeFields = nd.Fields.Where(n => !IsValueField(n)).ToList(); 1435var kinds = nd.Kinds.Distinct().ToList(); 1454var kinds = fieldKinds.ToList();
Diagnostics.EFCore.FunctionalTests (2)
DatabaseErrorPageMiddlewareTest.cs (2)
409Assert.Contains(logProvider.Logger.Messages.ToList(), m => 457Assert.Contains(logProvider.Logger.Messages.ToList(), m =>
dotnet-dev-certs (7)
Program.cs (1)
304var trustedCertificates = certificates.Where(cert => certificateManager.GetTrustLevel(cert) == CertificateManager.TrustLevel.Full).ToList();
src\Shared\CertificateGeneration\CertificateManager.cs (2)
125matchingCertificates = matchingCertificates.ToList(); 846var list = certificates.ToList();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
dotnet-getdocument (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
dotnet-openapi (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
dotnet-sql-cache (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (1)
418IList<string> referencedAssembliesArgs = smReferenceArg.Split(';').ToList();
dotnet-svcutil-lib (13)
CommandProcessorOptions.cs (3)
151var options = cmdOptions.GetOptions().ToList(); 251var userOptions = this.GetOptions().ToList(); 673this.Project.EndOfLifeTargetFrameworks?.ToList().ForEach(tfx => this.AddWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnOutOfSupportTargetFrameworkFormat, tfx)));
ImportModule.cs (3)
143Collection<ServiceEndpoint> endpoints = new Collection<ServiceEndpoint>(serviceDescriptor.Endpoints.ToList()); 144Collection<Binding> bindings = new Collection<Binding>(serviceDescriptor.Bindings.ToList()); 145Collection<ContractDescription> contracts = new Collection<ContractDescription>(serviceDescriptor.Contracts.ToList());
Metadata\MetadataDocumentSaver.cs (2)
227var unresolvedRefs = UnresolvedReferences.Where(u => MetadataFileNameManager.UriEqual(u.WsdlImport?.Location, sourceUrl)).ToList(); 251(!string.IsNullOrEmpty(u.Namespace) && u.Namespace == schema.TargetNamespace))).ToList();
Metadata\ServiceDescriptorFactory.cs (1)
100var removeKeys = _cache.Keys.Where((k) => !_cache[k].MetadataImported).ToList();
Shared\Options\ListValueOption.cs (1)
114collection = jToken.Select(i => i.Value<string>()).ToList();
Tool.cs (2)
107var earlyWarnings = options.Warnings.ToList(); 206new ServiceDescriptor(options.Inputs.Select(i => i.ToString()).ToList(), credsProvider, credsProvider, credsProvider);
TypeLoader.cs (1)
55listType = listType.Except(GetUnAvailableTypes(listType)).ToList();
dotnet-svcutil-lib.Tests (2)
TestInit.cs (2)
482fileLines1 = fileLines1.Where(f => !string.IsNullOrWhiteSpace(f)).ToList(); 483fileLines2 = fileLines2.Where(f => !string.IsNullOrWhiteSpace(f)).ToList();
dotnet-user-jwts (6)
Helpers\ConsoleTable.cs (1)
55.ToList();
Helpers\DevJwtCliHelpers.cs (1)
80return applicationUrls.ToList();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
32.ToList();
dotnet-user-secrets (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
32.ToList();
FilesWebSite (1)
Controllers\UploadFilesController.cs (1)
35files.Add(keyValuePair.Key, keyValuePair.Value?.Select(formFile => formFile?.FileName).ToList());
FormatterWebSite (1)
ValidateBodyParameterAttribute.cs (1)
32Errors = parameterBindingErrors.Select(x => x.ErrorMessage).ToList(),
GetDocument.Insider (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
IdeCoreBenchmarks (2)
FindReferencesBenchmarks.cs (2)
110var refList = references.ToList(); 112var locations = refList.SelectMany(r => r.Locations).ToList();
Identity.DefaultUI.WebSite (4)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (4)
35var claims = user.Claims.Select(c => new Claim(c.ClaimType, c.ClaimValue)).ToList(); 50var matchedClaims = user.Claims.Where(uc => uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToList(); 191.Select(l => new UserLoginInfo(l.LoginProvider, l.ProviderKey, l.ProviderDisplayName)).ToList(); 342return Task.FromResult<IList<TUser>>(query.ToList());
Identity.ExternalClaims (3)
Pages\Account\Login.cshtml.cs (1)
63ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList();
Pages\Account\Manage\ExternalLogins.cshtml.cs (1)
49.ToList();
Startup.cs (1)
53List<AuthenticationToken> tokens = ctx.Properties.GetTokens().ToList();
IdentitySample.DefaultUI (2)
Areas\Identity\Pages\Account\Register.cshtml.cs (2)
73ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList(); 79ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList();
IdentitySample.Mvc (2)
Controllers\AccountController.cs (1)
355var factorOptions = userFactors.Select(purpose => new SelectListItem { Text = purpose, Value = purpose }).ToList();
Controllers\ManageController.cs (1)
308var otherLogins = schemes.Where(auth => userLogins.All(ul => auth.Name != ul.LoginProvider)).ToList();
IIS.FunctionalTests (5)
Http2TrailersResetTests.cs (2)
487var headers = Headers.ToList(); 496var headers = PostRequestHeaders.ToList();
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
146var xmlFiles = Directory.GetFiles(folderPath).Where(f => f.EndsWith("xml", StringComparison.Ordinal)).ToList();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
382var headers = Headers.ToList();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
146var xmlFiles = Directory.GetFiles(folderPath).Where(f => f.EndsWith("xml", StringComparison.Ordinal)).ToList();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
382var headers = Headers.ToList();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
illink (5)
ILLink.RoslynAnalyzer (2)
src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
61 .ToList ();
TrimAnalysis\TrimDataFlowAnalysis.cs (1)
90 var blocks = cfg.Blocks.ToList ();
InMemory.FunctionalTests (5)
EventSourceTests.cs (4)
79var events = _listener.EventData.Where(e => e != null && GetProperty(e, "connectionId") == connectionId).ToList(); 204var events = _listener.EventData.Where(e => e != null && GetProperty(e, "connectionId") == connectionId).ToList(); 308var events = _listener.EventData.Where(e => e != null && GetProperty(e, "connectionId") == connectionId).ToList(); 389var events = _listener.EventData.Where(e => e != null && GetProperty(e, "connectionId") == connectionId).ToList();
Http2\Http2ConnectionTests.cs (1)
2430var l = values.ToList();
Interop.FunctionalTests (2)
HttpClientHttp2InteropTests.cs (2)
1233var responses = await Task.WhenAll(tasks.ToList()).DefaultTimeout(); 1294var responses = await Task.WhenAll(tasks.ToList()).DefaultTimeout();
InteropClient (2)
InteropClient.cs (2)
337CollectionAssert.AreEqual(bodySizes, responseList.Select((item) => item.Payload.Body.Length).ToList()); 834CollectionAssert.AreEqual(bodySizes, responseList.Select((item) => item.Payload.Body.Length).ToList());
InteropWebsite (2)
TestServiceImpl.cs (2)
101var echoInitialList = context.RequestHeaders.Where((entry) => entry.Key == "x-grpc-test-echo-initial").ToList(); 115var echoTrailingList = context.RequestHeaders.Where((entry) => entry.Key == "x-grpc-test-echo-trailing-bin").ToList();
IOperationGenerator (9)
IOperationClassWriter.cs (8)
328.ToList(); 330var unusedKinds = _tree.UnusedOperationKinds.Entries?.Select(e => e.Value).ToList() ?? new List<int>(); 407var ioperationProperties = allProps.Where(p => IsIOperationType(p.Type)).ToList(); 408var publicIOperationProps = ioperationProperties.Where(p => !p.IsInternal).ToList(); 551List<Property> propsToInitialize = type.Properties.Where(p => !p.SkipGeneration && !p.MakeAbstract).ToList(); 1076var properties = node.Properties.Where(p => !p.SkipGeneration || includeSkipGenerationProperties).ToList(); 1093return GetAllProperties(node).Where(p => IsIOperationType(p.Type)).ToList(); 1120private static List<string> GetPropertyOrder(Node node) => node.ChildrenOrder?.Split(",", StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()).ToList() ?? new List<string>();
IOperationClassWriter.Verifier.cs (1)
86var properties = GetAllGeneratedIOperationProperties(node).Where(p => !p.IsInternal).Select(p => p.Name).ToList();
Microsoft.Analyzers.Extra.Tests (4)
Resources\RoslynTestUtils.cs (4)
303var l = sourceNames.ToList(); 376var l = sourceNames.ToList(); 418var l = sourceNames.ToList(); 467var l = sourceNames.ToList();
Microsoft.Analyzers.Local.Tests (5)
InternalReferencedInPublicDocAnalyzerTests.cs (1)
461var detected = result.Where(IsInternalReferencedInPublicDocDiagnostic).ToList();
Resources\RoslynTestUtils.cs (4)
304var l = sourceNames.ToList(); 377var l = sourceNames.ToList(); 419var l = sourceNames.ToList(); 468var l = sourceNames.ToList();
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultClaimUidExtractorTest.cs (1)
66var claims = claimsIdentity.Claims.ToList();
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\AmbiguousRoutePatternComparer.cs (2)
103var xParameterPolicies = x.ParameterParts.Where(p => p.Kind == RoutePatternKind.ParameterPolicy).OfType<RoutePatternPolicyParameterPartNode>().ToList(); 104var yParameterPolicies = y.ParameterParts.Where(p => p.Kind == RoutePatternKind.ParameterPolicy).OfType<RoutePatternPolicyParameterPartNode>().ToList();
Microsoft.AspNetCore.App.Analyzers.Test (5)
Http\HeaderDictionaryIndexerAnalyzerTests.cs (1)
167.ToList();
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (1)
88var orderedMatches = matches.OrderBy(t => t, Comparer<(int matchIndex, string name)>.Create((t1, t2) => t1.matchIndex - t2.matchIndex)).ToList();
RouteEmbeddedLanguage\RoutePatternClassifierTests.cs (1)
32var actualOrdered = actual.OrderBy(t1 => t1.TextSpan.Start).ToList();
RouteEmbeddedLanguage\RoutePatternHighlighterTests.cs (1)
457var tempSpans = spans.ToList();
TestDiagnosticAnalyzer.cs (1)
123var assemblies = MefHostServices.DefaultAssemblies.ToList();
Microsoft.AspNetCore.Authentication.JwtBearer (2)
JwtBearerConfigureOptions.cs (2)
45var issuers = configSection.GetSection(nameof(TokenValidationParameters.ValidIssuers)).GetChildren().Select(iss => iss.Value).ToList(); 48var audiences = configSection.GetSection(nameof(TokenValidationParameters.ValidAudiences)).GetChildren().Select(aud => aud.Value).ToList();
Microsoft.AspNetCore.Authentication.OAuth (2)
ClaimActionCollection.cs (1)
27var itemsToRemove = Actions.Where(map => string.Equals(claimType, map.ClaimType, StringComparison.OrdinalIgnoreCase)).ToList();
DeleteClaimAction.cs (1)
27foreach (var claim in identity.FindAll(ClaimType).ToList())
Microsoft.AspNetCore.Authentication.Test (11)
ClaimActionTests.cs (2)
36var roleClaims = identity.FindAll("role").ToList(); 68var roleClaims = identity.FindAll("role").ToList();
OpenIdConnect\OpenIdConnectEventTests.cs (1)
1016Assert.True(SetCookieHeaderValue.TryParseStrictList(values.ToList(), out var parsedValues));
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
1016Assert.True(SetCookieHeaderValue.TryParseStrictList(values.ToList(), out var parsedValues));
OpenIdConnect\TestServerExtensions.cs (1)
37transaction.SetCookie = transaction.Response.Headers.GetValues("Set-Cookie").ToList();
TestExtensions.cs (1)
32transaction.SetCookie = transaction.Response.Headers.GetValues("Set-Cookie").ToList();
TwitterTests.cs (3)
213Assert.True(SetCookieHeaderValue.TryParseList(setCookie.ToList(), out var setCookieValues)); 263Assert.True(SetCookieHeaderValue.TryParseList(setCookie.ToList(), out var setCookieValues)); 370Assert.True(SetCookieHeaderValue.TryParseList(setCookie.ToList(), out var setCookieValues));
WsFederation\WsFederationTest.cs (1)
264var cookies = SetCookieHeaderValue.ParseList(response.Headers.GetValues(HeaderNames.SetCookie).ToList());
WsFederation\WsFederationTest_Handler.cs (1)
262var cookies = SetCookieHeaderValue.ParseList(response.Headers.GetValues(HeaderNames.SetCookie).ToList());
Microsoft.AspNetCore.Components.Authorization.Tests (1)
src\Components\Shared\test\TestRenderer.cs (1)
126capturedBatch.DisposedComponentIDs = renderBatch.DisposedComponentIDs.AsEnumerable().ToList();
Microsoft.AspNetCore.Components.Endpoints (1)
Discovery\IRazorComponentApplication.cs (1)
36RouteTemplates = routes.Select(r => r.Template).ToList(),
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
HotReloadServiceTests.cs (4)
67var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 95var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 145var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 146var compositePageEndpoints = compositeEndpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList();
Microsoft.AspNetCore.Components.Forms.Tests (1)
src\Components\Shared\test\TestRenderer.cs (1)
126capturedBatch.DisposedComponentIDs = renderBatch.DisposedComponentIDs.AsEnumerable().ToList();
Microsoft.AspNetCore.Components.Performance (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Components.Tests (5)
RendererTest.cs (1)
2244.ToList();
RenderTreeDiffBuilderTest.cs (1)
2440.ToList();
Routing\RouteTableFactoryTests.cs (1)
129return result.ToList();
Routing\TemplateParserTests.cs (1)
278Segments.ToList());
src\Components\Shared\test\TestRenderer.cs (1)
126capturedBatch.DisposedComponentIDs = renderBatch.DisposedComponentIDs.AsEnumerable().ToList();
Microsoft.AspNetCore.Components.Web.Tests (1)
src\Components\Shared\test\TestRenderer.cs (1)
126capturedBatch.DisposedComponentIDs = renderBatch.DisposedComponentIDs.AsEnumerable().ToList();
Microsoft.AspNetCore.Components.WebAssembly (2)
Services\LazyAssemblyLoader.cs (2)
71var newAssembliesToLoad = assembliesToLoad.ToList(); 85allAssemblies = AssemblyLoadContext.Default.Assemblies.ToList();
Microsoft.AspNetCore.Components.WebAssembly.Server (3)
DebugProxyLauncher.cs (1)
111var keysToRemove = environment.Keys.Where(key => key.StartsWith("ASPNETCORE_", StringComparison.Ordinal)).ToList();
TargetPickerUi.cs (2)
303? availableTabs.ToList() 304: availableTabs.Where(t => t.Url.Equals(targetApplicationUrl, StringComparison.Ordinal)).ToList();
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.CookiePolicy.Test (1)
TestExtensions.cs (1)
29transaction.SetCookie = transaction.Response.Headers.GetValues("Set-Cookie").ToList();
Microsoft.AspNetCore.Cors.Test (1)
CorsPolicyBuilderTests.cs (1)
107Assert.Equal(origins.ToList(), corsPolicy.Origins);
Microsoft.AspNetCore.DataProtection (5)
KeyManagement\KeyEscrowServiceProviderExtensions.cs (1)
20var escrowSinks = services?.GetService<IEnumerable<IKeyEscrowSink>>()?.ToList();
KeyManagement\XmlKeyManager.cs (1)
168return processed.OfType<IKey>().ToList().AsReadOnly();
Repositories\EphemeralXmlRepository.cs (1)
32return GetAllElementsCore().ToList().AsReadOnly();
Repositories\FileSystemXmlRepository.cs (1)
72return GetAllElementsCore().ToList().AsReadOnly();
Repositories\RegistryXmlRepository.cs (1)
59return GetAllElementsCore().ToList().AsReadOnly();
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
EntityFrameworkCoreXmlRepository.cs (1)
44return GetAllElementsCore().ToList().AsReadOnly();
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (1)
RedisXmlRepository.cs (1)
35return GetAllElementsCore().ToList().AsReadOnly();
Microsoft.AspNetCore.DataProtection.Tests (4)
XmlAssert.cs (4)
57List<XNode> filteredExpected = expected.Where(ShouldIncludeNodeDuringComparison).ToList(); 58List<XNode> filteredActual = actual.Where(ShouldIncludeNodeDuringComparison).ToList(); 88.ToList(); 93.ToList();
Microsoft.AspNetCore.DeveloperCertificates.XPlat (3)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
125matchingCertificates = matchingCertificates.ToList(); 846var list = certificates.ToList();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
HealthCheckOptions.cs (1)
52var missingHealthStatus = Enum.GetValues<HealthStatus>().Except(mapping.Keys).ToList();
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\JsonTranscodingRouteAdapter.cs (1)
58var tempSegments = pattern.Segments.ToList();
src\Grpc\JsonTranscoding\src\Shared\Server\InterceptorPipelineBuilder.cs (1)
35_interceptors = interceptors.Select(i => new InterceptorActivatorHandle(i)).ToList();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
ConverterTests\JsonElementComparer.cs (2)
70var xPropertiesUnsorted = x.EnumerateObject().ToList(); 71var yPropertiesUnsorted = y.EnumerateObject().ToList();
JsonTranscodingServiceMethodProviderTests.cs (1)
239.ToList();
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
74EndpointMetadata = routeEndpoint.Metadata.ToList()
Microsoft.AspNetCore.Grpc.Swagger.Tests (3)
Binding\ResponseBodyTests.cs (1)
67var enumValues = enumSchema.Enum.Select(e => ((OpenApiString)e).Value).OrderBy(s => s).ToList();
SchemaGeneratorIntegrationTests.cs (2)
47var enumValues = enumSchema.Enum.Select(e => ((OpenApiString)e).Value).OrderBy(s => s).ToList(); 67var enumValues = schema.Enum.Select(e => ((OpenApiString)e).Value).OrderBy(s => s).ToList();
Microsoft.AspNetCore.Hosting (3)
Internal\StartupLoader.cs (3)
269var definedTypes = assembly.DefinedTypes.ToList(); 324var selectedMethods = methods.Where(method => method.Name.Equals(methodNameWithEnv, StringComparison.OrdinalIgnoreCase)).ToList(); 331selectedMethods = methods.Where(method => method.Name.Equals(methodNameWithNoEnv, StringComparison.OrdinalIgnoreCase)).ToList();
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
RouteValueDictionaryTests.cs (2)
89yield return new object[] { routeValues.ToList() }; 108yield return new object[] { routeValues.ToList() };
Microsoft.AspNetCore.Http.Connections.Tests (2)
NegotiateProtocolTests.cs (1)
43var responseTransports = response.AvailableTransports.Select(t => t.Transport).ToList();
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
22 return GetAllElementsCore().ToList().AsReadOnly();
Microsoft.AspNetCore.Http.Extensions.Tests (2)
HeaderDictionaryTypeExtensionsTest.cs (2)
176}.ToList(); 257Assert.Equal(new[] { new TestHeaderValue() }.ToList(), results);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggingMiddleware.cs (1)
180var additionalRequestHeaders = _additionalRequestHeaders.ToList();
Microsoft.AspNetCore.HttpsPolicy.Tests (12)
HstsMiddlewareTests.cs (5)
210var logMessages = sink.Writes.ToList(); 265var logMessages = sink.Writes.ToList(); 320var logMessages = sink.Writes.ToList(); 367var logMessages = sink.Writes.ToList(); 413var logMessages = sink.Writes.ToList();
HttpsRedirectionMiddlewareTests.cs (7)
57var logMessages = sink.Writes.ToList(); 113var logMessages = sink.Writes.ToList(); 169var logMessages = sink.Writes.ToList(); 270var logMessages = sink.Writes.ToList(); 358var logMessages = sink.Writes.ToList(); 404var logMessages = sink.Writes.ToList(); 448var logMessages = sink.Writes.ToList();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (3)
27.ToList(); 43select method).ToList(); 50.ToList();
Microsoft.AspNetCore.Identity.InMemory.Test (9)
InMemoryStore.cs (2)
67return Task.FromResult<IList<TUser>>(Users.Where(u => (u.Roles.Where(x => x.RoleId == role.Id).Any())).Select(x => x).ToList()); 128var claims = role.Claims.Select(c => new Claim(c.ClaimType, c.ClaimValue)).ToList();
InMemoryUserStore.cs (4)
35var claims = user.Claims.Select(c => new Claim(c.ClaimType, c.ClaimValue)).ToList(); 50var matchedClaims = user.Claims.Where(uc => uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToList(); 191.Select(l => new UserLoginInfo(l.LoginProvider, l.ProviderKey, l.ProviderDisplayName)).ToList(); 342return Task.FromResult<IList<TUser>>(query.ToList());
src\Identity\test\Shared\ApiConsistencyTestBase.cs (3)
27.ToList(); 43select method).ToList(); 50.ToList();
Microsoft.AspNetCore.Identity.Test (4)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (3)
27.ToList(); 43select method).ToList(); 50.ToList();
UserClaimsPrincipalFactoryTest.cs (1)
94var claims = identity.Claims.ToList();
Microsoft.AspNetCore.Identity.UI (10)
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (2)
115ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList(); 124ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList();
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (1)
95.ToList();
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (2)
120ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList(); 126ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList();
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (2)
115ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList(); 124ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList();
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (1)
95.ToList();
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (2)
120ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList(); 126ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList();
Microsoft.AspNetCore.InternalTesting (1)
xunit\AspNetTestAssemblyRunner.cs (1)
44.ToList();
Microsoft.AspNetCore.InternalTesting.Tests (1)
AlphabeticalOrderer.cs (1)
17var result = testCases.ToList();
Microsoft.AspNetCore.Localization (1)
AcceptLanguageHeaderRequestCultureProvider.cs (1)
44.Select(x => x.Value).ToList();
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelPropertyCollection.cs (1)
19: base(properties.ToList())
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (2)
53var producesResponseMetadata = action.EndpointMetadata.OfType<IProducesResponseTypeMetadata>().ToList(); 72.ToList();
DefaultApiDescriptionProvider.cs (1)
109var templateParameters = parsedTemplate?.Parameters?.ToList() ?? new List<TemplatePart>();
Microsoft.AspNetCore.Mvc.Core (11)
AcceptVerbsAttribute.cs (1)
36_httpMethods = methods.Select(method => method.ToUpperInvariant()).ToList();
ApplicationModels\ActionAttributeRouteModel.cs (2)
18.ToList(); 148.ToList();
ApplicationModels\ApplicationModelFactory.cs (1)
215.ToList();
ApplicationModels\ControllerActionDescriptorBuilder.cs (2)
59.ToList(); 178.ToList();
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
92var fromBodyParameters = action.Parameters.Where(p => p.BindingInfo!.BindingSource == BindingSource.Body).ToList();
Filters\FilterFactory.cs (1)
25.ToList();
Filters\MiddlewareFilterConfigurationProvider.cs (1)
44var selectedMethods = methods.Where(method => method.Name.Equals(methodName)).ToList();
ModelBinding\Metadata\HasValidatorsValidationMetadataProvider.cs (1)
49propertyAttributes = context.PropertyAttributes!.ToList();
Routing\HttpMethodAttribute.cs (1)
39_httpMethods = httpMethods.ToList();
Microsoft.AspNetCore.Mvc.Core.Test (18)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1389.ToList();
Authorization\AuthorizeFilterTest.cs (1)
633Enumerable.Empty<IFilterMetadata>().ToList()
Controllers\ControllerFeatureProviderTest.cs (2)
323Assert.Equal(expected, feature.Controllers.ToList()); 358Assert.Equal(expected, feature.Controllers.ToList());
DependencyInjection\MvcBuilderExtensionsTest.cs (2)
96var services = collection.ToList(); 127var collection = services.ToList();
Filters\MiddlewareFilterTest.cs (1)
432ValueProviderFactories = valueProviderFactories.ToList()
Formatters\AcceptHeaderParserTest.cs (1)
95var expectedMediaTypes = expected.Select(e => new MediaTypeSegmentWithQuality(new StringSegment(e), 1.0)).ToList();
Infrastructure\ActionSelectorTest.cs (1)
1000.ToList();
Infrastructure\ControllerActionInvokerTest.cs (1)
1574var messages = testSink.Writes.Select(write => write.State.ToString()).ToList();
ModelBinding\Binders\BodyModelBinderTests.cs (1)
610var writeList = sink.Writes.ToList();
ModelBinding\Metadata\DefaultModelMetadataTest.cs (2)
717var SinglePropertiesEvaluation = metadata.Properties.ToList(); 718var secondPropertiesEvaluation = metadata.Properties.ToList();
ModelBinding\Validation\DefaultModelValidatorProviderTest.cs (1)
172return metadata.ValidatorMetadata.Select(v => new ValidatorItem(v)).ToList();
ModelBinding\Validation\DefaultObjectValidatorTests.cs (2)
1483Assert.Equal<string>(keys.OrderBy(k => k).ToList(), modelState.Keys.OrderBy(k => k).ToList());
ResponseCacheAttributeTest.cs (1)
349filters?.ToList() ?? new List<IFilterMetadata>(),
Routing\ActionEndpointFactoryTest.cs (1)
438return endpoints.ToList();
Microsoft.AspNetCore.Mvc.Cors.Test (1)
CorsAuthorizationFilterTest.cs (1)
159filterDescriptors.Select(filter => filter.Filter).ToList()
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (4)
DataAnnotationsClientModelValidatorProviderTest.cs (1)
137return metadata.ValidatorMetadata.Select(v => new ClientValidatorItem(v)).ToList();
DataTypeClientModelValidatorProviderTest.cs (1)
85return metadata.ValidatorMetadata.Select(v => new ClientValidatorItem(v)).ToList();
DefaultModelClientValidatorProviderTest.cs (2)
192return metadata.ValidatorMetadata.Select(v => new ClientValidatorItem(v)).ToList(); 197return metadata.ValidatorMetadata.Select(v => new ValidatorItem(v)).ToList();
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (3)
EnumerableWrapperProviderFactoryTest.cs (3)
129(new [] { 10, 20 }).ToList() 133(new [] { new Person() { Id =10, Name = "John" } }).ToList() 137(new [] { serializableError }).ToList()
Microsoft.AspNetCore.Mvc.FunctionalTests (4)
TempDataInCookiesTest.cs (1)
37var tempDataSerializers = _serviceCollection.Where(f => f.ServiceType == typeof(TempDataSerializer)).ToList();
TempDataInCookiesUsingCookieConsentTest.cs (1)
112foreach (var cookie in SetCookieHeaderValue.ParseList(values.ToList()))
TempDataPropertyTest.cs (1)
165foreach (var cookie in SetCookieHeaderValue.ParseList(values.ToList()))
TempDataTestBase.cs (1)
268foreach (var cookie in SetCookieHeaderValue.ParseList(values.ToList()))
Microsoft.AspNetCore.Mvc.Localization.Test (4)
HtmlLocalizerTest.cs (2)
225var allLocalizedStrings = htmlLocalizer.GetAllStrings(includeParentCultures: false).ToList(); 241var allLocalizedStrings = htmlLocalizer.GetAllStrings().ToList();
ViewLocalizerTest.cs (2)
132var allLocalizedStrings = viewLocalizer.GetAllStrings(includeParentCultures: false).ToList(); 157var allLocalizedStrings = viewLocalizer.GetAllStrings(includeParentCultures: true).ToList();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RazorReferenceManager.cs (1)
48.ToList();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
AssemblyPartExtensionTest.cs (3)
19var references = part.GetReferencePaths().ToList(); 37var references = part.GetReferencePaths().ToList(); 55var references = part.GetReferencePaths().ToList();
Microsoft.AspNetCore.Mvc.Razor.Test (4)
DependencyInjection\MvcRazorMvcBuilderExtensionsTest.cs (2)
28var activatorDescriptor = Assert.Single(services.ToList(), d => d.ServiceType == typeof(ITagHelperActivator)); 51var collection = services.ToList();
DependencyInjection\MvcRazorMvcCoreBuilderExtensionsTest.cs (2)
68var activatorDescriptor = Assert.Single(services.ToList(), d => d.ServiceType == typeof(ITagHelperActivator)); 91var collection = services.ToList();
Microsoft.AspNetCore.Mvc.RazorPages (5)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
71return Enumerable.Concat(handlerMetatdata, endpointMetadata).ToList();
Infrastructure\PageActionDescriptorProvider.cs (2)
92ActionConstraints = selector.ActionConstraints.ToList(), 103EndpointMetadata = selector.EndpointMetadata.ToList(),
Infrastructure\PageActionInvokerProvider.cs (1)
86ViewStartFactories = cacheEntry.ViewStartFactories.ToList(),
Infrastructure\PageRequestDelegateFactory.cs (1)
100pageContext.ViewStartFactories = cacheEntry.ViewStartFactories.ToList();
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\PageActionInvokerTest.cs (2)
1408var messages = testSink.Writes.Select(write => write.State.ToString()).ToList(); 1509ValueProviderFactories = valueProviderFactories?.ToList() ?? new List<IValueProviderFactory>(),
Microsoft.AspNetCore.Mvc.TagHelpers (1)
TagHelperOutputExtensions.cs (1)
237.ToList();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (11)
SelectTagHelperTest.cs (10)
320var savedDisabled = items.Select(item => item.Disabled).ToList(); 321var savedGroup = items.Select(item => item.Group).ToList(); 322var savedSelected = items.Select(item => item.Selected).ToList(); 323var savedText = items.Select(item => item.Text).ToList(); 324var savedValue = items.Select(item => item.Value).ToList(); 501var savedDisabled = items.Select(item => item.Disabled).ToList(); 502var savedGroup = items.Select(item => item.Group).ToList(); 503var savedSelected = items.Select(item => item.Selected).ToList(); 504var savedText = items.Select(item => item.Text).ToList(); 505var savedValue = items.Select(item => item.Value).ToList();
TagHelperOutputExtensionsTest.cs (1)
570.ToList();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DefaultHtmlGenerator.cs (1)
1560itemsList = selectList.ToList();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (41)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensionsTest.cs (1)
142var collection = services.ToList();
Rendering\HtmlHelperSelectTest.cs (40)
327var savedDisabled = selectList.Select(item => item.Disabled).ToList(); 328var savedGroup = selectList.Select(item => item.Group).ToList(); 329var savedSelected = selectList.Select(item => item.Selected).ToList(); 330var savedText = selectList.Select(item => item.Text).ToList(); 331var savedValue = selectList.Select(item => item.Value).ToList(); 355var savedSelected = selectList.Select(item => item.Selected).ToList(); 395var savedSelected = selectList.Select(item => item.Selected).ToList(); 600var savedSelected = selectList.Select(item => item.Selected).ToList(); 624var savedSelected = selectList.Select(item => item.Selected).ToList(); 648var savedSelected = selectList.Select(item => item.Selected).ToList(); 673var savedSelected = selectList.Select(item => item.Selected).ToList(); 694var savedSelected = selectList.Select(item => item.Selected).ToList(); 722var savedSelected = selectList.Select(item => item.Selected).ToList(); 748var savedDisabled = selectList.Select(item => item.Disabled).ToList(); 749var savedGroup = selectList.Select(item => item.Group).ToList(); 750var savedSelected = selectList.Select(item => item.Selected).ToList(); 751var savedText = selectList.Select(item => item.Text).ToList(); 752var savedValue = selectList.Select(item => item.Value).ToList(); 777var savedSelected = selectList.Select(item => item.Selected).ToList(); 798var savedSelected = selectList.Select(item => item.Selected).ToList(); 1004var savedSelected = selectList.Select(item => item.Selected).ToList(); 1025var savedSelected = selectList.Select(item => item.Selected).ToList(); 1042var savedSelected = selectList.Select(item => item.Selected).ToList(); 1070var savedSelected = selectList.Select(item => item.Selected).ToList(); 1090var savedDisabled = selectList.Select(item => item.Disabled).ToList(); 1091var savedGroup = selectList.Select(item => item.Group).ToList(); 1092var savedSelected = selectList.Select(item => item.Selected).ToList(); 1093var savedText = selectList.Select(item => item.Text).ToList(); 1094var savedValue = selectList.Select(item => item.Value).ToList(); 1122var savedSelected = selectList.Select(item => item.Selected).ToList(); 1146var savedSelected = selectList.Select(item => item.Selected).ToList(); 1166var savedSelected = selectList.Select(item => item.Selected).ToList(); 1187var savedDisabled = selectList.Select(item => item.Disabled).ToList(); 1188var savedGroup = selectList.Select(item => item.Group).ToList(); 1189var savedSelected = selectList.Select(item => item.Selected).ToList(); 1190var savedText = selectList.Select(item => item.Text).ToList(); 1191var savedValue = selectList.Select(item => item.Value).ToList(); 1217var savedSelected = selectList.Select(item => item.Selected).ToList(); 1238var savedSelected = selectList.Select(item => item.Selected).ToList(); 1260var savedSelected = selectList.Select(item => item.Selected).ToList();
Microsoft.AspNetCore.OpenApi (2)
Schemas\OpenApiJsonSchema.Helpers.cs (1)
213schema.Enum = enumValues.Select(v => new OpenApiString(v)).ToList<IOpenApiAny>();
Services\OpenApiDocumentService.cs (1)
312return tagsMetadata.Tags.Select(tag => new OpenApiTag { Name = tag }).ToList();
Microsoft.AspNetCore.OpenApi.Microbenchmarks (5)
OpenApiSchemaComparerBenchmark.cs (4)
26AllOf = Enumerable.Range(0, ElementCount).Select(_ => GenerateInnerSchema()).ToList(), 27AnyOf = Enumerable.Range(0, ElementCount).Select(_ => GenerateInnerSchema()).ToList(), 40Enum = Enumerable.Range(0, ElementCount).Select(_ => (IOpenApiAny)new OpenApiString("enum")).ToList(), 41OneOf = Enumerable.Range(0, ElementCount).Select(_ => GenerateInnerSchema()).ToList(),
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.OpenApi.Tests (2)
Comparers\OpenApiSchemaComparerTests.cs (1)
104var propertyNames = typeof(OpenApiSchema).GetProperties().Select(property => property.Name).ToList();
Extensions\OpenApiSchemaExtensionsTests.cs (1)
14var propertyNames = typeof(OpenApiSchema).GetProperties().Select(property => property.Name).ToList();
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
259var messageList = messages.ToList();
Microsoft.AspNetCore.Owin (3)
DictionaryStringArrayWrapper.cs (1)
38ICollection<string[]> IDictionary<string, string[]>.Values => Inner.Values.Select(Convert).ToList();
DictionaryStringValuesWrapper.cs (1)
83ICollection<StringValues> IDictionary<string, StringValues>.Values => Inner.Values.Select(Convert).ToList();
OwinEnvironment.cs (1)
163.Select(pair => pair.Key).Concat(_context.Items.Keys.Select(key => Convert.ToString(key, CultureInfo.InvariantCulture))).ToList();
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
158var orderedEnvironment = owinEnvironment.OrderBy(kv => kv.Key).ToList();
Microsoft.AspNetCore.RateLimiting.Tests (1)
RateLimitingMiddlewareTests.cs (1)
157var logMessages = sink.Writes.ToList();
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.RequestDecompression.Tests (10)
DefaultRequestDecompressionProviderTests.cs (4)
43var logMessages = sink.Writes.ToList(); 68var logMessages = sink.Writes.ToList(); 95var logMessages = sink.Writes.ToList(); 123var logMessages = sink.Writes.ToList();
RequestDecompressionMiddlewareTests.cs (6)
247var logMessages = sink.Writes.ToList(); 318var logMessages = sink.Writes.ToList(); 394var logMessages = sink.Writes.ToList(); 496var logMessages = sink.Writes.ToList(); 580var logMessages = sink.Writes.ToList(); 736return (sink.Writes.ToList(), outputContent);
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
245var messageList = messages.ToList();
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.ResponseCompression.Tests (4)
ResponseCompressionMiddlewareTest.cs (4)
481var logMessages = sink.Writes.ToList(); 544var logMessages = sink.Writes.ToList(); 607var logMessages = sink.Writes.ToList(); 1286return (response, sink.Writes.ToList());
Microsoft.AspNetCore.Routing (4)
DefaultLinkGenerator.cs (1)
185var endpoints = addressingScheme.FindEndpoints(address).OfType<RouteEndpoint>().ToList();
DefaultLinkParser.cs (1)
73var endpoints = addressingScheme.FindEndpoints(address).OfType<RouteEndpoint>().ToList();
Matching\AcceptsMatcherPolicy.cs (2)
231edges.Add(string.Empty, endpoints.ToList()); 236edges.Add(string.Empty, anyEndpoints.ToList());
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Routing.Tests (5)
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (1)
191var metadata = endpoint.Metadata.OfType<string>().ToList();
Matching\DfaMatcherBuilderTest.cs (1)
3674.ToList();
Matching\HostMatcherPolicyTest.cs (1)
216var data = edges.OrderBy(e => e.State).ToList();
Patterns\RoutePatternFactoryTest.cs (1)
660var policies = routePatternParameterPart.ParameterPolicies.ToList();
RouteValuesAddressSchemeTest.cs (1)
253}).ToList();
Microsoft.AspNetCore.Security.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Server.HttpSys (2)
MessagePump.cs (1)
68var serverAddressCopy = _serverAddresses.Addresses.ToList();
UrlPrefixCollection.cs (1)
191foreach (var pair in _prefixes.ToList())
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http\HttpHeaders.cs (1)
121ICollection<StringValues> IDictionary<string, StringValues>.Values => ((IDictionary<string, StringValues>)this).Select(pair => pair.Value).ToList();
Internal\KestrelServerImpl.cs (2)
57_transportFactories = Enumerable.Reverse(transportFactories).ToList(); 58_multiplexedTransportFactories = Enumerable.Reverse(multiplexedFactories).ToList();
Internal\SniOptionsSelector.cs (1)
191ApplicationProtocols = sslOptions.ApplicationProtocols?.ToList(),
KestrelConfigurationLoader.cs (1)
340var endpointsToStop = Options.ConfigurationBackedListenOptions.ToList();
src\Shared\CertificateGeneration\CertificateManager.cs (2)
125matchingCertificates = matchingCertificates.ToList(); 846var list = certificates.ToList();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
ConnectionDispatcherTests.cs (1)
42var scopeObjects = testLogger.Scopes.OfType<IReadOnlyList<KeyValuePair<string, object>>>().ToList();
Http1\Http1HttpProtocolFeatureCollectionTests.cs (1)
204var matches = _collection.Where(kv => ReferenceEquals(kv.Value, item.Value)).ToList();
SniOptionsSelectorTests.cs (1)
809var propertyNames = typeof(SslServerAuthenticationOptions).GetProperties().Select(property => property.Name).ToList();
src\Servers\Kestrel\shared\KnownHeaders.cs (3)
321case {byLength.Key}:{AppendSwitchSection(byLength.Key, byLength.OrderBy(h => h, KnownHeaderComparer.Instance).ToList())} 448.ToList(); 1466{AppendQPackSwitch(h.QPackStaticTableFields.OrderBy(t => t.Index).ToList())}
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Session.Tests (11)
SessionTests.cs (11)
203var cookie = SetCookieHeaderValue.ParseList(response.Headers.GetValues("Set-Cookie").ToList()).First(); 263var cookie = SetCookieHeaderValue.ParseList(response.Headers.GetValues("Set-Cookie").ToList()).First(); 321var cookie = SetCookieHeaderValue.ParseList(response.Headers.GetValues("Set-Cookie").ToList()).First(); 366var sessionLogMessages = sink.Writes.ToList(); 425var cookie = SetCookieHeaderValue.ParseList(response.Headers.GetValues("Set-Cookie").ToList()).First(); 431var sessionLogMessages = sink.Writes.ToList(); 494var cookie = SetCookieHeaderValue.ParseList(response.Headers.GetValues("Set-Cookie").ToList()).First(); 942var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList(); 950var sessionMiddlewareLogs = sink.Writes.Where(message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)).ToList(); 1009var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList(); 1073var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList();
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
22 return GetAllElementsCore().ToList().AsReadOnly();
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (1)
HubClientProxyGenerator.Parser.cs (1)
290.Select(member => (IMethodSymbol)member)), SymbolEqualityComparer.Default).ToList();
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionTests.cs (1)
159var writeList = testSink.Writes.ToList();
Microsoft.AspNetCore.SignalR.Core (7)
HubClientsExtensions.cs (5)
137return hubClients.AllExcept(excludedConnectionIds.ToList()); 264return hubClients.Clients(connectionIds.ToList()); 391return hubClients.Groups(groupNames.ToList()); 527return hubClients.GroupExcept(groupName, excludedConnectionIds.ToList()); 654return hubClients.Users(userIds.ToList());
HubConnectionHandler.cs (1)
139var resolvedSupportedProtocols = (supportedProtocols as IReadOnlyList<string>) ?? supportedProtocols.ToList();
Internal\DefaultHubProtocolResolver.cs (1)
29_hubProtocols = _availableProtocols.Values.ToList();
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Internal\DefaultHubMessageSerializer.cs (1)
19var protocol = hubProtocolResolver.GetProtocol(protocolName, (supportedProtocols as IReadOnlyList<string>) ?? supportedProtocols.ToList());
RedisHubLifetimeManager.cs (1)
82var supportedProtocols = hubProtocolResolver.AllProtocols.Select(p => p.Name).ToList();
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisProtocolTests.cs (1)
146var protocol = new RedisProtocol(CreateHubMessageSerializer(hubProtocols.Cast<IHubProtocol>().ToList()));
Microsoft.AspNetCore.SignalR.Tests (1)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
22 return GetAllElementsCore().ToList().AsReadOnly();
Microsoft.AspNetCore.SignalR.Tests.Utils (3)
src\Shared\SignalR\LogSinkProvider.cs (1)
30public IList<LogRecord> GetLogs() => _logs.ToList();
src\Shared\SignalR\VerifyNoErrorScope.cs (2)
36var results = _sink.GetLogs().Where(w => w.Write.LogLevel >= LogLevel.Error).ToList(); 40results = results.Where(w => !_expectedErrorsFilter(w.Write)).ToList();
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
42_allowedOrigins = _options.AllowedOrigins.Select(o => o.ToLowerInvariant()).ToList();
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.Build (41)
BackEnd\BuildManager\BuildManager.cs (2)
2018.ToList(); 2998List<ForwardingLoggerRecord> result = forwarders.ToList();
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
108.ToList();
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
149List<Process> nodeProcesses = GetPossibleRunningNodes().nodeProcesses.ToList(); 261return nodeContexts.ToList();
BackEnd\Components\Logging\LoggingService.cs (1)
577var sinks = _eventSinkDictionary.Values.OfType<EventSourceSink>().ToList();
BackEnd\Components\ProjectCache\ProjectCacheService.cs (4)
252IReadOnlyList<string> requestedTargetsList = requestedTargets as List<string> ?? requestedTargets.ToList(); 534ICollection<string> requestedTargetsList = buildRequestConfiguration.RequestedTargets as ICollection<string> ?? buildRequestConfiguration.RequestedTargets.ToList(); 726List<ProjectCacheDescriptor> projectCacheDescriptors = GetProjectCacheDescriptors(requestConfiguration.Project).ToList(); 741List<string> targets = buildResult.ResultsByTarget?.Keys.ToList() ?? new();
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (5)
86var keepMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.KeepMetadata, ExpanderOptions.ExpandAll, child.KeepMetadataLocation).ToList(); 95var removeMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.RemoveMetadata, ExpanderOptions.ExpandAll, child.RemoveMetadataLocation).ToList(); 104var matchOnMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.MatchOnMetadata, ExpanderOptions.ExpandAll, child.MatchOnMetadataLocation).ToList(); 481.ToList(); 629return group.Where(item => metadataSet.Contains(matchOnMetadata.Select(m => item.GetMetadataValue(m)))).ToList();
BackEnd\Components\RequestBuilder\Lookup.cs (1)
687logFunction.Invoke(groupAsList ?? group.ToList());
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
638targetOutputItemsList = bucket.Expander.ExpandIntoTaskItemsLeaveEscaped(targetReturns, ExpanderOptions.ExpandAll, targetReturnsLocation).ToList();
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (2)
72return resolvers.OrderBy(t => t.Priority).ToList(); 102return manifestsList.Select(manifest => manifest.Path).ToList();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
229sdkReferenceLocation).ToList();
BackEnd\Components\SdkResolution\SdkResult.cs (1)
63AdditionalPaths = paths.Skip(1).ToList();
BackEnd\Shared\BuildRequest.cs (1)
152_targets = proxyTargets.ProxyTargetToRealTargetMap.Keys.ToList();
BuildCheck\Acquisition\BuildCheckAcquisitionModule.cs (1)
54availableTypes.Except(checkTypes).ToList()
BuildEnvironmentHelper.cs (1)
300.ToList();
Construction\Solution\SolutionFile.cs (1)
265public IReadOnlyList<SolutionConfigurationInSolution> SolutionConfigurations => _solutionConfigurationsByFullName.Values.ToList().AsReadOnly();
Definition\Project.cs (2)
2771return itemElements.Where(i => i.ItemType.Equals(itemType)).ToList(); 2788.ToList();
Definition\ToolsetConfigurationReader.cs (1)
250pathsTable.Add(property.Name, new ProjectImportPathMatch(property.Name, paths.ToList()));
Evaluation\Evaluator.cs (1)
2507var onlyFallbackSearchPaths = searchPathMatch.SearchPaths.Select(s => _data.ExpandString(s)).ToList();
Evaluation\ItemSpec.cs (1)
128itemsFromCapture.Select(i => new ReferencedItem(i.Value, new ValueFragment(i.Key, ProjectDirectory))).ToList();
FileMatcher.cs (5)
138? RemoveProjectDirectory(filteredEntriesForPath, directory).ToList() 139: filteredEntriesForPath.ToList(); 255.ToList(); 352return files.ToList(); 408return directories.ToList();
Graph\GraphBuilder.cs (2)
92EntryPointNodes = _entryPointConfigurationMetadata.Select(e => allParsedProjects[e].GraphNode).ToList(); 97ProjectNodes = allParsedProjects.Values.Select(p => p.GraphNode).ToList();
Graph\GraphBuildRequestData.cs (1)
162ProjectGraphEntryPoints = projectGraphEntryPoints.ToList();
Graph\ProjectGraph.cs (1)
818: ExpressionShredder.SplitSemiColonSeparatedList(targetsString).ToList();
Utilities\EngineFileUtilities.cs (2)
217var excludeSpecsUnescaped = excludeSpecsEscaped?.Where(IsValidExclude).Select(i => EscapingUtilities.UnescapeAll(i)).ToList(); 579.ToList();
Microsoft.Build.BuildCheck.UnitTests (4)
EditorConfigParser_Tests.cs (2)
84var listOfEditorConfigFile = parser.DiscoverEditorConfigFiles(Path.Combine(workFolder1.Path, "subfolder", "projectfile.proj")).ToList(); 113var listOfEditorConfigFile = parser.DiscoverEditorConfigFiles(Path.Combine(workFolder1.Path, "subfolder", "projectfile.proj")).ToList();
ParsedItemsAnalysisDataTests.cs (2)
36var itemsA = itemsHolder.GetItemsOfType("ItemA").ToList(); 37var itemsB = itemsHolder.GetItemsOfType("ItemB").ToList();
Microsoft.Build.Engine.OM.UnitTests (56)
BuildEnvironmentHelper.cs (1)
300.ToList();
Definition\ProjectItem_Tests.cs (6)
1115ObjectModelHelpers.AssertItems(expectedInclude, new Project(projectFile).Items.ToList()); 1155ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 1175ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 2772var items = project.Items.ToList(); 2814var itemsIgnoringCondition = project.ItemsIgnoringCondition.ToList(); 3664.ToList();
Instance\ProjectItemInstance_Tests.cs (1)
480itemMetadata = itemMetadata.OrderBy(pmi => pmi.Name).ToList();
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
682var realPLocList = realParamsLoc.ToList(); 683var viewPLocList = viewParamsLoc.ToList();
ObjectModelRemoting\Helpers\ViewValidation.cs (4)
306var viewXmlList = viewCollection.ToList(); 307var realXmlList = realCollection.ToList(); 336var viewXmlList = viewXmlCollection.ToList(); 337var realXmlList = realXmlCollection.ToList();
ObjectModelRemoting\LinkedConstructionReadOnly_Tests.cs (40)
92var realExtensionsList = preReal.ChildrenReversed.OfType<ProjectExtensionsElement>().ToList(); 93var viewExtensionsList = preView.ChildrenReversed.OfType<ProjectExtensionsElement>().ToList(); 114var realImports = preReal.Imports.ToList(); 115var viewImports = preView.Imports.ToList(); 127var realImportGroups = preReal.ImportGroups.ToList(); 128var viewImportGroups = preView.ImportGroups.ToList(); 140var realItemDefinitions = preReal.ItemDefinitions.ToList(); 141var viewlItemDefinitions = preView.ItemDefinitions.ToList(); 153var realItemDefinitionGroups = preReal.ItemDefinitionGroups.ToList(); 154var viewlItemDefinitionGroups = preView.ItemDefinitionGroups.ToList(); 166var realItems = preReal.Items.ToList(); 167var viewlItems = preView.Items.ToList(); 179var realItemGroups = preReal.ItemGroups.ToList(); 180var viewItemGroups = preView.ItemGroups.ToList(); 192var realProperties = preReal.Properties.ToList(); 193var viewProperties = preView.Properties.ToList(); 205var realPropertieGroups = preReal.PropertyGroups.ToList(); 206var viewPropertieGroups = preView.PropertyGroups.ToList(); 218var realCollection = preReal.AllChildren.OfType<ProjectOtherwiseElement>().ToList(); 219var viewCollection = preView.AllChildren.OfType<ProjectOtherwiseElement>().ToList(); 231var realCollection = preReal.AllChildren.OfType<ProjectWhenElement>().ToList(); 232var viewCollection = preView.AllChildren.OfType<ProjectWhenElement>().ToList(); 244var realCollection = preReal.AllChildren.OfType<ProjectSdkElement>().ToList(); 245var viewCollection = preView.AllChildren.OfType<ProjectSdkElement>().ToList(); 257var realCollection = preReal.Targets.ToList(); 258var viewCollection = preView.Targets.ToList(); 270var realCollection = preReal.AllChildren.OfType<ProjectTaskElement>().ToList(); 271var viewCollection = preView.AllChildren.OfType<ProjectTaskElement>().ToList(); 284var realCollection = preReal.AllChildren.OfType<ProjectUsingTaskElement>().ToList(); 285var viewCollection = preView.AllChildren.OfType<ProjectUsingTaskElement>().ToList(); 297var realCollection = preReal.AllChildren.OfType<ProjectUsingTaskBodyElement>().ToList(); 298var viewCollection = preView.AllChildren.OfType<ProjectUsingTaskBodyElement>().ToList(); 310var realCollection = preReal.AllChildren.OfType<UsingTaskParameterGroupElement>().ToList(); 311var viewCollection = preView.AllChildren.OfType<UsingTaskParameterGroupElement>().ToList(); 323var realCollection = preReal.AllChildren.OfType<ProjectUsingTaskParameterElement>().ToList(); 324var viewCollection = preView.AllChildren.OfType<ProjectUsingTaskParameterElement>().ToList(); 336var realCollection = preReal.AllChildren.OfType<ProjectOnErrorElement>().ToList(); 337var viewCollection = preView.AllChildren.OfType<ProjectOnErrorElement>().ToList(); 349var realCollection = preReal.AllChildren.OfType<ProjectOutputElement>().ToList(); 350var viewCollection = preView.AllChildren.OfType<ProjectOutputElement>().ToList();
ObjectModelRemoting\LinkedSpecialCasesScenarios.cs (2)
105var existingItemGroupList = sourceProject.AllChildren.OfType<ProjectItemGroupElement>().Where((ig) => ig.Label == "Group1").ToList(); 157var existingItemGroupList = sourceProject.AllChildren.OfType<ProjectItemGroupElement>().Where((ig) => ig.Label == "Group1").ToList();
Microsoft.Build.Engine.UnitTests (39)
BackEnd\IntrinsicTask_Tests.cs (1)
4004return lookup.GetItems(itemType).Select(i => (ObjectModelHelpers.ITestItem)new ObjectModelHelpers.ProjectItemInstanceTestItemAdapter(i)).ToList();
BackEnd\SdkResolverService_Tests.cs (2)
786return _resolvers.OrderBy(i => i.Priority).ToList(); 829return resolvers.OrderBy(t => t.Priority).ToList();
BackEnd\SdkResultOutOfProc_Tests.cs (1)
203.ToList();
BackEnd\TaskExecutionHost_Tests.cs (2)
1117IList<string> messages = ml.TaskParameterEvents.Select(e => e.Message).ToList(); 1123messages = ml.BuildMessageEvents.Select(e => e.Message).ToList();
BuildEventArgsDataEnumeration.cs (7)
39List<PropertyData> results = args.EnumerateProperties().ToList(); 67List<ItemData> results = args.EnumerateItems().ToList(); 76List<KeyValuePair<string, string>> metadata = results[1].EnumerateMetadata().ToList(); 109List<ItemData> results = args.EnumerateItemsOfType("Key").ToList(); 118List<KeyValuePair<string, string>> metadata = results[1].EnumerateMetadata().ToList(); 125results = args.EnumerateItemsOfType("Key2").ToList(); 131metadata = results[0].EnumerateMetadata().ToList();
Evaluation\EvaluationLogging_Tests.cs (1)
129var allBuildEvents = firstEvaluationLogger.AllBuildEvents.Where(be => be is ProjectEvaluationStartedEventArgs || be is ProjectEvaluationFinishedEventArgs).ToList();
Evaluation\Expander_Tests.cs (1)
1691IList<string> expanded = expander.ExpandIntoStringListLeaveEscaped(value, ExpanderOptions.ExpandAll, MockElementLocation.Instance).ToList();
Evaluation\ItemEvaluation_Tests.cs (10)
67var itemsForI = items.Where(i => i.ItemType == "i").ToList(); 76var itemsForI2 = items.Where(i => i.ItemType == "i2").ToList(); 116var itemsForI = items.Where(i => i.ItemType == "i").ToList(); 119var itemsForI2 = items.Where(i => i.ItemType == "i2").ToList(); 208var itemsForI = items.Where(i => i.ItemType == "i").ToList(); 219var itemsForI2 = items.Where(i => i.ItemType == "i2").ToList(); 504var i1Items = items.Where(i => i.ItemType == "i1").ToList(); 518var i2Items = items.Where(i => i.ItemType == "i2").ToList(); 522var i3Items = items.Where(i => i.ItemType == "i3").ToList(); 525var i_condItems = items.Where(i => i.ItemType == "i_cond").ToList();
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
114IList<ProjectElement> children = project.GetLogicalProject().ToList();
EvaluationProfiler_Tests.cs (7)
107var profiledElements = result.ProfiledLocations.Keys.ToList(); 139var profiledElements = result.ProfiledLocations.Keys.ToList(); 148var profiledElements = result.ProfiledLocations.Keys.ToList(); 192var profiledElements = result.ProfiledLocations.Keys.ToList(); 220var profiledElements = result.ProfiledLocations.Keys.ToList(); 251var profiledElements = result.ProfiledLocations.Keys.ToList(); 254var allIds = profiledElements.Select(e => e.Id).ToList();
FileMatcher_Tests.cs (3)
114string[] matchedFiles = fileMatcher.GetFiles(testFolder.Path, include, excludes?.ToList()).FileList; 2211return files.ToList(); 2403excludeFilespecs?.ToList())
Graph\GraphLoadedFromSolution_tests.cs (1)
568var solutionOnlyEdges = graphFromSolutionEdges.Keys.Except(graphEdges.Keys).ToList();
Instance\ProjectInstance_Internal_Tests.cs (2)
874projectInstance.ImportPaths.ToList().ShouldBe(expectedImportPaths); 875projectInstance.ImportPathsIncludingDuplicates.ToList().ShouldBe(expectedImportPathsIncludingDuplicates);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
68Arguments = new ReadOnlyCollection<Argument>(arguments.ToList());
Microsoft.Build.Tasks.Core (13)
AssemblyFoldersFromConfig.cs (1)
85select folder).ToList();
BootstrapperUtil\BootstrapperBuilder.cs (1)
495List<string> list = _cultures.Values.Select(v => v.ToString()).ToList();
BuildEnvironmentHelper.cs (1)
300.ToList();
FileMatcher.cs (5)
138? RemoveProjectDirectory(filteredEntriesForPath, directory).ToList() 139: filteredEntriesForPath.ToList(); 255.ToList(); 352return files.ToList(); 408return directories.ToList();
GetSDKReferenceFiles.cs (3)
1034referencesByDirectory.TryAdd(group.Key, group.ToList()); 1050List<string> files = Directory.GetFiles(path, "*", SearchOption.TopDirectoryOnly).ToList(); 1067List<string> files = Directory.GetFiles(path, "*", SearchOption.TopDirectoryOnly).ToList();
ResolveSDKReference.cs (1)
549return dependsOnSDK.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim()).Where(y => y.Length > 0).ToList<string>();
WriteCodeFragment.cs (1)
483.ToList();
Microsoft.Build.Tasks.UnitTests (12)
Copy_Tests.cs (2)
2093var xaCopies = filesActuallyCopied.Where(f => f.Value.Name == xaPath).ToList(); 2100var xbCopies = filesActuallyCopied.Where(f => f.Value.Name == xbPath).ToList();
XmlPoke_Tests.cs (8)
57List<XmlAttribute> nodes = xmlDocument.SelectNodes(query, ns)?.Cast<XmlAttribute>().ToList(); 74List<XmlAttribute> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlAttribute>().ToList(); 91List<XmlAttribute> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlAttribute>().ToList(); 108List<XmlElement> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlElement>().ToList(); 114var testNodes = nodes?.First().ChildNodes.Cast<XmlElement>().ToList(); 132List<XmlAttribute> nodes = xmlDocument.SelectNodes(string.Format(queryTemplate, value))?.Cast<XmlAttribute>().ToList(); 213List<XmlAttribute> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlAttribute>().ToList(); 302List<XmlElement> nodes = xmlDocument.SelectNodes(query)?.Cast<XmlElement>().ToList();
ZipDirectory_Tests.cs (2)
51.ToList() 93.ToList()
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
129.ToList(); 250var converteditems = items.Select(i => (ITestItem)new ProjectItemTestItemAdapter(i)).ToList(); 277var convertedItems = items.Select(i => (ITestItem)new ProjectItemTestItemAdapter(i)).ToList();
Microsoft.Build.Utilities.Core (10)
AssemblyFoldersFromConfig.cs (1)
85select folder).ToList();
BuildEnvironmentHelper.cs (1)
300.ToList();
FileMatcher.cs (5)
138? RemoveProjectDirectory(filteredEntriesForPath, directory).ToList() 139: filteredEntriesForPath.ToList(); 255.ToList(); 352return files.ToList(); 408return directories.ToList();
ToolLocationHelper.cs (3)
362return assemblyFoldersInfos.ToList(); 772return targetPlatforms.Where<TargetPlatformSDK>(platform => platform.Path != null).ToList<TargetPlatformSDK>(); 2468collection = monikers.Keys.ToList();
Microsoft.Build.Utilities.UnitTests (2)
TaskItem_Tests.cs (2)
341var actualMetadata = metadataContainer.EnumerateMetadata().OrderBy(metadata => metadata.Key).ToList(); 342var expectedMetadata = metadata.OrderBy(metadata => metadata.Value).ToList();
Microsoft.CodeAnalysis (22)
CommandLine\CommonCompiler.cs (1)
1154var generatedSyntaxTrees = compilation.SyntaxTrees.Skip(Arguments.SourceFiles.Length).ToList();
InternalUtilities\EnumerableExtensions.cs (2)
108return new ReadOnlyCollection<T>(source.ToList()); 182=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList();
RuleSet\RuleSetProcessor.cs (1)
81List<XElement> nodeList = ruleSetDocument.Elements(RuleSetNodeName).ToList();
Syntax\GreenNode.cs (1)
908_ => CreateList(enumerable.ToList(), select)
Syntax\SeparatedSyntaxList.cs (1)
544var newNodeList = newNodes.ToList();
Syntax\SyntaxDiffer.cs (1)
68return reducedChanges.Select(c => new TextChange(c.Range.Span, c.NewText!)).ToList();
Syntax\SyntaxList`1.cs (3)
266var list = this.ToList(); 299return CreateList(this.Where(x => x != node).ToList()); 332var list = this.ToList();
Syntax\SyntaxNodeOrTokenList.cs (3)
340var nodes = this.ToList(); 375var nodes = this.ToList(); 420var nodes = this.ToList();
Syntax\SyntaxTokenList.cs (4)
360var items = tokens.ToList(); 366var list = this.ToList(); 388var list = this.ToList(); 433var list = this.ToList();
Syntax\SyntaxTriviaList.cs (2)
370var list = this.ToList(); 415var list = this.ToList();
Text\SourceText.cs (2)
782select c).ToList(); 903var ranges = this.GetChangeRanges(oldText).ToList();
TreeDumper.cs (1)
92var children = node.Children.Where(c => !skip(c)).ToList();
Microsoft.CodeAnalysis.CodeStyle (12)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
108return new ReadOnlyCollection<T>(source.ToList()); 182=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
719.ToList(); 759.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (2)
591var allTypeArgs1 = n1.GetAllTypeArguments().ToList(); 592var allTypeArgs2 = n2.GetAllTypeArguments().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
71var allTypeArguments = symbol.GetAllTypeArguments().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
17var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
403.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
27.OrderByDescending(f => f).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
59return naturalItemsBefore.ToList();
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (4)
75var paramsBeforeCurrentParam = parameterNames.TakeWhile(t => t != parameterName).ToList(); 76var paramsAfterCurrentParam = parameterNames.Except(paramsBeforeCurrentParam).ToList(); 129.ToList(); 138.ToList();
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
169delegatedConstructor.Parameters.Select(p => p.Name).ToList(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
278var membersList = members.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
62var members = innermostNamespace.GetMembers().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
92return this.GetMembers().Select(m => m.Name).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
Microsoft.CodeAnalysis.CSharp (1)
Utilities\FirstAmongEqualsSet.cs (1)
88foreach (var key in _dictionary.Keys.ToList())
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
896var finalTrivia = from.GetLeadingTrivia().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (1)
119.OrderBy(n => n.SpanStart).ToList();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
104var finalLeadingTrivia = node.GetLeadingTrivia().ToList();
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
35=> node.StartTag.Attributes.OfType<XmlNameAttributeSyntax>().ToList();
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
275var seenUsings = existingUsings.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
27newUsings = newUsings.Select(u => u.WithAdditionalAnnotations(annotations)).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\NameSyntaxExtensions.cs (1)
17=> new NameSyntaxIterator(nameSyntax).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
600var instantiatedMethods = methods.Select(m => Instantiate(m, invocationTypes)).ToList(); 1308? initializerExpression.Expressions.GetSeparators().ToList().IndexOf(previousToken.Value) + 1 1435? initializerExpression.Expressions.GetSeparators().ToList().IndexOf(previousToken.Value) + 1
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (16)
ChangeSignature\RemoveParametersTests.cs (1)
380workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList();
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
147var references = dependentProject.ProjectReferences.ToList();
EncapsulateField\EncapsulateFieldCommandHandlerTests.cs (1)
207workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList();
ExtractInterface\ExtractInterfaceTests.cs (1)
1453workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id)!.GetTextView()).ToList();
ExtractMethod\ExtractMethodTests.cs (1)
11378workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id)!.GetTextView()).ToList();
Interactive\NavigateTo\InteractiveNavigateToTests.cs (1)
570var items = (await _aggregator.GetItemsAsync("C")).ToList();
NavigateTo\NavigateToTests.cs (1)
945var items = (await _aggregator.GetItemsAsync("C")).ToList();
Organizing\OrganizeTypeDeclarationTests.cs (1)
1180workspace.GetOpenDocumentIds().Select(id => workspace.GetTestDocument(id).GetTextView()).ToList();
SymbolKey\SymbolKeyCompilationsTests.cs (4)
257var symbols1 = GetSourceSymbols(comp1, includeLocal: true).ToList(); 258var symbols2 = GetSourceSymbols(comp1, includeLocal: true).ToList(); 267var members1 = symbols1.OfType<INamespaceOrTypeSymbol>().SelectMany(n => n.GetMembers()).ToList(); 268var members2 = symbols2.OfType<INamespaceOrTypeSymbol>().SelectMany(n => n.GetMembers()).ToList();
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (2)
66var originalSymbols = GetSourceSymbols(comp1, SymbolCategory.DeclaredType).OrderBy(s => s.Name).ToList(); 152var originalSymbols = GetSourceSymbols(comp1, SymbolCategory.NonTypeMember | SymbolCategory.Parameter).ToList();
SymbolKey\SymbolKeyTestBase.cs (2)
43var newlist = newSymbols.OrderBy(s => s.Name).ToList(); 44var origlist = originalSymbols.OrderBy(s => s.Name).ToList();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenCapturing.cs (2)
291: (IList<string>)new List<string>(x)).ToList(), 430var methods = MakeAllMethods().ToList();
CodeGen\CodeGenLocalFunctionTests.cs (1)
5897var localFunctions = syntaxTree.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().ToList();
CodeGen\IndexAndRangeTests.cs (1)
34return (model, root.DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToList());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
FlowAnalysis\IterationJumpYieldStatementTests.cs (2)
1229var ctrlFlowAnalysis = analysis.Item1.ToList(); 1319var ctrlFlowAnalysis = analysis.Item1.ToList();
Microsoft.CodeAnalysis.CSharp.Features (20)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
301var unusedTypeParameters = typeParameters.ToList();
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
286var annotatedNodesOrTokens = node.GetAnnotatedNodesAndTokens(DefinitionAnnotation).ToList();
Formatting\CSharpNamespaceDeclarationNewDocumentFormattingProvider.cs (1)
37var namespaces = GetNamespacesToReplace(document, root, formattingOptions.NamespaceDeclarations).ToList();
GenerateType\CSharpGenerateTypeService.cs (2)
477? genericName.TypeArgumentList.Arguments.OfType<SyntaxNode>().ToList() 489argumentList = objectCreationExpression.ArgumentList.Arguments.ToList();
SignatureHelp\AbstractOrdinaryMethodSignatureHelpProvider.cs (1)
43method.Parameters.Select(p => Convert(p, semanticModel, position, documentationCommentFormattingService)).ToList(),
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (1)
148constructor.Parameters.Select(p => Convert(p, semanticModel, position, documentationCommentFormattingService)).ToList());
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
240indexer.Parameters.Select(p => Convert(p, semanticModel, position, documentationCommentFormattingService)).ToList());
SignatureHelp\GenericNameSignatureHelpProvider.cs (2)
188namedType.TypeParameters.Select(p => Convert(p, semanticModel, position, documentationCommentFormattingService)).ToList()); 201method.TypeParameters.Select(p => Convert(p, semanticModel, position, documentationCommentFormattingService)).ToList());
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (1)
136constructor.Parameters.Select(p => Convert(p, semanticModel, position, documentationCommentFormattingService)).ToList());
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (3)
137var tupleTypes = inferredTypes.Where(t => t.IsTupleType).OfType<INamedTypeSymbol>().ToList(); 159.ToList(); 189var typeParts = element.Type.ToMinimalDisplayParts(semanticModel, position).ToList();
SplitStringLiteral\InterpolatedStringSplitter.cs (1)
38var contents = _interpolatedStringExpression.Contents.ToList();
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
104var finalLeadingTrivia = node.GetLeadingTrivia().ToList();
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
229.ToList();
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
35=> node.StartTag.Attributes.OfType<XmlNameAttributeSyntax>().ToList();
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
275var seenUsings = existingUsings.ToList();
Structure\Providers\NamespaceDeclarationStructureProvider.cs (1)
40.ToList();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (22)
Semantics\FunctionPointerTests.cs (8)
351var conversions = tree.GetRoot().DescendantNodes().OfType<CastExpressionSyntax>().ToList(); 402var conversions = tree.GetRoot().DescendantNodes().OfType<CastExpressionSyntax>().ToList(); 454var conversions = tree.GetRoot().DescendantNodes().OfType<CastExpressionSyntax>().ToList(); 502var conversions = tree.GetRoot().DescendantNodes().OfType<CastExpressionSyntax>().ToList(); 600var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Select(d => d.Initializer!.Value).ToList(); 839var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Select(d => d.Initializer!.Value).ToList(); 3178var invocations = tree.GetRoot().DescendantNodes().OfType<ConditionalAccessExpressionSyntax>().ToList(); 3297var invocations = tree.GetRoot().DescendantNodes().OfType<ConditionalAccessExpressionSyntax>().ToList();
Semantics\InterceptorsTests.cs (1)
7348if (tree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToList() is not [var node, var otherNode])
Semantics\LocalFunctionTests.cs (1)
1022var attributeSyntaxes = tree.GetRoot().DescendantNodes().OfType<AttributeSyntax>().ToList();
Semantics\LockTests.cs (3)
489var lockStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<LockStatementSyntax>().ToList(); 575var lockStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<LockStatementSyntax>().ToList(); 699var lockStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<LockStatementSyntax>().ToList();
Semantics\LookupTests.cs (3)
631var actual_lookupNames = model.LookupNames(GetPositionForBinding(tree), null).ToList(); 632var actual_lookupNames_ignoreAcc = model.LookupNames(GetPositionForBinding(tree), null).ToList(); 1353var actual_lookupSymbols_as_string = actual_lookupSymbols.Select(e => e.ToString()).ToList();
Semantics\NullableConversionTests.cs (1)
804var target = syntaxTree.GetRoot().DescendantNodes().OfType<CastExpressionSyntax>().ToList()[2];
Semantics\RefFieldTests.cs (1)
2269var actualFields = type.GetMembers().OfType<FieldSymbol>().Select(f => f.ToTestDisplayString()).ToList();
Semantics\TopLevelStatementsTests.cs (1)
6086var localFunctions = syntaxTree.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().ToList();
Semantics\UsingStatementTests.cs (3)
1865var usingStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<UsingStatementSyntax>().ToList(); 1881var usingStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<UsingStatementSyntax>().ToList(); 1894var usingStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<UsingStatementSyntax>().ToList();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (41)
Compilation\SemanticModelAPITests.cs (3)
46var accesses = m.DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToList(); 51accesses = m2.DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToList(); 138var accesses = root.DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToList();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
1386var test = symbolsInC.Where(s => s.ContainingAssembly == null).ToList();
Symbols\AnonymousTypesSemanticsTests.cs (1)
2099).OrderBy(value => value.offset).ToList();
Symbols\AnonymousTypesSymbolTests.cs (1)
253var attrs = field.CustomAttributes.ToList();
Symbols\AssemblyAndNamespaceTests.cs (1)
208var comp = CreateEmptyCompilation(new string[] { text3 }, references: new MetadataReference[] { compRef1, compRef2 }.ToList(), assemblyName: "Test3");
Symbols\ExtensionMethodTests.cs (1)
3139var nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToList();
Symbols\Source\EnumTests.cs (1)
1013var fields = symEnum.GetMembers().OfType<FieldSymbol>().Cast<Symbol>().ToList();
Symbols\Source\NullablePublicAPITests.cs (26)
55var arrayAccesses = root.DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToList(); 89var invocations = root.DescendantNodes().OfType<InvocationExpressionSyntax>().ToList(); 1939var declarations = root.DescendantNodes().OfType<VariableDeclaratorSyntax>().ToList(); 1986var declarations = root.DescendantNodes().OfType<VariableDeclaratorSyntax>().ToList(); 2047var declarations = root.DescendantNodes().OfType<AssignmentExpressionSyntax>().ToList(); 2056var symbols = variable.DescendantNodes().OfType<SingleVariableDesignationSyntax>().Select(s => model.GetDeclaredSymbol(s)).Cast<ILocalSymbol>().ToList(); 2090var declarations = root.DescendantNodes().OfType<AssignmentExpressionSyntax>().ToList(); 2099var symbols = variable.DescendantNodes().OfType<SingleVariableDesignationSyntax>().Select(s => model.GetDeclaredSymbol(s)).Cast<ILocalSymbol>().ToList(); 2176var declarations = root.DescendantNodes().OfType<VariableDeclaratorSyntax>().ToList(); 2248var declarations = root.DescendantNodes().OfType<VariableDeclaratorSyntax>().ToList(); 2283var declarations = root.DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToList(); 2327var declarations = root.DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToList(); 2368var declarations = root.DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToList(); 2413var declarations = root.DescendantNodes().OfType<VariableDeclaratorSyntax>().ToList(); 2453var declarations = root.DescendantNodes().OfType<ForEachStatementSyntax>().ToList(); 2501var declarations = root.DescendantNodes().OfType<ForEachStatementSyntax>().ToList(); 2546var declarations = root.DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToList(); 2595var declarations = root.DescendantNodes().OfType<ForEachStatementSyntax>().ToList(); 2737var memberAccess = root.DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToList(); 2783var memberAccess = root.DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToList(); 2826var memberAccess = root.DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToList(); 2875var memberAccess = root.DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToList(); 2916var memberAccess = root.DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToList(); 3405var operators = root.DescendantNodes().OfType<PrefixUnaryExpressionSyntax>().ToList(); 3450var operators = root.DescendantNodes().OfType<BinaryExpressionSyntax>().ToList(); 4730var suppressions = tree.GetRoot().DescendantNodes().OfType<PostfixUnaryExpressionSyntax>().Where(p => p.IsKind(SyntaxKind.SuppressNullableWarningExpression)).ToList();
Symbols\SymbolEqualityTests.cs (4)
41var invocations = root.DescendantNodes().OfType<BinaryExpressionSyntax>().ToList(); 84var invocations = root.DescendantNodes().OfType<InvocationExpressionSyntax>().ToList(); 124var invocations = root.DescendantNodes().OfType<InvocationExpressionSyntax>().ToList(); 165var invocations = root.DescendantNodes().OfType<InvocationExpressionSyntax>().ToList();
Symbols\TypeTests.cs (2)
673var fields = v.GetMembers().OfType<FieldSymbol>().ToList(); 1772var nodes = GetBindingNodes<SyntaxNode>(comp).ToList();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (82)
Diagnostics\LocationsTests.cs (2)
564var diagnostics = tree.GetDiagnostics().ToList(); 592var diagnostics = tree.GetDiagnostics().ToList();
LexicalAndXml\LexicalTests.cs (6)
470var tokens = Lex(text).ToList(); 508var tokens = Lex(text).ToList(); 1665var trivia = token.GetTrailingTrivia().ToList(); 1681var trivia = token.GetTrailingTrivia().ToList(); 1697var trivia = token.GetTrailingTrivia().ToList(); 3444var results = this.Blend("T.X.Y").ToList();
LexicalAndXml\XmlDocCommentTests.cs (1)
3314select new TestError(e.ErrorCode, e.IsWarning)).ToList();
Parsing\ParsingErrorRecoveryTests.cs (1)
7383Assert.Equal(3, foreachNode.ChildNodes().ToList().Count);
Parsing\RoundTrippingTests.cs (1)
59var nodes = tree.GetCompilationUnitRoot().DescendantTokens(tk => tk.FullWidth > 0).ToList();
Parsing\ScriptParsingTests.cs (1)
9612Assert.Equal(SyntaxKind.GlobalStatement, tree.GetCompilationUnitRoot().ChildNodes().ToList()[0].Kind());
Syntax\SyntaxAnnotationTests.cs (3)
351var annotatedNodesOrTokens = newRoot.GetAnnotatedNodesAndTokens(annotation).OrderBy(t => t.SpanStart).ToList(); 352var actualNodesOrTokens = GetAllNodesAndTokens(oldRoot).OrderBy(t => t.SpanStart).ToList(); 666return root.DescendantNodesAndTokensAndSelf(descendIntoTrivia: true).Select(n => (SyntaxNodeOrToken)n).ToList();
Syntax\SyntaxFactoryTests.cs (2)
420var tokens = SyntaxFactory.ParseTokens("1l").ToList(); 434var tokens = SyntaxFactory.ParseTokens("1L").ToList();
Syntax\SyntaxNodeTests.cs (62)
74var nodes = expression.ChildNodes().ToList(); 87var nodes = e.Ancestors().ToList(); 105var nodes = e.AncestorsAndSelf().ToList(); 135var nodes = statement.DescendantNodes().ToList(); 139nodes = statement.DescendantNodes(descendIntoTrivia: true).ToList(); 145nodes = statement.DescendantNodes(n => n is StatementSyntax).ToList(); 149nodes = statement.DescendantNodes(n => n is StatementSyntax, descendIntoTrivia: true).ToList(); 155nodes = statement.DescendantNodes(statement.FullSpan).ToList(); 159nodes = statement.DescendantNodes(statement.FullSpan, descendIntoTrivia: true).ToList(); 165nodes = statement.DescendantNodes(statement.FullSpan, n => n is StatementSyntax).ToList(); 169nodes = statement.DescendantNodes(statement.FullSpan, n => n is StatementSyntax, descendIntoTrivia: true).ToList(); 181var nodes = statement.DescendantNodesAndSelf().ToList(); 186nodes = statement.DescendantNodesAndSelf(descendIntoTrivia: true).ToList(); 193nodes = statement.DescendantNodesAndSelf(n => n is StatementSyntax).ToList(); 198nodes = statement.DescendantNodesAndSelf(n => n is StatementSyntax, descendIntoTrivia: true).ToList(); 205nodes = statement.DescendantNodesAndSelf(statement.FullSpan).ToList(); 210nodes = statement.DescendantNodesAndSelf(statement.FullSpan, descendIntoTrivia: true).ToList(); 217nodes = statement.DescendantNodesAndSelf(statement.FullSpan, n => n is StatementSyntax).ToList(); 222nodes = statement.DescendantNodesAndSelf(statement.FullSpan, n => n is StatementSyntax, descendIntoTrivia: true).ToList(); 235var nodesAndTokens = statement.DescendantNodesAndTokens().ToList(); 242nodesAndTokens = statement.DescendantNodesAndTokens(descendIntoTrivia: true).ToList(); 256nodesAndTokens = statement.DescendantNodesAndTokens(statement.FullSpan).ToList(); 270var nodesAndTokens = statement.DescendantNodesAndTokensAndSelf().ToList(); 278nodesAndTokens = statement.DescendantNodesAndTokensAndSelf(descendIntoTrivia: true).ToList(); 293nodesAndTokens = statement.DescendantNodesAndTokensAndSelf(statement.FullSpan).ToList(); 307var nodesAndTokens = cu.DescendantNodesAndTokensAndSelf().ToList(); 319var nodesAndTokens = expr.DescendantNodesAndTokensAndSelf(descendIntoTrivia: true).ToList(); 337var descendantDirectives = expr.DescendantNodesAndSelf(n => n.ContainsDirectives, descendIntoTrivia: true).OfType<DirectiveTriviaSyntax>().ToList(); 516var identifierNodes = expr.DescendantNodes().OfType<IdentifierNameSyntax>().ToList(); 519var nodesWithMyAnnotations = exprWithAnnotations.DescendantNodesAndSelf(n => n.ContainsAnnotations).Where(n => n.HasAnnotation(myAnnotation)).ToList(); 535var tokens = t1.GetCompilationUnitRoot().DescendantTokens().ToList(); 548var tokens = t1.GetCompilationUnitRoot().DescendantTokens().ToList(); 561var tokens = t1.GetCompilationUnitRoot().DescendantTokens().ToList(); 578var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(0, 16)).ToList(); 590var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(1, 14)).ToList(); 602var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(7, 17)).ToList(); 615var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(8, 15)).ToList(); 629var list = expr.DescendantTrivia().ToList(); 646var list = expr.DescendantTrivia(descendIntoTrivia: true).ToList(); 991var list1 = children.AsEnumerable().Reverse().ToList(); 992var list2 = children.Reverse().ToList(); 1005var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1033var tokens = tree.GetCompilationUnitRoot().DescendantTokens(descendIntoTrivia: true).Where(SyntaxToken.NonZeroWidth).ToList(); 1059var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1082List<SyntaxToken> tokens = syntaxTree.GetRoot().DescendantTokens().ToList(); 1104var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1133var tokens = tree.GetCompilationUnitRoot().DescendantTokens(descendIntoTrivia: true).Where(SyntaxToken.NonZeroWidth).ToList(); 1163var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1187List<SyntaxToken> tokens = syntaxTree.GetRoot().DescendantTokens().ToList(); 1211var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1232List<SyntaxToken> tokens = syntaxTree.GetRoot().DescendantTokens().ToList(); 1253var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1277List<SyntaxToken> tokens = syntaxTree.GetRoot().DescendantTokens().ToList(); 1300var children = tree.GetCompilationUnitRoot().Members[0].ChildNodesAndTokens().ToList(); 1318var children = tree.GetCompilationUnitRoot().Members[0].ChildNodesAndTokens().ToList(); 1319var reversed = children.AsEnumerable().Reverse().ToList(); 2264var tokens = expr.DescendantTokens().Where(t => t.IsKind(SyntaxKind.IdentifierToken)).ToList(); 2354var tokens = expr.DescendantTokens(descendIntoTrivia: true).ToList(); 2382var deepTrivia = expr.GetDirectives().SelectMany(d => d.DescendantTrivia().Where(tr => tr.Kind() == SyntaxKind.WhitespaceTrivia)).ToList(); 2406var trivia = expr.DescendantTrivia().Where(tr => tr.IsKind(SyntaxKind.WhitespaceTrivia)).ToList(); 3392var diag = syntaxTree.GetDiagnostics(token).ToList(); 3442var diag = syntaxTree.GetDiagnostics(token).ToList();
Syntax\TrackNodeTests.cs (3)
139var nodes = replacedExpr.GetCurrentNodes(originalA).ToList(); 149var ids = expr.DescendantNodes().OfType<IdentifierNameSyntax>().ToList(); 167var ids = expr.DescendantNodes().OfType<IdentifierNameSyntax>().ToList();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
CompilationTestUtils.cs (1)
350return symbols.Select(s => s.Name).Distinct().ToList();
DiagnosticTestUtilities.cs (2)
130select ee).ToList(); 183group e by e.Code).ToList();
Extensions.cs (2)
393select a).ToList().First(); 400select a).ToList().FirstOrDefault() != null;
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
CodeGeneration\CSharpSyntaxGenerator.cs (4)
757var itypes = interfaceTypes?.Select(i => (BaseTypeSyntax)SyntaxFactory.SimpleBaseType((TypeSyntax)i)).ToList(); 778var itypes = interfaceTypes?.Select(i => (BaseTypeSyntax)SyntaxFactory.SimpleBaseType((TypeSyntax)i)).ToList(); 3092var falseArray = falseStatements.ToList(); 3577var parameters = parameterDeclarations?.Cast<ParameterSyntax>().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
896var finalTrivia = from.GetLeadingTrivia().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (1)
119.OrderBy(n => n.SpanStart).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
27newUsings = newUsings.Select(u => u.WithAdditionalAnnotations(annotations)).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\NameSyntaxExtensions.cs (1)
17=> new NameSyntaxIterator(nameSyntax).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
600var instantiatedMethods = methods.Select(m => Instantiate(m, invocationTypes)).ToList(); 1308? initializerExpression.Expressions.GetSeparators().ToList().IndexOf(previousToken.Value) + 1 1435? initializerExpression.Expressions.GetSeparators().ToList().IndexOf(previousToken.Value) + 1
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
CodeGeneration\SymbolEditorTests.cs (2)
250var docs = editor.GetChangedDocuments().ToList(); 322var docs = editor.GetChangedDocuments().ToList();
CodeGeneration\SyntaxGeneratorTests.cs (1)
857var parameters = parameterTypes.Select((t, i) => Generator.ParameterDeclaration("p" + i, Generator.TypeExpression(t))).ToList();
Microsoft.CodeAnalysis.EditorFeatures (7)
Editor\TextBufferAssociatedViewService.cs (1)
103return set.ToList();
ExtractMethod\ExtractMethodCommandHandler.cs (1)
95var spans = view.Selection.GetSnapshotSpansOnBuffer(textBuffer).Where(s => s.Length > 0).ToList();
Shared\Extensions\MefExtensions.cs (2)
39return extensions.Where(h => contentTypes.Any(d => d.MatchesAny(h.Metadata.ContentTypes))).ToList(); 47return extensions.SelectMatchingExtensions(contentTypes).Select(p => p.Value).ToList();
Shared\Utilities\LinkedEditsTracker.cs (3)
33=> _trackingSpans.Select(ts => ts.GetSpan(snapshot)).ToList(); 66var trackingSpansAfterEdit = GetActiveSpansForSnapshot(args.After).Select(ss => (Span)ss).ToList(); 92var trackingSpansThatIntersect = query.ToList();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (5)
Classification\ClassificationTestHelper.cs (2)
34var expectedClassificationList = expectedClassifications.ToList(); 35var actualClassificationList = actualClassifications.ToList();
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (1)
45var expectedHighlightSpans = testDocument.SelectedSpans.ToList();
LanguageServer\AbstractLspBuildOnlyDiagnosticsTests.cs (1)
28var missing = ExpectedDiagnosticCodes.Except(actualDiagnosticCodes).OrderBy(k => k).ToList();
NavigateTo\AbstractNavigateToTests.cs (1)
167items = items.OrderBy(i => i.Name).ToList();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
Diagnostics\IDEDiagnosticIDUniquenessTest.cs (1)
20var listOfIDEDiagnosticIds = type.GetFields().Select(x => x.GetValue(null).ToString()).ToList();
Extensions\IProjectionBufferFactoryServiceExtensionsTests.cs (2)
72var lines = projectionSnapshot.Lines.ToList(); 102var lines = projectionSnapshot.Lines.ToList();
Utilities\BloomFilterTests.cs (2)
168var longs = CreateLongs(GenerateStrings(2000).Skip(500).Take(1000).Select(s => s.GetHashCode()).ToList()); 169var testLongs = CreateLongs(GenerateStrings(100000).Select(s => s.GetHashCode()).ToList());
Utilities\PatternMatcherTests.cs (1)
494var actualSpans = flattened.OrderBy(s => s.Start).ToList();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Interactive\InertClassifierProvider.InertClassifier.cs (1)
34return classifications.Where(c => c.Span.IntersectsWith(span)).ToList();
Peek\DefinitionPeekableItem.cs (1)
83var sourceLocations = symbol.Locations.Where(l => l.IsInSource).ToList();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Debugger\MemberInfo\CustomAttributeDataImpl.cs (2)
37return CustomAttributeData.ConstructorArguments.Select(MakeTypedArgument).ToList(); 50var lmrValue = new ReadOnlyCollection<CustomAttributeTypedArgument>(reflectionValue.Select(MakeTypedArgument).ToList());
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
LanguageServices\FSharpVisualStudioWorkspaceExtensions.cs (1)
24var projects = workspace.CurrentSolution.Projects.Where(p => string.Equals(p.OutputFilePath, filePath, StringComparison.OrdinalIgnoreCase)).ToList();
SignatureHelp\FSharpSignatureHelpItems.cs (1)
82var distinctItems = items.Distinct().ToList();
Microsoft.CodeAnalysis.Features (23)
AddPackage\InstallPackageDirectlyCodeActionOperation.cs (1)
52_document.Project.Solution, packageName, versionOpt).ToList();
ChangeSignature\AbstractChangeSignatureService.cs (1)
479var argumentsToPermute = arguments.Take(declarationParametersToPermute.Length).ToList();
ChangeSignature\ParameterConfiguration.cs (1)
26var parametersList = parameters.ToList();
Completion\CompletionService.ProviderManager.cs (1)
75).ToList();
Completion\Providers\Scripting\GlobalAssemblyCacheCompletionHelper.cs (1)
22new(() => GlobalAssemblyCache.Instance.GetAssemblySimpleNames().ToList());
Completion\Providers\SymbolCompletionItem.cs (3)
136var idList = symbolIds.Split(s_symbolSplitters, StringSplitOptions.RemoveEmptyEntries).ToList(); 239invalidProjects.Split(s_projectSeperators).Select(s => ProjectId.CreateFromSerialized(Guid.Parse(s))).ToList(), 240candidateProjects.Split(s_projectSeperators).Select(s => ProjectId.CreateFromSerialized(Guid.Parse(s))).ToList());
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (1)
172var cancellations = _cancellationMap.Values.ToList();
ExtractInterface\AbstractExtractInterfaceService.cs (1)
275extractableMembers.ToList(),
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (1)
75var list = trivia.ToList();
GenerateType\AbstractGenerateTypeService.cs (1)
187var arguments = typeArguments.ToList();
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
309? containers.ToList()
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
654var parts = ToMinimalDisplayParts(symbol, MinimallyQualifiedFormat).ToList();
SignatureHelp\AbstractSignatureHelpProvider.cs (2)
99return (items.ToList(), selectedItem); 101var filteredList = items.Where(i => Include(i, parameterNames)).ToList();
SignatureHelp\SignatureHelpItems.cs (1)
77var distinctItems = items.Distinct().ToList();
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
127var allTokens = node.DescendantTokens(descendIntoTrivia: true).ToList();
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (4)
75var paramsBeforeCurrentParam = parameterNames.TakeWhile(t => t != parameterName).ToList(); 76var paramsAfterCurrentParam = parameterNames.Except(paramsBeforeCurrentParam).ToList(); 129.ToList(); 138.ToList();
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
169delegatedConstructor.Parameters.Select(p => p.Name).ToList(),
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\MatchingPair.cs (1)
31=> Pairs = pairs.ToList();
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\CodeFixes\CodeFixService.cs (1)
306{ range, diagnostics.ToList() },
Protocol\Converters\SumConverter.cs (1)
93objectUnionTypeInfosSet.Where(t => t.KindAttribute is null)).ToList();
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
DeterministicKeyBuilderTests.cs (1)
59.ToList()
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Host\TestUtils.cs (4)
55var mismatch1 = assetMapFromNewSolution.Where(p => !allChecksumsFromRequest.Contains(p.Key)).ToList(); 59var mismatch2 = assetMapFromIncrementalSolution.Where(p => !allChecksumsFromRequest.Contains(p.Key)).ToList(); 63var mismatch3 = assetMapFromNewSolution.Where(p => !assetMapFromIncrementalSolution.ContainsKey(p.Key)).ToList(); 66var mismatch4 = assetMapFromIncrementalSolution.Where(p => !assetMapFromNewSolution.ContainsKey(p.Key)).ToList();
Microsoft.CodeAnalysis.Test.Utilities (12)
Assert\AssertEx.cs (1)
873var list = items.ToList();
Assert\EqualityUnit`1.cs (2)
46EqualValues.Concat(equalValues).ToList().AsReadOnly(), 55NotEqualValues.Concat(notEqualValues).ToList().AsReadOnly());
Assert\EqualityUtil`1.cs (1)
31_equalityUnits = equalityUnits.ToList().AsReadOnly();
Diagnostics\DiagnosticExtensions.cs (2)
76.ToList(); 77var unmatchedActualIndex = actual.Select((_, i) => i).ToList();
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
174.Where(p => p.IsMissing).Select(p => p.Element).ToList();
Syntax\TokenUtilities.cs (4)
76return CS.SyntaxFactory.ParseTokens(text).Select(t => (SyntaxToken)t).Where(t => !SkipCSharpToken(t)).ToList(); 80return VB.SyntaxFactory.ParseTokens(text).Select(t => (SyntaxToken)t).Where(t => !SkipVisualBasicToken(t)).ToList(); 88return node.DescendantTokens().Where(t => !SkipCSharpToken(t)).ToList(); 92return node.DescendantTokens().Where(t => !SkipVisualBasicToken(t)).ToList();
TestHelpers.cs (1)
39}).ToList();
Microsoft.CodeAnalysis.UnitTests (39)
Analyzers\AnalyzerConfigTests.cs (3)
207AnalyzerConfig.ReservedKeys.Select(k => KeyValuePair.Create("my_" + k, "MY_VAL")).ToList(), 356AnalyzerConfig.ReservedValues.Select(v => KeyValuePair.Create("my_key" + (index++), v)).ToList(), 366AnalyzerConfig.ReservedKeys.Select(k => KeyValuePair.Create(k, "my_val")).ToList(),
CachingLookupTests.cs (2)
88List<T> l1 = e1.ToList(); 89List<T> l2 = e2.ToList();
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (3)
92CollectionAssertAreEquivalent(map.Select(kv => kv.Key).ToList(), Enumerable.Range(1, 100).ToList()); 245var list = map.ToList();
Collections\ImmutableListTestBase.cs (2)
521Assert.Equal(new[] { 1 }, enumerable.ToList()); // exercises the enumerator 524Assert.Equal(new[] { 1 }, enumerableNonGeneric.Cast<int>().ToList()); // exercises the enumerator
Collections\ImmutableSegmentedDictionaryTest.cs (1)
59CollectionAssertAreEquivalent<KeyValuePair<string, string>>(sortedMap.ToList(), map.ToList());
Collections\ImmutableSegmentedHashSetTest.cs (3)
65CollectionAssertAreEquivalent(set.ToList(), sorted.ToList()); 212CollectionAssertAreEquivalent(expectedSet.ToList(), actualSet.ToList());
Collections\ImmutableSegmentedListBuilderTest.cs (2)
439Assert.Equal<T>(bcl, builder.ToList()); 448Assert.Equal<T>(expected, builder.ToList());
Collections\ImmutableSegmentedListTest.cs (1)
845Assert.Equal<T>(expected, actual.ToList());
Collections\ImmutableSetTest.cs (3)
272Assert.Equal<T>(expectedValues, set.ToList()); 276CollectionAssertAreEquivalent(expectedValues, set.ToList()); 447var list = set.ToList();
Collections\ImmutableSetTest.nonnetstandard.cs (8)
119CollectionAssertAreEquivalent(expectedSet.ToList(), actualSet.ToList()); 131CollectionAssertAreEquivalent(expectedSet.ToList(), actualSet.ToList()); 145CollectionAssertAreEquivalent(expected.ToList(), actual.ToList()); 157CollectionAssertAreEquivalent(expected.ToList(), actual.ToList());
Collections\ImmutablesTestBase.nonnetstandard.cs (1)
42var equivalentSequence = objectUnderTest.ToList();
Collections\List\ICollection.Generic.Tests.cs (3)
245List<T> items = collection.ToList(); 269List<T> itemsToRemove = collection.ToList(); 662Assert.All(collection.ToList(), value =>
Collections\List\IList.Generic.Tests.cs (2)
384foreach (T duplicate in list.ToList()) // hard copies list to circumvent enumeration error 386List<T> expectedList = list.ToList();
Collections\List\SegmentedList.Generic.Tests.Misc.cs (1)
206return items.ToList();
Collections\List\TestBase.Generic.cs (3)
144match = enumerableToMatchTo.ToList(); 193match = enumerableToMatchTo.ToList(); 283match = enumerableToMatchTo.ToList();
Text\TextChangeTests.cs (1)
243var result = newText.GetTextChanges(text).ToList();
Microsoft.CodeAnalysis.Workspaces (38)
Differencing\Match.cs (2)
381var oldList = (oldNodes as IReadOnlyList<TNode>) ?? oldNodes.ToList(); 382var newList = (newNodes as IReadOnlyList<TNode>) ?? newNodes.ToList();
Editing\SymbolEditor.cs (2)
154var symbols = DocumentationCommentId.GetSymbolsForDeclarationId(symbolId, comp).ToList(); 410var memberDecls = this.GetDeclarations(currentMember).ToList();
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
442var orderedKeys1 = _inheritanceMap.Keys.Order().ToList();
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
101var topologicallySortedProjects = dependencyGraph.GetTopologicallySortedProjects(_cancellationToken).ToList(); 790foreach (var documentId in documentIdsToRename.ToList())
Shared\Extensions\IMethodSymbolExtensions.cs (2)
87return p1.Select(p => p.Type).ToList().AreMoreSpecificThan(p2.Select(p => p.Type).ToList());
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (2)
130tasks = waiters.Select(x => x.ExpeditedWaitAsync()).Where(t => !t.IsCompleted).ToList(); 198=> _singletonListeners.Values.Where(l => l.TrackActiveTokens).SelectMany(l => l.ActiveDiagnosticTokens).ToList();
Shared\Utilities\ExtensionOrderer.cs (1)
25var list = extensions.ToList();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
108return new ReadOnlyCollection<T>(source.ToList()); 182=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
719.ToList(); 759.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (2)
591var allTypeArgs1 = n1.GetAllTypeArguments().ToList(); 592var allTypeArgs2 = n2.GetAllTypeArguments().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (1)
71var allTypeArguments = symbol.GetAllTypeArguments().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
17var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
403.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
27.OrderByDescending(f => f).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
59return naturalItemsBefore.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
278var membersList = members.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
62var members = innermostNamespace.GetMembers().ToList(); 169}).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationNamedTypeSymbol.cs (1)
92return this.GetMembers().Select(m => m.Name).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
Workspace\CommandLineProject.cs (2)
65var boundMetadataReferences = commandLineArguments.ResolveMetadataReferences(commandLineMetadataReferenceResolver).Distinct().ToList(); 78var boundAnalyzerReferences = commandLineArguments.ResolveAnalyzerReferences(analyzerLoader).Distinct().ToList();
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1319var newList = projectReferencesInWorkspace.ToList();
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (2)
397foreach (var outputPath in projectReferenceInfo.OutputPaths.ToList()) 506var distinctProjectsForOutputPath = projectsForOutputPath.Distinct().ToList();
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (1)
28.ToList();
Workspace\Workspace_Editor.cs (2)
56docIds = _projectToOpenDocumentsMap.Values.SelectMany(x => x).ToList(); 76var copyOfOpenDocs = openDocs.ToList();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
MSBuild\ProjectFile\ProjectFile.cs (1)
462var items = references.Where(it => it.EvaluatedInclude.StartsWith(partialName, StringComparison.OrdinalIgnoreCase)).ToList();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
108return new ReadOnlyCollection<T>(source.ToList()); 182=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (19)
SolutionGeneration.cs (2)
118var documents = inputs.OfType<DocumentBuilder>().ToList(); 120var properties = inputs.OfType<PropertyBuilder>().ToList();
VisualStudioMSBuildWorkspaceTests.cs (17)
78var references = vbProject.MetadataReferences.ToList(); 88var compReferences = compilation.References.ToList(); 761var documents = project.Documents.ToList(); 789var refs = project.MetadataReferences.ToList(); 843var documents = project.Documents.Where(d => d.Name == "CSharpClass.cs").ToList(); 1328var metaRefs = project.MetadataReferences.ToList(); 1394var projRefs = project.ProjectReferences.ToList(); 1395var metaRefs = project.MetadataReferences.ToList(); 1415var projRefs = project.ProjectReferences.ToList(); 1416var metaRefs = project.MetadataReferences.ToList(); 1992var documents = project.Documents.ToList(); 2020var documents = project2.Documents.ToList(); 2039var documentsB = projectB.Documents.ToList(); 2063var documents = project2.Documents.ToList(); 2114var documents = solution.GetProjectsByName("CSharpProject").FirstOrDefault().Documents.ToList(); 2141var documents = solution.GetProjectsByName("CSharpProject").FirstOrDefault().AdditionalDocuments.ToList(); 2991var docs = proj.Documents.ToList();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
Workspaces\TestWorkspace_XmlConsumption.cs (6)
162var documentElements = projectElement.Elements(DocumentElementName).ToList(); 201var additionalDocumentElements = projectElement.Elements(AdditionalDocumentElementName).ToList(); 216var analyzerConfigElements = projectElement.Elements(AnalyzerConfigDocumentElementName).ToList(); 422.Select(x => GlobalImport.Parse(x.Value)).ToList(); 717return new ReadOnlyCollection<string>(folderContainers.ToList()); 772var documentElements = referencedSource.Elements(DocumentElementName).ToList();
Microsoft.CodeAnalysis.Workspaces.UnitTests (26)
CodeCleanup\CodeCleanupTests.cs (2)
405var sortedSpans = spanCodeCleanup.ExpectedResult.ToList(); 406var expectedSpans = transformer.ExpectedResult.ToList();
CodeCleanup\Extensions.cs (2)
55var members = ((IEnumerable<M>)d.Members).ToList(); 66var members = ((IEnumerable<M>)d.Members).ToList();
FindReferencesTests.cs (11)
106var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 131var result = (await SymbolFinder.FindReferencesAsync(symbol.Type, solution)).ToList(); 184SyntaxNode normalMethod = tree.GetRoot().DescendantNodes().OfType<Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax>().ToList()[1]; 286var methodlist = tree.GetRoot().DescendantNodes().OfType<Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax>().ToList(); 329var result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 340result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 351result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 393var references = (await SymbolFinder.FindReferencesAsync(interfaceMethod, solution)).ToList(); 544var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 577var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 619var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList();
SolutionTests\SolutionTests.cs (2)
2876var docs = project.Documents.ToList(); 2877var trees = compilation.SyntaxTrees.ToList();
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
392var projectIds = solutionWithProjects.ProjectIds.ToList();
SymbolKeyTests.cs (7)
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(); 620var symbols = tree.GetRoot().DescendantNodes().OfType<CSharp.Syntax.InvocationExpressionSyntax>().Select(s => model.GetSymbolInfo(s).Symbol).ToList(); 679var symbols = tree.GetRoot().DescendantNodes().OfType<CSharp.Syntax.UsingDirectiveSyntax>().Select(s => model.GetDeclaredSymbol(s)).ToList(); 685var refSymbols = GetDeclaredSymbols(compilation).OfType<IFieldSymbol>().Select(f => f.Type).ToList(); 704var symbols = GetDeclaredSymbols(compilation).OfType<IFieldSymbol>().Select(f => f.Type).ToList();
SyntaxNodeTests.cs (1)
53var nodes = root.DescendantNodes().Where(n => n is VariableDeclaratorSyntax or ClassDeclarationSyntax).ToList();
Microsoft.Data.Analysis.Tests (1)
DataFrameGroupByTests.cs (1)
71var groupings = df.GroupBy<int>("Tens").Groupings.ToDictionary(g => g.Key, g => g.ToList());
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
514_arguments = arguments.ToList();
Microsoft.DotNet.Arcade.Sdk.Tests (2)
SourceMappingToNugetConfigTest.cs (2)
67.ToList(); 73.ToList();
Microsoft.DotNet.AsmDiff (1)
ApiRecordingCSharpDiffWriter.cs (1)
30get { return _apis.ToList(); }
Microsoft.DotNet.Build.Tasks.Feed (3)
src\BuildModelFactory.cs (1)
259foreach(var attribute in attributes.ToList())
src\common\LatestLinksManager.cs (1)
94.ToList();
src\model\SetupTargetFeedConfigV3.cs (1)
90return Feeds().Distinct().ToList();
Microsoft.DotNet.Build.Tasks.Packaging (6)
FrameworkUtilities.cs (1)
85var _frameworks = frameworks.Select(s => NuGetFramework.Parse(s)).ToList();
GenerateNuSpec.cs (4)
266return manifestFiles.OrderBy(f => f.Target, StringComparer.OrdinalIgnoreCase).ToList(); 276).Distinct(frameworkAssemblyReferenceComparer).ToList(); 327.ToList(); 347).ToList();
NuGetUtility.cs (1)
79return provider.LoadPackageSources().Where(e => e.IsEnabled == true).ToList();
Microsoft.DotNet.Helix.Client (1)
generated-code\PagedResponse.cs (1)
67var links = ParseLinkHeader(header).ToList();
Microsoft.DotNet.Helix.JobSender (1)
JobDefinition.cs (1)
190))).ToList();
Microsoft.DotNet.Helix.Sdk (2)
SendHelixJob.cs (1)
346var commands = GetCommands(workItem, command).ToList();
WaitForHelixJobCompletion.cs (1)
30List<(string jobName, string queueName, string jobCancellationToken)> jobNames = Jobs.Select(j => (j.GetMetadata("Identity"), j.GetMetadata("HelixTargetQueue"), j.GetMetadata("HelixJobCancellationToken"))).ToList();
Microsoft.DotNet.MacOsPkg (1)
Package.cs (1)
57List<XElement> componentPackages = xml.Elements("pkg-ref").Where(e => e.Value.Trim() != "").ToList();
Microsoft.DotNet.PackageTesting (1)
Package.cs (1)
30List<NuGetFramework> FrameworksInPackageList = CompileAssets.Select(t => (NuGetFramework)t.Properties["tfm"]).ToList();
Microsoft.DotNet.SignCheckLibrary (4)
Verification\AuthentiCodeVerifier.cs (1)
61svr.Timestamps = AuthentiCode.GetTimestamps(path).ToList();
Verification\Jar\JarSignatureFile.cs (1)
204select key).ToList();
Verification\SignatureVerificationResult.cs (2)
150_nestedResults = value.ToList(); 169_timestamps = value.ToList();
Microsoft.DotNet.SignTool (3)
src\BatchSignUtil.cs (2)
118var toProcessList = _batchData.FilesToSign.ToList(); 222var repackList = files.Where(w => toRepackSet.Contains(w.FullPath)).ToList();
src\Configuration.cs (1)
135_wixPacks = _itemsToSign.Where(w => WixPackInfo.IsWixPack(w.ItemSpec))?.Select(s => new WixPackInfo(s.ItemSpec)).ToList();
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
Modeler\ServiceClientModelFactory.cs (2)
165.ToList(); 274IList<string> enumeration = schema.Enum.OfType<OpenApiString>().Select(s => s.Value).ToList();
ServiceClientCodeFactory.cs (1)
79return context.Files.Values.ToList();
Microsoft.DotNet.VersionTools (9)
BuildManifest\Model\ArtifactSet.cs (2)
34Packages = xml.Elements("Package").Select(PackageArtifactModel.Parse).ToList(), 35Blobs = xml.Elements("Blob").Select(BlobArtifactModel.Parse).ToList(),
BuildManifest\Model\OrchestratedBuildModel.cs (2)
50Endpoints = xml.Elements("Endpoint").Select(EndpointModel.Parse).ToList(), 51Builds = xml.Elements("Build").Select(BuildIdentity.Parse).ToList()
BuildManifest\Model\SigningInformationModel.cs (5)
68.ThrowIfInvalidFileExtensionSignInfo().ToList(), 70.ThrowIfInvalidFileSignInfo().ToList(), 71ItemsToSign = xml.Elements("ItemsToSign").Select(ItemToSignModel.Parse).ToList(), 73.ThrowIfInvalidStrongNameSignInfo().ToList(), 75.ThrowIfInvalidCertificateSignInfo().ToList(),
Microsoft.DotNet.XliffTasks (2)
Model\TranslatableDocument.cs (1)
33Nodes = GetTranslatableNodes().ToList().AsReadOnly();
Model\XlfDocument.cs (1)
108foreach (XElement unitElement in bodyElement.Descendants(TransUnit).ToList())
Microsoft.DotNet.XUnitAssert.Tests (20)
EquivalenceAssertsTests.cs (20)
979 var expected = new[] { new { Foo = "Bar" } }.ToList(); 980 var actual = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList(); 988 var expected = new { x = new[] { new { Foo = "Bar" } }.ToList() }; 989 var actual = new { x = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList() }; 997 var expected = new[] { new { Foo = "Biff" } }.ToList(); 998 var actual = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList(); 1014 var expected = new { x = new[] { new { Foo = "Biff" } }.ToList() }; 1015 var actual = new { x = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList() }; 1034 var expected = new[] { new { Foo = "Bar" }, new { Foo = "Baz" } }.ToList(); 1035 var actual = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList(); 1043 var expected = new { x = new[] { new { Foo = "Bar" }, new { Foo = "Baz" } }.ToList() }; 1044 var actual = new { x = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList() }; 1052 var expected = new[] { new { Foo = "Biff" } }.ToList(); 1053 var actual = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList(); 1069 var expected = new[] { new { Foo = "Bar" } }.ToList(); 1070 var actual = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList(); 1086 var expected = new { x = new[] { new { Foo = "Biff" } }.ToList() }; 1087 var actual = new { x = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList() }; 1103 var expected = new { x = new[] { new { Foo = "Bar" } }.ToList() }; 1104 var actual = new { x = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList() };
Microsoft.DotNet.XUnitExtensions (1)
Discoverers\TestCategoryDiscoverer.cs (1)
26var ctorArgs = traitAttribute.GetConstructorArguments().ToList();
Microsoft.DotNet.XUnitExtensions.Tests (1)
AlphabeticalOrderer.cs (1)
18List<TTestCase> result = testCases.ToList();
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
338[] : update.Contents.Where(c => c is not FunctionCallContent).ToList();
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (1)
189entry.Value.Contents = entry.Value.Contents.ToList();
Embeddings\EmbeddingGeneratorExtensions.cs (1)
138IList<TInput> inputs = values as IList<TInput> ?? values.ToList();
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
150[new ChatMessage(ChatRole.User, "hello".Select(c => (AIContent)new TextContent(c.ToString())).ToList())] : 217[new ChatMessage(ChatRole.User, "hello".Select(c => (AIContent)new TextContent(c.ToString())).ToList())] :
Microsoft.Extensions.AI.Integration.Tests (1)
ReducingChatClientTests.cs (1)
180return chatMessages.Skip(i + 1).ToList();
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
467Required = function.Metadata.Parameters.Where(p => p.IsRequired).Select(p => p.Name).ToList(),
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatMessage.cs (1)
20IList<ChatMessage> messages = FromOpenAIChatMessages(_getMessagesAccessor(chatCompletionOptions)).ToList();
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
544var allUpdateContents = updates.SelectMany(updates => updates.Contents).ToList();
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
GetDocumentTests.cs (1)
119var documentNames = Directory.GetFiles(outputPath.FullName).Where(documentName => documentName.EndsWith(".json", StringComparison.Ordinal)).ToList();
Microsoft.Extensions.Configuration (1)
InternalConfigurationRootExtensions.cs (1)
39return children.ToList();
Microsoft.Extensions.Configuration.KeyPerFile.Tests (7)
ConfigurationProviderTestBase.cs (7)
253var sections = config.GetChildren().ToList(); 269sections = section1.GetChildren().ToList(); 281sections = section2.GetChildren().ToList(); 293sections = section3a.GetChildren().ToList(); 309sections = section3.GetChildren().ToList(); 317sections = section4.GetChildren().ToList(); 331var root = new ConfigurationRoot(providers.Select(e => e.Provider).ToList());
Microsoft.Extensions.Diagnostics (1)
Metrics\MetricsSubscriptionManager.cs (1)
20var list = listeners.ToList();
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
281_values = values.ToList();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
CircularBufferTests.cs (4)
33var elementsToAdd = Enumerable.Range(1, BufferSize * 3).ToList(); 34var expectedBufferElements = elementsToAdd.Skip(Math.Max(0, elementsToAdd.Count - BufferSize)).ToList(); 51var bufferElements = Enumerable.Range(1, BufferSize).ToList(); 70var bufferElements = Enumerable.Range(1, BufferSize).ToList();
Microsoft.Extensions.Diagnostics.Testing.Tests (11)
Metrics\MeasurementExtensionsTests.cs (11)
27var filtered = fullSnap.ContainsTags("A").ToList(); 35filtered = fullSnap.ContainsTags("M").ToList(); 52var filtered = fullSnap.ContainsTags(new KeyValuePair<string, object?>("A", "a")).ToList(); 60filtered = fullSnap.ContainsTags(new KeyValuePair<string, object?>("A", "X")).ToList(); 77var filtered = fullSnap.MatchesTags("A", "B").ToList(); 85filtered = fullSnap.MatchesTags("A").ToList(); 88filtered = fullSnap.MatchesTags("A", "B", "C").ToList(); 105var filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a"), new("B", "b")).ToList(); 113filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a")).ToList(); 116filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a"), new("B", "x")).ToList(); 119filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a"), new("B", "b"), new("C", "c")).ToList();
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\AcceptanceTests.cs (2)
50var enrichers = sp.GetServices<IHttpClientLogEnricher>().ToList(); 621var logRecords = collector.GetSnapshot().Where(l => l.Category == "System.Net.Http.HttpClient.normal.LogicalHandler").ToList();
Microsoft.Extensions.Http.Resilience.Tests (2)
Routing\OrderedRoutingStrategyTest.cs (1)
116Endpoints = endpoint.ToList()
Routing\WeightedRoutingStrategyTest.cs (1)
176Endpoints = endpoint.ToList()
Microsoft.Extensions.Identity.Core (1)
IdentityResult.cs (1)
74string.Format(CultureInfo.InvariantCulture, "{0} : {1}", "Failed", string.Join(",", Errors.Select(x => x.Code).ToList()));
Microsoft.Extensions.Localization.Tests (5)
ResourceManagerStringLocalizerTest.cs (5)
47localizer1.GetAllStrings().ToList(); 48localizer2.GetAllStrings().ToList(); 83localizer1.GetAllStrings().ToList(); 84localizer2.GetAllStrings().ToList(); 165var strings = localizer.GetAllStrings(includeParentCultures).ToList();
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
276var members = modelType.GetMembers().ToList();
Microsoft.Gen.ComplianceReports (1)
Parser.cs (1)
81Members = classifiedMembers?.Values.ToList(),
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
448var l = sourceNames.ToList(); 509var l = sourceNames.ToList();
Microsoft.Gen.ContextualOptions (2)
ContextReceiver.cs (1)
52group => (INamedTypeSymbol)group.Key!, group => group.ToList(), comparer: SymbolEqualityComparer.Default);
ContextualOptionsGenerator.cs (1)
44group => (INamedTypeSymbol)group.Key!, group => group.ToList(), comparer: SymbolEqualityComparer.Default);
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
448var l = sourceNames.ToList(); 509var l = sourceNames.ToList();
Microsoft.Gen.Logging (2)
Model\LoggingMethod.cs (1)
56return templates.ToList();
Parsing\Parser.cs (1)
477.ToList();
Microsoft.Gen.Logging.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
448var l = sourceNames.ToList(); 509var l = sourceNames.ToList();
Microsoft.Gen.Metrics.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
448var l = sourceNames.ToList(); 509var l = sourceNames.ToList();
Microsoft.Gen.MetricsReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
448var l = sourceNames.ToList(); 509var l = sourceNames.ToList();
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Marshaling\FuncJSGenerator.cs (1)
28var args = _argumentMarshalerTypes.Select(x => Argument(MarshalerTypeName(x))).ToList();
Microsoft.Maui (9)
Animations\Animation.cs (2)
265 var reversedChildren = childrenAnimations.ToList(); 291 var reversedChildren = childrenAnimations.ToList();
HotReload\HotReloadExtensions.cs (2)
41 return getOnHotReloadMethods(type).Distinct(new ReflectionMethodComparer()).ToList(); 48 var foos = type.GetMethods(flags).Where(x => x.GetCustomAttributes(typeof(OnHotReloadAttribute), true).Length > 0).ToList();
HotReload\HotReloadHelper.cs (3)
167 var views = HandlerService!.Where(x => x.ImplementationType == t).Select(x => new KeyValuePair<Type, Type>(x.ServiceType, x.ImplementationType!)).ToList(); 170 replacedHandlers[oldViewType] = views.ToList(); 195 roots = ActiveViews.Where(x => x != null && x.Parent == null).ToList();
VisualDiagnostics\VisualDiagnosticsOverlay.cs (2)
134 foreach (var element in WindowElements.ToList()) 199 .ToList();
Microsoft.Maui.Controls (59)
BindablePropertyConverter.cs (1)
129 var parents = parentValueProvider.ParentObjects.ToList();
Compatibility\Handlers\Shell\iOS\ShellItemRenderer.cs (3)
129 foreach (var kvp in _sectionRenderers.ToList()) 165 foreach (var kvp in _sectionRenderers.ToList()) 259 var index = ViewControllers.ToList().IndexOf(renderer.ViewController);
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (3)
416 var pages = _shellSection.Stack.ToList(); 432 var pages = _shellSection.Stack.ToList(); 663 var stack = shellSection?.Stack.ToList();
Element\Element.cs (1)
753 foreach (Action<object, ResourcesChangedEventArgs> handler in _changeHandlers.ToList())
Handlers\Items\iOS\ItemsViewDelegator.cs (2)
120 var indexPathsForVisibleItems = collectionView.IndexPathsForVisibleItems.OrderBy(x => x.Row).ToList(); 152 var indexPathsForVisibleItems = collectionView.IndexPathsForVisibleItems.OrderBy(x => x.Row).ToList();
Handlers\Items2\iOS\ItemsViewDelegator2.cs (2)
120 var indexPathsForVisibleItems = collectionView.IndexPathsForVisibleItems.OrderBy(x => x.Row).ToList(); 152 var indexPathsForVisibleItems = collectionView.IndexPathsForVisibleItems.OrderBy(x => x.Row).ToList();
Label\Label.cs (1)
306 foreach (var spanRecognizer in GestureController.CompositeGestureRecognizers.ToList())
LegacyLayouts\Grid.cs (2)
439 IReadOnlyList<IGridRowDefinition> IGridLayout.RowDefinitions => RowDefinitions.ToList(); 440 IReadOnlyList<IGridColumnDefinition> IGridLayout.ColumnDefinitions => ColumnDefinitions.ToList();
LegacyLayouts\GridCalc.cs (2)
493 _columns = grid.ColumnDefinitions == null ? new List<ColumnDefinition>() : grid.ColumnDefinitions.ToList(); 494 _rows = grid.RowDefinitions == null ? new List<RowDefinition>() : grid.RowDefinitions.ToList();
LegacyLayouts\Layout.cs (1)
194 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren() => Children.ToList().AsReadOnly();
LegacyLayouts\RelativeLayout.cs (2)
76 List<View> unsolvedChildren = Children.Cast<View>().ToList(); 79 List<View> copy = unsolvedChildren.ToList();
ListStringTypeConverter.cs (1)
26 return strValue.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()).ToList();
ListView\ListView.cs (1)
559 var itemSource = ItemsSource?.Cast<object>().ToList();
MergedStyle.cs (1)
130 ClassStyles = _classStyleProperties.Select(p => (Target.GetValue(p) as IList<Style>)?.FirstOrDefault(s => s.CanBeAppliedTo(TargetType))).ToList();
MessagingCenter.cs (1)
216 List<Subscription> subscriptionsCopy = subcriptions.ToList();
MultiPage.cs (1)
329 List<Element> snapshot = InternalChildren.ToList();
NavigationPage\NavigationPage.Legacy.cs (1)
176 PoppedToRoot?.Invoke(this, new PoppedToRootEventArgs(RootPage, childrenToRemove.OfType<Page>().ToList()));
ObservableList.cs (3)
20 List<T> items = range.ToList(); 37 List<T> items = range.ToList(); 86 List<T> items = range.ToList();
Page\Page.cs (1)
381 var actionsToProcess = _pendingActions.ToList();
Platform\AlertManager\AlertManager.iOS.cs (1)
35 var toRemove = Subscriptions.Where(s => s.PlatformView == platformWindow).ToList();
Platform\iOS\Extensions\BrushExtensions.cs (2)
75 var orderedStops = linearGradientBrush.GradientStops.OrderBy(x => x.Offset).ToList(); 103 var orderedStops = radialGradientBrush.GradientStops.OrderBy(x => x.Offset).ToList();
Region.cs (1)
32 var list = rectangles.ToList();
ResourceDictionary.cs (2)
250 return new ReadOnlyCollection<string>(_innerDictionary.Keys.Concat(_mergedInstance.Keys).ToList()); 269 return new ReadOnlyCollection<object>(_innerDictionary.Values.Concat(_mergedInstance.Values).ToList());
Shell\RouteRequestBuilder.cs (2)
166 var segmentsToMatch = ShellUriHandler.RetrievePaths(matchMe).ToList(); 237 return _allSegments.Skip(nextMatch).ToList();
Shell\Shell.cs (2)
792 => ShellNavigationManager.GetNavigationState(shellItem, shellSection, shellContent, includeStack ? shellSection.Stack.ToList() : null, includeStack ? shellSection.Navigation.ModalStack.ToList() : null);
Shell\ShellElementCollection.cs (2)
90 var pendingEvents = _notifyCollectionChangedEventArgs.OrderBy(x => x.NewItems != null ? 0 : 1).ToList(); 110 var list = Inner.Cast<BaseShellItem>().ToList();
Shell\ShellNavigationManager.cs (1)
583 var returnValue = startingList.ToList();
Shell\ShellSection.cs (6)
732 var stack = _navStack.ToList(); 763 List<Page> stack = _navStack.ToList(); 843 List<Page> stack = _navStack.ToList(); 912 var stack = _navStack.ToList(); 1167 var stack = _owner.Stack.ToList(); 1192 var stack = _owner.Stack.ToList();
Shell\ShellUriHandler.cs (7)
457 var existingGlobalRoutes = routeRequestBuilder.GlobalRouteMatches.ToList(); 491 var localRouteStack = currentRouteStack.ToList(); 502 var paths = myRoute.ToList(); 1005 var segments = RetrievePaths(_path).ToList().Skip(1).ToList(); 1033 var segments = RetrievePaths(_path).ToList().Skip(1).ToList();
SynchronizedList.cs (1)
79 _snapshot = snap = new ReadOnlyCollection<T>(_list.ToList());
TableView\TableSection.cs (1)
159 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren() => this._children.Cast<IVisualTreeElement>().ToList().AsReadOnly();
Window\Window.cs (1)
82 public IReadOnlyCollection<IWindowOverlay> Overlays => _overlays.ToList().AsReadOnly();
Microsoft.Maui.Controls.Build.Tasks (7)
CompiledConverters\ListStringTypeConverter.cs (1)
23 var parts = value.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()).ToList();
CompiledMarkupExtensions\StaticResourceExtension.cs (1)
103 foreach (var instruction in FallBack(keyValueNode.Value as string, eNode, module, context).ToList())
CreateObjectVisitor.cs (2)
57 var children = node.Properties.Values.ToList(); 63 foreach (var n in en.Properties.Values.ToList())
NodeILExtensions.cs (1)
631 var pushParentIl = node.PushParentObjectsArray(context).ToList();
SetPropertiesVisitor.cs (1)
1879 .CustomAttributes.Where(attribute => attribute.AttributeType.FullName == "Microsoft.Maui.Controls.Xaml.RuntimeNamePropertyAttribute").ToList();
TypeReferenceExtensions.cs (1)
317 var implicitOperators = implicitOperatorsOnFromType.Concat(implicitOperatorsOnToType).ToList();
Microsoft.Maui.Controls.Compatibility (6)
Tizen\Extensions\BrushExtensions.cs (2)
94 var orderedGradientStops = linearGradientBrush.GradientStops.OrderBy(x => x.Offset).ToList(); 104 var orderedGradientStops = radialGradientBrush.GradientStops.OrderBy(x => x.Offset).ToList();
Tizen\Forms.cs (1)
419 return _results.Select(o => o as T).ToList();
Tizen\Platform.cs (2)
175 IReadOnlyList<Page> INavigation.ModalStack => _navModel.Modals.ToList(); 188 foreach (var child in _viewStack.Children.ToList())
Tizen\Renderers\ScrollViewRenderer.cs (1)
79 foreach (var child in Control.ContentContainer.Children.ToList())
Microsoft.Maui.Controls.Foldable (1)
TwoPaneViewLayoutGuide.cs (1)
296 var properties = _pendingPropertyChanges.ToList();
Microsoft.Maui.Controls.Maps (2)
HandlerImpl\Map.Impl.cs (2)
10 IList<IMapElement> IMap.Elements => _mapElements.Cast<IMapElement>().ToList(); 12 IList<IMapPin> IMap.Pins => _pins.Cast<IMapPin>().ToList();
Microsoft.Maui.Controls.SourceGen (3)
src\Controls\src\Xaml\XamlNode.cs (3)
239 foreach (var node in Properties.Values.ToList()) 241 foreach (var node in CollectionItems.ToList()) 255 CollectionItems = nodes.ToList();
Microsoft.Maui.Controls.Xaml (9)
CreateValuesVisitor.cs (1)
132 foreach (var cnode in node.Properties.Values.ToList())
PruneIgnoredNodesVisitor.cs (4)
28 var prefixes = propertyValue.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList(); 39 foreach (var propertyKvp in node.Properties.ToList()) 51 foreach (var prop in node.CollectionItems.ToList()) 77 foreach (var prop in node.CollectionItems.ToList())
RemoveDuplicateDesignNodes.cs (1)
26 var props = node.Properties.ToList();
XamlNode.cs (3)
239 foreach (var node in Properties.Values.ToList()) 241 foreach (var node in CollectionItems.ToList()) 255 CollectionItems = nodes.ToList();
Microsoft.Maui.Essentials (8)
Contacts\Contacts.uwp.cs (2)
52 item => new ContactPhone(item?.Number))?.ToList(); 54 item => new ContactEmail(item?.Address))?.ToList();
Email\Email.shared.cs (1)
152 To = to?.ToList() ?? new List<string>();
Share\Share.shared.cs (1)
311 Files = files.ToList();
Types\Contact.shared.cs (2)
49 Phones.AddRange(phones?.ToList()); 50 Emails.AddRange(email?.ToList());
VersionTracking\VersionTracking.shared.cs (2)
251 { versionsKey, ReadHistory(versionsKey).ToList() }, 252 { buildsKey, ReadHistory(buildsKey).ToList() }
Microsoft.Maui.Graphics (1)
Text\AttributedTextExtensions.cs (1)
41 return attributedText.Runs.ToList();
Microsoft.ML.AutoML (19)
API\BinaryClassificationExperiment.cs (1)
50Trainers = Enum.GetValues(typeof(BinaryClassificationTrainer)).OfType<BinaryClassificationTrainer>().ToList();
API\MulticlassClassificationExperiment.cs (1)
45Trainers = Enum.GetValues(typeof(MulticlassClassificationTrainer)).OfType<MulticlassClassificationTrainer>().ToList();
API\RankingExperiment.cs (1)
44Trainers = Enum.GetValues(typeof(RankingTrainer)).OfType<RankingTrainer>().ToList();
API\RecommendationExperiment.cs (1)
35Trainers = Enum.GetValues(typeof(RecommendationTrainer)).OfType<RecommendationTrainer>().ToList();
API\RegressionExperiment.cs (1)
45Trainers = Enum.GetValues(typeof(RegressionTrainer)).OfType<RegressionTrainer>().ToList();
AutoMLExperiment\AutoMLExperiment.cs (1)
224var mostRecentAddedStopServices = stopServices.GroupBy(s => s.GetType()).Select(g => g.Last()).ToList();
AutoMLExperiment\IStopTrainingManager.cs (1)
123_managers = managers.ToList();
ColumnInference\ColumnGroupingInference.cs (1)
59var tuples = types.Zip(purposes, Tuple.Create).ToList();
Experiment\Runners\CrossValSummaryRunner.cs (2)
205return values.ToList().IndexOf(values.Max()); 209return values.ToList().IndexOf(values.Min());
Experiment\SuggestedPipeline.cs (2)
31Transforms = transforms.Select(t => t.Clone()).ToList(); 32TransformsPostTrainer = transformsPostTrainer.Select(t => t.Clone()).ToList();
PipelineSuggesters\PipelineSuggester.cs (2)
40var transforms = TransformInferenceApi.InferTransforms(context, task, columns).ToList(); 41var transformsPostTrainer = TransformInferenceApi.InferTransformsPostTrainer(context, task, columns).ToList();
SweepableEstimator\SweepableEstimatorPipeline.cs (2)
26_estimators = estimators.ToList(); 38_estimators = estimators.ToList();
Sweepers\ISweeper.cs (1)
91var parameterNames = _parameterValues.Keys.ToList();
Sweepers\SweeperBase.cs (1)
51var prevParamSets = new HashSet<ParameterSet>(previousRuns?.Select(r => r.ParameterSet).ToList() ?? new List<ParameterSet>());
Tuner\AutoZeroTuner.cs (1)
39var trainerEstimators = _sweepablePipeline.Estimators.Where(e => e.Value.EstimatorType.IsTrainer()).Select(e => e.Value.EstimatorType.ToString()).ToList();
Microsoft.ML.AutoML.Tests (3)
Utils\TaskAgnosticAutoFit.cs (3)
70var iterationResults = classificationResult.RunDetails.Select(i => new TaskAgnosticIterationResult(i)).ToList(); 92iterationResults = regressionResult.RunDetails.Select(i => new TaskAgnosticIterationResult(i)).ToList(); 114iterationResults = recommendationResult.RunDetails.Select(i => new TaskAgnosticIterationResult(i)).ToList();
Microsoft.ML.CodeGenerator (8)
CodeGenerator\CSharp\CodeGenerator.cs (3)
221var preTrainerTransforms = preTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 222var postTrainerTransforms = postTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 225usings = usings.Distinct().ToList();
CodeGenerator\CSharp\PipelineExtension.cs (3)
39var preTrainerTransforms = preTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 40var postTrainerTransforms = postTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 43usings = usings.Distinct().ToList();
Utils.cs (2)
54var featureColumns = dataView.Schema.ToList().FindAll( 63List<string> normalizedColumnNames = GenerateColumnNames(featureColumns.Select(column => column.Name).ToList());
Microsoft.ML.Core.Tests (2)
UnitTests\TestCustomTypeRegister.cs (1)
188var tribeEnumerable = ML.Data.CreateEnumerable<SuperAlienHero>(tribeTransformed, false).ToList();
UnitTests\TestUtilities.cs (1)
54List<float> x = Enumerable.Range(0, 1000000).Select(i => (float)i).ToList();
Microsoft.ML.Data (5)
DataLoadSave\Text\TextLoader.cs (1)
242var sortedRanges = Source.OrderBy(x => x.Min).ToList();
Evaluators\EvaluatorUtils.cs (2)
1705sb.Append(GetOverallMetricsAsString(weightedAgg.Select(x => x.Sum).ToArray(), weightedAgg.Select(x => x.SumSq).ToArray(), numFolds, true, true, weightedAgg.Select(x => x.Name).ToList())); 1706sb.Append(GetOverallMetricsAsString(agg.Select(x => x.Sum).ToArray(), agg.Select(x => x.SumSq).ToArray(), numFolds, false, true, agg.Select(x => x.Name).ToList()));
Evaluators\Metrics\ConfusionMatrix.cs (1)
91counts.Add(confusionTableCounts[i].ToList().AsReadOnly());
Transforms\ExtensionsCatalog.cs (1)
49infos.Select(info => new InputOutputColumnPair(info.outputColumnName, info.inputColumnName)).ToList().AsReadOnly();
Microsoft.ML.Ensemble (3)
Selector\SubModelSelector\BaseBestPerformanceSelector.cs (1)
42return sortedModels.Where(m => m != null).Take(modelCountToBeSelected).ToList();
Trainer\EnsembleTrainerBase.cs (2)
175var modelsList = batchModels.Where(m => m != null).ToList(); 179modelsList = SubModelSelector.Prune(modelsList).ToList();
Microsoft.ML.FastTree (10)
Dataset\FeatureFlock.cs (3)
340List<int> features = learner.GetActiveFeatures(featureMin, featureLim).ToList(); 520List<int> features = learner.GetActiveFeatures(featureMin, featureLim).ToList(); 716List<int> features = learner.GetActiveFeatures(featureMin, featureLim).ToList();
FastTree.cs (2)
3148var gainMap = new FeatureToGainMap(TrainedEnsemble.Trees.ToList(), normalize: true); 3237FeatureToGainMap gainMap = new FeatureToGainMap(TrainedEnsemble.Trees.ToList(), normalize: true);
Training\StepSearch.cs (1)
87Loss = _lossCalculator.ComputeTests(Scores.Scores).ToList()[_lossIndex];
TreeEnsemble.cs (2)
35TreeWeights = treeWeights.ToList(); 36Trees = trees.ToList();
TreeEnsemble\InternalTreeEnsemble.cs (2)
321FeatureToGainMap gainMap = new FeatureToGainMap(_trees.Take(prefix).ToList(), normalize); 408combinedKeys = Keys.Union(currentGains.Keys).Distinct().ToList();
Microsoft.ML.GenAI.Core (6)
Extension\ModuleExtension.cs (3)
217.ToList(); 224var topK = layerSizeMap.Take(count).ToList(); 225layerSizeMap = layerSizeMap.Skip(count).ToList();
Pipeline\CausalLMPipeline.cs (1)
268stopTokenIds = stopTokenIds.Where(ids => ids.Count() > 0).ToList();
Trainer\CausalLMDataset.cs (2)
39var inputPrompt = chatTemplateBuilder.BuildPrompt(input.ToList()); 40var outputPrompt = chatTemplateBuilder.BuildPrompt(input.Concat([output]).ToList(), appendAssistantTag: false);
Microsoft.ML.GenAI.LLaMA (1)
LlamaChatCompletionService.cs (1)
38return replies.Select(reply => new ChatMessageContent(AuthorRole.Assistant, reply.Text)).ToList();
Microsoft.ML.GenAI.Mistral (2)
Mistral_7B_0_3ChatTemplateBuilder.cs (2)
40var firstSequence = messages.Take(messages.ToList().FindLastIndex(m => m.GetRole() == Role.User)); 41var secondSequence = messages.Skip(messages.ToList().FindLastIndex(m => m.GetRole() == Role.User));
Microsoft.ML.GenAI.Phi (1)
Phi3\Phi3CausalLMChatCompletionService.cs (1)
40return replies.Select(reply => new ChatMessageContent(AuthorRole.Assistant, reply.Text)).ToList();
Microsoft.ML.IntegrationTests (1)
IntrospectiveTraining.cs (1)
402var modelComponents = model.ToList();
Microsoft.ML.OnnxTransformer (12)
OnnxTransform.cs (4)
528_inputTensorShapes[i] = inputShape.ToList(); 712var listActiveOutputColumns = activeOutputColNames.ToList(); 731var listActiveOutputColumns = activeOutputColNames.ToList(); 755var listActiveOutputColumns = activeOutputColNames.ToList();
OnnxTypeParser.cs (1)
276return o.Select(v => (TDst)caster(v)).ToList();
OnnxUtils.cs (7)
62InputNames = inputsInfo.Select(val => val.Name).ToList(); 64OutputNames = outputsInfo.Select(val => val.Name).ToList(); 66InitializerNames = initializersInfo.Select(val => val.Name).ToList(); 317if (!CheckOnnxShapeCompatibility(shapeDictionary[name].ToList(), meta.Dimensions.ToList())) 332info = new OnnxVariableInfo(name, shapeDictionary[name].ToList(), meta.ElementType, dataViewType, caster); 341info = new OnnxVariableInfo(name, meta.Dimensions.ToList(), meta.ElementType, dataViewType, caster);
Microsoft.ML.OnnxTransformerTest (6)
OnnxTransformTests.cs (6)
651var transformedDataPoints = ML.Data.CreateEnumerable<ImageDataPoint>(onnx, false).ToList(); 719var transformedDataPoints = ML.Data.CreateEnumerable<ZipMapInt64Output>(transformedDataView, false).ToList(); 772var transformedDataPoints = ML.Data.CreateEnumerable<ZipMapStringOutput>(transformedDataView, false).ToList(); 864var transformedDataPoints = ML.Data.CreateEnumerable<OnnxMapOutput>(transformedDataView, false).ToList(); 930var transformedDataPoints = ML.Data.CreateEnumerable<PredictionWithCustomShape>(transformedDataView, false).ToList(); 1094var transformedDataPoints = ML.Data.CreateEnumerable<PredictionWithCustomShape>(transformedDataView, false).ToList();
Microsoft.ML.Parquet (1)
PartitionedFileLoader.cs (1)
730results = _parent._pathParser.ParseValues(path).ToList();
Microsoft.ML.Samples (81)
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSample.cs (1)
48reuseRowObject: false).ToList();
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSampleWithOptions.cs (1)
56reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (1)
44reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (1)
55reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (1)
52reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\FastForest.cs (1)
47reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (1)
59reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\FastTree.cs (1)
47reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (1)
59reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (1)
44reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (1)
53reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\LdSvm.cs (1)
44reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (1)
53reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\LightGbm.cs (1)
47reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (1)
58reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (1)
44reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (1)
53reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (1)
44reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (1)
52reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (1)
64reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (1)
52reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (1)
66reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (1)
44reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (1)
56reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (1)
44reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (1)
53reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (1)
47reuseRowObject: false).ToList();
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (1)
56reuseRowObject: false).ToList();
Dynamic\Trainers\Clustering\KMeans.cs (1)
43transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
51transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
49reuseRowObject: false).ToList();
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
57reuseRowObject: false).ToList();
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
52reuseRowObject: false).ToList();
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
62reuseRowObject: false).ToList();
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
55reuseRowObject: false).ToList();
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
50reuseRowObject: false).ToList();
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
50reuseRowObject: false).ToList();
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
57reuseRowObject: false).ToList();
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
66reuseRowObject: false).ToList();
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
57reuseRowObject: false).ToList();
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
66reuseRowObject: false).ToList();
Dynamic\Trainers\Ranking\FastTree.cs (1)
49topTransformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (1)
63topTransformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Ranking\LightGbm.cs (1)
49topTransformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (1)
64topTransformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Recommendation\MatrixFactorization.cs (1)
48reuseRowObject: false).Take(5).ToList();
Dynamic\Trainers\Recommendation\MatrixFactorizationWithOptions.cs (1)
72reuseRowObject: false).Take(5).ToList();
Dynamic\Trainers\Recommendation\OneClassMatrixFactorizationWithOptions.cs (1)
78false).ToList();
Dynamic\Trainers\Regression\FastForest.cs (1)
47transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
60transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\FastTree.cs (1)
47transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
47transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
62transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
63transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\Gam.cs (1)
47transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
58transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
45transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
59transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\LightGbm.cs (1)
48transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
67transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
44transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
59transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
44transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
56transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\Sdca.cs (1)
44transformedTestData, reuseRowObject: false).ToList();
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
60transformedTestData, reuseRowObject: false).ToList();
Dynamic\Transforms\ApplyONNXModelWithInMemoryImages.cs (1)
59ImageDataPoint>(onnx, false).ToList();
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 83TransformedDataPoint>(transformed, false).ToList();
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 84TransformedDataPoint>(transformed, false).ToList();
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 85TransformedDataPoint>(transformed, false).ToList();
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 81TransformedDataPoint>(transformed, false).ToList();
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 84TransformedDataPoint>(transformed, false).ToList();
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 84TransformedDataPoint>(transformed, false).ToList();
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(dataPointCount).ToList(); 74TransformedDataPoint>(transformed, false).ToList();
Microsoft.ML.SamplesUtils (1)
SamplesDatasetUtils.cs (1)
296var intermediate = GenerateFloatLabelFloatFeatureVectorSamples(exampleCount, naRate).ToList();
Microsoft.ML.Sweeper (3)
Algorithms\Grid.cs (2)
70var prevParamSets = previousRuns?.Select(r => r.ParameterSet).ToList() ?? new List<ParameterSet>(); 161? previousRuns.Select(r => r.ParameterSet).ToList()
ISweeper.cs (1)
120var parameterNames = _parameterValues.Keys.ToList();
Microsoft.ML.Tests (33)
AnomalyDetectionTests.cs (2)
160var results = mlContext.Data.CreateEnumerable<Result>(transformed, reuseRowObject: false).ToList(); 206var results = mlContext.Data.CreateEnumerable<Result>(transformed, reuseRowObject: false).ToList();
OnnxConversionTest.cs (2)
1526var mlNetSlotNames = mlNetSlots.DenseValues().ToList(); 1527var onnxSlotNames = onnxSlots.DenseValues().ToList();
Scenarios\Api\TestApi.cs (5)
358return view.GetColumn<ReadOnlyMemory<char>>(view.Schema["Workclass"]).Select(x => x.ToString()).ToList(); 381var uniqueTrain = stratTrainWorkclass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList(); 383var uniqueTest = stratTestWorkClass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList(); 393var uniqueSeedTrain = stratTrainWithSeedWorkclass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList(); 395var uniqueSeedTest = stratTestWithSeedWorkClass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList();
TrainerEstimators\MatrixFactorizationTests.cs (5)
491var testResults = mlContext.Data.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList(); 563var testResults = mlContext.Data.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList(); 633var testResults = mlContext.Data.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList(); 681var results = mlContext.Data.CreateEnumerable<OneClassMatrixElement>(prediction, false).ToList(); 815var predictions = mlContext.Data.CreateEnumerable<MatrixElementZeroBasedForScore256By256>(transformedTestData, false).ToList();
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (15)
21var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(1000).ToList(); 128var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 180var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 234var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 302var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 353var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 392var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 431var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorSamples(dataPointCount).ToList(); 469var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorSamples(dataPointCount).ToList(); 507var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorSamples(dataPointCount).ToList(); 545var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorUlongGroupIdSamples(dataPointCount).ToList(); 583var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorSamples(dataPointCount).ToList(); 638var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorSamples(dataPointCount).ToList(); 712var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 770var data = SamplesUtils.DatasetUtils.GenerateRandomMulticlassClassificationExamples(dataPointCount).ToList();
TrainerEstimators\TreeEstimators.cs (1)
476mlnetPredictions = mlContext.Data.CreateEnumerable<GbmExample>(predicted, false).ToList();
Transformers\GroupUngroup.cs (2)
52var grouped = ML.Data.CreateEnumerable<UngroupExample>(groupTransform, false).ToList(); 89var ungrouped = ML.Data.CreateEnumerable<GroupExample>(ungroupTransform, false).ToList();
Transformers\ValueMappingTests.cs (1)
784var features = ML.Data.CreateEnumerable<TransformedData>(transformedData, reuseRowObject: false).ToList();
Microsoft.ML.TimeSeries (3)
RootCauseAnalyzer.cs (2)
205anomalyPoints = anomalyPoints.OrderBy(x => x.Delta).ToList(); 480List<KeyValuePair<BestDimension, double>> valueMapAsList = valueMap.ToList();
SrCnnAnomalyDetectionBase.cs (1)
273List<Single> cumSumList = data.Select(x => cumsum += x).ToList();
Microsoft.ML.TimeSeries.Tests (6)
TimeSeriesDirectApi.cs (6)
598data = ml.Data.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList(); 686data = ml.Data.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList(); 733data = ml.Data.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList(); 788data = ml.Data.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList(); 847data = ml.Data.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList(); 905data = ml.Data.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList();
Microsoft.ML.Tokenizers (1)
Utils\TokenizerExtensions.cs (1)
18var keys = source.ToList(); // avoid enumerate twice
Microsoft.ML.Tokenizers.Tests (1)
TokenizerTests.cs (1)
180suffixIds = suffixIds.Skip(1).ToList(); // Skip the start of sentence token <s>
Microsoft.ML.TorchSharp (15)
AutoFormerV2\ObjectDetectionMetrics.cs (2)
68objectLabelList.Where(objLabel => objLabel.Confidence >= scoreThreshold).ToList()); 92var labels = labelSet.ToList();
AutoFormerV2\ObjectDetectionTrainer.cs (1)
252label.DenseValues().ToList().ForEach(x => uniqueLabels.Add(x));
NasBert\Models\NasBertEncoder.cs (2)
80DiscreteArches = arches.ToList(); 123var hiddenSizePerBlockExtend = HiddenSizePerBlock.Append(HiddenSizePerBlock[^1]).ToList();
NasBert\Models\NasBertModel.cs (1)
32arches: Options.Arches?.ToList(),
NasBert\Modules\EmbedTransfer.cs (1)
43var index = SearchSpace.HiddenSizeChoices.ToList().IndexOf(hiddenSize);
NasBert\NasBertTrainer.cs (3)
250t = torch.tensor((new[] { 0 /* InitToken */ }).Concat(Tokenizer.EncodeToConverted(sentence1.ToString())).ToList(), device: Device); 259.Concat(new[] { 2 /* SeparatorToken */ }).Concat(Tokenizer.EncodeToConverted(sentence2.ToString())).ToList(), device: Device); 596.Concat(SeperatorTokenArray).Concat(tokenizer.EncodeToConverted(sentence2.ToString())).ToList();
NasBert\NerTrainer.cs (2)
129var tl = target.DenseValues().Select(item => (long)item).ToList(); 190t = torch.tensor((ZeroArray).Concat(Tokenizer.RobertaModel().ConvertIdsToOccurrenceRanks(encoding.Select(t => t.Id).ToArray())).ToList(), device: Device);
Roberta\QATrainer.cs (2)
422var srcTensor = torch.tensor((new[] { 0 /* InitToken */ }).Concat(questionTokenId).Concat(new[] { 2 /* SeparatorToken */ }).Concat(contextTokenId).ToList(), device: Device); 861var srcTensor = torch.tensor((new[] { 0 /* InitToken */ }).Concat(questionTokenId).Concat(new[] { 2 /* SeparatorToken */ }).Concat(contextTokenId).ToList(), device: _parent.Device);
Utils\MetricUtils.cs (1)
48topK = topK.OrderByDescending(tuple => tuple.score).Take(k).ToList();
Microsoft.ML.TorchSharp.Tests (1)
TextClassificationTests.cs (1)
160var a = predictedLabel.ToList();
Microsoft.ML.Transforms (3)
PermutationFeatureImportance.cs (1)
63var workingFeatureIndices = Enumerable.Range(0, numSlots).ToList();
PermutationFeatureImportanceExtensions.cs (1)
706var featureColumnNames = nameBuffer.DenseValues().ToList();
Text\NgramTransform.cs (1)
626indexes = indexes.Concat(ngramIndexes[i]).ToList();
Microsoft.Net.Http.Headers.Tests (92)
CookieHeaderValueTest.cs (29)
95dataset.Add(new[] { header1 }.ToList(), new[] { string1 }); 96dataset.Add(new[] { header1, header1 }.ToList(), new[] { string1, string1 }); 97dataset.Add(new[] { header1, header1 }.ToList(), new[] { string1, null, "", " ", ";", " , ", string1 }); 98dataset.Add(new[] { header2 }.ToList(), new[] { string2 }); 99dataset.Add(new[] { header1, header2 }.ToList(), new[] { string1, string2 }); 100dataset.Add(new[] { header1, header2 }.ToList(), new[] { string1 + ", " + string2 }); 101dataset.Add(new[] { header2, header1 }.ToList(), new[] { string2 + "; " + string1 }); 102dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string1, string2, string3, string4 }); 103dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string.Join(",", string1, string2, string3, string4) }); 104dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string.Join(";", string1, string2, string3, string4) }); 127dataset.Add(new[] { header1 }.ToList(), new[] { validString1, invalidString1 }); 128dataset.Add(new[] { header1 }.ToList(), new[] { validString1, null, "", " ", ";", " , ", invalidString1 }); 129dataset.Add(new[] { header1 }.ToList(), new[] { invalidString1, null, "", " ", ";", " , ", validString1 }); 130dataset.Add(new[] { header1 }.ToList(), new[] { validString1 + ", " + invalidString1 }); 131dataset.Add(new[] { header2 }.ToList(), new[] { invalidString1 + ", " + validString2 }); 132dataset.Add(new[] { header1 }.ToList(), new[] { invalidString1 + "; " + validString1 }); 133dataset.Add(new[] { header2 }.ToList(), new[] { validString2 + "; " + invalidString1 }); 134dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { invalidString1, validString1, validString2, validString3 }); 135dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { validString1, invalidString1, validString2, validString3 }); 136dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { validString1, validString2, invalidString1, validString3 }); 137dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { validString1, validString2, validString3, invalidString1 }); 138dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { string.Join(",", invalidString1, validString1, validString2, validString3) }); 139dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { string.Join(",", validString1, invalidString1, validString2, validString3) }); 140dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { string.Join(",", validString1, validString2, invalidString1, validString3) }); 141dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { string.Join(",", validString1, validString2, validString3, invalidString1) }); 142dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { string.Join(";", invalidString1, validString1, validString2, validString3) }); 143dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { string.Join(";", validString1, invalidString1, validString2, validString3) }); 144dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { string.Join(";", validString1, validString2, invalidString1, validString3) }); 145dataset.Add(new[] { header1, header2, header3 }.ToList(), new[] { string.Join(";", validString1, validString2, validString3, invalidString1) });
EntityTagHeaderValueTest.cs (6)
295}.ToList(); 328}.ToList(); 360}.ToList(); 392}.ToList(); 422}.ToList(); 470}.ToList();
MediaTypeHeaderValueComparerTests.cs (3)
63var unsortedValues = MediaTypeHeaderValue.ParseList(unsorted.ToList()); 64var expectedSortedValues = MediaTypeHeaderValue.ParseList(expectedSorted.ToList()); 66var actualSorted = unsortedValues.OrderByDescending(m => m, MediaTypeHeaderValueComparer.QualityComparer).ToList();
MediaTypeHeaderValueTest.cs (6)
553}.ToList(); 571}.ToList(); 589}.ToList(); 607}.ToList(); 630}.ToList(); 665}.ToList();
NameValueHeaderValueTest.cs (6)
357}.ToList(); 390}.ToList(); 423}.ToList(); 456}.ToList(); 492}.ToList(); 546}.ToList();
SetCookieHeaderValueTest.cs (33)
194dataset.Add(new[] { header1 }.ToList(), new[] { string1 }); 195dataset.Add(new[] { header1, header1 }.ToList(), new[] { string1, string1 }); 196dataset.Add(new[] { header1, header1 }.ToList(), new[] { string1, null, "", " ", ",", " , ", string1 }); 197dataset.Add(new[] { header2 }.ToList(), new[] { string2 }); 198dataset.Add(new[] { header1, header2 }.ToList(), new[] { string1, string2 }); 199dataset.Add(new[] { header1, header2 }.ToList(), new[] { string1 + ", " + string2 }); 200dataset.Add(new[] { header2, header1 }.ToList(), new[] { string2 + ", " + string1 }); 201dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string1, string2, string3, string4 }); 202dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string.Join(",", string1, string2, string3, string4) }); 203dataset.Add(new[] { header5 }.ToList(), new[] { string5a }); 204dataset.Add(new[] { header5 }.ToList(), new[] { string5b }); 205dataset.Add(new[] { header6 }.ToList(), new[] { string6 }); 206dataset.Add(new[] { header7 }.ToList(), new[] { string7 }); 207dataset.Add(new[] { header8 }.ToList(), new[] { string8a }); 208dataset.Add(new[] { header8 }.ToList(), new[] { string8b }); 209dataset.Add(new[] { header9 }.ToList(), new[] { string9 }); 221dataset.Add(new[] { pair_cookie1, pair_cookie2 }.ToList(), new[] { string.Join(", ", pair_string1, pair_string2) }); 276dataset.Add(new[] { invalidHeader2a, invalidHeader2b }.ToList(), new[] { invalidString2 }); 277dataset.Add(new[] { invalidHeader3 }.ToList(), new[] { invalidString3 }); 278dataset.Add(new[] { header1 }.ToList(), new[] { string1, invalidString1 }); 279dataset.Add(new[] { header1 }.ToList(), new[] { invalidString1, null, "", " ", ",", " , ", string1 }); 280dataset.Add(new[] { header1 }.ToList(), new[] { string1 + ", " + invalidString1 }); 281dataset.Add(new[] { header1 }.ToList(), new[] { invalidString1 + ", " + string1 }); 282dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { invalidString1, string1, string2, string3, string4 }); 283dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string1, invalidString1, string2, string3, string4 }); 284dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string1, string2, invalidString1, string3, string4 }); 285dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string1, string2, string3, invalidString1, string4 }); 286dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string1, string2, string3, string4, invalidString1 }); 287dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string.Join(",", invalidString1, string1, string2, string3, string4) }); 288dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string.Join(",", string1, invalidString1, string2, string3, string4) }); 289dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string.Join(",", string1, string2, invalidString1, string3, string4) }); 290dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string.Join(",", string1, string2, string3, invalidString1, string4) }); 291dataset.Add(new[] { header1, header2, header3, header4 }.ToList(), new[] { string.Join(",", string1, string2, string3, string4, invalidString1) });
StringWithQualityHeaderValueComparerTest.cs (3)
52var unsortedValues = StringWithQualityHeaderValue.ParseList(unsorted.ToList()); 53var expectedSortedValues = StringWithQualityHeaderValue.ParseList(expectedSorted.ToList()); 55var actualSorted = unsortedValues.OrderByDescending(k => k, StringWithQualityHeaderValueComparer.QualityComparer).ToList();
StringWithQualityHeaderValueTest.cs (6)
233}.ToList(); 270}.ToList(); 307}.ToList(); 344}.ToList(); 382}.ToList(); 440}.ToList();
Microsoft.VisualStudio.LanguageServices (10)
EditorConfigSettings\Common\EnumSettingViewModel.cs (1)
58return _mapping.Values.ToList().IndexOf(value);
PickMembers\PickMembersDialogViewModel.cs (3)
37_allMembers = members.Select(m => new MemberSymbolViewModel(m, glyphService)).ToList(); 39Options = options.Select(o => new OptionViewModel(o)).ToList(); 56: _allMembers.Where(m => m.SymbolAutomationText.IndexOf(searchText, StringComparison.OrdinalIgnoreCase) >= 0).ToList();
Progression\GraphNodeIdCreation.cs (1)
335var returnTypePartial = nodes.ToList();
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
322var projectChanges = newSolution.GetChanges(currentSolution).GetProjectChanges().ToList(); 326.Where(CanApplyChange).ToList();
Utilities\VsCodeWindowViewTracker.cs (1)
133foreach (var view in _trackedTextViews.Keys.ToList())
Venus\ContainedDocument.cs (2)
245var newChanges = FilterTextChanges(originalText, editorVisibleSpansInOriginal, changes).ToList(); 312var subChanges = GetSubTextChanges(originalText, change, visibleSpan).ToList();
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (2)
1294var leadingTriviaList = memberDeclaration.GetLeadingTrivia().ToList(); 1427var leadingTriviaList = memberDeclaration.GetLeadingTrivia().ToList();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
CodeModel\FileCodeClassTests.cs (1)
309var z = l.ToList<CodeProperty>();
Interactive\Commands\ResetInteractiveTests.cs (1)
58var expectedReferences = replReferenceCommands.ToList();
MSBuild (1)
BuildEnvironmentHelper.cs (1)
300.ToList();
MSBuildTaskHost (1)
BuildEnvironmentHelper.cs (1)
300.ToList();
Mvc.RoutingWebSite (1)
RemoveControllerActionDescriptorProvider.cs (1)
26foreach (var item in context.Results.ToList())
OpenIdConnectSample (1)
Startup.cs (1)
367var oldClaims = identity.Claims.ToList();
PrepareTests (1)
TestDiscovery.cs (1)
148return assemblies.ToList();
Replay (2)
Replay.cs (1)
208args.ToList(),
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
68Arguments = new ReadOnlyCollection<Argument>(arguments.ToList());
Roslyn.Test.PdbUtilities (1)
Reader\PdbValidation.cs (1)
659var expectedTags = pdbXml.DescendantsAndSelf("closure").Select((c, i) => new { Tag = $"<C:{i}>", StartIndex = methodStart + int.Parse(c.Attribute("offset").Value) }).ToList();
RunTests (2)
AssemblyScheduler.cs (2)
175var allTests = assemblyTypes.Values.SelectMany(v => v).SelectMany(v => v.Tests).Select(t => t.FullyQualifiedName).ToList(); 204types.SelectMany(t => t.Tests).ToList().ForEach(test => AddFilter(assembly, test));
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
131List<JsonDerivedType> derivedTypes = polyOptions.DerivedTypes.ToList();
SignalR.Client.FunctionalTestApp (1)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
22 return GetAllElementsCore().ToList().AsReadOnly();
Stress.TelemetryService (1)
GaugeMetrics.cs (1)
23var processes = Process.GetProcesses().ToList();
Swaggatherer (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (1)
73List<T> list = sequence.ToList();
System.ComponentModel.Composition (3)
Microsoft\Internal\Collections\CollectionServices.cs (1)
224return enumerable.ToList();
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (1)
325parts = _parts.ToList(); // this copies the list
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
482ToList();
System.ComponentModel.TypeConverter (1)
System\Drawing\ColorConverter.cs (1)
21return new StandardValuesCollection(set.OrderBy(c => c, new ColorComparer()).ToList());
System.Composition.Hosting (1)
System\Composition\Hosting\Core\ExportDescriptorPromise.cs (1)
46_dependencies = new Lazy<ReadOnlyCollection<CompositionDependency>>(() => new ReadOnlyCollection<CompositionDependency>(dependencies().ToList()), false);
System.Composition.TypedParts (1)
System\Composition\Hosting\ContainerConfiguration.cs (1)
33var providers = _addedSources.ToList();
System.Data.Common (1)
System\Data\Common\DbProviderFactories.cs (1)
107return _registeredFactories.Keys.ToList();
System.Drawing.Common.Tests (2)
System\Drawing\Drawing2D\PathGradientBrushTests.cs (2)
178brush.SurroundColors.ToList().AddRange(colors); 549brush.InterpolationColors.Colors.ToList().AddRange(colors);
System.Linq (5)
System\Linq\DefaultIfEmpty.SpeedOpt.cs (1)
21List<TSource> list = _source.ToList();
System\Linq\Grouping.SpeedOpt.cs (2)
40Lookup<TKey, TElement>.Create(_source, _keySelector, _elementSelector, _comparer).ToList(); 52Lookup<TKey, TSource>.Create(_source, _keySelector, _comparer).ToList();
System\Linq\OrderedEnumerable.SpeedOpt.cs (1)
376List<TElement> list = _source.ToList();
System\Linq\Reverse.SpeedOpt.cs (1)
21List<TSource> list = _source.ToList();
System.Threading.Tasks.Dataflow (7)
Blocks\BatchBlock.cs (1)
1180public IEnumerable<T> InputQueue { get { return _target._messages.ToList(); } }
Blocks\BroadcastBlock.cs (1)
1220public IEnumerable<TOutput> InputQueue { get { return _source._messages.ToList(); } }
Blocks\TransformManyBlock.cs (2)
396itemCopy = itemAsTrustedList.ToList(); 406itemCopy = item.ToList(); // itemCopy will remain null in the case of exception
Internal\SourceCore.cs (1)
1009internal IEnumerable<TOutput> OutputQueue { get { return _source._messages.ToList(); } }
Internal\SpscTargetCore.cs (1)
391internal IEnumerable<TInput> InputQueue { get { return _target._messages.ToList(); } }
Internal\TargetCore.cs (1)
856internal IEnumerable<TInput> InputQueue { get { return _target._messages.Select(static kvp => kvp.Key).ToList(); } }
System.Windows.Forms.Design (8)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
810List<ListItem> toBeDeleted = _listBox.SelectedItems.Cast<ListItem>().ToList();
System\ComponentModel\Design\DesignerHost.cs (1)
1122List<object> errorList = errorCollection is null ? [] : errorCollection.Cast<object>().ToList();
System\ComponentModel\Design\ExceptionCollection.cs (1)
25_exceptions = exceptions?.Cast<Exception>().ToList();
System\Windows\Forms\Design\Behavior\SelectionManager.cs (2)
260List<IComponent> dragComps = e.DragComponents.Cast<IComponent>().ToList(); 415List<IComponent> selComps = _selectionService.GetSelectedComponents().Cast<IComponent>().ToList();
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
169_styles = ((TableLayoutStyleCollection)_changedProp.GetValue(_table)).Cast<TableLayoutStyle>().ToList();
System\Windows\Forms\Design\CommandSet.cs (1)
807List<IComponent> selComps = SelectionService.GetSelectedComponents().Cast<IComponent>().ToList();
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
760_dragControls = data.GetSortedDragControls(out int primaryIndex).OfType<Control>().ToList();
System.Windows.Forms.Design.Tests (8)
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (3)
113var items = _actionList.GetSortedActionItems().Cast<DesignerActionPropertyItem>().ToList(); 128var items = _actionList.GetSortedActionItems().Cast<DesignerActionPropertyItem>().ToList(); 147var items = _actionList.GetSortedActionItems().Cast<DesignerActionPropertyItem>().ToList();
System\Windows\Forms\Design\ToolStripActionListTests.cs (3)
166List<DesignerActionItem> itemList = items.Cast<DesignerActionItem>().ToList(); 167List<DesignerActionMethodItem> methodItems = itemList.OfType<DesignerActionMethodItem>().ToList(); 168List<DesignerActionPropertyItem> propertyItems = itemList.OfType<DesignerActionPropertyItem>().ToList();
System\Windows\Forms\Design\ToolStripContentPanelDesignerTests.cs (2)
31IList<SnapLine> snapLines = _toolStripContentPanelDesigner.SnapLines.Cast<SnapLine>().ToList(); 41List<SnapLine> snapLines = _toolStripContentPanelDesigner.SnapLines.Cast<SnapLine>().ToList();
System.Windows.Forms.Tests (2)
System\Windows\Forms\AxWebBrowserTests.cs (2)
43.ToList(); 49.ToList();
Templates.Blazor.Tests (6)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
125matchingCertificates = matchingCertificates.ToList(); 846var list = certificates.ToList();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
Templates.Blazor.WebAssembly.Auth.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
125matchingCertificates = matchingCertificates.ToList(); 846var list = certificates.ToList();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\E2ETesting\WaitAssert.cs (1)
123var errors = driver.GetBrowserLogs(LogLevel.All).Select(c => c.ToString()).ToList();
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
23var logs = log.Where(entry => entry.Level >= level && !ShouldIgnore(entry)).ToList();
Templates.Blazor.WebAssembly.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
125matchingCertificates = matchingCertificates.ToList(); 846var list = certificates.ToList();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\E2ETesting\WaitAssert.cs (1)
123var errors = driver.GetBrowserLogs(LogLevel.All).Select(c => c.ToString()).ToList();
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
23var logs = log.Where(entry => entry.Level >= level && !ShouldIgnore(entry)).ToList();
Templates.Mvc.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
125matchingCertificates = matchingCertificates.ToList(); 846var list = certificates.ToList();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\E2ETesting\WaitAssert.cs (1)
123var errors = driver.GetBrowserLogs(LogLevel.All).Select(c => c.ToString()).ToList();
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
23var logs = log.Where(entry => entry.Level >= level && !ShouldIgnore(entry)).ToList();
Templates.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
125matchingCertificates = matchingCertificates.ToList(); 846var list = certificates.ToList();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\E2ETesting\WaitAssert.cs (1)
123var errors = driver.GetBrowserLogs(LogLevel.All).Select(c => c.ToString()).ToList();
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
23var logs = log.Where(entry => entry.Level >= level && !ShouldIgnore(entry)).ToList();
vbc (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
68Arguments = new ReadOnlyCollection<Argument>(arguments.ToList());
VBCSCompiler (1)
src\Compilers\Core\CommandLine\BuildProtocol.cs (1)
68Arguments = new ReadOnlyCollection<Argument>(arguments.ToList());
Wasm.Performance.ConsoleHost (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
Wasm.Performance.TestApp (1)
Person.cs (1)
30.ToList()
xunit.assert (5)
Sdk\ArgumentFormatter.cs (1)
350 .ToList();
Sdk\AssertHelper.cs (3)
561 var expectedValues = expected.Cast<object?>().ToList(); 562 var actualValues = actual.Cast<object?>().ToList(); 567 var actualOriginalValues = actualValues.ToList();
Sdk\Exceptions\MultipleException.cs (1)
33 InnerExceptions = innerExceptions.ToList();
xunit.console (10)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (3)
233Runtimes = runtimes?.ToList(), 234Natives = natives?.ToList(), 235Compilations = compilations?.ToList(),
common\AssemblyResolution\XunitPackageCompilationAssemblyResolver.cs (1)
36results = probeDirectories.Split(new char[] { Path.PathSeparator }, StringSplitOptions.RemoveEmptyEntries).ToList();
ConsoleRunner.cs (4)
244var switchableReporters = reporters.Where(r => !string.IsNullOrWhiteSpace(r.RunnerSwitch)).ToList(); 309reporterMessageHandler.OnMessage(new TestExecutionSummary(clockTime.Elapsed, completionMessages.OrderBy(kvp => kvp.Key).ToList())); 377var filteredTestCases = discoverySink.TestCases.Where(filters.Filter).ToList(); 388filteredTestCases = filteredTestCases.Select(controller.Serialize).Select(controller.Deserialize).ToList();
Utility\TransformFactory.cs (2)
57=> instance.availableTransforms.Values.ToList(); 62.ToList();
Xunit.NetCore.Extensions (1)
AssemblyFixtureSupport\XunitTestAssemblyRunnerWithAssemblyFixture.cs (1)
40.ToList();