30 types derived from List
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ClonableStack.cs (1)
12internal sealed class ClonableStack<T> : System.Collections.Generic.List<T>
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
ILCompiler.Compiler (1)
Compiler\Dataflow\ValueNode.cs (1)
13public class ValueNodeList : List<MultiValue>
ILCompiler.DependencyAnalysisFramework (1)
DependencyNodeCore.cs (1)
31public class DependencyList : List<DependencyListEntry>
illink (1)
Microsoft.AspNetCore.Http (1)
FormFileCollection.cs (1)
9public class FormFileCollection : List<IFormFile>, IFormFileCollection
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
88private sealed class EmptyFormFileCollection : List<IFormFile>, IFormFileCollection
Microsoft.AspNetCore.Routing (1)
RouteEndpointDataSource.cs (1)
364private sealed class ThrowOnAddAfterEndpointBuiltConventionCollection : List<Action<EndpointBuilder>>, ICollection<Action<EndpointBuilder>>
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComEventSinksContainer.cs (1)
17internal sealed class ComEventSinksContainer : List<ComEventsSink>, IDisposable
Microsoft.Maui (1)
Layouts\Flex.cs (1)
231 class Item : List<Item>
Microsoft.Maui.Controls (2)
Items\MarshalingObservableCollection.cs (1)
16 public class MarshalingObservableCollection : List<object>, INotifyCollectionChanged
SwipeView\SwipeView.cs (1)
414 class HandlerSwipeItems : List<Maui.ISwipeItem>, ISwipeItems
Microsoft.ML.CodeGenerator (2)
CodeGenerator\CSharp\CSharpProject.cs (1)
12internal class CSharpProject : List<ICSharpFile>, ICSharpProject
CodeGenerator\CSharp\CSharpSolution.cs (1)
15internal class CSharpSolution : List<ICSharpProject>, ICSharpSolution
Microsoft.ML.Data (1)
Data\SchemaDefinition.cs (1)
205public sealed class SchemaDefinition : List<SchemaDefinition.Column>
Microsoft.TestPlatform.CommunicationUtilities (1)
Json\Jsonite\Jsonite.cs (1)
1357class JsonArray : List<object>
NuGet.Packaging (1)
Signing\Utility\X509CertificateChain.cs (1)
10public sealed class X509CertificateChain : List<X509Certificate2>, IX509CertificateChain
PresentationCore (1)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
3651internal class StagingAreaInputItemList : List<StagingAreaInputItem>
PresentationFramework (1)
System\Windows\Controls\PopupControlService.cs (1)
1716private class PointList : List<Point>
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
System.Data.OleDb (1)
System\Data\ProviderBase\DbConnectionPool.cs (1)
31private sealed class TransactedConnectionList : List<DbConnectionInternal>
System.Private.Xml (2)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
2216internal sealed class CollectionMember : List<object?>
System\Xml\XPath\Internal\ClonableStack.cs (1)
6internal sealed class ClonableStack<T> : System.Collections.Generic.List<T>
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.RowList.cs (1)
8private class RowList : List<DataGridViewRow>
System.Xaml (1)
System\Xaml\XamlSchemaContext.cs (1)
1410private class WeakReferenceList<T> : List<WeakReference>, IList<T> where T : class
11571 instantiations of List
aspire (218)
Acquisition\InstallationDiscovery.cs (1)
138var results = new List<InstallationInfo> { self };
Agents\Hooks\TelemetryHookConfigurator.cs (2)
63var configured = new List<AgentClientKind>(); 64var skipped = new List<TelemetryHookSkip>();
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
567var urls = new List<string>();
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
305var connectTasks = new List<Task>();
Backchannel\ResourceSnapshotMapper.cs (2)
94var relationships = new List<ResourceRelationshipJson>(); 188var dependencies = new List<string>();
Caching\DiskCache.cs (1)
188var list = new List<(FileInfo file, long timestamp)>();
Certificates\CertificateGeneration\CertificateManager.cs (3)
139var certificates = new List<X509Certificate2>(); 803var extensions = new List<X509Extension>(); 1074var certificatesToDispose = new List<X509Certificate2>();
Certificates\CertificateGeneration\MacOSCertificateManager.cs (2)
437var certsFromStore = new List<X509Certificate2>(); 483var certsFromDisk = new List<X509Certificate2>();
Certificates\CertificateGeneration\UnixCertificateManager.cs (3)
841var nssDbs = new List<string>(); 861var nssDbs = new List<NssDb>(); 1014var certs = new List<FileInfo>();
Certificates\CertificateHelpers.cs (1)
65var systemCertDirs = new List<string>();
Certificates\NativeCertificateToolRunner.cs (1)
262var dnsNames = new List<string>();
Commands\AddCommand.cs (2)
453var versions = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>(); 668var rootChoices = new List<(string Label, Func<CancellationToken, Task<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>> Action)>();
Commands\AgentInitCommand.cs (5)
277var skillChoices = new List<object>(); 296var preSelectedItems = new List<object>(); 352var installedSkills = new List<InstalledSkillSummaryItem>(); 535var skills = new List<SkillDefinition>(); 773var uniqueValues = new List<string>();
Commands\AgentMcpCommand.cs (1)
168var tools = new List<Tool>();
Commands\AgentTelemetryCommand.cs (1)
132var tags = new List<(string Name, string Value)>();
Commands\AppHostLauncher.cs (2)
381var args = new List<string> 413var childArgs = new List<string>();
Commands\BaseCommand.cs (1)
150var tasksToAwait = new List<Task> { handlerTask, terminationTask, stoppingMessageTcs.Task };
Commands\DashboardRunCommand.cs (2)
105var dashboardArgs = new List<string> { "dashboard" }; 341var labels = new List<string> { dashboardLabel, otlpGrpcLabel, otlpHttpLabel, logsLabel };
Commands\DeployCommand.cs (1)
39var baseArgs = new List<string> { "--operation", "publish", "--step", "deploy" };
Commands\DestroyCommand.cs (1)
41var baseArgs = new List<string> { "--operation", "publish", "--step", "destroy" };
Commands\DoCommand.cs (1)
69var baseArgs = new List<string> { "--operation", operation };
Commands\GroupedHelpWriter.cs (2)
50var ungroupedCommands = new List<Command>(); 283var parts = new List<string>();
Commands\InitCommand.cs (1)
227var commands = new List<string>();
Commands\IntegrationPackageSearchService.cs (2)
28var packages = new List<(NuGetPackage Package, PackageChannel Channel)>(); 59var packages = new List<(NuGetPackage Package, PackageChannel Channel)>();
Commands\LsCommand.cs (2)
147var appHosts = new List<AppHostProjectCandidate>(); 184var appHosts = new List<AppHostProjectCandidate>();
Commands\NewCommand.cs (1)
725var rootChoices = new List<(string Label, Func<CancellationToken, Task<(NuGetPackage, PackageChannel)>> Action)>();
Commands\ParseResultHelper.cs (2)
69var forwardedTokens = new List<string>(parseResult.Tokens.Count); 131var loggableTokens = new List<string>(parseResult.Tokens.Count);
Commands\PipelineCommandBase.cs (3)
508var remaining = new List<string>(unmatchedTokens.Count); 1280var filePaths = new List<string>(); 1331var fileRefs = new List<FileReferenceDto>(filePaths.Count);
Commands\PsCommand.cs (2)
329var appHostInfos = new List<AppHostDisplayInfo>(); 441var columns = new List<string>
Commands\PublishCommand.cs (1)
54var baseArgs = new List<string> { "--operation", "publish", "--step", "publish" };
Commands\ResourceCommand.cs (3)
495var groupedArguments = new List<string>(); 518var groupedArguments = new List<string>(); 863var parts = new List<string>();
Commands\RunCommand.cs (4)
482var discoveredEndpoints = new List<(string Resource, string Endpoint)>(); 488var rows = new List<IRenderable>(); 1038var labels = new List<string> { appHostLabel, logsLabel }; 1211var additionalArgs = new List<string>();
Commands\Sdk\SdkDumpCommand.cs (3)
97var integrations = new List<IntegrationReference>(); 432var flags = new List<string>(); 568var flags = new List<string>();
Commands\Sdk\SdkGenerateCommand.cs (1)
126var integrations = new List<IntegrationReference>();
Commands\SettingsSchemaBuilder.cs (1)
85var properties = new List<PropertyInfo>();
Commands\StartCommand.cs (1)
63var additionalArgs = new List<string>();
Commands\TelemetrySpansCommand.cs (1)
228var allSpans = new List<(string ResourceName, OtlpSpanJson Span)>();
Commands\TelemetryTracesCommand.cs (1)
306var spans = new List<SpanInfo>();
Commands\TerminalPsCommand.cs (2)
160var dtos = new List<TerminalPsJsonEntry>(response.Terminals.Length); 163var replicas = new List<TerminalPsJsonReplica>(terminal.Replicas?.Length ?? 0);
Commands\UpdateCommand.cs (1)
469var pending = new List<(IMigration Migration, MigrationDescriptor Descriptor)>();
Configuration\ConfigurationService.cs (1)
290var objectPath = new List<(JsonObject obj, string key)>();
Documentation\ApiDocs\ApiDocsIndexService.cs (3)
718var results = new List<ApiSearchResult>(); 868var items = new List<ApiReferenceItem>(entries.Count); 983var deduplicated = new List<ApiReferenceItem>(items.Count);
Documentation\ApiDocs\ApiMemberMarkdownParser.cs (2)
35var candidates = new List<ParsedMemberCandidate>(); 73var items = new List<ApiReferenceItem>(candidates.Count);
Documentation\ApiDocs\ApiSitemapParser.cs (1)
60var entries = new List<ApiSitemapEntry>();
Documentation\Docs\DocsIndexService.cs (1)
334var results = new List<SearchCandidate>(Math.Min(topK, _indexedDocuments.Count));
Documentation\Docs\LlmsTxtParser.cs (5)
150var documents = new List<LlmsDocument>(docBoundaries.Count); 238var boundaries = new List<int>(); 462var sections = new List<LlmsSection>(); 502var regions = new List<(int Start, int End)>(); 604var sectionStarts = new List<(int Index, int Level, string Heading)>();
Documentation\DocumentationCacheKey.cs (1)
32var pathSegments = new List<string>(rawSegments.Length);
DotNet\DotNetCliRunner.cs (8)
780var cliArgsList = new List<string> { isSingleFileAppHost ? "build" : "msbuild" }; 1292var cliArgsList = new List<string> 1407var hashes = new List<string>(); 1631var stdoutLines = new List<string>(); 1639var stderrLines = new List<string>(); 1673var stdoutLines = new List<string>(); 1681var stderrLines = new List<string>(); 1705var projects = new List<FileInfo>();
DotNet\ProcessExecutionFactory.cs (1)
185var keysToRemove = new List<string>();
Interaction\BannerService.cs (5)
133var elements = new List<IRenderable>(); 173var elements = new List<IRenderable> 190var elements = new List<IRenderable> 209var elements = new List<IRenderable> 227var rows = new List<IRenderable>();
Interaction\ConsoleInteractionService.cs (1)
784var matched = new List<T>();
Mcp\Tools\ExecuteResourceCommandTool.cs (2)
116var content = new List<TextContentBlock> 145var content = new List<TextContentBlock>
NuGet\BundleNuGetPackageCache.cs (1)
154var args = new List<string>
NuGet\BundleNuGetService.cs (3)
127var restoreArgs = new List<string> 213var manifestArgs = new List<string> 284var redacted = new List<string>(args.Count);
NuGet\NuGetPackageCache.cs (2)
122var collectedPackages = new List<NuGetPackage>(); 193var collectedPackages = new List<NuGetPackage>();
NuGet\NuGetPackagePrefetcher.cs (1)
31var prefetchTasks = new List<Task>(capacity: 2);
Packaging\NuGetConfigMerger.cs (2)
314var patternsToAdd = new List<(string pattern, string newSource)>(); 326var elementsToRemove = new List<XElement>();
Packaging\PackageChannel.cs (5)
169var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 218var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 389var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 497var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 588var tasks = new List<Task<IEnumerable<NuGetPackage>>>();
Packaging\PackageSourceOverrideMappings.cs (1)
52var mappings = new List<PackageMapping>
Packaging\PackagingService.cs (2)
153var prPackageChannels = new List<PackageChannel>(); 176var channels = new List<PackageChannel>([defaultChannel, stableChannel]);
Processes\ProcessTreeGracefulShutdownService.cs (2)
54var processesToForceKill = new List<ProcessTarget> { appHostProcess }; 288var arguments = new List<string>
Processes\WindowsProcessInterop.cs (1)
368var inheritable = new List<nint>(3);
Program.cs (2)
985settings.Enrichment.Enrichers = new() 1285var parentNames = new List<string> { r.CommandResult.Command.Name };
Projects\AppHostCandidateFinder.cs (1)
198var matchedFiles = new List<FileInfo>();
Projects\AppHostServerClosureSnapshots.cs (5)
85var lines = new List<string>(Entries.Count + 1) 111var entries = new List<AppHostServerClosureManifestEntry>(); 150var managedAssemblies = new List<IntegrationPackageManagedAssembly>(); 151var nativeLibraries = new List<IntegrationPackageNativeLibrary>(); 185var values = new List<string>(entries.Count + 1)
Projects\DotNetAppHostProject.cs (1)
1147args = new List<string>();
Projects\DotNetBasedAppHostServerProject.cs (3)
177var otherPackages = new List<(string Name, string Version)>(); 284var atsAssemblies = new List<string> { "Aspire.Hosting" }; 331var channelSources = new List<string>();
Projects\ExtensionGuestLauncher.cs (1)
45var allArgs = new List<string> { command };
Projects\FallbackProjectParser.cs (3)
217var packageReferences = new List<PackageReferenceInfo>(); 250var projectReferences = new List<ProjectReferenceInfo>(); 304var packageReferences = new List<PackageReferenceInfo>();
Projects\GuestAppHostProject.cs (1)
1453var packageUpdates = new List<(string PackageId, string CurrentVersion, string NewVersion)>();
Projects\GuestRuntime.cs (1)
618var result = new List<string>();
Projects\PrebuiltAppHostServer.cs (5)
372var closure = new List<string>(); 468var references = new List<string>(); 835var closureEntries = new List<AppHostServerClosureSource>(sourcePaths.Count); 1015var sources = new List<string>(); 1661var atsAssemblies = new List<string> { "Aspire.Hosting" };
Projects\ProjectLocator.cs (4)
294var appHostProjects = new List<AppHostProjectCandidate>(); 295var unbuildableSuspectedAppHostProjects = new List<AppHostProjectCandidate>(); 296var unsupportedProjects = new List<FileInfo>(); 334var candidatesWithHandlers = new List<(FileInfo File, IAppHostProject Handler)>();
Projects\ProjectUpdater.cs (7)
253var descriptions = new List<string>(); 636var updatedSdks = new List<string>(); 1298var sources = new List<PackageSourceInfo>(); 1344var patterns = new List<string>(); 1368var changes = new List<MappingChange>(); 1442var addedPatterns = mappingChangesBySource.TryGetValue(feed.Key, out var currentMappingChange) ? currentMappingChange.AddedPatterns : new List<string>(); 1529var changes = new List<string>();
Projects\RunningInstanceManager.cs (1)
122var pidsToMonitor = new List<int> { appHostInfo.ProcessId };
Projects\SolutionLocator.cs (3)
62return new List<FileInfo>(); 75return new List<FileInfo>(); 81var solutionFiles = new List<FileInfo>();
Scaffolding\PackageJsonMerger.cs (1)
189var aspireScripts = new List<(string unprefixed, string prefixed)>();
Scaffolding\ScaffoldingService.cs (1)
540var conflicts = new List<string>();
src\Shared\BackchannelConstants.cs (2)
201var results = new List<string>() { currentHash }; 329var results = new List<string>();
src\Shared\ChannelExtensions.cs (1)
88batch ??= new List<T>(maxBatchSize);
src\Shared\CircularBuffer.cs (1)
25public CircularBuffer(int capacity) : this(new List<T>(), capacity, start: 0, end: 0)
src\Shared\ColorGenerator.cs (1)
64_colors = new List<AccentColor>();
src\Shared\CommandLineArgsParser.cs (2)
13var result = new List<string>(); 23var result = new List<string>();
src\Shared\ConsoleLogs\AnsiParser.cs (3)
309List<int> ret = new(2); 457var classes = new List<string>(2); 458var styles = new List<string>(2);
src\Shared\ConsoleLogs\PromptContext.cs (1)
69var uniqueLines = new List<string>();
src\Shared\ConsoleLogs\SharedAIHelpers.cs (3)
285var spans = new List<OtlpSpanDto>(); 385var spanObjects = new List<JsonNode>(); 563var logRecords = new List<OtlpLogEntryDto>();
src\Shared\DurationFormatter.cs (1)
35private static readonly List<UnitStep> s_unitSteps = new List<UnitStep>
src\Shared\IntegrationPackageProbeManifest.cs (4)
182var candidatePaths = new List<string>(); 208var keys = new List<string>(); 381var managedAssemblies = new List<IntegrationPackageManagedAssembly>(); 403var nativeLibraries = new List<IntegrationPackageNativeLibrary>();
src\Shared\Otlp\OtlpHelpers.cs (2)
137var compositeNameMatches = new List<T>(); 138var resourceNameMatches = new List<T>();
src\Shared\PackageUpdateHelpers.cs (1)
131var foundPackages = new List<NuGetPackage>();
src\Shared\SearchTextParser.cs (4)
142var textFragments = new List<string>(); 143var qualifiers = new List<SearchQualifier>(); 144var negatedQualifiers = new List<SearchQualifier>(); 346var allFragments = new List<string>(filter.TextFragments);
src\Shared\X509Certificate2Extensions.cs (1)
158var trustedCertificates = new List<X509Certificate2>();
Telemetry\AspireCliTelemetry.cs (1)
249var tagsList = new List<KeyValuePair<string, object?>>();
Telemetry\InternalMicrosoftDetector.cs (6)
136var stage1 = new List<InternalMicrosoftProbe>(); 145var stage2 = new List<InternalMicrosoftProbe> 153var stage3 = new List<InternalMicrosoftProbe> 582var tokenCandidates = new List<TokenCandidate>(); 872var evidence = new List<TenantAliasEvidence>(); 991var result = new List<TokenCandidate>();
Templating\DotNetTemplateFactory.cs (4)
250var extraArgs = new List<string>(); 261var extraArgs = new List<string>(); 270var extraArgs = new List<string>(); 280var extraArgs = new List<string>();
Templating\TemplateNuGetConfigService.cs (1)
297var results = new List<(NuGetPackage Package, PackageChannel Channel)>();
Utils\AppHostArgumentRedactor.cs (1)
85var redacted = new List<string>(args.Count);
Utils\AppHostHelper.cs (1)
202var remainingSockets = new List<string>(socketPaths.Length);
Utils\ConfigurationHelper.cs (1)
307var colonKeys = new List<(string key, JsonNode? value)>();
Utils\ConsoleActivityLogger.cs (2)
289var summaryParts = new List<string>(); 558var result = new List<StepDurationRecord>(orderedRecords.Count);
Utils\EnvironmentChecker\AspireVersionCheck.cs (1)
35var results = new List<EnvironmentCheckResult>
Utils\EnvironmentChecker\ContainerRuntimeCheck.cs (1)
52var results = new List<EnvironmentCheckResult>();
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
237var arguments = new List<string>
Utils\EnvironmentChecker\DeprecatedAgentConfigCheck.cs (1)
41var results = new List<EnvironmentCheckResult>();
Utils\EnvironmentChecker\DevCertsCheck.cs (5)
98var results = new List<EnvironmentCheckResult>(); 285var unreadableFiles = new List<string>(); 286var mismatchedThumbprints = new List<string>(); 287var missingTrustedThumbprints = new List<string>(); 288var missingHashLinkThumbprints = new List<string>();
Utils\EnvironmentChecker\EnvironmentChecker.cs (1)
44var results = new List<EnvironmentCheckResult>();
Utils\EnvironmentChecker\PendingMigrationsCheck.cs (1)
42var results = new List<EnvironmentCheckResult>();
Utils\EnvironmentChecker\TypeScriptAppHostToolingCheck.cs (1)
85var missingResults = new List<EnvironmentCheckResult>();
Utils\Markdown\MarkdownToSpectreConverter.Renderable.cs (2)
44var renderables = new List<IRenderable>(); 89var renderables = new List<IRenderable>();
aspire-managed (14)
NuGet\Commands\ManifestCommand.cs (2)
130var managedAssemblies = new List<IntegrationPackageManagedAssembly>(); 131var nativeLibraries = new List<IntegrationPackageNativeLibrary>();
NuGet\Commands\NuGetPackageAssetResolver.cs (3)
72var assets = new List<NuGetPackageAsset>(); 150var assets = new List<NuGetPackageAsset>(); 246var runtimeIdentifiers = new List<string>();
NuGet\Commands\RestoreCommand.cs (1)
107var packages = new List<(string Id, string Version)>();
NuGet\Commands\SearchCommand.cs (4)
117var allPackages = new List<PackageInfo>(); 146return new List<PackageInfo>(); 194var packageSources = new List<PackageSource>(); 258var packages = new List<PackageInfo>();
src\Shared\IntegrationPackageProbeManifest.cs (4)
182var candidatePaths = new List<string>(); 208var keys = new List<string>(); 381var managedAssemblies = new List<IntegrationPackageManagedAssembly>(); 403var nativeLibraries = new List<IntegrationPackageNativeLibrary>();
Aspire.Acquisition.Tests (3)
Scripts\Common\RealGitHubPRFixture.cs (1)
186var stdoutLines = new List<string>();
Scripts\PRScriptInstallerModeTests.cs (1)
440var paths = new List<string>();
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
Aspire.Azure.AI.Inference (1)
ChatCompletionsClientSettings.cs (1)
103var deploymentKeys = new List<string>();
Aspire.Azure.Messaging.EventHubs (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Messaging.EventHubs.Tests (3)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (3)
17public List<MockRequest> Requests { get; } = new List<MockRequest>(); 92_headers[header.Name] = values = new List<string>(); 176_headers[header.Name] = values = new List<string>();
Aspire.Azure.Messaging.ServiceBus (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Messaging.WebPubSub (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Security.KeyVault.Tests (3)
MockTransport.cs (3)
17public List<MockRequest> Requests { get; } = new List<MockRequest>(); 92_headers[header.Name] = values = new List<string>(); 176_headers[header.Name] = values = new List<string>();
Aspire.Azure.Storage.Queues (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Cli.EndToEnd.Tests (4)
Helpers\CliE2ETestHelpers.cs (2)
529var arguments = new List<string> 845var shas = new List<string>();
ProjectReferenceTests.cs (1)
78var sourceLines = new List<string> { """<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />""" };
StartStopTests.cs (1)
483var instances = new List<RunningAppHostInfo>();
Aspire.Cli.Tests (223)
Backchannel\ResourceSnapshotMapperTests.cs (7)
90var allSnapshots = new List<ResourceSnapshot> { snapshot }; 401var snapshots = new List<ResourceSnapshot> 416var snapshots = new List<ResourceSnapshot> 431var snapshots = new List<ResourceSnapshot> 446var snapshots = new List<ResourceSnapshot> 462var snapshots = new List<ResourceSnapshot> 475var snapshots = new List<ResourceSnapshot>
BundleNuGetServiceTests.cs (1)
18var packages = new List<(string Id, string Version)>
Commands\AddCommandTests.cs (8)
1312var exactMatchQueries = new List<string>(); 1391var exactMatchQueries = new List<string>(); 1691var statusMessages = new List<string>(); 3408var queries = new List<string>(); 3586var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>(); 3790var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>(); 3849var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>(); 4019var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>();
Commands\AgentInitCommandTests.cs (5)
181var promptedSkillNames = new List<string>(); 335var promptedSkillNames = new List<string>(); 425var promptedSkills = new List<SkillDefinition>(); 844var manifestSkills = new List<SkillBundleSkill>(); 930var subtleMessages = new List<string>();
Commands\AgentMcpCommandTests.cs (1)
487return Task.FromResult(new List<ResourceSnapshot>
Commands\AgentTelemetryCommandTests.cs (1)
260var captured = new List<Activity>();
Commands\DashboardRunCommandTests.cs (6)
472var args = new List<string> { "dashboard", $"--ASPNETCORE_URLS={urlValue}" }; 489var args = new List<string> { "dashboard" }; 503var args = new List<string> { "dashboard" }; 520var args = new List<string> { "dashboard" }; 537var args = new List<string> { "dashboard", "--ASPNETCORE_URLS=http://arghost:5555" }; 550var args = new List<string> { "dashboard", "--ASPNETCORE_URLS=http://localhost:18888" };
Commands\DoCommandTests.cs (1)
40var displayedErrors = new List<string>();
Commands\DocsCommandTests.cs (2)
293var results = new List<DocsSearchResult> 316var results = new List<SearchResult>
Commands\InitCommandTests.cs (2)
490var subtleMessages = new List<string>(); 538var subtleMessages = new List<string>();
Commands\LogsCommandTests.cs (9)
852? new List<ResourceSnapshot> 862: new List<ResourceSnapshot> 1195var requests = new List<GetConsoleLogsRequest>(); 1227var batchRequests = new List<GetConsoleLogsRequest>(); 1228var consoleRequests = new List<GetConsoleLogsRequest>(); 1312var legacyRequests = new List<(string? ResourceName, bool Follow)>(); 1313var consoleRequests = new List<GetConsoleLogsRequest>(); 1362var legacyRequests = new List<(string? ResourceName, bool Follow)>(); 1363var consoleRequests = new List<GetConsoleLogsRequest>();
Commands\LsCommandTests.cs (6)
97FindAppHostProjectsAsyncCallback = (_, _, _) => Task.FromResult(new List<AppHostProjectCandidate> 218FindAppHostProjectsAsyncCallback = (_, _, _) => Task.FromResult(new List<AppHostProjectCandidate> 524FindAppHostProjectsAsyncCallback = (_, _, _) => Task.FromResult(new List<AppHostProjectCandidate> 707return Task.FromResult(new List<AppHostProjectCandidate>()); 736return Task.FromResult(new List<AppHostProjectCandidate>()); 765FindAppHostProjectsAsyncCallback = (_, _, _) => Task.FromResult(new List<AppHostProjectCandidate>
Commands\NewCommandChannelResolutionTests.cs (1)
664var channels = new List<PackageChannel> { implicitChannel, stableChannel };
Commands\NewCommandTemplateConfigPersistenceTests.cs (3)
249var dotNetTemplateInstalls = new List<DotNetTemplateInstall>(); 277var commandArguments = new List<string> 438var channels = new List<PackageChannel> { implicitChannel, stableChannel };
Commands\NewCommandTests.cs (2)
808var operationOrder = new List<string>(); 3008var displayedErrors = new List<string>();
Commands\PsCommandTests.cs (1)
583var outputLines = new List<string>();
Commands\PublishCommandPromptingIntegrationTests.cs (1)
122var options = new List<KeyValuePair<string, string>>
Commands\ResourceCommandTests.cs (3)
405var statuses = new List<string>(); 435var consoleOutputPerStatus = new List<(string Message, ConsoleOutput Console)>(); 492var statuses = new List<string>();
Commands\RunCommandTests.cs (1)
4314var args = new List<string> { commandName, "--apphost", appHostFile.FullName };
Commands\TelemetryCommandTests.cs (1)
373var attrs = new List<OtlpKeyValueJson>
Commands\TelemetryTestHelper.cs (1)
41var attrs = new List<OtlpKeyValueJson>
Commands\TelemetryTracesCommandTests.cs (2)
43var requestedHosts = new List<string>(); 152var requestedHosts = new List<string>();
Commands\UpdateCommandTests.cs (6)
950var subtleMessages = new List<string>(); 1061var subtleMessages = new List<string>(); 1089var subtleMessages = new List<string>(); 2860var channels = new List<PackageChannel> { implicitChannel, stagingChannel, dailyChannel }; 3420var setKeys = new List<(string Key, string Value, bool IsGlobal)>(); 3421var deleteKeys = new List<(string Key, bool IsGlobal)>();
Interaction\ExtensionInteractionServiceTests.cs (2)
115var displayedErrors = new List<string>(); 156var displayedErrors = new List<string>();
Mcp\ListStructuredLogsToolTests.cs (1)
59var attributes = new List<OtlpKeyValueJson>
Mcp\ListTracesToolTests.cs (2)
28var attributes = new List<OtlpKeyValueJson> 330var attributes = new List<OtlpKeyValueJson>
NuGet\BundleNuGetServiceTests.cs (4)
141var packageList = new List<(string Id, string Version)> { ("Aspire.Hosting.JavaScript", "9.4.0") }; 185var packageList = new List<(string Id, string Version)> { ("Aspire.Hosting.JavaScript", "9.4.0") }; 360var packageList = new List<(string Id, string Version)> { ("Aspire.Hosting.JavaScript", "9.4.0") }; 388var packageList = new List<(string Id, string Version)> { ("Aspire.Hosting.JavaScript", "9.4.0") };
Packaging\TemporaryNuGetConfigTests.cs (2)
198var addKeys = new List<string>(); 207var mappingKeys = new List<string>();
Projects\AppHostCandidateFinderTests.cs (2)
218var startedActivities = new List<Activity>(); 274var startedActivities = new List<Activity>();
Projects\AppHostServerProjectTests.cs (9)
51var packages = new List<IntegrationReference> 75var packages = new List<IntegrationReference> 97var packages = new List<IntegrationReference> 118var packages = new List<IntegrationReference> 144var packages = new List<IntegrationReference> 166var packages = new List<IntegrationReference> 317var packages = new List<IntegrationReference> 400var packages = new List<IntegrationReference> 454var packages = new List<IntegrationReference>
Projects\AppHostServerSessionTests.cs (1)
398var unobserved = new List<Exception>();
Projects\PrebuiltAppHostServerTests.cs (24)
123var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 146var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 164var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 184var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 201var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("First", first) }; 214var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 230var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 243var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 244var packageRefs = new List<IntegrationReference> { IntegrationReference.FromPackage("Aspire.Hosting.Redis", "13.5.0") }; 279var packageRefs = new List<IntegrationReference> { IntegrationReference.FromPackage("Aspire.Hosting.Redis", version) }; 287var packageRefs = new List<IntegrationReference> 365var packageRefs = new List<IntegrationReference> 370var projectRefs = new List<IntegrationReference>(); 386var packageRefs = new List<IntegrationReference>(); 387var projectRefs = new List<IntegrationReference> 405var packageRefs = new List<IntegrationReference> 410var projectRefs = new List<IntegrationReference> 425var packageRefs = new List<IntegrationReference> 429var projectRefs = new List<IntegrationReference>(); 547var packageRefs = new List<IntegrationReference> 2846var metadataLines = new List<string>(); 2847var sourcePaths = new List<string>(); 2848var targetPaths = new List<string>(); 2971var sources = new List<string>();
Projects\ProjectLocatorTests.cs (2)
297var appHostProjectFiles = new List<FileInfo>(); 1233var displayedSubtleMessages = new List<string>();
Projects\ProjectUpdaterTests.cs (39)
55var packages = new List<NuGetPackageCli>(); 171var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>(); 180var packages = new List<NuGetPackageCli>(); 334var packages = new List<NuGetPackageCli> 438var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>(); 447var packages = new List<NuGetPackageCli>(); 592var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>(); 602var packages = new List<NuGetPackageCli>(); 721var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>(); 730var packages = new List<NuGetPackageCli>(); 880var updatedFiles = new List<string>(); 890var packages = new List<NuGetPackageCli>(); 1009var packages = new List<NuGetPackageCli>(); 1111var packages = new List<NuGetPackageCli>(); 1237var packages = new List<NuGetPackageCli> 1331var packages = new List<NuGetPackageCli> 1406var packages = new List<NuGetPackageCli> 1501var packages = new List<NuGetPackageCli> 1664var packages = new List<NuGetPackageCli> 1813var packages = new List<NuGetPackageCli>(); 1929var packages = new List<NuGetPackageCli>(); 2050var packages = new List<NuGetPackageCli>(); 2163var packages = new List<NuGetPackageCli>(); 2259var packages = new List<NuGetPackageCli>(); 2368var packages = new List<NuGetPackageCli>(); 2453var packages = new List<NuGetPackageCli>(); 2529var packages = new List<NuGetPackageCli>(); 2613var packages = new List<NuGetPackageCli>(); 2708var packages = new List<NuGetPackageCli> 2800var packages = new List<NuGetPackageCli> 2876var packages = new List<NuGetPackageCli>(); 2956var packages = new List<NuGetPackageCli>(); 3046var packages = new List<NuGetPackageCli>(); 3125var packages = new List<NuGetPackageCli>(); 3193var packagesUpdated = new List<string>(); 3203var packages = new List<NuGetPackageCli>(); 3338var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>(); 3348var packages = new List<NuGetPackageCli>(); 3722var calls = new List<string>();
Telemetry\CliTagEnrichmentProcessorTests.cs (1)
51var expectedTags = new List<KeyValuePair<string, object?>>
Telemetry\InternalMicrosoftDetectorTests.cs (1)
96var calls = new List<string>();
Telemetry\ProfilingTelemetryContextTests.cs (2)
65var startedActivities = new List<Activity>(); 101var startedActivities = new List<Activity>();
Templating\TemplateNuGetConfigServiceTests.cs (1)
221var requestedChannels = new List<PackageChannelType>();
TestServices\CapturingLogger.cs (1)
14public List<(LogLevel Level, string Message)> Entries { get; } = new();
TestServices\FakePeerInstallProbe.cs (1)
18private readonly List<string> _probedPaths = new();
TestServices\RecordingGracefulSignaler.cs (1)
12private readonly List<int> _pids = new();
TestServices\TestAppHostAuxiliaryBackchannel.cs (1)
232var lines = new List<ResourceLogLine>(maxBatchSize);
Utils\CliTestHelper.cs (1)
852public List<string> Logs { get; } = new List<string>();
Utils\ConsoleActivityLoggerTests.cs (6)
71var summary = new List<BackchannelPipelineSummaryItem> 101var summary = new List<BackchannelPipelineSummaryItem> 122var summary = new List<BackchannelPipelineSummaryItem> 147var summary = new List<BackchannelPipelineSummaryItem> 169var summary = new List<BackchannelPipelineSummaryItem> 191var summary = new List<BackchannelPipelineSummaryItem>
Utils\DevCertsCheckFixRecommendationTests.cs (7)
29var certInfos = new List<DevCertInfo> 46var certInfos = new List<DevCertInfo> 61var certInfos = new List<DevCertInfo> 79var certInfos = new List<DevCertInfo> 97var certInfos = new List<DevCertInfo> 116var certInfos = new List<DevCertInfo> 133var certInfos = new List<DevCertInfo>
Utils\DevCertsCheckTests.cs (27)
134var certs = new List<DevCertInfo> 150var certs = new List<DevCertInfo> 166var certs = new List<DevCertInfo> 182var certs = new List<DevCertInfo> 197var certs = new List<DevCertInfo> 212var certs = new List<DevCertInfo> 227var certs = new List<DevCertInfo> 243var certs = new List<DevCertInfo> 261var certs = new List<DevCertInfo> 277var certs = new List<DevCertInfo> 294var certs = new List<DevCertInfo> 328var certs = new List<DevCertInfo> 363var certs = new List<DevCertInfo> 409var certs = new List<DevCertInfo> 453var certs = new List<DevCertInfo> 504var certs = new List<DevCertInfo> 559var certs = new List<DevCertInfo> 609var certs = new List<DevCertInfo> 668var certs = new List<DevCertInfo> 725var certs = new List<DevCertInfo> 766var certs = new List<DevCertInfo> 810var certs = new List<DevCertInfo> 856var certs = new List<DevCertInfo> 902var certs = new List<DevCertInfo> 948var certs = new List<DevCertInfo> 991var certs = new List<DevCertInfo> 1027var certs = new List<DevCertInfo>
Utils\FileSystemHelperTests.cs (14)
261var paths = new List<string> 276var paths = new List<string> 291var paths = new List<string> 306var paths = new List<string> 321var paths = new List<string> { "/home/user/repos/MyApp/AppHost.cs" }; 331var paths = new List<string> { "/home/user/repos/MyApp/MyApp.AppHost.csproj" }; 341var paths = new List<string> 354var paths = new List<string> 369var paths = new List<string> 384var paths = new List<string> 407var paths = new List<string> 424var paths = new List<string> 441var paths = new List<string> 456var paths = new List<string>
Aspire.Components.Common.TestUtilities (3)
ActivityNotifier.cs (1)
20var activityList = new List<Activity>();
ConformanceTests.cs (2)
162List<string> registeredNames = new(); 526List<Activity> exportedActivities = new();
Aspire.Confluent.Kafka.Tests (2)
OtelMetricsTests.cs (1)
33List<Metric> metrics = new();
OtelTracesTests.cs (1)
35List<Activity> activities = new();
Aspire.Dashboard (131)
Api\TelemetryApiService.cs (5)
45var spanFilters = new List<TelemetryFilter>(); 98var traceFilters = new List<TelemetryFilter>(); 186var filters = new List<TelemetryFilter>(); 298var filters = new List<TelemetryFilter>(); 567var keys = new List<ResourceKey>();
Components\Controls\Chart\ChartContainer.razor.cs (1)
218var filters = new List<DimensionFilterViewModel>();
Components\Controls\Chart\ChartDataCalculator.cs (4)
27var yValues = new List<double?>(); 28var xValues = new List<DateTimeOffset>(); 77var xValues = new List<DateTimeOffset>(); 78var exemplars = new List<ChartExemplar>();
Components\Controls\Chart\ChartTrace.cs (3)
10public List<double?> Values { get; } = new(); 11public List<double?> DiffValues { get; } = new(); 12public List<string?> Tooltips { get; } = new();
Components\Controls\Chart\PlotlyChart.razor.cs (6)
68TraceData = new List<object?>() 134var sampledList = new List<ChartExemplar>(MaxExemplarsPerTick); 151Y = new List<double?>(), 152X = new List<DateTimeOffset>(), 153Tooltips = new List<string?>(), 154TraceData = new List<object?>()
Components\Controls\ClearSignalsButton.razor.cs (1)
29private readonly List<MenuButtonItem> _clearMenuItems = new();
Components\Controls\ResourceActions.razor.cs (2)
56private readonly List<CommandViewModel> _highlightedCommands = new(); 71var menuItems = new List<MenuButtonItem>();
Components\Controls\ResourceDetails.razor.cs (3)
74private readonly List<DisplayedResourcePropertyViewModel> _displayedResourcePropertyViewModels = new(); 330var items = new List<ResourceDetailRelationshipViewModel>(); 355var items = new List<ResourceDetailRelationshipViewModel>();
Components\Controls\SpanActions.razor.cs (1)
34var menuItems = new List<MenuButtonItem>();
Components\Controls\StructuredLogActions.razor.cs (1)
30var menuItems = new List<MenuButtonItem>();
Components\Controls\TraceActions.razor.cs (1)
27var menuItems = new List<MenuButtonItem>();
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
233var fileReferences = new List<FileReferenceViewModel>();
Components\Dialogs\ManageDataDialog.razor.cs (3)
207var data = new List<TelemetryDataRow>(); 232var data = new List<TelemetryDataRow>(); 278var items = new List<ManageDataGridItem>();
Components\Pages\ConsoleLogs.razor.cs (4)
188private readonly List<CommandViewModel> _highlightedCommands = new(); 189private readonly List<MenuButtonItem> _logsMenuItems = new(); 190private readonly List<MenuButtonItem> _resourceMenuItems = new(); 674var nested = new List<MenuButtonItem>();
Components\Pages\Metrics.razor.cs (1)
84_durations = new List<SelectViewModel<TimeSpan>>
Components\Pages\Resources.razor.cs (3)
116private readonly List<MenuButtonItem> _resourcesMenuItems = new(); 126private readonly List<MenuButtonItem> _contextMenuItems = new(); 1038var properties = new List<ComponentTelemetryProperty>
Components\Pages\StructuredLogs.razor.cs (1)
556var genAISpans = new List<OtlpSpan>();
Components\Pages\TraceDetail.razor.cs (2)
35private readonly List<IDisposable> _peerChangesSubscriptions = new(); 522var genAISpans = new List<OtlpSpan>();
Configuration\DashboardOptions.cs (3)
87public List<AllowedCertificateRule> AllowedCertificates { get; set; } = new(); 257var addresses = new List<BindingAddress>(parts.Length); 341public List<ClaimAction> ClaimActions { get; set; } = new();
Configuration\EndpointInfo.cs (1)
24var groups = new List<KeyValuePair<BindingAddress, List<EndpointInfo>>>();
Configuration\ValidateDashboardOptions.cs (1)
27var errorMessages = new List<string>();
DashboardWebApplication.cs (2)
71private readonly List<Func<ResolvedEndpointInfo>> _frontendEndPointAccessor = new(); 621var endpoints = new List<EndpointInfo>();
Model\ConsoleLogsFetcher.cs (1)
31var logEntries = new List<LogEntry>();
Model\ConsoleLogsManager.cs (1)
13private readonly List<ModelSubscription> _subscriptions = new List<ModelSubscription>();
Model\GenAI\GenAIMessageParsingHelper.cs (1)
31var items = new List<T>();
Model\GenAI\GenAIMessages.cs (1)
186public List<MessagePart> Parts { get; set; } = new();
Model\GenAI\GenAISchemaHelpers.cs (2)
61schema.Enum = new List<JsonNode>(); 145var names = new List<string>();
Model\GenAI\GenAIVisualizerDialogViewModel.cs (10)
35public List<GenAIItemViewModel> Items { get; } = new List<GenAIItemViewModel>(); 39public List<ToolDefinitionViewModel> ToolDefinitions { get; private set; } = new(); 40public List<EvaluationResultViewModel> Evaluations { get; private set; } = new(); 93viewModel.ToolDefinitions = new List<ToolDefinitionViewModel>(); 122viewModel.ToolDefinitions = new List<ToolDefinitionViewModel>(); 164viewModel.Evaluations = new List<EvaluationResultViewModel>(); 407var parts = new List<GenAIItemPartViewModel> 434var parts = new List<GenAIItemPartViewModel> 504var messagePartViewModels = new List<GenAIItemPartViewModel>(); 618var evaluations = new List<EvaluationResultViewModel>();
Model\IconResolver.cs (1)
41var iconSizesTried = new List<IconSize>
Model\Otlp\ResourcesSelectHelpers.cs (1)
85var selectViewModels = new List<SelectViewModel<ResourceTypeDetails>>();
Model\Otlp\SpanWaterfallViewModel.cs (2)
165var orderedSpans = new List<SpanWaterfallViewModel>(); 200var spanLogVms = new List<SpanLogEntryViewModel>();
Model\ResourceGraph\ResourceGraphMapper.cs (1)
17var resolvedNames = new List<string>();
Model\ResourceGridViewModel.cs (1)
42var gridViewModels = new List<ResourceGridViewModel>();
Model\ResourceMenuBuilder.cs (2)
161var urlItems = new List<MenuButtonItem>(); 281var commands = new List<MenuButtonItem>();
Model\ResourceUrlHelpers.cs (1)
15var urls = new List<DisplayedUrl>(resource.Urls.Length);
Model\ResourceViewModel.cs (1)
68var addresses = new List<string>();
Model\SpanType.cs (1)
66return new List<SelectViewModel<SpanType>>
Model\StructuredLogsViewModel.cs (1)
15private readonly List<FieldTelemetryFilter> _filters = new();
Model\TelemetryExportService.cs (5)
201var instrumentsData = new List<OtlpInstrumentData>(); 537var dataPoints = new List<OtlpNumberDataPointJson>(); 570var dataPoints = new List<OtlpHistogramDataPointJson>(); 614var attributes = new List<OtlpKeyValueJson> 702var relationships = new List<ResourceRelationshipJson>();
Model\ThemeManager.cs (1)
51private readonly List<ModelSubscription> _subscriptions = new List<ModelSubscription>();
Model\TraceHelpers.cs (1)
20var unrootedSpans = new List<OtlpSpan>();
Model\TracesViewModel.cs (1)
13private readonly List<FieldTelemetryFilter> _filters = new();
Otlp\Model\MetricValues\MetricValueBase.cs (1)
13public List<MetricsExemplar> Exemplars => _exemplars ??= new List<MetricsExemplar>();
Otlp\Model\OtlpHelpers.cs (1)
208values ??= new List<KeyValuePair<string, string>>(readLimit);
Otlp\Model\OtlpInstrument.cs (1)
98values = new List<string?>();
Otlp\Model\OtlpResource.cs (1)
272var instruments = new List<OtlpInstrumentSummary>(_instruments.Count);
Otlp\Model\OtlpResourceView.cs (1)
44var props = new List<OtlpDisplayField>
Otlp\Model\OtlpSpan.cs (2)
106var props = new List<OtlpDisplayField> 128var props = new List<OtlpDisplayField>();
Otlp\Storage\PagedResult.cs (1)
11Items = new List<T>(),
Otlp\Storage\TelemetryRepository.cs (17)
43private readonly List<Subscription> _resourceSubscriptions = new(); 44private readonly List<Subscription> _logSubscriptions = new(); 45private readonly List<Subscription> _metricsSubscriptions = new(); 46private readonly List<Subscription> _tracesSubscriptions = new(); 71private readonly List<OtlpSpanLink> _spanLinks = new(); 72private readonly List<IDisposable> _peerResolverSubscriptions = new(); 417addedLogs ??= new List<OtlpLogEntry>(); 692items ??= new List<OtlpTrace>(Math.Min(count, _traces.Count)); 699Items = items ?? new List<OtlpTrace>(), 771items ??= new List<OtlpSpan>(Math.Min(count, 64)); 779Items = items ?? new List<OtlpSpan>(), 955result ??= new List<TraceFilter>(filters.Count); 1845addedSpans ??= new List<OtlpSpan>(); 2026var events = new List<OtlpSpanEvent>(); 2028var links = new List<OtlpSpanLink>(); 2082return new List<OtlpInstrumentSummary>(); 2125var allDimensions = new List<DimensionScope>();
Otlp\Storage\TelemetryRepository.Watchers.cs (2)
50_spanWatchers ??= new List<SpanWatcher>(); 142_logWatchers ??= new List<LogWatcher>();
src\Shared\ChannelExtensions.cs (1)
88batch ??= new List<T>(maxBatchSize);
src\Shared\CircularBuffer.cs (1)
25public CircularBuffer(int capacity) : this(new List<T>(), capacity, start: 0, end: 0)
src\Shared\ColorGenerator.cs (1)
64_colors = new List<AccentColor>();
src\Shared\ConsoleLogs\AnsiParser.cs (3)
309List<int> ret = new(2); 457var classes = new List<string>(2); 458var styles = new List<string>(2);
src\Shared\DurationFormatter.cs (1)
35private static readonly List<UnitStep> s_unitSteps = new List<UnitStep>
src\Shared\LoggingHelpers.cs (1)
47var parameters = new List<object?>();
src\Shared\Otlp\OtlpHelpers.cs (2)
137var compositeNameMatches = new List<T>(); 138var resourceNameMatches = new List<T>();
src\Shared\SearchTextParser.cs (4)
142var textFragments = new List<string>(); 143var qualifiers = new List<SearchQualifier>(); 144var negatedQualifiers = new List<SearchQualifier>(); 346var allFragments = new List<string>(filter.TextFragments);
Utils\DashboardUIHelpers.cs (1)
155var maskedParts = new List<string>();
Utils\FilterHelpers.cs (1)
30var filterMenuItems = new List<MenuButtonItem>();
Utils\GlobalizationHelpers.cs (2)
50var selfAndChildren = new List<CultureInfo>(); 153RequestCultureProviders = new List<IRequestCultureProvider>
Aspire.Dashboard.Components.Tests (34)
Controls\AspireMenuTests.cs (3)
82var items = new List<MenuButtonItem> 125var items = new List<MenuButtonItem> 167var items = new List<MenuButtonItem>
Controls\GenAIVisualizerDialogTests.cs (3)
64var systemInstruction = JsonSerializer.Serialize(new List<MessagePart> 69var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 88var outputMessages = JsonSerializer.Serialize(new List<ChatMessage>
Controls\ResourceDetailsTests.cs (11)
36environment: new List<EnvironmentVariableViewModel> 90environment: new List<EnvironmentVariableViewModel> 129environment: new List<EnvironmentVariableViewModel> 183environment: new List<EnvironmentVariableViewModel> 221environment: new List<EnvironmentVariableViewModel> 267environment: new List<EnvironmentVariableViewModel> 305environment: new List<EnvironmentVariableViewModel> 351environment: new List<EnvironmentVariableViewModel> 626environment: new List<EnvironmentVariableViewModel> 662volumes: new List<VolumeViewModel> 698healthReports: new List<HealthReportViewModel>
Pages\ResourcesTests.cs (17)
37var initialResources = new List<ResourceViewModel> 126var initialResources = new List<ResourceViewModel> 188var initialResources = new List<ResourceViewModel> 324var initialResources = new List<ResourceViewModel> 353var initialResources = new List<ResourceViewModel> 450var initialResources = new List<ResourceViewModel> 584var initialResources = new List<ResourceViewModel> 610var initialResources = new List<ResourceViewModel> 638var initialResources = new List<ResourceViewModel> 669var initialResources = new List<ResourceViewModel> 702var initialResources = new List<ResourceViewModel> 785var initialResources = new List<ResourceViewModel> 828var initialResources = new List<ResourceViewModel> 862var initialResources = new List<ResourceViewModel> 906var initialResources = new List<ResourceViewModel> 937var initialResources = new List<ResourceViewModel> 953var getAsyncCallOrder = new List<(string Key, bool ConnectionCompleted)>();
Aspire.Dashboard.Tests (92)
ChannelExtensionsTests.cs (2)
18var batches = new List<int[]>(); 36var batches = new List<int[]>();
CircularBufferTests.cs (1)
641var values = new List<string>
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (3)
19var resources = new List<ResourceViewModel> 51var resources = new List<ResourceViewModel> 141var resources = new List<ResourceViewModel>
GlobalizationHelpersTests.cs (1)
66var cultureOptions = new List<CultureInfo>
Integration\Playwright\AccessibilityTests.cs (3)
203var states = new List<(string Name, (int R, int G, int B) Foreground, (int R, int G, int B) Background)>(); 303var failures = new List<string>(); 468var contextParts = new List<string> { $"{theme} theme" };
Integration\Playwright\MobileNavMenuTests.cs (1)
88var focusHistory = new List<string?>();
Integration\ServerRetryHelper.cs (2)
49var ports = new List<int>(portCount); 102var unavailableEndpoints = new List<IPEndPoint>();
Model\ApplicationsSelectHelpersTests.cs (8)
23var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 68var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 85var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 106var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 122var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 175var appVMs = new List<SelectViewModel<ResourceTypeDetails>> 197var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 234var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource>
Model\DashboardClientTests.cs (3)
267var stateChanges = new List<DashboardConnectionState>(); 283var stateChanges = new List<DashboardConnectionState>(); 298var stateChanges = new List<DashboardConnectionState>();
Model\GenAIVisualizerDialogViewModelTests.cs (16)
291var events = new List<Span.Types.Event> 383var events = new List<Span.Types.Event> 438var events = new List<Span.Types.Event> 487var systemInstruction = JsonSerializer.Serialize(new List<MessagePart> 492var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 511var outputMessages = JsonSerializer.Serialize(new List<ChatMessage> 610var systemInstruction = JsonSerializer.Serialize(new List<MessagePart> 615var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 683var systemInstruction = JsonSerializer.Serialize(new List<MessagePart> 688var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 707var outputMessages = JsonSerializer.Serialize(new List<ChatMessage> 1812var events = new List<Span.Types.Event> 1965var events = new List<Span.Types.Event> 2139var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 2224var systemInstruction = JsonSerializer.Serialize(new List<MessagePart> 2285var outputMessages = JsonSerializer.Serialize(new List<ChatMessage>
Model\ResourceMenuBuilderTests.cs (8)
58var menuItems = new List<MenuButtonItem>(); 108var menuItems = new List<MenuButtonItem>(); 158var menuItems = new List<MenuButtonItem>(); 194var menuItems = new List<MenuButtonItem>(); 227var menuItems = new List<MenuButtonItem>(); 273var menuItems = new List<MenuButtonItem>(); 311var menuItems = new List<MenuButtonItem>(); 352var menuItems = new List<MenuButtonItem>();
Model\SpanWaterfallViewModelTests.cs (4)
302var filters = new List<FieldTelemetryFilter> 339var filters = new List<FieldTelemetryFilter> 376var filters = new List<FieldTelemetryFilter> 417var filters = new List<FieldTelemetryFilter>
Model\TelemetryExportServiceTests.cs (2)
493var instrumentsData = new List<OtlpInstrumentData>(); 579var instrumentsData = new List<OtlpInstrumentData>();
ResourceOutgoingPeerResolverTests.cs (2)
193var attributes = new List<KeyValuePair<string, string>> 218var attributes = new List<KeyValuePair<string, string>>
TelemetryApiServiceTests.cs (5)
31var receivedItems = new List<string>(); 52var receivedItems = new List<string>(); 90var receivedItems = new List<string>(); 113var receivedItems = new List<string>(); 170var receivedItems = new List<string>();
TelemetryRepositoryTests\LogTests.cs (2)
621var attributes = new List<KeyValuePair<string, string>> 1499var filters = new List<TelemetryFilter>
TelemetryRepositoryTests\MetricsTests.cs (5)
109var metricAttributes = new List<KeyValuePair<string, string>>(); 110var meterAttributes = new List<KeyValuePair<string, string>>(); 223var metricAttributes = new List<KeyValuePair<string, string>>(); 224var meterAttributes = new List<KeyValuePair<string, string>> 342CreateSumMetric(metricName: "test", startTime: s_testTime.AddMinutes(1), exemplars: new List<Exemplar> { CreateExemplar(startTime: s_testTime.AddMinutes(1), value: 2, attributes: [KeyValuePair.Create("key1", "value1")]) }),
TelemetryRepositoryTests\OtlpSpanTests.cs (1)
131new List<object[]>
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (16)
388var receivedSpans = new List<OtlpSpan>(); 506var receivedLogs = new List<OtlpLogEntry>(); 660var receivedSpans = new List<OtlpSpan>(); 738var receivedSpans = new List<OtlpSpan>(); 807var receivedSpans = new List<OtlpSpan>(); 882var receivedSpans = new List<OtlpSpan>(); 913var receivedLogs = new List<OtlpLogEntry>(); 941var filters = new List<TelemetryFilter> 972var receivedLogs = new List<OtlpLogEntry>(); 1032var filters = new List<TelemetryFilter> 1063var receivedLogs = new List<OtlpLogEntry>(); 1146var receivedLogs = new List<OtlpLogEntry>(); 1209var filters = new List<TelemetryFilter> 1249var receivedLogs = new List<OtlpLogEntry>(); 1306var filters = new List<TelemetryFilter> 1346var receivedSpans = new List<OtlpSpan>();
TelemetryRepositoryTests\TestOutgoingPeerResolver.cs (1)
17_callbacks = new();
TelemetryRepositoryTests\TraceTests.cs (6)
527CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), events: new List<Span.Types.Event> 603CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), links: new List<Span.Types.Link> 756var attributes = new List<KeyValuePair<string, string>>(); 763var events = new List<Span.Types.Event>(); 980CreateSpan(traceId: traceId, spanId: $"{traceId}-2", startTime: startTime.AddMinutes(5), endTime: startTime.AddMinutes(1), parentSpanId: $"{traceId}-1", links: new List<Span.Types.Link> 984CreateSpan(traceId: traceId, spanId: $"{traceId}-1", startTime: startTime.AddMinutes(1), endTime: startTime.AddMinutes(10), links: new List<Span.Types.Link>
Aspire.Deployment.EndToEnd.Tests (1)
Helpers\DeploymentE2ETestHelpers.cs (1)
189var candidates = new List<string>();
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
270var tasksToWaitFor = new List<Task> { appRunning.Task, projectsParsed.Task };
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
Aspire.Hosting (106)
ApplicationModel\CertificateAuthorityCollectionAnnotation.cs (1)
46public List<CertificateAuthorityCollection> CertificateAuthorityCollections { get; internal set; } = new List<CertificateAuthorityCollection>();
ApplicationModel\ExecutableLaunchRecipe.cs (6)
329var executableArguments = new List<string>(arguments.Count - omittedLaunchToolArgumentCount); 330var displayArguments = new List<ExecutableLaunchArgument>(arguments.Count); 446var projectArguments = new List<string>(); 537var launchConfigurations = new List<JsonElement>(); 677var launchArguments = new List<ExecutableLaunchArgument>(); 847var argumentsToInsert = new List<string>();
ApplicationModel\ExecutionConfigurationBuilder.cs (1)
41private readonly List<IExecutionConfigurationGatherer> _gatherers = new();
ApplicationModel\ExecutionConfigurationGathererContext.cs (3)
11public List<object> Arguments { get; } = new(); 46List<(object Unprocessed, string Value, bool IsSensitive)> resolvedArguments = new(argumentCapacity); 48List<Exception> exceptions = new();
ApplicationModel\ProjectResource.cs (2)
45var steps = new List<PipelineStep>(); 228var outputLines = new List<string>();
ApplicationModel\ReferenceExpression.cs (6)
327private readonly List<IValueProvider> _valueProviders = new(formattedCount); 328private readonly List<string> _manifestExpressions = new(formattedCount); 329private readonly List<string?> _stringFormats = new(formattedCount); 489private readonly List<IValueProvider> _valueProviders = new(); 490private readonly List<string> _manifestExpressions = new(); 491private readonly List<string?> _stringFormats = new();
ApplicationModel\ResourceCommandService.cs (3)
149var tasks = new List<Task<ExecuteCommandResult>>(); 168var failures = new List<(string resourceId, ExecuteCommandResult result)>(); 169var cancellations = new List<(string resourceId, ExecuteCommandResult result)>();
ApplicationModel\ResourceExtensions.cs (5)
271var args = new List<object>(); 623var args = new List<object>(); 847var result = new List<ResolvedEndpoint>(); 1639var rawValues = new List<object>(); 1699var args = new List<object>();
ApplicationModel\ResourceLoggerService.cs (5)
57var loggers = new List<ILogger>(); 77var scopes = new List<IDisposable>(); 229var subscribedStates = new List<(ResourceLoggerState State, Action<bool> Handler)>(); 527var pendingLiveEntries = new List<LogEntry>(); 577var batches = new List<IReadOnlyList<LogLine>>();
Ats\InteractionExports.cs (1)
241var list = new List<KeyValuePair<string, string>>(choices.Count);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (7)
92var urls = new List<string>(2); 586var terminals = new List<TerminalSummary>(); 974var results = new List<ResourceSnapshot>(); 1230var resolvedThisPass = new List<string>(); 1439var values = new List<string>(); 1629var tasks = new List<Task>(); 2001var result = new List<string>();
ConnectionStringBuilderExtensions.cs (1)
49var tasks = new List<Task>();
ContainerResourceBuilderExtensions.cs (1)
55var steps = new List<PipelineStep>();
Dashboard\DashboardServiceData.cs (1)
253var inputDtos = new List<InputDto>(inputsInfo.Inputs.Count);
Dashboard\InteractionFileUploadStore.cs (1)
133var files = new List<InteractionFileUpload>();
Dcp\ContainerCreator.cs (13)
139var result = new List<RenderedModelResource<Container>>(); 184ctr.Spec.Networks = new List<ContainerNetworkConnection> 419var services = new List<ContainerNetworkService>(); 706var dirs = new List<string> { certificatesDestination + "/certs" }; 730List<ContainerFileSystemEntry> customBundleFiles = new(); 813var certificateFiles = new List<ContainerFileSystemEntry>() 869var createFiles = new List<ContainerCreateFileSystem>(); 906var runArgs = new List<string>(); 935var dcpBuildArgs = new List<EnvVar>(); 951var dcpBuildSecrets = new List<BuildContextSecret>(); 1002var parts = new List<string>(); 1021var ports = new List<ContainerPortSpec>(); 1061var volumeMounts = new List<VolumeMount>();
Dcp\DcpExecutor.cs (2)
628var tasks = new List<Task>(); 902var tasks = new List<Task>();
Dcp\DcpKubernetesClient.cs (1)
153private readonly List<string> _parameters = new List<string>();
Dcp\DcpResourceWatcher.cs (3)
239var tasks = new List<Task>(); 428var logEntries = new List<LogEntry>(); 566var logs = new List<LogEntry>();
Dcp\ExecutableConfigurationResolver.cs (1)
48var directories = new List<string> { certificatesOutputPath };
Dcp\Model\ContainerTunnel.cs (1)
274UpdatedTunnels = spec.Tunnels ?? new List<TunnelConfiguration>();
Dcp\Model\ModelCommon.cs (2)
117values = JsonSerializer.Deserialize<List<TValue>>(annotationVal) ?? new(); 121values = new();
Dcp\ProxylessEndpointPortAllocator.cs (1)
233var sockets = new List<Socket>();
Dcp\ResourceLogSource.cs (1)
106var streamTasks = new List<Task>();
Diagnostics\ProfilingTelemetry.cs (1)
764var events = new List<AppHostStartupEvent>();
DistributedApplication.cs (1)
814var results = new List<ResourceStateDebugView>(app._model.Resources.Count);
Eventing\DistributedApplicationEventing.cs (2)
31var pendingSubscriptionCallbacks = new List<Task>(subscriptions.Count); 139if (!_eventSubscriptionListLookup.TryAdd(typeof(T), new List<DistributedApplicationEventSubscription> { subscription }))
Lifecycle\TerminalHostEventingSubscriber.cs (1)
138var result = new List<string>();
Orchestrator\ApplicationOrchestrator.cs (1)
303var urls = new List<ResourceUrlAnnotation>();
Orchestrator\ParameterProcessor.cs (1)
592var resourceInputs = new List<(ParameterResource ParameterResource, InteractionInput Input)>();
Pipelines\DistributedApplicationPipeline.cs (5)
713var result = new List<PipelineStep>(); 743var steps = new List<PipelineStep>(); 775var callbacks = new List<Func<PipelineConfigurationContext, Task>>(); 965var failedStepNames = new List<string>(); 1477var result = new List<PipelineStep>();
Pipelines\PipelineActivityReporter.cs (2)
374var promptInputs = new List<PublishingPromptInput> 416var dtos = new List<InputDto>();
Publishing\ContainerRuntimeBase.cs (3)
407var stderrLines = new List<string>(); 455var outputLines = new List<string>(); 513var results = new List<ComposeServiceInfo>();
Publishing\ManifestPublishingContext.cs (1)
861var pending = new List<ParameterResource>(_formattedParameters.Keys);
Publishing\PodmanContainerRuntime.cs (1)
35var outputLines = new List<string>();
Publishing\ResourceContainerImageManager.cs (2)
596var platforms = new List<string>(); 638var rids = new List<string>();
ResourceLoggerForwarderService.cs (1)
40var logWatchTasks = new List<Task>();
src\Shared\BackchannelConstants.cs (2)
201var results = new List<string>() { currentHash }; 329var results = new List<string>();
src\Shared\ChannelExtensions.cs (1)
88batch ??= new List<T>(maxBatchSize);
src\Shared\CircularBuffer.cs (1)
25public CircularBuffer(int capacity) : this(new List<T>(), capacity, start: 0, end: 0)
src\Shared\CommandLineArgsParser.cs (2)
13var result = new List<string>(); 23var result = new List<string>();
src\Shared\ConsoleLogs\AnsiParser.cs (3)
309List<int> ret = new(2); 457var classes = new List<string>(2); 458var styles = new List<string>(2);
src\Shared\CustomResourceSnapshotExtensions.cs (2)
40var existingProperties = new List<ResourcePropertySnapshot>(properties); 41var propertiesToAdd = new List<ResourcePropertySnapshot>();
src\Shared\LoggingHelpers.cs (1)
47var parameters = new List<object?>();
src\Shared\PackageUpdateHelpers.cs (1)
131var foundPackages = new List<NuGetPackage>();
src\Shared\X509Certificate2Extensions.cs (1)
158var trustedCertificates = new List<X509Certificate2>();
Utils\ConcurrencyUtils.cs (1)
46var acquired = new List<SemaphoreSlim>(distinct.Length);
Aspire.Hosting.Analyzers (1)
Infrastructure\BoundedCacheWithFactory.cs (1)
18private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Aspire.Hosting.Azure (23)
AzureEnvironmentResource.cs (2)
78var steps = new List<PipelineStep>(); 279var resources = new List<(string Name, string ResourceType)>();
AzureProvisioningController.cs (5)
1040var afterProvisionTasks = new List<Task>(azureResources.Count); 1249var targetResources = new List<(IResource Resource, IAzureResource AzureResource)>(); 3048var keyVaultLocations = new List<string>(); 3647var resources = new List<IResource>(); 3894var tasks = new List<Task>(azureResources.Count);
AzurePublishingContext.cs (1)
297var computeEnvironments = new List<IAzureComputeEnvironmentResource>();
AzureResourcePreparer.cs (2)
135var azureResources = new List<(IResource, IAzureResource)>(); 414var roleAssignmentResources = new List<AzureRoleAssignmentResource>();
Provisioning\Internal\DefaultArmClientProvider.cs (7)
87var tenants = new List<ITenantResource>(); 99var subscriptions = new List<ISubscriptionResource>(); 116var subscriptions = new List<ISubscriptionResource>(); 149var resourceGroups = new List<(string Name, string Location)>(); 379var currentDeploymentIds = new List<ResourceIdentifier>(); 417var operations = new List<AzureDeploymentOperationDetails>(); 462var locations = new List<(string Name, string DisplayName)>();
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
330var inputs = new List<InteractionInput>();
Provisioning\Provisioners\BicepProvisioner.cs (3)
115var portalUrls = new List<UrlSnapshot>(); 1017var enrichmentTasks = new List<(int OperationIndex, Task<AzureProvisioningFailureDetails> EnrichmentTask)>(); 1262var details = new List<string>();
src\Shared\CustomResourceSnapshotExtensions.cs (2)
40var existingProperties = new List<ResourcePropertySnapshot>(properties); 41var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.Azure.AppContainers (3)
AzureContainerAppEnvironmentResource.cs (1)
44var steps = new List<PipelineStep>();
AzureContainerAppExtensions.cs (1)
192var guidance = new List<string>();
AzureContainerAppResource.cs (1)
40var steps = new List<PipelineStep>();
Aspire.Hosting.Azure.AppService (4)
AzureAppServiceEnvironmentResource.cs (2)
52var steps = new List<PipelineStep>(); 267var errors = new List<string>();
AzureAppServiceWebsiteContext.cs (1)
527var args = new List<BicepValue<string>>();
AzureAppServiceWebSiteResource.cs (1)
40var steps = new List<PipelineStep>();
Aspire.Hosting.Azure.CosmosDB (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Hosting.Azure.Functions (2)
src\Shared\CommandLineArgsParser.cs (2)
13var result = new List<string>(); 23var result = new List<string>();
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentExtensions.cs (1)
869var steps = new List<PipelineStep>();
Aspire.Hosting.Azure.Kubernetes.Tests (11)
AzureKubernetesInfrastructureTests.cs (11)
253var invocations = new List<string>(); 275var invocations = new List<string>(); 340var invocations = new List<string>(); 398var invocations = new List<string>(); 423var steps = new List<PipelineStep>(); 498var invocations = new List<string>(); 516var steps = new List<PipelineStep>(); 710var invocations = new List<string>(); 728var steps = new List<PipelineStep>(); 779var invocations = new List<string>(); 797var steps = new List<PipelineStep>();
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
443var results = new List<object>();
Aspire.Hosting.Azure.Network (2)
AzurePrivateEndpointExtensions.cs (1)
103var privateDnsZones = new List<(string Identifier, PrivateDnsZone Zone)>();
AzureVirtualNetworkExtensions.cs (1)
684var parts = new List<string> { access, direction };
Aspire.Hosting.Azure.Sql (2)
AzureSqlServerResource.cs (1)
273var dependsOn = new List<ProvisionableResource>();
SubnetAddressAllocator.cs (1)
47var existingRanges = new List<(uint Start, uint End)>();
Aspire.Hosting.Azure.Tests (43)
AzureAppServiceTests.cs (1)
1410var results = new List<PipelineStep>();
AzureContainerAppsTests.cs (1)
3160var results = new List<PipelineStep>();
AzureContainerRegistryTests.cs (3)
152var allSteps = new List<PipelineStep>(); 181var allSteps = new List<PipelineStep>(); 210var allSteps = new List<PipelineStep>();
AzureCosmosDBExtensionsTests.cs (9)
673var args = new List<object>(); 715Arguments = new List<object>(), 741var args = new List<object>(); 772new List<X509Certificate2>(), 803new List<X509Certificate2>(), 835new List<X509Certificate2>(), 864new List<X509Certificate2>(), 1227var urls = new List<ResourceUrlAnnotation> 1252var urls = new List<ResourceUrlAnnotation>
AzureEnvironmentResourceExtensionsTests.cs (17)
1331var canceledDeploymentIds = new List<string>(); 1440var canceledDeploymentIds = new List<string>(); 1732var deletedResourceIds = new List<string>(); 1733var purgedDeletedKeyVaults = new List<(string ResourceId, string Location)>(); 1734var canceledDeploymentIds = new List<string>(); 1838var deletedResourceIds = new List<string>(); 1839var purgedDeletedKeyVaults = new List<(string ResourceId, string Location)>(); 2989var deletedResourceIds = new List<string>(); 3055var deletedResourceIds = new List<string>(); 3115var deletedResourceIds = new List<string>(); 3180var deletedResourceIds = new List<string>(); 3306var deletedResourceIds = new List<string>(); 3869var deletedResourceIds = new List<string>(); 3870var purgedDeletedKeyVaults = new List<(string ResourceId, string Location)>(); 3948var deletedResourceIds = new List<string>(); 3949var purgedDeletedKeyVaults = new List<(string ResourceId, string Location)>(); 4763var canceledDeploymentIds = new List<string>();
AzureProvisionerOptionsTests.cs (4)
30var results = new List<ValidationResult>(); 46var results = new List<ValidationResult>(); 58var results = new List<ValidationResult>(); 70var results = new List<ValidationResult>();
AzureSqlPrincipalReconciliationTests.cs (1)
329var permissions = new List<string>();
DefaultArmClientProviderTests.cs (2)
103var operations = new List<AzureDeploymentOperationDetails>(); 128var resourceIds = new List<string>();
ProvisioningTestHelpers.cs (5)
300var tenants = new List<ITenantResource> 309var subscriptions = new List<ISubscriptionResource> 321var subscriptions = new List<ISubscriptionResource> 349var locations = new List<(string Name, string DisplayName)> 361var resourceGroups = new List<(string Name, string Location)>
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubHubResource.cs (1)
45internal List<(ReferenceExpression url, string userEvents, string[]? systemEvents, UpstreamAuthSettings? auth)> EventHandlers { get; } = new();
Aspire.Hosting.Blazor (6)
BlazorDotNetCliRunner.cs (1)
25var argumentList = new List<string>(arguments.Count + 2)
BlazorGatewayExtensions.cs (2)
473var result = new List<AppManifestPaths>(); 711var endpoints = new List<EndpointAnnotation>();
GatewayConfigurationBuilder.cs (1)
39var servicesList = new List<HostedClientService>();
Manifests\EndpointsManifestTransformer.cs (2)
27var fallbackEndpoints = new List<EndpointEntry>(); 79var mergedContentRoots = new List<string>();
Aspire.Hosting.Blazor.Tests (21)
EndpointsManifestTransformerTests.cs (2)
184var manifests = new List<AppManifestPaths> 248var manifests = new List<AppManifestPaths>
GatewayConfigurationBuilderTests.cs (19)
22var apps = new List<GatewayAppRegistration> { registration }; 45var apps = new List<GatewayAppRegistration> { registration }; 67var apps = new List<GatewayAppRegistration> { registration }; 94var apps = new List<GatewayAppRegistration> { registration }; 120var apps = new List<GatewayAppRegistration> { registration }; 140var apps = new List<GatewayAppRegistration> { registration }; 162var apps = new List<GatewayAppRegistration> 191var apps = new List<GatewayAppRegistration> { registration }; 214var apps = new List<GatewayAppRegistration> { registration }; 246var apps = new List<GatewayAppRegistration> { registration }; 267var apps = new List<GatewayAppRegistration> { registration }; 293var apps = new List<GatewayAppRegistration> { registration }; 317var apps = new List<GatewayAppRegistration> { registration }; 340var apps = new List<GatewayAppRegistration> { registration }; 365var apps = new List<GatewayAppRegistration> { registration }; 392var apps = new List<GatewayAppRegistration> 455var apps = new List<GatewayAppRegistration> { registration }; 484var apps = new List<GatewayAppRegistration> { registration }; 529var services = new List<HostedClientService> { new("weatherapi", GatewayConfigurationBuilder.DefaultApiPrefix) };
Aspire.Hosting.Browsers (11)
BrowserConnectionDiagnosticsLogger.cs (1)
41var messages = new List<string>();
BrowserLogsCdpProtocol.cs (1)
881var items = new List<BrowserLogsCdpProtocolValue>();
BrowserLogsConfigurationManager.cs (1)
40var browserOptions = new List<KeyValuePair<string, string>>();
BrowserLogsEventLogger.cs (2)
170var details = new List<string>(); 192var details = new List<string>();
BrowserLogsPipeBrowserProcessLauncher.Unix.cs (1)
313var values = new List<string>(environmentVariables.Count);
BrowserLogsSessionManager.cs (3)
256var sessionsToStop = new List<IBrowserLogsRunningSession>(); 257var completionObservers = new List<Task>(); 399var reports = new List<HealthReportSnapshot>(resourceState.ActiveSessions.Count + (pendingSession is null ? 0 : 1));
src\Shared\CustomResourceSnapshotExtensions.cs (2)
40var existingProperties = new List<ResourcePropertySnapshot>(properties); 41var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.Browsers.Tests (19)
BrowserLogsCdpConnectionTests.cs (3)
213var firstEvents = new List<BrowserLogsCdpProtocolEvent>(); 214var secondEvents = new List<BrowserLogsCdpProtocolEvent>(); 260var survivingEvents = new List<BrowserLogsCdpProtocolEvent>();
BrowserLogsSessionManagerTests.cs (2)
66var createdHosts = new List<TestBrowserHost>(); 106var createdHosts = new List<TestBrowserHost>();
BrowserPageSessionTests.cs (2)
50var routedEvents = new List<BrowserLogsCdpProtocolEvent>(); 215var routedEvents = new List<BrowserLogsCdpProtocolEvent>();
ConsoleLoggingTestHelpers.cs (1)
40var logs = new List<LogLine>();
src\Aspire.Hosting.Browsers\BrowserConnectionDiagnosticsLogger.cs (1)
41var messages = new List<string>();
src\Aspire.Hosting.Browsers\BrowserLogsCdpProtocol.cs (1)
881var items = new List<BrowserLogsCdpProtocolValue>();
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (1)
40var browserOptions = new List<KeyValuePair<string, string>>();
src\Aspire.Hosting.Browsers\BrowserLogsEventLogger.cs (2)
170var details = new List<string>(); 192var details = new List<string>();
src\Aspire.Hosting.Browsers\BrowserLogsPipeBrowserProcessLauncher.Unix.cs (1)
313var values = new List<string>(environmentVariables.Count);
src\Aspire.Hosting.Browsers\BrowserLogsSessionManager.cs (3)
256var sessionsToStop = new List<IBrowserLogsRunningSession>(); 257var completionObservers = new List<Task>(); 399var reports = new List<HealthReportSnapshot>(resourceState.ActiveSessions.Count + (pendingSession is null ? 0 : 1));
src\Shared\CustomResourceSnapshotExtensions.cs (2)
40var existingProperties = new List<ResourcePropertySnapshot>(properties); 41var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.CodeGeneration.Go (9)
AtsGoCodeGenerator.cs (9)
399list = new List<AtsCapabilityInfo>(); 444list = new List<AtsCapabilityInfo>(); 715var members = new List<string>(); 827: new List<AtsCapabilityInfo>(); 850var result = new List<(string, string, AtsTypeRef, string, string?)>(); 1029var required = new List<AtsParameterInfo>(); 1030var optional = new List<AtsParameterInfo>(); 1570var argNames = new List<string>(callbackParameters.Count); 1814var result = new List<AtsParameterInfo>();
Aspire.Hosting.CodeGeneration.Java (17)
AtsJavaCodeGenerator.cs (17)
118var importLines = new List<string>(); 464var used = new List<string>(); 1073var required = new List<AtsParameterInfo>(); 1074var optional = new List<AtsParameterInfo>(); 1106var result = new List<JavaMethodParameter>(); 1180var overloadParameters = new List<string>(parameters.Count); 1181var callArguments = new List<string>(parameters.Count); 1505var result = new List<List<AtsTypeRef>> { new() }; 1508var temp = new List<List<AtsTypeRef>>(); 1513var combined = new List<AtsTypeRef>(existing) { item }; 1536var callArguments = new List<string>(parameters.Count); 1677var result = new List<JavaMethodParameter>(parameters.Count); 1894var typeArguments = new List<string>(); 1922var callArguments = new List<string>(); 2385var results = new List<JavaHandleType>(); 2446list = new List<AtsCapabilityInfo>();
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
426var offenders = new List<string>();
Aspire.Hosting.CodeGeneration.Python (14)
AtsPythonCodeGenerator.cs (14)
142private readonly List<string> _ignoreTypes = new() 300var result = new List<AtsCapabilityInfo>(); 359var mergedParams = new List<AtsParameterInfo>(); 949var members = new List<string>(); 1127var result = new List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)>(); 1450var baseTypeInterfaces = new List<string>(); 1528var optionNames = new List<string>(); 1743var paramDefs = new List<string> { "client: AspireClient" }; 1744var paramArgs = new List<string>(); 1892var builders = new List<BuilderModel>(); 1964var applicableCapabilities = new List<AtsCapabilityInfo>(); 2026var result = new List<BuilderModel>(); 2375var variations = new List<OptionVariation>(); 2642var result = new List<string>();
Aspire.Hosting.CodeGeneration.Rust (2)
AtsRustCodeGenerator.cs (2)
823var results = new List<RustHandleType>(); 865list = new List<AtsCapabilityInfo>();
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
RustLanguageSupportTests.cs (1)
126var names = new List<string>();
Aspire.Hosting.CodeGeneration.TypeScript (20)
AtsTypeScriptCodeGenerator.cs (20)
423var nonHandleTypes = new List<string>(); 424var handleTypeNames = new List<string>(); 523var lines = new List<string>(); 1341var members = new List<string>(); 1450var required = new List<AtsParameterInfo>(); 1451var optional = new List<AtsParameterInfo>(); 1678var publicParamDefs = new List<string>(); 2151var internalParamDefs = new List<string>(); 2469var requiredArgs = new List<string> { $"{targetParamName}: this._handle" }; 2502var requiredArgs = new List<string> { $"{targetParamName}: this._handle" }; 2728var publicParamDefs = new List<string>(); 2745var forwardArgs = new List<string>(); 2864var paramDefs = new List<string> { "client: AspireClientRpc" }; 2980var paramList = new List<string>(); 3074var callArgs = new List<string>(); 3382var result = new List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)>(); 4123var internalParamDefs = new List<string>(); 4383var publicParamDefs = new List<string>(); 4400var forwardArgs = new List<string>(); 4553var builders = new List<BuilderModel>();
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
AtsTypeScriptCodeGeneratorTests.cs (3)
421var baseTypes = new List<string>(); 1189var declarations = new List<string>(); 1317var mismatches = new List<string>();
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
171var portTasks = new List<Task> { DeleteUnmodeledPortsAsync() };
Aspire.Hosting.Docker (5)
DockerComposeEnvironmentResource.cs (1)
65var steps = new List<PipelineStep>();
DockerComposeServiceResource.cs (2)
42var steps = new List<PipelineStep>(); 236var args = new List<string>();
EnvFile.cs (2)
100var lines = new List<string>(); 134var lines = new List<string>();
Aspire.Hosting.Dotnet (2)
src\Shared\CommandLineArgsParser.cs (2)
13var result = new List<string>(); 23var result = new List<string>();
Aspire.Hosting.EntityFrameworkCore (4)
EFCoreOperationExecutor.cs (2)
211var efArgs = new List<string> { command, subCommand }; 621var migrationLines = new List<string>();
EFMigrationResourceBuilderExtensions.cs (1)
409var candidates = new List<IResourceWithConnectionString>();
EFResourceBuilderExtensions.cs (1)
210var steps = new List<PipelineStep>();
Aspire.Hosting.EntityFrameworkCore.Tests (2)
EFCoreOperationExecutorTests.cs (1)
242public List<(LogLevel Level, string Message)> Entries { get; } = new();
EFMigrationPipelineTests.cs (1)
779var results = new List<PipelineStep>();
Aspire.Hosting.Foundry (4)
FoundryLocalService.cs (1)
231var output = new List<string>();
HostedAgent\AzureHostedAgentResource.cs (1)
214var endpointProtocols = new List<AgentEndpointProtocol>();
Project\ProjectResource.cs (1)
44var steps = new List<PipelineStep>();
PromptAgent\AzurePromptAgentResource.cs (1)
66var steps = new List<PipelineStep>();
Aspire.Hosting.Foundry.Tests (2)
HostedAgentExtensionTests.cs (1)
145var urls = new List<ResourceUrlAnnotation> { url };
PromptAgentTests.cs (1)
604var steps = new List<PipelineStep>();
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
146var garnetCommand = new List<string>
Aspire.Hosting.Go (2)
GoHostingExtensions.cs (2)
805var parts = new List<string> { "go", "build" }; 828var parts = new List<string>();
Aspire.Hosting.Integration.Analyzers (2)
AspireExportAnalyzer.cs (1)
1484var reasons = new List<string>();
src\Aspire.Hosting.Analyzers\Infrastructure\BoundedCacheWithFactory.cs (1)
18private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Aspire.Hosting.Java (1)
JavaDockerfileGenerator.cs (1)
518var exceptions = new List<string> { prebuiltJarPath };
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
230var commandArgs = new List<string>() { packageManager.ExecutableName }; 584var commandArgs = new List<string>() { packageManager.ExecutableName }; 1222var commandArgs = new List<string>() { packageManager.ExecutableName };
Aspire.Hosting.JavaScript.Tests (15)
AddViteAppTests.cs (11)
509var args = new List<object>(); 534var args = new List<object>(); 569var args = new List<object> { "run", "dev", "--", "--port", "3000", "--config", "vite.config.js" }; 629var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 681var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 727var args = new List<object> { "run", "dev", "--", "--port", "3000", "--config", viteConfigPath }; 776var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 838var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 913var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 1016var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 1109var args = new List<object> { "run", "dev", "--", "--port", "3000" };
AddViteAppWithPnpmTests.cs (4)
32var args = new List<object>(); 66var args = new List<object>(); 94var args = new List<object>(); 127var args = new List<object>();
Aspire.Hosting.Keycloak.Tests (1)
KeycloakResourceBuilderTests.cs (1)
66new List<X509Certificate2>(),
Aspire.Hosting.Kubernetes (18)
CertManagerExtensions.cs (2)
359var steps = new List<PipelineStep>(); 390var steps = new List<PipelineStep>();
Deployment\HelmDeploymentEngine.cs (2)
121var steps = new List<PipelineStep>(); 676var endpoints = new List<string>();
KubernetesEnvironmentResource.cs (10)
227var steps = new List<PipelineStep>(); 1211var tlsSecrets = new List<TlsSecretRequest>(); 1270var results = new List<(KubernetesGatewayResource Gateway, ReferenceExpression SecretName)>(); 1299var results = new List<KubernetesGatewayResource>(); 1624var stdout = new List<string>(); 1712var stdout = new List<string>(); 1722var indices = new List<int>(); 1800var stdout = new List<string>(); 1913var indices = new List<int>(); 1976var stdout = new List<string>();
KubernetesHelmChartExtensions.cs (1)
95var steps = new List<PipelineStep>();
KubernetesManifestResource.cs (1)
254var result = new List<object?>();
KubernetesPublishingContext.cs (1)
133var gatewayObjects = new List<BaseKubernetesResource> { generatedGateway };
KubernetesResource.cs (1)
43return new List<PipelineStep> { printResourceSummary };
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesHelmChartTests.cs (1)
520var results = new List<PipelineStep>();
PipelineStepTestHelpers.cs (1)
27var results = new List<PipelineStep>();
Aspire.Hosting.Maui (7)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
147var args = new List<string> { "build", buildInfo.ProjectPath };
MauiAndroidExtensions.cs (2)
176var additionalArgs = new List<string>(); 381var additionalArgs = new List<string>();
MauiiOSExtensions.cs (2)
186var additionalArgs = new List<string>(); 392var additionalArgs = new List<string>();
Utilities\MauiEnvironmentHelper.cs (2)
151var deletedFiles = new List<string>(); 309var deletedFiles = new List<string>();
Aspire.Hosting.Maui.Tests (3)
MauiBuildQueueTests.cs (1)
265var completionOrder = new List<string>();
MauiPlatformExtensionsTests.cs (2)
462var args = new List<object>(); 863var tfms = new List<string> { "net10.0-ios", "net10.0-windows10.0.19041.0", "net10.0-maccatalyst" };
Aspire.Hosting.Nats (1)
NatsBuilderExtensions.cs (1)
134var args = new List<string> { "-js" };
Aspire.Hosting.Nats.Tests (1)
NatsFunctionalTests.cs (1)
294var events = new List<AppEvent>();
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
611var bookmarkFiles = new List<ContainerFileSystemItem>();
Aspire.Hosting.Radius (14)
Publishing\RadCredentialRegisterStep.cs (5)
179var azure = new List<(string Env, string Identity)>(); 180var aws = new List<(string Env, string Identity)>(); 337var result = new List<string>(args.Count); 356var values = new List<string>(); 395var args = new List<string> { "credential", "register", Provider, Mode };
Publishing\RadiusInfrastructureBuilder.cs (4)
635var radiusTypes = new List<IResource>(); 636var compute = new List<IResource>(); 1151var parts = new List<EnvPart>(); 1257var inner = new List<EnvPart>();
Publishing\SealedSecretApplyStep.cs (5)
212var args = new List<string> { "apply", "-f", "-", "-o", "json" }; 225var args = new List<string> { "get", "sealedsecret", name, "-n", ns, "-o", "json" }; 233var args = new List<string> { "get", "secret", name, "-n", ns, "-o", "name" }; 245var args = new List<string> { "get", "secret", name, "-n", ns, "-o", "json" }; 447var conditions = new List<SealedSecretCondition>();
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (1)
112var additionalArgs = new List<string>
RedisResource.cs (1)
82internal List<string> Args { get; set; } = new();
Aspire.Hosting.RemoteHost (37)
AssemblyLoader.cs (4)
85var infos = new List<CodeGenerationLoadedAssemblyInfo>(); 126var assemblyNames = new List<string>(); 202var assemblies = new List<Assembly>(); 324var probeDirs = new List<string>();
Ats\AtsCallbackProxyFactory.cs (2)
136var expressions = new List<Expression>(); 355var nonCtParams = new List<(ParameterExpression Expr, Type Type)>();
Ats\ReferenceExpressionRef.cs (1)
280var parts = new List<string>();
AtsCapabilityScanner.cs (25)
141var allCapabilities = new List<AtsCapabilityInfo>(); 142var allTypeInfos = new List<AtsTypeInfo>(); 143var allDtoTypes = new List<AtsDtoTypeInfo>(); 144var allEnumTypes = new List<AtsEnumTypeInfo>(); 145var allExportedValues = new List<AtsExportedValueInfo>(); 146var allDiagnostics = new List<AtsDiagnostic>(); 299var capabilities = new List<AtsCapabilityInfo>(); 300var typeInfos = new List<AtsTypeInfo>(); 301var dtoTypes = new List<AtsDtoTypeInfo>(); 302var exportedValues = new List<AtsExportedValueInfo>(); 303var diagnostics = new List<AtsDiagnostic>(); 573var result = new List<AtsEnumTypeInfo>(); 1079var properties = new List<AtsDtoPropertyInfo>(); 1376var pathSegments = new List<string> { valueAttr.CatalogName }; 1441var uniqueValues = new List<AtsExportedValueInfo>(exportedValues.Count); 1541var capabilities = new List<AtsCapabilityInfo>(); 1542var diagnostics = new List<AtsDiagnostic>(); 1851var paramInfos = new List<AtsParameterInfo> 2039var paramInfos = new List<AtsParameterInfo>(); 2184var parameters = new List<AtsCallbackParameterInfo>(); 2258var parameters = new List<AtsCallbackParameterInfo>(); 2279var parameters = new List<AtsCallbackParameterInfo>(); 2967var allInterfaces = new List<AtsTypeRef>(); 3007var baseTypes = new List<AtsTypeRef>(); 3299var unionTypes = new List<AtsTypeRef>();
CodeGeneration\CodeGenerationDiagnostic.cs (1)
260var loaded = new List<CodeGenerationLoadedAssemblyInfo>();
src\Shared\IntegrationPackageProbeManifest.cs (4)
182var candidatePaths = new List<string>(); 208var keys = new List<string>(); 381var managedAssemblies = new List<IntegrationPackageManagedAssembly>(); 403var nativeLibraries = new List<IntegrationPackageNativeLibrary>();
Aspire.Hosting.RemoteHost.Tests (9)
AssemblyLoaderTests.cs (1)
184var activities = new List<Activity>();
AtsMarshallerTests.cs (1)
534var list = new List<int> { 1, 2, 3 };
CallbackProxyTests.cs (1)
392? new List<AtsDtoTypeInfo>
RemoteHostProfilingTelemetryTests.cs (6)
39var activities = new List<Activity>(); 58var activities = new List<Activity>(); 73var activities = new List<Activity>(); 100var activities = new List<Activity>(); 122var activities = new List<Activity>(); 151var activities = new List<Activity>();
Aspire.Hosting.Rust (5)
CargoMetadata.cs (3)
79var packages = new List<CargoPackage>(); 108var binTargets = new List<string>(); 152var values = new List<string>();
RustDockerfileGenerator.cs (1)
174var args = new List<string>();
RustHostingExtensions.cs (1)
99var cargoArgs = new List<string>();
Aspire.Hosting.Rust.Tests (3)
AddRustAppPublishTests.cs (1)
1106var observed = new List<RustAppResource>();
RustPublicApiTests.cs (2)
162var observed = new List<RustAppResource>(); 176var observed = new List<RustAppResource>();
Aspire.Hosting.Sdk.Tests (1)
AppHostSdkTargetsTests.cs (1)
1189var arguments = new List<string>
Aspire.Hosting.Testing.Tests (3)
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (1)
128var logWatchTasks = new List<Task>();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
43var logs = new List<LogLine>(); 60var logs = new List<LogLine>();
Aspire.Hosting.Tests (145)
ApplicationModel\ResourceAnnotationCollectionTests.cs (2)
126var enumeratedItems = new List<IResourceAnnotation>(); 184var exceptions = new List<Exception>();
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (14)
1660var logs = new List<ResourceLogLine>(); 1690var logs = new List<ResourceLogLine>(); 1731var logs = new List<ResourceLogLine>(); 1775var logs = new List<ResourceLogLine>(); 1819var logs = new List<ResourceLogLine>(); 1863var logs = new List<ResourceLogLine>(); 1911var logs = new List<ResourceLogLine>(); 1963var logs = new List<ResourceLogLine>(); 2021var logs = new List<ResourceLogLine>(); 2072var logs = new List<ResourceLogLine>(); 2082var badLogs = new List<ResourceLogLine>(); 2113var logs = new List<ResourceLogLine>(); 2148var activities = new List<Activity>(); 2204var activities = new List<Activity>();
Backchannel\BackchannelContractTests.cs (1)
300var activities = new List<Activity>();
ConnectionPropertiesExtensionsTests.cs (1)
42private readonly IReadOnlyList<KeyValuePair<string, ReferenceExpression>> _properties = new List<KeyValuePair<string, ReferenceExpression>>(properties);
Dashboard\DashboardEventHandlersTests.cs (5)
136var logs = new List<WriteContext>(); 520var args = new List<object>(); 600var args = new List<object>(); 669var args = new List<object>(); 736var args = new List<object>();
Dashboard\DashboardResourceTests.cs (1)
827var urls = new List<ResourceUrlAnnotation>
Dcp\DcpExecutorTests.cs (29)
130var startingEvents = new List<OnResourceStartingContext>(); 1755var logLines = new List<LogLine>(); 2026var logLines = new List<LogLine>(); 4946var failedResources = new List<IResource>(); 6132var expectedArgs = new List<string> { resourceArgs[0] }; 6184var expectedArgs = new List<string> { resourceArgs[0] }; 6229var expectedArgs = new List<string> { resourceArgs[0] }; 6301var expectedArgs = new List<string> { "run" }; 6403var expectedArgs = new List<string> 6549var expectedArgs = new List<string> 6572var logLines = new List<LogLine>(); 6660var resourceArgs = new List<string>(); 6720var expectedArgs = new List<string>(); 6747var expectedDisplayArgs = new List<string>(); 6935var expectedArgs = new List<string> { "run" }; 7389var failedResources = new List<IResource>(); 7905var failedResources = new List<IResource>(); 7927var logLines = new List<LogLine>(); 8237var failedResources = new List<IResource>(); 8407var failedResources = new List<(IResource Resource, string? ErrorMessage)>(); 8433var logLines = new List<LogLine>(); 8520var logLines = new List<LogLine>(); 8678var failedResources = new List<(IResource Resource, string? ErrorMessage)>(); 9462var failedResources = new List<string>(); 9499var failedResources = new List<string>(); 9540var expectedArgs = new List<string> { "run", "--project", "TestProject" }; 9580var failedResources = new List<IResource>(); 9671var failedResources = new List<IResource>(); 10002var developerCertificateService = new TestDeveloperCertificateService(new List<X509Certificate2>(), false, false, false);
Dcp\ExecutableLaunchPlanTests.cs (1)
112var expectedArguments = new List<string> { "run", "--project", projectPath };
Dcp\ProcessUtilTests.cs (2)
93var outputLines = new List<string>(); 143var outputLines = new List<string>();
Dcp\TestKubernetesService.cs (1)
229var modifiedResources = new List<CustomResource>();
DistributedApplicationTests.cs (4)
854var createFileEntries = new List<ContainerFileSystemItem> 896Assert.Equal(new List<ContainerCreateFileSystem> 983var expectedDefaultCertificateDirs = new List<string>(); 984var expectedDefaultBundleFiles = new List<string>();
ExecutableResourceBuilderExtensionTests.cs (2)
205var args = new List<string>(); 390var processedArgs = new List<string>();
InteractionServiceTests.cs (14)
641var inputs = new List<InteractionInput> 681var inputs = new List<InteractionInput> 715var inputs = new List<InteractionInput> 738var inputs = new List<InteractionInput> 753var inputs = new List<InteractionInput> 768var inputs = new List<InteractionInput> 801var inputs = new List<InteractionInput> 838var inputs = new List<InteractionInput> 854var inputs = new List<InteractionInput> 908var inputs = new List<InteractionInput> 961var inputs = new List<InteractionInput> 1016var inputs = new List<InteractionInput> 1068var inputs = new List<InteractionInput> 1101var inputs = new List<InteractionInput>
Lifecycle\TerminalHostFailureDiagnosticServiceTests.cs (1)
273var collected = new List<LogLine>();
ManifestGenerationTests.cs (1)
162var verify = new List<Action<JsonElement>>();
Orchestrator\ApplicationOrchestratorTests.cs (1)
424var observedEvents = new List<string>();
Orchestrator\ParameterProcessorTests.cs (1)
86var updates = new List<(IResource Resource, CustomResourceSnapshot Snapshot)>();
Pipelines\DistributedApplicationPipelineTests.cs (29)
64var executedSteps = new List<string>(); 98var executedSteps = new List<string>(); 129var executedSteps = new List<string>(); 160var executedSteps = new List<string>(); 197var executionOrder = new List<(string step, DateTime time)>(); 253var executedSteps = new List<string>(); 285var executedSteps = new List<string>(); 420var executedSteps = new List<string>(); 476var executedSteps = new List<string>(); 512var executedSteps = new List<string>(); 933var executionOrder = new List<string>(); 998var executedSteps = new List<string>(); 1033var executedSteps = new List<string>(); 1057var executedSteps = new List<string>(); 1085var executedSteps = new List<string>(); 1122var executedSteps = new List<string>(); 1165var loggedMessages = new List<string>(); 1289var capturedSteps = new List<IReportingStep?>(); 1424var capturedSteps = new List<PipelineStep>(); 1466var executionOrder = new List<string>(); 1500var foundSteps = new List<PipelineStep>(); 1543var foundSteps = new List<PipelineStep>(); 1593var foundSteps = new List<PipelineStep>(); 1733var executionOrder = new List<string>(); 1845var executedSteps = new List<string>(); 1913var executedSteps = new List<string>(); 1948var executedSteps = new List<string>(); 2315var steps = new List<PipelineStep> 2335var steps = new List<PipelineStep>
ProjectResourceTests.cs (1)
1017var resolvedArgs = new List<string>();
Publishing\ComposeServiceParsingTests.cs (6)
15var lines = new List<string> 33var lines = new List<string> 56var lines = new List<string> 71var lines = new List<string> 89var lines = new List<string> 104var lines = new List<string>
Publishing\DeploymentStateManagerTests.cs (1)
112var tasks = new List<Task>();
Publishing\PipelineActivityReporterTests.cs (1)
969var pipelineSummary = new List<PipelineSummaryItem>
ResourceLoggerServiceTests.cs (10)
291var allLogs = new List<LogLine>(); 317var logLines = new List<LogLine>(); 352var logLines = new List<LogLine>(); 384var logLines = new List<LogLine>(); 490var allLogs = new List<LogLine>(); 507var logLines = new List<LogLine>(); 550var logLines = new List<LogLine>(); 683var logs = new List<LogLine>(); 717var logs = new List<LogLine>(); 748var subscribers = new List<LogSubscriber>();
ResourceNotificationTests.cs (6)
104var values = new List<ResourceEvent>(); 182var values = new List<ResourceEvent>(); 1040var values = new List<ResourceEvent>(); 1500new("Args", new List<string> { "--verbose", "--port", "8080" }), 1537new("Args", new List<string> { "--verbose", "--port", "9090" }), 1599new ResourcePropertySnapshot("property", new List<string> { "original" })
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
43var logs = new List<LogLine>(); 60var logs = new List<LogLine>();
tests\Shared\TestInteractionFileUploadStore.cs (1)
62var files = new List<InteractionFileUpload>();
UserSecretsParameterDefaultTests.cs (3)
105var tasks = new List<Task<bool>>(); 216var tasks = new List<Task<bool>>(); 320var tasks = new List<Task<string>>();
WithTerminalTests.cs (1)
1259var argsList = new List<object>();
WithUrlsTests.cs (2)
471var urlSnapshots = new List<UrlSnapshot[]>(); 587var urlSnapshots = new List<UrlSnapshot[]>();
Aspire.Hosting.TestUtilities (3)
Helpers\Network.cs (1)
28var triedPorts = new List<int>();
Utils\LoggerNotificationExtensions.cs (1)
128var logWatchTasks = new List<Task>();
Utils\ManifestUtils.cs (1)
77var results = new List<JsonNode>();
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
161var valkeyCommand = new List<string>
Aspire.Hosting.Yarp (5)
ConfigurationBuilder\YarpCluster.cs (1)
93var targets = new List<object>(_targets.Length);
ConfigurationBuilder\YarpRoute.cs (2)
276transforms = new List<IReadOnlyDictionary<string, string>>(); 280transforms = new List<IReadOnlyDictionary<string, string>>(routeConfig.Transforms.Count + 1);
YarpJsonConfigGeneratorBuilder.cs (2)
15private readonly List<ClusterConfig> _clusterConfigs = new List<ClusterConfig>(); 16private readonly List<RouteConfig> _routeConfigs = new List<RouteConfig>();
Aspire.Hosting.Yarp.Tests (10)
AddYarpTests.cs (6)
45new List<X509Certificate2>(), 117new List<X509Certificate2>(), 140new List<X509Certificate2>(), 162new List<X509Certificate2>(), 429new List<X509Certificate2>(), 457new List<X509Certificate2>(),
YarpConfigGeneratorTests.cs (4)
34Hosts = new List<string> { "host-A" }, 35Methods = new List<string> { "GET", "POST", "DELETE" }, 88Hosts = new List<string> { "host-B" }, 89Methods = new List<string> { "GET" },
Aspire.Microsoft.Azure.Cosmos (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (3)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (3)
17public List<MockRequest> Requests { get; } = new List<MockRequest>(); 92_headers[header.Name] = values = new List<string>(); 176_headers[header.Name] = values = new List<string>();
Aspire.Oracle.EntityFrameworkCore.Tests (1)
ConformanceTests.cs (1)
151List<Activity> exportedActivities = new();
Aspire.Playground.Tests (2)
src\Shared\X509Certificate2Extensions.cs (1)
158var trustedCertificates = new List<X509Certificate2>();
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (1)
128var logWatchTasks = new List<Task>();
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
77List<string> args = new();
Aspire.Templates.Tests (3)
StarterTemplateRunTestsBase.cs (1)
153var expectedResources = new List<ResourceRow>
tests\Shared\TemplatesTesting\AspireProject.cs (1)
270var tasksToWaitFor = new List<Task> { appRunning.Task, projectsParsed.Task };
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
Aspire.TerminalHost (2)
TerminalHostApp.cs (1)
477var pairs = new List<string>(payloadList.Count);
TerminalHostControlListener.cs (1)
23private readonly List<JsonRpc> _activeRpcs = new();
Aspire.TestTools (2)
TrxReader.cs (2)
21var testResults = new List<TestResult>(); 63var testResults = new List<DetailedTestResult>();
Aspire.TestUtilities (2)
src\Shared\X509Certificate2Extensions.cs (1)
158var trustedCertificates = new List<X509Certificate2>();
TestLoggerFactory.cs (1)
12public List<ILoggerProvider> LoggerProviders { get; } = new();
Aspire.TypeSystem (1)
AttributeDataReader.cs (1)
257var types = new List<Type>();
AzureAppService.ApiService (1)
Program.cs (1)
44var blobNames = new List<string>();
AzureContainerApps.ApiService (1)
Program.cs (1)
49var blobNames = new List<string>();
AzureFunctionsWithDts.Functions (1)
MyOrchestrationTrigger.cs (1)
13var outputs = new List<string>();
AzureStorageEndToEnd.ApiService (1)
Program.cs (1)
23var blobNames = new List<string>();
AzureVirtualNetworkEndToEnd.ApiService (1)
Program.cs (1)
24var blobNames = new List<string>();
BasketService (3)
Models\BasketItem.cs (1)
15var results = new List<ValidationResult>();
Models\CustomerBasket.cs (1)
7public List<BasketItem> Items { get; set; } = new();
Models\Order.cs (1)
8public List<BasketItem> Items { get; set; } = new();
BicepSample.ApiService (6)
Program.cs (6)
75var entries = new List<Entry>(); 106var entries = new List<Entry>(); 130var entries = new List<Entry>(); 157var entries = new List<Entry>(); 177var entries = new List<Entry>(); 196var entries = new List<Entry>();
blazor-gateway (2)
BlazorGatewayOptions.cs (2)
41public List<string> ExcludePaths { get; set; } = new() { "/health", "/alive", "/_otlp/" }; 42public List<string> ExcludeOutboundPaths { get; set; } = new() { "/v1/" };
BlazorHosted.ClientServiceDefaults (1)
BackgroundExportHandler.cs (1)
90var headers = new List<KeyValuePair<string, IEnumerable<string>>>();
BlazorStandalone.ClientServiceDefaults (1)
BackgroundExportHandler.cs (1)
94var headers = new List<KeyValuePair<string, IEnumerable<string>>>();
CatalogDb (1)
Model.cs (1)
99var results = new List<T>();
CatalogModel (1)
Model.cs (1)
102var results = new List<T>();
cdac-build-tool (1)
DirectoryBaselines.cs (1)
25var baselineNames = new List<string>();
CdkSample.ApiService (2)
Program.cs (2)
69var entries = new List<Entry>(); 97var blobNames = new List<string>();
Client.ClientBase.IntegrationTests (13)
ChannelBaseTests.4.0.0.cs (6)
60List<string> eventsCalled = new List<string>(4); 61List<string> proxyEventsCalled = new List<string>(4); 112List<string> eventsCalled = new List<string>(4); 113List<string> proxyEventsCalled = new List<string>(4); 167List<string> eventsCalled = new List<string>(4); 168List<string> proxyEventsCalled = new List<string>(4);
ClientBaseTests.4.0.0.cs (6)
536List<string> eventsCalled = new List<string>(4); 537List<string> proxyEventsCalled = new List<string>(4); 587List<string> eventsCalled = new List<string>(4); 588List<string> proxyEventsCalled = new List<string>(4); 640List<string> eventsCalled = new List<string>(4); 641List<string> proxyEventsCalled = new List<string>(4);
SessionTests.cs (1)
485private List<ICommunicationObject> _objectsToClose = new List<ICommunicationObject>();
ConfigurationSchemaGenerator (13)
ConfigSchemaGenerator.cs (4)
79(configurationPaths ??= new()).Add(path); 80(types ??= new()).Add((INamedTypeSymbol)args[1].Value); 85(exclusionPaths ??= new()).AddRange(exclusionPathsArg.Values.Select(v => $"{path}:{(string)v.Value}")); 96(logCategories ??= new()).AddRange(args[0].Values.Select(v => (string)v.Value));
ConfigurationBindingGenerator.ForSchemaGeneration.cs (1)
42var types = new List<TypeSpec>();
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (5)
24private readonly List<TypeParseInfo> _invocationTypeParseInfo = new(); 702(missingParameters ??= new()).Add(parameterName); 706(invalidParameters ??= new()).Add(parameterName); 716(ctorParams ??= new()).Add(paramSpec); 931Diagnostics ??= new List<DiagnosticInfo>();
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (2)
111infoList ??= new List<InvocationLocationInfo>(); 156private readonly List<InvocationLocationInfo> _infoList = new();
RuntimeSource\SourceGenerators\TypeModelHelper.cs (1)
33(args ??= new()).AddRange(current.TypeArguments);
CosmosEndToEnd.ApiService (1)
Program.cs (1)
28var entries = new List<T>();
crossgen2 (12)
Program.cs (7)
33private List<ModuleDesc> _referenceableModules = new(); 357List<EcmaModule> inputModules = new List<EcmaModule>(); 358List<EcmaModule> rootingModules = new List<EcmaModule>(); 408List<string> mibcFiles = new List<string>(); 414List<ModuleDesc> versionBubbleModules = new List<ModuleDesc>(versionBubbleModulesHash); 448List<ICompilationRootProvider> compilationRoots = new List<ICompilationRootProvider>(); 810List<TypeDesc> genericArguments = new List<TypeDesc>();
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (4)
45List<string> paths = new(); 177List<string> details = new List<string>(); 236List<string> rspFile = new List<string>(); 430var tokens = new List<string>();
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (1)
171List<string> instructionSetParams = new List<string>();
Crossgen2Tasks (7)
PrepareForReadyToRunCompilation.cs (7)
67private List<ITaskItem> _compileList = new(); 68private List<ITaskItem> _symbolsCompileList = new(); 69private List<ITaskItem> _r2rFiles = new(); 70private List<ITaskItem> _r2rReferences = new(); 71private List<ITaskItem> _r2rCompositeReferences = new(); 72private List<ITaskItem> _r2rCompositeInput = new(); 73private List<ITaskItem> _r2rCompositeUnrootedInput = new();
csc (4)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
220var buildRequestArguments = new List<string>(arguments);
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 541var list = new List<string>(count);
CSharpSyntaxGenerator (7)
Grammar\GrammarGenerator.cs (1)
24var rules = types.ToDictionary(n => n.Name, _ => new List<Production>());
Model\AbstractNode.cs (1)
13public readonly List<Field> Fields = new List<Field>();
Model\Field.cs (1)
69public List<Kind> Kinds = new List<Kind>();
Model\Node.cs (2)
21public List<Kind> Kinds = new List<Kind>(); 23public readonly List<Field> Fields = new List<Field>();
Model\TreeType.cs (1)
38public List<TreeTypeChild> Children = new List<TreeTypeChild>();
SourceWriter.cs (1)
769: new List<Field>();
dotnet (72)
_generated\114\WorkloadHistoryJsonSerializerContext.ListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<string>(),
_generated\154\SlnfJsonSerializerContext.ListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<string>(),
_generated\183\SdkVulnerabilityCacheJsonContext.ListSdkCveCacheSummary.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>(),
CommandFactory\CommandResolution\MuxerCommandSpecMaker.cs (1)
12var arguments = new List<string>();
CommandFactory\CommandResolution\PackagedCommandSpecFactory.cs (1)
121var arguments = new List<string>();
CommandFactory\CommandResolution\ProjectDependenciesCommandResolver.cs (1)
160var allowedCommandExtensions = new List<string>();
CommandFactory\CommandResolution\PublishPathCommandSpecFactory.cs (1)
50var arguments = new List<string>();
CommandFactory\CommandResolution\ToolPathCalculator.cs (1)
70var availableVersions = new List<NuGetVersion>();
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (1)
85var tasks = new List<(IBuildServer, Task)>();
Commands\New\BuiltInTemplatePackageProvider.cs (2)
33var packages = new List<ITemplatePackage>(); 46var templateFoldersToInstall = new List<string>();
Commands\New\NewCommandParser.cs (1)
96var builtIns = new List<(Type InterfaceType, IIdentifiedComponent Instance)>();
Commands\New\OptionalWorkloadProvider.cs (1)
32var list = new List<TemplatePackage>();
Commands\Pack\PackCommand.cs (3)
93var args = parseResult.GetValue(definition.SlnOrProjectOrFileArgument)?.ToList() ?? new List<string>(); 106Exclude = new List<string>(), 143var args = parseResult.GetValue(definition.SlnOrProjectOrFileArgument)?.ToList() ?? new List<string>();
Commands\Package\List\PackageListCommand.cs (1)
117var args = new List<string>
Commands\Package\Remove\PackageRemoveCommand.cs (1)
60var args = new List<string>()
Commands\Package\Search\PackageSearchCommand.cs (1)
15var args = new List<string>
Commands\Project\Convert\ProjectConvertCommand.cs (1)
82var refIncludeItems = new List<IncludedItem>();
Commands\Reference\Add\ReferenceAddCommand.cs (2)
124var projectReferenceArguments = new List<string>(); 125var fileBasedAppReferenceArguments = new List<string>();
Commands\Run\RunCommand.cs (1)
968var tokensMinusProject = new List<string>();
Commands\Run\RunCommandSelector.cs (2)
405devices = new(targetResult.Items.Length); 558List<(string Display, DeviceItem Device)> choices = new(devices.Count);
Commands\Solution\Add\SolutionAddCommand.cs (1)
315var newProjects = new List<string>();
Commands\Test\MTP\IPC\Serializers\TestResultMessagesSerializer.cs (1)
308var exceptionMessages = new List<ExceptionMessage>();
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (2)
58var parentCommands = new List<Command>(); 169var groupedModules = new List<(string[], string[])>();
Commands\Test\MTP\MSBuildUtility.cs (3)
133var allGroups = new List<ParallelizableTestModuleGroupWithSequentialInnerModules>(); 191var allModules = new List<TestModule>(); 426var nonDeviceProjects = new List<(string ProjectFilePath, string? Configuration, string? Platform)>();
Commands\Test\MTP\SolutionAndProjectUtility.cs (2)
263var projects = new List<ParallelizableTestModuleGroupWithSequentialInnerModules>(); 346innerModules ??= new List<TestModule>();
Commands\Test\MTP\Terminal\AnsiTerminalTestProgressFrame.cs (2)
227RenderedLines = new List<RenderedProgressItem>(progress.Length * 2); 339var linesToRender = new List<object>(progress.Length);
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (1)
59private readonly List<HandshakeFailureRecord> _handshakeFailures = new();
Commands\Test\MTP\TestModulesFilterHandler.cs (2)
80var testApplications = new List<ParallelizableTestModuleGroupWithSequentialInnerModules>(_testModulePaths.Count); 114return new List<string>();
Commands\Test\VSTest\TestCommand.cs (1)
296var artifactsPostProcessArgs = new List<string> { "--artifactsProcessingMode-postprocess", $"--testSessionCorrelationId:{testSessionCorrelationId}" };
Commands\Test\VSTest\VSTestArgumentConverter.cs (1)
93var newArgList = new List<string>();
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
321var message = new List<string> 343var message = new List<string>
Commands\VSTest\VSTestCommand.cs (1)
23var args = new List<string>();
Commands\Workload\Install\FileBasedInstaller.cs (1)
192var tempDirsToDelete = new List<string>();
Commands\Workload\Install\WorkloadInstallCommand.cs (2)
90var validWorkloadIds = new List<string>(); 331var urls = new List<string>();
Commands\Workload\Install\WorkloadManifestUpdater.Managed.cs (1)
119var downloads = new List<WorkloadDownload>();
Commands\Workload\Restore\WorkloadRestoreCommand.cs (3)
80var allWorkloadId = new List<WorkloadId>(); 117var slnFiles = new List<string>(); 118var projectFiles = new List<string>();
Commands\Workload\Update\WorkloadUpdateCommand.cs (1)
216var urls = new List<string>();
Extensions\ParseResultExtensions.cs (1)
69List<string> otherTokens = new(parseResult.Tokens.Count - 1);
MSBuildSession.cs (1)
266var loggers = new List<ILogger>(capacity: 2);
NugetPackageDownloader\WorkloadUnixFilePermissionsFileList.cs (1)
29var files = new List<FileListFile>();
NugetSearch\NugetSearchApiResultDeserializer.cs (1)
26var resultPackages = new List<SearchResultPackage>();
SdkVulnerability\SdkVulnerabilityChecker.cs (1)
79var cves = new List<SdkCveInfo>();
SlnfFileHelper.cs (2)
54public List<string> Projects { get; set; } = new(); 83Projects = projects?.Select(NormalizePathSeparatorsToBackslash).ToList() ?? new List<string>()
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26424.106\contentFiles\cs\net11.0\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 541var list = new List<string>(count);
Telemetry\AllowListToSendFirstAppliedOptions.cs (1)
20var result = new List<TelemetryEntryFormat>();
Telemetry\AllowListToSendFirstArgument.cs (1)
16var result = new List<TelemetryEntryFormat>();
Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
17var result = new List<TelemetryEntryFormat>();
Telemetry\MacAddressGetter.cs (1)
35return new List<string>();
Telemetry\TopLevelCommandNameAndOptionToLog.cs (1)
20var result = new List<TelemetryEntryFormat>();
ToolManifest\ToolManifestEditor.cs (3)
176var commands = new List<string>(); 229var errors = new List<string>(); 254var packageLevelErrors = new List<string>();
ToolManifest\ToolManifestFinder.cs (1)
264var result = new List<FilePath>();
ToolPackage\ToolPackageDownloader.cs (1)
171var managedCriteria = new List<SelectionCriteria>(1);
dotnet-aot (19)
_generated\72\SlnfJsonSerializerContext.ListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<string>(),
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\MuxerCommandSpecMaker.cs (1)
12var arguments = new List<string>();
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\PublishPathCommandSpecFactory.cs (1)
50var arguments = new List<string>();
src\sdk\src\Cli\dotnet\Commands\Run\AotRunCommand.cs (1)
226var messages = new List<(string Message, bool IsError)>();
src\sdk\src\Cli\dotnet\Extensions\ParseResultExtensions.cs (1)
69List<string> otherTokens = new(parseResult.Tokens.Count - 1);
src\sdk\src\Cli\dotnet\NugetPackageDownloader\WorkloadUnixFilePermissionsFileList.cs (1)
29var files = new List<FileListFile>();
src\sdk\src\Cli\dotnet\NugetSearch\NugetSearchApiResultDeserializer.cs (1)
26var resultPackages = new List<SearchResultPackage>();
src\sdk\src\Cli\dotnet\SdkVulnerability\SdkVulnerabilityChecker.cs (1)
79var cves = new List<SdkCveInfo>();
src\sdk\src\Cli\dotnet\SlnfFileHelper.cs (2)
54public List<string> Projects { get; set; } = new(); 83Projects = projects?.Select(NormalizePathSeparatorsToBackslash).ToList() ?? new List<string>()
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendFirstAppliedOptions.cs (1)
20var result = new List<TelemetryEntryFormat>();
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendFirstArgument.cs (1)
16var result = new List<TelemetryEntryFormat>();
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
17var result = new List<TelemetryEntryFormat>();
src\sdk\src\Cli\dotnet\Telemetry\MacAddressGetter.cs (1)
35return new List<string>();
src\sdk\src\Cli\dotnet\Telemetry\TopLevelCommandNameAndOptionToLog.cs (1)
20var result = new List<TelemetryEntryFormat>();
src\sdk\src\Cli\dotnet\ToolManifest\ToolManifestEditor.cs (3)
176var commands = new List<string>(); 229var errors = new List<string>(); 254var packageLevelErrors = new List<string>();
src\sdk\src\Cli\dotnet\ToolManifest\ToolManifestFinder.cs (1)
264var result = new List<FilePath>();
dotnet-dev-certs (20)
_generated\2\DevCertsJsonSerializerContext.ListCertificateReport.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>(),
_generated\3\DevCertsJsonSerializerContext.ListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<string>(),
Program.cs (3)
55var newArgs = new List<string>(args); 307var validCertificates = new List<X509Certificate2>(); 537var dnsNames = new List<string>();
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
140var certificates = new List<X509Certificate2>(); 805var extensions = new List<X509Extension>(); 1076var certificatesToDispose = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
380var certsFromStore = new List<X509Certificate2>(); 426var certsFromDisk = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
843var nssDbs = new List<string>(); 863var nssDbs = new List<NssDb>(); 1018var certs = new List<FileInfo>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
16Values = new List<string>(); 105var parts = new List<string>();
dotnet-format (5)
Analyzers\CodeAnalysisResult.cs (1)
35_dictionary.Add(project, new List<Diagnostic>() { diagnostic });
CodeFormatter.cs (1)
75var formattedFiles = new List<FormattedFile>(fileCount);
Formatters\EndOfLineFormatter.cs (1)
36var changes = new List<TextChange>();
Utilities\ProcessRunner.cs (2)
75var errorLines = new List<string>(); 76var outputLines = new List<string>();
dotnet-getdocument (8)
Commands\InvokeCommand.cs (1)
54var args = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
16Values = new List<string>(); 105var parts = new List<string>();
dotnet-Microsoft.XmlSerializer.Generator (7)
Sgen.cs (7)
32var types = new List<string>(); 35var errs = new List<string>(); 236List<Type> loadedTypes = new List<Type>(); 264var mappings = new List<XmlMapping>(); 265var importedTypes = new List<Type>(); 574var referencelist = new List<string>(); 667var parsedArgs = new List<string>();
dotnet-openapi (7)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
16Values = new List<string>(); 105var parts = new List<string>();
dotnet-razorpagegenerator (1)
Program.cs (1)
94var results = new List<RazorPageGeneratorResult>();
dotnet-sourcelink (4)
dotnet-sql-cache (7)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
16Values = new List<string>(); 105var parts = new List<string>();
dotnet-suggest (1)
FileSuggestionRegistration.cs (1)
73var allRegistration = new List<Registration>();
dotnet-svcutil (1)
GlobalTool.cs (1)
18var arguments = new List<string>(args);
dotnet-svcutil-lib (255)
CmdCredentialsProvider.cs (1)
149var candidateCerts = new List<X509Certificate2>();
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
21private List<string> _addedToCodeCompileUnit = new List<string>(); 22private List<string> _needToAdd = new List<string>();
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (2)
18private List<CodeTypeDeclaration> _eventArgsList = new List<CodeTypeDeclaration>(); 215List<CodeMemberEvent> receivedEvents = new List<CodeMemberEvent>();
CodeDomFixup\CodeDomVisitors\EnsureAdditionalAssemblyReference.cs (1)
16private List<string> _alreadyAdded = new List<string>();
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
110List<string> namespaceToAdd = new List<string>();
CodeDomFixup\CodeDomVisitors\TypeNameFixer.cs (1)
14private readonly List<string> _reservedKeyword = new List<string>() { "file", "required", "scoped" };
CodeDomFixup\ConfigToCode.cs (4)
32List<string> endpointNames = new List<string>(); 113IList<CodeTypeMember> toRemoves = new List<CodeTypeMember>(); 180IList<CodeTypeMember> toRemoves = new List<CodeTypeMember>(); 308IList<CodeTypeMember> toRemoves = new List<CodeTypeMember>();
CodeDomFixup\EndpointSelector.cs (1)
18private static List<string> s_bindingValidationErrors = new List<string>();
CodeDomFixup\VisitorFixup.cs (2)
58List<CodeDomVisitor> list = new List<CodeDomVisitor>(visitors); 70List<CodeDomVisitor> list = new List<CodeDomVisitor>(visitors);
CommandLineParser.cs (1)
27private static List<CommandSwitch> s_allSwitches = new List<CommandSwitch>();
CommandProcessorOptions.cs (5)
62private static readonly List<string> s_cmdLineOverwriteSwitches = new List<string> { Switches.NoLogo.Name, Switches.Verbosity.Name, Switches.ToolContext.Name, Switches.ProjectFile.Name, Switches.AcceptCertificate.Name, Switches.ServiceContract.Name, Switches.Language.Name }; 105this.ReferencedTypes = new List<Type>(); 106this.ReferencedAssemblies = new List<Assembly>(); 107this.ReferencedCollectionTypes = new List<Type>(); 912List<Type> coreTypes = new List<Type>
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
3957List<String> lines = new List<String>();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEventCache.cs (1)
544_pages = new List<XmlEvent[]>();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriterSettings.cs (2)
69private List<XmlQualifiedName> _cdataSections = new List<XmlQualifiedName>(); 316clonedSettings._cdataSections = new List<XmlQualifiedName>(_cdataSections);
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXmlWriter.cs (1)
78_fragment = new List<XmlNode>();
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (1)
1830List<XmlElement> elements = new List<XmlElement>();
FrameworkFork\Microsoft.Xml\Xml\Dom\XPathNodeList.cs (1)
23_list = new List<XmlNode>();
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (1)
1962runningPositions = new List<RangePositionInfo>();
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (5)
383List<Type> uniqueTypes = new List<Type>(); 883_rules = new List<ConversionRule>(); 903List<Type> types = new List<Type>(); 916List<Type> types = new List<Type>(); 929List<ConversionRule> subset = new List<ConversionRule>();
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (1)
753List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
535List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaDeclBase.cs (1)
105values = new List<string>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (1)
199_defaultAttdefs = new List<IDtdDefaultAttributeInfo>();
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (2)
791builder._ElementDef._ElementDecl.Values = new List<string>((string[])obj); 1091builder._AttributeDef._AttDef.Values = new List<string>((string[])obj);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (1)
19private List<XmlSchemaObjectEntry> _entries = new List<XmlSchemaObjectEntry>();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (2)
1157newMembers = new List<XmlSchemaElement>(); 1479List<XmlSchema> reprocessList = new List<XmlSchema>();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (3)
3585List<T> listDst = new List<T>(); 3613List<object> listDst = new List<object>(); 3625return new List<string>(XmlConvert.SplitString(value));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMapping.cs (1)
126List<XmlRootAttribute> list = new List<XmlRootAttribute>(type.GetTypeInfo().GetCustomAttributes<XmlRootAttribute>());
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
517List<XmlSchemaProviderAttribute> attrs = new List<XmlSchemaProviderAttribute>(type.GetTypeInfo().GetCustomAttributes<XmlSchemaProviderAttribute>(false));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
1406if (IsCyclicReferencedType(itemElement, new List<string>(1) { identifier }))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
99List<Type> argTypes = new List<Type>(); 233List<Type> argTypes = new List<Type>(); 615List<Type> argTypes = new List<Type>(); 616List<string> argNames = new List<string>(); 634List<Label> caseLabels = new List<Label>(); 635List<string> retValues = new List<string>(); 775List<Type> argTypes = new List<Type>(); 956List<Type> argTypes = new List<Type>(5); 957List<string> argNames = new List<string>(5); 1394List<Type> argTypes = new List<Type>(); 2113List<Type> argTypes = new List<Type>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheAxisQuery.cs (2)
20this.outputBuffer = new List<XPathNavigator>(); 25this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheOutputQuery.cs (2)
23this.outputBuffer = new List<XPathNavigator>(); 29this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\followingsibling.cs (2)
23_parentStk = new List<XPathNavigator>(); 28_parentStk = new List<XPathNavigator>(other._parentStk);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingsibling.cs (1)
51List<XPathNavigator> parentStk = new List<XPathNavigator>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\querybuilder.cs (1)
445List<Query> argList = new List<Query>(numArgs);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\SortQuery.cs (2)
24_results = new List<SortKey>(); 31_results = new List<SortKey>(other._results);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (3)
788_members = new List<DataMember>(); 929List<DataMember> tempMembers = new List<DataMember>(); 1108List<Member> membersInHierarchy = new List<Member>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
917List<CodeTypeReference> knownTypeReferences = new List<CodeTypeReference>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
223_argList = new List<ArgBuilder>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (3)
1736List<int> nestedParamCounts = new List<int>(); 2433_nestedParamCounts = new List<int>(); 2440_paramGenericInfos = new List<GenericInfo>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (1)
112this.knownTypeList = new List<Type>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (1)
420List<Type> types = new List<Type>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (2)
276List<DataMember> tempMembers = new List<DataMember>(fields.Length); 277List<long> tempValues = new List<long>(fields.Length);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (3)
263tempMembers = new List<DataMember>(BaseContract.Members); //Don't set tempMembers = BaseContract.Members and then start adding, because this alters the base's reference. 267tempMembers = new List<DataMember>(); 307tempMembers = new List<DataMember>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ImportOptions.cs (2)
53_referencedTypes = new List<Type>(); 65_referencedCollectionTypes = new List<Type>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (7)
245List<XmlSchemaType> knownTypesForObject = new List<XmlSchemaType>(); 279baseTypeInfo.knownTypes = new List<XmlSchemaType>(); 284baseTypeInfo = new SchemaObjectInfo(null, null, null, new List<XmlSchemaType>()); 336List<XmlSchemaRedefine> list = new List<XmlSchemaRedefine>(); 687dataContract.Members = new List<DataMember>(); 1203dataContract.Values = new List<long>(); 1204dataContract.Members = new List<DataMember>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableServices.cs (1)
20List<XmlNode> nodeList = new List<XmlNode>();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (1)
1383List<int> list = new List<int>();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
279IList<Tuple<string, string>> exceptionInfo = new List<Tuple<string, string>>()
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
248List<Type> types = new List<Type>(typeNames.Length);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (1)
34_waiterList = new List<IQueueWaiter>();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InternalBufferManager.cs (1)
62List<BufferPool> bufferPoolList = new List<BufferPool>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimSet.cs (1)
27List<Claim> claims = new List<Claim>(2);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (3)
163List<Claim> claims = new List<Claim>(); 319List<string> dnsEntries = new List<string>(); 366List<Claim> claims = new List<Claim>(2);
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
63_claimSets = new List<ClaimSet>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\UnconditionalPolicy.cs (2)
167List<ClaimSet> issuances = new List<ClaimSet>(1); 235identities = new List<IIdentity>(1);
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (5)
126List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 280List<SecurityKey> temp = new List<SecurityKey>(1); 334List<IAuthorizationPolicy> ret = new List<IAuthorizationPolicy>(authorizationPolicies.Count); 394public static ReadOnlyCollection<T> Instance = new ReadOnlyCollection<T>(new List<T>()); 409List<IIdentity> identities = new List<IIdentity>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (4)
58_serializerEntries = new List<SecurityTokenSerializer.SerializerEntries>(); 86_tokenEntries = new List<TokenEntry>(); 87_keyIdentifierEntries = new List<SecurityTokenSerializer.KeyIdentifierEntry>(); 88_keyIdentifierClauseEntries = new List<SecurityTokenSerializer.KeyIdentifierClauseEntry>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (2)
21_clauses = new List<SecurityKeyIdentifierClause>(InitialSize); 30_clauses = new List<SecurityKeyIdentifierClause>(clauses.Length);
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
37List<StrEntry> strEntries = new List<StrEntry>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
40List<StrEntry> strEntries = new List<StrEntry>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (4)
17: base(new List<AddressHeader>()) 22: base(new List<AddressHeader>(addressHeaders)) 77List<AddressHeader> results = new List<AddressHeader>(); 179List<AddressHeader> headerList = new List<AddressHeader>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
919_newStrings = new List<XmlDictionaryString>(); 949_bytes = new List<byte>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChainedAsyncResult.cs (2)
143_collection = new List<ICommunicationObject>(); 178_collection = new List<ICommunicationObject>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (5)
85itemsToClose = new List<TItem>(); 101endpointKeysToRemove = new List<TKey>(); 236_busyConnections = new List<TItem>(); 370List<TItem> itemsToClose = new List<TItem>(); 443itemsToClose = new List<TItem>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
46registryEntry = new List<ConnectionPool>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
498List<XmlElement> httpAuthAssertions = new List<XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
217List<TItem> itemsToClose = new List<TItem>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (1)
640List<FaultReasonText> translations = new List<FaultReasonText>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (1)
758List<MessageHeaderInfo> understoodHeaders = new List<MessageHeaderInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (3)
166List<string> keys = new List<string>(); 226List<object> values = new List<object>(); 801List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(_propertyCount);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
212List<Wsrm11PolicyAlternative> wsrmAlternatives = new List<Wsrm11PolicyAlternative>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestChannel.cs (1)
16private List<IRequestBase> _outstandingRequests = new List<IRequestBase>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (2)
33_channelsList = new List<IChannel>(); 274objectList = new List<ICommunicationObject>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
1323bodyPartsFromBindings = new List<string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
613List<CodeTypeReference> wrapperKnownTypes = new List<CodeTypeReference>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (5)
376List<Type> types = new List<Type>(); 428List<Type> types = new List<Type>(); 461List<object> attrTypeAttributes = new List<object>(); 600List<Type> types = new List<Type>(GetInheritedContractTypes(interfaceType)); 629List<MethodInfo> methods = new List<MethodInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (5)
381List<Type> knownTypes = new List<Type>(); 766List<Type> inheritedCallbackTypes = new List<Type>(); 1291List<MemberInfo> contractMembers = new List<MemberInfo>(); 1352List<MessagePartDescription> bodyPartDescriptionList = new List<MessagePartDescription>(); 1353List<MessageHeaderDescription> headerPartDescriptionList = new List<MessageHeaderDescription>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (2)
2071List<XmlElement> embeddedPolicies = new List<XmlElement>(); 2115List<XmlElement> policyReferences = new List<XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
602private List<XmlMembersMapping> _mappings = new List<XmlMembersMapping>(); 648List<XmlMembersMapping> uniqueMappings = new List<XmlMembersMapping>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
423List<ICommunicationObject> list = new List<ICommunicationObject>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
84_knownTypes = new List<Type>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
158_requests = new List<IDuplexRequest>(); 172_timedOutRequests = new List<ICorrelatorKey>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
27List<Attr> attrSet = new List<Attr>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointDispatcherTable.cs (1)
34_cachedEndpoints = new List<EndpointDispatcher>(optimizationThreshold);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (3)
19List<FaultContractInfo> faultContractInfoList = new List<FaultContractInfo>(); 31faultContractInfoList = new List<FaultContractInfo>(faultContractInfoCollection); 96faultInfos = new List<FaultContractInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InvokerUtil.cs (1)
37var outputParamPositions = new List<int>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerFaultFormatter.cs (1)
74faultInfos = new List<XmlSerializerOperationBehavior.Reflector.XmlSerializerFaultContractInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
482_attributes[headerDescription.Index] = new List<MessageHeader<object>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\DXD.cs (4)
140public List<XmlDictionaryString> SecureConversationDictionaryStrings = new List<XmlDictionaryString>(); 205public List<XmlDictionaryString> SecurityAlgorithmDictionaryStrings = new List<XmlDictionaryString>(); 234public List<XmlDictionaryString> Feb2005DictionaryStrings = new List<XmlDictionaryString>(); 235public List<XmlDictionaryString> Dec2005DictionaryString = new List<XmlDictionaryString>();
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (1)
776List<AddressHeader> headerList = new List<AddressHeader>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\MessagePartSpecification.cs (4)
25_headerTypes = new List<XmlQualifiedName>(); 105_headerTypes = new List<XmlQualifiedName>(headerTypes.Count); 123List<XmlQualifiedName> noDuplicates = new List<XmlQualifiedName>(_headerTypes.Count); 173_headerTypes = new List<XmlQualifiedName>(headerTypes.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ReferenceList.cs (1)
21private List<string> _referredIds = new List<string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
144_channelSupportingTokenAuthenticatorSpecification = new Collection<SupportingTokenAuthenticatorSpecification>(new List<SupportingTokenAuthenticatorSpecification>(factory._channelSupportingTokenAuthenticatorSpecification));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (3)
525List<Claim> claims = new List<Claim>(2); 529List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 1053public static ReadOnlyCollection<T> Instance = new ReadOnlyCollection<T>(new List<T>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (1)
33_knownTypes = knownTypes ?? new List<Type>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
276List<SecurityKey> temp = new List<SecurityKey>(1);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSKeyInfoSerializer.cs (1)
20List<SecurityTokenSerializer.SerializerEntries> serializerEntries = new List<SecurityTokenSerializer.SerializerEntries>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecureConversationDec2005.cs (1)
49_knownClaimTypes = new List<Type>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecureConversationFeb2005.cs (1)
49_knownClaimTypes = new List<Type>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
3083_drivers = new List<WSSecurityPolicy>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (2)
101_serializerEntries = new List<SerializerEntries>(); 145_tokenEntries = new List<TokenEntry>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (2)
175_entropyAuthenticators = new List<SecurityTokenAuthenticator>(2); 238List<RequestSecurityTokenResponse> rstrCollection = new List<RequestSecurityTokenResponse>(2);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (4)
18_items = new List<T>(); 27_items = new List<T>(); 38_items = new List<T>(list); 49_items = new List<T>(list.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (5)
17_items = new List<T>(); 26_items = new List<T>(); 37_items = new List<T>(list); 48_items = new List<T>(list.Length); 63_items = new List<T>(list);
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlBuffer.cs (1)
66_sections = new List<Section>(1);
FrameworkFork\System.Web.Services\Configuration\WebServicesSection.cs (3)
58object[] attrs = new List<object>(extensionType.GetTypeInfo().GetCustomAttributes(typeof(XmlFormatExtensionAttribute), false)).ToArray(); 76attrs = new List<object>(extensionType.GetTypeInfo().GetCustomAttributes(typeof(XmlFormatExtensionPrefixAttribute), false)).ToArray(); 111object[] attrs = new List<object>(type.GetTypeInfo().GetCustomAttributes(typeof(XmlFormatExtensionPointAttribute), false)).ToArray();
Metadata\MetadataDocumentLoader.cs (5)
45private List<string> _processedUri = new List<string>(); 46private List<string> _updatedUri = new List<string>(); 57private List<Uri> metadataSourceFiles { get; set; } = new List<Uri>(); 63private readonly List<MetadataSection> _metadataSections = new List<MetadataSection>(); 69private readonly List<Exception> _documentLoadExceptions = new List<Exception>();
Metadata\MetadataDocumentSaver.cs (3)
41this.MetadataFiles = new List<MetadataFileInfo>(); 44this.UnresolvedReferences = new List<UnresolvedUri>(); 277var importedWsdl = new List<string>();
Metadata\MetadataFileNameManager.cs (1)
18private List<string> _files = new List<string>();
Metadata\ServiceDescriptor.cs (9)
65public IEnumerable<ServiceEndpoint> Endpoints { get; private set; } = new List<ServiceEndpoint>(); 67public IEnumerable<Binding> Bindings { get; private set; } = new List<Binding>(); 69public IEnumerable<ContractDescription> Contracts { get; private set; } = new List<ContractDescription>(); 73public IEnumerable<MetadataConversionError> MetadataConversionErrors { get; private set; } = new List<MetadataConversionError>(); 77public IEnumerable<ServiceInfo> Services { get; private set; } = new List<ServiceInfo>(); 177var orphanContracts = new List<ContractDescription>(this.Contracts); 178var services = new List<ServiceInfo>(); 183List<ContractDescription> contracts = new List<ContractDescription>(); 380this.Contracts = new List<ContractDescription> { contract };
Shared\MSBuildProj.cs (6)
45private List<string> _targetFrameworks = new List<string>(); 46private List<string> _endOfLifeTargetFrameworks = new List<string>(); 763excludeDependencies = new List<ProjectDependency>(); 779dependencies = new List<ProjectDependency>(); 794var packageDependencies = new List<ProjectDependency>(); 872var assemblyDependencies = new List<ProjectDependency>();
Shared\Options\ApplicationOptions.cs (2)
25private List<string> _warnings { get; set; } = new List<string>(); 29private List<Exception> _errors { get; set; } = new List<Exception>();
Shared\Options\ListValue.cs (1)
21private List<TValue> InnerList { get; set; } = new List<TValue>();
Shared\Options\ListValueOption.cs (1)
119collection = new List<string>() { jToken.Value<string>() };
Shared\Options\OptionBase.cs (1)
37this.Aliases = new List<string>();
Shared\Options\OptionValueParser.cs (1)
139var list = new List<object>();
Shared\Options\WCFCSUpdateOptions.cs (3)
32private List<string> _deserializedCollectionAssemblies = new List<string>(); 122e.Value = new List<object> { item1.Trim() }; 160e.Value = new List<object> { ParseNamespace(jToken.Value<string>(), sender as OptionBase) };
Shared\ProjectDependency.cs (4)
29private static readonly IReadOnlyList<string> s_binaryExtensions = new List<string> { ".exe", ".dll" }.AsReadOnly(); 30private static readonly IReadOnlyList<string> s_projectExtensions = new List<string> { ".csproj", ".vbproj", ".fsproj", ".vcxproj", ".esproj" }.AsReadOnly(); 31private static readonly IReadOnlyList<string> s_exeExtensions = new List<string> { ".exe" }.AsReadOnly(); 416internal static List<ProjectDependency> IgnorableDependencies = new List<ProjectDependency>
Shared\TargetFrameworkHelper.cs (5)
16internal static readonly List<string> s_currentSupportedVersions = new List<string>() { "8.0", "9.0", "10.0" }; 23{"Legacy", new List<ProjectDependency> { 30{"Current", new List<ProjectDependency> { 37internal static List<ProjectDependency> FullFrameworkReferences = new List<ProjectDependency>() 42internal static List<ProjectDependency> ServiceModelPackages = new List<ProjectDependency>()
TypeLoader.cs (3)
16private static List<string> s_loadTypesWarnings = new List<string>(); 40List<Type> listType = new List<Type>(); 96List<Type> unavailableTypes = new List<Type>();
dotnet-svcutil-lib.Tests (5)
FixupUtil.cs (2)
22_replacements = new List<ReplaceInfo> 99var replacements = new List<ReplaceInfo>(_replacements);
TestInit.cs (3)
468var fileLines1 = new List<string>(); 469var fileLines2 = new List<string>(); 470var exceptLines = new List<string>() { "<ImplicitUsings>enable</ImplicitUsings>", "<Nullable>enable</Nullable>", "<Content CopyToOutputDirectory" };
dotnet-svcutil.xmlserializer (11)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (2)
100values = new List<string>(); 130result = new List<string>();
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (1)
31private readonly List<Type> _types = new List<Type>();
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (1)
30_assemblies = new List<Assembly>();
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (3)
257_parent._inputParameters = new List<string>(_arguments.GetArguments(String.Empty)); 333_parent._referencedTypes = new List<Type>(); 334_parent._referencedAssemblies = new List<Assembly>(referenceArgs.Count);
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
124private static readonly List<string> s_existingFileNames = new List<string>();
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (1)
181var options = new List<ArgumentInfo>();
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (2)
47List<XmlMapping> mappings = new List<XmlMapping>(); 119List<Type> types = new List<Type>();
dotnet-user-jwts (17)
_generated\0\BindingExtensions.g.cs (2)
74var temp1 = new List<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey>(); 143(temp ??= new global::System.Collections.Generic.List<string>()).Add($"'{section.Key}'");
Commands\CreateCommand.cs (2)
204var roles = rolesOption.HasValue() ? rolesOption.Values : new List<string>(); 207var scopes = scopesOption.HasValue() ? scopesOption.Values : new List<string>();
Helpers\ConsoleTable.cs (2)
14private readonly List<string> _columns = new(); 15private readonly List<string[]> _rows = new();
Helpers\DevJwtCliHelpers.cs (2)
130return new List<string>(); 191List<string> iisUrls = new();
Helpers\Jwt.cs (2)
11public IEnumerable<string> Scopes { get; set; } = new List<string>(); 13public IEnumerable<string> Roles { get; set; } = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
16Values = new List<string>(); 105var parts = new List<string>();
dotnet-user-secrets (7)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
16Values = new List<string>(); 105var parts = new List<string>();
dotnet-watch (6)
CommandLine\CommandLineOptions.cs (2)
205var arguments = new List<string>(); 268var argumentsWithoutBinLogBuilder = new List<string>();
Watch\BuildEvaluator.cs (2)
76var arguments = new List<string>() 180var msbuildFiles = new List<(string fileName, DateTime lastModifiedUtc)>();
Watch\MsBuildFileSetFactory.cs (2)
54var capturedOutput = new List<OutputLine>(); 154var arguments = new List<string>
GenerateAnalyzerNuspec (2)
Program.cs (2)
109var allTargets = new List<string>(); 200var fileNamesToExclude = new List<string>() { "Humanizer.dll", "MessagePack.dll", "MessagePack.Annotations.dll" };
GenerateDocumentationAndConfigFiles (41)
Program.cs (3)
265var fileNamesWithValidationFailures = new List<string>(); 1770var compilerVisibleProperties = new List<string>(); 1808var compilerVisibleProperties = new List<string>();
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
23return new List<string>(capacity: 0);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
150var attributes = new List<AttributeData>(); 217var attributes = new List<AttributeData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (3)
218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
60var result = new List<TextChange>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var newMembers = new List<SyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (2)
63var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 66var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
54var names = new List<string>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
GetDocument.Insider (9)
Commands\GetDocumentCommandWorker.cs (2)
116var hostArgs = new List<string> { $"--{HostDefaults.ApplicationKey}={assemblyName}" }; 299var filePathList = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
16Values = new List<string>(); 105var parts = new List<string>();
HelixTestTasks (5)
ComputeBatchTimeout.cs (1)
84var result = new List<ITaskItem>();
GroupWorkItems.cs (4)
46var itemsWithSize = new List<(ITaskItem item, long size)>(); 67var result = new List<ITaskItem>(); 71var smallItems = new List<(ITaskItem item, long size)>(); 94batchAssignments[i] = new List<ITaskItem>();
ILAssembler (23)
EntityRegistry.cs (17)
25private readonly List<ManifestResourceEntity> _manifestResourceEntities = new(); 27private readonly List<MemberReferenceEntity> _memberReferences = new(); 588_seenEntities[table] = entities = new List<EntityBase>(); 1220public List<GenericParameterConstraintEntity> GenericParameterConstraints { get; } = new(); 1222public List<MethodDefinitionEntity> Methods { get; } = new(); 1224public List<MethodImplementationEntity> MethodImplementations { get; } = new(); 1226public List<FieldDefinitionEntity> Fields { get; } = new(); 1228public List<PropertyEntity> Properties { get; } = new(); 1230public List<EventEntity> Events { get; } = new(); 1232public List<InterfaceImplementationEntity> InterfaceImplementations { get; } = new(); 1265public List<GenericParameterConstraintEntity> Constraints { get; } = new(); 1289public List<ParameterEntity> Parameters { get; } = new(); 1294public List<GenericParameterConstraintEntity> GenericParameterConstraints { get; } = new(); 1355private readonly List<Blob> _placesToWriteResolvedHandle = new(); 1442public List<(MethodSemanticsAttributes Semantic, EntityBase Method)> Accessors { get; } = new(); 1453public List<(MethodSemanticsAttributes Semantic, EntityBase Method)> Accessors { get; } = new(); 1547public List<SequencePoint> SequencePoints { get; } = new();
GrammarVisitor.cs (5)
103private readonly List<VTableFixupSupport.VTableFixupEntry> _vtableFixups = new(); 1004public List<Dictionary<string, int>> LocalsScopes { get; } = new(); 1006public List<SignatureArg> AllLocals { get; } = new(); 1638_mappedFieldDataReferenceFixups[name] = fixups = new(); 3139var labels = new List<(LabelHandle Label, int? Offset)>();
NamedElementList.cs (1)
17private readonly List<T> _elements = new();
ilc (16)
Program.cs (9)
49List<ModuleDesc> assembliesWithInitializers = new List<ModuleDesc>(); 65List<MethodDesc> instrumentedResult = new List<MethodDesc>(result); 78var suppressedWarningCategories = new List<string>(); 171List<ICompilationRootProvider> compilationRoots = new List<ICompilationRootProvider>(); 206List<EcmaModule> inputModules = new List<EcmaModule>(); 530scannerCompiledMethods = new List<MethodDesc>(scanResults.CompiledMethodBodies); 531scannerConstructedTypes = new List<TypeDesc>(scanResults.ConstructedEETypes); 641List<ObjectDumper> dumpers = new List<ObjectDumper>(); 815List<TypeDesc> genericArguments = new List<TypeDesc>();
RdXmlRootProvider.cs (2)
145var parameter = new List<TypeDesc>(); 146var instArgs = new List<TypeDesc>();
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (4)
45List<string> paths = new(); 177List<string> details = new List<string>(); 236List<string> rspFile = new List<string>(); 430var tokens = new List<string>();
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (1)
171List<string> instructionSetParams = new List<string>();
ILCompiler.Build.Tasks (1)
ComputeManagedAssembliesToCompileToNative.cs (1)
88var runtimePackFilesToSkipPublish = new List<ITaskItem>();
ILCompiler.Compiler (154)
Compiler\AnalysisBasedMetadataManager.cs (2)
64_modulesWithMetadata = new List<ModuleDesc>(modulesWithMetadata); 65_forcedTypes = new List<TypeDesc>(forcedTypes);
Compiler\Dataflow\CompilerGeneratedState.cs (2)
133_warnings ??= new List<(MessageOrigin, DiagnosticId, string[])>(); 321_compilerGeneratedMembers.Add(userDefinedMethod, new List<TypeSystemEntity>(callees));
Compiler\Dataflow\FlowAnnotations.cs (1)
399var annotatedMethods = new List<MethodAnnotations>();
Compiler\Dataflow\InterproceduralState.cs (1)
71var methodsList = new List<MethodBodyValue>(MethodBodies.GetKnownValues());
Compiler\Dataflow\MethodBodyScanner.cs (1)
1294var dereferencedMethodParams = new List<MultiValue>();
Compiler\Dataflow\ReflectionMarker.cs (3)
35public List<(MethodDesc OwningMethod, INodeWithRuntimeDeterminedDependencies Dependency)> RuntimeDeterminedDependencies { get; } = new List<(MethodDesc, INodeWithRuntimeDeterminedDependencies)>(); 102List<ModuleDesc> referencedModules = new(); 137List<ModuleDesc> referencedModules = new();
Compiler\DependencyAnalysis\ArrayOfEmbeddedDataNode.cs (1)
17private List<TEmbedded> _nestedNodesList = new List<TEmbedded>();
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (1)
130dependencies ??= new CombinedDependencyList();
Compiler\DependencyAnalysis\DataflowAnalyzedMethodNode.cs (1)
42_runtimeDependencies = new List<(MethodDesc, INodeWithRuntimeDeterminedDependencies)>();
Compiler\DependencyAnalysis\DehydratedDataNode.cs (1)
85KeyValuePair<ISymbolNode, int>[] relocSort = new List<KeyValuePair<ISymbolNode, int>>(relocOccurences).ToArray();
Compiler\DependencyAnalysis\DictionaryLayoutNode.cs (1)
168List<CombinedDependencyListEntry> conditionalDependencies = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\EETypeNode.cs (1)
317List<CombinedDependencyListEntry> result = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\EventMetadataNode.cs (1)
34var dependencies = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ExternalReferencesTableNode.cs (1)
22private List<SymbolAndDelta> _insertedSymbols = new List<SymbolAndDelta>();
Compiler\DependencyAnalysis\FieldMetadataNode.cs (1)
66var dependencies = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\GvmDispatchCellInfoSectionNode.cs (1)
35var cells = new List<DispatchCellNode>();
Compiler\DependencyAnalysis\InterfaceDispatchCellInfoSectionNode.cs (1)
35var cells = new List<DispatchCellNode>();
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (3)
150var defaultImplementations = new List<(int InterfaceIndex, int InterfaceMethodSlot, int ImplMethodSlot)>(); 151var staticImplementations = new List<(int InterfaceIndex, int InterfaceMethodSlot, int ImplMethodSlot, int Context)>(); 152var staticDefaultImplementations = new List<(int InterfaceIndex, int InterfaceMethodSlot, int ImplMethodSlot, int Context)>();
Compiler\DependencyAnalysis\MethodMetadataNode.cs (1)
130var dependencies = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ModuleInitializerListNode.cs (3)
38var modulesWithCctor = new List<ModuleDesc>(); 54List<ModuleDesc> sortedModules = new List<ModuleDesc>(); 59var allModules = new List<ModuleGraphNode>();
Compiler\DependencyAnalysis\ModuleMetadataNode.cs (1)
59var dependencies = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\NativeLayoutInfoNode.cs (1)
37_vertexNodesToWrite = new List<NativeLayoutVertexNode>();
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (3)
858List<NativeLayoutVertexNode> dictionaryVertices = new List<NativeLayoutVertexNode>(); 1017List<NativeLayoutVertexNode> implementedInterfacesList = new List<NativeLayoutVertexNode>(); 1030List<NativeLayoutVertexNode> dictionaryVertices = new List<NativeLayoutVertexNode>();
Compiler\DependencyAnalysis\PropertyMetadataNode.cs (1)
34var dependencies = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ReadyToRunGenericHelperNode.cs (1)
241List<CombinedDependencyListEntry> conditionalDependencies = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ReadyToRunHeaderNode.cs (1)
27private List<HeaderItem> _items = new List<HeaderItem>();
Compiler\DependencyAnalysis\ReadyToRunHelperNode.cs (1)
175List<CombinedDependencyListEntry> dependencyList = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ResourceDataNode.cs (1)
70_indexData = new List<ResourceIndexData>();
Compiler\DependencyAnalysis\SealedVTableNode.cs (1)
112_sealedVTableEntries = new List<SealedVTableEntry>();
Compiler\DependencyAnalysis\StackTraceDocumentsNode.cs (1)
18private List<string> _documents = new List<string>();
Compiler\DependencyAnalysis\StackTraceMethodMappingNode.cs (1)
52var mapping = new List<StackTraceMapping>(factory.MetadataManager.GetStackTraceMapping(factory));
Compiler\DependencyAnalysis\TypeMetadataNode.cs (1)
105var dependencies = new List<CombinedDependencyListEntry>();
Compiler\ExportsFileWriter.cs (1)
24_methods = new List<EcmaMethod>();
Compiler\ILScanner.cs (5)
57var methodsToCompile = new List<ScannedMethodNode>(); 622vtables.Add(baseType, baseVtable = BuildVTable(factory, baseType, baseType, new List<MethodDesc>())); 625vtables.Add(type, vtable = BuildVTable(factory, type, type, new List<MethodDesc>())); 888List<ThreadStaticsNode> threadStaticNodes = new List<ThreadStaticsNode>(); 900List<MetadataType> types = new List<MetadataType>();
Compiler\LibraryInitializers.cs (2)
30_librariesWithInitializers = new List<ModuleDesc>(librariesWithInitializers); 48_libraryInitializerMethods = new List<MethodDesc>();
Compiler\Logging\DocumentationSignatureParser.cs (7)
45var results = new List<TypeSystemEntity>(); 58var results = new List<TypeSystemEntity>(); 68var results = new List<TypeSystemEntity>(); 279var results = new List<string>(); 413typeArguments = new List<string>(); 581var parameters = new List<string>(); 656parameters = new List<string>();
Compiler\Logging\UnconditionalSuppressMessageAttributeState.cs (4)
105generatedWarnings = new(); 275suppressions ??= new(); 283suppressions ??= new(); 294suppressions ??= new();
Compiler\MetadataManager.cs (9)
65private readonly List<DispatchCellNode> _dispatchCells = new List<DispatchCellNode>(); 88private List<(DehydratableObjectNode Node, ObjectNode.ObjectData Data)> _dehydratableData = new List<(DehydratableObjectNode Node, ObjectNode.ObjectData data)>(); 764var stackTraceRecords = new List<StackTraceRecordData>(); 827typeMappings = new List<MetadataMapping<MetadataType>>(); 828methodMappings = new List<MetadataMapping<MethodDesc>>(); 830fieldMappings = new List<MetadataMapping<FieldDesc>>(); 832stackTraceMapping = new List<StackTraceMapping>(); 833reflectionBasedStackTraceMapping = new List<ReflectionStackTraceMapping>(); 953List<MetadataRecord> genericArgs = new List<MetadataRecord>();
Compiler\MstatObjectDumper.cs (3)
40private List<(MethodDesc Method, string MangledName, int Size, int GcInfoSize)> _methods = new(); 115_deduplicatedBodies.Add(originalBody.Method, targetBodies = new List<(MethodDesc, int)>()); 213private readonly List<(string Name, BlobBuilder Content)> _customSections = new();
Compiler\ObjectWriter\CodeView\CodeViewSymbolsBuilder.cs (3)
244List<uint> codes = new(); 308internal readonly List<byte[]> _data = new(); 309internal readonly List<(uint, RelocType, Utf8String)> _relocations = new();
Compiler\ObjectWriter\CodeView\CodeViewTypesBuilder.cs (1)
48private readonly List<(Utf8String, uint)> _userDefinedTypes = new();
Compiler\ObjectWriter\Dwarf\DwarfBuilder.cs (8)
34private readonly List<DwarfFileName> _fileNames = new(); 36private readonly List<SectionInfo> _sections = new(); 38private readonly List<MemberFunctionTypeInfo> _memberFunctionTypeInfos = new(); 39private readonly List<DwarfMemberFunction> _memberFunctions = new(); 42private readonly List<DwarfStaticVariableInfo> _staticFields = new(); 44private readonly List<DwarfInfo> _dwarfTypes = new(); 46private readonly List<DwarfInfo> _dwarfSubprograms = new(); 329List<DataFieldDescriptor> fieldDescriptors = new();
Compiler\ObjectWriter\Dwarf\DwarfInfo.cs (2)
245_statics = new(statics.Length); 255_methods ??= new();
Compiler\ObjectWriter\Dwarf\DwarfInfoWriter.cs (1)
26private readonly List<InfoReference> _lateBoundReferences = new();
Compiler\ObjectWriter\MachObjectWriter.Aot.cs (1)
65private readonly List<CompactUnwindCode> _compactUnwindCodes = new();
Compiler\TypePreinit.cs (2)
106var values = new List<KeyValuePair<FieldDesc, ISerializableValue>>(); 3289dependencies ??= new CombinedDependencyList();
Compiler\UsageBasedMetadataManager.cs (16)
52private readonly List<TypeDesc> _typesWithForcedEEType = new List<TypeDesc>(); 54private readonly List<FieldDesc> _fieldsWithMetadata = new List<FieldDesc>(); 55private readonly List<MethodDesc> _methodsWithMetadata = new List<MethodDesc>(); 56private readonly List<MetadataType> _typesWithMetadata = new List<MetadataType>(); 57private readonly List<FieldDesc> _fieldsWithRuntimeMapping = new List<FieldDesc>(); 58private readonly List<ReflectableCustomAttribute> _customAttributesWithMetadata = new List<ReflectableCustomAttribute>(); 59private readonly List<ReflectableParameter> _parametersWithMetadata = new List<ReflectableParameter>(); 101_satelliteAssemblyFiles = new List<string>(satelliteAssemblyFilePaths); 433dependencies ??= new CombinedDependencyList(); 457dependencies ??= new CombinedDependencyList(); 473dependencies ??= new CombinedDependencyList(); 501dependencies ??= new CombinedDependencyList(); 533dependencies ??= new CombinedDependencyList(); 574dependencies ??= new CombinedDependencyList(); 631dependencies ??= new CombinedDependencyList(); 700dependencies ??= new CombinedDependencyList();
Compiler\UserDefinedTypeDescriptor.cs (6)
404List<FieldDesc> fieldsDescriptors = new List<FieldDesc>(); 583List<DataFieldDescriptor> fieldsDescs = new List<DataFieldDescriptor>(); 584List<DataFieldDescriptor> nonGcStaticFields = new List<DataFieldDescriptor>(); 585List<DataFieldDescriptor> gcStaticFields = new List<DataFieldDescriptor>(); 586List<DataFieldDescriptor> threadStaticFields = new List<DataFieldDescriptor>(); 587List<StaticDataFieldDescriptor> staticsDescs = new List<StaticDataFieldDescriptor>();
IL\ILImporter.Scanner.cs (1)
203conditionalDependencies ??= new CombinedDependencyList();
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Validation.cs (3)
19private static List<TypeDesc> EmptyList = new List<TypeDesc>(); 101OtherTypesToMarkAsSuccessfullyLoaded = new List<TypeDesc>(); 112t_typeLoadCheckInProgressStack ??= new List<TypeLoadabilityCheckInProgress>();
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (3)
26var members = new List<TypeSystemEntity>(); 87var members = new List<TypeSystemEntity>(); 100var members = new List<TypeSystemEntity>();
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (1)
81List<CombinedDependencyListEntry> dynamicDependencies = new List<CombinedDependencyListEntry>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Cycles.cs (3)
22private List<List<Vertex>> _result = new List<List<Vertex>>(); 78List<Vertex> newStronglyConnectedComponent = new List<Vertex>(); 156List<Vertex> newStronglyConnectedComponent = new List<Vertex>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (2)
31this._edges = new List<Edge>(); 94private List<Edge> _edges = new List<Edge>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
28List<TypeDesc> typesToProcess = new List<TypeDesc>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
126(_overflow ??= new List<EmbeddingState>()).Add(state);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
171(seenTypes ??= new List<TypeDesc>()).Add(typeDef);
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
217var assemblies = new List<string>(context.InputFilePaths.Count + context.ReferenceFilePaths.Count + 1);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (3)
53protected readonly List<SectionDefinition> _sections = new(); 56private readonly List<CoffSymbolRecord> _symbols = new(); 159_sections.Add(new SectionDefinition(sectionHeader, sectionStream, new List<CoffRelocation>(), comdatName, symbolName));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (3)
44private readonly List<ElfSectionDefinition> _sections = new(); 45private readonly List<ElfSymbol> _symbols = new(); 276List<ElfSymbol> sortedSymbols = new(definedSymbols.Count + undefinedSymbols.Count);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (5)
63private readonly List<MachSection> _sections = new(); 67private readonly List<MachSymbol> _symbolTable = new(); 569var sortedDefinedSymbols = new List<MachSymbol>(definedSymbols.Count); 1112public IList<MachRelocation> Relocations => relocationCollection ??= new List<MachRelocation>(); 1115public List<RelocAnchor> RelocAnchors { get; } = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (3)
44private readonly List<SectionData> _sectionIndexToData = new(); 45private readonly List<List<SymbolicRelocation>> _sectionIndexToRelocations = new(); 114_sectionIndexToRelocations.Add(new());
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (2)
584list = new List<ushort>(); 601List<Utf8String> exports = new(_exportedSymbolNames.Count);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (1)
26private readonly List<ReadOnlyMemory<byte>> _buffers = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\UnixObjectWriter.cs (1)
24private readonly List<UnixSectionDefinition> _sections = new();
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (3)
199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>(); 200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>(); 201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>();
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (1)
63relatedNameReferences = new List<ObjectDataBuilder.Reservation>();
src\runtime\src\coreclr\tools\Common\Microsoft\SourceLink\Tools\SourceLinkMap.cs (1)
62var list = new List<Entry>();
src\runtime\src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
136var args = new List<string>();
ILCompiler.DependencyAnalysisFramework (6)
DependencyAnalyzer.cs (6)
34private List<DependencyNodeCore<DependencyContextType>> _markedNodes = new List<DependencyNodeCore<DependencyContextType>>(); 36private List<DependencyNodeCore<DependencyContextType>> _rootNodes = new List<DependencyNodeCore<DependencyContextType>>(); 38private List<DependencyNodeCore<DependencyContextType>> _dynamicDependencyInterestingList = new List<DependencyNodeCore<DependencyContextType>>(); 39private List<DynamicDependencyNode> _markedNodesWithDynamicDependencies = new List<DynamicDependencyNode>(); 47private List<T> _nodes = new List<T>(); 230deferredPerPhaseDependencies = new List<DependencyNodeCore<DependencyContextType>>();
ILCompiler.Diagnostics (2)
PdbWriter.cs (1)
88List<SymDocument> _symDocuments = new List<SymDocument>();
PerfMapWriter.cs (1)
78List<byte> inputHash = new List<byte>();
ILCompiler.MetadataTransform (46)
ILCompiler\Metadata\Transform.CustomAttribute.cs (1)
22List<CustomAttribute> customAttributes = new List<CustomAttribute>(attributes.Count);
Internal\Metadata\NativeFormat\Writer\NativeFormatWriterGen.cs (34)
891public List<MetadataRecord> Value = new List<MetadataRecord>(); 1661public List<MetadataRecord> Value = new List<MetadataRecord>(); 2250public List<MetadataRecord> FixedArguments = new List<MetadataRecord>(); 2251public List<NamedArgument> NamedArguments = new List<NamedArgument>(); 2343public List<MethodSemantics> MethodSemantics = new List<MethodSemantics>(); 2344public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 2468public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 2693public List<MetadataRecord> Constraints = new List<MetadataRecord>(); 2694public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 2870public List<Parameter> Parameters = new List<Parameter>(); 2871public List<GenericParameter> GenericParameters = new List<GenericParameter>(); 2872public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 2948public List<MetadataRecord> GenericTypeArguments = new List<MetadataRecord>(); 3118public List<MetadataRecord> Parameters = new List<MetadataRecord>(); 3119public List<MetadataRecord> VarArgParameters = new List<MetadataRecord>(); 3459public List<TypeDefinition> TypeDefinitions = new List<TypeDefinition>(); 3460public List<TypeForwarder> TypeForwarders = new List<TypeForwarder>(); 3461public List<NamespaceDefinition> NamespaceDefinitions = new List<NamespaceDefinition>(); 3648public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 3843public List<MethodSemantics> MethodSemantics = new List<MethodSemantics>(); 3845public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 3931public List<MetadataRecord> Parameters = new List<MetadataRecord>(); 4262public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 4265public List<CustomAttribute> ModuleCustomAttributes = new List<CustomAttribute>(); 4469public List<TypeDefinition> NestedTypes = new List<TypeDefinition>(); 4470public List<Method> Methods = new List<Method>(); 4471public List<Field> Fields = new List<Field>(); 4472public List<Property> Properties = new List<Property>(); 4473public List<Event> Events = new List<Event>(); 4474public List<GenericParameter> GenericParameters = new List<GenericParameter>(); 4475public List<MetadataRecord> Interfaces = new List<MetadataRecord>(); 4476public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 4549public List<TypeForwarder> NestedTypes = new List<TypeForwarder>(); 4626public List<MetadataRecord> GenericTypeArguments = new List<MetadataRecord>();
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (4)
241var result = new List<DstT>(dst.Count); 289public List<ScopeDefinition> ScopeDefinitions = new List<ScopeDefinition>(); 323AdditionalRootRecords = new List<MetadataRecord>(); 961var values = new List<string>();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (7)
52internal List<Vertex> _items = new List<Vertex>(); 96private List<Section> _sections = new List<Section>(); 656_elements = new List<Entry>(); 713_elements = new List<Vertex>(); 1671_entries = new List<Vertex>(); 1672_blocks = new List<Vertex>(); 1906_Entries = new List<Entry>();
ILCompiler.ReadyToRun (130)
Compiler\CallChainProfile.cs (1)
258List<string> followingMethodList = new List<string>();
Compiler\DependencyAnalysis\ArrayInterfaceMethodsNode.cs (1)
45List<CombinedDependencyListEntry> result = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ArrayOfEmbeddedDataNode.cs (1)
22private List<TEmbedded> _nestedNodesList = new List<TEmbedded>();
Compiler\DependencyAnalysis\InheritedVirtualMethodsNode.cs (1)
50List<CombinedDependencyListEntry> result = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ReadyToRun\AssemblyTableNode.cs (1)
25_assemblyHeaders = new List<AssemblyHeaderNode>();
Compiler\DependencyAnalysis\ReadyToRun\AttributePresenceFilterNode.cs (1)
46List<CustomAttributeEntry> customAttributeEntries = new List<CustomAttributeEntry>();
Compiler\DependencyAnalysis\ReadyToRun\CopiedFieldRvaNode.cs (1)
67List<EcmaField> fields = new List<EcmaField>();
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILDeduplicator.cs (1)
27var sortedNodes = new List<CopiedMethodILNode>(_nodesProvider());
Compiler\DependencyAnalysis\ReadyToRun\DebugInfoTableNode.cs (1)
180List<byte> boundsBlob = new List<byte>(writer2.ToArray());
Compiler\DependencyAnalysis\ReadyToRun\DeferredTillPhaseNode.cs (1)
14private readonly List<DependencyNodeCore<NodeFactory>> _dependencies = new List<DependencyNodeCore<NodeFactory>>();
Compiler\DependencyAnalysis\ReadyToRun\ExceptionInfoLookupTableNode.cs (2)
92_methodNodes = new List<MethodWithGCInfo>(); 93_ehInfoOffsets = new List<int>();
Compiler\DependencyAnalysis\ReadyToRun\GCRefMapNode.cs (1)
24_methods = new List<IMethodNode>();
Compiler\DependencyAnalysis\ReadyToRun\ImportSectionNode.cs (1)
57_signatureList = new List<Signature>();
Compiler\DependencyAnalysis\ReadyToRun\InliningInfoNode.cs (1)
180List<EcmaMethod> sortedInliners = new List<EcmaMethod>(inlineeWithInliners.Value.Count);
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (2)
61List<long> _longs = new List<long>(); 62List<Import> _imports = new List<Import>();
Compiler\DependencyAnalysis\ReadyToRun\ManifestMetadataTableNode.cs (2)
88_manifestAssemblyMvids = new List<Guid>(); 89_signatureEmitters = new List<ISignatureEmitter>();
Compiler\DependencyAnalysis\ReadyToRun\MethodEntryPointTableNode.cs (1)
49List<EntryPoint> ridToEntryPoint = new List<EntryPoint>();
Compiler\DependencyAnalysis\ReadyToRun\MethodWithGCInfo.cs (3)
40_fixups = new List<ISymbolNode>(); 171fixupCells = new List<FixupCell>(); 181fixupCells = new List<FixupCell>();
Compiler\DependencyAnalysis\ReadyToRun\ReadyToRunHeaderNode.cs (1)
98private readonly List<HeaderItem> _items = new List<HeaderItem>();
Compiler\DependencyAnalysis\ReadyToRun\RuntimeFunctionsTableNode.cs (2)
53_methodNodes = new List<MethodWithGCInfo>(); 133List<uint> mapping = new List<uint>();
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (1)
89List<string> reasons = new List<string>();
Compiler\DependencyAnalysis\ReadyToRun\WasmImportThunk.cs (1)
184List<WasmExpr> expressions = new List<WasmExpr>();
Compiler\DependencyAnalysis\ReadyToRun\WasmInterpreterToR2RThunkNode.cs (1)
157List<WasmExpr> expressions = new List<WasmExpr>();
Compiler\DependencyAnalysis\ReadyToRun\WasmR2RToInterpreterThunkNode.cs (1)
174List<WasmExpr> expressions = new List<WasmExpr>();
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (2)
104List<ILBodyFixupSignature> _markedILBodyFixupSignatures = new List<ILBodyFixupSignature>(); 560return new List<StringDiscoverableAssemblyStubNode>(_stringDiscoverableStubs);
Compiler\FileLayoutOptimizer.cs (5)
78List<MethodWithGCInfo> methods = new List<MethodWithGCInfo>(); 289List<CallerCalleeCount> callList = new List<CallerCalleeCount>(); 299List<MethodWithGCInfo> outputMethods = new List<MethodWithGCInfo>(); 328var graphNodes = new List<CallGraphNode>(methodsToPlace.Count); 367List<MethodWithGCInfo> result = new List<MethodWithGCInfo>(methodsToPlace.Count);
Compiler\PettisHansenSort\PettisHansen.cs (1)
26phNodes[i] = new List<int>(1) { i };
Compiler\ProfileDataManager.cs (5)
20private readonly List<ProfileData> _inputData = new List<ProfileData>(); 187List<PgoSchemaElem> elems = new(); 280List<TypeSystemEntityOrUnknown> result = new(sampleSize); 480List<MethodDesc> list = new(kvp.Value); 487List<TypeDesc> list = new(kvp.Value);
Compiler\ReadyToRunCodegenCompilationBuilder.cs (1)
292List<CorJitFlag> corJitFlags = new List<CorJitFlag> { CorJitFlag.CORJIT_FLAG_DEBUG_INFO };
Compiler\ReadyToRunCompilerContext.cs (1)
260List<FieldAndOffset> fieldsAndOffsets = new List<FieldAndOffset>();
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (1)
412fieldsForType = new List<FieldAndOffset>();
Compiler\ReadyToRunStandaloneMethodMetadata.cs (1)
216public List<TypeDesc> _alternateTypeRefStream = new List<TypeDesc>();
Compiler\ReadyToRunTableManager.cs (5)
49public List<IMethodNode> MethodsGenerated = new List<IMethodNode>(); 50public List<IMethodNode> GenericMethodsGenerated = new List<IMethodNode>(); 54private List<IMethodNode> _completeSortedMethods = new List<IMethodNode>(); 55private List<IMethodNode> _completeSortedGenericMethods = new List<IMethodNode>(); 126List<PerModuleMethodsGenerated> perModuleDatas = new List<PerModuleMethodsGenerated>(_methodsGenerated.Values);
IBC\IBCDataModel.cs (2)
191Runs = new List<ScenarioRunData>(); 212BasicBlocks = new List<BasicBlockData>();
IBC\IBCDataReader.cs (4)
287var result = new List<IBC.ScenarioData>(); 363var result = new List<IBC.MethodData>(); 406var result = new List<IBC.TokenData>(); 620var blobs = new List<IBC.BlobEntry>();
IBC\IBCProfileParser.cs (3)
26_possibleReferenceModules = new List<ModuleDesc>(possibleReferenceModules); 50List<MethodProfileData> methodProfileData = new List<MethodProfileData>(); 749List<TypeDesc> instantiationArguments = new List<TypeDesc>();
IBC\MIbcProfileParser.cs (2)
374var methodProfileData = new List<MethodProfileData>(); 527instrumentationDataLongs = new List<long>();
JitInterface\CorInfoImpl.ReadyToRun.cs (6)
501_precodeFixups = _precodeFixups ?? new List<ISymbolNode>(); 631compExactlyDependsOnList = new List<TypeDesc>(); 859_ilBodiesNeeded = _ilBodiesNeeded ?? new List<MethodDesc>(); 3420previouslyStashedFixups = previouslyStashedFixups ?? new List<ISymbolNode>(); 3447_ilBodiesNeeded = _ilBodiesNeeded ?? new List<MethodDesc>(); 3480_ilBodiesNeeded = _ilBodiesNeeded ?? new List<MethodDesc>();
ObjectWriter\MapFileBuilder.cs (1)
119List<NodeTypeStatistics> nodeTypeStats = new List<NodeTypeStatistics>();
ObjectWriter\ProfileFileBuilder.cs (1)
152_callInfo = new List<CallInfo>();
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Validation.cs (3)
19private static List<TypeDesc> EmptyList = new List<TypeDesc>(); 101OtherTypesToMarkAsSuccessfullyLoaded = new List<TypeDesc>(); 112t_typeLoadCheckInProgressStack ??= new List<TypeLoadabilityCheckInProgress>();
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (3)
26var members = new List<TypeSystemEntity>(); 87var members = new List<TypeSystemEntity>(); 100var members = new List<TypeSystemEntity>();
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (1)
81List<CombinedDependencyListEntry> dynamicDependencies = new List<CombinedDependencyListEntry>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Cycles.cs (3)
22private List<List<Vertex>> _result = new List<List<Vertex>>(); 78List<Vertex> newStronglyConnectedComponent = new List<Vertex>(); 156List<Vertex> newStronglyConnectedComponent = new List<Vertex>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (2)
31this._edges = new List<Edge>(); 94private List<Edge> _edges = new List<Edge>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
28List<TypeDesc> typesToProcess = new List<TypeDesc>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
126(_overflow ??= new List<EmbeddingState>()).Add(state);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
171(seenTypes ??= new List<TypeDesc>()).Add(typeDef);
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
217var assemblies = new List<string>(context.InputFilePaths.Count + context.ReferenceFilePaths.Count + 1);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (3)
53protected readonly List<SectionDefinition> _sections = new(); 56private readonly List<CoffSymbolRecord> _symbols = new(); 159_sections.Add(new SectionDefinition(sectionHeader, sectionStream, new List<CoffRelocation>(), comdatName, symbolName));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (3)
44private readonly List<ElfSectionDefinition> _sections = new(); 45private readonly List<ElfSymbol> _symbols = new(); 276List<ElfSymbol> sortedSymbols = new(definedSymbols.Count + undefinedSymbols.Count);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (5)
63private readonly List<MachSection> _sections = new(); 67private readonly List<MachSymbol> _symbolTable = new(); 569var sortedDefinedSymbols = new List<MachSymbol>(definedSymbols.Count); 1112public IList<MachRelocation> Relocations => relocationCollection ??= new List<MachRelocation>(); 1115public List<RelocAnchor> RelocAnchors { get; } = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (3)
44private readonly List<SectionData> _sectionIndexToData = new(); 45private readonly List<List<SymbolicRelocation>> _sectionIndexToRelocations = new(); 114_sectionIndexToRelocations.Add(new());
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (2)
584list = new List<ushort>(); 601List<Utf8String> exports = new(_exportedSymbolNames.Count);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (1)
26private readonly List<ReadOnlyMemory<byte>> _buffers = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\UnixObjectWriter.cs (1)
24private readonly List<UnixSectionDefinition> _sections = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSections.cs (1)
12private readonly List<SectionDataEmitter> _sections = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (4)
465private readonly List<PendingBaseReloc> _pendingBaseRelocs = new(); 473_resolvableRelocations[sectionIndex] = resolvable = new List<SymbolicRelocation>(); 516list = new List<ushort>(); 539List<CodeBlob> blobs = new();
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (3)
199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>(); 200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>(); 201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>();
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (1)
63relatedNameReferences = new List<ObjectDataBuilder.Reservation>();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (7)
52internal List<Vertex> _items = new List<Vertex>(); 96private List<Section> _sections = new List<Section>(); 656_elements = new List<Entry>(); 713_elements = new List<Vertex>(); 1671_entries = new List<Vertex>(); 1672_blocks = new List<Vertex>(); 1906_Entries = new List<Entry>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
158_nativeExceptions ??= new List<IntPtr>(); 737private List<object> _handleToObject = new List<object>();
src\runtime\src\coreclr\tools\Common\JitInterface\SwiftPhysicalLowering.cs (2)
109List<FieldLayoutInterval> consolidatedIntervals = new(Intervals.Count); 137List<(CorInfoType, int)> loweredTypes = new();
src\runtime\src\coreclr\tools\Common\JitInterface\WasmLowering.cs (1)
449List<TypeDesc> parameters = new List<TypeDesc>();
TypeSystem\Mutable\MutableModule.cs (4)
24List<string> _moduleRefStrings = new List<string>(); 154private List<ValueTuple<int, object>> _values = new List<ValueTuple<int, object>>(); 155private List<PerMetadataFormCache> _perMetadata = new List<PerMetadataFormCache>(); 159List<byte[]> _readers = new List<byte[]> (); // For now, as we don't maintain knowledge of how long these live, keep them around forever
ILCompiler.RyuJit (15)
Compiler\ProfileDataManager.cs (1)
19List<ProfileData> _inputData = new List<ProfileData>();
Compiler\RyuJitCompilation.cs (1)
125var methodsToCompile = new List<MethodCodeNode>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (3)
78List<MethodWithGCInfo> methods = new List<MethodWithGCInfo>(); 328var graphNodes = new List<CallGraphNode>(methodsToPlace.Count); 367List<MethodWithGCInfo> result = new List<MethodWithGCInfo>(methodsToPlace.Count);
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\PettisHansen.cs (1)
26phNodes[i] = new List<int>(1) { i };
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\IBCDataModel.cs (2)
191Runs = new List<ScenarioRunData>(); 212BasicBlocks = new List<BasicBlockData>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (2)
374var methodProfileData = new List<MethodProfileData>(); 527instrumentationDataLongs = new List<long>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
158_nativeExceptions ??= new List<IntPtr>(); 737private List<object> _handleToObject = new List<object>();
src\runtime\src\coreclr\tools\Common\JitInterface\SwiftPhysicalLowering.cs (2)
109List<FieldLayoutInterval> consolidatedIntervals = new(Intervals.Count); 137List<(CorInfoType, int)> loweredTypes = new();
src\runtime\src\coreclr\tools\Common\JitInterface\WasmLowering.cs (1)
449List<TypeDesc> parameters = new List<TypeDesc>();
ILCompiler.TypeSystem (7)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\FieldLayoutIntervalCalculator.cs (2)
49private readonly List<FieldLayoutInterval> _fieldLayout = new(); 94List<FieldLayoutInterval> nestedIntervals = new List<FieldLayoutInterval>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
210List<EmbeddedSignatureData> ret = new();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaSignatureParser.cs (3)
371_embeddedSignatureDataList = new List<EmbeddedSignatureData>(); 459_embeddedSignatureDataList = new List<EmbeddedSignatureData>(); 512_embeddedSignatureDataList = new List<EmbeddedSignatureData>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (1)
203var variables = new List<ILLocalVariable>();
illink (80)
ILLink.CodeFixProvider (5)
RequiresUnsafeCodeFixProvider.cs (2)
315statementsToWrap = new List<StatementSyntax> { statementToWrap }; 336var newStatements = new List<StatementSyntax>();
SynchronizeUnsafeContractCodeFixProvider.cs (3)
212var declarations = new List<(DocumentId, SyntaxNode)>(); 276var contracts = new List<ISymbol>(); 279var chain = new List<ISymbol> { symbol };
ILLink.RoslynAnalyzer (6)
DataFlow\DynamicallyAccessedMembersBinder.cs (3)
24var members = new List<ISymbol>(); 85var members = new List<ISymbol>(); 98var members = new List<ISymbol>();
DataFlow\InterproceduralState.cs (1)
55var methodsList = new List<MethodBodyValue>(Methods.GetKnownValues());
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
259(nestedNameLengths ??= new()).Add(length);
src\runtime\src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
136var args = new List<string>();
Infrastructure.Common (7)
OSHelper.cs (2)
29private static List<Tuple<string, OSID>> _runtimeToOSID = new List<Tuple<string, OSID>> 51private static List<Tuple<string, OSID>> _descriptionToOSID = new List<Tuple<string, OSID>>
TestEventListener.cs (1)
19private List<EventSource> _tmpEventSourceList = new List<EventSource>();
xunit\ConditionAttribute.cs (1)
45List<string> falseConditions = new List<string>(conditionCount);
xunit\WcfTestCase.cs (1)
26static TestEventListener s_testListener = new TestEventListener(new List<string>() { "Microsoft-Windows-Application Server-Applications" }, EventLevel.Verbose);
xunit\WcfTestDiscoverer.cs (2)
36List<string> issueSkipList = new List<string>(); 63List<string> skipReasons = new List<string>(conditions.Length);
Infrastructure.Tests (36)
ExtractTestPartitions\ExtractTestPartitionsTests.cs (1)
315var outputLines = new List<string>();
ExtractTestPartitions\MockAssemblyBuilder.cs (1)
234var references = new List<MetadataReference>
Pipelines\NixCliPackageTests.cs (1)
148var arguments = new List<string> { "--version", "13.4.0", "--output-path", outputPath };
Pipelines\NpmCliPackageTests.cs (1)
622var descriptions = new List<string>();
PowerShellScripts\DownloadNativeArchivesTests.cs (2)
397var args = new List<string> 447private List<MockArtifact> _artifacts = new();
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (1)
624var args = new List<string>
PowerShellScripts\PowerShellCommand.cs (2)
89var outputLines = new List<string>(); 189var argsList = new List<string>
PowerShellScripts\ScanTestPartitionsFromSourceGuardTests.cs (1)
44var offenders = new List<string>();
PowerShellScripts\SplitTestMatrixByDepsTests.cs (2)
257var args = new List<string>(); 289var convertedEntries = new List<Dictionary<string, object>>();
PowerShellScripts\SplitTestProjectsTests.cs (1)
190var args = new List<string>
PowerShellScripts\StageNativeCliToolPackagesTests.cs (1)
291var args = new List<string>
Shared\TestDataBuilder.cs (1)
119var partitions = new List<string>();
TestTriggerMap\TestTriggerMapModel.cs (12)
22public List<ConventionRule> Conventions { get; set; } = new(); 26public List<string> Ignore { get; set; } = new(); 28public List<PathRule> PathRules { get; set; } = new(); 30public List<AffectedProjectRule> AffectedProjectRules { get; set; } = new(); 32public List<DerivedRule> DerivedTargets { get; set; } = new(); 140public List<string> Paths { get; set; } = new(); 142public List<string> Targets { get; set; } = new(); 161public List<string> Tests { get; set; } = new(); 163public List<string> Targets { get; set; } = new(); 172public List<string> Projects { get; set; } = new(); 174public List<string> Targets { get; set; } = new(); 185public List<string> KeepRouted { get; set; } = new();
TestTriggerMap\TestTriggerMapTests.cs (2)
36var problems = new List<string>(); 388var wrong = new List<string>();
tools\GenerateCITimeline\GitHubApi.cs (4)
40var objects = new List<JsonElement>(); 65var merged = new List<JsonElement>(); 135var jobs = new List<JsonElement>(); 171var jobs = new List<JsonElement>();
tools\GenerateCITimeline\TimelineRenderer.cs (2)
206var labels = new List<string>(); 282var statusParts = new List<string>();
WorkflowScripts\SelectTestsCommentScriptTests.cs (1)
265var body = new List<string>();
Microsoft.Analyzers.Extra (8)
LegacyLogging.cs (1)
21var legacyMethods = new List<IMethodSymbol>();
LegacyLoggingFixer.cs (3)
379var parameters = new List<SyntaxNode> 429var args = new List<ITypeSymbol> 476var argList = new List<SyntaxNode>();
LegacyLoggingFixer.FixDetails.cs (3)
54var interpolationArgs = new List<IOperation>(); 55var messageArgs = new List<string>(); 263var args = new List<string>();
MakeExeTypesInternalAnalyzer.cs (1)
79var disqualifyingBaseClasses = new List<ITypeSymbol>();
Microsoft.Analyzers.Extra.Tests (7)
RoslynTestUtils.cs (5)
38var refs = new List<MetadataReference>(); 155var filtered = new List<Diagnostic>(); 342var actions = new List<CodeAction>(); 372var results = new List<string>(); 463var results = new List<string>();
SyntaxNodeExtensionsTests.cs (2)
22var emptyList = new List<string>(); 24Assert.Null(node.FindNodeInTreeUpToSpecifiedParentByMethodName(new Mock<SemanticModel>().Object, emptyList, new List<Type>()));
Microsoft.Analyzers.Local (3)
AssemblyAnalysis.cs (1)
283var modifiers = new List<string>(6);
Utils.cs (2)
28var result = new List<string>(); 63var result = new List<string>();
Microsoft.Analyzers.Local.Tests (10)
ApiLifecycleAnalyzerTest.cs (2)
99public static IEnumerable<object[]> CodeWithMissingMembers => new List<object[]> 783public static IEnumerable<object[]> CodeWithMissingApis => new List<object[]>
RoslynTestUtils.cs (5)
38var refs = new List<MetadataReference>(); 155var filtered = new List<Diagnostic>(); 343var actions = new List<CodeAction>(); 373var results = new List<string>(); 464var results = new List<string>();
UseThrowsTests.cs (3)
51new List<object[]> 236new List<object[]> 287new List<object[]>
Microsoft.AspNetCore (5)
BootstrapHostBuilder.cs (3)
16private readonly List<Action<IConfigurationBuilder>> _configureHostActions = new(); 17private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppActions = new(); 18private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new();
ConfigureHostBuilder.cs (1)
22private readonly List<Action<HostBuilderContext, object>> _configureContainerActions = new();
WebApplication.cs (1)
30private readonly List<EndpointDataSource> _dataSources = new();
Microsoft.AspNetCore.Analyzers (2)
ConfigureMethodVisitor.cs (1)
24_methods = new List<IMethodSymbol>();
StartupAnalysisBuilder.cs (1)
65list = new List<object>();
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultClaimUidExtractor.cs (2)
85var allClaims = new List<Claim>(); 102var identifierParameters = new List<string>(allClaims.Count * 3);
Microsoft.AspNetCore.App.Analyzers (4)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (1)
267var charResults = new List<(char ch, TextSpan span)>();
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
486public readonly List<RoutePatternItem> Items = new();
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
335public readonly List<RoutePatternItem> Items = new();
src\aspnetcore\src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
21private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Microsoft.AspNetCore.Authentication.Abstractions (3)
AuthenticationOptions.cs (1)
15private readonly IList<AuthenticationSchemeBuilder> _schemes = new List<AuthenticationSchemeBuilder>();
TokenExtensions.cs (2)
34var tokenNames = new List<string>(); 99var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.Certificate (2)
CertificateAuthenticationHandler.cs (2)
151var chainErrors = new List<string>(chain.ChainStatus.Length); 256var claims = new List<Claim>();
Microsoft.AspNetCore.Authentication.Cookies (4)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationSchemeProvider.cs (1)
36_requestHandlers = new List<AuthenticationScheme>();
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (7)
_generated\6\DeviceBoundSessionJsonContext.ListSessionCredential.g.cs (1)
34ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>(),
_generated\7\DeviceBoundSessionJsonContext.ListSessionScopeRule.g.cs (1)
34ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>(),
_generated\8\DeviceBoundSessionJsonContext.ListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<string>(),
DeviceBoundSessionChallengeProtector.cs (1)
195var allClaims = new List<Claim>();
DeviceBoundSessionHandler.cs (1)
308Credentials = new List<SessionCredential>
DeviceBoundSessionOptions.cs (2)
98public IList<DeviceBoundSessionScopeRule> ScopeSpecifications { get; } = new List<DeviceBoundSessionScopeRule>(); 103public IList<string> AllowedRefreshInitiators { get; } = new List<string>();
Microsoft.AspNetCore.Authentication.JwtBearer (6)
JwtBearerHandler.cs (4)
116validationFailures ??= new List<Exception>(1); 122validationFailures ??= new List<Exception>(1); 140validationFailures ??= new List<Exception>(1); 381var messages = new List<string>(exceptions.Count);
JwtBearerOptions.cs (2)
32SecurityTokenValidators = new List<ISecurityTokenValidator> { _defaultHandler }; 34TokenHandlers = new List<TokenHandler> { _defaultTokenHandler };
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\LdapAdapter.cs (1)
67var retrievedClaims = new List<string>();
Microsoft.AspNetCore.Authentication.OAuth (2)
ClaimActionCollection.cs (1)
14private IList<ClaimAction> Actions { get; } = new List<ClaimAction>();
OAuthHandler.cs (1)
150var authTokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1122var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.Twitter (1)
_generated\3\TwitterJsonContext.ListTwitterError.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>(),
Microsoft.AspNetCore.Authentication.WsFederation (3)
WsFederationHandler.cs (3)
263validationFailures ??= new List<Exception>(1); 271validationFailures ??= new List<Exception>(1); 291validationFailures ??= new List<Exception>(1);
Microsoft.AspNetCore.Authorization (8)
AuthorizationHandlerContext.cs (1)
104_failedReasons = new List<AuthorizationFailureReason>();
AuthorizationPolicy.cs (5)
38Requirements = new List<IAuthorizationRequirement>(requirements).AsReadOnly(); 39AuthenticationSchemes = new List<string>(authenticationSchemes).AsReadOnly(); 156(authorizeData ??= new List<IAuthorizeData>()).Add(authorizeDatum); 161(policies ??= new List<AuthorizationPolicy>()).Add(policy); 166(requirementData ??= new List<IAuthorizationRequirementData>()).Add(requirementDatum);
AuthorizationPolicyBuilder.cs (2)
42public IList<IAuthorizationRequirement> Requirements { get; set; } = new List<IAuthorizationRequirement>(); 51public IList<string> AuthenticationSchemes { get; set; } = new List<string>();
Microsoft.AspNetCore.Components (35)
CascadingParameterState.cs (2)
56resultStates ??= new List<CascadingParameterState>(infos.Length - infoIndex); 126result ??= new List<CascadingParameterInfo>();
CascadingValueSource.cs (2)
94var tasks = new List<Task>(); 169_subscribers?.GetOrAdd(dispatcher, _ => new()).Add(subscriber);
DefaultComponentPropertyActivator.cs (1)
60injectables ??= new();
NavigationManager.cs (1)
34private readonly List<Func<LocationChangingContext, ValueTask>> _locationChangingHandlers = new();
PersistentState\ComponentStatePersistenceManager.cs (2)
14private readonly List<PersistComponentStateRegistration> _registeredCallbacks = new(); 15private readonly List<RestoreComponentStateRegistration> _registeredRestoringCallbacks = new();
PersistentState\PersistentServicesRegistry.cs (2)
60var subscriptions = new List<(PersistingComponentStateSubscription, RestoringComponentStateSubscription)>( 187var keys = new List<(string, Type)>();
Reflection\ComponentProperties.cs (1)
259var propertyNames = new List<string>();
Reflection\MemberAssignment.cs (1)
35many = new List<PropertyInfo> { single };
Rendering\ComponentState.cs (1)
211remainingCascadingParameters ??= new(_cascadingParameters.Count /* upper bound on capacity needed */);
RenderTree\Renderer.cs (7)
329_pendingTasks ??= new(); 491_pendingTasks ??= new(); 1027batch = batch ?? new List<Task>(); 1086exceptions ??= new List<Exception>(); 1301asyncDisposables ??= new(); 1307exceptions ??= new List<Exception>(); 1334asyncExceptions ??= new List<Exception>();
RenderTree\RenderTreeDiffBuilder.cs (2)
769var frameTypes = new List<string>(); 780var componentPath = new List<string>();
Routing\RouteTableFactory.cs (2)
52var routeableComponents = new List<Type>(); 242unusedParameters ??= new();
Sections\SectionRegistry.cs (1)
21providers = new();
src\aspnetcore\src\Components\Shared\src\StringSegmentAccumulator.cs (1)
49_multiple = new();
src\aspnetcore\src\Http\Routing\src\ParameterPolicyActivator.cs (1)
148var result = new List<ConstructorInfo>();
src\aspnetcore\src\Http\Routing\src\Patterns\RouteParameterParser.cs (1)
103var constraints = new List<RoutePatternParameterPolicyReference>();
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
482parameters = new List<RoutePatternParameterPart>(); 617parameterConstraints = new List<RoutePatternParameterPolicyReference>(parameter.ParameterPolicies.Count);
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternParser.cs (2)
32var segments = new List<RoutePatternPathSegment>(); 76var parts = new List<RoutePatternPart>();
src\aspnetcore\src\Http\Routing\src\RouteConstraintBuilder.cs (1)
171list = new List<IRouteConstraint>();
src\aspnetcore\src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
236public IList<InboundRouteEntry> InboundEntries { get; } = new List<InboundRouteEntry>();
src\aspnetcore\src\Http\Routing\src\Tree\UrlMatchingNode.cs (1)
30Matches = new List<InboundMatch>();
Microsoft.AspNetCore.Components.AI (20)
Blocks\ContentBlock.cs (1)
20private readonly List<Action> _callbacks = new();
Blocks\RichContentBlock.cs (1)
13private readonly List<string> _segments = new();
Blocks\RichText\RichTextNode.cs (1)
33_children ??= new();
Components\ConversationTurnRenderer.cs (1)
14private readonly List<BlockContainer> _blockContainers = new();
Components\MessageList.cs (1)
20private readonly List<ConversationTurnRenderer> _turnRenderers = new();
Components\MessageListContext.cs (1)
16private readonly List<BlockRendererRegistration> _registrations = new();
Engine\AgentContext.cs (5)
23private readonly List<ConversationTurn> _turns = new(); 24private readonly List<Action<ConversationTurn>> _turnAddedCallbacks = new(); 25private readonly List<Action<ConversationStatus>> _statusChangedCallbacks = new(); 26private readonly List<Action<ConversationTurn, ContentBlock>> _blockAddedCallbacks = new(); 202var actions = new List<UIActionBlock>();
Engine\ConversationTurn.cs (2)
12private readonly List<ContentBlock> _requestBlocks = new(); 13private readonly List<ContentBlock> _responseBlocks = new();
Engine\UIAgent.cs (3)
34private readonly List<ChatMessage> _history = new(); 129var assistantUpdates = new List<ChatResponseUpdate>(); 173? new List<AITool>()
Pipeline\BlockMappingPipeline.cs (2)
18private readonly List<IHandlerEntry> _handlers = new(); 19private readonly List<IActiveEntry> _activeStack = new();
Pipeline\TextBlockHandler.cs (1)
57var paragraphs = new List<RichTextNode>();
Pipeline\UIAgentOptions.cs (1)
26internal List<IHandlerRegistration> HandlerRegistrations { get; } = new();
Microsoft.AspNetCore.Components.AI.SourceGenerators (3)
ToolBlockParser.cs (3)
28var diagnostics = new List<DiagnosticInfo>(); 115var parameters = new List<ToolParameterInfo>(); 159var resultProperties = new List<ToolResultPropertyInfo>();
Microsoft.AspNetCore.Components.Analyzers (7)
ComponentParameterAnalyzer.cs (2)
52var properties = new List<IPropertySymbol>(); 71var captureUnmatchedValuesParameters = new List<IPropertySymbol>();
ForLoopIteratorInClosureAnalyzer.cs (4)
274public List<ILocalSymbol> Iterators { get; } = new(); 276public List<ILocalSymbol> PotentialIterators { get; private set; } = new(); 279public List<ILocalSymbol> AllForVariables { get; } = new(); 282public List<ILocalReferenceOperation> IteratorOccurrences { get; } = new();
VirtualizeItemComparerAnalyzer.cs (1)
44var completedVirtualizeComponents = new List<ComponentState>();
Microsoft.AspNetCore.Components.Authorization (1)
AttributeAuthorizeDataCache.cs (1)
54authorizeDatas ??= new();
Microsoft.AspNetCore.Components.Endpoints (38)
Builder\RazorComponentEndpointDataSource.cs (1)
108var endpoints = new List<Endpoint>();
Builder\ResourcePreloadCollection.cs (1)
40groupHeaders = _storage[group] = new List<PreloadAsset>();
CacheView\CacheViewKeyResolver.cs (2)
168var names = new List<string>(); 188var names = new List<string>(request.Query.Count);
Discovery\IRazorComponentApplication.cs (2)
23var pages = new List<PageComponentBuilder>(); 24var components = new List<ComponentBuilder>();
Discovery\PageCollectionBuilder.cs (2)
58var list = new List<PageComponentInfo>(totalCount); 60var metadata = new List<object>();
FormMapping\Converters\CollectionAdapters\ReadOnlyCollectionBufferAdapter.cs (1)
10public static IList<TElement> CreateBuffer() => new List<TElement>();
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (6)
33var parameters = new List<ParameterExpression>() { readerParam, typeParam, optionsParam, resultParam, foundValueParam }; 40var variables = new List<ParameterExpression>() { propertyFoundValue, succeeded, localFoundValueVar, exceptionVar }; 42var propertyValueLocals = new List<ParameterExpression>(); 43var constructorParameterValueLocals = new List<ParameterExpression>(); 45var body = new List<Expression>() 190var assignments = new List<Expression>();
FormMapping\FormDataMapperOptions.cs (1)
15private readonly List<IFormDataConverterFactory> _factories = new();
FormMapping\Metadata\FormDataMetadataFactory.cs (1)
317public List<Type> CurrentTypes { get; set; } = new();
FormMapping\Metadata\FormDataTypeMetadata.cs (2)
22public IList<FormDataParameterMetadata> ConstructorParameters { get; set; } = new List<FormDataParameterMetadata>(); 24public IList<FormDataPropertyMetadata> Properties { get; set; } = new List<FormDataPropertyMetadata>();
Forms\ClientValidationCache.cs (1)
137var segments = new List<string>();
Rendering\Buffering\TextChunkListBuilder.cs (1)
25_priorPages ??= new();
Rendering\CacheViewTextWriter.cs (1)
132var nodes = new List<RenderTreeNode>(_entries.Count);
Rendering\EndpointHtmlRenderer.cs (2)
53private readonly List<Task> _nonStreamingPendingTasks = new(); 282var result = new List<StringValues>(form.Keys.Count);
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (4)
26var result = new List<RenderTreeNode>(); 73node.Attributes ??= new(); 82node.Children = new(); 122node.ComponentParameters ??= new();
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
src\aspnetcore\src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (1)
34var resources = new List<ResourceAsset>();
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>();
TempData\TempData.cs (1)
175private readonly List<string> _keysToRemove = new();
Microsoft.AspNetCore.Components.Forms (4)
EditContextDataAnnotationsExtensions.cs (3)
141var validationResults = new List<ValidationResult>(); 155var validationResults = new List<ValidationResult>(); 253var results = new List<ValidationResult>();
ValidationMessageStore.cs (1)
111messagesForField = new List<string>();
Microsoft.AspNetCore.Components.QuickGrid (7)
Columns\GridSort.cs (5)
62_then ??= new(); 63_thenExpressions ??= new(); 79_then ??= new(); 80_thenExpressions ??= new(); 119var result = new List<SortedProperty>
QuickGrid.razor.cs (1)
238_columns = new();
src\aspnetcore\src\Components\Shared\src\StringSegmentAccumulator.cs (1)
49_multiple = new();
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
ComponentParameterAnalyzer.cs (2)
46var properties = new List<IPropertySymbol>(); 65var captureUnmatchedValuesParameters = new List<IPropertySymbol>();
Microsoft.AspNetCore.Components.Server (17)
CircuitOptions.cs (2)
118public IList<IJsonTypeInfoResolver> JsonTypeInfoResolvers { get; } = new List<IJsonTypeInfoResolver>(); 137internal IList<string> JavaScriptInitializers { get; } = new List<string>();
Circuits\CircuitHost.cs (4)
272exceptions ??= new List<Exception>(); 304exceptions ??= new List<Exception>(); 340exceptions ??= new List<Exception>(); 368exceptions ??= new List<Exception>();
Circuits\ServerComponentDeserializer.cs (1)
98descriptors = new List<ComponentDescriptor>();
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
137public ICollection<EndpointDataSource> DataSources { get; } = new List<EndpointDataSource>() { };
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (4)
26var result = new List<RenderTreeNode>(); 73node.Attributes ??= new(); 82node.Children = new(); 122node.ComponentParameters ??= new();
src\aspnetcore\src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
273streams = new List<string>();
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.Components.Testing (7)
Infrastructure\ServerFactory.cs (1)
196var exceptions = new List<Exception> { launchException };
Infrastructure\ServerInstance.cs (1)
168var paths = new List<string>(WriteCapturedOutputTo(directory));
Infrastructure\TracingSession.cs (1)
82var savedFiles = new List<string>();
Playwright\UITest.cs (4)
34private readonly List<IAsyncDisposable> _disposables = new(); 35private readonly List<ServerInstance> _diagnosticServers = new(); 130exceptions ??= new(); 143exceptions ??= new();
Microsoft.AspNetCore.Components.Web (5)
_generated\8\WebRendererSerializerContext.ListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<string>(),
Forms\Mapping\FormMappingContext.cs (2)
105mappingError = new FormMappingError(key, new List<FormattableString>() { error }, attemptedValue); 107pendingErrors ??= new();
Forms\ValidationSummary.cs (1)
110var messages = new List<string>(GetValidationMessages());
JSComponents\JSComponentConfigurationStore.cs (1)
64identifiersForInitializer = new();
Microsoft.AspNetCore.Components.WebAssembly (13)
Hosting\WebAssemblyHost.cs (1)
198var pendingRenders = new List<Task>(count + initialOperationCount);
Hosting\WebAssemblyHostConfiguration.cs (4)
18private readonly List<IConfigurationProvider> _providers = new List<IConfigurationProvider>(); 19private readonly List<IConfigurationSource> _sources = new List<IConfigurationSource>(); 21private readonly List<IDisposable> _changeTokenRegistrations = new List<IDisposable>(); 95var result = new List<IConfigurationSection>();
Services\LazyAssemblyLoader.cs (2)
50var loadedAssemblies = new List<Assembly>(); 72var loadedAssemblies = new List<Assembly>();
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (4)
26var result = new List<RenderTreeNode>(); 73node.Attributes ??= new(); 82node.Children = new(); 122node.ComponentParameters ??= new();
src\aspnetcore\src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Options\OidcProviderOptions.cs (1)
33public IList<string> DefaultScopes { get; } = new List<string> { "openid", "profile" };
Microsoft.AspNetCore.Components.WebView (2)
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
168patterns ??= new();
WebViewManager.cs (1)
232var pendingRenders = new List<Task>(_rootComponentsBySelector.Count);
Microsoft.AspNetCore.Connections.Abstractions (2)
ConnectionBuilder.cs (1)
16private readonly IList<Func<ConnectionDelegate, ConnectionDelegate>> _components = new List<Func<ConnectionDelegate, ConnectionDelegate>>();
MultiplexedConnectionBuilder.cs (1)
16private readonly IList<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>> _components = new List<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>>();
Microsoft.AspNetCore.CookiePolicy (1)
ResponseCookiesWrapper.cs (1)
142var nonSuppressedValues = new List<KeyValuePair<string, string>>(keyValuePairs.Length);
Microsoft.AspNetCore.Cors (7)
Infrastructure\CorsPolicy.cs (4)
98public IList<string> ExposedHeaders { get; } = new List<string>(); 103public IList<string> Headers { get; } = new List<string>(); 108public IList<string> Methods { get; } = new List<string>(); 113public IList<string> Origins { get; } = new List<string>();
Infrastructure\CorsResult.cs (3)
40public IList<string> AllowedMethods { get; } = new List<string>(); 45public IList<string> AllowedHeaders { get; } = new List<string>(); 50public IList<string> AllowedExposedHeaders { get; } = new List<string>();
Microsoft.AspNetCore.DataProtection (9)
AuthenticatedEncryption\ConfigurationModel\ManagedAlgorithmHelpers.cs (1)
14private static readonly List<Type> KnownAlgorithmTypes = new List<Type>
KeyManagement\KeyManagementOptions.cs (2)
149public IList<IKeyEscrowSink> KeyEscrowSinks { get; } = new List<IKeyEscrowSink>(); 165public IList<IAuthenticatedEncryptorFactory> AuthenticatedEncryptorFactories { get; } = new List<IAuthenticatedEncryptorFactory>();
RegistryPolicyResolver.cs (1)
42var sinks = new List<string>();
Repositories\EphemeralXmlRepository.cs (2)
19private readonly List<XElement> _storedElements = new List<XElement>(); 63var deletableElements = new List<DeletableElement>();
Repositories\FileSystemXmlRepository.cs (1)
184var deletableElements = new List<DeletableElement>();
Repositories\RegistryXmlRepository.cs (1)
164var deletableElements = new List<DeletableElement>();
XmlEncryption\XmlKeyDecryptionOptions.cs (1)
33certificates = _certs[key] = new List<X509Certificate2>();
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
140var certificates = new List<X509Certificate2>(); 805var extensions = new List<X509Extension>(); 1076var certificatesToDispose = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
380var certsFromStore = new List<X509Certificate2>(); 426var certsFromDisk = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
843var nssDbs = new List<string>(); 863var nssDbs = new List<NssDb>(); 1018var certs = new List<FileInfo>();
Microsoft.AspNetCore.Diagnostics (9)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
292var stackFrames = new List<StackFrameSourceCodeInfo>();
DeveloperExceptionPage\Views\CompilationErrorModel.cs (2)
27public IList<ExceptionDetails> ErrorDetails { get; } = new List<ExceptionDetails>(); 32public IList<string?> CompiledContent { get; } = new List<string?>();
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
47_exceptionHandlers = exceptionHandlers as IExceptionHandler[] ?? new List<IExceptionHandler>(exceptionHandlers).ToArray();
src\aspnetcore\src\Shared\Diagnostics\BaseView.cs (1)
100AttributeValues = new List<string>();
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
140AttributeValues = new List<string>();
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
62var typeLoadExceptions = new List<Exception>(); 72var list = new List<Exception>();
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
39var frames = new List<StackFrameInfo>(stackFrames.Length);
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
DatabaseDeveloperPageExceptionFilter.cs (1)
65var contextDetails = new List<DatabaseContextDetails>();
src\aspnetcore\src\Shared\Diagnostics\BaseView.cs (1)
100AttributeValues = new List<string>();
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
140AttributeValues = new List<string>();
Microsoft.AspNetCore.Diagnostics.Middleware (11)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (3)
204temp10 ??= (global::System.Collections.Generic.IList<global::Microsoft.Extensions.Diagnostics.Buffering.LogBufferingFilterRule>)new List<global::Microsoft.Extensions.Diagnostics.Buffering.LogBufferingFilterRule>(); 296attributes = (global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object>>)new List<global::System.Collections.Generic.KeyValuePair<string, object>>(); 328(temp ??= new List<string>()).Add($"'{section.Key}'");
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (8)
29var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 30var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 88var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 89var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 127var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 128var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 196var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 197var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (2)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
RedactionBenchmark.cs (1)
41var routeSegments = new List<RouteSegment>();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (31)
Buffering\TestConfiguration.cs (1)
25return new ConfigurationRoot(new List<IConfigurationProvider> { provider });
Latency\RequestLatencyTelemetryMiddlewareTests.cs (5)
33Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 }, 64new List<ILatencyDataExporter> { ex1, ex2 }); 92Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 }, 122new List<ILatencyDataExporter> { ex1, ex2 }, 173new List<ILatencyDataExporter> { ex1 },
Logging\HeaderReaderTests.cs (3)
21var listToFill = new List<KeyValuePair<string, object?>>(); 31var listToFill = new List<KeyValuePair<string, object?>>(); 56var listToFill = new List<KeyValuePair<string, object?>>();
Logging\HttpUtilityExtensionsTests.cs (2)
37var metadata = new List<object>(1); 68var metadata = new List<object>(1);
Logging\IncomingHttpRouteUtilityTests.cs (20)
31controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 41var metadata = new List<object> { controllerActionDescriptor }; 69controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 79var metadata = new List<object> { controllerActionDescriptor }; 109controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 119var metadata = new List<object> { controllerActionDescriptor }; 151controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 161var metadata = new List<object> { controllerActionDescriptor }; 193controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 203var metadata = new List<object> { controllerActionDescriptor }; 240controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 250var metadata = new List<object> { controllerActionDescriptor }; 281controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 291var metadata = new List<object> { controllerActionDescriptor }; 329controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 339var metadata = new List<object> { controllerActionDescriptor }; 374controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 384var metadata = new List<object> { controllerActionDescriptor }; 422var metadata = new List<object> { }; 451var metadata = new List<object> { };
Microsoft.AspNetCore.Grpc.JsonTranscoding (14)
Internal\Binding\ReflectionServiceInvokerResolver.cs (1)
37var metadata = new List<object>();
Internal\JsonTranscodingRouteAdapter.cs (4)
56var rewriteActions = new List<Action<HttpContext>>(); 88var routeParameterParts = new List<string>(); 89var routeValueFormatTemplateParts = new List<string>(); 90var variableParts = new List<string>();
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (1)
63values = new List<AuthProperty>();
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\HttpRoutePattern.cs (1)
32public List<string> FieldPath { get; } = new List<string>();
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (2)
40_segments = new List<string>(); 41_variables = new List<HttpRouteVariable>();
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\Server\MethodOptions.cs (1)
117var tempInterceptors = new List<InterceptorRegistration>();
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (3)
87fieldDescriptors ??= new List<FieldDescriptor>(); 480var existingParameters = new List<FieldDescriptor>(); 505RecursiveVisitMessages(queryParameters, existingParameters, methodDescriptor.InputType, new List<FieldDescriptor>());
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (1)
53List<string> dnsEntries = new List<string>();
Microsoft.AspNetCore.HeaderParsing (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
186(temp ??= new List<string>()).Add($"'{section.Key}'");
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
22var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 23var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Parsers\IPAddressListParser.cs (1)
18var list = new List<IPAddress>();
Microsoft.AspNetCore.HeaderParsing.Tests (4)
ParserTests.cs (4)
372Assert.Equal(new List<IPAddress> { IPAddress.Parse("1.1.1.1"), IPAddress.Parse("192.168.1.100"), IPAddress.Parse("3.3.3.3") }, result); 382Assert.Equal(new List<IPAddress> { IPAddress.Parse("1.1.1.1"), IPAddress.Parse("192.168.1.100"), IPAddress.Parse("3.3.3.3") }, result); 394Assert.Equal(new List<IPAddress> { IPAddress.Parse("1.1.1.1") }, result); 406Assert.Equal(new List<IPAddress> { IPAddress.Parse("1::ffff") }, result);
Microsoft.AspNetCore.HostFiltering (2)
HostFilteringOptions.cs (1)
24public IList<string> AllowedHosts { get; set; } = new List<string>();
MiddlewareConfigurationManager.cs (1)
40var allowedHosts = new List<StringSegment>();
Microsoft.AspNetCore.Hosting (9)
GenericHost\GenericWebHostBuilder.cs (1)
129var exceptions = new List<Exception>();
Internal\HttpMetricsTagsFeature.cs (1)
13public List<KeyValuePair<string, object?>> TagsList { get; } = new List<KeyValuePair<string, object?>>();
Server\Features\ServerAddressesFeature.cs (1)
14public ICollection<string> Addresses { get; } = new List<string>();
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
140AttributeValues = new List<string>();
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
62var typeLoadExceptions = new List<Exception>(); 72var list = new List<Exception>();
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
39var frames = new List<StackFrameInfo>(stackFrames.Length);
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
168patterns ??= new();
WebHostBuilder.cs (1)
226var exceptions = new List<Exception>();
Microsoft.AspNetCore.Html.Abstractions (2)
HtmlContentBuilder.cs (2)
19: this(new List<object>()) 28: this(new List<object>(capacity))
Microsoft.AspNetCore.Http (8)
Builder\ApplicationBuilder.cs (3)
23private readonly List<Func<RequestDelegate, RequestDelegate>> _components = new(); 54_descriptions = new(); 67_descriptions = new();
Features\QueryFeature.cs (1)
167var list = new List<string>();
Features\RequestCookiesFeature.cs (1)
83var headers = new List<string>(_parsedValues.Count);
FormFileCollection.cs (1)
31var files = new List<IFormFile>();
Internal\ResponseCookies.cs (1)
149var newValues = new List<string>();
src\aspnetcore\src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
Microsoft.AspNetCore.Http.Abstractions (8)
CookieBuilder.cs (1)
89get => _extensions ??= new List<string>();
Extensions\EndpointBuilder.cs (2)
18public IList<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>> FilterFactories => _filterFactories ??= new(); 33public IList<object> Metadata { get; } = new List<object>();
Extensions\UseMiddlewareExtensions.cs (1)
248var parameterTypeExpression = new List<Expression>() { providerArg };
Routing\EndpointMetadataCollection.cs (1)
119matches ??= new List<T>();
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>();
WebSocketManager.cs (1)
63public IList<string> WebSocketRequestedProtocols => new List<string>(_manager.WebSocketRequestedProtocols);
Microsoft.AspNetCore.Http.Connections (11)
ConnectionEndpointRouteBuilderExtensions.cs (1)
96var conventionBuilders = new List<IEndpointConventionBuilder>();
HttpConnectionDispatcherOptions.cs (1)
29AuthorizationData = new List<IAuthorizeData>();
Internal\HttpConnectionContext.cs (2)
240_heartbeatHandlers = new List<(Action<object> handler, object state)>(); 289_userRefreshedCallbacks ??= new List<UserRefreshedCallbackRegistration>();
Internal\HttpConnectionDispatcher.cs (4)
28TransferFormats = new List<string> { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) } 35TransferFormats = new List<string> { nameof(TransferFormat.Text) } 42TransferFormats = new List<string> { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) } 571response.AvailableTransports = new List<AvailableTransport>();
Internal\HttpConnectionManager.cs (1)
190var tasks = new List<Task>(_connections.Count);
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnection.cs (1)
318var transportExceptions = new List<Exception>();
Microsoft.AspNetCore.Http.Connections.Common (2)
NegotiateProtocol.cs (2)
203availableTransports = new List<AvailableTransport>(); 306availableTransport.TransferFormats = new List<string>();
Microsoft.AspNetCore.Http.Extensions (25)
QueryBuilder.cs (2)
25_params = new List<KeyValuePair<string, string>>(); 34_params = new List<KeyValuePair<string, string>>(parameters);
RequestDelegateFactory.cs (3)
311return new List<object>(metadata); 659factoryContext.Parameters = new List<ParameterInfo>(parameters); 1636var bindings = new List<MemberBinding>(properties.Length);
RequestDelegateFactoryContext.cs (4)
39public List<ParameterExpression> ExtraLocals { get; } = new(); 40public List<Expression> ParamCheckExpressions { get; } = new(); 41public List<Func<HttpContext, ValueTask<object?>>> ParameterBinders { get; } = new(); 62public List<ParameterInfo> Parameters { get; set; } = new();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ReadOnlyCollectionBufferAdapter.cs (1)
10public static IList<TElement> CreateBuffer() => new List<TElement>();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (6)
33var parameters = new List<ParameterExpression>() { readerParam, typeParam, optionsParam, resultParam, foundValueParam }; 40var variables = new List<ParameterExpression>() { propertyFoundValue, succeeded, localFoundValueVar, exceptionVar }; 42var propertyValueLocals = new List<ParameterExpression>(); 43var constructorParameterValueLocals = new List<ParameterExpression>(); 45var body = new List<Expression>() 190var assignments = new List<Expression>();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataMapperOptions.cs (1)
15private readonly List<IFormDataConverterFactory> _factories = new();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
317public List<Type> CurrentTypes { get; set; } = new();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataTypeMetadata.cs (2)
22public IList<FormDataParameterMetadata> ConstructorParameters { get; set; } = new List<FormDataParameterMetadata>(); 24public IList<FormDataPropertyMetadata> Properties { get; set; } = new List<FormDataPropertyMetadata>();
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (2)
90List<ParameterInfo> list = new(parameters.Length); 193var attributes = new List<CustomAttributeData>(
TagsAttribute.cs (1)
28Tags = new List<string>(tags);
Microsoft.AspNetCore.Http.Features (2)
CookieOptions.cs (2)
48_extensions = new List<string>(options._extensions); 105get => _extensions ??= new List<string>();
Microsoft.AspNetCore.Http.RequestDelegateGenerator (4)
src\aspnetcore\src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
21private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
StaticRouteHandlerModel\Endpoint.cs (1)
102public List<Diagnostic> Diagnostics { get; } = new List<Diagnostic>();
StaticRouteHandlerModel\EndpointParameter.cs (1)
493var propertiesWithParameterInfo = new List<ConstructorParameter>();
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (1)
300var potentialImplicitBodyParameters = new List<EndpointParameter>();
Microsoft.AspNetCore.HttpLogging (6)
FileLoggerProcessor.cs (1)
30private readonly List<string> _currentBatch = new List<string>();
HttpLoggingInterceptorContext.cs (2)
71internal List<KeyValuePair<string, object?>> InternalParameters { get; set; } = new(); 145InternalParameters = new();
HttpLoggingMiddleware.cs (1)
153logContext.InternalParameters = new();
MediaTypeHelpers.cs (1)
13private static readonly List<Encoding> SupportedEncodings = new List<Encoding>()
MediaTypeOptions.cs (1)
14private readonly List<MediaTypeState> _mediaTypeStates = new();
Microsoft.AspNetCore.HttpOverrides (5)
DualIPNetworkList.cs (2)
21private readonly List<IPNetwork> _system = new(); 22private readonly List<AspNetIPNetwork> _aspnet = new();
ForwardedHeadersMiddleware.cs (1)
77var allowedHosts = new List<StringSegment>();
ForwardedHeadersOptions.cs (2)
88public IList<IPAddress> KnownProxies { get; } = new List<IPAddress>() { IPAddress.IPv6Loopback }; 116public IList<string> AllowedHosts { get; set; } = new List<string>();
Microsoft.AspNetCore.HttpsPolicy (1)
HstsOptions.cs (1)
40public IList<string> ExcludedHosts { get; } = new List<string>
Microsoft.AspNetCore.Identity (3)
SignInManager.cs (3)
219claims = new List<Claim>(); 258additionalClaims = new List<Claim>(); 868var claims = new List<Claim>
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
UserStore.cs (1)
666return new List<TUser>();
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
113var viewsToRemove = new List<CompiledViewDescriptor>();
Microsoft.AspNetCore.InternalTesting (3)
Tracing\EventAssert.cs (1)
17private readonly IList<(string name, Action<object> asserter)> _payloadAsserters = new List<(string, Action<object>)>();
Tracing\EventSourceValidator.cs (1)
51var errors = new List<string>();
xunit\AspNetTestRunner.cs (1)
79List<string> messages = new();
Microsoft.AspNetCore.JsonPatch (7)
Converters\JsonPatchDocumentConverter.cs (1)
41var targetOperations = new List<Operation>();
Internal\DynamicObjectAdapter.cs (2)
180new List<CSharpArgumentInfo> 216new List<CSharpArgumentInfo>
Internal\ParsedPath.cs (1)
44var strings = new List<string>();
JsonPatchDocument.cs (1)
202var allOps = new List<Operation>(Operations?.Count ?? 0);
JsonPatchDocumentOfT.cs (2)
638var allOps = new List<Operation>(Operations?.Count ?? 0); 678var listOfSegments = new List<string>();
Microsoft.AspNetCore.JsonPatch.SystemTextJson (4)
Internal\ParsedPath.cs (1)
39var strings = new List<string>();
JsonPatchDocument.cs (1)
205var allOps = new List<Operation>(Operations?.Count ?? 0);
JsonPatchDocumentOfT.cs (2)
641var allOps = new List<Operation>(Operations?.Count ?? 0); 690var listOfSegments = new List<string>();
Microsoft.AspNetCore.Localization (9)
ProviderCultureResult.cs (4)
19: this(new List<StringSegment> { culture }, new List<StringSegment> { culture }) 30: this(new List<StringSegment> { culture }, new List<StringSegment> { uiCulture })
RequestLocalizationOptions.cs (5)
22RequestCultureProviders = new List<IRequestCultureProvider> 97public IList<CultureInfo>? SupportedCultures { get; set; } = new List<CultureInfo> { CultureInfo.CurrentCulture }; 104public IList<CultureInfo>? SupportedUICultures { get; set; } = new List<CultureInfo> { CultureInfo.CurrentUICulture }; 125var supportedCultures = new List<CultureInfo>(cultures.Length); 144var supportedUICultures = new List<CultureInfo>(uiCultures.Length);
Microsoft.AspNetCore.Mvc.Abstractions (10)
Abstractions\ActionDescriptorProviderContext.cs (1)
15public IList<ActionDescriptor> Results { get; } = new List<ActionDescriptor>();
ApiExplorer\ApiDescription.cs (3)
34public IList<ApiParameterDescription> ParameterDescriptions { get; } = new List<ApiParameterDescription>(); 57public IList<ApiRequestFormat> SupportedRequestFormats { get; } = new List<ApiRequestFormat>(); 66public IList<ApiResponseType> SupportedResponseTypes { get; } = new List<ApiResponseType>();
ApiExplorer\ApiDescriptionProviderContext.cs (1)
23Results = new List<ApiDescription>();
ApiExplorer\ApiResponseType.cs (1)
16public IList<ApiResponseFormat> ApiResponseFormats { get; set; } = new List<ApiResponseFormat>();
ModelBinding\ModelMetadata.cs (1)
141var boundProperties = new List<ModelMetadata>();
ModelBinding\ModelStateDictionary.cs (2)
904ChildNodes = new List<ModelStateNode>(1); 1053_nodes = new List<ModelStateNode> { _rootNode };
ModelBinding\ValueProviderFactoryContext.cs (1)
32public IList<IValueProvider> ValueProviders { get; } = new List<IValueProvider>();
Microsoft.AspNetCore.Mvc.ApiExplorer (10)
ApiParameterContext.cs (1)
21Results = new List<ApiParameterDescription>();
ApiResponseTypeProvider.cs (1)
77return new List<ApiResponseMetadataProviderWithScope>();
DefaultApiDescriptionProvider.cs (4)
114var templateParameters = parsedTemplate?.Parameters?.ToList() ?? new List<TemplatePart>(); 363var constraints = new List<IRouteConstraint>(); 409var segments = new List<string>(); 444var results = new List<ApiRequestFormat>();
EndpointMetadataApiDescriptionProvider.cs (2)
227var constraints = new List<IRouteConstraint>(); 554actionDescriptor.EndpointMetadata = new List<object>(endpointMetadata);
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (2)
90List<ParameterInfo> list = new(parameters.Length); 193var attributes = new List<CustomAttributeData>(
Microsoft.AspNetCore.Mvc.Core (124)
ActionConstraints\ActionConstraintCache.cs (2)
59var items = new List<ActionConstraintItem>(action.ActionConstraints.Count); 102var items = new List<ActionConstraintItem>(entry.Items!.Count);
ActionConstraints\HttpMethodActionConstraint.cs (1)
35var methods = new List<string>();
ApplicationModels\ActionAttributeRouteModel.cs (1)
54var actionConstraints = new List<IActionConstraintMetadata>();
ApplicationModels\ActionModel.cs (8)
35Attributes = new List<object>(attributes); 36Filters = new List<IFilterMetadata>(); 37Parameters = new List<ParameterModel>(); 40Selectors = new List<SelectorModel>(); 59Attributes = new List<object>(other.Attributes); 60Filters = new List<IFilterMetadata>(other.Filters); 66Parameters = new List<ParameterModel>(other.Parameters.Select(p => new ParameterModel(p) { Action = this })); 67Selectors = new List<SelectorModel>(other.Selectors.Select(s => new SelectorModel(s)));
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
23ActionModelConventions = new List<IActionModelConvention>()
ApplicationModels\ApplicationModel.cs (2)
21Controllers = new List<ControllerModel>(); 22Filters = new List<IFilterMetadata>();
ApplicationModels\ApplicationModelFactory.cs (6)
58var results = new List<TResult>(); 63var routeTemplateErrors = new List<string>(); 180actions = new List<(ActionModel, SelectorModel)>(); 200actions = new List<(ActionModel, SelectorModel)>(); 221var namedRouteErrors = new List<string>(); 297var actionDescriptions = new List<string>(actions.Count);
ApplicationModels\ControllerActionDescriptorBuilder.cs (3)
64var parameterDescriptors = new List<ParameterDescriptor>(action.Parameters.Count); 185actionDescriptor.ActionConstraints = new List<IActionConstraintMetadata>(selectorModel.ActionConstraints); 193actionDescriptor.EndpointMetadata = new List<object>(selectorModel.EndpointMetadata);
ApplicationModels\ControllerModel.cs (10)
33Actions = new List<ActionModel>(); 35Attributes = new List<object>(attributes); 36ControllerProperties = new List<PropertyModel>(); 37Filters = new List<IFilterMetadata>(); 40Selectors = new List<SelectorModel>(); 58Attributes = new List<object>(other.Attributes); 59Filters = new List<IFilterMetadata>(other.Filters); 64Actions = new List<ActionModel>(other.Actions.Select(a => new ActionModel(a) { Controller = this })); 67new List<PropertyModel>(other.ControllerProperties.Select(p => new PropertyModel(p) { Controller = this })); 68Selectors = new List<SelectorModel>(other.Selectors.Select(s => new SelectorModel(s)));
ApplicationModels\DefaultApplicationModelProvider.cs (6)
143var filteredAttributes = new List<object>(); 337var applicableAttributes = new List<object>(routeAttributes.Length); 531var routeProviders = new List<IRouteTemplateProvider>(); 576var selectorModels = new List<SelectorModel>(); 588var filteredAttributes = new List<object>(); 624var filteredAttributes = new List<object>();
ApplicationModels\ParameterModelBase.cs (2)
26Attributes = new List<object>(attributes ?? throw new ArgumentNullException(nameof(attributes))); 40Attributes = new List<object>(other.Attributes);
ApplicationModels\SelectorModel.cs (4)
18ActionConstraints = new List<IActionConstraintMetadata>(); 19EndpointMetadata = new List<object>(); 30ActionConstraints = new List<IActionConstraintMetadata>(other.ActionConstraints); 31EndpointMetadata = new List<object>(other.EndpointMetadata);
ApplicationParts\ApplicationPartManager.cs (2)
18new List<IApplicationFeatureProvider>(); 29public IList<ApplicationPart> ApplicationParts { get; } = new List<ApplicationPart>();
ApplicationParts\RelatedAssemblyAttribute.cs (1)
79var relatedAssemblies = new List<Assembly>();
BindAttribute.cs (1)
26var items = new List<string>(include.Length);
Builder\MvcApplicationBuilderExtensions.cs (1)
96Routes = new List<IRouter>();
ConsumesAttribute.cs (3)
99readonly List<string> _contentTypes = new(); 238var completeArgs = new List<string>(args.Length + 1); 260var allContentTypes = new List<string>()
ControllerContext.cs (1)
78_valueProviderFactories = new List<IValueProviderFactory>();
Controllers\ControllerFeature.cs (1)
21public IList<TypeInfo> Controllers { get; } = new List<TypeInfo>();
Filters\FilterFactory.cs (2)
32var allFilterItems = new List<FilterItem>(staticFilterItems); 76var filterItems = new List<FilterItem>(cachedFilterItems.Length);
Formatters\AcceptHeaderParser.cs (1)
13var parsedValues = new List<MediaTypeSegmentWithQuality>();
Formatters\InputFormatter.cs (1)
156mediaTypes = new List<string>(SupportedMediaTypes.Count);
Formatters\OutputFormatter.cs (2)
67mediaTypes = new List<string>(SupportedMediaTypes.Count); 81mediaTypes = new List<string>(SupportedMediaTypes.Count);
Formatters\TextInputFormatter.cs (1)
32public IList<Encoding> SupportedEncodings { get; } = new List<Encoding>();
Formatters\TextOutputFormatter.cs (3)
26SupportedEncodings = new List<Encoding>(); 303var sorted = new List<StringWithQualityHeaderValue>(count); 318var sorted = new List<StringWithQualityHeaderValue>(values.Count);
Infrastructure\ActionSelectionTable.cs (1)
141entries = new List<T>();
Infrastructure\ActionSelector.cs (4)
116var candidates = new List<ActionSelectorCandidate>(actionsCount); 132results = new List<ActionDescriptor>(matchesCount); 179var actionsWithConstraint = new List<ActionSelectorCandidate>(); 180var actionsWithoutConstraint = new List<ActionSelectorCandidate>();
Infrastructure\AsyncEnumerableReader.cs (1)
82var result = new List<T>();
Infrastructure\CopyOnWriteList.cs (1)
30_copy = new List<T>(_source);
Infrastructure\DefaultOutputFormatterSelector.cs (1)
151var result = new List<MediaTypeSegmentWithQuality>();
Infrastructure\ObjectResultExecutor.cs (1)
174var considered = new List<string?>(contentTypes);
ModelBinding\Binders\CollectionModelBinder.cs (3)
237return new List<TElement?>(); 267var boundCollection = new List<TElement?>(); 344var boundCollection = new List<TElement?>();
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
64public ICollection<string> Keys => new List<string>();
ModelBinding\Binders\FormFileModelBinder.cs (2)
50postedFiles = new List<IFormFile>(); 195var files = new List<IFormFile>();
ModelBinding\CompositeValueProvider.cs (2)
182var filteredValueProviders = new List<IValueProvider>(); 229var filteredValueProviders = new List<IValueProvider>();
ModelBinding\EmptyModelMetadataProvider.cs (1)
21new DefaultCompositeMetadataDetailsProvider(new List<IMetadataDetailsProvider>()),
ModelBinding\FormFileValueProvider.cs (1)
43var fileNames = new List<string>();
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
337var propertyEntries = new List<DefaultMetadataDetails>(propertyHelpers.Length);
ModelBinding\Metadata\ValidationMetadata.cs (1)
44public IList<object> ValidatorMetadata { get; } = new List<object>();
ModelBinding\ModelBindingHelper.cs (2)
583return capacity.HasValue ? new List<T>(capacity.Value) : new List<T>();
ModelBinding\Validation\ClientValidatorCache.cs (2)
41var items = new List<ClientValidatorItem>(metadata.ValidatorMetadata.Count); 85var items = new List<ClientValidatorItem>(entry.Items.Count);
ModelBinding\Validation\CompositeClientModelValidatorProvider.cs (1)
23ValidatorProviders = new List<IClientModelValidatorProvider>(providers);
ModelBinding\Validation\ValidationStack.cs (1)
20internal List<object> List { get; } = new List<object>();
ModelBinding\Validation\ValidationVisitor.cs (1)
223var results = new List<ModelValidationResult>();
ModelBinding\Validation\ValidatorCache.cs (2)
31var items = new List<ValidatorItem>(metadata.ValidatorMetadata.Count); 75var items = new List<ValidatorItem>(entry.Items.Count);
MvcCoreLoggerExtensions.cs (1)
265var filterList = new List<string>();
MvcOptions.cs (5)
41Conventions = new List<IApplicationModelConvention>(); 46ModelBinderProviders = new List<IModelBinderProvider>(); 48ModelMetadataDetailsProviders = new List<IMetadataDetailsProvider>(); 49ModelValidatorProviders = new List<IModelValidatorProvider>(); 50ValueProviderFactories = new List<IValueProviderFactory>();
ProducesAttribute.cs (1)
109var completeArgs = new List<string>(args.Length + 1);
ProducesResponseTypeAttribute.cs (1)
110var completeContentTypes = new List<string>(additionalContentTypes.Length + 1);
Routing\ActionConstraintMatcherPolicy.cs (3)
106var items = new List<(int index, ActionSelectorCandidate candidate)>(); 191var endpointsWithConstraint = new List<(int index, ActionSelectorCandidate candidate)>(); 192var endpointsWithoutConstraint = new List<(int index, ActionSelectorCandidate candidate)>();
Routing\ActionEndpointDataSourceBase.cs (2)
37Conventions = new List<Action<EndpointBuilder>>(); 38FinallyConventions = new List<Action<EndpointBuilder>>();
Routing\AttributeRoute.cs (2)
137var routeInfos = new List<RouteInfo>(); 138var errors = new List<RouteInfo>();
Routing\ControllerActionEndpointDataSource.cs (4)
32_routes = new List<ConventionalRouteEntry>(); 58var conventions = new List<Action<EndpointBuilder>>(); 59var finallyConventions = new List<Action<EndpointBuilder>>(); 73var endpoints = new List<Endpoint>();
Routing\ViewEnginePath.cs (1)
77var pathSegments = new List<StringSegment>();
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>();
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
DataAnnotationsMetadataProvider.cs (2)
175var groupedDisplayNamesAndValues = new List<KeyValuePair<EnumGroupAndName, string>>(); 305var attributes = new List<object>(contextAttributesCount);
DataAnnotationsModelValidator.cs (1)
99var validationResults = new List<ModelValidationResult>();
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
XmlDataContractSerializerInputFormatter.cs (1)
43WrapperProviderFactories = new List<IWrapperProviderFactory>
XmlDataContractSerializerOutputFormatter.cs (1)
79WrapperProviderFactories = new List<IWrapperProviderFactory>()
XmlSerializerInputFormatter.cs (1)
40WrapperProviderFactories = new List<IWrapperProviderFactory>
XmlSerializerOutputFormatter.cs (1)
76WrapperProviderFactories = new List<IWrapperProviderFactory>
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\aspnetcore\src\Mvc\Mvc.Core\src\Infrastructure\AsyncEnumerableReader.cs (1)
82var result = new List<T>();
Microsoft.AspNetCore.Mvc.Razor (11)
Compilation\ViewsFeature.cs (1)
14public IList<CompiledViewDescriptor> ViewDescriptors { get; } = new List<CompiledViewDescriptor>();
RazorView.cs (1)
201var renderedLayouts = new List<IRazorPage>();
RazorViewEngine.cs (2)
352var searchedLocations = new List<string>(); 429var viewStartPages = new List<ViewLocationCacheItem>();
RazorViewEngineOptions.cs (5)
14public IList<IViewLocationExpander> ViewLocationExpanders { get; } = new List<IViewLocationExpander>(); 39public IList<string> ViewLocationFormats { get; } = new List<string>(); 69public IList<string> AreaViewLocationFormats { get; } = new List<string>(); 100public IList<string> PageViewLocationFormats { get; } = new List<string>(); 135public IList<string> AreaPageViewLocationFormats { get; } = new List<string>();
TagHelperComponentManager.cs (1)
22Components = new List<ITagHelperComponent>(tagHelperComponents);
TagHelpers\TagHelperFeature.cs (1)
21public IList<TypeInfo> TagHelpers { get; } = new List<TypeInfo>();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (7)
CompilationFailedExceptionFactory.cs (2)
31var failures = new List<CompilationFailure>(); 57var failures = new List<CompilationFailure>();
MvcRazorRuntimeCompilationOptions.cs (2)
24public IList<IFileProvider> FileProviders { get; } = new List<IFileProvider>(); 33public IList<string> AdditionalReferencePaths { get; } = new List<string>();
RazorReferenceManager.cs (1)
58var referencePaths = new List<string>(_options.AdditionalReferencePaths.Count);
RuntimeViewCompiler.cs (2)
238IList<IChangeToken> expirationTokens = new List<IChangeToken> 283var expirationTokens = new List<IChangeToken>(checksums.Count);
Microsoft.AspNetCore.Mvc.RazorPages (22)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
121var results = new List<PageBoundPropertyDescriptor>();
ApplicationModels\PageApplicationModel.cs (8)
41Filters = new List<IFilterMetadata>(); 45HandlerMethods = new List<PageHandlerModel>(); 46HandlerProperties = new List<PagePropertyModel>(); 48EndpointMetadata = new List<object>(ActionDescriptor.EndpointMetadata ?? Array.Empty<object>()); 64Filters = new List<IFilterMetadata>(other.Filters); 67HandlerMethods = new List<PageHandlerModel>(other.HandlerMethods.Select(m => new PageHandlerModel(m))); 68HandlerProperties = new List<PagePropertyModel>(other.HandlerProperties.Select(p => new PagePropertyModel(p))); 70EndpointMetadata = new List<object>(other.EndpointMetadata);
ApplicationModels\PageHandlerModel.cs (3)
28Parameters = new List<PageParameterModel>(); 48Attributes = new List<object>(other.Attributes); 52Parameters = new List<PageParameterModel>(other.Parameters.Select(p => new PageParameterModel(p) { Handler = this }));
ApplicationModels\PageRouteModel.cs (2)
38Selectors = new List<SelectorModel>(); 56Selectors = new List<SelectorModel>(other.Selectors.Select(m => new SelectorModel(m)));
ApplicationModels\PageRouteModelProviderContext.cs (1)
14public IList<PageRouteModel> RouteModels { get; } = new List<PageRouteModel>();
Infrastructure\DefaultPageHandlerMethodSelector.cs (2)
39ambiguousMatches = new List<HandlerMethodDescriptor> 67var candidates = new List<HandlerMethodDescriptor>();
Infrastructure\DefaultPageLoader.cs (1)
65var endpoints = new List<Endpoint>();
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
156var loadedEndpoints = new List<Endpoint>(endpoints);
Infrastructure\PageActionEndpointDataSource.cs (1)
52var endpoints = new List<Endpoint>();
Infrastructure\PageActionInvokerCache.cs (1)
115var viewStartFactories = new List<Func<IRazorPage>>();
PageContext.cs (1)
82_valueProviderFactories = new List<IValueProviderFactory>();
Microsoft.AspNetCore.Mvc.TagHelpers (5)
Cache\CacheTagKey.cs (1)
277var result = new List<KeyValuePair<string, string>>();
GlobbingUrlBuilder.cs (4)
84var urls = new List<string>(1 + globbedUrls.Count) 121var trimmedIncludePatterns = new List<string>(); 134var trimmedExcludePatterns = new List<string>(); 154var matchedUrls = new List<string>();
Microsoft.AspNetCore.Mvc.Testing (4)
DeferredHostBuilder.cs (1)
41var args = new List<string>();
WebApplicationFactory.cs (3)
44private readonly List<HttpClient> _clients = new(); 45private readonly List<WebApplicationFactory<TEntryPoint>> _derivedFactories = new(); 545var testAssemblies = new List<Assembly>();
Microsoft.AspNetCore.Mvc.ViewFeatures (29)
AttributeDictionary.cs (2)
87_items = new List<KeyValuePair<string, string?>>(); 100_items = new List<KeyValuePair<string, string?>>();
Buffers\MemoryPoolViewBufferScope.cs (2)
43_leased = new List<ViewBufferValue[]>(1); 79_available = new List<ViewBufferValue[]>();
Buffers\PagedCharBuffer.cs (1)
21public List<char[]> Pages { get; } = new List<char[]>();
Buffers\ViewBuffer.cs (1)
161_multiplePages = new List<ViewBufferPage>(2);
DefaultDisplayTemplates.cs (1)
64return new List<SelectListItem>
Filters\SaveTempDataPropertyFilterBase.cs (2)
87var errorMessages = new List<string>(); 99results = new List<LifecycleProperty>();
Filters\ViewDataAttributePropertyProvider.cs (1)
26results = new List<LifecycleProperty>();
FormContext.cs (1)
78_endOfFormContent = new List<IHtmlContent>();
HtmlHelper.cs (1)
1381var selectList = new List<SelectListItem>();
Infrastructure\DefaultTempDataSerializer.cs (2)
93var array = new List<string>(arrayLength); 104var array = new List<int>(arrayLength);
MemberExpressionCacheKey.cs (1)
30var members = new List<MemberInfo>();
MvcViewOptions.cs (2)
39public IList<IViewEngine> ViewEngines { get; } = new List<IViewEngine>(); 45new List<IClientModelValidatorProvider>();
PartialViewResultExecutor.cs (1)
86var locations = new List<string>(originalResult.SearchedLocations);
Rendering\MultiSelectList.cs (3)
101_groups = new List<SelectListGroup>(); 160var listItems = new List<SelectListItem>(); 186var listItems = new List<SelectListItem>();
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (1)
34var resources = new List<ResourceAsset>();
ValidationHelpers.cs (1)
61var entries = new List<ModelStateEntry>();
ViewComponents\DefaultViewComponentSelector.cs (1)
92var matchedTypes = new List<string>();
ViewComponents\ViewComponentDescriptorCollection.cs (1)
20Items = new List<ViewComponentDescriptor>(items);
ViewComponents\ViewComponentFeature.cs (1)
21public IList<TypeInfo> ViewComponents { get; } = new List<TypeInfo>();
ViewEngines\CompositeViewEngine.cs (2)
66searchedList = new List<string>(searchedLocations); 111searchedList = new List<string>(searchedLocations);
ViewResultExecutor.cs (1)
87var locations = new List<string>(originalResult.SearchedLocations);
Microsoft.AspNetCore.OpenApi (8)
Schemas\OpenApiJsonSchema.Helpers.cs (1)
33var values = new List<T>();
Services\OpenApiGenerator.cs (1)
369var openApiParameters = new List<IOpenApiParameter>();
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (2)
90List<ParameterInfo> list = new(parameters.Length); 193var attributes = new List<CustomAttributeData>(
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.OpenApi.SourceGenerators (6)
XmlCommentGenerator.Parser.cs (3)
61var comments = new List<(string, string)>(); 78var comments = new List<(string, string)>(); 118var comments = new List<(string, XmlComment?)>();
XmlComments\XmlComment.InheritDoc.cs (1)
97var result = new List<XNode>();
XmlComments\XmlParameterComment.cs (1)
19var result = new List<XmlParameterComment>();
XmlComments\XmlResponseComment.cs (1)
19var result = new List<XmlResponseComment>();
Microsoft.AspNetCore.OutputCaching (9)
OutputCacheEntryFormatter.cs (1)
510var pairs = new List<KeyValuePair<string, int>>(arr.Length);
OutputCacheMiddleware.cs (3)
230result = new(); 240result ??= new(); 248result ??= new();
OutputCacheOptions.cs (2)
87BasePolicies ??= new(); 107BasePolicies ??= new();
OutputCachePolicyBuilder.cs (3)
19private readonly List<IOutputCachePolicy> _policies = new(); 69_requirements ??= new(); 83_requirements ??= new();
Microsoft.AspNetCore.RateLimiting (2)
DefaultCombinedLease.cs (2)
73exceptions ??= new List<Exception>(); 83exceptions ??= new List<Exception>(1);
Microsoft.AspNetCore.Razor (4)
TagHelpers\DefaultTagHelperContent.cs (1)
29_buffer = new List<object>();
TagHelpers\ReadOnlyTagHelperAttributeList.cs (2)
18: base(new List<TagHelperAttribute>()) 130matchedAttributes = new List<TagHelperAttribute>();
TagHelpers\TagHelperAttributeList.cs (1)
25: base(new List<TagHelperAttribute>(attributes))
Microsoft.AspNetCore.Razor.Runtime (3)
Hosting\RazorCompiledItemLoader.cs (1)
38var items = new List<RazorCompiledItem>();
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
63_tagHelpers = new List<ITagHelper>();
Runtime\TagHelpers\TagHelperScopeManager.cs (1)
112_executionContexts = new List<TagHelperExecutionContext>();
Microsoft.AspNetCore.ResponseCaching (1)
src\aspnetcore\src\Shared\SegmentWriteStream.cs (1)
8private readonly List<byte[]> _segments = new();
Microsoft.AspNetCore.Rewrite (10)
ApacheModRewrite\FileParser.cs (1)
11var rules = new List<IRule>();
ApacheModRewrite\RuleBuilder.cs (2)
16internal IList<UrlAction> _actions = new List<UrlAction>(); 56_conditions = new List<Condition>();
ApacheModRewrite\TestStringParser.cs (1)
39var results = new List<PatternSegment>();
ApacheModRewrite\Tokenizer.cs (1)
34var tokens = new List<string>();
BackReferenceCollection.cs (1)
10private readonly List<string> _backReferences = new List<string>();
IISUrlRewrite\ConditionCollection.cs (1)
10private readonly List<Condition> _conditions = new List<Condition>();
IISUrlRewrite\InputParser.cs (1)
58var results = new List<PatternSegment>();
IISUrlRewrite\UrlRewriteFileParser.cs (1)
33var result = new List<IISUrlRewriteRule>();
RewriteOptions.cs (1)
18public IList<IRule> Rules { get; } = new List<IRule>();
Microsoft.AspNetCore.Routing (83)
Builder\EndpointRouteBuilderExtensions.cs (1)
214new List<object>(options.EndpointBuilder.Metadata) :
CompositeEndpointDataSource.cs (6)
41_dataSources = new List<EndpointDataSource>(); 89var groupedEndpoints = new List<Endpoint>(); 121disposables ??= new List<IDisposable>(); 128disposables ??= new List<IDisposable>(); 249_changeTokenRegistrations = new(); 265var endpoints = new List<Endpoint>();
Constraints\HttpMethodRouteConstraint.cs (1)
24AllowedMethods = new List<string>(allowedMethods);
DecisionTree\DecisionTreeBuilder.cs (4)
76var itemDescriptors = new List<ItemDescriptor<TItem>>(itemCount); 107var matches = new List<TItem>(); 134branch = new List<ItemDescriptor<TItem>>(); 150var reducedCriteria = new List<DecisionCriterion<TItem>>();
DefaultEndpointDataSource.cs (1)
38_endpoints = new List<Endpoint>(endpoints);
DefaultEndpointRouteBuilder.cs (1)
13DataSources = new List<EndpointDataSource>();
DefaultLinkParser.cs (1)
94var constraintsForParameter = new List<IRouteConstraint>();
InlineRouteParameterParser.cs (1)
100var inlineConstraints = new List<InlineConstraint>();
Matching\AcceptsMatcherPolicy.cs (2)
166edges.Add(contentType, new List<Endpoint>()); 224edges.Add(AnyContentType, new List<Endpoint>()
Matching\CandidateSet.cs (1)
339var duplicates = new List<Endpoint>();
Matching\DefaultEndpointSelector.cs (1)
111var matches = new List<Endpoint>();
Matching\DfaMatcherBuilder.cs (15)
18private readonly List<RouteEndpoint> _endpoints = new List<RouteEndpoint>(); 53_slots = new List<KeyValuePair<string, object>>(); 54_captures = new List<(string parameterName, int segmentIndex, int slotIndex)>(); 55_complexSegments = new List<(RoutePatternPathSegment pathSegment, int segmentIndex)>(); 56_constraints = new List<KeyValuePair<string, IRouteConstraint>>(); 72var work = new List<DfaBuilderWorkerWorkItem>(_endpoints.Count); 83work.Add(new DfaBuilderWorkerWorkItem(endpoint, precedenceDigit, new List<DfaNode>() { root, })); 177_previousWork = new List<DfaBuilderWorkerWorkItem>(); 223nextParents = new List<DfaNode>(); 659endpointSelectorPolicies = new List<IEndpointSelectorPolicy>(); 889var work = new List<DfaNode>() { node, }; 899nextWork = new List<DfaNode>(); 955var nodeBuilderPolicies = new List<INodeBuilderPolicy>(); 956var endpointComparerPolicies = new List<IEndpointComparerPolicy>(); 957var endpointSelectorPolicies = new List<IEndpointSelectorPolicy>();
Matching\DfaNode.cs (2)
62Matches = new List<Endpoint>(); 72Matches = new List<Endpoint>(endpoints);
Matching\HostMatcherPolicy.cs (2)
222edges.Add(host, new List<Endpoint>()); 289(result ??= new()).Add(CreateEdgeKey(host));
Matching\HttpMethodMatcherPolicy.cs (6)
174var allHttpMethods = new List<string>(); 197edges.Add(key, new List<Endpoint>()); 207edges.Add(key, new List<Endpoint>()); 285var matches = new List<Endpoint>() { endpoint, }; 360new HttpMethodDestinationsLookup(destinations ?? new(), exitDestination), 374destinations ??= new();
ParameterPolicyActivator.cs (1)
148var result = new List<ConstructorInfo>();
Patterns\DefaultRoutePatternTransformer.cs (3)
174updatedSegments = new List<RoutePatternPathSegment>(original.PathSegments); 175updatedParameters = new List<RoutePatternParameterPart>(original.Parameters); 230var updatedParts = new List<RoutePatternPart>(segment.Parts);
Patterns\RoutePatternFactory.cs (3)
482parameters = new List<RoutePatternParameterPart>(); 617parameterConstraints = new List<RoutePatternParameterPolicyReference>(parameter.ParameterPolicies.Count); 657var policyReferences = new List<RoutePatternParameterPolicyReference>();
Patterns\RoutePatternParser.cs (2)
32var segments = new List<RoutePatternPathSegment>(); 76var parts = new List<RoutePatternPart>();
RouteBuilder.cs (1)
47Routes = new List<IRouter>();
RouteCollection.cs (2)
19private readonly List<IRouter> _routes = new List<IRouter>(); 20private readonly List<IRouter> _unnamedRoutes = new List<IRouter>();
RouteConstraintBuilder.cs (1)
171list = new List<IRouteConstraint>();
RouteEndpointDataSource.cs (1)
23private readonly List<RouteEntry> _routeEntries = new();
RouteGroupBuilder.cs (4)
23private readonly List<EndpointDataSource> _dataSources = new(); 24private readonly List<Action<EndpointBuilder>> _conventions = new(); 25private readonly List<Action<EndpointBuilder>> _finallyConventions = new(); 109var groupedEndpoints = new List<Endpoint>();
RouteValuesAddressScheme.cs (2)
72var matchesWithRequiredValues = new List<OutboundMatch>(); 134matchResults = new List<OutboundMatchResult>();
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>();
Template\DefaultTemplateBinderFactory.cs (1)
39var policies = new List<(string parameterName, IParameterPolicy policy)>();
Template\RouteTemplate.cs (3)
32Segments = new List<TemplateSegment>(other.PathSegments.Count); 38Parameters = new List<TemplatePart>(); 67Parameters = new List<TemplatePart>();
Template\TemplateBinder.cs (2)
141(constraintList ??= new()).Add((p.parameterName, routeConstraint)); 145(parameterTransformerList ??= new()).Add((p.parameterName, transformer));
Template\TemplateSegment.cs (2)
21Parts = new List<TemplatePart>(); 33Parts = new List<TemplatePart>(partCount);
Tree\LinkGenerationDecisionTree.cs (3)
31var attributedEntries = new List<OutboundMatch>(); 32_conventionalEntries = new List<OutboundMatch>(); 72var results = new List<OutboundMatchResult>();
Tree\TreeRouteBuilder.cs (2)
236public IList<InboundRouteEntry> InboundEntries { get; } = new List<InboundRouteEntry>(); 242public IList<OutboundRouteEntry> OutboundEntries { get; } = new List<OutboundRouteEntry>();
Tree\TreeRouter.cs (1)
90var outboundMatches = new List<OutboundMatch>();
Tree\UrlMatchingNode.cs (1)
30Matches = new List<InboundMatch>();
UriBuildingContext.cs (1)
32_buffer = new List<BufferValue>();
Microsoft.AspNetCore.Routing.Abstractions (5)
RouteData.cs (3)
40_routers = new List<IRouter>(other.Routers); 90_routers = new List<IRouter>(); 148routers = new List<IRouter>(count.Value);
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>();
Microsoft.AspNetCore.Server.HttpSys (5)
AuthenticationManager.cs (1)
150IList<string> challenges = new List<string>();
RequestProcessing\RequestContext.FeatureCollection.cs (2)
76private List<Tuple<Func<object, Task>, object>>? _onStartingActions = new List<Tuple<Func<object, Task>, object>>(); 77private List<Tuple<Func<object, Task>, object>>? _onCompletedActions = new List<Tuple<Func<object, Task>, object>>();
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_blockAccessExceptions = new List<Exception>();
src\aspnetcore\src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
Microsoft.AspNetCore.Server.IIS (7)
Core\IISHttpContext.FeatureCollection.cs (1)
97MaybeExtra = new List<KeyValuePair<Type, object>>(2);
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_blockAccessExceptions = new List<Exception>();
src\aspnetcore\src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
140AttributeValues = new List<string>();
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
62var typeLoadExceptions = new List<Exception>(); 72var list = new List<Exception>();
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
39var frames = new List<StackFrameInfo>(stackFrames.Length);
Microsoft.AspNetCore.Server.IntegrationTesting (7)
TestMatrix.cs (7)
11public IList<ServerType> Servers { get; set; } = new List<ServerType>(); 12public IList<string> Tfms { get; set; } = new List<string>(); 13public IList<ApplicationType> ApplicationTypes { get; set; } = new List<ApplicationType>(); 14public IList<RuntimeArchitecture> Architectures { get; set; } = new List<RuntimeArchitecture>(); 17public IList<HostingModel> HostingModels { get; set; } = new List<HostingModel>(); 19private IList<Tuple<Func<TestVariant, bool>, string>> Skips { get; } = new List<Tuple<Func<TestVariant, bool>, string>>(); 117var variants = new List<TestVariant>();
Microsoft.AspNetCore.Server.Kestrel.Core (41)
HttpsConfigurationService.cs (2)
153ApplicationProtocols = sslServerAuthenticationOptions.ApplicationProtocols ?? new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 }, 162ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 },
Internal\ConfigurationReader.cs (1)
70var endpoints = new List<EndpointConfig>();
Internal\Http\Http1OutputProducer.cs (1)
743_completedSegments = new List<CompletedBuffer>();
Internal\Http\HttpProtocol.Generated.cs (1)
169MaybeExtra = new List<KeyValuePair<Type, object>>(2);
Internal\Http3\Http3PeerSettings.cs (1)
24var list = new List<Http3PeerSetting>(1);
Internal\Infrastructure\KestrelConnection.cs (1)
68_heartbeatHandlers = new List<(Action<object> handler, object state)>();
Internal\Infrastructure\KestrelConnectionOfT.cs (1)
105public List<KeyValuePair<string, object?>> TagsList { get; } = new List<KeyValuePair<string, object?>>();
Internal\Infrastructure\KestrelEventSource.cs (1)
41private readonly List<WeakReference<KestrelServerOptions>> _options = new();
Internal\Infrastructure\TransportConnectionManager.cs (2)
57var closeTasks = new List<Task>(); 74var abortTasks = new List<Task>();
Internal\Infrastructure\TransportManager.cs (2)
108var transportsToStop = new List<ActiveTransport>(); 121return StopTransportsAsync(new List<ActiveTransport>(_transports), cancellationToken);
Internal\KestrelServerImpl.cs (1)
366var configsToStop = new List<EndpointConfig>(endpointsToStop.Count);
Internal\ServerAddressesCollection.cs (2)
15private readonly List<string> _addresses = new List<string>(); 91return new List<string>(_addresses).GetEnumerator();
KestrelConfigurationLoader.cs (6)
75private IList<Action> EndpointsToAdd { get; } = new List<Action>(); 343var endpointsToStart = new List<ListenOptions>(); 344var endpointsToReuse = new List<ListenOptions>(); 394var matchingBoundEndpoints = new List<ListenOptions>(); 441var certificateConfigsToRemove = new List<CertificateConfig>(); 442var certificateConfigsToAdd = new List<CertificateConfig>();
KestrelServerOptions.cs (3)
74internal List<ListenOptions> CodeBackedListenOptions { get; } = new List<ListenOptions>(); 75internal List<ListenOptions> ConfigurationBackedListenOptions { get; } = new List<ListenOptions>(); 92internal List<ListenOptions> OptionsInUse { get; } = new List<ListenOptions>();
ListenOptions.cs (2)
21private readonly List<Func<ConnectionDelegate, ConnectionDelegate>> _middleware = new List<Func<ConnectionDelegate, ConnectionDelegate>>(); 22private readonly List<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>> _multiplexedMiddleware = new List<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>>();
LocalhostListenOptions.cs (1)
40var exceptions = new List<Exception>();
Middleware\HttpsConnectionMiddleware.cs (2)
390serverOptions.ApplicationProtocols = new List<SslApplicationProtocol>(); 576ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http3 },
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_blockAccessExceptions = new List<Exception>();
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
140var certificates = new List<X509Certificate2>(); 805var extensions = new List<X509Extension>(); 1076var certificatesToDispose = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
380var certsFromStore = new List<X509Certificate2>(); 426var certsFromDisk = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
843var nssDbs = new List<string>(); 863var nssDbs = new List<NssDb>(); 1018var certs = new List<FileInfo>();
src\aspnetcore\src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
src\aspnetcore\src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
103var list = new List<Http2PeerSetting>(2);
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
DirectTlsTransportFactory.cs (1)
195var applicationProtocols = new List<SslApplicationProtocol>();
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
111MaybeExtra = new List<KeyValuePair<Type, object>>(2);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
111MaybeExtra = new List<KeyValuePair<Type, object>>(2);
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_blockAccessExceptions = new List<Exception>();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Internal\QuicStreamContext.FeatureCollection.cs (1)
111_onClosedRegistrations = new List<OnCloseRegistration>();
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
111MaybeExtra = new List<KeyValuePair<Type, object>>(2);
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (1)
98MaybeExtra = new List<KeyValuePair<Type, object>>(2);
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_blockAccessExceptions = new List<Exception>();
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Internal\SocketSender.cs (1)
83_bufferList = new List<ArraySegment<byte>>();
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
111MaybeExtra = new List<KeyValuePair<Type, object>>(2);
Microsoft.AspNetCore.Session (1)
DistributedSession.cs (1)
430public IEnumerable<string> Keys => new List<string>(_session.Keys);
Microsoft.AspNetCore.SignalR.Client.Core (4)
HubConnection.cs (2)
1050streamIds = new List<string>(); 2339_invocationHandlers = new List<InvocationHandler>() { handler };
Internal\SerializedHubMessage.cs (2)
87var list = new List<SerializedMessage>(2); 122_cachedItems = new List<SerializedMessage>();
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (6)
HubClientProxyGenerator.SourceGenerationSpec.cs (3)
21public List<TypeSpec> Types = new(); 27public List<MethodSpec> Methods = new(); 35public List<ArgumentSpec> Arguments = new();
HubServerProxyGenerator.SourceGenerationSpec.cs (3)
21public List<ClassSpec> Classes = new(); 28public List<MethodSpec> Methods = new(); 36public List<ArgumentSpec> Arguments = new();
Microsoft.AspNetCore.SignalR.Common (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.SignalR.Core (15)
DefaultHubLifetimeManager.cs (2)
123tasks = new List<Task>(); 168tasks = new List<Task>();
HubConnectionHandler.cs (2)
85hubFilters = new List<IHubFilter>(_hubOptions.HubFilters); 98hubFilters = new List<IHubFilter>(_globalHubOptions.HubFilters);
HubOptionsExtensions.cs (1)
26options.HubFilters = new List<IHubFilter>();
HubOptionsSetup.cs (2)
25private readonly List<string> _defaultProtocols = new List<string>(); 68options.SupportedProtocols = new List<string>(_defaultProtocols.Count);
HubOptionsSetup`T.cs (2)
32options.SupportedProtocols = new List<string>(_hubOptions.SupportedProtocols ?? Array.Empty<string>()); 46options.HubFilters = new List<IHubFilter>(_hubOptions.HubFilters);
Internal\HubMethodDescriptor.cs (2)
73StreamingParameters = new List<Type>(); 100KeyedServiceKeys ??= new List<(int, object?)>();
SerializedHubMessage.cs (2)
85var list = new List<SerializedMessage>(2); 120_cachedItems = new List<SerializedMessage>();
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
185newStreamIds ??= new();
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (3)
Protocol\MessagePackHubProtocolWorker.cs (1)
273streams = new List<string>();
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (3)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
185newStreamIds ??= new();
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.SignalR.Specification.Tests (5)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
src\aspnetcore\src\SignalR\common\testassets\Tests.Utils\TestClient.cs (3)
53var claims = new List<Claim> { new Claim(ClaimTypes.Name, claimValue) }; 110var result = new List<HubMessage>(); 328_heartbeatHandlers = new List<(Action<object> handler, object state)>();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (11)
Internal\DefaultHubMessageSerializer.cs (2)
16_hubProtocols = new List<IHubProtocol>(supportedProtocols.Count); 29var list = new List<SerializedMessage>(_hubProtocols.Count);
RedisHubLifetimeManager.cs (7)
124var tasks = new List<Task>(); 245var publishTasks = new List<Task>(connectionIds.Count); 260var publishTasks = new List<Task>(groupNames.Count); 280var publishTasks = new List<Task>(userIds.Count); 461var tasks = new List<Task>(_connections.Count); 597var tasks = new List<Task>(subscriptions.Count); 623var tasks = new List<Task>(groupConnections.Count);
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.StaticAssets (4)
_generated\9\StaticAssetsManifestJsonContext.ListStaticAssetDescriptor.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>(),
Development\StaticAssetDevelopmentRuntimeHandler.cs (2)
346var responseHeaders = new List<StaticAssetResponseHeader>(descriptor.ResponseHeaders); 374var propertiesList = new List<StaticAssetProperty>(descriptor.Properties);
StaticAssetEndpointDataSource.cs (1)
103var endpoints = new List<Endpoint>();
Microsoft.AspNetCore.StaticFiles (1)
DefaultFilesOptions.cs (1)
29DefaultFileNames = new List<string>
Microsoft.AspNetCore.TestHost (1)
WebSocketClient.cs (1)
33SubProtocols = new List<string>();
Microsoft.AspNetCore.WebSockets (1)
WebSocketOptions.cs (1)
19AllowedOrigins = new List<string>();
Microsoft.AspNetCore.WebUtilities (2)
KeyValueAccumulator.cs (1)
53var list = new List<string>(8);
PagedByteBuffer.cs (1)
19Pages = new List<byte[]>();
Microsoft.Authentication.WebAssembly.Msal (3)
Models\MsalAuthenticationOptions.cs (1)
53public IList<string> KnownAuthorities { get; set; } = new List<string>();
Models\MsalProviderOptions.cs (2)
36public IList<string> DefaultAccessTokenScopes { get; set; } = new List<string>(); 44public IList<string> AdditionalScopesToConsent { get; set; } = new List<string>();
Microsoft.Build (340)
_generated\3\TasksDetailsJsonContext.ListTaskDetailInfo.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>(),
BackEnd\BuildManager\BuildManager.cs (5)
1106var submissionsToCheck = new List<BuildSubmissionBase>(_buildSubmissions.Values); 1367var submissionDetailParts = new List<string>(_buildSubmissions.Count); 1405var nodeDetails = new List<string>(_activeNodes.Count); 2932var submissions = new List<BuildSubmissionBase>(_buildSubmissions.Values); 3173var submissions = new List<BuildSubmissionBase>(_buildSubmissions.Values);
BackEnd\BuildManager\BuildParameters.cs (2)
298_forwardingLoggers = other._forwardingLoggers != null ? new List<ForwardingLoggerRecord>(other._forwardingLoggers) : null; 302_loggers = other._loggers != null ? new List<ILogger>(other._loggers) : null;
BackEnd\BuildManager\BuildRequestData.cs (1)
79PropertiesToTransfer = new List<string>(propertiesToTransfer);
BackEnd\BuildManager\BuildRequestDataBase.cs (1)
22TargetNames = new List<string>(targetNames);
BackEnd\BuildManager\CacheAggregator.cs (1)
17private readonly List<(IConfigCache ConfigCache, IResultsCache ResultsCache)> _inputCaches = new List<(IConfigCache ConfigCache, IResultsCache ResultsCache)>();
BackEnd\BuildManager\RequestedProjectState.cs (2)
47result.PropertyFilters = new List<string>(PropertyFilters); 53kvp => kvp.Value == null ? null : new List<string>(kvp.Value));
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (8)
166_requests = new List<BuildRequestEntry>(); 258var requestsToShutdown = new List<BuildRequestEntry>(_requests); 259var deactivateExceptions = new List<Exception>(_requests.Count); 266var requestsToWait = new List<BuildRequestEntry>(_requests.Count); 586var blockersToIssue = new List<BuildRequestBlocker>(); 589var requestsToIssue = new List<BuildRequest>(); 783var completedEntries = new List<BuildRequestEntry>(); 1288existingResultsToReport ??= new List<BuildResult>();
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (3)
206_unresolvedConfigurationsToIssue ??= new List<BuildRequestConfiguration>(); 529value = new List<BuildRequest>(); 538_requestsToIssue ??= new List<BuildRequest>();
BackEnd\Components\Caching\ConfigCache.cs (1)
199List<int> configurationIdsCleared = new List<int>();
BackEnd\Components\Caching\ResultsCache.cs (1)
200List<string> targetsToAddResultsFor = new List<string>(configInitialTargets);
BackEnd\Components\Communications\LogMessagePacket.cs (4)
194reusablePropertyList = new List<KeyValuePair<string, string>>(); 224reusableItemList = new List<(string itemType, object item)>(); 262reusablePropertyList = new List<KeyValuePair<string, string>>(); 508targetOutputs = new List<TaskItem>();
BackEnd\Components\Communications\NodeManager.cs (1)
96List<NodeInfo> nodes = new(numberOfNodesToCreate);
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
189var nodes = new List<NodeInfo>(numberOfNodesToCreate);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
149var contextsToShutDown = new List<NodeContext>(_nodeContexts.Values);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
472List<Process> processes = new(); 582List<Process> filtered = new(capacity: processes.Count);
BackEnd\Components\Logging\LoggingService.cs (7)
319_loggers = new List<ILogger>(); 320_distributedCentralLoggers = new List<ILogger>(); 321_loggerDescriptions = new List<LoggerDescription>(); 812List<string> loggerTypes = new List<string>(); 838List<string> eventSinkNames = new List<string>(); 979_loggers = new List<ILogger>(); 980_distributedCentralLoggers = new List<ILogger>();
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (3)
411List<string> listOfLoggers = new(); 412var loggerDescriptions = new List<RegisteredLoggerInfo>(); 421var outputFilePaths = new List<string>();
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
770var graphEntryPoints = new List<ProjectGraphEntryPoint>(projectConfigurations.Count); 867List<string> targets = buildResult.ResultsByTarget?.Keys.ToList() ?? new();
BackEnd\Components\RequestBuilder\BatchingEngine.cs (2)
173buckets = new List<ItemBucket>(1); 307var buckets = new List<ItemBucket>();
BackEnd\Components\RequestBuilder\IntrinsicTasks\CallTarget.cs (1)
33private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>();
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (5)
61parameterValues ??= new List<string>(); 400List<ProjectItemInstance> items = new List<ProjectItemInstance>(); 499metadataToRemove = new List<string>(); 526metadataToRemove = new List<string>(); 636List<ProjectItemInstance> itemsRemoved = new List<ProjectItemInstance>();
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
206keyValuePairList = new List<KeyValuePair<string, string>>(count);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (7)
54private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>(); 405var projectsToBuildList = new List<ITaskItem>(); 448var expandedProperties = new List<string>(); 449var expandedTargets = new List<string>(); 494var targetLists = new List<string[]>(); 570undefinePropertiesPerProject[i] = new List<string>(undefineProperties); 581undefinePropertiesPerProject[i] = new List<string>(propertiesToUndefine.Length);
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
57List<string> parameterValues = new List<string>();
BackEnd\Components\RequestBuilder\Lookup.cs (4)
221errorMessages = new List<string>(); 585List<ProjectItemInstance> result = new(itemsCount); 759var deduplicatedItemsToAdd = new List<ProjectItemInstance>(); 1183var metadataToRemove = new List<string>(_modifications.Keys.Where(m => other[m].Remove));
BackEnd\Components\RequestBuilder\TargetBuilder.cs (4)
149List<TargetSpecification> targets = new List<TargetSpecification>(targetNames.Length); 252List<TargetSpecification> targetToPush = new List<TargetSpecification>(); 668List<TargetEntry> targetsToPush = new List<TargetEntry>(targets.Count); 837circularDependenceChain = new List<string>();
BackEnd\Components\RequestBuilder\TargetEntry.cs (5)
398return new List<TargetSpecification>(); 402List<TargetSpecification> dependencyTargets = new List<TargetSpecification>(); 632List<TaskItem> targetOutputItemsList = new(); 702List<TargetSpecification> allErrorTargets = new List<TargetSpecification>(_target.OnErrorChildren.Count); 901List<string> batchableTargetParameters = new List<string>();
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (6)
621List<ProjectItemInstance> upToDateInputItems = new List<ProjectItemInstance>(inputItems); 880List<string> itemSpecs = new(); 924commonKeys = new List<K>(); 925uniqueKeysInH1 = new List<K>(); 926uniqueKeysInH2 = new List<K>(); 1244private readonly List<DependencyAnalysisLogDetail> _dependencyAnalysisDetail = new List<DependencyAnalysisLogDetail>();
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
255return new List<string>(); 258List<string> taskParameters = new List<string>(_taskNode.ParametersForBuild.Count + _taskNode.Outputs.Count); 1085undeclaredProjects ??= new List<string>(projectReferenceItems.Count);
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
986targetOutputsPerProject = new List<IDictionary<string, ITaskItem[]>>(1); 1163targetOutputsPerProject = new List<IDictionary<string, ITaskItem[]>>(1) 1221targetOutputsPerProject = new List<IDictionary<string, ITaskItem[]>>(results.Length);
BackEnd\Components\Scheduler\SchedulableRequest.cs (4)
423List<SchedulableRequest> requestsToUnblock = new List<SchedulableRequest>(_requestsWeAreBlocking); 571List<SchedulableRequest> ancestors = new List<SchedulableRequest>(16); 589List<SchedulableRequest> ancestors = new List<SchedulableRequest>(16); 612List<SchedulableRequest> tempRequests = new List<SchedulableRequest>(_requestsWeAreBlockedBy.Values);
BackEnd\Components\Scheduler\Scheduler.cs (8)
351List<ScheduleResponse> responses = new List<ScheduleResponse>(); 424List<ScheduleResponse> responses = new List<ScheduleResponse>(); 569List<ScheduleResponse> responses = new List<ScheduleResponse>(); 674List<ScheduleResponse> responses = new List<ScheduleResponse>(); 1373List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys); 2648List<SchedulableRequest> childRequests = new List<SchedulableRequest>(_schedulingData.GetRequestsByHierarchy(request)); 2782List<SchedulableRequest> scheduledRequestsByNode = new List<SchedulableRequest>(_schedulingData.GetScheduledRequestsByNode(nodeId)); 2881List<int> configurations = new List<int>(_schedulingData.Configurations);
BackEnd\Components\Scheduler\SchedulingData.cs (3)
115private readonly List<SchedulingEvent> _buildEvents = new List<SchedulingEvent>(64); 281_buildHierarchy[request] = new List<SchedulableRequest>(8); 603List<SchedulableRequest> roots = new List<SchedulableRequest>();
BackEnd\Components\Scheduler\SchedulingPlan.cs (6)
113List<KeyValuePair<int, double>> configurationsInOrder = new(accumulatedTimeByConfiguration); 236List<KeyValuePair<int, PlanConfigData>> projectsInOrderOfTotalPlanTime = new(_configIdToData); 259List<KeyValuePair<int, PlanConfigData>> projectsInOrderOfImmediateChildCount = new(_configIdToData); 275List<int> projectsInOrderOfReference = new List<int>(_configIdToData.Keys); 304pathsForConfig = new List<Stack<PlanConfigData>>(); 334List<PlanConfigData> projectsByExpense = new List<PlanConfigData>(_configIdToData.Values);
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (6)
41new List<SdkResolver> { new DefaultSdkResolver() } 42: new List<SdkResolver>(); 63new List<SdkResolver> { new DefaultSdkResolver() } 64: new List<SdkResolver>(); 120List<SdkResolverManifest> manifestsList = new List<SdkResolverManifest>(); 297var resolvers = new List<SdkResolver>();
BackEnd\Components\SdkResolution\SdkResolverService.cs (9)
175List<SdkResolverManifest> matchingResolversManifests = new(); 194List<string> errors = new List<string>(0); 195List<string> warnings = new List<string>(0); 272List<SdkResolver> resolvers = new List<SdkResolver>(); 324List<SdkResult> results = new List<SdkResult>(); 441specificResolversManifestsRegistry = new List<SdkResolverManifest>(); 442generalResolversManifestsRegistry = new List<SdkResolverManifest>(); 514var specificResolversManifestsRegistry = new List<SdkResolverManifest>(); 515var generalResolversManifestsRegistry = new List<SdkResolverManifest>();
BackEnd\Components\SdkResolution\SdkResult.cs (1)
89translator.Translate(ref _additionalPaths, (ITranslator t, ref string s) => t.Translate(ref s), count => new List<string>(count));
BackEnd\Shared\BuildRequest.cs (1)
194_targets = new List<string>(escapedTargets.Count);
BackEnd\Shared\BuildRequestConfiguration.cs (3)
198_requestedTargets = new List<string>(data.TargetNames); 210_transferredProperties = new List<ProjectPropertyInstance>(); 860List<(string name, TargetBuiltReason reason)> allTargets = new(
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
380_remotedTaskItems = new List<TaskItem>();
BuildCheck\Acquisition\BuildCheckAcquisitionModule.cs (1)
34var checksFactories = new List<CheckFactory>();
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
29public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (1)
311checksToRemove = checksToRemove ?? new List<CheckWrapper>();
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
213List<CheckFactoryContext> invalidChecksToRemove = new(); 336List<CheckFactoryContext> invalidChecksToRemove = new();
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (1)
111var numberRangePairs = new List<(int minValue, int maxValue)>();
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
46var editorConfigDataFromFilesList = new List<EditorConfigFile>();
Collections\CopyOnReadEnumerable.cs (4)
70list = new List<TResult>(count); 74list = new List<TResult>(collection.Count); 78list = new List<TResult>(readOnlyCollection.Count); 82list = new List<TResult>();
Collections\ItemDictionary.cs (3)
327list = new List<T>(); 361List<T> listWithRemoves = new(list.Count); 387list = new List<T>();
Collections\ItemDictionarySlim.cs (1)
97list = new List<ProjectItemInstance>(capacity);
Collections\LookasideStringInterner.cs (1)
50_strings = new List<string>(defaultCollectionSize);
Collections\MultiDictionary.cs (1)
256var list = new List<TT> { (TT)_entry, value };
Collections\PropertyDictionary.cs (2)
611List<TResult> result = new(hashSet.Count); 625List<TResult> result = new(propertiesCollection.Count);
Collections\WeakValueDictionary.cs (2)
63var keys = new List<K>(); 211remove ??= new List<K>();
Construction\ProjectElementContainer.cs (1)
826List<T> list = new();
Construction\ProjectRootElement.cs (1)
1909var nodes = new List<ProjectImportElement>();
Construction\ProjectTaskElement.cs (2)
178var parameterLocations = new List<KeyValuePair<string, ElementLocation>>(); 378toRemove ??= new List<XmlAttribute>();
Construction\Solution\ProjectInSolution.cs (2)
134_dependencies = new List<string>(); 255internal List<string> ProjectReferences { get; } = new List<string>();
Construction\Solution\SolutionFile.cs (5)
153internal List<string> SolutionParserWarnings { get; } = new List<string>(); 158internal List<string> SolutionParserComments { get; } = new List<string>(); 163internal List<string> SolutionParserErrorCodes { get; } = new List<string>(); 356_projectsInOrder = new List<ProjectInSolution>(); 767_projectsInOrder = new List<ProjectInSolution>();
Construction\Solution\SolutionProjectGenerator.cs (3)
788var projectsInOrder = new List<ProjectInSolution>(_solutionFile.ProjectsInOrder.Count); 798var projectInstances = new List<ProjectInstance>(projectsInOrder.Count + 1); 2494new List<ProjectPropertyGroupTaskPropertyInstance> { property }));
Definition\Project.cs (15)
1515var loggers = new List<ILogger>(1) { logger }; 1702var relevantItems = new List<ProjectItem>(); 2291var imports = new List<ResolvedImport>(_data.ImportClosure.Count - 1 /* outer project */); 2314var imports = new List<ResolvedImport>(_data.ImportClosureWithDuplicates.Count - 1 /* outer project */); 2549return new List<GlobResult>(); 2603return new List<ProvenanceResult>(); 2658return new List<ProvenanceResult>(); 3123var itemsList = new List<ProjectItem>(items); 3281var relevantItems = new List<ProjectItem>(); 4160ImportClosure = new List<ResolvedImport>(); 4161ImportClosureWithDuplicates = new List<ResolvedImport>(); 4162AllEvaluatedProperties = new List<ProjectProperty>(); 4163AllEvaluatedItemDefinitionMetadata = new List<ProjectMetadata>(); 4164AllEvaluatedItems = new List<ProjectItem>(); 4165EvaluatedItemElements = new List<ProjectItemElement>();
Definition\ProjectCollection.cs (9)
727: new List<ILogger>(_loggingService.Loggers); 744return new List<Toolset>(_toolsets.Values); 1192var toolsets = new List<Toolset>(Toolsets); 1251loaded = fullPath == null ? new List<Project>(_loadedProjects) : new List<Project>(_loadedProjects.GetMatchingProjectsIfAny(fullPath)); 1609var projects = new List<Project>(_loadedProjects); 1636var projects = new List<Project>(_loadedProjects); 2034var projects = new List<Project>(); 2104projectList = new List<Project>();
Definition\ProjectImportPathMatch.cs (1)
23public static readonly ProjectImportPathMatch None = new ProjectImportPathMatch(string.Empty, new List<string>());
Definition\ProjectItem.cs (3)
832List<ProjectMetadata> temporary = new List<ProjectMetadata>(_directMetadata.Count); 1063inheritedItemDefinitionsClone ??= new List<ProjectItemDefinition>(inheritedItemDefinitionsCount + 1); 1070inheritedItemDefinitionsClone ??= new List<ProjectItemDefinition>(inheritedItemDefinitionsCount + 1);
Definition\Toolset.cs (3)
445List<string> additionalSubToolsetNames = new List<string>(); 462List<string> orderedSubToolsetList = new List<string>(additionalSubToolsetNames); 800List<ProjectPropertyInstance> reservedProperties = new List<ProjectPropertyInstance>();
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
168var list = new List<string>(capacity: expandedCount);
Evaluation\Conditionals\Parser.cs (1)
291var arglist = new List<GenericExpressionNode>();
Evaluation\ConditionEvaluator.cs (1)
86conditionedPropertyValues = new List<string>();
Evaluation\Evaluator.cs (26)
276_itemGroupElements = new List<ProjectItemGroupElement>(); 277_itemDefinitionGroupElements = new List<ProjectItemDefinitionGroupElement>(); 278_usingTaskElements = new List<KeyValuePair<string, ProjectUsingTaskElement>>(); 279_targetElements = new List<ProjectTargetElement>(); 281_initialTargetsList = new List<string>(); 305_streamImports = new List<string>(); 416List<I> items = new List<I>(); 475List<ProjectTaskInstanceChild> taskOutputs = new List<ProjectTaskInstanceChild>(taskElement.Count); 517List<ProjectPropertyGroupTaskPropertyInstance> properties = new List<ProjectPropertyGroupTaskPropertyInstance>(propertyGroupElement.Count); 547List<ProjectItemGroupTaskItemInstance> items = new List<ProjectItemGroupTaskItemInstance>(itemGroupElement.Count); 551List<ProjectItemGroupTaskMetadataInstance> metadata = itemElement.Metadata.Count > 0 ? new List<ProjectItemGroupTaskMetadataInstance>() : null; 598List<ProjectTargetInstanceChild> targetChildren = new List<ProjectTargetInstanceChild>(targetElement.Count); 599List<ProjectOnErrorInstance> targetOnErrorChildren = new List<ProjectOnErrorInstance>(); 715List<string> initialTargets = new List<string>(_initialTargetsList.Count); 835_data.DefaultTargets = new List<string>(1); 915List<P> list = new(dictionary.Count); 1046List<string> temp = new List<string>(expanded.Split(s_splitter, StringSplitOptions.RemoveEmptyEntries)); 1053_data.DefaultTargets ??= new List<string>(temp.Count); 1157beforeTargetsForTarget = new List<TargetSpecification>(); 1180afterTargetsForTarget = new List<TargetSpecification>(); 1667var allProjects = new List<ProjectRootElement>(); 1938projectList = new List<ProjectRootElement>(projects); 1951projectList ??= new List<ProjectRootElement>(); 1961projectList ??= new List<ProjectRootElement>(); 2297imports ??= new List<ProjectRootElement>(); 2778_itemGlobElements = new List<ProjectItemElement>();
Evaluation\Expander.cs (2)
333List<T> result = new List<T>(); 681arguments = new List<string>(argumentCount);
Evaluation\Expander.ItemExpander.cs (4)
116List<TransformEntry> output = new(itemsOfType.Count); 238List<TransformEntry> entries = new(items.Count); 394result = new List<T>(entries.Count); 493entries ??= new List<TransformEntry>(itemsOfType.Count);
Evaluation\ExpressionShredder.cs (2)
184transformExpressions = new List<ItemExpressionCapture>(1); 199transformExpressions = new List<ItemExpressionCapture>(1);
Evaluation\GlobResultBuilder.cs (3)
57return new List<GlobResult>(); 81var globResults = new List<GlobResult>(projectItemElements.Count); 118includeGlobFragmentsList ??= new List<ItemSpecFragment>(includeItemspec.Fragments.Count);
Evaluation\IntrinsicFunctions.cs (1)
745return new List<string> { "A", "B", "C", "D" };
Evaluation\ItemDataCollectionValue.cs (1)
75list = new List<I>()
Evaluation\ItemSpec.cs (5)
181return new List<ItemSpecFragment>(); 203var fragments = new List<ItemSpecFragment>(semicolonCount + 1); 316var result = new List<ItemSpecFragment>(Fragments.Count); 353matches ??= new List<string>(); 365matches ??= new List<string>();
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
232List<KeyValuePair<ProjectMetadataElement, string>> metadataList = new(metadata.Length);
Evaluation\Preprocessor.cs (3)
125list = new List<ProjectRootElement>(); 149_implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument] = new List<ResolvedImport>(); 159_addedNodes = new List<XmlNode>(implicitImportCount);
Graph\GraphBuilder.cs (8)
117var graphRoots = new List<ProjectGraphNode>(entryPointNodes.Count); 226projectsByPath[projectPath] = new List<ProjectGraphNode> { project.Value.GraphNode }; 323List<ProjectGraphEntryPoint> newEntryPoints = new(projectsInSolution.Count); 355List<string> solutionDependenciesForProject = new(project.Dependencies.Count); 422var entryPointConfigurationMetadata = new List<ConfigurationMetadata>(); 490FormatCircularDependencyError(new List<string> { node.ProjectInstance.FullPath, node.ProjectInstance.FullPath }); 499var projectsInCycle = new List<string> { referenceNode.ProjectInstance.FullPath }; 619var referenceInfos = new List<ProjectInterpretation.ReferenceInfo>();
Graph\ParallelWorkSet.cs (2)
40private readonly List<Exception> _exceptions = new List<Exception>(0); 92_tasks = new List<Task>(degreeOfParallelism);
Graph\ProjectGraph.cs (3)
592var toposort = new List<ProjectGraphNode>(graphNodes.Count); 781var entriesToUpdate = new List<KeyValuePair<ProjectGraphNode, ImmutableList<string>>>(); 960result = new List<string>(targets.Length);
Instance\ProjectInstance.cs (25)
421this.EvaluatedItemElements = new List<ProjectItemElement>(); 493EvaluatedItemElements = new List<ProjectItemElement>(); 506var paths = new List<string>(imports.Count); 521var paths = new List<string>(imports.Count); 591this.InitialTargets = new List<string>(); 592this.DefaultTargets = new List<string>(); 601this.EvaluatedItemElements = new List<ProjectItemElement>(); 719this.EvaluatedItemElements = new List<ProjectItemElement>(data.EvaluatedItemElements); 803this.DefaultTargets = new List<string>(that.DefaultTargets); 804this.InitialTargets = new List<string>(that.InitialTargets); 2864parameters.Loggers = (loggers is ICollection<ILogger> loggersCollection) ? loggersCollection : new List<ILogger>(loggers); 2884new List<ForwardingLoggerRecord>(remoteLoggers); 3004new ObjectModel.ReadOnlyCollection<ProjectTargetInstanceChild>(new List<ProjectTargetInstanceChild>()), 3005new ObjectModel.ReadOnlyCollection<ProjectOnErrorInstance>(new List<ProjectOnErrorInstance>()), 3136clearedVariables = new List<DictionaryEntry>(); 3268_importPaths = new List<string>(); 3270_importPathsIncludingDuplicates = new List<string>(); 3278this.EvaluatedItemElements = new List<ProjectItemElement>(); 3400DefaultTargets = defaultTargets == null ? new List<string>(0) : new List<string>(defaultTargets); 3401InitialTargets = initialTargets == null ? new List<string>(0) : new List<string>(initialTargets); 3411var importPaths = new List<string>(Math.Max(0, importClosure.Count - 1) /* outer project */); 3424var importPathsIncludingDuplicates = new List<string>(Math.Max(0, importClosureWithDuplicates.Count - 1) /* outer project */); 3507inheritedItemDefinitions = new List<ProjectItemDefinitionInstance>(item.InheritedItemDefinitions.Count);
Instance\ProjectItemInstance.cs (9)
325get { return new List<string>(MetadataNames); } 746inheritedItemDefinitions = (itemDefinitions == null) ? null : new List<ProjectItemDefinitionInstance>(itemDefinitions.Count + 1); 752inheritedItemDefinitions ??= new List<ProjectItemDefinitionInstance>(); 977List<string> names = new List<string>(capacity: metadataCollection.Count + ItemSpecModifiers.All.Length); 1539destinationAsTaskItem._itemDefinitions = (_itemDefinitions == null) ? null : new List<ProjectItemDefinitionInstance>(_itemDefinitions); 1680(capacity) => new List<ProjectItemDefinitionInstance>(capacity)); 1890(capacity) => new List<ProjectItemDefinitionInstance>(capacity)); 2336itemDefinitionsClone ??= new List<ProjectItemDefinitionInstance>(source._taskItem._itemDefinitions.Count + 1); 2343itemDefinitionsClone ??= new List<ProjectItemDefinitionInstance>();
Instance\ProjectTargetInstance.cs (3)
513_children = new List<ProjectTargetInstanceChild>(_children); 572translator.Translate(ref children, ProjectTargetInstanceChild.FactoryForDeserialization, count => new List<ProjectTargetInstanceChild>(count)); 575translator.Translate(ref onErrorChildren, ProjectOnErrorInstance.FactoryForDeserialization, count => new List<ProjectOnErrorInstance>(count));
Instance\ProjectTaskInstance.cs (2)
115_outputs = new List<ProjectTaskInstanceChild>(outputs); 140new List<ProjectTaskInstanceChild>(),
Instance\TaskRegistry.cs (2)
692registeredTaskEntries = new List<RegisteredTaskRecord>(); 728List<RegisteredTaskRecord> unqualifiedTaskNameMatches = new();
Logging\BaseConsoleLogger.cs (1)
497var list = new List<DictionaryEntry>(properties.FastCountOrZero());
Logging\BinaryLogger\BinaryLogger.cs (5)
822var nonPathParams = new List<string>(); 894var distinctParameterSets = new List<string>(); 895var additionalFilePaths = new List<string>(); 896var duplicateFilePaths = new List<string>(); 914var extractedFilePaths = new List<string>();
Logging\BinaryLogger\BuildEventArgsReader.cs (5)
42private readonly List<object> stringRecords = new List<object>(); 49private readonly List<(int keyIndex, int valueIndex)[]> nameValueListRecords = new List<(int, int)[]>(); 1323var loggers = new List<RegisteredLoggerInfo>(count); 1628list = new List<DictionaryEntry>(); 1649list = new List<DictionaryEntry>();
Logging\BinaryLogger\BuildEventArgsWriter.cs (4)
108private readonly List<KeyValuePair<string, string>> nameValueListBuffer = new List<KeyValuePair<string, string>>(1024); 114private readonly List<KeyValuePair<int, int>> nameValueIndexListBuffer = new List<KeyValuePair<int, int>>(1024); 923private readonly List<object> reusableItemsList = new List<object>(); 924private readonly List<object> reusableProjectItemList = new List<object>();
Logging\ParallelLogger\ParallelConsoleLogger.cs (5)
31private readonly List<RegisteredLoggerInfo> _registeredLoggers = new(); 190errorList = new List<BuildErrorEventArgs>(); 191warningList = new List<BuildWarningEventArgs>(); 473errorWarningEventListByTarget = new List<BuildEventArgs>(); 1180messageList = new List<BuildMessageEventArgs>();
Logging\ParallelLogger\ParallelLoggerHelpers.cs (1)
96List<ProjectStartedEventMinimumFields> stackTrace = new List<ProjectStartedEventMinimumFields>();
Logging\TerminalLogger\TerminalLogger.cs (4)
187private List<TestSummary> _testRunSummaries = new(); 227private readonly List<RegisteredLoggerInfo> _registeredLoggers = new(); 293List<string> tlpArg = new(); 294List<string> clpArg = new();
Logging\TerminalLogger\TerminalProjectInfo.cs (1)
133_buildMessages ??= new List<TerminalBuildMessage>();
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
147List<XmlAttributeLink> result = new List<XmlAttributeLink>();
src\9f0d3f3da306d8cf\IEnumerableExtensions.cs (1)
759List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\msbuild\src\Shared\PropertyParser.cs (2)
90var finalPropertiesList = new List<PropertyNameValuePair>(); 211Value = new List<string>
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
109list => list is not null ? new List<string>(list) : null);
src\msbuild\src\Shared\TaskHostBuildResponse.cs (3)
60result = new List<IDictionary<string, ITaskItem[]>>(_targetOutputsPerProject.Count); 91outputs = new List<Dictionary<string, TaskParameter>>(engineResult.TargetOutputsPerProject.Count); 135_targetOutputsPerProject = new List<Dictionary<string, TaskParameter>>(count);
src\msbuild\src\Shared\TaskParameter.cs (2)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
Utilities\EngineFileUtilities.cs (2)
575return new List<Regex>(0); 579List<Regex> regexes = new List<Regex>();
Microsoft.Build.Framework (23)
BinaryTranslator.cs (3)
357list = new List<string>(count); 374Translate(ref listAsInterface, objectTranslator, count => new List<T>(count)); 382Translate(ref listAsInterface, objectTranslator, valueFactory, count => new List<T>(count));
BuildCheck\BuildCheckEventArgs.cs (1)
82List<BuildCheckRuleTelemetryData> tracingData = new List<BuildCheckRuleTelemetryData>(count);
BuildEngineResult.cs (1)
36this.targetOutputsPerProject = new List<IDictionary<string, ITaskItem[]>>();
Collections\ReadOnlyCollection.cs (1)
87backingCollection = new List<T>(_backing);
FileClassifier.cs (1)
246_knownImmutableDirectoriesSnapshot = new List<string>(_knownImmutableDirectories.Values);
LoggersRegisteredEventArgs.cs (1)
123var loggers = new List<RegisteredLoggerInfo>(count);
Sdk\SdkResolver.cs (1)
46private static readonly List<SdkResolver> s_registeredResolvers = new();
SolutionConfiguration.cs (1)
105list = new List<string>();
TaskParameterEventArgs.cs (1)
237reusableMetadataList = new List<KeyValuePair<string, string>>();
Telemetry\TelemetryDataUtils.cs (2)
64var result = new List<TargetDetailInfo>(); 92var result = new List<TaskDetailInfo>();
Utilities\CollectionHelpers.cs (1)
24List<T> inputsWithoutNulls = new List<T>(inputs.Count);
Utilities\FileMatcher.cs (5)
1037files ??= new List<string>(); 1069newSearchesToExclude = new List<RecursionState>(); 1094newSearchesToExclude ??= new(); 3790searchesToExclude = new List<RecursionState>(); 3864listForSubdir = new List<RecursionState>();
Utilities\QuotingUtilities.cs (1)
132var pieces = new List<string>();
Utilities\TaskFactoryUtilities.cs (1)
136var directories = new List<string>();
Utilities\VersionUtilities.cs (1)
53versionValues.Add(candidateVersion, new List<string>() { version });
VisualStudioLocationHelper.cs (1)
35var validInstances = new List<VisualStudioInstance>();
Microsoft.Build.NuGetSdkResolver (8)
NuGetSdkLogger.cs (2)
23private readonly List<string> _errors = new List<string>(); 33private readonly List<string> _warnings = new List<string>();
NuGetSdkResolver.cs (2)
87return factory.IndicateFailure(errors: new List<string>() { Strings.Error_DisabledSdkResolver }, warnings: null); 101return factory.IndicateFailure(errors: new List<string>() { Strings.Error_NoSdkVersion }, warnings: null);
RestoreRunnerEx.cs (3)
29private static readonly List<NuGetFramework> TargetFrameworks = new List<NuGetFramework> 55var frameworks = new List<TargetFrameworkInformation>(TargetFrameworks.Count); 56var originalTargetFrameworks = new List<string>(TargetFrameworks.Count);
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
Microsoft.Build.Tasks.CodeAnalysis (9)
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (1)
211var argumentList = new List<string>();
src\roslyn\src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (1)
98var mappedSourceRoots = new List<ITaskItem>();
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (2)
587var references = new List<ITaskItem>(this.References.Length); 588var links = new List<ITaskItem>(this.References.Length);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (1)
56var list = new List<string>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
23return new List<string>(capacity: 0);
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 541var list = new List<string>(count);
Microsoft.Build.Tasks.Core (194)
AppConfig\DependentAssembly.cs (1)
44var redirects = new List<BindingRedirect>();
AppConfig\RuntimeSection.cs (1)
47internal List<DependentAssembly> DependentAssemblies { get; } = new List<DependentAssembly>();
AssemblyDependency\AssemblyInformation.cs (3)
544List<AssemblyNameExtension> ret = new List<AssemblyNameExtension>(assemblyReferences.Count); 585List<string> assemblyFiles = new List<string>(assemblyFilesCollection.Count); 652var arguments = new List<string>();
AssemblyDependency\DirectoryResolver.cs (1)
60var searchLocationsWithParentAssembly = new List<ResolutionSearchLocation>();
AssemblyDependency\GenerateBindingRedirects.cs (1)
299var attributes = new List<XAttribute>(4)
AssemblyDependency\Node\RarNodeBufferedLogEvents.cs (1)
17internal RarNodeBufferedLogEvents(int capacity) => _eventQueue = new(capacity);
AssemblyDependency\Reference.cs (13)
48private List<Exception> _errors = new List<Exception>(); 54private List<string> _relatedFileExtensions = new List<string>(); 60private List<string> _satelliteFiles = new List<string>(); 66private List<string> _serializationAssemblyFiles = new List<string>(); 71private List<AssemblyNameExtension> _conflictVictims = new List<AssemblyNameExtension>(); 222_errors = new List<Exception>(); 223AssembliesConsideredAndRejected = new List<ResolutionSearchLocation>(); 285_expectedExtensions = new List<string>(); 504_satelliteFiles = new List<string>(); 505_serializationAssemblyFiles = new List<string>(); 506AssembliesConsideredAndRejected = new List<ResolutionSearchLocation>(); 710return new List<UnificationVersion>(_preUnificationVersions.Values); 824internal List<ResolutionSearchLocation> AssembliesConsideredAndRejected { get; private set; } = new List<ResolutionSearchLocation>();
AssemblyDependency\ReferenceTable.cs (23)
1067var dependencies = new List<AssemblyNameExtension>(dependentAssemblies?.Length ?? 0); 1307var assembliesConsideredAndRejected = new List<ResolutionSearchLocation>(); 1312var parentReferenceFolders = new List<DirectoryWithParentAssembly>(); 1319var jaggedResolvers = new List<Resolver[]>(); 1410var removedReferences = new List<Reference>(); 1510dependencies = new List<ReferenceAssemblyExtensionPair>(); 1725var newEntries = new List<KeyValuePair<AssemblyNameExtension, Reference>>(); 1949var assemblyNamesList = new List<AssemblyNameReference>(conflictingFullNames.Count); 1956var idealRemappingsList = new List<DependentAssembly>(assemblyNamesList.Count); 1971remapping.BindingRedirects = new List<BindingRedirect> { bindingRedirect }; 2065referenceAssemblyDirectories = new List<string>(_latestTargetFrameworkDirectories); 2080var assemblyTableInfos = new List<AssemblyTableInfo>(); 2119referenceAssemblyDirectories = new List<string>(); 2231refs = new List<AssemblyNameReference>(); 2244List<string> toRemove = new(baseNameToReferences.Count); 2620var primaryItems = new List<ITaskItem>(); 2621var dependencyItems = new List<ITaskItem>(); 2622var relatedItems = new List<ITaskItem>(); 2623var satelliteItems = new List<ITaskItem>(); 2624var serializationAssemblyItems = new List<ITaskItem>(); 2625var scatterItems = new List<ITaskItem>(); 2626var copyLocalItems = new List<ITaskItem>(); 3105ListOfExcludedAssemblies = new List<string>();
AssemblyDependency\ResolveAssemblyReference.cs (12)
212private List<ITaskItem> _unresolvedConflicts = new List<ITaskItem>(); 1106private List<ITaskItem> _filesWritten = new List<ITaskItem>(); 1377var assemblyIdentityAttributes = new List<XAttribute>(4); 2401List<Exception> inclusionListErrors = new List<Exception>(); 2402List<string> inclusionListErrorFilesNames = new List<string>(); 2621var generalResolutionExceptions = new List<Exception>(); 2916var combined = new List<DependentAssembly>(first.Count + second.Count); 2982List<Exception> inclusionListErrors = new List<Exception>(); 2983List<string> inclusionListErrorFilesNames = new List<string>(); 3018List<string> subsetNames = new List<string>(); 3184var holdSuggestedRedirects = new List<ITaskItem>(); 3307var assembliesLeft = new List<ITaskItem>();
AssignCulture.cs (2)
138var cultureList = new List<ITaskItem>(); 139var noCultureList = new List<ITaskItem>();
AssignLinkMetadata.cs (1)
39var outputItems = new List<ITaskItem>();
AssignProjectConfiguration.cs (2)
182var resolvedReferences = new List<ITaskItem>(ProjectReferences.GetLength(0)); 183var unresolvedReferences = new List<ITaskItem>(ProjectReferences.GetLength(0));
BootstrapperUtil\BootstrapperBuilder.cs (9)
173var componentFilesCopied = new List<string>(); 451var files = new List<string>(); 454List<string> packagePaths = new List<string>() { invariantPath }; 599List<string> packagePaths = new List<string>() { PackagePath }; 662p.AddMissingDependency(new List<string> { relatedProductCode }); 668var foundDependencies = new List<Product>(); 669var allDependencies = new List<string>(); 712var list = new List<string>(); 741var productsToRemove = new List<string>();
BootstrapperUtil\BuildResults.cs (2)
19private readonly List<string> _componentFiles = new List<string>(); 20private readonly List<BuildMessage> _messages = new List<BuildMessage>();
BootstrapperUtil\PackageCollection.cs (1)
15private readonly List<Package> _list = new List<Package>();
BootstrapperUtil\Product.cs (3)
43Dependencies = new List<List<Product>>(); 44MissingDependencies = new List<List<string>>(); 182var newDependency = new List<Product> { product };
BootstrapperUtil\ProductBuilderCollection.cs (1)
19private readonly List<ProductBuilder> _list = new List<ProductBuilder>();
BootstrapperUtil\ProductCollection.cs (1)
21private readonly List<Product> _list = new List<Product>();
BootstrapperUtil\ResourceUpdater.cs (2)
20private readonly List<StringResource> _stringResources = new List<StringResource>(); 21private readonly List<FileResource> _fileResources = new List<FileResource>();
BootstrapperUtil\Util.cs (1)
197List<string> additionalPackagePaths = new List<string>();
BootstrapperUtil\xmlvalidationresults.cs (2)
14private readonly List<string> _validationErrors = new List<string>(); 15private readonly List<string> _validationWarnings = new List<string>();
CallTarget.cs (2)
27private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>(); 80var singleProject = new List<ITaskItem>(1) { null };
CombinePath.cs (1)
62var combinedPathsList = new List<ITaskItem>();
ConvertToAbsolutePath.cs (1)
49var absolutePathsList = new List<ITaskItem>();
Copy.cs (7)
499destinationFilesSuccessfullyCopied = new List<ITaskItem>(DestinationFiles.Length); 628sourceIndices = new List<int>(1); 655destinationFilesSuccessfullyCopied = new List<ITaskItem>(DestinationFiles.Length); 851var sourceFiles = SourceFiles != null ? new List<ITaskItem>(SourceFiles) : new List<ITaskItem>(); 852var destinationFiles = DestinationFiles != null ? new List<ITaskItem>(DestinationFiles) : new List<ITaskItem>();
CreateItem.cs (2)
103var outputItems = new List<ITaskItem>(); 153var expanded = new List<ITaskItem>();
Delete.cs (1)
109var deletedFilesList = new List<ITaskItem>();
Exec.cs (1)
56private readonly List<ITaskItem> _nonEmptyOutput = new List<ITaskItem>();
FileIO\ReadLinesFromFile.cs (1)
51var nonEmptyLines = new List<ITaskItem>();
FindInvalidProjectReferences.cs (1)
85var invalidReferences = new List<ITaskItem>();
GenerateResource.cs (12)
673_satelliteInputs = new List<ITaskItem>(); 675List<ITaskItem> newSources = new List<ITaskItem>(); 1454inputsToProcess = new List<ITaskItem>(); 1455outputsToProcess = new List<ITaskItem>(); 1456cachedOutputFiles = new List<ITaskItem>(); 2293private List<ReaderInfo> _readers = new List<ReaderInfo>(); 2400_extractedResWFiles = new List<ITaskItem>(); 2490_readers = new List<ReaderInfo>(); 2492_portableLibraryCacheInfo = new List<ResGenDependencies.PortableLibraryFile>(); 2661_readers = new List<ReaderInfo>(); 2740List<string> resWFilesForThisAssembly = new List<string>(); 3959resources = new List<IResource>();
GetAssemblyIdentity.cs (1)
68var list = new List<ITaskItem>();
GetInstalledSDKLocations.cs (1)
165var outputItems = new List<ITaskItem>();
GetSDKReferenceFiles.cs (6)
305IList<string> redistPaths = new List<string>(); 449var resolvedReferenceAssemblies = new List<ITaskItem>(); 450var copyLocalReferenceAssemblies = new List<ITaskItem>(); 451var redistReferenceItems = new List<ITaskItem>(); 998var directoriesToHash = new List<string>(); 1080var directoriesToHash = new List<string>();
ListOperators\FindUnderPath.cs (2)
59var inPathList = new List<ITaskItem>(); 60var outOfPathList = new List<ITaskItem>();
ListOperators\RemoveDuplicates.cs (1)
50var filteredList = new List<ITaskItem>(Inputs.Length);
MakeDir.cs (1)
48var items = new List<ITaskItem>();
ManifestUtil\AssemblyReferenceCollection.cs (1)
19private readonly List<AssemblyReference> _list = new List<AssemblyReference>();
ManifestUtil\CompatibleFrameworkCollection.cs (1)
14private readonly List<CompatibleFramework> _list = new List<CompatibleFramework>();
ManifestUtil\DeployManifest.cs (2)
82private List<CompatibleFramework> _compatibleFrameworks = new List<CompatibleFramework>(); 644set => _compatibleFrameworks = new List<CompatibleFramework>(value);
ManifestUtil\FileAssociationCollection.cs (1)
14private readonly List<FileAssociation> _list = new List<FileAssociation>();
ManifestUtil\FileReference.cs (2)
54var typeLibs = new List<TypeLib>(); 69var comClasses = new List<ComClass>();
ManifestUtil\FileReferenceCollection.cs (1)
19private readonly List<FileReference> _list = new List<FileReference>();
ManifestUtil\ManifestReader.cs (1)
30var comInfoList = new List<ComInfo>();
ManifestUtil\MetadataReader.cs (1)
99_customAttributes = new List<string>();
ManifestUtil\OutputMessage.cs (1)
80private readonly List<OutputMessage> _list = new List<OutputMessage>();
Move.cs (1)
148var destinationFilesSuccessfullyMoved = new List<ITaskItem>();
MSBuild.cs (8)
53private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>(); 252singleProject = new List<ITaskItem>(1) { null }; 362var projectsToBuildInParallel = new List<ITaskItem>(); 398var expandedProperties = new List<string>(); 399var expandedTargets = new List<string>(); 444var targetLists = new List<string[]>(runEachTargetSeparately ? targets.Length : 1); 516undefinePropertiesPerProject[i] = new List<string>(undefineProperties); 527undefinePropertiesPerProject[i] = new List<string>(propertiesToUndefine.Length);
RedistList.cs (7)
94var errors = new List<Exception>(); 95var errorFilenames = new List<string>(); 96var assemblyList = new List<AssemblyEntry>(); 97var remappingEntries = new List<AssemblyRemapping>(); 588var allowListAssemblies = new List<AssemblyEntry>(); 596var allowListAssembliesReadIn = new List<AssemblyEntry>(); 1105var subsetFilesForFrameworkDirectory = new List<string>();
RemoveDir.cs (1)
55var removedDirectoriesList = new List<ITaskItem>();
ResGenDependencies.cs (1)
261var retVal = new List<string>();
ResolveManifestFiles.cs (6)
513var assemblyList = new List<ITaskItem>(); 521var fileList = new List<ITaskItem>(); 725assemblyPublishInfos = new List<PublishInfo>(); 726filePublishInfos = new List<PublishInfo>(); 727satellitePublishInfos = new List<PublishInfo>(); 728manifestEntryPointPublishInfos = new List<PublishInfo>();
ResolveNonMSBuildProjectOutput.cs (2)
93var resolvedPaths = new List<ITaskItem>(ProjectReferences.GetLength(0)); 94var unresolvedReferences = new List<ITaskItem>(ProjectReferences.GetLength(0));
ResolveProjectBase.cs (1)
165List<ITaskItem> updatedProjectReferenceList = new List<ITaskItem>(_projectReferences);
ResolveSDKReference.cs (7)
411var listOfIncompatibleReferences = new List<string>(); 440var listOfIncompatibleReferences = new List<string>(); 556return new List<string>(); 743ResolutionErrors = new List<Tuple<string, object[]>>(); 744ResolutionWarnings = new List<Tuple<string, object[]>>(); 745StatusMessages = new List<Tuple<string, object[]>>(); 1348List<string> appxLocationComponents = new List<string>();
ResourceHandling\MSBuildResXReader.cs (1)
24var resources = new List<IResource>();
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
32internal static readonly IList<string> DefaultNamespaces = new List<string> 52new List<string> 63new List<string>() 68new List<string>()
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersEx.cs (8)
49private List<AssemblyFoldersExInfo> _directoryNames = new List<AssemblyFoldersExInfo>(); 166List<ExtensionFoldersRegistryKey> componentKeys = new List<ExtensionFoldersRegistryKey>(); 178List<string> sortedComponents = new List<string>(); 200List<ExtensionFoldersRegistryKey> directoryKeys = new List<ExtensionFoldersRegistryKey>(); 208List<string> fullServicingKeys = new List<string>(); 349List<string> additionalToleratedKeys = new List<string>(); 351List<ExtensionFoldersRegistryKey> versionStrings = new List<ExtensionFoldersRegistryKey>(); 467listOfFrameworks = new List<string>();
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersFromConfig.cs (1)
21private readonly List<AssemblyFoldersFromConfigInfo> _directoryNames = new List<AssemblyFoldersFromConfigInfo>();
src\msbuild\src\Shared\PropertyParser.cs (2)
90var finalPropertiesList = new List<PropertyNameValuePair>(); 211Value = new List<string>
src\msbuild\src\Shared\TaskParameter.cs (2)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
Touch.cs (1)
93var touchedItems = new List<ITaskItem>();
WriteCodeFragment.cs (5)
213var orderedParameters = new List<AttributeParameter?>(new AttributeParameter?[customMetadata.Count + 1] /* max possible slots needed */); 214var namedParameters = new List<AttributeParameter>(); 258List<AttributeParameter> providedOrderedParameters = new(); 346keysToRemove = new(); 376keysToRemove = new();
XmlPeek.cs (1)
148var peekValues = new List<string>();
Microsoft.Build.Tasks.Git (11)
GitDataReader\GitConfig.Reader.cs (1)
257variables.Add(key, values = new List<string>());
GitDataReader\GitIgnore.Matcher.cs (1)
35_reusableGroupList = new List<PatternGroup>();
GitDataReader\GitRefTableReader.Diagnostics.cs (4)
35var blocks = new List<Block>(); 45var refRecords = new List<RefRecord>(); 46var indexRecords = new List<RefIndexRecord>(); 47var restartOffsets = new List<int>();
GitOperations.cs (3)
246var result = new List<TaskItem>(); 386var treeRoot = new DirectoryNode(name: "", new List<DirectoryNode>()); 421var newNode = new DirectoryNode(segments[i], new List<DirectoryNode>());
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.Build.Utilities.Core (38)
MuxLogger.cs (2)
206recordsToShutdown = new List<SubmissionRecord>(_submissionRecords.Values); 473_loggers = new List<ILogger>();
PlatformManifest.cs (2)
120DependentPlatforms = new List<DependentPlatform>(); 121ApiContracts = new List<ApiContract>();
SDKManifest.cs (1)
351ApiContracts = new List<ApiContract>();
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersEx.cs (8)
49private List<AssemblyFoldersExInfo> _directoryNames = new List<AssemblyFoldersExInfo>(); 166List<ExtensionFoldersRegistryKey> componentKeys = new List<ExtensionFoldersRegistryKey>(); 178List<string> sortedComponents = new List<string>(); 200List<ExtensionFoldersRegistryKey> directoryKeys = new List<ExtensionFoldersRegistryKey>(); 208List<string> fullServicingKeys = new List<string>(); 349List<string> additionalToleratedKeys = new List<string>(); 351List<ExtensionFoldersRegistryKey> versionStrings = new List<ExtensionFoldersRegistryKey>(); 467listOfFrameworks = new List<string>();
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersFromConfig.cs (1)
21private readonly List<AssemblyFoldersFromConfigInfo> _directoryNames = new List<AssemblyFoldersFromConfigInfo>();
TaskItem.cs (1)
276var metadataNames = new List<string>(capacity: count);
ToolLocationHelper.cs (21)
336var assemblyFolders = new List<AssemblyFoldersExInfo>(); 662var referenceDirectories = new List<string>(4); 726var redistDirectories = new List<string>(4); 756var designTimeDirectories = new List<string>(4); 789var filteredTargetPlatformSdkList = new List<TargetPlatformSDK>(); 1130var contractWinMDs = new List<string>(); 1344var platforms = new List<string>(); 1381var availablePlatformVersions = new List<Version>(); 1990return new List<string>(); 2111var referencePaths = new List<string>(); 2137var referencePaths = new List<string>(); 2161var referencePaths = new List<string>(); 2205return pathsList ?? new List<string>(); 2333var referencePaths = new List<string>(); 2947var sdkDiskRoots = new List<string>(); 2974var sdkDiskRoots = new List<string>(); 3634s_targetFrameworkMonikers = new List<string>(); 3750var frameworkIdentifiers = new List<string>(); 3824var frameworkVersions = new List<string>(); 3896var frameworkProfiles = new List<string>(); 3928IList<string> versions = new List<string>();
ToolTask.cs (1)
1463_environmentVariablePairs = new List<KeyValuePair<string, string>>(EnvironmentVariables.Length);
TrackedDependencies\TrackedDependencies.cs (1)
33var expanded = new List<ITaskItem>(expand.Length);
Microsoft.CodeAnalysis (52)
AdditionalTextFile.cs (1)
40var diagnostics = new List<DiagnosticInfo>();
CodeGen\SwitchStringJumpTableEmitter.cs (1)
208bucket = new HashBucket();
CommandLine\AnalyzerConfigSet.cs (1)
60private readonly ObjectPool<List<Section>> _sectionKeyPool = new ObjectPool<List<Section>>(() => new List<Section>());
CommandLine\CommandLineArguments.cs (1)
405var resolved = new List<MetadataReference>();
CommandLine\CommandLineParser.cs (3)
593var splitList = new List<string>(); 675var arguments = new List<string>(); 722var newArgs = new List<string>();
CommandLine\CommonCompiler.cs (2)
230List<MetadataReference> resolved = new List<MetadataReference>(); 947var diagnosticInfos = new List<DiagnosticInfo>();
CommandLine\SarifV1ErrorLogger.cs (1)
288var list = new List<KeyValuePair<string, DiagnosticDescriptor>>(Count);
CommandLine\SarifV2ErrorLogger.cs (1)
500var list = new List<(int Index, DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)>(Count);
Compilation\Compilation.cs (1)
2082var resourceList = new List<Win32Resource>();
Compilation\DeterministicKeyBuilder.cs (1)
268var parseOptionsList = new List<ParseOptions>();
CvtRes.cs (1)
55var resourceNames = new List<RESOURCE>();
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (2)
123Add(key, values = new List<Value>()); 143Add(key, values = new List<Value>());
DiaSymReader\Utilities\ComMemoryStream.cs (1)
31private readonly List<byte[]> _chunks = new List<byte[]>();
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (1)
40_documentWriters = new List<ISymUnmanagedDocumentWriter>();
DocumentationCommentId.cs (2)
25: base(() => new List<T>(10), 10) 1057typeArguments = new List<ITypeSymbol>();
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
56private readonly List<(EntityHandle parentHandle, IEnumerator<ICustomAttribute> attributeEnumerator)> _deferredCustomAttributes = new(); 99_changedTypeDefs = new List<ITypeDefinition>(); 1516this.rows = new List<T>();
InternalUtilities\CommandLineUtilities.cs (1)
56var list = new List<string>();
InternalUtilities\CompilerOptionParseUtilities.cs (1)
23return new List<string>(capacity: 0);
InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
MetadataReader\MetadataHelpers.cs (3)
797var nestedTypes = new List<IGrouping<string, TypeDefinitionHandle>>(); 804var nestedNamespaces = new List<KeyValuePair<string, IEnumerable<IGrouping<string, TypeDefinitionHandle>>>>(); 880typesInLastChildNamespace = new List<IGrouping<string, TypeDefinitionHandle>>();
MetadataReader\PEAssembly.cs (1)
147keys = new List<ImmutableArray<byte>>();
MetadataReader\PEModule.cs (1)
2542result = new List<AttributeInfo>();
PEWriter\MetadataWriter.cs (4)
441private readonly List<IFileReference> _fileRefList = new List<IFileReference>(32); 448protected readonly List<MethodImplementation> methodImplList = new List<MethodImplementation>(); 563result = new List<IGenericTypeParameter>(); 4255_rows = new List<T>();
PEWriter\MetadataWriter.DynamicAnalysis.cs (2)
57_documentTable = new List<DocumentRow>(documentCountEstimate); 59_methodTable = new List<MethodRow>(methodCountEstimate);
PEWriter\NativeResourceWriter.cs (2)
129this.Entries = new List<object>(); 282byte[] data = new List<byte>(r.Data).ToArray();
ReferenceManager\CommonReferenceManager.Binding.cs (1)
724private static readonly ObjectPool<List<TAssemblySymbol?>> s_candidateReferencedSymbolsPool = new ObjectPool<List<TAssemblySymbol?>>(() => new List<TAssemblySymbol?>(capacity: 1024));
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
678referencesBySimpleName.Add(identity.Name, new List<ReferencedAssemblyIdentity> { referencedAssembly });
RuleSet\RuleSetProcessor.cs (1)
154var rules = new List<KeyValuePair<string, ReportDiagnostic>>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
Syntax\InternalSyntax\ChildSyntaxList.Reversed.cs (1)
35var result = new List<GreenNode>();
Syntax\InternalSyntax\SyntaxListPool.cs (1)
18private readonly List<SyntaxListBuilder> _allocated = new List<SyntaxListBuilder>();
Syntax\SeparatedSyntaxList.cs (1)
424var nodesToInsertWithSeparators = new List<SyntaxNodeOrToken>();
Syntax\SyntaxDiffer.cs (3)
22private readonly List<ChangeRecord> _changes = new List<ChangeRecord>(); 106var newSpans = new List<TextSpan>(); 741var textChanges = new List<ChangeRangeWithText>(changeRecords.Count);
Syntax\SyntaxNodeExtensions_Tracking.cs (1)
212list = new List<SyntaxNode>();
Text\ChangedText.cs (1)
225var list = new List<ImmutableArray<TextChangeRange>>();
Text\SourceText.cs (1)
923var textChanges = new List<TextChange>(ranges.Count);
Microsoft.CodeAnalysis.Analyzers (43)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (1)
181var diagnostics = new List<Diagnostic>();
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (2)
28var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>(); 92var updatedUnshippedText = new List<(DocumentId, SourceText)>();
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (1)
200var conditionalAccessMembers = new List<SyntaxNode>();
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
41var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>();
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
23return new List<string>(capacity: 0);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
150var attributes = new List<AttributeData>(); 217var attributes = new List<AttributeData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (3)
218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
60var result = new List<TextChange>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var newMembers = new List<SyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (2)
63var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 66var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
54var names = new List<string>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
Microsoft.CodeAnalysis.AnalyzerUtilities (31)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
23return new List<string>(capacity: 0);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
150var attributes = new List<AttributeData>(); 217var attributes = new List<AttributeData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (3)
218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
60var result = new List<TextChange>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Microsoft.CodeAnalysis.CodeStyle (29)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
23return new List<string>(capacity: 0);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (3)
218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
60var result = new List<TextChange>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
63var removedNodes = new List<SyntaxNode> { paramNode };
src\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
103var removalList = new List<int>();
src\roslyn\src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
42var declarators = new List<TSymbolSyntax>();
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
167var newArms = new List<TSwitchArmSyntax>();
src\roslyn\src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (1)
46var result = new List<CodeAction>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var newMembers = new List<SyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (2)
63var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 66var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
54var names = new List<string>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder.cs (1)
972var sub = new List<TreeDumperNode>();
Binder\Semantics\Conversions\Conversion.cs (1)
1287var sub = new System.Collections.Generic.List<TreeDumperNode>();
BoundTree\TupleBinaryOperatorInfo.cs (2)
85var sub = new List<TreeDumperNode>(); 125var sub = new List<TreeDumperNode>();
CommandLine\CSharpCommandLineParser.cs (14)
56List<Diagnostic> diagnostics = new List<Diagnostic>(); 58List<string>? scriptArgs = IsScriptCommandLineParser ? new List<string>() : null; 59List<string>? responsePaths = IsScriptCommandLineParser ? new List<string>() : null; 103List<CommandLineResource> managedResources = new List<CommandLineResource>(); 104List<CommandLineSourceFile> sourceFiles = new List<CommandLineSourceFile>(); 105List<CommandLineSourceFile> additionalFiles = new List<CommandLineSourceFile>(); 107List<CommandLineSourceFile> embeddedFiles = new List<CommandLineSourceFile>(); 114List<CommandLineReference> metadataReferences = new List<CommandLineReference>(); 115List<CommandLineAnalyzerReference> analyzers = new List<CommandLineAnalyzerReference>(); 116List<string> libPaths = new List<string>(); 117List<string> sourcePaths = new List<string>(); 118List<string> keyFileSearchPaths = new List<string>(); 119List<string> usings = new List<string>(); 129List<string> features = new List<string>();
CommandLine\CSharpCompiler.cs (2)
98var diagnostics = new List<DiagnosticInfo>(); 181var fileDiagnostics = new List<DiagnosticInfo>();
Declarations\DeclarationTable.Builder.cs (2)
26_addedLazyRootDeclarations = new List<Lazy<RootSingleNamespaceDeclaration>>(); 27_removedLazyRootDeclarations = new List<Lazy<RootSingleNamespaceDeclaration>>();
FlowAnalysis\AlwaysAssignedWalker.cs (1)
51List<Symbol> result = new List<Symbol>();
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (3)
1056this.proxiedLabels = proxiedLabels = new List<LabelSymbol>(); 1134this.handlers = new List<BoundBlock>(); 1137_orderedHoistedLocals = new List<LocalSymbol>();
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
241_dispatches.Add(resumeLabel, new List<StateMachineState> { stateNumber }); 747oldDispatches.Add(dispatchLabel, new List<StateMachineState>(from kv in _dispatches.Values from n in kv orderby n select n));
Parser\AbstractLexer.cs (1)
84_errors = new List<SyntaxDiagnosticInfo>(8);
Symbols\ReferenceManager.cs (1)
421var newSymbols = new List<int>();
Symbols\Source\SourceNamedTypeSymbol.cs (2)
154var parameterBuilders1 = new List<List<TypeParameterBuilder>>(); 188var parameterBuilder = new List<TypeParameterBuilder>();
Symbols\SubstitutedNamedTypeSymbol.cs (1)
197return new List<string>(GetTypeMembersUnordered().Select(s => s.Name).Distinct());
Syntax\DirectiveTriviaSyntax.cs (1)
133var list = new List<DirectiveTriviaSyntax>();
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
181var list = new List<DirectiveTriviaSyntax>(32);
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
117var partsList = new List<string>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
586var result = new List<IList<TSyntaxNode>>(); 588var currentGroup = new List<TSyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (1)
75var result = new List<SimpleNameSyntax>();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
58var nodesFromDiagnostics = new List<( 70var references = new List<ExpressionSyntax>(diagnostic.AdditionalLocations.Count - 2);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
25var members = new List<SyntaxNodeOrToken>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
162var accessors = new List<AccessorDeclarationSyntax?>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
320var types = new List<BaseTypeSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
22var newUsings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (1)
144var usings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
24var indices = new List<bool>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
Microsoft.CodeAnalysis.CSharp.Features (39)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
258var typeParameters = new List<ITypeParameterSymbol>();
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
128var directives = new List<NullableDirectiveTriviaSyntax>();
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
140var items = new List<CompletionItem>();
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (1)
194var droppedTrivia = new List<SyntaxTrivia>();
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (2)
396var list = new List<StatementSyntax>(); 810var statements = new List<StatementSyntax>();
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
91var list = new List<string>(); 314var result = new List<SyntaxToken>();
DocumentationComments\DocCommentConverter.cs (1)
50var newLeadingTrivia = new List<SyntaxTrivia>();
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2588var result = new List<SyntaxNode>();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (4)
59var list = new List<VariableDeclaratorSyntax>(); 60var triviaList = new List<SyntaxTrivia>(); 294var newList = new List<TSyntax>(list); 322var newMembers = new List<MemberDeclarationSyntax>(members);
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
136var variables = new List<VariableDeclaratorSyntax>();
GenerateType\CSharpGenerateTypeService.cs (2)
549var containerList = new List<string>(containers); 589var namespaceContainers = new List<string>();
Organizing\Organizers\MemberDeclarationsOrganizer.cs (1)
114var initialList = new List<MemberDeclarationSyntax>(members);
Organizing\Organizers\ModifiersOrganizer.cs (1)
21var initialList = new List<SyntaxToken>(modifiers);
SignatureHelp\AbstractGenericNameSignatureHelpProvider_Method.cs (2)
17var result = new List<SymbolDisplayPart>(); 76var result = new List<SymbolDisplayPart>
SignatureHelp\AbstractGenericNameSignatureHelpProvider.cs (2)
161var result = new List<SignatureHelpSymbolParameter>(); 203var parts = new List<SymbolDisplayPart>();
SignatureHelp\AbstractOrdinaryMethodSignatureHelpProvider.cs (1)
53var result = new List<SymbolDisplayPart>();
SignatureHelp\AttributeSignatureHelpProvider.cs (2)
163var result = new List<SignatureHelpSymbolParameter>(); 177var displayParts = new List<SymbolDisplayPart>
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
242var result = new List<SymbolDisplayPart>();
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (2)
60var displayParts = new List<SymbolDisplayPart>(); 82var result = new List<SignatureHelpSymbolParameter>();
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider_DelegateType.cs (2)
38var result = new List<SymbolDisplayPart>(); 50var parts = new List<SymbolDisplayPart>();
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider_NormalType.cs (1)
42var result = new List<SymbolDisplayPart>();
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (1)
142var result = new List<SymbolDisplayPart>();
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
181var result = new List<SignatureHelpParameter>();
SplitStringLiteral\InterpolatedStringSplitter.cs (2)
40var beforeSplitContents = new List<InterpolatedStringContentSyntax>(); 41var afterSplitContents = new List<InterpolatedStringContentSyntax>();
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
58var nodesFromDiagnostics = new List<( 70var references = new List<ExpressionSyntax>(diagnostic.AdditionalLocations.Count - 2);
Structure\Providers\CompilationUnitStructureProvider.cs (1)
27var externsAndUsings = new List<SyntaxNode>();
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (5)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDynamicInterfaceCastableImplementation.Fixer.cs (2)
34var generatedMembers = new List<SyntaxNode>(); 211List<(InvocationExpressionSyntax invocation, ExpressionSyntax target)> invocations = new();
Microsoft.NetCore.Analyzers\Performance\CSharpRecommendCaseInsensitiveStringComparisonFixer.cs (2)
51List<SyntaxNode> arguments = new(); 118new List<SyntaxNode>()
Microsoft.NetCore.Analyzers\Performance\CSharpUseSearchValues.Fixer.cs (1)
114List<char> values = new();
Microsoft.CodeAnalysis.CSharp.Workspaces (24)
CodeGeneration\CSharpSyntaxGenerator.cs (5)
406var accessors = new List<AccessorDeclarationSyntax>(); 477var accessors = new List<AccessorDeclarationSyntax>(); 560var accessors = new List<AccessorDeclarationSyntax>(); 2993var newNodes = new List<SyntaxNode>(); 3099var newNodes = new List<SyntaxNode>
Rename\CSharpRenameRewriterLanguageService.cs (1)
847var properties = new List<ISymbol>();
Rename\LabelConflictVisitor.cs (1)
31var tokens = new List<SyntaxToken>();
Simplification\CSharpSimplificationService.Expander.cs (4)
718var candidateTokens = new List<SyntaxToken>(); 761var typeArgumentSymbols = new List<ISymbol>(); 812var typeArgumentsInSymbol = new List<ISymbol>(); 815var typeArgumentsInOriginalDefinition = new List<ISymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
117var partsList = new List<string>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
586var result = new List<IList<TSyntaxNode>>(); 588var currentGroup = new List<TSyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (1)
75var result = new List<SimpleNameSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
25var members = new List<SyntaxNodeOrToken>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
162var accessors = new List<AccessorDeclarationSyntax?>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
320var types = new List<BaseTypeSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
22var newUsings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (1)
144var usings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
24var indices = new List<bool>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
Microsoft.CodeAnalysis.Extensions.Package (3)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.cs (1)
153var documentsToRemove = new List<DocumentId>();
Microsoft.CodeAnalysis.Features (44)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (2)
259var getChangedDocumentsTasks = new List<Task>(); 284var getFinalDocumentTasks = new List<Task>();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
211var builder = new List<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>>();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (2)
118var attributeRemoveFixes = new List<AttributeRemoveAction>(); 119var newBatchOfFixes = new List<(Diagnostic diagnostic, CodeAction action)>();
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
447var refLocationsInCurrentDocument = new List<LocationForAffectedSymbol>(); 448var refLocationsInOtherDocuments = new List<LocationForAffectedSymbol>();
Completion\CommonCompletionUtilities.cs (1)
99var textContentBuilder = new List<TaggedText>();
Completion\CompletionService_GetCompletions.cs (1)
429_displayNameToItemsMap[entireDisplayText] = new List<CompletionItem>() { sameNamedItem, item };
Completion\Providers\RecommendedKeyword.cs (1)
34var textContentBuilder = new System.Collections.Generic.List<SymbolDisplayPart>();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
543var list = new List<UnitTestingWorkItem>();
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
233var remainingResults = new List<ExtractClassMemberAnalysisResult>(memberAnalysisResults);
ExtractMethod\AbstractSyntaxTriviaService.cs (2)
125var triviaLeftAtCallSite = new List<SyntaxTrivia>(); 126var triviaMovedToDefinition = new List<SyntaxTrivia>();
ExtractMethod\MethodExtractor.Analyzer.cs (1)
757var typeParametersInConstraint = new List<ITypeParameterSymbol>();
ExtractMethod\MethodExtractor.TriviaResult.cs (2)
71var currentLine = new List<SyntaxTrivia>(); 72var result = new List<SyntaxTrivia>();
ExtractMethod\SelectionValidator.cs (1)
151var spine = new List<TStatementSyntax>();
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
493var containerList = new List<string>();
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
78var listOfParametersOrdinals = new List<int>();
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
372var nodesToTrack = new List<SyntaxNode> { constructorDeclaration };
InlineHints\InlineHintHelpers.cs (1)
34var parts = new List<TaggedText>();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
321var requiredArguments = new List<SyntaxNode>();
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (3)
303var parts = new List<SymbolDisplayPart>(); 347var parts = new List<SymbolDisplayPart>(); 466var finalParts = new List<SymbolDisplayPart>();
PdbSourceDocument\SourceLinkMap.cs (1)
70var list = new List<Entry>();
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
81var candidateResults = new List<(DocumentId docId, TokenInformation tokenInformation)>
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
61var actionsToPerform = new List<(int, Action)>();
RQName\Nodes\RQNode.cs (1)
18var childList = new List<SimpleTreeNode>();
RQName\RQNodeBuilder.cs (5)
36var parts = new List<string>(); 77var typeInfos = new List<RQUnconstructedTypeInfo>(); 141var parameterList = new List<RQParameter>(); 308var typeChain = new List<INamedTypeSymbol>(); 320var typeArgumentList = new List<RQType>();
Shared\Utilities\SupportedPlatformData.cs (1)
27var builder = new List<SymbolDisplayPart>();
SignatureHelp\AbstractSignatureHelpProvider.cs (3)
197var structuralTypeParts = new List<SymbolDisplayPart> 260var finalItems = new List<SignatureHelpItem>(); 326var startingNewLine = new List<TaggedText>();
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
63var removedNodes = new List<SyntaxNode> { paramNode };
src\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
103var removalList = new List<int>();
src\roslyn\src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
42var declarators = new List<TSymbolSyntax>();
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
167var newArms = new List<TSwitchArmSyntax>();
src\roslyn\src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (1)
46var result = new List<CodeAction>();
Microsoft.CodeAnalysis.NetAnalyzers (36)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotRaiseExceptionsInUnexpectedLocations.cs (1)
174var methodCategories = new List<MethodCategory> {
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ExceptionsShouldBePublic.cs (1)
36private static readonly List<string> s_exceptionTypeNames = new()
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\Helpers\EnumHelpers.cs (1)
66values = new List<ulong>();
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternates.cs (1)
133var matchedMethods = new List<IMethodSymbol>();
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypeNamesShouldNotMatchNamespaces.cs (1)
165var wellKnownSystemNamespaces = new List<string>
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUninstantiatedInternalClasses.cs (1)
71var instantiatingAttributeChecker = new List<(Func<INamedTypeSymbol, bool> isAttributeTarget, Func<AttributeData, Compilation, INamedTypeSymbol?> findTypeOrDefault)>
Microsoft.CodeQuality.Analyzers\Maintainability\CodeMetricsAnalyzer.cs (2)
419values = new List<(SymbolKind?, uint)>(); 434invalidFileDiagnostics ??= new List<Diagnostic>();
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotPassDisposablesIntoUnawaitedTasks.cs (4)
130return new List<ILocalReferenceOperation>(0); 135var referencedDisposableArgs = new List<ILocalReferenceOperation>(); 140List<ILocalSymbol> usingLocals = new(); 161return new List<ILocalReferenceOperation>(0);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotRaiseExceptionsInExceptionClauses.cs (1)
69public List<IThrowOperation> ThrowExpressions { get; private set; } = new List<IThrowOperation>();
Microsoft.NetCore.Analyzers\Performance\AvoidSingleUseOfLocalJsonSerializerOptions.cs (2)
319localSymbols ??= new List<ILocalSymbol>(); 346localSymbols = new List<ILocalSymbol> { local };
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsed.Fixer.cs (1)
99var carriedOver = new List<SyntaxNode>(arguments) { expression };
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryMethodsOverContainsKeyGuardFixer.cs (1)
67private readonly List<(ISymbol? Scope, string Name)> _introducedNames = new();
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.Fixer.cs (7)
40var hashInstanceTarget = new HashInstanceTarget(new List<ComputeHashSyntaxHolder> { computeHashSyntaxHolder }); 141var chainedComputeHashList = new List<ComputeHashSyntaxHolder>(); 199ComputeHashNodes = new List<ComputeHashSyntaxHolder>(); 208public List<ComputeHashSyntaxHolder> ComputeHashNodes { get; } = new(); 232var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>(); 344var list = new List<SyntaxNode>(); 368var list = new List<SyntaxNode>();
Microsoft.NetCore.Analyzers\Performance\UseConcreteTypeAnalyzer.Collector.cs (1)
426var values = new List<ITypeSymbol>();
Microsoft.NetCore.Analyzers\Runtime\AttributeStringLiteralsShouldParseCorrectly.cs (1)
54new(
Microsoft.NetCore.Analyzers\Runtime\LogValuesFormatter.cs (1)
59public List<string> ValueNames { get; } = new List<string>();
Microsoft.NetCore.Analyzers\Runtime\UseAsyncMethodInAsyncContext.cs (1)
69List<SyncBlockingSymbol> syncBlockingSymbols = new();
src\40daf5e1cab76dff\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
188taintedValues ??= new List<TaintedDataAbstractValue>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
19private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
181var attributes = new List<AttributeData>(); 248var attributes = new List<AttributeData>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (1)
730lastBlockSuccessors = new List<BranchWithInfo>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
275_pendingArgumentsToPostProcess = new List<IArgumentOperation>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
39List<SyntaxNode> statements = new List<SyntaxNode>(); 353List<SyntaxNode> statements = new List<SyntaxNode>();
Microsoft.CodeAnalysis.Razor.Compiler (24)
CSharp\DefaultUtf8WriteLiteralFeature.cs (2)
156var results = new List<(int, string)>(); 227var parts = new List<string> { typePart };
Language\Components\ComponentGenericTypePass.cs (2)
203receivesCascadingGenericTypes ??= new(); 299var missing = new List<BoundAttributeDescriptor>();
Language\Components\ComponentLoweringPass.cs (1)
111matched ??= new();
Language\Components\ComponentMarkupBlockPass.cs (1)
139public List<IntermediateNodeReference> Trees { get; } = new List<IntermediateNodeReference>();
Language\Components\ComponentNodeWriter.cs (1)
407var p = new List<TypeInferenceMethodParameter>();
Language\DefaultDocumentClassifierPassFeature.cs (3)
15new List<Action<RazorCodeDocument, ClassDeclarationIntermediateNode>>(); 18new List<Action<RazorCodeDocument, NamespaceDeclarationIntermediateNode>>(); 21new List<Action<RazorCodeDocument, MethodDeclarationIntermediateNode>>();
Language\DirectiveDescriptor.cs (1)
188Tokens = new List<DirectiveTokenDescriptor>();
Language\DocumentClassifierPassBase.cs (1)
59var children = new List<IntermediateNode>(documentNode.Children);
Language\Intermediate\DefaultRazorIntermediateNodeBuilder.cs (1)
18_stack = new List<IntermediateNode>();
Language\Legacy\Tokenizer.cs (1)
23CurrentErrors = new List<RazorDiagnostic>();
Language\MarkupSplitter.Slicing.cs (1)
53var localBoundaries = new List<int> { 0 };
Language\RazorCodeDocumentExtensions.cs (1)
129var usings = new List<string>();
Language\Syntax\InternalSyntax\SyntaxListPool.cs (1)
18private readonly List<SyntaxListBuilder> _allocated = new List<SyntaxListBuilder>();
Language\TagHelperCollection.TagHelperDescriptorListPool.cs (1)
40public override List<TagHelperDescriptor> Create() => new(capacity: InitialCapacity);
Language\TagHelperObjectBuilderCollection`2.cs (1)
40_builders ??= new();
Mvc.Version2_X\InstrumentationPass.cs (1)
76public List<InstrumentationItem> Items { get; } = new List<InstrumentationItem>();
Mvc.Version2_X\ViewComponentTagHelperDescriptorFactory.cs (1)
156var methods = new List<IMethodSymbol>();
Mvc\ModelDirective.cs (1)
120public IList<DirectiveIntermediateNode> ModelDirectives { get; } = new List<DirectiveIntermediateNode>();
Mvc\ModelExpressionPass.cs (1)
34public List<TagHelperIntermediateNode> TagHelpers { get; } = new List<TagHelperIntermediateNode>();
Mvc\ViewComponentTagHelperDescriptorFactory.cs (1)
156var methods = new List<IMethodSymbol>();
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
456List<(string, string)> options = new List<(string, string)>();
Microsoft.CodeAnalysis.ResxSourceGenerator (32)
AbstractResxGenerator.cs (1)
546var getResourceStringAttributes = new List<string>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
23return new List<string>(capacity: 0);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
150var attributes = new List<AttributeData>(); 217var attributes = new List<AttributeData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (3)
218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
60var result = new List<TextChange>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Microsoft.CodeAnalysis.Scripting (9)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (2)
205_loadedAssembliesBySimpleName.Add(identity.Name, new List<LoadedAssemblyInfo> { info }); 218_dependenciesWithLocationBySimpleName.Add(simpleName, new List<AssemblyIdentityAndLocation> { dependency });
Hosting\CommandLine\CommandLineRunner.cs (2)
110var diagnosticsInfos = new List<DiagnosticInfo>(); 157var resolvedReferences = new List<MetadataReference>();
Hosting\CommandLine\CommandLineScriptGlobals.cs (1)
59Args = new List<string>();
Hosting\InteractiveScriptGlobals.cs (1)
64Args = new List<string>();
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (2)
287var members = new List<FormattedMember>(); 329var members = new List<MemberInfo>();
Hosting\SynchronizedList.cs (1)
15private readonly List<T> _list = new List<T>();
Microsoft.CodeAnalysis.VisualBasic (2)
Analysis\FlowAnalysis\AlwaysAssignedWalker.vb (1)
40Dim result As New List(Of Symbol)
OptionsValidator.vb (1)
33Dim parsedImportList As New List(Of GlobalImport)
Microsoft.CodeAnalysis.Workspaces (57)
Classification\Classifier.cs (1)
103var allClassifications = new List<ClassifiedSpan>(semanticClassifications.Where(s => s.TextSpan.OverlapsWith(textSpan)));
CodeCleanup\AbstractCodeCleanerService.cs (2)
277var annotations = new List<(SyntaxAnnotation previous, SyntaxAnnotation next)>(); 327var tokenSpans = new List<TextSpan>();
Differencing\EditScript.cs (1)
22var edits = new List<Edit<TNode>>();
FindSymbols\SymbolFinder_Callers.cs (1)
51var results = new List<SymbolCallerInfo>();
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (2)
33var partitionedChanges = new List<List<TextChange>>(); 34var currentPartition = new List<TextChange>
Log\WorkspaceStructureLogger.cs (2)
198var elements = new List<XElement>(); 297var elements = new List<XElement>();
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
277var ignoreErrorCodes = new List<string> 692var possibleNameConflictsList = new List<string>();
Rename\ConflictEngine\RenamedSpansTracker.cs (1)
197var modifiedSubSpans = new List<(TextSpan oldSpan, TextSpan newSpan)>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
278var results = new List<RenameLocation>();
Serialization\AbstractOptionsSerializationService.cs (2)
138specificDiagnosticOptionsList = new List<KeyValuePair<string, ReportDiagnostic>>(count); 224featuresList = new List<KeyValuePair<string, string>>(count);
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
24var result = new List<string>();
Shared\Extensions\ISymbolExtensions.cs (1)
335var result = new List<XNode>();
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
23return new List<string>(capacity: 0);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (3)
218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
60var result = new List<TextChange>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var newMembers = new List<SyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (2)
63var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 66var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
54var names = new List<string>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
Workspace\CommandLineProject.cs (1)
147var documents = new List<DocumentInfo>();
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
689var projectReferencesCreated = new List<ProjectReference>();
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
493var newReferences = new List<MetadataReference>();
Workspace\Workspace.cs (1)
1256var updatedDocumentIds = new List<DocumentId>();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
146var idsAndFileInfos = new List<(ProjectId id, ProjectFileInfo fileInfo)>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
Build\ProjectBuildManager.cs (2)
285var results = new List<MSB.Execution.ProjectInstance>(targetFrameworks.Length); 335var targets = new List<string>(requiredTargets);
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
21_builder = new List<string>();
Rpc\RpcServer.cs (1)
127var remainingTasks = new List<Task>(capacity: runningTasks.Count);
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
887var resolvedParts = new List<string>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
23return new List<string>(capacity: 0);
Microsoft.CSharp (41)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
356List<string> argNames = new List<string>();
Microsoft\CSharp\RuntimeBinder\ComInterop\ComInvokeBinder.cs (5)
172List<ParameterExpression> vars = new List<ParameterExpression>(); 195List<Expression> tryStatements = new List<Expression>(); 335List<Expression> finallyStatements = new List<Expression> 395List<Expression> exprs = new List<Expression> 513var vars = new List<ParameterExpression>();
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchComObject.cs (1)
281var members = new List<KeyValuePair<string, object>>();
Microsoft\CSharp\RuntimeBinder\ComInterop\VarEnumSelector.cs (1)
149List<VarEnum> compatibleComTypes = new List<VarEnum>();
Microsoft\CSharp\RuntimeBinder\ComInterop\VariantArray.cs (1)
52private static readonly List<Type> s_generatedTypes = new List<Type>(0);
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (3)
45var v = new List<DynamicMetaObject> { self }; 455List<string> names = new List<string>(mo.GetDynamicMemberNames()); 458var result = new List<KeyValuePair<string, object>>();
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
891List<Expression> expressions = new List<Expression>();
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
564List<CType> callingTypes = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (2)
713List<UdConvInfo> prguci = new List<UdConvInfo>(); 1541List<T> newList = new List<T>(array);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (2)
575List<CandidateFunctionMember> methFirstList = new List<CandidateFunctionMember>(); 1340argInfo.prgexpr = new List<Expr>();
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (2)
78_methList = new List<CandidateFunctionMember>(); 84_HiddenTypes = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (3)
273_prgtype = new List<AggregateType>(); 494_methPropWithTypeList = new List<MethPropWithType>(); 495_rgtypeStart = new List<AggregateType>();
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (6)
133_pLowerBounds[iBound] = new List<CType>(); 134_pUpperBounds[iBound] = new List<CType>(); 135_pExactBounds[iBound] = new List<CType>(); 1606List<CType> initialCandidates = new List<CType>(); 1646List<CType> removeList = new List<CType>(); 1664List<CType> removeList = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (3)
513List<BinOpFullSig> binopSignatures = new List<BinOpFullSig>(); 1208List<UnaOpFullSig> pSignatures = new List<UnaOpFullSig>(); 2589List<CandidateFunctionMember> methFirst = new List<CandidateFunctionMember>();
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodOrPropertySymbol.cs (1)
85ParameterNames = new List<Name>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
191List<CType> typeList = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
29prgptvs = new List<TypeParameterType>();
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (6)
221(events ??= new List<EventInfo>()).Add(e); 247list = new List<Type>(ifaces.Length + 2) 263list = new List<Type> { type }; 341List<CType> ctypes = new List<CType>(); 686List<CType> types = new List<CType>(); 755List<object> callChain = new List<object>();
Microsoft.Data.Analysis (49)
DataFrame.Arrow.cs (1)
186List<Apache.Arrow.Array> arrays = new List<Apache.Arrow.Array>();
DataFrame.cs (5)
200List<DataFrameColumn> newColumns = new List<DataFrameColumn>(Columns.Count); 543List<object> cachedObjectConversions = new List<object>(); 624List<object> cachedObjectConversions = new List<object>(); 864var outputCols = new List<DataFrameColumn>(idColumnList.Count); 952List<DataFrameColumn> newColumns = new List<DataFrameColumn>(Columns.Count);
DataFrame.IO.cs (3)
124var columns = new List<DataFrameColumn>(columnsCount); 379var linesForGuessType = new List<(long LineNumber, string[] Line)>(); 441columns = new List<DataFrameColumn>(numberOfColumns);
DataFrameColumn.cs (2)
90private readonly List<DataFrameColumnCollection> _ownerColumnCollections = new(); 511heapOfValueAndListOfTupleOfSortAndBufferIndex.Add(nextValue, new List<ValueTuple<int, int>>() { (nextValueAndBufferSortIndex.bufferSortIndex, bufferIndex) });
DataFrameColumnCollection.cs (1)
33var ret = new List<string>(Count);
DataFrameColumns\ArrowStringDataFrameColumn.cs (9)
33_dataBuffers = new List<ReadOnlyDataFrameBuffer<byte>>(); 34_offsetsBuffers = new List<ReadOnlyDataFrameBuffer<int>>(); 35_nullBitMapBuffers = new List<ReadOnlyDataFrameBuffer<byte>>(); 56_dataBuffers = new List<ReadOnlyDataFrameBuffer<byte>>(); 57_offsetsBuffers = new List<ReadOnlyDataFrameBuffer<int>>(); 58_nullBitMapBuffers = new List<ReadOnlyDataFrameBuffer<byte>>(); 269var ret = new List<object>(); 302var ret = new List<string>(); 507multimap.Add(str, new List<long>() { i });
DataFrameColumns\StringDataFrameColumn.cs (10)
23private readonly List<List<string>> _stringBuffers = new List<List<string>>(); // To store more than intMax number of strings 31List<string> buffer = new List<string>((int)Math.Min(MaxCapacity, bufferLen)); 46_stringBuffers.Add(new List<string>()); 73lastBuffer = new List<string>(); 120var ret = new List<object>(); 167var ret = new List<string>(); 209List<int[]> bufferSortIndices = new List<int[]>(_stringBuffers.Count); 257heapOfValueAndListOfTupleOfSortAndBufferIndex.Add(valueAndBufferSortIndex.Item1, new List<ValueTuple<int, int>>() { (valueAndBufferSortIndex.Item2, i) }); 393return new DataFrame(new List<DataFrameColumn> { keys, counts }); 426multimap.Add(str, new List<long>() { i });
DataFrameColumns\VBufferDataFrameColumn.cs (5)
22private readonly List<List<VBuffer<T>>> _vBuffers = new List<List<VBuffer<T>>>(); // To store more than intMax number of vbuffers 35List<VBuffer<T>> buffer = new List<VBuffer<T>>(bufferLen); 49_vBuffers.Add(new List<VBuffer<T>>()); 75lastBuffer = new List<VBuffer<T>>(); 105var ret = new List<object>();
IDataView.Extension.cs (2)
48List<DataFrameColumn> dataFrameColumns = new List<DataFrameColumn>(schema.Count); 57List<DataViewSchema.Column> activeDataViewColumns = new List<DataViewSchema.Column>();
PrimitiveColumnContainer.cs (4)
22public IList<ReadOnlyDataFrameBuffer<T>> Buffers = new List<ReadOnlyDataFrameBuffer<T>>(); 26public IList<ReadOnlyDataFrameBuffer<byte>> NullBitMapBuffers = new List<ReadOnlyDataFrameBuffer<byte>>(); 372var ret = new List<T?>(length); 451List<ReadOnlyDataFrameBuffer<byte>> ret = new List<ReadOnlyDataFrameBuffer<byte>>();
PrimitiveDataFrameColumn.cs (3)
214var ret = new List<object>(length); 391return new DataFrame(new List<DataFrameColumn> { keys, counts }); 637multimap.Add(readOnlySpan[i], new List<long>() { currentLength });
PrimitiveDataFrameColumn.Sort.cs (3)
25List<List<int>> bufferSortIndices = new List<List<int>>(_columnContainer.Buffers.Count); 40List<int> nonNullSortIndices = new List<int>(); 98heapOfValueAndListOfTupleOfSortAndBufferIndex.Add(valueAndBufferIndex.Item1, new List<ValueTuple<int, int>>() { (valueAndBufferIndex.Item2, i) });
TextFieldParser.cs (1)
780List<string> Fields = new List<string>();
Microsoft.Data.Analysis.Interactive (6)
DataFrameKernelExtension.cs (6)
44var header = new List<IHtmlContent> 57var rows = new List<List<IHtmlContent>>(); 60var cells = new List<IHtmlContent> 72var footer = new List<IHtmlContent>(); 110var rows = new List<List<IHtmlContent>>(); 113var cells = new List<IHtmlContent>
Microsoft.Data.Analysis.Interactive.Tests (1)
DataFrameInteractiveTests.cs (1)
76var data = new List<IDictionary<string, object>>();
Microsoft.Data.Analysis.Tests (35)
ArrowIntegrationTests.cs (1)
146DataFrame df = new DataFrame(new List<DataFrameColumn>() { ageColumn, lengthColumn, stringColumn });
DataFrame.IOTests.cs (1)
1666List<Type> typesToRemove = new List<Type>(possibleTypes.Count);
DataFrameTests.BinaryOperations.cs (2)
27IReadOnlyList<int> listOfInts = new List<int>() { 5, 5 }; 184IReadOnlyList<bool> listOfBools = new List<bool>() { true, false };
DataFrameTests.cs (27)
327List<int> verify = new List<int>() { 0, 3, 1, 4, 2, 5 }; 349List<int> originalColumnVerify = new List<int>() { 6, 8, 7, 9 }; 350List<int> tailColumnVerity = new List<int>() { 1, 2, 4, 5 }; 1091df.Append(new List<object> { 5, true }, inPlace: true); 1096DataFrame ret = df.Append(new List<object> { 5, true }); 1101df.Append(new List<object> { 100 }, inPlace: true); 1106ret = df.Append(new List<object> { 100 }, inPlace: false); 1111df.Append(new List<object> { null, null }, inPlace: true); 1115ret = df.Append(new List<object> { null, null }, inPlace: false); 1171Assert.Throws<FormatException>(() => df.Append(new List<object> { 5, "str" }, inPlace: true)); 1173Assert.Throws<ArgumentException>(() => df.Append(new List<object> { 5, true, true }, inPlace: true)); 1199df.Append(new List<object> { "", true }, inPlace: true); 1207df.Append(new List<object> { 1, true, "" }, inPlace: true); 1213df.Append(new List<object> { 1, true, null }, inPlace: true); 1410new List<string> { "id" }, 1411new List<string> { "A", "B" }, 1428new List<string> { "id" }, 1446new List<string> { "id" }, 1464new List<string> { "id" }, 1482new List<string> { "id" }, 1500new List<string> { "id" }, 1518new List<string> { "id" }, 1536new List<string> { "id" }, 1554new List<string> { "id" }, 1572new List<string> { "id" }, 1592new List<string> { "id1", "id2" }, 1593new List<string> { "A", "B" },
DataFrameTests.Filter.cs (1)
33List<int> verify = new List<int> { 0, 2, 4, 6, 8 };
DataFrameTests.Utils.cs (2)
175var columnsList = new List<DataFrameColumn> 209DataFrame dataFrame = new DataFrame(new List<DataFrameColumn> { baseColumn1, baseColumn2 });
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
780List<string> Fields = new List<string>();
Microsoft.Deployment.DotNet.Releases (8)
AspNetCoreReleaseComponent.cs (1)
45List<Version> ancmVersions = new();
Product.cs (1)
240var releases = new List<ProductRelease>();
ProductCollection.cs (1)
117var products = new List<Product>();
ProductRelease.cs (4)
145var cves = new List<Cve>(); 159var runtimes = new List<ReleaseComponent>(); 181var sdks = new List<SdkReleaseComponent>(); 199var components = new List<ReleaseComponent>();
ReleaseComponent.cs (1)
66List<ReleaseFile> files = new List<ReleaseFile>();
Microsoft.Diagnostics.DataContractReader.Contracts (27)
_generated\0\LayoutSet.g.cs (1)
69List<LazyLayout> layouts = new(2);
Contracts\CallingConvention\CallingConvention_1.cs (3)
192List<ArgumentLocation> arguments = new(); 731_bytes ??= new List<byte>(8); 816_bytes ??= new List<byte>(1);
Contracts\ComWrappers_1.cs (1)
116List<TargetPointer> mows = new List<TargetPointer>();
Contracts\ExecutionManager\ExecutionManagerCore.cs (3)
586return new List<ExceptionClauseInfo>(); 590return new List<ExceptionClauseInfo>(); 603List<ExceptionClauseInfo> exceptionClauses = new List<ExceptionClauseInfo>();
Contracts\GC\GC_1.cs (6)
334List<HandleData> handles = new(); 481List<AllocContext> contexts = new(); 566List<HandleType> handleTypes = new(); 683List<GCMemoryRegionData> regions = new(); 738List<GCMemoryRegionData> regions = new(); 793List<GCMemoryRegionData> regions = new();
Contracts\GCInfo\GCInfoDecoder.cs (3)
207_slots = new List<GcSlotDesc>((int)_numSlots); 309_interruptibleRanges = new List<InterruptibleRange>((int)_numInterruptibleRanges); 337_safePoints = new List<uint>((int)_numSafePoints);
Contracts\GCInfo\X86\GCTransition.cs (4)
220CallRegisters = new List<CallRegister>(); 221PtrArgs = new List<PtrArg>(); 229CallRegisters = new List<CallRegister>(); 230PtrArgs = new List<PtrArg>();
Data\ArrayListBase.cs (1)
71List<TargetPointer> elements = new((int)Size);
Data\ComWrappersVtablePtrs.cs (1)
16List<TargetCodePointer> pointers = new(count);
Data\HandleTableMap.cs (1)
20List<TargetPointer> buckets = new((int)arrayLength);
Data\RCW.cs (1)
33List<Data.InterfaceEntry> entries = new((int)cacheSize);
Data\ReadyToRunCoreHeader.cs (1)
18List<ReadyToRunSection> sections = new((int)NumberOfSections);
EcmaMetadataUtils.cs (1)
153nameChain = new List<(string Namespace, string Name)>();
Microsoft.Diagnostics.DataContractReader.DataGenerator (6)
Emitter.cs (3)
251List<string> read = new(); 447var parts = new List<string>(); 458var parts = new List<string>();
Parser.cs (3)
53List<MemberModel> members = new(); 116var result = new List<string>(); 157var result = new List<string>();
Microsoft.Diagnostics.DataContractReader.Legacy (38)
Dbi\DacDbiImpl.cs (22)
789List<ulong>? cdacAssemblies = _legacy is not null ? new() : null; 822List<ulong> dacAssemblies = new(); 1024List<ulong>? cdacThreads = _legacy is not null ? new() : null; 1054List<ulong> dacThreads = new(); 1626List<NativeVarInfo> cdacVarInfos = new(); 1627List<DbiOffsetMapping> cdacSeqPoints = new(); 2379List<Debugger_STRData>? cdacFrames = _legacy is not null ? new() : null; 2431List<Debugger_STRData> dacFrames = new(); 3129cdacFields = new(); 3183cdacFields = new(); 3359List<FieldData> dacFields = new(); 3734List<DebuggerIPCE_ExpandedTypeData> entries = new(); 4078List<DebuggerIPCE_ExpandedTypeData> entries = new(); 4140=> _debugExpandedTypeInfo ??= new(); 4242=> _debugEnumerateStackFramesFromException ??= new(); 4256List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)> frames = new(); 4337=> _debugEnumerateRcwCachedInterfacePointers ??= new(); 4350List<ulong> itfPtrs = new(); 5070=> _debugEnumerateHeapSegments ??= new(); 5083List<(ulong Start, ulong End, int Generation, uint Heap)> segments = new(); 6424=> _debugEnumerateAsyncLocals ??= new(); 6439List<AsyncLocalData> locals = new();
Dbi\DacDbiImpl.NativeCodeInfo.cs (2)
257public List<NativeVarInfo> VarInfos { get; } = new(); 258public List<DbiOffsetMapping> SeqPoints { get; } = new();
Dbi\Helpers\RefWalk.cs (1)
73List<HandleType> types = new();
MetaDataImportImpl.cs (10)
180tokens = new(); 195List<uint> legacyTokens = new(); 229tokens = new(); 244List<uint> legacyTokens = new(); 292tokens = new(); 307List<uint> legacyTokens = new(); 341tokens = new(); 356List<uint> legacyTokens = new(); 407tokens = new(); 422List<uint> legacyTokens = new();
SOSDacImpl.cs (3)
4754List<DACEHInfo> clausesLocal = new(); 4843=> _debugTraverseLoaderHeapBlocks ??= new(); 6671var entries = new List<(LoaderAllocatorHeapType HeapType, nint AnsiPtr)>();
Microsoft.Diagnostics.NETCore.Client (8)
DiagnosticsClient\DiagnosticsClient.cs (2)
433List<int> pids = new(); 483List<int> discoveredPids = new();
DiagnosticsClient\EventPipeSessionConfiguration.cs (1)
120_providers = new List<EventPipeProvider>(providers);
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (1)
1494List<Task> runningTasks = new();
DiagnosticsServerRouter\DiagnosticsServerRouterRunner.cs (2)
60List<Task> runningTasks = new(); 61List<Router> runningRouters = new();
HandleableCollection.cs (2)
26private readonly List<T> _items = new(); 27private readonly List<Tuple<TaskCompletionSource<T>, Handler>> _handlers = new();
Microsoft.DiaSymReader (2)
Utilities\ComMemoryStream.cs (1)
37private readonly List<byte[]> _chunks = new List<byte[]>();
Writer\SymUnmanagedWriterImpl.cs (1)
37_documentWriters = new List<ISymUnmanagedDocumentWriter>();
Microsoft.DotNet.ApiCompat.Task (2)
src\sdk\src\Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.Shared\ValidateAssemblies.cs (2)
52List<MetadataInformation> leftAssembliesMetadataInformation = new(options.LeftAssemblies.Length); 58List<MetadataInformation> rightAssembliesMetadataInformation = new(options.RightAssemblies.Length);
Microsoft.DotNet.ApiCompatibility (6)
Rules\CannotChangeGenericConstraints.cs (2)
86List<string> addedConstraints = new(); 87List<string> removedConstraints = new();
Rules\RuleFactory.cs (1)
18List<IRule> rules = new()
Runner\ApiCompatRunner.cs (2)
38List<IEnumerable<ElementContainer<IAssemblySymbol>>> rightContainersList = new(workItem.Right.Count); 127List<ElementContainer<IAssemblySymbol>> elementContainerList = new(metadataInformation.Count);
Runner\ApiCompatRunnerWorkItem.cs (1)
29public IList<IReadOnlyList<MetadataInformation>> Right { get; } = new List<IReadOnlyList<MetadataInformation>>(new IReadOnlyList<MetadataInformation>[] { right });
Microsoft.DotNet.ApiSymbolExtensions (2)
Filtering\CompositeSymbolFilter.cs (1)
27public List<ISymbolFilter> Filters { get; } = new(filters);
Filtering\DocIdSymbolFilter.cs (1)
26List<string> docIds = new();
Microsoft.DotNet.Arcade.Sdk (2)
src\ExtractNgenMethodList.cs (1)
54var items = new List<string>();
src\InstallDotNetCore.cs (1)
250var items = new List<KeyValuePair<string, string>>();
Microsoft.DotNet.Build.Manifest (4)
ArtifactSet.cs (3)
13public List<PackageArtifactModel> Packages { get; set; } = new List<PackageArtifactModel>(); 15public List<BlobArtifactModel> Blobs { get; set; } = new List<BlobArtifactModel>(); 17public List<PdbArtifactModel> Pdbs { get; set; } = new List<PdbArtifactModel>();
BuildModelFactory.cs (1)
270List<string> differences = new List<string>();
Microsoft.DotNet.Build.Tasks.FileCatalog (3)
CatalogBuilder.cs (3)
34private readonly List<CatalogEntry> _entries = new(); 109List<Member> members = new(_entries.Count * 2); 133var deduped = new List<Member>(members.Count);
Microsoft.DotNet.Build.Tasks.Installers (3)
src\CreateWixBuildWixpack.cs (3)
304var commandLineArgs = new List<string>(); 798var blocks = new List<(string condition, string content)>(); 811var blockBoundaries = new List<(int start, int end, string condition, bool isElse)>();
Microsoft.DotNet.Build.Tasks.Packaging (39)
ApplyBaseLine.cs (2)
72List<ITaskItem> baseLinedDependencies = new List<ITaskItem>(); 107List<ITaskItem> baseLinedDependencies = new List<ITaskItem>();
ApplyMetaPackages.cs (1)
56List<ITaskItem> updatedDependencies = new List<ITaskItem>();
ApplyPreReleaseSuffix.cs (1)
73List<ITaskItem> updatedPackages = new List<ITaskItem>();
CreateTrimDependencyGroups.cs (1)
125List<ITaskItem> trimmedDependencies = new List<ITaskItem>();
Extensions.cs (1)
181var list = (List<TItem>)property.GetValue(target) ?? new List<TItem>();
FrameworkUtilities.cs (1)
71List<string> nearestFrameworks = new List<string>();
GenerateNuSpec.cs (1)
352var listOfPackageTypes = new List<PackageType>();
GeneratePackageReport.cs (1)
306packageItems[packageId] = new List<PackageItem>();
GenerateRuntimeDependencies.cs (3)
91List<RuntimeDescription> runtimes = new List<RuntimeDescription>(); 108List<RuntimeDependencySet> runtimeDependencySets = new List<RuntimeDependencySet>(); 114List<RuntimePackageDependency> runtimePackageDependencies = new List<RuntimePackageDependency>();
GetApplicableAssetsFromPackageReports.cs (4)
66var compileAssets = new List<ITaskItem>(); 67var runtimeAssets = new List<ITaskItem>(); 68var nativeAssets = new List<ITaskItem>(); 69var buildProjects = new List<BuildProject>();
GetApplicableAssetsFromPackages.cs (2)
92var buildProjects = new List<BuildProject>(); 163_packageToPackageItems[packageItem.Package] = new List<PackageItem>();
GetAssemblyReferences.cs (2)
43List<ITaskItem> references = new List<ITaskItem>(); 44List<ITaskItem> nativeLibs = new List<ITaskItem>();
GetLastStablePackage.cs (1)
132List<ITaskItem> lastStablePackages = new List<ITaskItem>();
GetLayoutFiles.cs (1)
54var layoutFiles = new List<ITaskItem>();
GetPackageDestination.cs (1)
69private List<ITaskItem> _packageDestinations = new List<ITaskItem>();
GetPackageFromModule.cs (1)
58List<ITaskItem> packagesReferenced = new List<ITaskItem>();
GetRuntimeJsonValues.cs (1)
33List<string> items = new List<string>();
GetRuntimeTargets.cs (1)
37List<string> items = new List<string>();
GetSupportedPackagesFromPackageReports.cs (1)
24var supportedPackages = new List<ITaskItem>();
HarvestPackage.cs (4)
158List<ITaskItem> supportedFrameworks = new List<ITaskItem>(); 289var harvestedFiles = new List<ITaskItem>(); 290var removeFiles = new List<ITaskItem>(); 330List<string> targetPaths = new List<string>() { harvestPackagePath };
NuGetAssetResolver.cs (1)
280var contentItemGroups = new List<ContentItemGroup>();
NuGetPack.cs (3)
371List<PackageDependencyGroup> packedPackageDependencyGroups = new List<PackageDependencyGroup>(); 374List<NuGet.Packaging.Core.PackageDependency> packages = new List<NuGet.Packaging.Core.PackageDependency>(); 386List<ManifestFile> manifestFiles = new List<ManifestFile>();
NuGetUtility.cs (1)
24List<Version> result = new List<Version>();
PackageIndex.cs (1)
513List<Version> redundantMappings = new List<Version>();
PromoteDependencies.cs (1)
40List<ITaskItem> promotedDependencies = new List<ITaskItem>();
SplitDependenciesBySupport.cs (1)
32List<ITaskItem> splitDependencies = new List<ITaskItem>(dependencies.Where(d => d.TargetFramework != null && d.TargetFramework.Framework != FrameworkConstants.FrameworkIdentifiers.NetStandard).Select(d => d.OriginalItem));
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
ChooseBestP2PTargetFrameworkTask.cs (1)
63List<ITaskItem> assignedProjects = new(AnnotatedProjectReferences.Length);
ChooseBestTargetFrameworksTask.cs (1)
31List<ITaskItem> bestTargetFrameworkList = new(BuildTargetFrameworks!.Length);
Microsoft.DotNet.Build.Tasks.Workloads (5)
Swix\SwixPackageBase.cs (1)
17} = new List<SwixDependency>();
Wix\WixToolsetConfiguration.cs (1)
13private List<string> _extensions = new();
Wix\WixToolTask.cs (2)
18private List<string> _sourceFiles = new(); 19private List<string> _preprocessorDefinitions = new();
WorkloadTemplateBase.cs (1)
17private List<string> _files = new();
Microsoft.DotNet.Cli.Definitions (6)
Commands\New\CommandDefinitionExtensions.cs (2)
64List<string> wrongTokens = new(); 97List<string> wrongTokens = new();
Commands\New\SharedOptionsFactory.cs (1)
152List<string> values = new();
Common\CommonOptions.cs (1)
97var argsToReturn = new List<string>(targets is null ? 0 : 1 + (additionalProperties?.Length ?? 0));
Help\HelpBuilder.cs (1)
357(end ??= new()).Add(']');
Help\HelpBuilder.Default.cs (1)
161List<TwoColumnHelpRow> optionRows = new();
Microsoft.DotNet.Cli.Telemetry (2)
_generated\17\TelemetryJsonContext.ListExceptionDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>(),
_generated\18\TelemetryJsonContext.ListTrackResponseError.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>(),
Microsoft.DotNet.Cli.Utils (6)
ArgumentEscaper.cs (2)
57var escapedArgs = new List<string>(); 79var escapedArgs = new List<string>();
EnvironmentProvider.cs (1)
42var searchPaths = new List<string> { AppContext.BaseDirectory };
MSBuildArgs.cs (1)
39: new List<string>();
PathUtility.cs (1)
344var notExisting = new List<string>();
TypoCorrection.cs (1)
42var matchByContains = new List<Suggestion>();
Microsoft.DotNet.CMake.Sdk (1)
src\GetCMakeArtifactsFromFileApi.cs (1)
148var artifacts = new List<ITaskItem>();
Microsoft.DotNet.GenFacades (3)
GenPartialFacadeSourceGenerator.cs (1)
164assemblyListForTypes = new List<string>(1);
SourceGenerator.cs (1)
47List<string> externAliases = new List<string>();
TypeParser.cs (1)
136List<SyntaxTree> result = new List<SyntaxTree>();
Microsoft.DotNet.HotReload.Utils.Generator (5)
Config.cs (2)
19public List<KeyValuePair<string,string>> Properties {get; set;} = new List<KeyValuePair<string,string>> (); 29public List<string> EditAndContinueCapabilities {get; set; } = new List<string>();
EditAndContinueCapabilitiesParser.cs (2)
36List<string> unknowns = new(); 37List<EnC.EditAndContinueCapabilities> capabilities = new();
Runners\ScriptRunner.cs (1)
34deltas = new List<OutputSummary.Delta>();
Microsoft.DotNet.HotReload.Watch (16)
Aspire\AspireServiceFactory.cs (1)
254var arguments = new List<string>
Build\EvaluationResult.cs (1)
251var targets = new List<string>
Build\ProjectBuildManager.cs (1)
60var buildTasks = new List<Task<BuildResult?>>(buildRequests.Length);
HotReload\HotReloadDotNetWatcher.cs (5)
439var newChangedFiles = new List<ChangedFile>(); 666var buildRequests = new List<BuildRequest<string>>(); 707var copyTasks = new List<Task>(); 1226var devices = new List<DeviceInfo>(targetResult.Items.Length); 1254var arguments = new List<string>
HotReload\ProjectUpdatesBuilder.cs (1)
69var errorsToDisplayInApp = new List<string>();
HotReload\RunningProjectsManager.cs (3)
244var applyTasks = new List<Task>(); 317var staticAssetApplyTaskProducers = new List<Task<Task>>(); 449var relaunchOperations = new List<RestartOperation>();
Process\ProjectLauncher.cs (1)
102var arguments = new List<string>()
src\sdk\src\Dotnet.Watch\AspireService\Helpers\SocketUtilities.cs (1)
57var sockets = new List<Socket>();
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClient.cs (1)
114var applicableUpdates = new List<HotReloadManagedCodeUpdate>();
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClients.cs (1)
186var updates = new List<HotReloadStaticAssetUpdate>();
Microsoft.DotNet.HotReload.WebAssembly.Browser (4)
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (4)
186var clearCacheHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 187var applicationUpdateHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 188var contentUpdateHandlers = new List<UpdateHandler<ContentUpdateAction>>(); 320var sortedAssemblies = new List<Assembly>(assemblies.Length);
Microsoft.DotNet.NativeWrapper (2)
NETEnvironmentInfo.cs (2)
68List<NetRuntimeInfo> runtimeInfo = new(capacity: count); 80List<NetSdkInfo> sdkInfo = new(count);
Microsoft.DotNet.NuGetRepack.Tasks (3)
src\NuGetVersionUpdater.cs (2)
285var errors = new List<Exception>(); 362var errors = new List<Exception>();
src\UpdatePackageVersionTask.cs (1)
60var preReleaseDependencies = new List<string>();
Microsoft.DotNet.PackageTesting (5)
GetCompatiblePackageTargetFrameworks.cs (4)
16private static List<NuGetFramework> allTargetFrameworks = new(); 30List<ITaskItem> testProjects = new(); 61List<NuGetFramework> frameworksToTest= new(); 110List<ITaskItem> testprojects = new();
VerifyTypes.cs (1)
176var types = new List<string>();
Microsoft.DotNet.SharedFramework.Sdk (6)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
176var types = new List<string>();
src\GeneratePlatformManifestEntriesFromFileList.cs (1)
25var entries = new List<PlatformManifestEntry>();
src\GeneratePlatformManifestEntriesFromTemplate.cs (1)
31List<PlatformManifestEntry> entries = new List<PlatformManifestEntry>();
src\GenerateSharedFrameworkDepsFile.cs (3)
51var runtimeFiles = new List<RuntimeFile>(); 52var nativeFiles = new List<RuntimeFile>(); 53var resourceAssemblies = new List<ResourceAssembly>();
Microsoft.DotNet.TemplateLocator (3)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (2)
304var list = new List<string>(); 327var list = new List<T>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSuggestionFinder.cs (1)
48partialSuggestions = new List<WorkloadSuggestionCandidate>();
Microsoft.DotNet.XliffTasks (4)
Model\UnstructuredDocument.cs (2)
15private List<string> _fragments = new(); 16private List<UnstructuredTranslatableNode> _nodes = new();
Tasks\GatherXlf.cs (1)
28List<ITaskItem> outputs = new();
Tasks\TransformTemplates.cs (1)
34List<ITaskItem> transformedTemplates = new();
Microsoft.Extensions.AI (8)
ChatCompletion\FunctionInvokingChatClient.cs (1)
1270var contents = new List<AIContent>(results.Length);
ChatCompletion\ImageGeneratingChatClient.cs (1)
474var newList = new List<T>(original.Count + additionalCapacity);
ChatReduction\SummarizingChatReducer.cs (1)
100var unsummarizedMessages = new List<ChatMessage>();
ChatRouting\SemanticRoutingChatClient.cs (2)
130var profiles = new List<(int ClientIndex, string Text)>(); 131var clients = new List<IChatClient> { defaultClient };
Common\FunctionInvocationProcessor.cs (1)
71var results = new List<FunctionInvocationResult>();
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.ListObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<object>(),
Realtime\FunctionInvokingRealtimeClientSession.cs (1)
366var messages = new List<RealtimeClientMessage>(results.Count);
Microsoft.Extensions.AI.Abstractions (3)
ChatCompletion\ChatResponse.cs (1)
51get => _messages ??= new List<ChatMessage>(1);
Embeddings\GeneratedEmbeddings.cs (2)
30_embeddings = new List<TEmbedding>(Throw.IfLessThan(capacity, 0)); 39_embeddings = new List<TEmbedding>(Throw.IfNull(embeddings));
Microsoft.Extensions.AI.Abstractions.Tests (15)
ChatCompletion\ChatResponseUpdateTests.cs (2)
246var originalContents = new List<AIContent> { new TextContent("text1"), new TextContent("text2") }; 376var sharedContents = new List<AIContent> { new TextContent("initial") };
ChatCompletion\DelegatingChatClientTests.cs (2)
24var expectedChatContents = new List<ChatMessage>(); 56var expectedChatContents = new List<ChatMessage>();
ChatRouting\RoutingChatClientTests.cs (1)
134var result = new List<ChatResponseUpdate>();
ChatRouting\RoutingContextTests.cs (1)
15var messages = new List<ChatMessage> { new(ChatRole.User, "initial") };
Embeddings\DelegatingEmbeddingGeneratorTests.cs (1)
24var expectedInput = new List<string>();
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ListBoolean.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.List<bool>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ListSimpleRecord.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>(),
Realtime\RealtimeClientMessageTests.cs (4)
40var contents = new List<AIContent> { new TextContent("Hello") }; 138var items = new List<RealtimeConversationItem> 143var modalities = new List<string> { "text", "audio" }; 144var tools = new List<AITool> { AIFunctionFactory.Create(() => 42) };
Realtime\RealtimeServerMessageTests.cs (2)
192var items = new List<RealtimeConversationItem> 196var modalities = new List<string> { "text" };
Microsoft.Extensions.AI.Evaluation (1)
CompositeEvaluator.cs (1)
107var metrics = new List<EvaluationMetric>();
Microsoft.Extensions.AI.Evaluation.Integration.Tests (7)
QualityEvaluatorTests.cs (4)
87var messages = new List<ChatMessage>(); 128var messages = new List<ChatMessage>(); 166var messages = new List<ChatMessage>(); 201var messages = new List<ChatMessage>();
SafetyEvaluatorTests.cs (3)
183var messages = new List<ChatMessage>(); 261var messages = new List<ChatMessage>(); 589var messages = new List<ChatMessage>();
Microsoft.Extensions.AI.Evaluation.Quality (1)
Utilities\JsonOutputFixer.cs (1)
65var messages = new List<ChatMessage>
Microsoft.Extensions.AI.Integration.Tests (13)
ChatClientIntegrationTests.cs (7)
218var activities = new List<Activity>(); 285var activities = new List<Activity>(); 317var activities = new List<Activity>(); 349var activities = new List<Activity>(); 406var activities = new List<Activity>(); 931var activities = new List<Activity>(); 1087var capturedOptions = new List<ChatOptions?>();
EmbeddingGeneratorIntegrationTests.cs (1)
110var activities = new List<Activity>();
ImageGeneratingChatClientIntegrationTests.cs (4)
193var chatHistory = new List<ChatMessage> 243var chatHistory = new List<ChatMessage> 288var chatHistory = new List<ChatMessage> 360var capturedMessages = new List<IEnumerable<ChatMessage>>();
VerbatimMultiPartHttpHandler.cs (1)
133parameters.Add(name, new List<JsonElement> { ParseContentToJsonElement(rawValue) });
Microsoft.Extensions.AI.OpenAI (7)
Generated\361d1da7f942c932\OpenAIJsonContext.ListFunctionToolCallOutputElement.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>(),
OpenAIRealtimeClientSession.cs (5)
665var contentParts = new List<Sdk.RealtimeMessageContentPart>(); 979var items = new List<RealtimeConversationItem>(); 1123var contents = new List<AIContent>(); 1184var contents = new List<AIContent> 1236var contents = new List<AIContent>();
OpenAIResponsesChatClient.cs (1)
1048group = new();
Microsoft.Extensions.AI.OpenAI.Tests (31)
OpenAIChatClientTests.cs (1)
2015var activities = new List<Activity>();
OpenAIConversionTests.cs (19)
545var allowedTools = new List<string> { "tool1", "tool2", "tool3" }; 599var alwaysRequireTools = new List<string> { "tool1", "tool2" }; 600var neverRequireTools = new List<string> { "tool3" }; 1672var updates = new List<ChatResponseUpdate>(); 1673var result = new List<StreamingChatCompletionUpdate>(); 1699var result = new List<StreamingChatCompletionUpdate>(); 1721var result = new List<StreamingChatCompletionUpdate>(); 1755var result = new List<StreamingChatCompletionUpdate>(); 1785var result = new List<StreamingChatCompletionUpdate>(); 1820var result = new List<StreamingChatCompletionUpdate>(); 1854var result = new List<StreamingChatCompletionUpdate>(); 1893var result = new List<StreamingChatCompletionUpdate>(); 1922var result = new List<StreamingChatCompletionUpdate>(); 1953var result = new List<StreamingChatCompletionUpdate>(); 2080var messages = new List<ChatMessage> 2117var messages = new List<ChatMessage> 2152var messages = new List<ChatMessage> 2233Assert.Throws<ArgumentNullException>("tool", () => new List<AITool>().Add((ResponseTool)null!)); 2241Tools = new List<AITool> { ResponseTool.CreateWebSearchTool() },
OpenAIHostedFileClientIntegrationTests.cs (3)
97var files = new List<HostedFileContent>(); 309var files = new List<HostedFileContent>(); 367var containerFiles = new List<HostedFileContent>();
OpenAIHostedFileClientTests.cs (1)
914var list = new List<T>();
OpenAIResponseClientIntegrationTests.cs (2)
587Tools = [AIFunctionFactory.Create((string city) => new List<AIContent> 663Tools = [AIFunctionFactory.Create(() => new List<AIContent>
OpenAIResponseClientTests.cs (4)
1763var messages = new List<ChatMessage> 4880new FunctionResultContent("call_456", new List<AIContent> 5115new FunctionResultContent("call_mixed", new List<AIContent> 6757var activities = new List<Activity>();
OpenAISpeechToTextClientTests.cs (1)
316var updates = new System.Collections.Generic.List<SpeechToTextResponseUpdate>();
Microsoft.Extensions.AI.Stabilization.Tests (1)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ListAIContent.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>(),
Microsoft.Extensions.AI.Tests (116)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (9)
75var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 136var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 245var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 264var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 283var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 311var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 339var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 401var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 429var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
ChatCompletion\DistributedCachingChatClientTest.cs (1)
767var result = new List<T>();
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (4)
1033new List<ChatMessage> 1037new List<ChatMessage> 1047new List<ChatMessage> 1051new List<ChatMessage>
ChatCompletion\FunctionInvokingChatClientTests.cs (16)
414var messages = new List<ChatMessage> 493var messages = new List<ChatMessage> 577var messages = new List<ChatMessage> 1119var activities = new List<Activity>(); 1175var messages = new List<ChatMessage> 1233var messages = new List<ChatMessage> 1268var invocationContexts = new List<FunctionInvocationContext>(); 1695var activities = new List<Activity>(); 1726var activities = new List<Activity>(); 1806var activities = new List<Activity>(); 1848var activities = new List<Activity>(); 1895var activities = new List<Activity>(); 1970var activities = new List<Activity>(); 2323var cloned = new List<AIContent>(contents.Count); 3393var messages = new List<ChatMessage> 3430var messages = new List<ChatMessage>
ChatCompletion\ImageGeneratingChatClientTests.cs (2)
372var updates = new List<ChatResponseUpdate>(); 500var updates = new List<ChatResponseUpdate>();
ChatCompletion\OpenTelemetryChatClientTests.cs (8)
30var activities = new List<Activity>(); 393var activities = new List<Activity>(); 577var activities = new List<Activity>(); 647var activities = new List<Activity>(); 812var activities = new List<Activity>(); 899var activities = new List<Activity>(); 969var activities = new List<Activity>(); 1008var activities = new List<Activity>();
ChatCompletion\ReducingChatClientTests.cs (5)
35var originalMessages = new List<ChatMessage> 43var reducedMessages = new List<ChatMessage> 73var updates = new List<ChatResponseUpdate>(); 98var reducedMessages = new List<ChatMessage> { new(ChatRole.User, "Reduced message") }; 119await client.GetResponseAsync(new List<ChatMessage> { new(ChatRole.User, "Original message") });
ChatReduction\MessageCountingChatReducerTests.cs (1)
164var messages = new List<ChatMessage>();
ChatReduction\SummarizingChatReducerTests.cs (1)
239var messages = new List<ChatMessage>();
ChatRouting\FailoverChatClientTests.cs (10)
125var updates = new List<(FailoverChatClientAttempt attempt, bool isTerminal)>(); 243var invokedOptions = new List<ChatOptions>(); 297var invokedOptions = new List<ChatOptions?>(); 456var terminalUpdates = new List<bool>(); 572var updates = new List<(FailoverChatClientAttempt attempt, bool isTerminal)>(); 667var updates = new List<(FailoverChatClientAttempt attempt, bool isTerminal)>(); 822var terminalUpdates = new List<bool>(); 936var updates = new List<(FailoverChatClientAttempt attempt, bool isTerminal)>(); 1038var updates = new List<ChatResponseUpdate>(); 1146var result = new List<ChatResponseUpdate>();
ChatRouting\OrderedFailoverChatClientTests.cs (4)
29var calls = new List<string>(); 58var calls = new List<string>(); 222var clients = new List<IChatClient> { inner }; 234var seenOptions = new List<(string? modelId, string? instructions)>();
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (2)
24var activities = new List<Activity>(); 102var activities = new List<Activity>();
Files\OpenTelemetryHostedFileClientTests.cs (14)
32var activities = new List<Activity>(); 85var activities = new List<Activity>(); 125var activities = new List<Activity>(); 173var activities = new List<Activity>(); 222var activities = new List<Activity>(); 259var activities = new List<Activity>(); 294var activities = new List<Activity>(); 356var activities = new List<Activity>(); 385var activities = new List<Activity>(); 420var activities = new List<Activity>(); 455var activities = new List<Activity>(); 490var activities = new List<Activity>(); 528var activities = new List<Activity>(); 565var activities = new List<Activity>();
Functions\AIFunctionFactoryTest.cs (1)
40Assert.Throws<ArgumentException>("method", () => AIFunctionFactory.Create(typeof(List<>).GetMethod("Add")!, new List<int>()));
Image\OpenTelemetryImageGeneratorTests.cs (2)
31var activities = new List<Activity>(); 175var activities = new List<Activity>();
Realtime\FunctionInvokingRealtimeClientTests.cs (15)
77var received = new List<RealtimeServerMessage>(); 96var injectedMessages = new List<RealtimeClientMessage>(); 114var received = new List<RealtimeServerMessage>(); 146var injectedMessages = new List<RealtimeClientMessage>(); 202var received = new List<RealtimeServerMessage>(); 253var injectedMessages = new List<RealtimeClientMessage>(); 290var injectedMessages = new List<RealtimeClientMessage>(); 328var injectedMessages = new List<RealtimeClientMessage>(); 373var injectedMessages = new List<RealtimeClientMessage>(); 392var received = new List<RealtimeServerMessage>(); 408var injectedMessages = new List<RealtimeClientMessage>(); 426var received = new List<RealtimeServerMessage>(); 526var messages = new List<RealtimeServerMessage> 596var injectedMessages = new List<RealtimeClientMessage>(); 615var received = new List<RealtimeServerMessage>();
Realtime\OpenTelemetryRealtimeClientTests.cs (16)
27var activities = new List<Activity>(); 199var activities = new List<Activity>(); 254var activities = new List<Activity>(); 392var activities = new List<Activity>(); 445var activities = new List<Activity>(); 488var activities = new List<Activity>(); 531var activities = new List<Activity>(); 616var activities = new List<Activity>(); 659var activities = new List<Activity>(); 702var activities = new List<Activity>(); 744var activities = new List<Activity>(); 786var activities = new List<Activity>(); 827var activities = new List<Activity>(); 868var activities = new List<Activity>(); 909var activities = new List<Activity>(); 950var activities = new List<Activity>();
Realtime\RealtimeClientBuilderTests.cs (1)
61var callOrder = new List<string>();
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (2)
36var activities = new List<Activity>(); 159var activities = new List<Activity>();
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
33var activities = new List<Activity>(); 139var activities = new List<Activity>();
Microsoft.Extensions.AmbientMetadata.Application (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
140(temp ??= new List<string>()).Add($"'{section.Key}'");
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
22var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 23var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.Extensions.AmbientMetadata.Build (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
178(temp ??= new List<string>()).Add($"'{section.Key}'");
Microsoft.Extensions.AsyncState (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Microsoft.Extensions.AsyncState.Tests (3)
AsyncStateTests.cs (3)
218var l = new List<object?>(); 226var l = new List<object?>(new object?[5]); 234var l = new List<object?>(new object?[5]);
Microsoft.Extensions.Caching.Memory (8)
CacheEntry.CacheEntryTokens.cs (3)
24internal List<IChangeToken> ExpirationTokens => _expirationTokens ??= new List<IChangeToken>(); 25internal List<PostEvictionCallbackRegistration> PostEvictionCallbacks => _postEvictionCallbacks ??= new List<PostEvictionCallbackRegistration>(); 39_expirationTokenRegistrations ??= new List<IDisposable>(1);
MemoryCache.cs (5)
72_allStats = new List<Stats>(); 644var entriesToRemove = new List<CacheEntry>(); 646var lowPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>(); 647var normalPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>(); 648var highPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>();
Microsoft.Extensions.Compliance.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Classification\DataClassificationSetTests.cs (2)
17var dc3 = new DataClassificationSet(new List<DataClassification> { FakeTaxonomy.PublicData }); 39var dc3 = new DataClassificationSet(new List<DataClassification> { FakeTaxonomy.PublicData });
Microsoft.Extensions.Compliance.Redaction (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
116(temp ??= new List<string>()).Add($"'{section.Key}'");
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 21var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.Extensions.Compliance.Testing (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
111(temp ??= new List<string>()).Add($"'{section.Key}'");
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 21var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.Extensions.Configuration (11)
ChainedConfigurationProvider.cs (1)
96var keys = new List<string>();
ConfigurationBuilder.cs (2)
14private readonly List<IConfigurationSource> _sources = new(); 47var providers = new List<IConfigurationProvider>();
ConfigurationManager.cs (3)
37private readonly List<IDisposable> _changeTokenRegistrations = new(); 142var newProvidersList = new List<IConfigurationProvider>(); 188private readonly List<IConfigurationSource> _sources = new();
ConfigurationProvider.cs (1)
65var results = new List<string>();
ConfigurationRoot.cs (1)
32_changeTokenRegistrations = new List<IDisposable>(providers.Count);
ConfigurationSectionDebugView.cs (1)
45var data = new List<ConfigurationSectionDebugView>();
ReferenceCountedProvidersManager.cs (2)
15private ReferenceCountedProviders _refCountedProviders = ReferenceCountedProviders.Create(new List<IConfigurationProvider>()); 71_refCountedProviders.Providers = new List<IConfigurationProvider>(_refCountedProviders.Providers)
Microsoft.Extensions.Configuration.Binder (4)
ConfigurationBinder.cs (4)
234(missingPropertyNames ??= new()).Add($"'{cs.Key}'"); 638List<string> missingParameters = new(); 868var list = new List<object?>(); 1117var allProperties = new List<PropertyInfo>();
Microsoft.Extensions.Configuration.Binder.SourceGeneration (10)
ConfigurationBindingGenerator.Parser.cs (5)
24private readonly List<TypeParseInfo> _invocationTypeParseInfo = new(); 794(missingParameters ??= new()).Add(parameterName); 798(invalidParameters ??= new()).Add(parameterName); 808(ctorParams ??= new()).Add(paramSpec); 1061Diagnostics ??= new List<Diagnostic>();
Emitter\CoreBindingHelpers.cs (2)
331List<string> ctorArgList = new(); 902(initializeBoundProperties ??= new()).Add(property);
Specs\InterceptorInfo.cs (2)
113infoList ??= new List<InvocationLocationInfo>(); 158private readonly List<InvocationLocationInfo> _infoList = new();
src\runtime\src\libraries\Common\src\SourceGenerators\TypeModelHelper.cs (1)
33(args ??= new()).AddRange(current.TypeArguments);
Microsoft.Extensions.Configuration.Xml (5)
XmlStreamConfigurationProvider.cs (5)
79siblings = new List<XmlConfigurationElement>(); 99children.Add(element.SiblingName, new List<XmlConfigurationElement> 107children.Add(parent.SingleChild.SiblingName, new List<XmlConfigurationElement> { parent.SingleChild }); 108children.Add(element.SiblingName, new List<XmlConfigurationElement> { element }); 203element.Attributes = new List<XmlConfigurationElementAttributeValue>();
Microsoft.Extensions.DataIngestion (5)
Chunkers\SectionChunker.cs (1)
49List<IngestionDocumentElement> elements = new(section.Elements.Count);
Processors\ImageAlternativeTextEnricher.cs (3)
48batch ??= new(_options.BatchSize); 64batch ??= new(_options.BatchSize); 90List<AIContent> contents = new(batch.Count);
Utils\Batching.cs (1)
30List<AIContent> contents = new(batch.Length);
Microsoft.Extensions.DependencyInjection (15)
DependencyInjectionEventSource.cs (1)
30private readonly List<WeakReference<ServiceProvider>> _providers = new();
ServiceLookup\CallSiteChain.cs (1)
51var ordered = new List<KeyValuePair<ServiceIdentifier, ChainItemInfo>>(_callSiteChain);
ServiceLookup\CallSiteFactory.cs (4)
316List<KeyValuePair<int, ServiceCallSite>> callSitesByIndex = new(); 644var currentResolvedParameters = new List<ServiceIdentifier>(parameters.Length); 668resolvedParameters = new List<ServiceIdentifier>(parameters.Length); 971newCacheItem._items = _items ?? new List<ServiceDescriptor>();
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (2)
244argument.Factories ??= new List<Func<IServiceProvider, object>>(); 262argument.Constants ??= new List<object?>();
ServiceLookup\ServiceProviderEngineScope.cs (4)
100_disposables ??= new List<object?>(); 260exceptionsCache = new List<Exception> { exceptionInfo.SourceException, exception }; 396public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.RootProvider.CallSiteFactory.Descriptors); 403var result = new List<object>(source.Count);
ServiceProvider.cs (3)
84exceptions ??= new List<Exception>(); 332public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.Root.RootProvider.CallSiteFactory.Descriptors); 338var result = new List<object>(source.Count);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
18private readonly List<ServiceDescriptor> _descriptors = new List<ServiceDescriptor>();
Microsoft.Extensions.DependencyModel (15)
CompilationLibrary.cs (2)
51var assemblies = new List<string>(); 58var assemblies = new List<string>();
DependencyContextJsonReader.cs (10)
351var targets = new List<Target>(); 374var libraries = new List<TargetLibrary>(); 453var dependencies = new List<Dependency>(); 478var runtimes = new List<string>(); 502var runtimeFiles = new List<RuntimeFile>(); 549var runtimeTargets = new List<RuntimeTargetEntryStub>(); 603var resources = new List<ResourceAssembly>(); 728var runtimeFallbacks = new List<RuntimeFallbacks>(); 793var runtimeAssemblyGroups = new List<RuntimeAssetGroup>(); 794var nativeLibraryGroups = new List<RuntimeAssetGroup>();
Resolution\AppBaseCompilationAssemblyResolver.cs (2)
70var directories = new List<string>() 95var paths = new List<string>();
Utf8JsonReaderExtensions.cs (1)
74var items = new List<string?>();
Microsoft.Extensions.Diagnostics (1)
Metrics\DefaultMeterFactory.cs (1)
49meterList = new List<FactoryMeter>();
Microsoft.Extensions.Diagnostics.Abstractions (2)
Metrics\MetricsOptions.cs (1)
16public IList<InstrumentRule> Rules { get; } = new List<InstrumentRule>();
Tracing\TracingOptions.cs (1)
16public List<TracingRule> Rules { get; } = new List<TracingRule>();
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
HttpExceptionSummaryProvider.cs (1)
31var descriptions = new List<string>
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (2)
ExceptionSummarizerTests.cs (2)
20private static readonly List<string> _httpDescriptions = new List<string> { "TaskTimeout", "TaskCanceled" } 40_exceptionSummarizer = new ExceptionSummarizer(new List<IExceptionSummaryProvider> { _httpExceptionProviderMock.Object });
Microsoft.Extensions.Diagnostics.HealthChecks (2)
HealthCheckPublisherHostedService.cs (1)
114var timers = new List<Timer>(delayPeriodGroups.Count);
HealthCheckServiceOptions.cs (1)
16public ICollection<HealthCheckRegistration> Registrations { get; } = new List<HealthCheckRegistration>();
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
118(temp ??= new List<string>()).Add($"'{section.Key}'");
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (8)
ApplicationLifecycleHealthChecksExtensionsTests.cs (1)
41serviceCollection.AddHealthChecks().AddApplicationLifecycleHealthCheck(new List<string> { "test1", "test2" });
ManualHealthCheckExtensionsTests.cs (1)
36serviceCollection.AddHealthChecks().AddManualHealthCheck(new List<string> { "test1", "test2" });
TelemetryHealthChecksPublisherTests.cs (6)
26new List<HealthStatus> { HealthStatus.Healthy }, 34new List<HealthStatus> { HealthStatus.Degraded }, 42new List<HealthStatus> { HealthStatus.Unhealthy }, 50new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Healthy }, 58new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Unhealthy }, 66new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Degraded, HealthStatus.Unhealthy },
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
211(temp ??= new List<string>()).Add($"'{section.Key}'");
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (4)
30var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 31var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 79var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 80var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization.Tests (7)
HealthCheckTestData.cs (1)
12new List<object[]>
ResourceHealthCheckExtensionsTests.cs (6)
161options.SamplingWindow = samplingWindow, new List<string> { "test" }); 176.AddResourceUtilizationHealthCheck(new List<string> { "test" }); 284new List<string> { "test" }); 303new List<string> { "test" }); 395new List<string> { "test" }); 412new List<string> { "test" });
Microsoft.Extensions.Diagnostics.Probes (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
193(temp ??= new List<string>()).Add($"'{section.Key}'");
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 21var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
223(temp ??= new List<string>()).Add($"'{section.Key}'");
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 21var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Windows\Network\WindowsNetworkMetrics.cs (1)
48List<Measurement<long>> measurements = new(24);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (18)
Helpers\TestMeterFactory.cs (1)
12public List<Meter> Meters { get; } = new List<Meter>();
ResourceMonitoringServiceTests.cs (15)
42var publishersList = new List<IResourceUtilizationPublisher> 99var publishersList = new List<IResourceUtilizationPublisher> 131var publishersList = new List<IResourceUtilizationPublisher> 173new List<IResourceUtilizationPublisher> 206new List<IResourceUtilizationPublisher> 247new List<IResourceUtilizationPublisher> 288new List<IResourceUtilizationPublisher> 330new List<IResourceUtilizationPublisher> 464new List<IResourceUtilizationPublisher> 573new List<IResourceUtilizationPublisher> 613new List<IResourceUtilizationPublisher> 635new List<IResourceUtilizationPublisher> 675new List<IResourceUtilizationPublisher> 699new List<IResourceUtilizationPublisher> 722new List<IResourceUtilizationPublisher>
Windows\WindowsCountersTests.cs (2)
50var samples = new List<(Instrument instrument, long value)>(); 92var samples = new List<(Instrument instrument, long value)>();
Microsoft.Extensions.Diagnostics.Testing (6)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (4)
621var temp83 = new List<Type>(); 1125temp192 ??= (IList<CustomAttributeTypedArgument>)new List<CustomAttributeTypedArgument>(); 1132temp195 ??= (IList<CustomAttributeNamedArgument>)new List<CustomAttributeNamedArgument>(); 1471(temp ??= new List<string>()).Add($"'{section.Key}'");
Logging\FakeLogger.cs (2)
78var l = new List<object?>(); 146var l = new List<KeyValuePair<string, string?>>();
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Logging\FakeLoggerTests.cs (2)
74var l = new List<KeyValuePair<string, object?>> 130var l = new List<KeyValuePair<string, object?>>
Microsoft.Extensions.DotNetDeltaApplier (4)
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (4)
186var clearCacheHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 187var applicationUpdateHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 188var contentUpdateHandlers = new List<UpdateHandler<ContentUpdateAction>>(); 320var sortedAssemblies = new List<Assembly>(assemblies.Length);
Microsoft.Extensions.FileProviders.Composite (3)
CompositeDirectoryContents.cs (2)
42_directories = new List<IDirectoryContents>(); 62_files = new List<IFileInfo>();
CompositeFileProvider.cs (1)
79var changeTokens = new List<IChangeToken>();
Microsoft.Extensions.FileProviders.Embedded (5)
EmbeddedFileProvider.cs (1)
158var entries = new List<IFileInfo>();
Manifest\ManifestDirectory.cs (1)
89var list = new List<ManifestEntry>(Children.Count);
Manifest\ManifestDirectoryInfo.cs (1)
60var entries = new List<IFileInfo>();
Manifest\ManifestParser.cs (2)
50var entriesList = new List<ManifestEntry>(); 100var children = new List<ManifestEntry>();
Microsoft.Extensions.FileSystemGlobbing (18)
InMemoryDirectoryInfo.cs (3)
52files ??= new List<string>(); 62var fileList = new List<string>(files.Count()); 119dict[name] = new List<string> { file };
Internal\MatcherContext.cs (2)
74var entities = new List<FileSystemInfoBase?>(); 98var subDirectories = new List<DirectoryInfoBase>();
Internal\PathSegments\WildcardPathSegment.cs (1)
14string.Empty, new List<string>(), string.Empty, StringComparison.OrdinalIgnoreCase);
Internal\PatternContexts\PatternContextLinear.cs (1)
87public IList<string> StemItems => _stemItems ??= new List<string>();
Internal\PatternContexts\PatternContextRagged.cs (1)
134public IList<string> StemItems => _stemItems ??= new List<string>();
Internal\Patterns\PatternBuilder.cs (6)
41var allSegments = new List<IPathSegment>(); 114var contains = new List<string>(); 175segmentsPatternStartsWith = new List<IPathSegment>(allSegments); 176segmentsPatternEndsWith = new List<IPathSegment>(); 177segmentsPatternContains = new List<IList<IPathSegment>>(); 182segmentsPatternEndsWith = new List<IPathSegment>();
MatcherExtensions.cs (4)
64List<string> result = matches is ICollection matchCollection ? new(matchCollection.Count) : new(); 80return Match(matcher, Directory.GetCurrentDirectory(), new List<string> { file }); 92return Match(matcher, rootDir, new List<string> { file });
Microsoft.Extensions.Hosting (19)
HostApplicationBuilder.cs (7)
146optionList ??= new List<KeyValuePair<string, string?>>(); 151optionList ??= new List<KeyValuePair<string, string?>>(); 156optionList ??= new List<KeyValuePair<string, string?>>(); 258private readonly List<Action<IConfigurationBuilder>> _configureHostConfigActions = new(); 259private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppConfigActions = new(); 260private readonly List<IConfigureContainerAdapter> _configureContainerActions = new(); 261private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new();
HostBuilder.cs (4)
28private readonly List<Action<IConfigurationBuilder>> _configureHostConfigActions = new List<Action<IConfigurationBuilder>>(); 29private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppConfigActions = new List<Action<HostBuilderContext, IConfigurationBuilder>>(); 30private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new List<Action<HostBuilderContext, IServiceCollection>>(); 31private readonly List<IConfigureContainerAdapter> _configureContainerActions = new List<IConfigureContainerAdapter>();
Internal\Host.cs (8)
89List<Exception> exceptions = new(); 145(validationFailures ??= new()).Add(ex); 153(validationFailures ??= new()).AddRange(ex.InnerExceptions); 165(validationFailures ??= new()).Add(ex); 331List<Exception> exceptions = new(); 478tasks ??= new(); 532_result ??= new List<IHostedLifecycleService>(); 588public List<IHostedService> HostedServices => new List<IHostedService>(host._hostedServices ??= host.Services.GetRequiredService<IEnumerable<IHostedService>>());
Microsoft.Extensions.Hosting.Testing.Tests (2)
HostingFakesExtensionsTests.cs (2)
314var firstCallbackTarget = new List<string>(); 315var secondCallbackTarget = new List<string>();
Microsoft.Extensions.Http (5)
DefaultHttpMessageHandlerBuilder.cs (1)
40public override IList<DelegatingHandler> AdditionalHandlers { get; } = new List<DelegatingHandler>();
HttpClientFactoryOptions.cs (3)
28public IList<Action<HttpMessageHandlerBuilder>> HttpMessageHandlerBuilderActions { get; } = new List<Action<HttpMessageHandlerBuilder>>(); 33public IList<Action<HttpClient>> HttpClientActions { get; } = new List<Action<HttpClient>>(); 106internal List<Action<HttpMessageHandlerBuilder>> LoggingBuilderActions { get; } = new List<Action<HttpMessageHandlerBuilder>>();
Logging\HttpHeadersLogValue.cs (1)
41var values = new List<KeyValuePair<string, object>>(GetHeaderCount(Headers) + GetHeaderCount(ContentHeaders));
Microsoft.Extensions.Http.Diagnostics (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
118(temp ??= new List<string>()).Add($"'{section.Key}'");
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 21var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
HeadersReaderBenchmark.cs (1)
34_outputBuffer = new(capacity: 10240);
Microsoft.Extensions.Http.Diagnostics.Tests (52)
HttpHeadersRedactorTests.cs (8)
32Add(new LinkedList<string>(new List<string> { "aaa", "bbb", "ccc" }), "Redacted:aaa,Redacted:bbb,Redacted:ccc"); 33Add(new LinkedList<string>(new List<string> { "aaa", "bbb", null! }), "Redacted:aaa,Redacted:bbb,"); 34Add(new LinkedList<string>(new List<string> { "aaa", null!, null! }), "Redacted:aaa,,"); 35Add(new LinkedList<string>(new List<string> { null!, null!, null! }), ",,"); 36Add(new LinkedList<string>(new List<string> { null! }), string.Empty); 37Add(new LinkedList<string>(new List<string> { "aaa" }), "Redacted:aaa"); 38Add(new LinkedList<string>(new List<string>()), string.Empty); 39Add(new LinkedList<string>(new List<string> { longStr, "bbb", "ccc" }), $"Redacted:{longStr},Redacted:bbb,Redacted:ccc");
Logging\AcceptanceTests.cs (5)
169httpRequestMessage.Headers.Add("ReQuEStHeAdErFirst", new List<string> { "Request Value 2", "Request Value 3" }); 185httpRequestMessage2.Headers.Add("ReQuEStHeAdErSecond", new List<string> { "Request Value 2", "Request Value 3" }); 250httpRequestMessage.Headers.Add("ReQuEStHeAdEr2", new List<string> { "Request Value 2", "Request Value 3" }); 272httpRequestMessage2.Headers.Add("ReQuEStHeAdEr2", new List<string> { "Request Value 2", "Request Value 3" }); 688httpRequestMessage.Headers.Add("ReQuEStHeAdEr2", new List<string> { "Request Value 2", "Request Value 3" });
Logging\HttpClientLoggerTest.cs (10)
230new List<IHttpClientLogEnricher> { testEnricher }, 327new List<IHttpClientLogEnricher> { testEnricher }, 434new List<IHttpClientLogEnricher> { testEnricher }, 550new List<IHttpClientLogEnricher> { testEnricher }, 644new List<IHttpClientLogEnricher> { testEnricher }, 688new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }, 731new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }, 766var enrichers = new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }; 813new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }, 915new List<IHttpClientLogEnricher> { testEnricher },
Logging\HttpClientLoggingExtensionsTest.cs (2)
146options.RequestHeadersDataClasses.Should().ContainKeys(new List<string> { "test1", "test2" }); 147options.RequestHeadersDataClasses.Should().ContainValues(new List<DataClassification> { FakeTaxonomy.PrivateData });
Logging\HttpHeadersReaderTest.cs (4)
28var buffer = new List<KeyValuePair<string, string>>(); 66var buffer = new List<KeyValuePair<string, string>>(); 82var requestBuffer = new List<KeyValuePair<string, string>>(); 83var responseBuffer = new List<KeyValuePair<string, string>>();
Logging\HttpRequestReaderTest.cs (22)
103var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 104var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 162var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 163var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 234var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 235var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 310var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 311var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 371var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 372var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 443var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 444var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 512var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 513var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 582var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 583var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 669var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 698await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None); 728await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None); 764await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None); 853await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None); 909var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
Logging\Internal\TestHttpMessageHandlerBuilder.cs (1)
27public override IList<DelegatingHandler> AdditionalHandlers { get; } = new List<DelegatingHandler>();
Microsoft.Extensions.Http.Resilience (35)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (5)
501temp71 ??= (global::System.Collections.Generic.IList<global::Microsoft.Extensions.Http.Resilience.WeightedUriEndpoint>)new List<global::Microsoft.Extensions.Http.Resilience.WeightedUriEndpoint>(); 524temp75 ??= (global::System.Collections.Generic.IList<global::Microsoft.Extensions.Http.Resilience.UriEndpointGroup>)new List<global::Microsoft.Extensions.Http.Resilience.UriEndpointGroup>(); 546temp79 ??= (global::System.Collections.Generic.IList<global::Microsoft.Extensions.Http.Resilience.WeightedUriEndpoint>)new List<global::Microsoft.Extensions.Http.Resilience.WeightedUriEndpoint>(); 578temp84 ??= (global::System.Collections.Generic.IList<global::Microsoft.Extensions.Http.Resilience.WeightedUriEndpointGroup>)new List<global::Microsoft.Extensions.Http.Resilience.WeightedUriEndpointGroup>(); 596(temp ??= new List<string>()).Add($"'{section.Key}'");
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (26)
21var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 22var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 87var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 88var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 158var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 159var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 209var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 210var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 240var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 241var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 311var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 312var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 342var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 343var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 390var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 391var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 448var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 449var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 488var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 489var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(2); 536var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 537var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(2); 584var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 585var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 649var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 650var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Routing\OrderedGroupsRoutingOptions.cs (1)
29public IList<UriEndpointGroup> Groups { get; set; } = new List<UriEndpointGroup>();
Routing\UriEndpointGroup.cs (1)
29public IList<WeightedUriEndpoint> Endpoints { get; set; } = new List<WeightedUriEndpoint>();
Routing\WeightedGroupsRoutingOptions.cs (1)
35public IList<WeightedUriEndpointGroup> Groups { get; set; } = new List<WeightedUriEndpointGroup>();
Microsoft.Extensions.Http.Resilience.Tests (14)
Hedging\StandardHedgingTests.cs (1)
240var requests = new List<HttpRequestMessage>();
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
228var requests = new List<HttpRequestMessage>();
Resilience\HttpResilienceMetricsEnricherTests.cs (3)
19var tags = new List<KeyValuePair<string, object?>>(); 32var tags = new List<KeyValuePair<string, object?>>(); 45var tags = new List<KeyValuePair<string, object?>>();
Routing\OrderedRoutingStrategyTest.cs (1)
60var groups = new List<UriEndpointGroup>(options.Groups)
Routing\RoutingHelperTest.cs (2)
23var result = new List<int> { 1, 2, 3, 4 }.SelectByWeight(v => v, randomizer.Object); 34Assert.Throws<InvalidOperationException>(() => new List<int> { 1, 2, 3, 4 }.SelectByWeight(v => v, randomizer.Object));
Routing\WeightedRoutingStrategyTest.cs (6)
81var groups = new List<WeightedUriEndpointGroup>(options.Groups) 112var groups = new List<WeightedUriEndpointGroup>(options.Groups) 124var groups = new List<WeightedUriEndpointGroup>(options.Groups) 136var groups = new List<WeightedUriEndpointGroup>(options.Groups) 148var groups = new List<WeightedUriEndpointGroup>(options.Groups) 157var groups = new List<WeightedUriEndpointGroup>(options.Groups)
Microsoft.Extensions.Identity.Core (23)
IdentityResult.cs (1)
16private readonly List<IdentityError> _errors = new List<IdentityError>();
PasswordValidator.cs (6)
48errors ??= new List<IdentityError>(); 53errors ??= new List<IdentityError>(); 58errors ??= new List<IdentityError>(); 63errors ??= new List<IdentityError>(); 68errors ??= new List<IdentityError>(); 73errors ??= new List<IdentityError>();
RoleManager.cs (2)
77public IList<IRoleValidator<TRole>> RoleValidators { get; } = new List<IRoleValidator<TRole>>(); 405errors ??= new List<IdentityError>();
RoleValidator.cs (2)
52errors ??= new List<IdentityError>(); 61errors ??= new List<IdentityError>();
UserManager.cs (6)
161public IList<IUserValidator<TUser>> UserValidators { get; } = new List<IUserValidator<TUser>>(); 166public IList<IPasswordValidator<TUser>> PasswordValidators { get; } = new List<IPasswordValidator<TUser>>(); 1959var results = new List<string>(); 2454var newCodes = new List<string>(number); 2936errors ??= new List<IdentityError>(); 2969errors ??= new List<IdentityError>();
UserValidator.cs (6)
58errors ??= new List<IdentityError>(); 64errors ??= new List<IdentityError>(); 73errors ??= new List<IdentityError>(); 87errors ??= new List<IdentityError>(); 93errors ??= new List<IdentityError>(); 101errors ??= new List<IdentityError>();
Microsoft.Extensions.Identity.Stores (1)
UserStoreBase.cs (1)
978var updatedCodes = new List<string>(splitCodes.Where(s => s != code));
Microsoft.Extensions.Localization (1)
Internal\ResourceManagerStringProvider.cs (1)
76var names = new List<string>();
Microsoft.Extensions.Logging (10)
Logger.cs (5)
60exceptions ??= new List<Exception>(); 108exceptions ??= new List<Exception>(); 142exceptions ??= new List<Exception>(); 176List<LoggerProviderDebugView> providers = new List<LoggerProviderDebugView>(); 219List<object?> scopes = new List<object?>();
LoggerFactory.cs (4)
24private readonly List<ProviderRegistration> _providerRegistrations = new List<ProviderRegistration>(); 215var loggers = new List<LoggerInformation>(_providerRegistrations.Count); 232var messageLoggers = new List<MessageLogger>(); 233List<ScopeLogger>? scopeLoggers = _filterOptions.CaptureScopes ? new List<ScopeLogger>() : null;
LoggerFilterOptions.cs (1)
39internal List<LoggerFilterRule> RulesInternal { get; } = new List<LoggerFilterRule>();
Microsoft.Extensions.Logging.Abstractions (1)
LogValuesFormatter.cs (1)
19private readonly List<string> _valueNames = new List<string>();
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLoggerProvider.cs (1)
18private readonly List<LogMessage> _currentBatch = new List<LogMessage>();
Microsoft.Extensions.Logging.Console (2)
_generated\0\BindingExtensions.g.cs (1)
542(temp ??= new global::System.Collections.Generic.List<string>()).Add($"'{section.Key}'");
ConsoleControlCharacterSanitizer.cs (1)
97var chars = new List<char>();
Microsoft.Extensions.Logging.EventLog (1)
_generated\0\BindingExtensions.g.cs (1)
124(temp ??= new global::System.Collections.Generic.List<string>()).Add($"'{section.Key}'");
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
437var rules = new List<LoggerFilterRule>();
Microsoft.Extensions.Logging.Generators (10)
LoggerMessageGenerator.Emitter.cs (1)
97var parentClasses = new List<string>();
LoggerMessageGenerator.Parser.cs (8)
41public List<Diagnostic> Diagnostics { get; } = new(); 68var results = new List<LoggerClass>(); 772var constraints = new List<string>(); 960public readonly List<LoggerMethod> Methods = new(); 1014public readonly List<LoggerParameter> AllParameters = new(); 1015public readonly List<LoggerParameter> TemplateParameters = new(); 1017public readonly List<string> TemplateList = new(); 1018public readonly List<LoggerMethodTypeParameter> TypeParameters = new();
LoggerMessageGenerator.Roslyn4.0.cs (1)
220var parts = new List<string>();
Microsoft.Extensions.Options (11)
OptionsFactory.cs (4)
46_setups = setups as IConfigureOptions<TOptions>[] ?? new List<IConfigureOptions<TOptions>>(setups).ToArray(); 47_postConfigures = postConfigures as IPostConfigureOptions<TOptions>[] ?? new List<IPostConfigureOptions<TOptions>>(postConfigures).ToArray(); 48_validations = validations as IValidateOptions<TOptions>[] ?? new List<IValidateOptions<TOptions>>(validations).ToArray(); 157(failures ??= new List<string>()).AddRange(result.Failures);
OptionsMonitor.cs (1)
22private readonly List<IDisposable> _registrations = new List<IDisposable>();
OptionsValidationException.cs (1)
25Failures = failureMessages ?? new List<string>();
ValidateOnStart.cs (4)
37exceptions ??= new(); 42(exceptions ??= new()).Add(ex); 75exceptions ??= new(); 84(exceptions ??= new()).Add(ex);
ValidateOptionsResultBuilder.cs (1)
118private List<string> Errors => _errors ??= new();
Microsoft.Extensions.Options.Contextual (1)
Internal\ContextualOptionsFactory.cs (1)
133var failures = new List<string>();
Microsoft.Extensions.Options.DataAnnotations (6)
DataAnnotationValidateOptions.Async.cs (2)
55var validationResults = new List<ValidationResult>(); 103errors ??= new List<string>();
DataAnnotationValidateOptions.cs (4)
65var validationResults = new List<ValidationResult>(); 95errors ??= new List<string>(); 123results ??= new List<ValidationResult>(); 131results ??= new List<ValidationResult>();
Microsoft.Extensions.Options.SourceGeneration (11)
Emitter.cs (1)
1181var attrInstantiationStatementLines = new List<string>();
Model\ValidationAttributeInfo.cs (1)
10public List<string> ConstructorArguments { get; } = new();
Parser.cs (8)
59var results = new List<ValidatorType>(); 89var modelsValidatorTypeValidates = new List<ValidatedModel>(modelTypes.Count); 166var parents = new List<string>(); 209return new List<ValidatorType>(); 402var membersToValidate = new List<ValidatedMember>(); 451var validationAttrs = new List<ValidationAttributeInfo>(); 859new List<string>(), 947var result = new List<ITypeSymbol>();
TypeDeclarationSyntaxReceiver.cs (1)
20public ICollection<TypeDeclarationSyntax> TypeDeclarations { get; } = new List<TypeDeclarationSyntax>();
Microsoft.Extensions.Primitives (1)
CompositeChangeToken.cs (1)
113_disposables = new List<IDisposable>();
Microsoft.Extensions.ServiceDiscovery (5)
Http\HttpServiceEndpointResolver.cs (1)
143cleanupTasks ??= new();
ServiceDiscoveryOptions.cs (1)
33public IList<string> AllowedSchemes { get; set; } = new List<string>();
ServiceEndpointBuilder.cs (2)
14private readonly List<ServiceEndpoint> _endpoints = new(); 15private readonly List<IChangeToken> _changeTokens = new();
ServiceEndpointResolver.cs (1)
152cleanupTasks ??= new();
Microsoft.Extensions.ServiceDiscovery.Dns (13)
DnsResolverOptions.cs (1)
16public IList<IPEndPoint> Servers { get; set; } = new List<IPEndPoint>();
DnsServiceEndpointProvider.cs (1)
31var endpoints = new List<ServiceEndpoint>();
DnsSrvServiceEndpointProvider.cs (1)
34var endpoints = new List<ServiceEndpoint>();
FallbackDnsResolver.cs (1)
59addresses = new List<AddressResult>();
Resolver\DnsPrimitives.cs (1)
258List<ReadOnlyMemory<byte>> labels = new List<ReadOnlyMemory<byte>>();
Resolver\DnsResolver.cs (6)
76var results = new List<ServiceResult>(response.Answers.Count); 87List<AddressResult> addresses = new List<AddressResult>(); 157List<AddressResult> results = new List<AddressResult>(response.Answers.Count); 248addressList = new List<AddressResult>(); 605records = new(Math.Min(count, 32)); 918List<ReadOnlyMemory<byte>> labels = new();
Resolver\NetworkInfo.cs (1)
14List<IPEndPoint> servers = new List<IPEndPoint>();
Resolver\ResolvConf.cs (1)
20List<IPEndPoint> serverList = new();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (4)
Resolver\LoopbackDnsServer.cs (4)
144public List<(string, QueryType, QueryClass)> Questions { get; } = new List<(string, QueryType, QueryClass)>(); 145public List<DnsResourceRecord> Answers { get; } = new List<DnsResourceRecord>(); 146public List<DnsResourceRecord> Authorities { get; } = new List<DnsResourceRecord>(); 147public List<DnsResourceRecord> Additionals { get; } = new List<DnsResourceRecord>();
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ExtensionsServicePublicApiTests.cs (1)
150new List<IServiceEndpointProviderFactory>(),
Microsoft.Extensions.ServiceDiscovery.Yarp (3)
ServiceDiscoveryDestinationResolver.cs (3)
27var tasks = new List<Task<(List<(string Name, DestinationConfig Config)>, IChangeToken ChangeToken)>>(destinations.Count); 34var changeTokens = new List<IChangeToken>(); 61var results = new List<(string Name, DestinationConfig Config)>(result.Endpoints.Count);
Microsoft.Extensions.Telemetry (16)
Enrichment\ApplicationLogEnricher.cs (1)
35var l = new List<KeyValuePair<string, object>>();
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
371temp25 ??= (global::System.Collections.Generic.IList<global::Microsoft.Extensions.Diagnostics.Sampling.RandomProbabilisticSamplerFilterRule>)new List<global::Microsoft.Extensions.Diagnostics.Sampling.RandomProbabilisticSamplerFilterRule>(); 428(temp ??= new List<string>()).Add($"'{section.Key}'");
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (6)
21var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 22var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 51var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 52var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 98var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 99var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Http\HttpRouteParser.cs (1)
103var segments = new List<Segment>();
Logging\ExtendedLogger.LegacyTagJoiner.cs (1)
22private readonly List<KeyValuePair<string, object?>> _extraTags = new(TagCapacity);
Logging\ExtendedLogger.ModernTagJoiner.cs (1)
23private readonly List<KeyValuePair<string, object?>> _extraTags = new(TagCapacity);
Logging\ExtendedLoggerFactory.cs (3)
101var tags = new List<KeyValuePair<string, object?>>(); 223var loggers = new List<LoggerInformation>(_providerRegistrations.Count); 241var messageLoggers = new List<MessageLogger>();
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Microsoft.Extensions.Telemetry.Abstractions (6)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
22var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 23var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Latency\Registration\LatencyContextRegistrationOptions.cs (3)
18public IReadOnlyList<string> CheckpointNames { get; set; } = new List<string>(); 24public IReadOnlyList<string> MeasureNames { get; set; } = new List<string>(); 30public IReadOnlyList<string> TagNames { get; set; } = new List<string>();
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Logging\LoggerMessageHelperTests.cs (1)
41var d2 = new List<KeyValuePair<string?, string?>>
Microsoft.Extensions.Telemetry.Tests (13)
Enrichment\ProcessLogEnricherTests.cs (1)
53var enrichedProperties = new TestLogEnrichmentTagCollector(new List<KeyValuePair<string, object>>());
Logging\ExtendedLoggerTests.cs (2)
660var store = new List<string>(); 900new List<KeyValuePair<string, object?>>
Logging\TestConfiguration.cs (1)
25return new ConfigurationRoot(new List<IConfigurationProvider> { provider });
Sampling\LogSamplingRuleSelectorTests.cs (8)
20var rules = new List<RandomProbabilisticSamplerFilterRule> 51var rules = new List<RandomProbabilisticSamplerFilterRule> 75var rules = new List<RandomProbabilisticSamplerFilterRule> 93var rules = new List<RandomProbabilisticSamplerFilterRule> 111var rules = new List<RandomProbabilisticSamplerFilterRule> 129var rules = new List<RandomProbabilisticSamplerFilterRule> 147var rules = new List<RandomProbabilisticSamplerFilterRule> 164var rules = new List<RandomProbabilisticSamplerFilterRule>
Sampling\SamplingLoggerBuilderExtensionsTests.cs (1)
194configBuilder.AddInMemoryCollection(new List<KeyValuePair<string, string?>>
Microsoft.Extensions.TimeProvider.Testing.Tests (4)
FakeTimeProviderTests.cs (1)
504var calls = new List<object?>();
TimerTests.cs (3)
273var callbackTimes = new List<DateTimeOffset>(); 298var callbacks = new List<(int timerId, TimeSpan callbackTime)>(); 334var timers = new List<ITimer>();
Microsoft.Extensions.Validation (1)
ValidateContext.cs (1)
69_validationErrors.Add(validationError.Path, new List<ValidationError> { validationError });
Microsoft.Extensions.Validation.ValidationsGenerator (3)
Parsers\ValidationsGenerator.TypesParser.cs (2)
176var members = new List<ValidatableProperty>(); 177var resolvedRecordProperty = new List<IPropertySymbol>();
src\aspnetcore\src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
21private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Microsoft.Extensions.VectorData.ConformanceTests (1)
TypeTests\DataTypeTests.cs (1)
484var properties = new List<VectorStoreDataProperty>();
Microsoft.Gen.BuildMetadata (2)
ClassDeclarationSyntaxReceiver.cs (1)
25public ICollection<ClassDeclarationSyntax> ClassDeclarations { get; } = new List<ClassDeclarationSyntax>();
TypeDeclarationSyntaxReceiver.cs (1)
25public ICollection<TypeDeclarationSyntax> TypeDeclarations { get; } = new List<TypeDeclarationSyntax>();
Microsoft.Gen.BuildMetadata.Unit.Tests (5)
RoslynTestUtils.cs (5)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 481var actions = new List<CodeAction>(); 505var results = new List<string>();
Microsoft.Gen.ComplianceReports (2)
Parser.cs (1)
32var result = new List<ClassifiedType>();
TypeDeclarationSyntaxReceiver.cs (1)
25public ICollection<TypeDeclarationSyntax> TypeDeclarations { get; } = new List<TypeDeclarationSyntax>();
Microsoft.Gen.ComplianceReports.Unit.Tests (5)
RoslynTestUtils.cs (5)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 481var actions = new List<CodeAction>(); 505var results = new List<string>();
Microsoft.Gen.ContextualOptions (1)
ContextualOptionsGenerator.cs (1)
46var list = new List<OptionsContextType>();
Microsoft.Gen.ContextualOptions.Unit.Tests (6)
EmitterTests.cs (1)
130var sources = new List<string>();
RoslynTestUtils.cs (5)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 481var actions = new List<CodeAction>(); 505var results = new List<string>();
Microsoft.Gen.Logging (6)
ClassDeclarationSyntaxReceiver.cs (1)
25public ICollection<ClassDeclarationSyntax> ClassDeclarations { get; } = new List<ClassDeclarationSyntax>();
Emitter.cs (1)
45var parentTypes = new List<string>();
Parser.cs (2)
56var results = new List<LoggingType>(); 491var constraints = new List<string>();
Parser.LogProperties.cs (1)
90var result = new List<LoggingProperty>();
TypeDeclarationSyntaxReceiver.cs (1)
25public ICollection<TypeDeclarationSyntax> TypeDeclarations { get; } = new List<TypeDeclarationSyntax>();
Microsoft.Gen.Logging.Unit.Tests (7)
CompilationHelper.cs (1)
28var refs = new List<MetadataReference>();
EmitterTests.cs (1)
25var sources = new List<string>();
RoslynTestUtils.cs (5)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 481var actions = new List<CodeAction>(); 505var results = new List<string>();
Microsoft.Gen.MetadataExtractor (7)
ClassDeclarationSyntaxReceiver.cs (1)
25public ICollection<ClassDeclarationSyntax> ClassDeclarations { get; } = new List<ClassDeclarationSyntax>();
Parser_2.cs (4)
66var results = new List<MetricType>(); 696var tagConfigs = new List<StrongTypeConfig>(); 875var tagConfigs = new List<StrongTypeConfig>(); 912var tagConfigs = new List<StrongTypeConfig>();
Parser.cs (1)
32var result = new List<ClassifiedType>();
TypeDeclarationSyntaxReceiver.cs (1)
25public ICollection<TypeDeclarationSyntax> TypeDeclarations { get; } = new List<TypeDeclarationSyntax>();
Microsoft.Gen.MetadataExtractor.Unit.Tests (5)
RoslynTestUtils.cs (5)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 481var actions = new List<CodeAction>(); 505var results = new List<string>();
Microsoft.Gen.Metrics (7)
ClassDeclarationSyntaxReceiver.cs (1)
25public ICollection<ClassDeclarationSyntax> ClassDeclarations { get; } = new List<ClassDeclarationSyntax>();
Emitter.cs (1)
104var parentTypes = new List<string>();
Parser.cs (4)
66var results = new List<MetricType>(); 696var tagConfigs = new List<StrongTypeConfig>(); 875var tagConfigs = new List<StrongTypeConfig>(); 912var tagConfigs = new List<StrongTypeConfig>();
TypeDeclarationSyntaxReceiver.cs (1)
25public ICollection<TypeDeclarationSyntax> TypeDeclarations { get; } = new List<TypeDeclarationSyntax>();
Microsoft.Gen.Metrics.Unit.Tests (10)
EmitterTests.cs (5)
23var sources = new List<string>(); 94emitter.EmitMetrics(new List<MetricType> { metricClass }, cancellationToken: default)); 134emitter.Emit(new List<MetricType> { metricClass }, cancellationToken: default)); 172var result = emitter.Emit(new List<MetricType> { metricClass }, cancellationToken: default); 210var result = emitter.Emit(new List<MetricType> { metricClass }, cancellationToken: default);
RoslynTestUtils.cs (5)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 481var actions = new List<CodeAction>(); 505var results = new List<string>();
Microsoft.Gen.MetricsReports (5)
ClassDeclarationSyntaxReceiver.cs (1)
25public ICollection<ClassDeclarationSyntax> ClassDeclarations { get; } = new List<ClassDeclarationSyntax>();
Parser.cs (4)
66var results = new List<MetricType>(); 696var tagConfigs = new List<StrongTypeConfig>(); 875var tagConfigs = new List<StrongTypeConfig>(); 912var tagConfigs = new List<StrongTypeConfig>();
Microsoft.Gen.MetricsReports.Unit.Tests (5)
RoslynTestUtils.cs (5)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 481var actions = new List<CodeAction>(); 505var results = new List<string>();
Microsoft.Interop.ComInterfaceGenerator (12)
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (1)
229var ancestorChain = new List<ComInterfaceInfo>();
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
34List<Func<ITypeSymbol, bool>> sourceGeneratedComRecognizers = new();
ComInterfaceGenerator.cs (6)
51List<(ComInterfaceInfo, INamedTypeSymbol)> interfaceInfos = new(); 74List<List<ComMethodInfo>> methods = new(); 78var inner = new List<ComMethodInfo>(); 90List<(ComInterfaceContext, SequenceEqualImmutableArray<ComMethodInfo>)> ifaceCtxs = new(); 102List<ComMethodContext> methodContexts = new(); 880var combined = new List<AccessorDeclarationSyntax>(2);
ComMethodContext.cs (2)
124var accumulator = new List<(ComInterfaceContext OwningInterface, Builder Method)>(); 146List<Builder> methods = new();
VirtualMethodPointerStubGenerator.cs (2)
46var setupStatements = new List<StatementSyntax> 338List<FunctionPointerParameterSyntax> functionPointerParameters = new();
Microsoft.Interop.JavaScript.JSImportGenerator (5)
JSExportGenerator.cs (3)
198var registerStatements = new List<StatementSyntax>(); 201var attributes = new List<AttributeListSyntax>(); 411var signatureArgs = new List<ArgumentSyntax>
JSGeneratorFactory.cs (1)
306var argsMarshalers = new List<MarshalerType>();
JSMarshalAsAttributeInfoParser.cs (1)
25List<JSTypeFlags> jsTypeArguments = new List<JSTypeFlags>();
Microsoft.Interop.LibraryImportGenerator (13)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
32List<Diagnostic> fixedDiagnostics = new(context.Diagnostics.Where(IsRequiresDiableRuntimeMarshallingDiagnostic));
Analyzers\ConvertToLibraryImportFixer.cs (2)
453List<SyntaxNode> argumentsToAdd = new List<SyntaxNode>(); 454List<SyntaxNode> argumentsToRemove = new List<SyntaxNode>();
Analyzers\CustomMarshallerAttributeAnalyzer.cs (4)
781List<string> missingCollectionMethods = new(); 839List<string> missingCollectionMethods = new(); 1089List<string> missingCollectionMethods = new(); 1158List<string> missingCollectionMethods = new();
Analyzers\CustomMarshallerAttributeFixer.cs (3)
133List<Diagnostic> requiredShapeDiagnostics = new(); 217List<SyntaxNode> newMembers = new(); 413List<SyntaxNode> newMembers = new();
LibraryImportGenerator.cs (3)
88List<AttributeSyntax> attributes = new(); 391var dllImportArgs = new List<AttributeArgumentSyntax> 444var newAttributeArgs = new List<AttributeArgumentSyntax>
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DownlevelLibraryImportGenerator.cs (2)
325var dllImportArgs = new List<AttributeArgumentSyntax> 378var newAttributeArgs = new List<AttributeArgumentSyntax>
Microsoft.Interop.SourceGeneration (9)
DiagnosticExtensions.cs (2)
82(additionalLocations ??= new()).Add(location); 186(additionalLocations ??= new()).Add(location);
GeneratorDiagnosticsBag.cs (1)
22private readonly List<DiagnosticInfo> _diagnostics = new();
Marshalling\ElementsMarshalling.cs (1)
264var statements = new List<StatementSyntax>()
Marshalling\MarshallerHelpers.cs (3)
125List<T> nodeIdToElement = new(elements.Count); 151List<T> L = new(elements.Count); 153List<T> S = new(elements.Count);
Marshalling\MarshallingGeneratorExtensions.cs (1)
110List<AttributeSyntax> rehydratedAttributes = new();
SyntaxExtensions.cs (1)
86List<SyntaxToken> strippedTokens = new();
Microsoft.Maui (27)
Animations\Animation.cs (1)
71 protected List<Animation> childrenAnimations = new();
Animations\AnimationManager.cs (3)
9 readonly List<Animation> _animations = new(); 87 var animations = new List<Animation>(_animations); 132 var animations = new List<Animation>(_animations);
Animations\Lerp.cs (1)
180 var types = new List<Type> { type };
Core\Extensions\IPickerExtension.cs (1)
19 var returnValue = new List<string>(picker.GetCount());
Core\Extensions\VisualTreeElementExtensions.cs (3)
66 elements = new List<IVisualTreeElement>(); 212 var platformParentPath = new List<PlatformView>(); 311 var elements = new List<IVisualTreeElement>();
Extensions\EnumerableExtensions.cs (1)
45 result.Add(group, new List<TSource> { item });
Hosting\EssentialsMauiAppBuilderExtensions.cs (1)
192 _appActions ??= new List<AppAction>();
Hosting\Internal\FontCollection.cs (1)
8 readonly List<FontDescriptor> _descriptors = new List<FontDescriptor>();
Hosting\Internal\MauiServiceCollection.cs (1)
11 readonly List<ServiceDescriptor> _descriptors = new List<ServiceDescriptor>();
LifecycleEvents\LifecycleEventService.cs (1)
26 _mapper[eventName] = delegates = new List<Delegate>();
Platform\WindowExtensions.cs (2)
22 return new List<IWindow>(); 25 return new List<IWindow>();
PropertyMapper.cs (1)
180 var updatePropertiesMappers = new List<Action<IElementHandler, IElement>>(updatePropertiesKeys.Count);
ViewExtensions.cs (1)
39 List<IView> _flatList = new List<IView>();
VisualDiagnostics\AdornerModel.cs (1)
13 List<Rect> marginZones = new List<Rect>();
VisualDiagnostics\VisualDiagnosticsOverlay.cs (2)
192 return new List<IScrollView>(); 195 return new List<IScrollView>();
WeakEventManager.cs (3)
42 var toRaise = new List<(object? subscriber, MethodInfo handler)>(); 43 var toRemove = new List<Subscription>(); 109 targets = new List<Subscription>();
WeakList.cs (1)
14 readonly List<WeakReference<T>> _list = new();
WindowOverlay\WindowOverlay.cs (2)
134 var elements = new List<IVisualTreeElement>(); 135 var windowElements = new List<IWindowOverlayElement>();
Microsoft.Maui.Controls (159)
Accelerator.cs (1)
40 var modifiers = new List<string>();
Application\Application.cs (2)
351 var changedResources = new List<KeyValuePair<string, object>>(); 417 readonly List<Window> _windows = new();
BindingExpression.cs (2)
24 readonly List<BindingExpressionPart> _parts = new List<BindingExpressionPart>(); 457 _ancestryChain = new List<WeakReference<Element>>();
Brush\BrushTypeConverter.cs (1)
415 var offsets = new List<float>();
Cells\Cell.cs (2)
266 _currentContextActions = new List<MenuItem>(_contextActions); 323 var children = new List<Maui.IVisualTreeElement>(LogicalChildrenInternal);
ContentPage\HideSoftInputOnTappedChanged\HideSoftInputOnTappedChangedManager.cs (1)
8 List<ContentPage> _contentPages = new List<ContentPage>();
DefinitionCollection.cs (2)
13 internal DefinitionCollection() => _internalList = new List<T>(); 15 internal DefinitionCollection(params T[] items) => _internalList = new List<T>(items);
DependencyService.cs (1)
19 static readonly List<DependencyType> DependencyTypes = new List<DependencyType>();
Element\Element_StyleSheets.cs (3)
29 var list = new List<string>(); 48 var sheets = new List<StyleSheet>(); 78 mergedSheets = new List<StyleSheet>(childSheets);
Element\Element.cs (4)
175 _internalChildren ??= new List<Element>(); 374 _changeHandlers ??= new List<Action<object, ResourcesChangedEventArgs>>(2); 758 _bindableResources = new List<BindableObject>(); 770 changedResources = changedResources ?? new List<(BindableProperty, SetterSpecificity)>();
ElementTemplate.cs (1)
42 _changeHandlers = _changeHandlers ?? new List<Action<object, ResourcesChangedEventArgs>>(1);
EnumerableExtensions.cs (1)
56 foreach (IGestureRecognizer item in new List<IGestureRecognizer>(gestures))
FontAttributes.cs (1)
72 var parts = new List<string>();
FormattedString.cs (1)
86 var removed = new List<Span>(this);
GestureElement.cs (1)
72 List<IGestureRecognizer> removed = new List<IGestureRecognizer>(this);
Interactivity\EventTrigger.cs (1)
16 readonly List<WeakReference<BindableObject>> _associatedObjects = new List<WeakReference<BindableObject>>();
Interactivity\TriggerBase.cs (1)
139 _actual = new List<T>();
Internals\ProfilePage.cs (1)
35 public static List<ProfileDatum> Data = new List<ProfileDatum>();
Items\MarshalingObservableCollection.cs (1)
56 var items = new List<object>();
Items\SelectableItemsView.cs (4)
39 static readonly IList<object> s_empty = new List<object>(0); 88 var oldSelection = new List<object>(SelectedItems); 186 IList<object> previousSelection = new List<object>(); 187 IList<object> newSelection = new List<object>();
Items\SelectionChangedEventArgs.cs (5)
15 static readonly IReadOnlyList<object> s_empty = new List<object>(0); 19 PreviousSelection = previousSelection != null ? new List<object>(1) { previousSelection } : s_empty; 20 CurrentSelection = currentSelection != null ? new List<object>(1) { currentSelection } : s_empty; 25 PreviousSelection = new List<object>(previousSelection ?? throw new ArgumentNullException(nameof(previousSelection))); 26 CurrentSelection = new List<object>(currentSelection ?? throw new ArgumentNullException(nameof(currentSelection)));
Items\SelectionList.cs (3)
12 static readonly IList<object> s_empty = new List<object>(0); 21 _internal = items ?? new List<object>(); 118 var items = new List<object>();
Label\Label.cs (1)
397 var spans = new List<GestureElement>();
Layout\Layout.cs (1)
38 readonly private protected List<IView> _children = new();
LegacyLayouts\GridCalc.cs (4)
95 List<ColumnDefinition> _columns = new List<ColumnDefinition>(); 96 List<RowDefinition> _rows = new List<RowDefinition>(); 493 _columns = grid.ColumnDefinitions == null ? new List<ColumnDefinition>() : grid.ColumnDefinitions.ToList(); 494 _rows = grid.RowDefinitions == null ? new List<RowDefinition>() : grid.RowDefinitions.ToList();
LegacyLayouts\RelativeLayout.cs (4)
69 var result = new List<View>(); 245 var parents = new List<View>(); 277 var parents = new List<View>(); 377 var parents = new List<View>();
ListView\ListView.cs (1)
24 readonly List<Element> _visualChildren = new List<Element>();
Menu\MenuBarItem.cs (1)
43 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuFlyout.cs (1)
12 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuFlyoutItem.cs (1)
29 IReadOnlyList<IKeyboardAccelerator>? IMenuFlyoutItem.KeyboardAccelerators => new List<IKeyboardAccelerator>(KeyboardAccelerators);
Menu\MenuFlyoutSubItem.cs (1)
9 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuItemTracker.cs (2)
16 List<WeakReference<Page>> _additionalTargets = new(); 103 var result = new List<TMenuItem>();
MergedStyle.cs (3)
15 static readonly IList<Type> s_stopAtTypes = new List<Type> { typeof(View), 23 readonly List<BindableProperty> _implicitStyles = new List<BindableProperty>(); 70 _classStyleProperties = new List<BindableProperty>();
MessagingCenter.cs (1)
238 var list = new List<Subscription> { value };
MultiBinding.cs (2)
48 get => _bindings ?? (_bindings = new List<BindingBase>()); 58 var bindingsclone = new List<BindingBase>(Bindings.Count);
NavigationModel.cs (4)
10 readonly List<Page> _modalStack = new List<Page>(); 11 readonly List<List<Page>> _navTree = new List<List<Page>>(); 172 _navTree.Add(new List<Page> { page }); 194 _navTree.Add(new List<Page> { page });
NavigationPage\NavigationPage.cs (2)
657 var immutableNavigationStack = new List<IView>(NavigationStack); 815 List<Page> pagesToRemove = new List<Page>();
NavigationPage\NavigationPageToolbar.cs (1)
22 List<NavigationPage> _navigationPagesStack = new List<NavigationPage>();
NavigationProxy.cs (2)
27 Lazy<List<Page>> _pushStack = new Lazy<List<Page>>(() => new List<Page>()); 43 _pushStack = new Lazy<List<Page>>(() => new List<Page>());
NavigationStepRequest.cs (2)
24 List<NavigationStepRequest> _innerList = new List<NavigationStepRequest>(); 25 List<Page> _pages = new List<Page>();
ObservableList.cs (1)
51 var items = new List<T>(count);
OnPlatform.cs (1)
13 Platforms = new List<On>();
OrderedDictionary.cs (1)
65 _keyOrder = new List<TKey>(capacity);
Page\Page.cs (2)
81 List<Action> _pendingActions = new List<Action>(); 585 var startingLayout = new List<Rect>(logicalChildren.Count);
Platform\ModalNavigationManager\ModalNavigationManager.cs (1)
16 List<Page> _platformModalPages = new List<Page>();
PlatformBindingHelpers.cs (2)
191 public IList<KeyValuePair<BindableProperty, BindingBase>> BindingsBackpack { get; } = new List<KeyValuePair<BindableProperty, BindingBase>>(); 192 public IList<KeyValuePair<BindableProperty, object>> ValuesBackpack { get; } = new List<KeyValuePair<BindableProperty, object>>();
Profiler.cs (1)
50 Data = new List<Datum>(Capacity);
Region.cs (1)
39 var positions = new List<Rect>();
Registrar.cs (1)
371 properties[attribute.CssPropertyName] = new List<StylePropertyAttribute> { attribute };
RelativeBindingSource.cs (1)
104 chain: new List<Element> { relativeSourceTarget },
ResourceDictionary.cs (3)
114 _collectionTrack = _collectionTrack ?? new List<ResourceDictionary>(); 352 classes = new List<Style>(); 367 StyleSheets = StyleSheets ?? new List<StyleSheets.StyleSheet>(2);
ResourcesExtensions.cs (2)
27 var mergedClassStyles = new List<Style>(resources[res.Key] as List<Style>); 42 var mergedClassStyles = new List<Style>(resources[res.Key] as List<Style>);
Shapes\GeometryHelper.cs (1)
27 var points = new List<Point>();
Shapes\PathGeometry.cs (1)
99 List<Point> points = new List<Point>();
Shell\BaseShellItem.cs (1)
316 List<string> bindableObjectStyle = new List<string>() {
Shell\RequestDefinition.cs (1)
18 List<String> builder = new List<string>();
Shell\RouteRequestBuilder.cs (5)
13 readonly List<string> _globalRouteMatches = new List<string>(); 14 readonly List<string> _matchedSegments = new List<string>(); 15 readonly List<string> _fullSegments = new List<string>(); 182 List<string> matches = new List<string>(); 183 List<string> currentSet = new List<string>(_matchedSegments);
Shell\Shell.cs (3)
632 List<(IAppearanceObserver Observer, Element Pivot)> _appearanceObservers = new List<(IAppearanceObserver Observer, Element Pivot)>(); 633 List<IFlyoutBehaviorObserver> _flyoutBehaviorObservers = new List<IFlyoutBehaviorObserver>(); 851 var requestBuilder = new RouteRequestBuilder(new List<string>()
Shell\ShellElementCollection.cs (1)
29 _notifyCollectionChangedEventArgs = new List<NotifyCollectionChangedEventArgs>();
Shell\ShellFlyoutItemsManager.cs (3)
101 var result = new List<List<Element>>(); 103 var currentGroup = new List<Element>(); 230 currentGroup = new List<Element>();
Shell\ShellNavigationManager.cs (1)
519 List<string> routeStack = new List<string>();
Shell\ShellNavigationState.cs (1)
75 List<string> toKeep = new List<string>();
Shell\ShellSection.cs (9)
41 new List<(object Observer, Action<Page> Callback)>(); 42 readonly List<IShellContentInsetObserver> _observers = new List<IShellContentInsetObserver>(); 137 _navStack = new List<Page> { null }; 214 List<Page> _navStack = new List<Page> { null }; 332 var navStackCopy = new List<Page>(_navStack); 353 List<Page> pagesToInsert = new List<Page>(); 525 List<Page> modalPageStacks = new List<Page>(); 526 List<Page> nonModalPageStacks = new List<Page>(); 837 _navStack = new List<Page> { null };
Shell\ShellUriHandler.cs (19)
27 List<string> restOfPath = new List<string>(); 44 List<string> buildUpPages = new List<string>(); 149 var segments = new List<string>(RetrievePaths(pathAndQuery[0])); 235 List<RouteRequestBuilder> possibleRoutePaths = new List<RouteRequestBuilder>(); 246 var segments = new List<string>(RetrievePaths(localPath)); 320 var builder = new RouteRequestBuilder(routeKey, routeKey, null, new List<string>(1) { routeKey }); 321 return new List<RouteRequestBuilder> { builder }; 357 var pureRoutesMatch = new List<RouteRequestBuilder>(); 358 var pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 407 return new List<RouteRequestBuilder> { new RouteRequestBuilder(searchPath, searchPath, null, segments) }; 423 return new List<RouteRequestBuilder> { builder }; 425 return new List<RouteRequestBuilder>(); 434 List<RouteRequestBuilder> pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 438 List<string> fullRouteWithNewSegments = new List<string>(currentSegments); 458 ExpandOutGlobalRoutes(new List<RouteRequestBuilder> { routeRequestBuilder }, routeKeys); 618 List<RouteRequestBuilder> pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 642 List<RouteRequestBuilder> bestMatches = new List<RouteRequestBuilder>(); 678 List<RouteRequestBuilder> betterMatches = new List<RouteRequestBuilder>(); 783 List<string> paths = new List<string>();
Style.cs (1)
33 Setters = new List<Setter>();
SwipeView\SwipeView.cs (2)
16 readonly List<ISwipeItem> _swipeItems = new List<ISwipeItem>(); 101 List<Maui.IVisualTreeElement> elements = new List<IVisualTreeElement>();
SynchronizedList.cs (1)
11 readonly List<T> _list = new List<T>();
TableView\TableView.cs (1)
171 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren() => new List<Maui.IVisualTreeElement>() { this.Root };
TemplatedItemsList.cs (8)
45 readonly List<TItem> _templatedObjects = new List<TItem>(); 684 var contentItems = new List<TItem>(items.Count); 807 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count); 827 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 847 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 848 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count); 890 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 1304 var newList = new List<string>(list.Count);
TitleBar\TitleBar.cs (1)
253 PassthroughElements = new List<IView>();
TypedBinding.cs (1)
352 _ancestryChain = new List<WeakReference<Element>>();
ViewExtensions.cs (1)
380 var result = new List<Page>();
VisualElement\VisualElement.cs (2)
1551 var changedResources = new List<KeyValuePair<string, object>>(); 1560 var mergedClassStyles = new List<Style>(Resources[value.Key] as List<Style>);
VisualStateManager.cs (2)
449 var conflicts = new List<StateTriggerBase>(); 733 _internalList = new List<T>();
WebView\WebView.cs (1)
304 var uniqueMatches = new List<string>();
Window\Window.cs (1)
88 _visualChildren = new List<IVisualTreeElement>();
Microsoft.Maui.Controls.BindingSourceGen (7)
BindingCodeWriter.cs (2)
55 var propertyAccessors = new List<string> 134 var unsafeAccessorsStrings = new List<string>();
BindingTransformer.cs (1)
19 var newPath = new List<IPathPart>();
PathParser.cs (3)
22 IdentifierNameSyntax _ => Result<List<IPathPart>>.Success(new List<IPathPart>()), 113 return Result<List<IPathPart>>.Success(new List<IPathPart>([part])); 194 return Result<List<IPathPart>>.Success(new List<IPathPart>([part]));
Setter.cs (1)
13 List<string> patternMatchingExpressions = new();
Microsoft.Maui.Controls.Build.Tasks (23)
BindablePropertyReferenceExtensions.cs (1)
45 var attributes = new List<CustomAttribute>();
CompiledMarkupExtensions\DataTemplateExtension.cs (1)
29 return new List<Instruction> {
CompiledMarkupExtensions\TypeExtension.cs (1)
35 return new List<Instruction> {
CreateObjectVisitor.cs (1)
329 var arguments = new List<INode>();
ExpandMarkupsVisitor.cs (2)
11 readonly IList<XmlName> _skips = new List<XmlName> 139 var childnodes = new List<(XmlName, INode)>();
MethodBodyExtensions.cs (1)
67 var ldlocUsed = new List<VariableDefinition>();
MethodDefinitionExtensions.cs (1)
14 var arguments = new List<INode>();
NodeILExtensions.cs (2)
471 var nodes = new List<IElementNode>(); 581 var scopes = new List<VariableDefinition>();
PerformanceProvider.cs (1)
15 public readonly List<Tuple<string, long>> StartTimes = new List<Tuple<string, long>>();
SetNamescopesAndRegisterNamesVisitor.cs (2)
52 namesInNamescope = new List<string>(); 80 IList<string> namesInNamescope = new List<string>();
SetPropertiesVisitor.cs (3)
681 var properties = new List<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)>(); 1057 var partGetters = new List<MethodDefinition>(); 1136 var handlers = new List<(MethodDefinition PartGetter, string PropertyName)>();
TypeReferenceExtensions.cs (1)
411 List<TypeReference> args = new List<TypeReference>();
XamlCTask.cs (5)
101 LoggedErrors ??= new(); 233 var resourcesToPrune = new List<EmbeddedResource>(); 312 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(e); 332 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(error); 406 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(e);
XmlTypeExtensions.cs (1)
15 var xmlnsDefinitions = new List<XmlnsDefinitionAttribute>();
Microsoft.Maui.Controls.Foldable (1)
TwoPaneViewLayoutGuide.cs (1)
41 List<string> _pendingPropertyChanges = new List<string>();
Microsoft.Maui.Controls.SourceGen (9)
CodeBehindGenerator.cs (2)
197 var xmlnsDefinitions = new List<XmlnsDefinitionAttribute>(); 198 var internalsVisible = new List<IAssemblySymbol>();
src\Controls\src\Xaml\TypeArgumentsParser.cs (1)
12 var typeList = new List<XmlType>();
src\Controls\src\Xaml\XamlNode.cs (3)
162 SkipProperties = new List<XmlName>(); 163 CollectionItems = new List<INode>(); 273 var items = new List<INode>();
src\Controls\src\Xaml\XmlTypeXamlExtensions.cs (3)
44 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 64 var lookupNames = new List<string>(capacity: 2); 80 var potentialTypes = new List<(string typeName, string clrNamespace, string assemblyName)>();
Microsoft.Maui.Controls.Xaml (19)
ApplyPropertiesVisitor.cs (1)
24 public static readonly IList<XmlName> Skips = new List<XmlName> {
ExpandMarkupsVisitor.cs (2)
17 public static readonly IList<XmlName> Skips = new List<XmlName> 137 var childnodes = new List<(XmlName, INode)>();
MarkupExtensions\ArrayExtension.cs (1)
17 Items = new List<object>();
PruneIgnoredNodesVisitor.cs (1)
36 (parentNode.IgnorablePrefixes ?? (parentNode.IgnorablePrefixes = new List<string>())).AddRange(prefixes);
TypeArgumentsParser.cs (1)
12 var typeList = new List<XmlType>();
XamlNode.cs (3)
162 SkipProperties = new List<XmlName>(); 163 CollectionItems = new List<INode>(); 273 var items = new List<INode>();
XamlParser.cs (7)
47 (rootNode.IgnorablePrefixes ?? (rootNode.IgnorablePrefixes = new List<string>())).AddRange(prefixes); 141 var nodes = new List<INode>(); 172 (node.IgnorablePrefixes ?? (node.IgnorablePrefixes = new List<string>())).AddRange(prefixes); 207 var attributes = new List<KeyValuePair<XmlName, INode>>(); 208 xmlns = new List<KeyValuePair<string, string>>(); 289 var prefixes = new List<string>(); 339 s_xmlnsDefinitions = new List<XmlnsDefinitionAttribute>();
XmlTypeXamlExtensions.cs (3)
44 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 64 var lookupNames = new List<string>(capacity: 2); 80 var potentialTypes = new List<(string typeName, string clrNamespace, string assemblyName)>();
Microsoft.Maui.Essentials (15)
Connectivity\Connectivity.shared.cs (1)
106 currentProfiles = new List<ConnectionProfile>(ConnectionProfiles);
Email\Email.shared.cs (5)
152 To = to?.ToList() ?? new List<string>(); 174 public List<string>? To { get; set; } = new List<string>(); 179 public List<string>? Cc { get; set; } = new List<string>(); 184 public List<string>? Bcc { get; set; } = new List<string>(); 189 public List<EmailAttachment>? Attachments { get; set; } = new List<EmailAttachment>();
Share\Share.shared.cs (2)
343 public List<ShareFile>? Files { get; set; } = new List<ShareFile>(); 353 Files = new List<ShareFile> { request.File! },
Sms\Sms.shared.cs (2)
73 message.Recipients ??= new List<string>(); 126 public List<string> Recipients { get; set; } = new List<string>();
TextToSpeech\TextToSpeech.shared.cs (1)
76 var parts = new List<string>();
Types\Contact.shared.cs (2)
97 public List<ContactPhone> Phones { get; set; } = new List<ContactPhone>(); 102 public List<ContactEmail> Emails { get; set; } = new List<ContactEmail>();
VersionTracking\VersionTracking.shared.cs (2)
243 { versionsKey, new List<string>() }, 244 { buildsKey, new List<string>() }
Microsoft.Maui.Graphics (25)
PathF.cs (16)
29 _subPathsClosed = new List<bool>(); 50 _points = new List<PointF>(path._points); 56 _subPathsClosed = new List<bool>(path._subPathsClosed); 72 _arcAngles = new List<float>(); 73 _arcClockwise = new List<bool>(); 74 _points = new List<PointF>(); 75 _operations = new List<PathOperation>(); 76 _subPathsClosed = new List<bool>(); 941 var paths = new List<PathF>(); 989 var points = new List<PointF>(_points); 992 var arcSizes = new List<float>(_arcAngles); 995 var arcClockwise = new List<bool>(_arcClockwise); 998 var operations = new List<PathOperation>(_operations); 1475 flattenedPoints ??= new List<PointF>(); 1477 curvePoints ??= new List<PointF>(); 1486 flattenedPoints ??= new List<PointF>();
PictureCanvas.cs (1)
24 _commands = new List<DrawingCommand>();
Text\AttributedTextExtensions.cs (5)
23 var runs = new List<IAttributedTextRun>(); 48 var runs = new List<IAttributedTextRun>(); 58 List<IAttributedText> paragraphs = new List<IAttributedText>(); 70 var runs = new List<IAttributedTextRun>(); 159 var blocks = new List<AttributedTextBlock>();
Text\AttributedTextRunExtensions.cs (1)
70 List<IAttributedTextRun> intersections = new List<IAttributedTextRun>();
Text\MutableAttributedText.cs (1)
22 _runs = new List<IAttributedTextRun> { run };
Text\XmlAttributedTextReader.cs (1)
17 private readonly List<IAttributedTextRun> _runs = new List<IAttributedTextRun>();
Microsoft.Maui.Graphics.Skia (1)
SkiaTextLayout.cs (1)
215 var lines = new List<TextLine>();
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\AttributedTextRenderer.cs (1)
10 private List<IAttributedTextRun> _runs = new List<IAttributedTextRun>();
Microsoft.Maui.Maps (1)
Primitives\GeographyUtils.cs (1)
18 var positions = new List<Location>();
Microsoft.Maui.Resizetizer (7)
AndroidAdaptiveIconGenerator.cs (1)
39 var results = new List<ResizedImageInfo>();
AppleIconAssetsGenerator.cs (3)
45 return new List<ResizedImageInfo> { 50 var appIconImagesJson = new List<string>(); 90 return new List<ResizedImageInfo> {
ResizeImageInfo.cs (1)
61 var r = new List<ResizeImageInfo>();
ResizetizeImages.cs (1)
103 var copiedResources = new List<TaskItem>();
TizenSplashUpdater.cs (1)
27 var orientations = new List<string>() { "portrait", "landscape" };
Microsoft.ML.AutoML (63)
API\AutoCatalog.cs (3)
356var res = new List<SweepableEstimator>(); 460var res = new List<SweepableEstimator>(); 571var res = new List<SweepableEstimator>();
AutoMLExperiment\IMonitor.cs (2)
37_completedTrials = new List<TrialResult>(); 77this.RunDetails = new List<TrialResult<TMetrics>>();
AutoMLExperiment\ITrialResultManager.cs (1)
147var res = new List<TrialResult>();
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (2)
44var metrics = new List<double>(); 45var models = new List<ITransformer>();
AutoMlUtils.cs (1)
39var res = new List<InputOutputColumnPair>();
ColumnInference\ColumnGroupingInference.cs (2)
58var result = new List<GroupingColumn>(); 134var allRanges = new List<Range>();
ColumnInference\ColumnInformationUtil.cs (1)
130var columnNames = new List<string>();
ColumnInference\ColumnTypeInference.cs (2)
274var data = new List<ReadOnlyMemory<char>[]>(); 406var loaderColumns = new List<TextLoader.Column>();
ColumnInference\PurposeInference.cs (3)
88var results = new List<ReadOnlyMemory<char>>(); 245var allColumns = new List<IntermediateColumn>(); 246var columnsToInfer = new List<IntermediateColumn>();
ColumnInference\TextFileContents.cs (1)
95var columnCounts = new List<int>();
ColumnInference\TextFileSample.cs (1)
135var chunks = new List<byte[]>();
Experiment\Experiment.cs (2)
52_history = new List<SuggestedPipelineRunDetail>(); 117var iterationResults = new List<TRunDetail>();
Experiment\RecipeInference.cs (1)
20var trainers = new List<SuggestedTrainer>();
Experiment\Runners\CrossValRunner.cs (1)
51var trainResults = new List<SuggestedPipelineTrainResult<TMetrics>>();
Experiment\Runners\CrossValSummaryRunner.cs (1)
56var trainResults = new List<(ModelContainer model, TMetrics metrics, Exception exception, double score)>();
Experiment\SuggestedPipeline.cs (3)
62var pipelineElements = new List<PipelineNode>(); 77var transforms = new List<SuggestedTransform>(); 78var transformsPostTrainer = new List<SuggestedTransform>();
SweepableEstimator\SweepableEstimatorPipeline.cs (1)
20_estimators = new List<SweepableEstimator>();
Sweepers\Parameters.cs (2)
246var result = new List<IParameterValue>(); 372var result = new List<IParameterValue>();
Sweepers\SmacSweeper.cs (5)
93List<IRunResult> viableRuns = new List<IRunResult>(); 261List<ParameterSet> neighbors = new List<ParameterSet>(); 327List<double[]> datasetLeafValues = new List<double[]>(); 330List<double> leafValues = new List<double>(); 405List<ParameterSet> outSet = new List<ParameterSet>();
Sweepers\SweeperBase.cs (1)
51var prevParamSets = new HashSet<ParameterSet>(previousRuns?.Select(r => r.ParameterSet).ToList() ?? new List<ParameterSet>());
Sweepers\SweeperProbabilityUtils.cs (3)
33List<double> rvs = new List<double>(); 69var result = new List<float>(); 129List<IParameterValue> parameters = new List<IParameterValue>();
TrainerExtensions\MultiTrainerExtensions.cs (1)
236public IEnumerable<SweepableParam> GetHyperparamSweepRanges() => new List<SweepableParam>();
TrainerExtensions\SweepableParams.cs (2)
45return BuildTreeArgsParams().Concat(new List<SweepableParam>() 201var sweepableParams = new List<SweepableParam>();
TrainerExtensions\TrainerExtensionCatalog.cs (1)
80return new List<ITrainerExtension>() { new ImageClassificationExtension() };
TrainerExtensions\TrainerExtensionUtil.cs (1)
225parameters = new List<IParameterValue>();
TransformInference\TransformInference.cs (9)
248var catColumnsNew = new List<string>(); 249var catHashColumnsNew = new List<string>(); 282var transformedColumns = new List<string>(); 296var newColumns = new List<string>(); 324var featureCols = new List<string>(); 350var columnsWithMissing = new List<string>(); 401var suggestedTransforms = new List<SuggestedTransform>(); 428var concatColNames = new List<string>(); 477var newColNames = new List<string>();
TransformInference\TransformPostTrainerInference.cs (2)
15var suggestedTransforms = new List<SuggestedTransform>(); 23var inferredTransforms = new List<SuggestedTransform>();
Tuner\AutoZeroTuner.cs (1)
20private readonly List<Config> _configs = new List<Config>();
Tuner\SmacTuner.cs (3)
75_histories = new List<TrialResult>(); 260var neighborhood = new List<Parameter>(); 321List<double> leafValues = new List<double>();
Utils\Entity.cs (1)
87return new List<ValueEntity>();
Utils\SplitUtil.cs (2)
18var trainDatasets = new List<IDataView>(); 19var validationDatasets = new List<IDataView>();
Utils\UserInputValidationUtil.cs (1)
133var allColumns = new List<string>();
Microsoft.ML.AutoML.Interactive (5)
AutoMLMonitorKernelExtension.cs (3)
48var summary = new List<IHtmlContent>(); 82var chartHeader = new List<IHtmlContent>(); 98var tableHeader = new List<IHtmlContent>();
NotebookMonitor.cs (2)
29CompletedTrials = new List<TrialResult>(); 49TrialData.Append(new List<KeyValuePair<string, object>>()
Microsoft.ML.AutoML.SourceGenerator (5)
Template\EstimatorType.cs (1)
119this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Template\SearchSpace.cs (1)
136this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Template\SweepableEstimator_T_.cs (1)
143this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Template\SweepableEstimator.cs (1)
138this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Template\SweepableEstimatorFactory.cs (1)
114this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Microsoft.ML.AutoML.Tests (35)
AutoFitTests.cs (1)
566var ignoredExceptions = new List<Exception>();
BestResultUtilTests.cs (2)
27var runResults = new List<RunDetail<RegressionMetrics>>() 43var runResults = new List<RunDetail<RegressionMetrics>>()
GetNextPipelineTests.cs (2)
31var pipeline = PipelineSuggester.GetNextPipeline(context, new List<PipelineScore>(), columns, 56var history = new List<PipelineScore>();
GridSearchTunerTests.cs (1)
39var parameters = new List<Parameter>();
InferredPipelineTests.cs (19)
28var transforms1 = new List<SuggestedTransform>(); 29var transforms2 = new List<SuggestedTransform>(); 30var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false); 31var inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false); 35var hyperparams1 = new ParameterSet(new List<IParameterValue>() { new LongParameterValue("NumberOfLeaves", 2) }); 38inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false); 39inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false); 43hyperparams1 = new ParameterSet(new List<IParameterValue>() { new LongParameterValue("NumberOfLeaves", 2) }); 44var hyperparams2 = new ParameterSet(new List<IParameterValue>() { new LongParameterValue("NumberOfLeaves", 6) }); 47inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false); 48inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false); 54transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") }; 55transforms2 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") }; 56inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false); 57inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false); 63transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") }; 64transforms2 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") }; 65inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, false); 66inferredPipeline2 = new SuggestedPipeline(transforms2, new List<SuggestedTransform>(), trainer2, context, false);
MLContextManagerTests.cs (1)
52var messages = new List<LoggingEventArgs>();
SuggestedPipelineBuilderTests.cs (2)
84new List<SuggestedTransform>(), 85new List<SuggestedTransform>(),
SweepablePipelineTests.cs (1)
49InputColumnNames = new List<string> { "a", "b", "c" }.ToArray(),
SweeperTests.cs (3)
51List<RunResult> results = new List<RunResult>(); 99List<RunResult> results = new List<RunResult>(); 151List<RunResult> results = new List<RunResult>();
TrainerExtensionsTests.cs (1)
180new List<SweepableParam>(),
TunerTests.cs (1)
110var history = new List<TrialResult>();
UserInputValidationTests.cs (1)
359new List<KeyValuePair<float, bool>>() { new KeyValuePair<float, bool>(1, true) });
Microsoft.ML.CodeGenerator (16)
CodeGenerator\CSharp\CodeGenerator.cs (2)
201var usings = new List<string>(); 242var results = new List<(string, string[])>();
CodeGenerator\CSharp\PipelineExtension.cs (2)
19var usings = new List<string>(); 60var results = new List<(string, string[])>();
Templates\Azure\Console\AzureModelBuilder.cs (1)
213this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Templates\Azure\Model\AzureImageModelOutputClass.cs (1)
154this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (1)
154this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Templates\Console\ConsumeModel.cs (1)
165this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Templates\Console\ModelBuilder.cs (1)
530this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Templates\Console\ModelInputClass.cs (1)
128this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Templates\Console\ModelOutputClass.cs (1)
171this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Templates\Console\ModelProject.cs (1)
160this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Templates\Console\PredictProgram.cs (1)
187this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Templates\Console\PredictProject.cs (1)
165this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Utils.cs (2)
263IList<string> result = new List<string>(); 264List<string> columnNames = new List<string>();
Microsoft.ML.CodeGenerator.Tests (19)
ApprovalTests\ConsoleCodeGeneratorTests.cs (9)
602var hyperparams1 = new Microsoft.ML.AutoML.ParameterSet(new List<Microsoft.ML.AutoML.IParameterValue>() { new LongParameterValue("NumLeaves", 2) }); 604var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") }; 605var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, true); 639var hyperparams1 = new Microsoft.ML.AutoML.ParameterSet(new List<Microsoft.ML.AutoML.IParameterValue>() { new LongParameterValue("NumLeaves", 2) }); 641var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") }; 642var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, true); 1097var hyperparams1 = new Microsoft.ML.AutoML.ParameterSet(new List<Microsoft.ML.AutoML.IParameterValue>() { new LongParameterValue("NumLeaves", 2) }); 1099var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") }; 1100var inferredPipeline1 = new SuggestedPipeline(transforms1, new List<SuggestedTransform>(), trainer1, context, true);
ApprovalTests\TemplateTest.cs (1)
44Features = new List<string>(),
CodeGenTests.cs (9)
72var actual = codeGenerator.GenerateTransformsAndUsings(new List<PipelineNode>() { node }); 86var actual = codeGenerator.GenerateTransformsAndUsings(new List<PipelineNode>() { node }); 141public static List<TextLoader.Column[]> inputColumns = new List<TextLoader.Column[]> 184public static List<List<string>> expectedLabels = new List<List<string>> 186new List<string> 192new List<string> 204new List<string> 222new List<string> 246new List<string>
Microsoft.ML.Core (37)
CommandLine\CmdParser.cs (6)
467var args = new List<Argument>(); 953List<ArgumentHelpStrings> strings = new List<ArgumentHelpStrings>(); 1081List<string> args = new List<string>(); 1568var comList = new List<KeyValuePair<string, IComponentFactory>>(); 1605var comList = new List<IComponentFactory>(); 1699val.Values = new List<KeyValuePair<string, object>>();
ComponentModel\ComponentCatalog.cs (4)
78_classes = new List<LoadableClassInfo>(); 81_entryPoints = new List<EntryPointInfo>(); 84_components = new List<ComponentInfo>(); 271List<object> prefix = new List<object>();
Data\AnnotationUtils.cs (2)
427var cols = new List<SchemaShape.Column>(); 443var cols = new List<SchemaShape.Column>();
Data\IEstimator.cs (2)
181var cols = new List<Column>(); 188var mCols = new List<Column>();
Data\IFileHandle.cs (1)
85_streams = new List<Stream>();
Data\ProgressReporter.cs (7)
171var hProgress = new List<string>(); 172var hMetrics = new List<string>(); 173var progress = new List<double?>(); 174var progressLim = new List<double?>(); 175var metrics = new List<double?>(); 370_infos = new List<CalculationInfo>(); 437var list = new List<ProgressEvent>();
Data\Repository.cs (1)
114_open = new List<Entry>();
Data\RoleMappedSchema.cs (1)
208list = new List<DataViewSchema.Column>();
EntryPoints\ModuleArgs.cs (1)
265var pieces = new List<string>();
Environment\HostEnvironmentBase.cs (2)
382_children = new List<WeakReference<IHost>>(); 406_children = new List<WeakReference<IHost>>();
Utilities\BinFinder.cs (1)
24_counts = new List<int>();
Utilities\Heap.cs (4)
31_rgv = new List<T>(); 49_rgv = new List<T>(capacity); 231_rgv = new List<T>(); 249_rgv = new List<T>(capacity);
Utilities\MathUtils.cs (1)
357_logFactorialCache = new List<double>(LogFactorialCacheSize);
Utilities\Utils.cs (4)
145list = new List<T>(); 773List<int> mapList = new List<int>(); 807List<int> mapList = new List<int>(); 843List<int> mapList = new List<int>();
Microsoft.ML.Core.Tests (11)
UnitTests\TestCustomTypeRegister.cs (1)
181var tribe = new List<AlienHero>() { new AlienHero("ML.NET", 2, 1000, 2000, 3000, 4000, 5000, 6000, 7000) };
UnitTests\TestEntryPoints.cs (3)
1805data = new TextFeaturizingEstimator(Env, "Features", new List<string> { "Text" }, 3354inputBindingMap.Add("Data", new List<ParameterBinding>() { parameterBinding }); 3406inputBindingMap.Add("TrainingData", new List<ParameterBinding>() { parameterBinding });
UnitTests\TestHosts.cs (2)
50children[randHostTuple.Item1] = new List<IHost>(); 125var messages = new List<string>();
UnitTests\TestVBuffer.cs (5)
471List<int> indices = new List<int>(a.GetIndices().Length); 850var minSlots = new List<int>(); 851var maxSlots = new List<int>(); 903var expectedIndices = new List<int>(); 904var expectedValues = new List<float>();
Microsoft.ML.Data (258)
Commands\CrossValidationCommand.cs (1)
316overallList = new List<IDataView>();
Commands\SaveDataCommand.cs (2)
145var cols = new List<int>(); 207var cols = new List<int>();
Commands\ScoreCommand.cs (1)
183var cols = new List<int>();
Commands\TrainCommand.cs (1)
425var transforms = new List<IDataTransform>();
DataDebuggerPreview.cs (2)
39var rows = new List<RowInfo>(); 42columns[i] = new List<object>();
DataLoadSave\Binary\BinaryLoader.cs (4)
328var mtocEntries = new List<MetadataTableOfContentsEntry>(); 329var deadMtocEntries = new List<MetadataTableOfContentsEntry>(); 1098List<TableOfContentsEntry> aliveList = new List<TableOfContentsEntry>(); 1099List<TableOfContentsEntry> deadList = new List<TableOfContentsEntry>();
DataLoadSave\Binary\BinarySaver.cs (3)
272List<long> offsets = new List<long>(); 274var metadataInfos = new List<Tuple<string, IValueCodec, CompressionKind>>(); 413blockLookups[c] = new List<BlockLookup>();
DataLoadSave\Binary\Codecs.cs (6)
322_boundaries = new List<int>(); 673_offsets = new List<short>(); 674_ticks = new List<long>(); 843_lengths = FixedLength ? null : new List<int>(); 844_counts = new List<int>(); 845_indices = new List<int>();
DataLoadSave\Database\DatabaseLoader.cs (1)
118var columns = new List<Column>();
DataLoadSave\Database\LoadColumnNameAttribute.cs (2)
23var sources = new List<string>(1); 34Sources = new List<string>(fieldNames);
DataLoadSave\DataOperationsCatalog.cs (1)
464var result = new List<TrainTestData>();
DataLoadSave\LegacyCompositeDataLoader.cs (4)
199var exes = new List<TransformEx>(); 216var newlyCreated = new List<TransformEx>(); 470var tagData = new List<KeyValuePair<string, string>>(); 471var acceptedIds = new List<int>();
DataLoadSave\MultiFileSource.cs (1)
47List<string> concatenated = new List<string>();
DataLoadSave\Text\LoadColumnAttribute.cs (3)
23Sources = new List<TextLoader.Range>(); 34Sources = new List<TextLoader.Range>(); 44Sources = new List<TextLoader.Range>();
DataLoadSave\Text\TextLoader.cs (3)
848var segsAll = new List<Segment>(); 858var segsNew = new List<Segment>(); 1586var columns = new List<Column>();
DataLoadSave\Text\TextSaver.cs (1)
398var activeCols = new List<DataViewSchema.Column>();
DataLoadSave\TransformerChain.cs (2)
167var xfs = new List<ITransformer>(); 168var scopes = new List<TransformerScope>();
DataLoadSave\Transpose\TransposeSaver.cs (1)
121List<long> offsets = new List<long>();
DataView\ArrayDataViewBuilder.cs (2)
41_columns = new List<Column>(); 42_names = new List<string>();
DataView\Transposer.cs (1)
150List<int> toSave = new List<int>();
DataView\TypedCursor.cs (2)
99var acceptedCols = new List<InternalSchemaDefinition.Column>(); 100var indices = new List<int>();
Deprecated\Instances\HeaderSchema.cs (2)
48var nameList = new List<ReadOnlyMemory<char>>(); 49var indexList = new List<int>();
Dirty\PredictionUtils.cs (2)
83res = new List<string>(args.Take(i)); 115List<char> sepChars = new List<char>();
EntryPoints\EntryPointNode.cs (6)
608inputBindingMap.Add(kvp.Key, new List<ParameterBinding>() { paramBinding }); 636_inputBindingMap[inputName] = new List<ParameterBinding>(); 660_inputBindingMap[inputName] = new List<ParameterBinding>(); 705var toModify = new List<ParameterBinding>(); 888var result = new List<EntryPointNode>(nodes.Count); 964InputBindingMap.Add(uniqueName, new List<ParameterBinding> { paramBinding });
EntryPoints\InputBuilder.cs (5)
65var fields = new List<FieldInfo>(); 66var attrs = new List<Attributes>(); 152var missing = new List<string>(); 674var fields = new List<FieldInfo>(); 675var attrs = new List<TlcModule.OutputAttribute>();
EntryPoints\TransformModelImpl.cs (2)
255var mappers = new List<IRowToRowMapper>(); 256var actives = new List<IEnumerable<DataViewSchema.Column>>();
Evaluators\AnomalyDetectionEvaluator.cs (17)
131var stratCol = new List<uint>(); 132var stratVal = new List<ReadOnlyMemory<char>>(); 133var auc = new List<Double>(); 134var drAtK = new List<Double>(); 135var drAtP = new List<Double>(); 136var drAtNumAnomalies = new List<Double>(); 137var thresholdAtK = new List<Single>(); 138var thresholdAtP = new List<Single>(); 139var thresholdAtNumAnomalies = new List<Single>(); 140var numAnoms = new List<long>(); 142var scores = new List<Single>(); 143var labels = new List<Single>(); 144var names = new List<ReadOnlyMemory<char>>(); 145var topKStratCol = new List<uint>(); 146var topKStratVal = new List<ReadOnlyMemory<char>>(); 316_examples = new List<Info>(); 763var colsToKeep = new List<string>();
Evaluators\AucAggregator.cs (2)
57_posExamples = new List<T>(); 58_negExamples = new List<T>();
Evaluators\BinaryClassifierEvaluator.cs (38)
220var stratCol = new List<uint>(); 221var stratVal = new List<ReadOnlyMemory<char>>(); 222var isWeighted = new List<bool>(); 223var auc = new List<Double>(); 224var accuracy = new List<Double>(); 225var posPrec = new List<Double>(); 226var posRecall = new List<Double>(); 227var negPrec = new List<Double>(); 228var negRecall = new List<Double>(); 229var logLoss = new List<Double>(); 230var logLossRed = new List<Double>(); 231var entropy = new List<Double>(); 232var f1 = new List<Double>(); 233var auprc = new List<Double>(); 235var counts = new List<Double[]>(); 236var weights = new List<Double[]>(); 237var confStratCol = new List<uint>(); 238var confStratVal = new List<ReadOnlyMemory<char>>(); 240var scores = new List<Single>(); 241var precision = new List<Double>(); 242var recall = new List<Double>(); 243var fpr = new List<Double>(); 244var weightedPrecision = new List<Double>(); 245var weightedRecall = new List<Double>(); 246var weightedFpr = new List<Double>(); 247var prStratCol = new List<uint>(); 248var prStratVal = new List<ReadOnlyMemory<char>>(); 607Precision = new List<Double>(); 608Recall = new List<Double>(); 609FalsePositiveRate = new List<Double>(); 610Scores = new List<Single>(); 613WeightedPrecision = new List<Double>(); 614WeightedRecall = new List<Double>(); 615WeightedFalsePositiveRate = new List<Double>(); 878var prCurveResult = new List<BinaryPrecisionRecallDataPoint>(); 1004var prCurveResult = new List<BinaryPrecisionRecallDataPoint>(); 1374var colsToKeep = new List<string>(); 1453var prList = new List<IDataView>();
Evaluators\ClusteringEvaluator.cs (9)
70var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>(); 162var stratCol = new List<uint>(); 163var stratVal = new List<ReadOnlyMemory<char>>(); 164var isWeighted = new List<bool>(); 165var nmi = new List<Double>(); 166var avgMinScores = new List<Double>(); 167var dbi = new List<Double>(); 325_numInstancesOfClass = new List<Double>(); 326_confusionMatrix = new List<Double[]>();
Evaluators\EvaluatorBase.cs (2)
112var list = new List<AggregatorDictionaryBase>(); 318var warnings = new List<string>();
Evaluators\EvaluatorUtils.cs (12)
527var naIndices = new List<int>(); 795var overallList = new List<IDataView>(); 816var firstDvKeyWithNamesColumns = new List<string>(); 818var firstDvVectorKeyColumns = new List<string>(); 819var variableSizeVectorColumnNamesList = new List<string>(); 820var list = new List<IDataView>(); 824var hidden = new List<int>(); 1003var metricNames = new List<string>(); 1056var nonAveragedCols = new List<string>(); 1060var idvList = new List<IDataView>() { avgMetrics }; 1450List<ReadOnlyMemory<char>> result = new List<ReadOnlyMemory<char>>(); 1703var nonAveragedCols = new List<string>();
Evaluators\MamlEvaluator.cs (2)
233var cols = new List<(string name, string source)>(); 234var colsToKeep = new List<string>();
Evaluators\Metrics\ConfusionMatrix.cs (1)
88List<IReadOnlyList<double>> counts = new List<IReadOnlyList<double>>(NumberOfClasses);
Evaluators\MulticlassClassificationEvaluator.cs (15)
143var stratCol = new List<uint>(); 144var stratVal = new List<ReadOnlyMemory<char>>(); 145var isWeighted = new List<bool>(); 146var microAcc = new List<double>(); 147var macroAcc = new List<double>(); 148var logLoss = new List<double>(); 149var logLossRed = new List<double>(); 150var topKAcc = new List<double>(); 151var allTopK = new List<double[]>(); 152var perClassLogLoss = new List<double[]>(); 153var counts = new List<double[]>(); 154var weights = new List<double[]>(); 155var confStratCol = new List<uint>(); 156var confStratVal = new List<ReadOnlyMemory<char>>(); 954var overallList = new List<IDataView>();
Evaluators\MultiOutputRegressionEvaluator.cs (10)
98var stratCol = new List<uint>(); 99var stratVal = new List<ReadOnlyMemory<char>>(); 100var isWeighted = new List<bool>(); 101var l1 = new List<Double>(); 102var l2 = new List<Double>(); 103var dist = new List<Double>(); 104var perLabelL1 = new List<Double[]>(); 105var perLabelL2 = new List<Double[]>(); 106var perLabelRms = new List<Double[]>(); 107var perLabelLoss = new List<Double[]>();
Evaluators\RankingEvaluator.cs (21)
84var labelGains = new List<Double>(); 161var stratCol = new List<uint>(); 162var stratVal = new List<ReadOnlyMemory<char>>(); 163var isWeighted = new List<bool>(); 164var ndcg = new List<Double[]>(); 165var dcg = new List<Double[]>(); 167var groupName = new List<ReadOnlyMemory<char>>(); 168var groupNdcg = new List<Double[]>(); 169var groupDcg = new List<Double[]>(); 170var groupMaxDcg = new List<Double[]>(); 171var groupStratCol = new List<uint>(); 172var groupStratVal = new List<ReadOnlyMemory<char>>(); 369_groupNdcg = new List<Double[]>(); 370_groupDcg = new List<Double[]>(); 371_groupMaxDcg = new List<Double[]>(); 374_queryLabels = new List<short>(); 375_queryOutputs = new List<Single>(); 449GroupId = new List<ReadOnlyMemory<char>>(); 841QueryLabels = new List<short>(); 842QueryOutputs = new List<Single>(); 926var gsList = new List<IDataView>();
Evaluators\RegressionEvaluatorBase.cs (8)
53var stratCol = new List<uint>(); 54var stratVal = new List<ReadOnlyMemory<char>>(); 55var isWeighted = new List<bool>(); 56var l1 = new List<TMetrics>(); 57var l2 = new List<TMetrics>(); 58var rms = new List<TMetrics>(); 59var loss = new List<TMetrics>(); 60var rSquared = new List<TMetrics>();
Model\Pfa\PfaContext.cs (5)
103_cellBlocks = new List<CellBlock>(); 104_letSetBlocks = new List<VariableBlock>(); 105_funcBlocks = new List<FuncBlock>(); 158var sets = new List<KeyValuePair<string, JToken>>(); 171var lets = new List<KeyValuePair<string, JToken>>(locals.Length - sets.Count);
Model\Pfa\SavePfaCommand.cs (1)
187var toExport = new List<string>();
Prediction\Calibrator.cs (2)
1096_cMargins = new List<float>(); 1097_ncMargins = new List<float>();
Prediction\CalibratorCatalog.cs (1)
107var annotations = new List<SchemaShape.Column>();
Training\TrainerUtils.cs (2)
230new List<DataViewSchema.Column>() : 428var nameMap = new List<(string outName, string inName)>();
Transforms\ColumnBindingsBase.cs (1)
687var indices = new List<int>();
Transforms\ColumnConcatenatingEstimator.cs (1)
130List<SchemaShape.Column> meta = new List<SchemaShape.Column>();
Transforms\ColumnConcatenatingTransformer.cs (4)
594List<int> allValues = new List<int>(); 885var toHide = new List<string>(); 886var toDeclare = new List<KeyValuePair<string, JToken>>(); 921List<KeyValuePair<string, long>> inputList = new List<KeyValuePair<string, long>>();
Transforms\ColumnSelecting.cs (2)
554var outputToInputMapping = new List<int>(); 577columnList = new List<int>();
Transforms\FeatureContributionCalculationTransformer.cs (1)
352var featContributionMetadata = new List<SchemaShape.Column>();
Transforms\Hashing.cs (2)
199var sourceColumnsForInvertHash = new List<DataViewSchema.Column>(); 1963var metadata = new List<SchemaShape.Column>();
Transforms\KeyToValue.cs (2)
187var toHide = new List<string>(); 188var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\KeyToVector.cs (3)
635var toHide = new List<string>(); 636var toDeclare = new List<KeyValuePair<string, JToken>>(); 829var metadata = new List<SchemaShape.Column>();
Transforms\NormalizeColumn.cs (3)
805Labels = new List<int>(); 887ColValues = new List<TFloat>(); 922ColValues[i] = new List<TFloat>();
Transforms\NormalizeColumnDbl.cs (4)
1615var nz = new List<int>(); 1785var nz = new List<int>(); 1864_values = new List<TFloat>(); 1912_values[i] = new List<TFloat>();
Transforms\NormalizeColumnSng.cs (5)
546Elements = new List<TType>(startingSize); 1778var nz = new List<int>(); 1948var nz = new List<int>(); 2027_values = new List<TFloat>(); 2075_values[i] = new List<TFloat>();
Transforms\Normalizer.cs (4)
361var newMetadataKinds = new List<SchemaShape.Column> { isNormalizedMeta }; 537var activeCols = new List<DataViewSchema.Column>(); 788var toHide = new List<string>(); 789var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\NormalizeUtils.cs (2)
146var columnsToNormalize = new List<NormalizeTransform.AffineColumn>(); 155var entryPoints = new List<EntryPointNode>();
Transforms\SlotsDroppingTransformer.cs (1)
585List<int> newCategoricalSlotRanges = new List<int>();
Transforms\TransformBase.cs (2)
578var toHide = new List<string>(); 579var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\TypeConverting.cs (1)
634var metadata = new List<SchemaShape.Column>();
Transforms\ValueMapping.cs (4)
241var convertedValues = new List<ReadOnlyMemory<char>[]>(); 557List<TKey> keys = new List<TKey>(); 558List<TValue> values = new List<TValue>(); 997var cols = new List<(string outputColumnName, string inputColumnName)>()
Transforms\ValueToKeyMappingTransformer.cs (2)
928var toHide = new List<string>(); 929var toDeclare = new List<KeyValuePair<string, JToken>>();
Utilities\ApplyTransformUtils.cs (1)
83var transforms = new List<IDataTransform>();
Utilities\ModelFileUtils.cs (3)
241List<string> rolesList = new List<string>(); 242List<string> columnNamesList = new List<string>(); 287var list = new List<KeyValuePair<string, string>>();
Utilities\StreamUtils.cs (1)
71var matchList = new List<string>();
Microsoft.ML.DataView (3)
DataViewSchema.cs (2)
262_items = new List<(string Name, DataViewType Type, Delegate Getter, Annotations Annotations)>(); 387_items = new List<(string Name, DataViewType Type, Annotations Annotations)>();
SchemaDebuggerProxy.cs (1)
41var result = new List<KeyValuePair<string, object>>();
Microsoft.ML.Ensemble (4)
PipelineEnsemble.cs (1)
705var list = new List<KeyValuePair<string, object>>();
Selector\DiversityMeasure\BaseDisagreementDiversityMeasure.cs (1)
20var diversityValues = new List<ModelDiversityMetric<TOutput>>();
Selector\SubModelSelector\BaseDiverseSelector.cs (1)
87var selectedModels = new List<FeatureSubsetModel<TOutput>>();
Trainer\EnsembleTrainerBase.cs (1)
137var models = new List<FeatureSubsetModel<TOutput>>();
Microsoft.ML.EntryPoints (37)
CrossValidationMacro.cs (12)
168var subGraphNodes = new List<EntryPointNode>(); 183inputBindingMap.Add(nameof(splitArgs.Data), new List<ParameterBinding>() { paramBinding }); 242inputBindingMap.Add(nameof(args.TrainingData), new List<ParameterBinding> { trainingData }); 245inputBindingMap.Add(nameof(args.TestingData), new List<ParameterBinding> { testingData }); 261inputBindingMap.Add(nameof(combineModelsArgs.TransformModel), new List<ParameterBinding>() { paramBinding }); 264inputBindingMap.Add(nameof(combineModelsArgs.PredictorModel), new List<ParameterBinding>() { paramBinding }); 322combineInputBindingMap.Add(nameof(combineArgs.Warnings), new List<ParameterBinding> { warningsArray }); 325combineInputBindingMap.Add(nameof(combineArgs.OverallMetrics), new List<ParameterBinding> { overallArray }); 328combineInputBindingMap.Add(nameof(combineArgs.PerInstanceMetrics), new List<ParameterBinding> { combinePerInstArray }); 333combineInputBindingMap.Add(nameof(combineArgs.ConfusionMatrix), new List<ParameterBinding> { combineConfArray }); 372var warnings = input.Warnings != null ? new List<IDataView>(input.Warnings) : new List<IDataView>();
FeatureCombiner.cs (1)
60var concatNames = new List<KeyValuePair<string, string>>();
JsonUtils\JsonManifestUtils.cs (3)
51var kinds = new List<Type>(); 157var inputs = new List<KeyValuePair<Double, JObject>>(); 285var outputs = new List<KeyValuePair<Double, JObject>>();
MacroUtils.cs (2)
128inputBindingMap.Add(argName, new List<ParameterBinding>()); 151inputBindingMap.Add(argName, new List<ParameterBinding>());
OneVersusAllMacro.cs (4)
63inputBindingMap.Add(nameof(labelIndicatorArgs.Data), new List<ParameterBinding>() { paramBinding }); 152var macroNodes = new List<EntryPointNode>(); 176inputBindingMap.Add(nameof(combineArgs.ModelArray), new List<ParameterBinding>() { paramBinding }); 179inputBindingMap.Add(nameof(combineArgs.TrainingData), new List<ParameterBinding>() { paramBinding });
PermutationFeatureImportance.cs (5)
108List<BinaryMetrics> metrics = new List<BinaryMetrics>(); 165List<MulticlassMetrics> metrics = new List<MulticlassMetrics>(); 224List<RegressionMetrics> metrics = new List<RegressionMetrics>(); 278List<RankingMetrics> metrics = new List<RankingMetrics>(); 313List<string> slotNames = new List<string>();
ScoreColumnSelector.cs (2)
31List<int> indices = new List<int>(); 84var copyCols = new List<(string name, string source)>();
TrainTestMacro.cs (8)
174inputBindingMap.Add(nameof(combineArgs.TransformModel), new List<ParameterBinding>() { paramBinding }); 177inputBindingMap.Add(nameof(combineArgs.PredictorModel), new List<ParameterBinding>() { paramBinding }); 194inputBindingMap.Add(nameof(args.Data), new List<ParameterBinding>() { paramBinding }); 198inputBindingMap.Add(nameof(args.PredictorModel), new List<ParameterBinding>() { paramBinding }); 228inputBindingMap.Add(nameof(args.Data), new List<ParameterBinding>() { paramBinding }); 232inputBindingMap.Add(nameof(args.PredictorModel), new List<ParameterBinding>() { paramBinding }); 252inputBindingMap.Add(nameof(evalTrainingArgs.Data), new List<ParameterBinding>() { paramBinding }); 274inputBindingMap.Add(nameof(evalArgs.Data), new List<ParameterBinding>() { paramBinding });
Microsoft.ML.FastTree (97)
Dataset\Dataset.cs (1)
621List<int>[] listQueries = Enumerable.Range(0, numParts).Select(x => new List<int>()).ToArray(numParts);
Dataset\FeatureFlock.cs (6)
538List<VirtualBin> virtualBins = new List<VirtualBin>(); 539List<int> lowPopulationFeatures = new List<int>(); 668List<int> catFeatureIndices = new List<int>(); 734List<VirtualBin> virtualBins = new List<VirtualBin>(); 735List<int> lowPopulationFeatures = new List<int>(); 890List<int> catFeatureIndices = new List<int>();
Dataset\RepeatIntArray.cs (2)
29List<int> tempValueList = new List<int>(); 30List<byte> tempDeltaList = new List<byte>();
Dataset\SparseIntArray.cs (4)
50List<int> tempValueList = new List<int>(); 51List<byte> tempDeltaList = new List<byte>(); 126List<int> tempValueList = new List<int>(); 127List<byte> tempDeltaList = new List<byte>();
FastTree.cs (36)
183Tests = new List<Test>(); 1012var result = new List<KeyValuePair<int, int>>(); 1363var toTranspose = new List<int>(); 1461List<FeatureFlockBase> flocks = new List<FeatureFlockBase>(); 1480List<int> pending = new List<int>(); 1691List<int> minSlots = new List<int>(); 1692List<int> maxSlots = new List<int>(); 1715List<ulong> qids = new List<ulong>(); 1716List<int> boundaries = new List<int>(); 1769_targetsList = new List<short>(); 1770_actualTargets = new List<double>(); 1771_weights = data.Schema.Weight != null ? new List<double>() : null; 1772_boundaries = new List<int>(); 1914List<int> trivialFeatures = new List<int>(); 1956var delta = new List<byte>(); 1957var values = new List<int>(); 2090List<int> pending = new List<int>(); 2192List<int> pending = new List<int>(); 2381_dense = new List<double>(); 2417_sparse = new List<KeyValuePair<int, double>>(_nonZeroElements); 3047var nodesTreeids = new List<long>(); 3048var nodesIds = new List<long>(); 3049var nodesFeatureIds = new List<long>(); 3050var nodeModes = new List<string>(); 3051var nodesValues = new List<double>(); 3052var nodeHitrates = new List<long>(); 3053var missingValueTracksTrue = new List<bool>(); 3054var nodesTrueNodeIds = new List<long>(); 3055var nodesFalseNodeIds = new List<long>(); 3056var nodesBaseValues = new List<float>(); 3059var classTreeIds = new List<long>(); 3060var classNodeIds = new List<long>(); 3061var classIds = new List<long>(); 3062var classWeights = new List<double>(); 3112node.AddAttribute("base_values", new List<float>() { 0 }); 3167List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
GamModelParameters.cs (6)
483var internalNodeIndices = new List<int>(); 484var lteChild = new List<int>(); 485var gtChild = new List<int>(); 649binDocList[e] = new List<int>(); 652var labels = new List<float>(); 653var scores = new List<float>();
GamTrainer.cs (2)
545var newBinEffects = new List<double>(); 546var newBinBoundaries = new List<double>();
RandomForestClassification.cs (2)
271List<float> featuresList = new List<float>(); 272List<float> labelsList = new List<float>();
RandomForestRegression.cs (2)
404List<float> featuresList = new List<float>(); 405List<float> labelsList = new List<float>();
RegressionTree.cs (2)
112return new List<int>(); // Zero-length vector. 129return new List<int>(); // Zero-length vector.
Training\DocumentPartitioning.cs (1)
85.Select(x => new List<int>(innerLoopSize / tree.NumLeaves))
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (1)
95List<KeyValuePair<short, int>> labelFreqList = new List<KeyValuePair<short, int>>();
Training\OptimizationAlgorithms\GradientDescent.cs (1)
29_treeScores = new List<double[]>();
Training\OptimizationAlgorithms\OptimizationAlgorithm.cs (1)
44TrackedScores = new List<ScoreTracker>();
Training\Test.cs (7)
213History = new List<TestResult[]>(); 355IList<TestResult> result = new List<TestResult>(); 409List<TestResult> result = new List<TestResult>() 452List<TestResult> result = new List<TestResult>() 483IList<TestResult> result = new List<TestResult>() 567List<TestResult> result = new List<TestResult>(); 705List<TestResult> result = new List<TestResult>()
TreeEnsemble\InternalRegressionTree.cs (3)
379List<int> categoricalNodeIndices = new List<int>(); 813path = new List<int>(); 1502List<int> path = new List<int>();
TreeEnsemble\InternalTreeEnsemble.cs (2)
36_trees = new List<InternalRegressionTree>(); 50_trees = new List<InternalRegressionTree>();
TreeEnsembleFeaturizationTransformer.cs (1)
64var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
TreeEnsembleFeaturizer.cs (2)
187var delegates = new List<Delegate>(); 262_pathIds[i] = new List<int>();
Utils\BufferPoolManager.cs (1)
97buffers = new List<Array>();
Utils\RegressionTreeBaseUtils.cs (14)
28var treeWeightsList = new List<double>(); 29var treeId = new List<int>(); 30var isLeaf = new List<ReadOnlyMemory<char>>(); 31var leftChild = new List<int>(); 32var rightChild = new List<int>(); 33var numericalSplitFeatureIndexes = new List<int>(); 34var numericalSplitThresholds = new List<float>(); 35var categoricalSplitFlags = new List<bool>(); 36var leafValues = new List<double>(); 37var splitGains = new List<double>(); 38var categoricalSplitFeatures = new List<VBuffer<int>>(); 39var categoricalCategoricalSplitFeatureRange = new List<VBuffer<int>>(); 118var leafSamples = new List<VBuffer<double>>(); 121var leafSampleWeights = new List<VBuffer<double>>();
Microsoft.ML.GenAI.Core (3)
Pipeline\CausalLMPipeline.cs (1)
228var chunks = new List<string>();
Trainer\CausalLMDataset.cs (1)
23_data = new List<CausalLMModelInput>(data);
Trainer\CausalLMSupervisedFineTuningTrainer.cs (1)
43var losses = new List<float>();
Microsoft.ML.GenAI.Core.Tests (3)
CausalLMDatasetTest.cs (3)
82var inputs = new List<List<ChatMessage>> 84new List<ChatMessage> 91var outputs = new List<ChatMessage>
Microsoft.ML.GenAI.LLaMA (4)
Llama3CausalLMChatClient.cs (1)
40options.StopSequences = new List<string> { _eotToken };
LlamaTextCompletionService.cs (1)
65var stopTokenSequence = executionSettings?.ExtensionData?["stop_token_sequence"] as List<string> ?? new List<string>();
Module\LlamaModel.cs (2)
120var allHiddenStates = new List<Tensor>(); 121var allAttentions = new List<Tensor>();
Microsoft.ML.GenAI.LLaMA.Tests (1)
LLaMA3_1Tests.cs (1)
98var chatHistory = new List<IMessage>
Microsoft.ML.GenAI.Mistral (3)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
170var requiredParameterNames = new List<string>();
MistralModel.cs (2)
114var allHiddenStates = new List<Tensor>(); 115var allAttentions = new List<Tensor>();
Microsoft.ML.GenAI.Mistral.Tests (2)
Mistral_7B_Instruct_V0_3Tests.cs (2)
44var chatHistory = new List<IMessage> 83var chatHistory = new List<IMessage>
Microsoft.ML.GenAI.Phi (3)
Module\Phi3Model.cs (2)
116var allHiddenStates = new List<Tensor>(); 117var allAttentions = new List<Tensor>();
Phi3\Phi3CausalLMTextGenerationService.cs (1)
35var stopTokenSequence = executionSettings?.ExtensionData?["stop_token_sequence"] as List<string> ?? new List<string>();
Microsoft.ML.GenAI.Samples (2)
Llama\SFT_Llama_3_2_1B.cs (2)
36var dataset = new List<Data> 105var trainChatHistory = new List<ChatMessage>
Microsoft.ML.IntegrationTests (1)
Prediction.cs (1)
62var transformers = new List<ITransformer>();
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
44var list = new List<string> { AttributeName, "Microsoft.ML.Internal.CpuMath.Core.BestFriendAttribute" };
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
324var tensorC = new List<float>();
Microsoft.ML.LightGbm (11)
LightGbmTrainerBase.cs (6)
566List<int> catBoundaries = new List<int> { 0 }; 605List<string> catIndices = new List<string>(); 770List<float> labelList = new List<float>(); 778List<float> weightList = hasWeights ? new List<float>() : null; 779List<ulong> cursorGroups = hasGroup ? new List<ulong>() : null; 808List<int> groupList = new List<int>();
WrappedLightGbmBooster.cs (2)
100var values = new List<double>(); 175List<int> cats = new List<int>();
WrappedLightGbmInterface.cs (1)
254List<string> res = new List<string>();
WrappedLightGbmTraining.cs (2)
42var metrics = new List<string>() { "Iteration" }; 43var units = new List<string>() { "iterations" };
Microsoft.ML.Maml (3)
HelpCommand.cs (3)
147var components = new List<Component>(); 198var components = new List<Component>(); 284var components = new List<Component>();
Microsoft.ML.Mkl.Components (2)
SymSgdClassificationTrainer.cs (2)
381_storage = new List<VeryLongArray>(); 558_instanceProperties = new List<InstanceProperties>();
Microsoft.ML.OnnxConverter (7)
OnnxContextImpl.cs (5)
47_nodes = new List<OnnxCSharpToProtoWrapper.NodeProto>(); 48_intermediateValues = new List<OnnxUtils.ModelArgs>(); 49_inputs = new List<OnnxUtils.ModelArgs>(); 50_initializers = new List<OnnxCSharpToProtoWrapper.TensorProto>(); 51_outputs = new List<OnnxUtils.ModelArgs>();
OnnxUtils.cs (2)
362dimsLocal = new List<long>(); 367dimsParamLocal = new List<bool>() { false, true }; //false for batch size, true for dims.
Microsoft.ML.OnnxTransformer (4)
OnnxTransform.cs (2)
689var inputNameOnnxValues = new List<NamedOnnxValue>(); 879_tensorShape = new OnnxShape(tensorShape);
OnnxTypeParser.cs (1)
198List<int> dims = new List<int>();
OnnxUtils.cs (1)
301var onnxVariableInfos = new List<OnnxVariableInfo>();
Microsoft.ML.OnnxTransformerTest (6)
DnnImageFeaturizerTest.cs (3)
75var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 76var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 77var sizeData = new List<TestDataSize> { new TestDataSize() { data_0 = new float[2] } };
OnnxTransformTests.cs (3)
143var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 144var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 145var sizeData = new List<TestDataSize> { new TestDataSize() { data_0 = new float[2] } };
Microsoft.ML.Parquet (3)
ParquetLoader.cs (1)
261List<Column> columnsLoaded = new List<Column>();
PartitionedPathParser.cs (2)
342names = new List<string>(dirs.Count()); 343values = new List<string>(dirs.Count());
Microsoft.ML.PerformanceTests (5)
FeaturizeTextBench.cs (3)
33var columns = new List<TextLoader.Column>(); 53var textColumns = new List<string>(); 59var featurizers = new List<TextFeaturizingEstimator>();
TextLoaderBench.cs (2)
36_columns = new List<TextLoader.Column>(); 60var getters = new List<ValueGetter<ReadOnlyMemory<char>>>();
Microsoft.ML.Predictor.Tests (17)
ResultProcessor\TestResultProcessor.cs (6)
39List<string> result = new List<string>(); 61List<string> testFiles = new List<string>(); 78List<string> testFiles = new List<string>(); 95List<string> testFiles = new List<string>(); 112List<string> testFiles = new List<string>(); 129List<string> testFiles = new List<string>();
TestPredictors.cs (10)
463var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 479var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 516var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 527var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 980var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.adultOnlyCat, TestDatasets.adult }; 999var regressionDatasets = new List<TestDataset> { TestDatasets.autosSample }; 1019var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerGroupId }; 1037var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 1588new List<PredictorAndArgs>() { TestLearners.multiclassLogisticRegressionRegularized }, 1589new List<TestDataset>() { TestDatasets.reutersMaxDim });
TestTransposer.cs (1)
124List<int> indices = new List<int>();
Microsoft.ML.Recommender (3)
MatrixFactorizationPredictor.cs (1)
471var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
MatrixFactorizationTrainer.cs (1)
529var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
SafeTrainingAndModelBuffer.cs (1)
267List<MFNode> nodes = new List<MFNode>();
Microsoft.ML.ResultProcessor (15)
ResultProcessor.cs (15)
293List<string> settings = new List<string>(); 712lines = new List<string>(); 751fileResults = new List<string>(); 752fileTimeMemoryResult = new List<string>(); 847List<ExperimentItemResult?> results = new List<ExperimentItemResult?>(); 865tempPredictorList = new List<PredictorResult>(); 908var foldLines = new List<string>(lines.Where((s, i1) => i1 >= startLineIdx && i1 < endLineIdx)); 928List<int> allFoldIndices = new List<int>(foldResults.Keys); 949AllValues = new List<float>(from kvp in metricValues.Value 1040List<PredictorResult> predictorResultsList = new List<PredictorResult>(); 1060List<string> m = new List<string>(); 1067List<KeyValuePair<string, string>> srcFiles = new List<KeyValuePair<string, string>>(); 1100predictorItem.PredictorList = new List<ExperimentItemResult>(); 1158+ string.Join(cmd.PerFoldResultSeparator, new List<string>(new List<float>(kvp.Value.AllValues).Select(d => "" + d))));
Microsoft.ML.Samples (81)
Dynamic\DataOperations\FilterRowsByKeyColumnFraction.cs (1)
20var samples = new List<DataPoint>()
Dynamic\DataOperations\FilterRowsByMissingValues.cs (1)
20var samples = new List<DataPoint>()
Dynamic\DataOperations\LoadingText.cs (1)
16var dataFiles = new List<string>();
Dynamic\DataOperations\SaveAndLoadFromBinary.cs (1)
19var dataPoints = new List<DataPoint>()
Dynamic\DataOperations\SaveAndLoadFromText.cs (1)
19var dataPoints = new List<DataPoint>()
Dynamic\ModelOperations\SaveLoadModel.cs (1)
17var data = new List<Data>()
Dynamic\ModelOperations\SaveLoadModelFile.cs (1)
17var data = new List<Data>()
Dynamic\NgramExtraction.cs (1)
17var data = new List<SampleSentimentData>() {
Dynamic\TextTransform.cs (1)
19var data = new List<SampleSentimentData>() {
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSample.cs (1)
20var samples = new List<DataPoint>()
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSampleWithOptions.cs (1)
20var samples = new List<DataPoint>()
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachine.cs (1)
146var data = new List<DataPoint>();
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachineWithOptions.cs (1)
157var data = new List<DataPoint>();
Dynamic\Trainers\Recommendation\MatrixFactorization.cs (1)
92var dataMatrix = new List<MatrixElement>();
Dynamic\Trainers\Recommendation\MatrixFactorizationWithOptions.cs (1)
116var dataMatrix = new List<MatrixElement>();
Dynamic\Trainers\Recommendation\OneClassMatrixFactorizationWithOptions.cs (2)
171observedMatrix = new List<MatrixElement>(); 172fullMatrix = new List<MatrixElement>();
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\Concatenate.cs (1)
17var samples = new List<InputData>()
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (1)
90var examples = new List<DataPoint>();
Dynamic\Transforms\CopyColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\CustomMapping.cs (1)
20var samples = new List<InputData>
Dynamic\Transforms\CustomMappingSaveAndLoad.cs (1)
23var samples = new List<InputData>
Dynamic\Transforms\CustomMappingWithInMemoryCustomType.cs (1)
25var tribe = new List<AlienHero>() { new AlienHero("ML.NET", 2, 1000,
Dynamic\Transforms\DropColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\Expression.cs (1)
17var samples = new List<InputData>()
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCount.cs (1)
83var data = new List<InputData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCountMultiColumn.cs (1)
83var data = new List<InputData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformation.cs (1)
77var data = new List<NumericData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformationMultiColumn.cs (1)
86var data = new List<NumericData>
Dynamic\Transforms\IndicateMissingValues.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\IndicateMissingValuesMultiColumn.cs (1)
17var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeBinning.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeGlobalContrast.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLogMeanVariance.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLpNorm.cs (1)
17var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMeanVariance.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMinMax.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeSupervisedBinning.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
84var data = new List<SampleVectorOfNumbersData>();
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
83var data = new List<SampleVectorOfNumbersData>();
Dynamic\Transforms\ReplaceMissingValues.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\ReplaceMissingValuesMultiColumn.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\SelectColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\StatefulCustomMapping.cs (1)
16var samples = new List<InputData>
Dynamic\Transforms\Text\ApplyCustomWordEmbedding.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\ApplyWordEmbedding.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\FeaturizeText.cs (1)
16var samples = new List<TextData>()
Dynamic\Transforms\Text\FeaturizeTextWithOptions.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\LatentDirichletAllocation.cs (1)
16var samples = new List<TextData>()
Dynamic\Transforms\Text\NormalizeText.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
18var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
18var samples = new List<TextData>()
Dynamic\Transforms\Text\RemoveDefaultStopWords.cs (1)
21var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\RemoveStopWords.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\TokenizeIntoCharactersAsKeys.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\TokenizeIntoWords.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnn.cs (1)
22var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnnBatchPrediction.cs (1)
18var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectChangePointBySsa.cs (1)
28var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaStream.cs (1)
28var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectEntireAnomalyBySrCnn.cs (1)
19var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectIidChangePoint.cs (1)
27var data = new List<TimeSeriesData>(Size)
Dynamic\Transforms\TimeSeries\DetectIidChangePointBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>(Size)
Dynamic\Transforms\TimeSeries\DetectIidSpike.cs (1)
23var data = new List<TimeSeriesData>(Size + 1)
Dynamic\Transforms\TimeSeries\DetectIidSpikeBatchPrediction.cs (1)
21var data = new List<TimeSeriesData>(Size + 1)
Dynamic\Transforms\TimeSeries\DetectSpikeBySsa.cs (1)
26var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectSpikeBySsaBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\Forecasting.cs (1)
20var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\ForecastingWithConfidenceInterval.cs (1)
20var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (2)
20var data = new RootCauseLocalizationInput(timestamp, GetAnomalyDimension(), new List<MetricSlice>() { new MetricSlice(timestamp, GetPoints()) }, AggregateType.Sum, AGG_SYMBOL); 40List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (2)
21var data = new RootCauseLocalizationInput(timestamp, GetAnomalyDimension(), new List<MetricSlice>() { new MetricSlice(timestamp, GetTimeSeriesPoints()) }, AggregateType.Sum, AGG_SYMBOL); 46List<TimeSeriesPoint> TimeSeriesPoints = new List<TimeSeriesPoint>();
Dynamic\WithOnFitDelegate.cs (1)
19var samples = new List<DataPoint>()
Microsoft.ML.Samples.OneDal (3)
Program.cs (3)
18List<IDataView> dataList = new List<IDataView>(); 23List<TextLoader.Column> columns = new List<TextLoader.Column>(); 51List<string> featuresList = new List<string>();
Microsoft.ML.SamplesUtils (4)
SamplesDatasetUtils.cs (4)
247var data = new List<BinaryLabelFloatFeatureVectorFloatWeightSample>(); 294var data = new List<FloatLabelFloatFeatureVectorUlongGroupIdSample>(); 310var data = new List<FloatLabelFloatFeatureVectorSample>(); 364var examples = new List<MulticlassClassificationExample>();
Microsoft.ML.SearchSpace (3)
Converter\ParameterConverter.cs (1)
42var list = new List<object>();
Option\NestOption.cs (1)
67var res = new List<double>();
SearchSpace.cs (1)
135var res = new List<double>();
Microsoft.ML.StandardTrainers (21)
FactorizationMachine\FactorizationMachineTrainer.cs (3)
372var columns = new List<DataViewSchema.Column>(featureColumns); 463var metricNames = new List<string>() { "Training-loss" }; 593var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (1)
423var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (1)
91_inputColumnIndexes = new List<int>();
LdSvm\LdSvmTrainer.cs (1)
511var examples = new List<LabelFeatures>();
Optimizer\DifferentiableFunction.cs (2)
204List<int> indices = new List<int>(dirCount); 205List<float> values = new List<float>(dirCount);
Optimizer\LearningRateScheduler.cs (1)
78List<LearningRateSchedulerItem> lrs = new List<LearningRateSchedulerItem>();
Optimizer\Optimizer.cs (1)
222_roList = new List<float>();
Standard\LinearModelParameters.cs (2)
541List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>(); 686List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
Standard\LinearPredictorUtils.cs (2)
196List<KeyValuePair<string, object>> weightValues = new List<KeyValuePair<string, object>>(); 214var list = new List<KeyValuePair<string, Single>>() { new KeyValuePair<string, Single>("(Bias)", bias) };
Standard\LogisticRegression\LbfgsPredictorBase.cs (3)
492var labelsList = new List<int>(); 493var featuresList = new List<float>(); 494var weightsList = new List<float>();
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
836List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
Standard\ModelStatistics.cs (2)
413List<CoefficientStatistics> result = new List<CoefficientStatistics>(ParametersCount - 1); 440var featureNames = new List<string>();
Standard\SdcaBinary.cs (1)
1779var outCols = new List<SchemaShape.Column>()
Microsoft.ML.Sweeper (28)
Algorithms\Grid.cs (3)
70var prevParamSets = previousRuns?.Select(r => r.ParameterSet).ToList() ?? new List<ParameterSet>(); 162: new List<ParameterSet>(); 191var pset = new List<IParameterValue>();
Algorithms\KdoSweeper.cs (4)
106_randomParamSets = new List<ParameterSet>(); 180List<ParameterSet> children = new List<ParameterSet>(); 205List<int> numericParamIndices = new List<int>(); 206List<double> numericParamValues = new List<double>();
Algorithms\NelderMead.cs (5)
100_sweepParameters = new List<IValueGenerator>(); 121_pendingSweeps = new List<KeyValuePair<ParameterSet, float[]>>(); 363var result = new List<KeyValuePair<IRunResult, float[]>>(); 435var result = new List<float>(); 449var parameters = new List<IParameterValue>();
Algorithms\SmacSweeper.cs (6)
98List<IRunResult> viableRuns = new List<IRunResult>(); 270List<ParameterSet> neighbors = new List<ParameterSet>(); 336List<double[]> datasetLeafValues = new List<double[]>(); 340List<double> leafValues = new List<double>(); 396List<ParameterSet> outSet = new List<ParameterSet>(); 423List<IParameterValue> parameters = new List<IParameterValue>();
Algorithms\SweeperProbabilityUtils.cs (3)
63List<double> rvs = new List<double>(); 164var result = new List<float>(); 216List<IParameterValue> parameters = new List<IParameterValue>();
AsyncSweeper.cs (2)
88_results = new List<IRunResult>(); 209_results = new List<IRunResult>();
ConfigRunner.cs (1)
77RunNums = new List<int>();
Parameters.cs (2)
254var result = new List<IParameterValue>(); 386var result = new List<IParameterValue>();
SweepCommand.cs (1)
84var runs = new List<IRunResult>();
SynthConfigRunner.cs (1)
44List<IRunResult> results = new List<IRunResult>();
Microsoft.ML.Sweeper.Tests (13)
TestSweeper.cs (13)
105var initialList = sweeper.ProposeSweeps(5, new List<RunResult>()); 145var paramSets = new List<ParameterSet>(); 203var tasks = new List<Task<ParameterSetWithId>>(); 254var paramSets = new List<ParameterSet>(); 272var results = new List<KeyValuePair<int, IRunResult>>(); 304var paramSets = new List<ParameterSet>(); 356var paramSets = new List<ParameterSet>(); 442var initialList = sweeper.ProposeSweeps(5, new List<RunResult>()); 560var sweeps = sweeper.ProposeSweeps(5, new List<RunResult>()); 563var results = new List<IRunResult>(); 608var sweeps = sweeper.ProposeSweeps(5, new List<RunResult>()); 611var results = new List<IRunResult>(); 659var results = new List<IRunResult>();
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
470var modelFilePaths = new List<string>
Microsoft.ML.TensorFlow.Tests (9)
TensorFlowEstimatorTests.cs (5)
65new List<TestData>(new TestData[] { 78var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[4], B = new float[4] } }; 79var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { a = new string[4], b = new string[4] } }; 80var sizeData = new List<TestDataSize> { new TestDataSize() { a = new float[2], b = new float[2] } }; 106new List<TestData>(new TestData[] {
TensorflowTests.cs (4)
174new List<TestData>(new TestData[] { 246return new List<ShapeData>(new ShapeData[] { 365var data = new List<TypesData>( 985List<string> logMessages = new List<string>();
Microsoft.ML.TestFramework (13)
BaseTestBaseline.cs (3)
126var configurationDirs = new List<string>(); 448List<T> suffixList = new List<T>(); 449List<T> seqList = new List<T>();
BaseTestPredictorsMaml.cs (6)
98List<string> args = new List<string>(); 175List<string> files = new List<string>(); 227List<int> toRemove = new List<int>(); 290List<string> args = new List<string>(); 326List<string> settings = new List<string>(); 469List<string> optionsList = new List<string>();
DataPipe\TestDataPipeBase.cs (3)
383List<int> savable = new List<int>(); 530List<int> savable = new List<int>(); 576List<int> savable = new List<int>();
TestCommandBase.cs (1)
384List<string> args = new List<string>();
Microsoft.ML.TestFrameworkCommon (3)
src\Common\tests\RetryHelper.cs (2)
39var exceptions = new List<Exception>(); 89var exceptions = new List<Exception>();
Utility\PathResolver.cs (1)
70List<string> allRIDs = new List<string>();
Microsoft.ML.Tests (88)
AnomalyDetectionTests.cs (3)
138var samples = new List<DataPoint>() 182var samples = new List<DataPoint>() 267var samples = new List<DataPoint>()
CollectionsDataViewTest.cs (8)
109var data = new List<ConversionSimpleClass> 227var data = new List<ClassWithConstField>() 253var data = new List<ClassWithMixOfFieldsAndProperties>() 307var data = new List<ClassWithPrivateFieldsAndProperties>() 337var data = new List<ClassWithInheritedProperties>() 372var data = new List<ClassWithArrays> 424var data = new List<ClassWithArrayProperties> 475var data = new List<ClassWithGetter>()
ImagesTests.cs (2)
233var images = new List<ImageDataPoint>() { new ImageDataPoint(10, 10, red: 0, green: 0, blue: 255), new ImageDataPoint(10, 10, red: 255, green: 0, blue: 0) }; 1128var inMemoryImages = new List<InMemoryImage>();
OnnxConversionTest.cs (19)
185List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 223List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 281List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 415var samples = new List<DataPoint>() 506ctx.AddInitializer(new List<float> { 9.4f, 1.7f, 3.6f }, new List<long> { 1, 3 }, "floats"); 507ctx.AddInitializer(new List<long> { 94L, 17L, 36L }, new List<long> { 1, 3 }, "int64s"); 508ctx.AddInitializer(new List<string> { "94", "17", "36" }, new List<long> { 1, 3 }, "strings"); 1154var samples = new List<DataPoint>() 1243List<IEstimator<ITransformer>> pipelines = new List<IEstimator<ITransformer>>(); 1439var samples = new List<TextData>() 1466var samples = new List<TextData>() 1546var samples = new List<TextData>() 1570var samples = new List<TextData>() 1649List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 1934List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 1976List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
OnnxSequenceTypeWithAttributesTest.cs (3)
44var dataView = ctx.Data.LoadFromEnumerable(new List<FloatInput>()); 66var keys = new List<string>(onnxOut.Keys); 83var dataView = ctx.Data.LoadFromEnumerable(new List<FloatInput>());
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
77var samples = new List<DataPoint>()
Scenarios\WordBagTest.cs (2)
17var samples = new List<TextData>() 54var samples = new List<TextData>()
TextLoaderTests.cs (3)
1315var ids = new List<string>(); 1316var descriptions = new List<string>(); 1317var animals = new List<string>();
TrainerEstimators\FAFMEstimator.cs (1)
125var data = new List<FfmExample>();
TrainerEstimators\MatrixFactorizationTests.cs (13)
206var dataMatrix = new List<MatrixElement>(); 254var testMatrix = new List<MatrixElementForScore>() { 317var dataMatrix = new List<MatrixElementZeroBased>(); 370var invalidTestMatrix = new List<MatrixElementZeroBasedForScore>() 437var dataMatrix = new List<OneClassMatrixElementZeroBased>(); 481var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 553var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 582var dataMatrix = new List<OneClassMatrixElementZeroBased>(); 622var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 739observedMatrix = new List<OneClassMatrixElement>(); 740fullMatrix = new List<OneClassMatrixElement>(); 764var dataMatrix = new List<MatrixElementZeroBased256By256>(); 803var testMatrix = new List<MatrixElementZeroBasedForScore256By256>();
TrainerEstimators\TreeEstimators.cs (1)
446var dataList = new List<GbmExample>();
Transformers\GroupUngroup.cs (2)
44var data = new List<GroupExample> { 83var data = new List<UngroupExample> {
Transformers\NormalizerTests.cs (3)
897var samples = new List<DataPointOne>() 938var samples = new List<DataPointVec>() 1113var list = new List<float>(num);
Transformers\ValueMappingTests.cs (23)
55var keys = new List<string>() { "foo", "bar", "test", "wahoo" }; 56var values = new List<int>() { 1, 2, 3, 4 }; 93var keys = new List<ReadOnlyMemory<char>>() { "foo".AsMemory(), "bar".AsMemory(), "test".AsMemory(), "wahoo".AsMemory() }; 94var values = new List<int>() { 1, 2, 3, 4 }; 139var keyValuePairs = new List<KeyValuePair<string, string>>() { 174IEnumerable<string> keys = new List<string>() { "foo", "bar", "test" }; 175List<int[]> values = new List<int[]>() { 263IEnumerable<string> keys = new List<string>() { "foo", "bar", "test" }; 264List<string[]> values = new List<string[]>() { 307var keys = new List<string>() { "foo", "bar", "test", "wahoo" }; 308var values = new List<int>() { 1, 2, 3, 4 }; 345var keys = new List<string>() { "foo", "foo" }; 346var values = new List<int>() { 1, 2 }; 364var keyValuePairs = new List<KeyValuePair<string, int>>() { 396var keyValuePairs = new List<KeyValuePair<string, string>>() { 430var keyValuePairs = new List<KeyValuePair<string, uint>>() { 471var keyValuePairs = new List<KeyValuePair<string, ulong>>() { 512var keyValuePairs = new List<KeyValuePair<string, string>>() { 552var keyValuePairs = new List<KeyValuePair<string, string>>() { 594var keyValuePairs = new List<KeyValuePair<string, int>>() { 613var keyValuePairs = new List<KeyValuePair<string, int[]>>() { 633var keyValuePairs = new List<KeyValuePair<ReadOnlyMemory<char>, int>>() { 687var keyValuePairs = new List<KeyValuePair<string, int>>() {
Transformers\WordBagTransformerTests.cs (4)
29var samples = new List<TextData>() 58var samples = new List<TextData>() 87var samplesDefault = new List<TextData>() 96var samplesNonDefault = new List<TextData>()
Microsoft.ML.TimeSeries (47)
AdaptiveSingularSpectrumSequenceModeler.cs (2)
868var sortedComponents = new List<SignalComponent>(); 869var trendComponents = new List<int>();
Deseasonality.cs (1)
76_subSeries[i] = new List<double>();
IidChangePointDetector.cs (1)
270var metadata = new List<SchemaShape.Column>() {
IidSpikeDetector.cs (1)
246var metadata = new List<SchemaShape.Column>() {
PolynomialUtils.cs (2)
168Coefficients = new List<decimal>(coefficients); 288var factors = new List<PolynomialFactor>();
PredictionEngine.cs (1)
220List<StatefulRow> rows = new List<StatefulRow>();
RootCauseAnalyzer.cs (12)
28_preparedCauses = new List<RootCause>(); 56_preparedCauses.Add(new RootCause() { Items = new List<RootCauseItem>() }); 149_preparedCauses.Add(new RootCause { Items = new List<RootCauseItem>() { new RootCauseItem(anomalyDimension) } }); 155RootCause rootCause = new RootCause { Items = new List<RootCauseItem>() }; 182new RootCauseItem(UpdateDimensionValue(anomalyDimension, dimension.DimensionKey, anomaly.Dimension[dimension.DimensionKey]), new List<string>() { dimension.DimensionKey }))); 222List<TimeSeriesPoint> causeList = new List<TimeSeriesPoint>(); 356List<RootCauseScore> scoreList = new List<RootCauseScore>(); 467tree.ChildrenNodes.Add(nextDim, new List<TimeSeriesPoint>()); 481List<BestDimension> ordered = new List<BestDimension>(); 748DetailDims = new List<string>(); 749AggDims = new List<string>(); 761Leaves = new List<TimeSeriesPoint>();
RootCauseLocalizationType.cs (2)
30Items = new List<RootCauseItem>(); 144Path = new List<string>();
SeasonalityDetector.cs (3)
66var rowCursor = input.GetRowCursor(new List<DataViewSchema.Column>() { column.Value }); 71var valueCache = seasonalityWindowSize == -1 ? new List<double>() : new List<double>(seasonalityWindowSize);
SrCnnAnomalyDetectionBase.cs (6)
184List<Single> magList = new List<Single>(); 193List<Single> spectralList = new List<Single>(); 221List<Single> ifftMagList = new List<Single>(); 244List<Single> predictArray = new List<Single>(); 250List<Single> backAddArray = new List<Single>(); 274List<Single> cumSumShift = new List<Single>(cumSumList);
SRCNNAnomalyDetector.cs (1)
278var metadata = new List<SchemaShape.Column>() {
SrCnnEntireAnomalyDetector.cs (8)
281_previousBatch = new List<double>(); 282_batch = new List<double>(); 286_previousBatch = new List<double>(batchSize); 287_batch = new List<double>(batchSize); 753List<Tuple<int, int>> segments = new List<Tuple<int, int>>(); 782List<int> anomalyIndex = new List<int>(); 887List<int> anomalyIdxList = new List<int>(); 908List<Tuple<int, double>> fitValues = new List<Tuple<int, double>>();
SsaChangePointDetector.cs (1)
306var metadata = new List<SchemaShape.Column>() {
SsaSpikeDetector.cs (1)
285var metadata = new List<SchemaShape.Column>() {
STL\FastLoess.cs (1)
44Y = new List<double>();
STL\InnerStl.cs (4)
189_cycleSubSeries[i] = new List<double>(); 190_smoothedSubseries[i] = new List<double>(); 301var newXValues = new List<double>(length); 313List<double> results = new List<double>(s.Count);
Microsoft.ML.TimeSeries.Tests (43)
TimeSeriesDirectApi.cs (20)
112List<Data> data = new List<Data>(size); 134List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08, 157List<Data> data = new List<Data>(); 187List<double> expectedValues = new List<double>() { 0, -3.31410551071167, 0.5, 5.12000000000001E-08, 0, 1.570083498954773, 5.2001145245395008E-07, 213List<Data> data = new List<Data>(); 289List<Data> data = new List<Data>(); 359List<Data> data = new List<Data>(); 394List<float> expectedForecast = new List<float>() { 0.191492021f, 2.53994060f, 5.26454258f, 7.37313938f }; 395List<float> minCnf = new List<float>() { -3.9741986f, -2.36872721f, 0.09407699f, 2.18899393f }; 396List<float> maxCnf = new List<float>() { 4.3571825f, 7.4486084f, 10.435008f, 12.5572853f }; 422List<Data> data = new List<Data>(); 546var data = new List<TimeSeriesData>(); 602data = new List<TimeSeriesDataDouble>(); 958var rootCauseLocalizationInput = new RootCauseLocalizationInput(GetRootCauseTimestamp(), GetRootCauseAnomalyDimension("UK", _rootCauseAggSymbol), new List<MetricSlice>() { new MetricSlice(GetRootCauseTimestamp(), GetRootCauseLocalizationPoints(_rootCauseAggSymbol)) }, AggregateType.Sum, _rootCauseAggSymbol); 985var rootCauseLocalizationInput = new RootCauseLocalizationInput(GetRootCauseTimestamp(), GetRootCauseAnomalyDimension("UK", _rootCauseAggSymbol), new List<MetricSlice>() { new MetricSlice(GetRootCauseTimestamp(), GetRootCauseLocalizationPoints(_rootCauseAggSymbol)) }, AggregateType.Sum, _rootCauseAggSymbol); 1031List<MetricSlice> slice = new List<MetricSlice> 1085List<TimeSeriesPoint> points = new List<TimeSeriesPoint>(); 1181List<MetricSlice> slice = new List<MetricSlice> 1215List<MetricSlice> slice = new List<MetricSlice> 1229List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
TimeSeriesEstimatorTests.cs (15)
53List<Data> data = new List<Data>(); 66var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 67var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 85List<Data> data = new List<Data>(); 102var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 103var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 123List<Data> data = new List<Data>(); 136var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 137var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 154List<Data> data = new List<Data>(); 163var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 164var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 181List<Data> data = new List<Data>(); 190var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 191var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } };
TimeSeriesSimpleApiTests.cs (8)
43var data = new List<Data>(size); 62List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08, 85var data = new List<Data>(); 105List<double> expectedValues = new List<double>() { 0, -3.31410598754883, 0.5, 5.12000000000001E-08, 0, 1.5700820684432983, 5.2001145245395008E-07, 128List<Data> data = new List<Data>(size); 145var expectedValues = new List<double[]>() { 180List<Data> data = new List<Data>(size); 197var expectedValues = new List<double[]>() {
Microsoft.ML.Tokenizers (43)
Model\BertTokenizer.cs (8)
247list = new List<int>(ids); 269list = new List<int>(ids); 308ids = new(capacity) { ClassificationTokenId }; 313ids = new List<int>(10) { ClassificationTokenId }; 419mask = new List<int>(capacity); 423mask = new List<int>(10); 575typeIds = new List<int>(capacity); 579typeIds = new List<int>(10);
Model\BpeOptions.cs (1)
69List<string> merges = new();
Model\BPETokenizer.cs (2)
454List<EncodedToken> tokens = new(); 513List<int> ids = new();
Model\CodeGenTokenizer.cs (4)
379List<EncodedToken> tokens = new(); 618List<int> ids = new(); 1610return new List<EncodedToken> { new EncodedToken(_vocab[new StringSpanOrdinalKey(tokenValue)].Id, tokenValue, new Range(mapping[0], mapping[0] + 1)) }; 1659List<EncodedToken> result = new List<EncodedToken>(text.Length);
Model\EnglishRobertaTokenizer.cs (11)
334List<EncodedToken> tokens = new(); 433List<int> ids = new(); 836List<int> list = new List<int>(ids.Count); 858List<int> list = new List<int>(ids.Count); 880List<int> list = new List<int>(ranks.Count); 921List<EncodedToken> list = new List<EncodedToken>(tokens.Count); 961return new List<EncodedToken> { new EncodedToken(_vocab[new StringSpanOrdinalKey(tokenValue)], tokenValue, new Range(indexMapping[0], indexMapping[0] + 1)) }; 964List<string> word = new(token.Length); 975var newWord = new List<string>(); 1045var tokens = new List<EncodedToken>(word.Count); 1114_symbols = new List<(int, int)>();
Model\SentencePieceBpeModel.cs (2)
91List<EncodedToken> tokens = new(); 343List<int> ids = new();
Model\SentencePieceTokenizer.cs (4)
516?? new List<(string Piece, float Score)>(vocab); 627List<(string Piece, float Score)> vocab = new List<(string Piece, float Score)>(vocabElement.GetArrayLength()); 804prefixTokens = new List<(int Id, string Token)>(); 805suffixTokens = new List<(int Id, string Token)>();
Model\SentencePieceUnigramModel.cs (2)
384List<EncodedToken> tokens = new(); 845List<int>? ids = new();
Model\TiktokenTokenizer.cs (2)
276List<EncodedToken> tokens = new(); 386List<int> ids = new();
Model\WordPieceTokenizer.cs (2)
290List<EncodedToken> tokens = new(); 413List<int> ids = new();
Normalizer\SentencePieceNormalizationStep.cs (1)
139var children = new List<SentencePieceNormalizationStep>();
PreTokenizer\CompositePreTokenizer.cs (1)
56var list = new List<PreTokenizer>(specialTokens.Count + 1);
SentencepieceModel.cs (1)
174internal List<Types.SentencePiece> Pieces { get; } = new();
Utils\DoubleArrayTrie.cs (1)
26private readonly List<uint> _units = new();
Utils\PriorityQueue.cs (1)
21_data = new List<T>(capacity);
Microsoft.ML.Tokenizers.Data.Tests (2)
src\Common\tests\RetryHelper.cs (2)
39var exceptions = new List<Exception>(); 89var exceptions = new List<Exception>();
Microsoft.ML.Tokenizers.Tests (41)
BpeTests.cs (1)
1031List<PreTokenizer> preTokenizers = new List<PreTokenizer>();
CodeGenTests.cs (12)
552var idList = new List<int>(expectedIds); 554var tokensList = new List<string>(expectedTokens); 575idList = new List<int>(expectedIdsWithSpace); 577tokensList = new List<string>(expectedTokensWithSpace); 685idList = new List<int>(expectedIds); 687tokensList = new List<string>(expectedTokens); 708idList = new List<int>(expectedIdsWithSpace); 710tokensList = new List<string>(expectedTokensWithSpace); 818idList = new List<int>(expectedIds); 821tokensList = new List<string>(expectedTokens); 847idList = new List<int>(expectedIdsWithSpace); 850tokensList = new List<string>(expectedTokensWithSpace);
NormalizerTests.cs (1)
96List<int> mapping = new List<int>();
PreTokenizerTests.cs (1)
85List<(int Offset, int Length)> splits = new();
src\Common\tests\RetryHelper.cs (2)
39var exceptions = new List<Exception>(); 89var exceptions = new List<Exception>();
src\Microsoft.ML.Tokenizers\Utils\DoubleArrayTrie.cs (1)
26private readonly List<uint> _units = new();
TiktokenTests.cs (13)
150Assert.Equal(new List<int>() { 9906, 4435 }, encoded); 162Assert.Equal(new List<Range> { new Range(0, 5), new Range(5, 11) }, offsets); 203Assert.Equal(new List<int>() { 100264, 9906, 4435, 100265 }, encoded); 216Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 6), (23, 10) }, offsets); 246Assert.Equal(new List<int>() { 100264, 9906, 100265, 4435 }, encoded); 259Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 10), (27, 6) }, offsets); 281Assert.Equal(new List<int>() { 100264, 9906, 2928, 99834, 4435, 100265 }, encoded); 289Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 2), (18, 1), (19, 6), (25, 10) }, result.Select(token => (token.Offset.Start.Value, token.Offset.End.Value - token.Offset.Start.Value)).ToArray()); 317Assert.Equal(new List<int>() { 199999, 13225, 161181, 5922, 200018 }, encoded); 326Assert.Equal(new List<(int, int)> { (0, 13), (13, 5), (18, 2), (20, 6), (26, 15) }, result.Select(token => (token.Offset.Start.Value, token.Offset.End.Value - token.Offset.Start.Value)).ToArray()); 807Assert.Equal(new List<int>() { 100264, 9906, 100266, 4435, 100265, 100349 }, encoded); 845new List<int> { 199998, 200006, 200008, 13225, 5922, 200007, 199999 }, 852Assert.Equal(new List<(int, int)> { (0, 15), (15, 24), (24, 35), (35, 40), (40, 46), (46, 53), (53, 66) },
TokenizerTests.cs (1)
107var tokens = new List<EncodedToken>();
UnigramTests.cs (9)
500IReadOnlyList<int> ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>(); 506ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index).AsSpan(), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>(); 512ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>(); 518ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index).AsSpan(), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>(); 570var vocab = new List<(string Piece, float Score)> 608var vocab = new List<(string Piece, float Score)> { ("a", 0f) }; 674var vocab = new List<(string Piece, float Score)> 696var vocab = new List<(string Piece, float Score)> 1285var vocab = new List<(string Piece, float Score)>
Microsoft.ML.TorchSharp (79)
AutoFormerV2\Anchors.cs (2)
76allAnchors = torch.cat(new List<Tensor>() { allAnchors, shiftedAnchors }, dim: 0); 141List<Tensor> tensors = new List<Tensor> { shiftXExpand, shiftYExpand, shiftXExpand, shiftYExpand };
AutoFormerV2\Attention.cs (4)
49windowResolution ??= new List<int>() { 14, 14 }; 63var points = new List<List<int>>(); 68points.Add(new List<int>() { i, j }); 74var idxs = new List<int>();
AutoFormerV2\AutoformerV2.cs (1)
43this.neck = new FPN(inChannels: new List<int>() { embedChannels[1], embedChannels[2], embedChannels[3] });
AutoFormerV2\AutoFormerV2Backbone.cs (7)
60embedChannels ??= new List<int>() { 96, 192, 384, 576 }; 61depths ??= new List<int>() { 2, 2, 6, 2 }; 62numHeads ??= new List<int>() { 3, 6, 12, 18 }; 63windowSizes ??= new List<int>() { 7, 7, 14, 7 }; 64outIndices ??= new List<int>() { 1, 2, 3 }; 72var dpr = new List<double>(); 121var outs = new List<Tensor>();
AutoFormerV2\AutoFormerV2Block.cs (1)
57List<int> windowResolution = new List<int>() { windowSize, windowSize };
AutoFormerV2\BasicLayer.cs (2)
69List<int> hSlicesStartAndEnd = new List<int>() { 0, hp - this.windowSize, hp - this.windowSize, hp - this.shiftSize, hp - this.shiftSize, hp }; 70List<int> wSlicesStartAndEnd = new List<int>() { 0, wp - this.windowSize, wp - this.windowSize, wp - this.shiftSize, wp - this.shiftSize, wp };
AutoFormerV2\FPN.cs (3)
35inChannels ??= new List<int>() { 192, 384, 576 }; 71var laterals = new List<Tensor>(); 83var outs = new List<Tensor>();
AutoFormerV2\ObjectDetectionMetrics.cs (7)
64List<List<ObjectLabel>> objectLabelListOut = new(); 103iouDic.Add(label, new List<Tuple<float, float>>()); 182List<Tuple<int, int, float>> tupleList = new(); // annotaIndex, detectIndex, iouScore 299var data = new List<List<ObjectLabel>>(); 316var l = new List<ObjectLabel>(); 344var data = new List<List<ObjectLabel>>(); 358var l = new List<ObjectLabel>();
AutoFormerV2\ObjectDetectionTrainer.cs (12)
84public List<int> Steps = new List<int> { 6 }; 218embedChannels: new List<int>() { 64, 128, 256, 448 }, 219depths: new List<int>() { 2, 2, 6, 2 }, 220numHeads: new List<int>() { 2, 4, 8, 14 }, 377List<Tensor> part = new List<Tensor>(); 446var metadata = new List<SchemaShape.Column>(); 450var scoreMetadata = new List<SchemaShape.Column>(); 551var scoreMetadata = new List<SchemaShape.Column>(); 689embedChannels: new List<int>() { 64, 128, 256, 448 }, 690depths: new List<int>() { 2, 2, 6, 2 }, 691numHeads: new List<int>() { 2, 4, 8, 14 }, 911var part = new List<Tensor>();
AutoFormerV2\RetinaHead.cs (2)
69var clsOutputs = new List<Tensor>(); 70var regOutputs = new List<Tensor>();
Loss\FocalLoss.cs (3)
40var classificationLosses = new List<Tensor>(); 41var regressionLosses = new List<Tensor>(); 143targets = torch.stack(new List<Tensor> { targetsDx, targetsDy, targetsDw, targetsDh });
NasBert\Models\NasBertEncoder.cs (1)
256var hiddenSizePerBlock = new List<int>();
NasBert\Modules\Embedding\SinusoidalPositionalEmbedding.cs (2)
45var embedding = torch.cat(new List<torch.Tensor> { sinEmbed, cosEmbed }, 1); 51embedding = torch.cat(new List<torch.Tensor> { embedding, zeroPad }, 1);
NasBert\Modules\MultiHeadAttention.cs (7)
206k = torch.cat(new List<torch.Tensor> { k, kRepeat }, dim: 0); 207v = torch.cat(new List<torch.Tensor> { v, vRepeat }, dim: 0); 224: torch.cat(new List<torch.Tensor> { prevKey, k }, dim: 1); 232: torch.cat(new List<torch.Tensor> { prevValue, v }, dim: 1); 258k = torch.cat(new List<torch.Tensor> { k, kZeros }, dim: 1); 259v = torch.cat(new List<torch.Tensor> { v, vZeros }, dim: 1); 310return torch.cat(new List<torch.Tensor> { tensor, zeros }, dim: 1);
NasBert\NasBertTrainer.cs (5)
92public IReadOnlyList<double> AdamBetas = new List<double> { .9, .999 }; 113public List<double> LearningRate = new List<double> { 1e-4 }; 328var metadata = new List<SchemaShape.Column>(); 343var metadata = new List<SchemaShape.Column>(); 587List<int> newList = new List<int>(tokenizer.EncodeToConverted(sentence1.ToString()));
NasBert\NerTrainer.cs (1)
71LearningRate = new List<double>() { 2e-4 };
NasBert\SentenceSimilarityTrainer.cs (2)
70LearningRate = new List<double>() { .0002 }; 97LearningRate = new List<double>() { .0002 },
Roberta\QATrainer.cs (6)
82LearningRate = new List<double>() { .000001 }; 282List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 283List<Tensor> targetTensors = new List<Tensor>(Parent.Option.BatchSize); 420var targetList = new List<int> { mapping[answerIndex] + 2 + questionTokenId.Count, mapping[answerEnd] + 2 + questionTokenId.Count }; 510var scoreMetadata = new List<SchemaShape.Column>(); 596var scoreMetadata = new List<SchemaShape.Column>
TorchSharpBaseTrainer.cs (4)
206List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 207List<TTargetsCol> targets = new List<TTargetsCol>(Parent.Option.BatchSize); 278List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 279List<TTargetsCol> targets = new List<TTargetsCol>(Parent.Option.BatchSize);
Utils\ImageUtils.cs (6)
49var finalResult = new[] { new List<Tensor>(), new List<Tensor>(), new List<Tensor>() }; 119var keep = new List<long>(); 191new List<Tensor> { predBoxesX1, predBoxesY1, predBoxesX2, predBoxesY2 }, 220new List<Tensor> { clippedBoxesX0, clippedBoxesY0, clippedBoxesX1, clippedBoxesY1 },
Utils\MetricUtils.cs (1)
36var topK = new List<(int start, int end, float score)>();
Microsoft.ML.TorchSharp.Tests (9)
NerTests.cs (2)
47new List<TestSingleSentenceData>(new TestSingleSentenceData[] { 126new List<TestSingleSentenceData>(new TestSingleSentenceData[] {
ObjectDetectionTests.cs (1)
71var logs = new List<LoggingEventArgs>();
QATests.cs (1)
33new List<TestSingleSentenceData>(new TestSingleSentenceData[] {
TextClassificationTests.cs (5)
55new List<TestSingleSentenceData>(new TestSingleSentenceData[] { 118new List<TestSingleSentenceDataNoLabel>(new TestSingleSentenceDataNoLabel[] { 192new List<TestSingleSentenceData>(new TestSingleSentenceData[] { 265new List<TestDoubleSentenceData>(new TestDoubleSentenceData[] { 348new List<TestSentenceSimilarityData>(new TestSentenceSimilarityData[] {
Microsoft.ML.Transforms (82)
CountFeatureSelection.cs (5)
176var metadata = new List<SchemaShape.Column>(); 250var dropSlotsCols = new List<SlotsDroppingTransformer.ColumnOptions>(); 251var copyCols = new List<(string outputColumnName, string inputColumnName)>(); 254var slots = new List<(int min, int? max)>(); 301var activeCols = new List<DataViewSchema.Column>();
Dracula\CountTableTransformer.cs (2)
160var cols = new List<DataViewSchema.Column>(); 339var newMetadataKinds = new List<SchemaShape.Column>();
Expression\CodeGen.cs (1)
145_cacheWith = new List<CachedWithLocal>();
Expression\LambdaBinder.cs (2)
38_rgwith = new List<WithNode>(); 1305var candidates = new List<Candidate>();
Expression\LambdaParser.cs (6)
170_lineMap = new List<int>(); 203_errors = new List<Error>(); 367var items = new List<ParamNode>(); 631List<Node> list = new List<Node>(); 632List<Token> ops = new List<Token>(); 719List<Node> list = new List<Node>();
Expression\MethodGenerator.cs (1)
180locals = new List<LocalBuilder>(4);
ExpressionTransformer.cs (1)
191var metadata = new List<SchemaShape.Column>();
GcnTransform.cs (1)
920var metadata = new List<SchemaShape.Column>();
KeyToVectorMapping.cs (1)
478var metadata = new List<SchemaShape.Column>();
LearnerFeatureSelection.cs (1)
144var slots = new List<(int min, int? max)>();
MissingValueHandlingTransformer.cs (5)
141var replaceCols = new List<MissingValueReplacingEstimator.ColumnOptions>(); 142var naIndicatorCols = new List<MissingValueIndicatorTransformer.Column>(); 143var naConvCols = new List<TypeConvertingEstimator.ColumnOptions>(); 144var concatCols = new List<ColumnConcatenatingTransformer.TaggedColumn>(); 145var dropCols = new List<string>();
MissingValueIndicatorTransformer.cs (2)
281var indices = new List<int>(); 542var metadata = new List<SchemaShape.Column>();
MissingValueReplacing.cs (2)
288var sourceColumns = new List<DataViewSchema.Column>(); 1045var metadata = new List<SchemaShape.Column>();
MutualInformationFeatureSelection.cs (6)
243var metadata = new List<SchemaShape.Column>(); 330var dropCols = new List<SlotsDroppingTransformer.ColumnOptions>(); 331var copyCols = new List<(string outputColumnName, string inputColumnName)>(); 335var slots = new List<(int min, int? max)>(); 432_singles = new List<float>(); 433_doubles = new List<double>();
OneHotEncoding.cs (3)
102var columns = new List<OneHotEncodingEstimator.ColumnOptions>(); 283var binaryCols = new List<(string outputColumnName, string inputColumnName)>(); 284var cols = new List<(string outputColumnName, string inputColumnName, bool bag)>();
OneHotHashEncoding.cs (3)
151var columns = new List<OneHotHashEncodingEstimator.ColumnOptions>(); 331var binaryCols = new List<(string outputColumnName, string inputColumnName)>(); 332var cols = new List<(string outputColumnName, string inputColumnName, bool bag)>();
PermutationFeatureImportance.cs (2)
43var metricsDelta = new List<TResult>(); 137List<float> initialfeatureValuesList = new List<float>();
RandomFourierFeaturizing.cs (1)
283var activeColumns = new List<DataViewSchema.Column>();
SvmLight\SvmLightLoader.cs (2)
185var keys = new List<ReadOnlyMemory<char>>(); 186var values = new List<float>();
SvmLight\SvmLightSaver.cs (1)
122var columns = new List<DataViewSchema.Column>() { labelCol.Value, featureCol.Value };
Text\LdaSingleBox.cs (3)
228var topicRet = new List<KeyValuePair<int, float>>(); 286var topicRet = new List<KeyValuePair<int, float>>(); 319var topicRet = new List<KeyValuePair<int, float>>();
Text\LdaTransform.cs (4)
344var itemScores = new List<ModelParameters.ItemScore>(); 361var wordScores = new List<ModelParameters.WordItemScore>(); 829var activeColumns = new List<DataViewSchema.Column>(); 833var columnMappings = new List<VBuffer<ReadOnlyMemory<char>>>();
Text\NgramHashingTransformer.cs (2)
200var sourceColumnsForInvertHash = new List<DataViewSchema.Column>(); 1225var metadata = new List<SchemaShape.Column>();
Text\NgramTransform.cs (4)
231var activeCols = new List<DataViewSchema.Column>(); 585ngramIds[i] = new List<long>(); 586ngramIndexes[i] = new List<long>(); 1087var metadata = new List<SchemaShape.Column>();
Text\SentimentAnalyzingTransform.cs (1)
121var toHide = new List<string>(colNames.Length);
Text\StopWordsRemovingTransformer.cs (2)
414var list = new List<ReadOnlyMemory<char>>(); 1105var list = new List<ReadOnlyMemory<char>>();
Text\TextFeaturizingEstimator.cs (4)
452List<string> tempCols = new List<string>(); 562var xfCols = new List<LpNormNormalizingEstimator.ColumnOptions>(2); 585var srcTaggedCols = new List<KeyValuePair<string, string>>(2); 651var metadata = new List<SchemaShape.Column>(2);
Text\TextNormalizing.cs (1)
364var list = new List<ReadOnlyMemory<char>>();
Text\TokenizingByCharacters.cs (1)
692var metadata = new List<SchemaShape.Column>();
Text\WordBagTransform.cs (2)
466var termCols = new List<Column>(); 490var columnOptions = new List<ValueToKeyMappingEstimator.ColumnOptionsBase>();
Text\WordEmbeddingsExtractor.cs (2)
139var labels = new List<string>(); 424var tensorD = new List<float>();
Text\WordHashBagProducingTransform.cs (3)
105var tokenizeColumns = new List<WordTokenizingEstimator.ColumnOptions>(); 108List<string> tmpColNames = new List<string>(); 335var hashColumns = new List<HashingEstimator.ColumnOptions>();
Text\WordTokenizing.cs (4)
254var terms = new List<ReadOnlyMemory<char>>(); 283var terms = new List<ReadOnlyMemory<char>>(); 337var toHide = new List<string>(); 338var toDeclare = new List<KeyValuePair<string, JToken>>();
UngroupTransform.cs (1)
489var needed = new List<Func<int>>();
Microsoft.ML.Vision (4)
ImageClassificationTrainer.cs (4)
636var metadata = new List<SchemaShape.Column>(); 815List<(long, float[])> featurizedImages = new List<(long, float[])>(); 928List<string> runnerInputTensorNames = new List<string>(); 929List<string> runnerOutputTensorNames = new List<string>();
Microsoft.NET.Build.Containers (7)
AuthHandshakeMessageHandler.cs (1)
618requestExceptions ??= new();
ImageBuilder.cs (1)
41_manifest = new ManifestV2() { SchemaVersion = manifest.SchemaVersion, Config = manifest.Config, Layers = new(manifest.Layers), MediaType = manifest.MediaType };
ImageConfig.cs (2)
72private List<HistoryEntry> GetHistory() => _config["history"]?.AsArray().Select(node => node.Deserialize<HistoryEntry>()!).ToList() ?? new List<HistoryEntry>(); 343return new();
LocalDaemons\ContainerRuntimes.cs (1)
262var createdImages = new List<string>();
Tasks\ParseContainerProperties.cs (2)
211var v = new List<string>(); 212var i = new List<string>();
Microsoft.NET.Build.Extensions.Tasks (4)
AddFacadesToReferences.cs (1)
33List<ITaskItem> updatedReferences = new();
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (2)
64unresolvedConflictsForKey = new List<TConflictItem>(); 102List<TConflictItem> newUnresolvedConflicts = new();
src\sdk\src\Tasks\Common\ConflictResolution\FrameworkListReader.cs (1)
65var ret = new List<ConflictItem>();
Microsoft.NET.Build.Tasks (94)
_generated\3\SdkVulnerabilitySummaryContext.ListSdkCveSummary.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>(),
ApplyImplicitVersions.cs (2)
32List<string> buildWarnings = new(); 34var packageReferencesToUpdate = new List<ITaskItem>();
AssetsFileResolver.cs (1)
34List<ResolvedFile> results = new();
CheckForDuplicateFrameworkReferences.cs (2)
37List<ITaskItem> itemsToAdd = new(); 38List<ITaskItem> itemsToRemove = new();
CheckForImplicitPackageReferenceOverrides.cs (2)
31List<ITaskItem> itemsToRemove = new(); 32List<ITaskItem> itemsToAdd = new();
CheckForUnsupportedWinMDReferences.cs (1)
26List<ITaskItem> winMDReferences = new();
CollectSDKReferencesDesignTime.cs (2)
39var sdkDesignTimeList = new List<ITaskItem>(SdkReferences); 69var implicitPackages = new List<ITaskItem>();
CreateWindowsSdkKnownFrameworkReferences.cs (2)
40List<ITaskItem> knownFrameworkReferences = new(); 98knownFrameworkReferencesByWindowsSdkVersion[windowsSdkVersionParsed] = new();
DependencyContextBuilder.cs (8)
141_mainProjectDependencies = new List<string>(); 270List<ModifiableRuntimeLibrary> runtimeLibraries = new(); 409List<CompilationLibrary> compilationLibraries = new(); 558List<Dependency> dependencies = new(); 645List<RuntimeAssetGroup> runtimeAssemblyGroups = new(); 646List<RuntimeAssetGroup> nativeLibraryGroups = new(); 647List<ResourceAssembly> resourceAssemblies = new(); 736List<string> assemblies = new();
FilterResolvedFiles.cs (2)
18private readonly List<ITaskItem> _assembliesToPublish = new(); 19private readonly List<ITaskItem> _packagesResolved = new();
FindItemsFromPackages.cs (1)
36var itemsFromPackages = new List<ITaskItem>();
FrameworkPackages\FrameworkPackages.cs (1)
85var frameworkPackages = new List<FrameworkPackages>();
GenerateBundle.cs (1)
129var fileSpec = new List<FileSpec>(FilesToBundle.Length);
GenerateDepsFile.cs (3)
113List<ITaskItem> _filesWritten = new(); 284var affectedLibs = new List<string>(); 285var affectedRids = new List<string>();
GenerateRuntimeConfigurationFiles.cs (4)
73List<ITaskItem> _filesWritten = new(); 140isFrameworkDependent: true, new List<LockFileItem>()); 205var frameworks = new List<RuntimeConfigFramework>(); 376runtimeOptions.AdditionalProbingPaths = new List<string>();
GenerateShims.cs (1)
78var embeddedApphostPaths = new List<ITaskItem>();
GenerateSupportedTargetFrameworkAlias.cs (1)
39IList<ITaskItem> convertedTfms = new List<ITaskItem>();
GetEmbeddedApphostPaths.cs (1)
37var embeddedApphostPaths = new List<ITaskItem>();
GetPackagesToPrune.cs (1)
136List<string> runtimeFrameworks = new List<string>();
GetPublishItemsOutputGroupOutputs.cs (1)
22var list = new List<ITaskItem>();
ParseTargetManifests.cs (1)
48var resultPackages = new List<ITaskItem>();
PrepareForReadyToRunCompilation.cs (7)
69private List<ITaskItem> _compileList = new(); 70private List<ITaskItem> _symbolsCompileList = new(); 71private List<ITaskItem> _r2rFiles = new(); 72private List<ITaskItem> _r2rReferences = new(); 73private List<ITaskItem> _r2rCompositeReferences = new(); 74private List<ITaskItem> _r2rCompositeInput = new(); 75private List<ITaskItem> _r2rCompositeUnrootedInput = new();
ProcessFrameworkReferences.cs (8)
457packagesToDownload = new List<ITaskItem>(); 458runtimeFrameworks = new List<ITaskItem>(); 459targetingPacks = new List<ITaskItem>(); 460runtimePacks = new List<ITaskItem>(); 461unavailableRuntimePacks = new List<ITaskItem>(); 472packagesToDownload ??= new List<ITaskItem>(); 474List<ITaskItem> implicitPackageReferences = new(); 914List<string> aotPackRuntimeIdentifiers = new List<string>();
ProduceContentAssets.cs (3)
19private readonly List<ITaskItem> _contentItems = new(); 20private readonly List<ITaskItem> _fileWrites = new(); 21private readonly List<ITaskItem> _copyLocalItems = new();
ReferenceInfo.cs (2)
40_resourceAssemblies = new List<ResourceAssemblyInfo>(); 45List<ReferenceInfo> referenceInfos = new();
RemoveDuplicatePackageReferences.cs (1)
19private readonly List<ITaskItem> _packageList = new();
ResolveAppHosts.cs (1)
170var packAsToolShimAppHostPacks = new List<ITaskItem>();
ResolveCopyLocalAssets.cs (1)
18private readonly List<ITaskItem> _resolvedAssets = new();
ResolveFrameworkReferences.cs (1)
33var resolvedFrameworkReferences = new List<TaskItem>(FrameworkReferences.Length);
ResolvePackageAssets.cs (3)
765_metadataStrings = new List<string>(InitialStringTableCapacity); 766_bufferedMetadata = new List<int>(); 1008_potentialAnalyzers ??= new List<(string, LockFileLibrary, Version)>();
ResolvePackageDependencies.cs (5)
32private readonly List<ITaskItem> _targetDefinitions = new(); 33private readonly List<ITaskItem> _packageDefinitions = new(); 34private readonly List<ITaskItem> _fileDefinitions = new(); 35private readonly List<ITaskItem> _packageDependencies = new(); 36private readonly List<ITaskItem> _fileDependencies = new();
ResolveRuntimePackAssets.cs (1)
35var runtimePackAssets = new List<ITaskItem>();
ResolveTargetingPackAssets.cs (9)
136List<TaskItem> referencesToAdd = new(); 137List<TaskItem> analyzersToAdd = new(); 138List<TaskItem> platformManifests = new(); 139List<TaskItem> packageConflictOverrides = new(); 140List<string> preferredPackages = new(); 141List<string> errors = new(); 287List<TaskItem> deduplicatedItems = new(items.Count); 373List<TaskItem> referenceItemsFromThisFramework = new(); 374List<TaskItem> analyzerItemsFromThisFramework = new();
SelectRuntimeIdentifierSpecificItems.cs (1)
61var selectedItems = new List<ITaskItem>();
SingleProjectInfo.cs (5)
17private UnreferencedProjectInfo() : base(string.Empty, string.Empty, string.Empty, string.Empty, new List<ReferenceInfo>(), new List<ResourceAssemblyInfo>()) 51_dependencyReferences = dependencyReferences ?? new List<ReferenceInfo>(); 52_resourceAssemblies = resourceAssemblies ?? new List<ResourceAssemblyInfo>(); 57List<ResourceAssemblyInfo> resourceAssemblies = new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (2)
304var list = new List<string>(); 327var list = new List<T>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSuggestionFinder.cs (1)
48partialSuggestions = new List<WorkloadSuggestionCandidate>();
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (2)
64unresolvedConflictsForKey = new List<TConflictItem>(); 102List<TConflictItem> newUnresolvedConflicts = new();
src\sdk\src\Tasks\Common\ConflictResolution\FrameworkListReader.cs (1)
65var ret = new List<ConflictItem>();
TypeLibraryDictionaryBuilder.cs (1)
16List<string> errorsLocal = new();
Microsoft.NET.HostModel (8)
Bundle\Bundler.cs (1)
494var excluded = new List<FileSpec>();
Bundle\Manifest.cs (1)
91Files = new List<FileEntry>();
MachO\BinaryFormat\Blobs\SuperBlob.cs (2)
124var blobs = new List<IBlob>((int)count); 125var blobIndices = new List<BlobIndex>((int)count);
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (3)
199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>(); 200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>(); 201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>();
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (1)
63relatedNameReferences = new List<ObjectDataBuilder.Reservation>();
Microsoft.Net.Http.Headers (6)
CacheControlHeaderValue.cs (1)
532var nameValueList = new List<NameValueHeaderValue>();
HttpHeaderParser.cs (2)
93results = new List<T>(); // Allocate it only when used 135var parsedValues = new List<T>();
ObjectCollection.cs (2)
24var list = other == null ? new List<T>() : new List<T>(other);
SetCookieHeaderValue.cs (1)
184get => _extensions ??= new List<StringSegment>();
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (6)
CreateBlazorTrimmerRootDescriptorFile.cs (1)
50var attributes = new List<XAttribute>
GenerateBlazorWebAssemblyBootJson50.cs (1)
79config = new List<string>(),
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (2)
299var included = new List<StaticWebAsset>(assets.Length); 1851var result = new List<string>(_defaultPropertyNames.Length + _additionalCustomMetadata.Count);
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (1)
419var result = new List<StaticWebAssetPathPattern>();
UpgradeLegacyWasmStaticWebAssets.cs (1)
21var upgradedAssets = new List<ITaskItem>();
Microsoft.NET.Sdk.Publish.Tasks (22)
Kudu\KuduVfsDeploy.cs (1)
20_postTasks = new List<System.Threading.Tasks.Task>();
MsDeploy\CommonUtility.cs (2)
890List<string> arguments = new(6); 1418List<Framework.ITaskItem> optimizedValueList = new(sortedList);
MsDeploy\VSMSDeployHostObject.cs (1)
25_items = new List<TaskItem>();
MsDeploy\VsMSDeployObject.cs (7)
141List<string> linksList = new(linksArray); 145return new List<string>(0); 190List<object> matchedList = new(); 339IList<ParameterInfo> m_iListParameter = new List<ParameterInfo>(); 340IList<ProviderOption> m_iListProviderOption = new List<ProviderOption>(); 341IList<ParameterInfoWithEntry> m_iListParameterWithEntry = new List<ParameterInfoWithEntry>(); 342IList<string> m_iListSetParametersFiles = new List<string>();
Tasks\GenerateEnvTransform.cs (2)
32List<string> generatedFiles = new(); 95var keyValuePairs = new List<KeyValuePair<string, string>>();
Tasks\MsDeploy\ImportParameterFile.cs (1)
18private List<Framework.ITaskItem> m_parametersList = new(8);
Tasks\MsDeploy\MSDeploy.cs (8)
597List<string> arguments = new(6); 612List<string> arguments = new(6); 632List<string> idenities = new(6); 677List<string> arguments = new(6); 723List<string> arguments = new(6); 753List<string> arguments = new(6); 761List<string> identities = new(6); 826List<string> arguments = new(6);
Microsoft.NET.Sdk.Razor.Tasks (5)
FindAssembliesWithReferencesTo.cs (1)
29var referenceItems = new List<AssemblyItem>(Assemblies.Length);
ReferenceResolver.cs (2)
36var applicationParts = new List<string>(); 119var references = new List<AssemblyItem>(metadataReader.AssemblyReferences.Count);
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerRequest.cs (2)
86var requestArgs = new List<RequestArgument>(requestLength) 153var argumentsBuilder = new List<RequestArgument>((int)argumentCount);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (67)
ApplyCompressionNegotiation.cs (2)
205routeEndpoints = new List<StaticWebAssetEndpoint>(5); 287var headers = new List<StaticWebAssetEndpointResponseHeader>(7);
CollectStaticWebAssetsToCopy.cs (1)
27var copyToOutputFolder = new List<ITaskItem>();
Compression\DiscoverPrecompressedAssets.cs (1)
37var assetsToUpdate = new List<ITaskItem>();
Compression\ResolveCompressedAssets.cs (1)
73var matchingCandidateAssets = new List<StaticWebAsset>(CandidateAssets.Length);
ComputeEndpointsForReferenceStaticWebAssets.cs (2)
31var routeSegments = new List<PathTokenizer.Segment>(); 32var basePathSegments = new List<PathTokenizer.Segment>();
ComputeReferenceStaticWebAssetItems.cs (2)
54var resultAssets = new List<StaticWebAsset>(existingAssets.Count); 115var patterns = new List<StaticWebAssetsDiscoveryPattern>();
ComputeStaticWebAssetsForCurrentProject.cs (1)
33var resultAssets = new List<StaticWebAsset>(currentProjectAssets.Count);
Data\StaticWebAsset.cs (2)
299var included = new List<StaticWebAsset>(assets.Length); 1851var result = new List<string>(_defaultPropertyNames.Length + _additionalCustomMetadata.Count);
Data\StaticWebAssetEndpoint.cs (2)
187endpoints = new List<StaticWebAssetEndpoint>(5); 466var result = new List<string>(_defaultPropertyNames.Length + _additionalCustomMetadata.Count);
Data\StaticWebAssetEndpointGroup.cs (3)
17public List<StaticWebAssetEndpointGroupItem> Items { get; } = new(); 52var removed = new List<StaticWebAssetEndpoint>(); 53var surviving = new List<StaticWebAssetEndpoint>();
Data\StaticWebAssetPathPattern.cs (1)
419var result = new List<StaticWebAssetPathPattern>();
DefineStaticWebAssetEndpoints.cs (3)
36var endpoints = new List<StaticWebAssetEndpoint>(CandidateAssets.Length); 43new List<StaticWebAssetEndpoint>(512), 163private readonly List<StaticWebAsset.StaticWebAssetResolvedRoute> _resolvedRoutes = new(2);
DefineStaticWebAssets.cs (3)
714var definitions = new List<GroupDefinition>(); 798list = new List<GroupDefinition>(); 811var groupEntries = new List<string>();
DiscoverDefaultScopedCssItems.cs (1)
26var discoveredInputs = new List<ITaskItem>();
FilterStaticWebAssetEndpoints.cs (1)
43var filteredEndpoints = new List<StaticWebAssetEndpoint>();
GeneratePackageAssetsManifestFile.cs (1)
167var manifestEndpoints = new List<StaticWebAssetEndpoint>();
GenerateStaticWebAssetEndpointsManifest.cs (1)
89var filteredEndpoints = new List<StaticWebAssetEndpoint>();
GenerateStaticWebAssetsDevelopmentManifest.cs (2)
230var patterns = new List<StaticWebAssetPattern>(); 254var patterns = new List<StaticWebAssetPattern>();
GenerateStaticWebAssetsManifest.cs (1)
108var filteredEndpoints = new List<StaticWebAssetEndpoint>();
JSModules\ApplyJsModules.cs (3)
29var razorComponentsWithJsModules = new List<ITaskItem>(); 30var razorGenerateWithJsModules = new List<ITaskItem>(); 31var unmatchedJsModules = new List<ITaskItem>(JSFileModuleCandidates);
Legacy\GenerateV1StaticWebAssetsManifest.cs (1)
102var nodes = new List<XElement>();
MergeStaticWebAssets.cs (1)
80var assetsToRemove = new List<StaticWebAsset>();
OverrideHtmlAssetPlaceholders.cs (5)
53var htmlFilesToRemove = new List<ITaskItem>(); 54var htmlCandidates = new List<ITaskItem>(); 55var fileWrites = new List<string>(); 114var links = new List<(int Order, string Value)>(); 166var resources = new List<ResourceAsset>();
ReadPackageAssetsManifest.cs (2)
43var allAssets = new List<StaticWebAsset>(); 44var allEndpoints = new List<StaticWebAssetEndpoint>();
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (1)
34var resolvedEndpoints = new List<StaticWebAssetEndpoint>();
ResolveStaticWebAssetsEmbeddedProjectConfiguration.cs (2)
58var matchingConfigurations = new List<EmbeddedStaticWebAssetProjectConfiguration>(); 81var filteredConfigurations = new List<ITaskItem>();
ScopedCss\ApplyCssScopes.cs (3)
32var razorComponentsWithScopes = new List<ITaskItem>(); 33var razorGenerateWithScopes = new List<ITaskItem>(); 34var unmatchedScopedCss = new List<ITaskItem>(ScopedCss);
ScopedCss\ResolveAllScopedCssAssets.cs (2)
24var scopedCssAssets = new List<ITaskItem>(); 25var scopedCssProjectBundles = new List<ITaskItem>();
ScopedCss\RewriteCss.cs (2)
86var foundErrors = new List<ErrorMessage>(); 405var result = new List<int>() { 0 };
StaticWebAssetsGeneratePackManifest.cs (1)
47var packageFiles = new List<StaticWebAssetPackageFile>();
UpdateExternallyDefinedStaticWebAssets.cs (4)
69var assetsWithoutEndpoints = new List<StaticWebAsset>(); 70var originalFrameworkAssetItems = new List<ITaskItem>(); 131var routeSegments = new List<PathTokenizer.Segment>(); 132var basePathSegments = new List<PathTokenizer.Segment>();
UpdatePackageStaticWebAssets.cs (6)
44var originalAssets = new List<ITaskItem>(); 45var updatedAssets = new List<ITaskItem>(); 90var remappedEndpoints = new List<StaticWebAssetEndpoint>(); 91var originalEndpointItems = new List<ITaskItem>(); 106var routeSegments = new List<PathTokenizer.Segment>(); 107var basePathSegments = new List<PathTokenizer.Segment>();
UpdateStaticWebAssetEndpoints.cs (1)
53var result = new List<StaticWebAssetEndpoint>();
Utils\Globbing\StaticWebAssetGlobMatcherBuilder.cs (2)
49var segments = new List<ReadOnlyMemory<char>>(); 68var tokenRanges = new List<PathTokenizer.Segment>();
Microsoft.NET.Sdk.WorkloadManifestReader (3)
WorkloadManifestReader.cs (2)
304var list = new List<string>(); 327var list = new List<T>();
WorkloadSuggestionFinder.cs (1)
48partialSuggestions = new List<WorkloadSuggestionCandidate>();
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (2)
CachingWorkloadResolver.cs (2)
114List<string> autoImportSdkPaths = new(); 132List<string> workloadManifestPaths = new();
Microsoft.NET.StringTools (1)
SpanBasedStringBuilder.cs (1)
109_spans = new List<ReadOnlyMemory<char>>(capacity);
Microsoft.Private.Windows.Core (3)
System\Collections\Generic\CollectionExtensions.cs (1)
24return new List<T>(new ArraySegment<T>(array, 0, count));
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
269new List<object?>
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
318List<string> files = new((int)count);
Microsoft.SourceLink.AzureDevOpsServer.Git (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.AzureRepos.Git (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.Bitbucket.Git (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.Common (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.Gitea (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.Gitee (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.GitHub (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.GitLab (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.GitWeb (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.Tools.Package (1)
SourceLinkMap.cs (1)
90var list = new List<Entry>();
Microsoft.TemplateEngine.Cli (57)
Alias\AliasRegistry.cs (5)
78expandedInputTokens = new List<string>(inputTokens); 89expandedInputTokens = new List<string>(); 97expandedTokens = new List<string>(inputTokens); 203result[property.Key] = new List<string>() { property.Value.GetValue<string>() }; 207List<string> values = new();
ChoiceTemplateParameter.cs (1)
180List<string> parsedValues = new();
CliTemplateParameter.cs (4)
30private readonly List<string> _shortNameOverrides = new(); 32private readonly List<string> _longNameOverrides = new(); 82_shortNameOverrides = shortNameOverrides?.ToList() ?? new List<string>(); 83_longNameOverrides = longNameOverrides?.ToList() ?? new List<string>();
Commands\AliasAssignmentCoordinator.cs (2)
15List<(CliTemplateParameter Parameter, IReadOnlySet<string> Aliases, IReadOnlyList<string> Errors)> result = new(); 27List<string> errors = new();
Commands\create\InstantiateCommand.Help.cs (6)
198List<string> supportedLanguages = new(); 234List<string> supportedTypes = new(); 289List<Option> optionsToShow = new() 341List<TemplateCommand> matchingTemplates = new(); 371List<string> usageParts = new(); 480List<Command> parentCommands = new();
Commands\create\InstantiateCommand.NoMatchHandling.cs (2)
21List<InvalidTemplateOptionResult> invalidOptionsList = new(); 64List<TemplateResult> matchInfos = new();
Commands\create\InstantiateCommand.TabCompletion.cs (2)
171List<TemplateGroup> allowedTemplateGroups = new(); 172List<(TemplateGroup TemplateGroup, Task<IEnumerable<CliTemplateInfo>> Task)> tasksToWait = new();
Commands\create\InstantiateCommandArgs.cs (2)
33var tokens = new List<string>(); 62var tokens = new List<string>();
Commands\create\TemplateResult.cs (1)
16private List<TemplateOptionResult> _parametersInfo = new();
Commands\Example.cs (2)
24List<string> parentCommands = new(); 36List<string> parentCommands2 = new();
Commands\NewCommandArgs.cs (1)
24List<Token> tokensToEvaluate = new();
HostSpecificTemplateData.cs (1)
31UsageExamples = new List<string>(usagesArray
JExtensions.cs (1)
204List<string> values = new();
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (1)
136jsonFiles = new List<string> { newJsonFilePath };
PostActionProcessors\PostActionProcessorBase.cs (5)
36List<string> results = new(); 60return new List<string>(); 64return new List<string>(); 68return new List<string>(); 125paths = new List<string>();
TabularOutput\TabularOutput.cs (4)
16private readonly List<ColumnDefinition> _columns = new(); 18private readonly List<Tuple<int, bool, IComparer<string>>> _ordering = new(); 79List<TextWrapper[]> grid = new(); 381List<string> lines = new();
TabularOutput\TemplateGroupDisplay.cs (6)
75List<string> languageGroups = new(); 78List<string> languagesForDisplay = new(); 142List<TemplateGroupTableRow> templateGroupsForDisplay = new(); 171List<string> classificationGroups = new(); 206List<TemplateGroupTableRow> templateGroupsForDisplay = new(); 256List<string> typesGroups = new();
TelemetryHelper.cs (1)
35List<string> hashedValues = new();
TemplatePackageCoordinator.cs (5)
208List<InstallRequest> installRequests = new(); 665List<string> notFoundPackages = new(); 681packagesToUninstall[templatePackage.ManagedProvider] = new List<IManagedTemplatePackage>() { templatePackage }; 703packagesToUninstall[templatePackage.ManagedProvider] = new List<IManagedTemplatePackage>() { templatePackage }; 885List<PackageSource> customSources = new();
TemplateResolution\TemplateGroupMatchInfo.cs (2)
197List<MatchInfo> groupMatchDispositions = new(); 309return new List<ITemplateMatchInfo>();
TemplateSearch\CliTemplateSearchCoordinator.cs (3)
129return (null, new List<ITemplateInfo>()); 150return new List<ITemplateInfo>(); 233List<SearchResultTableRow> templateGroupsForDisplay = new();
Microsoft.TemplateEngine.Core (27)
Expressions\Cpp\CppStyleEvaluatorDefinition.cs (3)
79List<byte> currentTokenBytes = new List<byte>(); 80List<TokenRef> tokens = new List<TokenRef>(); 329List<TokenRef> outputTokens = new List<TokenRef>();
Expressions\ScopeBuilder.cs (4)
51List<object> symbolValues = new List<object>(); 52List<string> symbolKeys = new List<string>(); 86List<byte> currentLiteral = new List<byte>(); 87List<byte> allData = new List<byte>();
Expressions\Shared\XmlStyleConverters.cs (1)
14List<char> output = new List<char>();
Matching\Trie.cs (1)
46next.Terminals ??= new List<T>();
Matching\TrieEvaluator.cs (1)
19_activePaths = new List<TriePath<T>>();
Matching\TriePath.cs (1)
12EncounteredTerminals = new List<T>();
Operations\Conditional.cs (1)
76List<IToken> tokens = new List<IToken>(TokenTypeModulus * LongestTokenVariantListSize);
Operations\Include.cs (1)
70List<byte> pathBytes = new List<byte>();
Operations\InlineMarkupConditional.cs (1)
104List<byte> conditionBytes = new List<byte>();
Operations\Phase.cs (1)
20Next = new List<Phase>();
Operations\PhasedOperation.cs (5)
26List<IToken> tokens = new List<IToken>(); 31List<SpecializedPhase> currentTarget = new List<SpecializedPhase>(); 70currentTarget = new List<SpecializedPhase>(); 135Next = new List<SpecializedPhase>(); 136ResetsWith = new List<int>();
TokenConfigExtensions.cs (1)
33List<ITokenConfig> configs = new List<ITokenConfig>();
Util\EncodingConfig.cs (1)
16_variableKeys = new List<IToken>();
Util\Orchestrator.cs (2)
89List<KeyValuePair<IPathMatcher, IProcessor>> processorList = new List<KeyValuePair<IPathMatcher, IProcessor>>(); 122List<IFileChange2> changes = new List<IFileChange2>();
Util\ProcessorState.cs (1)
78return new List<string>();
Util\TokenTrie.cs (2)
11private readonly List<IToken> _tokens = new List<IToken>(); 12private readonly List<int> _lengths = new List<int>();
Microsoft.TemplateEngine.Edge (50)
BuiltInManagedProvider\GlobalSettings.cs (1)
84var packages = new List<TemplatePackageData>();
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (10)
56var list = new List<ITemplatePackage>(); 84var tasks = new List<Task<IReadOnlyList<CheckUpdateResult>>>(); 91var result = new List<CheckUpdateResult>(); 109return new List<InstallResult>(); 124var packages = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false)); 127var installersThatCanInstall = new List<IInstaller>(); 164return new List<UninstallResult>(); 169var packagesInSettings = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false)); 193var packages = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false)); 220var updatedPackages = new List<TemplatePackageData>(templatePackages.Select(tp => ((ISerializableInstaller)tp.Installer).Serialize(tp)));
Constraints\HostConstraint.cs (1)
72List<HostInformation> hostInformation = new List<HostInformation>();
DefaultTemplateEngineHost.cs (1)
31FallbackHostTemplateConfigNames = fallbackHostTemplateConfigNames ?? new List<string>();
Installers\NuGet\NugetApiPackageManager.cs (3)
223var insecurePackages = new List<PackageSource>(); 224var securePackages = new List<PackageSource>(); 470List<PackageSource> customSources = new List<PackageSource>();
ReflectionLoadProbingPath.cs (1)
17private static readonly List<ReflectionLoadProbingPath> Instance = new List<ReflectionLoadProbingPath>();
Settings\ComponentManager.cs (2)
17private readonly List<string> _loadLocations = new List<string>(); 84var components = new List<T>();
Settings\Scanner.cs (3)
236var templates = new List<IScanTemplateInfo>(); 274List<KeyValuePair<string, Assembly>> loaded = new List<KeyValuePair<string, Assembly>>(); 275List<string> failures = new List<string>();
Settings\TemplateCache.cs (3)
46templateDeduplicationDictionary[template.Identity] = new List<(IScanTemplateInfo Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint)> 54var templates = new List<TemplateInfo>(); 108List<TemplateInfo> templateList = new List<TemplateInfo>();
Settings\TemplateInfo.cs (3)
119public IReadOnlyList<string> Classifications { get; private set; } = new List<string>(); 157public IReadOnlyList<string> ShortNameList { get; } = new List<string>(); 250List<ITemplateParameter> localizedParameters = new List<ITemplateParameter>();
Settings\TemplateInfoReader.cs (4)
33List<string> classifications = new List<string>(); 79List<ITemplateParameter> templateParameters = new List<ITemplateParameter>(); 108List<Guid> postActions = new List<Guid>(); 123List<TemplateConstraintInfo> constraints = new List<TemplateConstraintInfo>();
Settings\TemplateMatchInfo.cs (3)
31_matchDisposition = new List<MatchInfo>(); 32_dispositionOfDefaults = new List<MatchInfo>(); 65private readonly List<Abstractions.TemplateFiltering.MatchInfo> _matchDisposition = new List<Abstractions.TemplateFiltering.MatchInfo>();
Settings\TemplatePackageManager.cs (1)
101var sources = new List<ITemplatePackage>();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
263var result = new List<KeyValuePair<string, JsonNode?>>(); 376List<string> values = new(); 401List<Guid> values = new(); 473return new List<string>() { tokenValue };
Template\ParameterSetBuilder.cs (2)
41List<string> paramsWithInvalidValuesList = new List<string>(); 112List<string> invalidParams = new List<string>();
Template\TemplateCreator.cs (2)
285List<string> tmpParamsWithInvalidValues = new List<string>(); 388List<string> defaultParamsWithInvalidValues = new List<string>();
TemplateConstraintManager.cs (3)
151var tasksToWait = new List<Task>(); 182List<(ITemplateInfo, IReadOnlyList<TemplateConstraintResult>)> evaluationResult = new(); 185List<TemplateConstraintResult> constraintResults = new();
TemplateListFilter.cs (3)
33List<MatchInfo> matchInformation = new List<MatchInfo>(); 78List<MatchInfo> matchInformation = new List<MatchInfo>(); 112List<Abstractions.TemplateFiltering.MatchInfo> matchInformation = new List<Abstractions.TemplateFiltering.MatchInfo>();
Microsoft.TemplateEngine.IDE (5)
Bootstrapper.cs (5)
271return Task.FromResult((IReadOnlyList<InstallResult>)new List<InstallResult>()); 301return new List<CheckUpdateResult>(); 323return new List<UpdateResult>(); 345return new List<UninstallResult>(); 438var packagesToUninstall = new List<IManagedTemplatePackage>();
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (79)
ConfigModel\CustomFileGlobModel.cs (1)
43List<CustomOperationModel> customOpsForGlob = new List<CustomOperationModel>();
ConfigModel\ExtendedFileSource.cs (1)
59List<SourceModifier> modifiers = new List<SourceModifier>();
ConfigModel\PostActionModel.cs (5)
22: this(new Dictionary<string, string>(), new List<ManualInstructionModel>()) { } 77public IReadOnlyList<ManualInstructionModel> ManualInstructionInfo { get; internal init; } = new List<ManualInstructionModel>(); 81List<PostActionModel> localizedPostActions = new(); 126List<string> verifiedApplyFileRenamesToArgs = new(); 182var results = new List<ManualInstructionModel>();
ConfigModel\PrimaryOutputModel.cs (1)
32List<PrimaryOutputModel> modelList = new List<PrimaryOutputModel>();
ConfigModel\ReplacementContext.cs (1)
37List<ReplacementContext> contexts = new List<ReplacementContext>();
ConfigModel\TemplateConfigModel.cs (5)
27private readonly List<IValidationEntry> _validationEntries = new(); 30private IReadOnlyList<PostActionModel> _postActions = new List<PostActionModel>(); 78var sources = new List<ExtendedFileSource>(); 166List<CustomFileGlobModel> specialCustomSetup = new(); 179List<TemplateConstraintInfo> constraints = new();
DirectoryBasedTemplate.cs (1)
28private readonly List<IValidationEntry> _validationErrors = new();
DirectoryBasedTemplate.Interfaces.cs (1)
35IReadOnlyList<string> ITemplateMetadata.ShortNameList => ConfigurationModel.ShortNameList ?? new List<string>();
FileRenameGenerator.cs (2)
102List<IOperationProvider> operations = new(); 122List<IOperationProvider> operations = new();
FileSourceHierarchicalPathMatcher.cs (2)
38List<FileSourceEvaluablePathMatcher> evaluators = new List<FileSourceEvaluablePathMatcher>(); 145List<IPathMatcher> paths = new List<IPathMatcher>(expect);
GlobalRunSpec.cs (8)
26List<IOperationConfig> operationConfigReaders = new List<IOperationConfig>(componentManager.OfType<IOperationConfig>()); 39List<KeyValuePair<IPathMatcher, IRunSpec>> specials = new List<KeyValuePair<IPathMatcher, IRunSpec>>(); 84Include = new List<IPathMatcher>() { new FileSourceStateMatcher(FileDispositionStates.Include, matcher) }; 85Exclude = new List<IPathMatcher>() { new FileSourceStateMatcher(FileDispositionStates.Exclude, matcher) }; 86CopyOnly = new List<IPathMatcher>() { new FileSourceStateMatcher(FileDispositionStates.CopyOnly, matcher) }; 99List<IOperationProvider> operations = new List<IOperationProvider>(customOperations); 116List<IOperationProvider> operations = new List<IOperationProvider>(); 143List<IOperationProvider> customOperations = new List<IOperationProvider>();
ListGlobbingPatternMatcher.cs (1)
17List<IPathMatcher> pathMatchers = new List<IPathMatcher>();
Localization\TemplateLocalizationInfo.cs (1)
12private readonly List<IValidationEntry> _validationEntries = new();
Macros\BaseMacroConfig.cs (1)
41internal IList<string> MacroErrors { get; set; } = new List<string>();
Macros\JoinMacro.cs (1)
19List<string> values = new();
Macros\JoinMacroConfig.cs (1)
30List<(JoinType Type, string Value)> symbolsList = new();
Macros\RegexMacroConfig.cs (1)
33List<(string Type, string Value)> steps = new();
Macros\SwitchMacroConfig.cs (1)
32List<(string? Condition, string Value)> cases = new();
OperationConfig\ConditionalBlockCommentConfig.cs (6)
75List<ITokenConfig> endIfTokens = new List<ITokenConfig>(); 82List<ITokenConfig> actionableIfTokens = new List<ITokenConfig>(); 88List<ITokenConfig> actionableElseTokens = new List<ITokenConfig>(); 95List<ITokenConfig> actionableElseIfTokens = new List<ITokenConfig>(); 121return new List<IOperationProvider>() 130return new List<IOperationProvider>()
OperationConfig\ConditionalConfig.cs (7)
44setup = new List<IOperationProvider>(); 128return new List<IOperationProvider>() 139List<ITokenConfig> ifTokens = new List<ITokenConfig>(); 140List<ITokenConfig> elseifTokens = new List<ITokenConfig>(); 141List<ITokenConfig> elseTokens = new List<ITokenConfig>(); 142List<ITokenConfig> endifTokens = new List<ITokenConfig>(); 175return new List<IOperationProvider>()
OperationConfig\ConditionalCustomConfig.cs (1)
43return new List<IOperationProvider>()
OperationConfig\ConditionalLineCommentConfig.cs (8)
42List<ITokenConfig> ifTokens = new List<ITokenConfig>(); 43List<ITokenConfig> actionableIfTokens = new List<ITokenConfig>(); 50List<ITokenConfig> elseTokens = new List<ITokenConfig>(); 51List<ITokenConfig> actionableElseTokens = new List<ITokenConfig>(); 58List<ITokenConfig> elseIfTokens = new List<ITokenConfig>(); 59List<ITokenConfig> actionalElseIfTokens = new List<ITokenConfig>(); 66List<ITokenConfig> endIfTokens = new List<ITokenConfig>(); 88return new List<IOperationProvider>()
OperationConfig\FlagsConfig.cs (1)
50List<IOperationProvider> flagOperations = new List<IOperationProvider>();
PostAction.cs (1)
39List<IPostAction> actionList = new();
PrimaryOutput.cs (1)
30List<ICreationPath> pathList = new();
RunnableProjectConfig.cs (11)
116List<(string Glob, GlobalRunConfig RunConfig)> specialOperationConfig = new(); 283List<IReplacementTokens> filenameReplacements = new(); 326List<IOperationProvider> operations = new List<IOperationProvider>(); 346List<IReplacementTokens> macroGeneratedReplacements = new(); 348List<IMacroConfig> macros = new(); 419IReadOnlyList<CustomOperationModel> customOperationConfig = customGlobModel != null && customGlobModel.Operations != null ? customGlobModel.Operations : new List<CustomOperationModel>(); 484var generatedMacroConfigs = new List<IMacroConfig>(); 505List<BaseMacroConfig> computedMacroConfigs = new(); 529List<FileSourceMatchInfo> sources = new List<FileSourceMatchInfo>(); 544List<FileSourceEvaluable> modifierList = new List<FileSourceEvaluable>(); 598new List<FileSourceEvaluable>());
RunnableProjectConfig.ITemplate.cs (1)
52IReadOnlyList<string> ITemplateMetadata.ShortNameList => ConfigurationModel.ShortNameList ?? new List<string>();
RunnableProjectGenerator.cs (2)
142List<IFileChange2> changes = new List<IFileChange2>(); 338List<ScannedTemplateInfo> templateList = new();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
263var result = new List<KeyValuePair<string, JsonNode?>>(); 376List<string> values = new(); 401List<Guid> values = new(); 473return new List<string>() { tokenValue };
Validation\ValidationManager.cs (1)
56List<Task<ITemplateValidator>> validatorsToCreate = new();
Microsoft.TemplateEngine.Utils (17)
DefaultTemplateEngineHost.cs (1)
46FallbackHostTemplateConfigNames = fallbackHostTemplateConfigNames ?? new List<string>();
DefaultTemplatePackageProvider.cs (1)
47var list = new List<ITemplatePackage>();
DirectedGraph.cs (3)
37List<T> result = new(); 121cycle = new List<T>(); 215List<T> items = new();
FileFindHelpers.cs (1)
30return new List<string>();
FileSystemInfoExtensions.cs (1)
87List<string> segments = new List<string> { info.Name };
Glob.cs (2)
35List<IMatcher> matchers = new(); 71List<char> values = new();
InMemoryFileSystem.cs (1)
715List<string> realParts = new();
ListExtensions.cs (3)
15List<TElement> ungrouped = new List<TElement>(); 24groups[x] = group = new List<TElement>(); 35List<IGrouping<TKey?, TElement>> allGrouped = new List<IGrouping<TKey?, TElement>>();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
263var result = new List<KeyValuePair<string, JsonNode?>>(); 376List<string> values = new(); 401List<Guid> values = new(); 473return new List<string>() { tokenValue };
Microsoft.TemplateSearch.Common (16)
Providers\NuGetMetadataSearchProvider.cs (1)
165List<Exception> exceptionsOccurred = new();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
263var result = new List<KeyValuePair<string, JsonNode?>>(); 376List<string> values = new(); 401List<Guid> values = new(); 473return new List<string>() { tokenValue };
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (4)
89public IReadOnlyList<string> Classifications { get; private set; } = new List<string>(); 166List<string> classifications = new List<string>(); 197List<Guid> postActions = new List<Guid>(); 210List<ITemplateParameter> templateParameters = new List<ITemplateParameter>();
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (4)
18List<TemplatePackageSearchData> packageData = new List<TemplatePackageSearchData>(); 21List<TemplateSearchData> templateData = new List<TemplateSearchData>(); 106List<ITemplateInfo> buildingTemplateList = new List<ITemplateInfo>(); 171List<TemplateIdentificationEntry> templatesInPack = new List<TemplateIdentificationEntry>();
TemplateSearchCache\TemplatePackageSearchData.Json.cs (1)
41List<TemplateSearchData> templates = new List<TemplateSearchData>();
TemplateSearchCache\TemplateSearchCache.Json.cs (1)
54List<TemplatePackageSearchData> templatePackages = new();
TemplateSearchCoordinator.cs (1)
55List<SearchResult> results = new List<SearchResult>();
Microsoft.TestPlatform.AdapterUtilities (1)
ManagedNameUtilities\ManagedNameParser.cs (1)
150var types = new List<string>();
Microsoft.TestPlatform.Build (5)
Tasks\TestTaskUtils.cs (4)
127var normalTestLogging = new List<string>() { "n", "normal", "d", "detailed", "diag", "diagnostic" }; 128var quietTestLogging = new List<string>() { "q", "quiet" }; 147var dumpArgs = new List<string>(); 376var settings = new List<string>();
Tasks\VSTestTask2.cs (1)
334var time = new List<string>();
Microsoft.TestPlatform.CommunicationUtilities (11)
_generated\83\TestPlatformJsonContext.ListAttachmentSet.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>(),
_generated\84\TestPlatformJsonContext.ListTestCase.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>(),
_generated\85\TestPlatformJsonContext.ListKeyValuePairTestPropertyObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>(),
_generated\86\TestPlatformJsonContext.ListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<string>(),
DataCollectionRequestHandler.cs (1)
272List<string> extensionAssemblies = new();
Messages\DiscoveryCompletePayload.cs (4)
38public IList<string>? FullyDiscoveredSources { get; set; } = new List<string>(); 43public IList<string>? PartiallyDiscoveredSources { get; set; } = new List<string>(); 48public IList<string>? NotDiscoveredSources { get; set; } = new List<string>(); 53public IList<string>? SkippedDiscoverySources { get; set; } = new List<string>();
Serialization\ObjectConverter.cs (1)
42var list = new List<object?>();
Serialization\TestObjectConverter.cs (1)
23var propertyList = new List<KeyValuePair<TestProperty, object>>();
Microsoft.TestPlatform.CoreUtilities (1)
Utilities\JobQueue.cs (1)
301List<Job<T>> jobs = new();
Microsoft.TestPlatform.CrossPlatEngine (42)
Adapter\TestExecutionRecorder.cs (1)
42_attachmentSets = new List<AttachmentSet>();
AttachmentsProcessing\DataCollectorAttachmentsProcessorsFactory.cs (1)
139var finalDatacollectorsAttachmentsProcessors = new List<DataCollectorAttachmentProcessor>();
Client\InProcessProxyexecutionManager.cs (1)
60var testPackages = new List<string>(testRunCriteria.HasSpecificSources ? testRunCriteria.Sources :
Client\Parallel\DiscoveryDataAggregator.cs (1)
168? new List<string>()
Client\Parallel\ParallelOperationManager.cs (2)
64private readonly List<TManager> _activeManagers = new(); 133List<(TManager Manager, TEventHandler EventHandler, TWorkload Work)> reserved = new();
Client\Parallel\ParallelProxyDiscoveryManager.cs (1)
213List<ProviderSpecificWorkload<DiscoveryCriteria>> workloads = new();
Client\Parallel\ParallelProxyExecutionManager.cs (3)
228List<ProviderSpecificWorkload<TestRunCriteria>> workloads = new(); 269var groups = new List<List<TestCase>>(); 272groups.Add(new List<TestCase>());
Client\Parallel\ParallelRunDataAggregator.cs (4)
37RunCompleteArgsAttachments = new List<AttachmentSet>(); 39Exceptions = new List<Exception>(); 41_executorUris = new List<string>(); 42_testRunStatsList = new List<ITestRunStatistics>();
Client\ProxyDiscoveryManager.cs (1)
193HandleDiscoveryComplete(discoveryCompleteEventsArgs, new List<TestCase>());
Client\ProxyExecutionManager.cs (2)
140_testSources = new List<string>( 197var testSources = new List<string>(
Client\ProxyExecutionManagerWithDataCollection.cs (2)
214Messages = new List<Tuple<TestMessageLevel, string?>>(); 215RawMessages = new List<string>();
Constants.cs (1)
18internal static readonly IList<string> DefaultAdapters = new ReadOnlyCollection<string>(new List<string>
DataCollection\ProxyDataCollectionManager.cs (2)
306var commandlineArguments = new List<string> 386var enabledDataCollectors = new List<DataCollectorSettings>();
Discovery\DiscovererEnumerator.cs (4)
373var sourcesForWhichNoDiscovererIsAvailable = new List<string>(sources); 459{ AssemblyType.Native, new List<string>()}, 460{ AssemblyType.Managed, new List<string>()}, 461{ AssemblyType.None, new List<string>()}
Discovery\DiscoveryResultCache.cs (3)
63_tests = new List<TestCase>(InitialCapacity(cacheSize)); 80return new List<TestCase>(_tests); 115_tests = new List<TestCase>(InitialCapacity(_cacheSize));
Execution\BaseRunTests.cs (4)
167ExecutorUrisThatRanTests = new List<string>(); 620var lastChunkTestResults = TestRunCache?.GetLastChunk() ?? new List<TestResult>(); 724ICollection<TestResult> updatedTestResults = new List<TestResult>(); 744ICollection<TestCase> updatedTestCases = new List<TestCase>();
Execution\RunTestsWithSources.cs (1)
73IEnumerable<string> sources = new List<string>();
Execution\TestRunCache.cs (5)
95_inProgressTests = new List<TestCase>(InitialCapacity(cacheSize)); 96_testResults = new List<TestResult>(InitialCapacity(cacheSize)); 277_testResults = new List<TestResult>(); 342_testResults = new List<TestResult>(InitialCapacity(_cacheSize)); 343_inProgressTests = new List<TestCase>(InitialCapacity(_cacheSize));
PostProcessing\ArtifactProcessingManager.cs (1)
198List<AttachmentSet> attachments = new();
TestEngine.cs (1)
290var testRuntimeProviders = new List<TestRuntimeProviderInfo>();
Utilities\TestSourcesUtility.cs (1)
25IEnumerable<string> sources = new List<string>();
Microsoft.TestPlatform.Extensions.BlameDataCollector (9)
BlameCollector.cs (1)
65private readonly List<KeyValuePair<string, string>> _environmentVariables = new();
BlameLogger.cs (1)
124var faultyTestCaseNames = new List<string>();
NetClientHangDumper.cs (1)
58var tasks = new List<Task>();
ProcDumpDumper.cs (1)
26private static readonly IEnumerable<string> ProcDumpExceptionsList = new List<string>()
ProcessCodeMethods.cs (2)
50var acc = new List<ProcessTreeNode>(); 71return new List<ProcessTreeNode> { new() { Process = process, Level = 0 } }.Concat(acc.Where(a => a.Level > 0)).ToList();
ProcessDumpUtility.cs (2)
59IEnumerable<string> crashDumps = _crashDumper?.GetDumpFiles(processCrashed) ?? new List<string>(); 65var foundDumps = new List<string>();
XmlReaderWriter.cs (1)
112var testCaseList = new List<BlameTestObject>();
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\DefaultTestHostManager.cs (1)
340List<string> actualSources = new();
Hosting\DotnetTestHostManager.cs (1)
841List<string> extensionPaths = new();
Microsoft.TestPlatform.Utilities (12)
CodeCoverageDataAttachmentsHandler.cs (2)
52var coverageReportFilePaths = new List<string>(); 53var coverageOtherFilePaths = new List<string>();
CodeCoverageRunSettingsProcessor.cs (6)
87var codeCoveragePathComponents = new List<string>() { "CodeCoverage" }; 107var exclusions = new List<IList<string>> 109new List<string> { "ModulePaths", "Exclude" }, 110new List<string> { "Attributes", "Exclude" }, 111new List<string> { "Sources", "Exclude" }, 112new List<string> { "Functions", "Exclude" }
CommandLineUtilities.cs (1)
17var argArray = new List<string>();
InferRunSettingsHelper.cs (3)
357var legacySettingElements = new List<string>(); 407var attributes = new List<string>(); 676List<string> compatibleSources = new();
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (2)
VsTestConsoleProcessManager.cs (1)
265var args = new List<string>
VsTestConsoleWrapper.cs (1)
133_pathToAdditionalExtensions = new List<string>();
Microsoft.VisualBasic.Core (18)
Microsoft\VisualBasic\Collection.vb (1)
345m_Iterators = New List(Of Object)
Microsoft\VisualBasic\CompilerServices\ConversionResolution.vb (7)
756Dim operatorChoices As List(Of Method) = New List(Of Method)(operatorSet.Count) 757Dim candidates As List(Of Method) = New List(Of Method)(operatorSet.Count) 759Dim sourceBases As List(Of Type) = New List(Of Type)(operatorSet.Count) 760Dim targetDeriveds As List(Of Type) = New List(Of Type)(operatorSet.Count) 765sourceDeriveds = New List(Of Type)(operatorSet.Count) 766targetBases = New List(Of Type)(operatorSet.Count) 855Return New List(Of Method)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (1)
1307Dim writeback As New List(Of Expression)
Microsoft\VisualBasic\CompilerServices\LikeOperator.vb (1)
1066Dim RangeList As New List(Of Range)
Microsoft\VisualBasic\CompilerServices\NewLateBinding.vb (2)
1379Dim errors As New List(Of String) 1447Dim errors As New List(Of String)
Microsoft\VisualBasic\CompilerServices\Operators.Resolution.vb (2)
56result = New List(Of Method) 204Dim errors As New List(Of String)
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (2)
735Dim candidates As List(Of Method) = New List(Of Method)(members.Length) 2524Dim errors As New List(Of String)
Microsoft\VisualBasic\CompilerServices\Symbols.vb (2)
940Dim result As New List(Of MemberInfo) 1001Dim result As New List(Of MemberInfo)
Microsoft.VisualStudio.TestPlatform.Client (1)
TestPlatform.cs (1)
211List<string> loggersToUpdate = new();
Microsoft.VisualStudio.TestPlatform.Common (27)
DataCollection\DataCollectionAttachmentManager.cs (1)
150List<AttachmentSet> attachments = new();
DataCollection\DataCollectionEnvironmentVariable.cs (1)
45_dataCollectorsThatRequested = new List<string> { requestingDataCollectorFriendlyName };
DataCollection\DataCollectionManager.cs (5)
245var result = new List<AttachmentSet>(); 268List<InvokedDataCollector> invokedDataCollector = new(); 412RemoveDataCollectors(new List<DataCollectorInformation>(RunDataCollectors.Values)); 592var runEnabledDataCollectors = new List<DataCollectorSettings>(); 653var failedCollectors = new List<DataCollectorInformation>();
ExtensionDecorators\SerialTestRunDecorator.cs (1)
39OriginalTestExecutor.RunTests(new List<TestCase> { testToRun }, runContext, new SerializeTestRunDecoratorFrameworkHandle(frameworkHandle!, _runSequentialEvent));
ExtensionFramework\TestDiscoveryExtensionManager.cs (1)
167FileExtension = new List<string>(fileExtensions);
ExtensionFramework\TestExecutorExtensionManager.cs (1)
64var mergedTestExtensions = new List<LazyExtension<TExecutor1, TValue>>();
ExtensionFramework\TestPluginCache.cs (7)
48private readonly List<string> _defaultExtensionPaths = new(); 55_filterableExtensionPaths = new List<string>(); 56_unfilterableExtensionPaths = new List<string>(); 319return GetTestExtensions<TPluginInfo, TExtension>(new List<string>() { extensionAssembly }); 332var pluginInfos = GetTestExtensions<TPluginInfo, TExtension>(new List<string>() { extensionAssembly }); 349var resolutionPaths = new List<string>(); 369var resolutionPaths = new List<string>();
ExtensionFramework\TestPluginDiscoverer.cs (1)
133List<Type> types = new();
ExtensionFramework\TestPluginManager.cs (3)
166var values = new List<TestPluginInformation>(); 206var unfilteredExtensions = new List<LazyExtension<TExtension, Dictionary<string, object>>>(); 207var filteredExtensions = new List<LazyExtension<TExtension, IMetadata>>();
ExtensionFramework\Utilities\TestDiscovererPluginInformation.cs (1)
91var fileExtensions = new List<string>();
ExtensionFramework\VSExtensionManager.cs (2)
74IEnumerable<string>? installedExtensions = new List<string>(); 120return installedExtensions ?? new List<string>();
Hosting\TestRunTimeProviderManager.cs (1)
52var sources = new List<string> { source };
Utilities\MetadataReaderHelper.cs (1)
164extensions ??= new List<Tuple<int, Type>>();
Utilities\SimpleJSON.cs (1)
718private readonly List<JSONNode> _list = new();
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (10)
HtmlLogger.cs (3)
214ResultList = new List<ObjectModel.TestResult>(), 215FailedResultList = new List<ObjectModel.TestResult>(), 422var time = new List<string>();
ObjectModel\HtmlTestResult.cs (1)
71InnerTestResults ??= new List<TestResult>();
ObjectModel\TestResultCollection.cs (2)
66FailedResultList ??= new List<TestResult>(); 70ResultList ??= new List<TestResult>();
ObjectModel\TestRunDetails.cs (4)
42[DataMember] public List<TestResultCollection>? ResultCollectionList = new(); 51RunLevelMessageInformational ??= new List<string>(); 63RunLevelMessageErrorAndWarning ??= new List<string>(); 75ResultCollectionList ??= new List<TestResultCollection>();
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (14)
ObjectModel\CollectorDataEntry.cs (2)
26private readonly List<IDataAttachment> _attachments = new(); 108IList<UriDataAttachment> uriAttachments = new List<UriDataAttachment>();
ObjectModel\TestEntry.cs (1)
48_testEntries ??= new List<TestEntry>();
ObjectModel\TestResult.cs (1)
204private readonly List<CollectorDataEntry> _collectorDataEntries = new();
ObjectModel\TestResultAggregation.cs (2)
42_innerResults ??= new List<ITestResult>(); 55_innerResults ??= new List<ITestResult>();
TrxLogger.cs (1)
212return new List<RunInfo>(_runLevelErrorsAndWarnings);
Utility\Converter.cs (6)
172List<CollectorDataEntry> collectorEntries = new(); 196List<string> resultFiles = new(); 383List<string> resultFiles = new(); 386List<CollectorDataEntry> collectorEntries = new(); 456List<IDataAttachment> uriDataAttachments = new(); 512List<string> resultFiles = new();
XML\XmlPersistence.cs (1)
526List<FieldPersistenceInfo> toReturn = new();
Microsoft.VisualStudio.TestPlatform.ObjectModel (22)
AttachmentSet.cs (1)
41Attachments = new List<UriDataAttachment>();
Client\DiscoveryCriteria.cs (1)
134IEnumerable<string> sources = new List<string>();
Client\Events\DiscoveryCompleteEventArgs.cs (4)
51public IList<string>? FullyDiscoveredSources { get; set; } = new List<string>(); 58public IList<string>? PartiallyDiscoveredSources { get; set; } = new List<string>(); 65public IList<string>? SkippedDiscoveredSources { get; set; } = new List<string>(); 71public IList<string>? NotDiscoveredSources { get; set; } = new List<string>();
Client\TestRunCriteria.cs (1)
499IEnumerable<string> sources = new List<string>();
DataCollector\DataCollectionRunSettings.cs (1)
194List<DataCollectorSettings> settings = new();
Logger\LoggerRunSettings.cs (1)
157var settings = new List<LoggerSettings>();
Navigation\FullSymbolReader.cs (2)
336List<string> children = new(); 412List<string> children = new();
Nuget.Frameworks\CompatibilityProvider.cs (2)
161var targetSet = new List<NuGetFramework>() { target }; 164var candidateSet = new List<NuGetFramework>() { candidate };
Nuget.Frameworks\DefaultPortableFrameworkMappings.cs (1)
118var profileOptionalFrameworks = new List<KeyValuePair<int, NuGetFramework[]>>(ProfilesWithOptionalFrameworks.Length);
Nuget.Frameworks\FrameworkNameProvider.cs (4)
105_netStandardVersions = new List<NuGetFramework>(); 106_compatibleCandidates = new List<NuGetFramework>(); 491var result = new List<NuGetFramework>(); 569var baseFrameworks = new List<NuGetFramework>(result);
Nuget.Frameworks\FrameworkReducer.cs (1)
306var results = new List<NuGetFramework>(input.Length);
Nuget.Frameworks\NuGetFramework.cs (1)
142var parts = new List<string>(3) { Framework };
TestServiceLocator.cs (1)
17public static List<Resolve> Resolves { get; } = new();
Utilities\XmlRunSettingsUtilities.cs (1)
88var friendlyNameList = new List<string>();
Microsoft.Web.XmlTransform (8)
NamedTypeFactory.cs (1)
16private List<Registration> registrations = new List<Registration>();
XmlArgumentUtility.cs (2)
19List<string> arguments = new List<string>(); 33List<string> combinedArguments = new List<string>();
XmlAttributePreservationDict.cs (1)
17private List<string> orderedAttributes = new List<string>();
XmlElementContext.cs (1)
222List<XmlAttribute> attributesToRemove = new List<XmlAttribute>();
XmlTransforms.cs (3)
215DictionaryList = new List<Dictionary<string, string>>(capacity); 380List<RegularExpressions.Match> matchsExpr = new List<RegularExpressions.Match>(); 517List<RegularExpressions.Match> matchs = new List<RegularExpressions.Match>();
Microsoft.Win32.Msi (1)
ProgressEventArgs.cs (1)
33List<int> fields = new();
Microsoft.Win32.SystemEvents (1)
Microsoft\Win32\SystemEvents.cs (1)
336invokeItems = new List<SystemEventInvokeInfo>();
MilvusPlayground.ApiService (4)
Program.cs (4)
46List<long> bookIds = new(); 47List<long> wordCounts = new(); 48List<ReadOnlyMemory<float>> bookIntros = new(); 49List<string> bookNames = new();
Mono.Cecil (3)
Mono.Cecil.Metadata\Buffers.cs (1)
390 var sorted = new List<KeyValuePair<string, uint>> (strings);
Mono.Cecil\MethodReferenceComparer.cs (2)
75 xComparisonStack = new List<MethodReference> (); 78 yComparisonStack = new List<MethodReference> ();
Mono.Cecil.Mdb (19)
Mono.CompilerServices.SymbolWriter\MonoSymbolFile.cs (4)
118 List<MethodEntry> methods = new List<MethodEntry> (); 119 List<SourceFileEntry> sources = new List<SourceFileEntry> (); 120 List<CompileUnitEntry> comp_units = new List<CompileUnitEntry> (); 515 method_list = new List<MethodEntry> ();
Mono.CompilerServices.SymbolWriter\MonoSymbolTable.cs (7)
451 List<CapturedVariable> captured_vars = new List<CapturedVariable> (); 452 List<CapturedScope> captured_scopes = new List<CapturedScope> (); 548 namespaces = new List<NamespaceEntry> (); 557 include_files = new List<SourceFileEntry> (); 638 include_files = new List<SourceFileEntry> (); 644 namespaces = new List<NamespaceEntry> (); 945 var lines = new List<LineNumberEntry> ();
Mono.CompilerServices.SymbolWriter\MonoSymbolWriter.cs (3)
54 this.methods = new List<SourceMethodBuilder> (); 55 this.sources = new List<SourceFileEntry> (); 56 this.comp_units = new List<CompileUnitEntry> ();
Mono.CompilerServices.SymbolWriter\SourceMethodBuilder.cs (5)
51 method_lines = new List<LineNumberEntry> (); 104 _blocks = new List<CodeBlockEntry> (); 160 _locals = new List<LocalVariableEntry> (); 177 _scope_vars = new List<ScopeVariable> (); 196 var sorted = new List<CodeBlockEntry> (blocks.Length);
Mono.Cecil.Pdb (3)
Microsoft.Cci.Pdb\PdbFile.cs (2)
321List<DbiModuleInfo> modList = new List<DbiModuleInfo>(); 403List<PdbFunction> funcList = new List<PdbFunction>();
Microsoft.Cci.Pdb\PdbFunction.cs (1)
415this.iteratorScopes = new List<ILocalScope>((int)numberOfLocals);
MSBuild (22)
CommandLine\CommandLineParser.cs (4)
149List<string> validArgs = new(envVarArgs.Count); 377argsFromResponseFile = new List<string>(); 732includedResponseFiles = new List<string>(); 733CommandLineSwitches.SwitchesFromResponseFiles = new();
CommandLine\CommandLineSwitches.cs (3)
447internal static List<(string path, string contents)> SwitchesFromResponseFiles = new(); 591var commandLineA = new List<string>(); 592var commandLineB = new List<string>();
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
109list => list is not null ? new List<string>(list) : null);
src\msbuild\src\Shared\TaskHostBuildResponse.cs (3)
60result = new List<IDictionary<string, ITaskItem[]>>(_targetOutputsPerProject.Count); 91outputs = new List<Dictionary<string, TaskParameter>>(engineResult.TargetOutputsPerProject.Count); 135_targetOutputsPerProject = new List<Dictionary<string, TaskParameter>>(count);
src\msbuild\src\Shared\TaskParameter.cs (2)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
XMake.cs (9)
1550private static readonly List<BuildManager.DeferredBuildMessage> s_globalMessagesToLogInBuildLoggers = new(); 1620List<ForwardingLoggerRecord> remoteLoggerRecords = new List<ForwardingLoggerRecord>(); 1842List<BuildManager.DeferredBuildMessage> messagesToLogInBuildLoggers = new(); 2050List<BuildManager.DeferredBuildMessage> messages = new(s_globalMessagesToLogInBuildLoggers) 3555List<string> actualProjectFiles = new List<string>(); 3569List<string> actualSolutionFiles = new List<string>(); 3570List<string> solutionFilterFiles = new List<string>(); 3840var loggers = new List<ILogger>(); 4320List<DistributedLoggerRecord> distributedLoggers = new List<DistributedLoggerRecord>();
MyFrontend (2)
playground\TestShop\BasketService\Models\BasketItem.cs (1)
15var results = new List<ValidationResult>();
playground\TestShop\BasketService\Models\CustomerBasket.cs (1)
7public List<BasketItem> Items { get; set; } = new();
NuGet.Build.Tasks (16)
BuildTasksUtility.cs (2)
161var restoreSummaries = new List<RestoreSummary>(); 200var providers = new List<IPreLoadedRestoreRequestProvider>();
GetCentralPackageVersionsTask.cs (1)
42var entries = new List<ITaskItem>();
GetReferenceNearestTargetFrameworkTask.cs (2)
76var fallbackNuGetFrameworks = new List<NuGetFramework>(); 146var targetFrameworkInformations = new List<TargetFrameworkInformation>();
GetRestoreDotnetCliToolsTask.cs (1)
64var entries = new List<ITaskItem>();
GetRestoreFrameworkReferencesTask.cs (1)
39var entries = new List<ITaskItem>();
GetRestoreNuGetAuditSuppressionsTask.cs (1)
41var entries = new List<ITaskItem>(NuGetAuditSuppressions.Length);
GetRestorePackageDownloadsTask.cs (1)
39var entries = new List<ITaskItem>();
GetRestorePackageReferencesTask.cs (1)
39var entries = new List<ITaskItem>();
GetRestoreProjectReferencesTask.cs (1)
56var entries = new List<ITaskItem>();
GetRestorePrunedPackageReferencesTask.cs (1)
41var entries = new List<ITaskItem>(PrunePackageReferences.Length);
GetRestoreSolutionProjectsTask.cs (1)
52var entries = new List<ITaskItem>();
RestoreTask.cs (1)
313List<ITaskItem> restoredProjectOutputPaths = new List<ITaskItem>(projects.Count);
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
TaskLoggingQueue.cs (1)
25private readonly List<string> _filesToEmbedInBinlog = new List<string>();
NuGet.Build.Tasks.Console (6)
MSBuildStaticGraphRestore.cs (5)
474var projectReferences = new List<ProjectRestoreReference>(projectReferenceItems.Count); 500var projectRestoreMetadataFrameworkInfos = new List<ProjectRestoreMetadataFrameworkInfo>(projects.Count); 738return new List<ProjectGraphEntryPoint> 753var targetFrameworkInfos = new List<TargetFrameworkInformation>(projectInnerNodes.Count); 1267var loggers = new List<Microsoft.Build.Framework.ILogger>
TargetFrameworkAdapter.cs (1)
24var list = new List<IItem>();
NuGet.Build.Tasks.Pack (8)
GetPackOutputItemsTask.cs (1)
60var outputs = new List<ITaskItem>();
PackTaskLogic.cs (7)
420tfmSpecificRefs.Add(tfmRef.Identity, new List<string>() { targetFramework }); 504var assemblies = new List<OutputLibFile>(); 594var listOfPackageTypes = new List<PackageType>(); 677var existingContentMetadata = new List<ContentMetadata>(); 715var newTargetPaths = new List<string>(); 767var newTargetPaths = new List<string>(); 798var totalSetOfTargetPaths = new List<string>();
NuGet.CommandLine.XPlat (75)
_generated\24\PackageSearchJsonContext.ListPackageSearchProblem.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>(),
_generated\25\PackageSearchJsonContext.ListPackageSearchResult.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>(),
_generated\26\PackageSearchJsonContext.ListIPackageSearchMetadata.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>(),
Commands\LocalsCommand.cs (1)
70var localsArgs = new LocalsArgs(new List<string> { cacheLocation },
Commands\Package\Download\PackageDownloadRunner.cs (1)
254var mappedRepos = new List<SourceRepository>(mappedNames.Count);
Commands\Package\PackageWithNuGetVersion.cs (1)
25var packages = new List<PackageWithNuGetVersion>(result.Tokens.Count);
Commands\Package\PackageWithVersionRange.cs (1)
26List<PackageWithVersionRange> packages = new List<PackageWithVersionRange>(result.Tokens.Count);
Commands\Package\Update\PackageUpdateCommandRunner.cs (5)
179var packagesToUpdateResult = new List<PackageUpdateResult>(); 474var packagesToUpdate = new List<PackageUpdateResult>(); 562List<string> frameworks = new(); 633var packagesToUpdate = new List<PackageUpdateResult>(); 726List<(PackageWithVersionRange package, List<string> tfms)> result = new(allPackages.Count);
Commands\Package\Update\PackageUpdateIO.cs (5)
148var providers = new List<IPreLoadedRestoreRequestProvider> 266var tasks = new List<Task<GetVulnerabilityInfoResult?>>(auditSources.Count); 282List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> allVulnerabilities = new(); 353List<PackageSource> sourceMappedSources = new List<PackageSource>(allowedSources.Count); 362var sources = new List<SourceRepository>(packageSources.Count);
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (3)
103var userSpecifiedFrameworks = new List<string>(); 125List<string> sources = new List<string>(); 418var providers = new List<IPreLoadedRestoreRequestProvider>
Commands\PackageReferenceCommands\ListPackage\FrameworkPackages.cs (2)
29public FrameworkPackages(string framework, string targetAlias) : this(framework, targetAlias, new List<InstalledPackageReference>(), new List<InstalledPackageReference>())
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (2)
234var currentlySupportedReportVersions = new List<string> { "1" }; 277var packageSources = new List<PackageSource>();
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (7)
181projectModel.TargetFrameworkPackages = new List<ListPackageReportFrameworkPackage>(); 204TransitivePackages = new List<ListReportPackage>(), 205TopLevelPackages = new List<ListReportPackage>() 211projectModel.TargetFrameworkPackages ??= new List<ListPackageReportFrameworkPackage>(); 279var vulnerabilityInfo = new List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>(); 406var filteredReferences = new List<InstalledPackageReference>(); 678var results = new List<IPackageSearchMetadata>();
Commands\PackageSearch\JsonFormat\PackageSearchMainOutput.cs (2)
25Problems = new List<PackageSearchProblem>(); 26SearchResult = new List<PackageSearchResult>();
Commands\PackageSearch\JsonFormat\PackageSearchResult.cs (1)
29Packages = new List<IPackageSearchMetadata>();
Commands\PackageSearch\PackageSearchResultJsonRenderer.cs (1)
44Problems = new List<PackageSearchProblem>() { packageSearchProblem }
Commands\PackageSearch\Table.cs (5)
27internal readonly List<Column> _columns = new List<Column>(); 29internal List<string[]> _rows = new List<string[]>(); 119List<int> renderedColumns = new List<int>(); 122List<List<int>> highlight = new List<List<int>>(); 203List<int> indices = new List<int>();
Commands\Signing\SignCommand.cs (1)
158PackagePaths = new List<string>(packagePathValues),
Commands\Signing\VerifyCommand.cs (4)
70args.PackagePaths = new List<string>(packagePathValues); 72new List<Verification>() { Verification.All } : 73new List<Verification>() { Verification.Signatures }; 74args.CertificateFingerprint = new List<string>(parseResult.GetValue(fingerPrint) ?? Array.Empty<string>());
Commands\Why\DependencyGraphFinder.cs (1)
102List<PackageDependency> dependencies = new List<PackageDependency>(directPackages.Length + directProjectReferences.Count);
ListPackage\ListPackageConsoleRenderer.cs (1)
21protected List<ReportProblem> _problems = new();
ListPackage\ListPackageJsonRenderer.cs (1)
51protected readonly List<ReportProblem> _problems = new();
ListPackage\ListPackageProjectModel.cs (1)
15internal List<ReportProblem> ProjectProblems { get; } = new();
ListPackage\ListPackageReportModel.cs (1)
17internal List<ListPackageProjectModel> Projects { get; } = new();
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
Utility\AddPackageCommandUtility.cs (3)
34var tasks = new List<Task<NuGetVersion>>(); 35var latestReleaseList = new List<NuGetVersion>(); 102var packageSources = new List<PackageSource>();
Utility\CommandLineUtility.cs (1)
30var result = new List<string>();
Utility\HttpSourcesUtility.cs (3)
20return new(); 29httpPackageSources ??= new(capacity: packageSources.Count); 34return httpPackageSources ?? new();
Utility\MSBuildAPIUtility.cs (7)
106List<string> projects = new List<string>(); 746var resultPackages = new List<FrameworkPackages>(); 761var filteredTargets = new List<LockFileTarget>(); 806var topLevelPackages = new List<InstalledPackageReference>(); 807var transitivePackages = new List<InstalledPackageReference>(); 938newProject.Build(new[] { CollectPackageReferences, CollectCentralPackageVersions }, new List<Microsoft.Build.Framework.ILogger> { }, out var targetOutputs); 1035var mergedPackageReferences = new List<ProjectItem>();
Utility\ProjectPackagesPrintUtility.cs (5)
32var projectFrameworkPackages = new List<ListPackageReportFrameworkPackage>(); 118var valueSelectors = new List<Func<ListReportPackage, object>> 177? new List<FormattedCell> { new FormattedCell(string.Empty, foregroundColor: null) } 185? new List<FormattedCell> { new FormattedCell(string.Empty, foregroundColor: null) } 275var result = new List<string>();
Utility\TableParser.cs (5)
29var stringTable = new List<List<FormattedCell>>(); 36var headers = new List<FormattedCell>(); 46var row = new List<FormattedCell>(); 95var subsequentRow = new List<FormattedCell>(); 125var stringTable = new List<FormattedCell>();
NuGet.Commands (139)
ClientCertificatesCommand\ListClientCertRunner.cs (1)
33var clientCertificatesLogs = new List<LogMessage>();
CommandRunners\LocalsCommandRunner.cs (1)
280var failedDeletes = new List<string>();
CommandRunners\PackCommandRunner.cs (3)
355var includes = new List<string>(); 356var excludes = new List<string>(); 789IList<PackagingLogMessage> logMessages = new List<PackagingLogMessage>();
ListCommand\ListCommandRunner.cs (3)
32var sourceFeeds = new List<ListResource>(); 56var allPackages = new List<IEnumerableAsync<IPackageSearchMetadata>>(); 78httpPackageSources = new();
MSBuildPackTargetArgs.cs (2)
29TargetPathsToAssemblies = new List<OutputLibFile>(); 30TargetPathsToSymbols = new List<OutputLibFile>();
RestoreCommand\CompatibilityChecker.cs (4)
67var issues = new List<CompatibilityIssue>(); 79var available = new List<NuGetFramework>(); 256List<ContentItemGroup> itemGroups = new(); 287var available = new List<NuGetFramework>();
RestoreCommand\ContentFiles\ContentFileUtils.cs (5)
38var groups = new List<ContentItemGroup>(); 50index = new List<ContentItemGroup>(1); 101entryMappings.Add(item.Path, new List<ContentFilesEntry>()); 128var absolutePaths = new List<string>(relativePathToEntries.Count); 163var results = new List<LockFileContentFile>(entryMappings.Count);
RestoreCommand\DependencyGraphResolver.cs (3)
132List<RestoreTargetGraph> allGraphs = new(); 138List<RestoreTargetGraph> runtimeGraphs = new(); 331List<GraphNode<RemoteResolveResult>> graphNodes = new();
RestoreCommand\DependencyGraphResolver.DependencyGraphItem.cs (1)
100List<LibraryDependency> dependencies = new(capacity: (RuntimeDependencies?.Count ?? 0) + item.Data.Dependencies.Count);
RestoreCommand\Diagnostics\DiagnosticUtility.cs (1)
110var output = new List<RestoreLogMessage>();
RestoreCommand\Diagnostics\UnexpectedDependencyMessages.cs (3)
73var messages = new List<RestoreLogMessage>(); 134var messages = new List<RestoreLogMessage>(); 250var messages = new List<RestoreLogMessage>();
RestoreCommand\Diagnostics\UnresolvedMessages.cs (3)
51var messageTasks = new List<Task<RestoreLogMessage>>(); 154var lines = new List<string>() 260var sources = new List<KeyValuePair<PackageSource, ImmutableArray<NuGetVersion>>>();
RestoreCommand\LockFileBuilder.cs (5)
362lockFile.Libraries = new List<LockFileLibrary>(libraryReferences.Count); 398lockFileTarget.Libraries = new List<LockFileTargetLibrary>(libraryReferences.Count); 432?? new List<NuGetFramework>(); 445var dependencies = new List<LibraryRange>(); 469var uniqueDependencies = new List<LibraryRange>();
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (1)
32var projectFrameworks = new List<string>();
RestoreCommand\Logging\WarningPropertiesCollection.cs (1)
49ProjectFrameworks = projectFrameworks ?? new ReadOnlyCollection<string>(new List<string>());
RestoreCommand\MSBuildRestoreItemGroup.cs (2)
25public List<string> Conditions { get; set; } = new List<string>(); 30public List<XElement> Items { get; set; } = new List<XElement>();
RestoreCommand\OriginalCaseGlobalPackageFolder.cs (1)
49_localRepositories = new List<NuGetv3LocalRepository>();
RestoreCommand\ProjectRestoreCommand.cs (9)
58var frameworkTasks = new List<Task<RestoreTargetGraph>>(); 59var graphs = new List<RestoreTargetGraph>(); 107var localRepositories = new List<NuGetv3LocalRepository>(); 111var runtimeGraphs = new List<RestoreTargetGraph>(); 112var runtimeTasks = new List<Task<RestoreTargetGraph[]>>(); 221List<Task<DownloadDependencyResolutionResult>> downloadDependencyResolutionTasks = new(capacity: packageSpec.TargetFrameworks.Count); 243List<Task<Tuple<LibraryRange, RemoteMatch>>> packageDownloadTasks = new(capacity: targetFrameworkInformation.DownloadDependencies.Length); 285var graphs = new List<GraphNode<RemoteResolveResult>> 465var resultGraphs = new List<Task<RestoreTargetGraph>>();
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (3)
146?? new List<ProjectRestoreReference>(); 241var auditSourceRepositories = new List<SourceRepository>(auditSources.Count); 275projectAdditionalMessages = new List<IAssetsLogMessage>();
RestoreCommand\RequestFactory\NoOpRestoreResult.cs (2)
22base(success: success, restoreGraphs: null, compatibilityCheckResults: new List<CompatibilityCheckResult>(), 27LogMessages = cacheFile?.LogMessages ?? new List<IAssetsLogMessage>();
RestoreCommand\RequestFactory\RestoreArgs.cs (4)
36public List<string> Inputs { get; set; } = new List<string>(); 46public List<string> Sources { get; set; } = new List<string>(); 50public List<IRestoreRequestProvider> RequestProviders { get; set; } = new List<IRestoreRequestProvider>(); 52public List<IPreLoadedRestoreRequestProvider> PreLoadedRequestProviders { get; set; } = new List<IPreLoadedRestoreRequestProvider>();
RestoreCommand\RestoreCommand.cs (17)
225var localRepositories = new List<NuGetv3LocalRepository> 785graphs = new(frameworkRuntimePairs.Count); 1004List<TelemetryEvent> result = new List<TelemetryEvent>(packages.Count); 1301var packagesList = new List<string>(packagesWithoutVersions.Count); 1349implicitPackageReferenceItemsWithPackageVersion ??= new(); 1359packageReferenceItemsWithVersionOverride ??= new(); 1367packageReferenceItemsWithVersion ??= new(); 1375packageReferenceItemsWithNoPackageVersion ??= new(); 1389packageVersionItemsWithFloatingVersion ??= new(); 1914var messages = new List<RestoreLogMessage>(); 1979var checkResults = new List<CompatibilityCheckResult>(); 2063var allGraphs = new List<RestoreTargetGraph>(); 2079List<FrameworkRuntimePair> frameworkRuntimePairs = new(); 2237var localRepositories = new List<NuGetv3LocalRepository>(); 2284graphs = new List<RestoreTargetGraph>(); 2412var updatedExternalProjects = new List<ExternalProjectReference>(); 2476List<FrameworkRuntimeDefinition> projectFrameworkRuntimePairs = new(capacity: packageSpec.TargetFrameworks.Count * (runtimeIds.Count + 1));
RestoreCommand\RestoreCommandProvidersCache.cs (4)
119var fallbackFolders = new List<NuGetv3LocalRepository>(); 150var localProviders = new List<IRemoteDependencyProvider>(fallbackPackagesPaths.Count + 1) { local }; 181var remoteProviders = new List<IRemoteDependencyProvider>(sources.Count); 214var vulnerabilityInformationProviders = new List<IVulnerabilityInformationProvider>(sources.Count);
RestoreCommand\RestoreRequest.cs (1)
45ExternalProjects = new List<ExternalProjectReference>();
RestoreCommand\RestoreResult.cs (2)
140LogMessages = lockFile?.LogMessages ?? new List<IAssetsLogMessage>(); 344dirtyFiles ??= new List<string>(1);
RestoreCommand\RestoreRunner.cs (7)
70var restoreTasks = new List<Task<RestoreSummary>>(maxTasks); 71var restoreSummaries = new List<RestoreSummary>(requests.Count); 136var restoreTasks = new List<Task<RestoreResultPair>>(maxTasks); 137var restoreResults = new List<RestoreResultPair>(maxTasks); 172var requests = new List<RestoreSummaryRequest>(); 174var inputs = new List<string>(restoreContext.Inputs); 357var results = new List<RestoreSummaryRequest>();
RestoreCommand\Utility\AuditUtility.cs (6)
110PackageDownloadPackagesWithAdvisory = new(capacity: packagesWithKnownVulnerabilities.Values.Count); 171affectedGraphs = new(); 269DirectPackagesWithAdvisory = new(capacity: directPackageCount); 270TransitivePackagesWithAdvisory = new(capacity: packagesWithKnownVulnerabilities.Count - directPackageCount); 421affectedGraphs = new(); 477knownVulnerabilities = new();
RestoreCommand\Utility\BuildAssetsUtils.cs (9)
104var files = new List<MSBuildOutputFile>() 501var props = new List<MSBuildRestoreItemGroup>(); 502var targets = new List<MSBuildRestoreItemGroup>(); 542List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>> sortedPackages = new List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>>(sortedGraph.Count); 632var lockContentFiles = new List<LockFileContentFile>(pkg.Key.ContentFiles.Count); 643var currentItems = new List<(LockFileTargetLibrary, LockFileContentFile, string)>(lockContentFiles.Count); 677var files = new List<MSBuildOutputFile>(capacity: 2) 821var newConditions = new List<string>(original.Conditions.Count + 1); 892List<PackageDependency> newDependencies = new List<PackageDependency>(item.Data.Dependencies.Count);
RestoreCommand\Utility\LockFileUtils.cs (16)
151var orderedCriteriaSets = new List<(List<SelectionCriteria>, bool)>(1); 337List<ContentItemGroup> contentFileGroups = new(); 372var runtimeTargetItems = new List<LockFileRuntimeTarget>(); 639projectLib.CompileTimeAssemblies = new List<LockFileItem>() { lockFileItem }; 640projectLib.RuntimeAssemblies = new List<LockFileItem>() { lockFileItem }; 684var results = new List<LockFileItem>(items.Count); 724result = new(group.Items.Count); 745return result ?? new(); 769var lockFileItems = new List<LockFileItem>(); 934managedCriteria = new(capacity: 1) 947managedCriteria = new(capacity: 1 + fallbackFramework.Fallback.Count) 1027var groups = new List<ContentItemGroup>(); 1042index = new List<ContentItemGroup>(1); 1088List<ContentItemGroup> groups = new List<ContentItemGroup>(); 1113var results = new List<LockFileRuntimeTarget>(); 1221var newBuildAssets = new List<LockFileItem>();
RestoreCommand\Utility\MSBuildRestoreUtility.cs (4)
92idItems = new List<IMSBuildItem>(1); 100var additionalMessages = collectAdditionalMessages ? new List<IAssetsLogMessage>() : null; 103var validProjectSpecs = new List<PackageSpec>(); 629aliasGroups.Add(alias, new List<ProjectRestoreReference>());
RestoreCommand\Utility\NoOpRestoreUtilities.cs (2)
242var pathResolvers = new List<VersionFolderPathResolver>(request.Project.RestoreMetadata.FallbackFolders.Count + 1) 252var packageFiles = new List<string>(lockFile.Libraries.Count + request.Project.TargetFrameworks.Sum(i => i.DownloadDependencies.Length));
RestoreCommand\Utility\PackageSpecFactory.cs (3)
223var targetFrameworkInfos = new List<TargetFrameworkInformation>(project.TargetFrameworks.Count); 587var projectRestoreMetadataFrameworkInfos = new List<ProjectRestoreMetadataFrameworkInfo>(projects.Count); 615var projectReferences = new List<ProjectRestoreReference>(projectReferenceItems.Count);
RestoreCommand\Utility\SpecValidationUtility.cs (1)
152List<NuGetFramework> frameworkNames = new List<NuGetFramework>(spec.TargetFrameworks.Count);
RestoreCommand\Utility\ToolRestoreUtility.cs (3)
87var results = new List<RestoreSummaryRequest>(); 88var tools = new List<RestoreSummaryRequest>(); 122var results = new List<RestoreSummaryRequest>();
SourcesCommands\SourceRunners.cs (1)
210httpPackageSources = new();
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
TrustedSignersCommand\TrustedSignerActionsProvider.cs (1)
292var certs = new List<CertificateItem>();
TrustedSignersCommand\TrustedSignersCommandRunner.cs (1)
211var trustedSignersLogs = new List<LogMessage>();
Utility\MSBuildProjectFrameworkUtility.cs (1)
325var frameworks = new List<NuGetFramework>();
VerifyCommand\VerifyCommandRunner.cs (1)
66var verificationProviders = new List<ISignatureVerificationProvider>()
NuGet.Common (6)
AsyncEnumerable\AggregateEnumeratorAsync.cs (3)
21private readonly List<IEnumeratorAsync<T>> _asyncEnumerators = new List<IEnumeratorAsync<T>>(); 71completedEnums = new List<IEnumeratorAsync<T>>(); 100completedEnums = new List<IEnumeratorAsync<T>>();
AuthTypeFilteredCredentials.cs (1)
37AuthTypes = new List<string>(authTypes);
Errors\RestoreLogMessage.cs (1)
35var graphList = new List<string>();
Telemetry\TelemetryActivity.cs (1)
55_intervalList = new List<Tuple<string, TimeSpan>>();
NuGet.Configuration (30)
PackageSource\PackageSourceProvider.cs (4)
106List<PackageSource> defaultSources = new(packageSourceLookup.Count); 147packageSources = new(capacity: packageSourceLookup.Count); 154packageSources = new List<PackageSource>(); 321var defaultPackageSourcesToBeAdded = new List<PackageSource>();
PackageSourceMapping\PackageSourceMapping.cs (1)
78patterns.Add(packageSourceNamespaceItem.Key, new List<string>(packageSourceNamespaceItem.Patterns.Select(e => e.Pattern)));
PackageSourceMapping\PackageSourceMappingProvider.cs (1)
94List<PackageSourceMappingSourceItem> removeMappings = new List<PackageSourceMappingSourceItem>();
PackageSourceMapping\SearchTree.cs (1)
71currentNode.PackageSources = new List<string>();
Settings\ConfigurationDefaults.cs (1)
68List<PackageSource> sources = new();
Settings\Items\PackageSourceMappingSourceItem.cs (2)
67Patterns = new List<PackagePatternItem>(); 159var clonedPatterns = new List<PackagePatternItem>(Patterns);
Settings\Items\RepositoryItem.cs (3)
55Owners = new List<string>(); 80Owners = _owners?.Content ?? new List<string>(); 84Owners = new List<string>();
Settings\Items\TrustedSignerItem.cs (2)
45Certificates = new List<CertificateItem>(); 122var immutableCerts = new List<CertificateItem>(Certificates);
Settings\SettingFactory.cs (2)
162var children = new List<T>(); 176duplicatedDescendants = new List<T>();
Settings\Settings.cs (8)
197: this(new List<SettingsFile> { new SettingsFile(root) }) { } 200: this(new List<SettingsFile> { new SettingsFile(root, fileName) }) { } 203: this(new List<SettingsFile>() { new SettingsFile(root, fileName, isMachineWide, isReadOnly: false) }) 397var settings = new List<SettingsFile>(); 409var settings = new List<SettingsFile>(); 450var validSettingFiles = new List<SettingsFile>(); 488var validSettingFiles = new List<SettingsFile>(); 655var settingFiles = new List<SettingsFile>();
Settings\SettingsGroup.cs (2)
32Children = new List<T>(); 36Children = new List<T>(children);
Settings\VirtualSettingSection.cs (1)
137var mergedSettings = new List<SettingItem>();
Utility\ConfigurationContants.cs (1)
150return new List<string>
Utility\SettingsUtility.cs (1)
293var paths = new List<string>();
NuGet.Credentials (2)
DefaultCredentialServiceUtility.cs (1)
90var providers = new List<ICredentialProvider>();
SecurePluginCredentialProviderBuilder.cs (1)
45var plugins = new List<ICredentialProvider>();
NuGet.DependencyResolver.Core (18)
GraphModel\AnalyzeResult.cs (3)
18Downgrades = new List<DowngradeResult<TItem>>(); 19VersionConflicts = new List<VersionConflictResult<TItem>>(); 20Cycles = new List<GraphNode<TItem>>();
GraphModel\GraphNode.cs (3)
24InnerNodes = hasInnerNodes ? new List<GraphNode<TItem>>() : EmptyList; 25ParentNodes = hasParentNodes ? new List<GraphNode<TItem>>() : EmptyList; 82InnerNodes = new List<GraphNode<TItem>>(additionalSpace);
Remote\RemoteDependencyWalker.cs (5)
52var transitiveCentralPackageVersionNodes = new List<GraphNode<RemoteResolveResult>>(); 303var newDependencies = new List<LibraryDependency>(runtimeDependencies.Count + node.Item.Data.Dependencies.Count); 635list = new List<GraphNode<RemoteResolveResult>>(); 835_additionalItems = new List<T>(listCapacity); 840_additionalItems = new List<T>(defaultListSize);
Remote\RemoteResolveResult.cs (1)
13internal static readonly List<LibraryDependency> EmptyDependencies = new List<LibraryDependency>(0);
Remote\RemoteWalkContext.cs (4)
21ProjectLibraryProviders = new List<IDependencyProvider>(); 22LocalLibraryProviders = new List<IRemoteDependencyProvider>(); 23RemoteLibraryProviders = new List<IRemoteDependencyProvider>(); 77var filteredLibraryProviders = new List<IRemoteDependencyProvider>(sources.Count);
ResolverUtility.cs (1)
501var tasks = new List<Task<RemoteMatch?>>();
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
NuGet.Frameworks (10)
CompatibilityProvider.cs (2)
161var targetSet = new List<NuGetFramework>() { target }; 164var candidateSet = new List<NuGetFramework>() { candidate };
DefaultPortableFrameworkMappings.cs (1)
118var profileOptionalFrameworks = new List<KeyValuePair<int, NuGetFramework[]>>(ProfilesWithOptionalFrameworks.Length);
FrameworkNameProvider.cs (4)
106_netStandardVersions = new List<NuGetFramework>(); 107_compatibleCandidates = new List<NuGetFramework>(); 503var result = new List<NuGetFramework>(shortNames.Length); 581var baseFrameworks = new List<NuGetFramework>(result);
FrameworkReducer.cs (1)
306var results = new List<NuGetFramework>(input.Length);
NuGetFramework.cs (1)
142var parts = new List<string>(3) { Framework };
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
NuGet.LibraryModel (2)
LibraryDependencyTargetUtils.cs (1)
126var flagStrings = new List<string>();
LibraryIncludeFlagUtils.cs (1)
87var flagStrings = new List<string>();
NuGet.PackageManagement (97)
Audit\AuditChecker.cs (7)
96List<PackageIdentity> packagesWithReportedAdvisories = new(packagesWithKnownVulnerabilities?.Count ?? 0); 154results = new(auditSources.Count); 160results = new(packageSources.Count); 199knownVulnerabilities ??= new(); 206errors ??= new(); 250var warnings = new List<LogMessage>(); 417Vulnerabilities = new();
Audit\AuditCheckResult.cs (1)
86List<TelemetryEvent> result = new List<TelemetryEvent>(Packages.Count);
BuildIntegration\BuildIntegratedProjectAction.cs (1)
147var actions = new List<NuGetProjectAction>();
BuildIntegration\DependencyGraphRestoreUtility.cs (3)
107return new List<RestoreSummary>(); 261allAdditionalMessages = new List<IAssetsLogMessage>(); 342PreLoadedRequestProviders = new List<IPreLoadedRestoreRequestProvider>() { dgProvider },
FileModifiers\XmlTransformer.cs (1)
127var elements = new List<XElement>();
IDE\PackageRestoreManager.cs (5)
122var packages = new List<PackageRestoreData>(); 169projectNames = new List<string>(); 451var tasks = new List<Task<List<AttemptedPackage>>>(); 477var attemptedPackages = new List<AttemptedPackage>(); 508var tasks = new List<Task>();
NuGetPackageManager.cs (42)
169var sources = new List<SourceRepository>(); 176var folders = new List<string>(count) 243new List<SourceRepository> { primarySourceRepository }, 269new List<SourceRepository> { primarySourceRepository }, 368new List<SourceRepository> { primarySourceRepository }, 393new List<SourceRepository> { primarySourceRepository }, 570packageIdentities: new List<PackageIdentity>(), 590packageIdentities: new List<PackageIdentity>(), 610packageIdentities: new List<PackageIdentity> { packageIdentity }, 680var tasks = new List<Task<IEnumerable<NuGetProjectAction>>>(maxTasks); 681var nugetActions = new List<NuGetProjectAction>(); 842var actions = new List<NuGetProjectAction>(); 847var lowLevelActions = new List<NuGetProjectAction>(); 941var lowLevelActions = new List<NuGetProjectAction>(); 1024var primaryTargetIds = new List<string>(); 1025var primaryTargets = new List<PackageIdentity>(); 1059primaryTargets = new List<PackageIdentity> { preferredVersions[packageId] }; 1063primaryTargetIds = new List<string> { packageId }; 1094var nuGetProjectActions = new List<NuGetProjectAction>(); 1111var allSources = new List<SourceRepository>(primarySources); 1401var nuGetProjectActions = new List<NuGetProjectAction>(); 1571var primarySources = new List<SourceRepository> { primarySourceRepository }; 1655var results = new List<ResolvedAction>(); 1658var buildIntegratedProjectsToUpdate = new List<BuildIntegratedNuGetProject>(); 1661var otherTargetProjectsToUpdate = new List<NuGetProject>(); 1808var nuGetProjectActions = new List<NuGetProjectAction>(); 1845var primaryPackages = new List<PackageIdentity> { packageIdentity }; 1912var preferredPackageReferences = new List<PackageReference>(projectInstalledPackageReferences.Where(pr => 1954var newPackagesToUninstall = new List<PackageIdentity>(); 2153var results = new List<NuGetProjectAction>(); 2155var buildIntegratedProjectsToUpdate = new List<BuildIntegratedNuGetProject>(); 2156var otherTargetProjectsToUpdate = new List<NuGetProject>(); 2855new List<BuildIntegratedNuGetProject>() { buildIntegratedProject }, 2914var result = new List<ResolvedAction>(); 3084List<(NuGetProjectAction, BuildIntegratedInstallationContext)> projectActionsAndInstallationContexts = new(nuGetProjectActions.Length); 3244List<PackagePatternItem> newPatternItems = new() 3509List<string> filesToBeUpdated = new(3); // We know that we have 3 files. 3779new List<SourceRepository> { primarySourceRepository }, 3803new List<SourceRepository> { primarySourceRepository }, 3834var tasks = new List<Task<ResolvedPackage>>(); 3856var tasks = new List<Task<ResolvedPackage>>(); 3922var effectiveSources = new List<SourceRepository>(count)
PackageDownloader.cs (4)
77var failedTasks = new List<Task<DownloadResourceResult>>(); 85var localGroup = new List<SourceRepository>(); 86var otherGroup = new List<SourceRepository>(); 126var tasks = new List<Task<DownloadResourceResult>>();
PackagePreFetcher.cs (1)
113var downloadResults = new List<PackagePreFetcherResult>(maxParallelTasks);
Projects\FolderNuGetProject.cs (1)
162var addedPackageFilesList = new List<string>();
Projects\MSBuildNuGetProject.cs (2)
657return (new List<PackageSpec>(), null); 663packageSpec = new PackageSpec(new List<TargetFrameworkInformation>
Projects\PackagesConfigNuGetProject.cs (1)
347return new List<PackageReference>();
Projects\ProjectJsonNuGetProject.cs (2)
96var supported = new List<FrameworkName> 140var packages = new List<PackageReference>();
Resolution\GatherCache.cs (1)
91var packages = new List<SourcePackageDependencyInfo>(1);
Resolution\GatherCacheResult.cs (1)
24Packages = packages ?? new List<SourcePackageDependencyInfo>();
Resolution\ResolverGather.cs (10)
25private readonly List<SourceResource> _primaryResources = new List<SourceResource>(); 26private readonly List<SourceResource> _allResources = new List<SourceResource>(); 32private readonly List<GatherResult> _results = new List<GatherResult>(); 45_workerTasks = new List<Task<GatherResult>>(_maxDegreeOfParallelism); 201List<String> allPrimarySourcesList = new List<string>(); 303var packages = new List<SourcePackageDependencyInfo>() { packageInfo }; 395var packages = new List<SourcePackageDependencyInfo>(); 496var results = new List<SourcePackageDependencyInfo>(); 595var getResourceTasks = new List<Task>(); 597var allSources = new List<SourceRepository>();
Resolution\UninstallResolver.cs (1)
106var markedPackages = new List<PackageIdentity>();
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
Utility\BuildIntegratedProjectUtility.cs (2)
37return new List<PackageIdentity>(); 90var results = new List<LibraryIdentity>();
Utility\FileSystemUtility.cs (3)
183var trimmedPaths = new List<string>(); 220sourceControlManager.PendDeleteFiles(new List<string> { fullPath }, string.Empty, nuGetProjectContext); 245var filesToDelete = new List<string>();
Utility\JsonConfigUtility.cs (1)
145var results = new List<NuGetFramework>();
Utility\MSBuildNuGetProjectSystemUtility.cs (1)
276var matchingFiles = new List<InternalZipFileInfo>();
Utility\PackageGraphAnalysisUtilities.cs (2)
81var dependantPackages = new List<PackageDependencyInfo>(); 100var packageWithDependants = new List<PackageWithDependants>();
Utility\PackagesConfigLockFileUtility.cs (3)
103var errors = new List<IRestoreLogMessage>(); 136var errors = new List<IRestoreLogMessage>(); 151var errors = new List<IRestoreLogMessage>();
NuGet.Packaging (127)
ContentModel\ContentItemCollection.cs (5)
19private static readonly SimplePool<List<Asset>> ListAssetPool = new(() => new List<Asset>()); 39_assets = new List<Asset>(); 152List<ContentItemGroup> itemGroups = new List<ContentItemGroup>(); 252List<ContentItem> items = new(); 310relatedFileExtensionList = new List<string>();
ContentModel\ContentItemGroup.cs (1)
15Items = new List<ContentItem>();
ContentModel\Infrastructure\Parser.cs (1)
14private readonly List<Segment> _segments = new List<Segment>();
ContentModel\SelectionCriteria.cs (1)
12Entries = new List<SelectionCriteriaEntry>();
Core\NuspecUtility.cs (1)
69var packageTypes = new List<PackageType>();
Core\PackageDependency.cs (1)
19private static readonly List<string> EmptyList = new List<string>();
Core\PackageDependencyGroup.cs (1)
34_packages = new List<PackageDependency>();
FallbackPackagePathResolver.cs (1)
41var packageFolders = new List<string>();
Licenses\LicenseExpressionTokenizer.cs (1)
65tokensAfterValue = new List<LicenseExpressionToken>();
NuspecReader.cs (11)
214var results = new List<FrameworkSpecificGroup>(); 224var frameworks = new List<NuGetFramework>(); 455errors = new List<string> 470errors = new List<string>(); 492errors = new List<string>(); 500errors = new List<string>(); 511errors = new List<string>(); 521errors = new List<string>(); 550invalidLicenseIdentifiers = new List<string>(); 633private static readonly List<string> EmptyList = new List<string>(); 652var result = new List<string>(set.Count);
PackageArchiveReader.cs (1)
289var filesCopied = new List<string>();
PackageCreation\Authoring\Manifest.cs (2)
53public ICollection<ManifestFile> Files { get; } = new List<ManifestFile>(); 268var results = new List<string>();
PackageCreation\Authoring\ManifestMetadata.cs (2)
241public IEnumerable<ManifestContentFiles> ContentFiles { get; set; } = new List<ManifestContentFiles>(); 243public IEnumerable<PackageType> PackageTypes { get; set; } = new List<PackageType>();
PackageCreation\Authoring\ManifestReader.cs (7)
248return new List<ManifestContentFiles>(0); 274return new List<PackageReferenceSet>(0); 288return new List<PackageReferenceSet> { referenceSet }; 319return new List<FrameworkAssemblyReference>(0); 336return new List<PackageDependencyGroup>(); 352return new List<PackageDependencyGroup> { dependencyGroup }; 408var files = new List<ManifestFile>();
PackageCreation\Authoring\PackageBuilder.cs (4)
155TargetFrameworks = new List<NuGetFramework>(); 388List<string> creatorInfo = new List<string>(); 706var frameworkPatterns = new List<PatternSet>() 721List<ContentItemGroup> targetedItemGroups = new();
PackageCreation\Xml\PackageMetadataXmlExtensions.cs (8)
154var groupableSets = new List<TSet>(); 155var ungroupableSets = new List<TSet>(); 169var childElements = new List<XElement>(); 212var attributes = new List<XAttribute>(); 264var attributes = new List<XAttribute?> 278var attributes = new List<XAttribute?>(); 291var attributeList = new List<XAttribute>(); 334var attributes = new List<XAttribute?>();
PackageExtraction\PackageHelper.cs (1)
136var satelliteFileEntries = new List<string>();
PackageExtractor.cs (4)
63var filesAdded = new List<string>(); 190var filesAdded = new List<string>(); 296var filesAdded = new List<string>(); 1059var verificationProviders = new List<ISignatureVerificationProvider>()
PackageFolderReader.cs (1)
202var filesCopied = new List<string>();
PackageReaderBase.cs (5)
203var results = new List<FrameworkSpecificGroup>(); 253var fileGroups = new List<FrameworkSpecificGroup>(); 262var libItems = new List<FrameworkSpecificGroup>(); 290var filteredItems = new List<string>(); 438items = new List<string>();
PackageReaderExtensions.cs (1)
31var satelliteFiles = new List<string>();
PackagesConfigReader.cs (1)
141var packages = new List<PackageReference>();
Rules\AccidentallyCompatibleWithAllFrameworksRule.cs (3)
38List<ContentItemGroup> items = new(); 81suggestedFrameworks = new List<string>(buildFrameworks.Length); 90var issue = new List<PackagingLogMessage>();
Rules\ContentFolderInPackageReferenceProjectRule.cs (2)
35var issue = new List<PackagingLogMessage>(); 42return new List<PackagingLogMessage>();
Rules\DependenciesGroupsForEachTFMRule.cs (3)
40var issues = new List<PackagingLogMessage>(); 67List<ContentItemGroup> libItems = new(); 68List<ContentItemGroup> refItems = new();
Rules\InstallScriptInPackageReferenceProjectRule.cs (2)
29var issue = new List<PackagingLogMessage>(); 36return new List<PackagingLogMessage>();
Rules\InvalidUndottedFrameworkRule.cs (7)
69return logMessages.Concat(new List<PackagingLogMessage>() 99var messages = new List<PackagingLogMessage>(); 128var messages = new List<PackagingLogMessage>(); 175var messages = new List<PackagingLogMessage>(); 204var frameworkPatterns = new List<PatternSet>() 219List<ContentItemGroup> targetedItemGroups = new(); 243var messages = new List<PackagingLogMessage>();
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (3)
51var missingReferences = new List<MissingReference>(); 130var issues = new List<PackagingLogMessage>(); 182var keys = new List<string>();
Rules\UnrecognizedLicenseIdentifierRule.cs (1)
28var warnings = new List<PackagingLogMessage>();
Rules\UpholdBuildConventionRule.cs (1)
61var expectedFiles = new List<ExpectedFile>();
RuntimeModel\JsonRuntimeFormat.cs (3)
170var sets = new List<FrameworkRuntimePair>(); 209inheritedRuntimes ??= new List<string>(imports.Count); 216additionalDependencies ??= new();
RuntimeModel\RuntimeDescription.cs (2)
90inheritedRuntimes = new List<string>(right.InheritedRuntimes); 97inheritedRuntimes = new List<string>(left.InheritedRuntimes);
RuntimeModel\RuntimeGraph.cs (2)
294return new List<RuntimePackageDependency>(); 368return new List<T>();
Signing\Archive\ExtraField.cs (1)
76var fields = new List<ExtraField>();
Signing\Archive\SignedPackageArchiveIOUtility.cs (2)
237var centralDirectoryRecords = new List<CentralDirectoryHeaderMetadata>(); 347var centralDirectoryRecords = new List<CentralDirectoryHeaderMetadata>();
Signing\Cms\HeapBlockRetainer.cs (1)
15_blocks = new List<SafeLocalAllocHandle>();
Signing\DerEncoding\DerEncoder.cs (1)
491List<byte> encodedBytes = new List<byte>(oidValue.Length / 2);
Signing\Signatures\AuthorPrimarySignature.cs (1)
29var issues = new List<SignatureLog>();
Signing\Signatures\CommitmentTypeIndication.cs (1)
60qualifiers = new List<CommitmentTypeQualifier>();
Signing\Signatures\IssuerSerial.cs (1)
84var generalNames = new List<GeneralName>(capacity: 1);
Signing\Signatures\NuGetPackageOwners.cs (1)
45var packageOwners = new List<string>();
Signing\Signatures\PolicyInformation.cs (1)
59var policyQualifiers = new List<PolicyQualifierInfo>();
Signing\Signatures\RepositoryCountersignature.cs (1)
95var issues = new List<SignatureLog>();
Signing\Signatures\RepositoryPrimarySignature.cs (1)
34var issues = new List<SignatureLog>();
Signing\Signatures\Signature.cs (2)
144var issues = new List<SignatureLog>(); 395var timestampList = new List<Timestamp>();
Signing\Signatures\SigningCertificate.cs (2)
60var certificates = new List<EssCertId>(); 74var policies = new List<PolicyInformation>();
Signing\Signatures\SigningCertificateV2.cs (3)
75var entries = new List<byte[][]>(Certificates.Count); 87var certificates = new List<EssCertIdV2>(); 101var policies = new List<PolicyInformation>();
Signing\Timestamp\Extensions.cs (1)
35var extensions = new List<Extension>();
Signing\Utility\AttributeUtility.cs (1)
295var values = new List<SignatureType>(capacity: 1);
Signing\Utility\CertificateChainUtility.cs (1)
108var fatalStatuses = new List<X509ChainStatus>();
Signing\Utility\CertificateUtility.cs (4)
49var issues = new List<SignatureLog>(); 397var certificatesRawData = new List<byte[]>(capacity: certificates.Count); 478var urls = new List<string>(); 544var urls = new List<string>();
Signing\Verification\AllowListVerificationProvider.cs (1)
39var issues = new List<SignatureLog>();
Signing\Verification\IntegrityVerificationProvider.cs (1)
24var issues = new List<SignatureLog>();
Signing\Verification\PackageSignatureVerifier.cs (1)
36var trustResults = new List<PackageVerificationResult>();
Signing\Verification\PackageVerificationResult.cs (1)
32Issues = issues ?? new List<SignatureLog>();
Signing\Verification\SignatureTrustAndValidityVerificationProvider.cs (1)
205var issues = new List<SignatureLog>();
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
TopologicalSortUtility.cs (5)
50var itemInfos = new List<ItemDependencyInfo>(); 68var sorted = new List<T>(sortedInfos.Count); 107var sorted = new List<ItemDependencyInfo>(toSort.Length); 155parents = new List<ItemDependencyInfo>(); 164packageChildren = new List<ItemDependencyInfo>(dependencies.Length - i);
NuGet.ProjectModel (48)
DependencyGraphSpec.cs (2)
93var parents = new List<PackageSpec>(); 179var closure = new List<PackageSpec>();
JsonPackageSpecReader.Utf8JsonStreamReader.cs (5)
1324List<ProjectRestoreReference> projectReferences = new(); 1462dependencies ??= new List<LibraryDependency>(); 1471downloadDependencies ??= new List<DownloadDependency>(); 1479dependencies ??= new List<LibraryDependency>(); 1501imports ??= new List<NuGetFramework>();
JsonTextReaderExtensions.cs (2)
142strings = strings ?? new List<string>(); 186strings = strings ?? new List<string>();
JsonUtility.cs (2)
112return new List<TItem>(0); 114var items = new List<TItem>(jObject.Count);
LockFile\AssetsLogMessage.cs (2)
100TargetGraphs = targetGraphs ?? new List<string>(); 116TargetGraphs = new List<string>
LockFile\LockFile.cs (6)
25public IList<ProjectFileDependencyGroup> ProjectFileDependencyGroups { get; set; } = new List<ProjectFileDependencyGroup>(); 26public IList<LockFileLibrary> Libraries { get; set; } = new List<LockFileLibrary>(); 27public IList<LockFileTarget> Targets { get; set; } = new List<LockFileTarget>(); 28public IList<LockFileItem> PackageFolders { get; set; } = new List<LockFileItem>(); 29public IList<IAssetsLogMessage> LogMessages { get; set; } = new List<IAssetsLogMessage>(); 31public IList<CentralTransitiveDependencyGroup> CentralTransitiveDependencyGroups { get; set; } = new List<CentralTransitiveDependencyGroup>();
LockFile\LockFileTarget.cs (1)
35public IList<LockFileTargetLibrary> Libraries { get; set; } = new List<LockFileTargetLibrary>();
LockFile\LockFileTargetLibrary.cs (1)
47var list = new List<T>();
LockFile\Utf8JsonStreamLockFileConverter.cs (1)
161results ??= new List<CentralTransitiveDependencyGroup>();
LockFile\Utf8JsonStreamLockFileTargetLibraryConverter.cs (1)
193var packageDependencies = new List<PackageDependency>(10);
PackageSpec.cs (1)
29public PackageSpec() : this(new List<TargetFrameworkInformation>())
PackageSpecReferenceDependencyProvider.cs (3)
175var uniqueDependencies = new List<LibraryDependency>(dependencies.Count); 211var frameworks = new List<NuGetFramework>( 425var children = new List<ExternalProjectReference>(parent.ExternalProjectReferences.Count);
ProjectLockFile\LockFileDependency.cs (1)
27public IList<PackageDependency> Dependencies { get; set; } = new List<PackageDependency>();
ProjectLockFile\PackagesLockFile.cs (1)
18public IList<PackagesLockFileTarget> Targets { get; set; } = new List<PackagesLockFileTarget>();
ProjectLockFile\PackagesLockFileFormat.cs (1)
103targets = new List<PackagesLockFileTarget>();
ProjectLockFile\PackagesLockFileTarget.cs (1)
37public IList<LockFileDependency> Dependencies { get; set; } = new List<LockFileDependency>();
ProjectLockFile\PackagesLockFileUtilities.cs (2)
86List<string> invalidReasons = new List<string>(); 374var matchedDependencies = new List<KeyValuePair<LockFileDependency, LockFileDependency>>();
ProjectRestoreMetadata.cs (9)
51public IList<PackageSource> Sources { get; set; } = new List<PackageSource>(); 66public IList<string> FallbackFolders { get; set; } = new List<string>(); 71public IList<string> ConfigFilePaths { get; set; } = new List<string>(); 78public IList<ProjectRestoreMetadataFrameworkInfo> TargetFrameworks { get; set; } = new List<ProjectRestoreMetadataFrameworkInfo>(); 83public IList<string> OriginalTargetFrameworks { get; set; } = new List<string>(); 100public IList<ProjectRestoreMetadataFile> Files { get; set; } = new List<ProjectRestoreMetadataFile>(); 288clone.FallbackFolders = FallbackFolders != null ? new List<string>(FallbackFolders) : null; 289clone.ConfigFilePaths = ConfigFilePaths != null ? new List<string>(ConfigFilePaths) : null; 290clone.OriginalTargetFrameworks = OriginalTargetFrameworks != null ? new List<string>(OriginalTargetFrameworks) : null;
ProjectRestoreMetadataFrameworkInfo.cs (1)
27public IList<ProjectRestoreReference> ProjectReferences { get; set; } = new List<ProjectRestoreReference>();
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (4)
143var listObjects = new List<T>(); 169objectList ??= new List<T>(); 197strings ??= new List<string>(); 326strings ??= new List<string>();
ToolPathResolver.cs (1)
101var availableVersions = new List<NuGetVersion>();
NuGet.Protocol (82)
_generated\129\JsonContext.ListRegistrationLeafItem.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>(),
_generated\130\JsonContext.ListRegistrationPage.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>(),
_generated\131\JsonContext.ListServiceIndexEntryModel.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>(),
_generated\132\JsonContext.ListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<string>(),
_generated\24\PackageSearchJsonContext.ListRegistrationLeafItem.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>(),
_generated\25\PackageSearchJsonContext.ListRegistrationPage.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>(),
_generated\26\PackageSearchJsonContext.ListPackageSearchMetadata.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>(),
CachingSourceProvider.cs (2)
20= new List<Lazy<INuGetResourceProvider>>(); 21private readonly List<SourceRepository> _repositories = new List<SourceRepository>();
Converters\JsonExtensions.cs (1)
31Converters = new List<JsonConverter>
Converters\MetadataStringOrArrayStjConverter.cs (1)
56var values = new List<string>();
Converters\PackageDependencyGroupStjConverter.cs (1)
30var packages = new List<PackageDependency>();
DependencyInfo\PackageInfo.cs (1)
20public IList<DependencyInfo> Dependencies { get; } = new List<DependencyInfo>();
DependencyInfo\RegistrationInfo.cs (1)
13public IList<PackageInfo> Packages { get; } = new List<PackageInfo>();
DependencyInfo\RegistrationUtility.cs (2)
69IList<Task<JObject?>> rangeTasks = new List<Task<JObject?>>(); 147IList<Task<RegistrationPage?>> rangeTasks = new List<Task<RegistrationPage?>>();
DependencyInfo\ResolverMetadataClient.cs (2)
177var dependencyGroups = new List<PackageDependencyGroup>(); 188var groupDependencies = new List<PackageDependency>();
DependencyInfo\Trim.cs (1)
79IList<PackageInfo> packagesToRemove = new List<PackageInfo>();
HttpSource\HttpRetryHandler.cs (1)
99var stopwatches = new List<Stopwatch>(2);
HttpSource\HttpRetryHandlerRequest.cs (1)
67public IList<KeyValuePair<string, IEnumerable<string>>> AddHeaders { get; set; } = new List<KeyValuePair<string, IEnumerable<string>>>();
HttpSource\HttpSourceCachedRequest.cs (1)
60public IList<MediaTypeWithQualityHeaderValue> AcceptHeaderValues { get; } = new List<MediaTypeWithQualityHeaderValue>();
LegacyFeed\DependencyInfoResourceV2Feed.cs (1)
76var results = new List<SourcePackageDependencyInfo>();
LegacyFeed\MetadataResourceV2Feed.cs (1)
36var results = new List<KeyValuePair<string, NuGetVersion?>>();
LegacyFeed\V2FeedPackageInfo.cs (2)
246return new List<PackageDependencyGroup>(); 292deps = new List<PackageDependency>();
LegacyFeed\V2FeedParser.cs (2)
316return new List<V2FeedPackageInfo> { ParsePackage(id, doc.Root, metadataCache) }; 435var results = new List<V2FeedPackageInfo>();
LegacyFeed\V2FeedQueryBuilder.cs (1)
221var pieces = new List<string?>
LegacyFeed\V2FeedUtilities.cs (1)
55var results = new List<VersionInfo>();
LocalRepositories\FindLocalPackagesResourceUnzipped.cs (2)
104return new List<LocalPackageInfo>(); 114var result = new List<LocalPackageInfo>(validSet.Count);
LocalRepositories\LocalDependencyInfoResource.cs (1)
110var results = new List<SourcePackageDependencyInfo>();
LocalRepositories\LocalMetadataResource.cs (1)
40var results = new List<KeyValuePair<string, NuGetVersion?>>();
LocalRepositories\LocalV2FindPackageByIdResource.cs (1)
424var result = new List<LocalPackageInfo>();
LocalRepositories\LocalV3FindPackageByIdResource.cs (1)
503var versions = new List<NuGetVersion>();
Model\PackageSearchMetadata.cs (4)
247errors = new List<string>(); 256errors = new List<string>(); 266errors = new List<string>(); 290invalidLicenseIdentifiers = new List<string>();
Model\V3SearchResults.cs (1)
19public List<PackageSearchMetadata> Data { get; set; } = new List<PackageSearchMetadata>();
PackagesFolder\NuGetv3LocalRepository.cs (1)
170var packages = new List<LocalPackageInfo>();
Plugins\PluginDiscoverer.cs (5)
109var directories = new List<string> { PluginDiscoveryUtility.GetNuGetHomePluginsPath() }; 132var results = new List<PluginDiscoveryResult>(); 157var files = new List<PluginFile>(); 190var pluginFiles = new List<PluginFile>(); 238var pluginFiles = new List<PluginFile>();
Plugins\PluginDiscoveryUtility.cs (1)
80var paths = new List<string>();
Plugins\PluginManager.cs (1)
141var pluginCreationResults = new List<PluginCreationResult>();
Plugins\PluginPackageReader.cs (6)
614var results = new List<FrameworkSpecificGroup>(); 811var fileGroups = new List<FrameworkSpecificGroup>(); 820var libItems = new List<FrameworkSpecificGroup>(); 848var filteredItems = new List<string>(); 982LocalResourceUtils.DeleteDirectoryTree(_tempDirectoryPath.Value, new List<string>()); 1006items = new List<string>();
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (1)
467var results = new List<PackageInfo>();
Resources\AutoCompleteResourceV3.cs (3)
117var outputs = new List<string>(); 180var versions = new List<NuGetVersion>(); 202var versions = new List<NuGetVersion>();
Resources\DependencyInfoResourceV3.cs (1)
112var results = new List<SourcePackageDependencyInfo>();
Resources\MetadataResourceV3.cs (3)
53var results = new List<KeyValuePair<string, NuGetVersion?>>(); 161var versions = new List<NuGetVersion>(); 193var versions = new List<NuGetVersion>();
Resources\PackageMetadataResourceV3.cs (1)
130var results = new List<PackageSearchMetadataRegistration>();
Resources\PackageSearchResourceV3.cs (2)
66List<IPackageSearchMetadata> searchResults = new(searchResultMetadata.Count); 81var versions = new List<VersionInfo>(parsedVersions.Length + 1);
Resources\RegistrationResourceV3.cs (2)
130var results = new List<JObject>(); 190var results = new List<RegistrationLeafItem>();
Resources\ServiceIndexResourceV3.cs (5)
31private static readonly IReadOnlyList<ServiceIndexEntry> _emptyEntries = new List<ServiceIndexEntry>(); 192var clientVersions = new List<SemanticVersion>(); 214entries = new List<ServiceIndexEntry>(); 262var clientVersions = new List<SemanticVersion>(); 290entries = new List<ServiceIndexEntry>();
Resources\VulnerabilityInfoResourceV3.cs (4)
140knownVulnerabilities = new(); 172knownVulnerabilities = new(indexEntries.Count); 203List<V3VulnerabilityIndexEntry> validIndexEntries = new(indexEntries.Count); 282exceptions = new();
SourceRepository.cs (1)
190var items = new List<INuGetResourceProvider>(group.Count());
SourceRepositoryProvider.cs (1)
43_repositories = new List<SourceRepository>();
Utility\LocalFolderUtility.cs (3)
1154return new List<DirectoryInfo>(); 1174return new List<DirectoryInfo>(); 1197return new List<FileInfo>();
NuGet.Resolver (14)
CombinationSolver.cs (2)
82_currentDomainsSorted = initialDomains.Select(d => new List<T>(d)).ToList(); 158diagnosticOutput(new List<T>(_solution));
PackageResolver.cs (6)
47var invalidExistingPackages = new List<string>(); 96var resolverPackages = new List<ResolverPackage>(); 123var grouped = new List<List<ResolverPackage>>(); 153grouped.Add(new List<ResolverPackage>() { new ResolverPackage(id: depId, version: null, dependencies: null, listed: true, absent: true) }); 245List<SourcePackageDependencyInfo> after = new List<SourcePackageDependencyInfo>(packages); 271dependencyRangesByPackageId.Add(package.Id, new List<VersionRange>());
ResolverInputSort.cs (2)
33var sorted = new List<List<ResolverPackage>>(); 62var idsToSort = new List<string>(groupIds);
ResolverUtility.cs (4)
328var result = new List<ResolverPackage>(); 422var node = new QueueNode(package, new List<ResolverPackage>()); 431var parentPackages = new List<ResolverPackage>(source.ParentPackages); 460return new List<ResolverPackage>();
NuGet.Versioning (1)
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
OrderProcessor (2)
playground\TestShop\BasketService\Models\BasketItem.cs (1)
15var results = new List<ValidationResult>();
playground\TestShop\BasketService\Models\Order.cs (1)
8public List<BasketItem> Items { get; set; } = new();
PresentationBuildTasks (26)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (4)
69var mainEmbeddedList = new List<ITaskItem>(); 70var satelliteEmbeddedList = new List<ITaskItem>(); 71var clrEmbeddedResourceList = new List<ITaskItem>(); 72var clrSatelliteEmbeddedResourceList = new List<ITaskItem>();
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (1)
271var properties = new List<(string PropertyName, string PropertyValue)>
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
652_uids = new List<Uid>(32); 653_namespacePrefixes = new List<string>(2);
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1297var paths = new List<string>(ReferenceAssemblyList?.Count ?? 0);
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (2)
180List<FileUnit> modifiedXamlFiles = new List<FileUnit>(); 360List<FileUnit> recompiledXaml = new List<FileUnit>();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\internal\Media\XamlSerializationHelper.cs (2)
372List<ThreeDoublesMarkup> resource = new List<ThreeDoublesMarkup>( source.Length/ 8 ) ; // SWAG the length of the collection. 398List<Point> resource = new List<Point>(source.Length/ 8 ); // SWAG the length of the collection.
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\MS\Internal\Globalization\LocalizationComments.cs (1)
81List<PropertyComment> tokens = new List<PropertyComment>(8);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (4)
1815private readonly List<BamlAssemblyInfoRecord> _assemblyIdToInfo = new(); 1819private readonly List<BamlTypeInfoRecord> _typeIdToInfo = new(); 1823private readonly List<BamlAttributeInfoRecord> _attributeIdToInfo = new(10); 1827private readonly List<BamlStringInfoRecord> _stringIdToInfo = new();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (3)
301_staticResourceRecordList = new List<ValueDeferRecord>(5); 1160_staticResourceRecordList = new List<ValueDeferRecord>(1); 1784_staticResourceRecordList = new List<List<ValueDeferRecord>>(1);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (1)
218List<IntegerMarkup> resource = new List<IntegerMarkup>();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
3256namespaceAssemblyPair = new List<ClrNamespaceAssemblyPair>(1);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (3)
84List<Assembly> interestingAssemblies = new List<Assembly>(); 215List<CustomAttributeData> foundAttributes = new List<CustomAttributeData>(); 318_cacheTable[xmlns] = new List<ClrNamespaceAssemblyPair>();
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
130List<string> keysToUpdate = new List<string>();
PresentationCore (351)
MS\Internal\FontCache\FamilyCollection.cs (1)
49List<CompositeFontFamily> compositeFonts = new List<CompositeFontFamily>();
MS\Internal\FontCache\FontResourceCache.cs (2)
137folderResourceMap[folderName] = new List<string>(1); 141folderResourceMap[resourceFullName] = new List<string>(1);
MS\Internal\FontCache\FontSourceCollection.cs (4)
55_fontSources = new List<Text.TextInterface.IFontSource>(1); 107fontSources = new List<Text.TextInterface.IFontSource>(files.Count); 130fontSources = new List<Text.TextInterface.IFontSource>(0); 136fontSources = new List<Text.TextInterface.IFontSource>(resourceEntries.Count);
MS\Internal\IListConverters.cs (4)
98List<double> list = new List<double>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 141List<ushort> list = new List<ushort>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 182List<bool> list = new List<bool>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 224List<Point> list = new List<Point>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1));
MS\Internal\Ink\Bezier.cs (2)
48List<Point> points = new List<Point>(); 579private List<Point> _bezierControlPoints = new List<Point>();
MS\Internal\Ink\CuspData.cs (3)
32_points = new List<CDataPoint>(stylusPoints.Count); 33_nodes = new List<double>(stylusPoints.Count); 532private List<int> _cusps = new List<int>();
MS\Internal\Ink\ErasingStroke.cs (3)
60_erasingStrokeNodes = new List<StrokeNode>(points.Length); 139List<StrokeFIndices> eraseAt = new List<StrokeFIndices>(); 261List<Point> newPath = new List<Point>();
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
356private List<ExtendedProperty> _extendedProperties = new List<ExtendedProperty>();
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (3)
213List<ApplicationGesture> gestures = new List<ApplicationGesture>(); 601List<GestureRecognitionResult> resultList = new List<GestureRecognitionResult>(); 669List<GestureRecognitionResult> resultList = new List<GestureRecognitionResult>();
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (2)
71List<byte> compressedData = new List<byte>(); 249List<byte> compressedData = new List<byte>(input.Length + 1); //reasonable default based on profiling.
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (1)
626List<byte> output = new List<byte>((bitsToWrite / 8) * unitsToDecode);
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (1)
13private readonly System.Collections.Generic.List<Guid> _customGuids = new System.Collections.Generic.List<Guid>();
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
103private List<HuffCodec> _huffCodecs = new List<HuffCodec>();
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (11)
93List<char> charData = new List<char>((int)inkData.Length); 316_strokeDescriptorTable = new System.Collections.Generic.List<StrokeDescriptor>(); 317_drawingAttributesTable = new System.Collections.Generic.List<DrawingAttributes>(); 318_transformTable = new System.Collections.Generic.List<TransformDescriptor>(); 319_metricTable = new System.Collections.Generic.List<MetricBlock>(); 1567tags = new System.Collections.Generic.List<KnownTagCache.KnownTagIndex>(); 1614List<StylusPointPropertyInfo> stylusPointPropertyInfos = new List<StylusPointPropertyInfo>(); 1684_strokeDescriptorTable = new List<StrokeDescriptor>(_coreStrokes.Count); 1685_drawingAttributesTable = new List<DrawingAttributes>(); 1686_metricTable = new List<MetricBlock>(); 1687_transformTable = new List<TransformDescriptor>();
MS\Internal\Ink\InkSerializedFormat\LZCodec.cs (1)
32List<byte> output = new List<byte>();
MS\Internal\Ink\InkSerializedFormat\StrokeDescriptor.cs (1)
11private System.Collections.Generic.List<KnownTagCache.KnownTagIndex> _strokeDescriptor = new System.Collections.Generic.List<KnownTagCache.KnownTagIndex>();
MS\Internal\Ink\Lasso.cs (4)
25_points = new List<Point>(); 219List<LassoCrossing> crossingList = new List<LassoCrossing>(); 315List<StrokeIntersection> strokeIntersectionList = new List<StrokeIntersection>(); 330List<LassoCrossing> mergedList = new List<LassoCrossing>();
MS\Internal\Ink\Renderer.cs (1)
296_attachedVisuals = new List<Visual>();
MS\Internal\Ink\StrokeIntersection.cs (2)
187List<StrokeFIndices> inFIndices = new List<StrokeFIndices>(intersections.Length); 219List<StrokeFIndices> hitFIndices = new List<StrokeFIndices>(intersections.Length);
MS\Internal\Ink\StrokeRenderer.cs (5)
49List<Point> connectingQuadPoints = new List<Point>(iterator.Count * 4); 61List<Point> strokeNodePoints = new List<Point>(); 259List<Point> pathFigureABSide = new List<Point>();//don't prealloc. It causes Gen2 collections to rise and doesn't help execution time 260List<Point> pathFigureDCSide = new List<Point>(); 261List<Point> polyLinePoints = new List<Point>(4);
MS\Internal\Media\ParserStreamGeometryContext.cs (1)
542points = new List<Point>(count);
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (8)
249List<HitTestEdge> hitTestEdgeList = new List<HitTestEdge>(); 260return new List<HitTestEdge>(); 272return new List<HitTestEdge>(); 406hitTestEdgeList = new List<HitTestEdge>(); 472List<Point3D> pointList = new List<Point3D>(); 473List<Point> uvList = new List<Point>(); 902List<Point3D> pointList = new List<Point3D>(); 903List<Point> uvList = new List<Point>();
MS\Internal\Shaping\TypefaceMap.cs (1)
37private IList<ScaledShapeTypeface> _cachedScaledTypefaces = new List<ScaledShapeTypeface>(InitialScaledGlyphableTypefaceCount);
MS\Internal\TextFormatting\FullTextLine.cs (2)
1981IList<TextRunBounds> boundsList = new List<TextRunBounds>(2); 2062List<TextSpan<TextRun>> lsrunList = new List<TextSpan<TextRun>>(2);
MS\Internal\TextFormatting\LineServicesCallbacks.cs (4)
3097glyphAdvances = new List<double>(glyphCount); 3103glyphOffsets = new List<Point>(glyphCount); 3234charWidths = new List<double>(cchText); 3496_indexedGlyphRuns = new List<IndexedGlyphRun>(8);
MS\Internal\TextFormatting\LineServicesRun.cs (1)
641List<DWriteFontFeature> fontFeatures = new List<DWriteFontFeature>((int)CustomOpenTypeFeatures.Count);
MS\Internal\TextFormatting\SimpleTextLine.cs (4)
826boundsList = new List<TextRunBounds>(2); 898List<IndexedGlyphRun> indexedGlyphRuns = new List<IndexedGlyphRun>(_runs.Length); 921displayGlyphAdvances = new List<double>(run.NominalAdvances.Length); 1767displayGlyphAdvances = new List<double>(NominalAdvances.Length);
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
1101_others = new List<Entry>(2); // by default we have two entries in the extra storage. 1334List<Entry> others = new List<Entry>(2); // by default we have two entries in the extra storage.
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
188keysToRemove = new List<object>();
System\Windows\Automation\Peers\AutomationPeer.cs (1)
1924if(addedChildren == null) addedChildren = new List<AutomationPeer>();
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
67children = new List<AutomationPeer>();
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
65children = new List<AutomationPeer>();
System\Windows\FreezableCollection.cs (5)
41_collection = new List<T>(); 50_collection = new List<T>(capacity); 70_collection = new List<T>(count); 74_collection = new List<T>(); 795_collection = new List<T>(count);
System\Windows\Ink\IncrementalHitTester.cs (4)
121_strokeInfos = new List<StrokeInfo>(strokes.Count); 226List<StrokeInfo> newStrokeInfos = new List<StrokeInfo>(_strokes.Count); 526List<StrokeIntersection> eraseAt = new List<StrokeIntersection>(); 546strokeHitEventArgCollection = new List<StrokeHitEventArgs>();
System\Windows\Ink\Stroke2.cs (1)
571List<StrokeIntersection> intersections = new List<StrokeIntersection>();
System\Windows\Ink\StrokeCollection2.cs (3)
334List<StrokeIntersection> intersections = new List<StrokeIntersection>(); 352List<Stroke> solidStrokes = new List<Stroke>(); 366strokes = new List<Stroke>();
System\Windows\Input\AccessKeyManager.cs (2)
377List<IInputElement> finalTargets = new List<IInputElement>(1); 589List<IInputElement> copy = new List<IInputElement>(elements.Count);
System\Windows\Input\Command\CanExecuteChangedEventManager.cs (3)
105toRemove = new List<HandlerSink>(); 191list = new List<HandlerSink>(); 266list = new List<Delegate>();
System\Windows\Input\Command\CommandBindingCollection.cs (3)
159_innerCBList ??= new Collections.Generic.List<CommandBinding>(1); 181_innerCBList ??= new System.Collections.Generic.List<CommandBinding>(collection.Count); 336System.Collections.Generic.List<CommandBinding> list = new System.Collections.Generic.List<CommandBinding>(0);
System\Windows\Input\Command\CommandManager.cs (1)
579list ??= new List<ValueTuple<Type, CommandBinding>>(8)
System\Windows\Input\Command\InputBindingCollection.cs (4)
199_innerBindingList = new System.Collections.Generic.List<InputBinding>(1); 248_innerBindingList = new System.Collections.Generic.List<InputBinding>(collection.Count); 359List<InputBinding> oldInputBindings = new List<InputBinding>(_innerBindingList); 379System.Collections.Generic.List<InputBinding> list = new System.Collections.Generic.List<InputBinding>(0);
System\Windows\Input\Command\InputGestureCollection.cs (3)
158List<InputGesture> list = new List<InputGesture>(0); 275_innerGestureList = new System.Collections.Generic.List<InputGesture>(collection.Count); 399_innerGestureList = new List<InputGesture>(1);
System\Windows\Input\InputScope.cs (2)
89private IList<InputScopeName> _scopeNames = new List<InputScopeName>(); 90private IList<InputScopePhrase> _phraseList = new List<InputScopePhrase>();
System\Windows\Input\ManipulationDevice.cs (3)
151_manipulators = new List<IManipulator>(2); 449List<IManipulator> manipulators = new List<IManipulator>(_manipulators); 465List<IManipulator> manipulators = new List<IManipulator>(_manipulators);
System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (1)
198_inertiaParameters = new List<InertiaParameters2D>();
System\Windows\Input\ManipulationStartingEventArgs.cs (1)
128_parameters = new List<ManipulationParameters2D>(1);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (2)
207private List<StrokeInfo> _strokeInfoList = new List<StrokeInfo>(); 1172private List<StrokeInfo> _strokeInfoList = new List<StrokeInfo>();
System\Windows\Input\Stylus\Common\StylusButtonCollection.cs (1)
18: base(new List<StylusButton>(buttons))
System\Windows\Input\Stylus\Common\StylusDeviceCollection.cs (1)
22: base(new List<StylusDevice>())
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (2)
85List<StylusPoint> points = new List<StylusPoint>(stylusPoints); 112List<StylusPoint> stylusPoints = new List<StylusPoint>();
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (3)
48new List<StylusPointPropertyInfo>(stylusPointPropertyInfos); 61List<Guid> seenIds = new List<Guid>(); 350List<StylusPointPropertyInfo> commonProperties = new List<StylusPointPropertyInfo>();
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (1)
259List<StylusPointPropertyInfo> propertyInfos = new List<StylusPointPropertyInfo>();
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
119internal List<TabletDevice> TabletDevices { get; set; } = new List<TabletDevice>();
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (1)
36new List<UnsafeNativeMethods.INTERACTION_CONTEXT_CONFIGURATION>()
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
121List<StylusButton> buttons = new List<StylusButton>();
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
648private List<StylusPlugInCollection> _plugInCollectionList = new List<StylusPlugInCollection>();
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
95List<PointerStylusDevice> pointerStylusDevices = new List<PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceInfo.cs (4)
188List<StylusPointProperty> properties = new List<StylusPointProperty>() 195List<StylusPointProperty> buttonProperties = new List<StylusPointProperty>(); 198List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY> supportedProperties = new List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY>() 204List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY> supportedButtonProperties = new List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY>();
System\Windows\Input\Stylus\Wisp\PenContext.cs (2)
109List<StylusPointPropertyInfo> propertyInfos = new List<StylusPointPropertyInfo>(cProps + cButtons + 3); 330_stylusDevicesInRange = new List<int>(); // create it as needed.
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
544private List<StylusPlugInCollection> _plugInCollectionList = new List<StylusPlugInCollection>();
System\Windows\Input\Stylus\Wisp\PenThreadPool.cs (2)
60_penThreadWeakRefList = new List<WeakReference<PenThread>>(); 83List<PenThread> ignoredThreads = new List<PenThread>();
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (4)
42private List <WorkerOperation> _workerOperation = new List<WorkerOperation>(); 904List<StylusPointProperty> properties = new List<StylusPointProperty>(cProps + cButtons + 3); 997List <PenContext> penContextRefs = new List<PenContext>(); // keep them alive while processing! 1056List <PenContext> penContextRefs = new List<PenContext>(); // keep them alive while processing!
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (5)
385TabletDevices = new List<TabletDevice>(_tablets); 551TabletDevices = new List<TabletDevice>(_tablets); 572TabletDevices = new List<TabletDevice>(_tablets); 636List<TabletDevice> tabletTemp = new List<TabletDevice>(); 699private List<TabletDevice> _deferredTablets = new List<TabletDevice>();
System\Windows\Input\TouchDevice.cs (3)
431others = new List<DependencyObject>(count); 1126_activeDevices = new List<TouchDevice>(2); 1214List<TouchDevice> touches = new List<TouchDevice>();
System\Windows\InterOp\HwndSource.cs (1)
1919_keyboardInputSinkChildren = new List<HwndSourceKeyboardInputSite>();
System\Windows\Media\Animation\AnimationLayer.cs (1)
198animationClockList = new List<AnimationClock>(oldClocksCount + newClocksCount);
System\Windows\Media\Animation\ClockGroup.cs (2)
104_children = new List<Clock>(); 413_rootChildren = new List<WeakReference>();
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (6)
37_keyFrames = new List< BooleanKeyFrame>(2); 55_keyFrames = new List<BooleanKeyFrame>(0) 98_keyFrames = new List< BooleanKeyFrame>(count); 119_keyFrames = new List< BooleanKeyFrame>(count); 140_keyFrames = new List< BooleanKeyFrame>(count); 161_keyFrames = new List< BooleanKeyFrame>(count);
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (6)
37_keyFrames = new List< ByteKeyFrame>(2); 55_keyFrames = new List<ByteKeyFrame>(0) 98_keyFrames = new List< ByteKeyFrame>(count); 119_keyFrames = new List< ByteKeyFrame>(count); 140_keyFrames = new List< ByteKeyFrame>(count); 161_keyFrames = new List< ByteKeyFrame>(count);
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (6)
37_keyFrames = new List< CharKeyFrame>(2); 55_keyFrames = new List<CharKeyFrame>(0) 98_keyFrames = new List< CharKeyFrame>(count); 119_keyFrames = new List< CharKeyFrame>(count); 140_keyFrames = new List< CharKeyFrame>(count); 161_keyFrames = new List< CharKeyFrame>(count);
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (6)
37_keyFrames = new List< ColorKeyFrame>(2); 55_keyFrames = new List<ColorKeyFrame>(0) 98_keyFrames = new List< ColorKeyFrame>(count); 119_keyFrames = new List< ColorKeyFrame>(count); 140_keyFrames = new List< ColorKeyFrame>(count); 161_keyFrames = new List< ColorKeyFrame>(count);
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (6)
37_keyFrames = new List< DecimalKeyFrame>(2); 55_keyFrames = new List<DecimalKeyFrame>(0) 98_keyFrames = new List< DecimalKeyFrame>(count); 119_keyFrames = new List< DecimalKeyFrame>(count); 140_keyFrames = new List< DecimalKeyFrame>(count); 161_keyFrames = new List< DecimalKeyFrame>(count);
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (6)
37_keyFrames = new List< DoubleKeyFrame>(2); 55_keyFrames = new List<DoubleKeyFrame>(0) 98_keyFrames = new List< DoubleKeyFrame>(count); 119_keyFrames = new List< DoubleKeyFrame>(count); 140_keyFrames = new List< DoubleKeyFrame>(count); 161_keyFrames = new List< DoubleKeyFrame>(count);
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (6)
37_keyFrames = new List< Int16KeyFrame>(2); 55_keyFrames = new List<Int16KeyFrame>(0) 98_keyFrames = new List< Int16KeyFrame>(count); 119_keyFrames = new List< Int16KeyFrame>(count); 140_keyFrames = new List< Int16KeyFrame>(count); 161_keyFrames = new List< Int16KeyFrame>(count);
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (6)
37_keyFrames = new List< Int32KeyFrame>(2); 55_keyFrames = new List<Int32KeyFrame>(0) 98_keyFrames = new List< Int32KeyFrame>(count); 119_keyFrames = new List< Int32KeyFrame>(count); 140_keyFrames = new List< Int32KeyFrame>(count); 161_keyFrames = new List< Int32KeyFrame>(count);
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (6)
37_keyFrames = new List< Int64KeyFrame>(2); 55_keyFrames = new List<Int64KeyFrame>(0) 98_keyFrames = new List< Int64KeyFrame>(count); 119_keyFrames = new List< Int64KeyFrame>(count); 140_keyFrames = new List< Int64KeyFrame>(count); 161_keyFrames = new List< Int64KeyFrame>(count);
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (6)
37_keyFrames = new List< MatrixKeyFrame>(2); 55_keyFrames = new List<MatrixKeyFrame>(0) 98_keyFrames = new List< MatrixKeyFrame>(count); 119_keyFrames = new List< MatrixKeyFrame>(count); 140_keyFrames = new List< MatrixKeyFrame>(count); 161_keyFrames = new List< MatrixKeyFrame>(count);
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (6)
37_keyFrames = new List< ObjectKeyFrame>(2); 55_keyFrames = new List<ObjectKeyFrame>(0) 98_keyFrames = new List< ObjectKeyFrame>(count); 119_keyFrames = new List< ObjectKeyFrame>(count); 140_keyFrames = new List< ObjectKeyFrame>(count); 161_keyFrames = new List< ObjectKeyFrame>(count);
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (6)
37_keyFrames = new List< Point3DKeyFrame>(2); 55_keyFrames = new List<Point3DKeyFrame>(0) 98_keyFrames = new List< Point3DKeyFrame>(count); 119_keyFrames = new List< Point3DKeyFrame>(count); 140_keyFrames = new List< Point3DKeyFrame>(count); 161_keyFrames = new List< Point3DKeyFrame>(count);
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (6)
37_keyFrames = new List< PointKeyFrame>(2); 55_keyFrames = new List<PointKeyFrame>(0) 98_keyFrames = new List< PointKeyFrame>(count); 119_keyFrames = new List< PointKeyFrame>(count); 140_keyFrames = new List< PointKeyFrame>(count); 161_keyFrames = new List< PointKeyFrame>(count);
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (6)
37_keyFrames = new List< QuaternionKeyFrame>(2); 55_keyFrames = new List<QuaternionKeyFrame>(0) 98_keyFrames = new List< QuaternionKeyFrame>(count); 119_keyFrames = new List< QuaternionKeyFrame>(count); 140_keyFrames = new List< QuaternionKeyFrame>(count); 161_keyFrames = new List< QuaternionKeyFrame>(count);
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (6)
37_keyFrames = new List< RectKeyFrame>(2); 55_keyFrames = new List<RectKeyFrame>(0) 98_keyFrames = new List< RectKeyFrame>(count); 119_keyFrames = new List< RectKeyFrame>(count); 140_keyFrames = new List< RectKeyFrame>(count); 161_keyFrames = new List< RectKeyFrame>(count);
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (6)
37_keyFrames = new List< Rotation3DKeyFrame>(2); 55_keyFrames = new List<Rotation3DKeyFrame>(0) 98_keyFrames = new List< Rotation3DKeyFrame>(count); 119_keyFrames = new List< Rotation3DKeyFrame>(count); 140_keyFrames = new List< Rotation3DKeyFrame>(count); 161_keyFrames = new List< Rotation3DKeyFrame>(count);
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (6)
37_keyFrames = new List< SingleKeyFrame>(2); 55_keyFrames = new List<SingleKeyFrame>(0) 98_keyFrames = new List< SingleKeyFrame>(count); 119_keyFrames = new List< SingleKeyFrame>(count); 140_keyFrames = new List< SingleKeyFrame>(count); 161_keyFrames = new List< SingleKeyFrame>(count);
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (6)
37_keyFrames = new List< SizeKeyFrame>(2); 55_keyFrames = new List<SizeKeyFrame>(0) 98_keyFrames = new List< SizeKeyFrame>(count); 119_keyFrames = new List< SizeKeyFrame>(count); 140_keyFrames = new List< SizeKeyFrame>(count); 161_keyFrames = new List< SizeKeyFrame>(count);
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (6)
37_keyFrames = new List< StringKeyFrame>(2); 55_keyFrames = new List<StringKeyFrame>(0) 98_keyFrames = new List< StringKeyFrame>(count); 119_keyFrames = new List< StringKeyFrame>(count); 140_keyFrames = new List< StringKeyFrame>(count); 161_keyFrames = new List< StringKeyFrame>(count);
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (6)
37_keyFrames = new List< Vector3DKeyFrame>(2); 55_keyFrames = new List<Vector3DKeyFrame>(0) 98_keyFrames = new List< Vector3DKeyFrame>(count); 119_keyFrames = new List< Vector3DKeyFrame>(count); 140_keyFrames = new List< Vector3DKeyFrame>(count); 161_keyFrames = new List< Vector3DKeyFrame>(count);
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (6)
37_keyFrames = new List< VectorKeyFrame>(2); 55_keyFrames = new List<VectorKeyFrame>(0) 98_keyFrames = new List< VectorKeyFrame>(count); 119_keyFrames = new List< VectorKeyFrame>(count); 140_keyFrames = new List< VectorKeyFrame>(count); 161_keyFrames = new List< VectorKeyFrame>(count);
System\Windows\Media\ColorContext.cs (1)
377colorContextsList = new List<ColorContext>((int)numContexts);
System\Windows\Media\Effects\ShaderEffect.cs (4)
464list = new List<T?>(maxIndex); 491_samplerData = new List<SamplerData?>(maxIndex); 1050_floatRegisters = new List<MilColorF?>(effect._floatRegisters); 1054_samplerData = new List<SamplerData?>(effect._samplerData);
System\Windows\Media\FamilyMap.cs (1)
226List<Range> ranges = new List<Range>(3);
System\Windows\Media\GlyphRun.cs (2)
2325(_advanceWidths == null ? null : ((_textFormattingMode != TextFormattingMode.Ideal) ? (IList<double>)(new List<double>()) : (IList<double>)(new ThousandthOfEmRealDoubles(_renderingEmSize, _advanceWidths)))), 2326(_glyphOffsets == null ? null : ((_textFormattingMode != TextFormattingMode.Ideal) ? (IList<Point>)(new List<Point>()) : (IList<Point>)(new ThousandthOfEmRealPoints(_renderingEmSize, _glyphOffsets)))),
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1440_frames = new List<BitmapFrame>((int)numFrames);
System\Windows\Media\Imaging\BitmapDownload.cs (1)
118decoders = new List<WeakReference>()
System\Windows\Media\Imaging\BitmapEncoder.cs (3)
290_frames = new List<BitmapFrame>(0); 834private IList<SafeMILHandle> _frameHandles = new List<SafeMILHandle>(0); 835private IList<SafeMILHandle> _writeSourceHandles = new List<SafeMILHandle>(0);
System\Windows\Media\Imaging\BitmapMetadata.cs (3)
131_metadataBlocks = new List<SafeMILHandle>(); 140_metadataBlocks = new List<SafeMILHandle>(); 256List<SafeMILHandle> metadataBlocks = new();
System\Windows\Media\Imaging\BitmapPalette.cs (1)
302List<Color> colors = new List<Color>();
System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (1)
174_frames = new List<BitmapFrame>((int)1);
System\Windows\Media\PathGeometry.cs (1)
242List<Point> points = new List<Point>((int)pSegmentPoly->Count);
System\Windows\Media\SolidColorBrush.cs (1)
289keys = new List<TKey>();
System\Windows\Media\textformatting\TextCharacters.cs (1)
246IList<TextShapeableSymbols> shapeables = new List<TextShapeableSymbols>(2);
System\Windows\Media3D\Matrix3DStack.cs (1)
102private readonly List<Matrix3D> _stack = new List<Matrix3D>();
System\Windows\Media3D\RayHitTestParameters.cs (1)
211private readonly List<RayHitTestResult> results = new List<RayHitTestResult>();
System\Windows\Nrbf\SerializationRecordExtensions.cs (2)
366return new List<T>(new ArraySegment<T>(array, 0, count)); 370List<T> list = new(readOnlyList);
System\Windows\UIElement.cs (2)
4647internal static List<double> DpiScaleXValues = new List<double>(3); 4648internal static List<double> DpiScaleYValues = new List<double>(3);
PresentationFramework (546)
Microsoft\Win32\CommonItemDialog.cs (1)
550CustomPlaces = new List<FileDialogCustomPlace>();
Microsoft\Win32\FileDialog.cs (1)
676List<string> extensions = new();
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
88IList<DependencyObject> pageEl = new List<DependencyObject>(); 229List<ContentLocatorPart> res = new List<ContentLocatorPart>(1); 658private IList<PointSegment> _segments = new List<PointSegment>(1);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (7)
263IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(); 364returnLocators = new List<ContentLocatorBase>(0); 636List<ContentLocatorBase> locatorsToReturn = new List<ContentLocatorBase>(); 716List<ContentLocatorBase> tempLocators = new List<ContentLocatorBase>(locatorsToReturn.Count * locatorParts.Count); 918locators = new List<ContentLocator>(1); 1209List<ContentLocatorBase> res = new List<ContentLocatorBase>(1); 1298private List<IAttachedAnnotation> _attachedAnnotations = new List<IAttachedAnnotation>();
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (5)
113IList<DependencyObject> list = new List<DependencyObject>(); 433res = new List<ITextView>(1); 447res = new List<ITextView>(0); 486res = new List<ITextView>(1); 523res = new List<ITextView>(endPageNumber - startPageNumber + 1);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
163List<ContentLocatorPart> res = new List<ContentLocatorPart>(1);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
130res = new List<ContentLocatorPart>(1);
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (1)
142return new List<ContentLocatorPart>(0);
MS\Internal\Annotations\AnnotationMap.cs (3)
26list = new List<IAttachedAnnotation>(1); 87List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(_annotationIdToAttachedAnnotations.Keys.Count); 108private static readonly List<IAttachedAnnotation> _emptyList = new List<IAttachedAnnotation>(0);
MS\Internal\Annotations\AnnotationResourceCollection.cs (1)
73List<AnnotationResource> list = new List<AnnotationResource>(this);
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
391List<AnnotationAdorner> res = new List<AnnotationAdorner>();
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
270currentList = new List<IAnnotationComponent>();
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (8)
36_segments = new List<HighlightSegment>(); 605List<IHighlightRange> list = new List<IHighlightRange>(1); 622_owners = new List<IHighlightRange>(owners.Count); 767res = new List<HighlightSegment>(1); 773res = new List<HighlightSegment>(2); 793IList<HighlightSegment> res = new List<HighlightSegment>(); 1195private List<TextSegment> _contentSegments = new List<TextSegment>(1); 1197private List<IHighlightRange> _activeOwners = new List<IHighlightRange>();
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
989_components = new List<MarkedHighlightComponent>();
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (1)
199List<Annotation> annotations = new List<Annotation>();
MS\Internal\Annotations\TextAnchor.cs (2)
593List<TextSegment> orderedList = new List<TextSegment>(textSegments.Count); 746private List<TextSegment> _segments = new List<TextSegment>(1);
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
88_elementsBounds = new List<Rect>();
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
842_toRemove = new List<CollectionViewGroupInternal>();
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
334List<GroupTreeNode> list = new List<GroupTreeNode>(parentGroups.Count + 1);
MS\Internal\Data\CommitManager.cs (5)
57list = new List<BindingGroup>(); 83list = new List<BindingExpressionBase>(); 143private static readonly List<BindingGroup> EmptyBindingGroupList = new List<BindingGroup>(); 144private static readonly List<BindingExpressionBase> EmptyBindingList = new List<BindingExpressionBase>(); 182return new List<T>(Keys);
MS\Internal\Data\LiveShapingBlock.cs (2)
274List<LiveShapingBlock> list = new List<LiveShapingBlock>(); // subtrees to explore 355List<LiveShapingBlock> list = new List<LiveShapingBlock>(); // subtrees to explore
MS\Internal\Data\LiveShapingItem.cs (1)
188list = new List<CollectionViewGroupInternal>(2);
MS\Internal\Data\LiveShapingList.cs (5)
87_sortDirtyItems = new List<LiveShapingItem>(); 88_filterDirtyItems = new List<LiveShapingItem>(); 89_groupDirtyItems = new List<LiveShapingItem>(); 687_unusedKeys = new List<string>(this.Keys); 793private static List<DependencyProperty> s_dpList = new List<DependencyProperty>();
MS\Internal\Data\PathParser.cs (1)
382private readonly List<SourceValueInfo> _sourceValueInfos = new();
MS\Internal\Data\PropertyPathWorker.cs (1)
1313List<MemberInfo> list = new List<MemberInfo>();
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
569private List<String> _toRemove = new List<String>();
MS\Internal\Data\ValueChangedEventManager.cs (1)
384private List<PropertyDescriptor> _toRemove = new List<PropertyDescriptor>();
MS\Internal\Data\ValueTable.cs (1)
243List<PropertyDescriptor> result = new List<PropertyDescriptor>();
MS\Internal\Documents\ContentHostHelper.cs (1)
107pageViews = new List<DocumentPageView>();
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
919private List<AsyncRequest> _asyncRequests = new List<AsyncRequest>(0);
MS\Internal\Documents\MultiPageTextView.cs (2)
42_pageTextViews = new List<DocumentPageTextView>(); 684List<TextSegment> textSegments = new List<TextSegment>();
MS\Internal\Documents\PageCache.cs (6)
38_cache = new List<PageCacheEntry>(_defaultCacheSize); 367List<PageCacheChange> changes = new List<PageCacheChange>(2); 530List<PageCacheChange> changes = new List<PageCacheChange>(1); 617List<PageCacheChange> changes = new List<PageCacheChange>(2); 705List<PageCacheChange> changes = new List<PageCacheChange>(PageCount); 845List<PageCacheChange> changes = new List<PageCacheChange>(1);
MS\Internal\Documents\RowCache.cs (5)
30_rowCache = new List<RowInfo>(_defaultRowCacheSize); 477List<RowCacheChange> changes = new List<RowCacheChange>(1); 570List<RowCacheChange> changes = new List<RowCacheChange>(1); 672List<RowInfo> tempRows = new List<RowInfo>(pivotPage / columns); 1200List<RowCacheChange> changes = new List<RowCacheChange>(args.Changes.Count);
MS\Internal\Documents\TextBoxLine.cs (1)
253List<Rect> rectangles = new List<Rect>();
MS\Internal\Documents\TextBoxView.cs (4)
367_lineMetrics = new List<LineRecord>(1); 1255List<TextSegment> segments = new List<TextSegment>(1); 1782_visualChildren = new List<TextBoxLineDrawingVisual>(1); 2638_viewportLineVisuals = new List<TextBoxLineDrawingVisual>(count);
MS\Internal\Documents\TextContainerHelper.cs (8)
83segments = new List<TextSegment>(); 89segments = new List<TextSegment>(1); 97segments = new List<TextSegment>(_size); 312List<AutomationPeer> peers = new List<AutomationPeer>(); 437ancestorsStart = new List<object>(); 438positionsStart = new List<ITextPointer>(); 453ancestorsEnd = new List<object>(); 454positionsEnd = new List<ITextPointer>();
MS\Internal\Documents\TextDocumentView.cs (2)
355List<GlyphRun> glyphRuns = new List<GlyphRun>(); 3245List<TextSegment> segments = new List<TextSegment>(1);
MS\Internal\Documents\TextParagraphView.cs (1)
478List<TextSegment> segments = new List<TextSegment>(1);
MS\Internal\Documents\UIElementIsland.cs (1)
207List<IInputElement> hostedElements = new List<IInputElement>();
MS\Internal\Documents\UndoManager.cs (3)
67_undoStack = new List<IUndoUnit>(4); 696List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoCount); 748List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoLimit);
MS\Internal\Globalization\BamlResourceContent.cs (1)
188List<BamlStringToken> tokens = new(8);
MS\Internal\Globalization\BamlTreeNode.cs (4)
42_nodeList = new List<BamlTreeNode>(size); 70List<BamlTreeNode> newNodeList = new List<BamlTreeNode>(Size); 104parent.Children = new List<BamlTreeNode>(children.Count); 192_children = new List<BamlTreeNode>();
MS\Internal\Globalization\BamlTreeUpdater.cs (3)
45List<KeyValuePair<BamlLocalizableResourceKey, BamlLocalizableResource>> deferredResources = new(); 409IList<BamlTreeNode> list = new List<BamlTreeNode>(4); 565List<BamlTreeNode> list = new();
MS\Internal\Globalization\LocalizationComments.cs (1)
81List<PropertyComment> tokens = new List<PropertyComment>(8);
MS\Internal\Helper.cs (2)
850itemValues = new List<KeyValuePair<int, object>>(3); // So far the only use of this is to store three values. 879List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item) ?? new List<KeyValuePair<int, object>>();
MS\Internal\Ink\ClipboardProcessor.cs (2)
135List<UIElement> elements = new List<UIElement>(inkCanvasSelection.SelectedElements); 376List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.Count);
MS\Internal\Ink\ElementsClipboardData.cs (2)
34ElementList = new List<UIElement>(elements); 59return new List<UIElement>();
MS\Internal\Ink\HighContrastHelper.cs (1)
61__highContrastCallbackList = new List<WeakReference>();
MS\Internal\Ink\InkCanvasSelection.cs (3)
82_selectedElements = new List<UIElement>(); 228_selectedElements = new List<UIElement>(elements); 823List<Rect> rects = new List<Rect>();
MS\Internal\Ink\LassoHelper.cs (2)
72List<Point> justAdded = new List<Point>(); 308_lasso = new List<Point>(100);
MS\Internal\Ink\LassoSelectionBehavior.cs (6)
127List<Point> points = new List<Point>(); 179List<Point> points = new List<Point>(); 195List<Point> points = new List<Point>(); 237List<UIElement> elementsToSelect = new List<UIElement>(); 337List<UIElement> elementsToSelect = new List<UIElement>(); 429List<Point> pointArray = new(4);
MS\Internal\Ink\TextClipboardData.cs (1)
69ElementList = new List<UIElement>();
MS\Internal\Ink\XamlClipboardData.cs (1)
88ElementList = new List<UIElement>();
MS\Internal\LayoutDump.cs (1)
356List<UIElement> uiElements = new List<UIElement>();
MS\Internal\PtsHost\BaseParaClient.cs (2)
127return new List<Rect>(); 137rectangles = new List<Rect>();
MS\Internal\PtsHost\BreakRecordTable.cs (1)
37_breakRecords = new List<BreakRecordTableEntry>();
MS\Internal\PtsHost\ContainerParaClient.cs (3)
129List<Rect> rectangles = new List<Rect>(); 158rectangles = new List<Rect>(); 339List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length);
MS\Internal\PtsHost\FigureParaClient.cs (7)
281List<Rect> rectangles = new List<Rect>(); 578paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 618paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 643List<ColumnResult> columnResults = new List<ColumnResult>(0); 665columnResults = new List<ColumnResult>(1); 685columnResults = new List<ColumnResult>(1); 772List<ParagraphResult> floatingElements = new List<ParagraphResult>(0);
MS\Internal\PtsHost\FloaterParaClient.cs (7)
286List<Rect> rectangles = new List<Rect>(); 587paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 627paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 652List<ColumnResult> columnResults = new List<ColumnResult>(0); 674columnResults = new List<ColumnResult>(1); 694columnResults = new List<ColumnResult>(1); 781List<ParagraphResult> floatingElements = new List<ParagraphResult>(0);
MS\Internal\PtsHost\FlowDocumentPage.cs (7)
312List<Rect> rectangles = new List<Rect>(); 334List<Rect> transformedRectangles = new List<Rect>(rectangles.Count); 379List<ParagraphResult> floatingElements = new List<ParagraphResult>(0); 413List<ColumnResult> columnResults = new List<ColumnResult>(0); 443columnResults = new List<ColumnResult>(1); 485columnResults = new List<ColumnResult>(sectionDetails.u.withpagenotes.cBasicColumns); 580List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length);
MS\Internal\PtsHost\Line.cs (3)
283List<InlineObject> inlineObjects = new List<InlineObject>(1); 488List<Rect> rectangles = new List<Rect>(); 675List<GlyphRun> glyphRunsCollection = new(4);
MS\Internal\PtsHost\PtsCache.cs (2)
145_contextPool = new List<ContextDesc>(1); 235_releaseQueue = new List<PtsContext>();
MS\Internal\PtsHost\PtsHelper.cs (3)
446List<Rect> rectangles = new List<Rect>(); 485List<Rect> rectangles = new List<Rect>(); 514List<Rect> offsetRectangles = new List<Rect>(rectangleList.Count);
MS\Internal\PtsHost\PtsPage.cs (5)
226List<Rect> rectangles = new List<Rect>(); 1249List<Rect> rectangles = new List<Rect>(); 1298rectangles = new List<Rect>(); 1377List<Rect> rectangles = new List<Rect>(); 1543_floatingElementList = new List<BaseParaClient>();
MS\Internal\PtsHost\SubpageParaClient.cs (6)
220List<Rect> rectangles = new List<Rect>(); 538List<ColumnResult> columnResults = new List<ColumnResult>(0); 560columnResults = new List<ColumnResult>(1); 579columnResults = new List<ColumnResult>(subpageDetails.u.complex.cBasicColumns); 619List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 691List<ParagraphResult> floatingElements = new List<ParagraphResult>(0);
MS\Internal\PtsHost\TableParaClient.cs (6)
433List<Rect> rectangles = new List<Rect>(); 447rectangles = new List<Rect>(); 690List<ParagraphResult> rowParagraphResults = new List<ParagraphResult>(0); 733List<ParagraphResult> cellParagraphResults = new List<ParagraphResult>(0); 783List<ParagraphResult> listResults = new List<ParagraphResult>(0); 804List<ParagraphResult> listResults = new List<ParagraphResult>(0);
MS\Internal\PtsHost\TextParaClient.cs (11)
249List<Rect> rectangles = new List<Rect>(); 396floaters = new List<ParagraphResult>(arrayAttachedObjectDesc.Length); 433figures = new List<ParagraphResult>(arrayAttachedObjectDesc.Length); 1525List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 1577List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 2095rectangles = new List<Rect>(1); 2206rectangles = new List<Rect>(1); 3863List<Rect> rectangles = new List<Rect>(); 3905List<Rect> rectangles = new List<Rect>(); 4043List<Rect> rectangles = new List<Rect>(); 4085List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\TextParagraph.cs (4)
883List<TextElement> attachedElements = new List<TextElement>(); 938List<AttachedObject> attachedObjects = new List<AttachedObject>(); 1057objects = new List<InlineObject>(_inlineObjects.Count); 1533objectsCached = new List<T>(objectsNew.Count);
MS\Internal\PtsHost\UIElementParaClient.cs (1)
85List<Rect> rectangles = new List<Rect>();
MS\Internal\Text\Line.cs (1)
154List<Rect> rectangles = new List<Rect>();
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (1)
102var entries = new List<ComInterfaceEntry>();
MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
85private static List<string> ScriptCodesRequiringDedicatedSegmenter { get; } = new List<string>
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
366IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>();
System\Windows\Annotations\AnnotationHelper.cs (2)
723List<Annotation> annotations = new List<Annotation>(); 776List<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(annotations.Count);
System\Windows\Annotations\AnnotationService.cs (9)
794List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 855List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 909List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 952IList<IAttachedAnnotation> dirtyAnnotations = new List<IAttachedAnnotation>(); 980IList<UIElement> processedElements = new List<UIElement>(); 1160List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(); 1273List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(annotation.Anchors.Count); 1305List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(list.Length); 1470list = new List<IAttachedAnnotation>(1);
System\Windows\Annotations\LocatorGroup.cs (1)
217List<ContentLocatorBase> tempList = new List<ContentLocatorBase>(locatorGroup.Locators.Count * (this.Locators.Count - 1));
System\Windows\Annotations\LocatorPartList.cs (2)
354results = new List<ContentLocatorBase>(1); 359results = new List<ContentLocatorBase>(additionalLocatorParts.Count);
System\Windows\Annotations\Storage\XmlStreamStore.cs (6)
560retObj = new List<Guid>(iterator.Count); 583retObj = new List<Guid>(0); 648List<Annotation> annotations = new List<Annotation>((IEnumerable<Annotation>)mapAnnotations.Values); 769IList<Uri> allNamespaces = new List<Uri>(); 820IList<string> supportedNamespaces = new List<string>(); 1033private List<Uri> _ignoredNamespaces = new List<Uri>();
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
109List<AutomationPeer> peers = new List<AutomationPeer>(); 456List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 603List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>();
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
77children = new List<AutomationPeer>();
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (4)
55children = new List<AutomationPeer>(1); 173List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(); 238List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 272List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>();
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (2)
567List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(1); 589List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(1);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
83children = new List<AutomationPeer>(childItems.Count);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
373List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(); 434children = new List<AutomationPeer>(childItems.Count);
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (1)
57List<AutomationPeer> children = new List<AutomationPeer>(3);
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (1)
77children = new List<AutomationPeer>();
System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (1)
72children = new List<AutomationPeer>();
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
102children = new List<AutomationPeer>();
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
75children = new List<AutomationPeer>(); 132List<IRawElementProviderSimple> array = new List<IRawElementProviderSimple>(_owner.HeaderRowPresenter.ActualColumnHeaders.Count);
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
146children = new List<AutomationPeer>();
System\Windows\Automation\Peers\GridViewHeaderRowPresenterAutomationPeer.cs (1)
43newList = new List<AutomationPeer>(list.Count);
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
51List<AutomationPeer> list = new List<AutomationPeer>();
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
120List<AutomationPeer> children = new List<AutomationPeer>();
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (5)
76children = new List<AutomationPeer>(childItems.Count); 140children = new List<AutomationPeer>(childItems.Count); 506_recentlyRealizedPeers = new List<ItemAutomationPeer>(); 615_list = new List<KeyValuePair<object, T>>(); 661List<object> cleanUpItemsCollection = new List<object>();
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
171children = new List<AutomationPeer>(items.Count);
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (1)
154return new List<AutomationPeer>();
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
91List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(count);
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (2)
34List<AutomationPeer> list = new List<AutomationPeer>(); 92children = new List<AutomationPeer>();
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (1)
125return new List<AutomationPeer>();
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
69children = new List<AutomationPeer>(items.Count);
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
63children = new List<AutomationPeer>();
System\Windows\BroadcastEventHelper.cs (1)
255List<DependencyObject> eventRoute = new List<DependencyObject>();
System\Windows\Controls\AlternationConverter.cs (1)
56private List<object> _values = new List<object>();
System\Windows\Controls\CustomDictionarySources.cs (1)
41_uriList = new List<Uri>();
System\Windows\Controls\DataGrid.cs (6)
4652_pendingInfos = new List<ItemInfo>(); 5330ranges = new List<Tuple<int, int>>(); 7344GroupingSortDescriptionIndices = new List<int>(); 7597List<Tuple<int, int>> ranges = new List<Tuple<int, int>>(); 7676List<ItemInfo> list = new List<ItemInfo>(); 7696List<ItemInfo> list = new List<ItemInfo>();
System\Windows\Controls\DataGridCellsPanel.cs (5)
219List<int> realizedColumnIndices = new List<int>(); 220List<int> realizedColumnDisplayIndices = new List<int>(); 460List<RealizedColumnsBlock> resultList = new List<RealizedColumnsBlock>(); 1563List<int> additionalChildIndices = new List<int>(); 1942_realizedChildren = new List<UIElement>(children.Count);
System\Windows\Controls\DataGridColumnCollection.cs (3)
22DisplayIndexMap = new List<int>(5); 900List<DataGridColumn> unResolvedColumns = new List<DataGridColumn>(); 901List<DataGridColumn> partialResolvedColumns = new List<DataGridColumn>();
System\Windows\Controls\DataGridRowClipboardEventArgs.cs (1)
52_clipboardRowContent = new List<DataGridClipboardCellContent>();
System\Windows\Controls\DefinitionBase.cs (1)
736_registry = new List<DefinitionBase>();
System\Windows\Controls\Frame.cs (1)
1371_commandBindings = new List<CommandBinding>(6);
System\Windows\Controls\GridViewColumnCollection.cs (2)
458private List<GridViewColumn> _columns = new List<GridViewColumn>(); 462private List<int> _actualIndices = new List<int>();
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1567_gvHeaders = new List<GridViewColumnHeader>(); 1598_headersPositionList = new List<Rect>();
System\Windows\Controls\GridViewRowPresenter.cs (1)
404List<UIElement> list = new List<UIElement>();
System\Windows\Controls\InkCanvas.cs (3)
2098List<UIElement> newElements = new List<UIElement>(); 2515List<UIElement> elements = new List<UIElement>(); 2675removeSelectedElements ? new List<UIElement>() : elements,
System\Windows\Controls\ItemContainerGenerator.cs (3)
999List<string> errors = new List<string>(); 1060List<string> sources = new List<string>(); 2054_emptyGroupItems = new List<EmptyGroupItem>();
System\Windows\Controls\ItemsControl.cs (1)
3621List<DependencyObject> claimedContainers = new List<DependencyObject>();
System\Windows\Controls\Panel.cs (1)
1001stableKeyValues = new System.Collections.Generic.List<Int64>(count);
System\Windows\Controls\PopupControlService.cs (1)
847List<NativeMethods.RECT> rects = new List<NativeMethods.RECT>();
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
426pageViewList = new List<DocumentPageView>(1/* simplest case has just one element */);
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
189DesiredWidthList = new List<double>(count);
System\Windows\Controls\Primitives\Popup.cs (1)
188registeredPopups = new List<Popup>()
System\Windows\Controls\Primitives\Selector.cs (6)
1959List<int> knownIndices = new List<int>(_selectedItems.Count); 2286List<ItemInfo> unselected = new List<ItemInfo>(); 2287List<ItemInfo> selected = new List<ItemInfo>(); 2407? new List<ItemInfo>() : null; 2668_list = new List<ItemInfo>(capacity); 2676_list = new List<ItemInfo>(collection._list);
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
348_generatedItemsCollection = new List<UIElement>(children.Count);
System\Windows\Controls\TextAdaptor.cs (2)
128List<Rect> rectangles = new List<Rect>(); 508List<TextSegment> visibleTextSegments = new List<TextSegment>();
System\Windows\Controls\TextBlock.cs (9)
1290_subsequentLines = new List<LineMetrics>(subsequentLinesInitialSize); 1731return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1741return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1748return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1764return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1784List<Rect> rectangles = new List<Rect>(); 1852return new HostedElements(new ReadOnlyCollection<TextSegment>(new List<TextSegment>(0))); 1856System.Collections.Generic.List<TextSegment> textSegmentsList = new System.Collections.Generic.List<TextSegment>(1); 2036List<LineResult> lines = new List<LineResult>(lineCount);
System\Windows\Controls\TextSearch.cs (1)
675_charsEntered = new List<string>(10);
System\Windows\Controls\ToolBarTray.cs (2)
955private List<ToolBar> _band = new List<ToolBar>(); 965private List<BandInfo> _bands = new List<BandInfo>(0);
System\Windows\Controls\VirtualizedCellInfoCollection.cs (10)
28_regions = new List<CellRegion>(); 41_regions = (regions != null) ? new List<CellRegion>(regions) : new List<CellRegion>(); 201List<DataGridCellInfo> list = new List<DataGridCellInfo>(); 235_regions = new List<CellRegion>(regions); 713remainder = new List<CellRegion>(); 832List<CellRegion> addList = new List<CellRegion>(); 917removeList = new List<CellRegion>(); 1409List<CellRegion> removeList = new List<CellRegion>(); 1540columnIndexRanges = new List<int>();
System\Windows\Controls\VirtualizingStackPanel.cs (8)
9173_realizedChildren = new List<UIElement>(children.Count); 9441List<String> list = new List<String>(count); 9461List<String> list = new List<String>(count); 10923previouslyMeasuredOffsets = new List<double>(); 11965OffsetList = new List<double>(2); 12465= new List<Tuple<WeakReference<ItemsControl>,TraceList>>(); 12564private List<ScrollTraceRecord> _traceList = new List<ScrollTraceRecord>(); 12990List<ChildInfo> list = new List<ChildInfo>();
System\Windows\Data\BindingExpression.cs (1)
2338result = new List<object>();
System\Windows\Data\BindingExpressionBase.cs (7)
289list = new List<ValidationError>(); 293list = new List<ValidationError>(NotifyDataErrors); 2289notifyDataErrors = new List<ValidationError>(); 2327toRemove = new List<ValidationError>(previousErrors); 2331toAdd = new List<object>(); 2332toRemove = new List<ValidationError>(previousErrors); 2428var tempList = new List<WeakDependencySource>();
System\Windows\Data\BindingGroup.cs (3)
259List<ValidationError> errors = new List<ValidationError>(); 1097itemErrors = new List<ValidationError>(); 1624List<BindingExpressionBase> result = new List<BindingExpressionBase>();
System\Windows\Data\BindingListCollectionView.cs (2)
2385List<AbandonedGroupItem> deleteList = new List<AbandonedGroupItem>(); 2476_deferredActions = new List<Action>();
System\Windows\Data\BindingOperations.cs (1)
592private List<Exception> _log = new List<Exception>();
System\Windows\Data\CollectionView.cs (4)
1476List<ItemPropertyInfo> list = new List<ItemPropertyInfo>(); 1928_changeLog = new List<NotifyCollectionChangedEventArgs>(); 2127private List<NotifyCollectionChangedEventArgs> _changeLog = new(); 2147private static readonly List<NotifyCollectionChangedEventArgs> s_emptyList = new();
System\Windows\Data\ListCollectionView.cs (2)
3203List<AbandonedGroupItem> deleteList = new List<AbandonedGroupItem>(); 3274_deferredActions = new List<Action>();
System\Windows\Diagnostics\BindingDiagnostics.cs (1)
37s_pendingEvents = new List<BindingFailedEventArgs>();
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (8)
158List<ResourceDictionary> result = new List<ResourceDictionary>(list.Count); 173toRemove = new List<WeakReference<ResourceDictionary>>(); 211list = new List<WeakReference<ResourceDictionary>>(1); 237List<WeakReference<ResourceDictionary>> toRemove = new List<WeakReference<ResourceDictionary>>(); 300List<T> result = new List<T>(list.Count); 513toRemove = new List<WeakReferenceKey<StaticResourceExtension>>(); 528private static List<object> IgnorableProperties = new List<object>(); 552= new List<ResourceDictionaryInfo>().AsReadOnly();
System\Windows\Documents\DocumentReferenceCollection.cs (1)
141_internalList = new List<DocumentReference>();
System\Windows\Documents\DocumentSequence.cs (1)
655_pendingPages = new List<RequestedPage>();
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
713List<TextSegment> rangeArray = new List<TextSegment>(4);
System\Windows\Documents\DocumentSequenceTextView.cs (1)
548List<TextSegment> parentSegments = new List<TextSegment>(childSegments.Count);
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (1)
24_elementList = new List<BlockElement>();
System\Windows\Documents\DocumentStructures\StoryFragments.cs (2)
25_elementList = new List<StoryFragment>(); 83_elementList = new List<BlockElement>();
System\Windows\Documents\FixedDocument.cs (3)
830_pendingPages = new List<PageContent>(); 1058List<FixedPage> oldHighlightPages = new List<FixedPage>(); 1134List<int> dirtyPages = new List<int>();
System\Windows\Documents\FixedElement.cs (1)
134_children = new List<FixedElement>();
System\Windows\Documents\FixedFlowMap.cs (2)
340_flowOrder = new List<FlowNode>(); 388entry = new List<FixedSOMElement>();
System\Windows\Documents\FixedPage.cs (1)
1007List<int> childPath = new List<int>();
System\Windows\Documents\FixedPageStructure.cs (1)
811List<FlowNode> nodes = new List<FlowNode>();
System\Windows\Documents\FixedSOMContainer.cs (2)
22_semanticBoxes = new List<FixedSOMSemanticBox>(); 208_fixedNodes = new List<FixedNode>();
System\Windows\Documents\FixedSOMLineCollection.cs (2)
28_verticals = new List<FixedSOMLineRanges>(); 29_horizontals = new List<FixedSOMLineRanges>();
System\Windows\Documents\FixedSOMLineRanges.cs (2)
87_start = new List<double>(); 99_end = new List<double>();
System\Windows\Documents\FixedSOMPageConstructor.cs (4)
228_fixedNodes = new List<FixedNode>(); 758List<FixedSOMTableRow> tableRows = new List<FixedSOMTableRow>(); 1020List<FixedSOMTable> tables = new List<FixedSOMTable>(); 1129List<FixedSOMSemanticBox> groups = new List<FixedSOMSemanticBox>();
System\Windows\Documents\FixedTextBuilder.cs (8)
743_pageStructures = new List<FixedPageStructure>(); 881List<FixedNode> fixedNodes = new List<FixedNode>(); 1244_hyperlinks = new List<LogicalHyperlink>(); 1366_textRuns = new List<FixedSOMTextRun>(); 1367_flowNodes = new List<FlowNode>(); 1368_fixedNodes = new List<FixedNode>(); 1369_nodesInLine = new List<FixedNode>(); 1370_lineResults = new List<FixedLineResult>();
System\Windows\Documents\FixedTextView.cs (1)
717List<TextSegment> list = new List<TextSegment>(1);
System\Windows\Documents\Glyphs.cs (1)
527parsedGlyphs = new List<ParsedGlyphData>(estimatedNumberOfGlyphs);
System\Windows\Documents\Highlights.cs (1)
346ranges = new List<TextSegment>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\OptionDescription.cs (1)
51_labels = labels ?? new List<string>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (3)
450hasErrorsCache = new List<HasErrorsResult>(HasErrorsCacheCapacity); 642{false, new List<Type>{ /*empty*/ }}, 643{true, new List<Type> { typeof(COMException), typeof(UnauthorizedAccessException)}}
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellingError.cs (1)
89_suggestions = new List<string>();
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (2)
54{false, new List<Type> { /* empty */ } }, 55{true, new List<Type> { typeof(COMException), typeof(UnauthorizedAccessException)} }
System\Windows\Documents\MsSpellCheckLib\Utils\Extensions.cs (2)
31var result = new List<string>(); 79var result = new List<SpellingError>();
System\Windows\Documents\NLGSpellerInterop.cs (3)
571List<string> suggestions = new List<string>(); 623List<ISpellerSegment> subSegments = new List<ISpellerSegment>(); 831List<ISpellerSegment> segments = new List<ISpellerSegment>();
System\Windows\Documents\PageContentCollection.cs (1)
29_internalList = new List<PageContent>();
System\Windows\Documents\Serialization\SerializerProvider.cs (1)
34List<SerializerDescriptor> installedSerializers = new List<SerializerDescriptor>();
System\Windows\Documents\Speller.cs (2)
181List<string> suggestions = new(4); 209_ignoredWordsList = new List<string>(1);
System\Windows\Documents\SpellerHighlightLayer.cs (1)
204list = new List<TextSegment>(1);
System\Windows\Documents\TextEffectResolver.cs (1)
50List<TextEffectTarget> list = new List<TextEffectTarget>();
System\Windows\Documents\TextRangeBase.cs (1)
1777thisRange._TextSegments = new List<TextSegment>(1);
System\Windows\Documents\TextRangeEditTables.cs (2)
338List<TextSegment> cellRange = new List<TextSegment>(lastRowIndex - firstRowIndex + 1); 374List<TextSegment> textSegments = new List<TextSegment>(1);
System\Windows\Documents\TextRangeSerialization.cs (2)
84List<int> ignoreList = new List<int>(); 343List<int> ignoreList = new List<int>();
System\windows\Documents\TextSelectionHighlightLayer.cs (3)
334rangeArray = new List<TextSegment>(1); 339rangeArray = new List<TextSegment>(1); 344rangeArray = new List<TextSegment>(2);
System\Windows\Documents\TextStore.cs (3)
4136_compositionEventList = new List<CompositionEventRecord>(); 4940= new List<Tuple<WeakReference<FrameworkElement>,TraceList>>(); 5039private List<IMECompositionTraceRecord> _traceList = new List<IMECompositionTraceRecord>();
System\Windows\Documents\WinRTSpellerInterop.cs (3)
466_customDictionaryFiles[ietfLanguageTag] = new List<string>(); 904_empty = new List<ISpellerSegment>().AsReadOnly(); 913List<string> result = new List<string>();
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (1)
65var allTokens = new List<SpellerSegment>();
System\Windows\Documents\WpfPayload.cs (1)
494_images = new List<Image>();
System\Windows\Documents\XPSS0ValidatingLoader.cs (1)
53List<Type> safeTypes = new List<Type> { typeof(System.Windows.ResourceDictionary) };
System\Windows\FrameworkContextData.cs (1)
93private List<WalkerEntry> _currentWalkers = new List<WalkerEntry>(4);
System\Windows\FrameworkElementFactory.cs (2)
744noChildIndexChildren = new List<DependencyObject>(4); 1025noChildIndexChildren = new List<DependencyObject>(4);
System\Windows\FrameworkTemplate.cs (1)
1517private List<String> _childNames = new List<string>();
System\Windows\Ink\Events.cs (3)
130new List<UIElement>(selectedElements); 168new List<UIElement>(selectedElements); 309new List<GestureRecognitionResult>(gestureRecognitionResults);
System\Windows\Input\KeyboardNavigation.cs (1)
3592private List<WeakReference> _list = new List<WeakReference>(1);
System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (1)
50_resources = new List<Object>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
249_context.KeyList = new List<KeyRecord>(); 934_context.KeyList = new List<KeyRecord>();
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (4)
654private readonly List<BamlAssembly> _bamlAssembly = new List<BamlAssembly>(); 655private readonly List<object> _bamlType = new List<object>(); 656private readonly List<Object> _bamlProperty = new List<Object>(); 657private readonly List<string> _bamlString = new List<string>();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (14)
1795new List<Type>() { typeof(System.Type) }, 1885new List<Type>() { typeof(System.String) }, 2828new List<Type>() { typeof(System.Object) }, 2974new List<Type>() { typeof(System.Type), typeof(System.Object) }, 3356new List<Type>() { typeof(System.Object) }, 4352new List<Type>() { typeof(System.Object) }, 9167new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode) }, 9174new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode), typeof(System.Type), typeof(System.Int32) }, 10451new List<Type>() { typeof(System.String) }, 10472new List<Type>() { typeof(System.Object) }, 10956new List<Type>() { typeof(System.Windows.DependencyProperty) }, 11196new List<Type>() { typeof(System.String) }, 11828new List<Type>() { typeof(System.Type) }, 13165new List<Type>() { typeof(System.Object) },
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
335xTypes = new List<XamlType>();
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
343_themeHelpers = new List<ThemeKnownTypeHelper>();
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
178List<XamlMember> members = new List<XamlMember>();
System\Windows\Markup\BamlMapTable.cs (8)
1682AssemblyIdMap = new List<BamlAssemblyInfoRecord>(_assemblyIdToInfo), 1683TypeIdMap = new List<BamlTypeInfoRecord>(_typeIdToInfo), 1684AttributeIdMap = new List<BamlAttributeInfoRecord>(_attributeIdToInfo), 1685StringIdMap = new List<BamlStringInfoRecord>(_stringIdToInfo) 1815private readonly List<BamlAssemblyInfoRecord> _assemblyIdToInfo = new(); 1819private readonly List<BamlTypeInfoRecord> _typeIdToInfo = new(); 1823private readonly List<BamlAttributeInfoRecord> _attributeIdToInfo = new(10); 1827private readonly List<BamlStringInfoRecord> _stringIdToInfo = new();
System\Windows\Markup\BamlReader.cs (4)
1222_deferKeys = new List<BamlKeyInfo>(); 1364List<BamlRecord> srRecords = new List<BamlRecord>(); 2683list = new List<String>(); 3040_staticResources = new List<List<BamlRecord>>();
System\Windows\Markup\BamlRecordReader.cs (2)
1734staticResourceValuesList = new List<object[]>(defKeyList.Capacity); 5625private static List<ReaderContextStackData> _stackDataFactoryCache = new List<ReaderContextStackData>();
System\Windows\Markup\BamlRecordWriter.cs (3)
301_staticResourceRecordList = new List<ValueDeferRecord>(5); 1160_staticResourceRecordList = new List<ValueDeferRecord>(1); 1784_staticResourceRecordList = new List<List<ValueDeferRecord>>(1);
System\Windows\Markup\DependencyPropertyConverter.cs (1)
188List<XamlType> ceilingTypes = new List<XamlType>();
System\Windows\Markup\ParserContext.cs (1)
607_staticResourcesStack = new List<object[]>();
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
616private static readonly List<Type> EmptyTypes = new List<Type>();
System\Windows\Markup\Primitives\MarkupWriter.cs (5)
324keyEntry.Predecessors = new List<int>(); 429private List<Entry> _entries = new List<Entry>(); 611argumentCompositeIndexes = new List<int>(); 617composites = new List<MarkupProperty>(); 1088List<Type> wrapperTypes = new List<Type>();
System\Windows\Markup\RoutedEventConverter.cs (1)
88List<XamlType> ceilingTypes = new List<XamlType>();
System\Windows\Markup\XamlTypeMapper.cs (1)
3256namespaceAssemblyPair = new List<ClrNamespaceAssemblyPair>(1);
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (2)
78List<string> resultList = new List<string>(_sharedSchemaContext.GetAllXamlNamespaces()); 402list = new List<V>();
System\Windows\Markup\XmlnsCache.cs (1)
335List<ClrNamespaceAssemblyPair> pairList = new List<ClrNamespaceAssemblyPair>();
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (6)
37_keyFrames = new List< ThicknessKeyFrame>(2); 55_keyFrames = new List<ThicknessKeyFrame>(0) 98_keyFrames = new List< ThicknessKeyFrame>(count); 119_keyFrames = new List< ThicknessKeyFrame>(count); 140_keyFrames = new List< ThicknessKeyFrame>(count); 161_keyFrames = new List< ThicknessKeyFrame>(count);
System\Windows\Media\Animation\Storyboard.cs (2)
585List<AnimationClock> clockList = new List<AnimationClock>(); 620clockList = new List<AnimationClock>(1);
System\Windows\Navigation\Journal.cs (1)
654private List<JournalEntry> _journalEntryList = new List<JournalEntry>();
System\Windows\ResourceDictionary.cs (3)
1162_deferredLocationList = new List<KeyRecord>(); 1909oldDictionaries = new List<ResourceDictionary>(e.OldItems.Count); 1927newDictionaries = new List<ResourceDictionary>(e.NewItems.Count);
System\Windows\ResourcesChangeInfo.cs (2)
45_oldDictionaries = new List<ResourceDictionary>(1); 52_newDictionaries = new List<ResourceDictionary>(1);
System\Windows\Shell\JumpList.cs (19)
69RejectedItems = new List<JumpItem>(rejectedItems).AsReadOnly(); 70RejectionReasons = new List<JumpItemRejectionReason>(reasons).AsReadOnly(); 74RejectedItems = new List<JumpItem>().AsReadOnly(); 75RejectionReasons = new List<JumpItemRejectionReason>().AsReadOnly(); 96RemovedItems = new List<JumpItem>(removedItems).AsReadOnly(); 100RemovedItems = new List<JumpItem>().AsReadOnly(); 275_jumpItems = new List<JumpItem>(items); 279_jumpItems = new List<JumpItem>(); 493successList = new List<JumpItem>(JumpItems.Count); 496rejectedList = new List<_RejectedJumpItemPair>(JumpItems.Count); 500categories = new List<List<_ShellObjectPair>>() { new List<_ShellObjectPair>() }; 554categories.Add(new List<_ShellObjectPair>() { shellMap }); 643var items = new List<JumpItem>(rejectedList.Count); 644var reasons = new List<JumpItemRejectionReason>(rejectedList.Count); 657var items = new List<JumpItem>(removedList.Count); 759var retList = new List<_ShellObjectPair>(); 835var linksOnlyList = new List<_ShellObjectPair>(); 1101var reasons = new List<JumpItemRejectionReason>(_jumpItems.Count);
System\Windows\Shell\WindowChrome.cs (1)
311private static readonly List<_SystemParameterBoundProperty> _BoundProperties = new List<_SystemParameterBoundProperty>
System\Windows\Shell\WindowChromeWorker.cs (1)
60_messageTable = new List<HANDLE_MESSAGE>
System\Windows\StyleHelper.cs (8)
1108actionsList = new List<TriggerAction>(); 1784List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex); 1843List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex); 3544dictionaries = new List<ResourceDictionary>(1); 3570List<ResourceDictionary> table = new List<ResourceDictionary>(1); 4776actionList = new List<DeferredAction>(); 5042List<TriggerBase> newList = new List<TriggerBase>(); 5088List<TriggerBase> newList = new List<TriggerBase>();
System\Windows\SystemResources.cs (4)
197List<ResourceDictionaryInfo> dictionaries = new List<ResourceDictionaryInfo>(); 228List<ResourceDictionaryInfo> dictionaries = new List<ResourceDictionaryInfo>(); 1029_dpiAwarenessContextAndDpis = new List<DpiUtil.HwndDpiInfo>(); 1206List<SystemResourceKey> keys = new List<SystemResourceKey>();
System\Windows\TemplateContent.cs (1)
240List<PropertyValue> sharedProperties = new List<PropertyValue>();
System\Windows\ThemeDictionaryExtension.cs (1)
192_themeDictionaryInfos = new List<ThemeDictionaryInfo>();
System\Windows\ThemeManager.cs (1)
437List<int> indices = new List<int>();
System\Windows\TriggerActionCollection.cs (2)
30_rawList = new List<TriggerAction>(); 38_rawList = new List<TriggerAction>(initialSize);
System\Windows\Window.cs (2)
344_threadWindowHandles = new List<IntPtr>(); 6709var nativeIcons = new List<NativeMethods.IconHandle>();
PresentationFramework.Aero (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationFramework.Aero2 (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationFramework.AeroLite (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationFramework.Classic (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationFramework.Luna (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationFramework.Royale (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationUI (24)
MS\Internal\Documents\Application\ChainOfResponsibility.cs (1)
42_members = new List<T>(members);
MS\Internal\Documents\Application\CommandEnforcer.cs (1)
65_bindings = new List<PolicyBinding>(_initialBindCount);
MS\Internal\Documents\Application\DocumentManager.cs (1)
535new List<IDocumentController>();
MS\Internal\Documents\Application\TransactionalPackage.cs (2)
434List<PackagePart> _proxiedParts = new List<PackagePart>(); 584private List<Package> _trashCan = new List<Package>();
MS\Internal\Documents\DigitalSignatureProvider.cs (3)
313List<X509Certificate2> certificateList = new List<X509Certificate2>(); 385IList<DigitalSignature> signatureList = new List<DigitalSignature>(); 397new List<XpsSignatureDefinition>();
MS\Internal\Documents\DocumentSignatureManager.cs (2)
40_changeLog = new List<ChangeLogEntity>(); 525IList<SignatureResources> signResourcesList = new List<SignatureResources>();
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
228List<String> addresses = new List<String>(paths.Length);
MS\Internal\Documents\RightsManagementManager.cs (1)
651IList<string> accountList = new List<string>();
MS\Internal\Documents\RightsManagementProvider.cs (7)
369new List<RightsManagementUser>(users.Count); 516grantDictionary[user] = new List<ContentGrant>(); 532grantDictionary[owner] = new List<ContentGrant>(1); 717IList<ContentGrant> grantList = new List<ContentGrant>(); 840List<ContentGrant> grantList = new List<ContentGrant>(); 1017IList<CryptoProvider> cryptoProviders = new List<CryptoProvider>(); 1176List<ContentGrant> grants = new List<ContentGrant>();
MS\Internal\Documents\RMPermissions.cs (1)
95IList<string> rightsStrings = new List<string>();
MS\Internal\Documents\RMPublishingDialog.cs (4)
84_rmLicenses = new List<RightsManagementLicense>(grantDictionary.Values); 239new List<RightsManagementLicense>(); 372List<Uri> templateList = new List<Uri>(); 1011List<ServerSideTemplate> templates = new List<ServerSideTemplate>();
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
88var options = new List<KeyValuePair<string, string>>();
QuarantineTools.Tests (6)
ActiveIssueTests.cs (3)
288var actualParts = new List<string>(); 322var typeNames = new List<string>(); 395var newLists = new List<AttributeListSyntax>();
QuarantineScriptTests.cs (3)
232var actualParts = new List<string>(); 266var typeNames = new List<string>(); 339var newLists = new List<AttributeListSyntax>();
ReachFramework (38)
AlphaFlattener\Flattener.cs (1)
792oldUnderlay[i] = new List<int>(l.Count);
AlphaFlattener\Optimizer.cs (2)
32m_primitives = new List<int>(); 142List<Cluster> transparentCluster = new List<Cluster>();
AlphaFlattener\PrimitiveList.cs (3)
244_commands = new List<PrimitiveInfo>(); 341pi.overlap = new List<int>(); 357qi.underlay = new List<int>();
AlphaFlattener\SegmentTree.cs (1)
93_sList = new List<int>();
packaging\XpsDigitalSignature.cs (1)
68new List<PackageRelationshipSelector>();
Packaging\XpsDocument.cs (2)
304List<PackagePart> xmlPartList = new List<PackagePart>(); 865new List<PackageRelationshipSelector>();
Packaging\XpsFixedDocumentReaderWriter.cs (2)
271_pageCache = new List<IXpsFixedPageReader>(); 422_linkTargetStream = new List<String>();
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
203_documentCache = new List<IXpsFixedDocumentReader>();
Packaging\XpsFixedPageReaderWriter.cs (1)
475_currentChildren = new List<INode>();
Packaging\XpsInterleavingPolicy.cs (2)
420List<InterleavingNode> removeList = new List<InterleavingNode>(); 555private List<InterleavingNode> _interleavingNodes = new List<InterleavingNode>();
PrintConfig\PrtCap_Public_Simple.cs (17)
218List<Collation> valueSet = new List<Collation>(); 251List<DeviceFontSubstitution> valueSet = new List<DeviceFontSubstitution>(); 284List<Duplexing> valueSet = new List<Duplexing>(); 321List<InputBin> valueSet = new List<InputBin>(); 435List<OutputColor> valueSet = new List<OutputColor>(); 468List<OutputQuality> valueSet = new List<OutputQuality>(); 501List<PageBorderless> valueSet = new List<PageBorderless>(); 568List<PageMediaSize> mediaSet = new List<PageMediaSize>(); 608List<PageMediaType> valueSet = new List<PageMediaType>(); 641List<PageOrder> valueSet = new List<PageOrder>(); 674List<PageOrientation> valueSet = new List<PageOrientation>(); 707List<PageResolution> resSet = new List<PageResolution>(); 816List<int> valueSet = new List<int>(); 850List<PagesPerSheetDirection> valueSet = new List<PagesPerSheetDirection>(); 885List<PhotoPrintingIntent> valueSet = new List<PhotoPrintingIntent>(); 917List<Stapling> valueSet = new List<Stapling>(); 950List<TrueTypeFontMode> valueSet = new List<TrueTypeFontMode>();
Serialization\DrawingContextFlattener.cs (2)
43private List<Matrix> _fullTransform = new List<Matrix>(); 46private List<Geometry> _fullClip = new List<Geometry>();
Serialization\Manager\NullPackagingPolicy.cs (1)
212_linkTargetStream = new List <String>();
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
256_currentFixedPageLinkTargetStream = new List<String>();
Serialization\VisualSerializer.cs (1)
1609filteredCharacters = new List<char>(glyphRun.Characters);
RepoTasks (13)
BatchHelixWorkItems.cs (4)
47var unbatched = new List<ITaskItem>(); 48var batched = new List<ITaskItem>(); 87group = new List<ITaskItem>(); 126var targets = new List<string>();
ResolveDotnetToolPackagePaths.cs (1)
66var toolPackages = new List<ITaskItem>();
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
140var certificates = new List<X509Certificate2>(); 805var extensions = new List<X509Extension>(); 1076var certificatesToDispose = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
380var certsFromStore = new List<X509Certificate2>(); 426var certsFromDisk = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
843var nssDbs = new List<string>(); 863var nssDbs = new List<NssDb>(); 1018var certs = new List<FileInfo>();
Roslyn.Diagnostics.Analyzers (39)
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (1)
56var exportAttributes = new List<INamedTypeSymbol>() { mefV1ExportAttribute, mefV2ExportAttribute };
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
23return new List<string>(capacity: 0);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
150var attributes = new List<AttributeData>(); 217var attributes = new List<AttributeData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (3)
218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
60var result = new List<TextChange>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var newMembers = new List<SyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (2)
63var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 66var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
54var names = new List<string>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
Roslyn.Diagnostics.CSharp.Analyzers (13)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
117var partsList = new List<string>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
586var result = new List<IList<TSyntaxNode>>(); 588var currentGroup = new List<TSyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (1)
75var result = new List<SimpleNameSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
25var members = new List<SyntaxNodeOrToken>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
162var accessors = new List<AccessorDeclarationSyntax?>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
320var types = new List<BaseTypeSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
22var newUsings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (1)
144var usings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
24var indices = new List<bool>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
rzc (16)
Application.cs (1)
95var expandedArgs = new List<string>(args.Length);
CommandLine\CommandArgument.cs (1)
12Values = new List<string>();
CommandLine\CommandLineApplication.cs (4)
33Options = new List<CommandOption>(); 34Arguments = new List<CommandArgument>(); 35Commands = new List<CommandLineApplication>(); 36RemainingArguments = new List<string>();
CommandLine\CommandOption.cs (1)
14Values = new List<string>();
CompilerHost.cs (1)
76var args = new List<string>(request.Arguments.Count);
DefaultExtensionAssemblyLoader.cs (1)
57paths = new List<string>();
DefaultRequestDispatcher.cs (2)
26private List<Task<ConnectionResult>> _connections = new(); 143var all = new List<Task>(_connections.Count + 3);
DiscoverCommand.cs (1)
213var inputFiles = new List<RazorInputFile>
GenerateCommand.cs (1)
300var inputFiles = new List<RazorInputFile>(sourceItems.Length);
MetadataReaderExtensions.cs (1)
33var references = new List<AssemblyIdentity>(reader.AssemblyReferences.Count);
ServerProtocol\ServerRequest.cs (2)
86var requestArgs = new List<RequestArgument>(requestLength) 153var argumentsBuilder = new List<RequestArgument>((int)argumentCount);
sdk-tasks (5)
_generated\2\SdkTasksJsonSerializerContext.ListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<string>(),
AddMetadataIsPE.cs (1)
20var resultItemsList = new List<ITaskItem>();
CopyPreservingRelativeSymlinks.cs (1)
57var copiedFiles = new List<ITaskItem>();
DeduplicateAssembliesWithLinks.cs (1)
81filesByHash[hash] = new List<FileEntry>();
FilterItemsByDuplicateHash.cs (1)
53var unmatched = new List<ITaskItem>();
SelectTests (19)
GraphAffectedProjects.cs (3)
190var chain = new List<string>(); 395list = new List<string>(); 503var args = new List<string> { "-c", "core.quotePath=false", "diff", "--name-status", "-M" };
Program.cs (2)
423var args = new List<string> { "-c", "core.quotePath=false", "diff", "--name-only", "--no-renames" }; 1008var segments = new List<string>();
TestSelector.cs (2)
338var path = new List<string>(affectedPath.ProjectChain.Count + 1) { affectedPath.ChangedFile }; 349list = new List<Cause>();
TriggerMap.cs (12)
21public List<ConventionRule> Conventions { get; set; } = new(); 27public List<string> Ignore { get; set; } = new(); 29public List<PathRule> PathRules { get; set; } = new(); 31public List<AffectedProjectRule> AffectedProjectRules { get; set; } = new(); 33public List<DerivedRule> DerivedTargets { get; set; } = new(); 176public List<string> KeepRouted { get; set; } = new(); 181public List<string> Paths { get; set; } = new(); 183public List<string> Targets { get; set; } = new(); 196public List<string> Projects { get; set; } = new(); 198public List<string> Targets { get; set; } = new(); 215public List<string> Tests { get; set; } = new(); 217public List<string> Targets { get; set; } = new();
Shared (1)
Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Shared.Tests (16)
Data.Validation\LengthAttributeTests.cs (8)
29var results = new List<ValidationResult>(); 85var results = new List<ValidationResult>(); 157var results = new List<ValidationResult>(); 214var results = new List<ValidationResult>(); 264var results = new List<ValidationResult>(); 342var results = new List<ValidationResult>(); 390var results = new List<ValidationResult>(); 410var results = new List<ValidationResult>();
Data.Validation\TimeSpanAttributeTests.cs (4)
27var results = new List<ValidationResult>(); 92var results = new List<ValidationResult>(); 155var results = new List<ValidationResult>(); 229var results = new List<ValidationResult>();
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
25var input = new List<T>();
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ListBoolean.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.List<bool>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ListSimpleRecord.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>(),
Throw\ThrowTest.cs (1)
349var list = new List<int>();
Stress.ApiService (4)
ProducerConsumer.cs (1)
32var links = new List<ActivityLink>();
Program.cs (1)
252IReadOnlyList<KeyValuePair<string, object?>> eventData = new List<KeyValuePair<string, object?>>()
TestMetrics.cs (1)
34var uploadSpeed = new List<double>();
TraceCreator.cs (1)
17private readonly List<Activity> _allActivities = new List<Activity>();
Stress.AppHost (12)
CommandResources.cs (4)
1088var inputs = new List<InteractionInput> 1145var processArguments = new List<string> { scriptPath }; 1169var processArguments = new List<string> { "run", "--file", appPath }; 1196var commandTasks = new List<Task>();
InteractionCommands.cs (8)
237var inputs = new List<InteractionInput> 325var list = new List<KeyValuePair<string, string>>(); 381var inputs = new List<InteractionInput> 470var list = new List<KeyValuePair<string, string>>(); 482var inputs = new List<InteractionInput> 567var inputs = new List<InteractionInput>(); 747var inputs = new List<InteractionInput> { tenantInput, subscriptionInput, resourceGroupInput, locationInput }; 1068var fileDetails = new List<object>();
Stress.TelemetryService (1)
GaugeMetrics.cs (1)
22var measurements = new List<Measurement<long>>();
System.CodeDom (2)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
167var typeArgumentList = new List<CodeTypeReference>();
System\CodeDom\Compiler\CodeDomProvider.cs (1)
18private static readonly List<CompilerInfo> s_allCompilerInfo = new List<CompilerInfo>();
System.Collections (4)
System\Collections\Generic\PriorityQueueDebugView.cs (1)
31var list = new List<(TElement Element, TPriority Priority)>(_queue.UnorderedItems);
System\Collections\Generic\SortedSet.cs (2)
1049List<T> toSave = new List<T>(Count); 1429List<T> matches = new List<T>(this.Count);
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
99List<T> toRemove = new List<T>(Count);
System.Collections.Concurrent (3)
System\Collections\Concurrent\BlockingCollection.cs (2)
1051List<WaitHandle> handlesList = new List<WaitHandle>(collections.Length + 1); // + 1 for the external token handle to be added 1052List<CancellationToken> tokensList = new List<CancellationToken>(collections.Length + 1); // + 1 for the external token
System\Collections\Concurrent\ConcurrentStack.cs (1)
703List<T> list = new List<T>();
System.Collections.Immutable (7)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
550removeIndices ??= new List<int>();
System\Collections\Immutable\ImmutableArray_1.cs (1)
764removeIndices ??= new List<int>();
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
1060list ??= new List<T>();
System\Collections\Immutable\ImmutableSortedSet_1.cs (4)
1198list = new List<T>(addedItems); 1209list = new List<T>(this); 1252list = new List<T>(addedItems.Length); 1259list = new List<T>(this.Count + addedItems.Length);
System.CommandLine (19)
Argument.cs (4)
98_completionSources = new () 109_completionSources = new() 116_completionSources = new(); 133public List<Action<ArgumentResult>> Validators => _validators ??= new ();
ChildSymbolList{T}.cs (1)
20_children = new();
Command.cs (2)
87public List<Action<CommandResult>> Validators => _validators ??= new (); 267var completions = new List<CompletionItem>();
Help\HelpBuilder.Default.cs (1)
232List<TwoColumnHelpRow> optionRows = new();
Option.cs (2)
88public List<Action<OptionResult>> Validators => _validators ??= new(); 142(completions ??= new List<CompletionItem>()).Add(completion);
Parsing\DirectiveResult.cs (1)
35internal void AddValue(string value) => (_values ??= new()).Add(value);
Parsing\ParseOperation.cs (1)
376_preActions = new();
Parsing\StringExtensions.cs (2)
44var tokenList = new List<Token>(args.Count); 124(errorList ??= new()).Add(error!);
Parsing\SymbolResult.cs (1)
57internal void AddToken(Token token) => (_tokens ??= new()).Add(token);
Parsing\SymbolResultTree.cs (4)
23Errors = new List<ParseError>(tokenizeErrors.Count); 60internal void AddError(ParseError parseError) => (Errors ??= new()).Add(parseError); 62internal void InsertFirstError(ParseError parseError) => (Errors ??= new()).Insert(0, parseError); 66(UnmatchedTokens ??= new()).Add(token);
System.CommandLine.StaticCompletions (4)
shells\BashShellProvider.cs (1)
131var completions = new List<string>();
shells\FishShellProvider.cs (1)
32var states = new List<(int id, Command cmd)>();
shells\PowershellShellProvider.cs (1)
176List<string> completions = new();
shells\ZshShellProvider.cs (1)
354var lines = new List<string>(staticCompletions.Length + 2) { "((" };
System.ComponentModel.Annotations (10)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
53List<PropertyDescriptor> tempPropertyDescriptors = new List<PropertyDescriptor>();
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
238List<Attribute> attributes = new List<Attribute>(propertyDescriptorAttributes.Count);
System\ComponentModel\DataAnnotations\Validator.cs (8)
717var errors = new List<ValidationError>(); 723var tasks = new List<Task<List<ValidationError>>>(properties.Count); 818var errors = new List<ValidationError>(); 845(asyncAttributes ??= new List<AsyncValidationAttribute>()).Add(asyncAttr); 867var tasks = new List<Task<(AsyncValidationAttribute Attr, ValidationResult? Result)>>(asyncAttributes.Count); 1074var errors = new List<ValidationError>(); 1129var items = new List<KeyValuePair<ValidationContext, object?>>(properties.Count); 1166var errors = new List<ValidationError>();
System.ComponentModel.Composition (58)
Microsoft\Internal\Collections\CollectionServices.cs (2)
93List<T> result = new List<T>(source); 134source ??= new List<T>();
Microsoft\Internal\Collections\WeakReferenceCollection.cs (2)
11private readonly List<WeakReference> _items = new List<WeakReference>(); 66List<T> aliveItems = new List<T>();
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (2)
257List<ExportDefinition> exports = new List<ExportDefinition>(); 419List<ImportDefinition> imports = new List<ImportDefinition>();
System\ComponentModel\Composition\CompositionException.cs (2)
138var errors = new List<Exception>(); 264List<Stack<CompositionError>> paths = new List<Stack<CompositionError>>();
System\ComponentModel\Composition\CompositionExceptionDebuggerProxy.cs (1)
27var errors = new List<Exception>();
System\ComponentModel\Composition\Hosting\AggregateCatalog.cs (1)
145aggregateResult = new List<Tuple<ComposablePartDefinition, ExportDefinition>>(result);
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (1)
162var exports = new List<Export>();
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
80var catalogs = new List<ComposablePartCatalog>();
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (4)
96_completeActionList ??= new List<Action>(); 108_revertActionList ??= new List<Action>(); 169exceptions ??= new List<Exception>(); 204exceptions ??= new List<Exception>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogChangeProxy.cs (2)
24_addedParts = new List<ComposablePartDefinition>(addedParts); 42var addedExports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (4)
329List<Export> exports = new List<Export>(); 367List<ExportDefinition> exports = new List<ExportDefinition>(); 610partList = new List<ComposablePart>(); 811var resurrectedExports = new List<ExportDefinition>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (1)
27List<Export> exports = new List<Export>();
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (5)
25private List<ComposablePartCatalog> _catalogs = new List<ComposablePartCatalog>(); 36_catalogs = new List<ComposablePartCatalog>(catalogs); 59_catalogs = new List<ComposablePartCatalog>(_catalogs); 113_catalogs = new List<ComposablePartCatalog>(); 196_catalogs = new List<ComposablePartCatalog>(_catalogs);
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (3)
17private List<ComposablePart> _parts = new List<ComposablePart>(); 217List<Export> exports = new List<Export>(); 339partsToRemove ??= new List<ComposablePart>();
System\ComponentModel\Composition\Hosting\CompositionBatch.cs (4)
37_partsToAdd = new List<ComposablePart>(); 51_partsToRemove = new List<ComposablePart>(); 116_partsToAdd = new List<ComposablePart>(_partsToAdd); 140_partsToRemove = new List<ComposablePart>(_partsToRemove);
System\ComponentModel\Composition\Hosting\CompositionScopeDefinition.cs (1)
191var exports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (2)
697catalogsToAdd = new List<Tuple<string, AssemblyCatalog>>(); 698catalogsToRemove = new List<Tuple<string, AssemblyCatalog>>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.cs (1)
154var exports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependenciesTraversal.cs (2)
50parts = new List<ComposablePartDefinition>(); 78reachablePartList ??= new List<ComposablePartDefinition>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependentsTraversal.cs (2)
59parts = new List<ComposablePartDefinition>(); 85reachablePartList ??= new List<ComposablePartDefinition>();
System\ComponentModel\Composition\Hosting\ImportEngine.EngineContext.cs (2)
18private readonly List<PartManager> _addedPartManagers = new List<PartManager>(); 19private readonly List<PartManager> _removedPartManagers = new List<PartManager>();
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (1)
146disposableExports ??= new List<IDisposable>();
System\ComponentModel\Composition\Hosting\ImportEngine.RecompositionManager.cs (1)
38List<PartManager> parts = new List<PartManager>();
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (3)
176var typesList = new List<Type>(); 266var collection = new List<ComposablePartDefinition>(); 327contractParts = new List<ComposablePartDefinition>();
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (1)
27internal static readonly List<Tuple<ComposablePartDefinition, ExportDefinition>> _EmptyExportsList = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Primitives\ComposablePartDefinition.cs (1)
126multipleExports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (1)
20List<Type> pureGenericParameters = new List<Type>();
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (4)
258List<ImportDefinition> imports = new List<ImportDefinition>(); 375List<ExportDefinition> exports = new List<ExportDefinition>(); 470List<LazyMemberInfo> members = new List<LazyMemberInfo>(); 471List<Lazy<ParameterInfo>> parameters = new List<Lazy<ParameterInfo>>();
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (1)
240multipleExports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System.ComponentModel.Composition.Registration (18)
System\ComponentModel\Composition\Registration\ExportBuilder.cs (3)
43_metadataItems ??= new List<Tuple<string, object>>(); 51_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 59attributes ??= new List<Attribute>();
System\ComponentModel\Composition\Registration\ImportBuilder.cs (1)
97attributes ??= new List<Attribute>();
System\ComponentModel\Composition\Registration\PartBuilder.cs (10)
13private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() }; 39_typeExportBuilders = new List<ExportBuilder>(); 40_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>>(); 41_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>>(); 42_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>>(); 188_metadataItems ??= new List<Tuple<string, object>>(); 196_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 225var attributes = new List<Attribute>(); 388configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 503configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (4)
21private static readonly List<object> s_emptyList = new List<object>(); 24private readonly List<PartBuilder> _conventions = new List<PartBuilder>(); 91List<Attribute> attributes = new List<Attribute>(); 93var configuredMembers = new List<Tuple<object, List<Attribute>>>();
System.ComponentModel.TypeConverter (16)
System\ComponentModel\Design\Serialization\ContextStack.cs (2)
100_contextStack ??= new List<object>(); 129_contextStack ??= new List<object>();
System\ComponentModel\EnumConverter.cs (1)
179List<Enum> flagValues = new List<Enum>();
System\ComponentModel\EventDescriptorCollection.cs (1)
314List<EventDescriptor?> eventList = new List<EventDescriptor?>(_events);
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
28List<Attribute> attrList = new List<Attribute>(AttributeArray!)
System\ComponentModel\MaskedTextProvider.cs (2)
290_stringDescriptor = new List<CharDescriptor>(); 535List<int> editPositions = new List<int>();
System\ComponentModel\MemberDescriptor.cs (3)
95List<Attribute> newList = new List<Attribute>(); 331list = new List<Attribute>(); 342list = new List<Attribute>(_attributes!);
System\ComponentModel\PropertyDescriptorCollection.cs (1)
332List<PropertyDescriptor?> propList = new List<PropertyDescriptor?>(_properties);
System\ComponentModel\ReferenceConverter.cs (1)
130components = new List<object?> { null };
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
604propertyList ??= new List<PropertyDescriptor>(propertyArray.Length * extenders.Length); 859List<Type> typeList = new List<Type>(); 1265List<ReflectPropertyDescriptor> extendedList = new List<ReflectPropertyDescriptor>(attributes.Count);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
89var attributes = new List<Attribute>(ReflectGetAttributes(_type));
System.Composition.Convention (21)
System\Composition\Convention\ConventionBuilder.cs (3)
17private readonly List<PartConventionBuilder> _conventions = new List<PartConventionBuilder>(); 116List<Attribute> attributes = new List<Attribute>(); 117var configuredMembers = new List<Tuple<object, List<Attribute>>>();
System\Composition\Convention\ExportConventionBuilder.cs (3)
94_metadataItems ??= new List<Tuple<string, object>>(); 115_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 122attributes ??= new List<Attribute>();
System\Composition\Convention\ImportConventionBuilder.cs (3)
102_metadataConstraintItems ??= new List<Tuple<string, object>>(); 123_metadataConstraintItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 148attributes ??= new List<Attribute>();
System\Composition\Convention\PartConventionBuilder.cs (12)
18private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() }; 43_typeExportBuilders = new List<ExportConventionBuilder>(); 44_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>>(); 45_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>>(); 46_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>>(); 47_methodImportsSatisfiedNotifications = new List<Predicate<MethodInfo>>(); 373_metadataItems ??= new List<Tuple<string, object>>(); 394_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 422var attributes = new List<Attribute>(); 579configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 646var onImportsSatisfiedAttributeList = new List<Attribute> 748configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.Composition.Hosting (5)
System\Composition\Hosting\Core\CompositionOperation.cs (2)
53_nonPrerequisiteActions ??= new List<Action>(); 67_postCompositionActions ??= new List<Action>();
System\Composition\Hosting\Core\LifetimeContext.cs (1)
38private List<IDisposable> _boundPartInstances = new List<IDisposable>(0);
System\Composition\Hosting\Core\UpdateResult.cs (1)
17private readonly List<ExportDescriptorPromise> _providedDescriptors = new List<ExportDescriptorPromise>();
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (1)
49var blockExprs = new List<Expression>();
System.Composition.TypedParts (9)
System\Composition\Debugging\ContainerConfigurationDebuggerProxy.cs (2)
59var discovered = new List<DiscoveredPart>(); 60var ignored = new List<Type>();
System\Composition\Hosting\ContainerConfiguration.cs (2)
23private readonly List<ExportDescriptorProvider> _addedSources = new List<ExportDescriptorProvider>(); 24private readonly List<Tuple<IEnumerable<Type>, AttributedModelProvider>> _types = new List<Tuple<IEnumerable<Type>, AttributedModelProvider>>();
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (2)
40var result = new List<CompositionDependency>(); 79var statements = new List<Expression>();
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (2)
24private readonly List<DiscoveredExport> _exports = new List<DiscoveredExport>(); 30private readonly List<Type[]> _appliedArguments = new List<Type[]>();
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (1)
48forKey = new List<DiscoveredExport>();
System.Configuration.ConfigurationManager (7)
System\Configuration\ApplicationSettingsBase.cs (1)
715var settingProps = new List<PropertyInfo>();
System\Configuration\BaseConfigurationRecord.cs (2)
418indirectLocationInputs.Add(configKey, new List<SectionInput>(1)); 659removes ??= new List<SectionRecord>();
System\Configuration\ErrorsHelper.cs (1)
26errors ??= new List<ConfigurationException>();
System\Configuration\MgmtConfigurationRecord.cs (1)
802List<string> streamsToRemove = new List<string>();
System\Configuration\SectionRecord.cs (1)
220inputs = new List<SectionInput>(1);
System\Diagnostics\ListenerElementsCollection.cs (1)
27List<TraceListener> listeners = new();
System.Console (2)
System\TermInfo.Database.cs (2)
224var values = new List<string>(extendedStringCount); 244var names = new List<string>(extendedBoolCount + extendedNumberCount + extendedStringCount);
System.Data.Common (53)
System\Data\Common\DataColumnMappingCollection.cs (1)
193_items = new List<DataColumnMapping>();
System\Data\Common\DataTableMappingCollection.cs (1)
148private List<DataTableMapping> ArrayList() => _items ??= new List<DataTableMapping>();
System\Data\Common\DbDataAdapter.cs (1)
1414rows = new List<DataRow>();
System\Data\Common\DbDataReaderExtensions.cs (1)
73var columnSchema = new List<DbColumn>();
System\Data\DataColumn.cs (1)
1800_dependentColumns ??= new List<DataColumn>();
System\Data\DataRelation.cs (1)
428List<DataTable> list = new List<DataTable>();
System\Data\DataSet.cs (1)
3226List<DataTable> topTables = new List<DataTable>();
System\Data\DataTable.cs (19)
148internal readonly List<DataView> _delayedViews = new List<DataView>(); 149private readonly List<DataViewListener> _dataViewListeners = new List<DataViewListener>(); 175_indexes = new List<Index>(); 373List<DataTable> list = new List<DataTable>(); 1595nestedParents = new List<DataRelation>(); 1903get { return _tableNamespace ?? GetInheritedNamespace(new List<DataTable>()); } 1913string realNamespace = value ?? GetInheritedNamespace(new List<DataTable>()); 1964rel.ChildTable.CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this); 1972CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this); 3160List<DataRow> errorList = new List<DataRow>(); 4356cachedRows = new List<DataRow>(); 4584_shadowIndexes = new List<Index>(_indexes); 5526List<DataTable> tableList = new List<DataTable>(); 6382List<DataTable> tableList = new List<DataTable>(); 6541List<DataTable> tableList = new List<DataTable>(); 6544List<DataRelation> relationList = new List<DataRelation>(); 6836(t_usedTables ??= new List<DataTable>()).Add(table); 6887RowDiffIdUsageSection.t_usedTables ??= new List<DataTable>(); 6944_dependentColumns ??= new List<DataColumn>();
System\Data\DataView.cs (1)
1704List<object[]> rowlist = new List<object[]>();
System\Data\EnumerableRowCollection.cs (4)
83_listOfPredicates = new List<Func<TRow, bool>>(); 94_listOfPredicates = new List<Func<TRow, bool>>(); 114_listOfPredicates = new List<Func<TRow, bool>>(source._listOfPredicates); 120_listOfPredicates = new List<Func<TRow, bool>>();
System\Data\Filter\AggregateNode.cs (1)
197List<int> recordList = new List<int>();
System\Data\Filter\DataExpression.cs (2)
95List<DataColumn> list = new List<DataColumn>(); 176List<int> recordList = new List<int>();
System\Data\LinqDataView.cs (3)
132List<object?> keyList = new List<object?>(); 168List<object?> keyList = new List<object?>(); 206new List<object?>(key));
System\Data\Merger.cs (1)
57existingColumns = new List<DataColumn>(); // need to cache existing columns
System\Data\ProviderBase\SchemaMapping.cs (1)
534items = new List<object>();
System\Data\RecordManager.cs (1)
16private readonly List<int> _freeRecordList = new List<int>();
System\Data\Select.cs (2)
810List<int> matchingRecords = new List<int>(); 833List<DataRow> matchingRows = new List<DataRow>();
System\Data\Selection.cs (2)
499List<object[]> list = new List<object[]>(); 1062_listeners = new List<TElem?>();
System\Data\SortExpressionBuilder.cs (1)
78List<object> result = new List<object>();
System\Data\XMLSchema.cs (6)
730List<XmlQualifiedName> qnames = new List<XmlQualifiedName>(); 1507_tableDictionary!.Add(table, new List<DataTable>()); 1632_tableDictionary!.Add(table, new List<DataTable>()); 2563List<DataTable> tableSequenceList = new List<DataTable>(); 2709List<DataTable> _tableList = new List<DataTable>(_ds.Tables.Count); 2868_namespacesToIgnore = new List<string>(namespacesToIgnore);
System\Xml\XmlDataDocument.cs (2)
3057List<DataTable> tableList = new List<DataTable>(); 3097List<DataTable> tableList = new List<DataTable>();
System.Data.Odbc (12)
Common\System\Data\Common\DBConnectionString.cs (4)
402newlist = new List<string>(); 425newlist = new List<string>(); 447List<string> newlist = new List<string>(a.Length + b.Length); 467List<string> restrictionValues = new List<string>();
Common\System\Data\ProviderBase\DbConnectionPool.cs (2)
164_objectList = new List<DbConnectionInternal>(MaxPoolSize); 1059List<DbConnectionInternal> reclaimedObjects = new List<DbConnectionInternal>();
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (2)
32_poolsToRelease = new List<DbConnectionPool>(); 33_poolGroupsToRelease = new List<DbConnectionPoolGroup>();
System\Data\Odbc\OdbcCommandBuilder.cs (1)
165List<OdbcParameter> rParams = new List<OdbcParameter>();
System\Data\Odbc\OdbcDataReader.cs (2)
1494List<byte[]> junkArray = new List<byte[]>(); 2009qrytables = new List<string>();
System\Data\Odbc\OdbcParameterCollectionHelper.cs (1)
31items = new List<OdbcParameter>();
System.Data.OleDb (9)
OleDbConnectionStringBuilder.cs (2)
452List<Guid> listPropertySets = new List<Guid>(); 569System.Collections.Generic.List<string> providerNames = new System.Collections.Generic.List<string>(table.Rows.Count);
OleDbDataReader.cs (2)
1257exceptions = new List<OleDbException>(); 2234List<MetaData> metainfo = new List<MetaData>();
OleDbParameterCollectionHelper.cs (1)
32items = new List<OleDbParameter>();
System\Data\ProviderBase\DbConnectionFactory.cs (2)
35_poolsToRelease = new List<DbConnectionPool>(); 36_poolGroupsToRelease = new List<DbConnectionPoolGroup>();
System\Data\ProviderBase\DbConnectionPool.cs (2)
401_objectList = new List<DbConnectionInternal>(MaxPoolSize); 1596List<DbConnectionInternal> reclaimedObjects = new List<DbConnectionInternal>();
System.Diagnostics.DiagnosticSource (24)
System\Diagnostics\Activity.cs (4)
2270public List<KeyValuePair<string, string?>> Baggage => new List<KeyValuePair<string, string?>>(activity.Baggage); 2274public List<ActivityEvent> Events => new List<ActivityEvent>(activity.Events); 2278public List<ActivityLink> Links => new List<ActivityLink>(activity.Links); 2288public List<KeyValuePair<string, object?>> TagObjects => new List<KeyValuePair<string, object?>>(activity.TagObjects);
System\Diagnostics\ActivitySource.cs (2)
59var tagList = new List<KeyValuePair<string, object?>>(tags); 438(predicateFailures ??= new List<Exception>()).Add(ex);
System\Diagnostics\ActivityTagsCollection.cs (3)
24private readonly List<KeyValuePair<string, object?>> _list = new List<KeyValuePair<string, object?>>(); 98List<string> list = new List<string>(_list.Count); 114List<object?> list = new List<object?>(_list.Count);
System\Diagnostics\DsesFilterAndTransform.cs (1)
427var outputArgs = new List<KeyValuePair<string, string?>>();
System\Diagnostics\LegacyPropagator.cs (1)
168baggageList ??= new List<KeyValuePair<string, string?>>();
System\Diagnostics\Metrics\AggregationManager.cs (1)
22private readonly List<Predicate<Instrument>> _instrumentConfigFuncs = new();
System\Diagnostics\Metrics\Instrument.cs (1)
75var tagList = new List<KeyValuePair<string, object?>>(tags);
System\Diagnostics\Metrics\InstrumentAdvice.cs (1)
43List<T> bucketBoundariesCopy = new List<T>(value);
System\Diagnostics\Metrics\Meter.cs (6)
18private static readonly List<Meter> s_allMeters = new List<Meter>(); 19private List<Instrument> _instruments = new List<Instrument>(); 78var tagList = new List<KeyValuePair<string, object?>>(tags); 508_instruments = new List<Instrument>(); 549instrumentList = new List<Instrument>(); 604instruments = new List<Instrument>();
System\Diagnostics\Metrics\MeterListener.cs (3)
21private static readonly List<MeterListener> s_allStartedListeners = new List<MeterListener>(); 230exceptionsList ??= new List<Exception>(); 295internal static List<MeterListener>? GetAllListeners() => s_allStartedListeners.Count == 0 ? null : new List<MeterListener>(s_allStartedListeners);
System\Diagnostics\W3CPropagator.cs (1)
131baggageList ??= new List<KeyValuePair<string, string?>>();
System.Diagnostics.EventLog (16)
System\Diagnostics\EventLog.cs (1)
649List<EventLog> logs = new List<EventLog>(logNames.Length);
System\Diagnostics\EventLogInternal.cs (1)
1421public List<EventLogInternal> listeningComponents = new();
System\Diagnostics\Reader\EventLogPropertySelector.cs (1)
30queries = new List<string>(propertyQueries);
System\Diagnostics\Reader\EventLogReader.cs (1)
315var list = new List<EventLogStatus>(channelNames.Length);
System\Diagnostics\Reader\EventLogRecord.cs (1)
372List<EventProperty> list = new List<EventProperty>();
System\Diagnostics\Reader\EventLogSession.cs (2)
165List<string> namesList = new List<string>(100); 188List<string> namesList = new List<string>(100);
System\Diagnostics\Reader\EventMetadata.cs (1)
86List<EventKeyword> list = new List<EventKeyword>();
System\Diagnostics\Reader\NativeWrapper.cs (2)
914List<object?> valuesList = new List<object?>(propCount); 994List<string> keywordsList = new List<string>();
System\Diagnostics\Reader\ProviderMetadata.cs (6)
164List<EventLogLink> channelList = new List<EventLogLink>(arraySize); 306levelList = new List<EventLevel>(arraySize); 314opcodeList = new List<EventOpcode>(arraySize); 322keywordList = new List<EventKeyword>(arraySize); 330taskList = new List<EventTask>(arraySize); 486List<EventMetadata> emList = new List<EventMetadata>();
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\PerformanceData\PerfProviderCollection.cs (1)
34private static readonly List<PerfProvider> s_providerList = new List<PerfProvider>();
System.Diagnostics.Process (10)
System\Diagnostics\Process.Multiplexing.Unix.cs (1)
64List<ProcessOutputLine> lines = new();
System\Diagnostics\Process.NonUap.cs (1)
77List<Process> childProcesses = new List<Process>();
System\Diagnostics\Process.Unix.cs (3)
124(exceptions ??= new List<Exception>()).Add(ex); 138(exceptions ??= new List<Exception>()).Add(new Win32Exception(errorInfo.RawErrno)); 177(exceptions ??= new List<Exception>()).Add(new Win32Exception(errorInfo.RawErrno));
System\Diagnostics\ProcessInfo.cs (2)
34_threadInfoList = new List<ThreadInfo>(); 39_threadInfoList = new List<ThreadInfo>(threadsNumber);
System\Diagnostics\ProcessStartInfo.cs (1)
71_argumentList = new Collection<string>(new List<string>(arguments));
System\Diagnostics\ProcessUtils.Unix.cs (1)
242var argvList = new List<string>();
System\Diagnostics\ProcessWaitState.Unix.cs (1)
669additionalToRemove ??= new List<ProcessWaitState>();
System.Diagnostics.TraceSource (7)
System\Diagnostics\CorrelationManager.cs (1)
128var results = new List<object?>();
System\Diagnostics\Switch.cs (2)
29private static readonly List<WeakReference<Switch>> s_switches = new List<WeakReference<Switch>>(); 67List<WeakReference<Switch>> buffer = new List<WeakReference<Switch>>(s_switches.Count);
System\Diagnostics\SwitchAttribute.cs (1)
53List<object> switchAttribs = new List<object>();
System\Diagnostics\TraceListeners.cs (1)
20_list = new List<TraceListener?>(1);
System\Diagnostics\TraceSource.cs (2)
15private static readonly List<WeakReference<TraceSource>> s_tracesources = new List<WeakReference<TraceSource>>(); 49List<WeakReference<TraceSource>> buffer = new List<WeakReference<TraceSource>>(s_tracesources.Count);
System.DirectoryServices (2)
System\DirectoryServices\ActiveDirectory\DirectoryServerCollection.cs (2)
18private readonly List<object> _copyList = new(); 401var values = new List<string>();
System.DirectoryServices.AccountManagement (38)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (1)
285List<string> objectClasses = new List<string>();
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (11)
583List<byte[]> sidList = new List<byte[]>(_foreignMembersCurrentGroup.Count); 1014_groupsToVisit = new List<string>(); 1018_groupsVisited = new List<string>(); 1080_foreignMembersCurrentGroup = new List<DirectoryEntry>(); 1081_fakePrincipalMembers = new List<DirectoryEntry>(); 1085_foreignGroups = new List<GroupPrincipal>(); 1276private List<string> _groupsVisited = new List<string>(); 1278private List<string> _groupsToVisit = new List<string>(); 1303private List<DirectoryEntry> _foreignMembersCurrentGroup = new List<DirectoryEntry>(); 1305private List<DirectoryEntry> _fakePrincipalMembers = new List<DirectoryEntry>(); 1312private List<GroupPrincipal> _foreignGroups = new List<GroupPrincipal>();
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (2)
908List<string> list = new List<string>(individualValues.Length); 1359var propertyValueList = new List<object>();
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
1167List<DirectoryEntry> roots = new List<DirectoryEntry>(1);
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (1)
502List<T> list = new List<T>();
System\DirectoryServices\AccountManagement\AD\SidList.cs (1)
207private readonly List<SidListEntry> _entries = new List<SidListEntry>();
System\DirectoryServices\AccountManagement\AuthenticablePrincipal.cs (2)
249private readonly List<string> _certificateOriginalThumbprints = new List<string>(); 598List<string> remainingOriginalThumbprints = new List<string>(_certificateOriginalThumbprints);
System\DirectoryServices\AccountManagement\PrincipalCollection.cs (4)
663private readonly List<Principal> _insertedValuesCompleted = new List<Principal>(); 664private readonly List<Principal> _insertedValuesPending = new List<Principal>(); 668private readonly List<Principal> _removedValuesCompleted = new List<Principal>(); 669private readonly List<Principal> _removedValuesPending = new List<Principal>();
System\DirectoryServices\AccountManagement\SAM\SAMMembersSet.cs (8)
481_groupsToVisit = new List<string>(); 485_groupsVisited = new List<string>(); 504_foreignMembers = new List<DirectoryEntry>(); 505_foreignGroups = new List<GroupPrincipal>(); 575private List<string> _groupsVisited = new List<string>(); 577private List<string> _groupsToVisit = new List<string>(); 588private List<DirectoryEntry> _foreignMembers = new List<DirectoryEntry>(); 591private List<GroupPrincipal> _foreignGroups = new List<GroupPrincipal>();
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_Query.cs (1)
112List<string> schemaTypes = new List<string>();
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (2)
75List<Hashtable> byPropertyTables = new List<Hashtable>(); 76List<Hashtable> byWinNTTables = new List<Hashtable>();
System\DirectoryServices\AccountManagement\TrackedCollection.cs (4)
223internal List<ValueEl> combinedValues = new List<ValueEl>(); 227internal List<T> removedValues = new List<T>(); 250List<T> insertedValues = new List<T>(); 274List<Pair<T, T>> changedList = new List<Pair<T, T>>();
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.cs (1)
748List<(int, int)> positions = new List<(int, int)>();
System.Formats.Cbor (4)
System\Formats\Cbor\Reader\CborReader.String.cs (1)
532return new List<(int Offset, int Length)>();
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
229return _keyValuePairEncodingRanges = new List<KeyValuePairEncodingRange>();
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
83_currentIndefiniteLengthStringRanges ??= new List<(int, int)>(); 179_currentIndefiniteLengthStringRanges ??= new List<(int, int)>();
System.Formats.Nrbf (3)
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (2)
220List<decimal> values = new(); 256List<T> values = new List<T>(Math.Min(count, 4));
System\Formats\Nrbf\RectangularArrayRecord.cs (1)
30_records = new List<SerializationRecord>(Math.Min(4, arrayInfo.GetSZArrayLength()));
System.Formats.Tar (1)
System\Formats\Tar\TarReader.cs (1)
395_dataStreamsToDispose ??= new List<Stream>();
System.IO.Compression (4)
System\IO\Compression\ZipArchive.Async.cs (1)
373entriesToWrite = new(_entries.Count);
System\IO\Compression\ZipArchive.cs (2)
191_entries = new List<ZipArchiveEntry>(); 920entriesToWrite = new(_entries.Count);
System\IO\Compression\ZipBlocks.cs (1)
72List<ZipGenericExtraField> extraFields = new List<ZipGenericExtraField>();
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\System\IO\FileSystem.DirectoryCreation.Windows.cs (1)
29List<string> stackDir = new List<string>();
System.IO.FileSystem.DriveInfo (2)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (2)
46List<string> mountPoints = new(); 64context._results = new List<string>();
System.IO.FileSystem.Watcher (3)
System\IO\FileSystemWatcher.Linux.cs (3)
131private readonly List<Watcher> _watchers = new(); 1341public List<WatchedDirectory> InitializedChildren => Children ??= new List<WatchedDirectory>(); 1402private List<WatchedDirectory> _watchers = new();
System.IO.Packaging (10)
System\IO\Packaging\Package.cs (1)
418List<string> partIndex = new(parts.Length);
System\IO\Packaging\PackagePart.cs (1)
334_requestedStreams ??= new List<Stream>(); //Default capacity is 4
System\IO\Packaging\PackageRelationshipSelector.cs (1)
113List<PackageRelationship> relationships = new List<PackageRelationship>(0);
System\IO\Packaging\XmlCompatibilityReader.cs (1)
113List<string> keysToUpdate = new List<string>();
System\IO\Packaging\ZipPackage.cs (6)
176List<PackagePart> parts = new List<PackagePart>(InitialPartListSize); 580List<ZipPackagePartPiece> pieces = new List<ZipPackagePartPiece>(pieceSet); 1080partPieces = new List<ZipPackagePartPiece>(contentTypeStreamPieces.Keys); 1412zipFileInfoNameList = new List<string>(count); 1474_ignoredItemDictionary.Add(normalizedPrefixName, new List<string>(_listInitialSize)); 1489_extensionDictionary.Add(extension, new List<string>(_listInitialSize));
System.IO.Pipelines (3)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
System\IO\Pipelines\PipeCompletion.cs (1)
42_callbacks ??= new List<PipeCompletionCallback>();
System\IO\Pipelines\PipeCompletionCallbacks.cs (1)
50exceptions ??= new List<Exception>();
System.IO.Ports (4)
System\IO\Ports\SerialPort.Unix.cs (4)
41List<string> ports = new List<string>(); 76var ports = new List<string>(); 95List<string> ports = new List<string>(); 120List<string> ports = new List<string>();
System.Linq (24)
System\Linq\AppendPrepend.SpeedOpt.cs (3)
104return new List<TSource>(1) { _item }; 107List<TSource> list = count == -1 ? [] : new List<TSource>(count); 264List<TSource> list = count == -1 ? [] : new List<TSource>(count);
System\Linq\Cast.SpeedOpt.cs (1)
30List<TResult> list = new(_source.Count);
System\Linq\Concat.SpeedOpt.cs (2)
373var list = count != -1 ? new List<TSource>(count) : new List<TSource>();
System\Linq\Distinct.SpeedOpt.cs (1)
14public override List<TSource> ToList() => new List<TSource>(new HashSet<TSource>(_source, _comparer));
System\Linq\Lookup.cs (1)
162List<TResult> list = new List<TResult>(_count);
System\Linq\OrderedEnumerable.SpeedOpt.cs (2)
32List<TElement> list = new(buffer.Length); 104return new List<TElement>(1) { GetEnumerableSorter().ElementAt(buffer, buffer.Length, minIdx) };
System\Linq\Range.SpeedOpt.cs (1)
30List<T> list = new List<T>(count);
System\Linq\Repeat.SpeedOpt.cs (1)
26List<TResult> list = new List<TResult>(_count);
System\Linq\SegmentedArrayBuilder.cs (1)
263result = new List<T>(count);
System\Linq\Select.SizeOpt.cs (1)
99List<TResult> list = new List<TResult>(_source.Count);
System\Linq\Select.SpeedOpt.cs (6)
158var results = new List<TResult>(source.Length); 301var results = new List<TResult>(count); 414var results = new List<TResult>(source.Length); 532var results = new List<TResult>(count); 798list = new List<TResult>(count); 975List<TResult> list = new List<TResult>(count);
System\Linq\Shuffle.SpeedOpt.cs (2)
211reservoir = new(takeCount); 239reservoir = new List<TSource>(Math.Min(takeCount, 4)) { e.Current };
System\Linq\ToCollection.cs (1)
70return new List<TSource>(source);
System\Linq\Union.SpeedOpt.cs (1)
29public override List<TSource> ToList() => new List<TSource>(FillSet());
System.Linq.Expressions (33)
System\Dynamic\BindingRestrictions.cs (1)
359var restrictions = new List<BindingRestrictions>();
System\Dynamic\ExpandoClass.cs (1)
96_transitions[hashCode] = infos = new List<WeakReference>();
System\Linq\Expressions\Compiler\BoundConstants.cs (1)
55private readonly List<object> _values = new List<object>();
System\Linq\Expressions\Compiler\LabelInfo.cs (1)
41private readonly List<LabelScopeInfo> _references = new List<LabelScopeInfo>();
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
532writeBacks ??= new List<WriteBack>();
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (4)
338buckets.Add(new List<SwitchLabel> { key }); 396var keys = new List<SwitchLabel>(); 420var buckets = new List<List<SwitchLabel>>(); 666var initializers = new List<ElementInit>(tests);
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (1)
205List<Expression> comma = new List<Expression>(count + 1);
System\Linq\Expressions\Compiler\StackSpiller.Temps.cs (2)
98internal List<ParameterExpression> Temps { get; } = new List<ParameterExpression>(); 162_freeTemps ??= new List<ParameterExpression>();
System\Linq\Expressions\Interpreter\BranchLabel.cs (1)
75_forwardBranchFixups ??= new List<int>();
System\Linq\Expressions\Interpreter\CallInstruction.cs (1)
212List<Type> types = new List<Type>();
System\Linq\Expressions\Interpreter\InstructionList.cs (5)
69private readonly List<Instruction> _instructions = new List<Instruction>(); 114var result = new List<InstructionView>(); 237_debugCookies ??= new List<KeyValuePair<int, object?>>(); 374_objects = new List<object>(); 938_labels ??= new List<BranchLabel>();
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (2)
145exception.Data[typeof(InterpretedFrameInfo)] ??= new List<InterpretedFrameInfo>(GetStackTraceDebugInfo()).ToArray(); 158var trace = new List<string>();
System\Linq\Expressions\Interpreter\LabelInfo.cs (1)
29private readonly List<LabelScopeInfo> _references = new List<LabelScopeInfo>();
System\Linq\Expressions\Interpreter\LightCompiler.cs (6)
284private readonly List<DebugInfo> _debugInfos = new List<DebugInfo>(); 2025exHandlers = new List<ExceptionHandler>(); 2169updaters = new List<ByRefUpdater>() { updater }; 2186updaters ??= new List<ByRefUpdater>(); 2423updaters ??= new List<ByRefUpdater>(); 2853var parameterList = new List<ParameterExpression>(count);
System\Linq\Expressions\Interpreter\LocalVariables.cs (1)
82existing.ChildScopes ??= new List<VariableScope>();
System\Linq\Expressions\Interpreter\TypeOperations.cs (2)
578var boxes = new List<IStrongBox>(); 579var vars = new List<ParameterExpression>();
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (2)
133var boxes = new List<IStrongBox>(); 134var vars = new List<ParameterExpression>();
System.Linq.Parallel (7)
System\Linq\Parallel\Merging\DefaultMergeHelper.cs (1)
163List<TInputOutput> output = new List<TInputOutput>();
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (1)
134_buffer = new List<Pair<TSource, TKey>>();
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (1)
201List<Pair<TResult, TKey>> buffer = new List<Pair<TResult, TKey>>();
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (1)
258List<Pair<TResult, TKey>> buffer = new List<Pair<TResult, TKey>>();
System\Linq\Parallel\Utils\Sorting.cs (1)
222values = new List<TInputOutput>();
System\Linq\ParallelEnumerable.cs (2)
4853List<TSource> list = new List<TSource>(); 4868return new List<TSource>(ToArray<TSource>(source));
System.Linq.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
76newArgs = new List<Expression>(argList.Count); 109List<Expression> exprs = new List<Expression>(na.Expressions.Count);
System.Memory (2)
System\Text\EncodingExtensions.cs (2)
166List<(byte[], int)> listOfSegments = new List<(byte[], int)>(); 353List<(char[], int)> listOfSegments = new List<(char[], int)>();
System.Net.Http (24)
src\runtime\src\libraries\Common\src\System\Net\Security\SslClientAuthenticationOptionsExtensions.cs (1)
22ApplicationProtocols = options.ApplicationProtocols != null ? new List<SslApplicationProtocol>(options.ApplicationProtocols) : null,
System\Net\Http\DiagnosticsHandler.cs (1)
38var fieldDescriptors = new List<HeaderDescriptor>(fields.Count);
System\Net\Http\Headers\CacheControlHeaderValue.cs (1)
363List<NameValueHeaderValue> nameValueList = new List<NameValueHeaderValue>();
System\Net\Http\Headers\HttpHeaders.cs (5)
226info.RawValue = rawValues = new List<string>(); 760return new List<object>(sourceValues); 968List<object> parsedValues = new List<object>(); 1049storeValues = new List<T>(2); 1133List<object> parsedValues = new List<object>();
System\Net\Http\MultipartContent.cs (1)
63_nestedContent = new List<HttpContent>();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (4)
32private static readonly List<SslApplicationProtocol> s_http3ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http3 }; 33private static readonly List<SslApplicationProtocol> s_http2ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http2, SslApplicationProtocol.Http11 }; 34private static readonly List<SslApplicationProtocol> s_http2OnlyApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http2 }; 1046toDispose ??= new();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (1)
454toDispose ??= new List<HttpConnectionBase>();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (3)
450_availableHttp2Connections ??= new List<Http2Connection>(); 606(_http2ConnectionsForHeartBeat ??= new List<Http2Connection>()).Add(connection); 670toDispose ??= new List<HttpConnectionBase>();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (2)
429_availableHttp3Connections ??= new List<Http3Connection>(); 578toDispose ??= new List<HttpConnectionBase>();
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
1111List<Http2Stream> streamsToAbort = new List<Http2Stream>(); 1901List<Http2Stream> streamsToAbort = new List<Http2Stream>();
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
422var streamsToGoAway = new List<Http3RequestStream>();
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (2)
119_bypassNetworks ??= new List<IPNetwork>(); 124_bypass ??= new List<string>();
System.Net.HttpListener (17)
System\Net\HttpListenerRequest.cs (1)
368List<string> values = new List<string>();
System\Net\HttpListenerRequestUriBuilder.cs (1)
139_rawOctets = new List<byte>();
System\Net\Managed\ChunkStream.cs (2)
88_chunks = new List<Chunk>(); 111var chunksForRemoving = new List<Chunk>(count);
System\Net\Managed\HttpEndPointListener.cs (9)
312var connections = new List<HttpConnection>(_unregisteredConnections); 329future = current != null ? new List<ListenerPrefix>(current) : new List<ListenerPrefix>(); 341future = current != null ? new List<ListenerPrefix>(current) : new List<ListenerPrefix>(); 370future = current != null ? new List<ListenerPrefix>(current) : new List<ListenerPrefix>(); 384future = current != null ? new List<ListenerPrefix>(current) : new List<ListenerPrefix>();
System\Net\Managed\HttpEndPointManager.cs (1)
48List<string> added = new List<string>();
System\Net\Managed\HttpListener.Managed.cs (2)
16private readonly List<HttpListenerContext> _contextQueue = new List<HttpListenerContext>(); 17private readonly List<ListenerAsyncResult> _asyncWaitQueue = new List<ListenerAsyncResult>();
System\Net\ServiceNameStore.cs (1)
21_serviceNames = new List<string>();
System.Net.Mail (4)
System\Net\Mail\MailAddressParser.cs (1)
39List<MailAddress> results = new List<MailAddress>();
System\Net\Mail\SmtpAuthenticationManager.cs (1)
10private static readonly List<ISmtpAuthenticationModule> s_modules = new List<ISmtpAuthenticationModule>();
System\Net\Mail\SmtpReplyReaderFactory.cs (1)
266var lines = new List<LineInfo>();
System\Net\Mail\SmtpTransport.cs (1)
127(failedRecipientExceptions ??= new()).Add(
System.Net.NameResolution (15)
System\Net\DnsResolver.cs (1)
427List<string> values = new();
System\Net\DnsResolverOptions.cs (1)
13private IList<IPEndPoint> _servers = new List<IPEndPoint>();
System\Net\DnsResolverPal.Managed.cs (10)
135List<AddressRecord> records = new List<AddressRecord>(); 184List<(string Target, ushort Port, ushort Priority, ushort Weight, uint Ttl)> srvs = new(); 217list ??= new List<AddressRecord>(); 222List<SrvRecord> records = new List<SrvRecord>(srvs.Count); 248List<TxtRecord> records = new List<TxtRecord>(); 254List<string> values = new List<string>(); 278List<MxRecord> records = new List<MxRecord>(); 303List<CNameRecord> records = new List<CNameRecord>(); 328List<PtrRecord> records = new List<PtrRecord>(); 353List<NsRecord> records = new List<NsRecord>();
System\Net\ResolvConf.cs (3)
71return new List<IPEndPoint>(); 75return new List<IPEndPoint>(); 84List<IPEndPoint> servers = new List<IPEndPoint>();
System.Net.NetworkInformation (12)
System\Net\NetworkInformation\GatewayIPAddressInformationCollection.cs (1)
14_addresses = new List<GatewayIPAddressInformation>();
System\Net\NetworkInformation\InternalIPAddressCollection.cs (1)
14_addresses = new List<IPAddress>();
System\Net\NetworkInformation\IPAddressInformationCollection.cs (1)
10private readonly List<IPAddressInformation> _addresses = new List<IPAddressInformation>();
System\Net\NetworkInformation\LinuxIPInterfaceProperties.cs (2)
58List<GatewayIPAddressInformation> collection = new List<GatewayIPAddressInformation>(); 75List<IPAddress> internalCollection = new List<IPAddress>();
System\Net\NetworkInformation\MulticastIPAddressInformationCollection.cs (1)
10private readonly List<MulticastIPAddressInformation> _addresses = new List<MulticastIPAddressInformation>();
System\Net\NetworkInformation\StringParsingHelpers.Addresses.cs (1)
126List<IPAddress> collection = new List<IPAddress>();
System\Net\NetworkInformation\StringParsingHelpers.Dns.cs (1)
26List<IPAddress> addresses = new List<IPAddress>();
System\Net\NetworkInformation\UnicastIPAddressInformationCollection.cs (1)
11new List<UnicastIPAddressInformation>();
System\Net\NetworkInformation\UnixIPGlobalProperties.cs (1)
67_exceptions ??= new List<Exception>();
System\Net\NetworkInformation\UnixNetworkInterface.cs (2)
15internal List<UnixUnicastIPAddressInformation> _unicastAddresses = new List<UnixUnicastIPAddressInformation>(); 73_multicastAddresses ??= new List<IPAddress>();
System.Net.Primitives (2)
System\Net\CookieContainer.cs (2)
469var removePathList = new List<object>(); 470var removeDomainList = new List<string>();
System.Net.Quic (1)
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (1)
66ApplicationProtocols = new List<SslApplicationProtocol>(alpnProtocols);
System.Net.Requests (4)
System\Net\FtpControlStream.cs (1)
489var commandList = new List<PipelineEntry>();
System\Net\TimerThread.cs (1)
135var garbage = new List<object>();
System\Net\WebRequest.cs (2)
248List<WebRequestPrefixElement> prefixList = new List<WebRequestPrefixElement>(PrefixList); 357var prefixList = new List<WebRequestPrefixElement>(Count)
System.Net.Security (3)
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (1)
19private readonly List<TlsCipherSuite> _tlsCipherSuites = new List<TlsCipherSuite>();
System\Net\Security\SslStream.Protocol.cs (1)
646private static List<T> EnsureInitialized<T>(ref List<T>? list) => list ??= new List<T>();
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
236(_ocspUrls ??= new List<string>()).Add(entry);
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
169_bufferListInternal = new List<ArraySegment<byte>>(bufferCount);
System.Net.WebHeaderCollection (2)
System\Net\HeaderInfoTable.cs (1)
24var tempStringCollection = new List<string>();
System\Net\WebHeaderCollection.cs (1)
238valueList = new List<string>(values);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\BrowserWebSockets\ClientWebSocketOptions.cs (1)
115internal List<string> RequestedSubProtocols => field ??= new List<string>();
System.ObjectModel (3)
System\Collections\ObjectModel\KeyedCollection.cs (1)
32: base(new List<TItem>()) // Be explicit about the use of List<T> so we can foreach over
System\Collections\ObjectModel\ObservableCollection.cs (2)
47public ObservableCollection(IEnumerable<T> collection) : base(new List<T>(collection ?? throw new ArgumentNullException(nameof(collection)))) 61public ObservableCollection(List<T> list) : base(new List<T>(list ?? throw new ArgumentNullException(nameof(list))))
System.Private.CoreLib (93)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (2)
46List<string> mountPoints = new(); 64context._results = new List<string>();
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (4)
103: this(message, new List<Exception>(innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions))).ToArray(), cloneExceptions: false) 273unhandledExceptions ??= new List<Exception>(); 301List<Exception> flattenedExceptions = new List<Exception>(); 304var exceptionsToFlatten = new List<AggregateException> { this };
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (3)
371List<TOutput> list = new List<TOutput>(_size); 532List<T> list = new List<T>(); 690List<T> list = new List<T>(count);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
20items = new List<T>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
142List<StackFrame> frameList = new List<StackFrame>(frames);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (3)
23_counters = new List<DiagnosticCounter>(); 173s_counterGroupEnabledList = new List<CounterGroup>(); 309var onTimers = new List<CounterGroup>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventListener.cs (2)
336List<EventSource> sourcesToDispose = new List<EventSource>(); 527Interlocked.CompareExchange(ref s_EventSources, new List<WeakReference<EventSource>>(2), null);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
461var ret = new List<EventSource>(); 3944private static List<Func<EventSource?>> s_preregisteredEventSourceFactories = new List<Func<EventSource?>>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (6)
62errors = new List<string>(); 246byteArrArgIndices ??= new List<int>(4); 369var sortedChannels = new List<KeyValuePair<int, ChannelInfo>>(); 407var sortedTasks = new List<int>(taskTab.Keys); 484var sortedOpcodes = new List<int>(opcodeTab.Keys); 499var sortedKeywords = new List<ulong>(keywordTab.Keys);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EnumerableTypeInfo.cs (1)
53List<object?> serializedEnumerable = new List<object?>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (1)
745List<byte> traitMetaData = new List<byte>(100);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTypes.cs (2)
178var recursionCheck = new List<Type>(paramInfos.Length); 193var recursionCheck = new List<Type>(types.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingMetadataCollector.cs (1)
285internal readonly List<FieldMetadata> fields = new List<FieldMetadata>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
147recursionCheck ??= new List<Type>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs (1)
28var propertyList = new List<PropertyAnalysis>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (3)
146callbackContext.Results = new List<string>(); 373callbackContext.Results = new List<string>(); 420callbackContext.Results = new List<string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
566List<CultureInfo> list = new List<CultureInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (3)
408data.strings = new List<string>(); 493context.strings = new List<string>(); 521context.strings = new List<string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
1804List<string> results = new List<string>(DEFAULT_ALL_DATETIMES_SIZE);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
1291List<string> results = new List<string>(DEFAULT_ALL_DATETIMES_SIZE);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Icu.cs (1)
50List<EraInfo> eras = new List<EraInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (3)
174=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Files, enumerationOptions)).ToArray(); 184=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Directories, enumerationOptions)).ToArray(); 194=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Both, enumerationOptions)).ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (3)
121=> new List<FileInfo>((IEnumerable<FileInfo>)InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Files, enumerationOptions)).ToArray(); 136=> new List<FileSystemInfo>(InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Both, enumerationOptions)).ToArray(); 149=> new List<DirectoryInfo>((IEnumerable<DirectoryInfo>)InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Directories, enumerationOptions)).ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
899List<string> lines = new List<string>(); 1342List<string> lines = new List<string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
20private static readonly List<string> s_loadFromAssemblyList = new List<string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
20private readonly List<int> _stack = new List<int>(); 274var nestings = new List<Type>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.cs (1)
1569private static List<AsyncThreadContextHolder> s_cache = new List<AsyncThreadContextHolder>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (1)
41s_registrations[signo] = tokens = new List<Token>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\BitmapCharSearchValues.cs (1)
29var chars = new List<char>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SR.cs (1)
75_currentlyLoading ??= new List<string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
42List<string> startupHookParts = new();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
77var segments = new List<(string? Literal, int ArgIndex, int Alignment, string? Format)>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
811(exceptionList ??= new List<Exception>()).Add(ex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
237cs.m_exceptions ??= new List<Exception>(faultedException.InnerExceptionCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (12)
2319Interlocked.CompareExchange(ref props.m_exceptionalChildren, new List<Task>(), null); 4739list = new List<object?>(); 4833continuationsLocalRef = Interlocked.CompareExchange(ref m_continuationObject, new List<object?>(), continuationObject); 5108CollectionsMarshal.AsSpan(new List<Task>(tasks)); 5238list ??= new List<T>(initSize); 5327exceptions ??= new List<Exception>(ex.InnerExceptionCount); 6300failedOrCanceled = Interlocked.CompareExchange(ref m_stateObject, new List<Task> { first, completedTask }, first); 6342(observedExceptions ??= new()).AddRange(task.GetExceptionDispatchInfos()); 6455List<Task<TResult>> taskList = new List<Task<TResult>>(); 6619observedExceptions ??= new List<ExceptionDispatchInfo>(); 6942var taskList = new List<TTask>(); 7277List<Delegate> result = new List<Delegate>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (1)
162var defensiveCopy = new List<Exception>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (1)
162var defensiveCopy = new List<Exception>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskExceptionHolder.cs (1)
148List<ExceptionDispatchInfo>? exceptions = m_faultExceptions ??= new List<ExceptionDispatchInfo>(1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (2)
461activeTasksArray = (new List<Task>(activeTasksSource)).ToArray(); 490List<TaskScheduler> schedulers = new List<TaskScheduler>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadInt64PersistentCounter.cs (1)
32List<ThreadLocalNodeFinalizationHelper>? nodeFinalizationHelpers = t_nodeFinalizationHelpers ??= new List<ThreadLocalNodeFinalizationHelper>(1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (2)
447var valueList = new List<T>(); 618private readonly List<int> _freeIds = new List<int>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (1)
106public TimerQueueTimer[] Items => new List<TimerQueueTimer>(_queue.GetTimersForDebugger()).ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Portable.cs (2)
33var timers = new List<TimerQueue>(Instances.Length); 34s_scheduledTimersToFire ??= new List<TimerQueue>(Instances.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
1174value._equivalentZones = new List<TimeZoneInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
723List<AdjustmentRule> rules = new List<AdjustmentRule>(1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
155List<AdjustmentRule> rulesList = new List<AdjustmentRule>(_adjustmentRules.Length); 508List<AdjustmentRule> rulesList = new List<AdjustmentRule>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
184List<string> timeZoneIds = new List<string>();
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (1)
123genericArgs = new List<TypeName>(2);
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
259(nestedNameLengths ??= new()).Add(length);
System\Reflection\Runtime\Assemblies\RuntimeAssemblyInfo.cs (2)
95List<Type> types = new List<Type>(); 120exceptions ??= new List<Exception>();
System.Private.CoreLib.Generators (2)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
620List<int> includedClauses = new List<int>();
NativeRuntimeEventSourceGenerator.cs (1)
322var paramList = new List<string>();
System.Private.DataContractSerialization (38)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
167var typeArgumentList = new List<CodeTypeReference>();
System\Runtime\Serialization\ClassDataContract.cs (5)
627_members = new List<DataMember>(); 805List<DataMember> tempMembers = new List<DataMember>(); 981List<Member> membersInHierarchy = new List<Member>(); 1375boundClassContract.Members = new List<DataMember>(Members.Count); 1424List<DataMember> dataContractMembersList = new List<DataMember>();
System\Runtime\Serialization\CodeGenerator.cs (1)
145_argList = new List<ArgBuilder>();
System\Runtime\Serialization\DataContract.cs (4)
1159List<Type> itemTypeClosure = new List<Type>(); 1561List<int> nestedParamCounts = new List<int>(); 2396_nestedParamCounts = new List<int>(); 2415_paramGenericInfos ??= new List<GenericInfo>();
System\Runtime\Serialization\DataContractSerializer.cs (1)
130_knownTypeList = new List<Type>();
System\Runtime\Serialization\DataContractSet.cs (3)
29_referencedTypes = referencedTypes != null ? new List<Type>(referencedTypes) : null; 30_referencedCollectionTypes = referencedCollectionTypes != null ? new List<Type>(referencedCollectionTypes) : null; 394List<Type> types = new List<Type>();
System\Runtime\Serialization\EnumDataContract.cs (2)
220List<DataMember> tempMembers = new List<DataMember>(fields.Length); 221List<long> tempValues = new List<long>(fields.Length);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
600this.knownTypeList = new List<Type>();
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (2)
64List<Type> knownTypesList = new List<Type>(); 67List<XmlQualifiedName> xmlNames = new List<XmlQualifiedName>();
System\Runtime\Serialization\SchemaImporter.cs (8)
103var elementNameList = new List<XmlQualifiedName>(); 244List<XmlSchemaType> knownTypesForObject = new List<XmlSchemaType>(); 275baseTypeInfo._knownTypes ??= new List<XmlSchemaType>(); 279baseTypeInfo = new SchemaObjectInfo(null, null, null, new List<XmlSchemaType>()); 329List<XmlSchemaRedefine> list = new List<XmlSchemaRedefine>(); 679dataContract.Members = new List<DataMember>(); 1201dataContract.Values = new List<long>(); 1202dataContract.Members = new List<DataMember>();
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (8)
280extensionData.Members ??= new List<ExtensionDataMember>(); 797dataNode.Members ??= new List<ExtensionDataMember>(); 827dataNode.Items ??= new List<IDataNode?>(); 887dataNode.Members ??= new List<ISerializableDataMember>(); 916xmlAttributes ??= new List<XmlAttribute>(); 928xmlChildNodes ??= new List<XmlNode>(); 951var xmlChildNodes = new List<XmlNode>(); 955xmlAttributes = new List<XmlAttribute>();
System\Runtime\Serialization\XmlSerializableServices.cs (1)
17List<XmlNode> nodeList = new List<XmlNode>();
System\Xml\XmlBufferReader.cs (1)
1235List<int> list = new List<int>();
System.Private.Reflection.Execution (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SR.cs (1)
75_currentlyLoading ??= new List<string>();
System.Private.TypeLoader (3)
Internal\Reflection\Execution\AssemblyBinderImplementation.cs (1)
83List<AssemblyBindResult> loadedAssemblies = new List<AssemblyBindResult>(ScopeGroups.Length);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
210List<EmbeddedSignatureData> ret = new();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SR.cs (1)
75_currentlyLoading ??= new List<string>();
System.Private.Windows.Core (3)
System\Collections\Generic\CollectionExtensions.cs (1)
24return new List<T>(new ArraySegment<T>(array, 0, count));
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
269new List<object?>
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
318List<string> files = new((int)count);
System.Private.Xml (170)
System\Xml\Core\XmlEventCache.cs (1)
537_pages = new List<XmlEvent[]>();
System\Xml\Core\XmlWriterSettings.cs (3)
243clonedSettings.CDataSectionElements = new List<XmlQualifiedName>(CDataSectionElements); 250internal List<XmlQualifiedName> CDataSectionElements { get; private set; } = new(); 677CDataSectionElements = new List<XmlQualifiedName>(length);
System\Xml\Dom\DocumentXmlWriter.cs (1)
75_fragment = new List<XmlNode>();
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1802List<XmlElement> elements = new List<XmlElement>();
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (4)
63List<object> temp = new List<object>(); 80list = new List<object>(); 122list = new List<object>(); 129list = new List<object>();
System\Xml\Dom\XPathNodeList.cs (1)
20_list = new List<XmlNode?>();
System\Xml\Schema\ContentValidator.cs (2)
1442List<int[]> transitionTable = new(); 1857runningPositions = new List<RangePositionInfo>();
System\Xml\Schema\Preprocessor.cs (1)
727List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
System\Xml\Schema\SchemaCollectionCompiler.cs (1)
633var memberTypeDefinitions = new List<XmlSchemaSimpleType>();
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
531List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
System\Xml\Schema\SchemaDeclBase.cs (1)
100values ??= new List<string>();
System\Xml\Schema\SchemaElementDecl.cs (1)
197_defaultAttdefs ??= new List<IDtdDefaultAttributeInfo>();
System\Xml\Schema\SchemaSetCompiler.cs (1)
723var memberTypeDefinitions = new List<XmlSchemaSimpleType>();
System\Xml\Schema\XdrBuilder.cs (2)
782builder._ElementDef._ElementDecl!.Values = new List<string>((string[])obj); 1080builder._AttributeDef._AttDef!.Values = new List<string>((string[])obj);
System\Xml\Schema\XmlSchemaObjectTable.cs (1)
13private readonly List<XmlSchemaObjectEntry> _entries = new List<XmlSchemaObjectEntry>();
System\Xml\Schema\XmlSchemaSet.cs (2)
991newMembers ??= new List<XmlSchemaElement>(); 1299List<XmlSchema> reprocessList = new List<XmlSchema>();
System\Xml\Schema\XmlValueConverter.cs (3)
3053List<T> listDst = new List<T>(); 3081List<object> listDst = new List<object>(); 3093return new List<string>(XmlConvert.SplitString(value));
System\Xml\Schema\XsdBuilder.cs (2)
674private readonly List<XmlAttribute> _unhandledAttributes = new List<XmlAttribute>(); 753_namespaces ??= new List<XmlQualifiedName>();
System\Xml\Serialization\Models.cs (1)
430var list = new List<ConstantModel>();
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (7)
146var membersList = new List<Member>(); 147var textOrArrayMembersList = new List<Member>(); 148var attributeMembersList = new List<Member>(); 390checkTypeHrefSource = new List<CheckTypeSource>(); 1592var listOfItems = new List<object?>(); 1697var allMembersList = new List<Member>(mappings.Length); 2014var attributes = new List<AttributeAccessor>();
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
360var namedAnys = new List<ElementAccessor>();
System\Xml\Serialization\SoapReflectionImporter.cs (2)
386var members = new List<MemberMapping>(); 575var constants = new List<ConstantMapping>();
System\Xml\Serialization\Types.cs (3)
658secondaryList = new List<TypeDesc>(); 1092var list = new List<MemberMapping>(); 1122var list = new List<MemberMapping>();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
846var members = new List<MemberMapping>(); 1220var constants = new List<ConstantMapping>();
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1303if (IsCyclicReferencedType(itemElement, new List<string>(1) { identifier }))
System\Xml\Serialization\XmlSerializationReader.cs (7)
1925var xmlNodeList = new List<XmlNode>(); 2566var membersList = new List<Member>(); 2567var textOrArrayMembersList = new List<Member>(); 2568var attributeMembersList = new List<Member>(); 3373var arraysToDeclareList = new List<Member>(mappings.Length); 3374var arraysToSetList = new List<Member>(mappings.Length); 3375var allMembersList = new List<Member>(mappings.Length);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (17)
385List<Type> argTypes = new List<Type>(); 505var membersList = new List<Member>(); 506var textOrArrayMembersList = new List<Member>(); 507var attributeMembersList = new List<Member>(); 1100List<Type> argTypes = new List<Type>(); 1101List<string> argNames = new List<string>(); 1143List<Label> caseLabels = new List<Label>(); 1144List<object> retValues = new List<object>(); 1221List<Type> argTypes = new List<Type>(); 1406List<Type> argTypes = new List<Type>(); 1407List<string> argNames = new List<string>(); 1609var arraysToDeclareList = new List<Member>(mappings.Length); 1610var arraysToSetList = new List<Member>(mappings.Length); 1611var allMembersList = new List<Member>(mappings.Length); 1881var attributes = new List<AttributeAccessor>(); 2068List<Type> argTypes = new List<Type>(); 3363List<Type> argTypes = new List<Type>();
System\Xml\Serialization\XmlSerializationWriterILGen.cs (12)
101List<Type> argTypes = new List<Type>(); 230List<Type> argTypes = new List<Type>(); 600List<Type> argTypes = new List<Type>(); 601List<string> argNames = new List<string>(); 619List<Label> caseLabels = new List<Label>(); 620List<string> retValues = new List<string>(); 751List<Type> argTypes = new List<Type>(); 915List<Type> argTypes = new List<Type>(5); 916List<string> argNames = new List<string>(5); 1315List<Type> argTypes = new List<Type>(); 1628var namedAnys = new List<ElementAccessor>(); 2039List<Type> argTypes = new List<Type>();
System\Xml\XPath\Internal\CacheAxisQuery.cs (2)
17this.outputBuffer = new List<XPathNavigator>(); 22this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
System\Xml\XPath\Internal\CacheOutputQuery.cs (2)
21this.outputBuffer = new List<XPathNavigator>(); 27this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
System\Xml\XPath\Internal\FollSiblingQuery.cs (2)
19_parentStk = new List<XPathNavigator>(); 24_parentStk = new List<XPathNavigator>(other._parentStk);
System\Xml\XPath\Internal\Function.cs (3)
53_argumentList = new List<AstNode>(argumentList); 61_argumentList = new List<AstNode>(argumentList); 67_argumentList = new List<AstNode>();
System\Xml\XPath\Internal\PreSiblingQuery.cs (1)
48List<XPathNavigator> parentStk = new List<XPathNavigator>();
System\Xml\XPath\Internal\QueryBuilder.cs (1)
443List<Query> argList = new List<Query>(numArgs);
System\Xml\XPath\Internal\SortQuery.cs (2)
23_results = new List<SortKey>(); 30_results = new List<SortKey>(other._results);
System\Xml\XPath\Internal\XPathParser.cs (2)
504List<AstNode> argList = new List<AstNode>(); 656List<AstNode> argList = new List<AstNode>();
System\Xml\Xsl\IlGen\StaticDataManager.cs (3)
21private readonly List<T> _list = new List<T>(); 126_prefixMappingsList ??= new List<StringPair[]>(); 147_globalNames ??= new List<string>();
System\Xml\Xsl\QIL\QilExpression.cs (2)
42_wsRules = factory.LiteralObject(new List<WhitespaceRule>()); 45_earlBnd = factory.LiteralObject(new List<EarlyBoundInfo>());
System\Xml\Xsl\QIL\QilXmlWriter.cs (2)
317private readonly List<QilNode> _fwdrefs = new List<QilNode>(); 318private readonly List<QilNode> _backrefs = new List<QilNode>();
System\Xml\Xsl\Runtime\DocumentOrderComparer.cs (2)
38_roots ??= new List<XPathNavigator>(); 56_roots ??= new List<XPathNavigator>();
System\Xml\Xsl\Runtime\DodSequenceMerge.cs (1)
52_sequencesToMerge = new List<IEnumerator<XPathNavigator>>();
System\Xml\Xsl\Runtime\StringConcat.cs (1)
94List<string?> strList = _strList = new List<string?>(capacity);
System\Xml\Xsl\Runtime\XslNumber.cs (1)
141_tokens = new List<TokenInfo?>();
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
188_decimalFormatters ??= new List<DecimalFormatter>();
System\Xml\Xsl\XmlQueryTypeFactory.cs (6)
81return SequenceType.Create(ChoiceType.Create(PrimeChoice(new List<XmlQueryType>(left), right)), left.Cardinality | right.Cardinality); 97List<XmlQueryType> list = new List<XmlQueryType>(types[0]); 127return SequenceType.Create(ChoiceType.Create(PrimeChoice(new List<XmlQueryType>(left), right)), left.Cardinality + right.Cardinality); 690public static readonly XmlQueryType None = new ChoiceType(new List<XmlQueryType>()); 711members = new List<XmlQueryType>(); 826List<XmlQueryType> members = new List<XmlQueryType>(length);
System\Xml\Xsl\XPath\XPathParser.cs (1)
551List<Node> argList = new List<Node>();
System\Xml\Xsl\Xslt\Compiler.cs (4)
48public List<VarPar> ExternalPars = new List<VarPar>(); 49public List<VarPar> GlobalVars = new List<VarPar>(); 50public List<WhitespaceRule> WhitespaceRules = new List<WhitespaceRule>(); 53public List<ProtoTemplate> AllTemplates = new List<ProtoTemplate>();
System\Xml\Xsl\Xslt\MatcherBuilder.cs (8)
262public List<QilName> FixedNamePatternsNames = new List<QilName>(); // Needed only to guarantee a stable order 263public List<Pattern> NonFixedNamePatterns = new List<Pattern>(); 286list = FixedNamePatterns[qname] = new List<Pattern>(); 312private readonly List<Pattern> _textPatterns = new List<Pattern>(); 313private readonly List<Pattern> _documentPatterns = new List<Pattern>(); 314private readonly List<Pattern> _commentPatterns = new List<Pattern>(); 316private readonly List<Pattern> _heterogenousPatterns = new List<Pattern>(); 318private readonly List<List<TemplateMatch>> _allMatches = new List<List<TemplateMatch>>();
System\Xml\Xsl\Xslt\QilGenerator.cs (4)
201List<EarlyBoundInfo> ebTypes = new List<EarlyBoundInfo>(scriptClasses.Count); 578paramWithCalls = new List<VarPar>(); 2556args = new List<XslNode>(3); 2645functionsForMode = sheet.ApplyFunctions[mode] = new List<QilFunction>();
System\Xml\Xsl\Xslt\Stylesheet.cs (7)
29public List<Uri> ImportHrefs = new List<Uri>(); 30public List<XslNode>? GlobalVarPars = new List<XslNode>(); 45public List<Template> Templates = new List<Template>(); // Templates defined on this level. Empty for RootLevel. 54matchesForMode = TemplateMatches[template.Mode] = new List<TemplateMatch>(); 72WhitespaceRules![0] = new List<WhitespaceRule>(); 73WhitespaceRules![1] = new List<WhitespaceRule>(); 74WhitespaceRules![2] = new List<WhitespaceRule>();
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
237List<QilNode> convertedPredicates = new List<QilNode>(predicates.Count);
System\Xml\Xsl\Xslt\XPathPatternParser.cs (2)
127List<QilNode> args = new List<QilNode>(2); 235List<QilNode> predicates = new List<QilNode>();
System\Xml\Xsl\Xslt\XslAst.cs (3)
105private static readonly IList<XslNode> s_emptyList = new List<XslNode>().AsReadOnly(); 120_content ??= new List<XslNode>(); 128_content = new List<XslNode>(collection);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (5)
26private readonly List<VarPar> _allVarPars = new List<VarPar>(); 57private static readonly IList<V> s_empty = (new List<V>()).AsReadOnly(); 80adjList = this[v1] = new List<V>(); 757templates = new List<ProtoTemplate>(); 1430newtemplate.SetContent(new List<XslNode>(content.Count - split + 8));
System\Xml\Xsl\Xslt\XsltLoader.cs (15)
336List<XslNode> content = new List<XslNode>(); 619List<XmlQualifiedName> list = new List<XmlQualifiedName>(); 902List<Key> defList = new List<Key>(); 1083List<XslNode> content = new List<XslNode>(); 1347return LoadInstructions(new List<XslNode>(), InstructionFlags.None); 1352return LoadInstructions(new List<XslNode>(), flags); 1471List<XslNode> content = new List<XslNode>(); 1606List<XslNode> content = new List<XslNode>(); 1662List<XslNode> content = new List<XslNode>(); 2020List<XslNode> content = new List<XslNode>(); 2072List<XslNode> content = new List<XslNode>(); 2495List<XslNode> content = new List<XslNode>(); 2577List<XslNode> fallbacksArray = new List<XslNode>(); 2666List<QilName> modes = new List<QilName>(list.Length); 2909List<QilName> useCharacterMaps = new List<QilName>();
System\Xml\Xsl\XsltOld\ActionFrame.cs (1)
153List<SortKey> results = new List<SortKey>();
System\Xml\Xsl\XsltOld\Compiler.cs (1)
179_queryStore = new List<TheQuery>();
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
690List<FormatInfo?> tokens = new List<FormatInfo?>();
System\Xml\Xsl\XsltOld\RootAction.cs (1)
99_keyList ??= new List<Key>();
System.Private.Xml.Linq (4)
System\Xml\Linq\XContainer.cs (1)
1462List<object?> list = new List<object?>();
System\Xml\Linq\XLinq.cs (1)
537_attributes = new List<XAttribute>();
System\Xml\Linq\XNodeBuilder.cs (1)
210_content ??= new List<object>();
System\Xml\Linq\XStreamingElement.cs (1)
80list = new List<object>();
System.Reflection.Context (8)
System\Reflection\Context\CollectionServices.cs (1)
54List<object> list = new List<object>(enumerable);
System\Reflection\Context\Custom\AttributeUtils.cs (2)
33List<object> results = new List<object>(attributes); 73List<object> results = new List<object>(attributes);
System\Reflection\Context\Custom\CustomType.cs (4)
58List<PropertyInfo> results = new List<PropertyInfo>(properties); 102List<PropertyInfo> matchingProperties = new List<PropertyInfo>(); 153List<MethodInfo> results = new List<MethodInfo>(methods); 218List<MethodInfo> matchingMethods = new List<MethodInfo>();
System\Reflection\Context\Projection\ProjectingType.cs (1)
113List<MemberInfo> matchingMembers = new List<MemberInfo>();
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
281_fields = new List<FieldBuilder>(); 284_methodInfos = new List<MethodInfo>();
System.Reflection.Emit (43)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
20private readonly List<int> _stack = new List<int>(); 274var nestings = new List<Type>();
System\Reflection\Emit\EventBuilderImpl.cs (1)
62_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\FieldBuilderImpl.cs (1)
76_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (3)
46_interfaces ??= new List<Type>(); 53_customAttributes ??= new List<CustomAttributeWrapper>(); 64_interfaces ??= new List<Type>(interfaceConstraints.Length);
System\Reflection\Emit\ILGeneratorImpl.cs (8)
32private List<KeyValuePair<object, BlobWriter>> _memberReferences = new(); 33private List<ExceptionBlock> _exceptionStack = new(); // tracks the exception nesting 34private List<ExceptionHandlerInfo> _exceptionBlocks = new(); // keeps all ExceptionHandler blocks 237_currentScope._children ??= new List<Scope>(); 247_currentScope._locals ??= new List<LocalBuilder>(); 855sequencePoints = new List<SequencePoint> { new SequencePoint(_il.Offset, startLine, startColumn, endLine, endColumn) }; 869_currentScope._importNamespaces ??= new List<string>(); 951List<LocalBuilder> locals = new List<LocalBuilder>();
System\Reflection\Emit\MethodBuilderImpl.cs (1)
202_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\ModuleBuilderImpl.cs (4)
25private readonly List<TypeBuilderImpl> _typeDefinitions = new(); 138List<GenericTypeParameterBuilderImpl> genericParams = new(); 1342_customAttributes ??= new List<CustomAttributeWrapper>(); 1405List<TypeBuilderImpl> nestedTypes = new List<TypeBuilderImpl>();
System\Reflection\Emit\ParameterBuilderImpl.cs (1)
63_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\PersistedAssemblyBuilder.cs (1)
196_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\PropertyBuilderImpl.cs (1)
73_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\TypeBuilderImpl.cs (20)
34internal readonly List<MethodBuilderImpl> _methodDefinitions = new(); 35internal readonly List<FieldBuilderImpl> _fieldDefinitions = new(); 36internal readonly List<ConstructorBuilderImpl> _constructorDefinitions = new(); 38internal readonly List<PropertyBuilderImpl> _propertyDefinitions = new(); 39internal readonly List<EventBuilderImpl> _eventDefinitions = new(); 74_interfaces = new List<Type>(interfaces.Length); 93_interfaces ??= new List<Type>(); 324im = new List<(MethodInfo ifaceMethod, MethodInfo targetMethod)>(); 487_customAttributes ??= new List<CustomAttributeWrapper>(); 735List<ConstructorInfo> constructors = new List<ConstructorInfo>(); 753List<ConstructorInfo> ctors = new(); 778List<MethodInfo> methods = new List<MethodInfo>(); 795List<MethodInfo> methods = new List<MethodInfo>(); 895List<FieldInfo> fields = new List<FieldInfo>(); 913List<FieldInfo> fields = new List<FieldInfo>(_fieldDefinitions.Count); 1004List<PropertyInfo> properties = new List<PropertyInfo>(); 1021List<PropertyInfo> candidates = new List<PropertyInfo>(_propertyDefinitions.Count); 1081List<PropertyInfo> candidates = new List<PropertyInfo>(properties.Length); 1109List<Type> nestedTypes = new List<Type>(); 1127List<Type> nestedTypes = new List<Type>();
System.Reflection.Metadata (50)
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (3)
95_branches = new List<BranchInfo>(); 96_labels = new List<int>(); 247_lazyExceptionHandlers ??= new List<ExceptionHandlerInfo>();
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
539var sorted = new List<KeyValuePair<string, StringHandle>>(strings);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (42)
67private readonly List<ClassLayoutRow> _classLayoutTable = new List<ClassLayoutRow>(); 69private readonly List<ConstantRow> _constantTable = new List<ConstantRow>(); 73private readonly List<CustomAttributeRow> _customAttributeTable = new List<CustomAttributeRow>(); 77private readonly List<DeclSecurityRow> _declSecurityTable = new List<DeclSecurityRow>(); 81private readonly List<EncLogRow> _encLogTable = new List<EncLogRow>(); 82private readonly List<EncMapRow> _encMapTable = new List<EncMapRow>(); 83private readonly List<EventRow> _eventTable = new List<EventRow>(); 84private readonly List<EventMapRow> _eventMapTable = new List<EventMapRow>(); 85private readonly List<ExportedTypeRow> _exportedTypeTable = new List<ExportedTypeRow>(); 86private readonly List<FieldLayoutRow> _fieldLayoutTable = new List<FieldLayoutRow>(); 88private readonly List<FieldMarshalRow> _fieldMarshalTable = new List<FieldMarshalRow>(); 92private readonly List<FieldRvaRow> _fieldRvaTable = new List<FieldRvaRow>(); 93private readonly List<FieldDefRow> _fieldTable = new List<FieldDefRow>(); 94private readonly List<FileTableRow> _fileTable = new List<FileTableRow>(); 95private readonly List<GenericParamConstraintRow> _genericParamConstraintTable = new List<GenericParamConstraintRow>(); 96private readonly List<GenericParamRow> _genericParamTable = new List<GenericParamRow>(); 97private readonly List<ImplMapRow> _implMapTable = new List<ImplMapRow>(); 98private readonly List<InterfaceImplRow> _interfaceImplTable = new List<InterfaceImplRow>(); 99private readonly List<ManifestResourceRow> _manifestResourceTable = new List<ManifestResourceRow>(); 100private readonly List<MemberRefRow> _memberRefTable = new List<MemberRefRow>(); 101private readonly List<MethodImplRow> _methodImplTable = new List<MethodImplRow>(); 103private readonly List<MethodSemanticsRow> _methodSemanticsTable = new List<MethodSemanticsRow>(); 107private readonly List<MethodSpecRow> _methodSpecTable = new List<MethodSpecRow>(); 108private readonly List<MethodRow> _methodDefTable = new List<MethodRow>(); 109private readonly List<ModuleRefRow> _moduleRefTable = new List<ModuleRefRow>(); 110private readonly List<NestedClassRow> _nestedClassTable = new List<NestedClassRow>(); 111private readonly List<ParamRow> _paramTable = new List<ParamRow>(); 112private readonly List<PropertyMapRow> _propertyMapTable = new List<PropertyMapRow>(); 113private readonly List<PropertyRow> _propertyTable = new List<PropertyRow>(); 114private readonly List<TypeDefRow> _typeDefTable = new List<TypeDefRow>(); 115private readonly List<TypeRefRow> _typeRefTable = new List<TypeRefRow>(); 116private readonly List<TypeSpecRow> _typeSpecTable = new List<TypeSpecRow>(); 117private readonly List<AssemblyRefTableRow> _assemblyRefTable = new List<AssemblyRefTableRow>(); 118private readonly List<StandaloneSigRow> _standAloneSigTable = new List<StandaloneSigRow>(); 121private readonly List<DocumentRow> _documentTable = new List<DocumentRow>(); 122private readonly List<MethodDebugInformationRow> _methodDebugInformationTable = new List<MethodDebugInformationRow>(); 123private readonly List<LocalScopeRow> _localScopeTable = new List<LocalScopeRow>(); 124private readonly List<LocalVariableRow> _localVariableTable = new List<LocalVariableRow>(); 125private readonly List<LocalConstantRow> _localConstantTable = new List<LocalConstantRow>(); 126private readonly List<ImportScopeRow> _importScopeTable = new List<ImportScopeRow>(); 127private readonly List<StateMachineMethodRow> _stateMachineMethodTable = new List<StateMachineMethodRow>(); 128private readonly List<CustomDebugInformationRow> _customDebugInformationTable = new List<CustomDebugInformationRow>();
System\Reflection\Metadata\Internal\NamespaceCache.cs (2)
181remaps ??= new List<KeyValuePair<NamespaceDefinitionHandle, NamespaceDataBuilder>>(); 284virtualNamespaces = new List<NamespaceDataBuilder>();
System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
259(nestedNameLengths ??= new()).Add(length);
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (1)
25_entries = new List<Entry>(3);
System.Reflection.MetadataLoadContext (12)
System\Reflection\PathAssemblyResolver.cs (1)
48_fileToPaths.Add(file, paths = new List<string>());
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
82List<Type> list = new List<Type>(ExportedTypes);
System\Reflection\TypeLoading\Assemblies\RoAssembly.GetForwardedTypes.cs (2)
16List<Type> types = new List<Type>(); 47exceptions ??= new List<Exception>();
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (2)
47List<Module> modules = new List<Module>(_loadedModules.Length + 1) 89List<RoModule> modules = new List<RoModule>(_loadedModules.Length + 1);
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (1)
113List<CustomAttributeNamedArgument> cans = new List<CustomAttributeNamedArgument>();
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (1)
68List<MethodInfo> results = new List<MethodInfo>(capacity: count);
System\Reflection\TypeLoading\General\Helpers.cs (1)
56List<T> list = new List<T>(enumeration);
System\Reflection\TypeLoading\Types\RoModifiedFunctionPointerType.cs (1)
53List<Type> builder = new(returnTypeOptionalModifiers.Length + 1);
System\Reflection\TypeLoading\Types\RoModifiedType.cs (2)
61_requiredModifiersBuilder ??= new List<Type>(); 68_optionalModifiersBuilder ??= new List<Type>();
System.Resources.Extensions (1)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
249List<string> typeNames = new List<string>();
System.Resources.Writer (1)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
249List<string> typeNames = new List<string>();
System.Runtime.Caching (3)
System\Runtime\Caching\HostFileChangeMonitor.cs (1)
177List<string> newList = new List<string>(filePaths.Count);
System\Runtime\Caching\MemoryCache.cs (1)
418List<string> keysClone = new List<string>(keys);
System\Runtime\Caching\MemoryCacheEntryChangeMonitor.cs (1)
35_dependencies = new List<MemoryCacheEntry>(_keys.Count);
System.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (2)
25private readonly List<nint> JSVHandleFreeList = new(); 545List<WeakReference<JSObject>> copy = new(ThreadCsOwnedObjects.Values);
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\FormatterServices.cs (1)
52var allMembers = new List<FieldInfo>();
System\Runtime\Serialization\SerializationEventsCache.cs (1)
45mi ??= new List<MethodInfo>();
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
920List<CodeTypeReference> knownTypeReferences = new List<CodeTypeReference>();
System\Runtime\Serialization\Schema\ImportOptions.cs (2)
61public ICollection<Type> ReferencedCollectionTypes => field ??= new List<Type>(); 66public ICollection<Type> ReferencedTypes => field ??= new List<Type>();
System.Security.AccessControl (2)
System\Security\AccessControl\ACL.cs (2)
221_aces = new List<GenericAce>(count); 286_aces = new List<GenericAce>(capacity);
System.Security.Claims (4)
System\Security\Claims\ClaimsIdentity.cs (2)
38private readonly List<Claim> _instanceClaims = new List<Claim>(); 407internal List<List<Claim>> ExternalClaims => _externalClaims ??= new List<List<Claim>>();
System\Security\Claims\ClaimsPrincipal.cs (1)
27private readonly List<ClaimsIdentity> _identities = new List<ClaimsIdentity>();
System\Security\Claims\GenericPrincipal.cs (1)
49List<Claim> roleClaims = new List<Claim>(roles.Length);
System.Security.Cryptography (34)
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
39List<AttributeAsn> signedAttrs = new List<AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
105var tmpList = new List<ReadOnlyMemory<byte>>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (1)
124var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (1)
104var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (4)
142var tmpList = new List<System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn>(); 162var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 183var tmpList = new List<ReadOnlyMemory<byte>>(); 202var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.SignerInfoAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
155var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
119var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
23_list = new List<CryptographicAttributeObject>(); 28_list = new List<CryptographicAttributeObject>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (3)
60_contents ??= new List<ContentInfoAsn>(); 104_contents ??= new List<ContentInfoAsn>(); 121_contents ??= new List<ContentInfoAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
107List<ContentInfoAsn> authSafeData = new List<ContentInfoAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
81_bags ??= new List<Pkcs12SafeBag>(); 337List<SafeBagAsn> serializedBags = new List<SafeBagAsn>(); 353return new List<Pkcs12SafeBag>(0); 361List<Pkcs12SafeBag> bags = new List<Pkcs12SafeBag>(serializedBags.Count);
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
15_list = new List<AsnEncodedData>();
System\Security\Cryptography\CryptoConfig.cs (1)
449List<MethodBase> candidates = new List<MethodBase>();
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (1)
119var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (1)
269var tmpList = new List<System.Security.Cryptography.Asn1.X509ExtensionAsn>();
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
1061List<X509ExtensionAsn> extensionAsns = new List<X509ExtensionAsn>(CertificateExtensions.Count);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
26_revoked = new List<RevokedCertificate>();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
88List<RevokedCertificate> list = new();
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
18private readonly List<byte[]> _encodedNames = new List<byte[]>();
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (2)
150(parsedAttributes ??= new List<X500RelativeDistinguishedName>()).Add(rdn); 158return parsedAttributes ?? new List<X500RelativeDistinguishedName>();
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (1)
34private readonly List<byte[]> _encodedComponents = new List<byte[]>();
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
107private readonly List<X509Extension> _list = new List<X509Extension>();
System\Security\Cryptography\X509Certificates\X509SubjectAlternativeNameExtension.cs (2)
24_decoded = new List<GeneralNameAsn>(0); 114List<GeneralNameAsn> decoded = new List<GeneralNameAsn>();
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseMessage.cs (1)
359List<CoseSignature> signatures = new List<CoseSignature>(signaturesLength.GetValueOrDefault());
System.Security.Cryptography.Pkcs (42)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
55var recipientInfos = new List<RecipientInfo>();
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.DecodeRecipients.cs (1)
24List<RecipientInfo> recipientInfos = new List<RecipientInfo>(numRecipients);
Internal\Cryptography\Pal\Windows\HeapBlockRetainer.cs (2)
22_mustLive = new List<object>(); 23_blocks = new List<SafeHeapAllocHandle>();
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
39List<AttributeAsn> signedAttrs = new List<AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
105var tmpList = new List<ReadOnlyMemory<byte>>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (1)
124var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (1)
104var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (4)
142var tmpList = new List<System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn>(); 162var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 183var tmpList = new List<ReadOnlyMemory<byte>>(); 202var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.SignerInfoAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
155var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
119var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
23_list = new List<CryptographicAttributeObject>(); 28_list = new List<CryptographicAttributeObject>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (3)
60_contents ??= new List<ContentInfoAsn>(); 104_contents ??= new List<ContentInfoAsn>(); 121_contents ??= new List<ContentInfoAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
107List<ContentInfoAsn> authSafeData = new List<ContentInfoAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
81_bags ??= new List<Pkcs12SafeBag>(); 337List<SafeBagAsn> serializedBags = new List<SafeBagAsn>(); 353return new List<Pkcs12SafeBag>(0); 361List<Pkcs12SafeBag> bags = new List<Pkcs12SafeBag>(serializedBags.Count);
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (1)
90var tmpList = new List<System.Security.Cryptography.Asn1.GeneralNameAsn>();
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (2)
125var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.RecipientInfoAsn>(); 145var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (1)
135var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.RecipientEncryptedKeyAsn>();
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (2)
117var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 138var tmpList = new List<ReadOnlyMemory<byte>>();
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (1)
103var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyQualifierInfo>();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (1)
184var tmpList = new List<System.Security.Cryptography.Asn1.X509ExtensionAsn>();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (1)
218var tmpList = new List<System.Security.Cryptography.Asn1.X509ExtensionAsn>();
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
116var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateAsn.xml.cs (2)
99var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.EssCertId>(); 118var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyInformation>();
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (2)
99var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.EssCertIdV2>(); 118var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyInformation>();
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (3)
16_recipients = new List<CmsRecipient>(); 21_recipients = new List<CmsRecipient>(1); 30_recipients = new List<CmsRecipient>(certificates.Count);
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
260List<SignerInfo> signerInfos = new List<SignerInfo>();
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\SignedXml.cs (2)
736List<string> safeAlgorithms = new List<string>(); 757List<string> safeAlgorithms = new List<string>();
System.Security.Permissions (1)
System\Security\Permissions\PrincipalPermission.cs (1)
164idroles ??= new List<IDRole>();
System.Security.Principal.Windows (3)
System\Security\Principal\IRCollection.cs (1)
41_identities = new List<IdentityReference>(capacity);
System\Security\Principal\WindowsIdentity.cs (2)
1042_userClaims = new List<Claim>(); 1043_deviceClaims = new List<Claim>();
System.ServiceModel.Federation (2)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
174List<ClaimType> claimTypes = new List<ClaimType>();
System\ServiceModel\Federation\WsTrustTokenParameters.cs (1)
76List<ClaimType> claimTypes = new List<ClaimType>();
System.ServiceModel.Federation.Tests (1)
WSTrustChannelSecurityTokenProviderTest.cs (1)
27var claims = new Claims("dialect", new List<ClaimType>() { new ClaimType() { Uri = claimUri, IsOptional = false, Value = claimValue } });
System.ServiceModel.NetFramingBase (8)
System\ServiceModel\Channels\ConnectionPool.cs (6)
82itemsToClose = new List<TItem>(); 98endpointKeysToRemove = new List<TKey>(); 235_busyConnections = new List<TItem>(); 332var closeTasks = new List<Task>(itemsToClose.Count); 373List<TItem> itemsToClose = new List<TItem>(); 450itemsToClose = new List<TItem>();
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
46registryEntry = new List<ConnectionPool>();
System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
200List<TItem> itemsToClose = new List<TItem>();
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\NamedPipeTransportBindingElement.cs (1)
14private readonly List<SecurityIdentifier> _allowedUsers = new List<SecurityIdentifier>();
System.ServiceModel.Primitives (117)
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
75IList<Tuple<string, string>> exceptionInfo = new List<Tuple<string, string>>()
Internals\System\Runtime\Fx.cs (1)
250List<Type> types = new List<Type>(typeNames.Length);
Internals\System\Runtime\InputQueue.cs (1)
30_waiterList = new List<IQueueWaiter>();
Internals\System\Runtime\InternalBufferManager.cs (1)
60List<BufferPool> bufferPoolList = new List<BufferPool>();
Internals\System\Xml\XmlMtomWriter.cs (5)
280_binaryDataChunks = new List<MtomBinaryData>(); 298_binaryDataChunks = new List<MtomBinaryData>(); 326_binaryDataChunks = new List<MtomBinaryData>(); 428_mimeParts = new List<MimePart>(); 471_mimeParts = new List<MimePart>();
System\IdentityModel\Claims\ClaimSet.cs (1)
26List<Claim> claims = new List<Claim>(2);
System\IdentityModel\Claims\X509CertificateClaimSet.cs (3)
177List<Claim> claims = new List<Claim>(); 339List<string> dnsEntries = new List<string>(); 386List<Claim> claims = new List<Claim>(2);
System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
66_claimSets = new List<ClaimSet>();
System\IdentityModel\Policy\UnconditionalPolicy.cs (2)
160List<ClaimSet> issuances = new List<ClaimSet>(1); 217identities = new List<IIdentity>(1);
System\IdentityModel\SecurityUtils.cs (4)
129List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 266List<IAuthorizationPolicy> ret = new List<IAuthorizationPolicy>(authorizationPolicies.Count); 322public static ReadOnlyCollection<T> Instance = new ReadOnlyCollection<T>(new List<T>()); 337List<IIdentity> identities = new List<IIdentity>();
System\IdentityModel\Tokens\AggregateTokenResolver.cs (1)
18private List<SecurityTokenResolver> _tokenResolvers = new List<SecurityTokenResolver>();
System\IdentityModel\Tokens\KeyInfoSerializer.cs (4)
52_serializerEntries = new List<SerializerEntries>(); 79_tokenEntries = new List<TokenEntry>(); 80_keyIdentifierEntries = new List<KeyIdentifierEntry>(); 81_keyIdentifierClauseEntries = new List<KeyIdentifierClauseEntry>();
System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (2)
21_clauses = new List<SecurityKeyIdentifierClause>(InitialSize); 30_clauses = new List<SecurityKeyIdentifierClause>(clauses.Length);
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
30List<StrEntry> strEntries = new List<StrEntry>();
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
34List<StrEntry> strEntries = new List<StrEntry>();
System\IdentityModel\Tokens\X509SecurityToken.cs (1)
75List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Channels\AddressHeaderCollection.cs (4)
16: base(new List<AddressHeader>()) 21: base(new List<AddressHeader>(addressHeaders)) 87List<AddressHeader> results = new List<AddressHeader>(); 203List<AddressHeader> headerList = new List<AddressHeader>();
System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
917_newStrings = new List<XmlDictionaryString>(); 947_bytes = new List<byte>();
System\ServiceModel\Channels\MessageFault.cs (1)
727List<FaultReasonText> translations = new List<FaultReasonText>();
System\ServiceModel\Channels\MessageHeaders.cs (1)
870List<MessageHeaderInfo> understoodHeaders = new List<MessageHeaderInfo>();
System\ServiceModel\Channels\MessageProperties.cs (3)
199List<string> keys = new List<string>(); 268List<object> values = new List<object>(); 924List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(_propertyCount);
System\ServiceModel\Channels\RequestChannel.cs (1)
15private List<IRequestBase> _outstandingRequests = new List<IRequestBase>();
System\ServiceModel\Channels\ServiceChannelFactory.cs (2)
26_channelsList = new List<IChannel>(); 267objectList = new List<ICommunicationObject>();
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
55private readonly List<long> _retransmissionWindow = new List<long>();
System\ServiceModel\Description\ServiceReflector.cs (5)
413List<Type> types = new List<Type>(); 465List<Type> types = new List<Type>(); 498List<object> attrTypeAttributes = new List<object>(); 637List<Type> types = new List<Type>(GetInheritedContractTypes(interfaceType)); 666List<MethodInfo> methods = new List<MethodInfo>();
System\ServiceModel\Description\TypeLoader.cs (5)
391List<Type> knownTypes = new List<Type>(); 779List<Type> inheritedCallbackTypes = new List<Type>(); 1323List<MemberInfo> contractMembers = new List<MemberInfo>(); 1390List<MessagePartDescription> bodyPartDescriptionList = new List<MessagePartDescription>(); 1391List<MessageHeaderDescription> headerPartDescriptionList = new List<MessageHeaderDescription>();
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
845private List<XmlMembersMapping> _mappings = new List<XmlMembersMapping>(); 891List<XmlMembersMapping> uniqueMappings = new List<XmlMembersMapping>();
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
404List<ICommunicationObject> list = new List<ICommunicationObject>();
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
88_knownTypes = new List<Type>();
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
146_requests = new List<IDuplexRequest>(); 162_timedOutRequests = new List<ICorrelatorKey>();
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
25List<Attr> attrSet = new List<Attr>();
System\ServiceModel\Dispatcher\EndpointDispatcherTable.cs (1)
31_cachedEndpoints = new List<EndpointDispatcher>(optimizationThreshold);
System\ServiceModel\Dispatcher\FaultFormatter.cs (3)
23List<FaultContractInfo> faultContractInfoList = new List<FaultContractInfo>(); 38faultContractInfoList = new List<FaultContractInfo>(faultContractInfoCollection); 109faultInfos = new List<FaultContractInfo>();
System\ServiceModel\Dispatcher\InvokerUtil.cs (5)
55var outputParamPositions = new List<int>(); 118List<ParameterExpression> variables = new(); 122List<(Type ParameterType, ParameterExpression OutputExpression)> outputVariables = new(); 123List<ParameterExpression> invocationParameters = new(); 124List<Expression> expressions = new();
System\ServiceModel\Dispatcher\XmlSerializerFaultFormatter.cs (1)
70faultInfos = new List<XmlSerializerOperationBehavior.Reflector.XmlSerializerFaultContractInfo>();
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
583_attributes[headerDescription.Index] = new List<MessageHeader<object>>();
System\ServiceModel\DXD.cs (4)
121public List<XmlDictionaryString> SecureConversationDictionaryStrings = new List<XmlDictionaryString>(); 186public List<XmlDictionaryString> SecurityAlgorithmDictionaryStrings = new List<XmlDictionaryString>(); 215public List<XmlDictionaryString> Feb2005DictionaryStrings = new List<XmlDictionaryString>(); 216public List<XmlDictionaryString> Dec2005DictionaryString = new List<XmlDictionaryString>();
System\ServiceModel\EndpointAddress.cs (1)
702List<AddressHeader> headerList = new List<AddressHeader>();
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (1)
89_incomingSessionTokens = new List<SecurityToken>(tokens);
System\ServiceModel\Security\MessagePartSpecification.cs (4)
25_headerTypes = new List<XmlQualifiedName>(); 111_headerTypes = new List<XmlQualifiedName>(headerTypes.Count); 131List<XmlQualifiedName> noDuplicates = new List<XmlQualifiedName>(_headerTypes.Count); 183_headerTypes = new List<XmlQualifiedName>(headerTypes.Length);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (2)
393_allowedAuthenticators = new List<SecurityTokenAuthenticator>(); 406_supportingTokenTrackers = new List<TokenTracker>(_supportingTokenAuthenticators.Count);
System\ServiceModel\Security\SecurityProtocol.cs (1)
60s_emptyTokenProviders = new ReadOnlyCollection<SupportingTokenProviderSpecification>(new List<SupportingTokenProviderSpecification>());
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
118_channelSupportingTokenAuthenticatorSpecification = new Collection<SupportingTokenAuthenticatorSpecification>(new List<SupportingTokenAuthenticatorSpecification>(factory._channelSupportingTokenAuthenticatorSpecification));
System\ServiceModel\Security\SecuritySessionClientSettings.cs (4)
404List<SecurityToken> incomingSessionTokens = new List<SecurityToken>(1); 813List<RequestSecurityTokenResponse> rstrList = new List<RequestSecurityTokenResponse>(); 950List<SecurityToken> incomingTokens = new List<SecurityToken>(1); 992List<SecurityToken> incomingTokens = new List<SecurityToken>(2);
System\ServiceModel\Security\SecurityUtils.cs (4)
437List<Claim> claims = new List<Claim>(2); 441List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 821List<SecurityKey> temp = new List<SecurityKey>(1); 1088public static ReadOnlyCollection<T> Instance = new ReadOnlyCollection<T>(new List<T>());
System\ServiceModel\Security\SendSecurityHeader.cs (1)
228list = new List<SecurityTokenParameters>();
System\ServiceModel\Security\SendSecurityHeaderElementContainer.cs (1)
38list = new List<T>();
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
207List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
162List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\WSKeyInfoSerializer.cs (1)
20List<SerializerEntries> serializerEntries = new List<SerializerEntries>();
System\ServiceModel\Security\WSSecureConversationDec2005.cs (1)
33_knownClaimTypes = new List<Type>();
System\ServiceModel\Security\WSSecureConversationFeb2005.cs (1)
26_knownClaimTypes = new List<Type>();
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (3)
25private readonly List<TokenEntry> _tokenEntries = new List<TokenEntry>(); 93_serializerEntries = new List<SerializerEntries>(); 137_tokenEntries = new List<TokenEntry>();
System\ServiceModel\Security\WSTrust.cs (2)
170_entropyAuthenticators = new List<SecurityTokenAuthenticator>(2); 396List<RequestSecurityTokenResponse> rstrCollection = new List<RequestSecurityTokenResponse>(2);
System\ServiceModel\SynchronizedCollection.cs (4)
18Items = new List<T>(); 24Items = new List<T>(); 35Items = new List<T>(list); 46Items = new List<T>(list.Length);
System\ServiceModel\SynchronizedReadOnlyCollection.cs (5)
17Items = new List<T>(); 23Items = new List<T>(); 34Items = new List<T>(list); 45Items = new List<T>(list.Length); 63Items = new List<T>(list);
System\ServiceModel\XmlBuffer.cs (1)
61_sections = new List<Section>(1);
System.ServiceModel.Primitives.Tests (26)
Channels\CommunicationObjectTest.cs (9)
20List<string> openMethodsCalled = new List<string>(); 21List<string> closeMethodsCalled = new List<string>(); 51List<string> openMethodsCalled = new List<string>(); 52List<string> closeMethodsCalled = new List<string>(); 86List<string> closeMethodsCalled = new List<string>(); 112List<string> openEventsFired = new List<string>(); 113List<string> closeEventsFired = new List<string>(); 142List<string> openEventsFired = new List<string>(); 143List<string> closeEventsFired = new List<string>();
Channels\CustomChannelTest.cs (12)
24List<string> channelOpenMethodsCalled = new List<string>(); 25List<string> channelCloseMethodsCalled = new List<string>(); 26List<string> factoryOpenMethodsCalled = new List<string>(); 27List<string> factoryCloseMethodsCalled = new List<string>(); 114List<string> channelOpenMethodsCalled = new List<string>(); 115List<string> channelCloseMethodsCalled = new List<string>(); 116List<string> factoryOpenMethodsCalled = new List<string>(); 117List<string> factoryCloseMethodsCalled = new List<string>(); 316List<string> channelOpenMethodsCalled = new List<string>(); 317List<string> channelCloseMethodsCalled = new List<string>(); 318List<string> factoryOpenMethodsCalled = new List<string>(); 319List<string> factoryCloseMethodsCalled = new List<string>();
Description\OperationBehaviorTest.cs (1)
101DataContractSerializer dcs = (DataContractSerializer)behavior.CreateSerializer(typeof(SurrogateTestType), nameof(SurrogateTestType), "ns", new List<Type>());
IdentityModel\SecurityTokenSerializerTest.cs (1)
36SecurityToken token = sts.ReadToken(xmlReader, SecurityTokenResolver.CreateDefaultSecurityTokenResolver(new ReadOnlyCollection<SecurityToken>(new List<SecurityToken>() { dummyToken}), false));
ServiceModel\MessageContractTest.4.4.0.cs (1)
171values = new List<string>();
ServiceModel\SynchronizedCollection.cs (2)
30SynchronizedCollection<int> coll2 = new SynchronizedCollection<int>(new object(), new List<int>(coll)); 88new SynchronizedCollection<int>(null, new List<int>());
System.ServiceModel.Syndication (2)
System\ServiceModel\Syndication\ResourceCollectionInfo.cs (1)
122s_singleEmptyAccept ??= new List<string>(1) { string.Empty }.AsReadOnly();
System\ServiceModel\XmlBuffer.cs (1)
50_sections = new List<Section>(1);
System.Speech (60)
Internal\GrammarBuilding\BuilderElements.cs (1)
273private readonly List<GrammarBuilderBase> _items = new();
Internal\GrammarBuilding\IdentifierCollection.cs (1)
15_identifiers = new List<string>();
Internal\ObjectToken\ObjectTokenCategory.cs (1)
50var objectTokenList = new List<ObjectToken>();
Internal\ObjectToken\RegistryDataKey.cs (1)
397List<string> valueNames = new();
Internal\SapiAttributeParser.cs (1)
37List<SpeechAudioFormatInfo> formatList = new();
Internal\SapiInterop\EventNotify.cs (1)
82List<SpeechEvent> speechEvents = new();
Internal\SapiInterop\SapiRecoInterop.cs (1)
454List<GCHandle> handles = new();
Internal\SeekableReadStream.cs (1)
236private List<byte> _buffer = new(); // Data cached from start of stream onwards.
Internal\SrgsCompiler\ArcList.cs (1)
22List<Arc> collection = new();
Internal\SrgsCompiler\BackEnd.cs (4)
57List<State> sortedStates = new(_states); 531List<State> CloneStack = new(); // States to process 1361private List<Rule> _rules = new(); 1378private List<Tag> _tags = new();
Internal\SrgsCompiler\CustomGrammar.cs (2)
144internal List<Rule> _rules = new(); 165internal List<string> _types = new();
Internal\SrgsCompiler\GrammarElement.cs (1)
361private List<Rule> _undefRules = new();
Internal\SrgsCompiler\Graph.cs (7)
368List<Arc> tempList = new(); 399List<Arc> tempList = new(); 424List<Arc> tempList = new(); 476arcsToMerge ??= new List<Arc>(); 618arcsToMerge ??= new List<Arc>(); 845segmentsToDelete ??= new List<List<Arc>>(); 850segmentsToDelete.Add(new List<Arc>(identicalWords));
Internal\SrgsCompiler\Rule.cs (1)
288internal List<Rule> _listRules = new();
Internal\SrgsCompiler\SRGSCompiler.cs (2)
34List<CustomGrammar.CfgResource> cfgResources = new(); 84List<CustomGrammar.CfgResource> cfgResources = new();
Internal\SrgsParser\SrgsDocumentParser.cs (1)
390List<SrgsElement> list = new();
Internal\SrgsParser\XmlParser.cs (4)
1353tags ??= new List<IPropertyTag>(); 1863List<string> ruleNames = new(); 1901private List<string> _rules = new(); 1903private List<ForwardReference> _scripts = new();
Internal\StringBlob.cs (2)
203private List<string> _refStrings = new(); 206private List<int> _offsetStrings = new();
Internal\Synthesis\AudioDeviceOut.cs (2)
475private List<InItem> _queueIn = new(); 477private List<InItem> _queueOut = new();
Internal\Synthesis\SpeakInfo.cs (1)
102private List<SpeechSeg> _listSeg = new();
Internal\Synthesis\SpeechSeg.cs (1)
86private List<TextFragment> _textFragments = new();
Internal\Synthesis\SSmlParser.cs (7)
82SsmlAttributes ssmlAttributes = new(voice, new List<SsmlXmlAttribute>()); 90List<SsmlXmlAttribute> extraSpeakAttributes = new(); 1158localUnknownNamespaces ??= new List<SsmlXmlAttribute>(); 1167extraAttributesVoice ??= new List<SsmlXmlAttribute>(); 1523List<ContourPoint> points = new(); 1844extraAttributes ??= new List<SsmlXmlAttribute>(); 1858extraAttributes ??= new List<SsmlXmlAttribute>();
Internal\Synthesis\TTSVoice.cs (1)
153private List<LexiconEntry> _lexicons = new();
Internal\Synthesis\VoiceSynthesis.cs (5)
66_installedVoices = new List<InstalledVoice>(s_allVoices.Count); 751List<LexiconEntry> lexicons = new(); 1189List<InstalledVoice> tokens = new(_installedVoices); 1467List<InstalledVoice> voices = new(); 1791private List<LexiconEntry> _lexicons = new();
Recognition\RecognizerBase.cs (2)
169snapshotGrammars = new List<Grammar>(_grammars); 516_grammars = new List<Grammar>();
Recognition\RecognizerInfo.cs (1)
55_supportedAudioFormats = new ReadOnlyCollection<SpeechAudioFormatInfo>(new List<SpeechAudioFormatInfo>());
Recognition\SpeechRecognitionEngine.cs (1)
108List<RecognizerInfo> recognizers = new();
Recognition\SrgsGrammar\SrgsGrammar.cs (1)
686private List<XmlParser.ForwardReference> _scriptsForwardReference = new();
Result\RecognizedPhrase.cs (3)
162List<RecognizedWordUnit> wordList = new(countOfElements); 252List<RecognizedPhrase> homophones = new(_recoResult.Alternates.Count); 456List<ResultPropertiesRef> propertyList = new();
Synthesis\PromptBuilder.cs (1)
989private List<Element> _elements = new();
Synthesis\VoiceInfo.cs (1)
94_audioFormats = new ReadOnlyCollection<SpeechAudioFormatInfo>(new List<SpeechAudioFormatInfo>());
System.Text.Json (36)
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (2)
113var nodes = new List<T> { entryNode }; // the integer-to-node mapping 115var adjacency = new List<bool[]?>(); // the growable adjacency matrix
src\runtime\src\libraries\System.Text.Json\Common\ReflectionExtensions.cs (1)
330var results = new List<Type>();
System\Text\Json\Nodes\JsonArray.cs (5)
87_list = new List<JsonNode?>(list.Count) 151var list = new List<JsonNode?>(items); 163List<JsonNode?> list = new(items.Length); 305list = new List<JsonNode?>(jElement.GetArrayLength()); 316list = new();
System\Text\Json\Schema\JsonSchemaExporter.cs (3)
93List<JsonDerivedType> derivedTypes = new(polyOptions.DerivedTypes); 104List<JsonSchema>? anyOf = new(derivedTypes.Count); 365List<JsonSchema>? unionAnyOf = new(unionCases.Count);
System\Text\Json\Serialization\ConfigurationList.cs (2)
21_list = source is null ? new List<TItem>() : new List<TItem>(source);
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (1)
24state.Current.ReturnValue = new List<TElement>();
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (1)
162public readonly List<TElement> _buffer = new();
System\Text\Json\Serialization\Converters\Collection\ICollectionOfTConverter.cs (1)
46jsonTypeInfo.CreateObject = () => new List<TElement>();
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs (1)
33state.Current.ReturnValue = new List<object?>();
System\Text\Json\Serialization\Converters\Collection\IEnumerableOfTConverter.cs (1)
31state.Current.ReturnValue = new List<TElement>();
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (1)
85jsonTypeInfo.CreateObject = () => new List<object?>();
System\Text\Json\Serialization\Converters\Collection\IListOfTConverter.cs (1)
46jsonTypeInfo.CreateObject = () => new List<TElement>();
System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverter.cs (1)
24state.Current.ReturnValue = new List<TElement>();
System\Text\Json\Serialization\Converters\Collection\MemoryConverter.cs (1)
37state.Current.ReturnValue = new List<T>();
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (1)
37state.Current.ReturnValue = new List<T>();
System\Text\Json\Serialization\Converters\FSharp\FSharpListConverter.cs (1)
31state.Current.ReturnValue = new List<TElement>();
System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs (1)
35state.Current.ReturnValue = new List<Tuple<TKey, TValue>>();
System\Text\Json\Serialization\Converters\FSharp\FSharpSetConverter.cs (1)
31state.Current.ReturnValue = new List<TElement>();
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (1)
173CreateObject = static () => new List<T?>(),
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (1)
256List<PocoPropertyClassifierInfo> properties = new(typeInfo.Properties.Count);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
369List<Type> matchingBases = new();
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (3)
41private readonly List<UnionCaseEntry> _caseEntries = new(); 330new List<Type>(methodsByCaseType.Keys).ToArray(), 497(relatedTypes ??= new()).Add(candidate);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (4)
1100new List<JsonUnionCaseInfo>(UnionCases), 1113new List<JsonDerivedType>(polymorphismOptions.DerivedTypes), 1514List<JsonPropertyInfo> propertyCache = new(properties.Count); 1623List<JsonParameterInfo> parameterCache = new(ParameterCount);
System.Text.Json.SourceGeneration (24)
Helpers\RoslynExtensions.cs (3)
224var result = new List<ITypeParameterSymbol>(); 648var list = new List<INamedTypeSymbol>(); 885(derivedTypes ??= new()).Add(derivedType);
JsonSourceGenerator.Emitter.cs (2)
227var sorted = new List<string>(ids); 1137entries = new();
JsonSourceGenerator.Parser.cs (16)
62public List<Diagnostic> Diagnostics { get; } = new(); 221(typeDeclarations ??= new()).Add(stringBuilder.ToString()); 341(rootSerializableTypes ??= new()).Add(typeToGenerate.Value); 457converters = new List<TypeRef>(); 571typeClassifiers = new List<TypeRef>(); 843var resolvedUnionCaseSpecs = new List<UnionCaseSpec>(unionCaseTypes.Count); 1291(derivedTypes ??= new()).Add(new DerivedTypeSpec 1640var caseTypes = new List<ITypeSymbol>(); 1676var result = new List<(ITypeSymbol, bool)>(sorted.Count); 1747var sortedCaseTypes = new List<ITypeSymbol>(caseTypes.Count); 1776(parentTypes ??= new()).Add(candidate); 1804typeNames = new List<string>(); 2200List<PropertyGenerationSpec> properties = new(); 2308public readonly List<int> Properties = new(); 2946(propertyInitializers ??= new()).Add(propertyInitializer); 3072var typeChain = new List<INamedTypeSymbol>();
src\runtime\src\libraries\Common\src\SourceGenerators\TypeModelHelper.cs (1)
33(args ??= new()).AddRange(current.TypeArguments);
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (2)
113var nodes = new List<T> { entryNode }; // the integer-to-node mapping 115var adjacency = new List<bool[]?>(); // the growable adjacency matrix
System.Text.RegularExpressions (30)
System\Text\RegularExpressions\MatchCollection.cs (1)
77_matches = new List<Match>();
System\Text\RegularExpressions\Regex.Cache.cs (1)
75private static readonly List<Node> s_cacheList = new List<Node>(DefaultMaxCacheSize);
System\Text\RegularExpressions\Regex.Debug.cs (1)
55List<string> results = new(k);
System\Text\RegularExpressions\Regex.Split.cs (1)
295var state = (results: new List<string>(), prevat: 0, input, count);
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (1)
39_assembly = new PersistedAssemblyBuilder(an, typeof(object).Assembly, attribs is not null ? new List<CustomAttributeBuilder>(attribs) : null) ??
System\Text\RegularExpressions\RegexCharClass.cs (3)
275_rangelist ??= new List<(char First, char Last)>(6); 1508ranges = new List<(char First, char Last)>(setLength); 1868var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
System\Text\RegularExpressions\RegexCompiler.cs (1)
6516List<object> list = _searchValues ??= new();
System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
150FixedDistanceSets = new List<FixedDistanceSet>()
System\Text\RegularExpressions\RegexNode.cs (2)
3337Children = new List<RegexNode>() { currentChild, newChild }; 3465var stack = new List<int>();
System\Text\RegularExpressions\RegexParser.cs (5)
758(parents ??= new List<RegexCharClass?>()).Add(charClass); 787(parents ??= new List<RegexCharClass?>()).Add(scanOnly ? null : charClass); 2006_capnamelist = new List<string>(); 2066_capnamelist = new List<string>(); 2072_capnamelist = new List<string>();
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (2)
517var results = new List<RegexFindOptimizations.FixedDistanceSet>(); 716var localResults = new List<RegexFindOptimizations.FixedDistanceSet>();
System\Text\RegularExpressions\Symbolic\BDD.cs (2)
249var sorted = new List<BDD>(); 271(nonterminals[node.Ordinal] ??= new List<BDD>()).Add(node);
System\Text\RegularExpressions\Symbolic\BDDRangeConverter.cs (2)
73var merged = new List<(uint, uint)>(); 168var ranges1 = new List<(uint, uint)>();
System\Text\RegularExpressions\Symbolic\MintermGenerator.cs (1)
90var leaves = new List<TSet>();
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
345List<BDD> conditions = new();
System\Text\RegularExpressions\Symbolic\SparseIntMap.cs (1)
15private readonly List<KeyValuePair<int, T>> _dense = new();
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (1)
163entry = (matcher.Solver.Empty, new List<int>());
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (2)
33var results = new List<string>(); 77List<string> possibleEndings = new();
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
114public readonly List<(char Lower, char Upper)> ranges = new List<(char Lower, char Upper)>();
System.Text.RegularExpressions.Generator (16)
RegexGenerator.Emitter.cs (2)
638var excludedAsciiChars = new List<char>(); 697var lines = new List<string>();
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (3)
275_rangelist ??= new List<(char First, char Last)>(6); 1508ranges = new List<(char First, char Last)>(setLength); 1868var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
150FixedDistanceSets = new List<FixedDistanceSet>()
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (2)
3337Children = new List<RegexNode>() { currentChild, newChild }; 3465var stack = new List<int>();
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (5)
758(parents ??= new List<RegexCharClass?>()).Add(charClass); 787(parents ??= new List<RegexCharClass?>()).Add(scanOnly ? null : charClass); 2006_capnamelist = new List<string>(); 2066_capnamelist = new List<string>(); 2072_capnamelist = new List<string>();
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (2)
517var results = new List<RegexFindOptimizations.FixedDistanceSet>(); 716var localResults = new List<RegexFindOptimizations.FixedDistanceSet>();
UpgradeToGeneratedRegexCodeFixer.cs (1)
500var callSites = new List<(string FilePath, int TreeIndex, int Position)>();
System.Threading.Channels (1)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
System.Threading.RateLimiting (8)
System\Threading\RateLimiting\ChainedReplenishingRateLimiter.cs (2)
25var replenishingLimiters = new List<ReplenishingRateLimiter>(); 74exceptions ??= new List<Exception>();
System\Threading\RateLimiting\CombinedRateLimitLease.cs (1)
85exceptions ??= new List<Exception>();
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (5)
26private readonly List<KeyValuePair<TKey, Lazy<LimiterEntry>>> _cachedLimiters = new(); 28private readonly List<RateLimiter> _limitersToDispose = new(); 152exceptions ??= new List<Exception>(); 187exceptions ??= new List<Exception>(); 293aggregateExceptions ??= new List<Exception>();
System.Threading.Tasks.Dataflow (13)
Base\DataflowBlock.cs (1)
2427_tempSendAsyncTaskList ??= new List<Task<bool>>();
Blocks\BatchBlock.cs (2)
293ReservedSourcesTemp = new List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>>(batchSize); 1101exceptions ??= new List<Exception>(1);
Blocks\BatchedJoinBlock.cs (2)
534private List<T> _messages = new List<T>(); 559_messages = new List<T>();
Blocks\TransformManyBlock.netstandard21.cs (1)
156itemCopy = new List<TOutput>();
Blocks\WriteOnceBlock.cs (1)
247exceptions = new List<Exception>();
Internal\Common.cs (1)
318list ??= new List<Exception>();
Internal\QueuedMap.cs (2)
58_storage = new List<KeyValuePair<int, T>>(); 65_storage = new List<KeyValuePair<int, T>>(capacity);
Internal\SourceCore.cs (1)
337var tmpList = new List<TOutput>();
Internal\SpscTargetCore.cs (1)
312lock (LazyInitializer.EnsureInitialized(ref _exceptions, static () => new List<Exception>()))
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.ForEachAsync.cs (1)
619(_exceptions ??= new List<Exception>()).Add(e);
System.Windows.Controls.Ribbon (26)
Microsoft\Windows\Automation\Peers\RibbonApplicationMenuAutomationPeer.cs (2)
56children = new List<AutomationPeer>(); 66children = new List<AutomationPeer>();
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (1)
83List<AutomationPeer> children = new List<AutomationPeer>();
Microsoft\Windows\Automation\Peers\RibbonComboBoxAutomationPeer.cs (1)
66children = new List<AutomationPeer>(1);
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (2)
128children = new List<AutomationPeer>(1); 165List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>();
Microsoft\Windows\Automation\Peers\RibbonGroupAutomationPeer.cs (1)
43children = new List<AutomationPeer>(1);
Microsoft\Windows\Automation\Peers\RibbonMenuButtonAutomationPeer.cs (1)
56children = new List<AutomationPeer>(1);
Microsoft\Windows\Automation\Peers\RibbonQuickAccessToolBarAutomationPeer.cs (1)
48children = new List<AutomationPeer>();
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (1)
48children = new List<AutomationPeer>(1);
Microsoft\Windows\Controls\KeyTipService.cs (5)
892activeKeyTipElements = new List<DependencyObject>(); 1531current._cachedKeyTipControls = new List<KeyTipControl>(); 1621handlerList = new List<WeakReference>(1); 1730private List<AdornerLayer> _placementProcessingAdornerLayers = new List<AdornerLayer>(); 1740private List<DependencyObject> _currentActiveKeyTipElements = new List<DependencyObject>(); // List of elements whose keytips are active.
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (3)
197List<int> starChildIndices = new List<int>(); 408list = new List<T>(); 464private List<StarLayoutInfo> _starLayoutCombinations = new List<StarLayoutInfo>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
368List<StarLayoutInfo> starInfoList = new List<StarLayoutInfo>(2); 369List<IProvideStarLayoutInfo> starLayoutInfoProviders = new List<IProvideStarLayoutInfo>(2);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
155List<IProvideStarLayoutInfoBase> InvalidateRegisteredLayoutProvidersList = new List<IProvideStarLayoutInfoBase>(); ;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
128_generatedChildren = new List<UIElement>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
487List<double> elementSizes = new List<double>(); 540List<double> desiredPaddings = new List<double>(); 682contextualTabHeaders[contextualTabGroupHeader] = new List<RibbonTabHeaderAndIndex>();
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
708_charsEntered = new List<string>(10);
System.Windows.Forms (30)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
112List<AssemblyName> assemblyList = new(_names.Length);
System\Windows\Forms\Application.ThreadWindows.cs (1)
23_windows = new List<HWND>(16);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
204newAttributes = new(AttributeArray) 221newAttributes = new(AttributeArray)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
104List<nint> handles = new((int)count);
System\Windows\Forms\Control.cs (2)
5719List<ControlTabOrderHolder> holders = new(Controls.Count); 13601List<Rectangle> neighboringControlsRectangles = new(4);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
936List<DataGridViewColumn> cols = new(_props.Count);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
911autoFillColumns ??= new(Columns.Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (2)
193List<DataGridViewColumn> initialColumns = new(dataGridViewColumns.Length); 194List<DataGridViewColumn> sortedColumns = new(dataGridViewColumns.Length);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
39private readonly List<Link> _links = new(2); 644List<CharacterRange> ranges = new(Links.Count + 1);
System\Windows\Forms\Controls\ListView\ListView.cs (4)
461_savedCheckedItems = new List<ListViewItem>(CheckedItems.Count); 506_savedCheckedItems = new List<ListViewItem>(CheckedItems.Count); 2365Properties.AddValue(s_propDelayedUpdateItems, new List<ListViewItem>()); 4744_savedSelectedItems = new List<ListViewItem>(lviArr.Length);
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
117List<ListViewGroup?> list = new();
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
187_subItems = new List<ListViewSubItem>(items.Length);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
3898List<ToolStripItem> buttonList = fullRebuild ? new() : new(_toolStrip.Items.OfType<ToolStripItem>());
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
161internal List<ToolStripDropDown> ActiveDropDowns { get; } = new(1);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3548List<Rectangle> neighbors = new(3);
System\Windows\Forms\DataBinding\BindingSource.cs (1)
81_innerList = new List<object>();
System\Windows\Forms\Input\KeysConverter.cs (1)
37List<string> localizedOrder = new(34);
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
18private ArrangedElementCollection(int size) => InnerList = new List<IArrangedElement>(size);
System\Windows\Forms\Layout\TableLayout.cs (2)
1394List<LayoutInfo> childrenInfo = new(children.Count); 1455List<LayoutInfo> layoutInfos = new(container.Children.Count);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (1)
497List<ControlInformation> controlsInfo = new(Owner!.Children.Count);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
88List<ControlInformation> listOfControlInfo = new(_controlsInfo.Count);
System.Windows.Forms.Design (32)
System\ComponentModel\Design\DesignerHost.cs (3)
1058errorCollection = new List<object>() 1129List<IComponent> selectedComponents = new(_savedSelection.Count); 1163List<string> list = new(ss.SelectionCount);
System\ComponentModel\Design\EventBindingService.cs (1)
176List<PropertyDescriptor> props = new(events.Count);
System\ComponentModel\Design\ExtenderProviderService.cs (1)
32_providers ??= new(4);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
81List<Attribute> attributes = new(AttributeArray!) 99List<Attribute> attributes = new(AttributeArray!)
System\ComponentModel\Design\ReferenceService.cs (2)
84_references = new(container.Components.Count); 287List<object> results = new(_references.Count);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (2)
588defaultPropList ??= new(data.Members.Count); 628defaultPropList ??= new(data.Members.Count);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
101List<MemberAttributes> list = new(values.Count);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
566List<CodeExpression> arrayList = new(valuesToSerialize.Count);
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
472List<IComponent> list = new(_lastSelection.Count);
System\Drawing\Design\ToolboxItem.cs (1)
709List<string> propertyNames = new(Properties.Count);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
160List<SnapLine> lines = new(2);
System\Windows\Forms\Design\CommandSet.cs (2)
452List<IComponent> list = new(components.Length); 3153List<string?> names = new(objects.Count);
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
34suspendedComponents = new(container.Components.Count);
System\Windows\Forms\Design\ControlCommandSet.cs (1)
461List<SnapLine> lines = new(2);
System\Windows\Forms\Design\ControlDesigner.cs (1)
347List<SnapLine> snapLines = new(8);
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
613columnsToBeAdded = new List<DataGridViewColumn>(backEndProps!.Count);
System\Windows\Forms\Design\DesignerFrame.cs (1)
315List<ThemedScrollbarWindow> windows = new(Controls.Count);
System\Windows\Forms\Design\DesignerUtils.cs (2)
708List<Type> final = new(types.Count); 765List<IComponent> newObjects = new(objects.Count);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
803_suspendedComponents = new(container.Components.Count + 1);
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
194snapLines = new List<SnapLine>(4);
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (2)
97selectedComponents = new List<object>(components); 249List<object> topComponents = new(_components.Length);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
301=> AddPaddingSnapLinesCommon(snapLines ??= new List<SnapLine>(4)); 340snapLines = new List<SnapLine>(4);
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
260List<Type> creatableTypes = new(itemTypes.Count);
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
319addedManipulatorList = new List<ManipulatorState>(20);
System.Xaml (87)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
188keysToRemove = new List<object>();
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
130List<string> keysToUpdate = new List<string>();
System\Windows\Markup\PropertyDefinition.cs (1)
24public IList<Attribute> Attributes => _attributes ??= new List<Attribute>();
System\Xaml\Context\NameFixupGraph.cs (5)
266List<string> names = new List<string>(_dependenciesByName.Keys); 296List<object> parentObjs = new List<object>(_dependenciesByParentObject.Keys); 350List<NameFixupToken> markupExtensionTokens = new List<NameFixupToken>(); 366List<NameFixupToken> dependencies = new List<NameFixupToken>(); 405List<NameFixupToken> dependencies = new List<NameFixupToken>();
System\Xaml\Context\NameFixupToken.cs (2)
107_names = new List<string>(); 108_nameScopeDictionaryList = new List<XAML3.INameScopeDictionary>();
System\Xaml\Context\ObjectWriterContext.cs (7)
321List<XamlType> ceilingTypes = ceilingTypesEnumerable is not null ? new List<XamlType>(ceilingTypesEnumerable) : null; 323List<AmbientPropertyValue> retList = new List<AmbientPropertyValue>(); 436List<object> retList = new List<object>(); 990List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>(); 1016_nameScopeInitializationCompleteSubscribers = new List<NameScopeInitializationCompleteSubscriber>(); 1049private List<XAML3.INameScopeDictionary> _nameScopeDictionaryList = new List<XAML3.INameScopeDictionary>(); 1129List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>();
System\Xaml\Context\XamlCommonFrame.cs (1)
79List<NamespaceDeclaration> _namespaceDeclarations = new List<NamespaceDeclaration>();
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
637_context.CurrentCollection = new List<PositionalParameterDescriptor>(); 1953pendingCollection = new List<PendingCollectionAdd>(); 2264List<string> names = new List<string>(); 2315unresolvedRefs = new List<NameFixupToken>();
System\Xaml\MS\Impl\XmlNsInfo.cs (3)
155IList<XmlNsDefinition> result = new List<XmlNsDefinition>(); 220xmlNamespaceList = new List<string>(); 246var result = new List<AssemblyName>();
System\Xaml\NameScope.cs (2)
229var list = new List<string>(_nameMap.Keys.Count); 248var list = new List<object>(_nameMap.Values.Count);
System\Xaml\Parser\GenericTypeNameParser.cs (1)
335_typeArgs = new List<XamlTypeName>();
System\Xaml\Parser\NamespacePrefixLookup.cs (1)
16newNamespaces = _newNamespaces = new List<NamespaceDeclaration>();
System\Xaml\Parser\NodeStreamSorter.cs (2)
31private List<SeenCtorDirectiveFlags> _seenStack = new List<SeenCtorDirectiveFlags>(); 418_moveList = new List<int>();
System\Xaml\Parser\XamlPullParser.cs (2)
484savedPrefixDefinitions = new List<XamlNode>(); 695_savedPrefixDefinitions = new List<XamlNode>();
System\Xaml\Parser\XamlScanner.cs (5)
559List<XamlAttribute> list = new List<XamlAttribute>(); 672ctorDirectivesList = new List<XamlAttribute>(); 687otherDirectivesList = new List<XamlAttribute>(); 696otherPropertiesList = new List<XamlAttribute>(); 704_attributes = new List<XamlAttribute>();
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
355result = new List<object>();
System\Xaml\Schema\Reflector.cs (4)
308List<T> result = new List<T>(); 336List<CustomAttributeData> cads = new List<CustomAttributeData>(); 343List<T> types = new List<T>(); 424IList<CustomAttributeData> attrDataList = new List<CustomAttributeData>();
System\Xaml\Schema\TypeReflector.cs (10)
472knownMembers = new List<XamlMember>(propList.Length + eventList.Length); 536List<PropertyInfo> filteredResult = new List<PropertyInfo>(result.Count); 590List<EventInfo> filteredResult = new List<EventInfo>(result.Count); 645new List<KeyValuePair<MethodInfo, MethodInfo>>(); 818preferredAccessors = new List<MethodInfo>(); 827otherAccessors = new List<MethodInfo>(); 842preferredAccessors = new List<MethodInfo>(); 903list = new List<MethodInfo>(); 989List<XamlMember> result = new List<XamlMember>(); 1196listOfNulls = new List<K>();
System\Xaml\Schema\XamlDirective.cs (1)
39List<string> nsList = new List<string>(xamlNamespaces);
System\Xaml\Schema\XamlNamespace.cs (1)
206List<XamlType> xamlTypeList = new List<XamlType>();
System\Xaml\XamlMember.cs (1)
578List<XamlMember> result = new List<XamlMember>();
System\Xaml\XamlNodeList.cs (2)
37_nodeList = new List<XamlNode>(); 41_nodeList = new List<XamlNode>(size);
System\Xaml\XamlObjectReader.cs (10)
251private List<MarkupInfo> children = new List<MarkupInfo>(); 991private List<MarkupInfo> properties = new List<MarkupInfo>(); 1123removedProperties = new List<MarkupInfo>(propertiesWithDO); 1622var ctorArgProps = new List<XamlMember>(); 1649IList constructorArguments = new List<object>(constructorParameters.Length); 2329List<XamlMember> propertyList = new List<XamlMember>(); 2546List<KeyValuePair<string, string>> namespaceMapList = new List<KeyValuePair<string, string>>(); 2878private List<MarkupInfo> nodes = new List<MarkupInfo>(); 3106keyEntry.Predecessors = new List<int>(); 3213private List<Entry> _entries = new List<Entry>();
System\Xaml\XamlSchemaContext.cs (5)
57List<Assembly> listOfAssemblies = new List<Assembly>(referenceAssemblies); 113result = new List<string>(); 934List<string> combinedList = new List<string>(); 1047List<string> list = new List<string>(); 1086_unexaminedAssemblies = new List<Assembly>(ReferenceAssemblies);
System\Xaml\XamlType.cs (5)
671ctorArray = new List<ConstructorInfo>(ctors).ToArray(); 728List<XamlType> result = new List<XamlType>(contentWrappers.Count + 1); 828contentWrappers = new List<XamlType>(wrapperTypes.Count); 1591return new List<XamlType>(typeArguments).AsReadOnly(); 1663List<XamlMember> result = new List<XamlMember>(excludedMembers.Count);
System\Xaml\XamlTypeName.cs (2)
34List<XamlTypeName> typeArgList = new List<XamlTypeName>(typeArguments); 59_typeArguments = new List<XamlTypeName>();
System\Xaml\XamlXmlWriter.cs (7)
763List<KeyValuePair<string, string>> prefixMapList = new List<KeyValuePair<string, string>>(); 1615writer.meNodesStack.Push(new List<XamlNode>()); 2000var ctorArgProps = new List<XamlMember>(); 2054writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2091writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2120writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2174NodesList = new List<List<XamlNode>>();
TypeScriptApiCompat (5)
ApiCompatResult.cs (2)
34var unsuppressedDiagnostics = new List<ApiCompatDiagnostic>(); 35var suppressedDiagnostics = new List<ApiCompatDiagnostic>();
ApiCompatSuppression.cs (2)
33var suppressions = new List<ApiCompatSuppression>(); 34var errors = new List<string>();
AtsCompatibilityComparer.cs (1)
13var diagnostics = new List<ApiCompatDiagnostic>();
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
510List<WinEventTracker.EvtIdProperty> automationEvents = new(16);
MS\Internal\AutomationProxies\ProxySimple.cs (2)
587List<ClickablePoint.CPRect> listIn = new(100); 588List<ClickablePoint.CPRect> listOut = new(100);
MS\Internal\AutomationProxies\WinEventTracker.cs (1)
394hookParams._hWndList = new List<EventCreateParams>(16);
UnitTests.Common (1)
MemberDataSet.cs (1)
37private readonly List<object[]> _data = new List<object[]>();
vbc (4)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
220var buildRequestArguments = new List<string>(arguments);
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 541var list = new List<string>(count);
VBCSCompiler (13)
src\roslyn\src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (4)
66errorMessages ??= new List<string>(); 84var resolvedPaths = new List<string>(); 109var loadedAssemblies = new List<Assembly>(); 134errorMessages ??= new List<string>();
src\roslyn\src\Compilers\Server\VBCSCompiler\BuildProtocolUtil.cs (1)
43List<string> commandLineArguments = new List<string>();
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (2)
671public List<(string DllName, string HashKey, DateTimeOffset Created, DateTimeOffset LastUsed)> HitDetails { get; } = new(); 672public List<(string DllName, string HashKey, DateTimeOffset Created, DateTimeOffset LastUsed)> StoreDetails { get; } = new();
src\roslyn\src\Compilers\Server\VBCSCompiler\ServerDispatcher.cs (2)
62private readonly List<Task<CompletionData>> _connectionList = new List<Task<CompletionData>>(); 189var all = new List<Task>();
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
220var buildRequestArguments = new List<string>(arguments);
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 541var list = new List<string>(count);
vstest.console (19)
CommandLine\CommandLineOptions.cs (1)
47private List<string> _sources = new();
CommandLine\Executor.cs (2)
248processors = new List<IArgumentProcessor>(); 518List<string> outputArguments = new();
Internal\ConsoleLogger.cs (1)
647var time = new List<string>();
Internal\FilePatternParser.cs (1)
50var matchingFiles = new List<string>();
Internal\MSBuildLogger.cs (1)
383var time = new List<string>();
Processors\CLIRunSettingsArgumentProcessor.cs (1)
129var mergedArgs = new List<string>();
Processors\CollectArgumentProcessor.cs (1)
84internal static List<string> EnabledDataCollectors = new();
Processors\HelpArgumentProcessor.cs (1)
99List<IArgumentProcessor> processors = new();
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (5)
111private readonly List<string> _discoveredTests = new(); 311var filteredList = new List<TestCase>(); 358var testPropertyValueList = new List<string>(testPropertyValueArray); 367var multiValue = new List<string> { testPropertyValue.ToString()! }; 382var newTraitValueList = new List<string> { trait.Value };
Processors\TestAdapterPathArgumentProcessor.cs (1)
140var testAdapterPaths = new List<string>();
Processors\Utilities\ArgumentProcessorFactory.cs (1)
215private static IList<IArgumentProcessor> GetDefaultArgumentProcessors(IRunSettingsProvider runSettingsProvider, IRunSettingsHelper runSettingsHelper, CommandLineOptions commandLineOptions, ITestRequestManager testRequestManager) => new List<IArgumentProcessor> {
TestPlatformHelpers\TestRequestManager.cs (3)
1347var commandsUsed = new List<string>(); 1551return new List<string>(); 1554var filteredSources = new List<string>();
vstest.console.arm64 (19)
src\vstest\src\vstest.console\CommandLine\CommandLineOptions.cs (1)
47private List<string> _sources = new();
src\vstest\src\vstest.console\CommandLine\Executor.cs (2)
248processors = new List<IArgumentProcessor>(); 518List<string> outputArguments = new();
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
647var time = new List<string>();
src\vstest\src\vstest.console\Internal\FilePatternParser.cs (1)
50var matchingFiles = new List<string>();
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (1)
383var time = new List<string>();
src\vstest\src\vstest.console\Processors\CLIRunSettingsArgumentProcessor.cs (1)
129var mergedArgs = new List<string>();
src\vstest\src\vstest.console\Processors\CollectArgumentProcessor.cs (1)
84internal static List<string> EnabledDataCollectors = new();
src\vstest\src\vstest.console\Processors\HelpArgumentProcessor.cs (1)
99List<IArgumentProcessor> processors = new();
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (5)
111private readonly List<string> _discoveredTests = new(); 311var filteredList = new List<TestCase>(); 358var testPropertyValueList = new List<string>(testPropertyValueArray); 367var multiValue = new List<string> { testPropertyValue.ToString()! }; 382var newTraitValueList = new List<string> { trait.Value };
src\vstest\src\vstest.console\Processors\TestAdapterPathArgumentProcessor.cs (1)
140var testAdapterPaths = new List<string>();
src\vstest\src\vstest.console\Processors\Utilities\ArgumentProcessorFactory.cs (1)
215private static IList<IArgumentProcessor> GetDefaultArgumentProcessors(IRunSettingsProvider runSettingsProvider, IRunSettingsHelper runSettingsHelper, CommandLineOptions commandLineOptions, ITestRequestManager testRequestManager) => new List<IArgumentProcessor> {
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (3)
1347var commandsUsed = new List<string>(); 1551return new List<string>(); 1554var filteredSources = new List<string>();
WindowsFormsIntegration (2)
System\Windows\Integration\ApplicationInterop.cs (2)
313_internalList = new List<WeakReference>(); 336List<T> targets = new List<T>();
25211 references to List
aspire (628)
Acquisition\InstallationDiscovery.cs (2)
129var pathHits = FindAllAspireOnPath(_logger).ToList(); 138var results = new List<InstallationInfo> { self };
Agents\AgentEnvironmentScanContext.cs (1)
11private readonly List<AgentEnvironmentApplicator> _applicators = [];
Agents\AspireSkills\AspireSkillsBundle.cs (1)
41List<SkillAssetFile> files = [];
Agents\AspireSkills\AspireSkillsBundleProvider.cs (2)
178List<ValidatedAspireSkill> validatedSkills = []; 225List<SkillAssetFile> files = [];
Agents\AspireSkills\AspireSkillsInstaller.cs (2)
462List<GitHubReleaseAsset> assets = []; 616List<(string Directory, string ArchiveSha512, DateTimeOffset LastUsed)> candidates = [];
Agents\Hooks\TelemetryHookConfigurator.cs (3)
63var configured = new List<AgentClientKind>(); 64var skipped = new List<TelemetryHookSkip>(); 68var supported = detectedClients
Backchannel\AppHostAuxiliaryBackchannel.cs (6)
348public async Task<List<ResourceSnapshot>> GetResourceSnapshotsAsync(bool includeHidden, CancellationToken cancellationToken = default) 356var snapshots = response.Resources.ToList(); 372var snapshots = await rpc.InvokeWithProfilingAsync<List<ResourceSnapshot>>( 567var urls = new List<string>(); 612var snapshots = await GetResourceSnapshotsAsync(includeHidden: true, cancellationToken).ConfigureAwait(false);
Backchannel\AppHostConnectionHelper.cs (3)
31var connections = auxiliaryBackchannelMonitor.Connections.ToList(); 63var inScopeConnections = connections.Where(c => c.IsInScope).ToList(); 73var paths = inScopeConnections
Backchannel\AppHostConnectionResolver.cs (7)
63var connections = await interactionService.ShowStatusAsync( 184var connections = await interactionService.ShowStatusAsync( 199var inScopeConnections = connections.Where(c => c.IsInScope).ToList(); 200var outOfScopeConnections = connections.Where(c => !c.IsInScope).ToList(); 236var selectableConnections = restrictToCurrentWorktree 322List<IAppHostAuxiliaryBackchannel> candidateConnections, 331var choices = candidateConnections
Backchannel\AuxiliaryBackchannelMonitor.cs (5)
147var connections = Connections.ToList(); 171var inScopeConnections = connections.Where(c => c.IsInScope).ToList(); 305var connectTasks = new List<Task>(); 314var newFiles = currentFiles.Except(_knownSocketFiles, StringComparer.OrdinalIgnoreCase).ToList(); 323var removedFiles = _knownSocketFiles.Except(currentFiles, StringComparer.OrdinalIgnoreCase).ToList();
Backchannel\BackchannelJsonSerializerContext.cs (4)
38[JsonSerializable(typeof(List<EnvVar>))] 39[JsonSerializable(typeof(List<string>))] 46[JsonSerializable(typeof(List<ResourceSnapshot>))] 68[JsonSerializable(typeof(List<AppHostLoadedAssemblyInfo>))]
Backchannel\ExtensionBackchannel.cs (6)
44Task LaunchAppHostAsync(string projectFile, List<string> arguments, List<EnvVar> environment, bool debug, CancellationToken cancellationToken); 505var choicesList = choices.ToList(); 535var choicesList = choices.ToList(); 745public async Task LaunchAppHostAsync(string projectFile, List<string> arguments, List<EnvVar> environment, bool debug, CancellationToken cancellationToken)
Backchannel\IAppHostAuxiliaryBackchannel.cs (1)
86Task<List<ResourceSnapshot>> GetResourceSnapshotsAsync(bool includeHidden, CancellationToken cancellationToken = default);
Backchannel\OrphanedAppHostCollector.cs (1)
25List<IAppHostAuxiliaryBackchannel> orphans;
Backchannel\ResourceSnapshotMapper.cs (9)
35public static List<ResourceJson> MapToResourceJsonList(IEnumerable<ResourceSnapshot> snapshots, string? dashboardBaseUrl = null, bool includeEnvironmentVariableValues = true, bool includeDisabledCommands = false) 37var snapshotList = snapshots.ToList(); 94var relationships = new List<ResourceRelationshipJson>(); 97var matches = allSnapshots 188var dependencies = new List<string>(); 302var exactMatches = snapshots.Where(s => string.Equals(s.Name, resourceName, StringComparison.OrdinalIgnoreCase)).ToList(); 310var displayNameMatches = snapshots.Where(s => string.Equals(s.DisplayName, resourceName, StringComparison.OrdinalIgnoreCase)).ToList(); 384internal static (bool EffectiveIncludeHidden, List<ResourceSnapshot> Snapshots, HashSet<string> HiddenResourceNames) FilterHiddenResources( 395var snapshots = effectiveIncludeHidden
Backchannel\ResourceSnapshotWatcher.cs (1)
45var snapshots = await _connection.GetResourceSnapshotsAsync(includeHidden: true, cancellationToken).ConfigureAwait(false);
Caching\DiskCache.cs (1)
188var list = new List<(FileInfo file, long timestamp)>();
Certificates\CertificateGeneration\CertificateManager.cs (9)
139var certificates = new List<X509Certificate2>(); 247protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 291var currentUserCertificates = allCurrentUserCertificates.Where(c => c.Subject == Subject).ToList(); 292var localMachineCertificates = allLocalMachineCertificates.Where(c => c.Subject == Subject).ToList(); 293var filteredCertificates = currentUserCertificates.Concat(localMachineCertificates).ToList(); 316var certificates = filteredCertificates; 803var extensions = new List<X509Extension>(); 1032var list = certificates.ToList(); 1074var certificatesToDispose = new List<X509Certificate2>();
Certificates\CertificateGeneration\MacOSCertificateManager.cs (4)
308var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 431protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 437var certsFromStore = new List<X509Certificate2>(); 483var certsFromDisk = new List<X509Certificate2>();
Certificates\CertificateGeneration\UnixCertificateManager.cs (7)
159var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 327var nssDbs = GetNssDbs(homeDirectory); 530var nssDbs = GetNssDbs(homeDirectory); 841var nssDbs = new List<string>(); 859private List<NssDb> GetNssDbs(string homeDirectory) 861var nssDbs = new List<NssDb>(); 1014var certs = new List<FileInfo>();
Certificates\CertificateHelpers.cs (2)
63internal static List<string> GetSystemCertificateDirectories() 65var systemCertDirs = new List<string>();
Certificates\CertificateService.cs (1)
201var systemCertDirs = CertificateHelpers.GetSystemCertificateDirectories();
Certificates\NativeCertificateToolRunner.cs (4)
30var certInfos = availableCertificates.Select(cert => 60var validCerts = certInfos 209var validCertificates = availableCertificates 262var dnsNames = new List<string>();
Commands\AddCommand.cs (8)
176List<(NuGetPackage Package, PackageChannel Channel)> packagesWithChannels; 185packagesWithChannels = discoveredPackages as List<(NuGetPackage Package, PackageChannel Channel)> ?? discoveredPackages.ToList(); 193packagesWithChannels = discoveredPackages as List<(NuGetPackage Package, PackageChannel Channel)> ?? discoveredPackages.ToList(); 206var packagesWithShortName = packagesWithChannels.Select(IntegrationPackageSearchService.GenerateFriendlyName).OrderBy(p => p.FriendlyName, new CommunityToolkitFirstComparer()).ToList(); 228var compatiblePackagesWithShortName = packagesWithShortName 245var filteredPackagesWithShortName = packagesWithShortName 453var versions = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>(); 668var rootChoices = new List<(string Label, Func<CancellationToken, Task<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>> Action)>();
Commands\AgentInitCommand.cs (8)
220var configUpdates = applicators.Where(a => a.PromptGroup == McpInitPromptGroup.ConfigUpdates).ToList(); 221var userChoices = applicators.Where(a => a.PromptGroup != McpInitPromptGroup.ConfigUpdates).ToList(); 255var mcpApplicators = userChoices.Where(a => a.PromptGroup == McpInitPromptGroup.AgentEnvironments).ToList(); 277var skillChoices = new List<object>(); 296var preSelectedItems = new List<object>(); 352var installedSkills = new List<InstalledSkillSummaryItem>(); 535var skills = new List<SkillDefinition>(); 773var uniqueValues = new List<string>();
Commands\AgentMcpCommand.cs (2)
130var icons = McpIconHelper.GetAspireIcons(typeof(AgentMcpCommand).Assembly, "Aspire.Cli.Mcp.Resources"); 168var tools = new List<Tool>();
Commands\AgentTelemetryCommand.cs (4)
102var tags = CollectValidTags(parseResult); 130private List<(string Name, string Value)> CollectValidTags(ParseResult parseResult) 132var tags = new List<(string Name, string Value)>(); 145private static void AddIfValid(List<(string Name, string Value)> tags, string name, string? value, Func<string, bool> isValid)
Commands\AppHostLauncher.cs (6)
374private (string ExecutablePath, List<string> ChildArgs) BuildChildProcessArgs( 381var args = new List<string> 413var childArgs = new List<string>(); 479List<string> childArgs, 762Task<List<ResourceSnapshot>> probeTask; 769probeTask = Task.FromException<List<ResourceSnapshot>>(ex);
Commands\BaseCommand.cs (1)
150var tasksToAwait = new List<Task> { handlerTask, terminationTask, stoppingMessageTcs.Task };
Commands\ConfigCommand.cs (2)
285var unconfiguredFeatures = KnownFeatures.GetAllFeatureMetadata() 467var availableFeatures = KnownFeatures.GetAllFeatureMetadata()
Commands\ConfigInfo.cs (3)
21List<FeatureInfo> AvailableFeatures, 39internal sealed record SettingsSchema(List<PropertyInfo> Properties); 55List<PropertyInfo>? SubProperties = null,
Commands\DashboardRunCommand.cs (9)
105var dashboardArgs = new List<string> { "dashboard" }; 164private static void AddOptionArgs(ParseResult parseResult, List<string> args, IReadOnlyList<string> unmatchedTokens, IEnvironment environment) 182private static void AddStringOptionArg(ParseResult parseResult, List<string> args, IReadOnlyList<string> unmatchedTokens, 200private static void AddBoolOptionArg(ParseResult parseResult, List<string> args, IReadOnlyList<string> unmatchedTokens, 256internal static DashboardInfo ResolveDashboardInfo(List<string> dashboardArgs, IReadOnlyList<string> unmatchedTokens, IEnvironment environment, string? browserToken) 277internal static string? ResolveSettingValue(List<string> args, IReadOnlyList<string> unmatchedTokens, IEnvironment environment, string key) 300internal static string? ResolveArgValue(List<string> args, string key) 341var labels = new List<string> { dashboardLabel, otlpGrpcLabel, otlpHttpLabel, logsLabel }; 373private async Task<CommandResult> ExecuteForegroundAsync(string managedPath, List<string> dashboardArgs, DashboardInfo dashboardInfo, IDictionary<string, string>? environmentVariables, CancellationToken cancellationToken)
Commands\DeployCommand.cs (1)
39var baseArgs = new List<string> { "--operation", "publish", "--step", "deploy" };
Commands\DescribeCommand.cs (3)
207var resourceList = ResourceSnapshotMapper.MapToResourceJsonList(snapshots, dashboardBaseUrl, includeDisabledCommands: includeDisabledCommands); 240var currentSnapshots = resourceWatcher.GetAllResources().ToList(); 294var orderedItems = snapshots.Select(s => (Snapshot: s, DisplayName: ResourceSnapshotMapper.GetResourceName(s, snapshots)))
Commands\DestroyCommand.cs (1)
41var baseArgs = new List<string> { "--operation", "publish", "--step", "destroy" };
Commands\DoCommand.cs (1)
69var baseArgs = new List<string> { "--operation", operation };
Commands\ExportCommand.cs (6)
180List<string>? resolvedTelemetryResources = null; 233var resourceJsonList = ResourceSnapshotMapper.MapToResourceJsonList(snapshots); 258var logLinesByResource = new Dictionary<string, List<string>>(); 267if (!logLinesByResource.TryGetValue(logLine.ResourceName, out var lines)) 290List<string>? resolvedResources, 321List<string>? resolvedResources,
Commands\ExtensionInternalCommand.cs (1)
66public required List<string> AllProjectFileCandidates { get; init; }
Commands\GroupedHelpWriter.cs (9)
49var grouped = new Dictionary<HelpGroup, List<BaseCommand>>(); 50var ungroupedCommands = new List<Command>(); 61if (!grouped.TryGetValue(baseCmd.HelpGroup, out var list)) 76foreach (var list in grouped.Values) 83foreach (var list in grouped.Values) 112if (grouped.TryGetValue(group, out var commands)) 142var visibleOptions = command.Options.Where(o => !o.Hidden).ToList(); 189private static void WriteGroup(TextWriter writer, string heading, List<BaseCommand> commands, int columnWidth, int width) 283var parts = new List<string>();
Commands\InitCommand.cs (1)
227var commands = new List<string>();
Commands\IntegrationPackageSearchService.cs (2)
28var packages = new List<(NuGetPackage Package, PackageChannel Channel)>(); 59var packages = new List<(NuGetPackage Package, PackageChannel Channel)>();
Commands\LogsCommand.cs (1)
382var allSnapshots = resourceWatcher.GetAllResources().ToList();
Commands\LsCommand.cs (8)
98List<AppHostProjectCandidate> appHosts; 111var appHostInfos = CreateDisplayInfos(appHosts); 145private async Task<List<AppHostProjectCandidate>> FindAppHostsWithJsonStreamAsync(AppHostDiscoveryScope scope, CancellationToken cancellationToken) 147var appHosts = new List<AppHostProjectCandidate>(); 182private async Task<List<AppHostProjectCandidate>> FindAppHostsWithStatusAsync(AppHostDiscoveryScope scope, CancellationToken cancellationToken) 184var appHosts = new List<AppHostProjectCandidate>(); 257private List<CandidateAppHostDisplayInfo> CreateDisplayInfos(IEnumerable<AppHostProjectCandidate> appHosts) 272private static Table BuildTable(List<CandidateAppHostDisplayInfo> appHosts, bool supportsLinks)
Commands\McpToolsCommand.cs (2)
58var snapshots = await connection.GetResourceSnapshotsAsync(includeHidden: true, cancellationToken); 59var resourcesWithTools = snapshots.Where(r => r.McpServer is not null).ToList();
Commands\NewCommand.cs (2)
263var templates = availableTemplates.ToList(); 725var rootChoices = new List<(string Label, Func<CancellationToken, Task<(NuGetPackage, PackageChannel)>> Action)>();
Commands\ParseResultHelper.cs (5)
18private readonly List<string> _tokens; 23internal ForwardedArguments(List<string> tokens, int optionCount) 69var forwardedTokens = new List<string>(parseResult.Tokens.Count); 131var loggableTokens = new List<string>(parseResult.Tokens.Count); 285List<string> forwardedTokens,
Commands\PipelineCommandBase.cs (6)
508var remaining = new List<string>(unmatchedTokens.Count); 993var durationRecords = steps.Values.Select(s => 1179var options = input.Options.ToList(); 1280var filePaths = new List<string>(); 1320private static async Task<string> UploadFilesAsync(List<string> filePaths, IAppHostCliBackchannel backchannel, string interactionId, string inputName, CancellationToken cancellationToken) 1331var fileRefs = new List<FileReferenceDto>(filePaths.Count);
Commands\PsCommand.cs (13)
42[JsonSerializable(typeof(List<AppHostDisplayInfo>))] 125var connections = format == OutputFormat.Json 146var orderedConnections = connections 151var appHostInfos = await GatherAppHostInfosAsync(orderedConnections, cancellationToken).ConfigureAwait(false); 167private async Task<List<IAppHostAuxiliaryBackchannel>> ScanForConnectionsAsync(CancellationToken cancellationToken) 223var currentConnections = OrderConnections(connectionsUpdate.Connections); 224var currentAppHosts = await GatherAppHostInfosAsync(currentConnections, followCancellationToken).ConfigureAwait(false); 320private static List<IAppHostAuxiliaryBackchannel> OrderConnections(IEnumerable<IAppHostAuxiliaryBackchannel> connections) 327private async Task<List<AppHostDisplayInfo>> GatherAppHostInfosAsync(List<IAppHostAuxiliaryBackchannel> connections, CancellationToken cancellationToken) 329var appHostInfos = new List<AppHostDisplayInfo>(); 407private void DisplayTable(List<AppHostDisplayInfo> appHosts) 441var columns = new List<string>
Commands\PublishCommand.cs (1)
54var baseArgs = new List<string> { "--operation", "publish", "--step", "publish" };
Commands\ResourceCommand.cs (7)
224var snapshots = await connection.GetResourceSnapshotsAsync(includeHidden, cancellationToken).ConfigureAwait(false); 235var snapshots = await connection.GetResourceSnapshotsAsync(includeHidden, cancellationToken).ConfigureAwait(false); 495var groupedArguments = new List<string>(); 518var groupedArguments = new List<string>(); 671var inScopeConnections = await command.InteractionService.ShowStatusAsync( 707var matchingConnections = await command.InteractionService.ShowStatusAsync( 863var parts = new List<string>();
Commands\RunCommand.cs (4)
482var discoveredEndpoints = new List<(string Resource, string Endpoint)>(); 488var rows = new List<IRenderable>(); 1038var labels = new List<string> { appHostLabel, logsLabel }; 1211var additionalArgs = new List<string>();
Commands\Sdk\SdkDumpCommand.cs (25)
97var integrations = new List<IntegrationReference>(); 164List<IntegrationReference> integrations, 263List<IntegrationReference> integrations, 375var infoDiagnostics = capabilities.Diagnostics.Where(d => d.Severity == "Info").ToList(); 384var packageVersions = integrations 432var flags = new List<string>(); 568var flags = new List<string>(); 721public List<PackageInfo> Packages { get; set; } = []; 722public List<CapabilityInfo> Capabilities { get; set; } = []; 723public List<HandleTypeInfo> HandleTypes { get; set; } = []; 724public List<DtoTypeInfo> DtoTypes { get; set; } = []; 725public List<EnumTypeInfo> EnumTypes { get; set; } = []; 726public List<ExportedValueInfo> ExportedValues { get; set; } = []; 727public List<DiagnosticInfo> Diagnostics { get; set; } = []; 748public List<ParameterInfo> Parameters { get; set; } = []; 751public List<TypeRefInfo> ExpandedTargetTypes { get; set; } = []; 761public List<CallbackParameterInfo>? CallbackParameters { get; set; } 783public List<TypeRefInfo>? UnionTypes { get; set; } 793public List<TypeRefInfo> ImplementedInterfaces { get; set; } = []; 794public List<TypeRefInfo> BaseTypeHierarchy { get; set; } = []; 803public List<DtoPropertyInfo> Properties { get; set; } = []; 819public List<string> Values { get; set; } = []; 820public List<EnumValueInfo> ValueInfos { get; set; } = []; 832public List<string> PathSegments { get; set; } = []; 844public List<ParameterDocumentationInfo> Parameters { get; set; } = [];
Commands\Sdk\SdkGenerateCommand.cs (1)
126var integrations = new List<IntegrationReference>();
Commands\SecretListCommand.cs (1)
49var secrets = result.Store.ToList();
Commands\SettingsSchemaBuilder.cs (6)
23var properties = BuildPropertiesForType(typeof(AspireJsonConfiguration), excludeLocalOnly); 72var properties = BuildPropertiesForType(typeof(AspireConfigFile), excludeLocalOnly); 81private static List<PropertyInfo> BuildPropertiesForType( 85var properties = new List<PropertyInfo>(); 126List<PropertyInfo>? subProperties = null; 139var dictInterfaces = propertyType.GetInterfaces()
Commands\StartCommand.cs (1)
63var additionalArgs = new List<string>();
Commands\TelemetryCommandHelpers.cs (1)
476out List<string>? resolvedResources)
Commands\TelemetryLogsCommand.cs (1)
137if (!TelemetryCommandHelpers.TryResolveResourceNames(resource, resources, out var resolvedResources))
Commands\TelemetrySpansCommand.cs (2)
127if (!TelemetryCommandHelpers.TryResolveResourceNames(resource, resources, out var resolvedResources)) 228var allSpans = new List<(string ResourceName, OtlpSpanJson Span)>();
Commands\TelemetryTracesCommand.cs (8)
153var traces = SharedAIHelpers.GetTracesFromOtlpData(resourceSpans); 191if (!TelemetryCommandHelpers.TryResolveResourceNames(resource, resources, out var resolvedResources)) 306var spans = new List<SpanInfo>(); 339var rootSpans = spans.Where(s => string.IsNullOrEmpty(s.ParentSpanId)).ToList(); 351private void DisplaySpanTree(List<SpanInfo> spans, string dashboardUrl, string traceId) 361var rootSpans = spans 377Dictionary<string, List<SpanInfo>> childrenByParent, 417if (childrenByParent.TryGetValue(span.SpanId, out var children))
Commands\TerminalAttachCommand.cs (2)
111var snapshots = await _interactionService.ShowStatusAsync( 115var matches = ResourceSnapshotMapper.WhereMatchesResourceName(snapshots, resourceName).ToList();
Commands\TerminalPsCommand.cs (3)
160var dtos = new List<TerminalPsJsonEntry>(response.Terminals.Length); 163var replicas = new List<TerminalPsJsonReplica>(terminal.Replicas?.Length ?? 0); 335[JsonSerializable(typeof(List<TerminalPsJsonEntry>))]
Commands\UpdateCommand.cs (1)
469var pending = new List<(IMigration Migration, MigrationDescriptor Descriptor)>();
Configuration\ConfigurationService.cs (1)
290var objectPath = new List<(JsonObject obj, string key)>();
Documentation\ApiDocs\ApiDocsIndexService.cs (10)
332private volatile List<IndexedApiReferenceItem>? _indexedItems; 395var items = BuildBaseItems(sitemapEntries, _sitemapUrl); 718var results = new List<ApiSearchResult>(); 866private static List<ApiReferenceItem> BuildBaseItems(IReadOnlyList<ApiSitemapEntry> entries, string sitemapUrl) 868var items = new List<ApiReferenceItem>(entries.Count); 890private static void BuildCSharpItems(List<ApiReferenceItem> items, ApiSitemapEntry entry, string sitemapUrl) 935private static void BuildTypeScriptItems(List<ApiReferenceItem> items, ApiSitemapEntry entry, HashSet<string> typeScriptContainerIds, string sitemapUrl) 980private static List<ApiReferenceItem> Deduplicate(List<ApiReferenceItem> items) 983var deduplicated = new List<ApiReferenceItem>(items.Count);
Documentation\ApiDocs\ApiMemberMarkdownParser.cs (2)
35var candidates = new List<ParsedMemberCandidate>(); 73var items = new List<ApiReferenceItem>(candidates.Count);
Documentation\ApiDocs\ApiSitemapParser.cs (1)
60var entries = new List<ApiSitemapEntry>();
Documentation\Docs\DocsIndexService.cs (7)
144private volatile List<IndexedDocument>? _indexedDocuments; 196var indexedDocuments = SetIndexedDocuments(cachedDocuments); 206var indexedDocumentsFromSource = SetIndexedDocuments(documents); 222private List<IndexedDocument> SetIndexedDocuments(IEnumerable<LlmsDocument> documents) 224var indexedDocuments = documents.Select(static d => new IndexedDocument(d)).ToList(); 334var results = new List<SearchCandidate>(Math.Min(topK, _indexedDocuments.Count)); 392private static void AddTopResult(List<SearchCandidate> results, SearchCandidate candidate, int topK)
Documentation\Docs\DocsSearchService.cs (1)
141var results = searchResults.Select(r => new SearchResult
Documentation\Docs\LlmsTxtParser.cs (12)
144var docBoundaries = FindDocumentBoundaries(span, codeBlocks); 150var documents = new List<LlmsDocument>(docBoundaries.Count); 200List<(int Start, int End)>? sliced = null; 236private static List<int> FindDocumentBoundaries(ReadOnlySpan<char> span, (int Start, int End)[] codeBlocks) 238var boundaries = new List<int>(); 360var sections = ParseSections(docSpan, docCodeBlocks); 460private static List<LlmsSection> ParseSections(ReadOnlySpan<char> docSpan, (int Start, int End)[] codeBlocks) 462var sections = new List<LlmsSection>(); 466var sectionStarts = FindSectionHeadings(docSpan, codeBlocks); 502var regions = new List<(int Start, int End)>(); 600private static List<(int Index, int Level, string Heading)> FindSectionHeadings( 604var sectionStarts = new List<(int Index, int Level, string Heading)>();
Documentation\DocumentationCacheKey.cs (1)
32var pathSegments = new List<string>(rawSegments.Length);
DotNet\DotNetCliRunner.cs (12)
780var cliArgsList = new List<string> { isSingleFileAppHost ? "build" : "msbuild" }; 1045List<string> cliArgs = ["new", "install", localPackagePath?.FullName ?? $"{packageName}@{version}"]; 1292var cliArgsList = new List<string> 1407var hashes = new List<string>(); 1477var foundPackages = PackageUpdateHelpers.ParsePackageSearchResults(cached); 1494List<string> cliArgs = [ 1606var foundPackages = PackageUpdateHelpers.ParsePackageSearchResults(stdout); 1631var stdoutLines = new List<string>(); 1639var stderrLines = new List<string>(); 1673var stdoutLines = new List<string>(); 1681var stderrLines = new List<string>(); 1705var projects = new List<FileInfo>();
DotNet\ProcessExecutionFactory.cs (1)
185var keysToRemove = new List<string>();
Interaction\BannerService.cs (5)
133var elements = new List<IRenderable>(); 173var elements = new List<IRenderable> 190var elements = new List<IRenderable> 209var elements = new List<IRenderable> 227var rows = new List<IRenderable>();
Interaction\ConsoleInteractionService.cs (3)
417var result = await MessageConsole.PromptAsync(prompt, cancellationToken); 784var matched = new List<T>(); 854var choicesList = choices.ToList();
Interaction\ExtensionInteractionService.cs (4)
21Task LaunchAppHostAsync(string projectFile, List<string> arguments, List<EnvVar> environment, bool debug); 538public Task LaunchAppHostAsync(string projectFile, List<string> arguments, List<EnvVar> environment, bool debug)
JsonSourceGenerationContext.cs (2)
40[JsonSerializable(typeof(List<DevCertInfo>))] 57[JsonSerializable(typeof(List<CandidateAppHostDisplayInfo>))]
Layout\LayoutConfiguration.cs (1)
50public List<string> BuiltInIntegrations { get; set; } = [];
Mcp\McpResourceToolRefreshService.cs (2)
90var allResources = await connection.GetResourceSnapshotsAsync(includeHidden: true, cancellationToken).ConfigureAwait(false); 91var resourcesWithTools = allResources.Where(r => r.McpServer is not null && !McpToolHelpers.IsExcludedFromMcp(r)).ToList();
Mcp\Tools\ExecuteResourceCommandTool.cs (2)
116var content = new List<TextContentBlock> 145var content = new List<TextContentBlock>
Mcp\Tools\ListAppHostsTool.cs (4)
18[JsonSerializable(typeof(List<AppHostListInfo>))] 45var connections = auxiliaryBackchannelMonitor.Connections.ToList(); 47var inScopeAppHosts = connections 55var outOfScopeAppHosts = connections
Mcp\Tools\ListConsoleLogsTool.cs (1)
93var entries = logEntries.GetEntries().ToList();
Mcp\Tools\ListIntegrationsTool.cs (4)
46public required List<Integration> Integrations { get; set; } 97var packagesWithParsedVersions = integrationPackages 108var distinctPackages = packagesWithParsedVersions 114var integrations = distinctPackages
Mcp\Tools\ListResourcesTool.cs (2)
79var snapshots = await snapshotsTask.ConfigureAwait(false); 94var resources = ResourceSnapshotMapper.MapToResourceJsonList(snapshots, dashboardBaseUrl, includeEnvironmentVariableValues: false);
Mcp\Tools\ListStructuredLogsTool.cs (1)
85if (!TelemetryCommandHelpers.TryResolveResourceNames(resourceName, resources, out var resolvedResources))
Mcp\Tools\ListTracesTool.cs (1)
85if (!TelemetryCommandHelpers.TryResolveResourceNames(resourceName, resources, out var resolvedResources))
Mcp\Tools\McpToolHelpers.cs (1)
213var snapshots = await connection.GetResourceSnapshotsAsync(includeHidden: true, cancellationToken).ConfigureAwait(false);
Mcp\Tools\SelectAppHostTool.cs (1)
84var availableAppHosts = auxiliaryBackchannelMonitor.Connections
NuGet\BundleNuGetPackageCache.cs (3)
154var args = new List<string> 309public List<BundlePackageInfo>? Packages { get; set; } 319public List<string>? AllVersions { get; set; }
NuGet\BundleNuGetService.cs (5)
95var packageList = packages.ToList(); 127var restoreArgs = new List<string> 213var manifestArgs = new List<string> 284var redacted = new List<string>(args.Count); 298List<(string Id, string Version)> packages,
NuGet\NuGetPackageCache.cs (2)
122var collectedPackages = new List<NuGetPackage>(); 193var collectedPackages = new List<NuGetPackage>();
NuGet\NuGetPackagePrefetcher.cs (2)
31var prefetchTasks = new List<Task>(capacity: 2); 92private static async Task PreventOrphanedPrefetchingAsync(List<Task> prefetchTasks, CancellationToken stoppingToken)
Packaging\NuGetConfigMerger.cs (5)
257var patternsToAdd = RemapExistingPatterns(packageSourceMapping, patternToNewSource, context.UrlToExistingKey, sourcesInUse); 307private static List<(string pattern, string newSource)> RemapExistingPatterns( 314var patternsToAdd = new List<(string pattern, string newSource)>(); 326var elementsToRemove = new List<XElement>(); 388List<(string pattern, string newSource)> patternsToAdd,
Packaging\PackageChannel.cs (5)
169var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 218var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 389var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 497var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 588var tasks = new List<Task<IEnumerable<NuGetPackage>>>();
Packaging\PackageSourceOverrideMappings.cs (1)
52var mappings = new List<PackageMapping>
Packaging\PackagingService.cs (3)
153var prPackageChannels = new List<PackageChannel>(); 176var channels = new List<PackageChannel>([defaultChannel, stableChannel]); 709var duplicates = versionsById
Processes\ProcessTreeGracefulShutdownService.cs (2)
54var processesToForceKill = new List<ProcessTarget> { appHostProcess }; 288var arguments = new List<string>
Processes\WindowsProcessInterop.cs (1)
368var inheritable = new List<nint>(3);
Program.cs (1)
1285var parentNames = new List<string> { r.CommandResult.Command.Name };
Projects\AppHostCandidateFinder.cs (1)
198var matchedFiles = new List<FileInfo>();
Projects\AppHostCodeGenerationDiagnostic.cs (1)
63public List<AppHostLoadedAssemblyInfo> LoadedAssemblies { get; init; } = [];
Projects\AppHostServerClosureSnapshots.cs (6)
85var lines = new List<string>(Entries.Count + 1) 111var entries = new List<AppHostServerClosureManifestEntry>(); 150var managedAssemblies = new List<IntegrationPackageManagedAssembly>(); 151var nativeLibraries = new List<IntegrationPackageNativeLibrary>(); 185var values = new List<string>(entries.Count + 1) 196var projectEntries = entries
Projects\DotNetAppHostProject.cs (6)
1085if (!TryParseFunctionCallArgs(projectAttributeValue, argsStart, out var args, out var afterCloseParen)) 1135private static bool TryParseFunctionCallArgs(string text, int startIndex, out List<string> args, out int afterCloseParen) 1800var arguments = ParseArguments(info.RunArguments); 1952List<string> arguments, 2182private static List<string> ParseArguments(string? rawArguments) 2187private static void AppendParsedArguments(string? rawArguments, List<string> arguments)
Projects\DotNetBasedAppHostServerProject.cs (3)
177var otherPackages = new List<(string Name, string Version)>(); 284var atsAssemblies = new List<string> { "Aspire.Hosting" }; 331var channelSources = new List<string>();
Projects\ExtensionGuestLauncher.cs (1)
45var allArgs = new List<string> { command };
Projects\FallbackProjectParser.cs (3)
217var packageReferences = new List<PackageReferenceInfo>(); 250var projectReferences = new List<ProjectReferenceInfo>(); 304var packageReferences = new List<PackageReferenceInfo>();
Projects\GuestAppHostProject.cs (11)
197private async Task<List<IntegrationReference>> GetIntegrationReferencesAsync( 203var integrations = config.GetIntegrationReferences(defaultSdkVersion, directory.FullName).ToList(); 279List<IntegrationReference> integrations, 305var integrations = await GetIntegrationReferencesAsync(config, directory, cancellationToken); 422var integrations = await GetIntegrationReferencesAsync(config, directory, cancellationToken); 1060var integrations = await GetIntegrationReferencesAsync(config, directory, cancellationToken); 1449var updates = await _interactionService.ShowStatusAsync( 1453var packageUpdates = new List<(string PackageId, string CurrentVersion, string NewVersion)>(); 1625var integrationsList = integrations.ToList(); 2001private static void SaveGenerationHash(string generatedPath, List<IntegrationReference> integrations) 2013private static string ComputeIntegrationsHash(List<IntegrationReference> integrations)
Projects\GuestRuntime.cs (1)
618var result = new List<string>();
Projects\LanguageService.cs (1)
79var languages = (await _languageDiscovery.GetAvailableLanguagesAsync(cancellationToken)).ToList();
Projects\PrebuiltAppHostServer.cs (23)
151var integrationList = integrations.ToList(); 152var packageRefs = integrationList.Where(r => r.IsPackageReference).ToList(); 153var projectRefs = integrationList.Where(r => r.IsProjectReference).ToList(); 299List<IntegrationReference> packageRefs, 307var packages = packageRefs 372var closure = new List<string>(); 466private static List<string> ReadProjectReferences(string projectPath) 468var references = new List<string>(); 730List<IntegrationReference> packageRefs, 731List<IntegrationReference> projectRefs, 818var sourcePaths = await ReadManifestFileAsync(closureSourcesPath, cancellationToken).ConfigureAwait(false); 819var metadataLines = await ReadManifestFileAsync(closureMetadataPath, cancellationToken).ConfigureAwait(false); 820var targetPaths = await ReadManifestFileAsync(closureTargetsPath, cancellationToken).ConfigureAwait(false); 827var projectRefAssemblyNames = await ReadProjectRefAssemblyNamesAsync( 835var closureEntries = new List<AppHostServerClosureSource>(sourcePaths.Count); 864List<IntegrationReference> packageRefs, 865List<IntegrationReference> projectRefs, 1015var sources = new List<string>(); 1536private async Task<List<string>> ReadProjectRefAssemblyNamesAsync(string filePath, CancellationToken cancellationToken) 1548private static async Task<List<string>> ReadManifestFileAsync(string filePath, CancellationToken cancellationToken) 1658List<IntegrationReference> packageRefs, 1659List<string> projectRefAssemblyNames) 1661var atsAssemblies = new List<string> { "Aspire.Hosting" };
Projects\ProjectLocator.cs (26)
33Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync( 56var candidates = await FindAppHostProjectsAsync(searchDirectory, scope, cancellationToken).ConfigureAwait(false); 72Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, int? maxDepth, CancellationToken cancellationToken) 84Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken); 94Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, int? maxDepth, CancellationToken cancellationToken) 163public async Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync( 179public async Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, int? maxDepth, CancellationToken cancellationToken) 182var candidates = allCandidates.BuildableAppHost.Concat(allCandidates.UnbuildableSuspectedAppHostProjects).ToList(); 254public async Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 267public async Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, int? maxDepth, CancellationToken cancellationToken) 269var candidates = await FindAppHostProjectsAsync(searchDirectory, scope, maxDepth, cancellationToken); 279public async Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken) 288private async Task<(List<AppHostProjectCandidate> BuildableAppHost, List<AppHostProjectCandidate> UnbuildableSuspectedAppHostProjects, List<FileInfo> UnsupportedProjects)> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, bool stopAfterMultipleBuildableAppHosts, bool displayProgress, AppHostDiscoveryScope scope, int? maxDepth, ChannelWriter<AppHostProjectCandidate>? candidateWriter = null, Action<int>? onDirectoryEnumerated = null, CancellationToken cancellationToken = default) 292async Task<(List<AppHostProjectCandidate> BuildableAppHost, List<AppHostProjectCandidate> UnbuildableSuspectedAppHostProjects, List<FileInfo> UnsupportedProjects)> FindAppHostsAsync() 294var appHostProjects = new List<AppHostProjectCandidate>(); 295var unbuildableSuspectedAppHostProjects = new List<AppHostProjectCandidate>(); 296var unsupportedProjects = new List<FileInfo>(); 334var candidatesWithHandlers = new List<(FileInfo File, IAppHostProject Handler)>(); 911var appHostProjects = searchResults.BuildableAppHost 923var unbuildableInDirectory = searchResults.UnbuildableSuspectedAppHostProjects 1181var allCandidates = results.BuildableAppHost.Select(c => c.AppHostFile).ToList(); 1443internal record AppHostProjectSearchResult(FileInfo? SelectedProjectFile, List<FileInfo> AllProjectFileCandidates)
Projects\ProjectUpdater.cs (30)
48var updateStepsByProject = updateSteps 253var descriptions = new List<string>(); 636var updatedSdks = new List<string>(); 1274var originalSources = ExtractPackageSources(originalDocument); 1275var proposedSources = ExtractPackageSources(proposedDocument); 1296private static List<PackageSourceInfo> ExtractPackageSources(XmlDocument? document) 1298var sources = new List<PackageSourceInfo>(); 1325private static Dictionary<string, List<string>> ExtractPackageSourceMappings(XmlDocument? document) 1327var mappings = new Dictionary<string, List<string>>(); 1344var patterns = new List<string>(); 1366private static List<MappingChange> AnalyzeMappingChanges(Dictionary<string, List<string>> originalMappings, Dictionary<string, List<string>> proposedMappings) 1368var changes = new List<MappingChange>(); 1375var originalPatterns = originalMappings.GetValueOrDefault(source, []); 1376var proposedPatterns = proposedMappings.GetValueOrDefault(source, []); 1378var addedPatterns = proposedPatterns.Except(originalPatterns).ToList(); 1379var removedPatterns = originalPatterns.Except(proposedPatterns).ToList(); 1401if (changes.ProposedMappings.TryGetValue(feed.Key, out var patterns)) 1440if (changes.ProposedMappings.TryGetValue(feed.Key, out var currentPatterns)) 1442var addedPatterns = mappingChangesBySource.TryGetValue(feed.Key, out var currentMappingChange) ? currentMappingChange.AddedPatterns : new List<string>(); 1460internal record MappingChange(string SourceKey, List<string> AddedPatterns, List<string> RemovedPatterns); 1464public List<PackageSourceInfo> AddedFeeds { get; set; } = []; 1465public List<PackageSourceInfo> RemovedFeeds { get; set; } = []; 1466public List<PackageSourceInfo> RetainedFeeds { get; set; } = []; 1467public List<MappingChange> MappingChanges { get; set; } = []; 1468public Dictionary<string, List<string>> OriginalMappings { get; set; } = new(); 1469public Dictionary<string, List<string>> ProposedMappings { get; set; } = new(); 1529var changes = new List<string>();
Projects\RunningInstanceManager.cs (1)
122var pidsToMonitor = new List<int> { appHostInfo.ProcessId };
Projects\SolutionLocator.cs (3)
22var solutionFiles = await GetSolutionFilesInDirectoryAndSubfoldersAsync(startDirectory, cancellationToken); 50private static async Task<List<FileInfo>> GetSolutionFilesInDirectoryAndSubfoldersAsync(DirectoryInfo directory, CancellationToken cancellationToken) 81var solutionFiles = new List<FileInfo>();
Scaffolding\PackageJsonMerger.cs (1)
189var aspireScripts = new List<(string unprefixed, string prefixed)>();
Scaffolding\ScaffoldingService.cs (4)
126var integrations = config.GetIntegrationReferences(sdkVersion, directory.FullName).ToList(); 327List<string>? preservedScriptNames = null; 396private static void AddRootTypeScriptAppHostDelegateScript(JsonObject scripts, TypeScriptAppHostToolchain toolchain, string relativeAppHostDirectory, string scriptName, ref List<string>? preservedScriptNames) 540var conflicts = new List<string>();
src\Shared\BackchannelConstants.cs (2)
201var results = new List<string>() { currentHash }; 329var results = new List<string>();
src\Shared\ChannelExtensions.cs (2)
34List<T>? batch = null; 84List<T>? batch = null;
src\Shared\CircularBuffer.cs (2)
19internal readonly List<T> _buffer; 29internal CircularBuffer(List<T> buffer, int capacity, int start, int end)
src\Shared\ColorGenerator.cs (1)
58private readonly List<AccentColor> _colors;
src\Shared\CommandLineArgsParser.cs (4)
13var result = new List<string>(); 21public static List<string> Parse(string arguments) 23var result = new List<string>(); 36private static void ParseArgumentsIntoList(string arguments, List<string> results)
src\Shared\ConsoleLogs\AnsiParser.cs (3)
309List<int> ret = new(2); 457var classes = new List<string>(2); 458var styles = new List<string>(2);
src\Shared\ConsoleLogs\LogEntries.cs (2)
18private readonly List<LogPauseViewModel> _pauseViewModels = []; 43var pauseEntries = _logEntries.Where(e => e.Type == LogEntryType.Pause && _pauseViewModels.Contains(e.Pause!)).ToList();
src\Shared\ConsoleLogs\PromptContext.cs (1)
69var uniqueLines = new List<string>();
src\Shared\ConsoleLogs\SharedAIHelpers.cs (23)
63var logRecords = GetLogRecordsFromOtlpData(resourceLogs); 92var logRecords = GetLogRecordsFromOtlpData(resourceLogs); 112var traces = GetTracesFromOtlpData(resourceSpans); 141var traces = GetTracesFromOtlpData(resourceSpans); 158var spans = GetSpanDtosFromOtlpData(resourceSpans); 172var logRecords = GetLogRecordsFromOtlpData(resourceLogs); 186var traces = GetTracesFromOtlpData(resourceSpans); 283public static List<OtlpSpanDto> GetSpanDtosFromOtlpData(IList<OtlpResourceSpansJson>? resourceSpans) 285var spans = new List<OtlpSpanDto>(); 323public static List<OtlpTraceDto> GetTracesFromOtlpData(IList<OtlpResourceSpansJson>? resourceSpans) 325var spansByTraceId = new Dictionary<string, List<OtlpSpanDto>>(StringComparer.Ordinal); 353if (!spansByTraceId.TryGetValue(traceId, out var spanList)) 385var spanObjects = new List<JsonNode>(); 533private static int? CalculateTraceDurationMs(List<OtlpSpanDto> spans) 561public static List<OtlpLogEntryDto> GetLogRecordsFromOtlpData(IList<OtlpResourceLogsJson>? resourceLogs) 563var logRecords = new List<OtlpLogEntryDto>(); 806public static (List<TResult> items, string message) GetLimitFromEndWithSummary<T, TResult>( 807List<T> values, 820public static (List<TResult> items, string message) GetLimitFromEndWithSummary<T, TResult>( 821List<T> values, 831var trimmedItems = values.Count <= limit 837var dtos = trimmedItems.Select(i => convertToDto(i)).ToList(); 896internal sealed record OtlpTraceDto(string TraceId, List<OtlpSpanDto> Spans);
src\Shared\DashboardUrls.cs (4)
206public static string TelemetryLogsApiUrl(string baseUrl, List<string>? resources = null, string? traceId = null, string? severity = null, int? limit = null, bool? follow = null, string? search = null) 244public static string TelemetrySpansApiUrl(string baseUrl, List<string>? resources = null, string? traceId = null, bool? hasError = null, int? limit = null, bool? follow = null, string? search = null) 280public static string TelemetryTracesApiUrl(string baseUrl, List<string>? resources = null, bool? hasError = null, int? limit = null, string? search = null) 335private static string AddResourceParams(string url, List<string>? resources)
src\Shared\DurationFormatter.cs (1)
35private static readonly List<UnitStep> s_unitSteps = new List<UnitStep>
src\Shared\Export\ExportArchive.cs (1)
30public Dictionary<string, List<string>> ConsoleLogs { get; } = new();
src\Shared\IntegrationPackageProbeManifest.cs (8)
75var managedAssemblyList = managedLookup.Values.ToList(); 90var nativeLibraryList = nativeLookup.Values.ToList(); 182var candidatePaths = new List<string>(); 208var keys = new List<string>(); 272var lookup = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 278if (!lookup.TryGetValue(key, out var paths)) 381var managedAssemblies = new List<IntegrationPackageManagedAssembly>(); 403var nativeLibraries = new List<IntegrationPackageNativeLibrary>();
src\Shared\Mcp\McpIconHelper.cs (2)
22public static List<Icon> GetAspireIcons(Assembly assembly, string resourceNamespace) 25var icons = s_iconSizes.Select(s =>
src\Shared\Otlp\OtlpHelpers.cs (2)
137var compositeNameMatches = new List<T>(); 138var resourceNameMatches = new List<T>();
src\Shared\PackageUpdateHelpers.cs (2)
129public static List<NuGetPackage> ParsePackageSearchResults(string stdout, string? packageId = null) 131var foundPackages = new List<NuGetPackage>();
src\Shared\SearchTextParser.cs (4)
142var textFragments = new List<string>(); 143var qualifiers = new List<SearchQualifier>(); 144var negatedQualifiers = new List<SearchQualifier>(); 346var allFragments = new List<string>(filter.TextFragments);
src\Shared\UserSecrets\SecretsStore.cs (1)
66public List<KeyValuePair<string, string>> ToList() => [.. _secrets];
src\Shared\X509Certificate2Extensions.cs (2)
139public static List<X509Certificate2> GetTrustedCertificates( 158var trustedCertificates = new List<X509Certificate2>();
Telemetry\AspireCliTelemetry.cs (1)
249var tagsList = new List<KeyValuePair<string, object?>>();
Telemetry\CodingAgentDetector.cs (1)
53List<string>? agentNames = null;
Telemetry\InternalMicrosoftDetector.cs (11)
136var stage1 = new List<InternalMicrosoftProbe>(); 145var stage2 = new List<InternalMicrosoftProbe> 153var stage3 = new List<InternalMicrosoftProbe> 230var probeTasks = probes.Select(probe => RunProbeAsync(probe, stageCancellation.Token)).ToList(); 231var pendingTasks = probeTasks.ToList(); 569var tokenCandidates = DeduplicateTokenCandidates(GetGitHubTokenEnvironmentCandidates(cancellationToken)); 582var tokenCandidates = new List<TokenCandidate>(); 620var candidateTasks = candidatesToCheck 872var evidence = new List<TenantAliasEvidence>(); 988private static List<TokenCandidate> DeduplicateTokenCandidates(IEnumerable<TokenCandidate> candidates) 991var result = new List<TokenCandidate>();
Templating\DotNetTemplateFactory.cs (8)
250var extraArgs = new List<string>(); 261var extraArgs = new List<string>(); 270var extraArgs = new List<string>(); 280var extraArgs = new List<string>(); 287private async Task PromptForDevLocalhostTldOptionAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken) 303private async Task PromptForRedisCacheOptionAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken) 319private async Task PromptForTestFrameworkOptionsAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken) 363private async Task PromptForXUnitVersionOptionsAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken)
Templating\TemplateNuGetConfigService.cs (2)
295var packagesFromChannels = await interactionService.ShowStatusAsync(Resources.TemplatingStrings.SearchingForAvailableTemplateVersions, async () => 297var results = new List<(NuGetPackage Package, PackageChannel Channel)>();
Utils\AppHostArgumentRedactor.cs (1)
85var redacted = new List<string>(args.Count);
Utils\AppHostHelper.cs (1)
202var remainingSockets = new List<string>(socketPaths.Length);
Utils\ConfigurationHelper.cs (1)
307var colonKeys = new List<(string key, JsonNode? value)>();
Utils\ConsoleActivityLogger.cs (12)
33private List<StepDurationRecord>? _durationRecords; // Optional per-step duration breakdown 289var summaryParts = new List<string>(); 423var recordList = records.ToList(); 456var orderedRecords = OrderStepDurationsHierarchically(records); 522private static List<StepDurationRecord> OrderStepDurationsHierarchically(IReadOnlyList<StepDurationRecord> records) 524var orderedRecords = records 529var childrenByParent = new Dictionary<string, List<StepDurationRecord>>(StringComparers.CommandName); 537if (!childrenByParent.TryGetValue(parentKey, out var children)) 547foreach (var children in childrenByParent.Values) 558var result = new List<StepDurationRecord>(orderedRecords.Count); 579IReadOnlyDictionary<string, List<StepDurationRecord>> childrenByParent, 590if (!childrenByParent.TryGetValue(record.Key, out var children))
Utils\EnvironmentChecker\AspireVersionCheck.cs (2)
35var results = new List<EnvironmentCheckResult> 381var candidates = await projectLocator.FindAppHostProjectFilesAsync(
Utils\EnvironmentChecker\ContainerRuntimeCheck.cs (1)
52var results = new List<EnvironmentCheckResult>();
Utils\EnvironmentChecker\DcpConnectionChecker.cs (2)
237var arguments = new List<string> 410private static void AddDeveloperCertificateArguments(List<string> arguments, CertificateManager certificateManager, IEnvironment environment)
Utils\EnvironmentChecker\DcpKubeconfig.cs (2)
19public List<X509Certificate2> CertificateAuthorityCertificates { get; init; } = []; 131private static List<X509Certificate2> LoadCertificates(string base64Data)
Utils\EnvironmentChecker\DeprecatedAgentConfigCheck.cs (1)
41var results = new List<EnvironmentCheckResult>();
Utils\EnvironmentChecker\DevCertsCheck.cs (14)
40var results = EvaluateCertificateResults(trustResult.Certificates, environment); 70internal static List<EnvironmentCheckResult> EvaluateCertificateResults( 92var oldTrustedVersions = certInfos 98var results = new List<EnvironmentCheckResult>(); 219private async Task AddLinuxOpenSslCertificateCacheWarningsAsync(List<EnvironmentCheckResult> results, IReadOnlyList<DevCertInfo> certInfos, IEnvironment environment, CancellationToken cancellationToken) 226var currentCertificates = GetCurrentDevCertificates(certInfos).ToList(); 273var trustedThumbprints = GetTrustedThumbprints(currentCertificates); 285var unreadableFiles = new List<string>(); 286var mismatchedThumbprints = new List<string>(); 287var missingTrustedThumbprints = new List<string>(); 288var missingHashLinkThumbprints = new List<string>(); 480private static List<string> GetTrustedThumbprints(IReadOnlyList<DevCertInfo> currentCertificates) 491private static void AddLinuxCertificateToolWarnings(List<EnvironmentCheckResult> results, IEnvironment environment) 573var systemCertDirs = CertificateHelpers.GetSystemCertificateDirectories();
Utils\EnvironmentChecker\EnvironmentChecker.cs (1)
44var results = new List<EnvironmentCheckResult>();
Utils\EnvironmentChecker\EnvironmentCheckResult.cs (2)
165public required List<EnvironmentCheckResult> Checks { get; set; } 177public List<InstallationInfo>? Installations { get; set; }
Utils\EnvironmentChecker\PendingMigrationsCheck.cs (1)
42var results = new List<EnvironmentCheckResult>();
Utils\EnvironmentChecker\TypeScriptAppHostToolingCheck.cs (1)
85var missingResults = new List<EnvironmentCheckResult>();
Utils\FileSystemHelper.cs (1)
186var duplicateGroups = result
Utils\Markdown\MarkdownToSpectreConverter.Markup.cs (4)
177var rows = markdownTable.OfType<MarkdigTableRow>().ToList(); 184var markupValues = rows 188var plainValues = markupValues 195foreach (var row in plainValues)
Utils\Markdown\MarkdownToSpectreConverter.Renderable.cs (6)
33var renderables = converter.RenderBlocksToRenderables(document, normalizedMarkdown); 42private List<IRenderable> RenderBlocksToRenderables(ContainerBlock container, string markdown) 44var renderables = new List<IRenderable>(); 89var renderables = new List<IRenderable>(); 146var items = list.OfType<ListItemBlock>().ToList(); 179var rows = markdownTable.OfType<MarkdigTableRow>().ToList();
aspire-managed (39)
NuGet\Commands\ManifestCommand.cs (2)
130var managedAssemblies = new List<IntegrationPackageManagedAssembly>(); 131var nativeLibraries = new List<IntegrationPackageNativeLibrary>();
NuGet\Commands\NuGetPackageAssetResolver.cs (9)
72var assets = new List<NuGetPackageAsset>(); 150var assets = new List<NuGetPackageAsset>(); 163List<NuGetPackageAsset> assets, 188List<NuGetPackageAsset> assets, 246var runtimeIdentifiers = new List<string>(); 311List<NuGetPackageAsset> assets, 338List<NuGetPackageAsset> assets, 375List<NuGetPackageAsset> assets, 398List<NuGetPackageAsset> assets,
NuGet\Commands\RestoreCommand.cs (7)
107var packages = new List<(string Id, string Version)>(); 130List<(string Id, string Version)> packages, 170var packageSources = ResolvePackageSources(settings, cliSources, noNugetOrg); 235private static List<PackageSource> ResolvePackageSources(ISettings settings, string[] cliSources, bool noNugetOrg) 239var sources = provider.LoadPackageSources().Where(s => s.IsEnabled).ToList(); 265List<(string Id, string Version)> packages, 269List<PackageSource> sources,
NuGet\Commands\SearchCommand.cs (13)
117var allPackages = new List<PackageInfo>(); 123var packageSources = LoadPackageSources(settings, explicitSources, verbose); 132var searchTasks = packageSources.Select(async source => 151foreach (var packages in searchResults) 157var dedupedPackages = allPackages 192private static List<PackageSource> LoadPackageSources(ISettings settings, string[] explicitSources, bool verbose) 194var packageSources = new List<PackageSource>(); 234private static async Task<List<PackageInfo>> SearchSourceAsync( 258var packages = new List<PackageInfo>(); 262var allVersions = versions?.Select(v => v.Version.ToString()).ToList() ?? []; 279private static void OutputResults(List<PackageInfo> packages, string format) 314public List<PackageInfo> Packages { get; set; } = []; 333public List<string> AllVersions { get; set; } = [];
src\Shared\IntegrationPackageProbeManifest.cs (8)
75var managedAssemblyList = managedLookup.Values.ToList(); 90var nativeLibraryList = nativeLookup.Values.ToList(); 182var candidatePaths = new List<string>(); 208var keys = new List<string>(); 272var lookup = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 278if (!lookup.TryGetValue(key, out var paths)) 381var managedAssemblies = new List<IntegrationPackageManagedAssembly>(); 403var nativeLibraries = new List<IntegrationPackageNativeLibrary>();
Aspire.Acquisition.Tests (8)
Scripts\Common\RealGitHubPRFixture.cs (6)
68var prs = JsonSerializer.Deserialize<List<GitHubPR>>(stdoutJson) 108var runs = JsonSerializer.Deserialize<List<GitHubWorkflowRun>>(runsJson); 186var stdoutLines = new List<string>(); 240public List<Artifact>? Artifacts { get; set; }
Scripts\PRScriptInstallerModeTests.cs (1)
440var paths = new List<string>();
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
Aspire.Azure.AI.Inference (1)
ChatCompletionsClientSettings.cs (1)
103var deploymentKeys = new List<string>();
Aspire.Azure.Messaging.EventHubs (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Messaging.EventHubs.Tests (10)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (10)
17public List<MockRequest> Requests { get; } = new List<MockRequest>(); 78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 90if (!_headers.TryGetValue(header.Name, out var values)) 100if (_headers.TryGetValue(name, out var values)) 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 174if (!_headers.TryGetValue(header.Name, out var values)) 185if (_headers.TryGetValue(name, out var values)) 197var result = _headers.TryGetValue(name, out var valuesList);
Aspire.Azure.Messaging.ServiceBus (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Messaging.WebPubSub (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
tests\Aspire.Azure.Npgsql.Tests\FakeTokenCredential.cs (1)
42public List<string> RequestedScopes { get; } = [];
Aspire.Azure.Npgsql.Tests (1)
FakeTokenCredential.cs (1)
42public List<string> RequestedScopes { get; } = [];
Aspire.Azure.Security.KeyVault.Tests (10)
MockTransport.cs (10)
17public List<MockRequest> Requests { get; } = new List<MockRequest>(); 78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 90if (!_headers.TryGetValue(header.Name, out var values)) 100if (_headers.TryGetValue(name, out var values)) 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 174if (!_headers.TryGetValue(header.Name, out var values)) 185if (_headers.TryGetValue(name, out var values)) 197var result = _headers.TryGetValue(name, out var valuesList);
Aspire.Azure.Storage.Queues (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Cli.EndToEnd.Tests (10)
EmulatedLocalReleaseBuildTests.cs (1)
299var nuGetConfigs = projectDir
EmulatedReleasedBuildTests.cs (1)
212var nuGetConfigs = projectDir
EmulatedStagingBuildTests.cs (2)
250var nuGetConfigs = projectDir 362var nuGetConfigs = projectDir
Helpers\CliE2ETestHelpers.cs (2)
529var arguments = new List<string> 845var shas = new List<string>();
McpDocsE2ETests.cs (1)
272var docTools = tools.Where(t => t.Name is "list_docs" or "search_docs" or "get_doc").ToList();
ProjectReferenceTests.cs (1)
78var sourceLines = new List<string> { """<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />""" };
StartStopTests.cs (1)
483var instances = new List<RunningAppHostInfo>();
tests\Shared\CliPackageDiscovery.cs (1)
31var matches = Directory.GetFiles(packageDirectory, "Aspire.Cli.*.nupkg")
Aspire.Cli.Tests (545)
Acquisition\InstallationDiscoveryDiscoverAllTests.cs (1)
890var matching = results
Agents\AspireSkillsInstallerTests.cs (2)
947List<string> staleDirectories = []; 948List<string> recentDirectories = [];
Backchannel\AppHostAuxiliaryBackchannelTests.cs (2)
24var snapshots = await backchannel.GetResourceSnapshotsAsync(includeHidden: true).DefaultTimeout(); 86private readonly List<IDisposable> _disposables = [];
Backchannel\ResourceSnapshotMapperTests.cs (7)
90var allSnapshots = new List<ResourceSnapshot> { snapshot }; 401var snapshots = new List<ResourceSnapshot> 416var snapshots = new List<ResourceSnapshot> 431var snapshots = new List<ResourceSnapshot> 446var snapshots = new List<ResourceSnapshot> 462var snapshots = new List<ResourceSnapshot> 475var snapshots = new List<ResourceSnapshot>
BundleNuGetServiceTests.cs (1)
18var packages = new List<(string Id, string Version)>
Certificates\NativeCertificateToolRunnerTests.cs (2)
140public List<byte[]> Certificates { get; } = []; 146List<X509Certificate2> certificates,
Commands\AddCommandTests.cs (19)
1312var exactMatchQueries = new List<string>(); 1391var exactMatchQueries = new List<string>(); 1691var statusMessages = new List<string>(); 2193List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>? displayedPackages = null; 2204var choicesList = choices.Cast<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>().ToList(); 2241List<object>? displayedChoices = null; 2252var choicesList = choices.Cast<object>().ToList(); 2289List<object>? displayedChoices = null; 2300var choicesList = choices.Cast<object>().ToList(); 2347List<string>? displayedLabels = null; 2357var choicesList = choices.Cast<object>().ToList(); 2394List<string>? displayedLabels = null; 2399var choicesList = choices.Cast<object>().ToList(); 2421Assert.IsType<List<string>>(displayedLabels), 3408var queries = new List<string>(); 3586var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>(); 3790var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>(); 3849var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>(); 4019var promptedPackages = new List<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>();
Commands\AgentInitCommandTests.cs (12)
181var promptedSkillNames = new List<string>(); 186var items = choices.Cast<object>().ToList(); 228var items = choices.Cast<object>().ToList(); 292var items = choices.Cast<object>().ToList(); 335var promptedSkillNames = new List<string>(); 340var items = choices.Cast<object>().ToList(); 366var sorted = promptedSkillNames.OrderBy(static name => name, StringComparer.OrdinalIgnoreCase).ToList(); 425var promptedSkills = new List<SkillDefinition>(); 430var items = choices.Cast<object>().ToList(); 544var bundleSkillNames = installResult.Bundle.GetSkillDefinitions().Select(static s => s.Name).ToList(); 844var manifestSkills = new List<SkillBundleSkill>(); 930var subtleMessages = new List<string>();
Commands\AgentTelemetryCommandTests.cs (2)
257private static (List<Activity> Activities, ActivityListener Listener) CreateCapturingListener(out string reportedSourceName) 260var captured = new List<Activity>();
Commands\AppHostLauncherTests.cs (2)
503return Task.FromResult<List<ResourceSnapshot>>([]); 563return Task.FromResult<List<ResourceSnapshot>>([]);
Commands\DashboardRunCommandTests.cs (6)
472var args = new List<string> { "dashboard", $"--ASPNETCORE_URLS={urlValue}" }; 489var args = new List<string> { "dashboard" }; 503var args = new List<string> { "dashboard" }; 520var args = new List<string> { "dashboard" }; 537var args = new List<string> { "dashboard", "--ASPNETCORE_URLS=http://arghost:5555" }; 550var args = new List<string> { "dashboard", "--ASPNETCORE_URLS=http://localhost:18888" };
Commands\DescribeCommandTests.cs (9)
204var ndjsonLines = resources 222var parsedLines = ndjsonOutput.Split('\n') 283var jsonLines = outputWriter.Logs 327var resourceLines = outputWriter.Logs 359var jsonLines = outputWriter.Logs 510var jsonLines = outputWriter.Logs 618var jsonLines = outputWriter.Logs 646var jsonLines = outputWriter.Logs 658List<ResourceSnapshot> resourceSnapshots,
Commands\DoCommandTests.cs (1)
40var displayedErrors = new List<string>();
Commands\DocsCommandTests.cs (3)
281var docs = _documents.Values 293var results = new List<DocsSearchResult> 316var results = new List<SearchResult>
Commands\ExportCommandTests.cs (13)
69var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 288var entryNames = archive.Entries.Select(e => e.FullName).Order().ToList(); 350var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 468var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 526var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 586var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 636var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 678var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 722var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 797var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 844var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 869List<ResourceSnapshot> resourceSnapshots, 870List<ResourceLogLine> logLines,
Commands\ExtensionInternalCommandTests.cs (12)
247public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 249return Task.FromResult<List<AppHostProjectCandidate>>([new(_projectFile, "test")]); 252public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 254return Task.FromResult<List<FileInfo>>([_projectFile]); 295private readonly List<FileInfo> _projectFiles; 297public MultipleProjectsProjectLocator(List<FileInfo> projectFiles) 312public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 317public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 360public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 365public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 417public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 422public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
Commands\InitCommandTests.cs (4)
490var subtleMessages = new List<string>(); 494var items = choices.Cast<object>().ToList(); 538var subtleMessages = new List<string>(); 542var items = choices.Cast<object>().ToList();
Commands\LogsCommandTests.cs (11)
286var ndjsonLines = logLines 304var parsedLines = ndjsonOutput.Split('\n') 544var logLines = outputWriter.Logs.Where(l => l.StartsWith("2025-", StringComparison.Ordinal)).ToList(); 567var logLines = outputWriter.Logs.Where(l => l.StartsWith("[", StringComparison.Ordinal)).ToList(); 1195var requests = new List<GetConsoleLogsRequest>(); 1227var batchRequests = new List<GetConsoleLogsRequest>(); 1228var consoleRequests = new List<GetConsoleLogsRequest>(); 1312var legacyRequests = new List<(string? ResourceName, bool Follow)>(); 1313var consoleRequests = new List<GetConsoleLogsRequest>(); 1362var legacyRequests = new List<(string? ResourceName, bool Follow)>(); 1363var consoleRequests = new List<GetConsoleLogsRequest>();
Commands\LsCommandTests.cs (3)
119var candidateAppHosts = JsonSerializer.Deserialize(jsonOutput, JsonSourceGenerationContext.RelaxedEscaping.ListCandidateAppHostDisplayInfo); 200var candidateAppHosts = JsonSerializer.Deserialize(jsonOutput, JsonSourceGenerationContext.RelaxedEscaping.ListCandidateAppHostDisplayInfo); 677return Task.FromCanceled<List<AppHostProjectCandidate>>(cancellationToken);
Commands\McpIconHelperTests.cs (1)
19var icons = McpIconHelper.GetAspireIcons(assembly, resourceNamespace);
Commands\NewCommandChannelResolutionTests.cs (2)
664var channels = new List<PackageChannel> { implicitChannel, stableChannel }; 758public List<string> Errors { get; } = [];
Commands\NewCommandTemplateConfigPersistenceTests.cs (3)
249var dotNetTemplateInstalls = new List<DotNetTemplateInstall>(); 277var commandArguments = new List<string> 438var channels = new List<PackageChannel> { implicitChannel, stableChannel };
Commands\NewCommandTests.cs (2)
808var operationOrder = new List<string>(); 3008var displayedErrors = new List<string>();
Commands\PsCommandTests.cs (6)
165var appHosts = JsonSerializer.Deserialize(jsonOutput, PsCommandJsonContext.RelaxedEscaping.ListAppHostDisplayInfo); 343var appHosts = JsonSerializer.Deserialize(jsonOutput, PsCommandJsonContext.RelaxedEscaping.ListAppHostDisplayInfo); 583var outputLines = new List<string>(); 670var appHosts = JsonSerializer.Deserialize(jsonOutput, PsCommandJsonContext.RelaxedEscaping.ListAppHostDisplayInfo); 717var appHosts = JsonSerializer.Deserialize(jsonOutput, PsCommandJsonContext.RelaxedEscaping.ListAppHostDisplayInfo); 765private readonly List<IDisposable> _disposables = [];
Commands\PublishCommandPromptingIntegrationTests.cs (15)
122var options = new List<KeyValuePair<string, string>> 538var promptCalls = consoleService.StringPromptCalls; 592var promptCalls = consoleService.StringPromptCalls; 634var promptCalls = consoleService.StringPromptCalls; 746var promptCalls = consoleService.StringPromptCalls; 789var promptCalls = consoleService.StringPromptCalls; 1009private readonly List<PromptData> _promptsToSend = []; 1013public List<PromptData> ReceivedPrompts { get; } = []; 1014public List<PromptCompletion> CompletedPrompts { get; } = []; 1015public List<(string FilePath, string FileName, int InteractionId, string InputName)> UploadedFiles { get; } = []; 1038var inputs = prompt.Inputs.Select(input => new PublishingPromptInput 1143public List<StringPromptCall> StringPromptCalls { get; } = []; 1144public List<object> SelectionPromptCalls { get; } = []; // Using object to handle generic types 1145public List<BooleanPromptCall> BooleanPromptCalls { get; } = []; 1146public List<string> DisplayedErrors { get; } = [];
Commands\ResourceCommandTests.cs (3)
405var statuses = new List<string>(); 435var consoleOutputPerStatus = new List<(string Message, ConsoleOutput Console)>(); 492var statuses = new List<string>();
Commands\RootCommandTests.cs (2)
761var missingGroup = command.Subcommands 787var visibleCommands = command.Subcommands.Where(sub => !sub.Hidden).ToList();
Commands\RunCommandTests.cs (11)
1261public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 1266public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 1983public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 1988public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 2008public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 2013public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 3536public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 3539return Task.FromResult<List<AppHostProjectCandidate>>([new(appHostFile, "test")]); 3542public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 3544return Task.FromResult<List<FileInfo>>([new FileInfo("/tmp/apphost.cs")]); 4314var args = new List<string> { commandName, "--apphost", appHostFile.FullName };
Commands\SecretCommandTests.cs (4)
89public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 90=> Task.FromResult<List<AppHostProjectCandidate>>([new(appHostFile, "test")]); 92public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 93=> Task.FromResult<List<FileInfo>>([appHostFile]);
Commands\TelemetryCommandTests.cs (4)
201var result = TelemetryCommandHelpers.TryResolveResourceNames("api-a-1", resources, out var resolvedResources); 216var result = TelemetryCommandHelpers.TryResolveResourceNames("API", resources, out var resolvedResources); 231var result = TelemetryCommandHelpers.TryResolveResourceNames("api", resources, out var resolvedResources); 373var attrs = new List<OtlpKeyValueJson>
Commands\TelemetryLogsCommandTests.cs (3)
81var logLines = outputWriter.Logs.Where(l => l.Contains("redis") || l.Contains("apiservice")).ToList(); 116var logLines = outputWriter.Logs.Where(l => l.Contains("apiservice")).ToList(); 224var logLines = outputWriter.Logs.Where(l => l.Contains("redis")).ToList();
Commands\TelemetrySpansCommandTests.cs (3)
80var spanLines = outputWriter.Logs.Where(l => l.Contains("frontend") || l.Contains("backend")).ToList(); 115var spanLines = outputWriter.Logs.Where(l => l.Contains("apiservice")).ToList(); 197var spanLines = outputWriter.Logs.Where(l => l.Contains("frontend")).ToList();
Commands\TelemetryTestHelper.cs (1)
41var attrs = new List<OtlpKeyValueJson>
Commands\TelemetryTracesCommandTests.cs (2)
43var requestedHosts = new List<string>(); 152var requestedHosts = new List<string>();
Commands\TerminalCommandTests.cs (3)
440var parsed = JsonSerializer.Deserialize(stdout, TerminalPsJsonContext.Default.ListTerminalPsJsonEntry); 555var entries = JsonSerializer.Deserialize(stdout, TerminalPsJsonContext.Default.ListTerminalPsJsonEntry); 693public Task<List<ResourceSnapshot>> GetResourceSnapshotsAsync(bool includeHidden, CancellationToken cancellationToken = default)
Commands\UpdateCommandTests.cs (10)
950var subtleMessages = new List<string>(); 1061var subtleMessages = new List<string>(); 1089var subtleMessages = new List<string>(); 2407List<PackageChannel>? capturedChoices = null; 2860var channels = new List<PackageChannel> { implicitChannel, stagingChannel, dailyChannel }; 2974var channelList = capturedChoices.Cast<string>().ToList(); 3019var channelList = capturedChoices.Cast<string>().ToList(); 3064var channelList = capturedChoices.Cast<string>().ToList(); 3420var setKeys = new List<(string Key, string Value, bool IsGlobal)>(); 3421var deleteKeys = new List<(string Key, bool IsGlobal)>();
Configuration\AspireConfigFileTests.cs (2)
332var refs = config.GetIntegrationReferences("13.2.0", "/tmp").ToList(); 349var refs = config.GetIntegrationReferences("13.2.0", "/tmp").ToList();
Configuration\IntegrationReferenceTests.cs (6)
45var refs = config.GetIntegrationReferences("13.2.0", "/home/user/app").ToList(); 50var packageRefs = refs.Where(r => r.IsPackageReference).ToList(); 51var projectRefs = refs.Where(r => r.IsProjectReference).ToList(); 71var refs = config.GetIntegrationReferences("13.2.0", "/home/user/app").ToList(); 90var refs = config.GetIntegrationReferences("13.2.0", "/tmp").ToList(); 111var refs = config.GetIntegrationReferences("13.2.0", "/tmp").ToList();
Interaction\ExtensionInteractionServiceTests.cs (2)
115var displayedErrors = new List<string>(); 156var displayedErrors = new List<string>();
Interaction\KnownEmojisTests.cs (1)
15var fields = typeof(KnownEmojis)
Mcp\ApiDocs\ApiDocsIndexServiceTests.cs (2)
586public List<string> RequestedPageUrls { get; } = []; 588public List<string> RequestedMarkdownUrls { get; } = [];
Mcp\Docs\LlmsTxtParserTests.cs (8)
602var h2Sections = doc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 606var h3Sections = doc.Sections.Where(s => s.Level == 3).Select(s => s.Heading).ToList(); 704var h2Sections = certificatesDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 711var h3Sections = certificatesDoc.Sections.Where(s => s.Level == 3).ToList(); 723var h2Sections = appHostConfigDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 739var h2Sections = dockerComposeDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 755var h2Sections = eventingDoc.Sections.Where(s => s.Level == 2).Select(s => s.Heading).ToList(); 762var h3Sections = eventingDoc.Sections.Where(s => s.Level == 3).Select(s => s.Heading).ToList();
Mcp\E2E\McpDocsE2ETests.cs (1)
242var docTools = tools.Where(t => t.Name is "list_docs" or "search_docs" or "get_doc").ToList();
Mcp\ListIntegrationsToolTests.cs (1)
99var packageIds = integrations.EnumerateArray()
Mcp\ListStructuredLogsToolTests.cs (2)
59var attributes = new List<OtlpKeyValueJson> 379var requiredArray = required.EnumerateArray().Select(e => e.GetString()).ToList();
Mcp\ListTracesToolTests.cs (2)
28var attributes = new List<OtlpKeyValueJson> 330var attributes = new List<OtlpKeyValueJson>
Mcp\TestDocsIndexService.cs (3)
13private static readonly List<DocsListItem> s_defaultDocuments = 20private readonly List<DocsListItem> _documents; 75var results = _documents
NuGet\BundleNuGetServiceTests.cs (9)
29List<string[]> invocations = []; 107List<string[]> invocations = []; 141var packageList = new List<(string Id, string Version)> { ("Aspire.Hosting.JavaScript", "9.4.0") }; 153List<string[]> invocations = []; 185var packageList = new List<(string Id, string Version)> { ("Aspire.Hosting.JavaScript", "9.4.0") }; 197List<string[]> invocations = []; 360var packageList = new List<(string Id, string Version)> { ("Aspire.Hosting.JavaScript", "9.4.0") }; 388var packageList = new List<(string Id, string Version)> { ("Aspire.Hosting.JavaScript", "9.4.0") }; 396List<string[]> invocations = [];
NuGet\NuGetPackageCacheTests.cs (4)
79var packageIds = packages.Select(p => p.Id).ToList(); 121var packageIds = packages.Select(p => p.Id).ToList(); 167var packageIds = packages.Select(p => p.Id).ToList(); 202var packageIds = packages.Select(p => p.Id).ToList();
Packaging\PackagingServiceTests.cs (13)
38var channelNames = channels.Select(c => c.Name).ToList(); 73var channelNames = channels.Select(c => c.Name).ToList(); 647var channelNames = channels.Select(c => c.Name).ToList(); 703var channelNames = channels.Select(c => c.Name).ToList(); 859var channelNames = channels.Select(c => c.Name).ToList(); 967var channelNames = channels.Select(c => c.Name).ToList(); 1171var channelNames = channels.Select(c => c.Name).ToList(); 1220var channelNames = channels.Select(c => c.Name).ToList(); 1837var packageList = templatePackages.ToList(); 1889var packageList = integrationPackages.ToList(); 1940var packageList = templatePackages.ToList(); 2056var packageList = integrationPackages.ToList(); 2321private sealed class FakeNuGetPackageCacheWithPackages(List<Aspire.Shared.NuGetPackageCli> packages) : INuGetPackageCache
Packaging\TemporaryNuGetConfigTests.cs (2)
198var addKeys = new List<string>(); 207var mappingKeys = new List<string>();
Projects\AppHostCandidateFinderTests.cs (2)
218var startedActivities = new List<Activity>(); 274var startedActivities = new List<Activity>();
Projects\AppHostServerProjectTests.cs (9)
51var packages = new List<IntegrationReference> 75var packages = new List<IntegrationReference> 97var packages = new List<IntegrationReference> 118var packages = new List<IntegrationReference> 144var packages = new List<IntegrationReference> 166var packages = new List<IntegrationReference> 317var packages = new List<IntegrationReference> 400var packages = new List<IntegrationReference> 454var packages = new List<IntegrationReference>
Projects\AppHostServerSessionTests.cs (1)
398var unobserved = new List<Exception>();
Projects\DefaultLanguageDiscoveryTests.cs (2)
74var languages = (await discovery.GetAvailableLanguagesAsync().DefaultTimeout()).ToList(); 93var languages = (await discovery.GetAvailableLanguagesAsync().DefaultTimeout()).ToList();
Projects\DotNetAppHostProjectTests.cs (1)
22private readonly List<ServiceProvider> _serviceProviders = [];
Projects\ExtensionGuestLauncherTests.cs (9)
17List<string>? capturedArgs = null; 79List<EnvVar>? capturedEnv = null; 115List<string>? capturedArgs = null; 134private readonly Action<string, List<string>, List<EnvVar>, bool> _onLaunch; 136public FakeLaunchExtensionService(Action<string, List<string>, List<EnvVar>, bool> onLaunch) 145public Task LaunchAppHostAsync(string projectFile, List<string> arguments, List<EnvVar> environment, bool debug)
Projects\GuestAppHostProjectTests.cs (5)
281var refs = config.GetIntegrationReferences("13.1.0", "/tmp").ToList(); 300var refs = config.GetIntegrationReferences("13.1.0", "/tmp").ToList(); 321var refs = config.GetIntegrationReferences("13.1.0", "/tmp").ToList(); 344var refs = config.GetIntegrationReferences("13.1.0", "/tmp").ToList(); 367var refs = config.GetIntegrationReferences("13.1.0", "/home/user/app").ToList();
Projects\GuestRuntimeTests.cs (1)
1461public List<(string Command, string[] Args)> Calls { get; } = [];
Projects\PrebuiltAppHostServerTests.cs (42)
123var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 146var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 164var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 184var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 201var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("First", first) }; 214var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 230var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 243var projectRefs = new List<IntegrationReference> { IntegrationReference.FromProject("Aspire.Hosting.Java", referencedProject) }; 244var packageRefs = new List<IntegrationReference> { IntegrationReference.FromPackage("Aspire.Hosting.Redis", "13.5.0") }; 279var packageRefs = new List<IntegrationReference> { IntegrationReference.FromPackage("Aspire.Hosting.Redis", version) }; 287var packageRefs = new List<IntegrationReference> 365var packageRefs = new List<IntegrationReference> 370var projectRefs = new List<IntegrationReference>(); 375var packageElements = doc.Descendants("PackageReference").ToList(); 386var packageRefs = new List<IntegrationReference>(); 387var projectRefs = new List<IntegrationReference> 395var projectElements = doc.Descendants("ProjectReference").ToList(); 405var packageRefs = new List<IntegrationReference> 410var projectRefs = new List<IntegrationReference> 425var packageRefs = new List<IntegrationReference> 429var projectRefs = new List<IntegrationReference>(); 547var packageRefs = new List<IntegrationReference> 560var packageElements = doc.Descendants("PackageReference").ToList(); 1453List<string>? restoreArgs = null; 1494List<string>? restoreArgs = null; 1535List<string>? restoreArgs = null; 1594List<string>? restoreArgs = null; 1654List<string>? restoreArgs = null; 1713List<string>? restoreArgs = null; 1773List<string>? restoreArgs = null; 1828List<string>? restoreArgs = null; 2126var packageElements = generatedProject.Descendants("PackageReference").ToList(); 2254var packageElements = generatedProject.Descendants("PackageReference").ToList(); 2439var copiedLibs = Directory.GetFiles(Path.Combine(layoutPath, "libs"), "*", SearchOption.AllDirectories) 2450var managedAssemblies = probeManifest.RootElement.GetProperty("managedAssemblies").EnumerateArray().ToList(); 2491var copiedLibs = Directory.GetFiles(Path.Combine(layoutPath, "libs"), "*", SearchOption.AllDirectories) 2502var managedAssemblies = probeManifest.RootElement.GetProperty("managedAssemblies").EnumerateArray().ToList(); 2512var nativeLibraries = probeManifest.RootElement.GetProperty("nativeLibraries").EnumerateArray().ToList(); 2846var metadataLines = new List<string>(); 2847var sourcePaths = new List<string>(); 2848var targetPaths = new List<string>(); 2971var sources = new List<string>();
Projects\ProjectLocatorTests.cs (34)
297var appHostProjectFiles = new List<FileInfo>(); 312var projectLocators = appHostProjectFiles 317var callers = appHostProjectFiles 346var settingsFileMessages = interactionService.DisplayedMessages 1233var displayedSubtleMessages = new List<string>(); 1766var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 1791var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 1840var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 1867var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 1904var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 1936var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 2740var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 2784var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 2813var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 2836var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 2857var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 2880var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout(); 2908var foundFiles = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 2943var foundFiles = await projectLocator.FindAppHostProjectFilesAsync( 2973var foundFiles = await projectLocator.FindAppHostProjectFilesAsync( 3011var foundFiles = await projectLocator.FindAppHostProjectFilesAsync( 3051var foundFiles = await projectLocator.FindAppHostProjectFilesAsync( 3307var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout(); 3334var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.AllFiles, CancellationToken.None).DefaultTimeout(); 3363var found = await projectLocator.FindAppHostProjectFilesAsync(workspace.WorkspaceRoot.FullName, CancellationToken.None).DefaultTimeout(); 3394var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.AllFiles, CancellationToken.None).DefaultTimeout(); 3443var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.ExplicitDirectory, CancellationToken.None).DefaultTimeout(); 3475var found = await projectLocator.FindAppHostProjectFilesAsync( 3514var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout(); 3551var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout(); 3586var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout(); 4078var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout(); 4118var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout(); 4151var found = await projectLocator.FindAppHostProjectsAsync(workspace.WorkspaceRoot, AppHostDiscoveryScope.DefaultFiltered, CancellationToken.None).DefaultTimeout();
Projects\ProjectUpdaterTests.cs (45)
55var packages = new List<NuGetPackageCli>(); 171var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>(); 180var packages = new List<NuGetPackageCli>(); 334var packages = new List<NuGetPackageCli> 438var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>(); 447var packages = new List<NuGetPackageCli>(); 592var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>(); 602var packages = new List<NuGetPackageCli>(); 721var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>(); 730var packages = new List<NuGetPackageCli>(); 815var sharedProjectUpdates = packagesAddsExecuted.Where(p => p.ProjectFile.FullName == sharedProjectFile.FullName).ToList(); 823var appHostUpdates = packagesAddsExecuted.Where(p => p.ProjectFile.FullName == appHostProjectFile.FullName).ToList(); 880var updatedFiles = new List<string>(); 890var packages = new List<NuGetPackageCli>(); 1009var packages = new List<NuGetPackageCli>(); 1111var packages = new List<NuGetPackageCli>(); 1237var packages = new List<NuGetPackageCli> 1331var packages = new List<NuGetPackageCli> 1406var packages = new List<NuGetPackageCli> 1501var packages = new List<NuGetPackageCli> 1664var packages = new List<NuGetPackageCli> 1813var packages = new List<NuGetPackageCli>(); 1929var packages = new List<NuGetPackageCli>(); 2050var packages = new List<NuGetPackageCli>(); 2163var packages = new List<NuGetPackageCli>(); 2259var packages = new List<NuGetPackageCli>(); 2368var packages = new List<NuGetPackageCli>(); 2453var packages = new List<NuGetPackageCli>(); 2529var packages = new List<NuGetPackageCli>(); 2613var packages = new List<NuGetPackageCli>(); 2708var packages = new List<NuGetPackageCli> 2800var packages = new List<NuGetPackageCli> 2876var packages = new List<NuGetPackageCli>(); 2956var packages = new List<NuGetPackageCli>(); 3046var packages = new List<NuGetPackageCli>(); 3125var packages = new List<NuGetPackageCli>(); 3193var packagesUpdated = new List<string>(); 3203var packages = new List<NuGetPackageCli>(); 3338var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource, bool NoRestore)>(); 3348var packages = new List<NuGetPackageCli>(); 3722var calls = new List<string>(); 3804var addCalls = calls.Where(c => c.StartsWith("add:", StringComparison.Ordinal)).ToList(); 3809var restoreCalls = calls.Where(c => c.StartsWith("restore:", StringComparison.Ordinal)).ToList(); 3887var nugetConfigs = workspace.WorkspaceRoot 4051var nugetConfigs = workspace.WorkspaceRoot
Projects\RunningInstanceManagerTests.cs (1)
67private readonly List<IDisposable> _disposables = [];
Secrets\SecretsStoreTests.cs (1)
80var secrets = store2.AsEnumerable().ToList();
Telemetry\AspireCliTelemetryTests.cs (2)
122var events = activity.Events.ToList(); 185var events = reportedActivity.Events.ToList();
Telemetry\CliTagEnrichmentProcessorTests.cs (1)
51var expectedTags = new List<KeyValuePair<string, object?>>
Telemetry\InternalMicrosoftDetectorTests.cs (2)
96var calls = new List<string>(); 641private readonly List<string> _requestPaths = [];
Telemetry\ProfilingTelemetryContextTests.cs (2)
65var startedActivities = new List<Activity>(); 101var startedActivities = new List<Activity>();
Templating\DotNetTemplateFactoryTests.cs (8)
264var templates = (await factory.GetTemplatesAsync()).ToList(); 267var templateNames = templates.Select(t => t.Name).ToList(); 283var templates = (await factory.GetTemplatesAsync()).ToList(); 286var templateNames = templates.Select(t => t.Name).ToList(); 302var templates = (await factory.GetTemplatesAsync()).ToList(); 305var templateNames = templates.Select(t => t.Name).ToList(); 318var templates = (await factory.GetInitTemplatesAsync()).ToList(); 321var templateNames = templates.Select(t => t.Name).ToList();
Templating\TemplateNuGetConfigServiceTests.cs (1)
221var requestedChannels = new List<PackageChannelType>();
TestServices\CapturingLogger.cs (1)
14public List<(LogLevel Level, string Message)> Entries { get; } = new();
TestServices\FakePeerInstallProbe.cs (1)
18private readonly List<string> _probedPaths = new();
TestServices\NoProjectFileProjectLocator.cs (2)
10public Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 15public Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken)
TestServices\RecordingGracefulSignaler.cs (1)
12private readonly List<int> _pids = new();
TestServices\TestAppHostAuxiliaryBackchannel.cs (6)
29public List<ResourceSnapshot> ResourceSnapshots { get; set; } = []; 47public List<ResourceLogLine> LogLines { get; set; } = []; 63public Func<CancellationToken, Task<List<ResourceSnapshot>>>? GetResourceSnapshotsHandler { get; set; } 134public Task<List<ResourceSnapshot>> GetResourceSnapshotsAsync(bool includeHidden, CancellationToken cancellationToken = default) 141var snapshots = includeHidden 232var lines = new List<ResourceLogLine>(maxBatchSize);
TestServices\TestAppHostStopper.cs (1)
18public List<AppHostInformation?> StopRequests { get; } = [];
TestServices\TestAuxiliaryBackchannelMonitor.cs (2)
62var connections = Connections.ToList(); 86var inScopeConnections = connections.Where(c => c.IsInScope).ToList();
TestServices\TestExtensionBackchannel.cs (4)
75public Func<string, List<string>, List<EnvVar>, bool, Task>? LaunchAppHostAsyncCallback { get; set; } 248public Task LaunchAppHostAsync(string projectPath, List<string> arguments, List<EnvVar> envVars, bool debug, CancellationToken cancellationToken)
TestServices\TestExtensionInteractionService.cs (3)
30public List<(OutputLineStream Stream, string Line)> DisplayedLines { get; } = []; 239public Task LaunchAppHostAsync(string projectFile, List<string> arguments, List<EnvVar> environment, bool debug)
TestServices\TestInteractionService.cs (15)
47public List<StringPromptCall> StringPromptCalls { get; } = []; 48public List<FilePathPromptCall> FilePathPromptCalls { get; } = []; 49public List<BooleanPromptCall> BooleanPromptCalls { get; } = []; 50public List<string> DisplayedErrors { get; } = []; 51public List<string> ValidationFailures { get; } = []; 52public List<(KnownEmoji Emoji, string Message, ConsoleOutput? ConsoleOverride)> DisplayedMessages { get; } = []; 53public List<(OutputLineStream Stream, string Line)> DisplayedLines { get; } = []; 54public List<string> DisplayedPlainText { get; } = []; 55public List<(string Text, ConsoleOutput? ConsoleOverride)> DisplayedRawText { get; } = []; 56public List<IRenderable> DisplayedRenderables { get; } = []; 57public List<IRenderable> DisplayedLiveRenderables { get; } = []; 58public List<string> DisplayedSuccess { get; } = []; 59public List<string> ShownStatuses { get; } = []; 61public List<(string? Message, ConsoleOutput? ConsoleOverride)> DisplayedCancellations { get; } = []; 88public List<string> DynamicStatusTexts { get; } = [];
TestServices\TestMcpNotifier.cs (1)
13private readonly List<string> _notifications = [];
TestServices\TestProcessExecutionFactory.cs (1)
59public List<IProcessExecution> CreatedExecutions { get; } = [];
TestServices\TestProjectLocator.cs (7)
18public Func<DirectoryInfo, AppHostDiscoveryScope, CancellationToken, Task<List<AppHostProjectCandidate>>>? FindAppHostProjectsAsyncCallback { get; set; } 22public Func<DirectoryInfo, AppHostDiscoveryScope, CancellationToken, Task<List<FileInfo>>>? FindAppHostProjectFilesAsyncCallback { get; set; } 24public Func<DirectoryInfo, AppHostDiscoveryScope, int?, CancellationToken, Task<List<FileInfo>>>? FindAppHostProjectFilesWithDepthAsyncCallback { get; set; } 26public async Task<List<AppHostProjectCandidate>> FindAppHostProjectsAsync( 55var candidates = await FindAppHostProjectsAsync(searchDirectory, scope, cancellationToken); 62public async Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, CancellationToken cancellationToken) 72public async Task<List<FileInfo>> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, AppHostDiscoveryScope scope, int? maxDepth, CancellationToken cancellationToken)
TestServices\TestStartupErrorWriter.cs (2)
11public List<string> Lines { get; } = []; 12public List<string> MarkupLines { get; } = [];
Utils\AspireRepositoryDetectorTests.cs (1)
15private readonly List<string> _directoriesToDelete = [];
Utils\CliTestHelper.cs (1)
852public List<string> Logs { get; } = new List<string>();
Utils\ConsoleActivityLoggerTests.cs (6)
71var summary = new List<BackchannelPipelineSummaryItem> 101var summary = new List<BackchannelPipelineSummaryItem> 122var summary = new List<BackchannelPipelineSummaryItem> 147var summary = new List<BackchannelPipelineSummaryItem> 169var summary = new List<BackchannelPipelineSummaryItem> 191var summary = new List<BackchannelPipelineSummaryItem>
Utils\DevCertsCheckFixRecommendationTests.cs (15)
17var results = DevCertsCheck.EvaluateCertificateResults([], new HostEnvironment()); 29var certInfos = new List<DevCertInfo> 34var results = DevCertsCheck.EvaluateCertificateResults(certInfos, new HostEnvironment()); 46var certInfos = new List<DevCertInfo> 51var results = DevCertsCheck.EvaluateCertificateResults(certInfos, new HostEnvironment()); 61var certInfos = new List<DevCertInfo> 67var results = DevCertsCheck.EvaluateCertificateResults(certInfos, new HostEnvironment()); 79var certInfos = new List<DevCertInfo> 85var results = DevCertsCheck.EvaluateCertificateResults(certInfos, new HostEnvironment()); 97var certInfos = new List<DevCertInfo> 102var results = DevCertsCheck.EvaluateCertificateResults(certInfos, new HostEnvironment()); 116var certInfos = new List<DevCertInfo> 121var results = DevCertsCheck.EvaluateCertificateResults(certInfos, new HostEnvironment()); 133var certInfos = new List<DevCertInfo> 139var results = DevCertsCheck.EvaluateCertificateResults(certInfos, new HostEnvironment());
Utils\DevCertsCheckTests.cs (40)
123var results = DevCertsCheck.EvaluateCertificateResults([], new HostEnvironment()); 134var certs = new List<DevCertInfo> 140var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment()); 150var certs = new List<DevCertInfo> 156var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment()); 166var certs = new List<DevCertInfo> 172var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment()); 182var certs = new List<DevCertInfo> 187var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment()); 197var certs = new List<DevCertInfo> 202var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment()); 212var certs = new List<DevCertInfo> 217var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment()); 227var certs = new List<DevCertInfo> 232var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment()); 243var certs = new List<DevCertInfo> 249var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment()); 261var certs = new List<DevCertInfo> 267var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment()); 277var certs = new List<DevCertInfo> 284var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment()); 294var certs = new List<DevCertInfo> 299var results = DevCertsCheck.EvaluateCertificateResults(certs, new HostEnvironment()); 319var results = DevCertsCheck.EvaluateCertificateResults([], new HostEnvironment()); 328var certs = new List<DevCertInfo> 363var certs = new List<DevCertInfo> 409var certs = new List<DevCertInfo> 453var certs = new List<DevCertInfo> 504var certs = new List<DevCertInfo> 559var certs = new List<DevCertInfo> 609var certs = new List<DevCertInfo> 668var certs = new List<DevCertInfo> 725var certs = new List<DevCertInfo> 766var certs = new List<DevCertInfo> 810var certs = new List<DevCertInfo> 856var certs = new List<DevCertInfo> 902var certs = new List<DevCertInfo> 948var certs = new List<DevCertInfo> 991var certs = new List<DevCertInfo> 1027var certs = new List<DevCertInfo>
Utils\FileSystemHelperTests.cs (14)
261var paths = new List<string> 276var paths = new List<string> 291var paths = new List<string> 306var paths = new List<string> 321var paths = new List<string> { "/home/user/repos/MyApp/AppHost.cs" }; 331var paths = new List<string> { "/home/user/repos/MyApp/MyApp.AppHost.csproj" }; 341var paths = new List<string> 354var paths = new List<string> 369var paths = new List<string> 384var paths = new List<string> 407var paths = new List<string> 424var paths = new List<string> 441var paths = new List<string> 456var paths = new List<string>
Utils\IsolatedUserSecretsHelperTests.cs (1)
10private readonly List<string> _createdSecretIds = [];
Utils\OutputCollectorTests.cs (6)
43var lines = collector.GetLines().ToList(); 47var stdoutLines = lines.Where(l => l.Stream == OutputLineStream.StdOut).ToList(); 48var stderrLines = lines.Where(l => l.Stream == OutputLineStream.StdErr).ToList(); 62var snapshot = collector.GetLines().ToList(); 71var newSnapshot = collector.GetLines().ToList(); 102var finalLines = collector.GetLines().ToList();
Aspire.Components.Common.TestUtilities (4)
ActivityNotifier.cs (2)
18public async Task<List<Activity>> TakeAsync(int count, TimeSpan timeout) 20var activityList = new List<Activity>();
ConformanceTests.cs (2)
162List<string> registeredNames = new(); 526List<Activity> exportedActivities = new();
Aspire.Confluent.Kafka (6)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumer.cs (6)
28public List<TopicPartition> Assignment => this.consumer.Assignment; 30public List<string> Subscription => this.consumer.Subscription; 197public List<TopicPartitionOffset> Commit() 227public List<TopicPartitionOffset> Committed(TimeSpan timeout) 232public List<TopicPartitionOffset> Committed(IEnumerable<TopicPartition> partitions, TimeSpan timeout) 242public List<TopicPartitionOffset> OffsetsForTimes(IEnumerable<TopicPartitionTimestamp> timestampsToSearch, TimeSpan timeout)
Aspire.Confluent.Kafka.Tests (5)
Aspire8MetricsTests.cs (3)
21var statistics = variation.Statistics; 136var statistics = variation.Statistics; 339public required List<string> Statistics { get; set; }
OtelMetricsTests.cs (1)
33List<Metric> metrics = new();
OtelTracesTests.cs (1)
35List<Activity> activities = new();
Aspire.Dashboard (529)
Api\TelemetryApiService.cs (29)
35var resources = telemetryRepository.GetResources(); 36var resourceKeys = ResolveResourceKeys(resources, resourceNames); 45var spanFilters = new List<TelemetryFilter>(); 59var allSpans = result.PagedResult.Items; 64var spans = allSpans; 88var resources = telemetryRepository.GetResources(); 89var resourceKeys = ResolveResourceKeys(resources, resourceNames); 98var traceFilters = new List<TelemetryFilter>(); 110var allTraces = result.PagedResult.Items; 112var traces = allTraces; 132var spans = traces.SelectMany(t => t.Spans).ToList(); 157var spans = trace.Spans.ToList(); 177var resources = telemetryRepository.GetResources(); 178var resourceKeys = ResolveResourceKeys(resources, resourceNames); 186var filters = new List<TelemetryFilter>(); 225var logs = result.Items; 258var resourceKeys = await WaitForResourceKeysAsync(resourceNames, cancellationToken).ConfigureAwait(false); 261List<TelemetryFilter> spanFilters = []; 295var resourceKeys = await WaitForResourceKeysAsync(resourceNames, cancellationToken).ConfigureAwait(false); 298var filters = new List<TelemetryFilter>(); 347var resources = telemetryRepository.GetResources(); 368List<TelemetryFilter> filters, 369Action<SearchFilter, List<TelemetryFilter>> addFilters, 390private static void AddLogFiltersFromQualifiers(SearchFilter parsedSearch, List<TelemetryFilter> filters) 431private static void AddSpanFiltersFromQualifiers(SearchFilter parsedSearch, List<TelemetryFilter> filters) 526private async Task<List<ResourceKey>> WaitForResourceKeysAsync(string[]? resourceNames, CancellationToken cancellationToken) 545var resources = telemetryRepository.GetResources(); 560private static List<ResourceKey>? ResolveResourceKeys(IReadOnlyList<OtlpResource> resources, string[]? resourceNames) 567var keys = new List<ResourceKey>();
Authentication\Connection\ConnectionTypeMiddleware.cs (2)
15private readonly List<ConnectionType> _connectionTypes; 32public required List<ConnectionType> ConnectionTypes { get; init; }
Authentication\Connection\IConnectionTypeFeature.cs (1)
11List<ConnectionType> ConnectionTypes { get; }
Components\Controls\Chart\ChartBase.cs (7)
28private List<KeyValuePair<string, string>[]>? _renderedDimensionAttributes; 55public required List<OtlpResource> Resources { get; set; } 92var dimensionAttributes = InstrumentViewModel.MatchedDimensions.Select(d => d.Attributes).ToList(); 204private void ResolveExemplarSpans(List<ChartExemplar> exemplars) 243protected abstract Task OnChartUpdatedAsync(List<ChartTrace> traces, List<DateTimeOffset> xValues, List<ChartExemplar> exemplars, bool tickUpdate, DateTimeOffset inProgressDataTime, CancellationToken cancellationToken);
Components\Controls\Chart\ChartContainer.razor.cs (4)
44public required List<OtlpResource> Resources { get; set; } 127var matchedDimensions = instrument.Dimensions.Where(MatchDimension).ToList(); 216private List<DimensionFilterViewModel> CreateUpdatedFilters(bool hasInstrumentChanged) 218var filters = new List<DimensionFilterViewModel>();
Components\Controls\Chart\ChartData.cs (3)
8public required List<ChartTrace> Traces { get; init; } 9public required List<DateTimeOffset> XValues { get; init; } 10public required List<ChartExemplar> Exemplars { get; init; }
Components\Controls\Chart\ChartDataCalculator.cs (10)
24public ChartData CalculateChartValues(List<DimensionScope> dimensions, DateTimeOffset startTime, Func<DateTimeOffset, DateTimeOffset> toLocal, string yLabel) 27var yValues = new List<double?>(); 28var xValues = new List<DateTimeOffset>(); 68public ChartData CalculateHistogramValues(List<DimensionScope> dimensions, DateTimeOffset startTime, Func<DateTimeOffset, DateTimeOffset> toLocal, string yLabel) 77var xValues = new List<DateTimeOffset>(); 78var exemplars = new List<ChartExemplar>(); 133internal static bool TryCalculatePoint(List<DimensionScope> dimensions, DateTimeOffset start, DateTimeOffset end, out double pointValue) 186internal static bool TryCalculateHistogramPoints(List<DimensionScope> dimensions, DateTimeOffset start, DateTimeOffset end, Dictionary<int, ChartTrace> traces, List<ChartExemplar> exemplars, Func<DateTimeOffset, DateTimeOffset> toLocal) 302private static void CollectExemplars(List<ChartExemplar> exemplars, MetricValueBase metric, Func<DateTimeOffset, DateTimeOffset> toLocal)
Components\Controls\Chart\ChartTrace.cs (3)
10public List<double?> Values { get; } = new(); 11public List<double?> DiffValues { get; } = new(); 12public List<string?> Tooltips { get; } = new();
Components\Controls\Chart\MetricTable.razor.cs (12)
23private List<ChartExemplar> _exemplars = []; 45protected override async Task OnChartUpdatedAsync(List<ChartTrace> traces, List<DateTimeOffset> xValues, List<ChartExemplar> exemplars, bool tickUpdate, DateTimeOffset inProgressDataTime, CancellationToken cancellationToken) 77var metricView = _metricsView.ToList(); 78List<int> indices = []; 118private SortedList<DateTimeOffset, MetricViewBase> UpdateMetrics(out ISet<DateTimeOffset> addedXValues, List<ChartTrace> traces, List<DateTimeOffset> xValues, List<ChartExemplar> exemplars) 133var valueDiffs = traceValuesByPercentile.Select(kvp => 213var currentExemplars = exemplars.Where(e => (e.Start >= startTime || startTime == null) && (e.Start < endTime || endTime == null)).ToList(); 294public required List<ChartExemplar> Exemplars { get; set; }
Components\Controls\Chart\PlotlyChart.razor.cs (8)
58protected override async Task OnChartUpdatedAsync(List<ChartTrace> traces, List<DateTimeOffset> xValues, List<ChartExemplar> exemplars, bool tickUpdate, DateTimeOffset inProgressDataTime, CancellationToken cancellationToken) 110private PlotlyTrace CalculateExemplarsTrace(List<DateTimeOffset> xValues, List<ChartExemplar> exemplars) 120var exemplarGroups = new Dictionary<ExemplarGroupKey, List<ChartExemplar>>(); 127var groupExemplars = exemplars.Where(e => (e.Start >= g.Start || g.Start == null) && (e.Start < g.End || g.End == null)).ToList(); 134var sampledList = new List<ChartExemplar>(MaxExemplarsPerTick);
Components\Controls\ClearSignalsButton.razor.cs (1)
29private readonly List<MenuButtonItem> _clearMenuItems = new();
Components\Controls\LogLevelSelect.razor.cs (1)
12public required List<SelectViewModel<LogLevel?>> LogLevels { get; set; }
Components\Controls\ResourceActions.razor.cs (2)
56private readonly List<CommandViewModel> _highlightedCommands = new(); 71var menuItems = new List<MenuButtonItem>();
Components\Controls\ResourceDetails.razor.cs (7)
74private readonly List<DisplayedResourcePropertyViewModel> _displayedResourcePropertyViewModels = new(); 127private readonly List<MenuButtonItem> _resourceActionsMenuItems = []; 330var items = new List<ResourceDetailRelationshipViewModel>(); 334var matches = ResourceByName.Values 355var items = new List<ResourceDetailRelationshipViewModel>(); 375private List<DisplayedUrl> GetUrls() 433var valueMaskedValues = SensitiveGridItems.Select(i => i.IsValueMasked).Distinct().ToList();
Components\Controls\SpanActions.razor.cs (1)
34var menuItems = new List<MenuButtonItem>();
Components\Controls\SpanDetails.razor.cs (2)
75private readonly List<MenuButtonItem> _spanActionsMenuItems = []; 76private List<TelemetryPropertyViewModel> _contextAttributes = null!;
Components\Controls\SpanTypeSelect.razor.cs (1)
13public required List<SelectViewModel<SpanType>> SpanTypes { get; set; }
Components\Controls\StructuredLogActions.razor.cs (1)
30var menuItems = new List<MenuButtonItem>();
Components\Controls\StructuredLogDetails.razor.cs (7)
52private List<TelemetryPropertyViewModel> _logEntryAttributes = null!; 53private List<TelemetryPropertyViewModel> _contextAttributes = null!; 54private List<TelemetryPropertyViewModel> _exceptionAttributes = null!; 55private readonly List<MenuButtonItem> _logActionsMenuItems = []; 76var attributes = _viewModel.LogEntry.Attributes 154private static void MoveAttributes(List<TelemetryPropertyViewModel> source, List<TelemetryPropertyViewModel> destination, Func<TelemetryPropertyViewModel, bool> predicate)
Components\Controls\TraceActions.razor.cs (1)
27var menuItems = new List<MenuButtonItem>();
Components\Dialogs\FilterDialog.razor.cs (9)
18private List<SelectViewModel<FilterCondition>> _filterConditions = null!; 19private List<SelectViewModel<FilterCondition>> _stringFilterConditions = null!; 20private List<SelectViewModel<FilterCondition>> _numericFilterConditions = null!; 21private List<SelectViewModel<FilterCondition>> _dateFilterConditions = null!; 41private List<SelectViewModel<string>> _parameters = default!; 42private List<SelectViewModel<FieldValue>> _filteredValues = default!; 43private List<SelectViewModel<FieldValue>>? _allValues; 87var knownFields = Content.KnownKeys.Select(p => new SelectViewModel<string> { Id = p, Name = FieldTelemetryFilter.ResolveFieldName(p) }).ToList(); 88var customFields = Content.PropertyKeys.Select(p => new SelectViewModel<string> { Id = p, Name = FieldTelemetryFilter.ResolveFieldName(p) }).ToList();
Components\Dialogs\GenAIVisualizerDialog.razor.cs (4)
34private List<OtlpSpan> _contextSpans = default!; 107var newContextSpans = Content.GetContextGenAISpans(); 374TelemetryRepository telemetryRepository, ITelemetryErrorRecorder errorRecorder, List<OtlpResource> resources, Func<List<OtlpSpan>> getContextGenAISpans)
Components\Dialogs\InteractionsInputDialog.razor.cs (2)
44private List<InputViewModel> _inputDialogInputViewModels = default!; 233var fileReferences = new List<FileReferenceViewModel>();
Components\Dialogs\KeyboardShortcut.cs (1)
6public record KeyboardShortcutCategory(string Category, List<KeyboardShortcut> Shortcuts);
Components\Dialogs\ManageDataDialog.razor.cs (7)
207var data = new List<TelemetryDataRow>(); 232var data = new List<TelemetryDataRow>(); 245private static void PopulateDataRows(List<TelemetryDataRow> data, OtlpResource otlpResource, string resourceName) 278var items = new List<ManageDataGridItem>(); 561var consoleLogResourcesToFilter = selectedResources 602var files = args.ToList(); 688private void SelectAllDataTypesForResource(string resourceName, List<TelemetryDataRow> dataRows)
Components\Dialogs\SettingsDialog.razor.cs (1)
16private List<CultureInfo> _languageOptions = null!;
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
19private List<SelectViewModel<string>> _options = null!;
Components\Pages\ConsoleLogs.razor.cs (7)
188private readonly List<CommandViewModel> _highlightedCommands = new(); 189private readonly List<MenuButtonItem> _logsMenuItems = new(); 190private readonly List<MenuButtonItem> _resourceMenuItems = new(); 674var nested = new List<MenuButtonItem>(); 830var subscriptionsToCancel = _consoleLogsSubscriptions.Values.ToList(); 852var availableResources = _resourceByName.Values 1313var actualResources = _resourceByName.Values.Where(r => !r.IsResourceHidden(showHiddenResources: _showHiddenResources)).ToList();
Components\Pages\Metrics.razor.cs (7)
22private List<SelectViewModel<TimeSpan>> _durations = null!; 28private List<OtlpResource> _resources = default!; 29private List<SelectViewModel<ResourceTypeDetails>> _resourceViewModels = default!; 171var apps = _resourceViewModels.Where(e => e != _selectResource).ToList(); 223private bool ShouldClearSelectedMetrics(List<OtlpInstrumentSummary> instruments) 262public List<OtlpInstrumentSummary>? Instruments { get; set; } 333var instruments = TelemetryRepository.GetInstrumentsSummaries(selectedResourceKey.Value);
Components\Pages\Resources.razor.cs (10)
116private readonly List<MenuButtonItem> _resourcesMenuItems = new(); 126private readonly List<MenuButtonItem> _contextMenuItems = new(); 232var collapsedResult = await LocalStorage.GetAsync<List<string>>(_collapsedResourceNamesKey); 405var activeResources = _resourceByName.Values.Where(Filter).OrderBy(e => e.ResourceType).ThenBy(e => e.Name).ToList(); 456var orderedResources = ResourceGridViewModel.OrderNestedResources(filteredResources.ToList(), r => _collapsedResourceNames.Contains(r.PersistentKey)) 461var query = orderedResources 786var resourcesWithChildren = _resourceByName.Values 819private static List<DisplayedUrl> GetDisplayedUrls(ResourceViewModel resource) 967var escapedFilters = filters.Where(kvp => !kvp.Value).Select(kvp => StringUtils.Escape(kvp.Key)).ToList(); 1038var properties = new List<ComponentTelemetryProperty>
Components\Pages\StructuredLogs.razor.cs (7)
38private List<OtlpResource> _resources = default!; 39private List<SelectViewModel<ResourceTypeDetails>> _resourceViewModels = default!; 40private List<SelectViewModel<LogLevel?>> _logLevels = default!; 389private List<MenuButtonItem> GetFilterMenuItems() 495var filters = TelemetryFilterFormatter.DeserializeFiltersFromString(SerializedFilters); 556var genAISpans = new List<OtlpSpan>(); 596var filters = StructuredLogsViewModel.BuildFilters(fieldFilters, textFilter, SelectedLogLevel.Id);
Components\Pages\TraceDetail.razor.cs (16)
35private readonly List<IDisposable> _peerChangesSubscriptions = new(); 40private List<OtlpResource> _resources = default!; 41private readonly List<string> _collapsedSpanIds = []; 47private readonly List<MenuButtonItem> _traceActionsMenuItems = []; 49private List<SelectViewModel<SpanType>> _spanTypes = default!; 167var visibleItems = GetVisibleSpanViewModels().ToList(); 171var page = count > 0 278var result = TelemetryRepository.GetLogsForTrace(_trace.TraceId); 522var genAISpans = new List<OtlpSpan>(); 606private List<string> GetTraceSpanPropertyKeys() 636private List<MenuButtonItem> GetFilterMenuItems() 664public List<SpanWaterfallViewModel>? SpanWaterfallViewModels { get; set; } 666public List<FieldTelemetryFilter> Filters { get; } = []; 718List<FieldTelemetryFilter>? contextFilters = null; 719List<DurationFilter>? durationFilters = null; 761var directMatches = visibleViewModels
Components\Pages\Traces.razor.cs (5)
37private List<SelectViewModel<SpanType>> _spanTypes = default!; 38private List<OtlpResource> _resources = default!; 39private List<SelectViewModel<ResourceTypeDetails>> _resourceViewModels = default!; 312var filters = TelemetryFilterFormatter.DeserializeFiltersFromString(SerializedFilters); 395private List<MenuButtonItem> GetFilterMenuItems()
Components\ResourcesGridColumns\UnreadLogErrorsBadge.razor.cs (1)
48var resources = TelemetryRepository.GetResources();
Configuration\DashboardOptions.cs (5)
87public List<AllowedCertificateRule> AllowedCertificates { get; set; } = new(); 218private List<BindingAddress>? _parsedEndpointAddresses; 257var addresses = new List<BindingAddress>(parts.Length); 341public List<ClaimAction> ClaimActions { get; set; } = new(); 357List<string>? messages = null;
Configuration\EndpointInfo.cs (8)
11public static bool TryAddEndpoint(List<EndpointInfo> configuredEndpoints, BindingAddress? address, string name, HttpProtocols? httpProtocols, bool requireCertificate, ConnectionType connectionType) 22public static IEnumerable<KeyValuePair<BindingAddress, List<EndpointInfo>>> GroupEndpointsByAddress(IEnumerable<EndpointInfo> endpoints) 24var groups = new List<KeyValuePair<BindingAddress, List<EndpointInfo>>>(); 25var map = new Dictionary<string, List<EndpointInfo>>(); 34groups.Add(new KeyValuePair<BindingAddress, List<EndpointInfo>>(address, [endpoint])); 40if (!map.TryGetValue(key, out var list)) 54groups.Add(new KeyValuePair<BindingAddress, List<EndpointInfo>>(address, kvp.Value));
Configuration\ValidateDashboardOptions.cs (1)
27var errorMessages = new List<string>();
DashboardEndpointsBuilder.cs (1)
70if (!GlobalizationHelpers.ExpandedLocalizedCultures.TryGetValue(newLanguage.Name, out var availableCultures))
DashboardWebApplication.cs (6)
71private readonly List<Func<ResolvedEndpointInfo>> _frontendEndPointAccessor = new(); 75public List<Func<ResolvedEndpointInfo>> FrontendEndPointsAccessor 621var endpoints = new List<EndpointInfo>(); 638var notNullProtocols = addressEndpoints.Select(m => m.HttpProtocols).OfType<HttpProtocols>().ToList(); 681var connectionTypes = addressEndpoints.Select(m => m.ConnectionType).ToList(); 854var claimActions = dashboardOptions.Frontend.OpenIdConnect.ClaimActions;
Extensions\TelemetryFilterFormatter.cs (1)
83public static List<FieldTelemetryFilter> DeserializeFiltersFromString(string filtersString)
Model\CommonMenuItems.cs (1)
15List<MenuButtonItem> menuItems,
Model\ConsoleLogsFetcher.cs (6)
29private async Task<List<LogEntry>> FetchLogEntriesAsync(string resourceName, DateTime? filterDate, CancellationToken cancellationToken) 31var logEntries = new List<LogEntry>(); 56public async Task<Dictionary<string, List<LogEntry>>> FetchLogEntriesAsync(HashSet<string> resourceNames, CancellationToken cancellationToken) 63var resources = _dashboardClient.GetResources().Where(r => resourceNames.Contains(r.Name)).ToList(); 64var result = new Dictionary<string, List<LogEntry>>(StringComparer.OrdinalIgnoreCase); 70var logEntries = await FetchLogEntriesAsync(resource.Name, filterDate, cancellationToken).ConfigureAwait(false);
Model\ConsoleLogsManager.cs (2)
13private readonly List<ModelSubscription> _subscriptions = new List<ModelSubscription>(); 73internal List<ModelSubscription> GetSubscriptions()
Model\DimensionFilterViewModel.cs (1)
17public List<DimensionValueViewModel> Values { get; } = [];
Model\EnvironmentVariablesDialogViewModel.cs (1)
8public required List<EnvironmentVariableViewModel> EnvironmentVariables { get; init; }
Model\ExemplarsDialogViewModel.cs (2)
11public required List<ChartExemplar> Exemplars { get; init; } 12public required List<OtlpResource> Resources { get; init; }
Model\ExportHelpers.cs (2)
26var logs = telemetryRepository.GetLogsForSpan(span.TraceId, span.SpanId); 49var logs = telemetryRepository.GetLogsForTrace(trace.TraceId);
Model\FilterDialogViewModel.cs (2)
11public required List<string> KnownKeys { get; init; } 12public required List<string> PropertyKeys { get; init; }
Model\GenAI\GenAIItemPartViewModel.cs (1)
32public List<GenAIPartPropertyViewModel>? AdditionalProperties { get; init; }
Model\GenAI\GenAIItemViewModel.cs (1)
29public required List<GenAIItemPartViewModel> ItemParts { get; init; } = [];
Model\GenAI\GenAIMessageParsingHelper.cs (5)
17internal static (List<T> items, bool truncated) DeserializeArrayIncrementally<T>(string json, ReadElement<T> readElement) 29internal static (List<T> items, bool truncated) DeserializeArrayIncrementally<T>(ref Utf8JsonReader reader, ReadElement<T> readElement) 31var items = new List<T>(); 87internal static (string role, List<MessagePart> parts, bool partsTruncated) ReadChatMessage(ref Utf8JsonReader reader) 95List<MessagePart>? parts = null;
Model\GenAI\GenAIMessages.cs (2)
186public List<MessagePart> Parts { get; set; } = new(); 306[JsonSerializable(typeof(List<ChatMessage>))]
Model\GenAI\GenAISchemaHelpers.cs (1)
145var names = new List<string>();
Model\GenAI\GenAIVisualizerDialogViewModel.cs (23)
30public required Func<List<OtlpSpan>> GetContextGenAISpans { get; init; } 35public List<GenAIItemViewModel> Items { get; } = new List<GenAIItemViewModel>(); 36public List<GenAIItemViewModel> InputMessages { get; private set; } = default!; 37public List<GenAIItemViewModel> OutputMessages { get; private set; } = default!; 39public List<ToolDefinitionViewModel> ToolDefinitions { get; private set; } = new(); 40public List<EvaluationResultViewModel> Evaluations { get; private set; } = new(); 55Func<List<OtlpSpan>> getContextGenAISpans) 57var resources = telemetryRepository.GetResources(); 194private static bool AllMessagesHaveNoContent(List<GenAIItemViewModel> messageViewModels) 293var parts = instructionParts.Select(GenAIItemPartViewModel.CreateMessagePart).ToList(); 314var logEntries = GetSpanLogEntries(telemetryRepository, viewModel.Span); 319var parts = DeserializeEventContent(index, type.Value, item.Message); 339var parts = DeserializeEventContent(index, type.Value, content); 361var viewParts = parts.Select(GenAIItemPartViewModel.CreateMessagePart).ToList(); 407var parts = new List<GenAIItemPartViewModel> 434var parts = new List<GenAIItemPartViewModel> 489private static GenAIItemViewModel CreateMessage(GenAIVisualizerDialogViewModel viewModel, int currentIndex, GenAIItemType type, List<GenAIItemPartViewModel> parts, long? internalId) 502private static List<GenAIItemPartViewModel> DeserializeEventContent(int index, GenAIItemType type, string message) 504var messagePartViewModels = new List<GenAIItemPartViewModel>(); 540static void ProcessAssistantEvent(List<GenAIItemPartViewModel> messagePartViewModels, AssistantEvent assistantEvent) 596private static List<OtlpLogEntry> GetSpanLogEntries(TelemetryRepository telemetryRepository, OtlpSpan span) 618var evaluations = new List<EvaluationResultViewModel>(); 621var logEntries = GetSpanLogEntries(telemetryRepository, viewModel.Span);
Model\GenAI\ToolDefinitionSchema.cs (1)
15public List<JsonNode>? Enum { get; set; }
Model\IconResolver.cs (3)
14private static readonly List<IconSize> s_iconSizes = [IconSize.Size16, IconSize.Size20, IconSize.Size24]; 41var iconSizesTried = new List<IconSize> 76static bool TryGetIcon(List<IconSize> triedSizes, IconKey key, IconSize size, [NotNullWhen(true)] out CustomIcon? icon)
Model\InstrumentViewModel.cs (3)
12public List<DimensionScope>? MatchedDimensions { get; private set; } 14public List<Func<Task>> DataUpdateSubscriptions { get; } = []; 18public async Task UpdateDataAsync(OtlpInstrumentSummary instrument, List<DimensionScope> matchedDimensions)
Model\Interaction\InputViewModel.cs (6)
45var optionsVM = input.Options 65public List<SelectViewModel<string>> SelectOptions { get; private set; } = []; 127public List<FileReferenceViewModel> FileReferences { get; } = []; 133var successfulRefs = FileReferences.Where(f => f.Id is not null).ToList(); 140private static bool OptionsEqual(List<SelectViewModel<string>> existing, List<SelectViewModel<string>> incoming)
Model\Interaction\InteractionsInputsDialogViewModel.cs (1)
20public List<InteractionInput> Inputs => Interaction.InputsDialog!.InputItems.ToList();
Model\KnownPropertyLookup.cs (1)
15private readonly List<(KnownProperty Property, int SortOrder)> _resourceProperties;
Model\ManageData\ResourceDataRow.cs (1)
31public List<TelemetryDataRow> TelemetryData { get; set; } = [];
Model\Markdown\MarkdownProcessor.cs (1)
17public MarkdownProcessor(IStringLocalizer<ControlsStrings> loc, HashSet<string>? safeUrlSchemes, List<IMarkdownExtension> extensions)
Model\MenuButtonItem.cs (1)
11public List<MenuButtonItem>? NestedMenuItems { get; set; }
Model\NotificationService.cs (1)
14private readonly List<(string Id, NotificationEntry Entry)> _notifications = [];
Model\Otlp\KnownStructuredLogFields.cs (1)
18public static readonly List<string> AllFields = [
Model\Otlp\KnownTraceFields.cs (1)
21public static readonly List<string> AllFields = [
Model\Otlp\ResourcesSelectHelpers.cs (8)
17var allowedMatches = resources.Where(e => SupportType(e.Id?.Type, canSelectGrouping)).ToList(); 20var instanceIdMatches = allowedMatches.Where(e => string.Equals(name, e.Id?.InstanceId, StringComparisons.ResourceName)).ToList(); 28var replicaSetMatches = allowedMatches.Where(e => e.Id?.Type != OtlpResourceType.Instance && string.Equals(name, e.Id?.ReplicaSetName, StringComparisons.ResourceName)).ToList(); 64static SelectViewModel<ResourceTypeDetails> MultipleMatches(ICollection<SelectViewModel<ResourceTypeDetails>> resources, ILogger logger, string name, List<SelectViewModel<ResourceTypeDetails>> matches) 81public static List<SelectViewModel<ResourceTypeDetails>> CreateResources(List<OtlpResource> resources) 85var selectViewModels = new List<SelectViewModel<ResourceTypeDetails>>(); 118var sortedVMs = selectViewModels.OrderBy(vm => vm.Name, StringComparers.ResourceName).ToList();
Model\Otlp\SpanWaterfallViewModel.cs (14)
13public required List<SpanWaterfallViewModel> Children { get; init; } 20public required List<SpanLogEntryViewModel> SpanLogs { get; init; } 36public string GetTooltip(List<OtlpResource> allResources) 115List<FieldTelemetryFilter>? enabledFilters = null; 156public sealed record TraceDetailState(IOutgoingPeerResolver[] OutgoingPeerResolvers, List<string> CollapsedSpanIds, List<OtlpResource> AllResources); 158public static string GetTitle(OtlpSpan span, List<OtlpResource> allResources) 163public static List<SpanWaterfallViewModel> Create(OtlpTrace trace, List<OtlpLogEntry> logs, TraceDetailState state) 165var orderedSpans = new List<SpanWaterfallViewModel>(); 171groupedLogs.TryGetValue(span.SpanId, out var spanLogs); 182static SpanWaterfallViewModel CreateViewModel(OtlpSpan span, int depth, bool hidden, TraceDetailState state, List<OtlpLogEntry>? spanLogs, ref int currentSpanLogIndex) 200var spanLogVms = new List<SpanLogEntryViewModel>(); 251private static string? ResolveUninstrumentedPeerName(OtlpSpan span, IOutgoingPeerResolver[] outgoingPeerResolvers, List<OtlpResource> allResources)
Model\PlotlyTrace.cs (5)
9public required List<DateTimeOffset> X { get; init; } 10public required List<double?> Y { get; init; } 11public required List<string?> Tooltips { get; init; } 12public required List<object?> TraceData { get; init; } 18public required List<string> Periods { get; init; }
Model\ResourceDetailRelationshipViewModel.cs (1)
10public required List<string> Types { get; set; }
Model\ResourceGraph\ResourceGraphMapper.cs (2)
17var resolvedNames = new List<string>(); 24var matches = graphResources
Model\ResourceGridViewModel.cs (4)
13public List<ResourceGridViewModel> Children { get; } = []; 36public static List<ResourceGridViewModel> OrderNestedResources(List<ResourceGridViewModel> initialGridVMs, Func<ResourceViewModel, bool> isCollapsed) 42var gridViewModels = new List<ResourceGridViewModel>();
Model\ResourceMenuBuilder.cs (10)
61List<MenuButtonItem> menuItems, 146private void AddUrlMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource) 148var urls = ResourceUrlHelpers.GetUrls(resource, includeInternalUrls: false, includeNonEndpointUrls: true) 161var urlItems = new List<MenuButtonItem>(); 203private void AddTelemetryMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, IDictionary<string, ResourceViewModel> resourceByName) 255private void AddCommandMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, EventCallback<CommandViewModel> commandSelected, Func<ResourceViewModel, CommandViewModel, bool> isCommandExecuting) 257var menuCommands = resource.Commands 266var highlightedMenuCommands = menuCommands.Where(c => c.IsHighlighted).ToList(); 267var otherMenuCommands = menuCommands.Where(c => !c.IsHighlighted).ToList(); 281var commands = new List<MenuButtonItem>();
Model\ResourceOutgoingPeerResolver.cs (2)
28private readonly List<ModelSubscription> _subscriptions = []; 269private static readonly List<Func<string, string>> s_addressTransformers = [
Model\ResourceSourceViewModel.cs (5)
11internal sealed record ResourceSourceViewModel(string value, List<LaunchArgument>? contentAfterValue, string valueToVisualize, string tooltip) 14public List<LaunchArgument>? ContentAfterValue { get; } = contentAfterValue; 59var arguments = launchArguments 76var arguments = executableArguments.IsDefaultOrEmpty ? [] : executableArguments.Select(arg => new LaunchArgument(arg, true)).ToList(); 85private record CommandLineInfo(List<LaunchArgument> Arguments, string ArgumentsString, string TooltipString);
Model\ResourceUrlHelpers.cs (3)
13public static List<DisplayedUrl> GetUrls(ResourceViewModel resource, bool includeInternalUrls = false, bool includeNonEndpointUrls = false) 15var urls = new List<DisplayedUrl>(resource.Urls.Length); 53var orderedUrls = urls
Model\ResourceViewModel.cs (2)
68var addresses = new List<string>(); 239var resourcesWithDisplayName = resourceByName.Values.Where(r => string.Equals(resourceName, r.DisplayName, StringComparisons.ResourceName)).ToList();
Model\SpanDetailsViewModel.cs (8)
16public required List<TelemetryPropertyViewModel> Properties { get; init; } 17public required List<SpanLinkViewModel> Links { get; init; } 18public required List<SpanLinkViewModel> Backlinks { get; init; } 20public required List<OtlpResource> Resources { get; init; } 22public static SpanDetailsViewModel Create(OtlpSpan span, TelemetryRepository telemetryRepository, List<OtlpResource> resources) 28var entryProperties = span.GetKnownProperties().Select(CreateTelemetryProperty).ToList(); 42var links = span.Links.Select(l => CreateLinkViewModel(l.TraceId, l.SpanId, l.Attributes, telemetryRepository, traceCache)).ToList(); 43var backlinks = span.BackLinks.Select(l => CreateLinkViewModel(l.SourceTraceId, l.SourceSpanId, l.Attributes, telemetryRepository, traceCache)).ToList();
Model\SpanMenuBuilder.cs (1)
59List<MenuButtonItem> menuItems,
Model\SpanType.cs (1)
64public static List<SelectViewModel<SpanType>> CreateKnownSpanTypes(IStringLocalizer<ControlsStrings> loc)
Model\StructuredLogMenuBuilder.cs (1)
49List<MenuButtonItem> menuItems,
Model\StructuredLogsViewModel.cs (6)
15private readonly List<FieldTelemetryFilter> _filters = new(); 114var filters = GetFilters(); 130public List<TelemetryFilter> GetFilters() => BuildFilters(Filters, FilterText, _logLevel); 136internal static List<TelemetryFilter> BuildFilters(IReadOnlyList<FieldTelemetryFilter> fieldFilters, string? filterText, LogLevel? logLevel) 138var filters = fieldFilters.Cast<TelemetryFilter>().ToList(); 157var filters = GetFilters();
Model\TelemetryExportService.cs (26)
59var allOtlpResources = _telemetryRepository.GetResources(); 62List<ResourceViewModel> resourceDetailsResources = []; 80var structuredLogResources = allOtlpResources 84var traceResources = allOtlpResources 88var metricsResources = allOtlpResources 139var lines = logEntries 147private static void AddResources(ExportArchive exportArchive, List<ResourceViewModel> resources) 157private void AddStructuredLogs(ExportArchive exportArchive, List<OtlpResource> resources) 173private void AddTraces(ExportArchive exportArchive, List<OtlpResource> resources) 189private void AddMetrics(ExportArchive exportArchive, List<OtlpResource> resources) 193var instrumentSummaries = _telemetryRepository.GetInstrumentsSummaries(resource.ResourceKey); 201var instrumentsData = new List<OtlpInstrumentData>(); 229internal static OtlpTelemetryDataJson ConvertLogsToOtlpJson(List<OtlpLogEntry> logs) 305var allSpans = traces.SelectMany(t => t.Spans).ToList(); 309internal static string ConvertSpanToJson(OtlpSpan span, IOutgoingPeerResolver[] outgoingPeerResolvers, List<OtlpLogEntry>? logs = null, bool indent = true) 334internal static string ConvertTraceToJson(OtlpTrace trace, IOutgoingPeerResolver[] outgoingPeerResolvers, List<OtlpLogEntry>? logs = null) 446private static OtlpResourceLogsJson[]? ConvertLogsToResourceLogs(List<OtlpLogEntry>? logs) 473internal static OtlpTelemetryDataJson ConvertMetricsToOtlpJson(OtlpResource resource, List<OtlpInstrumentData> instruments) 535private static OtlpNumberDataPointJson[] ConvertNumberDataPoints(List<DimensionScope> dimensions) 537var dataPoints = new List<OtlpNumberDataPointJson>(); 568private static OtlpHistogramDataPointJson[] ConvertHistogramDataPoints(List<DimensionScope> dimensions) 570var dataPoints = new List<OtlpHistogramDataPointJson>(); 600private static OtlpExemplarJson[] ConvertExemplars(List<MetricsExemplar> exemplars) 614var attributes = new List<OtlpKeyValueJson> 702var relationships = new List<ResourceRelationshipJson>(); 705var matches = allResources
Model\TextVisualizerViewModel.cs (4)
22public List<StringLogLine> Lines { get; set; } = []; 23public List<StringLogLine> FormattedLines { get; set; } = []; 103private static List<StringLogLine> GetLines(string text, string formatKind) 105var lines = text.Split(["\r\n", "\r", "\n"], StringSplitOptions.None).ToList();
Model\ThemeManager.cs (1)
51private readonly List<ModelSubscription> _subscriptions = new List<ModelSubscription>();
Model\TraceHelpers.cs (5)
19var spanLookup = new Dictionary<OtlpSpan, List<OtlpSpan>>(); 20var unrootedSpans = new List<OtlpSpan>(); 29ref var childSpans = ref CollectionsMarshal.GetValueRefOrAddDefault(spanLookup, parentSpan, out _); 44static void Visit(Dictionary<OtlpSpan, List<OtlpSpan>> spanLookup, OtlpSpan span, Func<OtlpSpan, TState, TState> spanAction, TState state, Func<OtlpSpan, DateTime> orderByFunc) 46if (spanLookup.TryGetValue(span, out var childSpans))
Model\TraceMenuBuilder.cs (1)
55List<MenuButtonItem> menuItems,
Model\TracesViewModel.cs (5)
13private readonly List<FieldTelemetryFilter> _filters = new(); 83var filters = GetFilters(); 108var filters = Filters.Cast<TelemetryFilter>().ToList(); 129private List<TelemetryFilter> GetFilters() 131var filters = Filters.Cast<TelemetryFilter>().ToList();
Otlp\Model\MetricValues\MetricValueBase.cs (2)
11private List<MetricsExemplar>? _exemplars; 13public List<MetricsExemplar> Exemplars => _exemplars ??= new List<MetricsExemplar>();
Otlp\Model\OtlpHelpers.cs (3)
198List<KeyValuePair<string, string>>? values = null; 234static int GetIndex(List<KeyValuePair<string, string>> values, string name) 428List<TResult> items;
Otlp\Model\OtlpInstrument.cs (5)
30public required List<DimensionScope> Dimensions { get; init; } 31public required Dictionary<string, List<string?>> KnownAttributeValues { get; init; } 42public Dictionary<string, List<string?>> KnownAttributeValues { get; } = new(); 87ref var values = ref CollectionsMarshal.GetValueRefOrAddDefault(KnownAttributeValues, key, out var existed); 113static void TryAddValue(List<string?> values, string? value, int maxValues)
Otlp\Model\OtlpResource.cs (4)
266public List<OtlpInstrumentSummary> GetInstrumentsSummary() 272var instruments = new List<OtlpInstrumentSummary>(_instruments.Count); 285public static Dictionary<string, List<OtlpResource>> GetReplicasByResourceName(IEnumerable<OtlpResource> allResources) 295internal List<OtlpResourceView> GetViews() => _resourceViews.Values.ToList();
Otlp\Model\OtlpResourceView.cs (2)
42public List<OtlpDisplayField> AllProperties() 44var props = new List<OtlpDisplayField>
Otlp\Model\OtlpSpan.cs (7)
41public required List<OtlpSpanEvent> Events { get; init; } 42public required List<OtlpSpanLink> Links { get; init; } 43public required List<OtlpSpanLink> BackLinks { get; init; } 104public List<OtlpDisplayField> GetKnownProperties() 106var props = new List<OtlpDisplayField> 126public List<OtlpDisplayField> GetAttributeProperties() 128var props = new List<OtlpDisplayField>();
Otlp\Model\OtlpSpanCollection.cs (2)
22public new List<OtlpSpan>.Enumerator GetEnumerator() 25return ((List<OtlpSpan>)this.Items).GetEnumerator();
Otlp\Storage\GetLogsContext.cs (1)
13public required List<TelemetryFilter> Filters { get; init; }
Otlp\Storage\GetSpansRequest.cs (1)
13public required List<TelemetryFilter> Filters { get; init; }
Otlp\Storage\GetTracesRequest.cs (1)
13public required List<TelemetryFilter> Filters { get; init; }
Otlp\Storage\PagedResult.cs (1)
16public required List<T> Items { get; init; }
Otlp\Storage\TelemetryRepository.cs (61)
43private readonly List<Subscription> _resourceSubscriptions = new(); 44private readonly List<Subscription> _logSubscriptions = new(); 45private readonly List<Subscription> _metricsSubscriptions = new(); 46private readonly List<Subscription> _tracesSubscriptions = new(); 50private List<SpanWatcher>? _spanWatchers; 51private List<LogWatcher>? _logWatchers; 71private readonly List<OtlpSpanLink> _spanLinks = new(); 72private readonly List<IDisposable> _peerResolverSubscriptions = new(); 82internal List<OtlpSpanLink> SpanLinks => _spanLinks; 83internal List<Subscription> TracesSubscriptions => _tracesSubscriptions; 117public List<OtlpResource> GetResources(bool includeUninstrumentedPeers = false) 122public List<OtlpResource> GetResourcesByName(string name, bool includeUninstrumentedPeers = false) 127private List<OtlpResource> GetResourcesCore(bool includeUninstrumentedPeers, string? name) 139var resources = results.OrderBy(a => a.ResourceKey).ToList(); 167public List<OtlpResource> GetResources(ResourceKey key, bool includeUninstrumentedPeers = false) 213var resources = GetResources(key.Value); 300private Subscription AddSubscription(string name, ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback, List<Subscription> subscriptions) 319private void RaiseSubscriptionChanged(List<Subscription> subscriptions) 361List<OtlpLogEntry>? addedLogs = null; 444List<OtlpResource>? resources = null; 515public List<OtlpLogEntry> GetLogsForSpan(string traceId, string spanId) 546public List<OtlpLogEntry> GetLogsForTrace(string traceId) 566public List<string> GetLogPropertyKeys(ResourceKey? resourceKey) 568List<OtlpResource>? resources = null; 593public List<string> GetTracePropertyKeys(ResourceKey? resourceKey) 595List<OtlpResource>? resources = null; 622List<OtlpResource>? resources = null; 645var filters = context.Filters.GetEnabledFilters().ToList(); 646var optimizedFilters = CreateOptimizedTraceFilters(filters); 647var resourceFilter = resources is { Count: > 0 } ? resources : null; 653List<OtlpTrace>? items = null; 718List<OtlpResource>? resources = null; 740var filters = context.Filters.GetEnabledFilters().ToList(); 741var resourceFilter = resources is { Count: > 0 } ? resources : null; 745List<OtlpSpan>? items = null; 799private static bool MatchesSpanCriteria(OtlpSpan span, string? traceId, bool? hasError, List<TelemetryFilter> filters, string[]? textFragments) 827private static bool MatchesSpanFilters(OtlpSpan span, List<TelemetryFilter> filters) 946private static List<TraceFilter>? CreateOptimizedTraceFilters(List<TelemetryFilter> filters) 948List<TraceFilter>? result = null; 968private static bool MatchesFilters(OtlpTrace trace, List<TelemetryFilter> filters, List<TraceFilter>? optimizedFilters) 1027private static bool MatchesFilters(OtlpTrace trace, List<TraceFilter> optimizedFilters) 1249private static bool MatchResources(ResourceKey resourceKey, List<OtlpResource> resources) 1262private static bool MatchResources(OtlpTrace t, List<OtlpResource> resources) 1314var allOtlpResources = GetResources(); 1360List<OtlpResource>? resources = null; 1422List<OtlpResource>? resources = null; 1484List<OtlpResource> resources; 1724List<OtlpSpan>? addedSpans = null; 1986var currentSpanLinks = _spanLinks.ToList(); 2026var events = new List<OtlpSpanEvent>(); 2028var links = new List<OtlpSpanLink>(); 2077public List<OtlpInstrumentSummary> GetInstrumentsSummaries(ResourceKey key) 2079var resources = GetResources(key); 2090var allResourceSummaries = resources 2102var resources = GetResources(request.ResourceKey); 2103var instruments = resources 2125var allDimensions = new List<DimensionScope>(); 2126var allKnownAttributes = new Dictionary<string, List<string?>>(); 2135ref var values = ref CollectionsMarshal.GetValueRefOrAddDefault(allKnownAttributes, knownAttributeValues.Key, out _);
Otlp\Storage\TelemetryRepository.Watchers.cs (3)
207private void PushSpansToWatchers(List<OtlpSpan> spans, ResourceKey resourceKey) 247private void PushLogsToWatchers(List<OtlpLogEntry> logs, ResourceKey resourceKey) 298private static bool MatchesFilters(OtlpLogEntry log, List<TelemetryFilter> filters)
Otlp\Storage\WatchLogsRequest.cs (1)
11public required List<TelemetryFilter> Filters { get; init; }
Otlp\Storage\WatchSpansRequest.cs (1)
11public required List<TelemetryFilter> Filters { get; init; }
ServiceClient\DashboardClient.cs (2)
554List<ResourceViewModelChange>? changes = null; 876async IAsyncEnumerable<WatchInteractionsResponseUpdate> StreamUpdatesAsync(List<WatchInteractionsResponseUpdate> pendingInteractions, [EnumeratorCancellation] CancellationToken enumeratorCancellationToken = default)
src\Shared\ChannelExtensions.cs (2)
34List<T>? batch = null; 84List<T>? batch = null;
src\Shared\CircularBuffer.cs (2)
19internal readonly List<T> _buffer; 29internal CircularBuffer(List<T> buffer, int capacity, int start, int end)
src\Shared\ColorGenerator.cs (1)
58private readonly List<AccentColor> _colors;
src\Shared\ConsoleLogs\AnsiParser.cs (3)
309List<int> ret = new(2); 457var classes = new List<string>(2); 458var styles = new List<string>(2);
src\Shared\ConsoleLogs\LogEntries.cs (2)
18private readonly List<LogPauseViewModel> _pauseViewModels = []; 43var pauseEntries = _logEntries.Where(e => e.Type == LogEntryType.Pause && _pauseViewModels.Contains(e.Pause!)).ToList();
src\Shared\DashboardUrls.cs (4)
206public static string TelemetryLogsApiUrl(string baseUrl, List<string>? resources = null, string? traceId = null, string? severity = null, int? limit = null, bool? follow = null, string? search = null) 244public static string TelemetrySpansApiUrl(string baseUrl, List<string>? resources = null, string? traceId = null, bool? hasError = null, int? limit = null, bool? follow = null, string? search = null) 280public static string TelemetryTracesApiUrl(string baseUrl, List<string>? resources = null, bool? hasError = null, int? limit = null, string? search = null) 335private static string AddResourceParams(string url, List<string>? resources)
src\Shared\DurationFormatter.cs (1)
35private static readonly List<UnitStep> s_unitSteps = new List<UnitStep>
src\Shared\Export\ExportArchive.cs (1)
30public Dictionary<string, List<string>> ConsoleLogs { get; } = new();
src\Shared\LoggingHelpers.cs (1)
47var parameters = new List<object?>();
src\Shared\Otlp\OtlpHelpers.cs (2)
137var compositeNameMatches = new List<T>(); 138var resourceNameMatches = new List<T>();
src\Shared\SearchTextParser.cs (4)
142var textFragments = new List<string>(); 143var qualifiers = new List<SearchQualifier>(); 144var negatedQualifiers = new List<SearchQualifier>(); 346var allFragments = new List<string>(filter.TextFragments);
Telemetry\DashboardTelemetryService.cs (1)
340public void PostCommandLineFlags(List<string> flagPrefixes, Dictionary<string, AspireTelemetryProperty> additionalProperties)
Telemetry\TelemetryRequests.cs (1)
18public record PostCommandLineFlagsRequest(List<string> FlagPrefixes, Dictionary<string, AspireTelemetryProperty> AdditionalProperties);
Utils\DashboardUIHelpers.cs (1)
155var maskedParts = new List<string>();
Utils\FilterHelpers.cs (4)
22public static List<MenuButtonItem> GetFilterMenuItems( 30var filterMenuItems = new List<MenuButtonItem>(); 101List<string> propertyKeys, 102List<string> knownKeys,
Utils\GlobalizationHelpers.cs (13)
18public static List<CultureInfo> OrderedLocalizedCultures { get; } 20public static List<CultureInfo> AllCultures { get; } 22public static Dictionary<string, List<CultureInfo>> ExpandedLocalizedCultures { get; } 26var localizedCultureInfos = LocaleHelpers.SupportedLocales.Select(CultureInfo.GetCultureInfo).ToList(); 45private static Dictionary<string, List<CultureInfo>> GetExpandedLocalizedCultures(List<CultureInfo> localizedCultures, List<CultureInfo> allCultures) 47var dict = new Dictionary<string, List<CultureInfo>>(StringComparers.CultureName); 50var selfAndChildren = new List<CultureInfo>(); 80private static List<CultureInfo> GetAllCultures() 82var allCultures = CultureInfo.GetCultures(CultureTypes.AllCultures).ToList(); 103public static bool TryGetKnownParentCulture(List<CultureInfo> knownCultures, CultureInfo culture, [NotNullWhen(true)] out CultureInfo? matchedCulture) 141internal static async Task<RequestCulture?> ResolveSetCultureToAcceptedCultureAsync(string acceptLanguage, List<CultureInfo> availableCultures)
Aspire.Dashboard.Components.Tests (56)
Controls\AspireMenuButtonTests.cs (1)
73var invocations = menuButtonModule.Invocations.ToList();
Controls\AspireMenuTests.cs (3)
82var items = new List<MenuButtonItem> 125var items = new List<MenuButtonItem> 167var items = new List<MenuButtonItem>
Controls\ChartFiltersTests.cs (2)
161var ordered = ChartFilterTags.GetOrderedValues(dimensionFilter.Values).Select(v => v.Text).ToList(); 174var ordered = ChartFilterTags.GetOrderedValues(dimensionFilter.Values).Select(v => v.Text).ToList();
Controls\GenAIVisualizerDialogTests.cs (3)
204var resources = repository.GetResources(); 287var resources = repository.GetResources(); 300List<OtlpSpan> GetContextGenAISpans()
Controls\LogViewerTests.cs (4)
107var contents = cut.FindAll(".log-content").Select(e => e.TextContent.Trim()).ToList(); 128var contents = cut.FindAll(".log-content").Select(e => e.TextContent.Trim()).ToList(); 277var contents = cut.FindAll(".log-content").Select(e => e.TextContent.Trim()).ToList(); 311var contents = cut.FindAll(".log-content").Select(e => e.TextContent.Trim()).ToList();
Controls\ResourceDetailsTests.cs (3)
644var envVars = cut.Instance.FilteredEnvironmentVariables.ToList(); 680var volumes = cut.Instance.FilteredVolumes.ToList(); 716var healthReports = cut.Instance.FilteredHealthReports.ToList();
Controls\UrlsColumnDisplayTests.cs (3)
26var displayedUrls = CreateDisplayedUrls(totalUrls); 52var displayedUrls = CreateDisplayedUrls(totalUrls); 68private static List<DisplayedUrl> CreateDisplayedUrls(int count)
Layout\MainLayoutTests.cs (1)
431public List<Invocation> Invocations { get; } = [];
Layout\MobileNavMenuTests.cs (1)
137var inactiveItems = cut.FindAll("fluent-menu-item")
Pages\ConsoleLogsTests.cs (4)
219var optionValues = selectOptions.Select(opt => opt.GetAttribute("value")).ToList(); 244var updatedOptionValues = updatedOptions.Select(opt => opt.GetAttribute("value")).ToList(); 268var finalOptionValues = finalOptions.Select(opt => opt.GetAttribute("value")).ToList(); 317var hiddenResourcesMenuItems = menuItems.Where(item =>
Pages\ResourcesTests.cs (25)
37var initialResources = new List<ResourceViewModel> 126var initialResources = new List<ResourceViewModel> 188var initialResources = new List<ResourceViewModel> 324var initialResources = new List<ResourceViewModel> 353var initialResources = new List<ResourceViewModel> 450var initialResources = new List<ResourceViewModel> 487var filteredResources = cut.Instance.GetFilteredResources().ToList(); 584var initialResources = new List<ResourceViewModel> 610var initialResources = new List<ResourceViewModel> 627var filteredResources = cut.Instance.GetFilteredResources().ToList(); 638var initialResources = new List<ResourceViewModel> 658var filteredResources = cut.Instance.GetFilteredResources().ToList(); 669var initialResources = new List<ResourceViewModel> 691var filteredResources = cut.Instance.GetFilteredResources().ToList(); 702var initialResources = new List<ResourceViewModel> 725var filteredResources = cut.Instance.GetFilteredResources().ToList(); 785var initialResources = new List<ResourceViewModel> 802var filteredResources = cut.Instance.GetFilteredResources().ToList(); 828var initialResources = new List<ResourceViewModel> 862var initialResources = new List<ResourceViewModel> 879var filteredResources = cut.Instance.GetFilteredResources().ToList(); 906var initialResources = new List<ResourceViewModel> 923var filteredResources = cut.Instance.GetFilteredResources().ToList(); 937var initialResources = new List<ResourceViewModel> 953var getAsyncCallOrder = new List<(string Key, bool ConnectionCompleted)>();
Pages\TraceDetailsTests.cs (4)
515var filteredItems = TraceDetail.TraceDetailPageViewModel.ApplySpanFilters( 540var rootMatchFilteredItems = TraceDetail.TraceDetailPageViewModel.ApplySpanFilters( 634var filteredItems = TraceDetail.TraceDetailPageViewModel.ApplySpanFilters( 798var expandContainers = cut
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
156public static Span CreateSpan(string traceId, string spanId, DateTime startTime, DateTime endTime, string? parentSpanId = null, List<Span.Types.Event>? events = null, List<Span.Types.Link>? links = null, IEnumerable<KeyValuePair<string, string>>? attributes = null, Span.Types.SpanKind? kind = null, Status? status = null)
Aspire.Dashboard.Tests (227)
AssemblyExtensionsTests.cs (1)
77private readonly List<Attribute> _customAttributes = [];
BrowserSecurityHeadersMiddlewareTests.cs (1)
84public required List<ConnectionType> ConnectionTypes { get; init; }
ChannelExtensionsTests.cs (2)
18var batches = new List<int[]>(); 36var batches = new List<int[]>();
CircularBufferTests.cs (1)
641var values = new List<string>
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (3)
19var resources = new List<ResourceViewModel> 51var resources = new List<ResourceViewModel> 141var resources = new List<ResourceViewModel>
GlobalizationHelpersTests.cs (4)
17var supportedCultures = GlobalizationHelpers.ExpandedLocalizedCultures 37var displayNames = GlobalizationHelpers.OrderedLocalizedCultures 66var cultureOptions = new List<CultureInfo> 100var englishCultures = GlobalizationHelpers.ExpandedLocalizedCultures[requestedLanguage];
Integration\FrontendBrowserTokenAuthTests.cs (7)
90var endpoints = app.FrontendEndPointsAccessor 138var endpoints = app.FrontendEndPointsAccessor 176var endpoints = app.FrontendEndPointsAccessor 199var deletedCookies = signoutResponse.Headers.GetValues("Set-Cookie").ToList(); 370var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 446var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList(); 474var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList();
Integration\OtlpHttpJsonTests.cs (4)
490var resources = telemetryRepository.GetResourcesByName("my.service"); 714var instruments = resource.GetInstrumentsSummary(); 762var resources = telemetryRepository.GetResourcesByName("copilot-chat"); 765var instruments = resource.GetInstrumentsSummary();
Integration\OtlpHttpServiceTests.cs (1)
287var logs = testSink.Writes.Where(w =>
Integration\Playwright\AccessibilityTests.cs (6)
203var states = new List<(string Name, (int R, int G, int B) Foreground, (int R, int G, int B) Background)>(); 216var failures = states 303var failures = new List<string>(); 412var blockingViolations = axeResults.Violations 468var contextParts = new List<string> { $"{theme} theme" }; 511var other = results.Violations.Where(v => !blocking.Contains(v)).ToList();
Integration\Playwright\BrowserTokenAuthenticationTests.cs (1)
209var endpoints = DashboardServerFixture.DashboardApp.FrontendEndPointsAccessor
Integration\Playwright\MobileNavMenuTests.cs (1)
88var focusHistory = new List<string?>();
Integration\ServerRetryHelper.cs (4)
35public static async Task BindPortsWithRetry(Func<List<int>, Task> retryFunc, ILogger logger, int portCount) 49var ports = new List<int>(portCount); 102var unavailableEndpoints = new List<IPEndPoint>(); 149static void AddEndpoints(int startingPort, List<IPEndPoint> endpoints, IEnumerable<IPEndPoint> activeEndpoints)
Integration\StartupTests.cs (5)
655var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 715var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 774var warnings = testSink.Writes 837var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Information).ToList(); 1025var loggerProviderTypes = loggerProviders.Select(p => p.GetType()).ToList();
Markdown\MarkdownProcessorTests.cs (1)
373internal static MarkdownProcessor CreateMarkdownProcessor(HashSet<string>? safeUrlSchemes = null, List<IMarkdownExtension>? extensions = null)
Model\ApplicationsSelectHelpersTests.cs (8)
23var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 68var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 85var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 106var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 122var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 175var appVMs = new List<SelectViewModel<ResourceTypeDetails>> 197var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 234var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource>
Model\DashboardClientTests.cs (3)
267var stateChanges = new List<DashboardConnectionState>(); 283var stateChanges = new List<DashboardConnectionState>(); 298var stateChanges = new List<DashboardConnectionState>();
Model\GenAIVisualizerDialogViewModelTests.cs (5)
291var events = new List<Span.Types.Event> 383var events = new List<Span.Types.Event> 438var events = new List<Span.Types.Event> 1812var events = new List<Span.Types.Event> 1965var events = new List<Span.Types.Event>
Model\ResourceMenuBuilderTests.cs (8)
58var menuItems = new List<MenuButtonItem>(); 108var menuItems = new List<MenuButtonItem>(); 158var menuItems = new List<MenuButtonItem>(); 194var menuItems = new List<MenuButtonItem>(); 227var menuItems = new List<MenuButtonItem>(); 273var menuItems = new List<MenuButtonItem>(); 311var menuItems = new List<MenuButtonItem>(); 352var menuItems = new List<MenuButtonItem>();
Model\ResourceSourceViewModelTests.cs (1)
211List<ExpectedLaunchArgument>? ContentAfterValue,
Model\ResourceUrlHelpersTests.cs (12)
12public static List<DisplayedUrl> GetUrls(ResourceViewModel resource, bool includeInternalUrls = false) 20var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [])); 28var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [new("Test", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)])); 44var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 71var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 98var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 134var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 161var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 180var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 199var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 227var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 246var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [
Model\SpanWaterfallViewModelTests.cs (10)
32var vm = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([], [], [])); 63var vm = SpanWaterfallViewModel.Create(trace, [log], new SpanWaterfallViewModel.TraceDetailState([], [], [])); 92var vm = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([new BrowserLinkOutgoingPeerResolver()], [], [])); 237var vms = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([], [], [])); 259var vms = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([], [], [])); 302var filters = new List<FieldTelemetryFilter> 339var filters = new List<FieldTelemetryFilter> 376var filters = new List<FieldTelemetryFilter> 412var vms = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([], [], [])); 417var filters = new List<FieldTelemetryFilter>
Model\TelemetryExportServiceTests.cs (20)
52var resources = repository.GetResources(); 119var resources = repository.GetResources(); 166var resources = repository.GetResources(); 238var resources = repository.GetResources(); 285var resources = repository.GetResources(); 357var resources = repository.GetResources(); 404var resources = repository.GetResources(); 453var resources = repository.GetResources(); 488var resources = repository.GetResources(); 490var instrumentSummaries = repository.GetInstrumentsSummaries(resource.ResourceKey); 493var instrumentsData = new List<OtlpInstrumentData>(); 574var resources = repository.GetResources(); 576var instrumentSummaries = repository.GetInstrumentsSummaries(resource.ResourceKey); 579var instrumentsData = new List<OtlpInstrumentData>(); 649var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(e => e).ToList(); 720var entryNames = archive.Entries.Select(e => e.FullName).Order().ToList(); 778var entryNames = archive.Entries.Select(e => e.FullName).Order().ToList(); 944var logs = repository.GetLogs(GetLogsContext.ForResourceKey(repository.GetResources()[0].ResourceKey)).Items; 1004var logs = repository.GetLogs(GetLogsContext.ForResourceKey(repository.GetResources()[0].ResourceKey)).Items; 1106var allResources = repository.GetResources();
Model\TelemetryImportServiceTests.cs (16)
63var resources = repository.GetResources(); 88var resources = repository.GetResources(); 111var resources = repository.GetResources(); 114var instruments = resources[0].GetInstrumentsSummary(); 151var resources = repository.GetResources(); 193var resources = repository.GetResources(); 210var resources = repository.GetResources(); 227var resources = repository.GetResources(); 244var resources = repository.GetResources(); 261var resources = repository.GetResources(); 288var resources = sourceRepository.GetResources(); 304var importedResources = targetRepository.GetResources(); 339var resources = sourceRepository.GetResources(); 361var importedResources = targetRepository.GetResources(); 400var resources = sourceRepository.GetResources(); 416var importedResources = targetRepository.GetResources();
Model\TraceDetailPageViewModelTests.cs (1)
154private static SpanWaterfallViewModel CreateSpanWaterfallViewModel(OtlpSpan span, List<SpanLogEntryViewModel>? spanLogs = null)
ResourceOutgoingPeerResolverTests.cs (2)
193var attributes = new List<KeyValuePair<string, string>> 218var attributes = new List<KeyValuePair<string, string>>
TelemetryApiServiceTests.cs (13)
31var receivedItems = new List<string>(); 52var receivedItems = new List<string>(); 90var receivedItems = new List<string>(); 113var receivedItems = new List<string>(); 170var receivedItems = new List<string>(); 236var spanIds = GetAllSpans(result).Select(s => DecodeSpanId(s.SpanId)).ToList(); 265var spans = GetAllSpans(result); 301var spans = GetAllSpans(result); 448var spans = GetAllSpans(result); 473var spanIds = GetAllSpans(result).Select(s => DecodeSpanId(s.SpanId)).ToList(); 515var spans = GetAllSpans(result); 793private static List<OtlpSpanJson> GetAllSpans(TelemetryApiResponse result) 919var resources = repository.GetResources();
TelemetryFilterFormatterTests.cs (4)
29var filters = TelemetryFilterFormatter.DeserializeFiltersFromString(serializedFilters); 55var filters = TelemetryFilterFormatter.DeserializeFiltersFromString(serializedFilters); 75var filters = TelemetryFilterFormatter.DeserializeFiltersFromString(serializedFilters); 96var filters = TelemetryFilterFormatter.DeserializeFiltersFromString(serializedFilters);
TelemetryRepositoryTests\LogTests.cs (9)
57var resources = repository.GetResources(); 88var propertyKeys = repository.GetLogPropertyKeys(resources[0].ResourceKey)!; 439var propertyKeys = repository.GetLogPropertyKeys(new ResourceKey("TestService", "UnknownResource")); 480var resources = repository.GetResources(); 621var attributes = new List<KeyValuePair<string, string>> 652var resources = repository.GetResources(); 911var resources = repository.GetResources(); 1054var propertyKeys = repository.GetLogPropertyKeys(resourceKey)!; 1499var filters = new List<TelemetryFilter>
TelemetryRepositoryTests\MetricsTests.cs (20)
63var resources = repository.GetResources(); 71var instruments = repository.GetInstrumentsSummaries(resources[0].ResourceKey); 109var metricAttributes = new List<KeyValuePair<string, string>>(); 110var meterAttributes = new List<KeyValuePair<string, string>>(); 143var resources = repository.GetResources(); 223var metricAttributes = new List<KeyValuePair<string, string>>(); 224var meterAttributes = new List<KeyValuePair<string, string>> 259var resources = repository.GetResources(); 357var resources = repository.GetResources(); 464var resources = repository.GetResources(); 573var instruments = repository.GetInstrumentsSummaries(resourceKey); 694var resource1Instruments = repository.GetInstrumentsSummaries(resource1Key); 698var resource2Instruments = repository.GetInstrumentsSummaries(resource2Key); 769var resource1Instruments = repository.GetInstrumentsSummaries(resource1Key); 812var resource2Instruments = repository.GetInstrumentsSummaries(resource2Key); 927var resource1Instruments = repository.GetInstrumentsSummaries(resource1Key); 953var resource2Instruments = repository.GetInstrumentsSummaries(resource2Key); 1034var resource1Instruments = repository.GetInstrumentsSummaries(resource1Key); 1295var resources = repository.GetResources(); 1303var instruments = repository.GetInstrumentsSummaries(resources[0].ResourceKey);
TelemetryRepositoryTests\OtlpSpanTests.cs (2)
29var knownProperties = span.GetKnownProperties(); 30var attributeProperties = span.GetAttributeProperties();
TelemetryRepositoryTests\ResourceTests.cs (6)
25var resources = repository.GetResources(); 68var resources1 = repository.GetResources(new ResourceKey("app1", InstanceId: null)); 84var resources2 = repository.GetResources(new ResourceKey("app2", InstanceId: null)); 106var resources = repository.GetResources(); 139var resources = repository.GetResources(); 163var resources = repository.GetResources();
TelemetryRepositoryTests\TelemetryLimitTests.cs (2)
150var resources = repository.GetResources(); 151var instruments = repository.GetInstrumentsSummaries(resources[0].ResourceKey);
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (22)
240var resource1Metrics = repository.GetInstrumentsSummaries(new ResourceKey("resource1", "123")); 252var resource2Metrics = repository.GetInstrumentsSummaries(new ResourceKey("resource2", "456")); 283var resource1Metrics = repository.GetInstrumentsSummaries(new ResourceKey("resource1", "111")); 286var resource3Metrics = repository.GetInstrumentsSummaries(new ResourceKey("resource3", "333")); 325var resources = repository.GetResources(); 355var metrics = repository.GetInstrumentsSummaries(new ResourceKey("resource1", "123")); 388var receivedSpans = new List<OtlpSpan>(); 506var receivedLogs = new List<OtlpLogEntry>(); 660var receivedSpans = new List<OtlpSpan>(); 738var receivedSpans = new List<OtlpSpan>(); 807var receivedSpans = new List<OtlpSpan>(); 882var receivedSpans = new List<OtlpSpan>(); 913var receivedLogs = new List<OtlpLogEntry>(); 941var filters = new List<TelemetryFilter> 972var receivedLogs = new List<OtlpLogEntry>(); 1032var filters = new List<TelemetryFilter> 1063var receivedLogs = new List<OtlpLogEntry>(); 1146var receivedLogs = new List<OtlpLogEntry>(); 1209var filters = new List<TelemetryFilter> 1249var receivedLogs = new List<OtlpLogEntry>(); 1306var filters = new List<TelemetryFilter> 1346var receivedSpans = new List<OtlpSpan>();
TelemetryRepositoryTests\TestOutgoingPeerResolver.cs (1)
12private readonly List<Func<Task>> _callbacks;
TelemetryRepositoryTests\TraceTests.cs (18)
70var resources = repository.GetResources(); 129var resources = repository.GetResources(); 183var resources = repository.GetResources(); 237var resources = repository.GetResources(); 307var resources = repository.GetResources(); 383var resources = repository.GetResources(); 756var attributes = new List<KeyValuePair<string, string>>(); 763var events = new List<Span.Types.Event>(); 793var resources = repository.GetResources(); 915var resources = repository.GetResources(); 938var actualOrder = traces.PagedResult.Items.Select(t => t.TraceId).ToList(); 939var expectedOrder = traces.PagedResult.Items.OrderBy(t => t.FirstSpan.StartTime).Select(t => t.TraceId).ToList(); 1115var propertyKeys = repository.GetTracePropertyKeys(resourceKey)!; 1625var views = resource.GetViews().OrderBy(v => v.Properties.Length).ToList(); 2097var resources = repository.GetResources(includeUninstrumentedPeers: true); 2183var resources = repository.GetResources(includeUninstrumentedPeers: true); 2284var resources = repository.GetResources(includeUninstrumentedPeers: true); 2505var resources = repository.GetResources();
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
156public static Span CreateSpan(string traceId, string spanId, DateTime startTime, DateTime endTime, string? parentSpanId = null, List<Span.Types.Event>? events = null, List<Span.Types.Link>? links = null, IEnumerable<KeyValuePair<string, string>>? attributes = null, Span.Types.SpanKind? kind = null, Status? status = null)
Aspire.Deployment.EndToEnd.Tests (2)
Helpers\DeploymentE2ETestHelpers.cs (1)
189var candidates = new List<string>();
tests\Shared\CliPackageDiscovery.cs (1)
31var matches = Directory.GetFiles(packageDirectory, "Aspire.Cli.*.nupkg")
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
270var tasksToWaitFor = new List<Task> { appRunning.Task, projectsParsed.Task };
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
Aspire.Hosting (352)
ApplicationModel\CertificateAuthorityCollectionAnnotation.cs (1)
46public List<CertificateAuthorityCollection> CertificateAuthorityCollections { get; internal set; } = new List<CertificateAuthorityCollection>();
ApplicationModel\CertificateTrustConfigurationCallbackAnnotation.cs (1)
52public required List<object> Arguments { get; init; }
ApplicationModel\ContainerCertificatePathsAnnotation.cs (2)
49public List<string>? DefaultCertificateBundles { get; init; } 56public List<string>? DefaultCertificateDirectories { get; init; }
ApplicationModel\CustomResourceSnapshot.cs (1)
242/// <see cref="List{T}"/>. None of those compare by value, so they have to be compared element-wise.
ApplicationModel\Docker\DockerfileBuilder.cs (2)
15private readonly List<DockerfileStage> _stages = []; 16private readonly List<DockerfileArgStatement> _globalArgs = [];
ApplicationModel\Docker\DockerfileStage.cs (1)
15private readonly List<DockerfileStatement> _statements = [];
ApplicationModel\Docker\DockerfileStatements.cs (1)
251private readonly List<string> _mounts;
ApplicationModel\DockerfileBuilderCallbackAnnotation.cs (1)
14private readonly List<Func<DockerfileBuilderCallbackContext, Task>> _callbacks = [];
ApplicationModel\DotnetToolAnnotation.cs (1)
31public List<string> Sources { get; } = [];
ApplicationModel\ExecutableLaunchRecipe.cs (15)
314var arguments = context.ExecutionConfiguration.Arguments.ToList(); 329var executableArguments = new List<string>(arguments.Count - omittedLaunchToolArgumentCount); 330var displayArguments = new List<ExecutableLaunchArgument>(arguments.Count); 446var projectArguments = new List<string>(); 537var launchConfigurations = new List<JsonElement>(); 602List<string> projectArguments, 643private static (List<ExecutableLaunchArgument> LaunchArguments, int? DotnetProjectLaunchArgumentIndex) BuildLaunchArguments( 654var appHostArgumentList = appHostArguments.ToList(); 677var launchArguments = new List<ExecutableLaunchArgument>(); 680List<string>? projectLaunchProfileArguments = null; 837List<ExecutableLaunchArgument> launchArguments, 847var argumentsToInsert = new List<string>(); 878List<ExecutableLaunchArgument> launchArguments, 901List<ExecutableLaunchArgument> launchArguments, 913private static List<string> GetLaunchProfileArguments(LaunchProfile? launchProfile) =>
ApplicationModel\ExecutionConfigurationBuilder.cs (1)
41private readonly List<IExecutionConfigurationGatherer> _gatherers = new();
ApplicationModel\ExecutionConfigurationGathererContext.cs (3)
11public List<object> Arguments { get; } = new(); 46List<(object Unprocessed, string Value, bool IsSensitive)> resolvedArguments = new(argumentCapacity); 48List<Exception> exceptions = new();
ApplicationModel\HttpsCertificateConfigurationCallbackAnnotaion.cs (1)
59public required List<object> Arguments { get; init; }
ApplicationModel\IExecutionConfigurationGathererContext.cs (1)
14List<object> Arguments { get; }
ApplicationModel\ProjectResource.cs (2)
45var steps = new List<PipelineStep>(); 228var outputLines = new List<string>();
ApplicationModel\ReferenceExpression.cs (6)
327private readonly List<IValueProvider> _valueProviders = new(formattedCount); 328private readonly List<string> _manifestExpressions = new(formattedCount); 329private readonly List<string?> _stringFormats = new(formattedCount); 489private readonly List<IValueProvider> _valueProviders = new(); 490private readonly List<string> _manifestExpressions = new(); 491private readonly List<string?> _stringFormats = new();
ApplicationModel\ResourceCollection.cs (1)
14private readonly List<IResource> _resources = [];
ApplicationModel\ResourceCommandService.cs (3)
149var tasks = new List<Task<ExecuteCommandResult>>(); 168var failures = new List<(string resourceId, ExecuteCommandResult result)>(); 169var cancellations = new List<(string resourceId, ExecuteCommandResult result)>();
ApplicationModel\ResourceExtensions.cs (11)
94List<T>? annotations = null; 265internal static async ValueTask<List<object>> GatherArgumentValuesWithoutCachingAsync( 271var args = new List<object>(); 353List<object> arguments, 398var args = await GatherArgumentValuesWithoutCachingAsync(resource, executionContext, logger, cancellationToken).ConfigureAwait(false); 623var args = new List<object>(); 847var result = new List<ResolvedEndpoint>(); 1622var rawValues = await GatherRawEnvironmentAndArgumentValuesAsync(resource, executionContext, options, cancellationToken).ConfigureAwait(false); 1633private static async Task<List<object>> GatherRawEnvironmentAndArgumentValuesAsync( 1639var rawValues = new List<object>(); 1699var args = new List<object>();
ApplicationModel\ResourceLoggerService.cs (11)
57var loggers = new List<ILogger>(); 71private sealed class CompositeLogger(List<ILogger> innerLoggers) : ILogger 73private readonly List<ILogger> _innerLoggers = innerLoggers; 77var scopes = new List<IDisposable>(); 100private sealed class CompositeDisposable(List<IDisposable> disposables) : IDisposable 102private readonly List<IDisposable> _disposables = disposables; 229var subscribedStates = new List<(ResourceLoggerState State, Action<bool> Handler)>(); 436List<LogEntry> inMemoryEntries; 527var pendingLiveEntries = new List<LogEntry>(); 577var batches = new List<IReadOnlyList<LogLine>>(); 743List<LogEntry>? addedEntries = null;
ApplicationModel\ResourceNotificationService.cs (3)
971var startupEvents = notificationState.GetOrCreateStartupEvents(); 1398private List<ResourceStartupEvent>? StartupEvents { get; set; } 1400public List<ResourceStartupEvent> GetOrCreateStartupEvents() => StartupEvents ??= [];
ApplicationModel\ResourceUrlsCallbackContext.cs (2)
17public class ResourceUrlsCallbackContext(DistributedApplicationExecutionContext executionContext, IResource resource, List<ResourceUrlAnnotation>? urls = null, CancellationToken cancellationToken = default) 55public List<ResourceUrlAnnotation> Urls { get; } = urls ?? [];
ApplicationModel\ResourceUrlsEditor.cs (2)
10internal sealed class ResourceUrlsEditor(DistributedApplicationExecutionContext executionContext, List<ResourceUrlAnnotation> urls, CancellationToken cancellationToken = default) 13private readonly List<ResourceUrlAnnotation> _urls = urls ?? throw new ArgumentNullException(nameof(urls));
Ats\InteractionExports.cs (1)
241var list = new List<KeyValuePair<string, string>>(choices.Count);
Backchannel\AppHostRpcTarget.cs (2)
305var resolvedSteps = await pipeline.ResolveStepsAsync(pipelineContext).ConfigureAwait(false); 323var orderedSteps = DistributedApplicationPipeline.GetTopologicalOrder(resolvedSteps);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (13)
92var urls = new List<string>(2); 120var snapshots = await GetResourceSnapshotsAsync(SupportsJsonResourceProperties(request?.ClientCapabilities), cancellationToken).ConfigureAwait(false); 586var terminals = new List<TerminalSummary>(); 965public async Task<List<ResourceSnapshot>> GetResourceSnapshotsAsync(CancellationToken cancellationToken = default) 970private async Task<List<ResourceSnapshot>> GetResourceSnapshotsAsync(bool resourcePropertiesAsJson, CancellationToken cancellationToken) 974var results = new List<ResourceSnapshot>(); 1230var resolvedThisPass = new List<string>(); 1439var values = new List<string>(); 1585var resourcesToLog = resourceName is not null 1629var tasks = new List<Task>(); 1975private static List<string> ResolveResourceIds(DistributedApplicationModel appModel, string resourceName) 1999private static List<string> ResolveAllResourceIds(DistributedApplicationModel appModel) 2001var result = new List<string>();
Backchannel\BackchannelLoggerProvider.cs (1)
21internal (List<BackchannelLogEntry> Snapshot, int SubscriberId, Channel<BackchannelLogEntry> Channel) Subscribe()
ConnectionStringBuilderExtensions.cs (1)
49var tasks = new List<Task>();
ContainerResourceBuilderExtensions.cs (3)
55var steps = new List<PipelineStep>(); 1307public static IResourceBuilder<TResource> WithContainerCertificatePaths<TResource>(this IResourceBuilder<TResource> builder, string? customCertificatesDestination = null, List<string>? defaultCertificateBundlePaths = null, List<string>? defaultCertificateDirectoryPaths = null)
Dashboard\DashboardEventHandlers.cs (3)
355var endpointAnnotations = dashboardResource.Annotations.OfType<EndpointAnnotation>().ToList(); 790var frontendEndpoints = dashboardResource.GetEndpoints(KnownNetworkIdentifiers.LocalhostNetwork).ToList(); 824var allResourceEndpoints = model.Resources
Dashboard\DashboardService.cs (2)
134var updateStateOnChangeInputs = inputs.Inputs 139var inputInstances = inputs.Inputs.Select(input => CreateInteractionInputDto(input, updateStateOnChangeInputs, maxFileUploadSize)).ToList();
Dashboard\DashboardServiceData.cs (5)
215var submittedInputs = request.InputsDialog.InputItems 218var inputDtos = CreateInputDtos(_fileUploadStore, interaction.InteractionId, inputsInfo, submittedInputs); 241internal static List<InputDto> CreateInputDtos( 253var inputDtos = new List<InputDto>(inputsInfo.Inputs.Count); 300public static void ProcessInputs(IServiceProvider serviceProvider, ILogger logger, Interaction.InputsInteractionInfo inputsInfo, List<InputDto> inputDtos, bool dependencyChange, CancellationToken cancellationToken)
Dashboard\InteractionFileUploadStore.cs (1)
133var files = new List<InteractionFileUpload>();
Dashboard\ResourceServiceOptions.cs (1)
46List<string>? errorMessages = null;
Dcp\AppResource.cs (4)
78public virtual List<ServiceWithModelResource> ServicesProduced { get; } = []; 79public virtual List<ServiceWithModelResource> ServicesConsumed { get; } = []; 87public override List<ServiceWithModelResource> ServicesProduced 91public override List<ServiceWithModelResource> ServicesConsumed
Dcp\CertificateUtilities.cs (1)
14internal static List<PemCertificate> BuildPemCertificateList(X509Certificate2Collection certificates)
Dcp\ContainerCreator.cs (24)
61private readonly List<TunnelConfiguration> _tunnelConfigurations = []; 139var result = new List<RenderedModelResource<Container>>(); 332var args = configuration.Arguments.ToList(); 419var services = new List<ContainerNetworkService>(); 478List<TunnelConfiguration>? tunnels, 649List<HostResourceWithEndpoints> hostDependencies = [.. allDependencies.Select(HostResourceWithEndpoints.Create).OfType<HostResourceWithEndpoints>()]; 685private async Task<(IExecutionConfigurationResult, ContainerPemCertificates?, List<ContainerCreateFileSystem>?)> 689var bundlePaths = ContainerCertificatePathsAnnotation.DefaultCertificateBundlePaths.ToList(); 690var certificateDirsPaths = ContainerCertificatePathsAnnotation.DefaultCertificateDirectoriesPaths.ToList(); 706var dirs = new List<string> { certificatesDestination + "/certs" }; 730List<ContainerFileSystemEntry> customBundleFiles = new(); 783var createFiles = await BuildCreateFilesAsync(buildCreateFilesContext, cancellationToken).ConfigureAwait(false); 813var certificateFiles = new List<ContainerFileSystemEntry>() 867private async Task<List<ContainerCreateFileSystem>> BuildCreateFilesAsync(BuildCreateFilesContext context, CancellationToken cancellationToken) 869var createFiles = new List<ContainerCreateFileSystem>(); 903private async Task<(List<string>, bool)> BuildRunArgsAsync(ILogger resourceLogger, IResource modelResource, CancellationToken cancellationToken) 906var runArgs = new List<string>(); 935var dcpBuildArgs = new List<EnvVar>(); 951var dcpBuildSecrets = new List<BuildContextSecret>(); 1002var parts = new List<string>(); 1019private static List<ContainerPortSpec> BuildContainerPorts(RenderedModelResource<Container> cr) 1021var ports = new List<ContainerPortSpec>(); 1059private static List<VolumeMount> BuildContainerMounts(IResource container) 1061var volumeMounts = new List<VolumeMount>();
Dcp\DcpExecutor.cs (5)
214List<IResource> endpointAllocatedResources = []; 628var tasks = new List<Task>(); 739var hostResources = _model.Resources.Select(HostResourceWithEndpoints.Create).OfType<HostResourceWithEndpoints>().ToList(); 902var tasks = new List<Task>(); 906var groupList = group.ToList();
Dcp\DcpHost.cs (1)
448List<Task> outputLoggers = [];
Dcp\DcpKubernetesClient.cs (1)
153private readonly List<string> _parameters = new List<string>();
Dcp\DcpResourceState.cs (1)
17public readonly ConcurrentDictionary<(string, string), List<string>> ResourceAssociatedServicesMap = [];
Dcp\DcpResourceWatcher.cs (7)
239var tasks = new List<Task>(); 428var logEntries = new List<LogEntry>(); 566var logs = new List<LogEntry>(); 641var logEntries = CreateLogEntries(batch).ToList(); 761private List<LogEntry> DeduplicateFollowBatch(string resourceName, LogStreamState logStream, List<LogEntry> logEntries) 773List<LogEntry>? addedEntries = null;
Dcp\ExecutableConfigurationResolver.cs (1)
48var directories = new List<string> { certificatesOutputPath };
Dcp\KubernetesService.cs (3)
45Task<List<T>> ListAsync<T>(string? namespaceParameter = null, CancellationToken cancellationToken = default) 195public Task<List<T>> ListAsync<T>(string? namespaceParameter = null, CancellationToken cancellationToken = default) 320List<(string name, string value)> queryParams = [
Dcp\Model\Container.cs (23)
27public List<VolumeMount>? VolumeMounts { get; set; } 31public List<ContainerPortSpec>? Ports { get; set; } 35public List<EnvVar>? Env { get; set; } 39public List<string>? EnvFiles { get; set; } 51public List<string>? Args { get; set; } 55public List<ContainerLabel>? Labels { get; set; } 59public List<string>? RunArgs { get; set; } 76public List<ContainerNetworkConnection>? Networks { get; set; } 103public List<ContainerCreateFileSystem>? CreateFiles { get; set; } 130public List<EnvVar>? Args { get; set; } 134public List<BuildContextSecret>? Secrets { get; set; } 142public List<string>? Tags { get; set; } 146public List<ContainerLabel>? Labels { get; set; } 203public List<HealthProbe>? HealthProbes { get; set; } 216 public List<string>? Aliases { get; set; } 358public List<ContainerFileSystemEntry>? Entries { get; set; } 453public List<ContainerFileSystemEntry>? Entries { get; set; } 494public List<PemCertificate>? Certificates { get; set; } 498public List<string>? OverwriteBundlePaths { get; set; } 534public List<EnvVar>? EffectiveEnv { get; set; } 538public List<string>? EffectiveArgs { get; set; } 542public List<string>? Networks { get; set; } 554public List<HealthProbeResult>? HealthProbeResults { get; set;}
Dcp\Model\ContainerExec.cs (6)
29public List<EnvVar>? Env { get; set; } 35public List<string>? EnvFiles { get; set; } 47public List<string>? Args { get; set; } 93public List<EnvVar>? EffectiveEnv { get; set; } 99public List<string>? EffectiveArgs { get; set; } 123public static ContainerExec Create(string name, string containerName, string command, List<string>? args = null, string? workingDirectory = null)
Dcp\Model\ContainerNetwork.cs (3)
48public List<string>? Subnets { get; set; } 52public List<string>? Gateways { get; set; } 56public List<string>? ContainerIDs { get; set; }
Dcp\Model\ContainerTunnel.cs (5)
59public List<string>? Aliases { get; set; } 66public List<TunnelConfiguration>? Tunnels { get; set; } 133public List<string>? ClientProxyAddresses { get; set; } 195public List<TunnelStatus>? TunnelStatuses { get; set; } 269public List<TunnelConfiguration> UpdatedTunnels { get; private set; }
Dcp\Model\Executable.cs (10)
31public List<string>? Args { get; set; } 37public List<EnvVar>? Env { get; set; } 43public List<string>? EnvFiles { get; set; } 55public List<string>? FallbackExecutionTypes { get; set; } 61public List<HealthProbe>? HealthProbes { get; set; } 158public List<PemCertificate>? Certificates { get; set; } 224public List<EnvVar>? EffectiveEnv { get; set; } 230public List<string>? EffectiveArgs { get; set; } 242public List<HealthProbeResult>? HealthProbeResults { get; set; } 310if (this.TryGetAnnotationAsObjectList(LaunchConfigurationsAnnotation, out List<ProjectLaunchConfiguration>? launchConfigurations))
Dcp\Model\ExecutableReplicaSet.cs (1)
44public bool TryGetAnnotationAsObjectList<TValue>(string annotationName, [NotNullWhen(true)] out List<TValue>? list)
Dcp\Model\ModelCommon.cs (9)
74Metadata.Annotations[annotationName] = JsonSerializer.Serialize<List<TValue>>(list.ToList()); 77public bool TryGetAnnotationAsObjectList<TValue>(string annotationName, [NotNullWhen(true)] out List<TValue>? list) 82internal static bool TryGetAnnotationAsObjectList<TValue>(IDictionary<string, string>? annotations, string annotationName, [NotNullWhen(true)] out List<TValue>? list) 100list = JsonSerializer.Deserialize<List<TValue>>(annotationValue); 112List<TValue> values; 117values = JsonSerializer.Deserialize<List<TValue>>(annotationVal) ?? new(); 134var newAnnotationVal = JsonSerializer.Serialize<List<TValue>>(values); 160public required List<T> Items { get; set; } 338public List<HttpProbeHeader>? Headers { get; set; }
Dcp\ProxylessEndpointPortAllocator.cs (1)
233var sockets = new List<Socket>();
Dcp\ResourceLogSource.cs (1)
106var streamTasks = new List<Task>();
Dcp\ResourceSnapshotBuilder.cs (11)
29var effectiveArgs = container.Status?.EffectiveArgs; 105var effectiveArgs = executable.Status?.EffectiveArgs; 163var effectiveArgs = executable.Status?.EffectiveArgs; 247if (!resource.TryGetAnnotationAsObjectList(CustomResource.ResourceAppArgsAnnotation, out List<AppLaunchArgumentAnnotation>? launchArgumentAnnotations)) 291var endpointUrls = resourceUrls.Where(u => u.Endpoint is not null).ToList(); 292var nonEndpointUrls = resourceUrls.Where(u => u.Endpoint is null).ToList(); 294var resourceServices = _resourceState.AppResources.OfType<ServiceWithModelResource>() 310var urlsForEndpoint = endpointUrls.Where(u => 339var crossResourceEndpointUrls = endpointUrls.Where(u => !processedEndpointUrls.Contains(u)).ToList(); 391private static ImmutableArray<EnvironmentVariableSnapshot> GetEnvironmentVariables(List<EnvVar>? effectiveSource, List<EnvVar>? specSource)
Devcontainers\DevcontainerSettingsWriter.cs (2)
75List<PortForwardEntry> batch = []; 106List<(string Label, string Url)> portsToLog = [];
DeveloperCertificateService.cs (3)
42var validCerts = FindDevCertificates(store, now).ToList(); 54var bestCerts = validCerts 60var trustedCerts = bestCerts.GetTrustedCertificates();
Diagnostics\ProfilingTelemetry.cs (1)
764var events = new List<AppHostStartupEvent>();
DistributedApplication.cs (3)
745var computeEnvironments = appModel.Resources.OfType<IComputeEnvironmentResource>().ToList(); 805public List<ResourceStateDebugView> Resources 814var results = new List<ResourceStateDebugView>(app._model.Resources.Count);
Eventing\DistributedApplicationEventing.cs (6)
13private readonly ConcurrentDictionary<Type, List<DistributedApplicationEventSubscription>> _eventSubscriptionListLookup = new(); 27if (_eventSubscriptionListLookup.TryGetValue(typeof(T), out var subscriptions)) 31var pendingSubscriptionCallbacks = new List<Task>(subscriptions.Count); 133if (_eventSubscriptionListLookup.TryGetValue(typeof(T), out var subscriptions)) 155return _eventSubscriptionListLookup.TryGetValue(typeof(T), out var subscriptions) && subscriptions.Count > 0; 177if (_eventSubscriptionListLookup.TryGetValue(eventType, out var subscriptions))
IInteractionService.cs (2)
292internal List<string> ValidationErrors { get; } = []; 608private readonly List<InteractionInput> _inputs;
InteractionService.cs (2)
398internal List<Interaction> GetCurrentInteractions() 653List<Interaction> pendingInteractions;
Lifecycle\RequiredCommandValidationEventingSubscriber.cs (1)
36var requiredCommands = resource.Annotations.OfType<RequiredCommandAnnotation>().ToList();
Lifecycle\TerminalHostEventingSubscriber.cs (1)
138var result = new List<string>();
Lifecycle\TerminalHostOrphanCleanupService.cs (1)
19private readonly List<(string TrmnlDirectory, string[] ReplicaIds)> _registeredReplicaArtifacts = [];
Orchestrator\ApplicationOrchestrator.cs (1)
303var urls = new List<ResourceUrlAnnotation>();
Orchestrator\ParameterProcessor.cs (4)
32private readonly List<ParameterResource> _unresolvedParameters = []; 120var allParameters = explicitParameters.Concat(dependentParameters).ToList(); 592var resourceInputs = new List<(ParameterResource ParameterResource, InteractionInput Input)>(); 601var inputs = resourceInputs.Select(i => i.Input).ToList();
Pipelines\DistributedApplicationPipeline.cs (42)
28private readonly List<PipelineStep> _steps = []; 29private readonly List<Func<PipelineConfigurationContext, Task>> _configurationCallbacks = []; 32private List<PipelineStep>? _lastResolvedSteps; 118var computeResources = context.Model.Resources 334var stepsToAnalyze = _lastResolvedSteps ?? throw new InvalidOperationException( 391var computeEnvironments = model.Resources.OfType<IComputeEnvironmentResource>().ToList(); 397var unboundResources = model.Resources 416var buildOnlyContainers = model.GetBuildResources() 443var unconsumedBuildOnlyContainers = buildOnlyContainers 575var allSteps = await ResolveStepsAsync(context).ConfigureAwait(false); 598var allSteps = await ResolveStepsAsync(context).ConfigureAwait(false); 614var stepsToExecute = ComputeTransitiveDependencies(targetStep, allStepsByName); 625internal async Task<List<PipelineStep>> ResolveStepsAsync(PipelineContext context) 627var annotationSteps = await CollectStepsFromAnnotationsAsync(context).ConfigureAwait(false); 628var allSteps = _steps.Concat(annotationSteps).ToList(); 656List<PipelineStep> steps, 679private static (List<PipelineStep> StepsToExecute, Dictionary<string, PipelineStep> StepsByName) FilterStepsForExecution( 680List<PipelineStep> allSteps, 702var stepsToExecute = ComputeTransitiveDependencies(targetStep, allStepsByName); 708internal static List<PipelineStep> ComputeTransitiveDependencies( 713var result = new List<PipelineStep>(); 741private static async Task<List<PipelineStep>> CollectStepsFromAnnotationsAsync(PipelineContext context) 743var steps = new List<PipelineStep>(); 772List<PipelineStep> allSteps) 775var callbacks = new List<Func<PipelineConfigurationContext, Task>>(); 847List<PipelineStep> steps, 880var failedDeps = step.DependsOnSteps 956var failures = allStepTasks 965var failedStepNames = new List<string>(); 991List<PipelineStep> steps, 1003var orderedSteps = GetTopologicalOrder(steps); 1074List<PipelineStep> steps, 1158List<PipelineStep> allSteps, 1182var executionOrder = GetTopologicalOrder(allSteps); 1272var orphanedSteps = allSteps.Where(step => 1317var stepsForTarget = ComputeTransitiveDependencies(targetStep, allStepsByName); 1338var stepsAtLevel = stepsByLevel[level]; 1391List<PipelineStep> steps, 1424List<PipelineStep> steps, 1473internal static List<PipelineStep> GetTopologicalOrder(List<PipelineStep> steps) 1477var result = new List<PipelineStep>();
Pipelines\PipelineActivityReporter.cs (4)
335var updateStateOnChangeInputs = inputsInfo.Inputs 339var promptInputs = inputsInfo.Inputs.Select(input => new PublishingPromptInput 374var promptInputs = new List<PublishingPromptInput> 416var dtos = new List<InputDto>();
Pipelines\PipelineStep.cs (3)
42public List<string> DependsOnSteps { get; init; } = []; 48public List<string> RequiredBySteps { get; init; } = []; 53public List<string> Tags { get; init; } = [];
Pipelines\PipelineSummary.cs (1)
61private readonly List<PipelineSummaryItem> _items = [];
Publishing\ContainerRuntimeBase.cs (7)
407var stderrLines = new List<string>(); 455var outputLines = new List<string>(); 511internal static List<ComposeServiceInfo> ParseComposeServiceEntries(List<string> outputLines) 513var results = new List<ComposeServiceInfo>(); 640public List<DockerComposePsPublisher>? Publishers { get; set; } 653[JsonSerializable(typeof(List<DockerComposePsEntry>))]
Publishing\ManifestPublishingContext.cs (3)
606var bindMounts = mounts.Where(mounts => mounts.Type == ContainerMountType.BindMount).ToList(); 632var volumes = mounts.Where(mounts => mounts.Type == ContainerMountType.Volume).ToList(); 861var pending = new List<ParameterResource>(_formattedParameters.Keys);
Publishing\PodmanContainerRuntime.cs (8)
35var outputLines = new List<string>(); 86internal static List<ComposeServiceInfo> ParsePodmanPsOutput(List<string> outputLines) 94List<PodmanPsEntry>? entries; 110var grouped = new Dictionary<string, List<ComposeServicePort>>(StringComparer.OrdinalIgnoreCase); 120if (!grouped.TryGetValue(serviceName, out var ports)) 322public List<PodmanPsPort>? Ports { get; set; } 337[JsonSerializable(typeof(List<PodmanPsEntry>))]
Publishing\ResourceContainerImageManager.cs (2)
596var platforms = new List<string>(); 638var rids = new List<string>();
ResourceLoggerForwarderService.cs (1)
40var logWatchTasks = new List<Task>();
src\Shared\BackchannelConstants.cs (2)
201var results = new List<string>() { currentHash }; 329var results = new List<string>();
src\Shared\ChannelExtensions.cs (2)
34List<T>? batch = null; 84List<T>? batch = null;
src\Shared\CircularBuffer.cs (2)
19internal readonly List<T> _buffer; 29internal CircularBuffer(List<T> buffer, int capacity, int start, int end)
src\Shared\CommandLineArgsParser.cs (4)
13var result = new List<string>(); 21public static List<string> Parse(string arguments) 23var result = new List<string>(); 36private static void ParseArgumentsIntoList(string arguments, List<string> results)
src\Shared\ConsoleLogs\AnsiParser.cs (3)
309List<int> ret = new(2); 457var classes = new List<string>(2); 458var styles = new List<string>(2);
src\Shared\ConsoleLogs\LogEntries.cs (2)
18private readonly List<LogPauseViewModel> _pauseViewModels = []; 43var pauseEntries = _logEntries.Where(e => e.Type == LogEntryType.Pause && _pauseViewModels.Contains(e.Pause!)).ToList();
src\Shared\CustomResourceSnapshotExtensions.cs (2)
40var existingProperties = new List<ResourcePropertySnapshot>(properties); 41var propertiesToAdd = new List<ResourcePropertySnapshot>();
src\Shared\LoggingHelpers.cs (1)
47var parameters = new List<object?>();
src\Shared\PackageUpdateHelpers.cs (2)
129public static List<NuGetPackage> ParsePackageSearchResults(string stdout, string? packageId = null) 131var foundPackages = new List<NuGetPackage>();
src\Shared\X509Certificate2Extensions.cs (2)
139public static List<X509Certificate2> GetTrustedCertificates( 158var trustedCertificates = new List<X509Certificate2>();
Utils\ConcurrencyUtils.cs (4)
46var acquired = new List<SemaphoreSlim>(distinct.Length); 71private List<SemaphoreSlim>? _semaphores; 73public SemaphoreSetReleaser(List<SemaphoreSlim> semaphores) 80var semaphores = Interlocked.Exchange(ref _semaphores, null);
VersionChecking\IPackageFetcher.cs (1)
10Task<List<NuGetPackage>> TryFetchPackagesAsync(string appHostDirectory, CancellationToken cancellationToken);
VersionChecking\PackageFetcher.cs (2)
26public async Task<List<NuGetPackage>> TryFetchPackagesAsync(string appHostDirectory, CancellationToken cancellationToken) 67var packages = PackageUpdateHelpers.ParsePackageSearchResults(outputJson.ToString(), PackageId);
VersionChecking\VersionCheckService.cs (1)
101List<NuGetPackage>? packages = null;
Aspire.Hosting.Analyzers (1)
Infrastructure\BoundedCacheWithFactory.cs (1)
18private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Aspire.Hosting.Azure (73)
AzureEnvironmentResource.cs (2)
78var steps = new List<PipelineStep>(); 279var resources = new List<(string Name, string ResourceType)>();
AzureProvisioningController.cs (26)
136private readonly List<AzureOperationState> _queuedOperationStates = []; 667var targetResources = GetTargetAzureResources(model, resourceName, includeAnnotationParentRelationships: false); 1040var afterProvisionTasks = new List<Task>(azureResources.Count); 1220private static List<(IResource Resource, IAzureResource AzureResource)> GetProvisionableAzureResources(DistributedApplicationModel model) 1231private static List<(IResource Resource, IAzureResource AzureResource)> GetTargetAzureResources( 1236var azureResources = GetProvisionableAzureResources(model); 1249var targetResources = new List<(IResource Resource, IAzureResource AzureResource)>(); 1377private static List<(IResource Resource, IAzureResource AzureResource)> GetActiveOperationTargetAzureResources(DistributedApplicationModel model, ActiveAzureOperation activeOperation) 1646var azureResources = GetProvisionableAzureResources(model); 1731var azureResources = GetProvisionableAzureResources(model); 1747var targetResources = GetTargetAzureResources(model, intent.ResourceName, includeAnnotationParentRelationships: true); 1801var azureResources = GetProvisionableAzureResources(model); 1887var targetResources = GetTargetAzureResources(model, intent.ResourceName, includeAnnotationParentRelationships: false); 1940var targetResources = GetTargetAzureResources(model, intent.ResourceName, includeAnnotationParentRelationships: true); 2025var targetResources = GetTargetAzureResources(model, resourceName, includeAnnotationParentRelationships: true); 2039var targetResourcesToCancel = activeOperation is not null 2042var inFlightResourcesToCancel = activeOperation is not null 2091var targetResources = GetTargetAzureResources(model, intent.ResourceName, includeAnnotationParentRelationships: true); 2178List<string>? driftedResources = null; 2465var targetResources = GetTargetAzureResources( 2478var targetResources = GetTargetAzureResources(model, resourceName, includeAnnotationParentRelationships: true); 3048var keyVaultLocations = new List<string>(); 3054private static void AddLocationIfPresent(List<string> locations, string? location) 3647var resources = new List<IResource>(); 3693var childResources = parentChildLookup[resource.Resource].ToList(); 3894var tasks = new List<Task>(azureResources.Count);
AzurePublishingContext.cs (2)
127var bicepResourcesToPublish = model.Resources.OfType<AzureBicepResource>() 297var computeEnvironments = new List<IAzureComputeEnvironmentResource>();
AzureResourceExtensions.cs (1)
74var annotations = builder.Resource.Annotations.OfType<DefaultRoleAssignmentsAnnotation>().ToList();
AzureResourcePreparer.cs (9)
32var azureResources = GetAzureResourcesFromAppModel(model); 63private static void AddPerResourceCommands(List<(IResource Resource, IAzureResource AzureResource)> azureResources) 128internal static List<(IResource Resource, IAzureResource AzureResource)> GetAzureResourcesFromAppModel(DistributedApplicationModel appModel) 135var azureResources = new List<(IResource, IAzureResource)>(); 181private async Task BuildRoleAssignmentAnnotations(DistributedApplicationModel appModel, List<(IResource Resource, IAzureResource AzureResource)> azureResources, CancellationToken cancellationToken) 379private (AzureUserAssignedIdentityResource IdentityResource, List<AzureRoleAssignmentResource> RoleAssignmentResources) CreateIdentityAndRoleAssignmentResources( 405var roleAssignmentResources = CreateRoleAssignmentsResources(resource, roleAssignments, identityResource); 409private List<AzureRoleAssignmentResource> CreateRoleAssignmentsResources( 414var roleAssignmentResources = new List<AzureRoleAssignmentResource>();
Provisioning\Internal\BaseProvisioningContextProvider.cs (14)
249protected async Task<(List<KeyValuePair<string, string>>? tenantOptions, bool fetchSucceeded)> TryGetTenantsAsync(CancellationToken cancellationToken) 251List<KeyValuePair<string, string>>? tenantOptions = null; 259var tenantList = availableTenants.ToList(); 298protected async Task<(List<KeyValuePair<string, string>>? subscriptionOptions, bool fetchSucceeded)> TryGetSubscriptionsAsync(string? tenantId, CancellationToken cancellationToken) 300List<KeyValuePair<string, string>>? subscriptionOptions = null; 308var subscriptionList = availableSubscriptions.ToList(); 326protected async Task<(List<KeyValuePair<string, string>>? subscriptionOptions, bool fetchSucceeded)> TryGetSubscriptionsAsync(CancellationToken cancellationToken) 331protected async Task<(List<(string Name, string Location)>? resourceGroupOptions, bool fetchSucceeded)> TryGetResourceGroupsWithLocationAsync(string subscriptionId, CancellationToken cancellationToken) 333List<(string Name, string Location)>? resourceGroupOptions = null; 343var resourceGroupList = availableResourceGroups.ToList(); 364protected async Task<(List<KeyValuePair<string, string>> locationOptions, bool fetchSucceeded)> TryGetLocationsAsync(string subscriptionId, CancellationToken cancellationToken) 366List<KeyValuePair<string, string>>? locationOptions = null; 377var locationList = availableLocations.ToList(); 404private static List<KeyValuePair<string, string>> GetStaticAzureLocations()
Provisioning\Internal\DefaultArmClientProvider.cs (7)
87var tenants = new List<ITenantResource>(); 99var subscriptions = new List<ISubscriptionResource>(); 116var subscriptions = new List<ISubscriptionResource>(); 149var resourceGroups = new List<(string Name, string Location)>(); 379var currentDeploymentIds = new List<ResourceIdentifier>(); 417var operations = new List<AzureDeploymentOperationDetails>(); 462var locations = new List<(string Name, string DisplayName)>();
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (4)
117List<KeyValuePair<string, string>>? tenantOptions = null; 216List<KeyValuePair<string, string>>? subscriptionOptions = null; 315List<(string Name, string Location)>? resourceGroupOptions = null; 410List<KeyValuePair<string, string>>? locationOptions = null;
Provisioning\Internal\RunModeProvisioningContextProvider.cs (3)
278var inputs = CreateProvisioningInputs(forcePrompt, cancellationToken); 328private List<InteractionInput> CreateProvisioningInputs(bool forcePrompt, CancellationToken cancellationToken) 330var inputs = new List<InteractionInput>();
Provisioning\Provisioners\BicepProvisioner.cs (3)
115var portalUrls = new List<UrlSnapshot>(); 1017var enrichmentTasks = new List<(int OperationIndex, Task<AzureProvisioningFailureDetails> EnrichmentTask)>(); 1262var details = new List<string>();
src\Shared\CustomResourceSnapshotExtensions.cs (2)
40var existingProperties = new List<ResourcePropertySnapshot>(properties); 41var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.Azure.AppContainers (8)
AzureContainerAppEnvironmentResource.cs (1)
44var steps = new List<PipelineStep>();
AzureContainerAppExtensions.cs (2)
76var environments = ctx.Model.Resources 192var guidance = new List<string>();
AzureContainerAppResource.cs (1)
40var steps = new List<PipelineStep>();
BaseContainerAppContext.cs (1)
35public List<object> Args { get; } = [];
ContainerAppContext.cs (2)
19private readonly List<int> _additionalPorts = []; 153var endpointsByTargetPort = resolvedEndpoints
ContainerAppEnvironmentContext.cs (1)
25private readonly List<(string ResourceName, string[] EndpointNames)> _upgradedEndpoints = [];
Aspire.Hosting.Azure.AppService (7)
AzureAppServiceEnvironmentContext.cs (1)
25private readonly List<(string ResourceName, string[] EndpointNames)> _upgradedEndpoints = [];
AzureAppServiceEnvironmentResource.cs (2)
52var steps = new List<PipelineStep>(); 267var errors = new List<string>();
AzureAppServiceWebsiteContext.cs (3)
32public List<object> Args { get; } = []; 111var targetPortEndpoints = resolvedEndpoints 527var args = new List<BicepValue<string>>();
AzureAppServiceWebSiteResource.cs (1)
40var steps = new List<PipelineStep>();
Aspire.Hosting.Azure.CognitiveServices (2)
AzureOpenAIResource.cs (2)
23private readonly List<AzureOpenAIDeployment> _deployments = []; 24private readonly List<AzureOpenAIDeploymentResource> _deploymentResources = [];
Aspire.Hosting.Azure.ContainerRegistry (2)
AzureContainerRegistryExtensions.cs (2)
190var allTasks = infra.GetProvisionableResources().OfType<ContainerRegistryTask>() 193var autoNamedTasks = allTasks
Aspire.Hosting.Azure.CosmosDB (5)
AzureCosmosDBDatabaseResource.cs (1)
29internal List<AzureCosmosDBContainerResource> Containers { get; } = [];
AzureCosmosDBResource.cs (1)
27internal List<AzureCosmosDBDatabaseResource> Databases { get; } = [];
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubResource.cs (1)
51internal List<AzureEventHubConsumerGroupResource> ConsumerGroups { get; } = [];
AzureEventHubsResource.cs (1)
32internal List<AzureEventHubResource> Hubs { get; } = [];
Aspire.Hosting.Azure.FrontDoor (1)
AzureFrontDoorExtensions.cs (1)
81var originAnnotations = azureResource.Annotations.OfType<AzureFrontDoorOriginAnnotation>().ToList();
Aspire.Hosting.Azure.Functions (6)
AzureFunctionsProjectResourceExtensions.cs (1)
271var commandLineArgs = CommandLineArgsParser.Parse(launchProfile.LaunchProfile.CommandLineArgs ?? string.Empty);
DurableTask\DurableTaskResourceExtensions.cs (1)
172var durableTaskHubNames =
src\Shared\CommandLineArgsParser.cs (4)
13var result = new List<string>(); 21public static List<string> Parse(string arguments) 23var result = new List<string>(); 36private static void ParseArgumentsIntoList(string arguments, List<string> results)
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultResource.cs (1)
23internal List<AzureKeyVaultSecretResource> Secrets { get; } = [];
Aspire.Hosting.Azure.Kubernetes (5)
AzureKubernetesEnvironmentExtensions.cs (3)
113var pushSteps = context.Steps 346var staleAnnotations = builder.Resource.KubernetesEnvironment.Annotations 869var steps = new List<PipelineStep>();
AzureKubernetesEnvironmentResource.cs (2)
137internal List<AksNodePoolConfig> NodePools { get; } = 174internal List<AzureKubernetesLoadBalancerResource> LoadBalancers { get; } = [];
Aspire.Hosting.Azure.Kubernetes.Tests (19)
AzureKubernetesInfrastructureTests.cs (12)
186var logs = reporter.LoggedMessages 253var invocations = new List<string>(); 275var invocations = new List<string>(); 340var invocations = new List<string>(); 398var invocations = new List<string>(); 423var steps = new List<PipelineStep>(); 498var invocations = new List<string>(); 516var steps = new List<PipelineStep>(); 710var invocations = new List<string>(); 728var steps = new List<PipelineStep>(); 779var invocations = new List<string>(); 797var steps = new List<PipelineStep>();
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = []; 36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = []; 41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = []; 46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = []; 51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = []; 56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = []; 61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Azure.Kusto (1)
AzureKustoClusterResource.cs (1)
81internal List<AzureKustoReadWriteDatabaseResource> Databases { get; } = [];
Aspire.Hosting.Azure.Kusto.Tests (7)
AddAzureKustoTests.cs (4)
69var endpointAnnotations = resourceBuilder.Resource.Annotations.OfType<EndpointAnnotation>().ToList(); 262var mountAnnotations = resourceBuilder.Resource.Annotations.OfType<ContainerMountAnnotation>().ToList(); 359var endpointAnnotations = resourceBuilder.Resource.Annotations.OfType<EndpointAnnotation>().ToList(); 443var results = new List<object>();
KustoFunctionalTests.cs (3)
136var results = await _resiliencePipeline.ExecuteAsync(async cancellationToken => await ReadDataAsync(client, cancellationToken), cts.Token); 156static async Task<List<object[]>> ReadDataAsync(ICslQueryProvider client, CancellationToken cancellationToken) 159var results = reader.ToEnumerableObjectArray().ToList();
Aspire.Hosting.Azure.Network (14)
AzureNatGatewayResource.cs (1)
35internal List<AzurePublicIPAddressResource> PublicIPAddresses { get; } = [];
AzureNetworkSecurityGroupResource.cs (1)
34internal List<AzureSecurityRule> SecurityRules { get; } = [];
AzureNetworkSecurityPerimeterResource.cs (2)
38internal List<AzureNspAccessRule> AccessRules { get; } = []; 40internal List<NspAssociationConfig> Associations { get; } = [];
AzureNspAccessRule.cs (6)
37public List<string> AddressPrefixes { get; init; } = []; 46public List<ReferenceExpression> AddressPrefixReferences { get; init; } = []; 55public List<string> Subscriptions { get; init; } = []; 64public List<ReferenceExpression> SubscriptionReferences { get; init; } = []; 72public List<string> FullyQualifiedDomainNames { get; init; } = []; 81public List<ReferenceExpression> FullyQualifiedDomainNameReferences { get; init; } = [];
AzurePrivateEndpointExtensions.cs (1)
103var privateDnsZones = new List<(string Identifier, PrivateDnsZone Zone)>();
AzurePrivateEndpointResource.cs (1)
46internal List<AzurePrivateDnsZoneResource> DnsZones { get; } = [];
AzureVirtualNetworkExtensions.cs (1)
684var parts = new List<string> { access, direction };
AzureVirtualNetworkResource.cs (1)
27internal List<AzureSubnetResource> Subnets { get; } = [];
Aspire.Hosting.Azure.ServiceBus (4)
AzureServiceBusResource.cs (2)
21internal List<AzureServiceBusQueueResource> Queues { get; } = []; 22internal List<AzureServiceBusTopicResource> Topics { get; } = [];
AzureServiceBusSubscriptionResource.cs (1)
95public List<AzureServiceBusRule> Rules { get; } = [];
AzureServiceBusTopicResource.cs (1)
71internal List<AzureServiceBusSubscriptionResource> Subscriptions { get; } = [];
Aspire.Hosting.Azure.SignalR (1)
AzureSignalRExtensions.cs (1)
119List<SignalRBuiltInRole> defaultRoles = [SignalRBuiltInRole.SignalRAppServer];
Aspire.Hosting.Azure.Sql (4)
AzureSqlServerResource.cs (2)
84internal List<AzureProvisioningResource> DeploymentScriptDependsOn { get; } = []; 273var dependsOn = new List<ProvisionableResource>();
SubnetAddressAllocator.cs (2)
47var existingRanges = new List<(uint Start, uint End)>(); 84private static bool OverlapsAny(uint start, uint end, List<(uint Start, uint End)> ranges)
Aspire.Hosting.Azure.Storage (3)
AzureStorageResource.cs (3)
44internal List<AzureBlobStorageContainerResource> BlobContainers { get; } = []; 46internal List<AzureDataLakeStorageFileSystemResource> DataLakeFileSystems { get; } = []; 48internal List<AzureQueueStorageQueueResource> Queues { get; } = [];
Aspire.Hosting.Azure.Tests (138)
AzureAppServiceTests.cs (3)
666var steps = await CreateStepsAsync(app, env.Resource); 1401private static async Task<List<PipelineStep>> CreateStepsAsync(DistributedApplication app, AzureAppServiceEnvironmentResource resource) 1410var results = new List<PipelineStep>();
AzureContainerAppsTests.cs (10)
1917var envResources = model.Resources.OfType<AzureContainerAppEnvironmentResource>().ToList(); 1971var envResources = model.Resources.OfType<AzureContainerAppEnvironmentResource>().ToList(); 2282var envResources = model.Resources.OfType<AzureContainerAppEnvironmentResource>().ToList(); 2777var configAnnotations = containerAppResource.Annotations.OfType<PipelineConfigurationAnnotation>().ToList(); 2796var acrResources = model.Resources.OfType<AzureContainerRegistryResource>().ToList(); 2820var acrResources = model.Resources.OfType<AzureContainerRegistryResource>().ToList(); 2859var acrResources = model.Resources.OfType<AzureContainerRegistryResource>().ToList(); 3145var steps = await CreateStepsAsync(app, env.Resource); 3151private static async Task<List<PipelineStep>> CreateStepsAsync(DistributedApplication app, AzureContainerAppEnvironmentResource resource) 3160var results = new List<PipelineStep>();
AzureContainerRegistryTests.cs (7)
143var pipelineStepAnnotations = acr.Resource.Annotations.OfType<PipelineStepAnnotation>().ToList(); 152var allSteps = new List<PipelineStep>(); 173var pipelineStepAnnotations = acr.Resource.Annotations.OfType<PipelineStepAnnotation>().ToList(); 181var allSteps = new List<PipelineStep>(); 202var pipelineStepAnnotations = acr.Resource.Annotations.OfType<PipelineStepAnnotation>().ToList(); 210var allSteps = new List<PipelineStep>(); 228var configAnnotations = acr.Resource.Annotations.OfType<PipelineConfigurationAnnotation>().ToList();
AzureCosmosDBExtensionsTests.cs (5)
636var references = ((IValueWithReferences)cosmos.Resource.ConnectionStringSecretOutput).References.ToList(); 673var args = new List<object>(); 741var args = new List<object>(); 1227var urls = new List<ResourceUrlAnnotation> 1252var urls = new List<ResourceUrlAnnotation>
AzureDeployerTests.cs (14)
636var logs = mockActivityReporter.LoggedMessages 1252var logs = mockActivityReporter.LoggedMessages 1314var logs = mockActivityReporter.LoggedMessages 1350var logs = mockActivityReporter.LoggedMessages 1389var logs = mockActivityReporter.LoggedMessages 1418var logs = mockActivityReporter.LoggedMessages 1441var errorLogs = mockActivityReporter.LoggedMessages 1447var completedStepMessages = mockActivityReporter.CompletedSteps 1452var completedTaskMessages = mockActivityReporter.CompletedTasks 1457var allMessages = errorLogs.Concat(completedStepMessages).Concat(completedTaskMessages).ToList(); 2027var completedSteps = mockActivityReporter.CompletedSteps; 2055var completedSteps = mockActivityReporter.CompletedSteps; 2077var completedSteps = mockActivityReporter.CompletedSteps; 2099var completedSteps = mockActivityReporter.CompletedSteps;
AzureEnvironmentResourceExtensionsTests.cs (22)
1331var canceledDeploymentIds = new List<string>(); 1440var canceledDeploymentIds = new List<string>(); 1732var deletedResourceIds = new List<string>(); 1733var purgedDeletedKeyVaults = new List<(string ResourceId, string Location)>(); 1734var canceledDeploymentIds = new List<string>(); 1838var deletedResourceIds = new List<string>(); 1839var purgedDeletedKeyVaults = new List<(string ResourceId, string Location)>(); 2989var deletedResourceIds = new List<string>(); 3055var deletedResourceIds = new List<string>(); 3115var deletedResourceIds = new List<string>(); 3180var deletedResourceIds = new List<string>(); 3306var deletedResourceIds = new List<string>(); 3869var deletedResourceIds = new List<string>(); 3870var purgedDeletedKeyVaults = new List<(string ResourceId, string Location)>(); 3948var deletedResourceIds = new List<string>(); 3949var purgedDeletedKeyVaults = new List<(string ResourceId, string Location)>(); 4763var canceledDeploymentIds = new List<string>(); 5427private readonly List<string> _configuredResources = []; 5428private readonly List<string> _provisionedResources = []; 5584private readonly List<string> _provisionedResources = []; 5744private readonly List<string> _provisionedResources = []; 5887private readonly List<string> _deletedResourceIds = [];
AzureEventHubsExtensionsTests.cs (1)
244var endpoints = eventHubs.Resource.Annotations.OfType<EndpointAnnotation>().ToList();
AzureFrontDoorTests.cs (2)
38var annotations = frontDoor.Resource.Annotations.OfType<AzureFrontDoorOriginAnnotation>().ToList(); 56var annotations = frontDoor.Resource.Annotations.OfType<AzureFrontDoorOriginAnnotation>().ToList();
AzureFunctionsTests.cs (4)
68var args = await ArgumentEvaluator.GetArgumentListAsync(functionsResource); 95var args = await ArgumentEvaluator.GetArgumentListAsync(functionsResource); 275var args = await ArgumentEvaluator.GetArgumentListAsync(functionsResource); 736var storageResources = builder.Resources.OfType<AzureStorageResource>()
AzureManifestUtils.cs (1)
55var azureResources = model.Resources
AzurePostgresExtensionsTests.cs (1)
678var references = ((IValueWithReferences)postgres.Resource.ConnectionStringSecretOutput).References.ToList();
AzurePrivateEndpointExtensionsTests.cs (4)
167var dnsZones = builder.Resources.OfType<AzurePrivateDnsZoneResource>().ToList(); 173var vnetLinks = builder.Resources.OfType<AzurePrivateDnsZoneVNetLinkResource>().ToList(); 203var dnsZones = builder.Resources.OfType<AzurePrivateDnsZoneResource>().ToList(); 224var dnsZones = builder.Resources.OfType<AzurePrivateDnsZoneResource>().ToList();
AzureProvisionerOptionsTests.cs (4)
30var results = new List<ValidationResult>(); 46var results = new List<ValidationResult>(); 58var results = new List<ValidationResult>(); 70var results = new List<ValidationResult>();
AzureRedisExtensionsTests.cs (1)
329var references = ((IValueWithReferences)redis.Resource.ConnectionStringSecretOutput).References.ToList();
AzureResourcePreparerTests.cs (2)
264List<AzureRoleAssignmentResource>? keyVaultRoleAssignments = null; 321List<AzureRoleAssignmentResource>? signalRRoleAssignments = null;
AzureSqlPrincipalReconciliationTests.cs (1)
329var permissions = new List<string>();
AzureStorageExtensionsTests.cs (7)
147var args = await ArgumentEvaluator.GetArgumentListAsync(storage.Resource); 167var args = await ArgumentEvaluator.GetArgumentListAsync(storage.Resource); 894var blobServices = builder.Resources.OfType<AzureBlobStorageResource>().ToList(); 911var queueServices = builder.Resources.OfType<AzureQueueStorageResource>().ToList(); 928var dataLakeServices = builder.Resources.OfType<AzureDataLakeStorageResource>().ToList(); 951var blobServices = builder.Resources.OfType<AzureBlobStorageResource>().ToList(); 975var blobServices = builder.Resources.OfType<AzureBlobStorageResource>().ToList();
AzureVirtualNetworkExtensionsTests.cs (9)
493var rules = subnet.Resource.NetworkSecurityGroup!.SecurityRules; 510var rules = subnet.Resource.NetworkSecurityGroup!.SecurityRules; 527var rules = subnet.Resource.NetworkSecurityGroup!.SecurityRules; 543var rules = subnet.Resource.NetworkSecurityGroup!.SecurityRules; 557var rules = subnet.Resource.NetworkSecurityGroup!.SecurityRules; 572var rules = subnet.Resource.NetworkSecurityGroup!.SecurityRules; 587var rules = subnet.Resource.NetworkSecurityGroup!.SecurityRules; 653var rules = subnet.Resource.NetworkSecurityGroup!.SecurityRules; 713var rules = subnet.Resource.NetworkSecurityGroup!.SecurityRules;
DefaultArmClientProviderTests.cs (10)
103var operations = new List<AzureDeploymentOperationDetails>(); 128var resourceIds = new List<string>(); 291private readonly List<string> _scopes = []; 331private readonly List<Uri> _requestUris = []; 332private readonly List<CapturedRequest> _requests = []; 750private readonly List<ManualTimer> _timers = []; 868private readonly Dictionary<string, List<string>> _headers = new(StringComparer.OrdinalIgnoreCase); 874if (!_headers.TryGetValue(name, out var values)) 895if (_headers.TryGetValue(name, out var values)) 907values = _headers.TryGetValue(name, out var headerValues)
DurableTaskResourceExtensionsTests.cs (1)
167var endpointAnnotations = dts.Resource.Annotations.OfType<EndpointAnnotation>().ToList();
ProvisioningTestHelpers.cs (22)
67public static IArmClientProvider CreateArmClientProvider(IEnumerable<string> existingResourceIds, List<string> deletedResourceIds) => new TestArmClientProvider(existingResourceIds: existingResourceIds, deletedResourceIds: deletedResourceIds); 70List<string>? deletedResourceIds, 72List<string>? canceledDeploymentIds, 73List<(string ResourceId, string Location)>? purgedDeletedKeyVaults = null, 208private readonly List<string>? _deletedResourceIds; 209private readonly List<(string ResourceId, string Location)>? _purgedDeletedKeyVaults; 214private readonly List<string>? _canceledDeploymentIds; 259List<string>? deletedResourceIds = null, 261List<string>? canceledDeploymentIds = null, 262List<(string ResourceId, string Location)>? purgedDeletedKeyVaults = null, 300var tenants = new List<ITenantResource> 309var subscriptions = new List<ISubscriptionResource> 321var subscriptions = new List<ISubscriptionResource> 349var locations = new List<(string Name, string DisplayName)> 361var resourceGroups = new List<(string Name, string Location)> 928private readonly List<string>? _deletedResourceIds; 929private readonly List<(string ResourceId, string Location)>? _purgedDeletedKeyVaults; 931private readonly List<string>? _canceledDeploymentIds; 960List<string>? deletedResourceIds = null, 962List<string>? canceledDeploymentIds = null, 963List<(string ResourceId, string Location)>? purgedDeletedKeyVaults = null, 1082public List<ExecutedCommand> ExecutedCommands { get; } = [];
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = []; 36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = []; 41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = []; 46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = []; 51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = []; 56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = []; 61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubHubResource.cs (1)
45internal List<(ReferenceExpression url, string userEvents, string[]? systemEvents, UpstreamAuthSettings? auth)> EventHandlers { get; } = new();
Aspire.Hosting.Blazor (24)
BlazorDotNetCliRunner.cs (1)
25var argumentList = new List<string>(arguments.Count + 2)
BlazorGatewayExtensions.cs (15)
238var referencedServices = GetServiceDiscoveryReferences(wasmApp.Resource); 329var registeredApps = GetRegisteredApps(gateway.Resource); 364var manifests = await BuildAndDiscoverManifestsAsync(registeredApps, context.Logger, context.CancellationToken).ConfigureAwait(false); 431var registeredApps = GetRegisteredApps(gateway); 455List<GatewayAppRegistration> apps, 470private static async Task<List<AppManifestPaths>?> BuildAndDiscoverManifestsAsync( 471List<GatewayAppRegistration> apps, ILogger logger, CancellationToken ct) 473var result = new List<AppManifestPaths>(); 500List<AppManifestPaths> manifests, string outputDir, EnvironmentCallbackContext context) 606private static List<EndpointReferenceAnnotation> GetServiceDiscoveryReferences(IResource resource) 620private static GatewayAppService[] BuildGatewayAppServices(List<EndpointReferenceAnnotation> references) 699private static List<GatewayAppRegistration> GetRegisteredApps(IResource resource) 709private static List<EndpointAnnotation> GetAllocatedEndpoints(IResource resource) 711var endpoints = new List<EndpointAnnotation>(); 723List<EndpointAnnotation> endpoints, string pathPrefix)
BlazorHostedExtensions.cs (1)
305public List<HostedClientService> Services { get; } = [];
GatewayConfigurationBuilder.cs (2)
23List<GatewayAppRegistration> apps, 39var servicesList = new List<HostedClientService>();
Manifests\EndpointsManifestTransformer.cs (3)
27var fallbackEndpoints = new List<EndpointEntry>(); 74List<AppManifestPaths> appManifests, 79var mergedContentRoots = new List<string>();
Resources\GatewayAppsAnnotation.cs (2)
14public List<GatewayAppRegistration> Apps { get; } = []; 50public List<string> EndpointNames { get; } = [];
Aspire.Hosting.Blazor.Tests (30)
AddBlazorWasmAppTests.cs (1)
80var resources = builder.Resources.OfType<BlazorWasmAppResource>().ToList();
AddDotnetProjectBlazorGatewayTests.cs (1)
54var gatewayRefs = gateway.Resource.Annotations
BlazorHostedExtensionsTests.cs (2)
181var commands = host.Resource.Annotations 411var referencedNames = host.Resource.Annotations
EndpointsManifestTransformerTests.cs (2)
184var manifests = new List<AppManifestPaths> 248var manifests = new List<AppManifestPaths>
GatewayConfigurationBuilderTests.cs (19)
22var apps = new List<GatewayAppRegistration> { registration }; 45var apps = new List<GatewayAppRegistration> { registration }; 67var apps = new List<GatewayAppRegistration> { registration }; 94var apps = new List<GatewayAppRegistration> { registration }; 120var apps = new List<GatewayAppRegistration> { registration }; 140var apps = new List<GatewayAppRegistration> { registration }; 162var apps = new List<GatewayAppRegistration> 191var apps = new List<GatewayAppRegistration> { registration }; 214var apps = new List<GatewayAppRegistration> { registration }; 246var apps = new List<GatewayAppRegistration> { registration }; 267var apps = new List<GatewayAppRegistration> { registration }; 293var apps = new List<GatewayAppRegistration> { registration }; 317var apps = new List<GatewayAppRegistration> { registration }; 340var apps = new List<GatewayAppRegistration> { registration }; 365var apps = new List<GatewayAppRegistration> { registration }; 392var apps = new List<GatewayAppRegistration> 455var apps = new List<GatewayAppRegistration> { registration }; 484var apps = new List<GatewayAppRegistration> { registration }; 529var services = new List<HostedClientService> { new("weatherapi", GatewayConfigurationBuilder.DefaultApiPrefix) };
tests\Shared\TestFileSystemService.cs (1)
22private readonly List<string> _directories = [];
WithBlazorAppTests.cs (4)
74var annotations = gateway.Resource.Annotations.OfType<GatewayAppsAnnotation>().ToList(); 97var gatewayRefs = gateway.Resource.Annotations 152var refs = gateway.Resource.Annotations 208var commandNames = wasmApp.Resource.Annotations
Aspire.Hosting.Browsers (20)
BrowserConnectionDiagnosticsLogger.cs (1)
41var messages = new List<string>();
BrowserHost.cs (2)
120private static List<string> BuildBrowserArguments(BrowserLogsUserDataDirectory userDataDirectory) 124List<string> arguments =
BrowserHostRegistry.cs (1)
127List<IBrowserHost> hosts;
BrowserLogsBuilderExtensions.cs (1)
296List<ResourcePropertySnapshot> properties =
BrowserLogsCdpProtocol.cs (1)
881var items = new List<BrowserLogsCdpProtocolValue>();
BrowserLogsConfigurationManager.cs (3)
40var browserOptions = new List<KeyValuePair<string, string>>(); 153var resolvedConfigurations = ResolveEffectiveConfigurations(resource, selected); 322private List<(BrowserLogsResource Resource, BrowserConfiguration Configuration)> ResolveEffectiveConfigurations(
BrowserLogsEventLogger.cs (2)
170var details = new List<string>(); 192var details = new List<string>();
BrowserLogsPipeBrowserProcessLauncher.cs (1)
27internal static List<string> CreatePipeArguments(IReadOnlyList<string> browserArguments)
BrowserLogsPipeBrowserProcessLauncher.Unix.cs (2)
32var arguments = CreatePipeArguments(browserArguments); 313var values = new List<string>(environmentVariables.Count);
BrowserLogsPipeBrowserProcessLauncher.Windows.cs (1)
31var arguments = CreatePipeArguments(browserArguments);
BrowserLogsSessionManager.cs (3)
256var sessionsToStop = new List<IBrowserLogsRunningSession>(); 257var completionObservers = new List<Task>(); 399var reports = new List<HealthReportSnapshot>(resourceState.ActiveSessions.Count + (pendingSession is null ? 0 : 1));
src\Shared\CustomResourceSnapshotExtensions.cs (2)
40var existingProperties = new List<ResourcePropertySnapshot>(properties); 41var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.Browsers.Tests (35)
BrowserLogsBuilderExtensionsTests.cs (5)
1755return JsonSerializer.Deserialize<List<BrowserSessionPropertyValue>>(value, BrowserSessionPropertyJsonOptions) 1771public List<SessionStartCall> Calls { get; } = []; 1773public List<string> CaptureScreenshotCalls { get; } = []; 1808public List<FakeBrowserLogsRunningSession> Sessions { get; } = []; 1809public List<BrowserConfiguration> Configurations { get; } = [];
BrowserLogsCdpConnectionTests.cs (3)
213var firstEvents = new List<BrowserLogsCdpProtocolEvent>(); 214var secondEvents = new List<BrowserLogsCdpProtocolEvent>(); 260var survivingEvents = new List<BrowserLogsCdpProtocolEvent>();
BrowserLogsPipeBrowserProcessLauncherTests.cs (1)
22var pipeArguments = BrowserLogsPipeBrowserProcessLauncher.CreatePipeArguments(originalArguments);
BrowserLogsSessionManagerTests.cs (2)
66var createdHosts = new List<TestBrowserHost>(); 106var createdHosts = new List<TestBrowserHost>();
BrowserPageSessionTests.cs (3)
50var routedEvents = new List<BrowserLogsCdpProtocolEvent>(); 215var routedEvents = new List<BrowserLogsCdpProtocolEvent>(); 390public List<string> Calls { get; } = [];
ConsoleLoggingTestHelpers.cs (1)
40var logs = new List<LogLine>();
src\Aspire.Hosting.Browsers\BrowserConnectionDiagnosticsLogger.cs (1)
41var messages = new List<string>();
src\Aspire.Hosting.Browsers\BrowserHost.cs (2)
120private static List<string> BuildBrowserArguments(BrowserLogsUserDataDirectory userDataDirectory) 124List<string> arguments =
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (1)
127List<IBrowserHost> hosts;
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (1)
296List<ResourcePropertySnapshot> properties =
src\Aspire.Hosting.Browsers\BrowserLogsCdpProtocol.cs (1)
881var items = new List<BrowserLogsCdpProtocolValue>();
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (3)
40var browserOptions = new List<KeyValuePair<string, string>>(); 153var resolvedConfigurations = ResolveEffectiveConfigurations(resource, selected); 322private List<(BrowserLogsResource Resource, BrowserConfiguration Configuration)> ResolveEffectiveConfigurations(
src\Aspire.Hosting.Browsers\BrowserLogsEventLogger.cs (2)
170var details = new List<string>(); 192var details = new List<string>();
src\Aspire.Hosting.Browsers\BrowserLogsPipeBrowserProcessLauncher.cs (1)
27internal static List<string> CreatePipeArguments(IReadOnlyList<string> browserArguments)
src\Aspire.Hosting.Browsers\BrowserLogsPipeBrowserProcessLauncher.Unix.cs (2)
32var arguments = CreatePipeArguments(browserArguments); 313var values = new List<string>(environmentVariables.Count);
src\Aspire.Hosting.Browsers\BrowserLogsPipeBrowserProcessLauncher.Windows.cs (1)
31var arguments = CreatePipeArguments(browserArguments);
src\Aspire.Hosting.Browsers\BrowserLogsSessionManager.cs (3)
256var sessionsToStop = new List<IBrowserLogsRunningSession>(); 257var completionObservers = new List<Task>(); 399var reports = new List<HealthReportSnapshot>(resourceState.ActiveSessions.Count + (pendingSession is null ? 0 : 1));
src\Shared\CustomResourceSnapshotExtensions.cs (2)
40var existingProperties = new List<ResourcePropertySnapshot>(properties); 41var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.CodeGeneration.Go (47)
AtsGoCodeGenerator.cs (47)
194var ordered = handleTypeIds 248var reservationOptionals = capability.Parameters 387private static Dictionary<string, List<AtsCapabilityInfo>> GroupCapabilitiesByDirectTarget( 390var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 397if (!result.TryGetValue(capability.TargetTypeId, out var list)) 412private Dictionary<string, List<AtsCapabilityInfo>> GroupCapabilitiesByConcreteImpl( 415var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 442if (!result.TryGetValue(targetType.TypeId, out var list)) 715var members = new List<string>(); 772private void GenerateMarkerInterfaces(Dictionary<string, List<AtsCapabilityInfo>> capabilitiesByDirectTarget) 774var interfaceTypeIds = _interfaceNames 806private void GenerateConcreteHandleTypes(Dictionary<string, List<AtsCapabilityInfo>> capabilitiesByConcreteImpl) 808var concreteTypeIds = _implNames.Keys.OrderBy(id => _interfaceNames[id], StringComparer.Ordinal).ToList(); 823var capabilities = capabilitiesByConcreteImpl.TryGetValue(typeId, out var caps) 829var listDictGetters = CollectListDictGetters(capabilities); 847private static List<(string Field, string MethodName, AtsTypeRef ReturnType, string CapabilityId, string? Description)> 850var result = new List<(string, string, AtsTypeRef, string, string?)>(); 854var nonTargetParams = capability.Parameters 885List<(string Field, string MethodName, AtsTypeRef ReturnType, string CapabilityId, string? Description)> listDictGetters) 940List<(string Field, string MethodName, AtsTypeRef ReturnType, string CapabilityId, string? Description)> listDictGetters) 1016var parameters = capability.Parameters 1026private static (List<AtsParameterInfo> Required, List<AtsParameterInfo> Optional) SplitParameters( 1027List<AtsParameterInfo> parameters) 1029var required = new List<AtsParameterInfo>(); 1030var optional = new List<AtsParameterInfo>(); 1064List<AtsParameterInfo> requiredParams, 1065List<AtsParameterInfo> optionalParams, 1205List<(string Field, string MethodName, AtsTypeRef ReturnType, string CapabilityId, string? Description)> listDictGetters) 1224var parameters = capability.Parameters 1260List<AtsParameterInfo> requiredParams, 1261List<AtsParameterInfo> optionalParams, 1333List<AtsParameterInfo> requiredParams, 1334List<AtsParameterInfo> optionalParams, 1358List<AtsParameterInfo> requiredParams, 1359List<AtsParameterInfo> optionalParams, 1396List<AtsParameterInfo> requiredParams, 1397List<AtsParameterInfo> optionalParams, 1570var argNames = new List<string>(callbackParameters.Count); 1642var optionalParams = capability.Parameters 1765var aOpts = a.Parameters 1770var bOpts = b.Parameters 1809private static List<AtsParameterInfo> GetUnionParameters(AtsCapabilityInfo capability) 1814var result = new List<AtsParameterInfo>(); 1887List<AtsParameterInfo> requiredParams, 1888List<AtsParameterInfo> optionalParams,
Aspire.Hosting.CodeGeneration.Go.Tests (19)
AtsGoCodeGeneratorTests.cs (13)
66var capabilities = ScanCapabilitiesFromTestAssembly(); 81var capabilities = ScanCapabilitiesFromTestAssembly(); 95var capabilities = ScanCapabilitiesFromTestAssembly(); 110var capabilities = ScanCapabilitiesFromTestAssembly(); 129var capabilities = ScanCapabilitiesFromTestAssembly(); 141var capabilities = ScanCapabilitiesFromTestAssembly(); 153var capabilities = ScanCapabilitiesFromTestAssembly(); 165var capabilities = ScanCapabilitiesFromHostingAssembly(); 188var capabilities = ScanCapabilitiesFromBothAssemblies(); 191var duplicates = capabilities 378private static List<AtsCapabilityInfo> ScanCapabilitiesFromTestAssembly() 402private static List<AtsCapabilityInfo> ScanCapabilitiesFromHostingAssembly() 409private static List<AtsCapabilityInfo> ScanCapabilitiesFromBothAssemblies()
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (2)
272List<string> labels) 473public static List<string> GetTags(this IResourceBuilder<TestRedisResource> builder)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (4)
123public List<string> Items { get; } = []; 134public List<string> Tags { get; set; } = []; 147public List<string> Tags { get; set; } = []; 186public Dictionary<string, List<TestConfigDto>> NestedData { get; set; } = [];
Aspire.Hosting.CodeGeneration.Java (70)
AtsJavaCodeGenerator.cs (70)
41private readonly Dictionary<string, List<AtsParameterInfo>> _optionsClassesToGenerate = new(StringComparer.Ordinal); 118var importLines = new List<string>(); 153List<string>? currentDeclaration = null; 154List<string>? pendingLines = []; 410private static int FindDeclarationLineIndex(List<string> declarationLines) 461private static List<string> FilterImports(List<string> importLines, List<string> declarationLines) 464var used = new List<string>(); 523private static string CreateJavaSourceFile(string fileName, string packageLine, List<string> importLines, List<string> declarationLines) 533var usedImports = FilterImports(importLines, declarationLines); 934var parameters = capability.Parameters 945private void RegisterOptionsClass(string capabilityId, string methodName, List<AtsParameterInfo> optionalParameters) 948if (_optionsClassesToGenerate.TryGetValue(baseClassName, out var existingParameters)) 959if (!_optionsClassesToGenerate.TryGetValue(suffixedName, out var suffixedParameters)) 978private static bool AreOptionsCompatible(List<AtsParameterInfo> existing, List<AtsParameterInfo> candidate) 1071private static (List<AtsParameterInfo> Required, List<AtsParameterInfo> Optional) SeparateParameters(IEnumerable<AtsParameterInfo> parameters) 1073var required = new List<AtsParameterInfo>(); 1074var optional = new List<AtsParameterInfo>(); 1099var argumentList = arguments.ToList(); 1104private List<JavaMethodParameter> CreateMethodParameters(IEnumerable<AtsParameterInfo> parameters) 1106var result = new List<JavaMethodParameter>(); 1160var convertibleParameters = parameters 1180var overloadParameters = new List<string>(parameters.Count); 1181var callArguments = new List<string>(parameters.Count); 1233Dictionary<string, List<AtsCapabilityInfo>> capabilitiesByTarget) 1254if (capabilitiesByTarget.TryGetValue(handleType.TypeId, out var methods)) 1346var parameters = capability.Parameters 1375private void GenerateUnionOverloads(JavaCapabilityReturnInfo returnInfo, string methodName, List<AtsParameterInfo> parameters) 1377var unionParameters = parameters.Where(p => IsUnionType(p.Type)).ToList(); 1395private void GenerateSingleUnionOverloads(JavaCapabilityReturnInfo returnInfo, string methodName, List<AtsParameterInfo> parameters, AtsParameterInfo unionParameter) 1451private void GenerateMultiUnionOverloads(JavaCapabilityReturnInfo returnInfo, string methodName, List<AtsParameterInfo> parameters, List<AtsParameterInfo> unionParameters) 1454var unionTypesByParam = unionParameters 1463var combinations = CartesianProduct(unionTypesByParam); 1465foreach (var combination in combinations) 1503private static List<List<AtsTypeRef>> CartesianProduct(List<List<AtsTypeRef>> lists) 1505var result = new List<List<AtsTypeRef>> { new() }; 1506foreach (var list in lists) 1508var temp = new List<List<AtsTypeRef>>(); 1509foreach (var existing in result) 1513var combined = new List<AtsTypeRef>(existing) { item }; 1522private void GenerateOptionalOverloads(JavaCapabilityReturnInfo returnInfo, string methodName, List<AtsParameterInfo> parameters) 1532var visibleParameters = parameters.Take(parameters.Count - omitCount).ToList(); 1536var callArguments = new List<string>(parameters.Count); 1576List<AtsParameterInfo> requiredParameters, 1579var unionParameters = requiredParameters.Where(p => IsUnionType(p.Type)).ToList(); 1638var bridgeParameters = CreateUnionMethodParameters(requiredParameters, unionParameter, unionType); 1672private List<JavaMethodParameter> CreateUnionMethodParameters( 1673List<AtsParameterInfo> parameters, 1677var result = new List<JavaMethodParameter>(parameters.Count); 1711List<AtsParameterInfo> requiredParameters, 1712List<AtsParameterInfo> optionalParameters, 1737var implementationArguments = requiredParameters 1753var optionsParameters = CreateMethodParameters(requiredParameters); 1780private void GenerateCapabilityMethodImplementation(AtsCapabilityInfo capability, JavaCapabilityReturnInfo returnInfo, string methodName, string targetParamName, List<AtsParameterInfo> parameters, bool isPublic) 1894var typeArguments = new List<string>(); 1922var callArguments = new List<string>(); 2385var results = new List<JavaHandleType>(); 2419private static Dictionary<string, List<AtsCapabilityInfo>> GroupCapabilitiesByTarget( 2422var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 2444if (!result.TryGetValue(targetType.TypeId, out var list))
Aspire.Hosting.CodeGeneration.Java.Tests (24)
AtsJavaCodeGeneratorTests.cs (18)
96var capabilities = ScanCapabilitiesFromTestAssembly(); 111var capabilities = ScanCapabilitiesFromTestAssembly(); 125var capabilities = ScanCapabilitiesFromTestAssembly(); 140var capabilities = ScanCapabilitiesFromTestAssembly(); 159var capabilities = ScanCapabilitiesFromTestAssembly(); 171var capabilities = ScanCapabilitiesFromTestAssembly(); 183var capabilities = ScanCapabilitiesFromTestAssembly(); 195var capabilities = ScanCapabilitiesFromHostingAssembly(); 206var capabilities = ScanCapabilitiesFromHostingAssembly(); 242var capabilities = ScanCapabilitiesFromBothAssemblies(); 245var duplicates = capabilities 386var javaFiles = files.Where(kvp => kvp.Key.EndsWith(".java", StringComparison.Ordinal)).ToList(); 389var unsuppressed = javaFiles 407var withWildcards = files 426var offenders = new List<string>(); 508private static List<AtsCapabilityInfo> ScanCapabilitiesFromTestAssembly() 532private static List<AtsCapabilityInfo> ScanCapabilitiesFromHostingAssembly() 539private static List<AtsCapabilityInfo> ScanCapabilitiesFromBothAssemblies()
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (2)
272List<string> labels) 473public static List<string> GetTags(this IResourceBuilder<TestRedisResource> builder)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (4)
123public List<string> Items { get; } = []; 134public List<string> Tags { get; set; } = []; 147public List<string> Tags { get; set; } = []; 186public Dictionary<string, List<TestConfigDto>> NestedData { get; set; } = [];
Aspire.Hosting.CodeGeneration.Python (84)
AtsPythonCodeGenerator.cs (83)
22public required List<AtsCapabilityInfo> Capabilities { get; init; } 116List<AtsParameterInfo> RequiredParameters, 117List<AtsParameterInfo> OptionalParameters, 142private readonly List<string> _ignoreTypes = new() 298private List<AtsCapabilityInfo> MergeCapabilitiesBySourceLocation(List<AtsCapabilityInfo> capabilities) 300var result = new List<AtsCapabilityInfo>(); 311var items = group.ToList(); 359var mergedParams = new List<AtsParameterInfo>(); 427private static List<AtsParameterInfo> FilterMethodParameters(IReadOnlyList<AtsParameterInfo> parameters, string? targetParameterName = null) 712var allBuilders = CreateBuilderModels(capabilities); 713var entryPoints = GetEntryPointCapabilities(capabilities); 716var builders = allBuilders; 765var resources = builders.Where(b => b.TargetType?.IsResourceBuilder == true).ToList(); 766var typeClasses = builders.Where(b => b.TargetType?.IsResourceBuilder != true).ToList(); 767var interfaceClasses = resources.Where(b => b.IsInterface).ToList(); 949var members = new List<string>(); 1026var getters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList(); 1027var setters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList(); 1028var contextMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.InstanceMethod).ToList(); 1029var otherMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.Method).ToList(); 1032var allMethods = contextMethods.Concat(otherMethods).ToList(); 1067var properties = GroupPropertiesByName(getters, setters); 1124private static List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)> GroupPropertiesByName( 1125List<AtsCapabilityInfo> getters, List<AtsCapabilityInfo> setters) 1127var result = new List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)>(); 1281var userParams = FilterMethodParameters(capability.Parameters, targetParamName); 1282var requiredParams = userParams.Where(p => !p.IsOptional && !p.IsNullable).ToList(); 1283var optionalParams = userParams.Where(p => !requiredParams.Contains(p)).ToList(); 1382var implementedInterfaces = builder.TargetType?.ImplementedInterfaces.ToList(); 1409var getters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList(); 1410var setters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList(); 1411var properties = GroupPropertiesByName(getters, setters); 1421var methods = builder.Capabilities.Where(c => 1450var baseTypeInterfaces = new List<string>(); 1463var implementedInterfaces = builder.TargetType?.ImplementedInterfaces.Where(i => !baseTypeInterfaces.Contains(i.TypeId)).ToList(); 1528var optionNames = new List<string>(); 1529if (!isBaseResource && _moduleBuilder.ResourceOptionNames.TryGetValue(baseBuilderClassName, out var baseOptionNames)) 1537var getters = builder.Capabilities.Where(c => 1540var setters = builder.Capabilities.Where(c => 1543var properties = GroupPropertiesByName(getters, setters); 1554var methods = builder.Capabilities.Where(c => 1587var userParams = FilterMethodParameters(capability.Parameters, targetParamName); 1593var requiredParams = userParams.Where(p => !p.IsOptional && !p.IsNullable).ToList(); 1594var optionalParams = userParams.Where(p => !requiredParams.Contains(p)).ToList(); 1603var optionTypeVariations = CreateOptionVariations(capability, userParams, requiredParams, optionalParams); 1614if (builderClassName != null && _moduleBuilder.ResourceOptionNames.TryGetValue(builderClassName, out var optionNamesList)) 1725private void GenerateEntryPointFunctions(System.Text.StringBuilder sb, List<AtsCapabilityInfo> entryPoints) 1743var paramDefs = new List<string> { "client: AspireClient" }; 1744var paramArgs = new List<string>(); 1746var userParams = FilterMethodParameters(capability.Parameters); 1825private List<BuilderModel> CreateBuilderModels(IReadOnlyList<AtsCapabilityInfo> capabilities) 1828var capabilitiesByTypeId = new Dictionary<string, List<AtsCapabilityInfo>>(); 1834var interfaceCapabilities = new Dictionary<string, List<AtsCapabilityInfo>>(); 1853if (!interfaceCapabilities.TryGetValue(targetTypeId, out var interfaceList)) 1868if (!capabilitiesByTypeId.TryGetValue(expandedType.TypeId, out var list)) 1881if (!capabilitiesByTypeId.TryGetValue(targetTypeId, out var list)) 1892var builders = new List<BuilderModel>(); 1899var uniqueCapabilities = typeCapabilities 1927var uniqueCapabilities = caps 1964var applicableCapabilities = new List<AtsCapabilityInfo>(); 1999private static List<BuilderModel> TopologicalSortBuilders(List<BuilderModel> builders) 2026var result = new List<BuilderModel>(); 2156private static List<AtsCapabilityInfo> GetEntryPointCapabilities(IReadOnlyList<AtsCapabilityInfo> capabilities) 2365private List<OptionVariation> CreateOptionVariations( 2367List<AtsParameterInfo> parameters, 2368List<AtsParameterInfo> requiredParameters, 2369List<AtsParameterInfo> optionalParameters) 2375var variations = new List<OptionVariation>(); 2437private void AddParameterMapping(string methodName, List<AtsParameterInfo> requiredParameters, List<AtsParameterInfo> optionalParameters) 2473List<AtsParameterInfo> requiredParams, 2474List<AtsParameterInfo> optionalParams, 2498var tupleSlots = SplitTupleTypes(optionType.Trim('(', ')')); 2515List<OptionVariation> variations, 2522var requiredParameters = variation.RequiredParameters; 2523var optionalParameters = variation.OptionalParameters; 2581var paramTypes = SplitTupleTypes(currentOption.Trim('(', ')')); 2625var paramTypes = parameters?.Select(p => MapTypeRefToPython(p.Type)).ToList() ?? []; 2640private static List<string> SplitTupleTypes(string tupleContent) 2642var result = new List<string>();
PythonModuleBuilder.cs (1)
53public Dictionary<string, List<string>> ResourceOptionNames { get; } = new();
Aspire.Hosting.CodeGeneration.Python.Tests (19)
AtsPythonCodeGeneratorTests.cs (13)
63var capabilities = ScanCapabilitiesFromTestAssembly(); 79var capabilities = ScanCapabilitiesFromTestAssembly(); 93var capabilities = ScanCapabilitiesFromTestAssembly(); 108var capabilities = ScanCapabilitiesFromTestAssembly(); 127var capabilities = ScanCapabilitiesFromTestAssembly(); 139var capabilities = ScanCapabilitiesFromTestAssembly(); 151var capabilities = ScanCapabilitiesFromTestAssembly(); 163var capabilities = ScanCapabilitiesFromHostingAssembly(); 186var capabilities = ScanCapabilitiesFromBothAssemblies(); 189var duplicates = capabilities 330private static List<AtsCapabilityInfo> ScanCapabilitiesFromTestAssembly() 354private static List<AtsCapabilityInfo> ScanCapabilitiesFromHostingAssembly() 361private static List<AtsCapabilityInfo> ScanCapabilitiesFromBothAssemblies()
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (2)
272List<string> labels) 473public static List<string> GetTags(this IResourceBuilder<TestRedisResource> builder)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (4)
123public List<string> Items { get; } = []; 134public List<string> Tags { get; set; } = []; 147public List<string> Tags { get; set; } = []; 186public Dictionary<string, List<TestConfigDto>> NestedData { get; set; } = [];
Aspire.Hosting.CodeGeneration.Rust (7)
AtsRustCodeGenerator.cs (7)
400Dictionary<string, List<AtsCapabilityInfo>> capabilitiesByTarget) 443if (capabilitiesByTarget.TryGetValue(handleType.TypeId, out var methods)) 460var parameters = capability.Parameters 823var results = new List<RustHandleType>(); 838private static Dictionary<string, List<AtsCapabilityInfo>> GroupCapabilitiesByTarget( 841var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 863if (!result.TryGetValue(targetType.TypeId, out var list))
Aspire.Hosting.CodeGeneration.Rust.Tests (20)
AtsRustCodeGeneratorTests.cs (13)
65var capabilities = ScanCapabilitiesFromTestAssembly(); 80var capabilities = ScanCapabilitiesFromTestAssembly(); 94var capabilities = ScanCapabilitiesFromTestAssembly(); 109var capabilities = ScanCapabilitiesFromTestAssembly(); 128var capabilities = ScanCapabilitiesFromTestAssembly(); 140var capabilities = ScanCapabilitiesFromTestAssembly(); 152var capabilities = ScanCapabilitiesFromTestAssembly(); 164var capabilities = ScanCapabilitiesFromHostingAssembly(); 187var capabilities = ScanCapabilitiesFromBothAssemblies(); 190var duplicates = capabilities 282private static List<AtsCapabilityInfo> ScanCapabilitiesFromTestAssembly() 306private static List<AtsCapabilityInfo> ScanCapabilitiesFromHostingAssembly() 313private static List<AtsCapabilityInfo> ScanCapabilitiesFromBothAssemblies()
RustLanguageSupportTests.cs (1)
126var names = new List<string>();
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (2)
272List<string> labels) 473public static List<string> GetTags(this IResourceBuilder<TestRedisResource> builder)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (4)
123public List<string> Items { get; } = []; 134public List<string> Tags { get; set; } = []; 147public List<string> Tags { get; set; } = []; 186public Dictionary<string, List<TestConfigDto>> NestedData { get; set; } = [];
Aspire.Hosting.CodeGeneration.TypeScript (123)
AtsTypeScriptCodeGenerator.cs (123)
21public required List<AtsCapabilityInfo> Capabilities { get; init; } 130private readonly Dictionary<string, List<AtsParameterInfo>> _optionsInterfacesToGenerate = new(StringComparer.Ordinal); 423var nonHandleTypes = new List<string>(); 424var handleTypeNames = new List<string>(); 443var allBaseTypes = nonHandleTypes 478var parameterDocs = (publicParameters ?? capability.Parameters 523var lines = new List<string>(); 563private static void AddTaggedDocumentationLines(List<string> lines, string tag, string? text) 570var tagLines = SplitDocumentationLines(text); 583private static void AddDocumentationLines(List<string> lines, string? text, bool addBlankLineBefore = false) 585var textLines = SplitDocumentationLines(text); 599private static List<string> SplitDocumentationLines(string? text) 674List<string>? assignableWrapperTypes = null; 790private bool TryGetDtoCallbackMarshallingProperties(AtsTypeRef? typeRef, out List<AtsDtoPropertyInfo> marshallingProperties) 944var allBuilders = CreateBuilderModels(capabilities); 945var entryPoints = GetEntryPointCapabilities(capabilities); 948var builders = allBuilders; 951var clientMethods = entryPoints 982var resourceBuilders = builders.Where(b => b.TargetType?.IsResourceBuilder == true).ToList(); 983var typeClasses = builders.Where(b => b.TargetType?.IsResourceBuilder != true).ToList(); 1017directlyReturnedResourceTypesByClassName.TryGetValue(builder.BuilderClassName, out var directlyReturnedAliases); 1171var generatedEnumTypes = enumTypes 1214var generatedDtoTypes = dtoTypes 1341var members = new List<string>(); 1447private static (List<AtsParameterInfo> Required, List<AtsParameterInfo> Optional) SeparateParameters( 1450var required = new List<AtsParameterInfo>(); 1451var optional = new List<AtsParameterInfo>(); 1468private static bool TryGetDirectOptionsParameter(List<AtsParameterInfo> optionalParams, out AtsParameterInfo? directOptionsParam) 1483private static AtsParameterInfo? GetTrailingCancellationTokenParameter(List<AtsParameterInfo> optionalParams) 1499private void RegisterOptionsInterface(string capabilityId, string methodName, List<AtsParameterInfo> optionalParams) 1509if (_optionsInterfacesToGenerate.TryGetValue(baseInterfaceName, out var existingParams)) 1530if (!_optionsInterfacesToGenerate.TryGetValue(suffixedName, out var suffixedParams)) 1568private static bool AreOptionsCompatible(List<AtsParameterInfo> existing, List<AtsParameterInfo> candidate) 1672List<AtsParameterInfo> requiredParams, 1678var publicParamDefs = new List<string>(); 1858var getters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList(); 1859var setters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList(); 1862var properties = GroupPropertiesByName(getters, setters); 1874var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList(); 1912var capabilities = builder.Capabilities.Where(c => 1915var getters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList(); 1916var setters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList(); 1917var getterOnlyProperties = GroupPropertiesByName(getters, setters) 1934var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList(); 1971var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList(); 2008var getters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList(); 2009var setters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList(); 2010var contextMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.InstanceMethod).ToList(); 2011var otherMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.Method).ToList(); 2012var standardMethods = contextMethods.Concat(otherMethods).ToList(); 2015var properties = GroupPropertiesByName(getters, setters); 2016var getterOnlyProperties = properties 2076var getters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList(); 2077var setters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList(); 2080var properties = GroupPropertiesByName(getters, setters); 2138var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList(); 2151var internalParamDefs = new List<string>(); 2205var callbackParamsForPromiseWrapper = userParams.Where(p => p.IsCallback).ToList(); 2242var callbackParams2 = userParams.Where(p => p.IsCallback).ToList(); 2282var callbackParams = userParams.Where(p => p.IsCallback).ToList(); 2455List<AtsParameterInfo> requiredParams, 2456List<AtsParameterInfo> optionalParams, 2469var requiredArgs = new List<string> { $"{targetParamName}: this._handle" }; 2491List<AtsParameterInfo> requiredParams, 2492List<AtsParameterInfo> optionalParams, 2502var requiredArgs = new List<string> { $"{targetParamName}: this._handle" }; 2527if (!TryGetDtoCallbackMarshallingProperties(param.Type, out var marshallingProperties)) 2593if (!TryGetDtoCallbackMarshallingProperties(dtoProperty.Type, out var nestedMarshallingProperties)) 2663var capabilities = builder.Capabilities.Where(c => 2666var getters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList(); 2667var setters = builder.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList(); 2668var getterOnlyProperties = GroupPropertiesByName(getters, setters) 2718var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList(); 2728var publicParamDefs = new List<string>(); 2745var forwardArgs = new List<string>(); 2821private void GenerateAspireClient(List<AtsCapabilityInfo> entryPoints) 2864var paramDefs = new List<string> { "client: AspireClientRpc" }; 2906var requiredArgs = requiredParams 2942var requiredArgs = requiredParams 2980var paramList = new List<string>(); 3074var callArgs = new List<string>(); 3259private void GenerateHandleWrapperRegistrations(List<BuilderModel> typeClasses, List<BuilderModel> resourceBuilders) 3318var getters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList(); 3319var setters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList(); 3320var contextMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.InstanceMethod).ToList(); 3321var otherMethods = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.Method).ToList(); 3322var allMethods = contextMethods.Concat(otherMethods).ToList(); 3334var properties = GroupPropertiesByName(getters, setters); 3335var getterOnlyProperties = properties 3379private static List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)> GroupPropertiesByName( 3380List<AtsCapabilityInfo> getters, List<AtsCapabilityInfo> setters) 3382var result = new List<(string PropertyName, AtsCapabilityInfo? Getter, AtsCapabilityInfo? Setter)>(); 3877var userParams = method.Parameters.Where(p => p.Name != targetParamName).ToList(); 3992var userParams = capability.Parameters.Where(p => p.Name != firstParamName).ToList(); 4110var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList(); 4123var internalParamDefs = new List<string>(); 4153var callbackParams = userParams.Where(p => p.IsCallback).ToList(); 4211var callbackParams = userParams.Where(p => p.IsCallback).ToList(); 4265var callbackParams = userParams.Where(p => p.IsCallback).ToList(); 4319private void GenerateTypeClassThenableWrapper(BuilderModel model, List<AtsCapabilityInfo> methods) 4343var getters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList(); 4344var setters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList(); 4345var getterOnlyProperties = GroupPropertiesByName(getters, setters) 4373var userParams = capability.Parameters.Where(p => p.Name != targetParamName).ToList(); 4383var publicParamDefs = new List<string>(); 4400var forwardArgs = new List<string>(); 4472private static List<BuilderModel> CreateBuilderModels(IReadOnlyList<AtsCapabilityInfo> capabilities) 4477var capabilitiesByTypeId = new Dictionary<string, List<AtsCapabilityInfo>>(); 4483var interfaceCapabilities = new Dictionary<string, List<AtsCapabilityInfo>>(); 4515if (!capabilitiesByTypeId.TryGetValue(expandedType.TypeId, out var list)) 4528if (!interfaceCapabilities.TryGetValue(targetTypeId, out var interfaceList)) 4541if (!capabilitiesByTypeId.TryGetValue(targetTypeId, out var list)) 4553var builders = new List<BuilderModel>(); 4562var uniqueCapabilities = typeCapabilities 4595var uniqueCapabilities = caps 4659var candidates = group 4784private static List<AtsCapabilityInfo> GetEntryPointCapabilities(IReadOnlyList<AtsCapabilityInfo> capabilities) 4854var getters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertyGetter).ToList(); 4855var setters = model.Capabilities.Where(c => c.CapabilityKind == AtsCapabilityKind.PropertySetter).ToList();
Aspire.Hosting.CodeGeneration.TypeScript.Tests (61)
AtsTypeScriptCodeGeneratorTests.cs (55)
123var capabilities = ScanCapabilitiesFromTestAssembly(); 138var capabilities = ScanCapabilitiesFromTestAssembly(); 152var capabilities = ScanCapabilitiesFromTestAssembly(); 277var capabilities = ScanCapabilitiesFromTestAssembly(); 280var contextCapabilities = capabilities.Where(c => 379var capabilities = ScanCapabilitiesFromTestAssembly(); 396var capabilities = ScanCapabilitiesFromTestAssembly(); 421var baseTypes = new List<string>(); 438var capabilities = ScanCapabilitiesFromTestAssembly(); 453var capabilities = ScanCapabilitiesFromTestAssembly(); 503var capabilities = ScanCapabilitiesFromTestAssembly(); 515var capabilities = ScanCapabilitiesFromTestAssembly(); 527var capabilities = ScanCapabilitiesFromHostingAssembly(); 538var capabilities = ScanCapabilitiesFromBrowsersAssembly(); 554var capabilities = ScanCapabilitiesFromHostingAssembly(); 557var containerCapabilities = capabilities 589var capabilities = ScanCapabilitiesFromHostingAssembly(); 592var directContainerCapabilities = capabilities 625var capabilities = ScanCapabilitiesFromHostingAssembly(); 653var capabilities = ScanCapabilitiesFromTestAssembly(); 681var capabilities = ScanCapabilitiesFromTestAssembly(); 708var capabilities = ScanCapabilitiesFromHostingAssembly(); 734var capabilities = ScanCapabilitiesFromTestAssembly(); 799var capabilities = ScanCapabilitiesFromTestAssembly(); 824var capabilities = ScanCapabilitiesFromTestAssembly(); 857var capabilities = ScanCapabilitiesFromTestAssembly(); 887var capabilities = ScanCapabilitiesFromHostingAssembly(); 913var capabilities = ScanCapabilitiesFromHostingAssembly(); 927var capabilities = ScanCapabilitiesFromHostingAssembly(); 962var capabilities = ScanCapabilitiesFromBothAssemblies(); 965var duplicates = capabilities 1078var fixtureCapabilities = scannedContext.Capabilities 1134var capabilities = scannedContext.Capabilities 1189var declarations = new List<string>(); 1198var duplicateDeclarations = declarations 1222var dangling = referenced.Except(declared).OrderBy(name => name, StringComparer.Ordinal).ToList(); 1317var mismatches = new List<string>(); 1423var capabilities = ScanCapabilitiesFromAzureAssemblies(); 1441var capabilities = ScanCapabilitiesFromAzureAssemblies(); 1473private static List<AtsCapabilityInfo> ScanCapabilitiesFromTestAssembly() 1560private static List<AtsCapabilityInfo> ScanCapabilitiesFromHostingAssembly() 1567private static List<AtsCapabilityInfo> ScanCapabilitiesFromBrowsersAssembly() 1581private static List<AtsCapabilityInfo> ScanCapabilitiesFromBothAssemblies() 1599private static List<AtsCapabilityInfo> ScanCapabilitiesFromAzureAssemblies() 1677var capabilities = ScanCapabilitiesFromHostingAssembly(); 1760var capabilities = ScanCapabilitiesFromHostingAssembly(); 1813var capabilities = ScanCapabilitiesFromBothAssemblies(); 1824var capabilities = ScanCapabilitiesFromHostingAssembly(); 1838var capabilities = ScanCapabilitiesFromTestAssembly(); 1908var capabilities = ScanCapabilitiesFromTestAssembly(); 1939var capabilities = ScanCapabilitiesFromTestAssembly(); 1961var capabilities = ScanCapabilitiesFromTestAssembly(); 2082var capabilities = ScanCapabilitiesFromTestAssembly(); 2256var expandedTypeIds = withNpm.ExpandedTargetTypes.Select(t => t.TypeId).ToList(); 2287var expandedTypeIds = capability.ExpandedTargetTypes.Select(t => t.TypeId).ToList();
TestTypes\TestExtensions.cs (2)
272List<string> labels) 473public static List<string> GetTags(this IResourceBuilder<TestRedisResource> builder)
TestTypes\TestTypes.cs (4)
123public List<string> Items { get; } = []; 134public List<string> Tags { get; set; } = []; 147public List<string> Tags { get; set; } = []; 186public Dictionary<string, List<TestConfigDto>> NestedData { get; set; } = [];
Aspire.Hosting.Containers.Tests (16)
ContainerResourceTests.cs (1)
125var args = await ArgumentEvaluator.GetArgumentListAsync(c2.Resource);
ResourceFailureLoggingTests.cs (8)
37var logLines = GetLogLines(logCollector); 61var logLines = GetLogLines(logCollector); 85var logLines = GetLogLines(logCollector); 107var logLines = GetLogLines(logCollector); 122private static List<string> GetLogLines(FakeLogCollector logCollector) 130private static void AssertSingleLogLine(List<string> logLines, Func<string, bool> predicate, string expected) 132var matches = logLines.Where(predicate).ToList(); 138private static string FormatLogLines(List<string> logLines)
WithDockerfileTests.cs (7)
217var containers = await kubernetes.ListAsync<Container>(); 250var containers = await kubernetes.ListAsync<Container>(); 487var containers = await kubernetes.ListAsync<Container>(); 558var containers = await kubernetes.ListAsync<Container>(); 807var steps = (await stepsAnnotation.CreateStepsAsync(factoryContext)).ToList(); 974var steps = (await pipelineStepAnnotation.CreateStepsAsync(factoryContext)).ToList(); 1019var steps = (await pipelineStepAnnotation1.CreateStepsAsync(factoryContext)).ToList();
Aspire.Hosting.DevTunnels (12)
DevTunnelCli.cs (2)
409private readonly List<string> _args = [.. initialArgs]; 461internal ArgsBuilder AddValues(string name, List<string>? values, char? separator = null)
DevTunnelOptions.cs (2)
24public List<string>? Labels { get; set; } 81public List<string>? Labels { get; set; }
DevTunnelResource.cs (1)
37internal List<DevTunnelPortResource> Ports { get; } = [];
DevTunnelResourceBuilderExtensions.cs (7)
171var portTasks = new List<Task> { DeleteUnmodeledPortsAsync() }; 179var unmodeledPorts = existingPorts.Ports.Where(p => !modeledPortNumbers.Contains(p.PortNumber)).ToList(); 634var urls = context.Urls; 800var urlProperties = GetUrlProperties(portResource); 833private static List<ResourcePropertySnapshot> GetUrlProperties(DevTunnelPortResource portResource) 840List<ResourcePropertySnapshot> properties = 934private static bool TryValidateLabels(List<string>? labels, [NotNullWhen(false)] out string? errorMessage)
Aspire.Hosting.Docker (35)
DockerComposeEnvironmentContext.cs (1)
156var keysToRemove = environmentVariables
DockerComposeEnvironmentResource.cs (1)
65var steps = new List<PipelineStep>();
DockerComposeServiceResource.cs (6)
42var steps = new List<PipelineStep>(); 97internal List<object> Args { get; } = []; 102internal List<Volume> Volumes { get; } = []; 236var args = new List<string>(); 328var externalEndpointMappings = EndpointMappings.Values.Where(m => m.IsExternal).ToList(); 366List<EndpointMapping> externalEndpointMappings,
EnvFile.cs (2)
100var lines = new List<string>(); 134var lines = new List<string>();
Resources\ComposeNodes\Service.cs (20)
71public List<string> Command { get; set; } = []; 79public List<string> Entrypoint { get; set; } = []; 98public List<string> EnvFile { get; set; } = []; 113public List<string> Ports { get; set; } = []; 122public List<string> Expose { get; set; } = []; 134public List<Volume> Volumes { get; set; } = []; 165public List<string> Networks { get; set; } = []; 281public List<string> CapAdd { get; set; } = []; 289public List<string> CapDrop { get; set; } = []; 303public List<string> Devices { get; set; } = []; 309public List<string> Dns { get; set; } = []; 318public List<string> DnsSearch { get; set; } = []; 334public List<string> GroupAdd { get; set; } = []; 348public List<string> Links { get; set; } = []; 356public List<string> ExternalLinks { get; set; } = []; 376public List<string> Profiles { get; set; } = []; 392public List<string> SecurityOpt { get; set; } = []; 402public List<SecretReference> Secrets { get; set; } = []; 410public List<ConfigReference> Configs { get; set; } = []; 448public List<string> Tmpfs { get; set; } = [];
Resources\ServiceNodes\Build.cs (1)
56public List<string> CacheFrom { get; set; } = [];
Resources\ServiceNodes\Healthcheck.cs (1)
21public List<string> Test { get; set; } = [];
Resources\ServiceNodes\Ipam.cs (1)
33public List<Dictionary<string, string>> Config { get; set; } = [];
Resources\ServiceNodes\Swarm\Placement.cs (2)
21public List<string>? Constraints { get; set; } 31public List<Dictionary<string, string>>? Preferences { get; set; }
Aspire.Hosting.Docker.Tests (20)
DockerComposePublisherTests.cs (1)
981var keysToRemove = envVars.Where(kv =>
DockerComposeTests.cs (12)
353var logMessages = testSink.Writes.Select(w => w.Message).ToList(); 391var logs = mockActivityReporter.LoggedMessages 400var stepDependencyLines = logs.Where(l => l.Contains("print-env-dashboard-summary")).ToList(); 449var dashboardLogs = mockActivityReporter.LoggedMessages 463var nginxLogs = mockActivityReporter.LoggedMessages 488var downSteps = mockActivityReporter.CreatedSteps 776var logs = mockActivityReporter.LoggedMessages 795var dockerComposeUpLines = logs.Where(l => l.Contains("docker-compose-up-env")).ToList(); 827var logs = mockActivityReporter.LoggedMessages 846var dockerComposeUpLines = logs.Where(l => l.Contains("docker-compose-up-env")).ToList(); 994var createdSteps = mockActivityReporter.CreatedSteps; 1025var completedSteps = mockActivityReporter.CompletedSteps;
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = []; 36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = []; 41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = []; 46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = []; 51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = []; 56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = []; 61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Dotnet (5)
DotnetProjectHostingExtensions.cs (1)
185List<string> GetLaunchProfileArguments(IResource resource)
src\Shared\CommandLineArgsParser.cs (4)
13var result = new List<string>(); 21public static List<string> Parse(string arguments) 23var result = new List<string>(); 36private static void ParseArgumentsIntoList(string arguments, List<string> results)
Aspire.Hosting.Dotnet.Tests (13)
DotnetProjectPublicApiTests.cs (1)
28var overloads = typeof(DotnetProjectHostingExtensions)
DotnetProjectResourceTests.cs (12)
46var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 64var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 603var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 621var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 665var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 692var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 718var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 751var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 783var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 813var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 856var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 884var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services);
Aspire.Hosting.DotnetTool.Tests (11)
AddDotnetToolTests.cs (11)
76var args = await ArgumentEvaluator.GetArgumentListAsync(tool.Resource).DefaultTimeout(); 96var args = await ArgumentEvaluator.GetArgumentListAsync(tool.Resource).DefaultTimeout(); 118var args = await ArgumentEvaluator.GetArgumentListAsync(tool.Resource).DefaultTimeout(); 139var args = await ArgumentEvaluator.GetArgumentListAsync(tool.Resource).DefaultTimeout(); 162var args = await ArgumentEvaluator.GetArgumentListAsync(tool.Resource).DefaultTimeout(); 187var args = await ArgumentEvaluator.GetArgumentListAsync(tool.Resource).DefaultTimeout(); 209var args = await ArgumentEvaluator.GetArgumentListAsync(tool.Resource).DefaultTimeout(); 230var args = await ArgumentEvaluator.GetArgumentListAsync(tool.Resource).DefaultTimeout(); 255var args = await ArgumentEvaluator.GetArgumentListAsync(tool.Resource).DefaultTimeout(); 341var args = await ArgumentEvaluator.GetArgumentListAsync(tool.Resource).DefaultTimeout(); 398var args = await ArgumentEvaluator.GetArgumentListAsync(tool.Resource).DefaultTimeout();
Aspire.Hosting.EntityFrameworkCore (13)
EFCoreOperationExecutor.cs (2)
211var efArgs = new List<string> { command, subCommand }; 621var migrationLines = new List<string>();
EFMigrationResourceBuilderExtensions.cs (4)
366var candidates = CollectConnectionStringCandidates<ResourceRelationshipAnnotation>( 387var leaves = candidates 404private static List<IResourceWithConnectionString> CollectConnectionStringCandidates<TAnnotation>( 409var candidates = new List<IResourceWithConnectionString>();
EFResourceBuilderExtensions.cs (7)
148var existingMigrationResources = builder.ApplicationBuilder.Resources 210var steps = new List<PipelineStep>(); 240List<string> scriptDependsOn = crossMigrationPredecessor is not null ? [crossMigrationPredecessor] : []; 269List<string> requiredBy = publishesContainer 276List<string> bundleDependsOn = []; 456var toolArguments = await GatherToolArgumentsAsync( 597internal static ValueTask<List<object>> GatherToolArgumentsAsync(
Aspire.Hosting.EntityFrameworkCore.Tests (43)
EFCoreOperationExecutorTests.cs (3)
193var firstArguments = await EFResourceBuilderExtensions.GatherToolArgumentsAsync( 202var secondArguments = await EFResourceBuilderExtensions.GatherToolArgumentsAsync( 242public List<(LogLevel Level, string Message)> Entries { get; } = new();
EFMigrationCommandsTests.cs (15)
20var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 34var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 49var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 64var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 82var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 96var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 110var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 113var efCommands = commands.Where(c => c.Name.Contains("ef-")).ToList(); 124var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 149var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 164var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 180var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 196var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 226var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 256var commands = migrations.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList();
EFMigrationPipelineTests.cs (24)
25var steps = await CreateStepsAsync(builder, migrations.Resource); 42var steps = await CreateStepsAsync(builder, migrations.Resource); 58var steps = await CreateStepsAsync(builder, migrations.Resource); 76var steps = await CreateStepsAsync(builder, migrations.Resource); 94var m1Steps = await CreateStepsAsync(builder, m1.Resource); 95var m2Steps = await CreateStepsAsync(builder, m2.Resource); 120var m1Steps = await CreateStepsAsync(builder, m1.Resource); 121var m2Steps = await CreateStepsAsync(builder, m2.Resource); 150var m1Steps = await CreateStepsAsync(builder, m1.Resource); 151var m2Steps = await CreateStepsAsync(builder, m2.Resource); 172var m1Steps = await CreateStepsAsync(builder, m1.Resource); 173var m2Steps = await CreateStepsAsync(builder, m2.Resource); 198var m1Steps = await CreateStepsAsync(builder, m1.Resource); 199var m3Steps = await CreateStepsAsync(builder, m3.Resource); 221var steps = await CreateStepsAsync(builder, migrations.Resource); 237var waitAnnotations = migrations.Resource.Annotations.OfType<WaitAnnotation>().ToList(); 257var waitAnnotations = migrations.Resource.Annotations.OfType<WaitAnnotation>().ToList(); 269var waitAnnotations = migrations.Resource.Annotations.OfType<WaitAnnotation>().ToList(); 676var waitedResources = migrations.Resource.Annotations.OfType<WaitAnnotation>().Select(w => w.Resource).ToList(); 717var steps = await CreateStepsAsync(builder, migrations.Resource); 742var result = EFResourceBuilderExtensions.GetToolEnvironmentVariables(config, isPublishMode: true).ToList(); 761var result = EFResourceBuilderExtensions.GetToolEnvironmentVariables(config, isPublishMode: false).ToList(); 767private static async Task<List<PipelineStep>> CreateStepsAsync( 779var results = new List<PipelineStep>();
EFMigrationWaitForTests.cs (1)
60var waitAnnotations = anotherProject.Resource.Annotations.OfType<WaitAnnotation>().ToList();
Aspire.Hosting.Foundry (8)
FoundryLocalService.cs (1)
231var output = new List<string>();
FoundryResource.cs (1)
24private readonly List<FoundryDeploymentResource> _deployments = [];
HostedAgent\AzureHostedAgentResource.cs (2)
46List<PipelineStep> steps = []; 214var endpointProtocols = new List<AgentEndpointProtocol>();
Project\ProjectBuilderExtension.cs (1)
467List<ProvisionableResource> capHostDeps = [];
Project\ProjectResource.cs (1)
44var steps = new List<PipelineStep>();
PromptAgent\AzurePromptAgentResource.cs (2)
38private readonly List<IFoundryTool> _tools = []; 66var steps = new List<PipelineStep>();
Aspire.Hosting.Foundry.Tests (16)
HostedAgentExtensionTests.cs (5)
49var httpEndpoints = endpoints.Where(e => e.Name == "http").ToList(); 145var urls = new List<ResourceUrlAnnotation> { url }; 707var registryTargets = container.Resource.Annotations.OfType<RegistryTargetAnnotation>().ToList(); 788var hostedAgents = builder.Resources.OfType<AzureHostedAgentResource>().ToList(); 795var targets = hostedAgents
ProjectResourceTests.cs (2)
86var registries = model.Resources.OfType<AzureContainerRegistryResource>().ToList(); 108var registries = model.Resources.OfType<AzureContainerRegistryResource>().ToList();
PromptAgentTests.cs (2)
593var annotations = agent.Resource.Annotations.OfType<PipelineStepAnnotation>().ToList(); 604var steps = new List<PipelineStep>();
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = []; 36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = []; 41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = []; 46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = []; 51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = []; 56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = []; 61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
146var garnetCommand = new List<string>
Aspire.Hosting.Garnet.Tests (1)
AddGarnetTests.cs (1)
286var args = await ArgumentEvaluator.GetArgumentListAsync(builder.Resource);
Aspire.Hosting.GitHub.Models.Tests (1)
GitHubModelsExtensionTests.cs (1)
287var healthCheckAnnotations = github.Resource.Annotations.OfType<HealthCheckAnnotation>().ToList();
Aspire.Hosting.Go (3)
GoHostingExtensions.cs (3)
805var parts = new List<string> { "go", "build" }; 826private static List<string> BuildFlagParts(IResource resource, bool includeRace = true) 828var parts = new List<string>();
Aspire.Hosting.Go.Tests (26)
AddGoAppTests.cs (4)
495var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 569var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 601var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 634var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services);
GoPublicApiTests.cs (22)
106var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 119var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 130var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 142var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 156var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 167var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 178var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 189var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 200var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 215var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 241var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 272var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 300var tidyResources = builder.Resources.Where(r => r.Name == "api-mod-tidy").ToList(); 334var vendorResources = builder.Resources.Where(r => r.Name == "api-mod-vendor").ToList(); 368var downloadResources = builder.Resources.Where(r => r.Name == "api-mod-download").ToList(); 402var vetResources = builder.Resources.Where(r => r.Name == "api-vet-tool").ToList(); 435var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 467var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 481var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 501var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 528var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 542var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource);
Aspire.Hosting.Integration.Analyzers (2)
AspireExportAnalyzer.cs (1)
1484var reasons = new List<string>();
src\Aspire.Hosting.Analyzers\Infrastructure\BoundedCacheWithFactory.cs (1)
18private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Aspire.Hosting.Java (1)
JavaDockerfileGenerator.cs (1)
518var exceptions = new List<string> { prebuiltJarPath };
Aspire.Hosting.Java.Tests (26)
AddJavaAppPublishTests.cs (1)
848var args = await ArgumentEvaluator.GetArgumentListAsync(published, app.Services);
AddJavaAppTests.cs (18)
187var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 199var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 243var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 257var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 302var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 317var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 335var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 357var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 377var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 396var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 441var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 550var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 568var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 824var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 1182var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 1275var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 1293var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 1311var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource);
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = []; 36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = []; 41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = []; 46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = []; 51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = []; 56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = []; 61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.JavaScript (4)
JavaScriptHostingExtensions.cs (3)
230var commandArgs = new List<string>() { packageManager.ExecutableName }; 584var commandArgs = new List<string>() { packageManager.ExecutableName }; 1222var commandArgs = new List<string>() { packageManager.ExecutableName };
JavaScriptPackageManagerAnnotation.cs (1)
42public List<CopyFilePattern> PackageFilesPatterns { get; } = [];
Aspire.Hosting.JavaScript.Tests (25)
AddBunAppTests.cs (1)
205var args = await ArgumentEvaluator.GetArgumentListAsync(bunResource);
AddNodeAppTests.cs (1)
308var args = await ArgumentEvaluator.GetArgumentListAsync(nodeResource);
AddViteAppTests.cs (12)
509var args = new List<object>(); 534var args = new List<object>(); 569var args = new List<object> { "run", "dev", "--", "--port", "3000", "--config", "vite.config.js" }; 629var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 681var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 727var args = new List<object> { "run", "dev", "--", "--port", "3000", "--config", viteConfigPath }; 776var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 838var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 913var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 1016var args = new List<object> { "run", "dev", "--", "--port", "3000" }; 1056var stepAnnotations = nodeApp.Resource.Annotations.OfType<PipelineStepAnnotation>().ToList(); 1109var args = new List<object> { "run", "dev", "--", "--port", "3000" };
AddViteAppWithPnpmTests.cs (4)
32var args = new List<object>(); 66var args = new List<object>(); 94var args = new List<object>(); 127var args = new List<object>();
IntegrationTests.cs (2)
28var nodeResources = appModel.Resources.OfType<JavaScriptAppResource>().ToList(); 32var npmInstallers = appModel.Resources.OfType<JavaScriptInstallerResource>().ToList();
PackageInstallationTests.cs (4)
33var nodeResources = appModel.Resources.OfType<JavaScriptAppResource>().ToList(); 34var installerResources = appModel.Resources.OfType<JavaScriptInstallerResource>().ToList(); 70var installerResources = appModel.Resources.OfType<JavaScriptInstallerResource>().ToList(); 275var args = await ArgumentEvaluator.GetArgumentListAsync(nodeResource);
ResourceCreationTests.cs (1)
142List<object> args = [];
Aspire.Hosting.Kubernetes (160)
CertManagerExtensions.cs (3)
359var steps = new List<PipelineStep>(); 390var steps = new List<PipelineStep>(); 619var parentGateways = model.Resources
CertManagerIssuerResource.cs (1)
71internal List<CertManagerSolverConfig> Solvers { get; } = [];
CertManagerResource.cs (1)
80internal List<CertManagerIssuerResource> Issuers { get; } = [];
Deployment\HelmDeploymentEngine.cs (4)
121var steps = new List<PipelineStep>(); 523var endpoints = await GetServiceEndpointsAsync(computeResource.Name.ToServiceName(), @namespace, environment.KubeConfigPath, context.Logger, context.CancellationToken).ConfigureAwait(false); 669private static async Task<List<string>> GetServiceEndpointsAsync( 676var endpoints = new List<string>();
KubernetesEnvironmentResource.cs (27)
150internal List<CapturedHelmValue> CapturedHelmValues { get; } = []; 156internal List<CapturedHelmCrossReference> CapturedHelmCrossReferences { get; } = []; 162internal List<CapturedHelmImageReference> CapturedHelmImageReferences { get; } = []; 209internal List<CapturedHelmValueProvider> CapturedHelmValueProviders { get; } = []; 227var steps = new List<PipelineStep>(); 267var tlsSecrets = CollectTlsSecrets(model, environment); 283var gatewaysNeedingDiscovery = CollectGatewaysNeedingFqdnDiscovery(model, environment); 311var gatewaysWithTls = CollectGatewaysWithTls(model, environment); 1209internal static List<TlsSecretRequest> CollectTlsSecrets(DistributedApplicationModel model, KubernetesEnvironmentResource environment) 1211var tlsSecrets = new List<TlsSecretRequest>(); 1266private static List<(KubernetesGatewayResource Gateway, ReferenceExpression SecretName)> CollectGatewaysNeedingFqdnDiscovery( 1270var results = new List<(KubernetesGatewayResource Gateway, ReferenceExpression SecretName)>(); 1295private static List<KubernetesGatewayResource> CollectGatewaysWithTls( 1299var results = new List<KubernetesGatewayResource>(); 1324List<(KubernetesGatewayResource Gateway, ReferenceExpression SecretName)> gatewaysNeedingDiscovery) 1387var httpsListenerIndices = await FindHostnamelessHttpsListeners( 1624var stdout = new List<string>(); 1700private static async Task<List<int>> FindHostnamelessHttpsListeners( 1712var stdout = new List<string>(); 1722var indices = new List<int>(); 1778List<KubernetesGatewayResource> gateways) 1800var stdout = new List<string>(); 1826List<int> indicesToRemove; 1911private static List<int> FindForeignListenerOwnershipIndices(System.Text.Json.JsonElement root) 1913var indices = new List<int>(); 1976var stdout = new List<string>(); 2082List<TlsSecretRequest> tlsSecrets)
KubernetesGatewayResource.cs (4)
58internal List<ReferenceExpression> Hostnames { get; } = []; 63internal List<GatewayRouteConfig> Routes { get; } = []; 68internal List<GatewayTlsConfig> TlsConfigs { get; } = []; 83internal List<Resources.HttpRouteV1> GeneratedHttpRoutes { get; } = [];
KubernetesHelmChartExtensions.cs (1)
95var steps = new List<PipelineStep>();
KubernetesIngressResource.cs (3)
58internal List<ReferenceExpression> Hostnames { get; } = []; 64internal List<IngressPathConfig> Paths { get; } = []; 69internal List<IngressTlsConfig> TlsConfigs { get; } = [];
KubernetesManifestResource.cs (2)
252private static List<object?> NormalizeEnumerable(IEnumerable enumerable) 254var result = new List<object?>();
KubernetesPersistentVolumeResource.cs (1)
91internal List<PersistentVolumeAccessMode> AccessModes { get; } = [];
KubernetesPublishingContext.cs (1)
133var gatewayObjects = new List<BaseKubernetesResource> { generatedGateway };
KubernetesResource.cs (6)
55internal List<string> Commands { get; } = []; 56internal List<VolumeMountV1> Volumes { get; } = []; 57internal List<PersistentVolumeClaim> PersistentVolumeClaims { get; } = []; 59internal List<(ProbeType Type, ProbeV1 Probe)> Probes { get; } = []; 85public List<BaseKubernetesResource> AdditionalResources { get; } = []; 491var keysToRemove = environmentVariables
Resources\AggregationRuleV1.cs (1)
22public List<LabelSelectorV1> ClusterRoleSelectors { get; } = [];
Resources\CapabilitiesV1.cs (2)
24public List<string> Add { get; } = []; 31public List<string> Drop { get; } = [];
Resources\ClusterRoleBindingV1.cs (1)
39public List<SubjectV1> Subjects { get; } = [];
Resources\ClusterRoleV1.cs (1)
42public List<PolicyRuleV1> Rules { get; } = [];
Resources\ConfigMapProjectionV1.cs (1)
18public List<KeyToPathV1> Items { get; } = [];
Resources\ConfigMapVolumeSourceV1.cs (1)
51public List<KeyToPathV1> Items { get; } = [];
Resources\ContainerV1.cs (8)
26public List<string> Command { get; } = []; 98public List<EnvFromSourceV1> EnvFrom { get; } = []; 124public List<string> Args { get; } = []; 134public List<ContainerPortV1> Ports { get; } = []; 147public List<VolumeDeviceV1> VolumeDevices { get; } = []; 154public List<VolumeMountV1> VolumeMounts { get; } = []; 172public List<EnvVarV1> Env { get; } = []; 192public List<ContainerResizePolicyV1> ResizePolicy { get; } = [];
Resources\DownwardApiProjectionV1.cs (1)
18public List<DownwardApiVolumeFileV1> Items { get; } = [];
Resources\EphemeralContainerV1.cs (8)
21public List<string> Command { get; } = []; 105public List<EnvFromSourceV1> EnvFrom { get; } = []; 128public List<string> Args { get; } = []; 136public List<ContainerPortV1> Ports { get; } = []; 150public List<VolumeDeviceV1> VolumeDevices { get; } = []; 157public List<VolumeMountV1> VolumeMounts { get; } = []; 180public List<EnvVarV1> Env { get; } = []; 203public List<ContainerResizePolicyV1> ResizePolicy { get; } = [];
Resources\ExecActionV1.cs (1)
25public List<string> Command { get; } = [];
Resources\FieldSelectorAttributesV1.cs (1)
30public List<FieldSelectorRequirementV1> Requirements { get; } = [];
Resources\FieldSelectorRequirementV1.cs (1)
35public List<string> Values { get; } = [];
Resources\FsGroupStrategyOptionsV1Beta1.cs (1)
30public List<IdRangeV1Beta1> Ranges { get; } = [];
Resources\GatewayV1.cs (2)
38public List<GatewayListenerV1> Listeners { get; } = []; 103public List<GatewayCertificateRefV1> CertificateRefs { get; } = [];
Resources\HelmChart.cs (4)
70public List<string> Keywords { get; set; } = []; 89public List<string> Sources { get; set; } = []; 96public List<HelmChartDependency> Dependencies { get; set; } = []; 106public List<HelmChartMaintainer> Maintainers { get; set; } = [];
Resources\HelmChartDependency.cs (2)
53public List<string> Tags { get; set; } = []; 60public List<string> ImportValues { get; set; } = [];
Resources\HorizontalPodAutoscalerSpecV2.cs (1)
55public List<MetricSpecV2> Metrics { get; } = [];
Resources\HostAliasV1.cs (1)
29public List<string> Hostnames { get; } = [];
Resources\HPAScalingRulesV2.cs (1)
29public List<HpaScalingPolicyV2> Policies { get; } = [];
Resources\HTTPGetActionV1.cs (1)
43public List<HttpHeaderV1> HttpHeaders { get; } = [];
Resources\HTTPIngressRuleValueV1.cs (1)
28public List<HttpIngressPathV1> Paths { get; } = [];
Resources\HttpRouteV1.cs (6)
32public List<HttpRouteParentRefV1> ParentRefs { get; } = []; 38public List<string> Hostnames { get; } = []; 44public List<HttpRouteRuleV1> Rules { get; } = []; 72public List<HttpRouteMatchV1> Matches { get; } = []; 78public List<HttpRouteBackendRefV1> BackendRefs { get; } = []; 97public List<HttpRouteHeaderMatchV1> Headers { get; } = [];
Resources\IngressSpecV1.cs (2)
48public List<IngressRuleV1> Rules { get; } = []; 58public List<IngressTLSV1> Tls { get; } = [];
Resources\IngressTLSV1.cs (1)
37public List<string> Hosts { get; } = [];
Resources\LabelSelectorAttributesV1.cs (1)
28public List<LabelSelectorRequirementV1> Requirements { get; } = [];
Resources\LabelSelectorRequirementV1.cs (1)
31public List<string> Values { get; } = [];
Resources\LabelSelectorV1.cs (1)
26public List<LabelSelectorRequirementV1> MatchExpressions { get; set; } = [];
Resources\NamespaceSpecV1.cs (1)
26public List<string> Finalizers { get; } = [];
Resources\NodeAffinityV1.cs (1)
33public List<PreferredSchedulingTermV1> PreferredDuringSchedulingIgnoredDuringExecution { get; } = [];
Resources\NodeSelectorRequirementV1.cs (1)
31public List<string> Values { get; } = [];
Resources\NodeSelectorTermV1.cs (2)
29public List<NodeSelectorRequirementV1> MatchExpressions { get; } = []; 41public List<NodeSelectorRequirementV1> MatchFields { get; } = [];
Resources\NodeSelectorV1.cs (1)
22public List<NodeSelectorTermV1> NodeSelectorTerms { get; } = [];
Resources\ObjectMetaV1.cs (3)
158public List<string> Finalizers { get; } = []; 181public List<ManagedFieldsEntryV1> ManagedFields { get; } = []; 192public List<OwnerReferenceV1> OwnerReferences { get; } = [];
Resources\PersistentVolumeClaimSpecV1.cs (1)
128public List<string> AccessModes { get; } = [];
Resources\PersistentVolumeSpecV1.cs (2)
93public List<string> AccessModes { get; } = []; 101public List<string> MountOptions { get; } = [];
Resources\PodAffinityTermV1.cs (3)
52public List<string> MatchLabelKeys { get; } = []; 66public List<string> MismatchLabelKeys { get; } = []; 80public List<string> Namespaces { get; } = [];
Resources\PodAffinityV1.cs (2)
33public List<WeightedPodAffinityTermV1> PreferredDuringSchedulingIgnoredDuringExecution { get; } = []; 45public List<PodAffinityTermV1> RequiredDuringSchedulingIgnoredDuringExecution { get; } = [];
Resources\PodAntiAffinityV1.cs (2)
32public List<WeightedPodAffinityTermV1> PreferredDuringSchedulingIgnoredDuringExecution { get; } = []; 42public List<PodAffinityTermV1> RequiredDuringSchedulingIgnoredDuringExecution { get; } = [];
Resources\PodDNSConfigV1.cs (3)
27public List<string> Nameservers { get; } = []; 38public List<PodDnsConfigOptionV1> Options { get; } = []; 50public List<string> Searches { get; } = [];
Resources\PodSecurityContextV1.cs (2)
85public List<long> SupplementalGroups { get; } = []; 93public List<SysctlV1> Sysctls { get; } = [];
Resources\PodSpecV1.cs (11)
173public List<ContainerV1> Containers { get; } = []; 189public List<EphemeralContainerV1> EphemeralContainers { get; } = []; 197public List<HostAliasV1> HostAliases { get; } = []; 216public List<LocalObjectReferenceV1> ImagePullSecrets { get; } = []; 226public List<ContainerV1> InitContainers { get; } = []; 242public List<PodReadinessGateV1> ReadinessGates { get; } = []; 250public List<PodResourceClaimV1> ResourceClaims { get; } = []; 258public List<PodSchedulingGateV1> SchedulingGates { get; } = []; 276public List<TolerationV1> Tolerations { get; } = []; 284public List<TopologySpreadConstraintV1> TopologySpreadConstraints { get; } = []; 292public List<VolumeV1> Volumes { get; } = [];
Resources\PolicyRuleV1.cs (5)
26public List<string> ApiGroups { get; } = []; 35public List<string> NonResourceUrLs { get; } = []; 43public List<string> ResourceNames { get; } = []; 51public List<string> Resources { get; } = []; 59public List<string> Verbs { get; } = [];
Resources\ProjectedVolumeSourceV1.cs (1)
27public List<VolumeProjectionV1> Sources { get; } = [];
Resources\ResourceRequirementsV1.cs (1)
23public List<ResourceClaimV1> Claims { get; } = [];
Resources\RoleBindingV1.cs (1)
40public List<SubjectV1> Subjects { get; } = [];
Resources\RoleV1.cs (1)
32public List<PolicyRuleV1> Rules { get; } = [];
Resources\SecretProjectionV1.cs (1)
18public List<KeyToPathV1> Items { get; } = [];
Resources\SecretVolumeSourceV1.cs (1)
69public List<KeyToPathV1> Items { get; } = [];
Resources\ServiceSpecV1.cs (5)
115public List<string> ClusterIPs { get; } = []; 125public List<string> ExternalIPs { get; } = []; 137public List<string> IpFamilies { get; } = []; 162public List<string> LoadBalancerSourceRanges { get; } = []; 173public List<ServicePortV1> Ports { get; } = [];
Resources\StatefulSetSpecV1.cs (1)
90public List<PersistentVolumeClaim> VolumeClaimTemplates { get; } = [];
Resources\TopologySpreadConstraintV1.cs (1)
67public List<string> MatchLabelKeys { get; } = [];
Aspire.Hosting.Kubernetes.Tests (48)
KubernetesDeployTests.cs (19)
267var annotations = env.Annotations.OfType<HelmChartNameAnnotation>().ToList(); 284var nsAnnotations = env.Annotations.OfType<KubernetesNamespaceAnnotation>().ToList(); 322var logs = mockActivityReporter.LoggedMessages 363var logs = mockActivityReporter.LoggedMessages 375var prepareLines = logs.Where(l => l.Contains("prepare-env")).ToList(); 379var helmDeployLines = logs.Where(l => l.Contains("helm-deploy-env")).ToList(); 405var logs = mockActivityReporter.LoggedMessages 420var helmDeployLines = logs.Where(l => l.Contains("helm-deploy-env")).ToList(); 445var logs = mockActivityReporter.LoggedMessages 460var printLines = logs.Where(l => l.Contains("print-api-summary")).ToList(); 484var logs = mockActivityReporter.LoggedMessages 519var logs = mockActivityReporter.LoggedMessages 531var helmUninstallLines = logs.Where(l => l.Contains("helm-uninstall-env")).ToList(); 559var logs = mockActivityReporter.LoggedMessages 564var diagnosticLines = string.Join('\n', logs) 606var logs = mockActivityReporter.LoggedMessages 611var chartUninstallLines = logs.Where(l => l.Contains("helm-uninstall-podinfo")).ToList(); 639var logs = mockActivityReporter.LoggedMessages 1906var completedSteps = mockActivityReporter.CompletedSteps;
KubernetesGatewayTests.cs (7)
115var steps = await CreateStepsAsync(app.Services, k8s.Resource); 210var steps = await CreateStepsAsync(app.Services, k8s.Resource); 324var lines = content.Split('\n').Select(l => l.Trim()).ToList(); 333var steps = await CreateStepsAsync(app.Services, k8s.Resource); 369var lines = content.Split('\n').Select(l => l.Trim()).ToList(); 374var httpsSection = lines.Skip(httpsIndex).Take((nextListenerOrEnd > httpsIndex ? nextListenerOrEnd : lines.Count) - httpsIndex).ToList(); 475var steps = await CreateStepsAsync(app.Services, k8s.Resource);
KubernetesHelmChartTests.cs (8)
398var steps = await CreateStepsAsync(builder, chart.Resource); 412var steps = await CreateStepsAsync(builder, chart.Resource); 437var steps = await CreateStepsAsync(builder, chart.Resource); 456var steps = await CreateStepsAsync(builder, chart.Resource); 471var steps = await CreateStepsAsync(builder, chart.Resource); 504var steps = await CreateStepsAsync(builder, chart.Resource); 508private static async Task<List<PipelineStep>> CreateStepsAsync( 520var results = new List<PipelineStep>();
KubernetesIngressTests.cs (4)
319var steps = await PipelineStepTestHelpers.CreateStepsAsync(app.Services, k8s.Resource); 389var collected = KubernetesEnvironmentResource.CollectTlsSecrets(model, k8s.Resource); 422var collected = KubernetesEnvironmentResource.CollectTlsSecrets(model, k8s.Resource); 454var collectedBeforePublish = KubernetesEnvironmentResource.CollectTlsSecrets(model, k8s.Resource);
PipelineStepTestHelpers.cs (3)
23public static async Task<List<PipelineStep>> CreateStepsAsync(IServiceProvider services, IResource resource) 27var results = new List<PipelineStep>(); 68public static List<string> GatewayOrTlsStepNames(IEnumerable<PipelineStep> steps) =>
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = []; 36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = []; 41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = []; 46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = []; 51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = []; 56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = []; 61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Maui (7)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
147var args = new List<string> { "build", buildInfo.ProjectPath };
MauiAndroidExtensions.cs (2)
176var additionalArgs = new List<string>(); 381var additionalArgs = new List<string>();
MauiiOSExtensions.cs (2)
186var additionalArgs = new List<string>(); 392var additionalArgs = new List<string>();
Utilities\MauiEnvironmentHelper.cs (2)
151var deletedFiles = new List<string>(); 309var deletedFiles = new List<string>();
Aspire.Hosting.Maui.Tests (19)
MauiBuildQueueTests.cs (1)
265var completionOrder = new List<string>();
MauiEnvironmentHelperTests.cs (4)
44var items = doc.Descendants("_GeneratedAndroidEnvironment").ToList(); 97var items = doc.Descendants("_GeneratedAndroidEnvironment") 137var items = doc.Descendants("MlaunchEnvironmentVariables").ToList(); 174var items = doc.Descendants("MlaunchEnvironmentVariables")
MauiPlatformExtensionsTests.cs (3)
462var args = new List<object>(); 628var annotations = maui.Resource.Annotations.OfType<OtlpDevTunnelConfigurationAnnotation>().ToList(); 863var tfms = new List<string> { "net10.0-ios", "net10.0-windows10.0.19041.0", "net10.0-maccatalyst" };
MauiWithArgsTests.cs (11)
27var args = await ArgumentEvaluator.GetArgumentListAsync(windows.Resource); 45var args = await ArgumentEvaluator.GetArgumentListAsync(macCatalyst.Resource); 64var args = await ArgumentEvaluator.GetArgumentListAsync(androidDevice.Resource); 84var args = await ArgumentEvaluator.GetArgumentListAsync(androidDevice.Resource); 101var args = await ArgumentEvaluator.GetArgumentListAsync(emulator.Resource); 121var args = await ArgumentEvaluator.GetArgumentListAsync(emulator.Resource); 138var args = await ArgumentEvaluator.GetArgumentListAsync(device.Resource); 157var args = await ArgumentEvaluator.GetArgumentListAsync(device.Resource); 174var args = await ArgumentEvaluator.GetArgumentListAsync(simulator.Resource); 194var args = await ArgumentEvaluator.GetArgumentListAsync(simulator.Resource); 233var args = await ArgumentEvaluator.GetArgumentListAsync(builder.Resource);
Aspire.Hosting.MongoDB.Tests (4)
MongoDbFunctionalTests.cs (4)
211var results = await collection.Find(new BsonDocument()).ToListAsync(token); 334var results = await collection.Find(new BsonDocument()).ToListAsync(token); 424var results = await collection.Find(new BsonDocument()).ToListAsync(token); 453var results = await collection.Find(new BsonDocument()).ToListAsync(token);
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
16private readonly List<MySqlDatabaseResource> _databaseResources = [];
Aspire.Hosting.MySql.Tests (1)
MySqlFunctionalTests.cs (1)
541var cars = await dbContext.Cars.ToListAsync(token);
Aspire.Hosting.Nats (1)
NatsBuilderExtensions.cs (1)
134var args = new List<string> { "-js" };
Aspire.Hosting.Nats.Tests (3)
AddNatsTests.cs (2)
118var args = await ArgumentEvaluator.GetArgumentListAsync(containerResource); 164var args = await ArgumentEvaluator.GetArgumentListAsync(containerResource);
NatsFunctionalTests.cs (1)
294var events = new List<AppEvent>();
Aspire.Hosting.OpenAI.Tests (1)
OpenAIExtensionTests.cs (1)
232var healthCheckAnnotations = openai.Resource.Annotations.OfType<HealthCheckAnnotation>().ToList();
Aspire.Hosting.Oracle.Tests (4)
OracleFunctionalTests.cs (4)
67var cars = await dbContext.Cars.ToListAsync(cts.Token); 210var brands = await dbContext.Cars.ToListAsync(cancellationToken: cts.Token); 325var brands = await dbContext.Cars.ToListAsync(cancellationToken: cts.Token); 422var brands = await dbContext.Cars.ToListAsync(cancellationToken: cts.Token);
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
611var bookmarkFiles = new List<ContainerFileSystemItem>();
Aspire.Hosting.Python.Tests (20)
AddPythonAppTests.cs (20)
174var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance); 213var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance); 256var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance); 430var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance); 461var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance); 513var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance); 1004var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance); 1037var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance); 1071var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance); 1091var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance); 1115var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance); 1137var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance); 1169var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance); 1412var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 1456var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 1496var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 1668var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 1701var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, TestServiceProvider.Instance); 2500var waitAnnotations = pythonAppResource.Annotations.OfType<WaitAnnotation>().ToList(); 2533var waitAnnotations = pythonAppResource.Annotations.OfType<WaitAnnotation>().ToList();
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
177var containerAnnotations = builder.Resource.Annotations.OfType<ContainerImageAnnotation>().ToList();
Aspire.Hosting.Radius (46)
Annotations\RadiusSecretStoresAnnotation.cs (1)
21public List<RadiusSecretStoreConsumer> Consumers { get; } = [];
Publishing\RadCredentialRegisterStep.cs (6)
78var entries = BuildEntries(annotation).ToList(); 179var azure = new List<(string Env, string Identity)>(); 180var aws = new List<(string Env, string Identity)>(); 337var result = new List<string>(args.Count); 356var values = new List<string>(); 395var args = new List<string> { "credential", "register", Provider, Mode };
Publishing\RadiusInfrastructureBuilder.cs (13)
166var secretStoresForScope = GetSecretStoresForScope().ToList(); 633private (List<IResource> radiusResources, List<IResource> computeResources, Dictionary<IResource, (string ResourceType, string ApiVersion)> resolvedTypes) ClassifyResources() 635var radiusTypes = new List<IResource>(); 636var compute = new List<IResource>(); 990List<IResource> radiusResources, 1138var httpsServiceKeys = context.EnvironmentVariables 1151var parts = new List<EnvPart>(); 1187private async Task ResolveEnvPartsAsync(object? value, IResource owner, List<EnvPart> parts) 1244private async Task ResolveReferenceExpressionPartsAsync(ReferenceExpression expression, IResource owner, List<EnvPart> parts) 1254var providerParts = new List<EnvPart>[expression.ValueProviders.Count]; 1257var inner = new List<EnvPart>(); 1348private static BicepValue<string> BuildEnvBicepValue(List<EnvPart> parts)
Publishing\RadiusInfrastructureOptions.cs (9)
31public List<RadiusEnvironmentConstruct> Environments { get; } = []; 36public List<RadiusApplicationConstruct> Applications { get; } = []; 41public List<RadiusRecipePackConstruct> RecipePacks { get; } = []; 47public List<RadiusResourceTypeConstruct> ResourceTypeInstances { get; } = []; 52public List<RadiusContainerConstruct> Containers { get; } = []; 59public List<LegacyApplicationEnvironmentConstruct> LegacyEnvironments { get; } = []; 65public List<LegacyApplicationConstruct> LegacyApplications { get; } = []; 72public List<ProvisioningParameter> Parameters { get; } = []; 78public List<RadiusSecretStoreConstruct> SecretStores { get; } = [];
Publishing\SealedSecretApplyStep.cs (8)
61var stores = GetSealedStores(model); 199private List<RadiusSecretStoreResource> GetSealedStores(DistributedApplicationModel model) => 212var args = new List<string> { "apply", "-f", "-", "-o", "json" }; 225var args = new List<string> { "get", "sealedsecret", name, "-n", ns, "-o", "json" }; 233var args = new List<string> { "get", "secret", name, "-n", ns, "-o", "name" }; 245var args = new List<string> { "get", "secret", name, "-n", ns, "-o", "json" }; 250private static void AddContext(List<string> args, string? kubeContext) 447var conditions = new List<SealedSecretCondition>();
Secrets\RadiusSecretStoreExtensions.cs (3)
212var validatedKeys = ValidateKeys(keys); 242var validatedKeys = ValidateKeys(keys); 300private static List<string> ValidateKeys(string[] keys)
Secrets\RadiusSecretStorePopulation.cs (1)
45public List<string> Keys { get; } = [];
Secrets\RadiusSecretStoreValidation.cs (5)
73var orphaned = model.Resources 104var stores = model.Resources.OfType<RadiusSecretStoreResource>().ToList(); 132var declaredKeys = population.HasInlineData 266var declaredKeys = store.Population.HasInlineData 289var declaredKeys = store.Population.HasInlineData
Aspire.Hosting.Radius.Tests (7)
CloudProviders\MultiEnvironmentProvidersTests.cs (1)
72var envs = model.Resources.OfType<RadiusEnvironmentResource>().ToList();
Deployment\DeployPipelineIntegrationTests.cs (4)
29var pipelineAnnotations = envResource.Annotations.OfType<PipelineStepAnnotation>().ToList(); 135var annotations = envResource.Annotations.OfType<PipelineStepAnnotation>().ToList(); 163var environments = model.Resources.OfType<RadiusEnvironmentResource>().ToList(); 170var annotations = envResource.Annotations.OfType<PipelineStepAnnotation>().ToList();
Publishing\BicepGenerationSimpleTests.cs (1)
182var annotations = env.Resource.Annotations.OfType<PipelineStepAnnotation>().ToList();
Secrets\SecretStoreValidationTests.cs (1)
126var steps = (await annotation.CreateStepsAsync(new PipelineStepFactoryContext
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (1)
112var additionalArgs = new List<string>
RedisResource.cs (1)
82internal List<string> Args { get; set; } = new();
Aspire.Hosting.Redis.Tests (5)
AddRedisTests.cs (3)
704var args = await ArgumentEvaluator.GetArgumentListAsync(redis.Resource); 712var args = await ArgumentEvaluator.GetArgumentListAsync(builder.Resource); 904var args = await ArgumentEvaluator.GetArgumentListAsync(redis.Resource, app.Services).AsTask().WaitAsync(TimeSpan.FromSeconds(60));
RedisFunctionalTests.cs (2)
199var databases = await response.Content.ReadFromJsonAsync<List<RedisInsightDatabaseModel>>(cts.Token);
Aspire.Hosting.RemoteHost (127)
AssemblyLoader.cs (5)
85var infos = new List<CodeGenerationLoadedAssemblyInfo>(); 126var assemblyNames = new List<string>(); 197private static List<Assembly> LoadAssemblies( 202var assemblies = new List<Assembly>(); 324var probeDirs = new List<string>();
Ats\AtsCallbackProxyFactory.cs (2)
136var expressions = new List<Expression>(); 355var nonCtParams = new List<(ParameterExpression Expr, Type Type)>();
Ats\AtsMarshaller.cs (2)
603if (genericDef == typeof(List<>) || genericDef == typeof(IList<>) || genericDef == typeof(IEnumerable<>) || genericDef == typeof(ICollection<>) || genericDef == typeof(IReadOnlyList<>) || genericDef == typeof(IReadOnlyCollection<>)) 606var listType = typeof(List<>).MakeGenericType(elementType);
Ats\CapabilityDispatcher.cs (1)
104var assemblyList = assemblies.ToList();
Ats\HandleRegistry.cs (1)
165var entries = _handles.Values.ToList();
Ats\ReferenceExpressionRef.cs (1)
280var parts = new List<string>();
AtsCapabilityScanner.cs (85)
30public required List<AtsCapabilityInfo> Capabilities { get; init; } 33public required List<AtsTypeInfo> HandleTypes { get; init; } 36public List<AtsDtoTypeInfo> DtoTypes { get; init; } = []; 39public List<AtsEnumTypeInfo> EnumTypes { get; init; } = []; 42public List<AtsExportedValueInfo> ExportedValues { get; init; } = []; 45public List<AtsDiagnostic> Diagnostics { get; init; } = []; 101var values = Enum.GetNames(enumType).ToList(); 102var valueInfos = values.Select(value => new AtsEnumValueInfo 120public List<AtsEnumTypeInfo> GetEnumTypes() => [.. _enums.Values]; 141var allCapabilities = new List<AtsCapabilityInfo>(); 142var allTypeInfos = new List<AtsTypeInfo>(); 143var allDtoTypes = new List<AtsDtoTypeInfo>(); 144var allEnumTypes = new List<AtsEnumTypeInfo>(); 145var allExportedValues = new List<AtsExportedValueInfo>(); 146var allDiagnostics = new List<AtsDiagnostic>(); 275var exportedValues = DeduplicateExportedValues(result.ExportedValues, result.Diagnostics); 299var capabilities = new List<AtsCapabilityInfo>(); 300var typeInfos = new List<AtsTypeInfo>(); 301var dtoTypes = new List<AtsDtoTypeInfo>(); 302var exportedValues = new List<AtsExportedValueInfo>(); 303var diagnostics = new List<AtsDiagnostic>(); 482var implementedInterfaces = !isInterface 485var baseTypeHierarchy = !isInterface 505var enumTypes = CollectEnumTypes(capabilities, dtoTypes); 525private static List<AtsEnumTypeInfo> CollectEnumTypes( 526List<AtsCapabilityInfo> capabilities, 527List<AtsDtoTypeInfo> dtoTypes) 573var result = new List<AtsEnumTypeInfo>(); 578var values = Enum.GetNames(enumType).ToList(); 634List<AtsCapabilityInfo> capabilities, 635List<AtsDtoTypeInfo> dtoTypes, 719List<AtsCapabilityInfo> capabilities, 720List<AtsDiagnostic> diagnostics) 827List<AtsCapabilityInfo> capabilities, 828List<AtsTypeInfo> typeInfos) 846if (typeToCompatibleTypes.TryGetValue(originalTarget, out var compatibleTypes)) 870private static Dictionary<string, List<AtsTypeRef>> BuildTypeCompatibilityMap( 871List<AtsTypeInfo> typeInfos) 873var typeToCompatibleTypes = new Dictionary<string, List<AtsTypeRef>>(); 917Dictionary<string, List<AtsTypeRef>> map, 921if (!map.TryGetValue(key, out var list)) 935private static void FilterMethodNameCollisions(List<AtsCapabilityInfo> capabilities, List<AtsDiagnostic> diagnostics) 937var capabilitiesWithTargets = capabilities 942var collisionGroups = capabilitiesWithTargets 959var collidingCapabilities = collisionGroup 964var exactTargetCapabilities = collidingCapabilities 990var capIds = collidingCapabilities.Select(c => c.CapabilityId).ToList(); 1024public static List<AtsCapabilityInfo> ScanCapabilities( 1041var implementedInterfaces = !type.IsInterface 1047var baseTypeHierarchy = !type.IsInterface 1070List<AtsDiagnostic> diagnostics) 1079var properties = new List<AtsDtoPropertyInfo>(); 1155return genericTypeDefinition == typeof(List<>) || 1176List<AtsExportedValueInfo> exportedValues, 1177List<AtsDiagnostic> diagnostics) 1257List<AtsExportedValueInfo> exportedValues, 1258List<AtsDiagnostic> diagnostics) 1376var pathSegments = new List<string> { valueAttr.CatalogName }; 1431private static List<AtsExportedValueInfo> DeduplicateExportedValues( 1433List<AtsDiagnostic> diagnostics) 1441var uniqueValues = new List<AtsExportedValueInfo>(exportedValues.Count); 1517public required List<AtsCapabilityInfo> Capabilities { get; init; } 1522public List<AtsDiagnostic> Diagnostics { get; init; } = []; 1541var capabilities = new List<AtsCapabilityInfo>(); 1542var diagnostics = new List<AtsDiagnostic>(); 1851var paramInfos = new List<AtsParameterInfo> 2010var parameters = method.GetParameters().ToList(); 2039var paramInfos = new List<AtsParameterInfo>(); 2184var parameters = new List<AtsCallbackParameterInfo>(); 2247var genericArgs = delegateType.GetGenericArguments().ToList(); 2258var parameters = new List<AtsCallbackParameterInfo>(); 2279var parameters = new List<AtsCallbackParameterInfo>(); 2428if (genericDef == typeof(List<>) || genericDef == typeof(IList<>)) 2782if (genericDef == typeof(List<>) || genericDef == typeof(IList<>)) 2965private static List<AtsTypeRef> CollectAllInterfaces(Type type) 2967var allInterfaces = new List<AtsTypeRef>(); 2985var nestedInterfaces = CollectAllInterfaces(iface); 3005private static List<AtsTypeRef> CollectBaseTypeHierarchy(Type type) 3007var baseTypes = new List<AtsTypeRef>(); 3299var unionTypes = new List<AtsTypeRef>(); 3481var standardParameters = CreateParameterDocumentation(memberElement.Elements("param")); 3482var atsParameterElements = memberElement.Elements("ats-param").ToList(); 3487var parameters = standardParameters 3523private static List<AtsParameterDocumentationInfo> CreateParameterDocumentation(IEnumerable<XElement> parameters)
AtsContextFilter.cs (2)
50var filteredCapabilities = context.Capabilities 76var filteredExportedValues = context.ExportedValues
CodeGeneration\CodeGenerationDiagnostic.cs (3)
71public List<CodeGenerationLoadedAssemblyInfo> LoadedAssemblies { get; init; } = []; 254private static (string? Version, string? Path, List<CodeGenerationLoadedAssemblyInfo> Assemblies) CaptureLoadedAssemblies( 260var loaded = new List<CodeGenerationLoadedAssemblyInfo>();
CodeGeneration\CodeGenerationService.cs (17)
296public List<CapabilityResponse> Capabilities { get; set; } = []; 297public List<HandleTypeResponse> HandleTypes { get; set; } = []; 298public List<DtoTypeResponse> DtoTypes { get; set; } = []; 299public List<EnumTypeResponse> EnumTypes { get; set; } = []; 300public List<ExportedValueResponse> ExportedValues { get; set; } = []; 301public List<DiagnosticResponse> Diagnostics { get; set; } = []; 316public List<ParameterResponse> Parameters { get; set; } = []; 319public List<TypeRefResponse> ExpandedTargetTypes { get; set; } = []; 329public List<CallbackParameterResponse>? CallbackParameters { get; set; } 351public List<TypeRefResponse>? UnionTypes { get; set; } 361public List<TypeRefResponse> ImplementedInterfaces { get; set; } = []; 362public List<TypeRefResponse> BaseTypeHierarchy { get; set; } = []; 371public List<DtoPropertyResponse> Properties { get; set; } = []; 387public List<string> Values { get; set; } = []; 388public List<EnumValueResponse> ValueInfos { get; set; } = []; 400public List<string> PathSegments { get; set; } = []; 412public List<ParameterDocumentationResponse> Parameters { get; set; } = [];
src\Shared\IntegrationPackageProbeManifest.cs (8)
75var managedAssemblyList = managedLookup.Values.ToList(); 90var nativeLibraryList = nativeLookup.Values.ToList(); 182var candidatePaths = new List<string>(); 208var keys = new List<string>(); 272var lookup = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 278if (!lookup.TryGetValue(key, out var paths)) 381var managedAssemblies = new List<IntegrationPackageManagedAssembly>(); 403var nativeLibraries = new List<IntegrationPackageNativeLibrary>();
Aspire.Hosting.RemoteHost.Tests (28)
AssemblyLoaderTests.cs (1)
184var activities = new List<Activity>();
AtsCapabilityScannerTests.cs (5)
886public List<string> Items { get; set; } = []; 892public List<string> Items { get; } = []; 902public List<string> Items { get; init; } = []; 908public required List<string> RequiredItems { get; init; } 927public List<string> Items { get; init; } = [];
AtsMarshallerTests.cs (7)
114Assert.False(AtsMarshaller.IsSimpleType(typeof(List<int>))); 410var result = marshaller.UnmarshalFromJson(json, typeof(List<string>), context); 413var list = Assert.IsType<List<string>>(result); 534var list = new List<int> { 1, 2, 3 }; 1135public List<string> AddressPrefixes { get; init; } = ["default"]; 1137public List<ReferenceExpression> AddressPrefixReferences { get; init; } = [];
CallbackProxyTests.cs (2)
391var dtoTypes = registerDtoTypes 447public List<(string CallbackId, JsonNode? Args)> Invocations { get; } = [];
CapabilityDispatcherTests.cs (4)
40var ids = dispatcher.GetCapabilityIds().ToList(); 2118public List<(string CallbackId, JsonNode? Args)> Invocations { get; } = []; 2520public static List<object> ReturnMutableList() 2527public static List<int> ReturnTypedMutableList()
LayoutCommandTests.cs (3)
187var managedAssemblies = manifest.RootElement.GetProperty("managedAssemblies").EnumerateArray().ToList(); 198var nativeLibraries = manifest.RootElement.GetProperty("nativeLibraries").EnumerateArray().ToList(); 258var managedAssemblies = manifest.RootElement.GetProperty("managedAssemblies").EnumerateArray().ToList();
RemoteHostProfilingTelemetryTests.cs (6)
39var activities = new List<Activity>(); 58var activities = new List<Activity>(); 73var activities = new List<Activity>(); 100var activities = new List<Activity>(); 122var activities = new List<Activity>(); 151var activities = new List<Activity>();
Aspire.Hosting.Rust (12)
CargoMetadata.cs (4)
79var packages = new List<CargoPackage>(); 108var binTargets = new List<string>(); 150private static List<string> ReadStringArray(JsonElement element) 152var values = new List<string>();
RustCargoTargetResolver.cs (2)
172var defaultPackages = metadata.Packages.Where(p => metadata.DefaultMemberIds.Contains(p.Id)).ToList(); 181var runnablePackages = defaultPackages.Where(static p => p.BinTargetNames.Count > 0).ToList();
RustDockerfileGenerator.cs (5)
101var cargoArgs = await ResolvePublishCargoArgsAsync(resource, context.CancellationToken).ConfigureAwait(false); 170private static async Task<List<string>> ResolvePublishCargoArgsAsync( 174var args = new List<string>(); 190private static void RewriteManifestPath(List<string> cargoArgs, string manifestPath, string containerPath) 321private static string BuildCargoCommand(List<string> cargoArgs)
RustHostingExtensions.cs (1)
99var cargoArgs = new List<string>();
Aspire.Hosting.Rust.Tests (21)
AddRustAppPublishTests.cs (1)
1106var observed = new List<RustAppResource>();
RustDebugArgsTests.cs (2)
19private static async Task<(List<string> Args, RustAppResource Resource)> GetArgsAsync( 39var args = await ArgumentEvaluator.GetArgumentListAsync(rust.Resource, app.Services);
RustPublicApiTests.cs (11)
42var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 55var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 68var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 81var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 98var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 114var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 128var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 140var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 153var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource); 162var observed = new List<RustAppResource>(); 176var observed = new List<RustAppResource>();
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = []; 36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = []; 41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = []; 46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = []; 51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = []; 56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = []; 61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
Aspire.Hosting.Sdk.Tests (1)
AppHostSdkTargetsTests.cs (1)
1189var arguments = new List<string>
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
130private readonly List<SqlServerDatabaseResource> _databaseResources = [];
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
116var cars = await dbContext.Cars.ToListAsync(cts.Token);
Aspire.Hosting.Testing.Tests (7)
TestingBuilderTests.cs (3)
31var realBuilderProperties = typeof(IDistributedApplicationBuilder).GetProperties().Select(p => p.Name).ToList(); 32var testBuilderProperties = typeof(IDistributedApplicationTestingBuilder).GetProperties().Select(p => p.Name).ToList(); 33var missingProperties = realBuilderProperties.Except(testBuilderProperties).ToList();
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (2)
99var table = logTexts.ToList(); 128var logWatchTasks = new List<Task>();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
43var logs = new List<LogLine>(); 60var logs = new List<LogLine>();
Aspire.Hosting.Tests (427)
ApplicationModel\ResourceAnnotationCollectionTests.cs (2)
126var enumeratedItems = new List<IResourceAnnotation>(); 184var exceptions = new List<Exception>();
AtsEventingExportsTests.cs (1)
29var subscribers = builder.Services
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (34)
149var result = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 253var result = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 363var result = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 418var result = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 468var result = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 531var firstResult = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 552var secondResult = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 606var firstResult = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 626var secondResult = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 678var firstResult = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 697var secondResult = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 747var firstResult = await firstConnection.GetResourceSnapshotsAsync().DefaultTimeout(); 773var secondResult = await secondConnection.GetResourceSnapshotsAsync().DefaultTimeout(); 839var result = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 896var result = await firstConnection.GetResourceSnapshotsAsync().DefaultTimeout(); 1050var result = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 1164var result = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 1274var result = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 1366var result = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 1402var result = await target.GetResourceSnapshotsAsync().DefaultTimeout(); 1660var logs = new List<ResourceLogLine>(); 1690var logs = new List<ResourceLogLine>(); 1731var logs = new List<ResourceLogLine>(); 1775var logs = new List<ResourceLogLine>(); 1819var logs = new List<ResourceLogLine>(); 1863var logs = new List<ResourceLogLine>(); 1911var logs = new List<ResourceLogLine>(); 1963var logs = new List<ResourceLogLine>(); 2021var logs = new List<ResourceLogLine>(); 2072var logs = new List<ResourceLogLine>(); 2082var badLogs = new List<ResourceLogLine>(); 2113var logs = new List<ResourceLogLine>(); 2148var activities = new List<Activity>(); 2204var activities = new List<Activity>();
Backchannel\BackchannelContractTests.cs (2)
300var activities = new List<Activity>(); 332genericDef == typeof(List<>) ||
Backchannel\GetTerminalInfoAsyncTests.cs (3)
19private readonly List<IAsyncDisposable> _toDispose = []; 20private readonly List<string> _tempDirs = []; 381private readonly List<JsonRpc> _rpcs = [];
ConditionalReferenceExpressionTests.cs (1)
87var references = ((IValueWithReferences)expr).References.ToList();
ContainerRegistryResourceTests.cs (16)
293var registries = appModel.Resources.OfType<ContainerRegistryResource>().ToList(); 344var pipelineStepAnnotations = container.Resource.Annotations.OfType<PipelineStepAnnotation>().ToList(); 345var pipelineConfigAnnotations = container.Resource.Annotations.OfType<PipelineConfigurationAnnotation>().ToList(); 359var pipelineStepAnnotations = project.Resource.Annotations.OfType<PipelineStepAnnotation>().ToList(); 360var pipelineConfigAnnotations = project.Resource.Annotations.OfType<PipelineConfigurationAnnotation>().ToList(); 382var steps = (await pipelineStepAnnotation.CreateStepsAsync(factoryContext)).ToList(); 406var steps = (await pipelineStepAnnotation.CreateStepsAsync(factoryContext)).ToList(); 422var pipelineStepAnnotations = container.Resource.Annotations.OfType<PipelineStepAnnotation>().ToList(); 432var steps = (await annotation.CreateStepsAsync(factoryContext)).ToList(); 454var steps = (await pipelineStepAnnotation.CreateStepsAsync(factoryContext)).ToList(); 490var annotations = project.Resource.Annotations.OfType<ContainerRegistryReferenceAnnotation>().ToList(); 547var registryTargetAnnotations = project.Resource.Annotations.OfType<RegistryTargetAnnotation>().ToList(); 550var registryResources = registryTargetAnnotations.Select(a => a.Registry).ToList(); 676var registryTargetAnnotations = project.Resource.Annotations.OfType<RegistryTargetAnnotation>().ToList(); 789var registryTargetAnnotations = project.Resource.Annotations.OfType<RegistryTargetAnnotation>().ToList(); 792var registryResources = registryTargetAnnotations.Select(a => a.Registry).ToList();
Dashboard\DashboardEventHandlersTests.cs (6)
136var logs = new List<WriteContext>(); 149var matchingLogs = logs.Where(l => l.Message == $"Test message from {category}").ToList(); 520var args = new List<object>(); 600var args = new List<object>(); 669var args = new List<object>(); 736var args = new List<object>();
Dashboard\DashboardResourceTests.cs (4)
55var args = await ArgumentEvaluator.GetArgumentListAsync(dashboard).DefaultTimeout(); 119var config = (await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout()) 339var args = await ArgumentEvaluator.GetArgumentListAsync(dashboard).DefaultTimeout(); 827var urls = new List<ResourceUrlAnnotation>
Dcp\DcpExecutorTests.cs (124)
130var startingEvents = new List<OnResourceStartingContext>(); 152var executables = GetCreatedExecutablesForResource(kubernetesService, "ServiceA"); 220var executables = GetCreatedExecutablesForResource(kubernetesService, "ServiceA"); 224var callArgs = executionType == ExecutionType.IDE ? exe.Spec.Args : exe.Spec.Args![^(expectedArgs?.Length ?? 0)..]; 227Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations)); 256var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 264Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations)); 314Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs)); 353Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs)); 385Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations)); 389var effectiveArgs = exe.Spec.Args!.ToList(); 431Assert.True(container.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations)); 435var effectiveArgs = container.Spec.Args!.ToList(); 580var executables = GetCreatedExecutablesForResource(kubernetesService, resource.Name); 588Assert.True(exe1.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations1)); 608Assert.True(exe2.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations2)); 629Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 661Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 693Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 726Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 781Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 810Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 845Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 881Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 919Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 947Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 978Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 1010Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 1040Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 1243var executables = GetCreatedExecutablesForResource(kubernetesService, "CoolProgram"); 1281var containers = GetCreatedContainersForResource(kubernetesService, "database"); 1389var executables = GetCreatedExecutablesForResource(kubernetesService, "ServiceA"); 1755var logLines = new List<LogLine>(); 2026var logLines = new List<LogLine>(); 3299var exes = GetCreatedExecutablesForResource(kubernetesService, "ServiceA"); 3304Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 3344var exes = GetCreatedExecutablesForResource(kubernetesService, "ServiceA"); 3349Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 3386Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 3423Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 3461Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 3490Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 3525Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 3609Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 3642Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 3950Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 3985Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 4016Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 4158var serviceProducers = JsonSerializer.Deserialize<List<ServiceProducerAnnotation>>(annotations[CustomResource.ServiceProducerAnnotation]); 4603List<Executable> dcpExes = []; 4615Assert.True(debuggableExe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs1)); 4687Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations)); 4724Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations)); 4920Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs)); 4946var failedResources = new List<IResource>(); 5517var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 5554var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 5595var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 5631var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 5673var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 5715var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 5757var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 6026Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 6132var expectedArgs = new List<string> { resourceArgs[0] }; 6184var expectedArgs = new List<string> { resourceArgs[0] }; 6229var expectedArgs = new List<string> { resourceArgs[0] }; 6301var expectedArgs = new List<string> { "run" }; 6310Assert.True(exe.TryGetAnnotationAsObjectList<TestMauiLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 6403var expectedArgs = new List<string> 6549var expectedArgs = new List<string> 6566out var launchConfigurations)); 6572var logLines = new List<LogLine>(); 6632Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs)); 6660var resourceArgs = new List<string>(); 6720var expectedArgs = new List<string>(); 6746Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs)); 6747var expectedDisplayArgs = new List<string>(); 6838Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs)); 6935var expectedArgs = new List<string> { "run" }; 7066Assert.True(customExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7241Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7359Assert.True(exe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7389var failedResources = new List<IResource>(); 7594Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs)); 7713Assert.True(exe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 7905var failedResources = new List<IResource>(); 7927var logLines = new List<LogLine>(); 7980Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs)); 8033Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs)); 8084Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs)); 8171Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs)); 8237var failedResources = new List<IResource>(); 8407var failedResources = new List<(IResource Resource, string? ErrorMessage)>(); 8433var logLines = new List<LogLine>(); 8520var logLines = new List<LogLine>(); 8573Assert.True(exe1.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs1)); 8579var executables = GetCreatedExecutablesForResource(kubernetesService, "TestExecutable"); 8583Assert.True(exe2.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs2)); 8592Assert.True(exe3.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var displayArgs3)); 8643var executables = GetCreatedExecutablesForResource(kubernetesService, "TestExecutable"); 8678var failedResources = new List<(IResource Resource, string? ErrorMessage)>(); 8787var svcs = kubernetesService.CreatedResources 9028Assert.True(container.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations)); 9072Assert.True(startedExecutable.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations)); 9117Assert.True(startedContainer.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations)); 9301var createdContainers = kubernetesService.CreatedResources.OfType<Container>().ToList(); 9351var createdContainers = kubernetesService.CreatedResources.OfType<Container>().ToList(); 9356var tunnelServices = kubernetesService.CreatedResources 9420var createdResources = kubernetesService.CreatedResources.ToList(); 9429var tunnelServices = createdResources 9462var failedResources = new List<string>(); 9474var createdContainers = kubernetesService.CreatedResources.OfType<Container>().ToList(); 9499var failedResources = new List<string>(); 9511var createdContainers = kubernetesService.CreatedResources.OfType<Container>().ToList(); 9521var commandAnnotations = resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 9530var commandAnnotations = resource.Annotations.OfType<ResourceCommandAnnotation>().ToList(); 9540var expectedArgs = new List<string> { "run", "--project", "TestProject" }; 9580var failedResources = new List<IResource>(); 9640Assert.True(exe.TryGetAnnotationAsObjectList<ExecutableLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs)); 9671var failedResources = new List<IResource>(); 9737private static List<Executable> GetCreatedExecutablesForResource(TestKubernetesService kubernetesService, string appModelResourceName) 9744private static List<Container> GetCreatedContainersForResource(TestKubernetesService kubernetesService, string appModelResourceName) 9782var exes = kubernetesService.CreatedResources.OfType<Executable>()
Dcp\ExecutableLaunchPlanTests.cs (1)
112var expectedArguments = new List<string> { "run", "--project", projectPath };
Dcp\KubernetesServiceTests.cs (2)
42var result = await listTask; 71var result = await listTask;
Dcp\ProcessUtilTests.cs (2)
93var outputLines = new List<string>(); 143var outputLines = new List<string>();
Dcp\TestKubernetesService.cs (8)
28private readonly List<Channel<(WatchEventType, CustomResource)>> _watchChannels = []; 104var modifiedResources = AllocateProxylessContainerServicePorts(res); 221private List<CustomResource> AllocateProxylessContainerServicePorts(CustomResource resource) 224container.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var servicesProduced) is not true) 229var modifiedResources = new List<CustomResource>(); 273public Task<List<T>> ListAsync<T>(string? namespaceParameter = null, CancellationToken cancellationToken = default) where T : CustomResource, IKubernetesStaticMetadata 445private static List<TunnelStatus>? CreateReadyTunnelStatuses(List<TunnelConfiguration>? tunnels)
DebugSupportExtensionsTests.cs (1)
40var methods = typeof(DebugSupportExtensions)
DistributedApplicationModelExtensionsTests.cs (2)
29var result = appModel.GetComputeResources().ToList(); 64var result = appModel.GetBuildAndPushResources().ToList();
DistributedApplicationTests.cs (16)
833var list = await s.ListAsync<Container>().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 854var createFileEntries = new List<ContainerFileSystemItem> 890var list = await s.ListAsync<Container>().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 934var list = await s.ListAsync<Container>().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 983var expectedDefaultCertificateDirs = new List<string>(); 984var expectedDefaultBundleFiles = new List<string>(); 1009var list = await s.ListAsync<Container>().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1355var dashboardUrls = aspireDashboard.Annotations.OfType<ResourceUrlAnnotation>().ToList(); 1847var exeList = await s.ListAsync<Executable>().DefaultTimeout(); 1856var list = await s.ListAsync<Container>().DefaultTimeout(); 1922var serviceList = await s.ListAsync<Service>().DefaultTimeout(); 1925var exeList = await s.ListAsync<Executable>().DefaultTimeout(); 1934var list = await s.ListAsync<Container>().DefaultTimeout(); 2011var networks = await s.ListAsync<ContainerNetwork>().DefaultTimeout(); 2052var containers = await kubernetes.ListAsync<Container>(cancellationToken: token) 2061var executables = await kubernetes.ListAsync<Executable>(cancellationToken: token)
ExecutableResourceBuilderExtensionTests.cs (9)
190var args = await ArgumentEvaluator.GetArgumentListAsync(executable.Resource); 205var args = new List<string>(); 255var args = await ArgumentEvaluator.GetArgumentListAsync(executable.Resource); 279var args = await ArgumentEvaluator.GetArgumentListAsync(executable.Resource); 305var args = await ArgumentEvaluator.GetArgumentListAsync(executable.Resource); 324var annotations = executable.Resource.Annotations.OfType<SupportsDebuggingAnnotation>().ToList(); 363var args = await ArgumentEvaluator.GetArgumentListAsync(executable.Resource); 386var args = await ArgumentEvaluator.GetArgumentListAsync(container); 390var processedArgs = new List<string>();
ExecutableResourceTests.cs (1)
45var args = await ArgumentEvaluator.GetArgumentListAsync(exe2.Resource).DefaultTimeout();
ExecutionConfigurationGathererTests.cs (1)
536var keys = metadata.CustomBundlesFactories.Keys.ToList();
InteractionServiceTests.cs (15)
641var inputs = new List<InteractionInput> 681var inputs = new List<InteractionInput> 715var inputs = new List<InteractionInput> 738var inputs = new List<InteractionInput> 753var inputs = new List<InteractionInput> 768var inputs = new List<InteractionInput> 801var inputs = new List<InteractionInput> 838var inputs = new List<InteractionInput> 854var inputs = new List<InteractionInput> 908var inputs = new List<InteractionInput> 961var inputs = new List<InteractionInput> 1016var inputs = new List<InteractionInput> 1068var inputs = new List<InteractionInput> 1101var inputs = new List<InteractionInput> 1309private static async Task CompleteInteractionAsync(InteractionService interactionService, int interactionId, InteractionCompletionState state, List<DashboardServiceData.InputDto>? inputs = null)
Lifecycle\TerminalHostFailureDiagnosticServiceTests.cs (1)
273var collected = new List<LogLine>();
ManifestGenerationTests.cs (1)
162var verify = new List<Action<JsonElement>>();
Orchestrator\ApplicationOrchestratorTests.cs (1)
424var observedEvents = new List<string>();
Orchestrator\ParameterProcessorTests.cs (11)
86var updates = new List<(IResource Resource, CustomResourceSnapshot Snapshot)>(); 190List<ParameterResource> parameters = [param1, param2, secretParam]; 436List<ParameterResource> parameters = [param1, param2]; 483List<ParameterResource> parameters = [secretParam]; 519List<ParameterResource> parameters = [param]; 558List<ParameterResource> parameters = [param]; 777var parameters = model.Resources.OfType<ParameterResource>().ToList(); 852var parameters = model.Resources.OfType<ParameterResource>().ToList(); 1408List<ParameterResource> parameters = [connectionStringParam]; 1449List<ParameterResource> parameters = [regularParam]; 1493List<ParameterResource> parameters = [customParam];
Pipelines\DistributedApplicationPipelineTests.cs (44)
64var executedSteps = new List<string>(); 98var executedSteps = new List<string>(); 129var executedSteps = new List<string>(); 160var executedSteps = new List<string>(); 197var executionOrder = new List<(string step, DateTime time)>(); 253var executedSteps = new List<string>(); 285var executedSteps = new List<string>(); 420var executedSteps = new List<string>(); 476var executedSteps = new List<string>(); 512var executedSteps = new List<string>(); 933var executionOrder = new List<string>(); 998var executedSteps = new List<string>(); 1033var executedSteps = new List<string>(); 1057var executedSteps = new List<string>(); 1085var executedSteps = new List<string>(); 1122var executedSteps = new List<string>(); 1165var loggedMessages = new List<string>(); 1289var capturedSteps = new List<IReportingStep?>(); 1390var capturedLogs = reporter.LoggedMessages.Where(log => log.Message.EndsWith(" message")).ToList(); 1424var capturedSteps = new List<PipelineStep>(); 1466var executionOrder = new List<string>(); 1500var foundSteps = new List<PipelineStep>(); 1543var foundSteps = new List<PipelineStep>(); 1593var foundSteps = new List<PipelineStep>(); 1733var executionOrder = new List<string>(); 1781var provisionSteps = configContext.GetSteps(WellKnownPipelineTags.ProvisionInfrastructure).ToList(); 1782var buildSteps = configContext.GetSteps(WellKnownPipelineTags.BuildCompute).ToList(); 1783var deploySteps = configContext.GetSteps(WellKnownPipelineTags.DeployCompute).ToList(); 1845var executedSteps = new List<string>(); 1913var executedSteps = new List<string>(); 1948var executedSteps = new List<string>(); 2242var steps = await pipeline.ResolveStepsAsync(context).DefaultTimeout(); 2265var steps = await pipeline.ResolveStepsAsync(context).DefaultTimeout(); 2286var steps = await pipeline.ResolveStepsAsync(context).DefaultTimeout(); 2315var steps = new List<PipelineStep> 2322var ordered = DistributedApplicationPipeline.GetTopologicalOrder(steps); 2335var steps = new List<PipelineStep> 2342var ordered1 = DistributedApplicationPipeline.GetTopologicalOrder(steps); 2343var ordered2 = DistributedApplicationPipeline.GetTopologicalOrder(steps); 2354var originalDeploy = original.GetType() 2356.GetValue(original) as List<PipelineStep>; 2357var cloneDeploy = clone.GetType() 2359.GetValue(clone) as List<PipelineStep>; 2418var resolved = await pipeline.ResolveStepsAsync(context).DefaultTimeout();
Pipelines\PipelineLoggerProviderTests.cs (3)
113var logs1 = fakeStep1.LoggedMessages; 118var logs2 = fakeStep2.LoggedMessages; 127public List<(LogLevel Level, string Message)> LoggedMessages { get; } = [];
ProjectResourceTests.cs (3)
688var args = await ArgumentEvaluator.GetArgumentListAsync(project.Resource).DefaultTimeout(); 841var steps = (await pipelineStepAnnotation.CreateStepsAsync(factoryContext)).ToList(); 1017var resolvedArgs = new List<string>();
PublishAsDockerfileTests.cs (1)
343var endpoints = container.Annotations.OfType<EndpointAnnotation>().OrderBy(e => e.Name).ToList();
Publishing\ComposeServiceParsingTests.cs (15)
15var lines = new List<string> 21var results = ContainerRuntimeBase<DockerContainerRuntime>.ParseComposeServiceEntries(lines); 33var lines = new List<string> 38var results = ContainerRuntimeBase<DockerContainerRuntime>.ParseComposeServiceEntries(lines); 48var results = ContainerRuntimeBase<DockerContainerRuntime>.ParseComposeServiceEntries([]); 56var lines = new List<string> 62var results = ContainerRuntimeBase<DockerContainerRuntime>.ParseComposeServiceEntries(lines); 71var lines = new List<string> 76var results = PodmanContainerRuntime.ParsePodmanPsOutput(lines); 89var lines = new List<string> 94var results = PodmanContainerRuntime.ParsePodmanPsOutput(lines); 104var lines = new List<string> 109var results = PodmanContainerRuntime.ParsePodmanPsOutput(lines); 117var results = PodmanContainerRuntime.ParsePodmanPsOutput([]); 125var results = PodmanContainerRuntime.ParsePodmanPsOutput(["not json"]);
Publishing\DeploymentStateManagerTests.cs (1)
112var tasks = new List<Task>();
Publishing\PipelineActivityReporterTests.cs (1)
969var pipelineSummary = new List<PipelineSummaryItem>
ReferenceExpressionTests.cs (2)
181var references = ((IValueWithReferences)conditional).References.ToList(); 237var references = ((IValueWithReferences)outerConditional).References.ToList();
RequiredCommandAnnotationTests.cs (1)
109var annotations = resourceBuilder.Resource.Annotations.OfType<RequiredCommandAnnotation>().ToList();
ResourceCommandServiceTests.cs (2)
160var resolvedResourceNames = custom.Resource.GetResolvedResourceNames().ToList(); 198var resolvedResourceNames = custom.Resource.GetResolvedResourceNames().ToList();
ResourceExtensionsTests.cs (1)
404var annotations = containerResource.Resource.Annotations.OfType<ContainerImagePushOptionsCallbackAnnotation>().ToList();
ResourceFailureLoggingTests.cs (6)
39var logLines = GetLogLines(logCollector); 61var logLines = GetLogLines(logCollector); 80private static List<string> GetLogLines(FakeLogCollector logCollector) 88private static void AssertSingleLogLine(List<string> logLines, Func<string, bool> predicate, string expected) 90var matches = logLines.Where(predicate).ToList(); 96private static string FormatLogLines(List<string> logLines)
ResourceLoggerServiceTests.cs (14)
243var sortedLogs = allLogs.OrderBy(l => l.LineNumber).ToList(); 291var allLogs = new List<LogLine>(); 297var sortedLogs = allLogs.OrderBy(l => l.LineNumber).ToList(); 305var consoleLogsSourceLogs = sortedLogs.Slice(4, 2).ToList(); 317var logLines = new List<LogLine>(); 352var logLines = new List<LogLine>(); 384var logLines = new List<LogLine>(); 490var allLogs = new List<LogLine>(); 507var logLines = new List<LogLine>(); 550var logLines = new List<LogLine>(); 683var logs = new List<LogLine>(); 717var logs = new List<LogLine>(); 748var subscribers = new List<LogSubscriber>(); 780var allSubscribers = await watchTask.DefaultTimeout();
ResourceNotificationTests.cs (9)
102async Task<List<ResourceEvent>> GetValuesAsync(CancellationToken cancellationToken) 104var values = new List<ResourceEvent>(); 126var values = await enumerableTask.DefaultTimeout(); 180async Task<List<ResourceEvent>> GetValuesAsync(CancellationToken cancellation) 182var values = new List<ResourceEvent>(); 206var values = await enumerableTask.DefaultTimeout(); 1038async Task<List<ResourceEvent>> GetValuesAsync(CancellationToken cancellationToken) 1040var values = new List<ResourceEvent>(); 1071var values = await enumerableTask.DefaultTimeout();
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
StableConnectionStringBuilderTests.cs (2)
216var actual = builder.ToList(); 296var keys = builder.ToList();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
43var logs = new List<LogLine>(); 60var logs = new List<LogLine>();
tests\Shared\TestFileSystemService.cs (1)
22private readonly List<string> _directories = [];
tests\Shared\TestInteractionFileUploadStore.cs (1)
62var files = new List<InteractionFileUpload>();
tests\Shared\TestPipelineActivityReporter.cs (7)
31public List<string> CreatedSteps { get; } = []; 36public List<(string StepTitle, string? ParentStepId, int HierarchyLevel)> CreatedStepHierarchy { get; } = []; 41public List<(string StepTitle, string TaskStatusText)> CreatedTasks { get; } = []; 46public List<(string StepTitle, string CompletionText, CompletionState CompletionState)> CompletedSteps { get; } = []; 51public List<(string TaskStatusText, string? CompletionMessage, CompletionState CompletionState)> CompletedTasks { get; } = []; 56public List<(string TaskStatusText, string StatusText)> UpdatedTasks { get; } = []; 61public List<(string StepTitle, LogLevel LogLevel, string Message)> LoggedMessages { get; } = [];
UserSecretsParameterDefaultTests.cs (3)
105var tasks = new List<Task<bool>>(); 216var tasks = new List<Task<bool>>(); 320var tasks = new List<Task<string>>();
Utils\CommandLineArgsParserTests.cs (1)
26var actualParsed = Parse(commandLine);
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();
VersionChecking\PackageUpdateHelpersTests.cs (8)
55var packages = PackageUpdateHelpers.ParsePackageSearchResults(json, "Aspire.Hosting.AppHost"); 103var packages = PackageUpdateHelpers.ParsePackageSearchResults(json, "Aspire.Hosting.AppHost"); 151var packages = PackageUpdateHelpers.ParsePackageSearchResults(json, "Aspire.Hosting.AppHost"); 165var packages = PackageUpdateHelpers.ParsePackageSearchResults(json, "Aspire.Hosting.AppHost"); 213var packages = PackageUpdateHelpers.ParsePackageSearchResults(json, "Aspire.Hosting.AppHost"); 246var packages = PackageUpdateHelpers.ParsePackageSearchResults(pollutedStdout, "Aspire.Hosting.AppHost"); 262var packages = PackageUpdateHelpers.ParsePackageSearchResults(pollutedStdout); 290var packages = PackageUpdateHelpers.ParsePackageSearchResults(pollutedStdout);
VersionChecking\VersionCheckServiceTests.cs (11)
29var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 86var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 122var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 162var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 196var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 232var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 268var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 304var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 334var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 363var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 381var warnings = logger.Collector.GetSnapshot().Where(log => log.Level == LogLevel.Warning).ToList();
WithEndpointTests.cs (1)
1003var envAnnotations = resource.Annotations.OfType<EnvironmentCallbackAnnotation>().ToList();
WithHttpCommandTests.cs (1)
414var commands = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList();
WithIconNameTests.cs (1)
91var iconAnnotations = container.Resource.Annotations.OfType<ResourceIconAnnotation>().ToList();
WithTerminalTests.cs (7)
141var hosts = model.Resources.OfType<TerminalHostResource>().ToList(); 175var waitAnnotations = resource.Resource.Annotations.OfType<WaitAnnotation>() 206var hosts = model.Resources.OfType<TerminalHostResource>().ToList(); 261var hosts = model.Resources.OfType<TerminalHostResource>().ToList(); 1217var args = await GetResolvedCommandLineArgsAsync(host); 1257private static async Task<List<string>> GetResolvedCommandLineArgsAsync(TerminalHostResource host) 1259var argsList = new List<object>();
WithUrlsTests.cs (2)
471var urlSnapshots = new List<UrlSnapshot[]>(); 587var urlSnapshots = new List<UrlSnapshot[]>();
Aspire.Hosting.TestUtilities (13)
Helpers\Network.cs (1)
28var triedPorts = new List<int>();
Utils\ArgumentEvaluator.cs (1)
11public static async ValueTask<List<string>> GetArgumentListAsync(IResource resource, IServiceProvider? serviceProvider = null)
Utils\Grpc\TestServerCallContext.cs (1)
24_authContext = new AuthContext(string.Empty, new Dictionary<string, List<AuthProperty>>());
Utils\LoggerNotificationExtensions.cs (2)
99var table = logTexts.ToList(); 128var logWatchTasks = new List<Task>();
Utils\ManifestUtils.cs (1)
77var results = new List<JsonNode>();
Utils\TestDeveloperCertificateService.cs (1)
10public sealed class TestDeveloperCertificateService(List<X509Certificate2> certificates, bool supportsContainerTrust, bool trustCertificate, bool tlsTerminate, bool latestCertificateIsUntrusted = false) : IDeveloperCertificateService
Utils\TestPackageFetcher.cs (4)
11private readonly Task<List<NuGetPackage>> _versionTask; 15public TestPackageFetcher(Task<List<NuGetPackage>>? versionTask = null) 17_versionTask = versionTask ?? Task.FromResult<List<NuGetPackage>>([]); 20public Task<List<NuGetPackage>> TryFetchPackagesAsync(string appHostDirectory, CancellationToken cancellationToken)
Utils\TestProcessRunner.cs (2)
12private readonly List<ProcessSpec> _processSpecs = []; 13private readonly List<TestProcessDisposable> _disposables = [];
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
161var valkeyCommand = new List<string>
Aspire.Hosting.Valkey.Tests (1)
AddValkeyTests.cs (1)
345var args = await ArgumentEvaluator.GetArgumentListAsync(builder.Resource);
Aspire.Hosting.Yarp (8)
ConfigurationBuilder\YarpCluster.cs (1)
93var targets = new List<object>(_targets.Length);
ConfigurationBuilder\YarpRoute.cs (1)
273List<IReadOnlyDictionary<string, string>> transforms;
YarpEnvConfigGenerator.cs (2)
15public static void PopulateEnvVariables(Dictionary<string, object> environmentVariables, List<YarpRoute> routes, List<YarpCluster> clusters)
YarpJsonConfigGeneratorBuilder.cs (2)
15private readonly List<ClusterConfig> _clusterConfigs = new List<ClusterConfig>(); 16private readonly List<RouteConfig> _routeConfigs = new List<RouteConfig>();
YarpResource.cs (2)
15internal List<YarpRoute> Routes { get; } = []; 17internal List<YarpCluster> Clusters { get; } = [];
Aspire.Hosting.Yarp.Tests (2)
YarpConfigGeneratorTests.cs (2)
18private readonly List<RouteConfig> _validRoutes = 115private readonly List<ClusterConfig> _validClusters =
Aspire.Microsoft.Azure.Cosmos (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Microsoft.Azure.StackExchangeRedis.Tests (1)
FakeTokenCredential.cs (1)
33public List<string> RequestedScopes { get; } = [];
Aspire.Microsoft.EntityFrameworkCore.Cosmos (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (10)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (10)
17public List<MockRequest> Requests { get; } = new List<MockRequest>(); 78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 90if (!_headers.TryGetValue(header.Name, out var values)) 100if (_headers.TryGetValue(name, out var values)) 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 174if (!_headers.TryGetValue(header.Name, out var values)) 185if (_headers.TryGetValue(name, out var values)) 197var result = _headers.TryGetValue(name, out var valuesList);
Aspire.NATS.Net.Tests (1)
AspireNatsClientExtensionsTests.cs (1)
266var activityList = await notifier.TakeAsync(1, TimeSpan.FromSeconds(10));
Aspire.Oracle.EntityFrameworkCore.Tests (1)
ConformanceTests.cs (1)
151List<Activity> exportedActivities = new();
Aspire.Playground.Tests (15)
AppHostTests.cs (6)
118var endpoints = resourceEndpoints[resource]; 313Dictionary<string, List<string>> resourceEndpoints, 314List<ReadyStateText>? waitForTexts = null) 323public List<ResourceWait>? WaitForResources { get; set; } 325public List<ReadyStateText>? WaitForTexts { get; set; } 327public Dictionary<string, List<string>>? ResourceEndpoints { get; set; }
Infrastructure\DistributedApplicationExtensions.cs (5)
29var parameters = builder.Resources.OfType<ParameterResource>().Where(p => !p.IsConnectionString).ToList(); 53var allResourceNamedVolumes = builder.Resources.SelectMany(r => r.Annotations 118var appHostLogs = logs.Where(l => l.Category?.StartsWith($"{environment.ApplicationName}.Resources") == false).ToList(); 119var resourceLogs = logs.Where(l => l.Category?.StartsWith($"{environment.ApplicationName}.Resources") == true).ToList(); 135var assertableResourceLogNames = applicationModel.Resources.Where(ShouldAssertErrorsForResource).Select(r => $"{environment.ApplicationName}.Resources.{r.Name}").ToList();
src\Shared\X509Certificate2Extensions.cs (2)
139public static List<X509Certificate2> GetTrustedCertificates( 158var trustedCertificates = new List<X509Certificate2>();
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (2)
99var table = logTexts.ToList(); 128var logWatchTasks = new List<Task>();
Aspire.RabbitMQ.Client (1)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (1)
131private readonly List<EventSource> _eventSources = [];
Aspire.RabbitMQ.Client.Tests (1)
ConformanceTests.cs (1)
165List<Activity> exportedActivities = [];
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
77List<string> args = new();
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentation.cs (1)
23internal List<StackExchangeRedisConnectionInstrumentation> InstrumentedConnections { get; } = [];
Aspire.StackExchange.Redis.DistributedCaching.Tests (1)
DistributedCacheConformanceTests.cs (1)
67var activityList = await notifier.TakeAsync(3, TimeSpan.FromSeconds(10));
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
OutputCacheConformanceTests.cs (1)
67var activityList = await notifier.TakeAsync(3, TimeSpan.FromSeconds(10));
Aspire.StackExchange.Redis.Tests (1)
AspireRedisExtensionsTests.cs (1)
291var activityList = await notifier.TakeAsync(1, TimeSpan.FromSeconds(10));
Aspire.Templates.Tests (7)
StarterTemplateRunTestsBase.cs (4)
125static async Task<List<string[]>> GetAndValidateCellTexts(ILocator tableLoc) 127List<string[]> cellTexts = []; 151public static List<ResourceRow> GetExpectedResources(AspireProject project, bool hasRedisCache) 153var expectedResources = new List<ResourceRow>
TemplateTestsBase.cs (1)
184List<ResourceRow> foundRows = [];
tests\Shared\TemplatesTesting\AspireProject.cs (1)
270var tasksToWaitFor = new List<Task> { appRunning.Task, projectsParsed.Task };
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
Aspire.TerminalHost (3)
TerminalHostApp.cs (1)
477var pairs = new List<string>(payloadList.Count);
TerminalHostControlListener.cs (2)
23private readonly List<JsonRpc> _activeRpcs = new(); 310List<JsonRpc> rpcs;
Aspire.TestTools (10)
GitHubActionsApi.cs (4)
19public static async Task<List<GitHubActionsJob>> ListJobsAsync(string repository, long runId, int? runAttempt, CancellationToken cancellationToken) 21List<GitHubActionsJob> jobs = []; 55public static async Task<List<GitHubActionsArtifact>> ListArtifactsAsync(string repository, long runId, CancellationToken cancellationToken) 57List<GitHubActionsArtifact> artifacts = [];
GitHubCli.cs (2)
50List<string> arguments = ["api", "-H", "Accept: application/vnd.github+json"]; 90List<string> arguments = ["issue", "create", "--repo", repository, "--title", title, "--body", body];
TrxReader.cs (4)
21var testResults = new List<TestResult>(); 63var testResults = new List<DetailedTestResult>(); 189public List<UnitTestResult>? UnitTestResults { get; set; } 303public List<UnitTestDefinition>? UnitTests { get; set; }
Aspire.TestUtilities (3)
src\Shared\X509Certificate2Extensions.cs (2)
139public static List<X509Certificate2> GetTrustedCertificates( 158var trustedCertificates = new List<X509Certificate2>();
TestLoggerFactory.cs (1)
12public List<ILoggerProvider> LoggerProviders { get; } = new();
Aspire.TypeSystem (3)
AtsConstants.cs (1)
508return genericDef == typeof(List<>) ||
AtsContext.cs (1)
132if (genericDef == typeof(List<>) || genericDef == typeof(IList<>))
AttributeDataReader.cs (1)
257var types = new List<Type>();
AzureAppService.ApiService (1)
Program.cs (1)
44var blobNames = new List<string>();
AzureContainerApps.ApiService (1)
Program.cs (1)
49var blobNames = new List<string>();
AzureFunctionsWithDts.Functions (1)
MyOrchestrationTrigger.cs (1)
13var outputs = new List<string>();
AzureSearch.ApiService (2)
Program.cs (2)
149var hotels = await JsonSerializer.DeserializeAsync<List<Hotel>>(openStream, cancellationToken: cancellationToken);
AzureStorageEndToEnd.ApiService (2)
Program.cs (2)
23var blobNames = new List<string>(); 41static async Task ReadBlobsAsync(BlobContainerClient containerClient, List<string> output)
AzureVirtualNetworkEndToEnd.ApiService (2)
Program.cs (2)
24var blobNames = new List<string>(); 70static async Task ReadBlobsAsync(BlobContainerClient containerClient, List<string> output)
BasketService (3)
Models\BasketItem.cs (1)
15var results = new List<ValidationResult>();
Models\CustomerBasket.cs (1)
7public List<BasketItem> Items { get; set; } = new();
Models\Order.cs (1)
8public List<BasketItem> Items { get; set; } = new();
BicepSample.ApiService (8)
Program.cs (8)
38var entries = await context.Entries.ToListAsync(); 57var entries = await context.Entries.ToListAsync(); 75var entries = new List<Entry>(); 106var entries = new List<Entry>(); 130var entries = new List<Entry>(); 157var entries = new List<Entry>(); 177var entries = new List<Entry>(); 196var entries = new List<Entry>();
blazor-gateway (2)
BlazorGatewayOptions.cs (2)
41public List<string> ExcludePaths { get; set; } = new() { "/health", "/alive", "/_otlp/" }; 42public List<string> ExcludeOutboundPaths { get; set; } = new() { "/v1/" };
BlazorHosted.ClientServiceDefaults (2)
BackgroundExportHandler.cs (2)
71public List<KeyValuePair<string, IEnumerable<string>>> Headers { get; init; } = null!; 90var headers = new List<KeyValuePair<string, IEnumerable<string>>>();
BlazorStandalone.ClientServiceDefaults (2)
BackgroundExportHandler.cs (2)
75public List<KeyValuePair<string, IEnumerable<string>>> Headers { get; init; } = null!; 94var headers = new List<KeyValuePair<string, IEnumerable<string>>>();
CatalogDb (9)
CatalogDbInitializer.cs (6)
38static List<CatalogBrand> GetPreconfiguredCatalogBrands() 49static List<CatalogType> GetPreconfiguredCatalogTypes() 59static List<CatalogItem> GetPreconfiguredItems(DbSet<CatalogBrand> catalogBrands, DbSet<CatalogType> catalogTypes) 86var brands = GetPreconfiguredCatalogBrands(); 96var types = GetPreconfiguredCatalogTypes(); 106var items = GetPreconfiguredItems(dbContext.CatalogBrands, dbContext.CatalogTypes);
Model.cs (3)
21public Task<List<CatalogItem>> GetCatalogItemsCompiledAsync(int? catalogBrandId, int? before, int? after, int pageSize) 97private static async Task<List<T>> ToListAsync<T>(IAsyncEnumerable<T> asyncEnumerable) 99var results = new List<T>();
CatalogModel (3)
Model.cs (3)
24public Task<List<CatalogItem>> GetCatalogItemsCompiledAsync(int? catalogBrandId, int? before, int? after, int pageSize) 100private static async Task<List<T>> ToListAsync<T>(IAsyncEnumerable<T> asyncEnumerable) 102var results = new List<T>();
CatalogService (1)
CatalogApi.cs (1)
15var itemsOnPage = await catalogContext.GetCatalogItemsCompiledAsync(catalogBrandId, before, after, pageSize);
cdac-build-tool (1)
DirectoryBaselines.cs (1)
25var baselineNames = new List<string>();
CdkSample.ApiService (9)
Program.cs (9)
69var entries = new List<Entry>(); 87static async Task<List<string>> TestBlobStorageAsync(BlobServiceClient bsc) 97var blobNames = new List<string>(); 116static async Task<List<Entry>> TestSqlServerAsync(SqlContext context) 124var entries = await context.Entries.ToListAsync(); 128static async Task<List<Entry>> TestNpgsqlAsync(NpgsqlContext context) 136var entries = await context.Entries.ToListAsync(); 140static async Task<List<Entry>> TestCosmosAsync(CosmosContext context) 148var entries = await context.Entries.ToListAsync();
Client.ClientBase.IntegrationTests (14)
ChannelBaseTests.4.0.0.cs (6)
60List<string> eventsCalled = new List<string>(4); 61List<string> proxyEventsCalled = new List<string>(4); 112List<string> eventsCalled = new List<string>(4); 113List<string> proxyEventsCalled = new List<string>(4); 167List<string> eventsCalled = new List<string>(4); 168List<string> proxyEventsCalled = new List<string>(4);
ClientBaseTestHelpers.cs (1)
31public static void RegisterForEvents(ICommunicationObject co, List<string> eventsCalled, bool deregister = false)
ClientBaseTests.4.0.0.cs (6)
536List<string> eventsCalled = new List<string>(4); 537List<string> proxyEventsCalled = new List<string>(4); 587List<string> eventsCalled = new List<string>(4); 588List<string> proxyEventsCalled = new List<string>(4); 640List<string> eventsCalled = new List<string>(4); 641List<string> proxyEventsCalled = new List<string>(4);
SessionTests.cs (1)
485private List<ICommunicationObject> _objectsToClose = new List<ICommunicationObject>();
ConfigurationSchemaGenerator (30)
ConfigSchemaEmitter.cs (2)
53var categories = spec.LogCategories; 703private static string[] CreateExclusionPaths(List<string>? exclusionPaths)
ConfigSchemaGenerator.cs (8)
58List<INamedTypeSymbol>? types = null; 59List<string>? configurationPaths = null; 60List<string>? exclusionPaths = null; 61List<string>? logCategories = null; 111internal sealed record ConfigSchemaAttributeInfo(List<INamedTypeSymbol>? Types, List<string>? ConfigurationPaths, List<string>? ExclusionPaths, List<string>? LogCategories);
ConfigurationBindingGenerator.ForSchemaGeneration.cs (1)
42var types = new List<TypeSpec>();
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (6)
24private readonly List<TypeParseInfo> _invocationTypeParseInfo = new(); 33public List<DiagnosticInfo>? Diagnostics { get; private set; } 688List<ParameterSpec>? ctorParams = null; 693List<string>? missingParameters = null; 694List<string>? invalidParameters = null; 736static string FormatParams(List<string> names) => string.Join(",", names);
RuntimeSource\Configuration.Binder\Parser\Extensions.cs (1)
112if (namedType.GetAllTypeArgumentsInScope() is List<ITypeSymbol> typeArgsInScope)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
109List = compilation.GetBestTypeByMetadataName(typeof(List<>));
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (5)
57private List<InvocationLocationInfo>? _interceptors_configBinder; 58private List<InvocationLocationInfo>? _interceptors_OptionsBuilderExt; 59private List<InvocationLocationInfo>? _interceptors_serviceCollectionExt; 109void RegisterInterceptor(ref List<InvocationLocationInfo>? infoList) 156private readonly List<InvocationLocationInfo> _infoList = new();
RuntimeSource\SourceGenerators\TypeModelHelper.cs (2)
13public static List<ITypeSymbol>? GetAllTypeArgumentsInScope(this INamedTypeSymbol type) 20List<ITypeSymbol>? args = null;
SchemaGenerationSpec.cs (4)
11public required List<TypeSpec> ConfigurationTypes { get; init; } 12public required List<string>? ConfigurationPaths { get; init; } 13public required List<string>? ExclusionPaths { get; init; } 14public required List<string>? LogCategories { get; init; }
Contract.Data.IntegrationTests (1)
DataContractTests.4.1.1.cs (1)
39var results = client.GetAllEmployees();
CosmosEndToEnd.ApiService (1)
Program.cs (1)
28var entries = new List<T>();
crossgen2 (13)
Program.cs (7)
33private List<ModuleDesc> _referenceableModules = new(); 357List<EcmaModule> inputModules = new List<EcmaModule>(); 358List<EcmaModule> rootingModules = new List<EcmaModule>(); 408List<string> mibcFiles = new List<string>(); 414List<ModuleDesc> versionBubbleModules = new List<ModuleDesc>(versionBubbleModulesHash); 448List<ICompilationRootProvider> compilationRoots = new List<ICompilationRootProvider>(); 810List<TypeDesc> genericArguments = new List<TypeDesc>();
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (5)
43public static List<string> BuildPathList(IReadOnlyList<Token> tokens) 45List<string> paths = new(); 177List<string> details = new List<string>(); 236List<string> rspFile = new List<string>(); 430var tokens = new List<string>();
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (1)
171List<string> instructionSetParams = new List<string>();
Crossgen2Tasks (14)
PrepareForReadyToRunCompilation.cs (14)
67private List<ITaskItem> _compileList = new(); 68private List<ITaskItem> _symbolsCompileList = new(); 69private List<ITaskItem> _r2rFiles = new(); 70private List<ITaskItem> _r2rReferences = new(); 71private List<ITaskItem> _r2rCompositeReferences = new(); 72private List<ITaskItem> _r2rCompositeInput = new(); 73private List<ITaskItem> _r2rCompositeUnrootedInput = new(); 128List<ITaskItem> imageCompilationList, 129List<ITaskItem> symbolsCompilationList, 130List<ITaskItem> r2rFilesPublishList, 131List<ITaskItem> r2rReferenceList, 132List<ITaskItem> r2rCompositeReferenceList, 133List<ITaskItem> r2rCompositeInputList, 134List<ITaskItem> r2rCompositeUnrootedInput,
csc (7)
src\roslyn\src\Compilers\Shared\BuildClient.cs (3)
128List<string>? parsedArgs; 208private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive) 220var buildRequestArguments = new List<string>(arguments);
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 541var list = new List<string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
72List<string> arguments,
CSharpSyntaxGenerator (62)
AbstractFileWriter.cs (1)
378protected List<Kind> GetKindsOfFieldOrNearestParent(TreeType nd, Field field)
Grammar\GrammarGenerator.cs (9)
22public static string Run(List<TreeType> types) 27if (type.Base != null && rules.TryGetValue(type.Base, out var productions)) 44var originalFirstFieldKinds = firstField.Kinds.ToList(); 47var originalLastFieldKinds = lastField.Kinds.ToList(); 76.Where(r => !rules.TryGetValue(r, out var productions) || productions.Count == 0).ToArray(); 83List<string> majorRules = [ 122private static void AddLexicalRules(Dictionary<string, List<Production>> rules) 151var keywords = JoinWords(GetMembers<SyntaxKind>().Where(k => SyntaxFacts.IsReservedKeyword(k)).Select(SyntaxFacts.GetText).Where(t => !modifierWords.Contains(t))); 299private static List<Production> JoinWords(IEnumerable<string> strings)
Model\AbstractNode.cs (1)
13public readonly List<Field> Fields = new List<Field>();
Model\Field.cs (3)
23public List<TreeTypeChild> Children; 35public List<TreeTypeChild> Children; 69public List<Kind> Kinds = new List<Kind>();
Model\Node.cs (2)
21public List<Kind> Kinds = new List<Kind>(); 23public readonly List<Field> Fields = new List<Field>();
Model\Tree.cs (1)
21public List<TreeType> Types;
Model\TreeType.cs (1)
38public List<TreeTypeChild> Children = new List<TreeTypeChild>();
SignatureWriter.cs (4)
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(); 104private void WriteKinds(List<Kind> kinds)
SourceWriter.cs (37)
149var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 187var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 188var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 226var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 227var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 352private void WriteGreenNodeConstructorArgs(List<Field> nodeFields, List<Field> valueFields) 365private void WriteCtorBody(Node node, List<Field> valueFields, List<Field> nodeFields) 439var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 507var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 515var nodeFields = node.Fields.Where(nd => IsNodeOrNodeList(nd.Type)).ToList(); 550var nodes = Tree.Types.Where(n => n is not PredefinedNode and not AbstractNode).ToList(); 567var nodes = Tree.Types.Where(n => n is not PredefinedNode and not AbstractNode).ToList(); 575private void WriteGreenFactories(List<TreeType> nodes, bool withSyntaxFactoryContext = false) 586var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 587var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 599var kinds = nd.Kinds.Distinct().ToList(); 634var kinds = field.Kinds.Distinct().ToList(); 741private void WriteCtorArgList(Node nd, bool withSyntaxFactoryContext, List<Field> valueFields, List<Field> nodeFields) 756var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 764private List<Field> GetNodeOrNodeListFields(TreeType node) 786var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 787var nodeFields = GetNodeOrNodeListFields(nd); 841var baseNodeFields = GetNodeOrNodeListFields(baseType); 901var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 902var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 1160var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 1265var fields = GetNodeOrNodeListFields(current); 1390var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 1437var nodes = Tree.Types.Where(n => n is not PredefinedNode and not AbstractNode).OfType<Node>().ToList(); 1524var valueFields = nd.Fields.Where(n => IsValueField(n)).ToList(); 1525var nodeFields = nd.Fields.Where(n => !IsValueField(n)).ToList(); 1541var kinds = nd.Kinds.Distinct().ToList(); 1557var fieldKinds = GetKindsOfFieldOrNearestParent(nd, field); 1560var kinds = fieldKinds.ToList();
TestWriter.cs (1)
390var fieldKinds = GetKindsOfFieldOrNearestParent(nd, field);
TreeFlattening.cs (2)
29List<TreeTypeChild> fieldsAndChoices, List<Field> fields, bool makeOptional)
DatabaseMigration.ApiService (1)
Program.cs (1)
40var entries = await context.Entries.ToListAsync();
dotnet (316)
_generated\112\WorkloadHistoryJsonSerializerContext.WorkloadHistoryState.g.cs (3)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<string>> 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryState).GetProperty("InstalledWorkloads", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<string>>(options, info2);
_generated\114\WorkloadHistoryJsonSerializerContext.ListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>? _ListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> ListString 22get => _ListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> Create_ListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<string>, string>(options, info); 47private void ListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<string>? value)
_generated\119\WorkloadHistoryJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
38if (type == typeof(global::System.Collections.Generic.List<string>))
_generated\153\SlnfJsonSerializerContext.SlnfSolution.g.cs (3)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<string>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SlnfFileHelper.SlnfSolution).GetProperty("Projects", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<string>>(options, info1);
_generated\154\SlnfJsonSerializerContext.ListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>? _ListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> ListString 22get => _ListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> Create_ListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<string>, string>(options, info); 47private void ListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<string>? value)
_generated\157\SlnfJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
30if (type == typeof(global::System.Collections.Generic.List<string>))
_generated\182\SdkVulnerabilityCacheJsonContext.SdkVulnerabilityCacheSummary.g.cs (3)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>> 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerabilityCacheSummary).GetProperty("Cves", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>>(options, info2);
_generated\183\SdkVulnerabilityCacheJsonContext.ListSdkCveCacheSummary.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>>? _ListSdkCveCacheSummary; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>> ListSdkCveCacheSummary 22get => _ListSdkCveCacheSummary ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>> Create_ListSdkCveCacheSummary(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>, global::Microsoft.DotNet.Cli.SdkCveCacheSummary>(options, info); 47private void ListSdkCveCacheSummarySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>? value)
_generated\188\SdkVulnerabilityCacheJsonContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>))
BuildServer\VBCSCompilerServer.cs (2)
33List<string> errors = null; 64static void execute(ICommand command, ref List<string> errors)
CliTransaction.cs (2)
84public List<Action> RollbackActions { get; set; } = []; 87public List<Action> CleanupActions { get; set; } = [];
CommandFactory\CommandResolution\MuxerCommandSpecMaker.cs (1)
12var arguments = new List<string>();
CommandFactory\CommandResolution\PackagedCommandSpecFactory.cs (1)
121var arguments = new List<string>();
CommandFactory\CommandResolution\ProjectDependenciesCommandResolver.cs (2)
137var toolLibraries = lockFile.Targets 160var allowedCommandExtensions = new List<string>();
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (4)
22private readonly List<string> _allowedCommandExtensions = [FileNameSuffixes.DotNet.DynamicLib]; 113var possiblePackageRoots = GetPossiblePackageRoots(project).ToList(); 119List<NuGetFramework> toolFrameworksToCheck = [project.DotnetCliToolTargetFramework]; 333List<string> args =
CommandFactory\CommandResolution\PublishPathCommandSpecFactory.cs (1)
50var arguments = new List<string>();
CommandFactory\CommandResolution\ToolPathCalculator.cs (1)
70var availableVersions = new List<NuGetVersion>();
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (3)
53var tasks = StartShutdown(); 83private List<(IBuildServer, Task)> StartShutdown() 85var tasks = new List<(IBuildServer, Task)>();
Commands\New\BuiltInTemplatePackageProvider.cs (2)
33var packages = new List<ITemplatePackage>(); 46var templateFoldersToInstall = new List<string>();
Commands\New\NewCommandParser.cs (1)
96var builtIns = new List<(Type InterfaceType, IIdentifiedComponent Instance)>();
Commands\New\OptionalWorkloadProvider.cs (1)
32var list = new List<TemplatePackage>();
Commands\New\PostActions\DotnetAddPostActionProcessor.cs (1)
108var foundFiles = targetFiles?
Commands\New\PostActions\DotnetSlnPostActionProcessor.cs (3)
28List<string> slnFiles = fileSystem.EnumerateFileSystemEntries(directory, "*.sln", SearchOption.TopDirectoryOnly) 36List<string> slnxFiles = fileSystem.EnumerateFileSystemEntries(directory, "*.slnx", SearchOption.TopDirectoryOnly) 53List<string> filesToAdd = [];
Commands\Pack\PackCommand.cs (2)
93var args = parseResult.GetValue(definition.SlnOrProjectOrFileArgument)?.ToList() ?? new List<string>(); 143var args = parseResult.GetValue(definition.SlnOrProjectOrFileArgument)?.ToList() ?? new List<string>();
Commands\Package\Add\PackageAddCommand.cs (1)
144List<string> args = [
Commands\Package\List\PackageListCommand.cs (3)
65List<string> args = ["-target:Restore", projectOrSolution]; 117var args = new List<string> 158var possibleProjectPath = Directory.GetFiles(resultPath, "*.*proj", SearchOption.TopDirectoryOnly)
Commands\Package\Remove\PackageRemoveCommand.cs (1)
60var args = new List<string>()
Commands\Package\Search\PackageSearchCommand.cs (1)
15var args = new List<string>
Commands\Project\Convert\ProjectConvertCommand.cs (1)
82var refIncludeItems = new List<IncludedItem>();
Commands\Reference\Add\ReferenceAddCommand.cs (5)
56List<MsbuildProject> refs = [.. arguments.Select((r) => MsbuildProject.FromFileOrDirectory(projects, r, interactive))]; 96var relativePathReferences = refs.Select((r) => 124var projectReferenceArguments = new List<string>(); 125var fileBasedAppReferenceArguments = new List<string>(); 138List<MsbuildProject> refs = [.. projectReferenceArguments.Select((r) => MsbuildProject.FromFileOrDirectory(projects, r, interactive))];
Commands\Reference\FileBasedAppReferenceEditor.cs (3)
120var referencePaths = GetProjectReferenceArgumentFullPathAlternatives(reference).ToList(); 121var matchingDirectives = _sourceEditor.Directives 139var matchingDirectives = _sourceEditor.Directives
Commands\Reference\List\ReferenceListCommand.cs (1)
70var references = new FileBasedAppReferenceEditor(_fileOrDirectory).GetReferencesForDisplay().ToList();
Commands\Restore\RestoringCommand.cs (4)
172private static readonly List<string> FlagsToExcludeFromSeparateRestore = [.. ComputeFlags(FlagsToExcludeFromRestore)]; 174private static readonly List<string> FlagsThatTriggerSilentSeparateRestore = [.. ComputeFlags(FlagsThatTriggerSilentRestore)]; 176private static readonly List<string> PropertiesToExcludeFromSeparateRestore = [.. PropertiesToExcludeFromRestore]; 187List<string> existingArgumentsToForward = [];
Commands\Run\RunCommand.cs (4)
662List<ILogger> loggersForBuild = []; 787var applicationArguments = parseResult.GetValue(definition.ApplicationArguments)?.ToList() ?? []; 791var msbuildProperties = parseResult.OptionValuesToBeForwarded(definition).ToList(); 968var tokensMinusProject = new List<string>();
Commands\Run\RunCommandSelector.cs (4)
361public bool TryComputeAvailableDevices(bool noRestore, out List<DeviceItem>? devices, out bool restoreWasPerformed) 444bool targetExists = TryComputeAvailableDevices(noRestore, out var devices, out restoreWasPerformed); 556private static DeviceItem? PromptForDevice(List<DeviceItem> devices) 558List<(string Display, DeviceItem Device)> choices = new(devices.Count);
Commands\Solution\Add\SolutionAddCommand.cs (4)
64List<string> fullProjectPaths = _projects.Select(project => 302var newProjects = ValidateAndGetNewProjects(projectPaths, parentSolution, parentSolutionPath, existingProjects); 309private List<string> ValidateAndGetNewProjects( 315var newProjects = new List<string>();
Commands\Test\MTP\ArtifactPostProcessingManager.cs (2)
16private readonly List<ArtifactPostProcessingArtifact> _artifacts = []; 398private readonly List<ArtifactPostProcessingArtifact> _outputs = [];
Commands\Test\MTP\ArtifactPostProcessingPlanner.cs (2)
47List<ArtifactPostProcessingGroup> groups = []; 74List<ArtifactPostProcessingJob> jobs = [];
Commands\Test\MTP\IPC\Serializers\CommandLineOptionMessagesSerializer.cs (3)
47List<CommandLineOptionMessage>? commandLineOptionMessages = null; 76private static List<CommandLineOptionMessage> ReadCommandLineOptionMessagesPayload(Stream stream) 78List<CommandLineOptionMessage> commandLineOptionMessages = [];
Commands\Test\MTP\IPC\Serializers\DiscoveredTestMessagesSerializer.cs (3)
87List<DiscoveredTestMessage>? discoveredTestMessages = null; 120private static List<DiscoveredTestMessage> ReadDiscoveredTestMessagesPayload(Stream stream) 122List<DiscoveredTestMessage> discoveredTestMessages = [];
Commands\Test\MTP\IPC\Serializers\FileArtifactMessagesSerializer.cs (3)
64List<FileArtifactMessage>? fileArtifactMessages = null; 97private static List<FileArtifactMessage> ReadFileArtifactMessagesPayload(Stream stream) 99List<FileArtifactMessage> fileArtifactMessages = [];
Commands\Test\MTP\IPC\Serializers\TestInProgressMessagesSerializer.cs (3)
44List<TestInProgressMessage>? inProgressMessages = null; 77private static List<TestInProgressMessage> ReadInProgressMessagesPayload(Stream stream) 79List<TestInProgressMessage> inProgressMessages = [];
Commands\Test\MTP\IPC\Serializers\TestResultMessagesSerializer.cs (7)
123List<SuccessfulTestResultMessage>? successfulTestResultMessages = null; 124List<FailedTestResultMessage>? failedTestResultMessages = null; 165private static List<SuccessfulTestResultMessage> ReadSuccessfulTestMessagesPayload(Stream stream) 167List<SuccessfulTestResultMessage> successfulTestResultMessages = []; 229private static List<FailedTestResultMessage> ReadFailedTestMessagesPayload(Stream stream) 231List<FailedTestResultMessage> failedTestResultMessages = []; 308var exceptionMessages = new List<ExceptionMessage>();
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (19)
15private readonly ConcurrentDictionary<bool, List<(string, string[])>> _moduleNamesToCommandLineOptions = []; 34Dictionary<bool, List<(string[], string[])>> moduleToMissingOptions = GetModulesToMissingOptions(_moduleNamesToCommandLineOptions, builtInOptions.Select(option => option.Name!), nonBuiltInOptions.Select(option => option.Name!)); 58var parentCommands = new List<Command>(); 97List<string> builtInOptions = []; 98List<string> nonBuiltInOptions = []; 128private (List<CommandLineOptionMessage> BuiltInOptions, List<CommandLineOptionMessage> NonBuiltInOptions) GetAllOptions(IList<Option> commandOptions) 130List<CommandLineOptionMessage> builtInOptions = []; 131List<CommandLineOptionMessage> nonBuiltInOptions = []; 159private static Dictionary<bool, List<(string[], string[])>> GetModulesToMissingOptions( 160ConcurrentDictionary<bool, List<(string, string[])>> moduleNamesToCommandLineOptions, 164var modulesWithMissingOptions = new Dictionary<bool, List<(string[], string[])>>(); 169var groupedModules = new List<(string[], string[])>(); 170var missingOptionsToModules = new Dictionary<string, List<string>>(); 183if (!missingOptionsToModules.TryGetValue(missingKey, out var modules)) 209Dictionary<bool, List<(string[], string[])>> moduleToMissingOptions) 228List<TwoColumnHelpRow> optionRows = []; 245private static void WriteModulesToMissingOptionsToConsole(Dictionary<bool, List<(string[], string[])>> modulesWithMissingOptions) 247foreach (KeyValuePair<bool, List<(string[], string[])>> groupedModules in modulesWithMissingOptions)
Commands\Test\MTP\Models.cs (2)
22public ParallelizableTestModuleGroupWithSequentialInnerModules(List<TestModule> modules) 33public List<TestModule>? Modules { get; }
Commands\Test\MTP\MSBuildUtility.cs (4)
133var allGroups = new List<ParallelizableTestModuleGroupWithSequentialInnerModules>(); 191var allModules = new List<TestModule>(); 367List<string> msbuildArgs = [.. buildOptions.MSBuildArgs, filePath]; 426var nonDeviceProjects = new List<(string ProjectFilePath, string? Configuration, string? Platform)>();
Commands\Test\MTP\SolutionAndProjectUtility.cs (2)
263var projects = new List<ParallelizableTestModuleGroupWithSequentialInnerModules>(); 338List<TestModule>? innerModules = null;
Commands\Test\MTP\Terminal\AnsiTerminalTestProgressFrame.cs (4)
19public List<RenderedProgressItem>? RenderedLines { get; set; } 228List<object> progresses = GenerateLinesToRender(progress); 337private List<object> GenerateLinesToRender(TestProgressState?[] progress) 339var linesToRender = new List<object>(progress.Length);
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (8)
41private readonly List<TestRunArtifact> _artifacts = []; 59private readonly List<HandshakeFailureRecord> _handshakeFailures = new(); 266List<TestProgressState> assemblies = [.. _assemblies.Values.OrderBy(static a => a.Id)]; 500private void AppendFlakyTests(ITerminal terminal, List<TestProgressState> assemblies) 574private void AppendSlowestTests(ITerminal terminal, List<TestProgressState> assemblies) 1373var assemblies = _assemblies.Select(asm => asm.Value).OrderBy(a => a.Assembly).Where(a => a is not null).ToList(); 1380List<DiscoveredTestInfo> discoveredTestNames = assembly.DiscoveredTestNames; 1435var assemblies = _assemblies.Select(asm => asm.Value).Where(a => a is not null).OrderBy(a => a.Assembly).ToList();
Commands\Test\MTP\Terminal\TestNodeResultsState.cs (1)
53var sortedDetails = _testNodeProgressStates
Commands\Test\MTP\Terminal\TestProgressState.cs (3)
38private readonly List<DiscoveredTestInfo> _discoveredTestNames = []; 198public List<DiscoveredTestInfo> DiscoveredTestNames 381List<(string DisplayName, int Attempts)> flaky = [];
Commands\Test\MTP\TestApplication.cs (3)
65private readonly List<NamedPipeServer> _testAppPipeConnections = []; 67private readonly List<TaskCompletionSource<IResponse>> _pendingControlRequests = []; 821List<(Version Version, string Text)> sdkSupportedVersions = [];
Commands\Test\MTP\TestModulesFilterHandler.cs (6)
18private readonly List<string> _testModulePaths; 20private List<ParallelizableTestModuleGroupWithSequentialInnerModules> _testApplications = []; 77private List<ParallelizableTestModuleGroupWithSequentialInnerModules> BuildTestApplications() 80var testApplications = new List<ParallelizableTestModuleGroupWithSequentialInnerModules>(_testModulePaths.Count); 110internal static List<string> GetMatchedModulePaths(string testModules, string? rootDirectory) 148if (results is List<string> resultsList)
Commands\Test\MTP\TestResultsDirectoryResolver.cs (3)
54List<TestModule> materializedModules = [.. modules]; 55List<TestModule> perModuleLayoutModules = 168private static string GetCommonRootDirectory(List<TestModule> modules, string workingDirectory)
Commands\Test\VSTest\TestCommand.cs (4)
155List<string> convertedArgs = new VSTestArgumentConverter().Convert(args, out List<string> ignoredArgs); 214List<string> msbuildArgs = [.. additionalBuildProperties, .. parsedArgs]; 296var artifactsPostProcessArgs = new List<string> { "--artifactsProcessingMode-postprocess", $"--testSessionCorrelationId:{testSessionCorrelationId}" };
Commands\Test\VSTest\VSTestArgumentConverter.cs (5)
91public List<string> Convert(string[] args, out List<string> ignoredArgs) 93var newArgList = new List<string>(); 279private static void UpdateVerbosity(string verbosity, List<string> newArgList) 421internal void AddCombinedBlameArgs(List<string> newArgList)
Commands\Tool\Install\ProjectRestorer.cs (1)
25List<string> argsToPassToRestore = [project.Value];
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
321var message = new List<string> 343var message = new List<string>
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (1)
51var packages = _createToolPackageStore(toolPath).EnumeratePackages()
Commands\Tool\Store\StoreCommand.cs (1)
31List<string> msbuildArgs = ["--target:ComposeStore"];
Commands\Tool\Update\ToolUpdateCommand.cs (2)
64List<string> options = []; 94List<string> options = [];
Commands\VSTest\VSTestCommand.cs (1)
23var args = new List<string>();
Commands\Workload\History\WorkloadHistoryCommand.cs (1)
45var displayRecords = WorkloadHistoryDisplay.ProcessWorkloadHistoryRecords(_workloadInstaller.GetWorkloadHistoryRecords(_sdkFeatureBand.ToString()), out bool unknownRecordsPresent);
Commands\Workload\Install\FileBasedInstaller.cs (20)
151List<PackInfo> packsToInstall = []; 192var tempDirsToDelete = new List<string>(); 420Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> workloadSetInstallRecords = GetAllWorkloadSetInstallRecords(); 426List<SdkFeatureBand> referencingFeatureBands; 432List<SdkFeatureBand> featureBandsToRemove = []; 468Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> manifestInstallRecords = GetAllManifestInstallRecords(); 471var referencingFeatureBands = manifestInstallRecords[(manifestId, manifestVersion, manifestFeatureBand)]; 472List<SdkFeatureBand> featureBandsToRemove = []; 505Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> packInstallRecords = GetAllPackInstallRecords(); 508var referencingFeatureBands = packInstallRecords[(packId, packVersion)]; 509List<SdkFeatureBand> featureBandsToRemove = []; 713private Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> GetAllWorkloadSetInstallRecords() 715Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> records = []; 733if (!records.TryGetValue((workloadSetVersion, workloadSetFeatureBand), out var referencingFeatureBands)) 764private Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> GetAllManifestInstallRecords() 766Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> records = []; 788if (!records.TryGetValue((manifestId, manifestVersion, manifestFeatureBand), out var referencingFeatureBands)) 806private Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> GetAllPackInstallRecords() 808Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> records = []; 827if (!records.TryGetValue((packId, packVersion), out var referencingFeatureBands))
Commands\Workload\Install\WorkloadGarbageCollector.cs (1)
131List<(IWorkloadResolver, string workloadSet, GCAction gcAction)> resolvers = [(GetResolver(), "<none>", GCAction.Keep)];
Commands\Workload\Install\WorkloadInstallCommand.cs (5)
90var validWorkloadIds = new List<string>(); 141var workloadsToDownload = existingWorkloads.Union(filteredWorkloadIds.Select(id => new WorkloadId(id))).ToList(); 157var workloadsToDownload = existingWorkloads.Union(filteredWorkloadIds.Select(id => new WorkloadId(id))).ToList(); 329var downloads = await GetDownloads(workloadIds, skipManifestUpdate, includePreview, reporter: reporter, packageDownloader: packageDownloader); 331var urls = new List<string>();
Commands\Workload\Install\WorkloadInstallRecords\WindowsWorkloadInstallationRecordReader.cs (1)
23List<SdkFeatureBand> featureBands = [];
Commands\Workload\Install\WorkloadManifestUpdater.Managed.cs (1)
119var downloads = new List<WorkloadDownload>();
Commands\Workload\InstallingWorkloadCommand.cs (4)
62var workloadHistoryRecords = _workloadInstaller.GetWorkloadHistoryRecords(_sdkFeatureBand.ToString()).OrderBy(r => r.TimeStarted).ToList(); 68var displayRecords = WorkloadHistoryDisplay.ProcessWorkloadHistoryRecords(workloadHistoryRecords, out _); 371protected async Task<List<WorkloadDownload>> GetDownloads(IEnumerable<WorkloadId> workloadIds, bool skipManifestUpdate, bool includePreview, string downloadFolder = null, 377List<WorkloadDownload> ret = [];
Commands\Workload\Restore\WorkloadRestoreCommand.cs (6)
54List<WorkloadId> allWorkloadId = RunTargetToGetWorkloadIds(allProjects); 71private List<WorkloadId> RunTargetToGetWorkloadIds(IEnumerable<string> allProjects) 80var allWorkloadId = new List<WorkloadId>(); 114internal static List<string> DiscoverAllProjects(string currentDirectory, 117var slnFiles = new List<string>(); 118var projectFiles = new List<string>();
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (4)
88List<string> versions; 156private List<string> GetVersions(int numberOfWorkloadSetsToTake) 161private static List<string> GetVersions(int numberOfWorkloadSetsToTake, SdkFeatureBand featureBand, IInstaller installer, bool includePreviews, INuGetPackageDownloader packageDownloader, IWorkloadResolver resolver) 179List<string> versions;
Commands\Workload\Update\WorkloadUpdateCommand.cs (4)
192var workloadsToInstall = desiredWorkloads.Except(installedWorkloads).ToList(); 193var workloadsToUninstall = installedWorkloads.Except(desiredWorkloads).ToList(); 214var downloads = await GetDownloads(GetUpdatableWorkloads(reporter), skipManifestUpdate: false, includePreview, reporter: reporter, packageDownloader: packageDownloader); 216var urls = new List<string>();
Commands\Workload\WorkloadHistoryDisplay.cs (3)
15public List<string> Workloads { get; set; } 21public static List<DisplayRecord> ProcessWorkloadHistoryRecords(IEnumerable<WorkloadHistoryRecord> historyRecords, out bool unknownRecordsPresent) 23List<DisplayRecord> displayRecords = [];
Commands\Workload\WorkloadHistoryRecord.cs (1)
36public List<string> InstalledWorkloads { get; set; }
Extensions\ParseResultExtensions.cs (4)
69List<string> otherTokens = new(parseResult.Tokens.Count - 1); 116var subargs = args.ToList(); 121var runArgs = dashDashIndex > -1 ? subargs.GetRange(dashDashIndex, subargs.Count() - dashDashIndex) : []; 246List<string> parentNames = [parseResult.CommandResult.Command.Name];
LoggerUtility.cs (4)
15List<BinaryLogger> binaryLoggers = []; 60public static FacadeLogger CreateFacadeLogger(List<BinaryLogger> binaryLoggers) 199private readonly List<BinaryLogger> innerLoggers; 201public PersistentDispatcher(List<BinaryLogger> innerLoggers)
MsbuildProject.cs (2)
39private List<NuGetFramework> _cachedTfms = null; 275List<string> ret = [reference];
MSBuildSession.cs (2)
264private List<ILogger> CreateLoggers() 266var loggers = new List<ILogger>(capacity: 2);
NugetPackageDownloader\NuGetPackageDownloader.cs (5)
495private List<PackageSource> LoadDefaultSources(PackageId packageId, PackageSourceLocation packageSourceLocation = null, PackageSourceMapping packageSourceMapping = null) 497List<PackageSource> defaultSources = []; 586var sourceList = sources.ToList(); 673var availableVersions = accumulativeSearchResults.Select(t => t.package.Identity.Version).ToList(); 838List<Task<(PackageSource source, IEnumerable<IPackageSearchMetadata> foundPackages)>> tasks = [.. sources
NugetPackageDownloader\WorkloadUnixFilePermissionsFileList.cs (1)
29var files = new List<FileListFile>();
NugetSearch\NugetSearchApiResultDeserializer.cs (1)
26var resultPackages = new List<SearchResultPackage>();
Parser.cs (1)
423List<TwoColumnHelpRow> options = [];
PrintableTable.cs (1)
14private readonly List<Column> _columns = [];
ReleasePropertyProjectLocator.cs (1)
159List<ProjectInstance> configuredProjects = [];
SdkVulnerability\SdkVulnerabilityChecker.cs (3)
46List<ProductRelease> releaseList = releases.ToList(); 79var cves = new List<SdkCveInfo>(); 126List<ProductRelease> releases)
SlnfFileHelper.cs (1)
54public List<string> Projects { get; set; } = new();
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26424.106\contentFiles\cs\net11.0\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 541var list = new List<string>(count);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26424.106\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
72List<string> arguments,
src\sdk\src\Common\SdkVulnerabilityCacheReader.cs (1)
74public List<SdkCveCacheSummary>? Cves { get; set; }
src\sdk\src\Common\WorkloadFileBasedInstall.cs (1)
55List<WorkloadHistoryRecord> historyRecords = [];
Telemetry\AllowListToSendFirstAppliedOptions.cs (2)
17public List<TelemetryEntryFormat> AllowList(ParseResult parseResult) 20var result = new List<TelemetryEntryFormat>();
Telemetry\AllowListToSendFirstArgument.cs (2)
14public List<TelemetryEntryFormat> AllowList(ParseResult parseResult) 16var result = new List<TelemetryEntryFormat>();
Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (2)
15public List<TelemetryEntryFormat> AllowList(ParseResult parseResult) 17var result = new List<TelemetryEntryFormat>();
Telemetry\IParseResultLogRule.cs (1)
13List<TelemetryEntryFormat> AllowList(ParseResult parseResult);
Telemetry\MacAddressGetter.cs (1)
29private static List<string> GetMacAddressesByNetworkInterface()
Telemetry\TelemetryClient.cs (1)
29private static readonly List<Activity> s_activities = [];
Telemetry\TelemetryFilter.cs (1)
112private static List<IParseResultLogRule> ParseResultLogRules =>
Telemetry\TopLevelCommandNameAndOptionToLog.cs (2)
17public List<TelemetryEntryFormat> AllowList(ParseResult parseResult) 20var result = new List<TelemetryEntryFormat>();
ToolManifest\ToolManifestEditor.cs (12)
38List<ToolManifestPackage> toolManifestPackages = 88List<ToolManifestPackage> toolManifestPackages = 112public (List<ToolManifestPackage> content, bool isRoot) 124List<ToolManifestPackage> toolManifestPackages = 176var commands = new List<string>(); 223private static List<ToolManifestPackage> GetToolManifestPackageFromOneManifestFile( 228List<ToolManifestPackage> result = []; 229var errors = new List<string>(); 254var packageLevelErrors = new List<string>(); 310List<string> errors) 358public List<SerializableLocalToolSinglePackage> Tools { get; set; } 408List<ToolManifestPackage> toolManifestPackages =
ToolManifest\ToolManifestFinder.cs (8)
40TryFindToolManifestPackages(allPossibleManifests, out var toolManifestPackageAndSource); 56if (!TryFindToolManifestPackages(allPossibleManifests, out var toolManifestPackageAndSource)) 66out List<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> toolManifestPackageAndSource) 79(List<ToolManifestPackage> toolManifestPackageFromOneManifestFile, bool isRoot) = 111(List<ToolManifestPackage> manifestPackages, bool isRoot) = 142(List<ToolManifestPackage> manifestPackages, bool isRoot) = 264var result = new List<FilePath>(); 282(List<ToolManifestPackage> content, bool isRoot) = _toolManifestEditor.Read(possibleManifest, correspondingDirectory);
ToolPackage\ToolConfigurationDeserializer.cs (3)
74List<string> warnings = GenerateWarningAccordingToVersionAttribute(dotNetCliTool); 112private static List<string> GenerateWarningAccordingToVersionAttribute(DotNetCliTool dotNetCliTool) 114List<string> warnings = [];
ToolPackage\ToolPackageDownloader.cs (1)
171var managedCriteria = new List<SelectionCriteria>(1);
ToolPackage\ToolPackageInstance.cs (1)
186var availableFrameworks = fileSystem.Directory.EnumerateDirectories(toolsPackagePath)
dotnet-aot (73)
_generated\71\SlnfJsonSerializerContext.SlnfSolution.g.cs (3)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<string>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SlnfFileHelper.SlnfSolution).GetProperty("Projects", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<string>>(options, info1);
_generated\72\SlnfJsonSerializerContext.ListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>? _ListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> ListString 22get => _ListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> Create_ListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<string>, string>(options, info); 47private void ListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<string>? value)
_generated\75\SlnfJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
30if (type == typeof(global::System.Collections.Generic.List<string>))
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\MuxerCommandSpecMaker.cs (1)
12var arguments = new List<string>();
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\PublishPathCommandSpecFactory.cs (1)
50var arguments = new List<string>();
src\sdk\src\Cli\dotnet\Commands\Run\AotRunCommand.cs (1)
226var messages = new List<(string Message, bool IsError)>();
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\WindowsWorkloadInstallationRecordReader.cs (1)
23List<SdkFeatureBand> featureBands = [];
src\sdk\src\Cli\dotnet\Extensions\ParseResultExtensions.cs (4)
69List<string> otherTokens = new(parseResult.Tokens.Count - 1); 116var subargs = args.ToList(); 121var runArgs = dashDashIndex > -1 ? subargs.GetRange(dashDashIndex, subargs.Count() - dashDashIndex) : []; 246List<string> parentNames = [parseResult.CommandResult.Command.Name];
src\sdk\src\Cli\dotnet\LoggerUtility.cs (4)
15List<BinaryLogger> binaryLoggers = []; 60public static FacadeLogger CreateFacadeLogger(List<BinaryLogger> binaryLoggers) 199private readonly List<BinaryLogger> innerLoggers; 201public PersistentDispatcher(List<BinaryLogger> innerLoggers)
src\sdk\src\Cli\dotnet\MsbuildProject.cs (2)
39private List<NuGetFramework> _cachedTfms = null; 275List<string> ret = [reference];
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (5)
495private List<PackageSource> LoadDefaultSources(PackageId packageId, PackageSourceLocation packageSourceLocation = null, PackageSourceMapping packageSourceMapping = null) 497List<PackageSource> defaultSources = []; 586var sourceList = sources.ToList(); 673var availableVersions = accumulativeSearchResults.Select(t => t.package.Identity.Version).ToList(); 838List<Task<(PackageSource source, IEnumerable<IPackageSearchMetadata> foundPackages)>> tasks = [.. sources
src\sdk\src\Cli\dotnet\NugetPackageDownloader\WorkloadUnixFilePermissionsFileList.cs (1)
29var files = new List<FileListFile>();
src\sdk\src\Cli\dotnet\NugetSearch\NugetSearchApiResultDeserializer.cs (1)
26var resultPackages = new List<SearchResultPackage>();
src\sdk\src\Cli\dotnet\Parser.cs (1)
423List<TwoColumnHelpRow> options = [];
src\sdk\src\Cli\dotnet\PrintableTable.cs (1)
14private readonly List<Column> _columns = [];
src\sdk\src\Cli\dotnet\SdkVulnerability\SdkVulnerabilityChecker.cs (3)
46List<ProductRelease> releaseList = releases.ToList(); 79var cves = new List<SdkCveInfo>(); 126List<ProductRelease> releases)
src\sdk\src\Cli\dotnet\SlnfFileHelper.cs (1)
54public List<string> Projects { get; set; } = new();
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendFirstAppliedOptions.cs (2)
17public List<TelemetryEntryFormat> AllowList(ParseResult parseResult) 20var result = new List<TelemetryEntryFormat>();
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendFirstArgument.cs (2)
14public List<TelemetryEntryFormat> AllowList(ParseResult parseResult) 16var result = new List<TelemetryEntryFormat>();
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (2)
15public List<TelemetryEntryFormat> AllowList(ParseResult parseResult) 17var result = new List<TelemetryEntryFormat>();
src\sdk\src\Cli\dotnet\Telemetry\IParseResultLogRule.cs (1)
13List<TelemetryEntryFormat> AllowList(ParseResult parseResult);
src\sdk\src\Cli\dotnet\Telemetry\MacAddressGetter.cs (1)
29private static List<string> GetMacAddressesByNetworkInterface()
src\sdk\src\Cli\dotnet\Telemetry\TelemetryClient.cs (1)
29private static readonly List<Activity> s_activities = [];
src\sdk\src\Cli\dotnet\Telemetry\TelemetryFilter.cs (1)
112private static List<IParseResultLogRule> ParseResultLogRules =>
src\sdk\src\Cli\dotnet\Telemetry\TopLevelCommandNameAndOptionToLog.cs (2)
17public List<TelemetryEntryFormat> AllowList(ParseResult parseResult) 20var result = new List<TelemetryEntryFormat>();
src\sdk\src\Cli\dotnet\ToolManifest\ToolManifestEditor.cs (12)
38List<ToolManifestPackage> toolManifestPackages = 88List<ToolManifestPackage> toolManifestPackages = 112public (List<ToolManifestPackage> content, bool isRoot) 124List<ToolManifestPackage> toolManifestPackages = 176var commands = new List<string>(); 223private static List<ToolManifestPackage> GetToolManifestPackageFromOneManifestFile( 228List<ToolManifestPackage> result = []; 229var errors = new List<string>(); 254var packageLevelErrors = new List<string>(); 310List<string> errors) 358public List<SerializableLocalToolSinglePackage> Tools { get; set; } 408List<ToolManifestPackage> toolManifestPackages =
src\sdk\src\Cli\dotnet\ToolManifest\ToolManifestFinder.cs (8)
40TryFindToolManifestPackages(allPossibleManifests, out var toolManifestPackageAndSource); 56if (!TryFindToolManifestPackages(allPossibleManifests, out var toolManifestPackageAndSource)) 66out List<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> toolManifestPackageAndSource) 79(List<ToolManifestPackage> toolManifestPackageFromOneManifestFile, bool isRoot) = 111(List<ToolManifestPackage> manifestPackages, bool isRoot) = 142(List<ToolManifestPackage> manifestPackages, bool isRoot) = 264var result = new List<FilePath>(); 282(List<ToolManifestPackage> content, bool isRoot) = _toolManifestEditor.Read(possibleManifest, correspondingDirectory);
dotnet-dev-certs (64)
_generated\1\DevCertsJsonSerializerContext.CertificateReport.g.cs (4)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<string>> 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport).GetProperty("X509SubjectAlternativeNameExtension", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<string>>(options, info2); 267private static extern void __set_CertificateReport_X509SubjectAlternativeNameExtension(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport obj, global::System.Collections.Generic.List<string> value);
_generated\2\DevCertsJsonSerializerContext.ListCertificateReport.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>>? _ListCertificateReport; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>> ListCertificateReport 22get => _ListCertificateReport ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>> Create_ListCertificateReport(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>, global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>(options, info); 47private void ListCertificateReportSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>? value)
_generated\3\DevCertsJsonSerializerContext.ListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>? _ListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> ListString 22get => _ListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> Create_ListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<string>, string>(options, info); 47private void ListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<string>? value)
_generated\8\DevCertsJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
30if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport>)) 34if (type == typeof(global::System.Collections.Generic.List<string>))
Program.cs (8)
55var newArgs = new List<string>(args); 307var validCertificates = new List<X509Certificate2>(); 332var trustedCertificates = certificates.Where(cert => certificateManager.GetTrustLevel(cert) == CertificateManager.TrustLevel.Full).ToList(); 369var certReports = availableCertificates.Select(CertificateReport.FromX509Certificate2).ToList(); 500public List<string> X509SubjectAlternativeNameExtension { get; init; } 535static List<string> GetSanExtension(X509Certificate2 cert) 537var dnsNames = new List<string>(); 554[JsonSerializable(typeof(List<CertificateReport>))]
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (9)
140var certificates = new List<X509Certificate2>(); 248protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 292var currentUserCertificates = allCurrentUserCertificates.Where(c => c.Subject == Subject).ToList(); 293var localMachineCertificates = allLocalMachineCertificates.Where(c => c.Subject == Subject).ToList(); 294var filteredCertificates = currentUserCertificates.Concat(localMachineCertificates).ToList(); 318var certificates = filteredCertificates; 805var extensions = new List<X509Extension>(); 1034var list = certificates.ToList(); 1076var certificatesToDispose = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
295var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 374protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 380var certsFromStore = new List<X509Certificate2>(); 426var certsFromDisk = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
137var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 304var nssDbs = GetNssDbs(homeDirectory); 505var nssDbs = GetNssDbs(homeDirectory); 843var nssDbs = new List<string>(); 861private static List<NssDb> GetNssDbs(string homeDirectory) 863var nssDbs = new List<NssDb>(); 1018var certs = new List<FileInfo>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 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\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
dotnet-format (15)
Analyzers\AnalyzerFormatter.cs (3)
61List<FormattedFile> formattedFiles, 151List<FormattedFile> formattedFiles, 174static void LogDiagnosticLocations(Solution solution, IEnumerable<Diagnostic> diagnostics, bool saveFormattedFiles, bool changesAreErrors, ILogger logger, LogLevel logLevel, List<FormattedFile> formattedFiles)
Analyzers\CodeAnalysisResult.cs (2)
10private readonly Dictionary<Project, List<Diagnostic>> _dictionary = new(); 43public IReadOnlyDictionary<Project, List<Diagnostic>> Diagnostics
Analyzers\SolutionCodeFixApplier.cs (1)
97private readonly IReadOnlyDictionary<Project, List<Diagnostic>> _diagnosticsByProject;
CodeFormatter.cs (2)
75var formattedFiles = new List<FormattedFile>(fileCount); 148List<FormattedFile> formattedFiles,
Formatters\DocumentFormatter.cs (2)
38List<FormattedFile> formattedFiles, 126List<FormattedFile> formattedFiles,
Formatters\EndOfLineFormatter.cs (1)
36var changes = new List<TextChange>();
Formatters\ICodeFormatter.cs (1)
25List<FormattedFile> formattedFiles,
Utilities\ProcessRunner.cs (2)
75var errorLines = new List<string>(); 76var outputLines = new List<string>();
Workspaces\MSBuildWorkspaceFinder.cs (1)
102var files = fileSelector(searchBase).ToList();
dotnet-getdocument (11)
Commands\InvokeCommand.cs (1)
54var args = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 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\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
dotnet-Microsoft.XmlSerializer.Generator (10)
Sgen.cs (10)
32var types = new List<string>(); 35var errs = new List<string>(); 223private static void GenerateFile(List<string> typeNames, string defaultNamespace, string assemblyName, bool proxyOnly, bool silent, bool verbose, bool force, string outputDirectory, bool parsableerrors) 236List<Type> loadedTypes = new List<Type>(); 264var mappings = new List<XmlMapping>(); 265var importedTypes = new List<Type>(); 445private static void ImportType(Type type, string defaultNamespace, List<XmlMapping> mappings, List<Type> importedTypes, bool verbose, XmlReflectionImporter importer, bool parsableerrors) 574var referencelist = new List<string>(); 667var parsedArgs = new List<string>();
dotnet-openapi (10)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 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\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
dotnet-razorpagegenerator (1)
Program.cs (1)
94var results = new List<RazorPageGeneratorResult>();
dotnet-sourcelink (5)
dotnet-sql-cache (10)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 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\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
dotnet-suggest (1)
FileSuggestionRegistration.cs (1)
73var allRegistration = new List<Registration>();
dotnet-svcutil (1)
GlobalTool.cs (1)
18var arguments = new List<string>(args);
dotnet-svcutil-lib (294)
CmdCredentialsProvider.cs (1)
149var candidateCerts = new List<X509Certificate2>();
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
21private List<string> _addedToCodeCompileUnit = new List<string>(); 22private List<string> _needToAdd = new List<string>();
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (3)
18private List<CodeTypeDeclaration> _eventArgsList = new List<CodeTypeDeclaration>(); 212private static Dictionary<string, string> GenerateEventAsyncMethods(CodeTypeNameScope nameScope, CodeTypeDeclaration parent, CodeTypeDeclaration callbackInterface, List<CodeTypeDeclaration> eventArgsList) 215List<CodeMemberEvent> receivedEvents = new List<CodeMemberEvent>();
CodeDomFixup\CodeDomVisitors\EnsureAdditionalAssemblyReference.cs (1)
16private List<string> _alreadyAdded = new List<string>();
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
110List<string> namespaceToAdd = new List<string>();
CodeDomFixup\CodeDomVisitors\TypeNameFixer.cs (1)
14private readonly List<string> _reservedKeyword = new List<string>() { "file", "required", "scoped" };
CodeDomFixup\ConfigToCode.cs (5)
32List<string> endpointNames = new List<string>(); 68private static void AddConfigEndpoint(CodeConstructor ctor, List<string> endpointNames) 99private void FixupConstructors(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, CodeNamespace namespaceDecl, List<string> endpointNames) 178private static void FixupConstructorsNonDuplex(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, List<string> endpointNames) 304private void FixupConstructorsDuplex(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, CodeNamespace namespaceDecl, List<string> endpointNames)
CodeDomFixup\EndpointSelector.cs (1)
18private static List<string> s_bindingValidationErrors = new List<string>();
CodeDomFixup\MethodCreationHelper.cs (3)
66public void AddConfigurationEnum(List<string> endpointNames) 78public void AddMethods(List<string> endpointNames, bool isVB) 2170private void CreateDefaultEndpointMethods(string clientTypeName, List<string> endpointNames)
CodeDomFixup\VisitorFixup.cs (2)
58List<CodeDomVisitor> list = new List<CodeDomVisitor>(visitors); 70List<CodeDomVisitor> list = new List<CodeDomVisitor>(visitors);
CommandLineParser.cs (1)
27private static List<CommandSwitch> s_allSwitches = new List<CommandSwitch>();
CommandProcessorOptions.cs (7)
42public List<Type> ReferencedTypes { get; private set; } 43public List<Assembly> ReferencedAssemblies { get; private set; } 44public List<Type> ReferencedCollectionTypes { get; private set; } 62private static readonly List<string> s_cmdLineOverwriteSwitches = new List<string> { Switches.NoLogo.Name, Switches.Verbosity.Name, Switches.ToolContext.Name, Switches.ProjectFile.Name, Switches.AcceptCertificate.Name, Switches.ServiceContract.Name, Switches.Language.Name }; 153var options = cmdOptions.GetOptions().ToList(); 253var userOptions = this.GetOptions().ToList(); 912List<Type> coreTypes = new List<Type>
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
3957List<String> lines = new List<String>();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEventCache.cs (1)
20private List<XmlEvent[]> _pages; // All event pages
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriterSettings.cs (2)
69private List<XmlQualifiedName> _cdataSections = new List<XmlQualifiedName>(); 326internal List<XmlQualifiedName> CDataSectionElements
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXmlWriter.cs (1)
66private List<XmlNode> _fragment; // top level node cache
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (1)
1830List<XmlElement> elements = new List<XmlElement>();
FrameworkFork\Microsoft.Xml\Xml\Dom\XPathNodeList.cs (1)
16private List<XmlNode> _list;
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (4)
1954List<RangePositionInfo> runningPositions = context.RunningPositions; 1979List<RangePositionInfo> runningPositions = context.RunningPositions; 2180List<RangePositionInfo> runningPositions = context.RunningPositions; 2225List<RangePositionInfo> runningPositions = context.RunningPositions;
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (5)
383List<Type> uniqueTypes = new List<Type>(); 878private List<ConversionRule> _rules; 903List<Type> types = new List<Type>(); 916List<Type> types = new List<Type>(); 929List<ConversionRule> subset = new List<ConversionRule>();
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (1)
753List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
535List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaDeclBase.cs (2)
39protected List<string> values; // array of values for enumerated and notation types 110internal List<string> Values
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (1)
15private List<IDtdDefaultAttributeInfo> _defaultAttdefs;
FrameworkFork\Microsoft.Xml\Xml\schema\validationstate.cs (1)
49public List<RangePositionInfo> RunningPositions;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (8)
19private List<XmlSchemaObjectEntry> _entries = new List<XmlSchemaObjectEntry>(); 185private List<XmlSchemaObjectEntry> _entries; 188internal NamesCollection(List<XmlSchemaObjectEntry> entries, int size) 240private List<XmlSchemaObjectEntry> _entries; 243internal ValuesCollection(List<XmlSchemaObjectEntry> entries, int size) 294private List<XmlSchemaObjectEntry> _entries; 303internal XSOEnumerator(List<XmlSchemaObjectEntry> entries, int size, EnumeratorType enumType) 365internal XSODictionaryEnumerator(List<XmlSchemaObjectEntry> entries, int size, EnumeratorType enumType) : base(entries, size, enumType)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (2)
1135List<XmlSchemaElement> newMembers = null; 1479List<XmlSchema> reprocessList = new List<XmlSchema>();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (3)
3585List<T> listDst = new List<T>(); 3613List<object> listDst = new List<object>(); 3623private List<string> StringAsList(string value)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMapping.cs (1)
126List<XmlRootAttribute> list = new List<XmlRootAttribute>(type.GetTypeInfo().GetCustomAttributes<XmlRootAttribute>());
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
517List<XmlSchemaProviderAttribute> attrs = new List<XmlSchemaProviderAttribute>(type.GetTypeInfo().GetCustomAttributes<XmlSchemaProviderAttribute>(false));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
1434private bool IsCyclicReferencedType(XmlSchemaElement element, List<string> identifiers)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
99List<Type> argTypes = new List<Type>(); 233List<Type> argTypes = new List<Type>(); 615List<Type> argTypes = new List<Type>(); 616List<string> argNames = new List<string>(); 634List<Label> caseLabels = new List<Label>(); 635List<string> retValues = new List<string>(); 775List<Type> argTypes = new List<Type>(); 956List<Type> argTypes = new List<Type>(5); 957List<string> argNames = new List<string>(5); 1394List<Type> argTypes = new List<Type>(); 2113List<Type> argTypes = new List<Type>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheAxisQuery.cs (1)
16protected List<XPathNavigator> outputBuffer;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheOutputQuery.cs (1)
18protected List<XPathNavigator> outputBuffer;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\followingsibling.cs (1)
17private List<XPathNavigator> _parentStk;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\FunctionQuery.cs (1)
20public FunctionQuery(string prefix, string name, List<Query> args) : base(prefix, name)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingsibling.cs (2)
31private bool NotVisited(XPathNavigator nav, List<XPathNavigator> parentStk) 51List<XPathNavigator> parentStk = new List<XPathNavigator>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Query.cs (2)
111public bool Insert(List<XPathNavigator> buffer, XPathNavigator nav) 185private void AssertDOD(List<XPathNavigator> buffer, XPathNavigator nav, int pos)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\querybuilder.cs (2)
442private List<Query> ProcessArguments(ArrayList args, out Props props) 445List<Query> argList = new List<Query>(numArgs);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\SortQuery.cs (1)
17private List<SortKey> _results;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (7)
119internal List<DataMember> Members 365internal static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable) 748private List<DataMember> _members; 929List<DataMember> tempMembers = new List<DataMember>(); 1102private void SetIfMembersHaveConflict(List<DataMember> members) 1108List<Member> membersInHierarchy = new List<Member>(); 1260internal List<DataMember> Members
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
917List<CodeTypeReference> knownTypeReferences = new List<CodeTypeReference>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
160private List<ArgBuilder> _argList;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (3)
1736List<int> nestedParamCounts = new List<int>(); 2426private List<GenericInfo> _paramGenericInfos; 2427private List<int> _nestedParamCounts;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (5)
420List<Type> types = new List<Type>(); 428List<Type> types = (List<Type>)value; 460List<Type> types = (List<Type>)value;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (8)
75public List<DataMember> Members 87public List<long> Values 151private List<DataMember> _members; 152private List<long> _values; 236internal List<DataMember> Members 242internal List<long> Values 276List<DataMember> tempMembers = new List<DataMember>(fields.Length); 277List<long> tempValues = new List<long>(fields.Length);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (6)
61public List<DataMember> Members 111private List<DataMember> _members; 220public List<DataMember> Members 260List<DataMember> tempMembers; 306List<DataMember> tempMembers; 448private static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
899s_typeOfListGeneric = typeof(List<>);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaHelper.cs (2)
19internal List<XmlSchemaType> knownTypes; 21internal SchemaObjectInfo(XmlSchemaType type, XmlSchemaElement element, XmlSchema schema, List<XmlSchemaType> knownTypes)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (7)
29private List<XmlSchemaRedefine> _redefineList; 162private List<XmlSchemaRedefine> RedefineList 177List<XmlSchemaType> knownTypes = schemaObjectInfo.knownTypes; 221List<XmlSchemaType> knownTypes = schemaObjectInfo.knownTypes; 245List<XmlSchemaType> knownTypesForObject = new List<XmlSchemaType>(); 334private List<XmlSchemaRedefine> CreateRedefineList() 336List<XmlSchemaRedefine> list = new List<XmlSchemaRedefine>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
370List<DataMember> members = contract.Members;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
706List<DataMember> members = currentContract.Members;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableServices.cs (1)
20List<XmlNode> nodeList = new List<XmlNode>();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (1)
1383List<int> list = new List<int>();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
248List<Type> types = new List<Type>(typeNames.Length);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (1)
28private List<IQueueWaiter> _waiterList;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InternalBufferManager.cs (1)
62List<BufferPool> bufferPoolList = new List<BufferPool>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimSet.cs (1)
27List<Claim> claims = new List<Claim>(2);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (3)
163List<Claim> claims = new List<Claim>(); 319List<string> dnsEntries = new List<string>(); 366List<Claim> claims = new List<Claim>(2);
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
15private List<ClaimSet> _claimSets;
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
167List<ClaimSet> issuances = new List<ClaimSet>(1);
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (4)
126List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 280List<SecurityKey> temp = new List<SecurityKey>(1); 334List<IAuthorizationPolicy> ret = new List<IAuthorizationPolicy>(authorizationPolicies.Count); 409List<IIdentity> identities = new List<IIdentity>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (4)
20private readonly List<SecurityTokenSerializer.KeyIdentifierEntry> _keyIdentifierEntries; 21private readonly List<SecurityTokenSerializer.KeyIdentifierClauseEntry> _keyIdentifierClauseEntries; 22private readonly List<SecurityTokenSerializer.SerializerEntries> _serializerEntries; 23private readonly List<TokenEntry> _tokenEntries;
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (1)
16private readonly List<SecurityKeyIdentifierClause> _clauses;
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
37List<StrEntry> strEntries = new List<StrEntry>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
40List<StrEntry> strEntries = new List<StrEntry>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (2)
77List<AddressHeader> results = new List<AddressHeader>(); 179List<AddressHeader> headerList = new List<AddressHeader>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
885private List<XmlDictionaryString> _newStrings; 945private List<byte> _bytes;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (12)
78private List<TItem> PruneIfNecessary() 80List<TItem> itemsToClose = null; 94List<TKey> endpointKeysToRemove = null; 123List<TItem> itemsToClose = null; 227private List<TItem> _busyConnections; 312List<TItem> idleItemsToClose = null; 327List<TItem> itemsToClose = null; 353private void AbortConnections(List<TItem> idleItemsToClose) 368private List<TItem> SnapshotIdleConnections() 370List<TItem> itemsToClose = new List<TItem>(); 413public virtual void Prune(List<TItem> itemsToClose) 420List<TItem> itemsToClose = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolRegistry.cs (4)
11private Dictionary<string, List<ConnectionPool>> _registry; 15_registry = new Dictionary<string, List<ConnectionPool>>(); 31List<ConnectionPool> registryEntry = null; 68List<ConnectionPool> registryEntry = _registry[pool.Name];
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
498List<XmlElement> httpAuthAssertions = new List<XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (3)
89public override void Prune(List<TItem> itemsToClose) 217List<TItem> itemsToClose = new List<TItem>(); 243public void Prune(List<TItem> itemsToClose, bool calledFromTimer)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (1)
640List<FaultReasonText> translations = new List<FaultReasonText>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (1)
758List<MessageHeaderInfo> understoodHeaders = new List<MessageHeaderInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (3)
166List<string> keys = new List<string>(); 226List<object> values = new List<object>(); 801List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(_propertyCount);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
212List<Wsrm11PolicyAlternative> wsrmAlternatives = new List<Wsrm11PolicyAlternative>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestChannel.cs (1)
16private List<IRequestBase> _outstandingRequests = new List<IRequestBase>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (2)
18private List<IChannel> _channelsList; 271List<ICommunicationObject> objectList;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
613List<CodeTypeReference> wrapperKnownTypes = new List<CodeTypeReference>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (8)
374static internal List<Type> GetInterfaces(Type service) 376List<Type> types = new List<Type>(); 426static internal List<Type> GetInheritedContractTypes(Type service) 428List<Type> types = new List<Type>(); 461List<object> attrTypeAttributes = new List<object>(); 600List<Type> types = new List<Type>(GetInheritedContractTypes(interfaceType)); 627private static List<MethodInfo> GetMethodsInternal(Type interfaceType) 629List<MethodInfo> methods = new List<MethodInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (8)
381List<Type> knownTypes = new List<Type>(); 714List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType); 765List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType); 766List<Type> inheritedCallbackTypes = new List<Type>(); 1291List<MemberInfo> contractMembers = new List<MemberInfo>(); 1352List<MessagePartDescription> bodyPartDescriptionList = new List<MessagePartDescription>(); 1353List<MessageHeaderDescription> headerPartDescriptionList = new List<MessageHeaderDescription>(); 1540private void AddSortedParts<T>(List<T> partDescriptionList, KeyedCollection<XmlQualifiedName, T> partDescriptionCollection)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (2)
2071List<XmlElement> embeddedPolicies = new List<XmlElement>(); 2115List<XmlElement> policyReferences = new List<XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
602private List<XmlMembersMapping> _mappings = new List<XmlMembersMapping>(); 648List<XmlMembersMapping> uniqueMappings = new List<XmlMembersMapping>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
423List<ICommunicationObject> list = new List<ICommunicationObject>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (4)
27private List<IDuplexRequest> _requests; 28private List<ICorrelatorKey> _timedOutRequests; 151private List<IDuplexRequest> Requests 164private List<ICorrelatorKey> TimedOutRequests
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
27List<Attr> attrSet = new List<Attr>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointDispatcherTable.cs (1)
14private List<EndpointDispatcher> _cachedEndpoints;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (4)
19List<FaultContractInfo> faultContractInfoList = new List<FaultContractInfo>(); 28List<FaultContractInfo> faultContractInfoList; 166private static FaultContractInfo[] GetSortedArray(List<FaultContractInfo> faultContractInfoList) 176private static void AddInfrastructureFaults(List<FaultContractInfo> faultContractInfos)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InvokerUtil.cs (1)
37var outputParamPositions = new List<int>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SynchronizedChannelCollection.cs (1)
49List<TChannel> items = this.Items;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
483((List<MessageHeader<object>>)_attributes[headerDescription.Index]).Add(new MessageHeader<object>(null, mustUnderstand, actor, relay));
FrameworkFork\System.ServiceModel\System\ServiceModel\DXD.cs (4)
140public List<XmlDictionaryString> SecureConversationDictionaryStrings = new List<XmlDictionaryString>(); 205public List<XmlDictionaryString> SecurityAlgorithmDictionaryStrings = new List<XmlDictionaryString>(); 234public List<XmlDictionaryString> Feb2005DictionaryStrings = new List<XmlDictionaryString>(); 235public List<XmlDictionaryString> Dec2005DictionaryString = new List<XmlDictionaryString>();
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (1)
776List<AddressHeader> headerList = new List<AddressHeader>();
FrameworkFork\System.ServiceModel\System\ServiceModel\ExtensionCollection.cs (2)
56List<IExtension<T>> items = this.Items; 74List<IExtension<T>> items = this.Items;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\MessagePartSpecification.cs (3)
14private List<XmlQualifiedName> _headerTypes; 100List<XmlQualifiedName> headerTypes = specification._headerTypes; 123List<XmlQualifiedName> noDuplicates = new List<XmlQualifiedName>(_headerTypes.Count);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ReferenceList.cs (1)
21private List<string> _referredIds = new List<string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (4)
525List<Claim> claims = new List<Claim>(2); 529List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 573List<IIdentity> identities = null; 577identities = obj as List<IIdentity>;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
276List<SecurityKey> temp = new List<SecurityKey>(1);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSKeyInfoSerializer.cs (1)
20List<SecurityTokenSerializer.SerializerEntries> serializerEntries = new List<SecurityTokenSerializer.SerializerEntries>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
3079private List<WSSecurityPolicy> _drivers;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
26private readonly List<SerializerEntries> _serializerEntries; 28private readonly List<TokenEntry> _tokenEntries; 531private List<XmlDictionaryString> _dictionaryStrings; 533public CollectionDictionary(List<XmlDictionaryString> dictionaryStrings)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (2)
170private List<SecurityTokenAuthenticator> _entropyAuthenticators; 238List<RequestSecurityTokenResponse> rstrCollection = new List<RequestSecurityTokenResponse>(2);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (2)
13private List<T> _items; 61protected List<T> Items
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
55internal SynchronizedReadOnlyCollection(object syncRoot, List<T> list, bool makeCopy)
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlBuffer.cs (1)
14private List<Section> _sections;
Metadata\MetadataDocumentLoader.cs (6)
45private List<string> _processedUri = new List<string>(); 46private List<string> _updatedUri = new List<string>(); 57private List<Uri> metadataSourceFiles { get; set; } = new List<Uri>(); 63private readonly List<MetadataSection> _metadataSections = new List<MetadataSection>(); 69private readonly List<Exception> _documentLoadExceptions = new List<Exception>(); 449private bool CollectionContainsOrAdd(List<string> uriCollection, string uri)
Metadata\MetadataDocumentSaver.cs (5)
33private List<MetadataFileInfo> MetadataFiles { get; set; } 36private List<UnresolvedUri> UnresolvedReferences { get; set; } 227var unresolvedRefs = UnresolvedReferences.Where(u => MetadataFileNameManager.UriEqual(u.WsdlImport?.Location, sourceUrl)).ToList(); 249var unresolvedRefs = UnresolvedReferences.Where(u => 277var importedWsdl = new List<string>();
Metadata\MetadataFileNameManager.cs (1)
18private List<string> _files = new List<string>();
Metadata\ServiceDescriptor.cs (5)
43List<string> metadataFiles, 132(this.metadataDocumentLoader.MetadataSections as List<MetadataSection>).AddRange(newSet.MetadataSections); 177var orphanContracts = new List<ContractDescription>(this.Contracts); 178var services = new List<ServiceInfo>(); 183List<ContractDescription> contracts = new List<ContractDescription>();
Metadata\ServiceDescriptorFactory.cs (1)
100var removeKeys = _cache.Keys.Where((k) => !_cache[k].MetadataImported).ToList();
Shared\MSBuildProj.cs (8)
45private List<string> _targetFrameworks = new List<string>(); 46private List<string> _endOfLifeTargetFrameworks = new List<string>(); 772var packageReferences = await ResolvePackageReferencesAsync(logger, cancellationToken).ConfigureAwait(false); 773var assemblyReferences = await ResolveAssemblyReferencesAsync(logger, cancellationToken).ConfigureAwait(false); 788private async Task<List<ProjectDependency>> ResolvePackageReferencesAsync(ILogger logger, CancellationToken cancellationToken) 794var packageDependencies = new List<ProjectDependency>(); 866private async Task<List<ProjectDependency>> ResolveAssemblyReferencesAsync(ILogger logger, CancellationToken cancellationToken) 872var assemblyDependencies = new List<ProjectDependency>();
Shared\Options\ApplicationOptions.cs (2)
25private List<string> _warnings { get; set; } = new List<string>(); 29private List<Exception> _errors { get; set; } = new List<Exception>();
Shared\Options\ListValue.cs (1)
21private List<TValue> InnerList { get; set; } = new List<TValue>();
Shared\Options\OptionBase.cs (1)
53public List<string> Aliases { get; private set; }
Shared\Options\OptionValueParser.cs (2)
139var list = new List<object>(); 171if (newValue is List<object> list)
Shared\Options\WCFCSUpdateOptions.cs (1)
32private List<string> _deserializedCollectionAssemblies = new List<string>();
Shared\ProjectDependency.cs (1)
416internal static List<ProjectDependency> IgnorableDependencies = new List<ProjectDependency>
Shared\TargetFrameworkHelper.cs (5)
16internal static readonly List<string> s_currentSupportedVersions = new List<string>() { "8.0", "9.0", "10.0" }; 21internal static SortedDictionary<string, List<ProjectDependency>> NetCoreVersionReferenceTable = new SortedDictionary<string, List<ProjectDependency>> 37internal static List<ProjectDependency> FullFrameworkReferences = new List<ProjectDependency>() 42internal static List<ProjectDependency> ServiceModelPackages = new List<ProjectDependency>()
Tool.cs (1)
107var earlyWarnings = options.Warnings.ToList();
TypeLoader.cs (5)
16private static List<string> s_loadTypesWarnings = new List<string>(); 40List<Type> listType = new List<Type>(); 94static private List<Type> GetUnAvailableTypes(List<Type> types) 96List<Type> unavailableTypes = new List<Type>();
dotnet-svcutil-lib.Tests (12)
FixupUtil.cs (3)
17private List<ReplaceInfo> _replacements; 99var replacements = new List<ReplaceInfo>(_replacements); 118public string ReplaceText(string originalText, List<ReplaceInfo> replacements = null)
TestInit.cs (9)
362var baselineFiles = Directory.GetFiles(this_TestCaseBaselinesDir, "*", SearchOption.AllDirectories) 365var nonRefbaselineFiles = baselineFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList(); 371var generatedFiles = Directory.GetFiles(this_TestCaseOutputDir, "*.*", SearchOption.AllDirectories) 377var nonRefGeneratedFiles = generatedFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList(); 387protected bool ValidateFiles(string outputDir, string baselineDir, string bootstrapDir, List<string> generatedFiles, List<string> baselineFiles, out string failureMessage) 468var fileLines1 = new List<string>(); 469var fileLines2 = new List<string>(); 470var exceptLines = new List<string>() { "<ImplicitUsings>enable</ImplicitUsings>", "<Nullable>enable</Nullable>", "<Content CopyToOutputDirectory" };
dotnet-svcutil.xmlserializer (17)
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (1)
31private readonly List<Type> _types = new List<Type>();
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (2)
21private List<Assembly> _assemblies; 25internal List<Assembly> Assemblies
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (6)
31private List<string> _inputParameters; 32private List<Type> _referencedTypes; 33private List<Assembly> _referencedAssemblies; 43internal List<string> InputParameters { get { return _inputParameters; } } 44internal List<Type> ReferencedTypes { get { return _referencedTypes; } } 45internal List<Assembly> ReferencedAssemblies { get { return _referencedAssemblies; } }
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
124private static readonly List<string> s_existingFileNames = new List<string>();
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (1)
181var options = new List<ArgumentInfo>();
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (6)
31internal void GenerateCode(List<Assembly> assemblies) 47List<XmlMapping> mappings = new List<XmlMapping>(); 48List<Type> types = CollectXmlSerializerTypes(assembly, mappings); 117private List<Type> CollectXmlSerializerTypes(Assembly assembly, List<XmlMapping> mappings) 119List<Type> types = new List<Type>();
dotnet-user-jwts (30)
_generated\0\BindingExtensions.g.cs (2)
74var temp1 = new List<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey>(); 137global::System.Collections.Generic.List<string>? temp = null;
Commands\CreateCommand.cs (3)
143var audience = audienceOption.HasValue() ? audienceOption.Values : DevJwtCliHelpers.GetAudienceCandidatesFromLaunchSettings(project); 204var roles = rolesOption.HasValue() ? rolesOption.Values : new List<string>(); 207var scopes = scopesOption.HasValue() ? scopesOption.Values : new List<string>();
Helpers\ConsoleTable.cs (5)
14private readonly List<string> _columns = new(); 15private readonly List<string[]> _rows = new(); 50var maxColumnLengths = _columns 101void WriteTableContent(List<string[]> rows, List<int> columnLengths, string divider, StringBuilder stringBuilder)
Helpers\DevJwtCliHelpers.cs (4)
126public static List<string> GetAudienceCandidatesFromLaunchSettings(string project) 185static List<string> ExtractIISExpressUrlFromProfile(JsonElement rootElement) 191List<string> iisUrls = new(); 296public static bool TryParseClaims(List<string> input, out Dictionary<string, string> claims)
Helpers\JwtAuthenticationSchemeSettings.cs (1)
11internal sealed record JwtAuthenticationSchemeSettings(string SchemeName, List<string> Audiences, string ClaimsIssuer)
Helpers\JwtCreatorOptions.cs (3)
9List<string> Audiences, 13List<string> Roles, 14List<string> Scopes,
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 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\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
src\aspnetcore\src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
30var projects = Directory.EnumerateFileSystemEntries(projectPath, "*.*proj", SearchOption.TopDirectoryOnly)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
239List<string> searchPaths =
dotnet-user-secrets (12)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 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\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
src\aspnetcore\src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
30var projects = Directory.EnumerateFileSystemEntries(projectPath, "*.*proj", SearchOption.TopDirectoryOnly)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
239List<string> searchPaths =
dotnet-watch (14)
CommandLine\CommandLineOptions.cs (3)
132var buildArguments = buildOptions 205var arguments = new List<string>(); 268var argumentsWithoutBinLogBuilder = new List<string>();
Program.cs (1)
200List<string> projects;
Watch\BuildEvaluator.cs (4)
25private List<(string fileName, DateTime lastWriteTimeUtc)>? _msbuildFileTimestamps; 76var arguments = new List<string>() 178private List<(string fileName, DateTime lastModifiedUtc)> GetMSBuildFileTimeStamps(MSBuildFileSetFactory.EvaluationResult result) 180var msbuildFiles = new List<(string fileName, DateTime lastModifiedUtc)>();
Watch\MsBuildFileSetFactory.cs (2)
54var capturedOutput = new List<OutputLine>(); 154var arguments = new List<string>
Watch\MSBuildFileSetResult.cs (2)
22public List<string> Files { get; init; } = []; 25public List<StaticFileItem> StaticFiles { get; init; } = [];
Watch\StaticFileHandler.cs (2)
17var refreshRequests = new Dictionary<BrowserRefreshServer, List<string>>(); 38if (!refreshRequests.TryGetValue(refreshServer, out var filesPerServer))
DotNetWatchTasks (2)
src\sdk\src\Dotnet.Watch\dotnet-watch\Watch\MSBuildFileSetResult.cs (2)
22public List<string> Files { get; init; } = []; 25public List<StaticFileItem> StaticFiles { get; init; } = [];
GenerateAnalyzerNuspec (2)
Program.cs (2)
109var allTargets = new List<string>(); 200var fileNamesToExclude = new List<string>() { "Humanizer.dll", "MessagePack.dll", "MessagePack.Annotations.dll" };
GenerateDocumentationAndConfigFiles (147)
Program.cs (7)
43List<string> AssemblyList, 215var assemblyList = assembliesString.Split([';'], StringSplitOptions.RemoveEmptyEntries).ToList(); 265var fileNamesWithValidationFailures = new List<string>(); 1363private static void Validate(string fileWithPath, string fileContents, List<string> fileNamesWithValidationFailures) 1770var compilerVisibleProperties = new List<string>(); 1780static void AddItemGroupForCompilerVisibleProperties(List<string> compilerVisibleProperties, StringBuilder builder) 1808var compilerVisibleProperties = new List<string>();
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
29public static void ParseFeatures(IDictionary<string, string> builder, List<string> values) 40internal static void PrependFeatureFlagFromEnvironment(List<string> arguments, Action<string>? log = null)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
150var attributes = new List<AttributeData>(); 217var attributes = new List<AttributeData>();
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
40List<SyntaxNode> statements = []; 353List<SyntaxNode> statements = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
292=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
759var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 799var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
63var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 66var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 73List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 74List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 152private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 168List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
178public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 200public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
62List<Exception>? exceptions = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
GetDocument.Insider (12)
Commands\GetDocumentCommandWorker.cs (2)
116var hostArgs = new List<string> { $"--{HostDefaults.ApplicationKey}={assemblyName}" }; 299var filePathList = new List<string>();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 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\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
HelixTestTasks (5)
ComputeBatchTimeout.cs (1)
84var result = new List<ITaskItem>();
GroupWorkItems.cs (4)
46var itemsWithSize = new List<(ITaskItem item, long size)>(); 67var result = new List<ITaskItem>(); 71var smallItems = new List<(ITaskItem item, long size)>(); 92var batchAssignments = new List<ITaskItem>[numBatches];
ILAssembler (31)
EntityRegistry.cs (21)
17private readonly Dictionary<TableIndex, List<EntityBase>> _seenEntities = new(); 25private readonly List<ManifestResourceEntity> _manifestResourceEntities = new(); 27private readonly List<MemberReferenceEntity> _memberReferences = new(); 88if (_seenEntities.TryGetValue(table, out var entities)) 586if (!_seenEntities.TryGetValue(table, out List<EntityBase>? entities)) 609private TEntity CreateEntity<TEntity>(TableIndex table, List<TEntity> cache, Func<TEntity> constructor) 671if (_seenEntities.TryGetValue(tableIndex, out var entity)) 1220public List<GenericParameterConstraintEntity> GenericParameterConstraints { get; } = new(); 1222public List<MethodDefinitionEntity> Methods { get; } = new(); 1224public List<MethodImplementationEntity> MethodImplementations { get; } = new(); 1226public List<FieldDefinitionEntity> Fields { get; } = new(); 1228public List<PropertyEntity> Properties { get; } = new(); 1230public List<EventEntity> Events { get; } = new(); 1232public List<InterfaceImplementationEntity> InterfaceImplementations { get; } = new(); 1265public List<GenericParameterConstraintEntity> Constraints { get; } = new(); 1289public List<ParameterEntity> Parameters { get; } = new(); 1294public List<GenericParameterConstraintEntity> GenericParameterConstraints { get; } = new(); 1355private readonly List<Blob> _placesToWriteResolvedHandle = new(); 1442public List<(MethodSemanticsAttributes Semantic, EntityBase Method)> Accessors { get; } = new(); 1453public List<(MethodSemanticsAttributes Semantic, EntityBase Method)> Accessors { get; } = new(); 1547public List<SequencePoint> SequencePoints { get; } = new();
GrammarVisitor.cs (7)
88private readonly Dictionary<string, List<Blob>> _mappedFieldDataReferenceFixups = new(); 103private readonly List<VTableFixupSupport.VTableFixupEntry> _vtableFixups = new(); 422private static BlobBuilder EncodeSequencePoints(List<EntityRegistry.SequencePoint> sequencePoints) 1004public List<Dictionary<string, int>> LocalsScopes { get; } = new(); 1006public List<SignatureArg> AllLocals { get; } = new(); 1636if (!_mappedFieldDataReferenceFixups.TryGetValue(name, out var fixups)) 3139var labels = new List<(LabelHandle Label, int? Offset)>();
NamedElementList.cs (1)
17private readonly List<T> _elements = new();
VTableExportPEBuilder.cs (2)
46private readonly IReadOnlyDictionary<string, List<Blob>>? _dataLabelFixups; 100IReadOnlyDictionary<string, List<Blob>>? dataLabelFixups = null,
ilc (18)
Program.cs (9)
49List<ModuleDesc> assembliesWithInitializers = new List<ModuleDesc>(); 65List<MethodDesc> instrumentedResult = new List<MethodDesc>(result); 78var suppressedWarningCategories = new List<string>(); 171List<ICompilationRootProvider> compilationRoots = new List<ICompilationRootProvider>(); 206List<EcmaModule> inputModules = new List<EcmaModule>(); 497List<TypeDesc> scannerConstructedTypes = null; 498List<MethodDesc> scannerCompiledMethods = null; 641List<ObjectDumper> dumpers = new List<ObjectDumper>(); 815List<TypeDesc> genericArguments = new List<TypeDesc>();
RdXmlRootProvider.cs (3)
145var parameter = new List<TypeDesc>(); 146var instArgs = new List<TypeDesc>(); 164static bool SignatureMatches(MethodDesc method, List<TypeDesc> parameter)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (5)
43public static List<string> BuildPathList(IReadOnlyList<Token> tokens) 45List<string> paths = new(); 177List<string> details = new List<string>(); 236List<string> rspFile = new List<string>(); 430var tokens = new List<string>();
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (1)
171List<string> instructionSetParams = new List<string>();
ILCompiler.Build.Tasks (1)
ComputeManagedAssembliesToCompileToNative.cs (1)
88var runtimePackFilesToSkipPublish = new List<ITaskItem>();
ILCompiler.Compiler (365)
Compiler\AnalysisBasedMetadataManager.cs (7)
26private readonly List<ModuleDesc> _modulesWithMetadata; 27private readonly List<TypeDesc> _forcedTypes; 145out List<MetadataMapping<MetadataType>> typeMappings, 146out List<MetadataMapping<MethodDesc>> methodMappings, 148out List<MetadataMapping<FieldDesc>> fieldMappings, 150out List<StackTraceMapping> stackTraceMapping, 151out List<ReflectionStackTraceMapping> reflectionStackTraceMapping)
Compiler\Compilation.cs (1)
88protected abstract void ComputeDependencyNodeDependencies(List<DependencyNodeCore<NodeFactory>> obj);
Compiler\Dataflow\CompilerGeneratedState.cs (5)
96private Dictionary<MethodDesc, List<TypeSystemEntity>>? _compilerGeneratedMembers; 99private List<(MessageOrigin, DiagnosticId, string[])>? _warnings; 320_compilerGeneratedMembers ??= new Dictionary<MethodDesc, List<TypeSystemEntity>>(); 528public bool TryGetCompilerGeneratedCalleesForUserMethod(MethodDesc method, [NotNullWhen(true)] out List<TypeSystemEntity>? callees) 660public bool TryGetCompilerGeneratedCalleesForUserMethod(MethodDesc method, [NotNullWhen(true)] out List<TypeSystemEntity>? callees)
Compiler\Dataflow\FlowAnnotations.cs (1)
399var annotatedMethods = new List<MethodAnnotations>();
Compiler\Dataflow\InterproceduralState.cs (1)
71var methodsList = new List<MethodBodyValue>(MethodBodies.GetKnownValues());
Compiler\Dataflow\MethodBodyScanner.cs (2)
317if (_annotations.CompilerGeneratedState.TryGetCompilerGeneratedCalleesForUserMethod(startingMethod, out List<TypeSystemEntity>? compilerGeneratedCallees)) 1294var dereferencedMethodParams = new List<MultiValue>();
Compiler\Dataflow\ReflectionMarker.cs (3)
35public List<(MethodDesc OwningMethod, INodeWithRuntimeDeterminedDependencies Dependency)> RuntimeDeterminedDependencies { get; } = new List<(MethodDesc, INodeWithRuntimeDeterminedDependencies)>(); 102List<ModuleDesc> referencedModules = new(); 137List<ModuleDesc> referencedModules = new();
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (1)
127public static DependencyList ScanAndProcessReturnValue(NodeFactory factory, FlowAnnotations annotations, Logger logger, MethodIL methodIL, out List<(MethodDesc OwningMethod, INodeWithRuntimeDeterminedDependencies Dependency)> runtimeDependencies)
Compiler\Dataflow\ValueNode.cs (1)
24public ValueNodeList(List<MultiValue> other)
Compiler\DependencyAnalysis\AddressTakenMethodNode.cs (1)
47public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\AnalysisCharacteristicNode.cs (1)
23public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\AnalyzedExternalTypeMapNode.cs (1)
43public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => [];
Compiler\DependencyAnalysis\AnalyzedProxyTypeMapNode.cs (1)
44public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => [];
Compiler\DependencyAnalysis\ArrayOfEmbeddedDataNode.cs (1)
17private List<TEmbedded> _nestedNodesList = new List<TEmbedded>();
Compiler\DependencyAnalysis\CodeBasedDependencyAlgorithm.cs (2)
10using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>; 75public static void AddConditionalDependenciesDueToMethodCodePresence(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc method)
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (8)
14using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>; 31public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, EcmaMethod method) 59public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, EcmaType type) 74public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, EcmaField field) 80public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, PropertyPseudoDesc property) 85public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, EventPseudoDesc @event) 90public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, EcmaAssembly assembly) 99private static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, object condition, NodeFactory factory, EcmaModule module, CustomAttributeHandleCollection attributeHandles, TypeSystemEntity parent)
Compiler\DependencyAnalysis\CustomAttributeMetadataNode.cs (1)
45public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\DataflowAnalyzedMethodNode.cs (2)
22private List<(MethodDesc OwningMethod, INodeWithRuntimeDeterminedDependencies Dependency)> _runtimeDependencies; 47public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory)
Compiler\DependencyAnalysis\DataflowAnalyzedTypeDefinitionNode.cs (1)
105public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\DelegateMarshallingDataNode.cs (1)
52public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\DelegateTargetVirtualMethodNode.cs (2)
39public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null; 75public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\DictionaryLayoutNode.cs (2)
168List<CombinedDependencyListEntry> conditionalDependencies = new List<CombinedDependencyListEntry>(); 187public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\DispatchCellNode.cs (1)
109public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\DynamicDependencyAttributesOnEntityNode.cs (1)
248public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\EETypeNode.cs (1)
317List<CombinedDependencyListEntry> result = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\EmbeddedObjectNode.cs (1)
63public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\EmbeddedTrimmingDescriptorNode.cs (1)
71public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\EventMetadataNode.cs (2)
34var dependencies = new List<CombinedDependencyListEntry>(); 48public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\ExactMethodInstantiationsEntryNode.cs (1)
45public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\ExternalReferencesTableNode.cs (1)
22private List<SymbolAndDelta> _insertedSymbols = new List<SymbolAndDelta>();
Compiler\DependencyAnalysis\ExternalTypeMapNode.cs (2)
36List<CombinedDependencyListEntry> dependencies = []; 71public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => Array.Empty<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ExternalTypeMapRequestNode.cs (1)
25public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => [];
Compiler\DependencyAnalysis\FieldMetadataNode.cs (2)
66var dependencies = new List<CombinedDependencyListEntry>(); 86public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\GenericMethodsHashtableEntryNode.cs (1)
42public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\GenericStaticBaseInfoNode.cs (1)
44public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\GenericVirtualMethodImplNode.cs (1)
74public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\GvmDispatchCellInfoSectionNode.cs (1)
35var cells = new List<DispatchCellNode>();
Compiler\DependencyAnalysis\InlineableStringsResourceNode.cs (1)
73public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\InterfaceDispatchCellInfoSectionNode.cs (1)
35var cells = new List<DispatchCellNode>();
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (3)
150var defaultImplementations = new List<(int InterfaceIndex, int InterfaceMethodSlot, int ImplMethodSlot)>(); 151var staticImplementations = new List<(int InterfaceIndex, int InterfaceMethodSlot, int ImplMethodSlot, int Context)>(); 152var staticDefaultImplementations = new List<(int InterfaceIndex, int InterfaceMethodSlot, int ImplMethodSlot, int Context)>();
Compiler\DependencyAnalysis\InterfaceUseNode.cs (1)
38public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\InvalidExternalTypeMapNode.cs (1)
31public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => Array.Empty<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\InvalidProxyTypeMapNode.cs (1)
34public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => Array.Empty<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\MethodMetadataNode.cs (2)
130var dependencies = new List<CombinedDependencyListEntry>(); 150public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\MethodParameterMetadataNode.cs (1)
39public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\ModuleInitializerListNode.cs (3)
38var modulesWithCctor = new List<ModuleDesc>(); 54List<ModuleDesc> sortedModules = new List<ModuleDesc>(); 59var allModules = new List<ModuleGraphNode>();
Compiler\DependencyAnalysis\ModuleMetadataNode.cs (2)
59var dependencies = new List<CombinedDependencyListEntry>(); 73public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\NativeLayoutInfoNode.cs (1)
26private List<NativeLayoutVertexNode> _vertexNodesToWrite;
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (8)
47public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) 565private List<uint> _uints; 568public NativeLayoutPlacedVertexSequenceOfUIntVertexNode(List<uint> uints) 601private List<NativeLayoutVertexNode> _vertices; 604public NativeLayoutPlacedVertexSequenceVertexNode(List<NativeLayoutVertexNode> vertices) 858List<NativeLayoutVertexNode> dictionaryVertices = new List<NativeLayoutVertexNode>(); 1017List<NativeLayoutVertexNode> implementedInterfacesList = new List<NativeLayoutVertexNode>(); 1030List<NativeLayoutVertexNode> dictionaryVertices = new List<NativeLayoutVertexNode>();
Compiler\DependencyAnalysis\NodeFactory.NativeLayout.cs (12)
50_placedUIntVertexSequence = new NodeCache<List<uint>, NativeLayoutPlacedVertexSequenceOfUIntVertexNode>(uints => 234public readonly List<NativeLayoutVertexNode> Vertices; 236public VertexSequenceKey(List<NativeLayoutVertexNode> vertices) 277internal NativeLayoutPlacedVertexSequenceVertexNode PlacedVertexSequence(List<NativeLayoutVertexNode> vertices) 282private sealed class UIntSequenceComparer : IEqualityComparer<List<uint>> 284bool IEqualityComparer<List<uint>>.Equals(List<uint> x, List<uint> y) 297int IEqualityComparer<List<uint>>.GetHashCode(List<uint> obj) 309private NodeCache<List<uint>, NativeLayoutPlacedVertexSequenceOfUIntVertexNode> _placedUIntVertexSequence; 310internal NativeLayoutPlacedVertexSequenceOfUIntVertexNode PlacedUIntVertexSequence(List<uint> uints)
Compiler\DependencyAnalysis\NotReadOnlyFieldNode.cs (1)
41public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\ObjectGetTypeCalledNode.cs (1)
37public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\ObjectGetTypeFlowDependenciesNode.cs (1)
68public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\PropertyMetadataNode.cs (2)
34var dependencies = new List<CombinedDependencyListEntry>(); 48public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\ProxyTypeMapNode.cs (1)
64public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => Array.Empty<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ProxyTypeMapRequestNode.cs (1)
25public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => [];
Compiler\DependencyAnalysis\ReadyToRunGenericHelperNode.cs (1)
241List<CombinedDependencyListEntry> conditionalDependencies = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ReadyToRunHeaderNode.cs (1)
27private List<HeaderItem> _items = new List<HeaderItem>();
Compiler\DependencyAnalysis\ReadyToRunHelperNode.cs (1)
175List<CombinedDependencyListEntry> dependencyList = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ReflectedDelegateNode.cs (1)
47public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\ReflectedFieldNode.cs (1)
114public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\ReflectedMethodNode.cs (1)
61public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\ReflectedTypeNode.cs (1)
59public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\ResourceDataNode.cs (1)
27private List<ResourceIndexData> _indexData;
Compiler\DependencyAnalysis\ScannedMethodNode.cs (4)
12using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>; 25private CombinedDependencyList _conditionalDependencies; 50public void InitializeDependencies(NodeFactory factory, (DependencyList, CombinedDependencyList) dependencies, TypeSystemException scanningException = null) 89public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\SealedVTableNode.cs (1)
17private List<SealedVTableEntry> _sealedVTableEntries;
Compiler\DependencyAnalysis\SerializedFrozenObjectNode.cs (2)
10using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>; 64CombinedDependencyList result = null;
Compiler\DependencyAnalysis\StackTraceDocumentsNode.cs (1)
18private List<string> _documents = new List<string>();
Compiler\DependencyAnalysis\StackTraceMethodMappingNode.cs (1)
52var mapping = new List<StackTraceMapping>(factory.MetadataManager.GetStackTraceMapping(factory));
Compiler\DependencyAnalysis\StringAllocatorMethodNode.cs (1)
71public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\StructMarshallingDataNode.cs (1)
53public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\TentativeMethodNode.cs (1)
53public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\TrimmingDescriptorNode.cs (1)
48public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\TypeGVMEntriesNode.cs (1)
61public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\TypeMetadataNode.cs (2)
105var dependencies = new List<CombinedDependencyListEntry>(); 193public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\VariantInterfaceMethodUseNode.cs (1)
152public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\VTableSliceNode.cs (1)
95public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\ExportsFileWriter.cs (1)
16private readonly List<EcmaMethod> _methods;
Compiler\ILScanner.cs (13)
54protected override void ComputeDependencyNodeDependencies(List<DependencyNodeCore<NodeFactory>> obj) 57var methodsToCompile = new List<ScannedMethodNode>(); 92private void CompileMultiThreaded(List<ScannedMethodNode> methodsToCompile) 105private void CompileSingleThreaded(List<ScannedMethodNode> methodsToCompile) 480var vtables = new Dictionary<TypeDesc, List<MethodDesc>>(); 601static List<MethodDesc> BuildVTable(NodeFactory factory, TypeDesc currentType, TypeDesc implType, List<MethodDesc> vtable) 621if (!vtables.TryGetValue(baseType, out List<MethodDesc> baseVtable)) 624if (!vtables.TryGetValue(type, out List<MethodDesc> vtable)) 877private readonly List<MetadataType> _types; 882internal override List<MetadataType> GetTypes() => _types; 888List<ThreadStaticsNode> threadStaticNodes = new List<ThreadStaticsNode>(); 900List<MetadataType> types = new List<MetadataType>();
Compiler\InlinedThreadStatics.cs (1)
15internal virtual List<MetadataType> GetTypes() => throw new InvalidOperationException();
Compiler\LibraryInitializers.cs (1)
22private List<MethodDesc> _libraryInitializerMethods;
Compiler\Logging\DocumentationSignatureParser.cs (23)
45var results = new List<TypeSystemEntity>(); 58var results = new List<TypeSystemEntity>(); 68var results = new List<TypeSystemEntity>(); 82private static bool ParseDocumentationSignature(string id, ModuleDesc module, List<TypeSystemEntity> results) 96private static void ParseSignature(string id, ref int index, ModuleDesc module, List<TypeSystemEntity> results) 137public static void ParseSignaturePart(string id, ref int index, ModuleDesc module, MemberType memberTypes, List<TypeSystemEntity> results) 198public static void GetMatchingMembers(string id, ref int index, ModuleDesc module, TypeDesc containingType, string memberName, int arity, MemberType memberTypes, List<TypeSystemEntity> results, bool acceptName = false) 279var results = new List<string>(); 288private static void ParseTypeSymbol(string id, ref int index, TypeSystemEntity typeParameterContext, List<string> results) 349private static void ParseTypeParameterSymbol(string id, ref int index, TypeSystemEntity typeParameterContext, List<string> results) 394private static void ParseNamedTypeSymbol(string id, ref int index, TypeSystemEntity typeParameterContext, List<string> results) 407List<string> typeArguments = null; 492private static bool ParseTypeArguments(string id, ref int index, TypeSystemEntity typeParameterContext, List<string> typeArguments) 527private static void GetMatchingTypes(ModuleDesc module, TypeDesc declaringType, string name, int arity, List<TypeSystemEntity> results) 576private static void GetMatchingMethods(string id, ref int index, TypeDesc type, string memberName, int arity, List<TypeSystemEntity> results, bool acceptName = false) 581var parameters = new List<string>(); 633private static void GetMatchingProperties(string id, ref int index, TypeDesc typeDesc, string memberName, List<TypeSystemEntity> results, bool acceptName = false) 641List<string> parameters = null; 679private static void GetMatchingFields(TypeDesc type, string memberName, List<TypeSystemEntity> results) 691private static void GetMatchingEvents(TypeDesc typeDesc, string memberName, List<TypeSystemEntity> results) 705private static bool AllParametersMatch(MethodSignature methodParameters, List<string> expectedParameters) 719private static bool AllParametersMatch(PropertySignature propertyParameters, List<string> expectedParameters) 733private static bool ParseParameterList(string id, ref int index, TypeSystemEntity typeParameterContext, List<string> parameters)
Compiler\Logging\UnconditionalSuppressMessageAttributeState.cs (6)
103List<(DiagnosticId, string?[])>? generatedWarnings = null; 243private static List<Suppression>? DecodeAssemblyAndModuleSuppressions(EcmaAssembly ecmaAssembly, List<(DiagnosticId, string?[])>? warnings) 245List<Suppression>? suppressions = null; 264ref List<Suppression>? suppressions, 265List<(DiagnosticId, string?[])>? warnings)
Compiler\MetadataManager.cs (24)
19using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>; 50private List<MetadataMapping<MetadataType>> _typeMappings; 51private List<MetadataMapping<FieldDesc>> _fieldMappings; 53private List<MetadataMapping<MethodDesc>> _methodMappings; 55private List<StackTraceMapping> _stackTraceMappings; 56private List<ReflectionStackTraceMapping> _reflectionStackTraceMappings; 65private readonly List<DispatchCellNode> _dispatchCells = new List<DispatchCellNode>(); 88private List<(DehydratableObjectNode Node, ObjectNode.ObjectData Data)> _dehydratableData = new List<(DehydratableObjectNode Node, ObjectNode.ObjectData data)>(); 593public virtual void GetConditionalDependenciesDueToEETypePresence(ref CombinedDependencyList dependencies, NodeFactory factory, TypeDesc type, bool allocated) 634public virtual void GetDependenciesDueToDelegateCreation(ref CombinedDependencyList dependencies, NodeFactory factory, TypeDesc delegateType, MethodDesc target) 643public virtual void GetDependenciesForOverridingMethod(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc decl, MethodDesc impl) 663public virtual void GetConditionalDependenciesDueToMethodCodePresence(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc method) 727out List<MetadataMapping<MetadataType>> typeMappings, 728out List<MetadataMapping<MethodDesc>> methodMappings, 730out List<MetadataMapping<FieldDesc>> fieldMappings, 732out List<StackTraceMapping> stackTraceMapping, 733out List<ReflectionStackTraceMapping> reflectionStackTraceMapping); 739out List<MetadataMapping<MetadataType>> typeMappings, 740out List<MetadataMapping<MethodDesc>> methodMappings, 742out List<MetadataMapping<FieldDesc>> fieldMappings, 744out List<StackTraceMapping> stackTraceMapping, 745out List<ReflectionStackTraceMapping> reflectionBasedStackTraceMapping) where TPolicy : struct, IMetadataPolicy 764var stackTraceRecords = new List<StackTraceRecordData>(); 953List<MetadataRecord> genericArgs = new List<MetadataRecord>();
Compiler\MstatObjectDumper.cs (4)
40private List<(MethodDesc Method, string MangledName, int Size, int GcInfoSize)> _methods = new(); 43private Dictionary<MethodDesc, List<(MethodDesc Method, int MangledName)>> _deduplicatedBodies = new(); 114if (!_deduplicatedBodies.TryGetValue(originalBody.Method, out List<(MethodDesc, int)> targetBodies)) 213private readonly List<(string Name, BlobBuilder Content)> _customSections = new();
Compiler\ObjectWriter\CodeView\CodeViewSymbolsBuilder.cs (3)
244List<uint> codes = new(); 308internal readonly List<byte[]> _data = new(); 309internal readonly List<(uint, RelocType, Utf8String)> _relocations = new();
Compiler\ObjectWriter\CodeView\CodeViewTypesBuilder.cs (1)
48private readonly List<(Utf8String, uint)> _userDefinedTypes = new();
Compiler\ObjectWriter\Dwarf\DwarfBuilder.cs (8)
34private readonly List<DwarfFileName> _fileNames = new(); 36private readonly List<SectionInfo> _sections = new(); 38private readonly List<MemberFunctionTypeInfo> _memberFunctionTypeInfos = new(); 39private readonly List<DwarfMemberFunction> _memberFunctions = new(); 42private readonly List<DwarfStaticVariableInfo> _staticFields = new(); 44private readonly List<DwarfInfo> _dwarfTypes = new(); 46private readonly List<DwarfInfo> _dwarfSubprograms = new(); 329List<DataFieldDescriptor> fieldDescriptors = new();
Compiler\ObjectWriter\Dwarf\DwarfInfo.cs (2)
225private readonly List<DwarfStaticVariableInfo> _statics; 226private List<DwarfMemberFunction> _methods;
Compiler\ObjectWriter\Dwarf\DwarfInfoWriter.cs (1)
26private readonly List<InfoReference> _lateBoundReferences = new();
Compiler\ObjectWriter\MachObjectWriter.Aot.cs (1)
65private readonly List<CompactUnwindCode> _compactUnwindCodes = new();
Compiler\ReachabilityInstrumentationProvider.cs (1)
225IEnumerable<CombinedDependencyListEntry> IDependencyNode<NodeFactory>.SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => throw new NotImplementedException();
Compiler\RuntimeConstructableTypeDependencies.cs (1)
58List<DependencyNodeCore<NodeFactory>.CombinedDependencyListEntry> dependencies,
Compiler\TypePreinit.cs (5)
15using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>; 106var values = new List<KeyValuePair<FieldDesc, ISerializableValue>>(); 2254void GetConditionalDependencies(ref CombinedDependencyList dependencies, NodeFactory factory); 3260public virtual void GetConditionalDependencies(ref CombinedDependencyList dependencies, NodeFactory factory) 3287public override void GetConditionalDependencies(ref CombinedDependencyList dependencies, NodeFactory factory)
Compiler\UnmanagedEntryPointsRootProvider.cs (2)
132List<CombinedDependencyListEntry> dependencies = []; 154public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => Array.Empty<CombinedDependencyListEntry>();
Compiler\UsageBasedMetadataManager.cs (18)
22using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>; 52private readonly List<TypeDesc> _typesWithForcedEEType = new List<TypeDesc>(); 54private readonly List<FieldDesc> _fieldsWithMetadata = new List<FieldDesc>(); 55private readonly List<MethodDesc> _methodsWithMetadata = new List<MethodDesc>(); 56private readonly List<MetadataType> _typesWithMetadata = new List<MetadataType>(); 57private readonly List<FieldDesc> _fieldsWithRuntimeMapping = new List<FieldDesc>(); 58private readonly List<ReflectableCustomAttribute> _customAttributesWithMetadata = new List<ReflectableCustomAttribute>(); 59private readonly List<ReflectableParameter> _parametersWithMetadata = new List<ReflectableParameter>(); 67private readonly List<string> _satelliteAssemblyFiles; 229out List<MetadataMapping<MetadataType>> typeMappings, 230out List<MetadataMapping<MethodDesc>> methodMappings, 232out List<MetadataMapping<FieldDesc>> fieldMappings, 234out List<StackTraceMapping> stackTraceMapping, 235out List<ReflectionStackTraceMapping> reflectionStackTraceMapping) 425public override void GetConditionalDependenciesDueToEETypePresence(ref CombinedDependencyList dependencies, NodeFactory factory, TypeDesc type, bool allocated) 570public override void GetDependenciesDueToDelegateCreation(ref CombinedDependencyList dependencies, NodeFactory factory, TypeDesc delegateType, MethodDesc target) 622public override void GetDependenciesForOverridingMethod(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc decl, MethodDesc impl) 692public override void GetConditionalDependenciesDueToMethodCodePresence(ref CombinedDependencyList dependencies, NodeFactory factory, MethodDesc method)
Compiler\UsageBasedTypeMapManager.cs (4)
31List<CombinedDependencyListEntry> entries = []; 42public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => Array.Empty<CombinedDependencyListEntry>(); 106List<IExternalTypeMapNode> typeMaps = [.._externalTypeMaps]; 125List<IProxyTypeMapNode> typeMaps = [.. _proxyTypeMaps];
Compiler\UserDefinedTypeDescriptor.cs (8)
404List<FieldDesc> fieldsDescriptors = new List<FieldDesc>(); 583List<DataFieldDescriptor> fieldsDescs = new List<DataFieldDescriptor>(); 584List<DataFieldDescriptor> nonGcStaticFields = new List<DataFieldDescriptor>(); 585List<DataFieldDescriptor> gcStaticFields = new List<DataFieldDescriptor>(); 586List<DataFieldDescriptor> threadStaticFields = new List<DataFieldDescriptor>(); 587List<StaticDataFieldDescriptor> staticsDescs = new List<StaticDataFieldDescriptor>(); 753private void InsertStaticFieldRegionMember(List<DataFieldDescriptor> fieldDescs, DefType defType, List<DataFieldDescriptor> staticFields, Utf8String staticFieldForm,
IL\ILImporter.Scanner.cs (3)
15using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>; 133public (DependencyList, CombinedDependencyList) Import() 197CombinedDependencyList conditionalDependencies = null;
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Validation.cs (3)
18private static List<TypeLoadabilityCheckInProgress> t_typeLoadCheckInProgressStack; 19private static List<TypeDesc> EmptyList = new List<TypeDesc>(); 95public List<TypeDesc> OtherTypesToMarkAsSuccessfullyLoaded;
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (5)
26var members = new List<TypeSystemEntity>(); 87var members = new List<TypeSystemEntity>(); 100var members = new List<TypeSystemEntity>(); 452public static void GetAllOnType(this TypeDesc type, bool declaredOnly, List<TypeSystemEntity> members) => GetAllOnType(type, declaredOnly, members, new HashSet<TypeDesc>()); 454private static void GetAllOnType(TypeDesc type, bool declaredOnly, List<TypeSystemEntity> members, HashSet<TypeDesc> types)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\ExternSymbolNode.cs (1)
45public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (2)
79public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) 81List<CombinedDependencyListEntry> dynamicDependencies = new List<CombinedDependencyListEntry>();
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\ObjectNode.cs (1)
91public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\ShadowMethodNode.cs (1)
118public sealed override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\VirtualMethodUseNode.cs (1)
87public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Cycles.cs (10)
22private List<List<Vertex>> _result = new List<List<Vertex>>(); 78List<Vertex> newStronglyConnectedComponent = new List<Vertex>(); 156List<Vertex> newStronglyConnectedComponent = new List<Vertex>(); 177public IEnumerable<List<Vertex>> Result 186private IEnumerable<List<Vertex>> TarjansAlgorithm() 207IEnumerable<List<Vertex>> stronglyConnectedComponents = this.TarjansAlgorithm(); 208foreach (List<Vertex> stronglyConnectedComponent in stronglyConnectedComponents) 324private static void FindCyclesWorker(Edge edge, List<Edge> alreadySeen, ref int operationCount, Stopwatch previousAlgorithmTimeoutWatch)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (1)
94private List<Edge> _edges = new List<Edge>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
28List<TypeDesc> typesToProcess = new List<TypeDesc>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
112private List<EmbeddingState> _overflow;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (2)
139private bool IsDeepPossiblyCyclicInstantiation(TypeDesc type, ref int breadthCounter, List<TypeDesc> seenTypes = null) 198private bool IsDeepPossiblyCyclicInstantiation(Instantiation instantiation, ref int breadthCounter, List<TypeDesc> seenTypes)
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
217var assemblies = new List<string>(context.InputFilePaths.Count + context.ReferenceFilePaths.Count + 1);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (5)
50protected sealed record SectionDefinition(CoffSectionHeader Header, Stream Stream, List<CoffRelocation> Relocations, Utf8String ComdatName, Utf8String SymbolName); 53protected readonly List<SectionDefinition> _sections = new(); 56private readonly List<CoffSymbolRecord> _symbols = new(); 279private protected override void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList) 282List<CoffRelocation> coffRelocations = _sections[sectionIndex].Relocations;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (10)
44private readonly List<ElfSectionDefinition> _sections = new(); 45private readonly List<ElfSymbol> _symbols = new(); 276List<ElfSymbol> sortedSymbols = new(definedSymbols.Count + undefinedSymbols.Count); 371private protected override void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList) 399private void EmitRelocationsX86(int sectionIndex, List<SymbolicRelocation> relocationList) 426private void EmitRelocationsX64(int sectionIndex, List<SymbolicRelocation> relocationList) 455private void EmitRelocationsARM(int sectionIndex, List<SymbolicRelocation> relocationList) 493private void EmitRelocationsARM64(int sectionIndex, List<SymbolicRelocation> relocationList) 529private void EmitRelocationsLoongArch64(int sectionIndex, List<SymbolicRelocation> relocationList) 565private void EmitRelocationsRiscV64(int sectionIndex, List<SymbolicRelocation> relocationList)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (10)
63private readonly List<MachSection> _sections = new(); 67private readonly List<MachSymbol> _symbolTable = new(); 569var sortedDefinedSymbols = new List<MachSymbol>(definedSymbols.Count); 628private protected override void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList) 663List<RelocAnchor> anchors = section.RelocAnchors; 689List<RelocAnchor> anchors = section.RelocAnchors; 720private void EmitRelocationsX64(int sectionIndex, List<SymbolicRelocation> relocationList) 849private void EmitRelocationsArm64(int sectionIndex, List<SymbolicRelocation> relocationList) 1090private List<MachRelocation> relocationCollection; 1115public List<RelocAnchor> RelocAnchors { get; } = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (15)
44private readonly List<SectionData> _sectionIndexToData = new(); 45private readonly List<List<SymbolicRelocation>> _sectionIndexToRelocations = new(); 46private protected readonly List<OutputSection> _outputSectionLayout = []; 254private protected abstract void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList); 311foreach (var relocationList in _sectionIndexToRelocations) 356List<ISymbolRangeNode> symbolRangeNodes = []; 357List<BlockToRelocate> blocksToRelocate = []; 358List<ChecksumsToCalculate> checksumRelocations = []; 598foreach (List<SymbolicRelocation> relocationList in _sectionIndexToRelocations) 669private void EmitChecksums(Stream outputFileStream, List<ChecksumsToCalculate> checksumRelocations) 673List<(long Offset, byte[] Value)> pendingWrites = ComputeChecksums(outputFileStream, checksumRelocations); 682private protected virtual List<(long Offset, byte[] Value)> ComputeChecksums(Stream outputFileStream, List<ChecksumsToCalculate> checksumRelocations) 684List<(long Offset, byte[] Value)> pendingWrites = [];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (4)
124private readonly List<EcmaModule> _inputModules = []; 125private readonly List<OutputNode> _nodes = []; 126private readonly List<OutputSymbol> _symbols = []; 127private readonly List<OutputSection> _sections = [];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (12)
73private Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = []; 78private readonly SortedDictionary<uint, List<ushort>> _baseRelocMap = new(); 563private protected override unsafe void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList) 567if (!_resolvableRelocations.TryGetValue(sectionIndex, out List<SymbolicRelocation> resolvable)) 582if (!_baseRelocMap.TryGetValue(pageRva, out var list)) 601List<Utf8String> exports = new(_exportedSymbolNames.Count); 689List<ushort> entries = kv.Value; 830if (_resolvableRelocations.TryGetValue(i, out List<SymbolicRelocation> relocationsToResolve)) 870private protected override List<(long Offset, byte[] Value)> ComputeChecksums(Stream outputFileStream, List<ChecksumsToCalculate> checksumRelocations) 872List<(long Offset, byte[] Value)> pendingWrites = base.ComputeChecksums(outputFileStream, checksumRelocations); 891private unsafe void ResolveRelocations(int sectionIndex, List<SymbolicRelocation> symbolicRelocations, long imageBase, MemoryStream stream)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (1)
26private readonly List<ReadOnlyMemory<byte>> _buffers = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\UnixObjectWriter.cs (1)
24private readonly List<UnixSectionDefinition> _sections = new();
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
100private readonly List<ModuleDesc> _targetModules = [];
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (6)
197SortedDictionary<string, List<ObjectDataBuilder.Reservation>> nameTable = new SortedDictionary<string, List<ObjectDataBuilder.Reservation>>(); 199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>(); 200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>(); 201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>(); 240foreach (KeyValuePair<string, List<ObjectDataBuilder.Reservation>> name in nameTable)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (2)
58public static ObjectDataBuilder.Reservation Write(ref ObjectDataBuilder dataBuilder, string name, SortedDictionary<string, List<ObjectDataBuilder.Reservation>> nameTable) 60List<ObjectDataBuilder.Reservation> relatedNameReferences;
src\runtime\src\coreclr\tools\Common\Microsoft\SourceLink\Tools\SourceLinkMap.cs (1)
62var list = new List<Entry>();
src\runtime\src\tools\illink\src\ILLink.Shared\Annotations.cs (2)
59var memberTypesList = AllDynamicallyAccessedMemberTypes 136var args = new List<string>();
ILCompiler.DependencyAnalysisFramework (30)
ComputedStaticDependencyNode.cs (1)
68public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<DependencyContextType>> markedNodes, int firstNode, DependencyContextType context)
DependencyAnalyzer.cs (11)
34private List<DependencyNodeCore<DependencyContextType>> _markedNodes = new List<DependencyNodeCore<DependencyContextType>>(); 36private List<DependencyNodeCore<DependencyContextType>> _rootNodes = new List<DependencyNodeCore<DependencyContextType>>(); 37private Dictionary<int, List<DependencyNodeCore<DependencyContextType>>> _deferredStaticDependencies = new Dictionary<int, List<DependencyNodeCore<DependencyContextType>>>(); 38private List<DependencyNodeCore<DependencyContextType>> _dynamicDependencyInterestingList = new List<DependencyNodeCore<DependencyContextType>>(); 39private List<DynamicDependencyNode> _markedNodesWithDynamicDependencies = new List<DynamicDependencyNode>(); 47private List<T> _nodes = new List<T>(); 144public sealed override event Action<List<DependencyNodeCore<DependencyContextType>>> ComputeDependencyRoutine; 175private void ComputeDependencies(List<DependencyNodeCore<DependencyContextType>> deferredStaticDependencies) 228if (!_deferredStaticDependencies.TryGetValue(dependencyPhase, out var deferredPerPhaseDependencies)) 313_deferredStaticDependencies.TryGetValue(_currentDependencyPhase, out var deferredDependenciesInCurrentPhase);
DependencyAnalyzerBase.cs (1)
64public abstract event Action<List<DependencyNodeCore<DependencyContextType>>> ComputeDependencyRoutine;
DependencyNodeCore.cs (1)
130public abstract IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<DependencyContextType>> markedNodes, int firstNode, DependencyContextType context);
IDependencyNode.cs (1)
42IEnumerable<DependencyNodeCore<DependencyContextType>.CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<DependencyContextType>> markedNodes, int firstNode, DependencyContextType context);
src\runtime\src\coreclr\tools\Common\Sorting\ListAccessor.cs (7)
8internal struct ListAccessor<T> : ISortableDataStructureAccessor<T, List<T>> 10public void Copy(List<T> source, int sourceIndex, T[] target, int destIndex, int length) 15public void Copy(T[] source, int sourceIndex, List<T> target, int destIndex, int length) 23public T GetElement(List<T> dataStructure, int i) 28public int GetLength(List<T> dataStructure) 33public void SetElement(List<T> dataStructure, int i, T value) 38public void SwapElements(List<T> dataStructure, int i, int i2)
src\runtime\src\coreclr\tools\Common\Sorting\MergeSort.cs (8)
13public static void MergeSort<T>(this List<T> listToSort, Comparison<T> comparison) 15MergeSortCore<T, List<T>, ListAccessor<T>, ComparisonWrapper<T>, RequireTotalOrderAssert>.ParallelSortApi(listToSort, new ComparisonWrapper<T>(comparison)); 19public static void MergeSortAllowDuplicates<T>(this List<T> listToSort, Comparison<T> comparison) 21MergeSortCore<T, List<T>, ListAccessor<T>, ComparisonWrapper<T>, AllowDuplicates>.ParallelSortApi(listToSort, new ComparisonWrapper<T>(comparison)); 25public static void MergeSort<T>(this List<T> listToSort, IComparer<T> comparer) 27MergeSortCore<T, List<T>, ListAccessor<T>, IComparer<T>, RequireTotalOrderAssert>.ParallelSortApi(listToSort, comparer); 31public static void MergeSortAllowDuplicates<T>(this List<T> listToSort, IComparer<T> comparer) 33MergeSortCore<T, List<T>, ListAccessor<T>, IComparer<T>, AllowDuplicates>.ParallelSortApi(listToSort, comparer);
ILCompiler.Diagnostics (2)
PdbWriter.cs (1)
88List<SymDocument> _symDocuments = new List<SymDocument>();
PerfMapWriter.cs (1)
78List<byte> inputHash = new List<byte>();
ILCompiler.MetadataTransform (122)
ILCompiler\Metadata\Transform.CustomAttribute.cs (2)
20private List<CustomAttribute> HandleCustomAttributes(Cts.Ecma.EcmaModule module, Ecma.CustomAttributeHandleCollection attributes) 22List<CustomAttribute> customAttributes = new List<CustomAttribute>(attributes.Count);
Internal\Metadata\NativeFormat\Writer\MdBinaryWriterGen.cs (64)
268public static void Write(this NativeWriter writer, List<MetadataRecord> values) 290public static void Write(this NativeWriter writer, List<ArraySignature> values) 312public static void Write(this NativeWriter writer, List<ByReferenceSignature> values) 334public static void Write(this NativeWriter writer, List<ConstantBooleanArray> values) 356public static void Write(this NativeWriter writer, List<ConstantBooleanValue> values) 378public static void Write(this NativeWriter writer, List<ConstantByteArray> values) 400public static void Write(this NativeWriter writer, List<ConstantByteValue> values) 422public static void Write(this NativeWriter writer, List<ConstantCharArray> values) 444public static void Write(this NativeWriter writer, List<ConstantCharValue> values) 466public static void Write(this NativeWriter writer, List<ConstantDoubleArray> values) 488public static void Write(this NativeWriter writer, List<ConstantDoubleValue> values) 510public static void Write(this NativeWriter writer, List<ConstantEnumArray> values) 532public static void Write(this NativeWriter writer, List<ConstantEnumValue> values) 554public static void Write(this NativeWriter writer, List<ConstantHandleArray> values) 576public static void Write(this NativeWriter writer, List<ConstantInt16Array> values) 598public static void Write(this NativeWriter writer, List<ConstantInt16Value> values) 620public static void Write(this NativeWriter writer, List<ConstantInt32Array> values) 642public static void Write(this NativeWriter writer, List<ConstantInt32Value> values) 664public static void Write(this NativeWriter writer, List<ConstantInt64Array> values) 686public static void Write(this NativeWriter writer, List<ConstantInt64Value> values) 708public static void Write(this NativeWriter writer, List<ConstantReferenceValue> values) 730public static void Write(this NativeWriter writer, List<ConstantSByteArray> values) 752public static void Write(this NativeWriter writer, List<ConstantSByteValue> values) 774public static void Write(this NativeWriter writer, List<ConstantSingleArray> values) 796public static void Write(this NativeWriter writer, List<ConstantSingleValue> values) 818public static void Write(this NativeWriter writer, List<ConstantStringArray> values) 840public static void Write(this NativeWriter writer, List<ConstantStringValue> values) 862public static void Write(this NativeWriter writer, List<ConstantUInt16Array> values) 884public static void Write(this NativeWriter writer, List<ConstantUInt16Value> values) 906public static void Write(this NativeWriter writer, List<ConstantUInt32Array> values) 928public static void Write(this NativeWriter writer, List<ConstantUInt32Value> values) 950public static void Write(this NativeWriter writer, List<ConstantUInt64Array> values) 972public static void Write(this NativeWriter writer, List<ConstantUInt64Value> values) 994public static void Write(this NativeWriter writer, List<CustomAttribute> values) 1016public static void Write(this NativeWriter writer, List<Event> values) 1038public static void Write(this NativeWriter writer, List<Field> values) 1060public static void Write(this NativeWriter writer, List<FieldSignature> values) 1082public static void Write(this NativeWriter writer, List<FunctionPointerSignature> values) 1104public static void Write(this NativeWriter writer, List<GenericParameter> values) 1126public static void Write(this NativeWriter writer, List<MemberReference> values) 1148public static void Write(this NativeWriter writer, List<Method> values) 1170public static void Write(this NativeWriter writer, List<MethodInstantiation> values) 1192public static void Write(this NativeWriter writer, List<MethodSemantics> values) 1214public static void Write(this NativeWriter writer, List<MethodSignature> values) 1236public static void Write(this NativeWriter writer, List<MethodTypeVariableSignature> values) 1258public static void Write(this NativeWriter writer, List<ModifiedType> values) 1280public static void Write(this NativeWriter writer, List<NamedArgument> values) 1302public static void Write(this NativeWriter writer, List<NamespaceDefinition> values) 1324public static void Write(this NativeWriter writer, List<NamespaceReference> values) 1346public static void Write(this NativeWriter writer, List<Parameter> values) 1368public static void Write(this NativeWriter writer, List<PointerSignature> values) 1390public static void Write(this NativeWriter writer, List<Property> values) 1412public static void Write(this NativeWriter writer, List<PropertySignature> values) 1434public static void Write(this NativeWriter writer, List<QualifiedField> values) 1456public static void Write(this NativeWriter writer, List<QualifiedMethod> values) 1478public static void Write(this NativeWriter writer, List<SZArraySignature> values) 1500public static void Write(this NativeWriter writer, List<ScopeDefinition> values) 1522public static void Write(this NativeWriter writer, List<ScopeReference> values) 1544public static void Write(this NativeWriter writer, List<TypeDefinition> values) 1566public static void Write(this NativeWriter writer, List<TypeForwarder> values) 1588public static void Write(this NativeWriter writer, List<TypeInstantiationSignature> values) 1610public static void Write(this NativeWriter writer, List<TypeReference> values) 1632public static void Write(this NativeWriter writer, List<TypeSpecification> values) 1654public static void Write(this NativeWriter writer, List<TypeVariableSignature> values)
Internal\Metadata\NativeFormat\Writer\NativeFormatWriterGen.cs (34)
891public List<MetadataRecord> Value = new List<MetadataRecord>(); 1661public List<MetadataRecord> Value = new List<MetadataRecord>(); 2250public List<MetadataRecord> FixedArguments = new List<MetadataRecord>(); 2251public List<NamedArgument> NamedArguments = new List<NamedArgument>(); 2343public List<MethodSemantics> MethodSemantics = new List<MethodSemantics>(); 2344public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 2468public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 2693public List<MetadataRecord> Constraints = new List<MetadataRecord>(); 2694public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 2870public List<Parameter> Parameters = new List<Parameter>(); 2871public List<GenericParameter> GenericParameters = new List<GenericParameter>(); 2872public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 2948public List<MetadataRecord> GenericTypeArguments = new List<MetadataRecord>(); 3118public List<MetadataRecord> Parameters = new List<MetadataRecord>(); 3119public List<MetadataRecord> VarArgParameters = new List<MetadataRecord>(); 3459public List<TypeDefinition> TypeDefinitions = new List<TypeDefinition>(); 3460public List<TypeForwarder> TypeForwarders = new List<TypeForwarder>(); 3461public List<NamespaceDefinition> NamespaceDefinitions = new List<NamespaceDefinition>(); 3648public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 3843public List<MethodSemantics> MethodSemantics = new List<MethodSemantics>(); 3845public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 3931public List<MetadataRecord> Parameters = new List<MetadataRecord>(); 4262public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 4265public List<CustomAttribute> ModuleCustomAttributes = new List<CustomAttribute>(); 4469public List<TypeDefinition> NestedTypes = new List<TypeDefinition>(); 4470public List<Method> Methods = new List<Method>(); 4471public List<Field> Fields = new List<Field>(); 4472public List<Property> Properties = new List<Property>(); 4473public List<Event> Events = new List<Event>(); 4474public List<GenericParameter> GenericParameters = new List<GenericParameter>(); 4475public List<MetadataRecord> Interfaces = new List<MetadataRecord>(); 4476public List<CustomAttribute> CustomAttributes = new List<CustomAttribute>(); 4549public List<TypeForwarder> NestedTypes = new List<TypeForwarder>(); 4626public List<MetadataRecord> GenericTypeArguments = new List<MetadataRecord>();
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (15)
72List<DstT> Visit<SrcT, DstT>(SrcT src, List<DstT> dst) 234public List<DstT> Visit<SrcT, DstT>(SrcT src, List<DstT> dst) 241var result = new List<DstT>(dst.Count); 289public List<ScopeDefinition> ScopeDefinitions = new List<ScopeDefinition>(); 312public List<MetadataRecord> AdditionalRootRecords { get; private set; } 314public List<ScopeDefinition> ScopeDefinitions 439public List<DstT> Visit<SrcT, DstT>(SrcT src, List<DstT> dst) where SrcT : MetadataRecord where DstT : MetadataRecord 961var values = new List<string>(); 988public static bool SequenceEqual<T>(this List<T> first, List<T> second) 993public static bool SequenceEqual<T>(this List<T> first, List<T> second, IEqualityComparer<T> comparer)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (7)
52internal List<Vertex> _items = new List<Vertex>(); 96private List<Section> _sections = new List<Section>(); 652private List<Entry> _elements; 709private List<Vertex> _elements; 1598private List<Vertex> _entries; 1600private List<Vertex> _blocks; 1891private List<Entry> _Entries;
ILCompiler.ReadyToRun (261)
Compiler\CallChainProfile.cs (1)
258List<string> followingMethodList = new List<string>();
Compiler\DependencyAnalysis\AllMethodsOnTypeNode.cs (1)
32public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null;
Compiler\DependencyAnalysis\ArrayInterfaceMethodsNode.cs (2)
41public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null; 45List<CombinedDependencyListEntry> result = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ArrayOfEmbeddedDataNode.cs (1)
22private List<TEmbedded> _nestedNodesList = new List<TEmbedded>();
Compiler\DependencyAnalysis\EmbeddedObjectNode.cs (1)
63public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
Compiler\DependencyAnalysis\InheritedVirtualMethodsNode.cs (2)
44public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => null; 50List<CombinedDependencyListEntry> result = new List<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ReadyToRun\AssemblyTableNode.cs (1)
21private readonly List<AssemblyHeaderNode> _assemblyHeaders;
Compiler\DependencyAnalysis\ReadyToRun\AttributePresenceFilterNode.cs (3)
43private List<CustomAttributeEntry> GetCustomAttributeEntries() 46List<CustomAttributeEntry> customAttributeEntries = new List<CustomAttributeEntry>(); 315List<CustomAttributeEntry> customAttributeEntries = GetCustomAttributeEntries();
Compiler\DependencyAnalysis\ReadyToRun\CopiedFieldRvaNode.cs (2)
58private unsafe List<EcmaField> GetFieldsAtRva() 67List<EcmaField> fields = new List<EcmaField>();
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILDeduplicator.cs (1)
27var sortedNodes = new List<CopiedMethodILNode>(_nodesProvider());
Compiler\DependencyAnalysis\ReadyToRun\DebugDirectoryEntryNode.cs (2)
109List<AssemblyInfo> assemblies = []; 276public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => [];
Compiler\DependencyAnalysis\ReadyToRun\DebugInfoTableNode.cs (1)
180List<byte> boundsBlob = new List<byte>(writer2.ToArray());
Compiler\DependencyAnalysis\ReadyToRun\DeferredTillPhaseNode.cs (2)
14private readonly List<DependencyNodeCore<NodeFactory>> _dependencies = new List<DependencyNodeCore<NodeFactory>>(); 53public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => throw new NotImplementedException();
Compiler\DependencyAnalysis\ReadyToRun\ExceptionInfoLookupTableNode.cs (2)
64private List<MethodWithGCInfo> _methodNodes; 65private List<int> _ehInfoOffsets;
Compiler\DependencyAnalysis\ReadyToRun\GCRefMapNode.cs (1)
19private readonly List<IMethodNode> _methods;
Compiler\DependencyAnalysis\ReadyToRun\ILBodyFixupSignature.cs (1)
61public static void NotifyComplete(NodeFactory factory, List<ILBodyFixupSignature> completeListOfSigs)
Compiler\DependencyAnalysis\ReadyToRun\ImportSectionNode.cs (1)
36private readonly List<Signature> _signatureList;
Compiler\DependencyAnalysis\ReadyToRun\InjectStringThunksSignature.cs (1)
34List<StringDiscoverableAssemblyStubNode> stubs = factory.GetStringDiscoverableStubs();
Compiler\DependencyAnalysis\ReadyToRun\InliningInfoNode.cs (1)
180List<EcmaMethod> sortedInliners = new List<EcmaMethod>(inlineeWithInliners.Value.Count);
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (2)
61List<long> _longs = new List<long>(); 62List<Import> _imports = new List<Import>();
Compiler\DependencyAnalysis\ReadyToRun\ManifestMetadataTableNode.cs (2)
50private readonly List<Guid> _manifestAssemblyMvids; 55private readonly List<ISignatureEmitter> _signatureEmitters;
Compiler\DependencyAnalysis\ReadyToRun\MethodEntryPointTableNode.cs (1)
49List<EntryPoint> ridToEntryPoint = new List<EntryPoint>();
Compiler\DependencyAnalysis\ReadyToRun\MethodWithGCInfo.cs (3)
31private List<ISymbolNode> _fixups; 96public List<ISymbolNode> Fixups => _fixups; 163List<FixupCell> fixupCells = null;
Compiler\DependencyAnalysis\ReadyToRun\ReadyToRunHeaderNode.cs (1)
98private readonly List<HeaderItem> _items = new List<HeaderItem>();
Compiler\DependencyAnalysis\ReadyToRun\RuntimeFunctionsTableNode.cs (2)
17private List<MethodWithGCInfo> _methodNodes; 133List<uint> mapping = new List<uint>();
Compiler\DependencyAnalysis\ReadyToRun\SymbolNodeRange.cs (1)
53public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => [];
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (1)
89List<string> reasons = new List<string>();
Compiler\DependencyAnalysis\ReadyToRun\WasmImportThunk.cs (1)
184List<WasmExpr> expressions = new List<WasmExpr>();
Compiler\DependencyAnalysis\ReadyToRun\WasmInterpreterToR2RThunkNode.cs (1)
157List<WasmExpr> expressions = new List<WasmExpr>();
Compiler\DependencyAnalysis\ReadyToRun\WasmR2RToInterpreterThunkNode.cs (1)
174List<WasmExpr> expressions = new List<WasmExpr>();
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (2)
104List<ILBodyFixupSignature> _markedILBodyFixupSignatures = new List<ILBodyFixupSignature>(); 558public List<StringDiscoverableAssemblyStubNode> GetStringDiscoverableStubs()
Compiler\FileLayoutOptimizer.cs (15)
78List<MethodWithGCInfo> methods = new List<MethodWithGCInfo>(); 91List<MethodWithGCInfo> sortedMethodsList = methods; 137private List<MethodWithGCInfo> ApplyMethodSort(List<MethodWithGCInfo> methods) 276private List<MethodWithGCInfo> MethodCallFrequencySort(List<MethodWithGCInfo> methodsToPlace) 289List<CallerCalleeCount> callList = new List<CallerCalleeCount>(); 299List<MethodWithGCInfo> outputMethods = new List<MethodWithGCInfo>(); 326private List<MethodWithGCInfo> PettisHansenSort(List<MethodWithGCInfo> methodsToPlace) 328var graphNodes = new List<CallGraphNode>(methodsToPlace.Count); 363List<List<int>> components = PettisHansen.Sort(graphNodes); 367List<MethodWithGCInfo> result = new List<MethodWithGCInfo>(methodsToPlace.Count); 368foreach (List<int> component in components)
Compiler\PettisHansenSort\PettisHansen.cs (7)
15public static List<List<int>> Sort(List<CallGraphNode> graph) 19var phNodes = new List<int>[graph.Count]; 164List<List<int>> components = 175foreach (List<int> component in components.SkipWhile(l => l.Count != 1))
Compiler\ProfileDataManager.cs (13)
20private readonly List<ProfileData> _inputData = new List<ProfileData>(); 187List<PgoSchemaElem> elems = new(); 210List<TypeSystemEntityOrUnknown> entities; 261private List<TypeSystemEntityOrUnknown> SampleMethodsCompatibleWithDelegateInvocation(MethodSignature delegateSignature, Random rand) 269private List<TypeSystemEntityOrUnknown> SampleImplementers(TypeDesc type, Random rand) 277private List<TypeSystemEntityOrUnknown> PickSample<T>(IList<T> list, Random rand) where T : TypeSystemEntity 280List<TypeSystemEntityOrUnknown> result = new(sampleSize); 412private readonly Dictionary<MethodSignature, List<MethodDesc>> _delegateTargets; 413private readonly Dictionary<TypeDesc, List<TypeDesc>> _implementers; 480List<MethodDesc> list = new(kvp.Value); 487List<TypeDesc> list = new(kvp.Value); 495return _delegateTargets.TryGetValue(delegateInvokeSignature, out List<MethodDesc> methods) ? methods : Array.Empty<MethodDesc>(); 500return _implementers.TryGetValue(type, out List<TypeDesc> types) ? types : Array.Empty<TypeDesc>();
Compiler\ReadyToRunCodegenCompilation.cs (2)
78protected abstract void ComputeDependencyNodeDependencies(List<DependencyNodeCore<NodeFactory>> obj); 720protected override void ComputeDependencyNodeDependencies(List<DependencyNodeCore<NodeFactory>> obj)
Compiler\ReadyToRunCodegenCompilationBuilder.cs (1)
292List<CorJitFlag> corJitFlags = new List<CorJitFlag> { CorJitFlag.CORJIT_FLAG_DEBUG_INFO };
Compiler\ReadyToRunCompilerContext.cs (1)
260List<FieldAndOffset> fieldsAndOffsets = new List<FieldAndOffset>();
Compiler\ReadyToRunExternalTypeMapNode.cs (1)
84public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => [];
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (1)
265List<FieldAndOffset> fieldsForType = null;
Compiler\ReadyToRunProxyTypeMapNode.cs (1)
85public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => [];
Compiler\ReadyToRunStandaloneMethodMetadata.cs (1)
216public List<TypeDesc> _alternateTypeRefStream = new List<TypeDesc>();
Compiler\ReadyToRunTableManager.cs (5)
49public List<IMethodNode> MethodsGenerated = new List<IMethodNode>(); 50public List<IMethodNode> GenericMethodsGenerated = new List<IMethodNode>(); 54private List<IMethodNode> _completeSortedMethods = new List<IMethodNode>(); 55private List<IMethodNode> _completeSortedGenericMethods = new List<IMethodNode>(); 126List<PerModuleMethodsGenerated> perModuleDatas = new List<PerModuleMethodsGenerated>(_methodsGenerated.Values);
IBC\IBCDataModel.cs (7)
199public List<ScenarioRunData> Runs; 218public List<BasicBlockData> BasicBlocks; 283Tokens = new Dictionary<SectionFormat, List<TokenData>>(); 293public List<ScenarioData> Scenarios; 294public List<MethodData> Methods; 295public Dictionary<SectionFormat, List<TokenData>> Tokens { get; private set; } 296public List<BlobEntry> BlobStream;
IBC\IBCDataReader.cs (9)
285List<IBC.ScenarioData> ReadScenarioSection(ref uint totalRuns) 287var result = new List<IBC.ScenarioData>(); 302void ReadBlocks(List<IBC.BasicBlockData> blockList, uint numberOfBlocks) 361List<IBC.MethodData> ReadBasicBlockSection(ref uint totalRuns) 363var result = new List<IBC.MethodData>(); 404List<IBC.TokenData> ReadTokenSection(SectionFormat section) 406var result = new List<IBC.TokenData>(); 618List<IBC.BlobEntry> ReadBlobStreamSection() 620var blobs = new List<IBC.BlobEntry>();
IBC\IBCProfileParser.cs (5)
21private readonly List<ModuleDesc> _possibleReferenceModules; 50List<MethodProfileData> methodProfileData = new List<MethodProfileData>(); 57if (!parsedData.Tokens.TryGetValue(section, out List<TokenData> TokenList) || 192private static Dictionary<IBCBlobKey, BlobEntry> GetIBCBlobs(List<BlobEntry> inputBlobs, out HashSet<uint> ignoredIbcMethodSpecTokens) 749List<TypeDesc> instantiationArguments = new List<TypeDesc>();
IBC\MIbcProfileParser.cs (3)
358private static List<MethodProfileData> ReadMIbcGroup(EcmaMethod method) 372List<long> instrumentationDataLongs = null; 374var methodProfileData = new List<MethodProfileData>();
JitInterface\CorInfoImpl.ReadyToRun.cs (6)
487private List<ISymbolNode> _precodeFixups; 488private List<MethodDesc> _ilBodiesNeeded; 601List<TypeDesc> compExactlyDependsOnList = null; 3396private readonly Stack<List<ISymbolNode>> _stashedPrecodeFixups = new Stack<List<ISymbolNode>>(); 3416List<ISymbolNode> previouslyStashedFixups = _stashedPrecodeFixups.Pop();
ObjectWriter\MapFileBuilder.cs (1)
119List<NodeTypeStatistics> nodeTypeStats = new List<NodeTypeStatistics>();
ObjectWriter\ProfileFileBuilder.cs (1)
61private List<CallInfo> _callInfo;
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Validation.cs (3)
18private static List<TypeLoadabilityCheckInProgress> t_typeLoadCheckInProgressStack; 19private static List<TypeDesc> EmptyList = new List<TypeDesc>(); 95public List<TypeDesc> OtherTypesToMarkAsSuccessfullyLoaded;
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (5)
26var members = new List<TypeSystemEntity>(); 87var members = new List<TypeSystemEntity>(); 100var members = new List<TypeSystemEntity>(); 452public static void GetAllOnType(this TypeDesc type, bool declaredOnly, List<TypeSystemEntity> members) => GetAllOnType(type, declaredOnly, members, new HashSet<TypeDesc>()); 454private static void GetAllOnType(TypeDesc type, bool declaredOnly, List<TypeSystemEntity> members, HashSet<TypeDesc> types)
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\ExternSymbolNode.cs (1)
45public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (2)
79public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) 81List<CombinedDependencyListEntry> dynamicDependencies = new List<CombinedDependencyListEntry>();
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\ObjectNode.cs (1)
91public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\ShadowMethodNode.cs (1)
118public sealed override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\VirtualMethodUseNode.cs (1)
87public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory factory) => null;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Cycles.cs (10)
22private List<List<Vertex>> _result = new List<List<Vertex>>(); 78List<Vertex> newStronglyConnectedComponent = new List<Vertex>(); 156List<Vertex> newStronglyConnectedComponent = new List<Vertex>(); 177public IEnumerable<List<Vertex>> Result 186private IEnumerable<List<Vertex>> TarjansAlgorithm() 207IEnumerable<List<Vertex>> stronglyConnectedComponents = this.TarjansAlgorithm(); 208foreach (List<Vertex> stronglyConnectedComponent in stronglyConnectedComponents) 324private static void FindCyclesWorker(Edge edge, List<Edge> alreadySeen, ref int operationCount, Stopwatch previousAlgorithmTimeoutWatch)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (1)
94private List<Edge> _edges = new List<Edge>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
28List<TypeDesc> typesToProcess = new List<TypeDesc>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
112private List<EmbeddingState> _overflow;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (2)
139private bool IsDeepPossiblyCyclicInstantiation(TypeDesc type, ref int breadthCounter, List<TypeDesc> seenTypes = null) 198private bool IsDeepPossiblyCyclicInstantiation(Instantiation instantiation, ref int breadthCounter, List<TypeDesc> seenTypes)
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
217var assemblies = new List<string>(context.InputFilePaths.Count + context.ReferenceFilePaths.Count + 1);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (5)
50protected sealed record SectionDefinition(CoffSectionHeader Header, Stream Stream, List<CoffRelocation> Relocations, Utf8String ComdatName, Utf8String SymbolName); 53protected readonly List<SectionDefinition> _sections = new(); 56private readonly List<CoffSymbolRecord> _symbols = new(); 279private protected override void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList) 282List<CoffRelocation> coffRelocations = _sections[sectionIndex].Relocations;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (10)
44private readonly List<ElfSectionDefinition> _sections = new(); 45private readonly List<ElfSymbol> _symbols = new(); 276List<ElfSymbol> sortedSymbols = new(definedSymbols.Count + undefinedSymbols.Count); 371private protected override void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList) 399private void EmitRelocationsX86(int sectionIndex, List<SymbolicRelocation> relocationList) 426private void EmitRelocationsX64(int sectionIndex, List<SymbolicRelocation> relocationList) 455private void EmitRelocationsARM(int sectionIndex, List<SymbolicRelocation> relocationList) 493private void EmitRelocationsARM64(int sectionIndex, List<SymbolicRelocation> relocationList) 529private void EmitRelocationsLoongArch64(int sectionIndex, List<SymbolicRelocation> relocationList) 565private void EmitRelocationsRiscV64(int sectionIndex, List<SymbolicRelocation> relocationList)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (10)
63private readonly List<MachSection> _sections = new(); 67private readonly List<MachSymbol> _symbolTable = new(); 569var sortedDefinedSymbols = new List<MachSymbol>(definedSymbols.Count); 628private protected override void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList) 663List<RelocAnchor> anchors = section.RelocAnchors; 689List<RelocAnchor> anchors = section.RelocAnchors; 720private void EmitRelocationsX64(int sectionIndex, List<SymbolicRelocation> relocationList) 849private void EmitRelocationsArm64(int sectionIndex, List<SymbolicRelocation> relocationList) 1090private List<MachRelocation> relocationCollection; 1115public List<RelocAnchor> RelocAnchors { get; } = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (15)
44private readonly List<SectionData> _sectionIndexToData = new(); 45private readonly List<List<SymbolicRelocation>> _sectionIndexToRelocations = new(); 46private protected readonly List<OutputSection> _outputSectionLayout = []; 254private protected abstract void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList); 311foreach (var relocationList in _sectionIndexToRelocations) 356List<ISymbolRangeNode> symbolRangeNodes = []; 357List<BlockToRelocate> blocksToRelocate = []; 358List<ChecksumsToCalculate> checksumRelocations = []; 598foreach (List<SymbolicRelocation> relocationList in _sectionIndexToRelocations) 669private void EmitChecksums(Stream outputFileStream, List<ChecksumsToCalculate> checksumRelocations) 673List<(long Offset, byte[] Value)> pendingWrites = ComputeChecksums(outputFileStream, checksumRelocations); 682private protected virtual List<(long Offset, byte[] Value)> ComputeChecksums(Stream outputFileStream, List<ChecksumsToCalculate> checksumRelocations) 684List<(long Offset, byte[] Value)> pendingWrites = [];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (4)
124private readonly List<EcmaModule> _inputModules = []; 125private readonly List<OutputNode> _nodes = []; 126private readonly List<OutputSymbol> _symbols = []; 127private readonly List<OutputSection> _sections = [];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (12)
73private Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = []; 78private readonly SortedDictionary<uint, List<ushort>> _baseRelocMap = new(); 563private protected override unsafe void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList) 567if (!_resolvableRelocations.TryGetValue(sectionIndex, out List<SymbolicRelocation> resolvable)) 582if (!_baseRelocMap.TryGetValue(pageRva, out var list)) 601List<Utf8String> exports = new(_exportedSymbolNames.Count); 689List<ushort> entries = kv.Value; 830if (_resolvableRelocations.TryGetValue(i, out List<SymbolicRelocation> relocationsToResolve)) 870private protected override List<(long Offset, byte[] Value)> ComputeChecksums(Stream outputFileStream, List<ChecksumsToCalculate> checksumRelocations) 872List<(long Offset, byte[] Value)> pendingWrites = base.ComputeChecksums(outputFileStream, checksumRelocations); 891private unsafe void ResolveRelocations(int sectionIndex, List<SymbolicRelocation> symbolicRelocations, long imageBase, MemoryStream stream)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (1)
26private readonly List<ReadOnlyMemory<byte>> _buffers = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\UnixObjectWriter.cs (1)
24private readonly List<UnixSectionDefinition> _sections = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmDataSection.cs (3)
16private List<WasmDataSegment> _segments; 17public List<WasmDataSegment> Segments => _segments; 19public WasmDataSection(List<WasmDataSegment> segments, Utf8String name, int contentAlign = 1)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSections.cs (1)
12private readonly List<SectionDataEmitter> _sections = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (16)
316List<ushort> entries = kv.Value; 378if (_resolvableRelocations.TryGetValue(index, out List<SymbolicRelocation> relocations) && 414if (_resolvableRelocations.TryGetValue(section.SectionIndex, out List<SymbolicRelocation> relocations)) 457Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = new(); 458SortedDictionary<uint, List<ushort>> _baseRelocMap = new(); 465private readonly List<PendingBaseReloc> _pendingBaseRelocs = new(); 467private protected override void EmitRelocations(int sectionIndex, List<SymbolicRelocation> relocationList) 471if (!_resolvableRelocations.TryGetValue(sectionIndex, out List<SymbolicRelocation> resolvable)) 514if (!_baseRelocMap.TryGetValue(pageRva, out List<ushort> list)) 537private List<CodeBlob> ParseCodeBlobs(Stream sectionStream) 539List<CodeBlob> blobs = new(); 560private void ResolveCodeRelocations(int sectionIndex, MemoryStream sectionStream, List<CodeBlob> blobs, List<SymbolicRelocation> relocs, bool shrink = false) 661List<CodeBlob> newBlobs = ParseCodeBlobs(sectionStream); 857private void ResolveRelocations(int sectionIndex, Stream sectionStream, MemoryStream dstStream, List<SymbolicRelocation> relocs, long sectionStart = 0, bool shrink = false) 874List<CodeBlob> blobs = ParseCodeBlobs(dstStream);
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
100private readonly List<ModuleDesc> _targetModules = [];
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (6)
197SortedDictionary<string, List<ObjectDataBuilder.Reservation>> nameTable = new SortedDictionary<string, List<ObjectDataBuilder.Reservation>>(); 199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>(); 200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>(); 201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>(); 240foreach (KeyValuePair<string, List<ObjectDataBuilder.Reservation>> name in nameTable)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (2)
58public static ObjectDataBuilder.Reservation Write(ref ObjectDataBuilder dataBuilder, string name, SortedDictionary<string, List<ObjectDataBuilder.Reservation>> nameTable) 60List<ObjectDataBuilder.Reservation> relatedNameReferences;
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (7)
52internal List<Vertex> _items = new List<Vertex>(); 96private List<Section> _sections = new List<Section>(); 652private List<Entry> _elements; 709private List<Vertex> _elements; 1598private List<Vertex> _entries; 1600private List<Vertex> _blocks; 1891private List<Entry> _Entries;
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
658private List<IntPtr> _nativeExceptions; 737private List<object> _handleToObject = new List<object>();
src\runtime\src\coreclr\tools\Common\JitInterface\SwiftPhysicalLowering.cs (5)
106private List<FieldLayoutInterval> CreateConsolidatedIntervals() 109List<FieldLayoutInterval> consolidatedIntervals = new(Intervals.Count); 135public List<(CorInfoType, int)> GetLoweredTypeSequence() 137List<(CorInfoType, int)> loweredTypes = new(); 224List<(CorInfoType type, int offset)> loweredTypes = visitor.GetLoweredTypeSequence();
src\runtime\src\coreclr\tools\Common\JitInterface\WasmLowering.cs (1)
449List<TypeDesc> parameters = new List<TypeDesc>();
TypeSystem\Mutable\MutableModule.cs (4)
24List<string> _moduleRefStrings = new List<string>(); 154private List<ValueTuple<int, object>> _values = new List<ValueTuple<int, object>>(); 155private List<PerMetadataFormCache> _perMetadata = new List<PerMetadataFormCache>(); 159List<byte[]> _readers = new List<byte[]> (); // For now, as we don't maintain knowledge of how long these live, keep them around forever
ILCompiler.RyuJit (43)
Compiler\DependencyAnalysis\MethodCodeNode.cs (2)
13using CombinedDependencyList = System.Collections.Generic.List<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore<ILCompiler.DependencyAnalysis.NodeFactory>.CombinedDependencyListEntry>; 71CombinedDependencyList dependencies = null;
Compiler\ProfileDataManager.cs (1)
19List<ProfileData> _inputData = new List<ProfileData>();
Compiler\RyuJitCompilation.cs (4)
122protected override void ComputeDependencyNodeDependencies(List<DependencyNodeCore<NodeFactory>> obj) 125var methodsToCompile = new List<MethodCodeNode>(); 159private void CompileMultiThreaded(List<MethodCodeNode> methodsToCompile) 173private void CompileSingleThreaded(List<MethodCodeNode> methodsToCompile)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (11)
78List<MethodWithGCInfo> methods = new List<MethodWithGCInfo>(); 91List<MethodWithGCInfo> sortedMethodsList = methods; 137private List<MethodWithGCInfo> ApplyMethodSort(List<MethodWithGCInfo> methods) 326private List<MethodWithGCInfo> PettisHansenSort(List<MethodWithGCInfo> methodsToPlace) 328var graphNodes = new List<CallGraphNode>(methodsToPlace.Count); 363List<List<int>> components = PettisHansen.Sort(graphNodes); 367List<MethodWithGCInfo> result = new List<MethodWithGCInfo>(methodsToPlace.Count); 368foreach (List<int> component in components)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\PettisHansen.cs (7)
15public static List<List<int>> Sort(List<CallGraphNode> graph) 19var phNodes = new List<int>[graph.Count]; 164List<List<int>> components = 175foreach (List<int> component in components.SkipWhile(l => l.Count != 1))
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\IBCDataModel.cs (7)
199public List<ScenarioRunData> Runs; 218public List<BasicBlockData> BasicBlocks; 283Tokens = new Dictionary<SectionFormat, List<TokenData>>(); 293public List<ScenarioData> Scenarios; 294public List<MethodData> Methods; 295public Dictionary<SectionFormat, List<TokenData>> Tokens { get; private set; } 296public List<BlobEntry> BlobStream;
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (3)
358private static List<MethodProfileData> ReadMIbcGroup(EcmaMethod method) 372List<long> instrumentationDataLongs = null; 374var methodProfileData = new List<MethodProfileData>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
658private List<IntPtr> _nativeExceptions; 737private List<object> _handleToObject = new List<object>();
src\runtime\src\coreclr\tools\Common\JitInterface\SwiftPhysicalLowering.cs (5)
106private List<FieldLayoutInterval> CreateConsolidatedIntervals() 109List<FieldLayoutInterval> consolidatedIntervals = new(Intervals.Count); 135public List<(CorInfoType, int)> GetLoweredTypeSequence() 137List<(CorInfoType, int)> loweredTypes = new(); 224List<(CorInfoType type, int offset)> loweredTypes = visitor.GetLoweredTypeSequence();
src\runtime\src\coreclr\tools\Common\JitInterface\WasmLowering.cs (1)
449List<TypeDesc> parameters = new List<TypeDesc>();
ILCompiler.TypeSystem (12)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\FieldLayoutIntervalCalculator.cs (5)
49private readonly List<FieldLayoutInterval> _fieldLayout = new(); 94List<FieldLayoutInterval> nestedIntervals = new List<FieldLayoutInterval>(); 127private void AddToFieldLayout(List<FieldLayoutInterval> fieldLayout, int offset, TypeDesc fieldType) 162private void SetIntervalData(List<FieldLayoutInterval> fieldLayoutInterval, int offset, int count, TIntervalTag tag) 212private void MergeIntervalWithNeighboringIntervals(List<FieldLayoutInterval> fieldLayoutInterval, int intervalIndex)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
210List<EmbeddedSignatureData> ret = new();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\CustomAttributeTypeNameParser.cs (2)
40TypeSystemContext context, List<ModuleDesc> referencedModules, bool needsAssemblyName, bool fallbackToCoreLib, out bool failedBecauseNotFullyQualified) 104internal List<ModuleDesc> _referencedModules;
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\GCPointerMap.Algorithm.cs (1)
143List<MetadataType> types,
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaSignatureParser.cs (1)
22private List<EmbeddedSignatureData> _embeddedSignatureDataList;
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (2)
171private void ProbeScopeForLocals(List<ILLocalVariable> variables, LocalScopeHandle localScopeHandle) 203var variables = new List<ILLocalVariable>();
illink (195)
ILLink.CodeFixProvider (8)
RequiresUnsafeCodeFixProvider.cs (2)
312List<StatementSyntax> statementsToWrap; 336var newStatements = new List<StatementSyntax>();
SynchronizeUnsafeContractCodeFixProvider.cs (6)
123List<(DocumentId DocumentId, SyntaxNode Declaration)> baseDeclarations = []; 171List<(DocumentId DocumentId, SyntaxNode Declaration)> declarations, 207private static List<(DocumentId DocumentId, SyntaxNode Declaration)> GetEditableDeclarations( 212var declarations = new List<(DocumentId, SyntaxNode)>(); 276var contracts = new List<ISymbol>(); 279var chain = new List<ISymbol> { symbol };
ILLink.RoslynAnalyzer (12)
DataFlow\DynamicallyAccessedMembersBinder.cs (5)
24var members = new List<ISymbol>(); 85var members = new List<ISymbol>(); 98var members = new List<ISymbol>(); 415public static void GetAllOnType(this ITypeSymbol type, bool declaredOnly, List<ISymbol> members) => GetAllOnType(type, declaredOnly, members, new HashSet<ITypeSymbol>(SymbolEqualityComparer.Default)); 418private static void GetAllOnType(ITypeSymbol type, bool declaredOnly, List<ISymbol> members, HashSet<ITypeSymbol> types)
DataFlow\InterproceduralState.cs (1)
55var methodsList = new List<MethodBodyValue>(Methods.GetKnownValues());
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (2)
77List<int>? nestedNameLengths = null; 262private static TypeName? GetDeclaringType(string fullTypeName, List<int>? nestedNameLengths, AssemblyNameInfo? assemblyName)
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
226ref List<int>? nestedNameLengths, ref int recursiveDepth, out int totalLength)
src\runtime\src\tools\illink\src\ILLink.Shared\Annotations.cs (2)
59var memberTypesList = AllDynamicallyAccessedMemberTypes 136var args = new List<string>();
TrimAnalysis\TrimDataFlowAnalysis.cs (1)
90var blocks = cfg.Blocks.ToList();
Infrastructure.Common (9)
OSHelper.cs (2)
29private static List<Tuple<string, OSID>> _runtimeToOSID = new List<Tuple<string, OSID>> 51private static List<Tuple<string, OSID>> _descriptionToOSID = new List<Tuple<string, OSID>>
TestEventListener.cs (4)
19private List<EventSource> _tmpEventSourceList = new List<EventSource>(); 21public TestEventListener(List<string> targetSourceNames, EventLevel level) 50List<EventSource> sources; 64List<EventSource> tmp = _tmpEventSourceList;
xunit\ConditionAttribute.cs (1)
45List<string> falseConditions = new List<string>(conditionCount);
xunit\WcfTestDiscoverer.cs (2)
36List<string> issueSkipList = new List<string>(); 63List<string> skipReasons = new List<string>(conditions.Length);
Infrastructure.Tests (102)
CITimeline\GenerateCITimelineTests.cs (1)
14private static (JsonElement RunInfo, List<JsonElement> Jobs) LoadTestData(string filename) =>
ExtractTestPartitions\ExtractTestPartitionsTests.cs (1)
315var outputLines = new List<string>();
ExtractTestPartitions\MockAssemblyBuilder.cs (1)
234var references = new List<MetadataReference>
Pipelines\ExtensionE2eWorkflowTests.cs (3)
23var rows = MatrixIncludeRows(job).ToList(); 33var steps = ((YamlSequenceNode)job.Children[new YamlScalarNode("steps")]).Cast<YamlMappingNode>().ToList(); 84var unitSteps = ((YamlSequenceNode)extensionUnitJob.Children[new YamlScalarNode("steps")]).Cast<YamlMappingNode>().ToList();
Pipelines\NixCliPackageTests.cs (1)
148var arguments = new List<string> { "--version", "13.4.0", "--output-path", outputPath };
Pipelines\NpmCliPackageTests.cs (1)
622var descriptions = new List<string>();
PowerShellScripts\DownloadNativeArchivesTests.cs (2)
397var args = new List<string> 447private List<MockArtifact> _artifacts = new();
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (1)
624var args = new List<string>
PowerShellScripts\PowerShellCommand.cs (2)
89var outputLines = new List<string>(); 189var argsList = new List<string>
PowerShellScripts\ScanTestPartitionsFromSourceGuardTests.cs (2)
44var offenders = new List<string>(); 70var covered = s_standaloneLiteral.Matches(content)
PowerShellScripts\SplitTestMatrixByDepsTests.cs (2)
257var args = new List<string>(); 289var convertedEntries = new List<Dictionary<string, object>>();
PowerShellScripts\SplitTestProjectsTests.cs (1)
190var args = new List<string>
PowerShellScripts\StageNativeCliToolPackagesTests.cs (1)
291var args = new List<string>
Shared\TestDataBuilder.cs (1)
119var partitions = new List<string>();
TestTriggerMap\SelectTestsAcceptanceTests.cs (1)
109private readonly List<TemporaryWorkspace> _tempDirs = [];
TestTriggerMap\SelectTestsCliTests.cs (1)
285var projects = Enumerable.Range(1, 14).Select(i => $"Aspire.Pkg{i:00}.Tests").ToList();
TestTriggerMap\TestTriggerMapModel.cs (14)
20public Dictionary<string, List<string>> Groups { get; set; } = new(); 22public List<ConventionRule> Conventions { get; set; } = new(); 26public List<string> Ignore { get; set; } = new(); 28public List<PathRule> PathRules { get; set; } = new(); 30public List<AffectedProjectRule> AffectedProjectRules { get; set; } = new(); 32public List<DerivedRule> DerivedTargets { get; set; } = new(); 63foreach (var members in Groups.Values) 140public List<string> Paths { get; set; } = new(); 142public List<string> Targets { get; set; } = new(); 161public List<string> Tests { get; set; } = new(); 163public List<string> Targets { get; set; } = new(); 172public List<string> Projects { get; set; } = new(); 174public List<string> Targets { get; set; } = new(); 185public List<string> KeepRouted { get; set; } = new();
TestTriggerMap\TestTriggerMapTests.cs (25)
36var problems = new List<string>(); 65var dupeConventionPatterns = s_map.Conventions 129var uncovered = s_trackedFiles 166var missing = Directory.EnumerateDirectories(testsRoot) 191var dead = s_map.AffectedProjectRules 209var globs = s_map.AllSelectingGlobs() 214var deadGlobs = globs.Where(g => !GlobMatchesAnyTrackedFile(g)).ToList(); 244var bad = members.Where(m => !m.StartsWith("test:", StringComparison.Ordinal) && !m.StartsWith("job:", StringComparison.Ordinal)) 248var dupes = members.GroupBy(m => m, StringComparer.Ordinal) 255var undefined = s_map.AllReferencedTargets() 291var referenced = s_map.AllReferencedTargets() 296var unknown = referenced.Where(j => !expected.ContainsKey(j)).Order(StringComparer.Ordinal).ToList(); 299var broken = expected.Where(kvp => referenced.Contains(kvp.Key) && !kvp.Value()) 342var declaredNotEmittable = declared.Except(emittable).Order(StringComparer.Ordinal).ToList(); 348var consumedNotDeclared = consumed.Except(declared).Order(StringComparer.Ordinal).ToList(); 354var declaredUnused = declared.Except(consumed).Order(StringComparer.Ordinal).ToList(); 388var wrong = new List<string>(); 409var missing = s_map.AllReferencedTargets() 439var keepRouted = s_map.Prefilter!.KeepRouted; 441var dead = keepRouted.Where(g => !GlobMatchesAnyTrackedFile(g)).Order(StringComparer.Ordinal).ToList(); 460var allGlobs = s_map.PathRules 467var orphaned = s_trackedFiles 490var allGlobs = s_map.PathRules 504var referencedActions = Directory.EnumerateFiles(workflowsDir, "*.yml") 513var unrouted = referencedActions
tools\GenerateCITimeline\GitHubApi.cs (8)
40var objects = new List<JsonElement>(); 65var merged = new List<JsonElement>(); 87var merged = new Dictionary<string, List<string>>(); 92if (!merged.TryGetValue(prop.Name, out var list)) 130public static async Task<(JsonElement RunInfo, List<JsonElement> Jobs)> FetchRunDataAsync(string repo, string runId) 135var jobs = new List<JsonElement>(); 154public static (JsonElement RunInfo, List<JsonElement> Jobs) LoadJsonData(string path) 171var jobs = new List<JsonElement>();
tools\GenerateCITimeline\TimelineRenderer.cs (27)
19List<string> Labels) 28public List<JobInfo> Jobs { get; } = []; 204private static List<string> GetLabels(JsonElement job) 206var labels = new List<string>(); 220private static List<JobGroup> BuildJobGroups(List<JsonElement> jobs, DateTimeOffset t0) 271private static string RenderSummaryTable(List<JobGroup> groups, double totalSeconds) 273var allJobs = groups.SelectMany(g => g.Jobs).ToList(); 282var statusParts = new List<string>(); 292var labelParts = runnerLabels 313private static string RenderCriticalPath(List<JobGroup> groups, double minTotalSeconds = 300) 320var filteredGroups = groups.Where(g => !IsResultsPhase(g)).ToList(); 322var allJobs = filteredGroups 357private static string RenderHotspots(List<JobGroup> groups) 359var filteredGroups = groups.Where(g => !IsResultsPhase(g)).ToList(); 360var allJobs = filteredGroups.SelectMany(g => g.Jobs).ToList(); 366var worstJobs = filteredGroups 394private static string RenderTimelineBars(List<JobGroup> groups, double totalSeconds, double minTotalSeconds = 0) 401var phaseJobs = new Dictionary<string, List<JobInfo>>(); 409if (!phaseJobs.TryGetValue(phase, out var list)) 419foreach (var list in phaseJobs.Values) 430if (!phaseJobs.TryGetValue(phase, out var jobsInPhase) || jobsInPhase.Count == 0) 456public static string GenerateSummary(JsonElement runInfo, List<JsonElement> jobs, double minTotalMinutes = 0) 458var allCreated = jobs 464var allCompleted = jobs 481var actualCompleted = jobs 510var groups = BuildJobGroups(jobs, t0);
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (3)
1312List<string> regexPatterns = []; 2130private static void ExtractRegexPatterns(JsonElement patternsArray, List<string> regexPatterns) 2148List<string> resultElements = [];
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (1)
186var steps = ((YamlSequenceNode)prepareReleaseJob.Children[new YamlScalarNode("steps")]).Cast<YamlMappingNode>().ToList();
WorkflowScripts\NodeCommand.cs (1)
81List<string> outputLines = [];
WorkflowScripts\SelectTestsCommentScriptTests.cs (1)
265var body = new List<string>();
installer.tasks (2)
GenerateTestSharedFrameworkDepsFile.cs (2)
53List<RuntimeFile> runtimeFiles = []; 54List<RuntimeFile> nativeFiles = [];
Keycloak.Web (1)
WeatherApiClient.cs (1)
7List<WeatherForecast>? forecasts = null;
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
TestCommand.cs (1)
22public List<string> Arguments { get; } = [];
Microsoft.Analyzers.Extra (28)
CallAnalyzer.Handlers.cs (5)
28if (_state.Methods.TryGetValue(target.OriginalDefinition, out var handlers)) 44if (_state.Interfaces.TryGetValue(type, out var l)) 62if (_state.Interfaces.TryGetValue(iface, out var l)) 87if (_state.Ctors.TryGetValue(op.Constructor.OriginalDefinition, out var handlers)) 103if (_state.Props.TryGetValue(op.Property, out var handlers))
CallAnalyzer.Registrar.cs (5)
35if (!_state.Methods.TryGetValue(method, out var l)) 89if (!_state.Ctors.TryGetValue(ctor, out var l)) 129if (!_state.Props.TryGetValue(prop, out var l)) 167if (!_state.Interfaces.TryGetValue(method.ContainingType, out var handlers)) 228if (!_state.ExceptionTypes.TryGetValue(type, out var l))
CallAnalyzer.State.cs (6)
16public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IInvocationOperation>>> Methods = new(SymbolEqualityComparer.Default); 17public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IObjectCreationOperation>>> Ctors = new(SymbolEqualityComparer.Default); 18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default); 19public readonly Dictionary<ITypeSymbol, List<Action<OperationAnalysisContext, IThrowOperation>>> ExceptionTypes = new(SymbolEqualityComparer.Default); 20public readonly Dictionary<ITypeSymbol, List<MethodHandlers>> Interfaces = new(SymbolEqualityComparer.Default); 32public List<Action<OperationAnalysisContext, IInvocationOperation>> Actions { get; } = [];
LegacyLogging.cs (1)
21var legacyMethods = new List<IMethodSymbol>();
LegacyLoggingFixer.cs (6)
154var invocationArgList = MakeArgumentList(details, invocationOp); 361private static List<SyntaxNode> MakeParameterList( 379var parameters = new List<SyntaxNode> 427private static List<ITypeSymbol> MakeArgumentList(FixDetails details, IInvocationOperation invocationOp) 429var args = new List<ITypeSymbol> 476var argList = new List<SyntaxNode>();
LegacyLoggingFixer.FixDetails.cs (4)
54var interpolationArgs = new List<IOperation>(); 55var messageArgs = new List<string>(); 261private static List<string> ExtractTemplateArgs(string message) 263var args = new List<string>();
MakeExeTypesInternalAnalyzer.cs (1)
79var disqualifyingBaseClasses = new List<ITypeSymbol>();
Microsoft.Analyzers.Extra.Tests (10)
RoslynTestUtils.cs (9)
38var refs = new List<MetadataReference>(); 155var filtered = new List<Diagnostic>(); 303var l = sourceNames.ToList(); 342var actions = new List<CodeAction>(); 372var results = new List<string>(); 376var l = sourceNames.ToList(); 418var l = sourceNames.ToList(); 463var results = new List<string>(); 467var l = sourceNames.ToList();
SyntaxNodeExtensionsTests.cs (1)
22var emptyList = new List<string>();
Microsoft.Analyzers.Local (28)
ApiLifecycleAnalyzer.cs (2)
121if (assemblyAnalysis.MissingConstraints.TryGetValue(symbol, out var missingContraintsForSymbol)) 129if (assemblyAnalysis.MissingBaseTypes.TryGetValue(symbol, out var missingBaseForSymbol))
AssemblyAnalysis.cs (5)
17public Dictionary<ISymbol, List<string>> MissingConstraints { get; } = new(SymbolEqualityComparer.Default); 18public Dictionary<ISymbol, List<string>> MissingBaseTypes { get; } = new(SymbolEqualityComparer.Default); 165if (MissingBaseTypes.TryGetValue(type, out var collection)) 181if (MissingConstraints.TryGetValue(type, out var collection)) 283var modifiers = new List<string>(6);
CallAnalyzer.Handlers.cs (6)
28if (_state.Methods.TryGetValue(target.OriginalDefinition, out var handlers)) 44if (_state.Interfaces.TryGetValue(type, out var l)) 62if (_state.Interfaces.TryGetValue(iface, out var l)) 87if (_state.Ctors.TryGetValue(op.Constructor.OriginalDefinition, out var handlers)) 103if (_state.Props.TryGetValue(op.Property, out var handlers)) 122if (_state.ExceptionTypes.TryGetValue(creationOp.Type, out var handlers))
CallAnalyzer.Registrar.cs (5)
35if (!_state.Methods.TryGetValue(method, out var l)) 89if (!_state.Ctors.TryGetValue(ctor, out var l)) 129if (!_state.Props.TryGetValue(prop, out var l)) 167if (!_state.Interfaces.TryGetValue(method.ContainingType, out var handlers)) 228if (!_state.ExceptionTypes.TryGetValue(type, out var l))
CallAnalyzer.State.cs (6)
16public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IInvocationOperation>>> Methods = new(SymbolEqualityComparer.Default); 17public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IObjectCreationOperation>>> Ctors = new(SymbolEqualityComparer.Default); 18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default); 19public readonly Dictionary<ITypeSymbol, List<Action<OperationAnalysisContext, IThrowOperation>>> ExceptionTypes = new(SymbolEqualityComparer.Default); 20public readonly Dictionary<ITypeSymbol, List<MethodHandlers>> Interfaces = new(SymbolEqualityComparer.Default); 32public List<Action<OperationAnalysisContext, IInvocationOperation>> Actions { get; } = [];
JsonArray.cs (1)
20private readonly List<JsonValue> _items = [];
Utils.cs (3)
28var result = new List<string>(); 63var result = new List<string>(); 84private static void GetBaseTypesImpl(List<string> results, string baseTypesString)
Microsoft.Analyzers.Local.Tests (10)
InternalReferencedInPublicDocAnalyzerTests.cs (1)
461var detected = result.Where(IsInternalReferencedInPublicDocDiagnostic).ToList();
RoslynTestUtils.cs (9)
38var refs = new List<MetadataReference>(); 155var filtered = new List<Diagnostic>(); 304var l = sourceNames.ToList(); 343var actions = new List<CodeAction>(); 373var results = new List<string>(); 377var l = sourceNames.ToList(); 419var l = sourceNames.ToList(); 464var results = new List<string>(); 468var l = sourceNames.ToList();
Microsoft.AspNetCore (7)
BootstrapHostBuilder.cs (3)
16private readonly List<Action<IConfigurationBuilder>> _configureHostActions = new(); 17private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppActions = new(); 18private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new();
ConfigureHostBuilder.cs (1)
22private readonly List<Action<HostBuilderContext, object>> _configureContainerActions = new();
WebApplication.cs (1)
30private readonly List<EndpointDataSource> _dataSources = new();
WebApplicationBuilder.cs (2)
603sourceValue is List<string> sourceDescriptions && 604destinationValue is List<string> destinationDescriptions)
Microsoft.AspNetCore.Analyzers (6)
CompilationFeatureDetector.cs (1)
30var configureMethods = ConfigureMethodVisitor.FindConfigureMethods(symbols, compilation.Assembly);
ConfigureMethodVisitor.cs (2)
11public static List<IMethodSymbol> FindConfigureMethods(StartupSymbols symbols, IAssemblySymbol assembly) 19private readonly List<IMethodSymbol> _methods;
StartupAnalysisBuilder.cs (3)
12private readonly Dictionary<INamedTypeSymbol, List<object>> _analysesByType; 22_analysesByType = new Dictionary<INamedTypeSymbol, List<object>>(SymbolEqualityComparer.Default); 63if (!_analysesByType.TryGetValue(type, out var list))
Microsoft.AspNetCore.Antiforgery (8)
Internal\DefaultAntiforgeryTokenGenerator.cs (1)
230if (claimsPrincipal.Identities is List<ClaimsIdentity> identitiesList)
Internal\DefaultClaimUidExtractor.cs (7)
21var uniqueIdentifierParameters = GetUniqueIdentifierParameters(claimsPrincipal.Identities); 31public static List<string>? GetUniqueIdentifierParameters(IEnumerable<ClaimsIdentity> claimsIdentities) 33var identitiesList = claimsIdentities as List<ClaimsIdentity>; 85var allClaims = new List<Claim>(); 102var identifierParameters = new List<string>(allClaims.Count * 3); 114private static void ComputeSha256(List<string> parameters, Span<byte> destination)
Microsoft.AspNetCore.App.Analyzers (20)
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();
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (7)
267var charResults = new List<(char ch, TextSpan span)>(); 304string tokenText, int offset, int startIndexInclusive, int endIndexExclusive, List<(char ch, TextSpan span)> charResults) 314private static void ConvertCharactersToRunes(List<(char ch, TextSpan span)> charResults, ImmutableList<VirtualChar>.Builder runeResults) 348List<(char ch, TextSpan span)> result, string tokenText, int offset, int index) 361List<(char ch, TextSpan span)> result, string tokenText, int offset, int index) 394List<(char ch, TextSpan span)> result, string tokenText, int offset, int index) 413List<(char ch, TextSpan span)> result, string tokenText, int offset, int index, char character)
Mvc\DetectAmbiguousActionRoutes.cs (1)
21private static void DetectAmbiguousActionRoutes(SymbolAnalysisContext context, WellKnownTypes wellKnownTypes, RoutePatternTree? controllerRoutePattern, List<ActionRoute> actionRoutes)
Mvc\DetectOverriddenAuthorizeAttribute.cs (4)
27INamedTypeSymbol controllerSymbol, List<AttributeInfo> authorizeAttributes, out string? allowAnonClass) 57IMethodSymbol actionSymbol, List<AttributeInfo> authorizeAttributes, string? allowAnonClass) 153List<AttributeInfo> authorizeAttributes, out bool foundAllowAnonymous) 156List<AttributeData>? localAuthorizeAttributeOverflow = null;
Mvc\MvcAnalyzer.cs (3)
40var concurrentQueue = new ConcurrentQueue<(List<ActionRoute> ActionRoutes, List<AttributeInfo> AuthorizeAttributes)>(); 91private static void PopulateActionRoutes(SymbolAnalysisContext context, WellKnownTypes wellKnownTypes, RouteUsageCache routeUsageCache, List<ActionRoute> actionRoutes, IMethodSymbol methodSymbol)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
486public readonly List<RoutePatternItem> Items = new();
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
335public readonly List<RoutePatternItem> Items = new();
src\aspnetcore\src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
21private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Microsoft.AspNetCore.Authentication.Abstractions (2)
TokenExtensions.cs (2)
34var tokenNames = new List<string>(); 99var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.Certificate (2)
CertificateAuthenticationHandler.cs (2)
151var chainErrors = new List<string>(chain.ChainStatus.Length); 256var claims = new List<Claim>();
Microsoft.AspNetCore.Authentication.Cookies (4)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationSchemeProvider.cs (1)
49private readonly List<AuthenticationScheme> _requestHandlers;
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (50)
_generated\11\DeviceBoundSessionJsonContext.GetJsonTypeInfo.g.cs (3)
45if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>)) 49if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>)) 53if (type == typeof(global::System.Collections.Generic.List<string>))
_generated\3\DeviceBoundSessionJsonContext.SessionInstruction.g.cs (8)
138var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>> 153AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionInstruction).GetProperty("Credentials", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>), global::System.Array.Empty<global::System.Type>(), null), 156properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>>(options, info4); 158var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<string>> 173AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionInstruction).GetProperty("AllowedRefreshInitiators", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null), 176properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<string>>(options, info5); 212global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential> __value_Credentials = ((global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionInstruction)value).Credentials; 218global::System.Collections.Generic.List<string> __value_AllowedRefreshInitiators = ((global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionInstruction)value).AllowedRefreshInitiators;
_generated\4\DeviceBoundSessionJsonContext.SessionScope.g.cs (4)
96var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>> 111AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScope).GetProperty("ScopeSpecification", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>), global::System.Array.Empty<global::System.Type>(), null), 114properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>>(options, info2); 139global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule> __value_ScopeSpecification = ((global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScope)value).ScopeSpecification;
_generated\6\DeviceBoundSessionJsonContext.ListSessionCredential.g.cs (10)
16private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>>? _ListSessionCredential; 22public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>> ListSessionCredential 25get => _ListSessionCredential ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>)); 28private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>> Create_ListSessionCredential(global::System.Text.Json.JsonSerializerOptions options) 30if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>> jsonTypeInfo)) 32var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>> 40jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>, global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>(options, info); 50private void ListSessionCredentialSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionCredential>? value)
_generated\7\DeviceBoundSessionJsonContext.ListSessionScopeRule.g.cs (10)
16private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>>? _ListSessionScopeRule; 22public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>> ListSessionScopeRule 25get => _ListSessionScopeRule ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>)); 28private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>> Create_ListSessionScopeRule(global::System.Text.Json.JsonSerializerOptions options) 30if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>> jsonTypeInfo)) 32var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>> 40jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>, global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>(options, info); 50private void ListSessionScopeRuleSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.DeviceBoundSessions.SessionScopeRule>? value)
_generated\8\DeviceBoundSessionJsonContext.ListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>? _ListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> ListString 22get => _ListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> Create_ListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<string>, string>(options, info); 47private void ListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<string>? value)
DeviceBoundSessionChallengeProtector.cs (1)
195var allClaims = new List<Claim>();
DeviceBoundSessionHandler.cs (1)
282var scopeRules = Options.ScopeSpecifications.Select(r => new SessionScopeRule
SessionInstruction.cs (2)
47public List<SessionCredential>? Credentials { get; set; } 54public List<string> AllowedRefreshInitiators { get; set; } = [];
SessionScope.cs (1)
32public List<SessionScopeRule> ScopeSpecification { get; set; } = [];
Microsoft.AspNetCore.Authentication.JwtBearer (6)
JwtBearerConfigureOptions.cs (3)
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(); 80private static IEnumerable<SecurityKey> GetIssuerSigningKeys(IConfiguration configuration, List<string?> issuers)
JwtBearerHandler.cs (3)
97List<Exception>? validationFailures = null; 222private void RecordTokenValidationError(Exception exception, List<Exception> exceptions) 381var messages = new List<string>(exceptions.Count);
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\LdapAdapter.cs (1)
67var retrievedClaims = new List<string>();
Microsoft.AspNetCore.Authentication.OAuth (2)
ClaimActionCollection.cs (1)
27var itemsToRemove = Actions.Where(map => string.Equals(claimType, map.ClaimType, StringComparison.OrdinalIgnoreCase)).ToList();
OAuthHandler.cs (1)
150var authTokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1122var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.Twitter (15)
_generated\2\TwitterJsonContext.TwitterErrorResponse.g.cs (3)
55var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>> 70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.Twitter.TwitterErrorResponse).GetProperty("Errors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>), global::System.Array.Empty<global::System.Type>(), null), 73properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>>(options, info0);
_generated\3\TwitterJsonContext.ListTwitterError.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>>? _ListTwitterError; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>> ListTwitterError 24get => _ListTwitterError ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>> Create_ListTwitterError(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>, global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>(options, info); 49private void ListTwitterErrorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>? value)
_generated\7\TwitterJsonContext.GetJsonTypeInfo.g.cs (1)
32if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.Authentication.Twitter.TwitterError>))
TwitterErrorResponse.cs (1)
8public List<TwitterError>? Errors { get; set; }
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationHandler.cs (1)
179List<Exception>? validationFailures = null;
Microsoft.AspNetCore.Authorization (4)
AuthorizationHandlerContext.cs (1)
18private List<AuthorizationFailureReason>? _failedReasons;
AuthorizationPolicy.cs (3)
146List<IAuthorizeData>? authorizeData = null; 147List<AuthorizationPolicy>? policies = null; 148List<IAuthorizationRequirementData>? requirementData = null;
Microsoft.AspNetCore.Components (81)
CascadingParameterState.cs (2)
46List<CascadingParameterState>? resultStates = null; 118List<CascadingParameterInfo>? result = null;
CascadingValueSource.cs (3)
19private readonly ConcurrentDictionary<Dispatcher, List<ComponentState>>? _subscribers; 94var tasks = new List<Task>(); 177if (_subscribers?.TryGetValue(dispatcher, out var subscribersForDispatcher) == true)
DefaultComponentPropertyActivator.cs (1)
51List<(string name, Type propertyType, PropertySetter setter, object? serviceKey)>? injectables = null;
NavigationManager.cs (1)
34private readonly List<Func<LocationChangingContext, ValueTask>> _locationChangingHandlers = new();
PersistentComponentState.cs (4)
19private readonly List<PersistComponentStateRegistration> _registeredCallbacks; 20private readonly List<RestoreComponentStateRegistration> _registeredRestoringCallbacks; 24List<PersistComponentStateRegistration> pauseCallbacks, 25List<RestoreComponentStateRegistration> restoringCallbacks)
PersistentState\ComponentStatePersistenceManager.cs (5)
14private readonly List<PersistComponentStateRegistration> _registeredCallbacks = new(); 15private readonly List<RestoreComponentStateRegistration> _registeredRestoringCallbacks = new(); 47internal List<PersistComponentStateRegistration> RegisteredCallbacks => _registeredCallbacks; 214List<Task<bool>>? pendingCallbackTasks = null; 294static async Task<bool> AnyTaskFailed(List<Task<bool>> pendingCallbackTasks)
PersistentState\PersistentServicesRegistry.cs (3)
27private List<(PersistingComponentStateSubscription, RestoringComponentStateSubscription)> _subscriptions = []; 60var subscriptions = new List<(PersistingComponentStateSubscription, RestoringComponentStateSubscription)>( 187var keys = new List<(string, Type)>();
PersistentState\PersistingComponentStateSubscription.cs (2)
14private readonly List<PersistComponentStateRegistration>? _callbacks; 17internal PersistingComponentStateSubscription(List<PersistComponentStateRegistration> callbacks, PersistComponentStateRegistration callback)
PersistentState\RestoringComponentStateSubscription.cs (2)
11private readonly List<RestoreComponentStateRegistration> _registeredRestoringCallbacks; 15List<RestoreComponentStateRegistration> registeredRestoringCallbacks,
Reflection\ComponentProperties.cs (1)
259var propertyNames = new List<string>();
Reflection\MemberAssignment.cs (6)
32List<PropertyInfo> many; 40many = (List<PropertyInfo>)others; 57var list = (List<PropertyInfo>)item.Value; 73var many = (List<PropertyInfo>)others;
Rendering\ComponentState.cs (1)
206List<CascadingParameterState>? remainingCascadingParameters = null;
RenderTree\Renderer.cs (10)
55private List<Task>? _pendingTasks; 945List<Task> batch = null; 980List<Task> batch = null; 998private void NotifyRenderCompleted(ComponentState state, ref List<Task> batch) 1049List<Exception> exceptions = null; 1284List<Exception> exceptions = null; 1285List<Task> asyncDisposables = null; 1323async Task HandleAsyncExceptions(List<Task> tasks) 1325List<Exception> asyncExceptions = null; 1342void NotifyExceptions(List<Exception> exceptions)
RenderTree\RenderTreeDiffBuilder.cs (2)
769var frameTypes = new List<string>(); 780var componentPath = new List<string>();
Routing\RouteTableFactory.cs (8)
41var componentTypes = GetRouteableComponents(routeKey); 50private static List<Type> GetRouteableComponents(RouteKey routeKey) 52var routeableComponents = new List<Type>(); 72static void GetRouteableComponents(List<Type> routeableComponents, Assembly assembly) 86internal static RouteTable Create(List<Type> componentTypes, IServiceProvider serviceProvider) 136var unusedRouteParameterNames = GetUnusedParameterNames(allRouteParameterNames!, routeParameterNames!); 235private static List<string>? GetUnusedParameterNames(HashSet<string> allRouteParameterNames, HashSet<string> routeParameterNames) 237List<string>? unusedParameters = null;
Sections\SectionRegistry.cs (6)
11private readonly Dictionary<object, List<SectionContent>> _providersByIdentifier = new(); 19if (!_providersByIdentifier.TryGetValue(identifier, out var providers)) 37if (!_providersByIdentifier.TryGetValue(identifier, out var providers)) 95if (!_providersByIdentifier.TryGetValue(identifier, out var providers)) 159private static SectionContent? GetCurrentProviderContentOrDefault(List<SectionContent> providers) 165=> _providersByIdentifier.TryGetValue(identifier, out var existingList)
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
25/// This differs from a <see cref="System.Collections.Generic.List{T}"/> in that
src\aspnetcore\src\Components\Shared\src\StringSegmentAccumulator.cs (1)
13private List<ReadOnlyMemory<char>>? _multiple;
src\aspnetcore\src\Http\Routing\src\ParameterPolicyActivator.cs (4)
119var matchingConstructors = GetMatchingConstructors(constructors, serviceProvider, arguments.Length); 146private static List<ConstructorInfo> GetMatchingConstructors(ConstructorInfo[] constructors, IServiceProvider? serviceProvider, int argumentsLength) 148var result = new List<ConstructorInfo>(); 159private static ConstructorInfo GetLongestConstructor(List<ConstructorInfo> constructors, Type parameterPolicyType)
src\aspnetcore\src\Http\Routing\src\Patterns\RouteParameterParser.cs (1)
103var constraints = new List<RoutePatternParameterPolicyReference>();
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (4)
443Dictionary<string, List<RoutePatternParameterPolicyReference>>? parameterPolicyReferences, 469List<RoutePatternParameterPart>? parameters = null; 608List<RoutePatternParameterPolicyReference>? parameterConstraints = null; 614parameterPolicyReferences = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternParser.cs (7)
32var segments = new List<RoutePatternPathSegment>(); 71private static bool ParseSegment(Context context, List<RoutePatternPathSegment> segments) 76var parts = new List<RoutePatternPart>(); 143private static bool ParseParameter(Context context, List<RoutePatternPart> parts) 245private static bool ParseLiteral(Context context, List<RoutePatternPart> parts) 316private static bool IsAllValid(Context context, List<RoutePatternPathSegment> segments) 338private static bool IsSegmentValid(Context context, List<RoutePatternPart> parts)
src\aspnetcore\src\Http\Routing\src\RouteConstraintBuilder.cs (3)
27private readonly Dictionary<string, List<IRouteConstraint>> _constraints; 44_constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 169if (!_constraints.TryGetValue(key, out var list))
src\aspnetcore\src\Http\Routing\src\Tree\InboundRouteEntry.cs (1)
76public List<string> UnusedRouteParameterNames { get; set; }
src\aspnetcore\src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
88List<string> unusedParameterNames)
src\aspnetcore\src\Http\Routing\src\Tree\UrlMatchingNode.cs (1)
50public List<InboundMatch> Matches { get; }
Microsoft.AspNetCore.Components.AI (23)
Blocks\ContentBlock.cs (1)
20private readonly List<Action> _callbacks = new();
Blocks\RichContentBlock.cs (1)
13private readonly List<string> _segments = new();
Blocks\RichText\RichTextNode.cs (1)
17private List<RichTextNode>? _children;
Components\ConversationTurnRenderer.cs (1)
14private readonly List<BlockContainer> _blockContainers = new();
Components\MessageList.cs (1)
20private readonly List<ConversationTurnRenderer> _turnRenderers = new();
Components\MessageListContext.cs (1)
16private readonly List<BlockRendererRegistration> _registrations = new();
Engine\AgentContext.cs (7)
23private readonly List<ConversationTurn> _turns = new(); 24private readonly List<Action<ConversationTurn>> _turnAddedCallbacks = new(); 25private readonly List<Action<ConversationStatus>> _statusChangedCallbacks = new(); 26private readonly List<Action<ConversationTurn, ContentBlock>> _blockAddedCallbacks = new(); 202var actions = new List<UIActionBlock>(); 300private List<T>? _list; 303internal CallbackRegistration(List<T> list, T callback)
Engine\ConversationTurn.cs (2)
12private readonly List<ContentBlock> _requestBlocks = new(); 13private readonly List<ContentBlock> _responseBlocks = new();
Engine\UIAgent.cs (3)
34private readonly List<ChatMessage> _history = new(); 129var assistantUpdates = new List<ChatResponseUpdate>(); 172var tools = chatOptions.Tools is null
Pipeline\BlockMappingPipeline.cs (2)
18private readonly List<IHandlerEntry> _handlers = new(); 19private readonly List<IActiveEntry> _activeStack = new();
Pipeline\TextBlockHandler.cs (2)
57var paragraphs = new List<RichTextNode>(); 79private static void AddParagraph(List<RichTextNode> paragraphs, ReadOnlySpan<char> text)
Pipeline\UIAgentOptions.cs (1)
26internal List<IHandlerRegistration> HandlerRegistrations { get; } = new();
Microsoft.AspNetCore.Components.AI.SourceGenerators (9)
ToolBlockParser.cs (9)
28var diagnostics = new List<DiagnosticInfo>(); 94var parameters = ParseParameters(classSymbol, diagnostics, ct); 95var resultProperties = ParseResultProperties(classSymbol, diagnostics, ct); 112private static List<ToolParameterInfo> ParseParameters( 113INamedTypeSymbol classSymbol, List<DiagnosticInfo> diagnostics, CancellationToken ct) 115var parameters = new List<ToolParameterInfo>(); 156private static List<ToolResultPropertyInfo> ParseResultProperties( 157INamedTypeSymbol classSymbol, List<DiagnosticInfo> diagnostics, CancellationToken ct) 159var resultProperties = new List<ToolResultPropertyInfo>();
Microsoft.AspNetCore.Components.Analyzers (9)
ComponentParameterAnalyzer.cs (2)
52var properties = new List<IPropertySymbol>(); 71var captureUnmatchedValuesParameters = new List<IPropertySymbol>();
ForLoopIteratorInClosureAnalyzer.cs (4)
274public List<ILocalSymbol> Iterators { get; } = new(); 276public List<ILocalSymbol> PotentialIterators { get; private set; } = new(); 279public List<ILocalSymbol> AllForVariables { get; } = new(); 282public List<ILocalReferenceOperation> IteratorOccurrences { get; } = new();
StateHasChangedAnalyzer.cs (2)
106var awaitExpressions = body.DescendantNodes(static node => !IsNestedFunctionLike(node)).OfType<AwaitExpressionSyntax>().OrderBy(n => n.SpanStart).ToList(); 107var stateCalls = body.DescendantNodes(static node => !IsNestedFunctionLike(node)).OfType<InvocationExpressionSyntax>()
VirtualizeItemComparerAnalyzer.cs (1)
44var completedVirtualizeComponents = new List<ComponentState>();
Microsoft.AspNetCore.Components.Authorization (1)
AttributeAuthorizeDataCache.cs (1)
44List<IAuthorizeData>? authorizeDatas = null;
Microsoft.AspNetCore.Components.Endpoints (102)
Assets\ResourcePreloader.cs (2)
15private List<PreloadAsset>? assets; 32private void PreloadAssets(List<PreloadAsset> assets)
Builder\RazorComponentEndpointDataSource.cs (9)
21private readonly List<Action<EndpointBuilder>> _conventions = []; 22private readonly List<Action<EndpointBuilder>> _finallyConventions = []; 23private readonly List<Action<ComponentApplicationBuilder>> _componentApplicationBuilderActions = []; 30private List<Endpoint>? _endpoints; 36internal List<Action<EndpointBuilder>> Conventions => _conventions; 37internal List<Action<ComponentApplicationBuilder>> ComponentApplicationBuilderActions => _componentApplicationBuilderActions; 108var endpoints = new List<Endpoint>(); 184private void AddBlazorWebEndpoints(List<Endpoint> endpoints) 186List<EndpointBuilder> blazorWebEndpoints = [
Builder\RazorComponentEndpointFactory.cs (1)
23List<Endpoint> endpoints,
Builder\RazorComponentsEndpointConventionBuilder.cs (9)
19private readonly List<Action<EndpointBuilder>> _conventions; 20private readonly List<Action<EndpointBuilder>> _finallyConventions; 21private readonly List<Action<ComponentApplicationBuilder>> _componentApplicationBuilderActions; 27List<Action<EndpointBuilder>> conventions, 28List<Action<EndpointBuilder>> finallyConventions, 29List<Action<ComponentApplicationBuilder>> componentApplicationBuilderActions) 39internal List<Action<ComponentApplicationBuilder>> ComponentApplicationBuilderActions => _componentApplicationBuilderActions; 83List<Endpoint> endpoints, 86public List<Endpoint> Endpoints { get; } = endpoints;
Builder\RenderModeEndpointProvider.cs (3)
35List<Endpoint> endpoints, 39List<Action<EndpointBuilder>> conventions, 40List<Action<EndpointBuilder>> finallyConventions)
Builder\ResourceCollectionUrlEndpoint.cs (1)
22List<Endpoint> endpoints,
Builder\ResourcePreloadCollection.cs (3)
10private readonly Dictionary<string, List<PreloadAsset>> _storage = new(); 38if (!_storage.TryGetValue(group, out var groupHeaders)) 99public bool TryGetAssets(string group, [MaybeNullWhen(false)] out List<PreloadAsset> assets)
Builder\ResourcePreloadService.cs (3)
8private Action<List<PreloadAsset>>? handler; 10public void SetPreloadingHandler(Action<List<PreloadAsset>> handler) 13public void Preload(List<PreloadAsset> assets)
CacheView\CacheViewKeyResolver.cs (2)
168var names = new List<string>(); 188var names = new List<string>(request.Query.Count);
Discovery\IRazorComponentApplication.cs (2)
23var pages = new List<PageComponentBuilder>(); 24var components = new List<ComponentBuilder>();
Discovery\PageCollectionBuilder.cs (3)
58var list = new List<PageComponentInfo>(totalCount); 60var metadata = new List<object>(); 78private static void ResolveMetadata(Type componentType, List<object> result)
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (5)
190CreateConverter<IReadOnlyList<TElement>, List<TElement>>(elementTypeConverter), 192CreateConverter<IReadOnlyCollection<TElement>, List<TElement>>(elementTypeConverter), 196CreateConverter<IList<TElement>, List<TElement>>(elementTypeConverter), 198CreateConverter<ICollection<TElement>, List<TElement>>(elementTypeConverter), 202CreateConverter<IEnumerable<TElement>, List<TElement>>(elementTypeConverter),
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (20)
33var parameters = new List<ParameterExpression>() { readerParam, typeParam, optionsParam, resultParam, foundValueParam }; 40var variables = new List<ParameterExpression>() { propertyFoundValue, succeeded, localFoundValueVar, exceptionVar }; 42var propertyValueLocals = new List<ParameterExpression>(); 43var constructorParameterValueLocals = new List<ParameterExpression>(); 45var body = new List<Expression>() 112List<ParameterExpression> constructorParameterValueLocals, 114List<ParameterExpression> propsLocals, 115List<ParameterExpression> variables, 190var assignments = new List<Expression>(); 226List<ParameterExpression> constructorParameters, 228List<ParameterExpression> properties, 329List<ParameterExpression> variables, 330List<ParameterExpression> propertyValueLocals, 331List<Expression> body) 428List<ParameterExpression> variables, 429List<ParameterExpression> constructorParameterValueLocals, 430List<Expression> body) 560List<ParameterExpression> parameters, 561List<ParameterExpression> variables, 562List<Expression> body)
FormMapping\FormDataMapperOptions.cs (2)
15private readonly List<IFormDataConverterFactory> _factories = new(); 39internal List<IFormDataConverterFactory> Factories => _factories;
FormMapping\Metadata\FormDataMetadataFactory.cs (2)
14internal partial class FormDataMetadataFactory(List<IFormDataConverterFactory> factories, ILoggerFactory loggerFactory) 317public List<Type> CurrentTypes { get; set; } = new();
Forms\ClientValidationCache.cs (3)
96var path = GetModelRelativePath(renderedName); 135private static List<string> GetModelRelativePath(string renderedName) 137var segments = new List<string>();
Rendering\Buffering\TextChunkListBuilder.cs (1)
14private List<TextChunkPage>? _priorPages;
Rendering\CacheViewTextWriter.cs (2)
18private readonly List<CacheCaptureEntry> _entries = []; 132var nodes = new List<RenderTreeNode>(_entries.Count);
Rendering\EndpointHtmlRenderer.cs (4)
53private readonly List<Task> _nonStreamingPendingTasks = new(); 267private List<StringValues>? _values; 280private static List<StringValues> MaterializeValues(IFormCollection form) 282var result = new List<StringValues>(form.Keys.Count);
Rendering\SSRRenderModeBoundary.cs (1)
159if (preloads != null && preloads.TryGetAssets("webassembly", out var preloadAssets))
Serialization\JsonStoredDataSerializer.cs (1)
18typeof(List<>),
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (11)
21internal static List<RenderTreeNode> SerializeFrames( 26var result = new List<RenderTreeNode>(); 40List<RenderTreeNode> target, 232internal static RenderFragment Deserialize(List<RenderTreeNode> nodes, JsonSerializerOptions jsonOptions, ComponentParametersTypeCache typeCache) 263private static void DeserializeNodes(RenderTreeBuilder builder, List<RenderTreeNode> nodes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache) 324private static void DeserializeAttributes(RenderTreeBuilder builder, List<RenderTreeAttribute>? attributes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache) 340private static void DeserializeComponentParameters(RenderTreeBuilder builder, List<RenderTreeAttribute>? parameters, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache) 415public List<RenderTreeNode> Nodes { get; init; } = []; 431public List<RenderTreeAttribute>? Attributes { get; set; } 452public List<RenderTreeAttribute>? ComponentParameters { get; set; } 455public List<RenderTreeNode>? Children { get; set; }
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
src\aspnetcore\src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (2)
34var resources = new List<ResourceAsset>(); 136List<ResourceAsset> resources,
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (3)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,
TempData\TempData.cs (1)
175private readonly List<string> _keysToRemove = new();
Microsoft.AspNetCore.Components.Forms (11)
EditContext.cs (1)
281List<Task>? tasksToAwait = null;
EditContextDataAnnotationsExtensions.cs (4)
141var validationResults = new List<ValidationResult>(); 155var validationResults = new List<ValidationResult>(); 168private void AddValidatorResults(List<ValidationResult> validationResults) 253var results = new List<ValidationResult>();
ValidationMessageStore.cs (5)
14private readonly Dictionary<FieldIdentifier, List<string>> _messages = new Dictionary<FieldIdentifier, List<string>>(); 65=> _messages.TryGetValue(fieldIdentifier, out var messages) ? messages : Array.Empty<string>(); 107private List<string> GetOrCreateMessagesListForField(in FieldIdentifier fieldIdentifier) 109if (!_messages.TryGetValue(fieldIdentifier, out var messagesForField))
ValidationRequestedEventArgs.cs (1)
11private List<Func<CancellationToken, Task>>? _asyncValidators;
Microsoft.AspNetCore.Components.QuickGrid (6)
Columns\GridSort.cs (4)
18private List<Func<IOrderedQueryable<TGridItem>, bool, IOrderedQueryable<TGridItem>>>? _then; 21private List<(LambdaExpression, bool)>? _thenExpressions; 117private List<SortedProperty> BuildPropertyList(bool ascending) 119var result = new List<SortedProperty>
QuickGrid.razor.cs (1)
191private readonly List<ColumnBase<TGridItem>> _columns;
src\aspnetcore\src\Components\Shared\src\StringSegmentAccumulator.cs (1)
13private List<ReadOnlyMemory<char>>? _multiple;
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
ComponentParameterAnalyzer.cs (2)
46var properties = new List<IPropertySymbol>(); 65var captureUnmatchedValuesParameters = new List<IPropertySymbol>();
Microsoft.AspNetCore.Components.Server (25)
Circuits\CircuitHost.cs (4)
260List<Exception> exceptions = null; 292List<Exception> exceptions = null; 328List<Exception> exceptions = null; 356List<Exception> exceptions = null;
Circuits\IServerComponentDeserializer.cs (1)
12out List<ComponentDescriptor> descriptors);
Circuits\ServerComponentDeserializer.cs (1)
94public bool TryDeserializeComponentDescriptorCollection(string serializedComponentRecords, out List<ComponentDescriptor> descriptors)
ComponentHub.cs (1)
135if (!_serverComponentSerializer.TryDeserializeComponentDescriptorCollection(serializedComponentRecords, out var components))
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
25/// This differs from a <see cref="System.Collections.Generic.List{T}"/> in that
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (11)
21internal static List<RenderTreeNode> SerializeFrames( 26var result = new List<RenderTreeNode>(); 40List<RenderTreeNode> target, 232internal static RenderFragment Deserialize(List<RenderTreeNode> nodes, JsonSerializerOptions jsonOptions, ComponentParametersTypeCache typeCache) 263private static void DeserializeNodes(RenderTreeBuilder builder, List<RenderTreeNode> nodes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache) 324private static void DeserializeAttributes(RenderTreeBuilder builder, List<RenderTreeAttribute>? attributes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache) 340private static void DeserializeComponentParameters(RenderTreeBuilder builder, List<RenderTreeAttribute>? parameters, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache) 415public List<RenderTreeNode> Nodes { get; init; } = []; 431public List<RenderTreeAttribute>? Attributes { get; set; } 452public List<RenderTreeAttribute>? ComponentParameters { get; set; } 455public List<RenderTreeNode>? Children { get; set; }
src\aspnetcore\src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
269List<string>? streams = null;
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.Components.Testing (7)
Infrastructure\ServerFactory.cs (1)
196var exceptions = new List<Exception> { launchException };
Infrastructure\ServerInstance.cs (1)
168var paths = new List<string>(WriteCapturedOutputTo(directory));
Infrastructure\TracingSession.cs (2)
82var savedFiles = new List<string>(); 99var pages = _context.Pages.ToList();
Playwright\UITest.cs (3)
34private readonly List<IAsyncDisposable> _disposables = new(); 35private readonly List<ServerInstance> _diagnosticServers = new(); 115List<Exception>? exceptions = null;
Microsoft.AspNetCore.Components.Testing.Generators (3)
ServiceOverrideAnalyzer.cs (1)
108var candidates = overrideType.GetMembers(methodName)
StartupHookGenerator.cs (2)
165var distinct = callsites 186var groups = distinct
Microsoft.AspNetCore.Components.Web (33)
_generated\16\WebRendererSerializerContext.GetJsonTypeInfo.g.cs (2)
50if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>)) 54if (type == typeof(global::System.Collections.Generic.List<string>))
_generated\7\WebRendererSerializerContext.DictionaryStringListString.g.cs (13)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>>? _DictionaryStringListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>> DictionaryStringListString 22get => _DictionaryStringListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>> Create_DictionaryStringListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>> 31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>(), 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>, string, global::System.Collections.Generic.List<string>>(options, info); 47private void DictionaryStringListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>? value) 57foreach (global::System.Collections.Generic.KeyValuePair<string, global::System.Collections.Generic.List<string>> entry in value)
_generated\8\WebRendererSerializerContext.ListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>? _ListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> ListString 22get => _ListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> Create_ListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<string>, string>(options, info); 47private void ListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<string>? value)
Forms\Mapping\FormMappingContext.cs (2)
14private List<KeyValuePair<string, FormMappingError>>? _pendingErrors; 101private static void AddErrorCore(Dictionary<string, FormMappingError> errors, string key, FormattableString error, string? attemptedValue, ref List<KeyValuePair<string, FormMappingError>>? pendingErrors)
Forms\Mapping\FormMappingError.cs (2)
11private readonly List<FormattableString> _errorMessages; 19internal FormMappingError(string path, List<FormattableString> errorMessages, string? attemptedValue)
Forms\ValidationSummary.cs (1)
110var messages = new List<string>(GetValidationMessages());
JSComponents\JSComponentConfigurationStore.cs (2)
26internal Dictionary<string, List<string>> JSComponentIdentifiersByInitializer { get; } = new(StringComparer.Ordinal); 62if (!JSComponentIdentifiersByInitializer.TryGetValue(javaScriptInitializer, out var identifiersForInitializer))
WebRenderer.cs (1)
200[JsonSerializable(typeof(Dictionary<string, List<string>>))]
Microsoft.AspNetCore.Components.WebAssembly (24)
Hosting\HostedServiceExecutor.cs (1)
30List<Exception>? exceptions = null;
Hosting\WebAssemblyHost.cs (2)
198var pendingRenders = new List<Task>(count + initialOperationCount); 232private static void AddWebRootComponents(WebAssemblyRenderer renderer, RootComponentOperationBatch operationBatch, List<Task> pendingRenders)
Hosting\WebAssemblyHostConfiguration.cs (4)
18private readonly List<IConfigurationProvider> _providers = new List<IConfigurationProvider>(); 19private readonly List<IConfigurationSource> _sources = new List<IConfigurationSource>(); 21private readonly List<IDisposable> _changeTokenRegistrations = new List<IDisposable>(); 95var result = new List<IConfigurationSection>();
Services\LazyAssemblyLoader.cs (3)
50var loadedAssemblies = new List<Assembly>(); 71var newAssembliesToLoad = assembliesToLoad.ToList(); 72var loadedAssemblies = new List<Assembly>();
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
25/// This differs from a <see cref="System.Collections.Generic.List{T}"/> in that
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (11)
21internal static List<RenderTreeNode> SerializeFrames( 26var result = new List<RenderTreeNode>(); 40List<RenderTreeNode> target, 232internal static RenderFragment Deserialize(List<RenderTreeNode> nodes, JsonSerializerOptions jsonOptions, ComponentParametersTypeCache typeCache) 263private static void DeserializeNodes(RenderTreeBuilder builder, List<RenderTreeNode> nodes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache) 324private static void DeserializeAttributes(RenderTreeBuilder builder, List<RenderTreeAttribute>? attributes, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache) 340private static void DeserializeComponentParameters(RenderTreeBuilder builder, List<RenderTreeAttribute>? parameters, JsonSerializerOptions? jsonOptions, ComponentParametersTypeCache typeCache) 415public List<RenderTreeNode> Nodes { get; init; } = []; 431public List<RenderTreeAttribute>? Attributes { get; set; } 452public List<RenderTreeAttribute>? ComponentParameters { get; set; } 455public List<RenderTreeNode>? Children { get; set; }
src\aspnetcore\src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
DebugProxyLauncher.cs (1)
111var keysToRemove = environment.Keys.Where(key => key.StartsWith("ASPNETCORE_", StringComparison.Ordinal)).ToList();
TargetPickerUi.cs (1)
306var matchingTabs = string.IsNullOrEmpty(targetApplicationUrl)
Microsoft.AspNetCore.Components.WebView (3)
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
25/// This differs from a <see cref="System.Collections.Generic.List{T}"/> in that
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
160List<StaticWebAssetPattern>? patterns = null;
WebViewManager.cs (1)
232var pendingRenders = new List<Task>(_rootComponentsBySelector.Count);
Microsoft.AspNetCore.Connections.Abstractions (1)
TlsConnectionCallbackOptions.cs (1)
31public List<SslApplicationProtocol> ApplicationProtocols { get; set; } = default!;
Microsoft.AspNetCore.CookiePolicy (1)
ResponseCookiesWrapper.cs (1)
142var nonSuppressedValues = new List<KeyValuePair<string, string>>(keyValuePairs.Length);
Microsoft.AspNetCore.DataProtection (16)
AuthenticatedEncryption\ConfigurationModel\ManagedAlgorithmHelpers.cs (1)
14private static readonly List<Type> KnownAlgorithmTypes = new List<Type>
KeyManagement\DefaultKeyResolver.cs (1)
95List<Exception>? exceptions = null;
KeyManagement\KeyEscrowServiceProviderExtensions.cs (3)
20var escrowSinks = services?.GetService<IEnumerable<IKeyEscrowSink>>()?.ToList(); 26private readonly List<IKeyEscrowSink> _sinks; 28public AggregateKeyEscrowSink(List<IKeyEscrowSink> sinks)
RegistryPolicyResolver.cs (3)
40private static List<string> ReadKeyEscrowSinks(RegistryKey key) 42var sinks = new List<string>(); 102var escrowSinks = ReadKeyEscrowSinks(policyRegKey);
Repositories\EphemeralXmlRepository.cs (2)
19private readonly List<XElement> _storedElements = new List<XElement>(); 63var deletableElements = new List<DeletableElement>();
Repositories\FileSystemXmlRepository.cs (1)
184var deletableElements = new List<DeletableElement>();
Repositories\RegistryXmlRepository.cs (1)
164var deletableElements = new List<DeletableElement>();
XmlEncryption\XmlKeyDecryptionOptions.cs (4)
16private readonly Dictionary<string, List<X509Certificate2>> _certs = new Dictionary<string, List<X509Certificate2>>(StringComparer.Ordinal); 23var retVal = _certs.TryGetValue(key, out var keyDecryptionCertsRetVal); 31if (!_certs.TryGetValue(key, out var certificates))
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (1)
src\aspnetcore\src\Shared\BenchmarkRunner\Program.cs (1)
68var argsList = args.ToList();
Microsoft.AspNetCore.DeveloperCertificates.XPlat (20)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (9)
140var certificates = new List<X509Certificate2>(); 248protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 292var currentUserCertificates = allCurrentUserCertificates.Where(c => c.Subject == Subject).ToList(); 293var localMachineCertificates = allLocalMachineCertificates.Where(c => c.Subject == Subject).ToList(); 294var filteredCertificates = currentUserCertificates.Concat(localMachineCertificates).ToList(); 318var certificates = filteredCertificates; 805var extensions = new List<X509Extension>(); 1034var list = certificates.ToList(); 1076var certificatesToDispose = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
295var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 374protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 380var certsFromStore = new List<X509Certificate2>(); 426var certsFromDisk = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
137var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 304var nssDbs = GetNssDbs(homeDirectory); 505var nssDbs = GetNssDbs(homeDirectory); 843var nssDbs = new List<string>(); 861private static List<NssDb> GetNssDbs(string homeDirectory) 863var nssDbs = new List<NssDb>(); 1018var certs = new List<FileInfo>();
Microsoft.AspNetCore.Diagnostics (9)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
292var stackFrames = new List<StackFrameSourceCodeInfo>();
src\aspnetcore\src\Shared\Diagnostics\BaseView.cs (1)
94private List<string>? AttributeValues { get; set; }
src\aspnetcore\src\Shared\Metrics\MetricsExtensions.cs (2)
37if (tags is List<KeyValuePair<string, object?>> list) 66if (tags is List<KeyValuePair<string, object?>> list)
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
134private List<string>? AttributeValues { get; set; }
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
62var typeLoadExceptions = new List<Exception>(); 72var list = new List<Exception>();
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
39var frames = new List<StackFrameInfo>(stackFrames.Length); 41List<Exception>? exceptions = null;
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
DatabaseDeveloperPageExceptionFilter.cs (1)
65var contextDetails = new List<DatabaseContextDetails>();
src\aspnetcore\src\Shared\Diagnostics\BaseView.cs (1)
94private List<string>? AttributeValues { get; set; }
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
134private List<string>? AttributeValues { get; set; }
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
HealthCheckOptions.cs (1)
52var missingHealthStatus = Enum.GetValues<HealthStatus>().Except(mapping.Keys).ToList();
Microsoft.AspNetCore.Diagnostics.Middleware (13)
Buffering\IncomingRequestLogBuffer.cs (2)
22private static readonly ObjectPool<List<DeserializedLogRecord>> _recordsToEmitListPool = 119List<DeserializedLogRecord> recordsToEmit = _recordsToEmitListPool.Get();
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
322List<string>? temp = null;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (8)
29var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 30var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 88var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 89var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 127var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 128var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 196var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 197var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Latency\RequestLatencyTelemetryMiddleware.cs (2)
27private static readonly ObjectPool<List<Task>> _exporterTaskPool = PoolFactory.CreateListPool<Task>(); 90List<Task> exports = _exporterTaskPool.Get();
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (12)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
RedactionBenchmark.cs (1)
41var routeSegments = new List<RouteSegment>();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (16)
Logging\HeaderReaderTests.cs (3)
21var listToFill = new List<KeyValuePair<string, object?>>(); 31var listToFill = new List<KeyValuePair<string, object?>>(); 56var listToFill = new List<KeyValuePair<string, object?>>();
Logging\HttpUtilityExtensionsTests.cs (2)
37var metadata = new List<object>(1); 68var metadata = new List<object>(1);
Logging\IncomingHttpRouteUtilityTests.cs (11)
41var metadata = new List<object> { controllerActionDescriptor }; 79var metadata = new List<object> { controllerActionDescriptor }; 119var metadata = new List<object> { controllerActionDescriptor }; 161var metadata = new List<object> { controllerActionDescriptor }; 203var metadata = new List<object> { controllerActionDescriptor }; 250var metadata = new List<object> { controllerActionDescriptor }; 291var metadata = new List<object> { controllerActionDescriptor }; 339var metadata = new List<object> { controllerActionDescriptor }; 384var metadata = new List<object> { controllerActionDescriptor }; 422var metadata = new List<object> { }; 451var metadata = new List<object> { };
Microsoft.AspNetCore.Grpc.JsonTranscoding (46)
Internal\Binding\IServiceInvokerResolver.cs (1)
14(TDelegate invoker, List<object> metadata) CreateModelCore<TDelegate>(
Internal\Binding\JsonTranscodingProviderServiceBinder.cs (3)
22private delegate (RequestDelegate RequestDelegate, List<object> Metadata) CreateRequestDelegate<TRequest, TResponse>( 151private (RequestDelegate RequestDelegate, List<object> Metadata) CreateUnaryRequestDelegate<TRequest, TResponse>( 178private (RequestDelegate RequestDelegate, List<object> Metadata) CreateServerStreamingRequestDelegate<TRequest, TResponse>(
Internal\Binding\ReflectionServiceInvokerResolver.cs (2)
21public (TDelegate invoker, List<object> metadata) CreateModelCore<TDelegate>( 37var metadata = new List<object>();
Internal\CallHandlers\CallHandlerDescriptorInfo.cs (2)
27PathDescriptorsCache = new ConcurrentDictionary<string, List<FieldDescriptor>>(); 45public ConcurrentDictionary<string, List<FieldDescriptor>> PathDescriptorsCache { get; }
Internal\Json\EnumNameHelpers.cs (1)
59var nameMappings = enumType.GetTypeInfo().DeclaredFields
Internal\Json\JsonConverterHelper.cs (1)
153var repeatedFieldType = typeof(List<>).MakeGenericType(itemType);
Internal\JsonRequestHelpers.cs (4)
228type = typeof(List<>).MakeGenericType(args[0]); 293var pathDescriptors = GetPathDescriptors(serverCallContext, requestMessage, item.Key); 362private static List<FieldDescriptor>? GetPathDescriptors(JsonTranscodingServerCallContext serverCallContext, IMessage requestMessage, string path) 366if (cache.TryGetValue(path, out var pathDescriptors))
Internal\JsonTranscodingRouteAdapter.cs (7)
45public List<Action<HttpContext>> RewriteVariableActions { get; } 47private JsonTranscodingRouteAdapter(HttpRoutePattern httpRoutePattern, string resolvedRoutePattern, List<Action<HttpContext>> rewriteVariableActions) 56var rewriteActions = new List<Action<HttpContext>>(); 58var tempSegments = pattern.Segments.ToList(); 88var routeParameterParts = new List<string>(); 89var routeValueFormatTemplateParts = new List<string>(); 90var variableParts = new List<string>();
Internal\JsonTranscodingServerCallContext.cs (1)
21private static readonly AuthContext UnauthenticatedContext = new AuthContext(null, new Dictionary<string, List<AuthProperty>>());
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (3)
32var properties = new Dictionary<string, List<AuthProperty>>(StringComparer.Ordinal); 59static void AddProperty(Dictionary<string, List<AuthProperty>> properties, string name, string value) 61if (!properties.TryGetValue(name, out var values))
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\HttpRoutePattern.cs (5)
8public List<string> Segments { get; } 10public List<HttpRouteVariable> Variables { get; } 12private HttpRoutePattern(List<string> segments, string? verb, List<HttpRouteVariable> variables) 32public List<string> FieldPath { get; } = new List<string>();
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (4)
28private readonly List<string> _segments; 30private readonly List<HttpRouteVariable> _variables; 33public List<string> Segments => _segments; 35public List<HttpRouteVariable> Variables => _variables;
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\Server\MethodOptions.cs (1)
117var tempInterceptors = new List<InterceptorRegistration>();
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (10)
66public static bool TryResolveDescriptors(MessageDescriptor messageDescriptor, IList<string> path, bool allowJsonName, [NotNullWhen(true)]out List<FieldDescriptor>? fieldDescriptors) 224public static void RecursiveSetValue(IMessage currentValue, List<FieldDescriptor> pathDescriptors, object? values) 388List<HttpRouteVariable> variables, 394var path = variable.FieldPath; 395if (!TryResolveDescriptors(messageDescriptor, path, allowJsonName: false, out var fieldDescriptors)) 480var existingParameters = new List<FieldDescriptor>(); 508static void RecursiveVisitMessages(Dictionary<string, FieldDescriptor> queryParameters, List<FieldDescriptor> existingParameters, MessageDescriptor messageDescriptor, List<FieldDescriptor> path) 671public List<FieldDescriptor> DescriptorsPath { get; } 678List<FieldDescriptor> descriptorsPath,
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (1)
53List<string> dnsEntries = new List<string>();
Microsoft.AspNetCore.HeaderParsing (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
180List<string>? temp = null;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
22var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 23var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Parsers\IPAddressListParser.cs (1)
18var list = new List<IPAddress>();
Microsoft.AspNetCore.HostFiltering (2)
MiddlewareConfigurationManager.cs (2)
40var allowedHosts = new List<StringSegment>(); 62private static bool TryProcessHosts(IEnumerable<string> incoming, List<StringSegment> results)
Microsoft.AspNetCore.Hosting (15)
GenericHost\GenericWebHostBuilder.cs (1)
129var exceptions = new List<Exception>();
Internal\HostedServiceExecutor.cs (1)
27List<Exception>? exceptions = null;
Internal\HostingMetrics.cs (1)
45public void RequestEnd(string protocol, string scheme, string method, string? route, int statusCode, bool unhandledRequest, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp, bool disableHttpRequestDurationMetric)
Internal\HttpMetricsTagsFeature.cs (1)
13public List<KeyValuePair<string, object?>> TagsList { get; } = new List<KeyValuePair<string, object?>>();
Internal\StartupLoader.cs (2)
269var definedTypes = assembly.DefinedTypes.ToList(); 324var selectedMethods = methods.Where(method => method.Name.Equals(methodNameWithEnv, StringComparison.OrdinalIgnoreCase)).ToList();
src\aspnetcore\src\Shared\Metrics\MetricsExtensions.cs (2)
37if (tags is List<KeyValuePair<string, object?>> list) 66if (tags is List<KeyValuePair<string, object?>> list)
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
134private List<string>? AttributeValues { get; set; }
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
62var typeLoadExceptions = new List<Exception>(); 72var list = new List<Exception>();
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
39var frames = new List<StackFrameInfo>(stackFrames.Length); 41List<Exception>? exceptions = null;
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
160List<StaticWebAssetPattern>? patterns = null;
WebHostBuilder.cs (1)
226var exceptions = new List<Exception>();
Microsoft.AspNetCore.Http (9)
Builder\ApplicationBuilder.cs (2)
23private readonly List<Func<RequestDelegate, RequestDelegate>> _components = new(); 24private readonly List<string>? _descriptions;
Features\QueryFeature.cs (3)
123private AdaptiveCapacityDictionary<string, List<string>> _expandingAccumulator; 163_expandingAccumulator = new AdaptiveCapacityDictionary<string, List<string>>(capacity: 5, StringComparer.OrdinalIgnoreCase); 167var list = new List<string>();
Features\RequestCookiesFeature.cs (1)
83var headers = new List<string>(_parsedValues.Count);
FormFileCollection.cs (1)
31var files = new List<IFormFile>();
Internal\ResponseCookies.cs (1)
149var newValues = new List<string>();
src\aspnetcore\src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
Microsoft.AspNetCore.Http.Abstractions (7)
CookieBuilder.cs (1)
14private List<string>? _extensions;
Extensions\EndpointBuilder.cs (1)
13private List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>? _filterFactories;
Extensions\UseMiddlewareExtensions.cs (1)
248var parameterTypeExpression = new List<Expression>() { providerArg };
Routing\EndpointMetadataCollection.cs (1)
112List<T>? matches = null;
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (3)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,
Microsoft.AspNetCore.Http.Connections (9)
ConnectionEndpointRouteBuilderExtensions.cs (3)
96var conventionBuilders = new List<IEndpointConventionBuilder>(); 154private readonly List<IEndpointConventionBuilder> _endpointConventionBuilders; 156public CompositeEndpointConventionBuilder(List<IEndpointConventionBuilder> endpointConventionBuilders)
Internal\HttpConnectionContext.cs (2)
48private List<(Action<object> handler, object state)>? _heartbeatHandlers; 67private List<UserRefreshedCallbackRegistration>? _userRefreshedCallbacks;
Internal\HttpConnectionManager.cs (1)
190var tasks = new List<Task>(_connections.Count);
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnection.cs (1)
318var transportExceptions = new List<Exception>();
Microsoft.AspNetCore.Http.Connections.Common (1)
NegotiateProtocol.cs (1)
166List<AvailableTransport>? availableTransports = null;
Microsoft.AspNetCore.Http.Extensions (40)
RequestDelegateFactory.cs (1)
1636var bindings = new List<MemberBinding>(properties.Length);
RequestDelegateFactoryContext.cs (4)
39public List<ParameterExpression> ExtraLocals { get; } = new(); 40public List<Expression> ParamCheckExpressions { get; } = new(); 41public List<Func<HttpContext, ValueTask<object?>>> ParameterBinders { get; } = new(); 62public List<ParameterInfo> Parameters { get; set; } = new();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (5)
190CreateConverter<IReadOnlyList<TElement>, List<TElement>>(elementTypeConverter), 192CreateConverter<IReadOnlyCollection<TElement>, List<TElement>>(elementTypeConverter), 196CreateConverter<IList<TElement>, List<TElement>>(elementTypeConverter), 198CreateConverter<ICollection<TElement>, List<TElement>>(elementTypeConverter), 202CreateConverter<IEnumerable<TElement>, List<TElement>>(elementTypeConverter),
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (20)
33var parameters = new List<ParameterExpression>() { readerParam, typeParam, optionsParam, resultParam, foundValueParam }; 40var variables = new List<ParameterExpression>() { propertyFoundValue, succeeded, localFoundValueVar, exceptionVar }; 42var propertyValueLocals = new List<ParameterExpression>(); 43var constructorParameterValueLocals = new List<ParameterExpression>(); 45var body = new List<Expression>() 112List<ParameterExpression> constructorParameterValueLocals, 114List<ParameterExpression> propsLocals, 115List<ParameterExpression> variables, 190var assignments = new List<Expression>(); 226List<ParameterExpression> constructorParameters, 228List<ParameterExpression> properties, 329List<ParameterExpression> variables, 330List<ParameterExpression> propertyValueLocals, 331List<Expression> body) 428List<ParameterExpression> variables, 429List<ParameterExpression> constructorParameterValueLocals, 430List<Expression> body) 560List<ParameterExpression> parameters, 561List<ParameterExpression> variables, 562List<Expression> body)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataMapperOptions.cs (2)
15private readonly List<IFormDataConverterFactory> _factories = new(); 39internal List<IFormDataConverterFactory> Factories => _factories;
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (2)
14internal partial class FormDataMetadataFactory(List<IFormDataConverterFactory> factories, ILoggerFactory loggerFactory) 317public List<Type> CurrentTypes { get; set; } = new();
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (4)
73List<ParameterInfo>? flattenedParameters = null; 87static List<ParameterInfo> InitializeList(ParameterInfo[] parameters, int i) 90List<ParameterInfo> list = new(parameters.Length); 193var attributes = new List<CustomAttributeData>(
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
20private List<string>? _extensions;
Microsoft.AspNetCore.Http.RequestDelegateGenerator (6)
src\aspnetcore\src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
21private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
StaticRouteHandlerModel\Emitters\DiagnosticEmitter.cs (2)
12public static void EmitRequiredDiagnostics(this EndpointResponse response, List<Diagnostic> diagnostics, Location location) 36public static void EmitRequiredDiagnostics(this IParameterSymbol parameterSymbol, List<Diagnostic> diagnostics, Location location)
StaticRouteHandlerModel\Endpoint.cs (1)
102public List<Diagnostic> Diagnostics { get; } = new List<Diagnostic>();
StaticRouteHandlerModel\EndpointParameter.cs (1)
493var propertiesWithParameterInfo = new List<ConstructorParameter>();
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (1)
300var potentialImplicitBodyParameters = new List<EndpointParameter>();
Microsoft.AspNetCore.HttpLogging (10)
FileLoggerProcessor.cs (2)
30private readonly List<string> _currentBatch = new List<string>(); 155private async Task WriteMessagesAsync(List<string> messages, CancellationToken cancellationToken)
HttpLog.cs (2)
11private readonly List<KeyValuePair<string, object?>> _keyValues; 17public HttpLog(List<KeyValuePair<string, object?>> keyValues, string title)
HttpLoggingInterceptorContext.cs (1)
71internal List<KeyValuePair<string, object?>> InternalParameters { get; set; } = new();
MediaTypeHelpers.cs (2)
13private static readonly List<Encoding> SupportedEncodings = new List<Encoding>() 22public static bool TryGetEncodingForMediaType(string? contentType, List<MediaTypeState> mediaTypeList, [NotNullWhen(true)] out Encoding? encoding)
MediaTypeOptions.cs (2)
14private readonly List<MediaTypeState> _mediaTypeStates = new(); 20internal List<MediaTypeState> MediaTypeStates => _mediaTypeStates;
W3CLoggingMiddleware.cs (1)
180var additionalRequestHeaders = _additionalRequestHeaders.ToList();
Microsoft.AspNetCore.HttpOverrides (3)
DualIPNetworkList.cs (2)
21private readonly List<IPNetwork> _system = new(); 22private readonly List<AspNetIPNetwork> _aspnet = new();
ForwardedHeadersMiddleware.cs (1)
77var allowedHosts = new List<StringSegment>();
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
868var claims = new List<Claim>
Microsoft.AspNetCore.Identity.EntityFrameworkCore (7)
RoleStore.cs (1)
373var claims = await RoleClaims.Where(rc => rc.RoleId.Equals(role.Id) && rc.ClaimValue == claim.Value && rc.ClaimType == claim.Type).ToListAsync(cancellationToken);
UserOnlyStore.cs (3)
376var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 398var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 653var passkeys = await UserPasskeys
UserStore.cs (3)
493var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 515var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 798var passkeys = await UserPasskeys
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
113var viewsToRemove = new List<CompiledViewDescriptor>();
Microsoft.AspNetCore.InternalTesting (3)
Tracing\EventSourceValidator.cs (1)
51var errors = new List<string>();
xunit\AspNetTestAssemblyRunner.cs (1)
41var fixturesAttributes = assembly
xunit\AspNetTestRunner.cs (1)
79List<string> messages = new();
Microsoft.AspNetCore.JsonPatch (12)
Converters\JsonPatchDocumentConverter.cs (1)
41var targetOperations = new List<Operation>();
Converters\TypedJsonPatchDocumentConverter.cs (1)
36var genericList = typeof(List<>);
Internal\ParsedPath.cs (1)
44var strings = new List<string>();
JsonPatchDocument.cs (3)
23public List<Operation> Operations { get; private set; } 34public JsonPatchDocument(List<Operation> operations, IContractResolver contractResolver) 202var allOps = new List<Operation>(Operations?.Count ?? 0);
JsonPatchDocumentOfT.cs (6)
27public List<Operation<TModel>> Operations { get; private set; } 39public JsonPatchDocument(List<Operation<TModel>> operations, IContractResolver contractResolver) 638var allOps = new List<Operation>(Operations?.Count ?? 0); 662var segments = GetPathSegments(expr.Body); 676private List<string> GetPathSegments(Expression expr) 678var listOfSegments = new List<string>();
Microsoft.AspNetCore.JsonPatch.SystemTextJson (12)
Converters\JsonConverterForJsonPatchDocumentOfT.cs (1)
35List<Operation<T>> ops = [];
Converters\JsonPatchDocumentConverter.cs (1)
34List<Operation> ops = [];
Internal\ParsedPath.cs (1)
39var strings = new List<string>();
JsonPatchDocument.cs (3)
26public List<Operation> Operations { get; private set; } 37public JsonPatchDocument(List<Operation> operations, JsonSerializerOptions serializerOptions) 205var allOps = new List<Operation>(Operations?.Count ?? 0);
JsonPatchDocumentOfT.cs (6)
30public List<Operation<TModel>> Operations { get; private set; } 42public JsonPatchDocument(List<Operation<TModel>> operations, JsonSerializerOptions serializerOptions) 641var allOps = new List<Operation>(Operations?.Count ?? 0); 674var segments = GetPathSegments(expr.Body); 688private List<string> GetPathSegments(Expression expr) 690var listOfSegments = new List<string>();
Microsoft.AspNetCore.Localization (3)
AcceptLanguageHeaderRequestCultureProvider.cs (1)
43var orderedLanguages = languages.OrderByDescending(h => h, StringWithQualityHeaderValueComparer.QualityComparer)
RequestLocalizationOptions.cs (2)
125var supportedCultures = new List<CultureInfo>(cultures.Length); 144var supportedUICultures = new List<CultureInfo>(uiCultures.Length);
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelMetadata.cs (1)
141var boundProperties = new List<ModelMetadata>();
ModelBinding\ModelStateDictionary.cs (2)
837public List<ModelStateNode>? ChildNodes { get; set; } 1007private List<ModelStateNode>? _nodes;
Microsoft.AspNetCore.Mvc.ApiExplorer (13)
ApiResponseTypeProvider.cs (4)
42var responseMetadataAttributes = GetResponseMetadataAttributes(action); 65var producesResponseMetadata = action.EndpointMetadata 73private static List<ApiResponseMetadataProviderWithScope> GetResponseMetadataAttributes(ControllerActionDescriptor action) 170var responseMetadataAttributesWithScope = responseMetadataAttributes
DefaultApiDescriptionProvider.cs (4)
114var templateParameters = parsedTemplate?.Parameters?.ToList() ?? new List<TemplatePart>(); 363var constraints = new List<IRouteConstraint>(); 409var segments = new List<string>(); 444var results = new List<ApiRequestFormat>();
EndpointMetadataApiDescriptionProvider.cs (1)
227var constraints = new List<IRouteConstraint>();
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (4)
73List<ParameterInfo>? flattenedParameters = null; 87static List<ParameterInfo> InitializeList(ParameterInfo[] parameters, int i) 90List<ParameterInfo> list = new(parameters.Length); 193var attributes = new List<CustomAttributeData>(
Microsoft.AspNetCore.Mvc.Core (155)
_generated\0\LoggerMessage.g.cs (3)
1061private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.List<string?>, global::System.Exception?> __NoFormatterCallback = 1062global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.List<string?>>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "NoFormatter"), "No output formatter was found for content types '{ContentTypes}' to write the response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1069private static partial void NoFormatter(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Collections.Generic.List<string?> contentTypes)
AcceptVerbsAttribute.cs (1)
16private readonly List<string> _httpMethods;
ActionConstraints\ActionConstraintCache.cs (6)
59var items = new List<ActionConstraintItem>(action.ActionConstraints.Count); 102var items = new List<ActionConstraintItem>(entry.Items!.Count); 121private void ExecuteProviders(HttpContext httpContext, ActionDescriptor action, List<ActionConstraintItem> items) 136private static IReadOnlyList<IActionConstraint>? ExtractActionConstraints(List<ActionConstraintItem> items) 189public CacheEntry(List<ActionConstraintItem> items) 197public List<ActionConstraintItem>? Items { get; }
ActionConstraints\HttpMethodActionConstraint.cs (1)
35var methods = new List<string>();
ApplicationModels\ActionAttributeRouteModel.cs (3)
16var controllerSelectors = actionModel.Controller.Selectors 54var actionConstraints = new List<IActionConstraintMetadata>(); 145var controllerAttributeRoutes = actionModel.Controller.Selectors
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
63public List<IActionModelConvention> ActionModelConventions { get; }
ApplicationModels\ApplicationModelFactory.cs (19)
54public static List<TResult> Flatten<TResult>( 58var results = new List<TResult>(); 60var actionsByMethod = new Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>>(); 61var actionsByRouteName = new Dictionary<string, List<(ActionModel, SelectorModel)>>(StringComparer.OrdinalIgnoreCase); 63var routeTemplateErrors = new List<string>(); 102var namedRoutedErrors = ValidateNamedAttributeRoutedActions(actionsByRouteName); 122List<string> errors) 174Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>> actionsByMethod, 178if (!actionsByMethod.TryGetValue(action.ActionMethod, out var actions)) 188Dictionary<string, List<(ActionModel action, SelectorModel selector)>> actionsByRouteName, 198if (!actionsByRouteName.TryGetValue(routeName, out var actions)) 207private static List<string> AddErrorNumbers(IEnumerable<string> namedRoutedErrors) 218private static List<string> ValidateNamedAttributeRoutedActions( 219Dictionary<string, List<(ActionModel action, SelectorModel selector)>> actionsByRouteName) 221var namedRouteErrors = new List<string>(); 257List<(ActionModel action, SelectorModel selector)> actions, 292List<(ActionModel action, SelectorModel selector)> actions) 297var actionDescriptions = new List<string>(actions.Count); 339var errorMessages = AddErrorNumbers(individualErrors);
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
64var parameterDescriptors = new List<ParameterDescriptor>(action.Parameters.Count);
ApplicationModels\DefaultApplicationModelProvider.cs (7)
143var filteredAttributes = new List<object>(); 337var applicableAttributes = new List<object>(routeAttributes.Length); 531var routeProviders = new List<IRouteTemplateProvider>(); 576var selectorModels = new List<SelectorModel>(); 588var filteredAttributes = new List<object>(); 624var filteredAttributes = new List<object>(); 640private static bool InRouteProviders(List<IRouteTemplateProvider> routeProviders, object attribute)
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
92var fromBodyParameters = action.Parameters.Where(p => p.BindingInfo!.BindingSource == BindingSource.Body).ToList();
ApplicationParts\RelatedAssemblyAttribute.cs (1)
79var relatedAssemblies = new List<Assembly>();
BindAttribute.cs (1)
26var items = new List<string>(include.Length);
Builder\ControllerActionEndpointConventionBuilder.cs (4)
16private readonly List<Action<EndpointBuilder>> _conventions; 17private readonly List<Action<EndpointBuilder>> _finallyConventions; 19internal ControllerActionEndpointConventionBuilder(object @lock, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions)
ConsumesAttribute.cs (4)
99readonly List<string> _contentTypes = new(); 238var completeArgs = new List<string>(args.Length + 1); 258private static List<string> GetAllContentTypes(string contentType, string[] additionalContentTypes) 260var allContentTypes = new List<string>()
Controllers\ControllerBinderDelegateProvider.cs (2)
40List<ParameterDescriptor> list => list.ToArray(), 46List<ParameterDescriptor> list => list.ToArray(),
Filters\FilterFactory.cs (4)
21var orderedFilters = actionDescriptor.FilterDescriptors 32var allFilterItems = new List<FilterItem>(staticFilterItems); 76var filterItems = new List<FilterItem>(cachedFilterItems.Length); 94List<FilterItem> filterItems)
Filters\MiddlewareFilterConfigurationProvider.cs (1)
44var selectedMethods = methods.Where(method => method.Name.Equals(methodName)).ToList();
Formatters\AcceptHeaderParser.cs (1)
13var parsedValues = new List<MediaTypeSegmentWithQuality>();
Formatters\InputFormatter.cs (1)
145List<string>? mediaTypes = null;
Formatters\OutputFormatter.cs (1)
50List<string>? mediaTypes = null;
Formatters\TextOutputFormatter.cs (2)
303var sorted = new List<StringWithQualityHeaderValue>(count); 318var sorted = new List<StringWithQualityHeaderValue>(values.Count);
Infrastructure\ActionSelectionTable.cs (8)
42Dictionary<string[], List<TItem>> ordinalEntries, 43Dictionary<string[], List<TItem>> ordinalIgnoreCaseEntries) 55private Dictionary<string[], List<TItem>> OrdinalEntries { get; } 57private Dictionary<string[], List<TItem>> OrdinalIgnoreCaseEntries { get; } 107var ordinalEntries = new Dictionary<string[], List<T>>(StringArrayComparer.Ordinal); 108var ordinalIgnoreCaseEntries = new Dictionary<string[], List<T>>(StringArrayComparer.OrdinalIgnoreCase); 139if (!ordinalIgnoreCaseEntries.TryGetValue(routeValues, out var entries)) 175if (OrdinalEntries.TryGetValue(routeValues, out var matches) ||
Infrastructure\ActionSelector.cs (4)
116var candidates = new List<ActionSelectorCandidate>(actionsCount); 128List<ActionDescriptor>? results = null; 179var actionsWithConstraint = new List<ActionSelectorCandidate>(); 180var actionsWithoutConstraint = new List<ActionSelectorCandidate>();
Infrastructure\AsyncEnumerableReader.cs (1)
82var result = new List<T>();
Infrastructure\CopyOnWriteList.cs (2)
15private List<T>? _copy; 24private List<T> Writable
Infrastructure\DefaultOutputFormatterSelector.cs (3)
73var acceptableMediaTypes = GetAcceptableMediaTypes(request); 149private List<MediaTypeSegmentWithQuality> GetAcceptableMediaTypes(HttpRequest request) 151var result = new List<MediaTypeSegmentWithQuality>();
Infrastructure\ObjectResultExecutor.cs (2)
174var considered = new List<string?>(contentTypes); 186private static partial void NoFormatter(ILogger logger, List<string?> contentTypes);
ModelBinding\Binders\CollectionModelBinder.cs (5)
193if (targetType.IsAssignableFrom(typeof(List<TElement?>))) 234if (targetType.IsAssignableFrom(typeof(List<TElement?>))) 267var boundCollection = new List<TElement?>(); 344var boundCollection = new List<TElement?>(); 447if (targetType.IsAssignableFrom(typeof(List<TElement?>)))
ModelBinding\Binders\CollectionModelBinderProvider.cs (1)
44var listType = typeof(List<>).MakeGenericType(enumerableType.GenericTypeArguments);
ModelBinding\Binders\FormFileModelBinder.cs (6)
105Debug.Assert(postedFiles is List<IFormFile>); 106value = ((List<IFormFile>)postedFiles).ToArray(); 110Debug.Assert(postedFiles is List<IFormFile>); 111value = new FileCollection((List<IFormFile>)postedFiles); 172public FileCollection(List<IFormFile> list) 195var files = new List<IFormFile>();
ModelBinding\CompositeValueProvider.cs (2)
182var filteredValueProviders = new List<IValueProvider>(); 229var filteredValueProviders = new List<IValueProvider>();
ModelBinding\FormFileValueProvider.cs (1)
43var fileNames = new List<string>();
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
337var propertyEntries = new List<DefaultMetadataDetails>(propertyHelpers.Length);
ModelBinding\ModelBindingHelper.cs (4)
492if (modelType.IsAssignableFrom(typeof(List<T>))) 528/// Capacity for use when creating a <see cref="List{T}"/> instance. Not used when creating another type. 573if (modelType.IsAssignableFrom(typeof(List<T>))) 581private static List<T> CreateList<T>(int? capacity)
ModelBinding\Validation\ClientValidatorCache.cs (6)
41var items = new List<ClientValidatorItem>(metadata.ValidatorMetadata.Count); 85var items = new List<ClientValidatorItem>(entry.Items.Count); 104private static void ExecuteProvider(IClientModelValidatorProvider validatorProvider, ModelMetadata metadata, List<ClientValidatorItem> items) 111private static IReadOnlyList<IClientModelValidator> ExtractValidators(List<ClientValidatorItem> items) 149public CacheEntry(List<ClientValidatorItem> items) 157public List<ClientValidatorItem>? Items { get; }
ModelBinding\Validation\ValidationStack.cs (1)
20internal List<object> List { get; } = new List<object>();
ModelBinding\Validation\ValidationVisitor.cs (1)
223var results = new List<ModelValidationResult>();
ModelBinding\Validation\ValidatorCache.cs (6)
31var items = new List<ValidatorItem>(metadata.ValidatorMetadata.Count); 75var items = new List<ValidatorItem>(entry.Items.Count); 94private static void ExecuteProvider(IModelValidatorProvider validatorProvider, ModelMetadata metadata, List<ValidatorItem> items) 100private static IReadOnlyList<IModelValidator> ExtractValidators(List<ValidatorItem> items) 139public CacheEntry(List<ValidatorItem> items) 147public List<ValidatorItem>? Items { get; }
MvcCoreLoggerExtensions.cs (1)
265var filterList = new List<string>();
ProducesAttribute.cs (1)
109var completeArgs = new List<string>(args.Length + 1);
ProducesResponseTypeAttribute.cs (1)
110var completeContentTypes = new List<string>(additionalContentTypes.Length + 1);
Routing\ActionConstraintMatcherPolicy.cs (3)
106var items = new List<(int index, ActionSelectorCandidate candidate)>(); 191var endpointsWithConstraint = new List<(int index, ActionSelectorCandidate candidate)>(); 192var endpointsWithoutConstraint = new List<(int index, ActionSelectorCandidate candidate)>();
Routing\ActionEndpointDataSourceBase.cs (5)
25protected readonly List<Action<EndpointBuilder>> Conventions; 26protected readonly List<Action<EndpointBuilder>> FinallyConventions; 28private List<Endpoint>? _endpoints; 64protected abstract List<Endpoint> CreateEndpoints( 120var endpoints = CreateEndpoints(
Routing\ActionEndpointFactory.cs (2)
39List<Endpoint> endpoints, 175List<Endpoint> endpoints,
Routing\AttributeRoute.cs (5)
70var routeInfos = GetRouteInfos(actions.Items); 128private static IEnumerable<IGrouping<RouteInfo, ActionDescriptor>> GetInboundRouteGroups(List<RouteInfo> routeInfos) 135private static List<RouteInfo> GetRouteInfos(IReadOnlyList<ActionDescriptor> actions) 137var routeInfos = new List<RouteInfo>(); 138var errors = new List<RouteInfo>();
Routing\ControllerActionEndpointDataSource.cs (5)
18private readonly List<ConventionalRouteEntry> _routes; 58var conventions = new List<Action<EndpointBuilder>>(); 59var finallyConventions = new List<Action<EndpointBuilder>>(); 65protected override List<Endpoint> CreateEndpoints( 73var endpoints = new List<Endpoint>();
Routing\ConventionalRouteEntry.cs (2)
27List<Action<EndpointBuilder>> conventions, 28List<Action<EndpointBuilder>> finallyConventions)
Routing\HttpMethodAttribute.cs (1)
15private readonly List<string> _httpMethods;
Routing\ViewEnginePath.cs (1)
77var pathSegments = new List<StringSegment>();
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (3)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
DataAnnotationsMetadataProvider.cs (2)
175var groupedDisplayNamesAndValues = new List<KeyValuePair<EnumGroupAndName, string>>(); 305var attributes = new List<object>(contextAttributesCount);
DataAnnotationsModelValidator.cs (1)
99var validationResults = new List<ModelValidationResult>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\aspnetcore\src\Mvc\Mvc.Core\src\Infrastructure\AsyncEnumerableReader.cs (1)
82var result = new List<T>();
Microsoft.AspNetCore.Mvc.Razor (3)
RazorView.cs (1)
201var renderedLayouts = new List<IRazorPage>();
RazorViewEngine.cs (2)
352var searchedLocations = new List<string>(); 429var viewStartPages = new List<ViewLocationCacheItem>();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (4)
CompilationFailedExceptionFactory.cs (2)
31var failures = new List<CompilationFailure>(); 57var failures = new List<CompilationFailure>();
RazorReferenceManager.cs (1)
58var referencePaths = new List<string>(_options.AdditionalReferencePaths.Count);
RuntimeViewCompiler.cs (1)
283var expirationTokens = new List<IChangeToken>(checksums.Count);
Microsoft.AspNetCore.Mvc.RazorPages (16)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
121var results = new List<PageBoundPropertyDescriptor>();
Builder\PageActionEndpointConventionBuilder.cs (4)
16private readonly List<Action<EndpointBuilder>> _conventions; 17private readonly List<Action<EndpointBuilder>> _finallyConventions; 19internal PageActionEndpointConventionBuilder(object @lock, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions)
Infrastructure\DefaultPageHandlerMethodSelector.cs (4)
16var handlers = SelectHandlers(context); 22List<HandlerMethodDescriptor>? ambiguousMatches = null; 64private static List<HandlerMethodDescriptor> SelectHandlers(PageContext context) 67var candidates = new List<HandlerMethodDescriptor>();
Infrastructure\DefaultPageLoader.cs (1)
65var endpoints = new List<Endpoint>();
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
156var loadedEndpoints = new List<Endpoint>(endpoints);
Infrastructure\PageActionEndpointDataSource.cs (2)
44protected override List<Endpoint> CreateEndpoints( 52var endpoints = new List<Endpoint>();
Infrastructure\PageActionInvokerCache.cs (3)
93var viewStartFactories = GetViewStartFactories(compiledActionDescriptor); 113internal List<Func<IRazorPage>> GetViewStartFactories(CompiledPageActionDescriptor descriptor) 115var viewStartFactories = new List<Func<IRazorPage>>();
Microsoft.AspNetCore.Mvc.TagHelpers (8)
Cache\CacheTagKey.cs (1)
277var result = new List<KeyValuePair<string, string>>();
GlobbingUrlBuilder.cs (6)
84var urls = new List<string>(1 + globbedUrls.Count) 108if (Cache.TryGetValue(cacheKey, out List<string> files)) 121var trimmedIncludePatterns = new List<string>(); 134var trimmedExcludePatterns = new List<string>(); 151private (List<string> matchedUrls, long sizeInBytes) FindFiles(Matcher matcher) 154var matchedUrls = new List<string>();
TagHelperOutputExtensions.cs (1)
235var listOfClasses = currentClassValue.Split(SpaceChars, StringSplitOptions.RemoveEmptyEntries)
Microsoft.AspNetCore.Mvc.Testing (4)
DeferredHostBuilder.cs (1)
41var args = new List<string>();
WebApplicationFactory.cs (3)
44private readonly List<HttpClient> _clients = new(); 45private readonly List<WebApplicationFactory<TEntryPoint>> _derivedFactories = new(); 545var testAssemblies = new List<Assembly>();
Microsoft.AspNetCore.Mvc.ViewFeatures (29)
AttributeDictionary.cs (1)
19private List<KeyValuePair<string, string?>>? _items;
Buffers\MemoryPoolViewBufferScope.cs (2)
16private List<ViewBufferValue[]> _available; 17private List<ViewBufferValue[]> _leased;
Buffers\PagedBufferedTextWriter.cs (1)
52var pages = _charBuffer.Pages;
Buffers\PagedCharBuffer.cs (4)
21public List<char[]> Pages { get; } = new List<char[]>(); 28var pages = Pages; 104var pages = Pages; 153var pages = Pages;
Buffers\ViewBuffer.cs (1)
26private List<ViewBufferPage> _multiplePages; // Allocated only if necessary
DefaultDisplayTemplates.cs (1)
62internal static List<SelectListItem> TriStateValues(bool? value)
Filters\SaveTempDataPropertyFilterBase.cs (3)
86List<LifecycleProperty> results = null; 87var errorMessages = new List<string>(); 120private static bool ValidateProperty(TempDataSerializer tempDataSerializer, List<string> errorMessages, PropertyInfo property)
Filters\ViewDataAttributePropertyProvider.cs (1)
13List<LifecycleProperty> results = null;
HtmlHelper.cs (1)
1381var selectList = new List<SelectListItem>();
Infrastructure\DefaultTempDataSerializer.cs (2)
93var array = new List<string>(arrayLength); 104var array = new List<int>(arrayLength);
MemberExpressionCacheKey.cs (1)
30var members = new List<MemberInfo>();
PartialViewResultExecutor.cs (1)
86var locations = new List<string>(originalResult.SearchedLocations);
Rendering\MultiSelectList.cs (2)
160var listItems = new List<SelectListItem>(); 186var listItems = new List<SelectListItem>();
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (2)
34var resources = new List<ResourceAsset>(); 136List<ResourceAsset> resources,
ValidationHelpers.cs (2)
61var entries = new List<ModelStateEntry>(); 85List<ModelStateEntry> orderedModelStateEntries)
ViewComponents\DefaultViewComponentSelector.cs (1)
92var matchedTypes = new List<string>();
ViewEngines\CompositeViewEngine.cs (2)
43List<string>? searchedList = null; 92List<string>? searchedList = null;
ViewResultExecutor.cs (1)
87var locations = new List<string>(originalResult.SearchedLocations);
Microsoft.AspNetCore.OpenApi (26)
Schemas\OpenApiJsonSchema.Helpers.cs (6)
24private static List<T>? ReadList<T>(ref Utf8JsonReader reader, OpenApiJsonSchemaContext context) 33var values = new List<T>(); 199var types = ReadList<string>(ref reader, context); 221var enumValues = ReadList<JsonNode>(ref reader, context); 310var anyOfSchemas = ReadList<OpenApiJsonSchema>(ref reader, context); 315var oneOfSchemas = ReadList<OpenApiJsonSchema>(ref reader, context);
Services\OpenApiConstants.cs (1)
24internal static readonly List<Type> PrimitiveTypes =
Services\OpenApiDocumentService.cs (5)
210internal List<OpenApiServer> GetOpenApiServers(HttpRequest? httpRequest = null) 228private List<OpenApiServer> GetDevelopmentOpenApiServers() 504private readonly List<IOpenApiSchema> _schemas = []; 576private async Task<List<IOpenApiParameter>?> GetParametersAsync( 583List<IOpenApiParameter>? parameters = null;
Services\OpenApiGenerator.cs (2)
366private List<IOpenApiParameter> GetOpenApiParameters(MethodInfo methodInfo, RoutePattern pattern, bool disableInferredBody) 369var openApiParameters = new List<IOpenApiParameter>();
Services\OpenApiOptions.cs (3)
15internal readonly List<IOpenApiDocumentTransformer> DocumentTransformers = []; 16internal readonly List<IOpenApiOperationTransformer> OperationTransformers = []; 17internal readonly List<IOpenApiSchemaTransformer> SchemaTransformers = [];
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (4)
73List<ParameterInfo>? flattenedParameters = null; 87static List<ParameterInfo> InitializeList(ParameterInfo[] parameters, int i) 90List<ParameterInfo> list = new(parameters.Length); 193var attributes = new List<CustomAttributeData>(
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.OpenApi.SourceGenerators (16)
Helpers\StringExtensions.cs (1)
26var lines = text.ReadLines().ToList();
XmlCommentGenerator.Parser.cs (6)
44internal static List<(string, string)> ParseXmlFile(AdditionalText additionalText, CancellationToken cancellationToken) 61var comments = new List<(string, string)>(); 73internal static List<(string, string)> ParseCompilation(Compilation compilation, CancellationToken cancellationToken) 78var comments = new List<(string, string)>(); 114(List<(string, string)> RawComments, Compilation Compilation) input, 118var comments = new List<(string, XmlComment?)>();
XmlComments\XmlComment.cs (4)
22public List<string?>? Examples { get; internal set; } 23public List<XmlParameterComment> Parameters { get; internal set; } = []; 24public List<XmlResponseComment> Responses { get; internal set; } = []; 89var bulletPoints = items
XmlComments\XmlComment.InheritDoc.cs (1)
97var result = new List<XNode>();
XmlComments\XmlParameterComment.cs (2)
16public static List<XmlParameterComment> GetXmlParameterListComment(XPathNavigator navigator, string xpath) 19var result = new List<XmlParameterComment>();
XmlComments\XmlResponseComment.cs (2)
16public static List<XmlResponseComment> GetXmlResponseCommentList(XPathNavigator navigator, string xpath) 19var result = new List<XmlResponseComment>();
Microsoft.AspNetCore.OutputCaching (5)
OutputCacheEntryFormatter.cs (1)
510var pairs = new List<KeyValuePair<string, int>>(arr.Length);
OutputCacheMiddleware.cs (1)
225List<IOutputCachePolicy>? result = null;
OutputCacheOptions.cs (1)
41internal List<IOutputCachePolicy>? BasePolicies { get; set; }
OutputCachePolicyBuilder.cs (2)
19private readonly List<IOutputCachePolicy> _policies = new(); 20private List<Func<OutputCacheContext, CancellationToken, ValueTask<bool>>>? _requirements;
Microsoft.AspNetCore.RateLimiting (1)
DefaultCombinedLease.cs (1)
62List<Exception>? exceptions = null;
Microsoft.AspNetCore.Razor (4)
TagHelpers\DefaultTagHelperContent.cs (2)
21private List<object> _buffer; 23private List<object> Buffer
TagHelpers\ReadOnlyTagHelperAttributeList.cs (1)
119List<TagHelperAttribute> matchedAttributes = null;
TagHelpers\TagHelperAttributeList.cs (1)
35public TagHelperAttributeList(List<TagHelperAttribute> attributes)
Microsoft.AspNetCore.Razor.Runtime (5)
Hosting\RazorCompiledItemLoader.cs (1)
38var items = new List<RazorCompiledItem>();
Runtime\TagHelpers\TagHelperExecutionContext.cs (2)
15private readonly List<ITagHelper> _tagHelpers; 93internal List<ITagHelper> TagHelperList => _tagHelpers;
Runtime\TagHelpers\TagHelperRunner.cs (1)
52var tagHelpers = executionContext.TagHelperList;
Runtime\TagHelpers\TagHelperScopeManager.cs (1)
105private readonly List<TagHelperExecutionContext> _executionContexts;
Microsoft.AspNetCore.Razor.Utilities.Shared (25)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ListExtensions.cs (8)
14public static void SetCapacityIfLarger<T>(this List<T> list, int newCapacity) 23/// Copies the elements of the <see cref="List{T}"/> to a new array, or returns an 24/// empty array if the <see cref="List{T}"/> is null. 27/// On .NET Framework, <see cref="List{T}.ToArray()"/> will create a new empty array for any 28/// empty <see cref="List{T}"/>. This method avoids that extra allocation. 30public static T[] ToArrayOrEmpty<T>(this List<T>? list) 35public static bool Any<T>(this List<T> list) 50public static void CopyTo<T>(this List<T> list, Span<T> destination)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\Extensions.cs (5)
76public static PooledObject<List<T>> GetPooledObject<T>(this ObjectPool<List<T>> pool) 79public static PooledObject<List<T>> GetPooledObject<T>( 80this ObjectPool<List<T>> pool, 81out List<T> list)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\ListPool`1.cs (5)
9/// A pool of <see cref="List{T}"/> instances. 16internal sealed partial class ListPool<T> : CustomObjectPool<List<T>> 33public static PooledObject<List<T>> GetPooledObject() 36public static PooledObject<List<T>> GetPooledObject(out List<T> list)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\ListPool`1.Policy.cs (2)
31public override List<T> Create() => []; 33public override bool Return(List<T> list)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledList`1.cs (2)
11/// Wraps a pooled <see cref="List{T}"/> but doesn't allocate it until 18private List<T>? _list;
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledList`1.Enumerator.cs (2)
13private readonly List<T>? _list; 17public Enumerator(List<T> list)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ReadOnlyListExtensions.cs (1)
1175case List<T> listOfT:
Microsoft.AspNetCore.ResponseCaching (4)
CacheEntry\CachedResponseBody.cs (2)
10public CachedResponseBody(List<byte[]> segments, long length) 16public List<byte[]> Segments { get; }
src\aspnetcore\src\Shared\SegmentWriteStream.cs (2)
8private readonly List<byte[]> _segments = new(); 26internal List<byte[]> GetSegments()
Microsoft.AspNetCore.Rewrite (7)
ApacheModRewrite\FileParser.cs (1)
11var rules = new List<IRule>();
ApacheModRewrite\TestStringParser.cs (1)
39var results = new List<PatternSegment>();
ApacheModRewrite\Tokenizer.cs (1)
34var tokens = new List<string>();
BackReferenceCollection.cs (1)
10private readonly List<string> _backReferences = new List<string>();
IISUrlRewrite\ConditionCollection.cs (1)
10private readonly List<Condition> _conditions = new List<Condition>();
IISUrlRewrite\InputParser.cs (1)
58var results = new List<PatternSegment>();
IISUrlRewrite\UrlRewriteFileParser.cs (1)
33var result = new List<IISUrlRewriteRule>();
Microsoft.AspNetCore.Routing (137)
CompositeEndpointDataSource.cs (6)
22private List<Endpoint>? _endpoints; 25private List<IDisposable>? _changeTokenRegistrations; 89var groupedEndpoints = new List<Endpoint>(); 106List<IDisposable>? disposables = null; 193List<IDisposable>? oldChangeTokenRegistrations = null; 265var endpoints = new List<Endpoint>();
DecisionTree\DecisionTreeBuilder.cs (6)
76var itemDescriptors = new List<ItemDescriptor<TItem>>(itemCount); 98List<ItemDescriptor<TItem>> items) 107var matches = new List<TItem>(); 132if (!criterion.TryGetValue(kvp.Value, out var branch)) 150var reducedCriteria = new List<DecisionCriterion<TItem>>(); 216private sealed class Criterion : Dictionary<DecisionCriterionValue, List<ItemDescriptor<TItem>>>
DefaultLinkGenerator.cs (8)
80var endpoints = GetEndpoints(address); 103var endpoints = GetEndpoints(address); 132var endpoints = GetEndpoints(address); 165var endpoints = GetEndpoints(address); 182private List<RouteEndpoint> GetEndpoints<TAddress>(TAddress address) 185var endpoints = addressingScheme.FindEndpoints(address).OfType<RouteEndpoint>().ToList(); 201List<RouteEndpoint> endpoints, 235List<RouteEndpoint> endpoints,
DefaultLinkParser.cs (8)
50var endpoints = GetEndpoints(address); 70private List<RouteEndpoint> GetEndpoints<TAddress>(TAddress address) 73var endpoints = addressingScheme.FindEndpoints(address).OfType<RouteEndpoint>().ToList(); 89var constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 94var constraintsForParameter = new List<IRouteConstraint>(); 155public readonly Dictionary<string, List<IRouteConstraint>> Constraints; 157public MatcherState(RoutePatternMatcher matcher, Dictionary<string, List<IRouteConstraint>> constraints) 163public void Deconstruct(out RoutePatternMatcher matcher, out Dictionary<string, List<IRouteConstraint>> constraints)
InlineRouteParameterParser.cs (1)
100var inlineConstraints = new List<InlineConstraint>();
Matching\AcceptsMatcherPolicy.cs (2)
150var edges = new Dictionary<string, List<Endpoint>>(StringComparer.OrdinalIgnoreCase); 222if (!edges.TryGetValue(AnyContentType, out var anyEndpoints))
Matching\CandidateSet.cs (1)
339var duplicates = new List<Endpoint>();
Matching\DefaultEndpointSelector.cs (1)
111var matches = new List<Endpoint>();
Matching\DfaMatcherBuilder.cs (27)
18private readonly List<RouteEndpoint> _endpoints = new List<RouteEndpoint>(); 29private readonly List<KeyValuePair<string, object>> _slots; 30private readonly List<(string parameterName, int segmentIndex, int slotIndex)> _captures; 31private readonly List<(RoutePatternPathSegment pathSegment, int segmentIndex)> _complexSegments; 32private readonly List<KeyValuePair<string, IRouteConstraint>> _constraints; 72var work = new List<DfaBuilderWorkerWorkItem>(_endpoints.Count); 163private List<DfaBuilderWorkerWorkItem> _previousWork; 164private List<DfaBuilderWorkerWorkItem> _work; 171List<DfaBuilderWorkerWorkItem> work, 192var nextWork = _previousWork; 212List<DfaNode> nextParents; 253List<DfaNode> parents, 254List<DfaNode> nextParents, 372private void AddParentsMatchingComplexSegment(RouteEndpoint endpoint, List<DfaNode> nextParents, RoutePatternPathSegment segment, DfaNode parent, RoutePatternParameterPart parameterPart) 425private void AddParentsWithMatchingLiteralConstraints(List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, IReadOnlyList<RoutePatternParameterPolicyReference> parameterPolicyReferences) 473private void AddRequiredLiteralValue(RouteEndpoint endpoint, List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, object requiredValue) 495private static void AddLiteralNode(bool includeLabel, List<DfaNode> nextParents, DfaNode parent, string literal) 649List<IEndpointSelectorPolicy> endpointSelectorPolicies = null; 889var work = new List<DfaNode>() { node, }; 890List<DfaNode> previousWork = null; 896List<DfaNode> nextWork; 955var nodeBuilderPolicies = new List<INodeBuilderPolicy>(); 956var endpointComparerPolicies = new List<IEndpointComparerPolicy>(); 957var endpointSelectorPolicies = new List<IEndpointSelectorPolicy>(); 996public List<DfaNode> Parents { get; } 998public DfaBuilderWorkerWorkItem(RouteEndpoint endpoint, int precedenceDigit, List<DfaNode> parents) 1005public void Deconstruct(out RouteEndpoint endpoint, out int precedenceDigit, out List<DfaNode> parents)
Matching\DfaNode.cs (1)
26public List<Endpoint> Matches { get; private set; }
Matching\HostMatcherPolicy.cs (2)
207var edges = new Dictionary<EdgeKey, List<Endpoint>>(); 283List<EdgeKey>? result = null;
Matching\HttpMethodDestinationsLookup.cs (1)
23public HttpMethodDestinationsLookup(List<KeyValuePair<string, int>> destinations, int exitDestination)
Matching\HttpMethodMatcherPolicy.cs (7)
174var allHttpMethods = new List<string>(); 175var edges = new Dictionary<EdgeKey, List<Endpoint>>(); 285var matches = new List<Endpoint>() { endpoint, }; 313List<KeyValuePair<string, int>>? destinations = null; 314List<KeyValuePair<string, int>>? corsPreflightDestinations = null; 364static void ProcessEdge(string httpMethod, int destination, ref int exitDestination, ref List<KeyValuePair<string, int>>? destinations) 396private static bool ContainsHttpMethod(List<string> httpMethods, string httpMethod)
Matching\NegotiationMatcherPolicy.cs (5)
262var edges = new Dictionary<string, List<Endpoint>>(StringComparer.OrdinalIgnoreCase); 267if (!edges.TryGetValue(metadata, out var _)) 290var endpointsForType = edges[metadata]; 297if (!edges.TryGetValue(DefaultNegotiationValue, out var anyEndpoints)) 325private double[] CalculateEndpointQualities(List<Endpoint> values)
ParameterPolicyActivator.cs (4)
119var matchingConstructors = GetMatchingConstructors(constructors, serviceProvider, arguments.Length); 146private static List<ConstructorInfo> GetMatchingConstructors(ConstructorInfo[] constructors, IServiceProvider? serviceProvider, int argumentsLength) 148var result = new List<ConstructorInfo>(); 159private static ConstructorInfo GetLongestConstructor(List<ConstructorInfo> constructors, Type parameterPolicyType)
Patterns\DefaultRoutePatternTransformer.cs (5)
150List<RoutePatternParameterPart> updatedParameters = null; 151List<RoutePatternPathSegment> updatedSegments = null; 217private static void RemoveParameterDefault(List<RoutePatternPathSegment> segments, List<RoutePatternParameterPart> parameters, RoutePatternParameterPart parameter) 230var updatedParts = new List<RoutePatternPart>(segment.Parts);
Patterns\RoutePatternFactory.cs (8)
443Dictionary<string, List<RoutePatternParameterPolicyReference>>? parameterPolicyReferences, 469List<RoutePatternParameterPart>? parameters = null; 608List<RoutePatternParameterPolicyReference>? parameterConstraints = null; 614parameterPolicyReferences = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(StringComparer.OrdinalIgnoreCase); 648private static Dictionary<string, List<RoutePatternParameterPolicyReference>>? CreateRoutePatternPolicyReferences(RouteValueDictionary? parameterPolicies) 650Dictionary<string, List<RoutePatternParameterPolicyReference>>? updatedParameterPolicies = null; 653updatedParameterPolicies = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(parameterPolicies.Count, StringComparer.OrdinalIgnoreCase); 657var policyReferences = new List<RoutePatternParameterPolicyReference>();
Patterns\RoutePatternParser.cs (7)
32var segments = new List<RoutePatternPathSegment>(); 71private static bool ParseSegment(Context context, List<RoutePatternPathSegment> segments) 76var parts = new List<RoutePatternPart>(); 143private static bool ParseParameter(Context context, List<RoutePatternPart> parts) 245private static bool ParseLiteral(Context context, List<RoutePatternPart> parts) 316private static bool IsAllValid(Context context, List<RoutePatternPathSegment> segments) 338private static bool IsSegmentValid(Context context, List<RoutePatternPart> parts)
RouteCollection.cs (3)
19private readonly List<IRouter> _routes = new List<IRouter>(); 20private readonly List<IRouter> _unnamedRoutes = new List<IRouter>(); 127private static VirtualPathData? GetVirtualPath(VirtualPathContext context, List<IRouter> routes)
RouteConstraintBuilder.cs (3)
27private readonly Dictionary<string, List<IRouteConstraint>> _constraints; 44_constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 169if (!_constraints.TryGetValue(key, out var list))
RouteEndpointDataSource.cs (1)
23private readonly List<RouteEntry> _routeEntries = new();
RouteGroupBuilder.cs (4)
23private readonly List<EndpointDataSource> _dataSources = new(); 24private readonly List<Action<EndpointBuilder>> _conventions = new(); 25private readonly List<Action<EndpointBuilder>> _finallyConventions = new(); 109var groupedEndpoints = new List<Endpoint>();
RouteValuesAddressScheme.cs (8)
36else if (state.NamedMatches.TryGetValue(address.RouteName, out var namedMatchResults)) 72var matchesWithRequiredValues = new List<OutboundMatch>(); 73var namedOutboundMatchResults = new Dictionary<string, List<OutboundMatchResult>>(StringComparer.OrdinalIgnoreCase); 132if (!namedOutboundMatchResults.TryGetValue(entry.RouteName, out var matchResults)) 173public readonly List<OutboundMatch> MatchesWithRequiredValues; 175public readonly FrozenDictionary<string, List<OutboundMatchResult>> NamedMatches; 178List<OutboundMatch> matchesWithRequiredValues, 180FrozenDictionary<string, List<OutboundMatchResult>> namedMatches)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (3)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,
Template\DefaultTemplateBinderFactory.cs (1)
39var policies = new List<(string parameterName, IParameterPolicy policy)>();
Template\RouteTemplate.cs (1)
59public RouteTemplate(string template, List<TemplateSegment> segments)
Template\TemplateBinder.cs (2)
132List<(string parameterName, IRouteConstraint constraint)>? constraintList = null; 133List<(string parameterName, IOutboundParameterTransformer transformer)>? parameterTransformerList = null;
Template\TemplateSegment.cs (1)
48public List<TemplatePart> Parts { get; }
Tree\LinkGenerationDecisionTree.cs (5)
24private readonly List<OutboundMatch> _conventionalEntries; 31var attributedEntries = new List<OutboundMatch>(); 72var results = new List<OutboundMatchResult>(); 108List<OutboundMatchResult> results, 162private void ProcessConventionalEntries(List<OutboundMatchResult> results)
Tree\TreeRouter.cs (1)
90var outboundMatches = new List<OutboundMatch>();
Tree\UrlMatchingNode.cs (1)
50public List<InboundMatch> Matches { get; }
UriBuildingContext.cs (2)
21private readonly List<BufferValue> _buffer; 87var buffer = _buffer;
ValidationEndpointFilterFactory.cs (1)
34List<ValidatableParameterEntry>? validatableParameters = null;
Microsoft.AspNetCore.Routing.Abstractions (7)
RouteData.cs (4)
18private List<IRouter>? _routers; 142List<IRouter>? routers = null; 258var routers = _routeData._routers!; 271var routers = _routeData._routers!;
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (3)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,
Microsoft.AspNetCore.Server.HttpSys (7)
MessagePump.cs (1)
76var serverAddressCopy = _serverAddresses.Addresses.ToList();
RequestProcessing\RequestContext.FeatureCollection.cs (4)
76private List<Tuple<Func<object, Task>, object>>? _onStartingActions = new List<Tuple<Func<object, Task>, object>>(); 77private List<Tuple<Func<object, Task>, object>>? _onCompletedActions = new List<Tuple<Func<object, Task>, object>>(); 675var actions = _onStartingActions; 766var actions = _onCompletedActions;
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
24private readonly List<Exception> _blockAccessExceptions;
src\aspnetcore\src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
Microsoft.AspNetCore.Server.IIS (8)
Core\IISHttpContext.FeatureCollection.cs (1)
50private List<KeyValuePair<Type, object>>? MaybeExtra;
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
24private readonly List<Exception> _blockAccessExceptions;
src\aspnetcore\src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
134private List<string>? AttributeValues { get; set; }
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
62var typeLoadExceptions = new List<Exception>(); 72var list = new List<Exception>();
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
39var frames = new List<StackFrameInfo>(stackFrames.Length); 41List<Exception>? exceptions = null;
Microsoft.AspNetCore.Server.IntegrationTesting (6)
TestMatrix.cs (6)
117var variants = new List<TestVariant>(); 133private void VaryByServer(List<TestVariant> variants) 166private void VaryByTfm(List<TestVariant> variants, ServerType server, string skip) 198private void VaryByApplicationType(List<TestVariant> variants, ServerType server, string tfm, string skip) 220private void VaryByArchitecture(List<TestVariant> variants, ServerType server, string tfm, string skip, ApplicationType type) 298private void CheckForSkips(List<TestVariant> variants)
Microsoft.AspNetCore.Server.Kestrel.Core (71)
Internal\CertificatePathWatcher.cs (2)
73public void UpdateWatches(List<CertificateConfig> certificateConfigsToRemove, List<CertificateConfig> certificateConfigsToAdd)
Internal\ConfigurationReader.cs (1)
70var endpoints = new List<EndpointConfig>();
Internal\Http\Http1OutputProducer.cs (1)
64private List<CompletedBuffer>? _completedSegments;
Internal\Http\HttpProtocol.Generated.cs (1)
81private List<KeyValuePair<Type, object>>? MaybeExtra;
Internal\Http2\Http2FrameWriter.cs (2)
902public ValueTask<FlushResult> WriteSettingsAsync(List<Http2PeerSetting> settings) 924internal static void WriteSettings(List<Http2PeerSetting> settings, Span<byte> destination)
Internal\Http3\Http3FrameWriter.cs (3)
94internal Task WriteSettingsAsync(List<Http3PeerSetting> settings) 130internal static int CalculateSettingsSize(List<Http3PeerSetting> settings) 141internal static void WriteSettings(List<Http3PeerSetting> settings, Span<byte> destination)
Internal\Http3\Http3PeerSettings.cs (2)
20internal List<Http3PeerSetting> GetNonProtocolDefaults() 24var list = new List<Http3PeerSetting>(1);
Internal\Infrastructure\KestrelConnection.cs (1)
12private List<(Action<object> handler, object state)>? _heartbeatHandlers;
Internal\Infrastructure\KestrelConnectionOfT.cs (1)
105public List<KeyValuePair<string, object?>> TagsList { get; } = new List<KeyValuePair<string, object?>>();
Internal\Infrastructure\KestrelEventSource.cs (1)
41private readonly List<WeakReference<KestrelServerOptions>> _options = new();
Internal\Infrastructure\KestrelMetrics.cs (2)
112public void ConnectionStop(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp) 121private void ConnectionStopCore(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp)
Internal\Infrastructure\TransportConnectionManager.cs (2)
57var closeTasks = new List<Task>(); 74var abortTasks = new List<Task>();
Internal\Infrastructure\TransportManager.cs (8)
14private readonly List<ActiveTransport> _transports = []; 16private readonly List<IConnectionListenerFactory> _transportFactories; 17private readonly List<IMultiplexedConnectionListenerFactory> _multiplexedTransportFactories; 22List<IConnectionListenerFactory> transportFactories, 23List<IMultiplexedConnectionListenerFactory> multiplexedTransportFactories, 106public Task StopEndpointsAsync(List<EndpointConfig> endpointsToStop, CancellationToken cancellationToken) 108var transportsToStop = new List<ActiveTransport>(); 124private async Task StopTransportsAsync(List<ActiveTransport> transportsToStop, CancellationToken cancellationToken)
Internal\KestrelServerImpl.cs (3)
24private readonly List<IConnectionListenerFactory> _transportFactories; 25private readonly List<IMultiplexedConnectionListenerFactory> _multiplexedTransportFactories; 366var configsToStop = new List<EndpointConfig>(endpointsToStop.Count);
Internal\ServerAddressesCollection.cs (1)
15private readonly List<string> _addresses = new List<string>();
KestrelConfigurationLoader.cs (8)
335internal (List<ListenOptions>, List<ListenOptions>) Reload() 342var endpointsToStop = Options.ConfigurationBackedListenOptions.ToList(); 343var endpointsToStart = new List<ListenOptions>(); 344var endpointsToReuse = new List<ListenOptions>(); 394var matchingBoundEndpoints = new List<ListenOptions>(); 441var certificateConfigsToRemove = new List<CertificateConfig>(); 442var certificateConfigsToAdd = new List<CertificateConfig>();
KestrelServerOptions.cs (3)
74internal List<ListenOptions> CodeBackedListenOptions { get; } = new List<ListenOptions>(); 75internal List<ListenOptions> ConfigurationBackedListenOptions { get; } = new List<ListenOptions>(); 92internal List<ListenOptions> OptionsInUse { get; } = new List<ListenOptions>();
ListenOptions.cs (2)
21private readonly List<Func<ConnectionDelegate, ConnectionDelegate>> _middleware = new List<Func<ConnectionDelegate, ConnectionDelegate>>(); 22private readonly List<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>> _multiplexedMiddleware = new List<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>>();
LocalhostListenOptions.cs (1)
40var exceptions = new List<Exception>();
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
24private readonly List<Exception> _blockAccessExceptions;
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (9)
140var certificates = new List<X509Certificate2>(); 248protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 292var currentUserCertificates = allCurrentUserCertificates.Where(c => c.Subject == Subject).ToList(); 293var localMachineCertificates = allLocalMachineCertificates.Where(c => c.Subject == Subject).ToList(); 294var filteredCertificates = currentUserCertificates.Concat(localMachineCertificates).ToList(); 318var certificates = filteredCertificates; 805var extensions = new List<X509Extension>(); 1034var list = certificates.ToList(); 1076var certificatesToDispose = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
295var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 374protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 380var certsFromStore = new List<X509Certificate2>(); 426var certsFromDisk = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
137var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 304var nssDbs = GetNssDbs(homeDirectory); 505var nssDbs = GetNssDbs(homeDirectory); 843var nssDbs = new List<string>(); 861private static List<NssDb> GetNssDbs(string homeDirectory) 863var nssDbs = new List<NssDb>(); 1018var certs = new List<FileInfo>();
src\aspnetcore\src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
src\aspnetcore\src\Shared\Metrics\MetricsExtensions.cs (2)
37if (tags is List<KeyValuePair<string, object?>> list) 66if (tags is List<KeyValuePair<string, object?>> list)
src\aspnetcore\src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
99internal List<Http2PeerSetting> GetNonProtocolDefaults() 103var list = new List<Http2PeerSetting>(2);
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (4)
DirectTlsTransportFactory.cs (3)
90var applicationProtocols = BuildApplicationProtocols(endpointOptions.HttpProtocols); 193private static List<SslApplicationProtocol> BuildApplicationProtocols(HttpProtocols protocols) 195var applicationProtocols = new List<SslApplicationProtocol>();
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
44private List<KeyValuePair<Type, object>>? MaybeExtra;
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
44private List<KeyValuePair<Type, object>>? MaybeExtra;
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
24private readonly List<Exception> _blockAccessExceptions;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (5)
Internal\QuicStreamContext.cs (1)
336var onClosed = _onClosedRegistrations;
Internal\QuicStreamContext.FeatureCollection.cs (1)
33private List<OnCloseRegistration>? _onClosedRegistrations;
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
44private List<KeyValuePair<Type, object>>? MaybeExtra;
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (1)
37private List<KeyValuePair<Type, object>>? MaybeExtra;
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
24private readonly List<Exception> _blockAccessExceptions;
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Internal\SocketSender.cs (1)
14private List<ArraySegment<byte>>? _bufferList;
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
44private List<KeyValuePair<Type, object>>? MaybeExtra;
Microsoft.AspNetCore.SignalR.Client.Core (7)
HubConnection.cs (5)
1001readers = PackageStreamingParams(connectionState, ref args, out var streamIds); 1027private Dictionary<string, object>? PackageStreamingParams(ConnectionState connectionState, ref object?[] args, out List<string>? streamIds) 1353readers = PackageStreamingParams(connectionState, ref args, out var streamIds); 1548readers = PackageStreamingParams(connectionState, ref args, out var streamIds); 2332private readonly List<InvocationHandler> _invocationHandlers;
Internal\SerializedHubMessage.cs (2)
20private List<SerializedMessage>? _cachedItems; 87var list = new List<SerializedMessage>(2);
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (7)
HubClientProxyGenerator.Parser.cs (1)
284var members = providerSymbol.GetMembers()
HubClientProxyGenerator.SourceGenerationSpec.cs (3)
21public List<TypeSpec> Types = new(); 27public List<MethodSpec> Methods = new(); 35public List<ArgumentSpec> Arguments = new();
HubServerProxyGenerator.SourceGenerationSpec.cs (3)
21public List<ClassSpec> Classes = new(); 28public List<MethodSpec> Methods = new(); 36public List<ArgumentSpec> Arguments = new();
Microsoft.AspNetCore.SignalR.Common (3)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.SignalR.Core (16)
DefaultHubLifetimeManager.cs (5)
101List<Task>? tasks = null; 147private static void SendToGroupConnections(string methodName, object?[] args, ConcurrentDictionary<string, HubConnectionContext> connections, Func<HubConnectionContext, object?, bool>? include, object? state, ref List<Task>? tasks, ref SerializedHubMessage? message, CancellationToken cancellationToken) 211List<Task>? tasks = null; 228List<Task>? tasks = null; 261List<Task>? tasks = null;
HubConnectionHandler.cs (1)
74List<IHubFilter>? hubFilters = null;
HubOptions.cs (1)
57internal List<IHubFilter>? HubFilters { get; set; }
HubOptionsSetup.cs (1)
25private readonly List<string> _defaultProtocols = new List<string>();
Internal\DefaultHubDispatcher.cs (1)
43bool disableImplicitFromServiceParameters, ILogger<DefaultHubDispatcher<THub>> logger, List<IHubFilter>? hubFilters, HubLifetimeManager<THub> lifetimeManager)
Internal\DefaultHubProtocolResolver.cs (1)
14private readonly List<IHubProtocol> _hubProtocols;
Internal\HubMethodDescriptor.cs (2)
159public List<Type>? StreamingParameters { get; private set; } 161public List<(int, object?)>? KeyedServiceKeys { get; private set; }
SerializedHubMessage.cs (2)
16private List<SerializedMessage>? _cachedItems; 85var list = new List<SerializedMessage>(2);
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
181List<string>? newStreamIds = null;
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (4)
Protocol\MessagePackHubProtocolWorker.cs (1)
269List<string>? streams = null;
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (4)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
181List<string>? newStreamIds = null;
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.SignalR.Specification.Tests (6)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
src\aspnetcore\src\SignalR\common\testassets\Tests.Utils\TestClient.cs (3)
26private List<(Action<object> handler, object state)> _heartbeatHandlers; 53var claims = new List<Claim> { new Claim(ClaimTypes.Name, claimValue) }; 110var result = new List<HubMessage>();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (13)
Internal\DefaultHubMessageSerializer.cs (2)
11private readonly List<IHubProtocol> _hubProtocols; 29var list = new List<SerializedMessage>(_hubProtocols.Count);
RedisHubLifetimeManager.cs (8)
82var supportedProtocols = hubProtocolResolver.AllProtocols.Select(p => p.Name).ToList(); 124var tasks = new List<Task>(); 245var publishTasks = new List<Task>(connectionIds.Count); 260var publishTasks = new List<Task>(groupNames.Count); 280var publishTasks = new List<Task>(userIds.Count); 461var tasks = new List<Task>(_connections.Count); 597var tasks = new List<Task>(subscriptions.Count); 623var tasks = new List<Task>(groupConnections.Count);
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.StaticAssets (37)
_generated\13\StaticAssetsManifestJsonContext.GetJsonTypeInfo.g.cs (1)
54if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>))
_generated\5\StaticAssetsManifestJsonContext.StaticAssetsManifest.g.cs (3)
95var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>> 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetsManifest).GetProperty("Endpoints", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>), global::System.Array.Empty<global::System.Type>(), null), 113properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>>(options, info2);
_generated\9\StaticAssetsManifestJsonContext.ListStaticAssetDescriptor.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>>? _ListStaticAssetDescriptor; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>> ListStaticAssetDescriptor 22get => _ListStaticAssetDescriptor ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>> Create_ListStaticAssetDescriptor(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>, global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>(options, info); 47private void ListStaticAssetDescriptorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>? value)
Development\StaticAssetDevelopmentRuntimeHandler.cs (5)
32public StaticAssetDevelopmentRuntimeHandler(List<StaticAssetDescriptor> descriptors) 106private void CreateDescriptorMap(List<StaticAssetDescriptor> descriptors) 259List<StaticAssetDescriptor> descriptors) 346var responseHeaders = new List<StaticAssetResponseHeader>(descriptor.ResponseHeaders); 374var propertiesList = new List<StaticAssetProperty>(descriptor.Properties);
StaticAssetEndpointDataSource.cs (6)
19private readonly List<StaticAssetDescriptor> _descriptors; 21private readonly List<Action<EndpointBuilder>> _conventions = []; 22private readonly List<Action<EndpointBuilder>> _finallyConventions = []; 23private List<Endpoint> _endpoints = null!; 32List<StaticAssetDescriptor> descriptors) 103var endpoints = new List<Endpoint>();
StaticAssetEndpointFactory.cs (2)
19public Endpoint Create(StaticAssetDescriptor resource, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions)
StaticAssetsEndpointConventionBuilder.cs (7)
15private readonly List<StaticAssetDescriptor> _descriptors; 16private readonly List<Action<EndpointBuilder>> _conventions; 17private readonly List<Action<EndpointBuilder>> _finallyConventions; 19internal StaticAssetsEndpointConventionBuilder(object lck, bool isBuildManifest, List<StaticAssetDescriptor> descriptors, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions) 28internal List<StaticAssetDescriptor> Descriptors => _descriptors;
StaticAssetsInvoker.cs (1)
28private readonly List<StaticAssetResponseHeader> _remainingHeaders;
StaticAssetsManifest.cs (2)
38internal static StaticAssetsEndpointDataSource CreateDataSource(IEndpointRouteBuilder endpoints, string manifestName, List<StaticAssetDescriptor> descriptors, bool isBuildManifest) 54public List<StaticAssetDescriptor> Endpoints { get; set; } = [];
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\BlazorWasmHotReloadMiddleware.cs (1)
48internal List<Update> Updates { get; } = [];
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
27private readonly List<string> _allowedOrigins;
Microsoft.AspNetCore.WebUtilities (4)
KeyValueAccumulator.cs (3)
15private Dictionary<string, List<string>> _expandingAccumulator; 49_expandingAccumulator = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 53var list = new List<string>(8);
PagedByteBuffer.cs (1)
26internal List<byte[]> Pages { get; }
Microsoft.Build (766)
_generated\3\TasksDetailsJsonContext.ListTaskDetailInfo.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>>? _ListTaskDetailInfo; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>> ListTaskDetailInfo 22get => _ListTaskDetailInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>> Create_ListTaskDetailInfo(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>, global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>(options, info); 47private void ListTaskDetailInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>? value)
_generated\8\TasksDetailsJsonContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>))
BackEnd\BuildManager\BuildManager.cs (9)
831List<int> configurationsCleared = _configCache!.ClearNonExplicitlyLoadedConfigurations(); 1106var submissionsToCheck = new List<BuildSubmissionBase>(_buildSubmissions.Values); 1367var submissionDetailParts = new List<string>(_buildSubmissions.Count); 1405var nodeDetails = new List<string>(_activeNodes.Count); 2377var unblockedNodes = blockedNodes 2932var submissions = new List<BuildSubmissionBase>(_buildSubmissions.Values); 3173var submissions = new List<BuildSubmissionBase>(_buildSubmissions.Values); 3379static List<ForwardingLoggerRecord> ProcessForwardingLoggers(IEnumerable<ForwardingLoggerRecord>? forwarders) 3390List<ForwardingLoggerRecord> result = forwarders.ToList();
BackEnd\BuildManager\CacheAggregator.cs (1)
17private readonly List<(IConfigCache ConfigCache, IResultsCache ResultsCache)> _inputCaches = new List<(IConfigCache ConfigCache, IResultsCache ResultsCache)>();
BackEnd\BuildManager\RequestedProjectState.cs (9)
18private List<string> _propertyFilters; 19private IDictionary<string, List<string>> _itemFilters; 24public List<string> PropertyFilters 33public IDictionary<string, List<string>> ItemFilters 95foreach (KeyValuePair<string, List<string>> kvp in ItemFilters) 97if (!another.ItemFilters.TryGetValue(kvp.Key, out List<string> metadata)) 133private static IDictionary<string, List<string>> CreateItemMetadataDictionary(int capacity) 135return new Dictionary<string, List<string>>(capacity, StringComparer.OrdinalIgnoreCase); 138private static void TranslateMetadataForItem(ITranslator translator, ref List<string> list)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (10)
77private readonly List<BuildRequestEntry> _requests; 258var requestsToShutdown = new List<BuildRequestEntry>(_requests); 259var deactivateExceptions = new List<Exception>(_requests.Count); 266var requestsToWait = new List<BuildRequestEntry>(_requests.Count); 586var blockersToIssue = new List<BuildRequestBlocker>(); 589var requestsToIssue = new List<BuildRequest>(); 783var completedEntries = new List<BuildRequestEntry>(); 1191List<BuildResult> existingResultsToReport = null; 1309List<BuildRequestConfiguration> unresolvedConfigurationsToIssue = issuingEntry.GetUnresolvedConfigurationsToIssue(); 1338List<BuildRequest> requestsToIssue = issuingEntry.GetRequestsToIssueIfReady();
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (11)
80private Dictionary<int, List<BuildRequest>> _unresolvedConfigurations; 86private List<BuildRequest> _requestsToIssue; 91private List<BuildRequestConfiguration> _unresolvedConfigurationsToIssue; 244if (_unresolvedConfigurations?.TryGetValue(unresolvedConfigId, out List<BuildRequest> requests) != true) 269public List<BuildRequest> GetRequestsToIssueIfReady() 273List<BuildRequest> requests = _requestsToIssue; 285public List<BuildRequestConfiguration> GetUnresolvedConfigurationsToIssue() 289List<BuildRequestConfiguration> configurationsToIssue = _unresolvedConfigurationsToIssue; 450foreach (List<BuildRequest> requests in _unresolvedConfigurations.Values) 525_unresolvedConfigurations ??= new Dictionary<int, List<BuildRequest>>(); 527if (!_unresolvedConfigurations.TryGetValue(newRequest.ConfigurationId, out List<BuildRequest> value))
BackEnd\Components\Caching\ConfigCache.cs (2)
197public List<int> ClearNonExplicitlyLoadedConfigurations() 199List<int> configurationIdsCleared = new List<int>();
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
133public List<int> ClearNonExplicitlyLoadedConfigurations()
BackEnd\Components\Caching\IConfigCache.cs (1)
77List<int> ClearNonExplicitlyLoadedConfigurations();
BackEnd\Components\Caching\IResultsCache.cs (2)
57ResultsCacheResponse SatisfyRequest(BuildRequest request, List<string> configInitialTargets, List<string> configDefaultTargets, bool skippedResultsDoNotCauseCacheMiss);
BackEnd\Components\Caching\ResultsCache.cs (4)
161public ResultsCacheResponse SatisfyRequest(BuildRequest request, List<string> configInitialTargets, List<string> configDefaultTargets, bool skippedResultsDoNotCauseCacheMiss) 200List<string> targetsToAddResultsFor = new List<string>(configInitialTargets); 307private static bool CheckResults(BuildResult result, List<string> targets, bool checkTargetsMissingResults, bool skippedResultsAreOK)
BackEnd\Components\Caching\ResultsCacheWithOverride.cs (2)
74List<string> configInitialTargets, 75List<string> configDefaultTargets,
BackEnd\Components\Communications\LogMessagePacket.cs (6)
27private static List<KeyValuePair<string, string>> reusablePropertyList; 30private static List<(string itemType, object item)> reusableItemList; 198var list = reusablePropertyList; 227var list = reusableItemList; 266var list = reusablePropertyList; 503List<TaskItem> targetOutputs = null;
BackEnd\Components\Communications\NodeManager.cs (1)
96List<NodeInfo> nodes = new(numberOfNodesToCreate);
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
189var nodes = new List<NodeInfo>(numberOfNodesToCreate);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
149var contextsToShutDown = new List<NodeContext>(_nodeContexts.Values);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (6)
108protected void ShutdownConnectedNodes(List<NodeContext> contextsToShutDown, bool enableReuse) 166List<Process> nodeProcesses = GetPossibleRunningNodes().nodeProcesses.ToList(); 472List<Process> processes = new(); 578private static IList<Process> FilterProcessesByNodeMode(List<Process> processes, NodeMode expectedNodeMode, string expectedProcessName) 582List<Process> filtered = new(capacity: processes.Count); 756List<Process> filteredProcesses = [];
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
221List<NodeContext> contextsToShutDown = [.. _nodeContexts.Values];
BackEnd\Components\Logging\LoggingService.cs (6)
136private List<ILogger> _loggers; 141private List<ILogger> _distributedCentralLoggers; 147private List<LoggerDescription> _loggerDescriptions; 613var sinks = _eventSinkDictionary.Values.OfType<EventSourceSink>().ToList(); 812List<string> loggerTypes = new List<string>(); 838List<string> eventSinkNames = new List<string>();
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (3)
411List<string> listOfLoggers = new(); 412var loggerDescriptions = new List<RegisteredLoggerInfo>(); 421var outputFilePaths = new List<string>();
BackEnd\Components\Logging\ProjectLoggingContext.cs (3)
124List<string> targets, 160List<string> targets, 191List<string> targets,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (4)
263IReadOnlyList<string> requestedTargetsList = requestedTargets as List<string> ?? requestedTargets.ToList(); 770var graphEntryPoints = new List<ProjectGraphEntryPoint>(projectConfigurations.Count); 846List<ProjectCacheDescriptor> projectCacheDescriptors; 867List<string> targets = buildResult.ResultsByTarget?.Keys.ToList() ?? new();
BackEnd\Components\RequestBuilder\BatchingEngine.cs (7)
85internal static List<ItemBucket> PrepareBatchingBuckets( 86List<string> batchableObjectParameters, 105internal static List<ItemBucket> PrepareBatchingBuckets( 106List<string> batchableObjectParameters, 127List<ItemBucket> buckets = null; 297private static List<ItemBucket> BucketConsumedItems( 307var buckets = new List<ItemBucket>();
BackEnd\Components\RequestBuilder\IntrinsicTask.cs (1)
86protected static void AddIfNotEmptyString(List<string> list, string value)
BackEnd\Components\RequestBuilder\IntrinsicTasks\CallTarget.cs (2)
33private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>(); 99List<string[]> targetLists = MSBuild.CreateTargetLists(Targets, RunEachTargetSeparately);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (14)
54List<string> parameterValues = null; 57List<ItemBucket> buckets = null; 87var keepMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.KeepMetadata, ExpanderOptions.ExpandAll, child.KeepMetadataLocation).ToList(); 96var removeMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.RemoveMetadata, ExpanderOptions.ExpandAll, child.RemoveMetadataLocation).ToList(); 105var matchOnMetadataEvaluated = bucket.Expander.ExpandIntoStringListLeaveEscaped(child.MatchOnMetadata, ExpanderOptions.ExpandAll, child.MatchOnMetadataLocation).ToList(); 170List<ProjectItemInstance> itemsToAdd = ExpandItemIntoItems(child, bucket.Expander, keepMetadata, removeMetadata, loggingContext); 261List<ProjectItemInstance> itemsToRemove; 356private void GetBatchableValuesFromBuildItemGroupChild(List<string> parameterValues, ProjectItemGroupTaskItemInstance child) 391private List<ProjectItemInstance> ExpandItemIntoItems( 400List<ProjectItemInstance> items = new List<ProjectItemInstance>(); 492List<string> metadataToRemove = null; 586private List<ProjectItemInstance> FindItemsMatchingSpecification( 636List<ProjectItemInstance> itemsRemoved = new List<ProjectItemInstance>(); 654private List<ProjectItemInstance> FindItemsMatchingMetadataSpecification(
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
179private static List<KeyValuePair<string, string>> keyValuePairList;
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (11)
54private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>(); 280List<string[]> targetLists = CreateTargetLists(Targets, RunEachTargetSeparately); 401private async Task<bool> BuildProjectsInParallel(Dictionary<string, string> propertiesTable, string[] undefinePropertiesArray, List<string[]> targetLists, bool success, bool[] skipProjects) 405var projectsToBuildList = new List<ITaskItem>(); 448var expandedProperties = new List<string>(); 449var expandedTargets = new List<string>(); 486internal static List<string[]> CreateTargetLists( 494var targetLists = new List<string[]>(); 517List<string[]> targetLists, 522List<ITaskItem> targetOutputs, 536var undefinePropertiesPerProject = new List<string>[projects.Length];
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (3)
52List<ItemBucket> buckets = null; 57List<string> parameterValues = new List<string>(); 131private void GetBatchableValuesFromProperty(List<string> parameterValues, ProjectPropertyGroupTaskPropertyInstance property)
BackEnd\Components\RequestBuilder\Lookup.cs (22)
202internal List<string> GetPropertyOverrideMessages(Dictionary<string, string> lookupHash) 204List<string> errorMessages = null; 380foreach (KeyValuePair<string, List<ProjectItemInstance>> kvp in PrimaryAddTable) 388foreach (KeyValuePair<string, List<ProjectItemInstance>> kvp in PrimaryRemoveTable) 469List<List<ProjectItemInstance>> allAdds = null; 470List<List<ProjectItemInstance>> allRemoves = null; 483List<ProjectItemInstance> adds = scope.Adds[itemType]; 494List<ProjectItemInstance> removes = scope.Removes[itemType]; 561foreach (List<ProjectItemInstance> adds in allAdds) 570foreach (List<ProjectItemInstance> removes in allRemoves) 585List<ProjectItemInstance> result = new(itemsCount); 602foreach (List<ProjectItemInstance> removes in allRemoves) 635foreach (List<ProjectItemInstance> adds in allAdds) 759var deduplicatedItemsToAdd = new List<ProjectItemInstance>(); 775logFunction.Invoke(itemsToAdd as List<ProjectItemInstance>); 779var groupAsList = group as List<ProjectItemInstance>; 895private void ApplyModifies(List<ProjectItemInstance> result, Dictionary<ProjectItemInstance, MetadataModifications> allModifies) 1046List<ProjectItemInstance> tableOfItemsOfSameType = table[item.ItemType]; 1183var metadataToRemove = new List<string>(_modifications.Keys.Where(m => other[m].Remove));
BackEnd\Components\RequestBuilder\TargetBuilder.cs (6)
149List<TargetSpecification> targets = new List<TargetSpecification>(targetNames.Length); 252List<TargetSpecification> targetToPush = new List<TargetSpecification>(); 500var errorTargets = currentTargetEntry.GetErrorTargets(_projectLoggingContext); 668List<TargetEntry> targetsToPush = new List<TargetEntry>(targets.Count); 720if (HasCircularDependenceInTargets(parentTargetEntry, targetSpecification, out List<string> targetDependenceChain)) 834private bool HasCircularDependenceInTargets(TargetEntry parentTargetEntry, TargetSpecification targetSpecification, out List<string> circularDependenceChain)
BackEnd\Components\RequestBuilder\TargetEntry.cs (9)
333internal List<TargetSpecification> GetDependencies(ProjectLoggingContext projectLoggingContext) 402List<TargetSpecification> dependencyTargets = new List<TargetSpecification>(); 428List<ItemBucket> buckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, null); 628List<ItemBucket> batchingBuckets = BatchingEngine.PrepareBatchingBuckets(GetBatchableParametersForTarget(), _baseLookup, _target.Location, targetLoggingContext); 632List<TaskItem> targetOutputItemsList = new(); 697internal List<TargetSpecification> GetErrorTargets(ProjectLoggingContext projectLoggingContext) 702List<TargetSpecification> allErrorTargets = new List<TargetSpecification>(_target.OnErrorChildren.Count); 899private List<string> GetBatchableParametersForTarget() 901List<string> batchableTargetParameters = new List<string>();
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (22)
164out List<string> targetOutputItemSpecs); 165List<string> itemVectorsReferencedOnlyInTargetOutputs = null; 183out List<string> itemVectorsReferencedInBothTargetInputsAndOutputs, 184out List<string> itemVectorsReferencedOnlyInTargetInputs, 409out List<string> targetOutputItemSpecs) 520List<string> itemVectorsReferencedOnlyInTargetInputs, 521List<string> targetOutputItemSpecs) 528List<string> discreteTargetInputItemSpecs = GetItemSpecsFromItemVectors(itemVectorTransformsInTargetInputs); 550List<string> inputs = CollectionHelpers.RemoveNulls<string>(discreteTargetInputItemSpecs); 551List<string> outputs = CollectionHelpers.RemoveNulls<string>(targetOutputItemSpecs); 592List<string> itemVectorsReferencedInBothTargetInputsAndOutputs, 621List<ProjectItemInstance> upToDateInputItems = new List<ProjectItemInstance>(inputItems); 739List<string> targetOutputItemSpecs) 741List<string> targetInputItemSpecs = GetItemSpecsFromItemVectors(itemVectorsInTargetInputs); 745List<string> inputs = CollectionHelpers.RemoveNulls<string>(targetInputItemSpecs); 746List<string> outputs = CollectionHelpers.RemoveNulls<string>(targetOutputItemSpecs); 878private static List<string> GetItemSpecsFromItemVectors(ItemVectorPartitionCollection itemVectors) 880List<string> itemSpecs = new(); 922private static void DiffHashtables<K, V>(IDictionary<K, V> h1, IDictionary<K, V> h2, out List<K> commonKeys, out List<K> uniqueKeysInH1, out List<K> uniqueKeysInH2) where K : class, IEquatable<K> where V : class 1244private readonly List<DependencyAnalysisLogDetail> _dependencyAnalysisDetail = new List<DependencyAnalysisLogDetail>();
BackEnd\Components\RequestBuilder\TaskBuilder.cs (9)
250private List<string> CreateListOfParameterValues() 258List<string> taskParameters = new List<string>(_taskNode.ParametersForBuild.Count + _taskNode.Outputs.Count); 312List<ItemBucket> buckets = null; 337List<string> taskParameterValues = CreateListOfParameterValues(); 482List<string> overrideMessages = bucket.Lookup.GetPropertyOverrideMessages(lookupHash); 529List<string> overrideMessages = bucket.Lookup.GetPropertyOverrideMessages(lookupHash); 796var undeclaredProjects = GetUndeclaredProjects(msbuildTask); 1055private List<string> GetUndeclaredProjects(MSBuild msbuildTask) 1075List<string> undeclaredProjects = null;
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
294BuildEngineResult result = BuildProjectFilesInParallel(projectFileNames, targetNames, globalProperties, new List<String>[projectFileNames.Length], toolsVersion, includeTargetOutputs); 979List<IDictionary<string, ITaskItem[]>> targetOutputsPerProject = null; 1148List<IDictionary<string, ITaskItem[]>> targetOutputsPerProject = null;
BackEnd\Components\Scheduler\IScheduler.cs (1)
88List<ScheduleResponse> ReleaseCores(int requestId, int coresToRelease);
BackEnd\Components\Scheduler\SchedulableRequest.cs (5)
423List<SchedulableRequest> requestsToUnblock = new List<SchedulableRequest>(_requestsWeAreBlocking); 571List<SchedulableRequest> ancestors = new List<SchedulableRequest>(16); 589List<SchedulableRequest> ancestors = new List<SchedulableRequest>(16); 608private void CleanupForCircularDependencyAndThrow(SchedulableRequest requestCausingFailure, List<SchedulableRequest> ancestors) 612List<SchedulableRequest> tempRequests = new List<SchedulableRequest>(_requestsWeAreBlockedBy.Values);
BackEnd\Components\Scheduler\Scheduler.cs (34)
284internal delegate void AssignUnscheduledRequestsDelegate(List<ScheduleResponse> responses, HashSet<int> idleNodes); 351List<ScheduleResponse> responses = new List<ScheduleResponse>(); 424List<ScheduleResponse> responses = new List<ScheduleResponse>(); 569List<ScheduleResponse> responses = new List<ScheduleResponse>(); 669public List<ScheduleResponse> ReleaseCores(int requestId, int coresToRelease) 674List<ScheduleResponse> responses = new List<ScheduleResponse>(); 735private void ScheduleUnassignedRequests(List<ScheduleResponse> responses) 854private void AssignUnscheduledRequestsToNodes(List<ScheduleResponse> responses, HashSet<int> idleNodes) 980private void AssignUnscheduledRequestsWithPlanByMostImmediateReferences(List<ScheduleResponse> responses, HashSet<int> idleNodes) 988private void AssignUnscheduledRequestsWithPlanByGreatestPlanTime(List<ScheduleResponse> responses, HashSet<int> idleNodes) 993private void AssignUnscheduledRequestsWithPlan(List<ScheduleResponse> responses, HashSet<int> idleNodes, Func<SchedulingPlan.PlanConfigData, SchedulingPlan.PlanConfigData, bool> comparisonFunction) 1036private void AssignUnscheduledRequestsByTraversalsFirst(List<ScheduleResponse> responses, HashSet<int> idleNodes) 1045private void AssignUnscheduledProxyBuildRequestsToInProcNode(List<ScheduleResponse> responses, HashSet<int> idleNodes) 1050private void AssignUnscheduledRequestsToInProcNode(List<ScheduleResponse> responses, HashSet<int> idleNodes, Func<SchedulableRequest, bool> shouldBeScheduled) 1089private void AssignUnscheduledRequestsWithConfigurationCountLevelling(List<ScheduleResponse> responses, HashSet<int> idleNodes) 1128private void AssignUnscheduledRequestsWithSmallestFileSize(List<ScheduleResponse> responses, HashSet<int> idleNodes) 1170private void AssignUnscheduledRequestsWithLargestFileSize(List<ScheduleResponse> responses, HashSet<int> idleNodes) 1212private void AssignUnscheduledRequestsWithMaxWaitingRequests(List<ScheduleResponse> responses, HashSet<int> idleNodes) 1289private void AssignUnscheduledRequestsWithMaxWaitingRequests2(List<ScheduleResponse> responses, HashSet<int> idleNodes) 1317private void AssignUnscheduledRequestsFIFO(List<ScheduleResponse> responses, HashSet<int> idleNodes) 1349private void AssignUnscheduledRequestsUsingCustomSchedulerForSQL(List<ScheduleResponse> responses, HashSet<int> idleNodes) 1373List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys); 1422private void AssignUnscheduledRequestToNode(SchedulableRequest request, int nodeId, List<ScheduleResponse> responses) 1539private bool CreateNewNodeIfPossible(List<ScheduleResponse> responses, IEnumerable<SchedulableRequest> requests) 1725private void HandleRequestBlockedOnResultsTransfer(SchedulableRequest parentRequest, List<ScheduleResponse> responses) 1753private void HandleRequestBlockedByNewRequests(SchedulableRequest parentRequest, BuildRequestBlocker blocker, List<ScheduleResponse> responses) 1891private void ResumeReadyRequestIfAny(int nodeId, List<ScheduleResponse> responses) 1912private void ResolveRequestFromCacheAndResumeIfPossible(SchedulableRequest request, List<ScheduleResponse> responses) 1980private void ResumeRequiredWork(List<ScheduleResponse> responses) 2034private bool CheckIfCacheMissOnReferencedProjectIsAllowedAndErrorIfNot(int nodeForResults, BuildRequest request, List<ScheduleResponse> responses, bool emitNonErrorLogs) 2354private bool TargetsMatch(HashSet<string> firstTargetsSet, List<string> secondTargetsList) 2648List<SchedulableRequest> childRequests = new List<SchedulableRequest>(_schedulingData.GetRequestsByHierarchy(request)); 2782List<SchedulableRequest> scheduledRequestsByNode = new List<SchedulableRequest>(_schedulingData.GetScheduledRequestsByNode(nodeId)); 2881List<int> configurations = new List<int>(_schedulingData.Configurations);
BackEnd\Components\Scheduler\SchedulingData.cs (4)
110private readonly Dictionary<SchedulableRequest, List<SchedulableRequest>> _buildHierarchy = new Dictionary<SchedulableRequest, List<SchedulableRequest>>(32); 115private readonly List<SchedulingEvent> _buildEvents = new List<SchedulingEvent>(64); 603List<SchedulableRequest> roots = new List<SchedulableRequest>();
BackEnd\Components\Scheduler\SchedulingPlan.cs (9)
47private Dictionary<int, List<Stack<PlanConfigData>>> _configIdToPaths = new Dictionary<int, List<Stack<PlanConfigData>>>(); 113List<KeyValuePair<int, double>> configurationsInOrder = new(accumulatedTimeByConfiguration); 236List<KeyValuePair<int, PlanConfigData>> projectsInOrderOfTotalPlanTime = new(_configIdToData); 259List<KeyValuePair<int, PlanConfigData>> projectsInOrderOfImmediateChildCount = new(_configIdToData); 275List<int> projectsInOrderOfReference = new List<int>(_configIdToData.Keys); 301List<Stack<PlanConfigData>> pathsForConfig; 334List<PlanConfigData> projectsByExpense = new List<PlanConfigData>(_configIdToData.Values); 342List<Stack<PlanConfigData>> pathsByLength = _configIdToPaths[config.ConfigId];
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (7)
40var resolvers = !string.Equals(IncludeDefaultResolver, "false", StringComparison.OrdinalIgnoreCase) ? 62var resolvers = !string.Equals(IncludeDefaultResolver, "false", StringComparison.OrdinalIgnoreCase) ? 120List<SdkResolverManifest> manifestsList = new List<SdkResolverManifest>(); 189private bool TryAddAssemblyManifestFromXml(string pathToManifest, string manifestFolder, List<SdkResolverManifest> manifestsList, ElementLocation location) 226private bool TryAddAssemblyManifestFromDll(string assemblyPath, List<SdkResolverManifest> manifestsList) 297var resolvers = new List<SdkResolver>(); 310protected virtual void LoadResolvers(string resolverPath, ElementLocation location, List<SdkResolver> resolvers)
BackEnd\Components\SdkResolution\SdkResolverService.cs (11)
175List<SdkResolverManifest> matchingResolversManifests = new(); 192List<SdkResolver> resolvers; 194List<string> errors = new List<string>(0); 195List<string> warnings = new List<string>(0); 269private List<SdkResolver> GetResolvers(IReadOnlyList<SdkResolverManifest> resolversManifests, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, SdkReference sdk) 272List<SdkResolver> resolvers = new List<SdkResolver>(); 324List<SdkResult> results = new List<SdkResult>(); 435List<SdkResolverManifest> specificResolversManifestsRegistry = null; 436List<SdkResolverManifest> generalResolversManifestsRegistry = null; 514var specificResolversManifestsRegistry = new List<SdkResolverManifest>(); 515var generalResolversManifestsRegistry = new List<SdkResolverManifest>();
BackEnd\Shared\BuildRequest.cs (2)
69private List<string> _targets; 300public List<string> Targets
BackEnd\Shared\BuildRequestConfiguration.cs (8)
100private List<ProjectPropertyInstance> _transferredProperties; 105private List<string> _projectInitialTargets; 110private List<string> _projectDefaultTargets; 161private List<string> _requestedTargets = []; 575public List<string> ProjectInitialTargets 590public List<string> ProjectDefaultTargets 847public List<(string name, TargetBuiltReason reason)> GetTargetsUsedToBuildRequest(BuildRequest request) 860List<(string name, TargetBuiltReason reason)> allTargets = new(
BackEnd\Shared\BuildResult.cs (4)
69private List<string>? _initialTargets; 75private List<string>? _defaultTargets; 477internal List<string>? InitialTargets 491internal List<string>? DefaultTargets
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
165private List<TaskItem> _remotedTaskItems;
BuildCheck\Acquisition\BuildCheckAcquisitionModule.cs (2)
30public List<CheckFactory> CreateCheckFactories( 34var checksFactories = new List<CheckFactory>();
BuildCheck\Acquisition\IBuildCheckAcquisitionModule.cs (1)
16List<CheckFactory> CreateCheckFactories(CheckAcquisitionData checkAcquisitionData, ICheckContext checkContext);
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (3)
27Action<List<CheckWrapper>?, ICheckContext> removeCheck) 99private readonly Action<List<CheckWrapper>?, ICheckContext> _removeChecks; 259List<CheckWrapper>? checksToRemove = null;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (9)
110var checksFactories = _acquisitionModule.CreateCheckFactories(acquisitionData, checkContext); 213List<CheckFactoryContext> invalidChecksToRemove = new(); 336List<CheckFactoryContext> invalidChecksToRemove = new(); 361private void RemoveInvalidChecks(List<CheckFactoryContext> checksToRemove, ICheckContext checkContext) 370public void RemoveChecksAfterExecutedActions(List<CheckWrapper>? checksToRemove, ICheckContext checkContext) 386var throttledChecks = _checkRegistry.Where(c => c.MaterializedCheck?.IsThrottled ?? false).ToList(); 650if (_deferredEvalDiagnostics.TryGetValue(buildEventContext.EvaluationId, out var list)) 662private readonly Dictionary<int, List<BuildEventArgs>> _deferredEvalDiagnostics = new(); 699if (!_deferredEvalDiagnostics.TryGetValue(eventArgs.BuildEventContext.EvaluationId, out var list))
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (3)
111var numberRangePairs = new List<(int minValue, int maxValue)>(); 238List<(int minValue, int maxValue)> numberRangePairs) 378List<(int, int)> numberRangePairs)
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (4)
29var editorConfigs = DiscoverEditorConfigFiles(filePath); 44internal List<EditorConfigFile> DiscoverEditorConfigFiles(string filePath) 46var editorConfigDataFromFilesList = new List<EditorConfigFile>(); 79internal Dictionary<string, string> MergeEditorConfigFiles(List<EditorConfigFile> editorConfigFiles, string filePath)
Collections\CopyOnReadEnumerable.cs (1)
60List<TResult> list;
Collections\ItemDictionary.cs (13)
40private readonly Dictionary<string, List<T>> _itemLists; 48_itemLists = new Dictionary<string, List<T>>(MSBuildNameIgnoreCaseComparer.Default); 58_itemLists = new Dictionary<string, List<T>>(initialItemTypesCapacity, MSBuildNameIgnoreCaseComparer.Default); 67_itemLists = new Dictionary<string, List<T>>(MSBuildNameIgnoreCaseComparer.Default); 81foreach (List<T> list in _itemLists.Values) 124List<T> list; 144foreach (List<T> list in _itemLists.Values) 237foreach (List<T> list in _itemLists.Values) 273if (!_itemLists.TryGetValue(projectItem.Key, out List<T> list)) 325if (!_itemLists.TryGetValue(itemType, out List<T> list)) 353if (!_itemLists.TryGetValue(itemType, out List<T> list)) 361List<T> listWithRemoves = new(list.Count); 385if (!_itemLists.TryGetValue(projectItem.Key, out List<T> list))
Collections\ItemDictionarySlim.cs (14)
14internal sealed class ItemDictionarySlim : IEnumerable<KeyValuePair<string, List<ProjectItemInstance>>> 16private readonly Dictionary<string, List<ProjectItemInstance>> _itemLists; 19_itemLists = new Dictionary<string, List<ProjectItemInstance>>(MSBuildNameIgnoreCaseComparer.Default); 24public List<ProjectItemInstance>? this[string itemType] => 25_itemLists.TryGetValue(itemType, out List<ProjectItemInstance>? itemsOfType) ? itemsOfType : null; 37if (!_itemLists.TryGetValue(projectItem.ItemType, out List<ProjectItemInstance>? list)) 55foreach (KeyValuePair<string, List<ProjectItemInstance>> kvp in other._itemLists) 58List<ProjectItemInstance> itemsToAdd = kvp.Value; 60if (_itemLists.TryGetValue(itemType, out List<ProjectItemInstance>? list)) 78if (!_itemLists.TryGetValue(itemType, out List<ProjectItemInstance>? list)) 95if (!_itemLists.TryGetValue(itemType, out List<ProjectItemInstance>? list)) 107public Dictionary<string, List<ProjectItemInstance>>.Enumerator GetEnumerator() => _itemLists.GetEnumerator(); 109IEnumerator<KeyValuePair<string, List<ProjectItemInstance>>> IEnumerable<KeyValuePair<string, List<ProjectItemInstance>>>.GetEnumerator() => GetEnumerator();
Collections\LookasideStringInterner.cs (1)
42private List<string> _strings;
Collections\MultiDictionary.cs (8)
203if (!(_entry is List<TT> list)) 227var list = _entry as List<TT>; 256var list = new List<TT> { (TT)_entry, value }; 261var list = _entry as List<TT>; 287var list = _entry as List<TT>;
Collections\PropertyDictionary.cs (2)
611List<TResult> result = new(hashSet.Count); 625List<TResult> result = new(propertiesCollection.Count);
Collections\WeakValueDictionary.cs (2)
63var keys = new List<K>(); 198List<K> remove = null;
Construction\ProjectElementContainer.cs (3)
800private List<T> _realizedElements; 818private List<T> RealizedElements 826List<T> list = new();
Construction\ProjectRootElement.cs (2)
1907internal List<ProjectImportElement> GetImplicitImportNodes(ProjectRootElement currentProjectOrImport) 1909var nodes = new List<ProjectImportElement>();
Construction\ProjectTaskElement.cs (2)
178var parameterLocations = new List<KeyValuePair<string, ElementLocation>>(); 370List<XmlAttribute> toRemove = null;
Construction\Solution\ProjectInSolution.cs (2)
111private readonly List<string> _dependencies; // A list of strings representing the Guids of the dependent projects. 255internal List<string> ProjectReferences { get; } = new List<string>();
Construction\Solution\SolutionFile.cs (4)
114private List<ProjectInSolution> _projectsInOrder; 153internal List<string> SolutionParserWarnings { get; } = new List<string>(); 158internal List<string> SolutionParserComments { get; } = new List<string>(); 163internal List<string> SolutionParserErrorCodes { get; } = new List<string>();
Construction\Solution\SolutionProjectGenerator.cs (8)
788var projectsInOrder = new List<ProjectInSolution>(_solutionFile.ProjectsInOrder.Count); 798var projectInstances = new List<ProjectInstance>(projectsInOrder.Count + 1); 841private void EvaluateAndAddProjects(List<ProjectInSolution> projectsInOrder, List<ProjectInstance> projectInstances, ProjectInstance traversalInstance, string selectedSolutionConfiguration) 891private void AddStandardTraversalTargets(ProjectInstance traversalInstance, List<ProjectInSolution> projectsInOrder) 907private ProjectInstance CreateTraversalInstance(string wrapperProjectToolsVersion, bool explicitToolsVersionSpecified, List<ProjectInSolution> projectsInOrder) 1997private void AddValidateProjectsTarget(ProjectInstance traversalProject, List<ProjectInSolution> projects) 2410private void AddInitialTargets(ProjectInstance traversalProject, List<ProjectInSolution> projects)
Definition\Project.cs (43)
665public IDictionary<string, List<string>> ConditionedProperties => implementation.ConditionedProperties; 932public List<GlobResult> GetAllGlobs() 944public List<GlobResult> GetAllGlobs(EvaluationContext evaluationContext) 953public List<GlobResult> GetAllGlobs(string itemType) 966public List<GlobResult> GetAllGlobs(string itemType, EvaluationContext evaluationContext) 1015public List<ProvenanceResult> GetItemProvenance(string itemToMatch) 1028public List<ProvenanceResult> GetItemProvenance(string itemToMatch, EvaluationContext evaluationContext) 1038public List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType) 1052public List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType, EvaluationContext evaluationContext) 1065public List<ProvenanceResult> GetItemProvenance(ProjectItem item) 1082public List<ProvenanceResult> GetItemProvenance(ProjectItem item, EvaluationContext evaluationContext) 1515var loggers = new List<ILogger>(1) { logger }; 1702var relevantItems = new List<ProjectItem>(); 2217public override IDictionary<string, List<string>> ConditionedProperties 2224return ReadOnlyEmptyDictionary<string, List<string>>.Instance; 2227return new ObjectModel.ReadOnlyDictionary<string, List<string>>(_data.ConditionedProperties); 2291var imports = new List<ResolvedImport>(_data.ImportClosure.Count - 1 /* outer project */); 2314var imports = new List<ResolvedImport>(_data.ImportClosureWithDuplicates.Count - 1 /* outer project */); 2532public override List<GlobResult> GetAllGlobs(EvaluationContext evaluationContext) 2545public override List<GlobResult> GetAllGlobs(string itemType, EvaluationContext evaluationContext) 2555private List<GlobResult> GetAllGlobs(List<ProjectItemElement> projectItemElements) 2568public override List<ProvenanceResult> GetItemProvenance(string itemToMatch, EvaluationContext evaluationContext) 2582public override List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType, EvaluationContext evaluationContext) 2599public override List<ProvenanceResult> GetItemProvenance(ProjectItem item, EvaluationContext evaluationContext) 2619private List<ProjectItemElement> GetEvaluatedItemElements(EvaluationContext evaluationContext) 2630private static IEnumerable<ProjectItemElement> GetItemElementsThatMightAffectItem(List<ProjectItemElement> evaluatedItemElements, ProjectItem item) 2649private static List<ProjectItemElement> GetItemElementsByType(IEnumerable<ProjectItemElement> itemElements, string itemType) 2654private List<ProvenanceResult> GetItemProvenance(string itemToMatch, IEnumerable<ProjectItemElement> projectItemElements) 3123var itemsList = new List<ProjectItem>(items); 3281var relevantItems = new List<ProjectItem>(); 3409List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.CreateItemsFromInclude( 3472private List<ProjectItem> AddItemHelper(ProjectItemElement itemElement, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata) 3476List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata, ProjectItemDefinition>.CreateItemsFromInclude( 3936public List<string> DefaultTargets { get; set; } 3960public List<string> InitialTargets { get; set; } 3965public IDictionary<string, List<TargetSpecification>> BeforeTargets { get; set; } 3970public IDictionary<string, List<TargetSpecification>> AfterTargets { get; set; } 4004public List<ProjectItemElement> EvaluatedItemElements { get; private set; } 4037public Dictionary<string, List<string>> ConditionedProperties { get; private set; } 4120internal List<ResolvedImport> ImportClosure { get; private set; } 4126internal List<ResolvedImport> ImportClosureWithDuplicates { get; private set; } 4153ConditionedProperties = new Dictionary<string, List<string>>(MSBuildNameIgnoreCaseComparer.Default);
Definition\ProjectCollection.cs (13)
1192var toolsets = new List<Toolset>(Toolsets); 1248List<Project> loaded; 1609var projects = new List<Project>(_loadedProjects); 1636var projects = new List<Project>(_loadedProjects); 2006private Dictionary<string, List<Project>> _loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase); 2034var projects = new List<Project>(); 2036foreach (List<Project> projectList in _loadedProjects.Values) 2064_loadedProjects.TryGetValue(fullPath, out List<Project> candidates); 2079if (_loadedProjects.TryGetValue(fullPath, out List<Project> candidates)) 2102if (!_loadedProjects.TryGetValue(project.FullPath, out List<Project> projectList)) 2138if (!_loadedProjects.TryGetValue(projectFullPath, out List<Project> projectList)) 2166_loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase);
Definition\ProjectImportPathMatch.cs (3)
28private List<string> _searchPaths; 30internal ProjectImportPathMatch(string propertyName, List<string> searchPaths) 58public List<string> SearchPaths => _searchPaths;
Definition\ProjectItem.cs (5)
74private readonly List<ProjectItemDefinition> _inheritedItemDefinitions; 128List<ProjectItemDefinition> inheritedItemDefinitionsCloned) 390internal List<ProjectItemDefinition> InheritedItemDefinitions 832List<ProjectMetadata> temporary = new List<ProjectMetadata>(_directMetadata.Count); 1059List<ProjectItemDefinition> inheritedItemDefinitionsClone = null;
Definition\Toolset.cs (3)
445List<string> additionalSubToolsetNames = new List<string>(); 462List<string> orderedSubToolsetList = new List<string>(additionalSubToolsetNames); 800List<ProjectPropertyInstance> reservedProperties = new List<ProjectPropertyInstance>();
Evaluation\Conditionals\FunctionCallExpressionNode.cs (5)
21private readonly List<GenericExpressionNode> _arguments; 24internal FunctionCallExpressionNode(string functionName, List<GenericExpressionNode> arguments) 45List<string> list = ExpandArgumentAsFileList(_arguments[0], state); 150private List<string> ExpandArgumentAsFileList(GenericExpressionNode argumentNode, ConditionEvaluator.IConditionEvaluationState state, bool isFilePath = true) 168var list = new List<string>(capacity: expandedCount);
Evaluation\Conditionals\Parser.cs (3)
291var arglist = new List<GenericExpressionNode>(); 334private void Arglist(string expression, List<GenericExpressionNode> arglist) 342private void Args(string expression, List<GenericExpressionNode> arglist)
Evaluation\ConditionEvaluator.cs (6)
35Dictionary<string, List<string>> conditionedPropertiesTable, 84if (!conditionedPropertiesTable.TryGetValue(propertyNameString, out List<string>? conditionedPropertyValues)) 218Dictionary<string, List<string>>? conditionedPropertiesTable, 362Dictionary<string, List<string>>? ConditionedPropertiesInProject { get; } 419public Dictionary<string, List<string>>? ConditionedPropertiesInProject { get; } 430Dictionary<string, List<string>>? conditionedPropertiesInProject,
Evaluation\Evaluator.cs (39)
81private readonly List<ProjectItemGroupElement> _itemGroupElements; 94private List<ProjectItemElement> _itemGlobElements; 100private readonly List<ProjectItemDefinitionGroupElement> _itemDefinitionGroupElements; 108private readonly List<KeyValuePair<string, ProjectUsingTaskElement>> _usingTaskElements; 114private readonly List<ProjectTargetElement> _targetElements; 126private List<(ProjectRootElement ImportedProject, ProjectImportElement ImportingElement, SdkResult SdkResult)> _resolvedImports; 132private readonly List<string> _initialTargetsList; 217private List<string> _streamImports; 412internal static List<I> CreateItemsFromInclude(string rootDirectory, ProjectItemElement itemElement, IItemFactory<I, I> itemFactory, string unevaluatedIncludeEscaped, Expander<P, I> expander, ILoggingService loggingService, string buildEventFileInfoFullPath, BuildEventContext buildEventContext) 416List<I> items = new List<I>(); 475List<ProjectTaskInstanceChild> taskOutputs = new List<ProjectTaskInstanceChild>(taskElement.Count); 517List<ProjectPropertyGroupTaskPropertyInstance> properties = new List<ProjectPropertyGroupTaskPropertyInstance>(propertyGroupElement.Count); 547List<ProjectItemGroupTaskItemInstance> items = new List<ProjectItemGroupTaskItemInstance>(itemGroupElement.Count); 551List<ProjectItemGroupTaskMetadataInstance> metadata = itemElement.Metadata.Count > 0 ? new List<ProjectItemGroupTaskMetadataInstance>() : null; 598List<ProjectTargetInstanceChild> targetChildren = new List<ProjectTargetInstanceChild>(targetElement.Count); 599List<ProjectOnErrorInstance> targetOnErrorChildren = new List<ProjectOnErrorInstance>(); 715List<string> initialTargets = new List<string>(_initialTargetsList.Count); 844Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 845Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 915List<P> list = new(dictionary.Count); 969List<ProjectImportElement> implicitImports = currentProjectOrImport.GetImplicitImportNodes(currentProjectOrImport); 1046List<string> temp = new List<string>(expanded.Split(s_splitter, StringSplitOptions.RemoveEmptyEntries)); 1143private void AddBeforeAndAfterTargetMappings(ProjectTargetElement targetElement, Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets, Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget, Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget) 1154List<TargetSpecification> beforeTargetsForTarget; 1177List<TargetSpecification> afterTargetsForTarget; 1484List<ProjectRootElement> importedProjectRootElements = ExpandAndLoadImports(directoryOfImportingFile, importElement, out var sdkResult); 1594private List<ProjectRootElement> ExpandAndLoadImports(string directoryOfImportingFile, ProjectImportElement importElement, out SdkResult sdkResult) 1603List<ProjectRootElement> projects; 1667var allProjects = new List<ProjectRootElement>(); 1704List<ProjectRootElement> projects; 1777out List<ProjectRootElement> projects, 1930List<ProjectRootElement> projectList = null; 1947throwOnFileNotExistsError: true, out var additionalProjects); 2099bool throwOnFileNotExistsError, out List<ProjectRootElement> imports) 2642var onlyFallbackSearchPaths = searchPathMatch.SearchPaths.Select(s => _data.ExpandString(s)).ToList(); 2801List<GlobResult> globResults = GlobResultBuilder.BuildGlobResults(_itemGlobElements, _expander);
Evaluation\Expander.cs (3)
333List<T> result = new List<T>(); 427out List<TransformEntry> entries) 628List<string> arguments = null;
Evaluation\Expander.ItemExpander.cs (10)
109List<ExpressionShredder.ItemExpressionCapture> captures, 111out List<TransformEntry> result) 115List<TransformEntry> input = CreateEntries(itemsOfType); 116List<TransformEntry> output = new(itemsOfType.Count); 236private static List<TransformEntry> CreateEntries(ICollection<I> items) 238List<TransformEntry> entries = new(items.Count); 381List<TransformEntry> entries; 449out List<TransformEntry> entries) 458List<ExpressionShredder.ItemExpressionCapture> captures = expressionCapture.Captures; 586List<TransformEntry> entries;
Evaluation\Expander.ItemExpander.Transforms.cs (37)
86internal static void Count(List<TransformEntry> input, List<TransformEntry> output) 94List<TransformEntry> input, 95List<TransformEntry> output, 150List<TransformEntry> input, 151List<TransformEntry> output, 204List<TransformEntry> input, 205List<TransformEntry> output, 233List<TransformEntry> input, 234List<TransformEntry> output, 316List<TransformEntry> input, 317List<TransformEntry> output, 391List<TransformEntry> input, 392List<TransformEntry> output, 451List<TransformEntry> input, 452List<TransformEntry> output, 463List<TransformEntry> input, 464List<TransformEntry> output, 475List<TransformEntry> input, 476List<TransformEntry> output, 500List<TransformEntry> input, 501List<TransformEntry> output, 518List<TransformEntry> input, 519List<TransformEntry> output, 625List<MetadataMatch> multipleMatches = null; 728List<TransformEntry> input, 729List<TransformEntry> output, 771List<TransformEntry> input, 772List<TransformEntry> output, 794List<TransformEntry> input, 795List<TransformEntry> output, 833List<TransformEntry> input, 834List<TransformEntry> output, 871List<TransformEntry> input, 872List<TransformEntry> output, 909List<TransformEntry> input, 910List<TransformEntry> output,
Evaluation\Expander.ItemExpander.Transforms.OneOrMultipleMetadataMatches.cs (2)
22public List<MetadataMatch>? Multiple { get; } 47public OneOrMultipleMetadataMatches(List<MetadataMatch> allMatches)
Evaluation\ExpressionShredder.cs (4)
168List<ItemExpressionCapture> transformExpressions = null; 777public ItemExpressionCapture(int index, int length, string subExpression, string itemType, string separator, int separatorStart, List<ItemExpressionCapture> captures) 786public ItemExpressionCapture(int index, int length, string subExpression, string itemType, string separator, int separatorStart, List<ItemExpressionCapture> captures, string functionName, string functionArguments) 802public List<ItemExpressionCapture> Captures { get; }
Evaluation\GlobResultBuilder.cs (3)
51public static List<GlobResult> BuildGlobResults<P, I>(IReadOnlyList<ProjectItemElement> projectItemElements, Expander<P, I> expander) 81var globResults = new List<GlobResult>(projectItemElements.Count); 113List<ItemSpecFragment>? includeGlobFragmentsList = null;
Evaluation\IEvaluatorData.cs (6)
106List<string> InitialTargets 115List<string> DefaultTargets 124IDictionary<string, List<TargetSpecification>> BeforeTargets 133IDictionary<string, List<TargetSpecification>> AfterTargets 143Dictionary<string, List<string>> ConditionedProperties 203List<ProjectItemElement> EvaluatedItemElements
Evaluation\IntrinsicFunctions.cs (1)
743public static List<string> __GetListTest()
Evaluation\ItemDataCollectionValue.cs (4)
58public bool IsEmpty => _value == null || (_value is List<I> list && list.Count == 0); 73if (_value is not List<I> list) 87if (_value is List<I> list) 99if (_value is List<I> list)
Evaluation\ItemSpec.cs (7)
43private List<ReferencedItem> _referencedItems; 46public List<ReferencedItem> ReferencedItems 126entries: out var entries); 142public List<ItemSpecFragment> Fragments { get; } 174private List<ItemSpecFragment> BuildItemFragments(IElementLocation itemSpecLocation, string projectDirectory, bool expandProperties) 203var fragments = new List<ItemSpecFragment>(semicolonCount + 1); 316var result = new List<ItemSpecFragment>(Fragments.Count);
Evaluation\LazyItemEvaluator.EvaluatorData.cs (6)
35public List<ProjectItemElement> EvaluatedItemElements => throw new NotImplementedException(); 44public IDictionary<string, List<TargetSpecification>> AfterTargets 57public IDictionary<string, List<TargetSpecification>> BeforeTargets 70public Dictionary<string, List<string>> ConditionedProperties => _wrappedData.ConditionedProperties; 72public List<string> DefaultTargets 101public List<string> InitialTargets
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
232List<KeyValuePair<ProjectMetadataElement, string>> metadataList = new(metadata.Length);
Evaluation\Preprocessor.cs (5)
51private List<XmlNode> _addedNodes; 56private readonly Dictionary<XmlDocument, List<ResolvedImport>> _implicitImportsByProject = new Dictionary<XmlDocument, List<ResolvedImport>>(); 143List<ResolvedImport> imports; 169List<ResolvedImport> implicitImports;
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (6)
146public List<string> InitialTargets { get => _wrapped.InitialTargets; set => _wrapped.InitialTargets = value; } 147public List<string> DefaultTargets { get => _wrapped.DefaultTargets; set => _wrapped.DefaultTargets = value; } 148public IDictionary<string, List<TargetSpecification>> BeforeTargets { get => _wrapped.BeforeTargets; set => _wrapped.BeforeTargets = value; } 149public IDictionary<string, List<TargetSpecification>> AfterTargets { get => _wrapped.AfterTargets; set => _wrapped.AfterTargets = value; } 150public Dictionary<string, List<string>> ConditionedProperties => _wrapped.ConditionedProperties; 156public List<ProjectItemElement> EvaluatedItemElements => _wrapped.EvaluatedItemElements;
Graph\GraphBuilder.cs (18)
44private readonly List<ConfigurationMetadata> _entryPointConfigurationMetadata; 117var graphRoots = new List<ProjectGraphNode>(entryPointNodes.Count); 214var projectsByPath = new Dictionary<string, List<ProjectGraphNode>>(); 220if (projectsByPath.TryGetValue(projectPath, out List<ProjectGraphNode> value)) 234Assumed.True(projectsByPath.TryGetValue(referencingProjectPath, out var referencingNodes), "nodes should include solution projects"); 239Assumed.True(projectsByPath.TryGetValue(referencedProjectPath, out List<ProjectGraphNode> projectToReturn), "nodes should include solution projects"); 323List<ProjectGraphEntryPoint> newEntryPoints = new(projectsInSolution.Count); 355List<string> solutionDependenciesForProject = new(project.Dependencies.Count); 419private static List<ConfigurationMetadata> AddGraphBuildPropertyToEntryPoints(IEnumerable<ProjectGraphEntryPoint> entryPoints) 422var entryPointConfigurationMetadata = new List<ConfigurationMetadata>(); 472(bool success, List<string> projectsInCycle) VisitNode( 499var projectsInCycle = new List<string> { referenceNode.ProjectInstance.FullPath }; 586var referenceInfos = ParseReferences(graphNode); 617private List<ProjectInterpretation.ReferenceInfo> ParseReferences(ProjectGraphNode parsedProject) 619var referenceInfos = new List<ProjectInterpretation.ReferenceInfo>(); 653internal static string FormatCircularDependencyError(List<string> projectsInCycle) 775public List<ProjectInterpretation.ReferenceInfo> ReferenceInfos { get; } 777public ParsedProject(ConfigurationMetadata configurationMetadata, ProjectGraphNode graphNode, List<ProjectInterpretation.ReferenceInfo> referenceInfos)
Graph\ParallelWorkSet.cs (2)
38private readonly List<Task> _tasks; 40private readonly List<Exception> _exceptions = new List<Exception>(0);
Graph\ProjectGraph.cs (6)
592var toposort = new List<ProjectGraphNode>(graphNodes.Count); 781var entriesToUpdate = new List<KeyValuePair<ProjectGraphNode, ImmutableList<string>>>(); 829internal static string[] ExpandDefaultTargets(string[] targets, List<string> defaultTargets, ProjectItemInstance graphEdge) 885private static string[] ExpandDefaultTargetsSlow(string[] targets, List<string> defaultTargets, ProjectItemInstance graphEdge) 896List<string> result = null; 953static void EnsureBuffer(string[] targets, int currentIndex, ref List<string> result)
Graph\ProjectInterpretation.cs (5)
513private TargetsToPropagate(List<TargetSpecification> outerBuildTargets, List<TargetSpecification> nonOuterBuildTargets) 552List<TargetSpecification> targetsForOuterBuild = null; 553List<TargetSpecification> targetsForInnerBuild = null; 572ref List<TargetSpecification> dest = ref targetsAreForOuterBuild ? ref targetsForOuterBuild : ref targetsForInnerBuild;
Instance\ImmutableProjectCollections\LazyStringValuedList.cs (6)
22private readonly Func<ProjectLink, List<string>> _getStringValues; 23private List<string>? _items; 25public LazyStringValuedList(ProjectLink immutableProject, Func<ProjectLink, List<string>> getStringValues) 55var items = EnsureListInitialized(); 65List<string> itemList = EnsureListInitialized(); 80private List<string> EnsureListInitialized()
Instance\ProjectInstance.cs (37)
95private List<string> _defaultTargets; 97private List<string> _initialTargets; 189private IDictionary<string, List<TargetSpecification>> _beforeTargets; 190private IDictionary<string, List<TargetSpecification>> _afterTargets; 501static List<string> GetImportFullPaths(ObjectModelRemoting.ProjectLink projectLink) 506var paths = new List<string>(imports.Count); 518static List<string> GetImportFullPathsIncludingDuplicates(ObjectModelRemoting.ProjectLink projectLink) 521var paths = new List<string>(imports.Count); 604thisAsIEvaluatorData.AfterTargets = new Dictionary<string, List<TargetSpecification>>(); 605thisAsIEvaluatorData.BeforeTargets = new Dictionary<string, List<TargetSpecification>>(); 1198/// Gets a <see cref="List{ProjectItemElement}"/> object containing evaluated items. 1200public List<ProjectItemElement> EvaluatedItemElements 1309public List<string> DefaultTargets 1328public List<string> InitialTargets 1546List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.InitialTargets 1564List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.DefaultTargets 1582IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.BeforeTargets 1592IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.AfterTargets 1605Dictionary<string, List<string>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ConditionedProperties 1606=> Assumed.Unreachable<Dictionary<string, List<string>>>(); 2620translator.TranslateDictionary(ref _beforeTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count)); 2621translator.TranslateDictionary(ref _afterTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count)); 2634private static void TranslatorForTargetSpecificDictionaryValue(ITranslator translator, ref List<TargetSpecification> value) 2913List<TargetSpecification> beforeTargetsForTarget; 2930List<TargetSpecification> afterTargetsForTarget; 3118List<DictionaryEntry> clearedVariables = null; 3384List<string> defaultTargets, 3385List<string> initialTargets, 3386IDictionary<string, List<TargetSpecification>> beforeTargets, 3387IDictionary<string, List<TargetSpecification>> afterTargets) 3395private void InitializeTargetsData(List<string> defaultTargets, 3396List<string> initialTargets, 3397IDictionary<string, List<TargetSpecification>> beforeTargets, 3398IDictionary<string, List<TargetSpecification>> afterTargets) 3411var importPaths = new List<string>(Math.Max(0, importClosure.Count - 1) /* outer project */); 3424var importPathsIncludingDuplicates = new List<string>(Math.Max(0, importClosureWithDuplicates.Count - 1) /* outer project */); 3504List<ProjectItemDefinitionInstance> inheritedItemDefinitions = null;
Instance\ProjectItemGroupTaskInstance.cs (2)
30private List<ProjectItemGroupTaskItemInstance> _items; 50List<ProjectItemGroupTaskItemInstance> items)
Instance\ProjectItemGroupTaskItemInstance.cs (2)
130private List<ProjectItemGroupTaskMetadataInstance> _metadata; 159List<ProjectItemGroupTaskMetadataInstance> metadata)
Instance\ProjectItemInstance.cs (4)
620internal static void SetMetadata(Dictionary<string, string> metadataList, List<ProjectItemInstance> items) 747((List<ProjectItemDefinitionInstance>)inheritedItemDefinitions)?.AddRange(itemDefinitions); 977List<string> names = new List<string>(capacity: metadataCollection.Count + ItemSpecModifiers.All.Length); 2333List<ProjectItemDefinitionInstance> itemDefinitionsClone = null;
Instance\ProjectPropertyGroupTaskInstance.cs (2)
30private List<ProjectPropertyGroupTaskPropertyInstance> _properties; 50List<ProjectPropertyGroupTaskPropertyInstance> properties)
Instance\ProjectTargetInstance.cs (1)
511if (!(_children is List<ProjectTargetInstanceChild>))
Instance\ProjectTaskInstance.cs (2)
64private List<ProjectTaskInstanceChild> _outputs; 156List<ProjectTaskInstanceChild> outputs,
Instance\TaskRegistry.cs (15)
147private Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> _taskRegistrations; 154private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>(); 223internal IDictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> TaskRegistrations 526if (_overriddenTasks.TryGetValue(taskName, out List<RegisteredTaskRecord> recs)) 645if (_taskRegistrations.TryGetValue(taskIdentity, out List<RegisteredTaskRecord> taskAssemblies)) 688List<RegisteredTaskRecord> registeredTaskEntries; 713if (_overriddenTasks.TryGetValue(unqualifiedTaskName, out List<RegisteredTaskRecord> recs)) 728List<RegisteredTaskRecord> unqualifiedTaskNameMatches = new(); 738private static Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> CreateRegisteredTaskDictionary(int? capacity = null) 741? new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(capacity.Value, RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact) 742: new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact); 1927IDictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> copy = _taskRegistrations; 1932_taskRegistrations = (Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>)copy; 1946private void TranslateTaskRegistrationValue(ITranslator translator, ref List<RegisteredTaskRecord> taskRecords)
Logging\BaseConsoleLogger.cs (6)
456internal void WriteProperties(List<DictionaryEntry> properties) 494internal List<DictionaryEntry> ExtractPropertyList(IEnumerable properties) 497var list = new List<DictionaryEntry>(properties.FastCountOrZero()); 529internal virtual void OutputProperties(List<DictionaryEntry> list) 1173internal List<BuildErrorEventArgs> errorList; 1178internal List<BuildWarningEventArgs> warningList;
Logging\BinaryLogger\BinaryLogger.cs (5)
822var nonPathParams = new List<string>(); 894var distinctParameterSets = new List<string>(); 895var additionalFilePaths = new List<string>(); 896var duplicateFilePaths = new List<string>(); 914var extractedFilePaths = new List<string>();
Logging\BinaryLogger\BuildEventArgsReader.cs (3)
42private readonly List<object> stringRecords = new List<object>(); 49private readonly List<(int keyIndex, int valueIndex)[]> nameValueListRecords = new List<(int, int)[]>(); 1323var loggers = new List<RegisteredLoggerInfo>(count);
Logging\BinaryLogger\BuildEventArgsWriter.cs (5)
108private readonly List<KeyValuePair<string, string>> nameValueListBuffer = new List<KeyValuePair<string, string>>(1024); 114private readonly List<KeyValuePair<int, int>> nameValueIndexListBuffer = new List<KeyValuePair<int, int>>(1024); 923private readonly List<object> reusableItemsList = new List<object>(); 924private readonly List<object> reusableProjectItemList = new List<object>(); 1274private HashKey HashAllStrings(List<KeyValuePair<string, string>> nameValueList)
Logging\ParallelLogger\ParallelConsoleLogger.cs (12)
31private readonly List<RegisteredLoggerInfo> _registeredLoggers = new(); 68_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId); 210_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId); 260foreach (List<BuildMessageEventArgs> messageList in _deferredMessages.Values) 442var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>(); 470if (!groupByProjectEntryPoint.TryGetValue(key, out var errorWarningEventListByTarget)) 483foreach (KeyValuePair<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>> valuePair in groupByProjectEntryPoint) 546if (_deferredMessages.TryGetValue(e.BuildEventContext, out var deferredMessages)) 758var propertyList = ExtractPropertyList(properties); 772internal override void OutputProperties(List<DictionaryEntry> list) 1178if (!_deferredMessages.TryGetValue(e.BuildEventContext, out List<BuildMessageEventArgs> messageList)) 1805private Dictionary<BuildEventContext, List<BuildMessageEventArgs>> _deferredMessages;
Logging\ParallelLogger\ParallelLoggerHelpers.cs (4)
94internal List<ProjectStartedEventMinimumFields> GetProjectCallStack(BuildEventContext e) 96List<ProjectStartedEventMinimumFields> stackTrace = new List<ProjectStartedEventMinimumFields>(); 123List<ProjectStartedEventMinimumFields> projectStackTrace = GetProjectCallStack(e); 151List<ProjectStartedEventMinimumFields> projectStackTrace = GetProjectCallStack(e);
Logging\TerminalLogger\TerminalLogger.cs (4)
187private List<TestSummary> _testRunSummaries = new(); 227private readonly List<RegisteredLoggerInfo> _registeredLoggers = new(); 293List<string> tlpArg = new(); 294List<string> clpArg = new();
Logging\TerminalLogger\TerminalProjectInfo.cs (1)
27private List<TerminalBuildMessage>? _buildMessages;
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
147List<XmlAttributeLink> result = new List<XmlAttributeLink>();
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (6)
55public abstract IDictionary<string, List<string>> ConditionedProperties { get; } 135public abstract List<GlobResult> GetAllGlobs(EvaluationContext evaluationContext); 140public abstract List<GlobResult> GetAllGlobs(string itemType, EvaluationContext evaluationContext); 145public abstract List<ProvenanceResult> GetItemProvenance(string itemToMatch, EvaluationContext evaluationContext); 150public abstract List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType, EvaluationContext evaluationContext); 155public abstract List<ProvenanceResult> GetItemProvenance(ProjectItem item, EvaluationContext evaluationContext);
src\5057ed6cf5d6323b\SegmentedDictionary`2.cs (2)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\9f0d3f3da306d8cf\IEnumerableExtensions.cs (2)
335public static bool IsEmpty<T>(this List<T> source) 759List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\msbuild\src\Shared\PropertyParser.cs (2)
90var finalPropertiesList = new List<PropertyNameValuePair>(); 206internal List<string> Value { get; }
src\msbuild\src\Shared\TaskHostBuildRequest.cs (6)
21private List<string>?[]? _removeGlobalProperties; 33List<string>?[]? removeGlobalProperties, 63public List<string>?[]? RemoveGlobalProperties => _removeGlobalProperties; 101internal static List<string>?[]? ConvertRemoveGlobalProperties(IList<string>[]? removeGlobalProperties) 197_removeGlobalProperties = new List<string>?[length]; 202List<string>? list = _removeGlobalProperties![i];
src\msbuild\src\Shared\TaskHostBuildResponse.cs (5)
23private List<Dictionary<string, TaskParameter>>? _targetOutputsPerProject; 29public TaskHostBuildResponse(int requestId, bool success, List<Dictionary<string, TaskParameter>>? targetOutputsPerProject) 48public List<Dictionary<string, TaskParameter>>? TargetOutputsPerProject => _targetOutputsPerProject; 56List<IDictionary<string, ITaskItem[]>>? result = null; 87List<Dictionary<string, TaskParameter>>? outputs = null;
src\msbuild\src\Shared\TaskParameter.cs (1)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
TelemetryInfra\TasksDetailsTelemetry.cs (3)
43List<TaskDetailInfo> allTasks = GetTasksDetails(telemetryData.TasksExecutionData); 44List<TaskDetailInfo> topTasks = allTasks 59[JsonSerializable(typeof(List<TaskDetailInfo>))]
Utilities\EngineFileUtilities.cs (4)
24private static List<Regex>? s_lazyWildCardExpansionRegexes; 216var excludeSpecsUnescaped = excludeSpecsEscaped?.Where(IsValidExclude).Select(i => EscapingUtilities.UnescapeAll(i)).ToList(); 570private static List<Regex> PopulateRegexFromEnvironment() 579List<Regex> regexes = new List<Regex>();
Utilities\Utilities.cs (1)
866if (enumerator is List<DictionaryEntry>.Enumerator listEnumerator)
Microsoft.Build.Framework (86)
BackEnd\TranslatorHelpers.cs (1)
62ref List<T> list,
BinaryTranslator.cs (8)
349public void Translate(ref List<string> list) 371public void Translate<T>(ref List<T> list, ObjectTranslator<T> objectTranslator) 375list = (List<T>)listAsInterface; 379public void Translate<T>(ref List<T> list, ObjectTranslatorWithValueFactory<T> objectTranslator, NodePacketValueFactory<T> valueFactory) 383list = (List<T>)listAsInterface; 1131public void Translate(ref List<string> list) 1170public void Translate<T>(ref List<T> list, ObjectTranslator<T> objectTranslator) 1188public void Translate<T>(ref List<T> list, ObjectTranslatorWithValueFactory<T> objectTranslator, NodePacketValueFactory<T> valueFactory)
BuildCheck\BuildCheckEventArgs.cs (1)
82List<BuildCheckRuleTelemetryData> tracingData = new List<BuildCheckRuleTelemetryData>(count);
BuildEngineResult.cs (2)
25private List<IDictionary<string, ITaskItem[]>> targetOutputsPerProject; 30public BuildEngineResult(bool result, List<IDictionary<string, ITaskItem[]>> targetOutputsPerProject)
BuildEnvironmentHelper.cs (1)
331var instances = s_getVisualStudioInstances()
Globbing\MSBuildPathMatcher.cs (1)
691List<string> patterns = [];
InterningReadTranslator.cs (1)
21private List<string> _strings = [];
InterningWriteTranslator.cs (1)
38private List<string> _strings = [];
ITranslator.cs (3)
202void Translate(ref List<string> list); 216void Translate<T>(ref List<T> list, ObjectTranslator<T> objectTranslator); 225void Translate<T>(ref List<T> list, ObjectTranslatorWithValueFactory<T> objectTranslator, NodePacketValueFactory<T> valueFactory);
LoggersRegisteredEventArgs.cs (2)
77var withPaths = loggers.Where(l => l.OutputFilePaths.Count > 0).ToList(); 123var loggers = new List<RegisteredLoggerInfo>(count);
Sdk\SdkResolver.cs (1)
46private static readonly List<SdkResolver> s_registeredResolvers = new();
SolutionConfiguration.cs (4)
36private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid; 56_cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(projectConfigurationCount, StringComparer.OrdinalIgnoreCase); 103if (!_cachedDependencyProjectGuidsByDependingProjectGuid.TryGetValue(projectGuid, out List<string>? list)) 143public bool TryGetProjectDependencies(string projectGuid, [NotNullWhen(true)] out List<string>? dependencyProjectGuids) => _cachedDependencyProjectGuidsByDependingProjectGuid.TryGetValue(projectGuid, out dependencyProjectGuids);
TaskParameterEventArgs.cs (1)
231private static List<KeyValuePair<string, string>> reusableMetadataList;
Telemetry\BuildInsights.cs (4)
14public List<TaskDetailInfo> Tasks { get; } 16public List<TargetDetailInfo> Targets { get; } 28List<TaskDetailInfo> tasks, 29List<TargetDetailInfo> targets,
Telemetry\TelemetryDataUtils.cs (5)
62private static List<TargetDetailInfo> GetTargetsDetails(Dictionary<TaskOrTargetTelemetryKey, TargetExecutionStats> targetsDetails) 64var result = new List<TargetDetailInfo>(); 89internal static List<TaskDetailInfo> GetTasksDetails( 92var result = new List<TaskDetailInfo>(); 397void AddIfNotEmpty<T>(string key, List<T> list)
Utilities\CollectionHelpers.cs (3)
22internal static List<T> RemoveNulls<T>(List<T> inputs) 24List<T> inputsWithoutNulls = new List<T>(inputs.Count);
Utilities\FileMatcher.cs (31)
940ConcurrentStack<List<string>> listOfFiles, 945Dictionary<string, List<RecursionState>> searchesToExcludeInSubdirs, 1016List<string> files = null; 1065List<RecursionState> newSearchesToExclude = null; 1091if (searchesToExcludeInSubdirs.TryGetValue(subdir, out List<RecursionState> searchesForSubdir)) 2067List<string>? excludeSpecsUnescaped = null) 2142List<string> excludes, 2501private string[] CreateArrayWithSingleItemIfNotExcluded(string filespecUnescaped, List<string> excludeSpecsUnescaped) 2530List<string>? excludeSpecsUnescaped, 2556List<string>? excludeSpecs) 2649List<string>? excludeSpecs) 2730static bool HasLiteralExclude(List<string>? excludes) 2757bool HasInvalidWildcardExclude(List<string>? excludes) 2781List<string>? excludeSpecs) 2866List<string>? excludeSpecs) 3003List<string>? excludeSpecsUnescaped, 3059List<OptimizedFileSearch>? excludesToMatch = null; 3097List<string> files = []; 3152List<string> destination, 3239List<string>?[] partitionResults = new List<string>?[subdirectories.Count]; 3246List<string> partition = []; 3251foreach (List<string>? partition in partitionResults) 3263List<string> destination) 3481List<OptimizedFileSearch>? excludes) 3749List<string>? excludeSpecsUnescaped) 3777List<RecursionState>? searchesToExclude = null; 3781Dictionary<string, List<RecursionState>>? searchesToExcludeInSubdirs = null; 3859searchesToExcludeInSubdirs = new Dictionary<string, List<RecursionState>>(StringComparer.OrdinalIgnoreCase); 3861List<RecursionState>? listForSubdir; 3946var listOfFiles = new ConcurrentStack<List<string>>();
Utilities\QuotingUtilities.cs (3)
61internal static List<string> SplitUnquoted( 132var pieces = new List<string>(); 164internal static List<string> SplitUnquoted(string input, params char[] separator)
Utilities\TaskFactoryUtilities.cs (8)
77public static string CreateLoadManifest(string assemblyPath, List<string> directoriesToAdd) 101public static string? CreateLoadManifestFromReferences(string assemblyPath, List<string> referenceAssemblyPaths) 113var directories = ExtractUniqueDirectoriesFromAssemblyPaths(referenceAssemblyPaths); 129public static List<string> ExtractUniqueDirectoriesFromAssemblyPaths(List<string> assemblyPaths) 136var directories = new List<string>(); 213public static ResolveEventHandler CreateAssemblyResolver(List<string> searchDirectories) 253private static Assembly? TryLoadAssembly(List<string> directories, AssemblyName assemblyName)
Utilities\VersionUtilities.cs (4)
31internal static SortedDictionary<Version, List<string>> GatherVersionStrings(Version targetPlatformVersion, IEnumerable versions) 33SortedDictionary<Version, List<string>> versionValues = new SortedDictionary<Version, List<string>>(ReverseVersionGenericComparer.Comparer); 44if (versionValues.TryGetValue(candidateVersion, out List<string> versionList))
VisualStudioLocationHelper.cs (1)
35var validInstances = new List<VisualStudioInstance>();
Microsoft.Build.NuGetSdkResolver (8)
NuGetSdkLogger.cs (2)
23private readonly List<string> _errors = new List<string>(); 33private readonly List<string> _warnings = new List<string>();
RestoreRunnerEx.cs (3)
29private static readonly List<NuGetFramework> TargetFrameworks = new List<NuGetFramework> 55var frameworks = new List<TargetFrameworkInformation>(TargetFrameworks.Count); 56var originalTargetFrameworks = new List<string>(TargetFrameworks.Count);
src\nuget-client\build\Shared\SharedExtensions.cs (3)
19public static List<T> AsList<T>(this IEnumerable<T> enumerable) 21var list = enumerable as List<T>;
Microsoft.Build.Tasks.CodeAnalysis (17)
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
555var buildRequestArguments = GenerateCommandLineArgsList(responseFileCommands);
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (3)
209protected List<string> GenerateCommandLineArgsList(string responseFileCommands) 211var argumentList = new List<string>(); 228protected static ITaskItem[] GenerateCommandLineArgsTaskItems(List<string> commandLineArgs)
src\roslyn\src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (1)
98var mappedSourceRoots = new List<ITaskItem>();
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (2)
587var references = new List<ITaskItem>(this.References.Length); 588var links = new List<ITaskItem>(this.References.Length);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (4)
49public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments) 54public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments, out char? illegalChar) 56var list = new List<string>(); 61public static void SplitCommandLineIntoArguments(ReadOnlySpan<char> commandLine, bool removeHashComments, StringBuilder builder, List<string> list, out char? illegalChar)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
29public static void ParseFeatures(IDictionary<string, string> builder, List<string> values) 40internal static void PrependFeatureFlagFromEnvironment(List<string> arguments, Action<string>? log = null)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 541var list = new List<string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
72List<string> arguments,
Microsoft.Build.Tasks.Core (347)
AppConfig\DependentAssembly.cs (2)
44var redirects = new List<BindingRedirect>(); 117internal List<BindingRedirect> BindingRedirects { set; get; }
AppConfig\RuntimeSection.cs (1)
47internal List<DependentAssembly> DependentAssemblies { get; } = new List<DependentAssembly>();
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
168List<ResolutionSearchLocation> assembliesConsideredAndRejected,
AssemblyDependency\AssemblyFoldersResolver.cs (1)
43List<ResolutionSearchLocation> assembliesConsideredAndRejected,
AssemblyDependency\AssemblyInformation.cs (5)
544List<AssemblyNameExtension> ret = new List<AssemblyNameExtension>(assemblyReferences.Count); 576var arguments = GetFixedStringArguments(metadataReader, attr); 585List<string> assemblyFiles = new List<string>(assemblyFilesCollection.Count); 643private static List<string> GetFixedStringArguments(MetadataReader reader, CustomAttribute attribute) 652var arguments = new List<string>();
AssemblyDependency\AssemblyResolution.cs (2)
59List<ResolutionSearchLocation> assembliesConsideredAndRejected, 221List<DirectoryWithParentAssembly> parentReferenceDirectories,
AssemblyDependency\CandidateAssemblyFilesResolver.cs (1)
52List<ResolutionSearchLocation> assembliesConsideredAndRejected,
AssemblyDependency\DirectoryResolver.cs (2)
49List<ResolutionSearchLocation> assembliesConsideredAndRejected, 60var searchLocationsWithParentAssembly = new List<ResolutionSearchLocation>();
AssemblyDependency\FrameworkPathResolver.cs (1)
45List<ResolutionSearchLocation> assembliesConsideredAndRejected,
AssemblyDependency\GenerateBindingRedirects.cs (1)
299var attributes = new List<XAttribute>(4)
AssemblyDependency\HintPathResolver.cs (1)
38List<ResolutionSearchLocation> assembliesConsideredAndRejected,
AssemblyDependency\Node\RarNodeBufferedLogEvents.cs (2)
15private List<LogMessagePacketBase> _eventQueue = []; 23internal List<LogMessagePacketBase> EventQueue => _eventQueue;
AssemblyDependency\Node\RarTaskParameters.cs (2)
130List<ReflectedPropertyInfo> inputs = []; 131List<ReflectedPropertyInfo> outputs = [];
AssemblyDependency\RawFilenameResolver.cs (1)
38List<ResolutionSearchLocation> assembliesConsideredAndRejected,
AssemblyDependency\Reference.cs (14)
48private List<Exception> _errors = new List<Exception>(); 54private List<string> _relatedFileExtensions = new List<string>(); 60private List<string> _satelliteFiles = new List<string>(); 66private List<string> _serializationAssemblyFiles = new List<string>(); 71private List<AssemblyNameExtension> _conflictVictims = new List<AssemblyNameExtension>(); 108private List<string> _expectedExtensions; 410internal List<Exception> GetErrors() 433internal List<string> GetRelatedFileExtensions() 466internal List<string> GetSatelliteFiles() 475internal List<string> GetSerializationAssemblyFiles() 657internal List<AssemblyNameExtension> GetConflictVictims() 708internal List<UnificationVersion> GetPreUnificationVersions() 814internal void AddAssembliesConsideredAndRejected(List<ResolutionSearchLocation> assembliesConsideredAndRejectedToAdd) 824internal List<ResolutionSearchLocation> AssembliesConsideredAndRejected { get; private set; } = new List<ResolutionSearchLocation>();
AssemblyDependency\ReferenceTable.cs (50)
408internal List<string> ListOfExcludedAssemblies { get; private set; } 545List<Exception> exceptions) 1067var dependencies = new List<AssemblyNameExtension>(dependentAssemblies?.Length ?? 0); 1135List<KeyValuePair<AssemblyNameExtension, Reference>> newEntries) 1256internal static void CalculateParentAssemblyDirectories(List<DirectoryWithParentAssembly> parentReferenceFolders, Reference parentReference) 1307var assembliesConsideredAndRejected = new List<ResolutionSearchLocation>(); 1312var parentReferenceFolders = new List<DirectoryWithParentAssembly>(); 1319var jaggedResolvers = new List<Resolver[]>(); 1410var removedReferences = new List<Reference>(); 1413var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>(); 1501private static void AddToDependencyGraph(Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyGraph, AssemblyNameExtension assemblyName, Reference assemblyReference) 1508if (!dependencyGraph.TryGetValue(dependee, out List<ReferenceAssemblyExtensionPair> dependencies)) 1521private void RemoveDependencyMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, Dictionary<AssemblyNameExtension, Reference> goodReferences, List<Reference> removedReferences, AssemblyNameExtension assemblyName, Reference assemblyReference) 1570private static void RemovePrimaryReferenceMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, List<Reference> removedReferences, AssemblyNameExtension assemblyName, Reference assemblyReference) 1605private static void RemoveDependencies(Reference removedReference, Dictionary<AssemblyNameExtension, Reference> referenceList, Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyList) 1608if (!dependencyList.TryGetValue(removedReference, out List<ReferenceAssemblyExtensionPair> dependencies)) 1655List<Exception> exceptions) 1725var newEntries = new List<KeyValuePair<AssemblyNameExtension, Reference>>(); 1838private void ResolveConflictsBetweenReferences(Dictionary<string, List<AssemblyNameReference>> baseNameToReferences) 1841foreach (List<AssemblyNameReference> assemblyReferences in baseNameToReferences.Values) 1847private void ResolveConflictsBetweenReferences(List<AssemblyNameReference> assemblyReferences) 1876out List<DependentAssembly> idealRemappings, 1877out List<AssemblyNameReference> conflictingReferences) 1883Dictionary<string, List<AssemblyNameReference>> baseNameToReferences = BuildSimpleNameTable(); 1901foreach (List<AssemblyNameReference> references in baseNameToReferences.Values) 1949var assemblyNamesList = new List<AssemblyNameReference>(conflictingFullNames.Count); 1956var idealRemappingsList = new List<DependentAssembly>(assemblyNamesList.Count); 2080var assemblyTableInfos = new List<AssemblyTableInfo>(); 2212private Dictionary<string, List<AssemblyNameReference>> BuildSimpleNameTable() 2216var baseNameToReferences = new Dictionary<string, List<AssemblyNameReference>>(References.Count, StringComparer.OrdinalIgnoreCase); 2229if (!baseNameToReferences.TryGetValue(baseName, out List<AssemblyNameReference> refs)) 2242Dictionary<string, List<AssemblyNameReference>> baseNameToReferences) 2244List<string> toRemove = new(baseNameToReferences.Count); 2245foreach (KeyValuePair<string, List<AssemblyNameReference>> kvp in baseNameToReferences) 2620var primaryItems = new List<ITaskItem>(); 2621var dependencyItems = new List<ITaskItem>(); 2622var relatedItems = new List<ITaskItem>(); 2623var satelliteItems = new List<ITaskItem>(); 2624var serializationAssemblyItems = new List<ITaskItem>(); 2625var scatterItems = new List<ITaskItem>(); 2626var copyLocalItems = new List<ITaskItem>(); 2702private ITaskItem SetItemMetadata(List<ITaskItem> relatedItems, List<ITaskItem> satelliteItems, List<ITaskItem> serializationAssemblyItems, List<ITaskItem> scatterItems, string fusionName, Reference reference, AssemblyNameExtension assemblyName) 2747List<string> relatedFileExtensions = reference.GetRelatedFileExtensions(); 2748List<string> satellites = reference.GetSatelliteFiles(); 2749List<string> serializationAssemblyFiles = reference.GetSerializationAssemblyFiles(); 2865static void AddRelatedItem(List<ITaskItem> relatedItems, TaskItem relatedItemBase, string relatedFilePath) 2998private static void FindCopyLocalItems(ITaskItem[] items, List<ITaskItem> copyLocalItems)
AssemblyDependency\ResolveAssemblyReference.cs (28)
212private List<ITaskItem> _unresolvedConflicts = new List<ITaskItem>(); 1106private List<ITaskItem> _filesWritten = new List<ITaskItem>(); 1233List<DependentAssembly> idealAssemblyRemappings, 1234List<AssemblyNameReference> idealAssemblyRemappingsIdentities, 1235List<Exception> generalResolutionExceptions) 1342List<AssemblyNameExtension> conflictVictims = reference.GetConflictVictims(); 1377var assemblyIdentityAttributes = new List<XAttribute>(4); 1868List<Exception> itemErrors = reference.GetErrors(); 2269private List<DependentAssembly> GetAssemblyRemappingsFromAppConfig() 2401List<Exception> inclusionListErrors = new List<Exception>(); 2402List<string> inclusionListErrorFilesNames = new List<string>(); 2536List<DependentAssembly> appConfigRemappedAssemblies = null; 2621var generalResolutionExceptions = new List<Exception>(); 2626List<DependentAssembly> autoUnifiedRemappedAssemblies = null; 2627List<AssemblyNameReference> autoUnifiedRemappedAssemblyReferences = null; 2666List<DependentAssembly> idealAssemblyRemappings = autoUnifiedRemappedAssemblies; 2667List<AssemblyNameReference> idealAssemblyRemappingsIdentities = autoUnifiedRemappedAssemblyReferences; 2716List<DependentAssembly> remappings = AutoUnify ? autoUnifiedRemappedAssemblies : idealAssemblyRemappings; 2717List<AssemblyNameReference> remappedReferences = AutoUnify ? autoUnifiedRemappedAssemblyReferences : idealAssemblyRemappingsIdentities; 2916var combined = new List<DependentAssembly>(first.Count + second.Count); 2982List<Exception> inclusionListErrors = new List<Exception>(); 2983List<string> inclusionListErrorFilesNames = new List<string>(); 3018List<string> subsetNames = new List<string>(); 3182private void PopulateSuggestedRedirects(List<DependentAssembly> idealAssemblyRemappings, List<AssemblyNameReference> idealAssemblyRemappedReferences) 3184var holdSuggestedRedirects = new List<ITaskItem>(); 3193List<AssemblyNameExtension> conflictVictims = reference.GetConflictVictims(); 3307var assembliesLeft = new List<ITaskItem>();
AssemblyDependency\Resolver.cs (3)
101List<ResolutionSearchLocation> assembliesConsideredAndRejected, 120List<ResolutionSearchLocation> assembliesConsideredAndRejected) 311List<ResolutionSearchLocation> assembliesConsideredAndRejected)
AssignCulture.cs (2)
138var cultureList = new List<ITaskItem>(); 139var noCultureList = new List<ITaskItem>();
AssignLinkMetadata.cs (1)
39var outputItems = new List<ITaskItem>();
AssignProjectConfiguration.cs (2)
182var resolvedReferences = new List<ITaskItem>(ProjectReferences.GetLength(0)); 183var unresolvedReferences = new List<ITaskItem>(ProjectReferences.GetLength(0));
BootstrapperUtil\BootstrapperBuilder.cs (12)
173var componentFilesCopied = new List<string>(); 303foreach (List<Product> productDependency in builder.Product.Dependencies) 337foreach (List<string> missingDependecies in builder.Product.MissingDependencies) 451var files = new List<string>(); 454List<string> packagePaths = new List<string>() { invariantPath }; 599List<string> packagePaths = new List<string>() { PackagePath }; 668var foundDependencies = new List<Product>(); 669var allDependencies = new List<string>(); 712var list = new List<string>(); 741var productsToRemove = new List<string>(); 791foreach (List<Product> dependency in p.Dependencies) 1363private bool BuildPackages(BuildSettings settings, XmlElement configElement, ResourceUpdater resourceUpdater, List<string> filesCopied, Dictionary<string, KeyValuePair<string, string>> eulas)
BootstrapperUtil\BuildResults.cs (2)
19private readonly List<string> _componentFiles = new List<string>(); 20private readonly List<BuildMessage> _messages = new List<BuildMessage>();
BootstrapperUtil\PackageCollection.cs (1)
15private readonly List<Package> _list = new List<Package>();
BootstrapperUtil\Product.cs (11)
43Dependencies = new List<List<Product>>(); 44MissingDependencies = new List<List<string>>(); 116internal List<List<Product>> Dependencies { get; } 123internal bool ContainsDependencies(List<Product> dependenciesToCheck) 125foreach (List<Product> d in Dependencies) 155internal List<List<string>> MissingDependencies { get; } 182var newDependency = new List<Product> { product }; 186internal void AddMissingDependency(List<string> productCodes) 189foreach (List<string> md in MissingDependencies)
BootstrapperUtil\ProductBuilderCollection.cs (1)
19private readonly List<ProductBuilder> _list = new List<ProductBuilder>();
BootstrapperUtil\ProductCollection.cs (1)
21private readonly List<Product> _list = new List<Product>();
BootstrapperUtil\ResourceUpdater.cs (2)
20private readonly List<StringResource> _stringResources = new List<StringResource>(); 21private readonly List<FileResource> _fileResources = new List<FileResource>();
BootstrapperUtil\Util.cs (3)
31private static List<string> s_additionalPackagePaths; 191public static List<string> AdditionalPackagePaths 197List<string> additionalPackagePaths = new List<string>();
BootstrapperUtil\xmlvalidationresults.cs (2)
14private readonly List<string> _validationErrors = new List<string>(); 15private readonly List<string> _validationWarnings = new List<string>();
CallTarget.cs (3)
27private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>(); 78List<string[]> targetLists = MSBuild.CreateTargetLists(Targets, RunEachTargetSeparately); 80var singleProject = new List<ITaskItem>(1) { null };
CombinePath.cs (1)
62var combinedPathsList = new List<ITaskItem>();
ConvertToAbsolutePath.cs (1)
49var absolutePathsList = new List<ITaskItem>();
Copy.cs (10)
467List<ITaskItem> destinationFilesSuccessfullyCopied; 496out List<ITaskItem> destinationFilesSuccessfullyCopied) 594out List<ITaskItem> destinationFilesSuccessfullyCopied) 617var partitionsByDestination = new Dictionary<string, List<int>>( 625if (!partitionsByDestination.TryGetValue(destPath, out List<int> sourceIndices)) 637ConcurrentQueue<List<int>> partitionQueue = new ConcurrentQueue<List<int>>(partitionsByDestination.Values); 670while (partitionQueue.TryDequeue(out List<int> partition)) 851var sourceFiles = SourceFiles != null ? new List<ITaskItem>(SourceFiles) : new List<ITaskItem>(); 852var destinationFiles = DestinationFiles != null ? new List<ITaskItem>(DestinationFiles) : new List<ITaskItem>();
CreateItem.cs (4)
90List<ITaskItem> outputItems = CreateOutputItems(metadataTable, excludeItems); 101private List<ITaskItem> CreateOutputItems(Dictionary<string, string> metadataTable, Dictionary<string, string> excludeItems) 103var outputItems = new List<ITaskItem>(); 153var expanded = new List<ITaskItem>();
Delete.cs (1)
109var deletedFilesList = new List<ITaskItem>();
Exec.cs (1)
56private readonly List<ITaskItem> _nonEmptyOutput = new List<ITaskItem>();
FileIO\ReadLinesFromFile.cs (1)
51var nonEmptyLines = new List<ITaskItem>();
FindInvalidProjectReferences.cs (1)
85var invalidReferences = new List<ITaskItem>();
GenerateResource.cs (28)
171private List<ITaskItem> _satelliteInputs; 573private void LogResgenCommandLine(List<ITaskItem> inputFiles, List<ITaskItem> outputFiles) 675List<ITaskItem> newSources = new List<ITaskItem>(); 719List<ITaskItem> inputsToProcess; 720List<ITaskItem> outputsToProcess; 721List<ITaskItem> cachedOutputFiles; // For incremental builds, this is the set of already-existing, up to date files. 885List<ResGenDependencies.PortableLibraryFile> portableLibraryCacheInfo = process.PortableLibraryCacheInfo; 1195private bool GenerateResourcesUsingResGen(List<ITaskItem> inputsToProcess, List<ITaskItem> outputsToProcess) 1447private void GetResourcesToProcess(out List<ITaskItem> inputsToProcess, out List<ITaskItem> outputsToProcess, out List<ITaskItem> cachedOutputFiles) 1521private void AppendCachedOutputTaskItems(ResGenDependencies.PortableLibraryFile library, List<ITaskItem> cachedOutputFiles) 1699private void GetStronglyTypedResourceToProcess(ref List<ITaskItem> inputsToProcess, ref List<ITaskItem> outputsToProcess) 2293private List<ReaderInfo> _readers = new List<ReaderInfo>(); 2373private List<ITaskItem> _inFiles; 2385private List<ITaskItem> _outFiles; 2394internal List<ITaskItem> ExtractedResWFiles 2405private List<ITaskItem> _extractedResWFiles; 2410internal List<ResGenDependencies.PortableLibraryFile> PortableLibraryCacheInfo 2414private List<ResGenDependencies.PortableLibraryFile> _portableLibraryCacheInfo; 2461List<ITaskItem> inputs, 2462List<ITaskItem> satelliteInputs, 2463List<ITaskItem> outputs, 2740List<string> resWFilesForThisAssembly = new List<string>(); 3952public List<IResource> resources;
GetAssemblyIdentity.cs (1)
68var list = new List<ITaskItem>();
GetInstalledSDKLocations.cs (1)
165var outputItems = new List<ITaskItem>();
GetSDKReferenceFiles.cs (20)
449var resolvedReferenceAssemblies = new List<ITaskItem>(); 450var copyLocalReferenceAssemblies = new List<ITaskItem>(); 451var redistReferenceItems = new List<ITaskItem>(); 570if (info.DirectoryToFileList != null && info.DirectoryToFileList.TryGetValue(FileUtilities.EnsureNoTrailingSlash(path), out List<string> referenceFiles) && referenceFiles != null) 619foreach (KeyValuePair<string, List<string>> directoryToFileList in info.DirectoryToFileList) 624List<string> redistFiles = directoryToFileList.Value; 996var directoryToFileList = new ConcurrentDictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 998var directoriesToHash = new List<string>(); 1025private void PopulateReferencesDictionaryFromManifestPaths(ConcurrentDictionary<string, List<string>> referencesByDirectory, ConcurrentDictionary<string, SdkReferenceInfo> references, string[] sdkManifestReferences) 1043private void PopulateReferencesDictionaryFromPaths(ConcurrentDictionary<string, List<string>> referencesByDirectory, ConcurrentDictionary<string, SdkReferenceInfo> references, IEnumerable<string> referenceDirectories) 1050List<string> files = Directory.GetFiles(path, "*", SearchOption.TopDirectoryOnly).ToList(); 1060private static void PopulateRedistDictionaryFromPaths(ConcurrentDictionary<string, List<string>> redistFilesByDirectory, IEnumerable<string> redistDirectories) 1067List<string> files = Directory.GetFiles(path, "*", SearchOption.TopDirectoryOnly).ToList(); 1080var directoriesToHash = new List<string>(); 1220private IDictionary<string, List<string>> _directoryToFileList; 1226_directoryToFileList = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 1235public SDKInfo(IDictionary<string, SdkReferenceInfo> pathToReferenceMetadata, IDictionary<string, List<string>> directoryToFileList, int cacheHash) 1247public IDictionary<string, List<string>> DirectoryToFileList { get { return _directoryToFileList; } } 1273translator.TranslateDictionary(ref _directoryToFileList, (ITranslator t, ref string s) => t.Translate(ref s), (ITranslator t, ref List<string> fileList) => 1276}, count => new Dictionary<string, List<string>>(count, StringComparer.OrdinalIgnoreCase));
InstalledSDKResolver.cs (1)
44List<ResolutionSearchLocation> assembliesConsideredAndRejected,
ListOperators\FindUnderPath.cs (2)
59var inPathList = new List<ITaskItem>(); 60var outOfPathList = new List<ITaskItem>();
ListOperators\RemoveDuplicates.cs (1)
50var filteredList = new List<ITaskItem>(Inputs.Length);
MakeDir.cs (1)
48var items = new List<ITaskItem>();
ManifestUtil\AssemblyReferenceCollection.cs (1)
19private readonly List<AssemblyReference> _list = new List<AssemblyReference>();
ManifestUtil\CompatibleFrameworkCollection.cs (1)
14private readonly List<CompatibleFramework> _list = new List<CompatibleFramework>();
ManifestUtil\DeployManifest.cs (1)
82private List<CompatibleFramework> _compatibleFrameworks = new List<CompatibleFramework>();
ManifestUtil\FileAssociationCollection.cs (1)
14private readonly List<FileAssociation> _list = new List<FileAssociation>();
ManifestUtil\FileReference.cs (2)
54var typeLibs = new List<TypeLib>(); 69var comClasses = new List<ComClass>();
ManifestUtil\FileReferenceCollection.cs (1)
19private readonly List<FileReference> _list = new List<FileReference>();
ManifestUtil\ManifestReader.cs (1)
30var comInfoList = new List<ComInfo>();
ManifestUtil\MetadataReader.cs (1)
27private List<string> _customAttributes;
ManifestUtil\OutputMessage.cs (1)
80private readonly List<OutputMessage> _list = new List<OutputMessage>();
Move.cs (1)
148var destinationFilesSuccessfullyMoved = new List<ITaskItem>();
MSBuild.cs (12)
53private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>(); 239List<string[]> targetLists = CreateTargetLists(Targets, RunEachTargetSeparately); 242List<ITaskItem> singleProject = null; 358private bool BuildProjectsInParallel(Dictionary<string, string> propertiesTable, string[] undefinePropertiesArray, List<string[]> targetLists, bool success, bool[] skipProjects) 362var projectsToBuildInParallel = new List<ITaskItem>(); 398var expandedProperties = new List<string>(); 399var expandedTargets = new List<string>(); 438internal static List<string[]> CreateTargetLists(string[] targets, bool runEachTargetSeparately) 444var targetLists = new List<string[]>(runEachTargetSeparately ? targets.Length : 1); 465List<ITaskItem> projects, 468List<string[]> targetLists, 473List<ITaskItem> targetOutputs,
RedistList.cs (15)
94var errors = new List<Exception>(); 95var errorFilenames = new List<string>(); 96var assemblyList = new List<AssemblyEntry>(); 97var remappingEntries = new List<AssemblyRemapping>(); 564internal Dictionary<string, string> GenerateDenyList(AssemblyTableInfo[] allowListAssemblyTableInfo, List<Exception> allowListErrors, List<string> allowListErrorFileNames) 588var allowListAssemblies = new List<AssemblyEntry>(); 596var allowListAssembliesReadIn = new List<AssemblyEntry>(); 690internal static string ReadFile(AssemblyTableInfo assemblyTableInfo, List<AssemblyEntry> assembliesList, List<Exception> errorsList, List<string> errorFilenamesList, List<AssemblyRemapping> remapEntries) 768private static void ParseRemapSection(AssemblyTableInfo assemblyTableInfo, string path, string redistName, XmlReader reader, List<AssemblyRemapping> mapping) 825private static void ParseFileListSection(AssemblyTableInfo assemblyTableInfo, string path, string redistName, XmlReader reader, Dictionary<string, AssemblyEntry> assemblyEntries, List<AssemblyRemapping> remapEntries) 1105var subsetFilesForFrameworkDirectory = new List<string>();
RemoveDir.cs (1)
55var removedDirectoriesList = new List<ITaskItem>();
ResGenDependencies.cs (1)
261var retVal = new List<string>();
ResolveManifestFiles.cs (18)
184GetPublishInfo(out List<PublishInfo> assemblyPublishInfoList, out List<PublishInfo> filePublishInfoList, out List<PublishInfo> satellitePublishInfoList, out List<PublishInfo> manifestEntryPointList); 397private void GetOutputAssemblies(List<PublishInfo> publishInfos, List<ITaskItem> assemblyList) 511private ITaskItem[] GetOutputAssembliesAndSatellites(List<PublishInfo> assemblyPublishInfos, List<PublishInfo> satellitePublishInfos) 513var assemblyList = new List<ITaskItem>(); 519private ITaskItem[] GetOutputFiles(List<PublishInfo> publishInfos, IEnumerable<ITaskItem> outputAssemblies) 521var fileList = new List<ITaskItem>(); 619private void GetOutputSatellites(List<PublishInfo> publishInfos, List<ITaskItem> assemblyList) 682private ITaskItem GetOutputEntryPoint(ITaskItem entryPoint, List<PublishInfo> manifestEntryPointList) 720out List<PublishInfo> assemblyPublishInfos, 721out List<PublishInfo> filePublishInfos, 722out List<PublishInfo> satellitePublishInfos, 723out List<PublishInfo> manifestEntryPointPublishInfos)
ResolveNonMSBuildProjectOutput.cs (2)
93var resolvedPaths = new List<ITaskItem>(ProjectReferences.GetLength(0)); 94var unresolvedReferences = new List<ITaskItem>(ProjectReferences.GetLength(0));
ResolveProjectBase.cs (2)
158if (!_solutionConfiguration.TryGetProjectDependencies(projectGuid, out List<string> guids)) 165List<ITaskItem> updatedProjectReferenceList = new List<ITaskItem>(_projectReferences);
ResolveSDKReference.cs (9)
411var listOfIncompatibleReferences = new List<string>(); 440var listOfIncompatibleReferences = new List<string>(); 503List<string> dependentSDKs = ParseDependsOnSDK(reference.DependsOnSDK); 523internal static string[] GetUnresolvedDependentSDKs(HashSet<SDKReference> sdkReferenceItems, List<string> dependentSDKs) 549internal static List<string> ParseDependsOnSDK(string dependsOnSDK) 779public List<Tuple<string, object[]>> ResolutionErrors { get; } 784public List<Tuple<string, object[]>> ResolutionWarnings { get; } 789public List<Tuple<string, object[]>> StatusMessages { get; } 1348List<string> appxLocationComponents = new List<string>();
ResourceHandling\MSBuildResXReader.cs (3)
24var resources = new List<IResource>(); 114List<IResource> resources, 228private static void AddLinkedResource(string resxFilename, bool pathsRelativeToBasePath, List<IResource> resources, string name, string value)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
646var directoriesToAddToAppDomain = TaskFactoryUtilities.ExtractUniqueDirectoriesFromAssemblyPaths(resolvedAssemblyReferences.ToList());
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersEx.cs (15)
49private List<AssemblyFoldersExInfo> _directoryNames = new List<AssemblyFoldersExInfo>(); 163List<ExtensionFoldersRegistryKey> versionStrings = GatherVersionStrings(targetRuntimeVersion, versions); 166List<ExtensionFoldersRegistryKey> componentKeys = new List<ExtensionFoldersRegistryKey>(); 178List<string> sortedComponents = new List<string>(); 200List<ExtensionFoldersRegistryKey> directoryKeys = new List<ExtensionFoldersRegistryKey>(); 208List<string> fullServicingKeys = new List<string>(); 347internal static List<ExtensionFoldersRegistryKey> GatherVersionStrings(string targetRuntimeVersion, IEnumerable<string> versions) 349List<string> additionalToleratedKeys = new List<string>(); 351List<ExtensionFoldersRegistryKey> versionStrings = new List<ExtensionFoldersRegistryKey>(); 365SortedDictionary<Version, List<string>> targetFrameworkVersionToRegistryVersions = new SortedDictionary<Version, List<string>>(ReverseVersionGenericComparer.Comparer); 428foreach (KeyValuePair<Version, List<string>> entry in targetFrameworkVersionToRegistryVersions) 430List<string> frameworkList = entry.Value; 456private static void AddCandidateVersion(SortedDictionary<Version, List<string>> targetFrameworkVersionToRegistryVersions, string version, Version candidateVersion) 458List<string> listOfFrameworks;
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersFromConfig.cs (4)
21private readonly List<AssemblyFoldersFromConfigInfo> _directoryNames = new List<AssemblyFoldersFromConfigInfo>(); 35var assemblyTargets = GatherVersionStrings(targetRuntimeVersion, collection); 67private void FindDirectories(List<AssemblyFolderItem> assemblyTargets, Func<AssemblyFolderItem, bool> platformFilter) 76private static List<AssemblyFolderItem> GatherVersionStrings(string targetRuntimeVersion, AssemblyFolderCollection collection)
src\msbuild\src\Shared\AssemblyFolders\Serialization\AssemblyFolderCollection.cs (3)
15internal AssemblyFolderCollection(List<AssemblyFolderItem> assemblyFolders) => AssemblyFolders = assemblyFolders; 17internal List<AssemblyFolderItem> AssemblyFolders { get; } 69List<AssemblyFolderItem> assemblyFolders = [];
src\msbuild\src\Shared\PropertyParser.cs (2)
90var finalPropertiesList = new List<PropertyNameValuePair>(); 206internal List<string> Value { get; }
src\msbuild\src\Shared\TaskParameter.cs (1)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
system.design\stronglytypedresourcebuilder.cs (1)
101private readonly List<SkippedResource> _skippedResources = [];
TarDirectory.cs (3)
315private List<(FileSystemInfo Info, string EntryName)> EnumerateEntriesInDeterministicOrder() 319List<(FileSystemInfo Info, string EntryName)> entries = []; 336private static void CollectEntries(DirectoryInfo directory, string basePath, List<(FileSystemInfo Info, string EntryName)> entries)
Touch.cs (1)
93var touchedItems = new List<ITaskItem>();
WriteCodeFragment.cs (5)
213var orderedParameters = new List<AttributeParameter?>(new AttributeParameter?[customMetadata.Count + 1] /* max possible slots needed */); 214var namedParameters = new List<AttributeParameter>(); 258List<AttributeParameter> providedOrderedParameters = new(); 323List<string> keysToRemove = null; 506List<Type[]> candidates = attributeType
XmlPeek.cs (1)
148var peekValues = new List<string>();
Microsoft.Build.Tasks.Git (21)
GitDataReader\GitConfig.Reader.cs (4)
78var variables = new Dictionary<GitVariableName, List<string>>(); 93var variables = new Dictionary<GitVariableName, List<string>>(); 192internal void LoadVariablesFrom(string path, Dictionary<GitVariableName, List<string>> variables, int includeDepth) 255if (!variables.TryGetValue(key, out var values))
GitDataReader\GitIgnore.Matcher.cs (2)
28private readonly List<PatternGroup> _reusableGroupList; 193var groups = _reusableGroupList;
GitDataReader\GitReferenceResolver.cs (2)
34private readonly List<GitRefTableReader> _openedRefTableReaders = []; 181private static IEnumerable<GitRefTableReader> CreateRefTableReaders(string commonDirectory, List<GitRefTableReader> openReaders)
GitDataReader\GitRefTableReader.Diagnostics.cs (8)
20List<RefRecord> RefRecords, 21List<RefIndexRecord> IndexRecords, 22List<int> RestartOffsets) 31public List<Block> GetBlocks() 35var blocks = new List<Block>(); 45var refRecords = new List<RefRecord>(); 46var indexRecords = new List<RefIndexRecord>(); 47var restartOffsets = new List<int>();
GitOperations.cs (3)
246var result = new List<TaskItem>(); 367public readonly List<DirectoryNode> OrderedChildren; 372public DirectoryNode(string name, List<DirectoryNode> orderedChildren)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.Build.Utilities.Core (58)
MuxLogger.cs (2)
203List<SubmissionRecord> recordsToShutdown; 350private readonly List<ILogger> _loggers;
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersEx.cs (15)
49private List<AssemblyFoldersExInfo> _directoryNames = new List<AssemblyFoldersExInfo>(); 163List<ExtensionFoldersRegistryKey> versionStrings = GatherVersionStrings(targetRuntimeVersion, versions); 166List<ExtensionFoldersRegistryKey> componentKeys = new List<ExtensionFoldersRegistryKey>(); 178List<string> sortedComponents = new List<string>(); 200List<ExtensionFoldersRegistryKey> directoryKeys = new List<ExtensionFoldersRegistryKey>(); 208List<string> fullServicingKeys = new List<string>(); 347internal static List<ExtensionFoldersRegistryKey> GatherVersionStrings(string targetRuntimeVersion, IEnumerable<string> versions) 349List<string> additionalToleratedKeys = new List<string>(); 351List<ExtensionFoldersRegistryKey> versionStrings = new List<ExtensionFoldersRegistryKey>(); 365SortedDictionary<Version, List<string>> targetFrameworkVersionToRegistryVersions = new SortedDictionary<Version, List<string>>(ReverseVersionGenericComparer.Comparer); 428foreach (KeyValuePair<Version, List<string>> entry in targetFrameworkVersionToRegistryVersions) 430List<string> frameworkList = entry.Value; 456private static void AddCandidateVersion(SortedDictionary<Version, List<string>> targetFrameworkVersionToRegistryVersions, string version, Version candidateVersion) 458List<string> listOfFrameworks;
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersFromConfig.cs (4)
21private readonly List<AssemblyFoldersFromConfigInfo> _directoryNames = new List<AssemblyFoldersFromConfigInfo>(); 35var assemblyTargets = GatherVersionStrings(targetRuntimeVersion, collection); 67private void FindDirectories(List<AssemblyFolderItem> assemblyTargets, Func<AssemblyFolderItem, bool> platformFilter) 76private static List<AssemblyFolderItem> GatherVersionStrings(string targetRuntimeVersion, AssemblyFolderCollection collection)
src\msbuild\src\Shared\AssemblyFolders\Serialization\AssemblyFolderCollection.cs (3)
15internal AssemblyFolderCollection(List<AssemblyFolderItem> assemblyFolders) => AssemblyFolders = assemblyFolders; 17internal List<AssemblyFolderItem> AssemblyFolders { get; } 69List<AssemblyFolderItem> assemblyFolders = [];
TaskItem.cs (1)
276var metadataNames = new List<string>(capacity: count);
ToolLocationHelper.cs (31)
268private static List<string> s_targetFrameworkMonikers = null; 336var assemblyFolders = new List<AssemblyFoldersExInfo>(); 662var referenceDirectories = new List<string>(4); 679private static void AddSDKPaths(string sdkRoot, string folderName, string targetConfiguration, string targetArchitecture, List<string> directories) 726var redistDirectories = new List<string>(4); 756var designTimeDirectories = new List<string>(4); 789var filteredTargetPlatformSdkList = new List<TargetPlatformSDK>(); 1130var contractWinMDs = new List<string>(); 1344var platforms = new List<string>(); 1381var availablePlatformVersions = new List<Version>(); 2111var referencePaths = new List<string>(); 2137var referencePaths = new List<string>(); 2161var referencePaths = new List<string>(); 2333var referencePaths = new List<string>(); 2424private static void AddSDKPath(string sdkRoot, string contentFolderName, string targetConfiguration, string targetArchitecture, List<string> contentDirectories) 2441List<string> sdkDiskRoots = GetTargetPlatformMonikerDiskRoots(diskRoots); 2442List<string> extensionSdkDiskRoots = GetExtensionSdkDiskRoots(extensionDiskRoots); 2579internal static void GatherSDKListFromDirectory(List<string> diskroots, Dictionary<TargetPlatformSDK, TargetPlatformSDK> platformSDKs) 2606SortedDictionary<Version, List<string>> versionsInRoot = VersionUtilities.GatherVersionStrings(null, rootPathWithIdentifier.GetDirectories().Select<DirectoryInfo, string>(directory => directory.Name)); 2611foreach (KeyValuePair<Version, List<string>> directoryUnderRoot in versionsInRoot) 2715SortedDictionary<Version, List<string>> sortedVersions = VersionUtilities.GatherVersionStrings(null, versions); 2717foreach (KeyValuePair<Version, List<string>> registryVersions in sortedVersions) 2893private static void GetDefaultSDKDiskRoots(List<string> diskRoots) 2924private static void ExtractSdkDiskRootsFromEnvironment(List<string> diskRoots, string directoryRoots) 2945private static List<string> GetTargetPlatformMonikerDiskRoots(string[] diskRoots) 2947var sdkDiskRoots = new List<string>(); 2972private static List<string> GetExtensionSdkDiskRoots(string[] diskRoots) 2974var sdkDiskRoots = new List<string>(); 3750var frameworkIdentifiers = new List<string>(); 3824var frameworkVersions = new List<string>(); 3896var frameworkProfiles = new List<string>();
ToolTask.cs (1)
1867private List<KeyValuePair<string, string>> _environmentVariablePairs;
TrackedDependencies\TrackedDependencies.cs (1)
33var expanded = new List<ITaskItem>(expand.Length);
Microsoft.CodeAnalysis (200)
AdditionalTextFile.cs (1)
40var diagnostics = new List<DiagnosticInfo>();
CodeGen\SwitchStringJumpTableEmitter.cs (7)
16using HashBucket = List<KeyValuePair<ConstantValue, object>>; 115Dictionary<uint, HashBucket> stringHashMap = ComputeStringHashMap( 131HashBucket hashBucket = kvPair.Value; 137private Dictionary<uint, object> EmitHashBucketJumpTable(Dictionary<uint, HashBucket> stringHashMap) 191private static Dictionary<uint, HashBucket> ComputeStringHashMap( 196var stringHashMap = new Dictionary<uint, HashBucket>(caseLabels.Length); 205HashBucket? bucket;
CommandLine\AnalyzerConfigSet.cs (11)
51private readonly ConcurrentCache<List<Section>, AnalyzerConfigOptionsResult> _optionsCache = 52new ConcurrentCache<List<Section>, AnalyzerConfigOptionsResult>(50, SequenceEqualComparer.Instance); // arbitrary size 60private readonly ObjectPool<List<Section>> _sectionKeyPool = new ObjectPool<List<Section>>(() => new List<Section>()); 64private sealed class SequenceEqualComparer : IEqualityComparer<List<Section>> 68public bool Equals(List<Section>? x, List<Section>? y) 91public int GetHashCode(List<Section> obj) => Hash.CombineValues(obj); 184var sectionKey = _sectionKeyPool.Allocate(); 324static void freeKey(List<Section> sectionKey, ObjectPool<List<Section>> pool)
CommandLine\CommandLineArguments.cs (6)
401internal IEnumerable<MetadataReference> ResolveMetadataReferences(MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt) 405var resolved = new List<MetadataReference>(); 411internal virtual bool ResolveMetadataReferences(MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt, List<MetadataReference> resolved) 436internal static ImmutableArray<PortableExecutableReference> ResolveMetadataReference(CommandLineReference cmdReference, MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt) 483List<DiagnosticInfo> diagnostics,
CommandLine\CommandLineParser.cs (7)
504List<string>? scriptArgsOpt, 506List<string>? responsePaths = null) 593var splitList = new List<string>(); 675var arguments = new List<string>(); 711[NotNullWhen(true)] out List<string>? parsedArgs, 722var newArgs = new List<string>(); 1395internal static ImmutableDictionary<string, string> ParseFeatures(List<string> features)
CommandLine\CommonCompiler.cs (7)
119List<DiagnosticInfo> diagnostics, 223internal List<MetadataReference> ResolveMetadataReferences( 224List<DiagnosticInfo> diagnostics, 230List<MetadataReference> resolved = new List<MetadataReference>(); 947var diagnosticInfos = new List<DiagnosticInfo>(); 1170var generatedSyntaxTrees = compilation.SyntaxTrees.Skip(Arguments.SourceFiles.Length).ToList(); 1623protected virtual ImmutableArray<AdditionalTextFile> ResolveAdditionalFilesFromArguments(List<DiagnosticInfo> diagnostics, CommonMessageProvider messageProvider, TouchedFileLogger? touchedFilesLogger)
CommandLine\SarifV1ErrorLogger.cs (2)
284public List<KeyValuePair<string, DiagnosticDescriptor>> ToSortedList() 288var list = new List<KeyValuePair<string, DiagnosticDescriptor>>(Count);
CommandLine\SarifV2ErrorLogger.cs (2)
496public List<(int Index, DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> ToSortedList() 500var list = new List<(int Index, DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)>(Count);
Compilation\Compilation.cs (3)
2059internal List<Win32Resource>? MakeWin32ResourceList(Stream? win32Resources, DiagnosticBag diagnostics) 2065List<RESOURCE> resources; 2082var resourceList = new List<Win32Resource>();
Compilation\DeterministicKeyBuilder.cs (1)
268var parseOptionsList = new List<ParseOptions>();
CvtRes.cs (2)
52internal static List<RESOURCE> ReadResFile(Stream stream) 55var resourceNames = new List<RESOURCE>();
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (4)
48private sealed class FrameworkRetargetingDictionary : Dictionary<FrameworkRetargetingDictionary.Key, List<FrameworkRetargetingDictionary.Value>> 119List<Value>? values; 139List<Value>? values; 151List<Value>? values;
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
349List<string> originalPaths;
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (4)
48private readonly Dictionary<string, List<SuppressMessageInfo>> _unresolvedSuppressionsById = new Dictionary<string, List<SuppressMessageInfo>>(StringComparer.Ordinal); 59if (!_unresolvedSuppressionsById.TryGetValue(info.Id, out var suppressions)) 106if (!_unresolvedSuppressionsById.TryGetValue(id, out var suppressions))
DiaSymReader\Utilities\ComMemoryStream.cs (1)
31private readonly List<byte[]> _chunks = new List<byte[]>();
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (1)
28private readonly List<ISymUnmanagedDocumentWriter> _documentWriters;
DocumentationCommentId.cs (45)
22private class ListPool<T> : ObjectPool<List<T>> 28public void ClearAndFree(List<T> list) 35public new void Free(List<T> list) 116var results = s_symbolListPool.Allocate(); 132private static bool TryGetSymbolsForDeclarationId(string id, Compilation compilation, List<ISymbol> results) 167var results = s_symbolListPool.Allocate(); 194var results = s_symbolListPool.Allocate(); 210private static bool TryGetSymbolsForReferenceId(string id, Compilation compilation, List<ISymbol> results) 255var results = s_symbolListPool.Allocate(); 730public static bool ParseDeclaredSymbolId(string id, Compilation compilation, List<ISymbol> results) 749public static bool ParseReferencedSymbolId(string id, Compilation compilation, List<ISymbol> results) 762private static void ParseDeclaredId(string id, ref int index, Compilation compilation, List<ISymbol> results) 798var containers = s_namespaceOrTypeListPool.Allocate(); 895var results = s_symbolListPool.Allocate(); 914private static void ParseTypeSymbol(string id, ref int index, Compilation compilation, ISymbol? typeParameterContext, List<ISymbol> results) 922var contexts = s_symbolListPool.Allocate(); 1002private static void ParseTypeParameterSymbol(string id, ref int index, ISymbol? typeParameterContext, List<ISymbol> results) 1039private static void ParseNamedTypeSymbol(string id, ref int index, Compilation compilation, ISymbol? typeParameterContext, List<ISymbol> results) 1041var containers = s_namespaceOrTypeListPool.Allocate(); 1051List<ITypeSymbol>? typeArguments = null; 1150private static bool ParseTypeArguments(string id, ref int index, Compilation compilation, ISymbol? typeParameterContext, List<ITypeSymbol> typeArguments) 1184private static void GetMatchingTypes(List<INamespaceOrTypeSymbol> containers, string memberName, int arity, bool isTerminal, List<ISymbol> results) 1196private static void GetMatchingTypes(INamespaceOrTypeSymbol container, string memberName, int arity, bool isTerminal, List<ISymbol> results) 1224private static void GetMatchingNamespaceOrTypes(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results) 1232private static void GetMatchingNamespaceOrTypes(INamespaceOrTypeSymbol container, string memberName, List<ISymbol> results) 1247private static void GetMatchingExtensions(INamespaceOrTypeSymbol container, string memberName, int arity, List<ISymbol> results) 1266private static void GetMatchingNamespaces(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results) 1274private static void GetMatchingNamespaces(INamespaceOrTypeSymbol container, string memberName, List<ISymbol> results) 1287private static void GetMatchingMethods(string id, ref int index, List<INamespaceOrTypeSymbol> containers, string memberName, int arity, Compilation compilation, List<ISymbol> results) 1289var parameters = s_parameterListPool.Allocate(); 1354private static void GetMatchingProperties(string id, ref int index, List<INamespaceOrTypeSymbol> containers, string memberName, Compilation compilation, List<ISymbol> results) 1359List<ParameterInfo>? parameters = null; 1412private static void GetMatchingFields(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results) 1428private static void GetMatchingEvents(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results) 1444private static bool AllParametersMatch(ImmutableArray<IParameterSymbol> symbolParameters, List<ParameterInfo> expectedParameters) 1518private static bool ParseParameterList(string id, ref int index, Compilation compilation, ISymbol typeParameterContext, List<ParameterInfo> parameters) 1630private static void CopyTo<TSource, TDestination>(List<TSource> source, List<TDestination> destination)
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
33private readonly List<ITypeDefinition> _changedTypeDefs; 56private readonly List<(EntityHandle parentHandle, IEnumerator<ICustomAttribute> attributeEnumerator)> _deferredCustomAttributes = new(); 1509protected readonly List<T> rows; // Rows in this generation, containing adds and updates.
Generated\Operations.Generated.cs (1)
3951/// the method is the constructor of <see cref="List{T}" /> that was used. If this is read-only array interface,
InternalUtilities\CommandLineUtilities.cs (4)
49public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments) 54public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments, out char? illegalChar) 56var list = new List<string>(); 61public static void SplitCommandLineIntoArguments(ReadOnlySpan<char> commandLine, bool removeHashComments, StringBuilder builder, List<string> list, out char? illegalChar)
InternalUtilities\CompilerOptionParseUtilities.cs (2)
29public static void ParseFeatures(IDictionary<string, string> builder, List<string> values) 40internal static void PrependFeatureFlagFromEnvironment(List<string> arguments, Action<string>? log = null)
InternalUtilities\ImmutableSetWithInsertionOrder`1.cs (2)
47public ImmutableSetWithInsertionOrder<T> AddRange(List<T> values) 94public ImmutableSetWithInsertionOrder<T> RemoveRange(List<T> values)
InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
MetadataReader\MetadataHelpers.cs (3)
797var nestedTypes = new List<IGrouping<string, TypeDefinitionHandle>>(); 804var nestedNamespaces = new List<KeyValuePair<string, IEnumerable<IGrouping<string, TypeDefinitionHandle>>>>(); 820List<IGrouping<string, TypeDefinitionHandle>>? typesInLastChildNamespace = null;
MetadataReader\PEAssembly.cs (5)
57private Dictionary<string, List<ImmutableArray<byte>>> _lazyInternalsVisibleToMap; 134private Dictionary<string, List<ImmutableArray<byte>>> BuildInternalsVisibleToMap() 136var ivtMap = new Dictionary<string, List<ImmutableArray<byte>>>(StringComparer.OrdinalIgnoreCase); 142List<ImmutableArray<byte>> keys; 168List<ImmutableArray<byte>> result;
MetadataReader\PEModule.cs (9)
1390List<AttributeInfo>? infos = FindTargetAttributes(token, AttributeDescription.CompilerFeatureRequiredAttribute); 1534var attributeInfos = FindTargetAttributes(token, AttributeDescription.NotNullIfNotNullAttribute); 1680List<AttributeInfo> attrInfos = FindTargetAttributes(token, AttributeDescription.InternalsVisibleToAttribute); 1687List<AttributeInfo> attrInfos = FindTargetAttributes(token, AttributeDescription.ConditionalAttribute); 1697List<AttributeInfo> attrInfos = FindTargetAttributes(token, AttributeDescription.MemberNotNullAttribute); 1737List<AttributeInfo> attrInfos = FindTargetAttributes(token, AttributeDescription.MemberNotNullWhenAttribute); 1776private ArrayBuilder<string> ExtractStringValuesFromAttributes(List<AttributeInfo> attrInfos) 2529internal List<AttributeInfo>? FindTargetAttributes(EntityHandle hasAttribute, AttributeDescription description) 2531List<AttributeInfo>? result = null;
PEWriter\MetadataWriter.cs (5)
441private readonly List<IFileReference> _fileRefList = new List<IFileReference>(32); 448protected readonly List<MethodImplementation> methodImplList = new List<MethodImplementation>(); 549List<IGenericTypeParameter> getConsolidatedTypeParameters(ITypeDefinition typeDef, ITypeDefinition owner) 551List<IGenericTypeParameter> result = null; 4249private readonly List<T> _rows;
PEWriter\MetadataWriter.DynamicAnalysis.cs (2)
41private readonly List<DocumentRow> _documentTable; 42private readonly List<MethodRow> _methodTable;
PEWriter\NativeResourceWriter.cs (1)
123internal readonly List<object> Entries;
ReferenceManager\CommonReferenceManager.Binding.cs (8)
101[In, Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, 218[In, Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, 724private static readonly ObjectPool<List<TAssemblySymbol?>> s_candidateReferencedSymbolsPool = new ObjectPool<List<TAssemblySymbol?>>(() => new List<TAssemblySymbol?>(capacity: 1024)); 733List<TAssemblySymbol?> candidateReferencedSymbols = s_candidateReferencedSymbolsPool.Allocate(); 985private static bool IsSuperseded(AssemblyIdentity identity, IReadOnlyDictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName) 992private static int IndexOfCorLibrary(ImmutableArray<AssemblyData> assemblies, IReadOnlyDictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, bool supersedeLowerVersions) 1079protected abstract void GetActualBoundReferencesUsedBy(TAssemblySymbol assemblySymbol, List<TAssemblySymbol?> referencedAssemblySymbols);
ReferenceManager\CommonReferenceManager.Resolution.cs (3)
213[Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, 670Dictionary<string, List<ReferencedAssemblyIdentity>> referencesBySimpleName, 675List<ReferencedAssemblyIdentity>? sameSimpleNameIdentities;
ReferenceManager\CommonReferenceManager.State.cs (1)
465IReadOnlyDictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName,
RuleSet\RuleSetProcessor.cs (4)
81List<XElement> nodeList = ruleSetDocument.Elements(RuleSetNodeName).ToList(); 110var rules = ReadRules(childNode); 149private static List<KeyValuePair<string, ReportDiagnostic>> ReadRules(XElement rulesNode) 154var rules = new List<KeyValuePair<string, ReportDiagnostic>>();
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
Syntax\GreenNode.cs (2)
924List<TFrom> l => CreateList(l, select), 929public static GreenNode? CreateList<TFrom>(List<TFrom> list, Func<TFrom, GreenNode> select)
Syntax\InternalSyntax\ChildSyntaxList.Reversed.cs (1)
35var result = new List<GreenNode>();
Syntax\InternalSyntax\SyntaxListPool.cs (1)
18private readonly List<SyntaxListBuilder> _allocated = new List<SyntaxListBuilder>();
Syntax\SeparatedSyntaxList.cs (2)
424var nodesToInsertWithSeparators = new List<SyntaxNodeOrToken>(); 545var newNodeList = newNodes.ToList();
Syntax\SyntaxDiffer.cs (7)
22private readonly List<ChangeRecord> _changes = new List<ChangeRecord>(); 67var reducedChanges = this.ReduceChanges(_changes); 103var reducedChanges = ReduceChanges(_changes); 106var newSpans = new List<TextSpan>(); 739private List<ChangeRangeWithText> ReduceChanges(List<ChangeRecord> changeRecords) 741var textChanges = new List<ChangeRangeWithText>(changeRecords.Count);
Syntax\SyntaxList`1.cs (3)
267var list = this.ToList(); 333var list = this.ToList(); 344private static SyntaxList<TNode> CreateList(List<TNode> items)
Syntax\SyntaxNodeExtensions_Tracking.cs (2)
202var map = new SegmentedDictionary<SyntaxAnnotation, List<SyntaxNode>>(); 209List<SyntaxNode>? list;
Syntax\SyntaxNodeOrToken.cs (3)
852List<TDirective>? buffer = null; 869private static void GetDirectives<TDirective>(SyntaxNode node, Func<TDirective, bool>? filter, ref List<TDirective>? directives) 878private static void GetDirectivesInTrivia<TDirective>(in SyntaxTrivia trivia, Func<TDirective, bool>? filter, ref List<TDirective>? directives)
Syntax\SyntaxNodeOrTokenList.cs (4)
341var nodes = this.ToList(); 346private static SyntaxNodeOrTokenList CreateList(List<SyntaxNodeOrToken> items) 376var nodes = this.ToList(); 421var nodes = this.ToList();
Syntax\SyntaxTokenList.cs (4)
361var items = tokens.ToList(); 367var list = this.ToList(); 389var list = this.ToList(); 434var list = this.ToList();
Syntax\SyntaxTriviaList.cs (2)
371var list = this.ToList(); 416var list = this.ToList();
Text\ChangedText.cs (1)
225var list = new List<ImmutableArray<TextChangeRange>>();
Text\SourceText.cs (2)
922var ranges = this.GetChangeRanges(oldText).ToList(); 923var textChanges = new List<TextChange>(ranges.Count);
TreeDumper.cs (1)
93var children = node.Children.Where(c => !skip(c)).ToList();
Microsoft.CodeAnalysis.Analyzers (164)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_IdRangeAndCategoryValidation.cs (2)
199out List<Diagnostic>? invalidFileDiagnostics) 232out List<Diagnostic>? invalidFileDiagnostics)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (3)
170out List<Diagnostic>? invalidFileDiagnostics) 181var diagnostics = new List<Diagnostic>(); 396List<Diagnostic>? invalidReleaseTrackingDiagnostics,
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (2)
226out List<Diagnostic>? invalidFileDiagnostics); 234out List<Diagnostic>? invalidReleaseFileEntryDiagnostics);
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (4)
28var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>(); 76private readonly List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> _diagnosticsToFix; 79public FixAllAdditionalDocumentChangeAction(FixAllScope fixAllScope, Solution solution, List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> diagnosticsToFix, string? equivalenceKey) 92var updatedUnshippedText = new List<(DocumentId, SourceText)>();
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (3)
129var syntaxArguments = arguments.Skip(extensionMethodShift).Select(x => x.Syntax).ToList(); 200var conditionalAccessMembers = new List<SyntaxNode>(); 218List<SyntaxNode> conditionalAccessMembers)
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (6)
41var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>(); 83private readonly List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> _diagnosticsToFix; 86public FixAllAdditionalDocumentChangeAction(FixAllScope fixAllScope, Solution solution, List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> diagnosticsToFix, string equivalenceKey) 100var fixInfoMap = new Dictionary<TextDocument, List<FixInfo>>(); 114if (!fixInfoMap.TryGetValue(additionalDocument, out var fixInfos)) 129var fixInfos = kvp.Value;
MetaAnalyzers\RegisterActionAnalyzer.cs (3)
199private Dictionary<IParameterSymbol, List<NodeAndSymbol>>? _nestedActionsMap; 483if (!_nestedActionsMap.TryGetValue(contextParameter, out List<NodeAndSymbol> registerInvocations)) 511if (_nestedActionsMap != null && _nestedActionsMap.TryGetValue(contextParameter, out List<NodeAndSymbol> registeredActions))
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (2)
95var result = new Dictionary<(string ContainerName, string SymbolName), List<BanFileEntry>>(); 106if (!result.TryGetValue(parsed.Value, out var existing))
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
29public static void ParseFeatures(IDictionary<string, string> builder, List<string> values) 40internal static void PrependFeatureFlagFromEnvironment(List<string> arguments, Action<string>? log = null)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
150var attributes = new List<AttributeData>(); 217var attributes = new List<AttributeData>();
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
40List<SyntaxNode> statements = []; 353List<SyntaxNode> statements = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
292=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
759var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 799var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
63var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 66var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 73List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 74List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 152private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 168List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
178public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 200public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
62List<Exception>? exceptions = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Microsoft.CodeAnalysis.AnalyzerUtilities (125)
src\1e7e9f16bf7f1945\ValueContentAnalysis.CoreAnalysisDataDomain.cs (1)
39var keysInMap1 = forwardEdgeAnalysisData.Keys.ToList();
src\2e2796bccd1466f6\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
184List<TaintedDataAbstractValue>? taintedValues = null;
src\66dd3055a1c91c38\PointsToAnalysis.CorePointsToAnalysisDataDomain.cs (1)
64List<AnalysisEntity> keysInMap1 = forwardEdgeAnalysisData.CoreAnalysisData.Keys.ToList();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
29public static void ParseFeatures(IDictionary<string, string> builder, List<string> values) 40internal static void PrependFeatureFlagFromEnvironment(List<string> arguments, Action<string>? log = null)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
150var attributes = new List<AttributeData>(); 217var attributes = new List<AttributeData>();
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\Extensions\ListExtensions.cs (1)
24public static ImmutableArray<T> ExtractAll<T, TArg>(this List<T> list, Func<T, TArg, bool> predicate, TArg argument)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (4)
65using var _2 = PooledDictionary<int, List<BranchWithInfo>>.GetInstance(out var finallyBlockSuccessorsMap); 189PooledDictionary<int, List<BranchWithInfo>> finallyBlockSuccessorsMap, 625if (finallyBlockSuccessorsMap.TryGetValue(basicBlock.Ordinal, out var finallySuccessors)) 730if (!finallyBlockSuccessorsMap.TryGetValue(finallyRegion.LastBlockOrdinal, out var lastBlockSuccessors))
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
50private readonly List<IArgumentOperation> _pendingArgumentsToPostProcess;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
292=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
759var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 799var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
Microsoft.CodeAnalysis.CodeStyle (128)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (14)
157using var _1 = PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>>.GetInstance(out var idToPragmasMap); 166using var _5 = PooledDictionary<string, List<SyntaxNode>>.GetInstance(out var idToSuppressMessageAttributesMap); 200if (idToPragmasMap.TryGetValue(id, out var pragmas)) 208if (idToSuppressMessageAttributesMap.TryGetValue(id, out var attributeNodes)) 228PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 268if (!idToPragmasMap.TryGetValue(id, out var pragmasForIdInReverseOrder)) 510PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 512PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 546PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 549if (!idToPragmasMap.TryGetValue(diagnostic.Id, out var pragmasForIdInReverseOrder)) 586PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 591!idToSuppressMessageAttributesMap.TryGetValue(diagnostic.Id, out var suppressMessageAttributesForId)) 736PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 813if (!idToSuppressMessageAttributesMap.TryGetValue(id, out var nodesForId))
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
35(nameof(List<>.AddRange), isLinq: false),
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
29public static void ParseFeatures(IDictionary<string, string> builder, List<string> values) 40internal static void PrependFeatureFlagFromEnvironment(List<string> arguments, Action<string>? log = null)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
292=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
759var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 799var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
Microsoft.CodeAnalysis.CodeStyle.Fixes (44)
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (8)
50protected abstract List<TXmlNameAttributeSyntax> GetNameAttributes(TXmlElementSyntax node); 68var paramNodes = GetElementNodes(newDocComment, NodeName); 74var paramsBeforeCurrentParam = parameterNames.TakeWhile(t => t != parameterName).ToList(); 75var paramsAfterCurrentParam = parameterNames.Except(paramsBeforeCurrentParam).ToList(); 105var paramNodeSiblings = nodeAfterNewParamNode.GetRequiredParent().ChildNodes().ToList(); 124private List<TXmlElementSyntax> GetElementNodes(SyntaxNode docComment, string nodeName) 126var nodes = docComment.ChildNodes().OfType<TXmlElementSyntax>() 155var paramNameAttributesForNode = GetNameAttributes(paramNode);
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (3)
63var removedNodes = new List<SyntaxNode> { paramNode }; 64var paramNodeSiblings = paramNode.GetRequiredParent().ChildNodes().ToList(); 85private bool ShouldRemovePreviousSibling(List<SyntaxNode> paramNodeSiblings, int paramNodeIndex)
src\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
103var removalList = new List<int>();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (5)
58var constraints = typeParameter.ConstraintTypes.Where(ts => !ts.IsUnexpressibleTypeParameterConstraint()).ToList(); 59var classTypes = constraints.Where(ts => ts.TypeKind == TypeKind.Class).ToList(); 60var nonClassTypes = constraints.Where(ts => ts.TypeKind != TypeKind.Class).ToList(); 81private List<ITypeSymbol> MergeClassTypes(List<ITypeSymbol> classTypes)
src\roslyn\src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
42var declarators = new List<TSymbolSyntax>(); 55Document document, SyntaxEditor editor, List<TSymbolSyntax> declarators, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (2)
42protected abstract TSwitchSyntax InsertSwitchArms(SyntaxGenerator generator, TSwitchSyntax switchNode, int insertLocation, List<TSwitchArmSyntax> newArms); 167var newArms = new List<TSwitchArmSyntax>();
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
68protected sealed override TSwitchSyntax InsertSwitchArms(SyntaxGenerator generator, TSwitchSyntax switchNode, int insertLocation, List<TSwitchArmSyntax> newArms)
src\roslyn\src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (1)
46var result = new List<CodeAction>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
63var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 66var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 73List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 74List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 152private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 168List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
178public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 200public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
62List<Exception>? exceptions = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Microsoft.CodeAnalysis.CSharp (63)
Binder\Binder.cs (1)
972var sub = new List<TreeDumperNode>();
Binder\Semantics\Conversions\Conversion.cs (1)
1287var sub = new System.Collections.Generic.List<TreeDumperNode>();
BoundTree\TupleBinaryOperatorInfo.cs (2)
85var sub = new List<TreeDumperNode>(); 125var sub = new List<TreeDumperNode>();
CommandLine\CSharpCommandLineParser.cs (24)
56List<Diagnostic> diagnostics = new List<Diagnostic>(); 58List<string>? scriptArgs = IsScriptCommandLineParser ? new List<string>() : null; 59List<string>? responsePaths = IsScriptCommandLineParser ? new List<string>() : null; 103List<CommandLineResource> managedResources = new List<CommandLineResource>(); 104List<CommandLineSourceFile> sourceFiles = new List<CommandLineSourceFile>(); 105List<CommandLineSourceFile> additionalFiles = new List<CommandLineSourceFile>(); 107List<CommandLineSourceFile> embeddedFiles = new List<CommandLineSourceFile>(); 114List<CommandLineReference> metadataReferences = new List<CommandLineReference>(); 115List<CommandLineAnalyzerReference> analyzers = new List<CommandLineAnalyzerReference>(); 116List<string> libPaths = new List<string>(); 117List<string> sourcePaths = new List<string>(); 118List<string> keyFileSearchPaths = new List<string>(); 119List<string> usings = new List<string>(); 129List<string> features = new List<string>(); 1632private static void ParseAndResolveReferencePaths(string? switchName, ReadOnlyMemory<char>? switchValue, string? baseDirectory, List<string> builder, MessageID origin, List<Diagnostic> diagnostics) 1659private static string? GetWin32Setting(string arg, string? value, List<Diagnostic> diagnostics) 1682List<Diagnostic> diagnostics, 1684List<CommandLineSourceFile> sourceFiles, 1752private ImmutableArray<string> BuildSearchPaths(string? sdkDirectoryOpt, List<string> libPaths, List<string>? responsePathsOpt) 1901private static void ParseAnalyzers(string arg, ReadOnlyMemory<char>? valueMemory, List<CommandLineAnalyzerReference> analyzerReferences, List<Diagnostic> diagnostics) 1928private static void ParseAssemblyReferences(string arg, ReadOnlyMemory<char>? valueMemory, IList<Diagnostic> diagnostics, bool embedInteropTypes, List<CommandLineReference> commandLineReferences)
CommandLine\CSharpCompiler.cs (4)
98var diagnostics = new List<DiagnosticInfo>(); 151var resolvedReferences = ResolveMetadataReferences(diagnostics, touchedFilesLogger, out referenceDirectiveResolver); 181var fileDiagnostics = new List<DiagnosticInfo>(); 334List<DiagnosticInfo> diagnostics,
Declarations\DeclarationTable.Builder.cs (2)
20private readonly List<Lazy<RootSingleNamespaceDeclaration>> _addedLazyRootDeclarations; 21private readonly List<Lazy<RootSingleNamespaceDeclaration>> _removedLazyRootDeclarations;
FlowAnalysis\AlwaysAssignedWalker.cs (3)
39var result = walker.Analyze(ref badRegion); 48private List<Symbol> Analyze(ref bool badRegion) 51List<Symbol> result = new List<Symbol>();
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (7)
291var proxiedLabels = frame.proxiedLabels; 340var proxiedLabels = frame.proxiedLabels; 540var handlersList = currentAwaitCatchFrame.handlers; 1014public List<LabelSymbol> proxiedLabels; 1052var proxiedLabels = this.proxiedLabels; 1116public readonly List<BoundBlock> handlers; 1127private readonly List<LocalSymbol> _orderedHoistedLocals;
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (4)
64private Dictionary<LabelSymbol, List<StateMachineState>> _dispatches = new Dictionary<LabelSymbol, List<StateMachineState>>(); 238_dispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>(); 746oldDispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>();
Parser\AbstractLexer.cs (1)
19private List<SyntaxDiagnosticInfo>? _errors;
Symbols\ReferenceManager.cs (5)
124protected override void GetActualBoundReferencesUsedBy(AssemblySymbol assemblySymbol, List<AssemblySymbol?> referencedAssemblySymbols) 345var assemblyReferencesBySimpleName = PooledDictionary<string, List<ReferencedAssemblyIdentity>>.GetInstance(); 421var newSymbols = new List<int>(); 537List<int> newSymbols, 618private static void UpdateSymbolCacheNoLock(List<int> newSymbols, ImmutableArray<AssemblyData> assemblies, BoundInputAssembly[] bindingResult)
Symbols\Source\SourceNamedTypeSymbol.cs (3)
154var parameterBuilders1 = new List<List<TypeParameterBuilder>>(); 188var parameterBuilder = new List<TypeParameterBuilder>();
Syntax\DirectiveTriviaSyntax.cs (3)
131public List<DirectiveTriviaSyntax> GetRelatedDirectives() 133var list = new List<DirectiveTriviaSyntax>(); 138private void GetRelatedDirectives(List<DirectiveTriviaSyntax> list)
Syntax\InternalSyntax\CSharpSyntaxNode.cs (2)
181var list = new List<DirectiveTriviaSyntax>(32); 189private static void GetDirectives(GreenNode node, List<DirectiveTriviaSyntax> directives)
Syntax\SyntaxNodeRemover.cs (1)
453var relatedDirectives = directive.GetRelatedDirectives();
Microsoft.CodeAnalysis.CSharp.CodeStyle (45)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
46nameof(System.Collections.Generic.List<>),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
117var partsList = new List<string>(); 128public static bool TryGetNameParts(this ExpressionSyntax expression, List<string> parts) 158private static bool AddSimpleName(SimpleNameSyntax simpleName, List<string> parts)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (3)
16private readonly Dictionary<string, List<SyntaxToken>> _map = []; 23public static Dictionary<string, List<SyntaxToken>> GetAllDeclarations(SyntaxNode syntax) 35if (!_map.TryGetValue(identifier, out var list))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (3)
586var result = new List<IList<TSyntaxNode>>(); 588var currentGroup = new List<TSyntaxNode>(); 884var finalTrivia = from.GetLeadingTrivia().ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\DefaultOperationProvider.cs (3)
27public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 35public override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (2)
16public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 90private static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (9)
18List<IndentBlockOperation> list, 33List<IndentBlockOperation> list, 46List<IndentBlockOperation> list, 60List<IndentBlockOperation> list, 74List<IndentBlockOperation> list, 89List<IndentBlockOperation> list, 99List<IndentBlockOperation> list, 124protected static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxToken anchorToken, SyntaxToken endToken) 134protected static void AddAlignIndentationOfTokensToBaseTokenOperation(List<AlignTokensOperation> list, SyntaxNode containingNode, SyntaxToken baseNode, IEnumerable<SyntaxToken> tokens, AlignTokensOption option = AlignTokensOption.AlignIndentationOfTokensToBaseToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (11)
47public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 61private static void AddTypeParameterConstraintClauseOperation(List<IndentBlockOperation> list, SyntaxNode node) 70private void AddSwitchIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 129private void AddLabelIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 145private static void AddAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode node) 200private static void SetAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode baseNode, SyntaxNode body) 211private void AddBlockIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 248private static void AddBracketIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 289private static void AddParenthesizedPatternIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 309private static void AddAlignmentBlockOperationRelativeToFirstTokenOnBaseTokenLine(List<IndentBlockOperation> list, (SyntaxToken openBrace, SyntaxToken closeBrace) bracePair) 315private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentUserSettingsFormattingRule.cs (1)
37public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (3)
52private static void AddIndentBlockOperationsForFromClause(List<IndentBlockOperation> list, FromClauseSyntax fromClause) 82public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 129public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (2)
75var result = new List<SimpleNameSyntax>(); 80private static void DecomposeNameParts(NameSyntax name, List<SimpleNameSyntax> result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
197List<string> paramNames;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (2)
119var initialList = usingList.Cast<SyntaxNode>() 133var finalList = initialList.OrderBy(comparer).ToList();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (29)
src\roslyn\src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
104var finalLeadingTrivia = node.GetLeadingTrivia().ToList();
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
222var switchArms = node.Sections
src\roslyn\src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
34protected override List<XmlNameAttributeSyntax> GetNameAttributes(XmlElementSyntax node)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
290var seenUsings = existingUsings.ToList();
src\roslyn\src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
39protected override SwitchExpressionSyntax InsertSwitchArms(SyntaxGenerator generator, SwitchExpressionSyntax switchNode, int insertLocation, List<SwitchExpressionArmSyntax> newArms)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\MultiLineConditionalExpressionFormattingRule.cs (1)
49List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (3)
58var nodesFromDiagnostics = new List<( 61List<ExpressionSyntax> references)>(diagnostics.Length); 70var references = new List<ExpressionSyntax>(diagnostic.AdditionalLocations.Count - 2);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
27var attributeNodes = 39var attributeDeclarations =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
25var members = new List<SyntaxNodeOrToken>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
162var accessors = new List<AccessorDeclarationSyntax?>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
320var types = new List<BaseTypeSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
141var usingDirectives =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
22var newUsings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (3)
111var usings = AddUsingDirectives(root, usingDirectives); 140private static List<UsingDirectiveSyntax> AddUsingDirectives( 144var usings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
24var indices = new List<bool>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\UsingDirectiveSyntaxExtensions.cs (1)
15this List<UsingDirectiveSyntax> usingDirectives,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (3)
116public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 172private static void ReplaceCaseIndentationRules(List<IndentBlockOperation> list, SyntaxNode node) 191private static void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
603var invocationTypes = this.InferTypes(parentInvocationExpressionToTypeInfer).Select(t => t.InferredType).ToList(); 604var instantiatedMethods = methods.Select(m => Instantiate(m, invocationTypes)).ToList(); 609var filteredMethods = instantiatedMethods.Where(m =>
Microsoft.CodeAnalysis.CSharp.Features (125)
BraceCompletion\BracketBraceCompletionService.cs (1)
59public override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
BraceCompletion\CurlyBraceCompletionService.cs (1)
244public override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
ChangeSignature\ChangeSignatureFormattingRule.cs (2)
28public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 38private static void AddChangeSignatureIndentOperation(List<IndentBlockOperation> list, SyntaxNode node)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (2)
258var typeParameters = new List<ITypeParameterSymbol>(); 265var unusedTypeParameters = typeParameters.ToList();
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
128var directives = new List<NullableDirectiveTriviaSyntax>();
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
355var annotatedNodesOrTokens = node.GetAnnotatedNodesAndTokens(DefinitionAnnotation).ToList();
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (2)
140var items = new List<CompletionItem>(); 194private void AddXmlElementItems(List<CompletionItem> items, XmlElementStartTagSyntax startTag)
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (1)
194var droppedTrivia = new List<SyntaxTrivia>();
ConvertLinq\ConvertForEachToLinqQuery\ToToListConverter.cs (1)
52SyntaxFactory.IdentifierName(nameof(List<>.AddRange))),
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (4)
63private readonly List<string> _introducedLocalNames = []; 371=> Equals(typeSymbol.OriginalDefinition, _semanticModel.Compilation.GetTypeByMetadataName(typeof(List<>).FullName)); 396var list = new List<StatementSyntax>(); 810var statements = new List<StatementSyntax>();
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
26private readonly List<string> _expressions = []; 49var result = _expressions.Distinct().Where(e => e.Length > 0).ToList();
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (3)
85protected override List<string> GetDocumentationCommentStubLines(MemberDeclarationSyntax member, string existingCommentText, DocumentationCommentOptions options) 91var list = new List<string>(); 314var result = new List<SyntaxToken>();
DocumentationComments\DocCommentConverter.cs (1)
50var newLeadingTrivia = new List<SyntaxTrivia>();
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
890List<SyntaxToken>? oldTokens = null; 891List<SyntaxToken>? newTokens = null; 2586protected override List<SyntaxNode> GetExceptionHandlingAncestors(SyntaxNode node, SyntaxNode root, bool isNonLeaf) 2588var result = new List<SyntaxNode>();
EditAndContinue\SyntaxComparer.cs (12)
1165List<SyntaxToken>? leftLocals = null; 1166List<SyntaxToken>? rightLocals = null; 1245List<SyntaxToken>? leftLocals = null; 1246List<SyntaxToken>? rightLocals = null; 1270List<SyntaxToken>? leftLocals = null; 1271List<SyntaxToken>? rightLocals = null; 1288private static void GetLocalNames(BlockSyntax block, ref List<SyntaxToken>? result) 1301private static void GetLocalNames(VariableDeclarationSyntax localDeclaration, ref List<SyntaxToken>? result) 1309internal static void GetLocalNames(CommonForEachStatementSyntax commonForEach, ref List<SyntaxToken>? result) 1327private static void GetLocalNames(ExpressionSyntax expression, ref List<SyntaxToken>? result) 1352private static void GetLocalNames(VariableDesignationSyntax designation, ref List<SyntaxToken>? result) 1377private static void GetLocalNames(SyntaxToken syntaxToken, [NotNull] ref List<SyntaxToken>? result)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (4)
59var list = new List<VariableDeclaratorSyntax>(); 60var triviaList = new List<SyntaxTrivia>(); 294var newList = new List<TSyntax>(list); 322var newMembers = new List<MemberDeclarationSyntax>(members);
ExtractMethod\CSharpMethodExtractor.FormattingProvider.cs (1)
60public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (4)
96var map = new Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>>(); 118Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>> map) 129Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>> map) 136var variables = new List<VariableDeclaratorSyntax>();
Formatting\CSharpNamespaceDeclarationNewDocumentFormattingProvider.cs (1)
37var namespaces = GetNamespacesToReplace(document, root, formattingOptions.NamespaceDeclarations).ToList();
GenerateType\CSharpGenerateTypeService.cs (7)
549var containerList = new List<string>(containers); 569private BaseNamespaceDeclarationSyntax FindNamespaceInMemberDeclarations(SyntaxList<MemberDeclarationSyntax> members, int indexDone, List<string> containers) 584private BaseNamespaceDeclarationSyntax FindNamespaceInNamespace(BaseNamespaceDeclarationSyntax namespaceDecl, int indexDone, List<string> containers) 589var namespaceContainers = new List<string>(); 605private static bool IdentifierMatches(int indexDone, List<string> namespaceContainers, List<string> containers) 618private static void GetNamespaceContainers(NameSyntax name, List<string> namespaceContainers)
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (4)
36protected override void AddHighlightsForNode(SyntaxNode node, List<TextSpan> highlights, CancellationToken cancellationToken) 70private static bool HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans) 84private static bool TryAddAsyncModifier(SyntaxTokenList modifiers, List<TextSpan> spans) 97private static bool TryAddAsyncOrAwaitKeyword(SyntaxToken mod, List<TextSpan> spans)
Highlighting\KeywordHighlighters\CheckedExpressionHighlighter.cs (1)
27protected override void AddHighlights(CheckedExpressionSyntax checkedExpressionSyntax, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\CheckedStatementHighlighter.cs (1)
27protected override void AddHighlights(CheckedStatementSyntax checkedStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\ConditionalPreprocessorHighlighter.cs (1)
23DirectiveTriviaSyntax directive, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\IfStatementHighlighter.cs (2)
32IfStatementSyntax ifStatement, List<TextSpan> highlights, CancellationToken cancellationToken) 41IfStatementSyntax ifStatement, List<TextSpan> highlights)
Highlighting\KeywordHighlighters\LockStatementHighlighter.cs (1)
27protected override void AddHighlights(LockStatementSyntax lockStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\LoopHighlighter.cs (6)
39SyntaxNode node, List<TextSpan> spans, CancellationToken cancellationToken) 62private static void HighlightDoStatement(DoStatementSyntax statement, List<TextSpan> spans) 69private static void HighlightForStatement(ForStatementSyntax statement, List<TextSpan> spans) 72private static void HighlightForEachStatement(CommonForEachStatementSyntax statement, List<TextSpan> spans) 75private static void HighlightWhileStatement(WhileStatementSyntax statement, List<TextSpan> spans) 81private static void HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans,
Highlighting\KeywordHighlighters\RegionHighlighter.cs (1)
29DirectiveTriviaSyntax directive, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\ReturnStatementHighlighter.cs (2)
31ReturnStatementSyntax returnStatement, List<TextSpan> spans, CancellationToken cancellationToken) 48private static void HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans)
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (2)
37SwitchStatementSyntax switchStatement, List<TextSpan> spans, CancellationToken cancellationToken) 59private static void HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans,
Highlighting\KeywordHighlighters\TryStatementHighlighter.cs (1)
28TryStatementSyntax tryStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\UnsafeStatementHighlighter.cs (1)
27protected override void AddHighlights(UnsafeStatementSyntax unsafeStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\UsingStatementHighlighter.cs (1)
27protected override void AddHighlights(UsingStatementSyntax usingStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\YieldStatementHighlighter.cs (2)
31YieldStatementSyntax yieldStatement, List<TextSpan> spans, CancellationToken cancellationToken) 48private static void HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans)
IntroduceVariable\CSharpIntroduceVariableService_IntroduceQueryLocal.cs (2)
65var finalClauses = newClauses.Take(firstClauseAffectedIndex) 103var newClauses = oldClauses.Take(oldClauseIndex)
MetadataAsSource\FormattingRule.cs (1)
60public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
Organizing\Organizers\MemberDeclarationsOrganizer.cs (3)
30var sortedGroups = groups.Select(OrganizeMemberGroup).Flatten().ToList(); 114var initialList = new List<MemberDeclarationSyntax>(members); 116var finalList = initialList.OrderBy(new Comparer()).ToList();
Organizing\Organizers\ModifiersOrganizer.cs (2)
21var initialList = new List<SyntaxToken>(modifiers); 25var finalList = initialList.OrderBy(new Comparer()).ToList();
SignatureHelp\AbstractGenericNameSignatureHelpProvider_Method.cs (2)
17var result = new List<SymbolDisplayPart>(); 76var result = new List<SymbolDisplayPart>
SignatureHelp\AbstractGenericNameSignatureHelpProvider.cs (2)
161var result = new List<SignatureHelpSymbolParameter>(); 203var parts = new List<SymbolDisplayPart>();
SignatureHelp\AbstractOrdinaryMethodSignatureHelpProvider.cs (1)
53var result = new List<SymbolDisplayPart>();
SignatureHelp\AttributeSignatureHelpProvider.cs (4)
136var namedParameters = constructor.ContainingType.GetAttributeNamedParameters(semanticModel.Compilation, within) 163var result = new List<SignatureHelpSymbolParameter>(); 177var displayParts = new List<SymbolDisplayPart> 199private static List<SymbolDisplayPart>? GetParameterPrefixDisplayParts(int i)
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
242var result = new List<SymbolDisplayPart>();
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (2)
60var displayParts = new List<SymbolDisplayPart>(); 82var result = new List<SignatureHelpSymbolParameter>();
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider_DelegateType.cs (2)
38var result = new List<SymbolDisplayPart>(); 50var parts = new List<SymbolDisplayPart>();
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider_NormalType.cs (1)
42var result = new List<SymbolDisplayPart>();
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (1)
142var result = new List<SymbolDisplayPart>();
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (4)
136var tupleTypes = inferredTypes.Where(t => t.IsTupleType).OfType<INamedTypeSymbol>().ToList(); 156var items = tupleTypes.Select(tupleType => Convert( 181var result = new List<SignatureHelpParameter>(); 188var typeParts = element.Type.ToMinimalDisplayParts(semanticModel, position).ToList();
SplitStringLiteral\InterpolatedStringSplitter.cs (3)
38var contents = _interpolatedStringExpression.Contents.ToList(); 40var beforeSplitContents = new List<InterpolatedStringContentSyntax>(); 41var afterSplitContents = new List<InterpolatedStringContentSyntax>();
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
46nameof(System.Collections.Generic.List<>),
src\roslyn\src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
104var finalLeadingTrivia = node.GetLeadingTrivia().ToList();
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
222var switchArms = node.Sections
src\roslyn\src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
34protected override List<XmlNameAttributeSyntax> GetNameAttributes(XmlElementSyntax node)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
290var seenUsings = existingUsings.ToList();
src\roslyn\src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
39protected override SwitchExpressionSyntax InsertSwitchArms(SyntaxGenerator generator, SwitchExpressionSyntax switchNode, int insertLocation, List<SwitchExpressionArmSyntax> newArms)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\MultiLineConditionalExpressionFormattingRule.cs (1)
49List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (3)
58var nodesFromDiagnostics = new List<( 61List<ExpressionSyntax> references)>(diagnostics.Length); 70var references = new List<ExpressionSyntax>(diagnostic.AdditionalLocations.Count - 2);
Structure\Providers\CompilationUnitStructureProvider.cs (1)
27var externsAndUsings = new List<SyntaxNode>();
Structure\Providers\IfDirectiveTriviaStructureProvider.cs (1)
26var allRelatedDirectives = node.GetRelatedDirectives();
Structure\Providers\NamespaceDeclarationStructureProvider.cs (1)
38var externsAndUsings = Enumerable.Union<SyntaxNode>(namespaceDeclaration.Externs, namespaceDeclaration.Usings)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (6)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDynamicInterfaceCastableImplementation.Fixer.cs (2)
34var generatedMembers = new List<SyntaxNode>(); 211List<(InvocationExpressionSyntax invocation, ExpressionSyntax target)> invocations = new();
Microsoft.NetCore.Analyzers\Performance\CSharpPreferHashDataOverComputeHash.Fixer.cs (1)
64var list = argumentList.Arguments.ToList();
Microsoft.NetCore.Analyzers\Performance\CSharpRecommendCaseInsensitiveStringComparisonFixer.cs (1)
51List<SyntaxNode> arguments = new();
Microsoft.NetCore.Analyzers\Performance\CSharpUseSearchValues.cs (1)
92internal static bool IsConstantByteOrCharArrayCreationExpression(SemanticModel semanticModel, ExpressionSyntax expression, List<char>? values, out int length)
Microsoft.NetCore.Analyzers\Performance\CSharpUseSearchValues.Fixer.cs (1)
114List<char> values = new();
Microsoft.CodeAnalysis.CSharp.Workspaces (85)
CodeGeneration\CSharpSyntaxGenerator.cs (9)
406var accessors = new List<AccessorDeclarationSyntax>(); 477var accessors = new List<AccessorDeclarationSyntax>(); 560var accessors = new List<AccessorDeclarationSyntax>(); 757var itypes = interfaceTypes?.Select(i => (BaseTypeSyntax)SyntaxFactory.SimpleBaseType((TypeSyntax)i)).ToList(); 778var itypes = interfaceTypes?.Select(i => (BaseTypeSyntax)SyntaxFactory.SimpleBaseType((TypeSyntax)i)).ToList(); 2993var newNodes = new List<SyntaxNode>(); 3099var newNodes = new List<SyntaxNode> 3265var falseArray = falseStatements.ToList(); 3660var parameters = parameterDeclarations?.Cast<ParameterSyntax>().ToList();
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (4)
69var aliasMaps = AllocateAliasMapList(); 88private static void AddAliasMaps(SyntaxNode node, List<Dictionary<string, string>> aliasMaps) 103private static void ProcessUsings(List<Dictionary<string, string>> aliasMaps, SyntaxList<UsingDirectiveSyntax> usings) 132List<Dictionary<string, string>> aliasMaps)
Rename\CSharpRenameRewriterLanguageService.cs (2)
103private List<(TextSpan oldSpan, TextSpan newSpan)>? _modifiedSubSpans; 847var properties = new List<ISymbol>();
Rename\LabelConflictVisitor.cs (1)
31var tokens = new List<SyntaxToken>();
Simplification\CSharpSimplificationService.Expander.cs (4)
718var candidateTokens = new List<SyntaxToken>(); 761var typeArgumentSymbols = new List<ISymbol>(); 812var typeArgumentsInSymbol = new List<ISymbol>(); 815var typeArgumentsInOriginalDefinition = new List<ISymbol>();
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (1)
20private readonly List<NodeOrTokenToReduce> _nodesAndTokensToReduce = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
117var partsList = new List<string>(); 128public static bool TryGetNameParts(this ExpressionSyntax expression, List<string> parts) 158private static bool AddSimpleName(SimpleNameSyntax simpleName, List<string> parts)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (3)
16private readonly Dictionary<string, List<SyntaxToken>> _map = []; 23public static Dictionary<string, List<SyntaxToken>> GetAllDeclarations(SyntaxNode syntax) 35if (!_map.TryGetValue(identifier, out var list))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (3)
586var result = new List<IList<TSyntaxNode>>(); 588var currentGroup = new List<TSyntaxNode>(); 884var finalTrivia = from.GetLeadingTrivia().ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\DefaultOperationProvider.cs (3)
27public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 35public override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (2)
16public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 90private static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (9)
18List<IndentBlockOperation> list, 33List<IndentBlockOperation> list, 46List<IndentBlockOperation> list, 60List<IndentBlockOperation> list, 74List<IndentBlockOperation> list, 89List<IndentBlockOperation> list, 99List<IndentBlockOperation> list, 124protected static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxToken anchorToken, SyntaxToken endToken) 134protected static void AddAlignIndentationOfTokensToBaseTokenOperation(List<AlignTokensOperation> list, SyntaxNode containingNode, SyntaxToken baseNode, IEnumerable<SyntaxToken> tokens, AlignTokensOption option = AlignTokensOption.AlignIndentationOfTokensToBaseToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (11)
47public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 61private static void AddTypeParameterConstraintClauseOperation(List<IndentBlockOperation> list, SyntaxNode node) 70private void AddSwitchIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 129private void AddLabelIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 145private static void AddAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode node) 200private static void SetAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode baseNode, SyntaxNode body) 211private void AddBlockIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 248private static void AddBracketIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 289private static void AddParenthesizedPatternIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 309private static void AddAlignmentBlockOperationRelativeToFirstTokenOnBaseTokenLine(List<IndentBlockOperation> list, (SyntaxToken openBrace, SyntaxToken closeBrace) bracePair) 315private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentUserSettingsFormattingRule.cs (1)
37public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (3)
52private static void AddIndentBlockOperationsForFromClause(List<IndentBlockOperation> list, FromClauseSyntax fromClause) 82public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 129public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (2)
75var result = new List<SimpleNameSyntax>(); 80private static void DecomposeNameParts(NameSyntax name, List<SimpleNameSyntax> result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
197List<string> paramNames;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (2)
119var initialList = usingList.Cast<SyntaxNode>() 133var finalList = initialList.OrderBy(comparer).ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
27var attributeNodes = 39var attributeDeclarations =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
25var members = new List<SyntaxNodeOrToken>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
162var accessors = new List<AccessorDeclarationSyntax?>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
320var types = new List<BaseTypeSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
141var usingDirectives =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
22var newUsings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (3)
111var usings = AddUsingDirectives(root, usingDirectives); 140private static List<UsingDirectiveSyntax> AddUsingDirectives( 144var usings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
24var indices = new List<bool>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\UsingDirectiveSyntaxExtensions.cs (1)
15this List<UsingDirectiveSyntax> usingDirectives,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (3)
116public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 172private static void ReplaceCaseIndentationRules(List<IndentBlockOperation> list, SyntaxNode node) 191private static void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
603var invocationTypes = this.InferTypes(parentInvocationExpressionToTypeInfer).Select(t => t.InferredType).ToList(); 604var instantiatedMethods = methods.Select(m => Instantiate(m, invocationTypes)).ToList(); 609var filteredMethods = instantiatedMethods.Where(m =>
Microsoft.CodeAnalysis.Extensions.Package (13)
Compilation\CompilationExtensions.cs (1)
292=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
Symbols\ISymbolExtensions.cs (2)
759var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 799var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.cs (1)
153var documentsToRemove = new List<DocumentId>();
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
ExtractInterface\IOmniSharpExtractInterfaceOptionsService.cs (1)
14List<ISymbol> extractableMembers,
Microsoft.CodeAnalysis.Features (235)
AddPackage\InstallPackageDirectlyCodeActionOperation.cs (2)
29private readonly List<string> _projectsWithMatchingVersion = []; 51var otherProjects = installerService.GetProjectsWithInstalledPackage(
BraceMatching\AbstractBraceMatcher.cs (1)
31var braceTokens = (from child in parent.ChildNodesAndTokens()
ChangeSignature\AbstractChangeSignatureService.cs (4)
254var nodesToUpdate = new Dictionary<DocumentId, List<SyntaxNode>>(); 387var nodes = nodesToUpdate[docId]; 445private static void AddUpdatableNodeToDictionaries(Dictionary<DocumentId, List<SyntaxNode>> nodesToUpdate, DocumentId documentId, SyntaxNode nodeToUpdate, Dictionary<SyntaxNode, ISymbol> definitionToUse, ISymbol symbolWithSemanticParameters) 479var argumentsToPermute = arguments.Take(declarationParametersToPermute.Length).ToList();
ChangeSignature\ParameterConfiguration.cs (1)
26var parametersList = parameters.ToList();
CodeFixes\Service\CodeFixService.cs (14)
125var spanToErrorDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>>(); 126var spanToOtherDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>>(); 152SortedDictionary<TextSpan, List<DiagnosticData>> spanToDiagnostics, 260private static SortedDictionary<TextSpan, List<DiagnosticData>> ConvertToMap( 267var spanToDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>>(); 316var spanToDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>> 437SortedDictionary<TextSpan, List<DiagnosticData>> spanToDiagnostics, 457using var _2 = PooledDictionary<CodeFixProvider, List<(TextSpan range, List<DiagnosticData> diagnostics)>>.GetInstance(out var fixerToRangesAndDiagnostics); 588List<DiagnosticData> diagnostics, 590PooledDictionary<CodeFixProvider, List<(TextSpan range, List<DiagnosticData> diagnostics)>> fixerToRangesAndDiagnostics) 739List<DiagnosticData> diagnostics, 774List<DiagnosticData> diagnosticsWithSameSpan,
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (2)
259var getChangedDocumentsTasks = new List<Task>(); 284var getFinalDocumentTasks = new List<Task>();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (7)
154var diagnosticsMapBuilder = ImmutableDictionary.CreateBuilder<ISymbol, List<Diagnostic>>(); 175var diagnosticsMapBuilder = ImmutableDictionary.CreateBuilder<ISymbol, List<Diagnostic>>(); 190private static void AddDiagnosticForSymbolIfNeeded(ISymbol targetSymbol, Diagnostic diagnostic, ImmutableDictionary<ISymbol, List<Diagnostic>>.Builder diagnosticsMapBuilder) 197if (!diagnosticsMapBuilder.TryGetValue(targetSymbol, out var diagnosticsForSymbol)) 206private static IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>> CreateDiagnosticsBySymbol(ImmutableDictionary<ISymbol, List<Diagnostic>>.Builder diagnosticsMapBuilder) 211var builder = new List<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>>(); 218private static ImmutableArray<Diagnostic> GetUniqueDiagnostics(List<Diagnostic> diagnostics)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (2)
118var attributeRemoveFixes = new List<AttributeRemoveAction>(); 119var newBatchOfFixes = new List<(Diagnostic diagnostic, CodeAction action)>();
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
447var refLocationsInCurrentDocument = new List<LocationForAffectedSymbol>(); 448var refLocationsInOtherDocuments = new List<LocationForAffectedSymbol>();
Completion\CommonCompletionUtilities.cs (3)
99var textContentBuilder = new List<TaggedText>(); 160private static void AddOverloadPart(List<TaggedText> textContentBuilder, int overloadCount, bool isGeneric) 174List<TaggedText> textContentBuilder, ISymbol symbol, SemanticModel semanticModel, int position, IDocumentationCommentFormattingService formatter, CancellationToken cancellationToken)
Completion\CompletionService_GetCompletions.cs (4)
369private static readonly ObjectPool<List<CompletionItem>> s_sortListPool = new(factory: () => [], size: 5); 384var list = s_sortListPool.Allocate(); 431else if (value is List<CompletionItem> sameNamedItems) 456else if (value is List<CompletionItem> sameNamedItems)
Completion\CompletionService.cs (2)
266private static readonly ObjectPool<List<MatchResult>> s_listOfMatchResultPool = new(factory: () => []); 285var builder = s_listOfMatchResultPool.Allocate();
Completion\CompletionService.ProviderManager.cs (1)
73var providers = ExtensionOrderer.Order(
Completion\Providers\RecommendedKeyword.cs (1)
34var textContentBuilder = new System.Collections.Generic.List<SymbolDisplayPart>();
Completion\Providers\Scripting\GlobalAssemblyCacheCompletionHelper.cs (1)
18private static readonly Lazy<List<string>> s_lazyAssemblySimpleNames =
Completion\Providers\SymbolCompletionItem.cs (2)
143var idList = symbolIds.Split(s_symbolSplitters, StringSplitOptions.RemoveEmptyEntries).ToList(); 170private static void DecodeSymbols(List<string> ids, Compilation compilation, ArrayBuilder<ISymbol> symbols)
Diagnostics\IPerformanceTrackerService.cs (1)
14void GenerateReport(List<AnalyzerInfoForPerformanceReporting> analyzerInfos, bool forSpanAnalysis);
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (1)
60private readonly List<(DocumentationCommentListType type, int index, bool renderedItem)> _listStack = [];
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (9)
25protected abstract List<string> GetDocumentationCommentStubLines(TMemberNode member, string existingCommentText, DocumentationCommentOptions options); 88var lines = GetDocumentationCommentLines(token, text, options, out var indentText, out var caretOffset, out var spanToReplaceLength); 103private List<string>? GetDocumentationCommentLines(SyntaxToken token, SourceText text, in DocumentationCommentOptions options, out string? indentText, out int caretOffset, out int spanToReplaceLength) 107var lines = GetDocumentationStubLines(token, text, options, out caretOffset, out spanToReplaceLength, out var existingCommentText); 145private List<string>? GetDocumentationStubLines(SyntaxToken token, SourceText text, in DocumentationCommentOptions options, out int caretOffset, out int spanToReplaceLength, out string? existingCommentText) 172var lines = GetDocumentationCommentStubLines(targetMember, existingCommentText, options); 238private static void IndentLines(List<string> lines, string? indentText) 281var lines = GetDocumentationCommentLines(token, text, options, out var indentText, out _, out _); 329var lines = GetDocumentationCommentStubLines(targetMember, string.Empty, options);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (20)
399protected abstract List<SyntaxNode> GetExceptionHandlingAncestors(SyntaxNode node, SyntaxNode root, bool isNonLeaf); 1038var ancestors = GetExceptionHandlingAncestors(newStatement, newBody.EncompassingAncestor, oldActiveStatements[i].Statement.IsNonLeaf); 1080public readonly List<int>? ActiveNodeIndices; 1086public LambdaInfo(List<int> activeNodeIndices) 1091private LambdaInfo(List<int>? activeNodeIndices, DeclarationBodyMap bodyMap, LambdaBody? newLambdaBody) 1558var oldAncestors = GetExceptionHandlingAncestors(oldStatementSyntax, oldEncompassingAncestor, isNonLeaf); 1559var newAncestors = GetExceptionHandlingAncestors(newStatementSyntax, newEncompassingAncestor, isNonLeaf); 1740private static List<KeyValuePair<SyntaxNode, SyntaxNode>>? GetMatchingActiveNodes(IEnumerable<ActiveNode> activeNodes) 1743List<KeyValuePair<SyntaxNode, SyntaxNode>>? lazyKnownMatches = null; 1762var ancestors = GetExceptionHandlingAncestors(node, root, isNonLeaf); 1766private ActiveStatementExceptionRegions GetExceptionRegions(List<SyntaxNode> exceptionHandlingAncestors, SyntaxTree tree, CancellationToken cancellationToken) 2019var newNodes = GetAncestors(newEncompassingAncestor, newActiveStatement, nodeSelector); 2025var oldNodes = GetAncestors(oldEncompassingAncestor, oldActiveStatement, nodeSelector); 2049private void ReportRudeEditsAndInserts(List<SyntaxNode?>? oldNodes, List<SyntaxNode?> newNodes, RudeEditDiagnosticsBuilder diagnostics) 2075List<SyntaxNode?> oldNodes, 2077List<SyntaxNode?> newNodes, 2172private static int IndexOfEquivalent<TSyntaxNode>(SyntaxNode newNode, List<SyntaxNode?> oldNodes, int startIndex, Func<TSyntaxNode, TSyntaxNode, bool> comparer) 2187private static List<SyntaxNode?>? GetAncestors(SyntaxNode? root, SyntaxNode node, Func<SyntaxNode, bool> nodeSelector) 2189List<SyntaxNode?>? list = null;
EditAndContinue\DebuggingSessionTelemetry.cs (1)
26private readonly List<EditSessionTelemetry.Data> _editSessionData = [];
EditAndContinue\EditAndContinueService.cs (1)
61private readonly List<DebuggingSession> _debuggingSessions = [];
EmbeddedLanguages\RegularExpressions\LanguageServices\EmbeddedCompletionContext.cs (1)
26public readonly List<RegexItem> Items = [];
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (2)
195var statMap = new Dictionary<string, List<int>>(); 204var list = statMap.GetOrAdd(propertyNameAndId.Item1, _ => []);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
543var list = new List<UnitTestingWorkItem>();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (5)
124List<CancellationTokenSource>? cancellations; 136List<CancellationTokenSource>? cancellations; 152private static void RaiseCancellation_NoLock(List<CancellationTokenSource>? cancellations) 163private List<CancellationTokenSource>? CancelAll_NoLock() 172var cancellations = _cancellationMap.Values.ToList();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (2)
269internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<UnitTestingWorkItem> items) 286private readonly List<Lazy<IUnitTestingIncrementalAnalyzerProvider, UnitTestingIncrementalAnalyzerProviderMetadata>> _analyzerProviders = [.. analyzerProviders];
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (1)
194internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<UnitTestingWorkItem> items)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (1)
376internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<UnitTestingWorkItem> items)
ExternalAccess\VSTypeScript\Api\IVSTypeScriptClassificationService.cs (1)
16Task AddSemanticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, List<ClassifiedSpan> result, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\VSTypeScriptClassificationService.cs (2)
54using var _ = SharedPools.BigDefault<List<ClassifiedSpan>>().GetPooledObject(out var list);
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
233var remainingResults = new List<ExtractClassMemberAnalysisResult>(memberAnalysisResults);
ExtractMethod\AbstractSyntaxTriviaService.cs (4)
120private static (List<SyntaxTrivia>, List<SyntaxTrivia>) SplitTrivia( 125var triviaLeftAtCallSite = new List<SyntaxTrivia>(); 126var triviaMovedToDefinition = new List<SyntaxTrivia>();
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (3)
75var list = trivia.ToList(); 87private int GetFirstEndOfLineIndex(List<SyntaxTrivia> list) 244List<SyntaxTrivia> list,
ExtractMethod\MethodExtractor.Analyzer.cs (4)
81bestEffort: false, dataFlowAnalysisData, symbolMap, isInPrimaryConstructorBaseType, out var variableInfoMap, out var failedVariables); 89bestEffort: true, dataFlowAnalysisData, symbolMap, isInPrimaryConstructorBaseType, out variableInfoMap, out var unused); 407out List<ISymbol> failedVariables) 757var typeParametersInConstraint = new List<ITypeParameterSymbol>();
ExtractMethod\MethodExtractor.TriviaResult.cs (2)
71var currentLine = new List<SyntaxTrivia>(); 72var result = new List<SyntaxTrivia>();
ExtractMethod\MethodExtractor.TypeParameterCollector.cs (1)
20private readonly List<ITypeParameterSymbol> _typeParameters = [];
ExtractMethod\SelectionValidator.cs (1)
151var spine = new List<TStatementSyntax>();
FindUsages\AbstractFindUsagesService.DefinitionTrackingContext.cs (1)
28private readonly List<DefinitionItem> _definitions = [];
GenerateEqualsAndGetHashCodeFromMembers\FormatLargeBinaryExpressionRule.cs (1)
44List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
GenerateType\AbstractGenerateTypeService.cs (1)
188var arguments = typeArguments.ToList();
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
250private static void AddFoldersToNamespaceContainers(List<string> container, IList<string> folders) 493var containerList = new List<string>();
GenerateType\AbstractGenerateTypeService.State.cs (2)
64public List<TSimpleNameSyntax> PropertiesToGenerate { get; private set; } = null!; 441public List<TSimpleNameSyntax> PropertiesToGenerate { get; }
Highlighting\HighlightingService.cs (4)
22private readonly List<Lazy<IHighlighter, LanguageMetadata>> _highlighters = [.. highlighters]; 23private static readonly PooledObjects.ObjectPool<List<TextSpan>> s_listPool = new(() => []); 26SyntaxNode root, int position, List<TextSpan> highlights, CancellationToken cancellationToken) 28using (s_listPool.GetPooledObject(out var tempHighlights))
Highlighting\IHighlighter.cs (1)
13void AddHighlights(SyntaxNode root, int position, List<TextSpan> highlights, CancellationToken cancellationToken);
Highlighting\IHighlightingService.cs (1)
19void AddHighlights(SyntaxNode root, int position, List<TextSpan> highlights, CancellationToken cancellationToken);
Highlighting\Keywords\AbstractKeywordHighlighter.cs (7)
21protected sealed override void AddHighlightsForNode(SyntaxNode node, List<TextSpan> highlights, CancellationToken cancellationToken) 24protected abstract void AddHighlights(TNode node, List<TextSpan> highlights, CancellationToken cancellationToken); 31private static readonly ObjectPool<List<TextSpan>> s_textSpanListPool = new(() => []); 39SyntaxNode root, int position, List<TextSpan> highlights, CancellationToken cancellationToken) 47using var _2 = s_textSpanListPool.GetPooledObject(out var highlightsBuffer); 67private static bool AnyIntersects(int position, List<TextSpan> highlights) 78protected abstract void AddHighlightsForNode(SyntaxNode node, List<TextSpan> highlights, CancellationToken cancellationToken);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
78var listOfParametersOrdinals = new List<int>(); 176List<int> listOfParametersOrdinals,
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
372var nodesToTrack = new List<SyntaxNode> { constructorDeclaration };
InlineHints\InlineHintHelpers.cs (1)
34var parts = new List<TaggedText>();
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (5)
245? new Dictionary<Document, List<TExpressionSyntax>> { [document] = [] } 300IMethodSymbol methodSymbol, SyntaxNode containingMethod, Dictionary<Document, List<TExpressionSyntax>> methodCallSites, bool allOccurrences, IntroduceParameterCodeActionKind selectedCodeAction, 332protected static async Task<Dictionary<Document, List<TExpressionSyntax>>> FindCallSitesAsync( 335var methodCallSites = new Dictionary<Document, List<TExpressionSyntax>>(); 368if (!methodCallSites.TryGetValue(refLocation.Document, out var list))
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (5)
43public async Task<SyntaxNode> RewriteDocumentAsync(Compilation compilation, Document document, List<TExpressionSyntax> invocations, CancellationToken cancellationToken) 228List<TExpressionSyntax> invocations, int insertionIndex, CancellationToken cancellationToken) 321var requiredArguments = new List<SyntaxNode>(); 359private SyntaxNode GenerateNewMethodInvocation(SyntaxNode invocation, List<SyntaxNode> arguments, string newMethodIdentifier) 490List<TExpressionSyntax> invocations, CancellationToken cancellationToken)
LanguageServices\AnonymousTypeDisplayService\StructuralTypeDisplayInfo.cs (2)
29while (ReplaceStructuralTypes(parts, structuralTypeToName, semanticModel, position, out var newParts)) 40out List<SymbolDisplayPart> newParts)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (5)
303var parts = new List<SymbolDisplayPart>(); 347var parts = new List<SymbolDisplayPart>(); 466var finalParts = new List<SymbolDisplayPart>(); 751var parts = ToMinimalDisplayParts(symbol, MinimallyQualifiedFormat).ToList(); 855var partsList = partsArray.Flatten().ToList();
MetadataAsSource\AbstractMetadataAsSourceService+CompatAbstractMetadataFormattingRule.cs (6)
30public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 38public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 46public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 83public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 89public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 95public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
MetadataAsSource\DocumentationCommentUtilities.cs (2)
14private static readonly ObjectPool<List<string>> s_pool = SharedPools.Default<List<string>>();
PdbSourceDocument\SourceLinkMap.cs (1)
70var list = new List<Entry>();
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
81var candidateResults = new List<(DocumentId docId, TokenInformation tokenInformation)>
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
61var actionsToPerform = new List<(int, Action)>();
ReplaceMethodWithProperty\AbstractReplaceMethodWithPropertyService.cs (2)
49var finalLeadingTrivia = getAndSetMethods.GetMethodDeclaration.GetLeadingTrivia().ToList(); 75private static void AddParamListTriviaIfNeeded(ISyntaxFacts syntaxFacts, SyntaxNode methodDeclaration, List<SyntaxTrivia> finalLeadingTrivia)
RQName\Nodes\RQConstructedType.cs (1)
19var typeArgumentNodes = TypeArguments.Select(node => node.ToSimpleTree()).ToList();
RQName\Nodes\RQMember.cs (1)
16protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQMemberParameterIndex.cs (1)
22protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQMemberParameterIndexFromPartialImplementation.cs (1)
14protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQMemberParameterIndexFromPartialSignature.cs (1)
14protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQMemberVariable.cs (1)
24protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQMethodOrProperty.cs (2)
21protected override void AppendChildren(List<SimpleTreeNode> childList) 25var paramNodes = Parameters.Select(param => param.ToSimpleTree()).ToList();
RQName\Nodes\RQMethodPropertyOrEvent.cs (1)
19protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQNode.cs (2)
14protected abstract void AppendChildren(List<SimpleTreeNode> childList); 18var childList = new List<SimpleTreeNode>();
RQName\Nodes\RQTypeOrNamespace.cs (1)
19protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQUnconstructedType.cs (1)
21protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\RQNodeBuilder.cs (5)
36var parts = new List<string>(); 77var typeInfos = new List<RQUnconstructedTypeInfo>(); 141var parameterList = new List<RQParameter>(); 308var typeChain = new List<INamedTypeSymbol>(); 320var typeArgumentList = new List<RQType>();
Shared\Utilities\AnnotatedSymbolMapping.cs (2)
55using var _2 = PooledDictionary<DocumentId, List<ISymbol>>.GetInstance(out var documentIdToSymbolsMap); 89var symbolsInDocument = documentIdToSymbolsMap[id];
Shared\Utilities\SupportedPlatformData.cs (1)
27var builder = new List<SymbolDisplayPart>();
SignatureHelp\AbstractSignatureHelpProvider.cs (4)
98var filteredList = items.Where(i => Include(i, parameterNames)).ToList(); 197var structuralTypeParts = new List<SymbolDisplayPart> 260var finalItems = new List<SignatureHelpItem>(); 326var startingNewLine = new List<TaggedText>();
SignatureHelp\SignatureHelpItems.cs (1)
77var distinctItems = items.Distinct().ToList();
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
130var allTokens = node.DescendantTokens(descendIntoTrivia: true).ToList();
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (14)
157using var _1 = PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>>.GetInstance(out var idToPragmasMap); 166using var _5 = PooledDictionary<string, List<SyntaxNode>>.GetInstance(out var idToSuppressMessageAttributesMap); 200if (idToPragmasMap.TryGetValue(id, out var pragmas)) 208if (idToSuppressMessageAttributesMap.TryGetValue(id, out var attributeNodes)) 228PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 268if (!idToPragmasMap.TryGetValue(id, out var pragmasForIdInReverseOrder)) 510PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 512PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 546PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 549if (!idToPragmasMap.TryGetValue(diagnostic.Id, out var pragmasForIdInReverseOrder)) 586PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 591!idToSuppressMessageAttributesMap.TryGetValue(diagnostic.Id, out var suppressMessageAttributesForId)) 736PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 813if (!idToSuppressMessageAttributesMap.TryGetValue(id, out var nodesForId))
src\roslyn\src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
35(nameof(List<>.AddRange), isLinq: false),
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (8)
50protected abstract List<TXmlNameAttributeSyntax> GetNameAttributes(TXmlElementSyntax node); 68var paramNodes = GetElementNodes(newDocComment, NodeName); 74var paramsBeforeCurrentParam = parameterNames.TakeWhile(t => t != parameterName).ToList(); 75var paramsAfterCurrentParam = parameterNames.Except(paramsBeforeCurrentParam).ToList(); 105var paramNodeSiblings = nodeAfterNewParamNode.GetRequiredParent().ChildNodes().ToList(); 124private List<TXmlElementSyntax> GetElementNodes(SyntaxNode docComment, string nodeName) 126var nodes = docComment.ChildNodes().OfType<TXmlElementSyntax>() 155var paramNameAttributesForNode = GetNameAttributes(paramNode);
src\roslyn\src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (3)
63var removedNodes = new List<SyntaxNode> { paramNode }; 64var paramNodeSiblings = paramNode.GetRequiredParent().ChildNodes().ToList(); 85private bool ShouldRemovePreviousSibling(List<SyntaxNode> paramNodeSiblings, int paramNodeIndex)
src\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
103var removalList = new List<int>();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (5)
58var constraints = typeParameter.ConstraintTypes.Where(ts => !ts.IsUnexpressibleTypeParameterConstraint()).ToList(); 59var classTypes = constraints.Where(ts => ts.TypeKind == TypeKind.Class).ToList(); 60var nonClassTypes = constraints.Where(ts => ts.TypeKind != TypeKind.Class).ToList(); 81private List<ITypeSymbol> MergeClassTypes(List<ITypeSymbol> classTypes)
src\roslyn\src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
42var declarators = new List<TSymbolSyntax>(); 55Document document, SyntaxEditor editor, List<TSymbolSyntax> declarators, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (2)
42protected abstract TSwitchSyntax InsertSwitchArms(SyntaxGenerator generator, TSwitchSyntax switchNode, int insertLocation, List<TSwitchArmSyntax> newArms); 167var newArms = new List<TSwitchArmSyntax>();
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
68protected sealed override TSwitchSyntax InsertSwitchArms(SyntaxGenerator generator, TSwitchSyntax switchNode, int insertLocation, List<TSwitchArmSyntax> newArms)
src\roslyn\src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (1)
46var result = new List<CodeAction>();
UnusedReferences\ProjectAssets\ProjectAssetsModel.cs (1)
18public Dictionary<string, List<string>>? ProjectFileDependencyGroups { get; set; }
Wrapping\AbstractCodeActionComputer.cs (1)
62private readonly List<SyntaxNode> _seenDocumentRoots = [];
Microsoft.CodeAnalysis.NetAnalyzers (68)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotRaiseExceptionsInUnexpectedLocations.cs (3)
78List<MethodCategory> methodCategories = GetMethodCategories(compilation); 172private static List<MethodCategory> GetMethodCategories(Compilation compilation) 174var methodCategories = new List<MethodCategory> {
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ExceptionsShouldBePublic.cs (1)
36private static readonly List<string> s_exceptionTypeNames = new()
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\NestedTypesShouldNotBeVisible.cs (1)
153var nestedTypeBases = nestedType.GetBaseTypes().ToList();
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternates.cs (1)
133var matchedMethods = new List<IMethodSymbol>();
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypeNamesShouldNotMatchNamespaces.cs (1)
165var wellKnownSystemNamespaces = new List<string>
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUninstantiatedInternalClasses.cs (1)
71var instantiatingAttributeChecker = new List<(Func<INamedTypeSymbol, bool> isAttributeTarget, Func<AttributeData, Compilation, INamedTypeSymbol?> findTypeOrDefault)>
Microsoft.CodeQuality.Analyzers\Maintainability\CodeMetricsAnalyzer.cs (4)
132out List<Diagnostic>? invalidFileDiagnostics) && 288out List<Diagnostic>? invalidFileDiagnostics) 321out List<Diagnostic>? invalidFileDiagnostics) 423((List<(SymbolKind?, uint)>)values).Add((symbolKind, threshold));
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotPassDisposablesIntoUnawaitedTasks.cs (4)
85var disposableArgumentReferences = GetLocalReferencesFromArguments(disposableArguments).ToList(); 92var descendants = containingBlock.Descendants().ToList(); 135var referencedDisposableArgs = new List<ILocalReferenceOperation>(); 140List<ILocalSymbol> usingLocals = new();
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotRaiseExceptionsInExceptionClauses.cs (1)
69public List<IThrowOperation> ThrowExpressions { get; private set; } = new List<IThrowOperation>();
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (3)
190var guardMethods = GetOperatingSystemGuardMethods(runtimeIsOSPlatformMethod, operatingSystemType, out var relatedPlatforms); 205static List<IMethodSymbol> GetOperatingSystemGuardMethods(IMethodSymbol? runtimeIsOSPlatformMethod, 210var methods = FilterPlatformCheckMethods(operatingSystemType, relatedPlatforms).ToList();
Microsoft.NetCore.Analyzers\Performance\AvoidSingleUseOfLocalJsonSerializerOptions.cs (2)
97if (!IsLocalAssignment(operation, jsonSerializerOptionsSymbol, out List<ILocalSymbol>? localSymbols)) 291private static bool IsLocalAssignment(IOperation operation, INamedTypeSymbol jsonSerializerOptionsSymbol, [NotNullWhen(true)] out List<ILocalSymbol>? localSymbols)
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsed.Fixer.cs (1)
99var carriedOver = new List<SyntaxNode>(arguments) { expression };
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryMethodsOverContainsKeyGuardFixer.cs (1)
67private readonly List<(ISymbol? Scope, string Name)> _introducedNames = new();
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.Fixer.cs (8)
82private readonly List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> _diagnosticsToFix; 86public PreferHashDataOverComputeHashFixAllCodeAction(string title, Solution solution, List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> diagnosticsToFix, PreferHashDataOverComputeHashFixHelper helper) 141var chainedComputeHashList = new List<ComputeHashSyntaxHolder>(); 201public HashInstanceTarget(List<ComputeHashSyntaxHolder> computeHashNodes) 208public List<ComputeHashSyntaxHolder> ComputeHashNodes { get; } = new(); 232var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>(); 344var list = new List<SyntaxNode>(); 368var list = new List<SyntaxNode>();
Microsoft.NetCore.Analyzers\Performance\UseConcreteTypeAnalyzer.Collector.cs (13)
234var valueTypes = GetValueTypes(arg.Value); 252var valueTypes = GetValueTypes(op.Value); 264var valueTypes = GetValueTypes(op.Value); 274var tupleTypes = GetValueTypes(op.Value); 321var valueTypes = GetValueTypes(op.Value); 342var valueTypes = GetValueTypes(op.Value); 363var valueTypes = GetValueTypes(op.Initializer.Value); 405var valueTypes = GetValueTypes(op.ReturnedValue); 414var valueTypes = GetValueTypes(op.ReturnedValue); 424private List<ITypeSymbol> GetValueTypes(IOperation op) 426var values = new List<ITypeSymbol>(); 431private void GetValueTypes(List<ITypeSymbol> values, IOperation? op) 546private void RecordAssignment(IOperation op, List<ITypeSymbol> valueTypes)
Microsoft.NetCore.Analyzers\Performance\UseSearchValues.cs (2)
319internal static bool IsConstantByteOrCharCollectionExpression(IOperation operation, List<char>? values, out int length) 331static bool AllElementsAreConstantByteOrCharLiterals(ImmutableArray<IOperation> elements, List<char>? values)
Microsoft.NetCore.Analyzers\Runtime\AttributeStringLiteralsShouldParseCorrectly.cs (1)
53private static readonly List<ValueValidator> s_tokensToValueValidator =
Microsoft.NetCore.Analyzers\Runtime\LogValuesFormatter.cs (1)
59public List<string> ValueNames { get; } = new List<string>();
Microsoft.NetCore.Analyzers\Runtime\SpecifyCultureInfo.cs (1)
65var correctOverloads = methodsWithSameNameAsTargetMethod.GetMethodOverloadsWithDesiredParameterAtLeadingOrTrailing(targetMethod, cultureInfoType).ToList();
Microsoft.NetCore.Analyzers\Runtime\UseAsyncMethodInAsyncContext.cs (3)
69List<SyncBlockingSymbol> syncBlockingSymbols = new(); 214private static void GetSymbolAndAddToList(string symbolName, string metadataName, SymbolKind kind, List<SyncBlockingSymbol> syncBlockingSymbols, WellKnownTypeProvider wellKnownTypeProvider) 334private static bool InspectAndReportBlockingMemberAccess(OperationAnalysisContext context, ISymbol memberSymbol, List<SyncBlockingSymbol> syncBlockingSymbols, SymbolKind kind)
Microsoft.NetCore.Analyzers\Tasks\DoNotUseNonCancelableTaskDelayWithWhenAny.cs (1)
64List<IOperation>? taskDelayOperations = null;
src\40daf5e1cab76dff\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
182List<TaintedDataAbstractValue>? taintedValues = null;
src\440320f3f10733a8\ValueContentAnalysis.CoreAnalysisDataDomain.cs (1)
38var keysInMap1 = forwardEdgeAnalysisData.Keys.ToList();
src\ffd9070534249528\PointsToAnalysis.CorePointsToAnalysisDataDomain.cs (1)
63List<AnalysisEntity> keysInMap1 = forwardEdgeAnalysisData.CoreAnalysisData.Keys.ToList();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
19private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
181var attributes = new List<AttributeData>(); 248var attributes = new List<AttributeData>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\Extensions\ListExtensions.cs (1)
23public static ImmutableArray<T> ExtractAll<T, TArg>(this List<T> list, Func<T, TArg, bool> predicate, TArg argument)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (4)
63using var finallyBlockSuccessorsMap = PooledDictionary<int, List<BranchWithInfo>>.GetInstance(); 187PooledDictionary<int, List<BranchWithInfo>> finallyBlockSuccessorsMap, 623if (finallyBlockSuccessorsMap.TryGetValue(basicBlock.Ordinal, out var finallySuccessors)) 728if (!finallyBlockSuccessorsMap.TryGetValue(finallyRegion.LastBlockOrdinal, out var lastBlockSuccessors))
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
47private readonly List<IArgumentOperation> _pendingArgumentsToPostProcess;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
39List<SyntaxNode> statements = new List<SyntaxNode>(); 353List<SyntaxNode> statements = new List<SyntaxNode>();
Microsoft.CodeAnalysis.Razor.Compiler (88)
CSharp\DefaultUtf8WriteLiteralFeature.cs (6)
103List<(int Index, InheritsInfo Info)>? unresolvedEntries = null; 129var resolved = ResolveTypeNamesWithUsings(unresolvedEntries, csharpCompilation); 152private static List<(int Index, string Fqn)> ResolveTypeNamesWithUsings( 153List<(int Index, InheritsInfo Info)> entries, 156var results = new List<(int, string)>(); 227var parts = new List<string> { typePart };
Language\Components\ComponentGenericTypePass.cs (5)
65var componentTypeParameters = node.Component.GetTypeParameters().ToList(); 66var supplyCascadingTypeParameters = componentTypeParameters 180List<CascadingGenericTypeParameter>? receivesCascadingGenericTypes = null; 299var missing = new List<BoundAttributeDescriptor>(); 415private void CreateTypeInferenceMethod(DocumentIntermediateNode documentNode, ComponentIntermediateNode node, List<CascadingGenericTypeParameter>? receivesCascadingGenericTypes)
Language\Components\ComponentLoweringPass.cs (4)
92List<TagHelperDescriptor> matched = null; 157static TagHelperDescriptor TryDisambiguateByTypeParameters(TagHelperIntermediateNode node, List<TagHelperDescriptor> candidates) 160var genericCandidates = candidates.Where(c => c.IsGenericTypedComponent()).ToList(); 161var nonGenericCandidates = candidates.Where(c => !c.IsGenericTypedComponent()).ToList();
Language\Components\ComponentMarkupBlockPass.cs (4)
46var trees = findVisitor.Trees; 139public List<IntermediateNodeReference> Trees { get; } = new List<IntermediateNodeReference>(); 261private readonly List<IntermediateNodeReference> _trees; 263public RewriteVisitor(List<IntermediateNodeReference> trees)
Language\Components\ComponentNodeWriter.cs (4)
88var parameters = GetTypeInferenceMethodParameters(node); 405private List<TypeInferenceMethodParameter> GetTypeInferenceMethodParameters(ComponentTypeInferenceMethodIntermediateNode node) 407var p = new List<TypeInferenceMethodParameter>(); 1088var parameters = GetTypeInferenceMethodParameters(node.TypeInferenceNode);
Language\Components\ComponentTemplateDiagnosticPass.cs (3)
28using var _ = ListPool<IntermediateNodeReference>.GetPooledObject(out var candidates); 45private sealed class Visitor(List<IntermediateNodeReference> candidates) 48private readonly List<IntermediateNodeReference> _candidates = candidates;
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (10)
51using var _1 = ListPool<UsingReference>.GetPooledObject(out var usingReferences); 55using var _2 = ListPool<UsingReference>.GetPooledObject(out var importedUsings); 167static bool Contains(List<UsingReference> usingReferences, ReadOnlySpan<char> usingNamespace) 197List<UsingReference> usings) 309protected readonly List<UsingReference> _usings; 319public LoweringVisitor(DocumentIntermediateNode document, IntermediateNodeBuilder builder, List<UsingReference> usings, RazorParserOptions options) 1047public LegacyFileKindVisitor(DocumentIntermediateNode document, IntermediateNodeBuilder builder, List<UsingReference> usings, RazorParserOptions options) 1625List<UsingReference> usings, 2151List<UsingReference> usings, 2257public ImportsVisitor(DocumentIntermediateNode document, IntermediateNodeBuilder builder, List<UsingReference> usings, RazorParserOptions options)
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (13)
85private List<DirectiveTagHelperContribution>? _directiveContributions; 153protected void AddMatches(List<TagHelperDescriptor> tagHelpers) 169protected void RemoveMatches(List<TagHelperDescriptor> tagHelpers) 211private readonly Dictionary<string, List<TagHelperDescriptor>> _tagHelperMap = new(StringComparer.Ordinal); 219private Dictionary<string, List<TagHelperDescriptor>> TagHelperMap 237List<TagHelperDescriptor>? currentTagHelpers = null; 313if (!TagHelperMap.TryGetValue(addTagHelper.AssemblyName, out var tagHelpers)) 320var contributed = IsSourceDocument ? TagHelperCollection.TagHelperDescriptorListPool.Default.Get() : null; 368if (!TagHelperMap.TryGetValue(removeTagHelper.AssemblyName, out var nonComponentTagHelpers)) 418private readonly Dictionary<ReadOnlyMemory<char>, List<TagHelperDescriptor>> _namespaceToComponentsMap = new(ReadOnlyMemoryOfCharComparer.Instance); 422private List<TagHelperDescriptor>? _componentsWithoutNamespace; 458if (!_namespaceToComponentsMap.TryGetValue(typeNamespace, out var components)) 536if (namespaceToComponentsMap.TryGetValue(normalizedNamespace, out var components))
Language\DocumentClassifierPassBase.cs (1)
59var children = new List<IntermediateNode>(documentNode.Children);
Language\Intermediate\ComponentTypeInferenceMethodIntermediateNode.cs (1)
37public List<CascadingGenericTypeParameter> ReceivesCascadingGenericTypes { get; set; }
Language\Intermediate\DefaultRazorIntermediateNodeBuilder.cs (1)
13private readonly List<IntermediateNode> _stack;
Language\Legacy\AddTagHelperChunkGenerator.cs (2)
21List<RazorDiagnostic> diagnostics) 38public List<RazorDiagnostic> Diagnostics { get; }
Language\Legacy\CSharpCodeParser.cs (4)
1323Func<string, List<RazorDiagnostic>, SourceLocation, ISpanChunkGenerator> chunkGeneratorFactory) 1409List<RazorDiagnostic> errors) 1464internal static ParsedDirective ParseAddOrRemoveDirective(ParsedDirective directive, SourceLocation directiveLocation, List<RazorDiagnostic> errors) 1519List<RazorDiagnostic> diagnostics)
Language\Legacy\RemoveTagHelperChunkGenerator.cs (2)
21List<RazorDiagnostic> diagnostics) 38public List<RazorDiagnostic> Diagnostics { get; }
Language\Legacy\RoslynCSharpTokenizer.cs (1)
35private readonly List<(int position, SyntaxTokenParser.Result result, bool isOnlyWhitespaceOnLine)> _resultCache = ListPool<(int, SyntaxTokenParser.Result, bool)>.Default.Get();
Language\Legacy\TagHelperPrefixDirectiveChunkGenerator.cs (2)
16public TagHelperPrefixDirectiveChunkGenerator(string prefix, string directiveText, List<RazorDiagnostic> diagnostics) 27public List<RazorDiagnostic> Diagnostics { get; }
Language\Legacy\Tokenizer.cs (1)
27protected List<RazorDiagnostic> CurrentErrors { get; }
Language\MarkupSplitter.Classify.cs (2)
130var pieceBuilders = new List<IntermediateNode>[memberSpans.Length]; 176List<IntermediateNode>[] pieceBuilders)
Language\MarkupSplitter.Slicing.cs (1)
53var localBoundaries = new List<int> { 0 };
Language\RazorCodeDocumentExtensions.cs (2)
129var usings = new List<string>(); 143static void CollectUsings(RazorSyntaxTree tree, List<string> usings)
Language\RazorSyntaxTree.cs (1)
50using var pooledList = ListPool<RazorDiagnostic>.GetPooledObject(out var rootDiagnostics);
Language\Syntax\InternalSyntax\SyntaxListPool.cs (1)
18private readonly List<SyntaxListBuilder> _allocated = new List<SyntaxListBuilder>();
Language\Syntax\SyntaxNodeExtensions.cs (3)
36public static void CollectAllDiagnostics<TNode>(this TNode node, List<RazorDiagnostic> list) 264private sealed class DiagnosticSyntaxWalker(List<RazorDiagnostic> diagnostics) : SyntaxWalker 266private readonly List<RazorDiagnostic> _diagnostics = diagnostics ?? [];
Language\TagHelperCollection.Builder.cs (2)
16private List<TagHelperDescriptor> _items; 27var items = Interlocked.Exchange(ref _items, null!);
Language\TagHelperCollection.TagHelperDescriptorListPool.cs (4)
12/// A pool of <see cref="List{T}"/> instances for <see cref="TagHelperDescriptor"/>. 23internal sealed class TagHelperDescriptorListPool : CustomObjectPool<List<TagHelperDescriptor>> 40public override List<TagHelperDescriptor> Create() => new(capacity: InitialCapacity); 42public override bool Return(List<TagHelperDescriptor> list)
Language\TagHelperObjectBuilderCollection`2.cs (1)
16private List<TBuilder>? _builders;
Language\VirtualRazorProjectFileSystem.cs (2)
41public List<DirectoryNode> Directories { get; } = []; 42public List<FileNode> Files { get; } = [];
Mvc.Version2_X\InstrumentationPass.cs (1)
76public List<InstrumentationItem> Items { get; } = new List<InstrumentationItem>();
Mvc.Version2_X\ViewComponentTagHelperDescriptorFactory.cs (1)
156var methods = new List<IMethodSymbol>();
Mvc\ModelExpressionPass.cs (1)
34public List<TagHelperIntermediateNode> TagHelpers { get; } = new List<TagHelperIntermediateNode>();
Mvc\PageDirective.cs (1)
65var tokens = visitor.DirectiveTokens.ToList();
Mvc\ViewComponentTagHelperDescriptorFactory.cs (1)
156var methods = new List<IMethodSymbol>();
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
456List<(string, string)> options = new List<(string, string)>();
Microsoft.CodeAnalysis.ResxSourceGenerator (117)
AbstractResxGenerator.cs (1)
546var getResourceStringAttributes = new List<string>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
29public static void ParseFeatures(IDictionary<string, string> builder, List<string> values) 40internal static void PrependFeatureFlagFromEnvironment(List<string> arguments, Action<string>? log = null)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
150var attributes = new List<AttributeData>(); 217var attributes = new List<AttributeData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
292=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
759var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 799var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
Microsoft.CodeAnalysis.Scripting (17)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (9)
52private readonly Dictionary<string, List<LoadedAssemblyInfo>> _loadedAssembliesBySimpleName; 55private readonly Dictionary<string, List<AssemblyIdentityAndLocation>> _dependenciesWithLocationBySimpleName; 90_loadedAssembliesBySimpleName = new Dictionary<string, List<LoadedAssemblyInfo>>(AssemblyIdentityComparer.SimpleNameComparer); 91_dependenciesWithLocationBySimpleName = new Dictionary<string, List<AssemblyIdentityAndLocation>>(); 199if (_loadedAssembliesBySimpleName.TryGetValue(identity.Name, out var existingInfos)) 212if (_dependenciesWithLocationBySimpleName.TryGetValue(simpleName, out var sameSimpleNameAssemblyIdentities)) 265if (_loadedAssembliesBySimpleName.TryGetValue(identity.Name, out var loadedInfos)) 389if (_loadedAssembliesBySimpleName.TryGetValue(identity.Name, out var infos)) 399if (_dependenciesWithLocationBySimpleName.TryGetValue(identity.Name, out var sameSimpleNameIdentities))
Hosting\CommandLine\CommandLineRunner.cs (3)
110var diagnosticsInfos = new List<DiagnosticInfo>(); 150private ScriptOptions? GetScriptOptions(CommandLineArguments arguments, string? scriptPathOpt, CommonMessageProvider messageProvider, List<DiagnosticInfo> diagnostics, bool emitDebugInformation) 157var resolvedReferences = new List<MetadataReference>();
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (4)
287var members = new List<FormattedMember>(); 325private void FormatObjectMembersRecursive(List<FormattedMember> result, object obj, bool includeNonPublic, ref int lengthLimit) 329var members = new List<MemberInfo>(); 490private bool AddMember(List<FormattedMember> members, FormattedMember member, ref int remainingLength)
Hosting\SynchronizedList.cs (1)
15private readonly List<T> _list = new List<T>();
Microsoft.CodeAnalysis.VisualBasic (3)
CommandLine\VisualBasicCommandLineArguments.vb (2)
66diagnostics As List(Of DiagnosticInfo), 68resolved As List(Of MetadataReference)
Lowering\SyntheticBoundNodeFactory.vb (1)
730Public Function SwitchSection(values As List(Of Integer), ParamArray statements As BoundStatement()) As BoundCaseBlock
Microsoft.CodeAnalysis.Workspaces (279)
Classification\AbstractClassificationService.cs (1)
220protected static void AddRange(ArrayBuilder<ClassifiedSpan> temp, List<ClassifiedSpan> result)
Classification\Classifier.cs (1)
103var allClassifications = new List<ClassifiedSpan>(semanticClassifications.Where(s => s.TextSpan.OverlapsWith(textSpan)));
CodeCleanup\AbstractCodeCleanerService.cs (7)
116List<(SyntaxAnnotation previousAnnotation, SyntaxAnnotation nextAnnotation)> annotations, 269private static (SyntaxNode newNode, List<(SyntaxAnnotation previous, SyntaxAnnotation next)> annotations) AnnotateNodeForTextSpans( 276var tokenAnnotationMap = new Dictionary<SyntaxToken, List<SyntaxAnnotation>>(); 277var annotations = new List<(SyntaxAnnotation previous, SyntaxAnnotation next)>(); 327var tokenSpans = new List<TextSpan>(); 431private static bool CleanupWholeNode(List<(SyntaxAnnotation previous, SyntaxAnnotation next)> annotations) 593private static SyntaxNode InjectAnnotations(SyntaxNode node, Dictionary<SyntaxToken, List<SyntaxAnnotation>> map)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (10)
23private Dictionary<DocumentId, List<DiagnosticData>>? _lazySyntaxLocals = null; 24private Dictionary<DocumentId, List<DiagnosticData>>? _lazySemanticLocals = null; 25private Dictionary<DocumentId, List<DiagnosticData>>? _lazyNonLocals = null; 27private List<DiagnosticData>? _lazyOthers = null; 48ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, DocumentId documentId, ImmutableArray<Diagnostic> diagnostics) 93private static void AddDocumentDiagnostic(ref Dictionary<DocumentId, List<DiagnosticData>>? map, TextDocument document, Diagnostic diagnostic) 119Dictionary<DocumentId, List<DiagnosticData>>? dummy = null; 127ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, Diagnostic diagnostic) 180ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, ImmutableArray<Diagnostic> diagnostics) 186private static ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> Convert(Dictionary<DocumentId, List<DiagnosticData>>? map)
Differencing\EditScript.cs (7)
22var edits = new List<Edit<TNode>>(); 39private void AddUpdatesInsertsMoves(List<Edit<TNode>> edits) 70private void ProcessNode(List<Edit<TNode>> edits, TNode x) 140private void AddDeletes(List<Edit<TNode>> edits) 161private void AlignChildren(List<Edit<TNode>> edits, TNode w, TNode x) 180List<TNode> s1 = null; 191List<TNode> s2 = null;
Differencing\Match.cs (9)
70out List<TNode>[] nodes, 73nodes = new List<TNode>[labelCount]; 88var list = nodes[label]; 102private void ComputeMatch(List<TNode>[] nodes1, List<TNode>[] nodes2) 146private void ComputeMatchForLabel(int label, List<TNode> s1, List<TNode> s2) 157private void ComputeMatchForLabel(List<TNode> s1, List<TNode> s2, int tiedToAncestor, double maxAcceptableDistance)
Editing\SymbolEditor.cs (2)
154var symbols = DocumentationCommentId.GetSymbolsForDeclarationId(symbolId, comp).ToList(); 406var memberDecls = this.GetDeclarations(currentMember).ToList();
Editing\SyntaxEditor.cs (2)
57private readonly List<Change> _changes = []; 312private readonly List<SyntaxNode> _newNodes = [.. newNodes];
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
208using var _1 = PooledDictionary<ProjectId, List<ProjectId>>.GetInstance(out var projectIdsToReferencingSubmissionIds); 243if (projectIdsToReferencingSubmissionIds.TryGetValue(toProcess, out var submissionIds))
FindSymbols\ReferenceLocationExtensions.cs (4)
16public static async Task<Dictionary<ISymbol, List<Location>>> FindReferencingSymbolsAsync( 22var result = new Dictionary<ISymbol, List<Location>>(); 51Dictionary<ISymbol, List<Location>> result) 63if (!result.TryGetValue(containingSymbol, out var locations))
FindSymbols\StreamingProgressCollector.cs (1)
27private readonly Dictionary<ISymbol, List<ReferenceLocation>> _symbolToLocations = [];
FindSymbols\SymbolFinder_Callers.cs (1)
51var results = new List<SymbolCallerInfo>();
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (10)
254private static readonly ObjectPool<List<string>> s_stringListPool = SharedPools.Default<List<string>>(); 260private readonly List<MetadataDefinition> _allTypeDefinitions = []; 737var baseTypeNameParts = s_stringListPool.Allocate(); 766List<string> simpleNames) 782List<string> simpleNames) 805List<string> simpleNames) 839List<string> simpleNames) 854List<string> simpleNames) 878private readonly void EnsureParentsAndChildren(List<string> simpleNames)
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
442var orderedKeys1 = _inheritanceMap.Keys.Order().ToList();
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (4)
38private static readonly ObjectPool<List<Dictionary<string, string>>> s_aliasMapListPool 39= SharedPools.Default<List<Dictionary<string, string>>>(); 97protected static List<Dictionary<string, string>> AllocateAliasMapList() 129protected static void FreeAliasMapList(List<Dictionary<string, string>> list)
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (6)
22var partitionedChanges = PartitionChangesForDocument(documentWithChanges.UnmergedChanges, originalSourceText); 31private static List<List<TextChange>> PartitionChangesForDocument(IEnumerable<TextChange> changes, SourceText originalSourceText) 33var partitionedChanges = new List<List<TextChange>>(); 34var currentPartition = new List<TextChange>
Log\StatisticResult.cs (1)
14public static StatisticResult FromList(List<int> values)
Log\WorkspaceStructureLogger.cs (2)
198var elements = new List<XElement>(); 297var elements = new List<XElement>();
Rename\ConflictEngine\ConflictingIdentifierTracker.cs (3)
17private readonly Dictionary<string, List<SyntaxToken>> _currentIdentifiersInScope = new(identifierComparer); 31if (_currentIdentifiersInScope.TryGetValue(name, out var conflictingTokens)) 78var currentIdentifiers = _currentIdentifiersInScope[name];
Rename\ConflictEngine\ConflictResolver.Session.cs (3)
97var topologicallySortedProjects = dependencyGraph.GetTopologicallySortedProjects(_cancellationToken).ToList(); 277var ignoreErrorCodes = new List<string> 692var possibleNameConflictsList = new List<string>();
Rename\ConflictEngine\MutableConflictResolution.cs (1)
28public readonly List<RelatedLocation> RelatedLocations = [];
Rename\ConflictEngine\RenamedSpansTracker.cs (12)
25private readonly Dictionary<DocumentId, List<(TextSpan oldSpan, TextSpan newSpan)>> _documentToModifiedSpansMap = []; 26private readonly Dictionary<DocumentId, List<MutableComplexifiedSpan>> _documentToComplexifiedSpansMap = []; 33if (!_documentToModifiedSpansMap.TryGetValue(documentId, out var spans)) 42internal void AddComplexifiedSpan(DocumentId documentId, TextSpan oldSpan, TextSpan newSpan, List<(TextSpan oldSpan, TextSpan newSpan)> modifiedSubSpans) 44if (!_documentToComplexifiedSpansMap.TryGetValue(documentId, out var spans)) 56var documentReplacementSpans = _documentToModifiedSpansMap.TryGetValue(documentId, out var modifiedSpans) 66var documentComplexifiedSpans = _documentToComplexifiedSpansMap.TryGetValue(documentId, out var complexifiedSpans) 122TextSpan originalSpan, TextSpan newSpan, List<(TextSpan oldSpan, TextSpan newSpan)> modifiedSubSpans) 126public List<(TextSpan oldSpan, TextSpan newSpan)> ModifiedSubSpans = modifiedSubSpans; 172if (_documentToModifiedSpansMap.TryGetValue(documentId, out var modifiedSpans)) 177if (_documentToComplexifiedSpansMap.TryGetValue(documentId, out var complexifiedSpans)) 197var modifiedSubSpans = new List<(TextSpan oldSpan, TextSpan newSpan)>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
278var results = new List<RenameLocation>();
Serialization\AbstractOptionsSerializationService.cs (4)
134List<KeyValuePair<string, ReportDiagnostic>> specificDiagnosticOptionsList = null; 149var specificDiagnosticOptions = specificDiagnosticOptionsList ?? []; 220List<KeyValuePair<string, string>> featuresList = null; 235var features = featuresList ?? [];
Shared\Extensions\INamespaceSymbolExtensions.cs (6)
17private static readonly ConditionalWeakTable<INamespaceSymbol, List<string>> s_namespaceToNameMap = new(); 22private static List<string> GetNameParts(INamespaceSymbol? namespaceSymbol) 24var result = new List<string>(); 29private static void GetNameParts(INamespaceSymbol? namespaceSymbol, List<string> result) 42var names1 = s_namespaceToNameMap.GetValue(n1, GetNameParts); 43var names2 = s_namespaceToNameMap.GetValue(n2, GetNameParts);
Shared\Extensions\ISymbolExtensions.cs (1)
335var result = new List<XNode>();
Shared\TestHooks\AsynchronousOperationListener.cs (1)
23private List<DiagnosticAsyncToken> _diagnosticTokenList = [];
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (2)
126List<Task>? tasks = null; 197public List<AsynchronousOperationListener.DiagnosticAsyncToken> GetTokens()
Shared\Utilities\ExtensionOrderer.cs (1)
25var list = extensions.ToList();
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
349List<string> originalPaths;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
29public static void ParseFeatures(IDictionary<string, string> builder, List<string> values) 40internal static void PrependFeatureFlagFromEnvironment(List<string> arguments, Action<string>? log = null)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
292=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
759var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 799var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
63var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 66var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 73List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 74List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 152private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 168List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
178public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 200public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
62List<Exception>? exceptions = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Workspace\CommandLineProject.cs (3)
65var boundMetadataReferences = commandLineArguments.ResolveMetadataReferences(commandLineMetadataReferenceResolver).Distinct().ToList(); 78var boundAnalyzerReferences = commandLineArguments.ResolveAnalyzerReferences(analyzerLoader).Distinct().ToList(); 147var documents = new List<DocumentInfo>();
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
54private readonly List<DocumentId> _documentsRemovedInBatch = [];
Workspace\ProjectSystem\ProjectSystemProject.cs (18)
52private readonly List<(string path, MetadataReferenceProperties properties)> _metadataReferencesAddedInBatch = []; 53private readonly List<(string path, MetadataReferenceProperties properties)> _metadataReferencesRemovedInBatch = []; 54private readonly List<ProjectReference> _projectReferencesAddedInBatch = []; 55private readonly List<ProjectReference> _projectReferencesRemovedInBatch = []; 70private readonly List<string> _analyzersAddedInBatch = []; 75private readonly List<string> _analyzersRemovedInBatch = []; 77private readonly List<Func<SolutionChangeAccumulator, ProjectUpdateState, ProjectUpdateState>> _projectPropertyModificationsInBatch = []; 651List<(string path, MetadataReferenceProperties properties)> metadataReferencesRemovedInBatch, 652List<(string path, MetadataReferenceProperties properties)> metadataReferencesAddedInBatch) 689var projectReferencesCreated = new List<ProjectReference>(); 723List<ProjectReference> projectReferencesRemovedInBatch, 724List<ProjectReference> projectReferencesAddedInBatch) 742List<string> analyzersRemovedInBatch, 743List<string> analyzersAddedInBatch) 762List<string> analyzersRemoved, 763List<string> analyzersAdded) 1182var newList = projectReferencesInWorkspace.ToList(); 1278private static void ClearAndZeroCapacity<T>(List<T> list)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
522var distinctProjectsForOutputPath = projectsForOutputPath.Distinct().ToList();
Workspace\ProjectSystem\ProjectSystemProjectFactory.ProjectUpdateState.cs (2)
133public ProjectUpdateState WithIncrementalAnalyzerReferencesRemoved(List<string> references) 139public ProjectUpdateState WithIncrementalAnalyzerReferencesAdded(List<string> references)
Workspace\ProjectSystem\SolutionChangeAccumulator.cs (1)
21private readonly List<DocumentId> _documentIdsRemoved = [];
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (1)
25var referencedProjectIds = projectReferences
Workspace\Solution\ProjectDependencyGraph.cs (5)
390using var resultList = SharedPools.Default<List<ProjectId>>().GetPooledObject(); 399List<ProjectId> resultList, 442using var results = SharedPools.Default<List<IEnumerable<ProjectId>>>().GetPooledObject(); 450private void ComputeDependencySets(HashSet<ProjectId> seenProjects, List<IEnumerable<ProjectId>> results, CancellationToken cancellationToken) 466using var sortedProjects = SharedPools.Default<List<ProjectId>>().GetPooledObject();
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
493var newReferences = new List<MetadataReference>();
Workspace\Workspace_Editor.cs (2)
54List<DocumentId> docIds; 77var copyOfOpenDocs = openDocs.ToList();
Workspace\Workspace.cs (2)
1256var updatedDocumentIds = new List<DocumentId>(); 1262var updatedDocumentIds = data.updatedDocumentIds;
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
MSBuild\BuildHostProcessManager.cs (1)
235List<BuildHostProcess> processesToDispose;
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
374=> _projectIdToProjectReferencesMap.TryGetValue(from, out var references)
MSBuild\MSBuildProjectLoader.Worker.cs (2)
64private readonly Dictionary<ProjectId, List<ProjectReference>> _projectIdToProjectReferencesMap; 146var idsAndFileInfos = new List<(ProjectId id, ProjectFileInfo fileInfo)>();
Rpc\RpcClient.cs (4)
122public Task InvokeAsync(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken) 128public async Task<T?> InvokeNullableAsync<T>(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken) where T : class 134public async Task<T> InvokeAsync<T>(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken) where T : notnull 141private async Task<object?> InvokeCoreAsync(int targetObject, string methodName, List<object?> parameters, Type? expectedReturnType, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
Build\ProjectBuildManager.cs (2)
285var results = new List<MSB.Execution.ProjectInstance>(targetFrameworks.Length); 335var targets = new List<string>(requiredTargets);
MSBuild\Logging\DiagnosticLog.cs (1)
13private readonly List<DiagnosticLogItem> _items = [];
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
16private readonly List<string> _builder;
MSBuild\ProjectFile\ProjectFile.cs (1)
161var items = references.Where(it => it.EvaluatedInclude.StartsWith(partialName, StringComparison.OrdinalIgnoreCase)).ToList();
Rpc\RpcServer.cs (1)
127var remainingTasks = new List<Task>(capacity: runningTasks.Count);
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
887var resolvedParts = new List<string>();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
29public static void ParseFeatures(IDictionary<string, string> builder, List<string> values) 40internal static void PrependFeatureFlagFromEnvironment(List<string> arguments, Action<string>? log = null)
Microsoft.CSharp (79)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
356List<string> argNames = new List<string>();
Microsoft\CSharp\RuntimeBinder\ComInterop\ComEventsSink.Extended.cs (1)
72List<ComEventsSink> comEventSinks = ComEventSinksContainer.FromRuntimeCallableWrapper(rcw, createIfNotFound);
Microsoft\CSharp\RuntimeBinder\ComInterop\ComInvokeBinder.cs (6)
165private static void AddNotNull(List<ParameterExpression> list, ParameterExpression var) 172List<ParameterExpression> vars = new List<ParameterExpression>(); 195List<Expression> tryStatements = new List<Expression>(); 335List<Expression> finallyStatements = new List<Expression> 395List<Expression> exprs = new List<Expression> 513var vars = new List<ParameterExpression>();
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchComObject.cs (1)
281var members = new List<KeyValuePair<string, object>>();
Microsoft\CSharp\RuntimeBinder\ComInterop\VarEnumSelector.cs (4)
147private static List<VarEnum> GetConversionsToComPrimitiveTypeFamilies(Type argumentType) 149List<VarEnum> compatibleComTypes = new List<VarEnum>(); 171private static void CheckForAmbiguousMatch(Type argumentType, List<VarEnum> compatibleComTypes) 282List<VarEnum> compatibleComTypes = GetConversionsToComPrimitiveTypeFamilies(argumentType);
Microsoft\CSharp\RuntimeBinder\ComInterop\VariantArray.cs (1)
52private static readonly List<Type> s_generatedTypes = new List<Type>(0);
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (3)
45var v = new List<DynamicMetaObject> { self }; 455List<string> names = new List<string>(mo.GetDynamicMemberNames()); 458var result = new List<KeyValuePair<string, object>>();
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
891List<Expression> expressions = new List<Expression>();
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
564List<CType> callingTypes = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (3)
183private static int FindName(List<Name> names, Name name) 231var prgexpr = args.prgexpr; 488List<CandidateFunctionMember> list,
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (7)
713List<UdConvInfo> prguci = new List<UdConvInfo>(); 1083private static RuntimeBinderException HandleAmbiguity(CType typeSrc, CType typeDst, List<UdConvInfo> prguci, int iuciBestSrc, int iuciBestDst) 1529public static bool IsEmpty<T>(this List<T> list) 1533public static T Head<T>(this List<T> list) 1537public static List<T> Tail<T>(this List<T> list) 1541List<T> newList = new List<T>(array);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (3)
36public List<Expr> prgexpr; 575List<CandidateFunctionMember> methFirstList = new List<CandidateFunctionMember>(); 1415private static bool IsConvInTable(List<UdConvInfo> convTable, MethodSymbol meth, AggregateType ats, bool fSrc, bool fDst)
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (5)
44private readonly List<CandidateFunctionMember> _methList; 57private readonly List<CType> _HiddenTypes; 721List<Expr> prgexpr = pArguments.prgexpr; 743List<Name> currentPosition = methprop.ParameterNames; 1114List<Name> paramNames = FindMostDerivedMethod(_misnamed.MethProp(), _pGroup.OptionalObject).ParameterNames;
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (3)
49private readonly List<AggregateType> _rgtypeStart; 52private List<AggregateType> _prgtype; 55private readonly List<MethPropWithType> _methPropWithTypeList; // When we look up methods, we want to keep the list of all candidate methods given a particular name.
Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs (2)
103List<Name> paramNames = ExpressionBinder.GroupToArgsBinder 107List<Expr> argExpressions = args.prgexpr;
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (9)
36private readonly List<CType>[] _pExactBounds; 37private readonly List<CType>[] _pUpperBounds; 38private readonly List<CType>[] _pLowerBounds; 128_pLowerBounds = new List<CType>[pMethodTypeParameters.Count]; 129_pUpperBounds = new List<CType>[pMethodTypeParameters.Count]; 130_pExactBounds = new List<CType>[pMethodTypeParameters.Count]; 1606List<CType> initialCandidates = new List<CType>(); 1646List<CType> removeList = new List<CType>(); 1664List<CType> removeList = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (15)
185private bool GetSpecialBinopSignatures(List<BinOpFullSig> prgbofs, BinOpArgInfo info) 202private bool GetStandardAndLiftedBinopSignatures(List<BinOpFullSig> rgbofs, BinOpArgInfo info) 408List<BinOpFullSig> binopSignatures, 513List<BinOpFullSig> binopSignatures = new List<BinOpFullSig>(); 710private bool GetDelBinOpSigs(List<BinOpFullSig> prgbofs, BinOpArgInfo info) 824private static void RecordBinOpSigFromArgs(List<BinOpFullSig> prgbofs, BinOpArgInfo info) 861private bool GetEnumBinOpSigs(List<BinOpFullSig> prgbofs, BinOpArgInfo info) 934private bool GetRefEqualSigs(List<BinOpFullSig> prgbofs, BinOpArgInfo info) 1208List<UnaOpFullSig> pSignatures = new List<UnaOpFullSig>(); 1322private UnaryOperatorSignatureFindResult PopulateSignatureList(Expr pArgument, UnaOpKind unaryOpKind, UnaOpMask unaryOpMask, ExpressionKind exprKind, EXPRFLAG flags, List<UnaOpFullSig> pSignatures, out Expr ppResult) 1417List<UnaOpFullSig> pSignatures) 2510private bool UserDefinedBinaryOperatorIsApplicable(List<CandidateFunctionMember> candidateList, 2550List<CandidateFunctionMember> candidateList, ExpressionKind ek, AggregateType type, 2571List<CandidateFunctionMember> candidateList, ExpressionKind ek, AggregateType type, 2589List<CandidateFunctionMember> methFirst = new List<CandidateFunctionMember>();
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodOrPropertySymbol.cs (1)
35public List<Name> ParameterNames { get; private set; }
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
191List<CType> typeList = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
25private readonly List<TypeParameterType> prgptvs;
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (10)
147List<Type> inheritance = CreateInheritanceHierarchyList(key.Type); 157private static void AddNamesInInheritanceHierarchy(string name, List<Type> inheritance) 178List<EventInfo> events = null; 240private static List<Type> CreateInheritanceHierarchyList(Type type) 242List<Type> list; 341List<CType> ctypes = new List<CType>(); 595List<object> declarationChain = BuildDeclarationChain(type); 686List<CType> types = new List<CType>(); 736private static List<object> BuildDeclarationChain(Type callingType) 755List<object> callChain = new List<object>();
Microsoft.Data.Analysis (64)
DataFrame.Arrow.cs (1)
186List<Apache.Arrow.Array> arrays = new List<Apache.Arrow.Array>();
DataFrame.cs (15)
200List<DataFrameColumn> newColumns = new List<DataFrameColumn>(Columns.Count); 543List<object> cachedObjectConversions = new List<object>(); 624List<object> cachedObjectConversions = new List<object>(); 756var idColumnList = idColumns.ToList(); 765var valueColumnList = valueColumns?.ToList() 824var outputCols = InitializeIdColumns(idColumnList, totalOutputRows); 836private long CalculateTotalOutputRows(List<string> valueColumnList, bool dropNulls) 861private List<DataFrameColumn> InitializeIdColumns(List<string> idColumnList, long size) 864var outputCols = new List<DataFrameColumn>(idColumnList.Count); 877private DataFrameColumn CreateValueColumn(List<string> valueColumnList, string valueName, long size) 901private void FillMeltedData(List<string> idColumnList, List<string> valueColumnList, List<DataFrameColumn> outputIdCols, StringDataFrameColumn variableColumn, DataFrameColumn valueColumn, bool dropNulls) 952List<DataFrameColumn> newColumns = new List<DataFrameColumn>(Columns.Count);
DataFrame.IO.cs (4)
61private static Type GuessKind(int col, List<(long LineNumber, string[] Line)> read, Func<IEnumerable<string>, Type> guessTypeFunction) 124var columns = new List<DataFrameColumn>(columnsCount); 372List<DataFrameColumn> columns; 379var linesForGuessType = new List<(long LineNumber, string[] Line)>();
DataFrameColumn.cs (4)
90private readonly List<DataFrameColumnCollection> _ownerColumnCollections = new(); 469protected static void PopulateColumnSortIndicesWithHeap<T>(SortedDictionary<T, List<ValueTuple<int, int>>> heapOfValueAndListOfTupleOfSortAndBufferIndex, 485KeyValuePair<T, List<ValueTuple<int, int>>> minElement = heapOfValueAndListOfTupleOfSortAndBufferIndex.ElementAt(0); 486List<ValueTuple<int, int>> tuplesOfSortAndBufferIndex = minElement.Value;
DataFrameColumnCollection.cs (1)
33var ret = new List<string>(Count);
DataFrameColumns\ArrowStringDataFrameColumn.cs (3)
269var ret = new List<object>(); 298public new List<string> this[long startIndex, int length] 302var ret = new List<string>();
DataFrameColumns\StringDataFrameColumn.cs (16)
23private readonly List<List<string>> _stringBuffers = new List<List<string>>(); // To store more than intMax number of strings 31List<string> buffer = new List<string>((int)Math.Min(MaxCapacity, bufferLen)); 70List<string> lastBuffer = _stringBuffers[_stringBuffers.Count - 1]; 120var ret = new List<object>(); 163public new List<string> this[long startIndex, int length] 167var ret = new List<string>(); 185foreach (List<string> buffer in _stringBuffers) 209List<int[]> bufferSortIndices = new List<int[]>(_stringBuffers.Count); 212foreach (List<string> buffer in _stringBuffers) 240SortedDictionary<string, List<ValueTuple<int, int>>> heapOfValueAndListOfTupleOfSortAndBufferIndex = new SortedDictionary<string, List<ValueTuple<int, int>>>(comparer); 241List<List<string>> buffers = _stringBuffers; 244List<string> buffer = buffers[i];
DataFrameColumns\VBufferDataFrameColumn.cs (7)
22private readonly List<List<VBuffer<T>>> _vBuffers = new List<List<VBuffer<T>>>(); // To store more than intMax number of vbuffers 35List<VBuffer<T>> buffer = new List<VBuffer<T>>(bufferLen); 72List<VBuffer<T>> lastBuffer = _vBuffers[_vBuffers.Count - 1]; 105var ret = new List<object>(); 153foreach (List<VBuffer<T>> buffer in _vBuffers)
IDataView.Extension.cs (2)
48List<DataFrameColumn> dataFrameColumns = new List<DataFrameColumn>(schema.Count); 57List<DataViewSchema.Column> activeDataViewColumns = new List<DataViewSchema.Column>();
PrimitiveColumnContainer.cs (3)
372var ret = new List<T?>(length); 449private List<ReadOnlyDataFrameBuffer<byte>> CloneNullBitMapBuffers() 451List<ReadOnlyDataFrameBuffer<byte>> ret = new List<ReadOnlyDataFrameBuffer<byte>>();
PrimitiveDataFrameColumn.cs (1)
214var ret = new List<object>(length);
PrimitiveDataFrameColumn.Sort.cs (6)
25List<List<int>> bufferSortIndices = new List<List<int>>(_columnContainer.Buffers.Count); 40List<int> nonNullSortIndices = new List<int>(); 81SortedDictionary<T, List<ValueTuple<int, int>>> heapOfValueAndListOfTupleOfSortAndBufferIndex = new SortedDictionary<T, List<ValueTuple<int, int>>>(comparer);
TextFieldParser.cs (1)
780List<string> Fields = new List<string>();
Microsoft.Data.Analysis.Interactive (8)
DataFrameKernelExtension.cs (8)
44var header = new List<IHtmlContent> 57var rows = new List<List<IHtmlContent>>(); 60var cells = new List<IHtmlContent> 72var footer = new List<IHtmlContent>(); 110var rows = new List<List<IHtmlContent>>(); 113var cells = new List<IHtmlContent>
Microsoft.Data.Analysis.Interactive.Tests (1)
DataFrameInteractiveTests.cs (1)
76var data = new List<IDictionary<string, object>>();
Microsoft.Data.Analysis.Tests (10)
ArrowStringColumnTests.cs (1)
53List<string> ret = stringColumn[0, 4];
DataFrame.IOTests.cs (2)
1643List<Type> types = [ 1666List<Type> typesToRemove = new List<Type>(possibleTypes.Count);
DataFrameGroupByTests.cs (1)
81var rows = groupings[i];
DataFrameTests.cs (3)
327List<int> verify = new List<int>() { 0, 3, 1, 4, 2, 5 }; 349List<int> originalColumnVerify = new List<int>() { 6, 8, 7, 9 }; 350List<int> tailColumnVerity = new List<int>() { 1, 2, 4, 5 };
DataFrameTests.Filter.cs (1)
33List<int> verify = new List<int> { 0, 2, 4, 6, 8 };
DataFrameTests.Utils.cs (1)
175var columnsList = new List<DataFrameColumn>
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
780List<string> Fields = new List<string>();
Microsoft.Deployment.DotNet.Releases (8)
AspNetCoreReleaseComponent.cs (1)
45List<Version> ancmVersions = new();
Product.cs (1)
240var releases = new List<ProductRelease>();
ProductCollection.cs (1)
117var products = new List<Product>();
ProductRelease.cs (4)
145var cves = new List<Cve>(); 159var runtimes = new List<ReleaseComponent>(); 181var sdks = new List<SdkReleaseComponent>(); 199var components = new List<ReleaseComponent>();
ReleaseComponent.cs (1)
66List<ReleaseFile> files = new List<ReleaseFile>();
Microsoft.Diagnostics.DataContractReader (2)
ContractDescriptorTarget.cs (2)
43private readonly List<Descriptor> _descriptors = []; 52private readonly List<(string Name, TargetPointer Slot)> _pendingSubDescriptors = [];
Microsoft.Diagnostics.DataContractReader.Abstractions (3)
Contracts\IComWrappers.cs (1)
17List<TargetPointer> GetMOWs(TargetPointer obj, out bool hasMOWTable) => throw new NotImplementedException();
Contracts\IExecutionManager.cs (1)
115List<ExceptionClauseInfo> GetExceptionClauses(CodeBlockHandle codeInfoHandle) => throw new NotImplementedException();
Contracts\IGC.cs (1)
159List<HandleData> GetHandles(HandleType[] types) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (78)
_generated\0\LayoutSet.g.cs (1)
69List<LazyLayout> layouts = new(2);
Contracts\CallingConvention\CallingConvention_1.cs (2)
192List<ArgumentLocation> arguments = new(); 725private List<byte> _bytes;
Contracts\ComWrappers_1.cs (2)
110public List<TargetPointer> GetMOWs(TargetPointer obj, out bool hasMOWTable) 116List<TargetPointer> mows = new List<TargetPointer>();
Contracts\EcmaMetadata_1.cs (1)
489List<(TargetPointer Data, uint Size)> segments = [];
Contracts\ExecutionManager\ExecutionManager_1.cs (1)
34public List<ExceptionClauseInfo> GetExceptionClauses(CodeBlockHandle codeInfoHandle) => _executionManagerCore.GetExceptionClauses(codeInfoHandle);
Contracts\ExecutionManager\ExecutionManagerCore.cs (3)
352List<ExceptionClauseInfo> clauses = eman.GetExceptionClauses(codeInfoHandle); 582List<ExceptionClauseInfo> IExecutionManager.GetExceptionClauses(CodeBlockHandle codeInfoHandle) 603List<ExceptionClauseInfo> exceptionClauses = new List<ExceptionClauseInfo>();
Contracts\ExecutionManager\ExecutionManagerCore.EEJitManager.cs (2)
163public List<TargetPointer> EnumerateFunctionTableEntries(Data.CodeHeapListNode heapListNode) 170List<TargetPointer> entries = [];
Contracts\GC\GC_1.cs (22)
50private List<AllocContext>? _allocContexts; 221private List<GCGenerationData> GetGenerationData(TargetPointer generationTableArrayStart) 225List<Data.Generation> generationTable = []; 231List<GCGenerationData> generationDataList = generationTable.Select(gen => 242private List<TargetPointer> GetFillPointers(Data.CFinalize cFinalize) 246List<TargetPointer> fillPointers = []; 252private List<TargetNUInt> ReadGCHeapDataArray(TargetPointer arrayStart, uint length) 254List<TargetNUInt> arr = []; 330List<HandleData> IGC.GetHandles(HandleType[] types) 332List<HandleType> typesList = types.ToList(); 334List<HandleData> handles = new(); 476private List<AllocContext> GetAllocContexts() 481List<AllocContext> contexts = new(); 543List<HandleType> supportedTypes = 566List<HandleType> handleTypes = new(); 609private void GetHandlesForSegment(Data.TableSegment tableSegment, HandleType type, List<HandleData> handles) 625private void GetHandlesForBlock(Data.TableSegment tableSegment, byte uBlock, HandleType type, List<HandleData> handles) 683List<GCMemoryRegionData> regions = new(); 738List<GCMemoryRegionData> regions = new(); 793List<GCMemoryRegionData> regions = new(); 907private void AddFreeList(TargetPointer freeListAddr, FreeRegionKind kind, List<GCMemoryRegionData> regions, int heap = 0) 914private void AddSegmentList(TargetPointer start, FreeRegionKind kind, List<GCMemoryRegionData> regions, int heap = 0)
Contracts\GCInfo\GCInfoDecoder.cs (11)
110private List<DecodePoints> _completedDecodePoints = []; 131private List<InterruptibleRange> _interruptibleRanges = []; 132private List<uint> _safePoints = []; 138private List<GcSlotDesc> _slots = []; 638List<GCSlotLifetime> lifetimes = []; 796List<uint> couldBeLiveSlots = ReadCouldBeLiveSlots(ref bitOffset, numTracked); 809List<uint> transitions = []; 858private List<uint> ReadCouldBeLiveSlots(ref int bitOffset, uint numTracked) 860List<uint> slots = []; 912private void EmitSlotLifetime(uint slotIndex, uint beginOffset, uint endOffset, List<GCSlotLifetime> lifetimes) 925List<LiveSlot> result = [];
Contracts\GCInfo\X86\GCArgTable.cs (2)
16public Dictionary<int, List<BaseGcTransition>> Transitions { get; private set; } = []; 40if (!Transitions.TryGetValue(transition.CodeOffset, out List<BaseGcTransition>? value))
Contracts\GCInfo\X86\GCInfo.cs (9)
65public ImmutableDictionary<int, List<BaseGcTransition>> Transitions => _transitions.Value; 66private readonly Lazy<ImmutableDictionary<int, List<BaseGcTransition>>> _transitions = new(); 214private ImmutableDictionary<int, List<BaseGcTransition>> DecodeTransitions() 622List<InterruptibleRange> ranges = []; 641List<InterruptibleRange> callRanges = []; 706List<LiveSlot> result = []; 773List<LiveSlot> result, 1035List<uint> safePoints = []; 1054List<GCSlotLifetime> lifetimes = [];
Contracts\GCInfo\X86\GCTransition.cs (2)
212public List<CallRegister> CallRegisters { get; set; } 213public List<PtrArg> PtrArgs { get; set; }
Contracts\SHash_1.cs (2)
23public List<TEntry>? Entries { get; set; } 32List<TEntry> entries = [];
Contracts\StackWalk\GC\GcScanContext.cs (1)
23public List<StackRefData> StackRefs { get; } = [];
Contracts\StressLog.cs (1)
245List<TargetPointer> chunks = [];
Data\ArrayListBase.cs (3)
24List<ArrayListBlock> blocks = []; 38List<TargetPointer> elements = []; 71List<TargetPointer> elements = new((int)Size);
Data\ComWrappersVtablePtrs.cs (1)
16List<TargetCodePointer> pointers = new(count);
Data\DacEnumerableHash.cs (4)
37List<TargetPointer> entries = []; 43List<TargetPointer> elements = ReadChain(chainElement); 83private List<TargetPointer> ReadChain(TargetPointer chainElement) 85List<TargetPointer> elements = [];
Data\EETypeHashTable.cs (1)
23List<Entry> entries = [];
Data\HandleTableMap.cs (1)
20List<TargetPointer> buckets = new((int)arrayLength);
Data\InstMethodHashTable.cs (1)
23List<Entry> entries = [];
Data\RCW.cs (1)
33List<Data.InterfaceEntry> entries = new((int)cacheSize);
Data\ReadyToRunCoreHeader.cs (1)
18List<ReadyToRunSection> sections = new((int)NumberOfSections);
EcmaMetadataUtils.cs (3)
136if (!TryGetTypeRefScopeAndName(loader, ecmaMetadata, referencingModule, typeRefToken, out Contracts.ModuleHandle foundModule, out List<(string Namespace, string Name)> nameChain)) 150out List<(string Namespace, string Name)> nameChain) 200List<(string Namespace, string Name)> nameChain,
Microsoft.Diagnostics.DataContractReader.DataGenerator (8)
Emitter.cs (5)
251List<string> read = new(); 292private static void EmitLayoutRead(List<string> lines, MemberModel member, string valueField, string assignExpr, string optionalElse) 314private static void EmitLazyProperty(StringBuilder sb, MemberModel member, List<string> readBody, bool emitSetter) 447var parts = new List<string>(); 458var parts = new List<string>();
Parser.cs (3)
53List<MemberModel> members = new(); 116var result = new List<string>(); 157var result = new List<string>();
Microsoft.Diagnostics.DataContractReader.Legacy (87)
ClrDataMethodInstance.cs (3)
284List<OffsetMapping> map = [.. mapEnumerable]; 384List<OffsetMapping> map = [.. mapEnumerable]; 477List<OffsetMapping> map = [.. mapEnumerable];
ClrDataValue.cs (4)
737List<FieldEntry> fields = GetFields(fieldFlags, fromType); 897private List<FieldEntry> GetFields(uint flags, IXCLRDataTypeInstance? fromType) 912List<ITypeHandle> types = []; 925List<FieldEntry> fields = [];
Dbi\DacDbiImpl.cs (41)
789List<ulong>? cdacAssemblies = _legacy is not null ? new() : null; 822List<ulong> dacAssemblies = new(); 1024List<ulong>? cdacThreads = _legacy is not null ? new() : null; 1054List<ulong> dacThreads = new(); 1075((List<ulong>)handle.Target!).Add(value); 1626List<NativeVarInfo> cdacVarInfos = new(); 1627List<DbiOffsetMapping> cdacSeqPoints = new(); 2379List<Debugger_STRData>? cdacFrames = _legacy is not null ? new() : null; 2431List<Debugger_STRData> dacFrames = new(); 2463((List<Debugger_STRData>)handle.Target!).Add(*data); 3126List<FieldData>? cdacFields = null; 3180List<FieldData>? cdacFields = null; 3231List<FieldData>? cdacFields) 3265List<FieldData>? cdacFields) 3352((List<FieldData>)handle.Target!).Add(*data); 3357private static void ValidateEnumerateFieldsAgainstLegacy(string label, nuint cdacObjectSize, List<FieldData>? cdacFields, int hr, LegacyEnumerateFieldsFn legacyEnumerate) 3359List<FieldData> dacFields = new(); 3372private static void AssertFieldListsEqual(List<FieldData>? cdacFields, List<FieldData> dacFields, string label) 3734List<DebuggerIPCE_ExpandedTypeData> entries = new(); 3858List<DebuggerIPCE_ExpandedTypeData> legacyEntries = DebugExpandedTypeInfo; 4078List<DebuggerIPCE_ExpandedTypeData> entries = new(); 4113List<DebuggerIPCE_ExpandedTypeData> legacyEntries = DebugExpandedTypeInfo; 4137private static List<DebuggerIPCE_ExpandedTypeData>? _debugExpandedTypeInfo; 4139private static List<DebuggerIPCE_ExpandedTypeData> DebugExpandedTypeInfo 4239private static List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)>? _debugEnumerateStackFramesFromException; 4241private static List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)> DebugEnumerateStackFramesFromException 4256List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)> frames = new(); 4290List<(ulong VmAppDomain, ulong VmAssembly, ulong Ip, uint MethodDef, Interop.BOOL IsLastForeignExceptionFrame)> legacyFrames = DebugEnumerateStackFramesFromException; 4334private static List<ulong>? _debugEnumerateRcwCachedInterfacePointers; 4336private static List<ulong> DebugEnumerateRcwCachedInterfacePointers 4350List<ulong> itfPtrs = new(); 4386List<ulong> legacyItfPtrs = DebugEnumerateRcwCachedInterfacePointers; 5067private static List<(ulong Start, ulong End, int Generation, uint Heap)>? _debugEnumerateHeapSegments; 5069private static List<(ulong Start, ulong End, int Generation, uint Heap)> DebugEnumerateHeapSegments 5083List<(ulong Start, ulong End, int Generation, uint Heap)> segments = new(); 5143List<(ulong Start, ulong End, int Generation, uint Heap)> legacySegments = DebugEnumerateHeapSegments; 6421private static List<AsyncLocalData>? _debugEnumerateAsyncLocals; 6423private static List<AsyncLocalData> DebugEnumerateAsyncLocals 6439List<AsyncLocalData> locals = new(); 6503List<AsyncLocalData> legacyLocals = DebugEnumerateAsyncLocals;
Dbi\DacDbiImpl.NativeCodeInfo.cs (8)
127List<NativeVarInfo> cdacVarInfos, 128List<DbiOffsetMapping> cdacSeqPoints, 167private static void AssertSeqPointsEqual(List<DbiOffsetMapping> cdac, List<DbiOffsetMapping> dac) 185private static void AssertVarInfosEqual(List<NativeVarInfo> cdac, List<NativeVarInfo> dac) 257public List<NativeVarInfo> VarInfos { get; } = new(); 258public List<DbiOffsetMapping> SeqPoints { get; } = new();
Dbi\Helpers\RefWalk.cs (1)
73List<HandleType> types = new();
MetaDataImportImpl.cs (14)
63public List<uint> Tokens { get; } 66public MetadataEnum(List<uint> tokens) 72private nint AllocEnum(List<uint> tokens) 89private int FillEnum(nint* phEnum, List<uint> tokens, uint* rTokens, uint cMax, uint* pcTokens) 171List<uint>? tokens = null; 195List<uint> legacyTokens = new(); 218List<uint>? tokens = null; 244List<uint> legacyTokens = new(); 281List<uint>? tokens = null; 307List<uint> legacyTokens = new(); 330List<uint>? tokens = null; 356List<uint> legacyTokens = new(); 386List<uint>? tokens = null; 422List<uint> legacyTokens = new();
SOSDacImpl.cs (15)
414List<Contracts.ModuleHandle> modules = loader.GetModuleHandles( 884List<ICodeHeapInfo> heapInfos = em.GetCodeHeapInfos().ToList(); 1344List<TargetPointer> gcHeaps = gc.GetGCHeaps().ToList(); 1671List<HandleData> handles = gc.GetHandles(types); 2459List<TargetNUInt> reJitIds = rejitContract.GetRejitIds(_target, methodDescHandle.Address).ToList(); 4702public TraverseEhInfoExpected(List<DACEHInfo> elements, bool expectAbort, uint? abortIndex = null) 4709public List<DACEHInfo> Elements { get; } 4754List<DACEHInfo> clausesLocal = new(); 4774List<ExceptionClauseInfo> exceptionClauses = executionManager.GetExceptionClauses(codeBlockHandle); 4838private static List<(ulong VirtualAddress, nuint VirtualSize)>? _debugTraverseLoaderHeapBlocks; 4842private static List<(ulong VirtualAddress, nuint VirtualSize)> DebugTraverseLoaderHeapBlocks 4848List<(ulong VirtualAddress, nuint VirtualSize)> expected = DebugTraverseLoaderHeapBlocks; 6223List<TargetPointer> mows = comWrappersContract.GetMOWs(objPtr, out bool hasMOWTable); 6671var entries = new List<(LoaderAllocatorHeapType HeapType, nint AnsiPtr)>(); 7036private List<SOSMethodData> _methods = [];
TypeNameBuilder.cs (1)
540List<TypeDefinitionHandle> nestedTokens = [];
Microsoft.Diagnostics.NETCore.Client (8)
DiagnosticsClient\DiagnosticsClient.cs (2)
433List<int> pids = new(); 483List<int> discoveredPids = new();
DiagnosticsClient\EventPipeSessionConfiguration.cs (1)
176private readonly List<EventPipeProvider> _providers;
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (1)
1494List<Task> runningTasks = new();
DiagnosticsServerRouter\DiagnosticsServerRouterRunner.cs (2)
60List<Task> runningTasks = new(); 61List<Router> runningRouters = new();
HandleableCollection.cs (2)
26private readonly List<T> _items = new(); 27private readonly List<Tuple<TaskCompletionSource<T>, Handler>> _handlers = new();
Microsoft.DiaSymReader (2)
Utilities\ComMemoryStream.cs (1)
37private readonly List<byte[]> _chunks = new List<byte[]>();
Writer\SymUnmanagedWriterImpl.cs (1)
25private readonly List<ISymUnmanagedDocumentWriter> _documentWriters;
Microsoft.DotNet.ApiCompat.Task (6)
src\sdk\src\Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.Shared\ValidateAssemblies.cs (6)
41List<MetadataInformation> leftMetadataInformation = GetMetadataInformation(options.LeftAssemblies[i], GetAssemblyReferences(options.LeftAssembliesReferences, i), leftAssembliesStringTransformer); 42List<MetadataInformation> rightMetadataInformation = GetMetadataInformation(options.RightAssemblies[i], GetAssemblyReferences(options.RightAssembliesReferences, i), rightAssembliesStringTransformer); 52List<MetadataInformation> leftAssembliesMetadataInformation = new(options.LeftAssemblies.Length); 58List<MetadataInformation> rightAssembliesMetadataInformation = new(options.RightAssemblies.Length); 105private static List<MetadataInformation> GetMetadataInformation(string path, 109List<MetadataInformation> metadataInformation = [];
Microsoft.DotNet.ApiCompatibility (26)
ApiComparer.cs (4)
78List<ElementContainer<IAssemblySymbol>> transformedLeft = []; 84List<ElementContainer<IAssemblySymbol>> transformedRight = []; 129private static List<CompatDifference> SortCompatDifferencesByInputMetadata(ILookup<MetadataInformation, CompatDifference> compatDifferencesLookup, 133List<CompatDifference> sortedCompatDifferences = [];
Mapping\AssemblyMapper.cs (6)
49Dictionary<INamespaceSymbol, List<INamedTypeSymbol>> typeForwards = ResolveTypeForwards(assemblyContainer, side, Settings.SymbolEqualityComparer, setIndex); 56bool hasTypeForwards = typeForwards.TryGetValue(nsSymbol, out List<INamedTypeSymbol>? types); 79foreach (KeyValuePair<INamespaceSymbol, List<INamedTypeSymbol>> kvp in typeForwards) 102Dictionary<INamespaceSymbol, List<INamedTypeSymbol>> ResolveTypeForwards(ElementContainer<IAssemblySymbol> assembly, 107Dictionary<INamespaceSymbol, List<INamedTypeSymbol>> typeForwards = new(comparer); 112if (!typeForwards.TryGetValue(symbol.ContainingNamespace, out List<INamedTypeSymbol>? types))
Rules\AttributesMustMatch.cs (3)
276public readonly List<AttributeData> Attributes = []; 277public readonly List<bool> Seen = []; 297private readonly List<AttributeGroup> _set = [];
Rules\CannotChangeGenericConstraints.cs (2)
86List<string> addedConstraints = new(); 87List<string> removedConstraints = new();
Rules\RuleContext.cs (4)
13private readonly List<Action<IAssemblySymbol?, IAssemblySymbol?, MetadataInformation, MetadataInformation, bool, IList<CompatDifference>>> _onAssemblySymbolActions = []; 14private readonly List<Action<ITypeSymbol?, ITypeSymbol?, MetadataInformation, MetadataInformation, IList<CompatDifference>>> _onTypeSymbolActions = []; 15private readonly List<Action<ISymbol?, ISymbol?, MetadataInformation, MetadataInformation, IList<CompatDifference>>> _onMemberSymbolActions = []; 16private readonly List<Action<ISymbol?, ISymbol?, ITypeSymbol, ITypeSymbol, MetadataInformation, MetadataInformation, IList<CompatDifference>>> _onMemberSymbolWithContainingTypeActions = [];
Rules\RuleFactory.cs (1)
18List<IRule> rules = new()
Rules\RuleRunner.cs (1)
24List<CompatDifference> differences = [];
Runner\ApiCompatRunner.cs (5)
35List<ElementContainer<IAssemblySymbol>> leftContainerList = CreateAssemblySymbols(workItem.Left, out bool resolvedExternallyProvidedAssemblyReferences); 38List<IEnumerable<ElementContainer<IAssemblySymbol>>> rightContainersList = new(workItem.Right.Count); 41List<ElementContainer<IAssemblySymbol>> rightContainers = CreateAssemblySymbols(right.ToImmutableArray(), out resolvedExternallyProvidedAssemblyReferences); 100private List<ElementContainer<IAssemblySymbol>> CreateAssemblySymbols(IReadOnlyList<MetadataInformation> metadataInformation, 127List<ElementContainer<IAssemblySymbol>> elementContainerList = new(metadataInformation.Count);
Microsoft.DotNet.ApiSymbolExtensions (8)
AssemblySymbolLoader.cs (6)
90List<MetadataReference> assembliesToReturn = loader.LoadFromPaths(assembliesPaths, fileNames); 161List<MetadataReference> assembliesToReturn = LoadFromPaths(paths, fileNames); 281List<SyntaxTree> syntaxTrees = []; 298List<IAssemblySymbol> matchingAssemblies = []; 346private List<MetadataReference> LoadFromPaths(IEnumerable<string> paths, ImmutableHashSet<string>? referenceAssemblyNamesToIgnore = null) 348List<MetadataReference> result = [];
Filtering\CompositeSymbolFilter.cs (1)
27public List<ISymbolFilter> Filters { get; } = new(filters);
Filtering\DocIdSymbolFilter.cs (1)
26List<string> docIds = new();
Microsoft.DotNet.Arcade.Sdk (2)
src\ExtractNgenMethodList.cs (1)
54var items = new List<string>();
src\InstallDotNetCore.cs (1)
250var items = new List<KeyValuePair<string, string>>();
Microsoft.DotNet.Build.Manifest (6)
ArtifactSet.cs (3)
13public List<PackageArtifactModel> Packages { get; set; } = new List<PackageArtifactModel>(); 15public List<BlobArtifactModel> Blobs { get; set; } = new List<BlobArtifactModel>(); 17public List<PdbArtifactModel> Pdbs { get; set; } = new List<PdbArtifactModel>();
BuildModelFactory.cs (3)
33BuildModel CreateMergedModel(List<BuildModel> models, ArtifactVisibility artifactVisibilitiesToInclude); 248public BuildModel CreateMergedModel(List<BuildModel> models, ArtifactVisibility artifactVisibilitiesToInclude) 270List<string> differences = new List<string>();
Microsoft.DotNet.Build.Tasks.FileCatalog (7)
CatalogBuilder.cs (7)
34private readonly List<CatalogEntry> _entries = new(); 91List<Member> members = BuildSortedMembers(); 107private List<Member> BuildSortedMembers() 109List<Member> members = new(_entries.Count * 2); 133var deduped = new List<Member>(members.Count); 146private byte[] EncodeCertificateTrustList(List<Member> members) 239private static byte[] DeriveListIdentifier(List<Member> members)
Microsoft.DotNet.Build.Tasks.Installers (45)
src\CreateControlFile.cs (1)
52List<string> dependencyItems = [];
src\CreateWixBuildWixpack.cs (3)
304var commandLineArgs = new List<string>(); 798var blocks = new List<(string condition, string content)>(); 811var blockBoundaries = new List<(int start, int end, string condition, bool isElse)>();
src\RpmBuilder.cs (38)
20private readonly List<(string capability, string version)> _provides = []; 21private readonly List<string> _conflicts = []; 23private readonly List<(string name, string text)> _changelogLines = []; 25private readonly List<(string name, int flags, string version)> _requires = [ 41private List<RpmHeader<RpmHeaderTag>.Entry> PackageEntries { get; } = [ 155private readonly List<(CpioEntry file, string fileKind, bool isGhost)> _files = []; 173private readonly List<(string script, int senseFlags, IReadOnlyList<string> paths)> _fileTriggers = []; 174private readonly List<(string script, int senseFlags, IReadOnlyList<string> paths)> _transFileTriggers = []; 239List<RpmHeader<RpmHeaderTag>.Entry> entries, 240List<(string script, int senseFlags, IReadOnlyList<string> paths)> triggers, 249List<string> triggerScripts = []; 250List<string> triggerScriptProgs = []; 251List<int> triggerScriptFlags = []; 252List<int> triggerPriorities = []; 253List<string> triggerNames = []; 254List<string> triggerVersions = []; 255List<int> triggerFlags = []; 256List<int> triggerIndices = []; 311List<RpmHeader<RpmHeaderTag>.Entry> entries = [..PackageEntries]; 359List<string> fileDigests = []; 360List<string> baseNames = []; 361List<int> directoryNameIndices = []; 362List<string> directories = []; 363List<int> fileClassIndices = []; 364List<string> fileClassDictionary = []; 365List<int> inodes = []; 366List<int> fileSizes = []; 367List<string> fileUserAndGroupNames = []; 368List<short> fileModes = []; 369List<short> deviceFileIds = []; 370List<int> fileTimestamps = []; 371List<int> fileVerifyFlags = []; 372List<int> fileDevices = []; 373List<string> fileLangs = []; 374List<int> fileColors = []; 375List<int> fileFlags = []; 376List<string> fileLinkTos = []; 533List<RpmHeader<RpmSignatureTag>.Entry> signatureEntries = [
src\RpmHeader.cs (3)
17public sealed partial class RpmHeader<TEntryTag>(List<RpmHeader<TEntryTag>.Entry> entries) 42public List<Entry> Entries { get; } = entries; 127List<Entry> entries = [];
Microsoft.DotNet.Build.Tasks.Packaging (47)
ApplyBaseLine.cs (2)
72List<ITaskItem> baseLinedDependencies = new List<ITaskItem>(); 107List<ITaskItem> baseLinedDependencies = new List<ITaskItem>();
ApplyMetaPackages.cs (1)
56List<ITaskItem> updatedDependencies = new List<ITaskItem>();
ApplyPreReleaseSuffix.cs (1)
73List<ITaskItem> updatedPackages = new List<ITaskItem>();
CreateTrimDependencyGroups.cs (1)
125List<ITaskItem> trimmedDependencies = new List<ITaskItem>();
Extensions.cs (2)
181var list = (List<TItem>)property.GetValue(target) ?? new List<TItem>();
FrameworkUtilities.cs (2)
71List<string> nearestFrameworks = new List<string>(); 85var _frameworks = frameworks.Select(s => NuGetFramework.Parse(s)).ToList();
GenerateNuSpec.cs (5)
253private List<ManifestFile> GetManifestFiles() 271private List<FrameworkAssemblyReference> GetFrameworkAssemblies() 296private List<PackageDependencyGroup> GetDependencySets() 350private List<PackageType> GetPackageTypes() 352var listOfPackageTypes = new List<PackageType>();
GeneratePackageReport.cs (1)
285var packageItems = new Dictionary<string, List<PackageItem>>();
GenerateRuntimeDependencies.cs (3)
91List<RuntimeDescription> runtimes = new List<RuntimeDescription>(); 108List<RuntimeDependencySet> runtimeDependencySets = new List<RuntimeDependencySet>(); 114List<RuntimePackageDependency> runtimePackageDependencies = new List<RuntimePackageDependency>();
GetApplicableAssetsFromPackageReports.cs (4)
66var compileAssets = new List<ITaskItem>(); 67var runtimeAssets = new List<ITaskItem>(); 68var nativeAssets = new List<ITaskItem>(); 69var buildProjects = new List<BuildProject>();
GetApplicableAssetsFromPackages.cs (3)
18private Dictionary<string, List<PackageItem>> _packageToPackageItems; 92var buildProjects = new List<BuildProject>(); 149_packageToPackageItems = new Dictionary<string, List<PackageItem>>();
GetAssemblyReferences.cs (2)
43List<ITaskItem> references = new List<ITaskItem>(); 44List<ITaskItem> nativeLibs = new List<ITaskItem>();
GetLastStablePackage.cs (1)
132List<ITaskItem> lastStablePackages = new List<ITaskItem>();
GetLayoutFiles.cs (1)
54var layoutFiles = new List<ITaskItem>();
GetPackageDestination.cs (1)
69private List<ITaskItem> _packageDestinations = new List<ITaskItem>();
GetPackageFromModule.cs (1)
58List<ITaskItem> packagesReferenced = new List<ITaskItem>();
GetRuntimeJsonValues.cs (1)
33List<string> items = new List<string>();
GetRuntimeTargets.cs (1)
37List<string> items = new List<string>();
GetSupportedPackagesFromPackageReports.cs (1)
24var supportedPackages = new List<ITaskItem>();
HarvestPackage.cs (4)
158List<ITaskItem> supportedFrameworks = new List<ITaskItem>(); 289var harvestedFiles = new List<ITaskItem>(); 290var removeFiles = new List<ITaskItem>(); 330List<string> targetPaths = new List<string>() { harvestPackagePath };
NuGetAssetResolver.cs (1)
280var contentItemGroups = new List<ContentItemGroup>();
NuGetPack.cs (3)
371List<PackageDependencyGroup> packedPackageDependencyGroups = new List<PackageDependencyGroup>(); 374List<NuGet.Packaging.Core.PackageDependency> packages = new List<NuGet.Packaging.Core.PackageDependency>(); 386List<ManifestFile> manifestFiles = new List<ManifestFile>();
NuGetUtility.cs (1)
24List<Version> result = new List<Version>();
PackageIndex.cs (1)
513List<Version> redundantMappings = new List<Version>();
PackageMetadata.cs (1)
20return JsonConvert.DeserializeObject<List<PackageMetadata>>(packageMetadata);
PromoteDependencies.cs (1)
40List<ITaskItem> promotedDependencies = new List<ITaskItem>();
SplitDependenciesBySupport.cs (1)
32List<ITaskItem> splitDependencies = new List<ITaskItem>(dependencies.Where(d => d.TargetFramework != null && d.TargetFramework.Framework != FrameworkConstants.FrameworkIdentifiers.NetStandard).Select(d => d.OriginalItem));
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
ChooseBestP2PTargetFrameworkTask.cs (1)
63List<ITaskItem> assignedProjects = new(AnnotatedProjectReferences.Length);
ChooseBestTargetFrameworksTask.cs (1)
31List<ITaskItem> bestTargetFrameworkList = new(BuildTargetFrameworks!.Length);
Microsoft.DotNet.Build.Tasks.Workloads (4)
Wix\WixToolsetConfiguration.cs (1)
13private List<string> _extensions = new();
Wix\WixToolTask.cs (2)
18private List<string> _sourceFiles = new(); 19private List<string> _preprocessorDefinitions = new();
WorkloadTemplateBase.cs (1)
17private List<string> _files = new();
Microsoft.DotNet.Cli.Definitions (11)
Commands\New\CommandDefinitionExtensions.cs (2)
64List<string> wrongTokens = new(); 97List<string> wrongTokens = new();
Commands\New\SharedOptionsFactory.cs (1)
152List<string> values = new();
Commands\Restore\RestoreCommandDefinition.cs (1)
100List<string> convertedRids = [];
Commands\Tool\ToolLocationOptions.cs (1)
31List<string> options = [];
Common\CommonOptions.cs (2)
97var argsToReturn = new List<string>(targets is null ? 0 : 1 + (additionalProperties?.Length ?? 0)); 314List<Token>? invalid = null;
Help\HelpBuilder.cs (2)
337var end = default(List<char>);
Help\HelpBuilder.Default.cs (2)
58static string? GetUsageLabel(string? helpName, Type valueType, List<Func<CompletionContext, IEnumerable<CompletionItem>>> completionSources, Symbol symbol, ArgumentArity arity) 161List<TwoColumnHelpRow> optionRows = new();
Microsoft.DotNet.Cli.Telemetry (31)
_generated\1\TelemetryJsonContext.ExceptionData.g.cs (3)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionData).GetProperty("Exceptions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>>(options, info1);
_generated\14\TelemetryJsonContext.TrackResponse.g.cs (3)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>> 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponse).GetProperty("Errors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>>(options, info2);
_generated\17\TelemetryJsonContext.ListExceptionDetails.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>>? _ListExceptionDetails; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>> ListExceptionDetails 22get => _ListExceptionDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>> Create_ListExceptionDetails(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>, global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>(options, info); 47private void ListExceptionDetailsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>? value)
_generated\18\TelemetryJsonContext.ListTrackResponseError.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>>? _ListTrackResponseError; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>> ListTrackResponseError 22get => _ListTrackResponseError ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>> Create_ListTrackResponseError(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>, global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>(options, info); 47private void ListTrackResponseErrorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>? value)
_generated\22\TelemetryJsonContext.GetJsonTypeInfo.g.cs (2)
90if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionDetails>)) 94if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.Telemetry.Implementation.TrackResponseError>))
Implementation\BreezeEnvelope.cs (2)
137public List<ExceptionDetails> Exceptions { get; set; } = []; 186public List<TrackResponseError>? Errors { get; set; }
Implementation\PersistentStorageTelemetryUploader.cs (1)
53List<byte[]>? retriableRemainders = null;
Microsoft.DotNet.Cli.Utils (10)
ArgumentEscaper.cs (2)
57var escapedArgs = new List<string>(); 79var escapedArgs = new List<string>();
EnvironmentProvider.cs (1)
42var searchPaths = new List<string> { AppContext.BaseDirectory };
ForwardingAppImplementation.cs (1)
41List<string> allArgs = ["exec"];
FrameworkDependencyFile.cs (1)
84List<string?> runtimeFallbacksIncludesRuntime = [runtimeFallbacks.Runtime];
MSBuildArgs.cs (1)
88public List<string> OtherMSBuildArgs { get; }
MSBuildForwardingAppWithoutLogging.cs (1)
82private readonly List<string> _msbuildRequiredParameters = ["-maxcpucount", $"--verbosity:{DefaultVerbosity}"];
PathUtility.cs (1)
344var notExisting = new List<string>();
TypoCorrection.cs (2)
29var matchByStartsWith = possibleSuggestions 42var matchByContains = new List<Suggestion>();
Microsoft.DotNet.CMake.Sdk (6)
src\CMakeFileApiModels.cs (5)
46public List<CMakeConfiguration> Configurations { get; set; } 58public List<CMakeDirectory> Directories { get; set; } 59public List<CMakeTarget> Targets { get; set; } 66public List<int> TargetIndexes { get; set; } 77public List<CMakeArtifact> Artifacts { get; set; }
src\GetCMakeArtifactsFromFileApi.cs (1)
148var artifacts = new List<ITaskItem>();
Microsoft.DotNet.GenFacades (2)
SourceGenerator.cs (1)
47List<string> externAliases = new List<string>();
TypeParser.cs (1)
136List<SyntaxTree> result = new List<SyntaxTree>();
Microsoft.DotNet.HotReload.Utils.Generator (5)
Config.cs (2)
19public List<KeyValuePair<string,string>> Properties {get; set;} = new List<KeyValuePair<string,string>> (); 29public List<string> EditAndContinueCapabilities {get; set; } = new List<string>();
EditAndContinueCapabilitiesParser.cs (2)
36List<string> unknowns = new(); 37List<EnC.EditAndContinueCapabilities> capabilities = new();
Runners\ScriptRunner.cs (1)
31private readonly List<OutputSummary.Delta> deltas;
Microsoft.DotNet.HotReload.Watch (38)
Aspire\AspireServiceFactory.cs (1)
254var arguments = new List<string>
Build\BuildReporter.cs (1)
86private readonly List<OutputLine> _messages = [];
Build\EvaluationResult.cs (1)
251var targets = new List<string>
Build\FileItem.cs (1)
14public required List<string> ContainingProjectPaths { get; init; }
Build\ProjectBuildManager.cs (1)
60var buildTasks = new List<Task<BuildResult?>>(buildRequests.Length);
FileWatcher\FileWatcher.cs (1)
129var watchersToRemove = watchers
HotReload\HotReloadDotNetWatcher.cs (8)
353var changedFiles = NormalizePathChanges(changedPaths) 439var newChangedFiles = new List<ChangedFile>(); 563List<ChangedFile> changedFiles, 666var buildRequests = new List<BuildRequest<string>>(); 707var copyTasks = new List<Task>(); 1226var devices = new List<DeviceInfo>(targetResult.Items.Length); 1254var arguments = new List<string> 1288List<OutputLine>? capturedOutput = _context.EnvironmentOptions.TestFlags != TestFlags.None ? [] : null;
HotReload\ProjectUpdatesBuilder.cs (9)
25private readonly List<ProjectId> _previousProjectUpdatesToDiscard = []; 26private readonly List<HotReloadService.Update> _managedCodeUpdates = []; 27private readonly Dictionary<RunningProject, List<StaticWebAsset>> _staticAssetUpdates = []; 28private readonly List<string> _projectsToRebuild = []; 29private readonly List<string> _projectsToRedeploy = []; 30private readonly List<RunningProject> _projectsToRestart = []; 34public IReadOnlyDictionary<RunningProject, List<StaticWebAsset>> StaticAssetUpdates => _staticAssetUpdates; 69var errorsToDisplayInApp = new List<string>(); 257var projectsToPromptForRestart =
HotReload\ProjectUpdatesBuilder.StaticWebAssets.cs (1)
99if (!_staticAssetUpdates.TryGetValue(runningProject, out var updatesPerRunningProject))
HotReload\RunningProjectsManager.cs (3)
244var applyTasks = new List<Task>(); 317var staticAssetApplyTaskProducers = new List<Task<Task>>(); 449var relaunchOperations = new List<RestartOperation>();
Process\ProjectLauncher.cs (1)
102var arguments = new List<string>()
src\sdk\src\Dotnet.Watch\AspireService\AspireServerService.cs (1)
131public List<KeyValuePair<string, string>> GetServerConnectionEnvironment()
src\sdk\src\Dotnet.Watch\AspireService\Helpers\SocketUtilities.cs (1)
57var sockets = new List<Socket>();
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClient.cs (1)
114var applicableUpdates = new List<HotReloadManagedCodeUpdate>();
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClients.cs (1)
186var updates = new List<HotReloadStaticAssetUpdate>();
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\AbstractBrowserRefreshServer.cs (2)
35private readonly List<BrowserConnection> _activeConnections = []; 211List<BrowserConnection>? lazyConnectionsToDispose = null;
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (2)
26public required List<string> ContentRoots { get; init; } 34public List<PatternJson>? Patterns { get; init; }
Utilities\Disposables.cs (2)
6internal readonly record struct Disposables(List<object> disposables) : IAsyncDisposable 8public List<object> Items => disposables;
Microsoft.DotNet.HotReload.WebAssembly.Browser (13)
src\sdk\src\Dotnet.Watch\HotReloadAgent\AgentReporter.cs (1)
13private readonly List<(string message, AgentMessageSeverity severity)> _log = [];
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (4)
31private readonly ConcurrentDictionary<Guid, List<RuntimeManagedCodeUpdate>> _moduleUpdates = new(); 113if (_moduleUpdates.TryGetValue(moduleId.Value, out var moduleUpdate) && _appliedAssemblies.TryAdd(loadedAssembly, loadedAssembly)) 152var cachedModuleUpdates = _moduleUpdates.GetOrAdd(update.ModuleId, static _ => []); 221List<Type>? types = null;
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (8)
39List<UpdateHandler<ContentUpdateAction>> updateContentHandlers) 152var sortedAssemblies = TopologicalSort(AppDomain.CurrentDomain.GetAssemblies()); 186var clearCacheHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 187var applicationUpdateHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 188var contentUpdateHandlers = new List<UpdateHandler<ContentUpdateAction>>(); 318internal static List<Assembly> TopologicalSort(Assembly[] assemblies) 320var sortedAssemblies = new List<Assembly>(assemblies.Length); 329static void Visit(Assembly[] assemblies, Assembly assembly, List<Assembly> sortedAssemblies, HashSet<string> visited)
Microsoft.DotNet.MacOsPkg.Core (1)
Package.cs (1)
57List<XElement> componentPackages = xml.Elements("pkg-ref").Where(e => e.Value.Trim() != "").ToList();
Microsoft.DotNet.NativeWrapper (2)
NETEnvironmentInfo.cs (2)
68List<NetRuntimeInfo> runtimeInfo = new(capacity: count); 80List<NetSdkInfo> sdkInfo = new(count);
Microsoft.DotNet.NuGetRepack.Tasks (3)
src\NuGetVersionUpdater.cs (2)
285var errors = new List<Exception>(); 362var errors = new List<Exception>();
src\UpdatePackageVersionTask.cs (1)
60var preReleaseDependencies = new List<string>();
Microsoft.DotNet.PackageTesting (7)
GetCompatiblePackageTargetFrameworks.cs (5)
16private static List<NuGetFramework> allTargetFrameworks = new(); 30List<ITaskItem> testProjects = new(); 61List<NuGetFramework> frameworksToTest= new(); 108private static List<ITaskItem> CreateItemFromTestFramework(string packageId, string version, IEnumerable<NuGetFramework> testFrameworks) 110List<ITaskItem> testprojects = new();
Package.cs (1)
30List<NuGetFramework> FrameworksInPackageList = CompileAssets.Select(t => (NuGetFramework)t.Properties["tfm"]).ToList();
VerifyTypes.cs (1)
176var types = new List<string>();
Microsoft.DotNet.SharedFramework.Sdk (6)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
176var types = new List<string>();
src\GeneratePlatformManifestEntriesFromFileList.cs (1)
25var entries = new List<PlatformManifestEntry>();
src\GeneratePlatformManifestEntriesFromTemplate.cs (1)
31List<PlatformManifestEntry> entries = new List<PlatformManifestEntry>();
src\GenerateSharedFrameworkDepsFile.cs (3)
51var runtimeFiles = new List<RuntimeFile>(); 52var nativeFiles = new List<RuntimeFile>(); 53var resourceAssemblies = new List<ResourceAssembly>();
Microsoft.DotNet.StrongName (1)
Utils.cs (1)
285var segment = blob.GetBytes().ToList();
Microsoft.DotNet.TemplateLocator (19)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (1)
530var matchingManifestFeatureBandsAndResolvedManifestDirectories = candidateFeatureBands
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadDefinition.cs (6)
19WorkloadId id, bool isAbstract, string? description, WorkloadDefinitionKind kind, List<WorkloadId>? extends, 20List<WorkloadPackId>? packs, List<string>? platforms 34public List<WorkloadId>? Extends { get; } 35public List<WorkloadPackId>? Packs { get; } 36public List<string>? Platforms { get; }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (7)
300private static List<string> ReadStringArray(ref Utf8JsonStreamReader reader) 304var list = new List<string>(); 323private static List<T> ReadStringArray<T>(ref Utf8JsonStreamReader reader, Func<string, T> map) 327var list = new List<T>(); 405List<WorkloadPackId>? packs = null; 406List<WorkloadId>? extends = null; 407List<string>? platforms = null;
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (1)
519List<(WorkloadId Id, HashSet<WorkloadPackId> Packs)>? expandedWorkloads = availableWorkloads
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSuggestionFinder.cs (4)
12out List<WorkloadSuggestionCandidate> partialSuggestions, 45out List<WorkloadSuggestionCandidate> partialSuggestions, 72internal static HashSet<WorkloadSuggestionCandidate> GatherUniqueCompletePermutedSuggestions(List<WorkloadSuggestionCandidate> partialSuggestions) 95static void GatherCompletePermutedSuggestions(WorkloadSuggestionCandidate root, List<WorkloadSuggestionCandidate> branches, HashSet<WorkloadSuggestionCandidate> completeSuggestions)
Microsoft.DotNet.XliffTasks (4)
Model\UnstructuredDocument.cs (2)
15private List<string> _fragments = new(); 16private List<UnstructuredTranslatableNode> _nodes = new();
Tasks\GatherXlf.cs (1)
28List<ITaskItem> outputs = new();
Tasks\TransformTemplates.cs (1)
34List<ITaskItem> transformedTemplates = new();
Microsoft.Extensions.AI (112)
ChatCompletion\CachingChatClient.cs (2)
105List<ChatResponseUpdate> capturedItems = []; 132List<ChatResponseUpdate> capturedItems = [];
ChatCompletion\ChatClientBuilder.cs (1)
18private List<Func<IChatClient, IServiceProvider, IChatClient>>? _clientFactories;
ChatCompletion\FunctionInvokingChatClient.cs (44)
289List<ChatMessage> originalMessages = [.. messages]; 292List<ChatMessage>? augmentedHistory = null; // the actual history of messages sent on turns other than the first 294List<ChatMessage>? responseMessages = null; // tracked list of messages, across multiple turns, to be used for the final response 296List<FunctionCallContent>? functionCallContents = null; // function call contents that need responding to in the current turn 309(responseMessages, var notInvokedApprovals, int approvedResultInsertIndex) = ProcessFunctionApprovalResponses( 450List<ChatMessage> originalMessages = [.. messages]; 453List<ChatMessage>? augmentedHistory = null; // the actual history of messages sent on turns other than the first 454List<FunctionCallContent>? functionCallContents = null; // function call contents that need responding to in the current turn 455List<ChatMessage>? responseMessages = null; // tracked list of messages, across multiple turns, to be used in fallback cases to reconstitute history 457List<ChatResponseUpdate> updates = []; // updates from the current response 624if (TryReplaceFunctionCallsWithApprovalRequests(updateToYield.Contents, approvalRequiredFunctions, out var updatedContents)) 748[NotNull] ref List<ChatMessage>? augmentedHistory, 750List<ChatMessage> allTurnsResponseMessages, 865private static bool HasAnyFunctionApproval(List<ChatMessage> messages) => 889IList<ChatMessage> messages, [NotNullWhen(true)] ref List<FunctionCallContent>? functionCalls) 903IList<AIContent> content, [NotNullWhen(true)] ref List<FunctionCallContent>? functionCalls) 968private static void MarkServerHandledFunctionCalls(List<ChatResponseUpdate> updates, List<FunctionCallContent>? functionCallContents) 1063List<AITool>? remainingTools = null; 1091private bool ShouldTerminateLoopBasedOnHandleableFunctions(List<FunctionCallContent>? functionCalls, ChatOptions? options) 1163List<ChatMessage> messages, ChatOptions? options, 1164List<FunctionCallContent> functionCallContents, int iteration, int consecutiveErrorCount, 1174var results = await Processor.ProcessFunctionCallsAsync( 1270var contents = new List<AIContent>(results.Length); 1334private (List<ChatMessage>? preDownstreamCallHistory, List<ApprovalResultWithRequestMessage>? approvals, int approvedResultInsertIndex) ProcessFunctionApprovalResponses( 1335List<ChatMessage> originalMessages, bool hasConversationId, string? toolMessageId, string? functionCallContentFallbackMessageId) 1383List<AIContent>? rejectedFunctionCallResults = GenerateRejectedFunctionResults(notInvokedResponses.rejections); 1391List<ChatMessage>? preDownstreamCallHistory = null; 1425private (List<ApprovalResultWithRequestMessage>? approvals, List<ApprovalResultWithRequestMessage>? rejections) ExtractAndRemoveApprovalRequestsAndResponses( 1426List<ChatMessage> messages) 1429List<ToolApprovalResponseContent>? allApprovalResponses = null; 1444List<AIContent>? keptContents = null; 1513List<ApprovalResultWithRequestMessage>? approvedFunctionCalls = null, rejectedFunctionCalls = null; 1527ref List<ApprovalResultWithRequestMessage>? targetList = ref approvalResponse.Approved ? ref approvedFunctionCalls : ref rejectedFunctionCalls; 1549private List<AIContent>? GenerateRejectedFunctionResults(List<ApprovalResultWithRequestMessage>? rejections) => 1577List<ApprovalResultWithRequestMessage>? resultWithRequestMessages, string? fallbackMessageId) 1662List<FunctionCallContent>? functionCallContents, 1700out List<AIContent>? updatedContent) 1744List<(int MessageIndex, int ContentIndex, bool RequiresConfirmation)>? allFunctionCallContentIndices = null; 1811List<ApprovalResultWithRequestMessage>? notInvokedApprovals, 1812List<ChatMessage> originalMessages,
ChatCompletion\ImageGeneratingChatClient.cs (14)
147private readonly Dictionary<string, List<AIContent>> _imageContentByCallId = []; 166List<ChatMessage>? newMessages = null; 170List<AIContent>? newContents = null; 252List<AITool>? newTools = null; 282List<AITool> InitializeTools(IList<AITool> existingTools, int toOffsetExclusive) 300var result = CopyList(existingTools, toOffsetExclusive, tools.Length); 320List<AIContent>? newContents = null; 340_imageContentByCallId.TryGetValue(functionResult.CallId, out var imageContents)) 390List<string> imageIds = []; 391List<AIContent> imageContents = _imageContentByCallId[callId] = []; 453List<string> imageIds = []; 454List<AIContent> imageContents = _imageContentByCallId[callId] = []; 472private static List<T> CopyList<T>(IList<T> original, int toOffsetExclusive, int additionalCapacity = 0) 474var newList = new List<T>(original.Count + additionalCapacity);
ChatCompletion\OpenTelemetryChatClient.cs (2)
191List<ChatResponseUpdate> trackedUpdates = []; 563public List<object> Parts { get; set; } = [];
ChatCompletion\OpenTelemetryImageGenerator.cs (1)
176List<AIContent> content = [];
ChatReduction\SummarizingChatReducer.cs (2)
100var unsummarizedMessages = new List<ChatMessage>(); 140var newUnsummarizedMessages = unsummarizedMessages.Skip(indexOfFirstMessageToKeep).ToList();
ChatRouting\SemanticRoutingChatClient.cs (2)
130var profiles = new List<(int ClientIndex, string Text)>(); 131var clients = new List<IChatClient> { defaultClient };
Common\FunctionInvocationProcessor.cs (3)
62public async Task<List<FunctionInvocationResult>> ProcessFunctionCallsAsync( 63List<FunctionCallContent> functionCallContents, 71var results = new List<FunctionInvocationResult>();
Common\OtelMessageSerializer.cs (1)
41List<object> output = [];
Embeddings\CachingEmbeddingGenerator.cs (1)
72List<(int Index, string CacheKey, TInput Input)>? uncached = null;
Embeddings\EmbeddingGeneratorBuilder.cs (1)
21private List<Func<IEmbeddingGenerator<TInput, TEmbedding>, IServiceProvider, IEmbeddingGenerator<TInput, TEmbedding>>>? _generatorFactories;
Files\HostedFileClientBuilder.cs (1)
19private List<Func<IHostedFileClient, IServiceProvider, IHostedFileClient>>? _clientFactories;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.GetJsonTypeInfo.g.cs (1)
150if (type == typeof(global::System.Collections.Generic.List<object>))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.ListObject.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<object>>? _ListObject; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<object>> ListObject 22get => _ListObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<object>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<object>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<object>> Create_ListObject(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<object>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<object>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<object>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<object>, object>(options, info);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.OtelMessage.g.cs (4)
91var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<object>> 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.OtelMessage).GetProperty("Parts", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<object>), global::System.Array.Empty<global::System.Type>(), null), 109properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<object>>(options, info2); 158global::System.Collections.Generic.List<object> __value_Parts = ((global::Microsoft.Extensions.AI.OtelMessage)value).Parts;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.RealtimeOtelMessage.g.cs (4)
71var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<object>> 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.RealtimeOtelMessage).GetProperty("Parts", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<object>), global::System.Array.Empty<global::System.Type>(), null), 89properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<object>>(options, info1); 113global::System.Collections.Generic.List<object> __value_Parts = ((global::Microsoft.Extensions.AI.RealtimeOtelMessage)value).Parts;
Image\ImageGeneratorBuilder.cs (1)
19private List<Func<IImageGenerator, IServiceProvider, IImageGenerator>>? _generatorFactories;
Realtime\FunctionInvokingRealtimeClientSession.cs (10)
155List<FunctionCallContent>? functionCallContents = null; 211private static bool ExtractFunctionCalls(ResponseOutputItemRealtimeServerMessage message, List<FunctionCallContent> functionCallContents) 276private bool ShouldTerminateBasedOnFunctionCalls(List<FunctionCallContent> functionCallContents) 319private async Task<(bool shouldTerminate, int newConsecutiveErrorCount, List<RealtimeClientMessage> functionResults)> InvokeFunctionsAsync( 320List<FunctionCallContent> functionCallContents, 327var results = await Processor.ProcessFunctionCallsAsync( 358var functionResults = CreateFunctionResultMessages(results); 364private List<RealtimeClientMessage> CreateFunctionResultMessages(List<FunctionInvocationResult> results) 366var messages = new List<RealtimeClientMessage>(results.Count);
Realtime\OpenTelemetryRealtimeClientSession.cs (3)
227List<RealtimeOtelMessage>? outputMessages = captureMessages ? [] : null; 314private static void AddOutputMessagesTag(Activity? activity, List<RealtimeOtelMessage>? outputMessages) 929public List<object> Parts { get; set; } = [];
Realtime\RealtimeClientBuilder.cs (1)
19private List<Func<IRealtimeClient, IServiceProvider, IRealtimeClient>>? _clientFactories;
SpeechToText\OpenTelemetrySpeechToTextClient.cs (1)
154List<SpeechToTextResponseUpdate> trackedUpdates = [];
SpeechToText\SpeechToTextClientBuilder.cs (1)
19private List<Func<ISpeechToTextClient, IServiceProvider, ISpeechToTextClient>>? _clientFactories;
TextToSpeech\OpenTelemetryTextToSpeechClient.cs (1)
153List<TextToSpeechResponseUpdate> trackedUpdates = [];
TextToSpeech\TextToSpeechClientBuilder.cs (1)
19private List<Func<ITextToSpeechClient, IServiceProvider, ITextToSpeechClient>>? _clientFactories;
Microsoft.Extensions.AI.Abstractions (11)
ChatCompletion\ChatResponseExtensions.cs (5)
35if (list is List<ChatMessage> listConcrete) 366List<AIContent>? inputs = null; 403List<AIContent>? output = null; 500if (contents is List<AIContent> contentsList) 531CoalesceContent((List<AIContent>)response.Messages[i].Contents);
Embeddings\GeneratedEmbeddings.cs (1)
18private List<TEmbedding> _embeddings;
SpeechToText\SpeechToTextResponseUpdateExtensions.cs (2)
34ChatResponseExtensions.CoalesceContent((List<AIContent>)response.Contents); 60ChatResponseExtensions.CoalesceContent((List<AIContent>)response.Contents);
UsageDetails.cs (1)
156List<string> parts = [];
Utilities\AIJsonUtilities.Schema.Transform.cs (2)
39List<string>? path = transformOptions.TransformSchemaNode is not null ? [] : null; 43private static JsonNode TransformSchemaCore(JsonNode? schema, AIJsonSchemaTransformOptions transformOptions, List<string>? path)
Microsoft.Extensions.AI.Abstractions.Tests (78)
AssertExtensions.cs (2)
18public static void EqualMessageLists(List<ChatMessage> expectedMessages, List<ChatMessage> actualMessages)
ChatCompletion\ChatMessageTests.cs (3)
87List<AIContent> content = []; 170Assert.IsType<List<AIContent>>(new ChatMessage().Contents); 179List<AIContent> contents = [];
ChatCompletion\ChatOptionsTests.cs (3)
64List<string> stopSequences = 70List<AITool> tools = 159List<string> stopSequences =
ChatCompletion\ChatResponseTests.cs (1)
37List<ChatMessage> messages = [];
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (3)
21Assert.Throws<ArgumentNullException>("updates", () => ((List<ChatResponseUpdate>)null!).ToChatResponse()); 626List<ChatResponseUpdate> updates = []; 628List<string> expected = [];
ChatCompletion\ChatResponseUpdateTests.cs (2)
246var originalContents = new List<AIContent> { new TextContent("text1"), new TextContent("text2") }; 376var sharedContents = new List<AIContent> { new TextContent("initial") };
ChatCompletion\DelegatingChatClientTests.cs (2)
24var expectedChatContents = new List<ChatMessage>(); 56var expectedChatContents = new List<ChatMessage>();
ChatRouting\RoutingChatClientTests.cs (2)
131private static async Task<List<ChatResponseUpdate>> CollectAsync( 134var result = new List<ChatResponseUpdate>();
ChatRouting\RoutingContextTests.cs (1)
15var messages = new List<ChatMessage> { new(ChatRole.User, "initial") };
Contents\AIAnnotationTests.cs (1)
32List<AnnotatedRegion> regions = [new TextSpanAnnotatedRegion { StartIndex = 10, EndIndex = 42 }];
Contents\CitationAnnotationTests.cs (1)
42List<AnnotatedRegion> regions = [new TextSpanAnnotatedRegion { StartIndex = 10, EndIndex = 42 }];
Embeddings\DelegatingEmbeddingGeneratorTests.cs (1)
24var expectedInput = new List<string>();
Embeddings\GeneratedEmbeddingsTests.cs (1)
58List<Embedding<float>> embeddings =
Generated\361d1da7f942c932\TestTypesContext.PocoWithNonRecursiveDuplicateOccurrences.g.cs (3)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>> 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNonRecursiveDuplicateOccurrences).GetProperty("ListValue", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>>(options, info2);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (2)
264if (type == typeof(global::System.Collections.Generic.List<bool>)) 268if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ListBoolean.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<bool>>? _ListBoolean; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<bool>> ListBoolean 24get => _ListBoolean ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<bool>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<bool>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<bool>> Create_ListBoolean(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<bool>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<bool>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<bool>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<bool>, bool>(options, info); 47private void ListBooleanSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<bool>? value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ListSimpleRecord.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>>? _ListSimpleRecord; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>> ListSimpleRecord 24get => _ListSimpleRecord ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>> Create_ListSimpleRecord(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>(options, info); 47private void ListSimpleRecordSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>? value)
Image\ImageGenerationResponseTests.cs (4)
30List<AIContent> content = []; 72List<AIContent> contents = [ 98List<AIContent> contents = [ 136List<AIContent> contents = [
parent\parent\Shared\JsonSchemaExporter\TestTypes.cs (3)
815yield return new TestData<List<bool>>([false, true, false], """{"type":["array","null"],"items":{"type":"boolean"}}"""); 954public List<SimpleRecord>? ListValue { get; set; } 1298[JsonSerializable(typeof(List<bool>))]
Realtime\RealtimeClientMessageTests.cs (4)
40var contents = new List<AIContent> { new TextContent("Hello") }; 138var items = new List<RealtimeConversationItem> 143var modalities = new List<string> { "text", "audio" }; 144var tools = new List<AITool> { AIFunctionFactory.Create(() => 42) };
Realtime\RealtimeServerMessageTests.cs (2)
192var items = new List<RealtimeConversationItem> 196var modalities = new List<string> { "text" };
Realtime\RealtimeSessionOptionsTests.cs (2)
37List<string> modalities = ["text", "audio"]; 38List<AITool> tools = [AIFunctionFactory.Create(() => 42)];
SpeechToText\SpeechToTextClientTests.cs (1)
59List<SpeechToTextResponseUpdate> updates = [];
SpeechToText\SpeechToTextResponseTests.cs (2)
73List<AIContent> content = []; 133List<AIContent> newContents = [new TextContent("text1"), new TextContent("text2")];
SpeechToText\SpeechToTextResponseUpdateExtensionsTests.cs (3)
38Assert.Throws<ArgumentNullException>("updates", () => ((List<SpeechToTextResponseUpdate>)null!).ToSpeechToTextResponse()); 81List<SpeechToTextResponseUpdate> updates = []; 83List<string> expected = [];
SpeechToText\SpeechToTextResponseUpdateTests.cs (1)
41List<AIContent> newList = [new TextContent("content1")];
TextToSpeech\TextToSpeechClientTests.cs (1)
53List<TextToSpeechResponseUpdate> updates = [];
TextToSpeech\TextToSpeechResponseTests.cs (2)
38List<AIContent> content = []; 84List<AIContent> newContents = [new DataContent(new byte[] { 1 }, "audio/mpeg"), new DataContent(new byte[] { 2 }, "audio/mpeg")];
TextToSpeech\TextToSpeechResponseUpdateExtensionsTests.cs (1)
16Assert.Throws<ArgumentNullException>("updates", () => ((List<TextToSpeechResponseUpdate>)null!).ToTextToSpeechResponse());
TextToSpeech\TextToSpeechResponseUpdateTests.cs (1)
33List<AIContent> newList = [new DataContent(new byte[] { 1 }, "audio/mpeg")];
Tools\HostedMcpServerToolTests.cs (1)
79List<string> allowedTools = ["tool1", "tool2"];
Utilities\AIJsonUtilitiesTests.cs (2)
1513List<string?> names = []; 1619List<string?> calledParameterNames = [];
Microsoft.Extensions.AI.Evaluation (2)
ChatMessageExtensions.cs (1)
73List<ChatMessage> conversationHistory = [.. messages];
CompositeEvaluator.cs (1)
107var metrics = new List<EvaluationMetric>();
Microsoft.Extensions.AI.Evaluation.Console (1)
Commands\ReportCommand.cs (1)
75List<ScenarioRunResult> results = [];
Microsoft.Extensions.AI.Evaluation.Integration.Tests (9)
AgentQualityEvaluatorTests.cs (2)
206List<ChatMessage> messages = 219List<ChatMessage> messages =
QualityEvaluatorTests.cs (4)
87var messages = new List<ChatMessage>(); 128var messages = new List<ChatMessage>(); 166var messages = new List<ChatMessage>(); 201var messages = new List<ChatMessage>();
SafetyEvaluatorTests.cs (3)
183var messages = new List<ChatMessage>(); 261var messages = new List<ChatMessage>(); 589var messages = new List<ChatMessage>();
Microsoft.Extensions.AI.Evaluation.NLP (9)
Common\BLEUAlgorithm.cs (2)
70List<NGram<string>> hypGrams = hypothesis.CreateNGrams(n); 77List<NGram<string>> refGrams = rf.CreateNGrams(n);
Common\GLEUAlgorithm.cs (1)
31List<(int, int)> hypCounts = [];
Common\NGramExtensions.cs (6)
16internal static List<NGram<T>> CreateNGrams<T>(this T[] input, int n) 25internal static List<NGram<T>> CreateNGrams<T>(this ReadOnlySpan<T> input, int n) 33List<NGram<T>> nGrams = []; 48internal static List<NGram<T>> CreateAllNGrams<T>(this T[] input, int minN, int maxN = -1) 58internal static List<NGram<T>> CreateAllNGrams<T>(this ReadOnlySpan<T> input, int minN, int maxN = -1) 72List<NGram<T>> nGrams = [];
Microsoft.Extensions.AI.Evaluation.Quality (33)
CoherenceEvaluator.cs (3)
91List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(userRequest, modelResponse); 105private static List<ChatMessage> GetEvaluationInstructions(ChatMessage? userRequest, ChatResponse modelResponse) 117List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
CompletenessEvaluator.cs (3)
96List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(modelResponse, context); 111private static List<ChatMessage> GetEvaluationInstructions( 125List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
EquivalenceEvaluator.cs (3)
99List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(userRequest, modelResponse, context); 114private static List<ChatMessage> GetEvaluationInstructions( 124List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
FluencyEvaluator.cs (3)
83List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(modelResponse); 97private static List<ChatMessage> GetEvaluationInstructions(ChatResponse modelResponse) 109List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
GroundednessEvaluator.cs (3)
96List<ChatMessage> evaluationInstructions = 112private static List<ChatMessage> GetEvaluationInstructions( 127List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
IntentResolutionEvaluator.cs (3)
141List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(messages, modelResponse, context); 165private static List<ChatMessage> GetEvaluationInstructions( 173List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
RelevanceEvaluator.cs (3)
96List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(userRequest, modelResponse); 110private static List<ChatMessage> GetEvaluationInstructions(ChatMessage userRequest, ChatResponse modelResponse) 122List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
RelevanceTruthAndCompletenessEvaluator.cs (2)
117List<ChatMessage> evaluationInstructions = 137private static List<ChatMessage> GetEvaluationInstructions(
RetrievalEvaluator.cs (3)
112List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(userRequest, context); 127private static List<ChatMessage> GetEvaluationInstructions( 141List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
TaskAdherenceEvaluator.cs (3)
140List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(messages, modelResponse, context); 160private static List<ChatMessage> GetEvaluationInstructions( 264List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, systemPrompt)];
ToolCallAccuracyEvaluator.cs (3)
140List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(messages, modelResponse, context); 155private static List<ChatMessage> GetEvaluationInstructions( 170List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
Utilities\JsonOutputFixer.cs (1)
65var messages = new List<ChatMessage>
Microsoft.Extensions.AI.Evaluation.Reporting (1)
SimpleChatClient.cs (1)
63List<ChatResponseUpdate>? updates = null;
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Storage\AzureStorageResultStore.cs (1)
45List<PathItem> paths = [];
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (3)
DiskBased\DiskBasedResponseCacheTests.cs (1)
15private readonly List<string> _tempStorage = [];
DiskBased\DiskBasedResultStoreTests.cs (1)
15private readonly List<string> _tempStorage = [];
ResultStoreTester.cs (1)
44List<(string executionName, string scenarioName, string iterationName)> results = [];
Microsoft.Extensions.AI.Evaluation.Safety (17)
ContentSafetyServicePayloadUtilities.cs (17)
90List<Dictionary<string, ChatMessage>> turns; 91List<string?>? normalizedPerTurnContext; 92List<EvaluationDiagnostic>? diagnostics; 102IEnumerable<List<XElement>> userTextListItems = 108List<XElement> item = []; 182List<Dictionary<string, ChatMessage>> turns; 183List<string?>? normalizedPerTurnContext; 184List<EvaluationDiagnostic>? diagnostics; 260List<Dictionary<string, ChatMessage>> turns; 261List<string?>? normalizedPerTurnContext; 262List<EvaluationDiagnostic>? diagnostics; 384(List<Dictionary<string, ChatMessage>> turns, 385List<string?>? normalizedPerTurnContext, 386List<EvaluationDiagnostic>? diagnostics, 395List<Dictionary<string, ChatMessage>> turns = []; 397List<string?>? normalizedPerTurnContext = 486List<EvaluationDiagnostic>? diagnostics = null;
Microsoft.Extensions.AI.Integration.Tests (36)
ChatClientIntegrationTests.cs (21)
141List<ChatResponseUpdate> chunks = []; 160List<ChatMessage> history = [new(ChatRole.User, "Explain in 100 words how AI works")]; 218var activities = new List<Activity>(); 229List<ChatMessage> messages = 285var activities = new List<Activity>(); 296List<ChatMessage> messages = 317var activities = new List<Activity>(); 328List<ChatMessage> messages = 349var activities = new List<Activity>(); 358List<ChatMessage> messages = 364List<string> shoppingCart = []; 376private static void AssertUsageAgainstActivities(ChatResponse response, List<Activity> activities) 406var activities = new List<Activity>(); 467AIFunctionFactory.Create((List<int> list) => list, createOptions()), 931var activities = new List<Activity>(); 1087var capturedOptions = new List<ChatOptions?>(); 1135List<ChatMessage> messages = 1177List<ChatMessage> messages = 1238List<ChatMessage> messages = 1272List<ChatMessage> messages = 1318List<ChatMessage> messages =
EmbeddingGeneratorIntegrationTests.cs (1)
110var activities = new List<Activity>();
ImageGeneratingChatClientIntegrationTests.cs (8)
86List<string> imageIds = []; 193var chatHistory = new List<ChatMessage> 243var chatHistory = new List<ChatMessage> 288var chatHistory = new List<ChatMessage> 360var capturedMessages = new List<IEnumerable<ChatMessage>>(); 390var processedMessages = capturedMessages.First().ToList(); 394var textContents = userMessage.Contents.OfType<TextContent>().ToList(); 409public List<(ImageGenerationRequest request, ImageGenerationOptions? options)> GenerateCalls { get; } = [];
PromptBasedFunctionCallingChatClient.cs (1)
49List<ChatMessage> chatMessagesList = [CreateToolPrompt(options.Tools), .. chatMessages.Select(m => m.Clone())];
ReducingChatClientTests.cs (2)
43List<ChatMessage> messages = 75List<ChatMessage> list = messages.ToList();
TextToSpeechClientIntegrationTests.cs (1)
114var dataContents = update.Contents.OfType<DataContent>().ToList();
VerbatimMultiPartHttpHandler.cs (2)
129((List<JsonElement>)parameters[name]).Add(ParseContentToJsonElement(rawValue)); 142if (parameters[key] is List<JsonElement> list && list.Count == 1)
Microsoft.Extensions.AI.OpenAI (45)
Generated\361d1da7f942c932\OpenAIJsonContext.ListFunctionToolCallOutputElement.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>>? _ListFunctionToolCallOutputElement; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>> ListFunctionToolCallOutputElement 22get => _ListFunctionToolCallOutputElement ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>> Create_ListFunctionToolCallOutputElement(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>, global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>(options, info); 45private void ListFunctionToolCallOutputElementSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>? value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OpenAIJsonContext.GetJsonTypeInfo.g.cs (1)
46if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.OpenAIResponsesChatClient.FunctionToolCallOutputElement>))
MicrosoftExtensionsAIChatExtensions.cs (1)
155var toolCallUpdates = update.Contents.OfType<FunctionCallContent>().Select((fcc, index) =>
OpenAIAssistantsChatClient.cs (7)
82(RunCreationOptions runOptions, ToolResources? toolResources, List<FunctionResultContent>? toolResults) = await CreateRunOptionsAsync(messages, options, cancellationToken).ConfigureAwait(false); 110ConvertFunctionResultsToToolOutput(toolResults, out List<ToolOutput>? toolOutputs) is { } toolRunId && 341private async ValueTask<(RunCreationOptions RunOptions, ToolResources? Resources, List<FunctionResultContent>? ToolResults)> CreateRunOptionsAsync( 507List<FunctionResultContent>? functionResults = null; 510List<MessageContent> messageContents = []; 569private static string? ConvertFunctionResultsToToolOutput(List<FunctionResultContent>? toolResults, out List<ToolOutput>? toolOutputs)
OpenAIChatClient.cs (5)
172var parts = ToOpenAIChatContent(input.Contents); 206List<ChatMessageContentPart>? contentParts = null; 207List<ChatToolCall>? toolCalls = null; 261internal static List<ChatMessageContentPart> ToOpenAIChatContent(IEnumerable<AIContent> contents) 263List<ChatMessageContentPart> parts = [];
OpenAIImageGenerator.cs (1)
114List<AIContent> contents = [];
OpenAIJsonContext.cs (1)
24[JsonSerializable(typeof(List<OpenAIResponsesChatClient.FunctionToolCallOutputElement>))]
OpenAIRealtimeClientSession.cs (6)
665var contentParts = new List<Sdk.RealtimeMessageContentPart>(); 893List<string>? outputModalities = null; 979var items = new List<RealtimeConversationItem>(); 1123var contents = new List<AIContent>(); 1184var contents = new List<AIContent> 1236var contents = new List<AIContent>();
OpenAIResponsesChatClient.cs (13)
203((List<AIContent>)message.Contents).AddRange(ToAIContents(messageItem.Content)); 1017Dictionary<ToolSearchLookup.Namespace, List<ResponseTool>>? namespaceGroups = null; 1046if (!namespaceGroups.TryGetValue(ns, out var group)) 1062foreach (KeyValuePair<ToolSearchLookup.Namespace, List<ResponseTool>> kvp in namespaceGroups) 1311List<ResponseContentPart>? parts = null; 1417List<FunctionToolCallOutputElement> elements = []; 1680private static List<AIContent> ToAIContents(IEnumerable<ResponseContentPart> contents) 1682List<AIContent> results = []; 1793private static List<string>? GetWebSearchQueries(WebSearchCallResponseItem wscri) 1817private static List<AIContent>? GetWebSearchSources(WebSearchCallResponseItem wscri) 1824List<AIContent>? results = null; 1872List<AIContent>? outputContents = null; 1914private static void AddHostedFileContents(List<AIContent> contents, CodeInterpreterCallOutput output, string? containerId)
Microsoft.Extensions.AI.OpenAI.Tests (121)
OpenAIAssistantChatClientIntegrationTests.cs (1)
84var toolResultContents = response.Messages.SelectMany(m => m.Contents).OfType<CodeInterpreterToolResultContent>().ToList();
OpenAIChatClientTests.cs (21)
234List<ChatResponseUpdate> updates = []; 819List<ChatMessage> messages = 926List<ChatMessage> messages = 1022List<ChatMessage> messages = 1325List<ChatResponseUpdate> updates = []; 1465List<ChatMessage> messages = 1726List<ChatResponseUpdate> updates = []; 1749List<OpenAI.Chat.ChatMessage> openAIMessages = [new SystemChatMessage("You are a helpful assistant")]; 1750var extMessages = openAIMessages.AsChatMessages().ToList(); 1760List<OpenAI.Chat.ChatMessage> openAIMessages = [new UserChatMessage("Hello")]; 1761var extMessages = openAIMessages.AsChatMessages().ToList(); 1771List<OpenAI.Chat.ChatMessage> openAIMessages = [new AssistantChatMessage("Hi there!")]; 1772var extMessages = openAIMessages.AsChatMessages().ToList(); 1782List<OpenAI.Chat.ChatMessage> openAIMessages = [new DeveloperChatMessage("Developer instructions")]; 1783var extMessages = openAIMessages.AsChatMessages().ToList(); 1793List<OpenAI.Chat.ChatMessage> openAIMessages = [new ToolChatMessage("tool-123", "Result")]; 1794var extMessages = openAIMessages.AsChatMessages().ToList(); 1806List<OpenAI.Chat.ChatMessage> openAIMessages = 1814var extMessages = openAIMessages.AsChatMessages().ToList(); 1960List<ChatResponseUpdate> updates = []; 2015var activities = new List<Activity>();
OpenAIConversionTests.cs (26)
545var allowedTools = new List<string> { "tool1", "tool2", "tool3" }; 599var alwaysRequireTools = new List<string> { "tool1", "tool2" }; 600var neverRequireTools = new List<string> { "tool3" }; 724List<ChatMessage> messages = 793List<ChatMessage> messages = 846List<ChatMessage> messages = 918List<ChatResponseUpdate> updates = []; 1009List<ChatResponseUpdate> updates = []; 1133List<ChatResponseUpdate> updates = []; 1162List<OpenAI.Chat.ChatMessage> openAIMessages = 1189List<ChatMessage> inputMessages = 1215List<ChatMessage> inputMessages = 1672var updates = new List<ChatResponseUpdate>(); 1673var result = new List<StreamingChatCompletionUpdate>(); 1699var result = new List<StreamingChatCompletionUpdate>(); 1721var result = new List<StreamingChatCompletionUpdate>(); 1755var result = new List<StreamingChatCompletionUpdate>(); 1785var result = new List<StreamingChatCompletionUpdate>(); 1820var result = new List<StreamingChatCompletionUpdate>(); 1854var result = new List<StreamingChatCompletionUpdate>(); 1893var result = new List<StreamingChatCompletionUpdate>(); 1922var result = new List<StreamingChatCompletionUpdate>(); 1953var result = new List<StreamingChatCompletionUpdate>(); 2080var messages = new List<ChatMessage> 2117var messages = new List<ChatMessage> 2152var messages = new List<ChatMessage>
OpenAIHostedFileClientIntegrationTests.cs (3)
97var files = new List<HostedFileContent>(); 309var files = new List<HostedFileContent>(); 367var containerFiles = new List<HostedFileContent>();
OpenAIHostedFileClientTests.cs (6)
260var files = await CollectAsync(client.ListFilesAsync()); 297var files = await CollectAsync(client.ListFilesAsync(new HostedFileClientOptions { Limit = 2 })); 318var files = await CollectAsync(client.ListFilesAsync(new HostedFileClientOptions { Purpose = "assistants" })); 785var files = await CollectAsync(client.ListFilesAsync(new HostedFileClientOptions { Scope = "ctr-123" })); 912private static async Task<List<T>> CollectAsync<T>(IAsyncEnumerable<T> source) 914var list = new List<T>();
OpenAIResponseClientIntegrationTests.cs (16)
123var regions = Assert.IsType<List<AnnotatedRegion>>(ca.AnnotatedRegions); 267List<ChatMessage> input = [new ChatMessage(ChatRole.User, "Tell me the path to the README.md file for Microsoft.Extensions.AI.Abstractions in the dotnet/extensions repository")]; 342var allContents = response.Messages.SelectMany(m => m.Contents).ToList(); 343var rawJsons = allContents 531List<ChatMessage> input = [new ChatMessage(ChatRole.User, "What is on my calendar for today?")]; 601var messages = response.Messages.ToList(); 706List<ChatMessage> chatHistory = [new ChatMessage(ChatRole.User, "What is 2+2? Think step by step but be very brief.")]; 732var deserializedHistory = JsonSerializer.Deserialize<List<ChatMessage>>(json, AIJsonUtilities.DefaultOptions)!; 787List<ChatMessage> chatHistory = [new ChatMessage(ChatRole.User, "What is 2+2? Think step by step but be very brief.")]; 813var deserializedHistory = JsonSerializer.Deserialize<List<ChatMessage>>(json, AIJsonUtilities.DefaultOptions)!; 878var rawJsons = response.Messages 988var rawJsons = response.Messages 1038var rawJsons = response.Messages
OpenAIResponseClientTests.cs (44)
296List<ChatResponseUpdate> updates = []; 426List<ChatResponseUpdate> updates = []; 454var reasoningUpdates = updates.Where((u, idx) => idx >= 3 && idx <= 5).ToList(); 552List<ChatResponseUpdate> updates = []; 567var reasoningContents = updates.SelectMany(u => u.Contents).OfType<TextReasoningContent>().ToList(); 571List<ChatMessage> chatHistory = []; 627List<ChatResponseUpdate> updates = []; 640List<ChatMessage> chatHistory = []; 646string serializedHistory = JsonSerializer.Serialize(chatHistory, AIJsonUtilities.DefaultOptions.GetTypeInfo(typeof(List<ChatMessage>))); 647chatHistory = (List<ChatMessage>)JsonSerializer.Deserialize(serializedHistory, AIJsonUtilities.DefaultOptions.GetTypeInfo(typeof(List<ChatMessage>)))!; 746List<ChatResponseUpdate> updates = []; 992List<ChatResponseUpdate> updates = []; 1763var messages = new List<ChatMessage> 3112List<ChatResponseUpdate> updates = []; 3205List<ChatResponseUpdate> updates = []; 3691List<ChatResponseUpdate> updates = []; 3701var codeInterpreterCallUpdates = updates.Where(u => 3729var resultUpdates = updates.Where(u => 4188List<ChatResponseUpdate> updates = []; 4269List<ChatResponseUpdate> updates = []; 4410List<ChatResponseUpdate> updates = []; 4487List<ChatResponseUpdate> updates = []; 4565List<ChatResponseUpdate> updates = []; 4762List<ChatResponseUpdate> updates = []; 5648List<ChatResponseUpdate> updates = []; 5683List<ChatResponseUpdate> updates = []; 5718List<ChatResponseUpdate> updates = []; 5756List<ChatResponseUpdate> updates = []; 5794List<ChatResponseUpdate> updates = []; 5852List<ChatResponseUpdate> updates = []; 5895List<ChatResponseUpdate> updates = []; 5938List<ChatResponseUpdate> updates = []; 5981List<ChatResponseUpdate> updates = []; 6056List<ChatResponseUpdate> updates = []; 6459List<ChatResponseUpdate> updates = []; 6576List<ChatResponseUpdate> updates = []; 6598var partialImageUpdates = updates.Where(u => 6757var activities = new List<Activity>(); 6876public List<string> RequestBodies { get; } = []; 7254List<ChatResponseUpdate> updates = []; 7268var wsCallUpdates = updates.Where(u => u.Contents.OfType<WebSearchToolCallContent>().Any()).ToList(); 7294var textUpdates = updates.Where(u => u.Contents.OfType<TextContent>().Any()).ToList(); 8929List<ChatResponseUpdate> updates = [];
OpenAISpeechToTextClientTests.cs (1)
316var updates = new System.Collections.Generic.List<SpeechToTextResponseUpdate>();
OpenAITextToSpeechClientTests.cs (1)
310List<TextToSpeechResponseUpdate> updates = [];
parent\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (2)
18public static void EqualMessageLists(List<ChatMessage> expectedMessages, List<ChatMessage> actualMessages)
Microsoft.Extensions.AI.Stabilization.Tests (14)
AIContentSerializationRegressionContext.cs (1)
16[JsonSerializable(typeof(List<AIContent>))]
AIContentSerializationRegressionTests.cs (2)
21List<AIContent> contents = 28List<AIContent>? roundtripped = JsonSerializer.Deserialize(json, AIContentSerializationRegressionContext.Default.ListAIContent);
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.GetJsonTypeInfo.g.cs (1)
174if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>))
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.ListAIContent.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>>? _ListAIContent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>> ListAIContent 22get => _ListAIContent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>> Create_ListAIContent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>, global::Microsoft.Extensions.AI.AIContent>(options, info); 45private void ListAIContentSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.AIContent>? value)
Microsoft.Extensions.AI.Templates.Tests (1)
TestCommand.cs (1)
22public List<string> Arguments { get; } = [];
Microsoft.Extensions.AI.Tests (375)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (9)
75var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 136var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 245var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 264var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 283var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 311var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 339var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 401var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 429var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
ChatCompletion\DistributedCachingChatClientTest.cs (9)
248List<ChatResponseUpdate> actualUpdate = 261List<ChatResponseUpdate> expectedCachedResponse = 312List<ChatResponseUpdate> expectedResponse = 367List<ChatResponseUpdate> expectedResponse = 416var items = await ToListAsync(result2); 435List<ChatResponseUpdate> expectedResponse = 543var result2 = await ToListAsync(outer.GetStreamingResponseAsync([input])); 765private static async Task<List<T>> ToListAsync<T>(IAsyncEnumerable<T> values) 767var result = new List<T>();
ChatCompletion\FunctionInvocationContextTests.cs (1)
47List<ChatMessage> messages = [];
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (144)
34List<ChatMessage> input = 39List<ChatMessage> downstreamClientOutput = 44List<ChatMessage> expectedOutput = 70List<ChatMessage> input = 75List<ChatMessage> downstreamClientOutput = 80List<ChatMessage> expectedOutput = 117List<ChatMessage> input = 122List<ChatMessage> downstreamClientOutput = 129List<ChatMessage> expectedOutput = 167List<ChatMessage> input = 172List<ChatMessage> downstreamClientOutput = 180List<ChatMessage> expectedOutput = 212List<ChatMessage> input = 217List<ChatMessage> downstreamClientOutput = 225List<ChatMessage> expectedOutput = 254List<ChatMessage> input = 269List<ChatMessage> expectedDownstreamClientInput = 276List<ChatMessage> downstreamClientOutput = 281List<ChatMessage> output = 306List<ChatMessage> input = 322List<ChatMessage> expectedDownstreamClientInput = 329List<ChatMessage> downstreamClientOutput = 334List<ChatMessage> output = 358List<ChatMessage> input = 379List<ChatMessage> expectedDownstreamClientInput = 387List<ChatMessage> downstreamClientOutput = 392List<ChatMessage> output = 417List<ChatMessage> input = 432List<ChatMessage> expectedDownstreamClientInput = 443List<ChatMessage> downstreamClientOutput = 448List<ChatMessage> output = 476List<ChatMessage> input = 491List<ChatMessage> expectedDownstreamClientInput = 499List<ChatMessage> downstreamClientOutput = 504List<ChatMessage> nonStreamingOutput = 512List<ChatMessage> streamingOutput = 540List<ChatMessage> input = 561List<ChatMessage> expectedDownstreamClientInput = 572List<ChatMessage> downstreamClientOutput = 577List<ChatMessage> output = 606List<ChatMessage> input = 623List<ChatMessage> expectedDownstreamClientInput = 640List<ChatMessage> downstreamClientOutput = 645List<ChatMessage> nonStreamingOutput = 662List<ChatMessage> streamingOutput = 698List<ChatMessage> input = 714List<ChatMessage> expectedDownstreamClientInput = 724List<ChatMessage> downstreamClientOutput = 729List<ChatMessage> output = 756List<ChatMessage> input = 771List<ChatMessage> expectedDownstreamClientInput = 778List<ChatMessage> downstreamClientOutput = 783List<ChatMessage> output = 810List<ChatMessage> input = 835List<ChatMessage> expectedDownstreamClientInput = 844List<ChatMessage> downstreamClientOutput = 849List<ChatMessage> output = 889List<ChatMessage> input = 961List<ChatMessage> input = 1026List<ChatMessage> input = 1031Func<Queue<List<ChatMessage>>> expectedDownstreamClientInput = () => new Queue<List<ChatMessage>>( 1045Func<Queue<List<ChatMessage>>> downstreamClientOutput = () => new Queue<List<ChatMessage>>( 1057List<ChatMessage> output = 1081List<ChatMessage> input = 1111List<ChatMessage> input = 1121List<ChatMessage> expectedDownstreamClientInput = 1128List<ChatMessage> downstreamClientOutput = 1133List<ChatMessage> output = 1158List<ChatMessage> input = 1167List<ChatMessage> expectedDownstreamClientInput = 1172List<ChatMessage> downstreamClientOutput = 1177List<ChatMessage> output = 1202List<ChatMessage> input = 1215List<ChatMessage> expectedDownstreamClientInput = 1221List<ChatMessage> downstreamClientOutput = 1226List<ChatMessage> output = 1252List<ChatMessage> input = 1263List<ChatMessage> expectedDownstreamClientInput = 1269List<ChatMessage> downstreamClientOutput = 1274List<ChatMessage> output = 1297List<ChatMessage> input = 1315List<ChatMessage> expectedDownstreamClientInput = 1323List<ChatMessage> downstreamClientOutput = 1328List<ChatMessage> output = 1352List<ChatMessage> input = 1366List<ChatMessage> expectedDownstreamClientInput = 1374List<ChatMessage> downstreamClientOutput = 1379List<ChatMessage> output = 1410List<ChatMessage> input = 1423List<ChatMessage> expectedOutput = 1467List<ChatMessage> input = [new ChatMessage(ChatRole.User, "hello")]; 1543List<ChatMessage> input = [new ChatMessage(ChatRole.User, "hello")]; 1641List<ChatMessage> input = [new ChatMessage(ChatRole.User, "hello")]; 1645List<ChatMessage> downstreamClientOutput = 1651List<ChatMessage> expectedOutput = 1683List<ChatMessage> input = 1696List<ChatMessage> downstreamClientOutput = 1702List<ChatMessage> expectedOutput = 1709var actualOutput = await InvokeAndAssertAsync(options, input, downstreamClientOutput, expectedOutput); 1734List<ChatMessage> input = 1739List<ChatMessage> downstreamClientOutput = 1748List<ChatMessage> expectedOutput = 1777List<ChatMessage> input = 1792List<ChatMessage> expectedDownstreamClientInput = 1813List<ChatMessage> downstreamClientOutput = 1821List<ChatMessage> output = 1861List<ChatMessage> input = 1876List<ChatMessage> expectedDownstreamClientInput = [ 1898List<ChatMessage> downstreamClientOutput = 1908List<ChatMessage> output = [ 1931private static Task<List<ChatMessage>> InvokeAndAssertAsync( 1933List<ChatMessage> input, 1934List<ChatMessage> downstreamClientOutput, 1935List<ChatMessage> expectedOutput, 1936List<ChatMessage>? expectedDownstreamClientInput = null, 1942new Queue<List<ChatMessage>>(new[] { downstreamClientOutput }), 1944expectedDownstreamClientInput is null ? null : new Queue<List<ChatMessage>>(new[] { expectedDownstreamClientInput }), 1948private static async Task<List<ChatMessage>> InvokeAndAssertMultiRoundAsync( 1950List<ChatMessage> input, 1951Queue<List<ChatMessage>> downstreamClientOutput, 1952List<ChatMessage> expectedOutput, 1953Queue<List<ChatMessage>>? expectedDownstreamClientInput = null, 1979var output = downstreamClientOutput.Dequeue(); 1990var actualOutput = result.Messages as List<ChatMessage> ?? result.Messages.ToList(); 2019private static Task<List<ChatMessage>> InvokeAndAssertStreamingAsync( 2021List<ChatMessage> input, 2022List<ChatMessage> downstreamClientOutput, 2023List<ChatMessage> expectedOutput, 2024List<ChatMessage>? expectedDownstreamClientInput = null, 2030new Queue<List<ChatMessage>>(new[] { downstreamClientOutput }), 2032expectedDownstreamClientInput is null ? null : new Queue<List<ChatMessage>>(new[] { expectedDownstreamClientInput }), 2036private static async Task<List<ChatMessage>> InvokeAndAssertStreamingMultiRoundAsync( 2038List<ChatMessage> input, 2039Queue<List<ChatMessage>> downstreamClientOutput, 2040List<ChatMessage> expectedOutput, 2041Queue<List<ChatMessage>>? expectedDownstreamClientInput = null, 2061var output = downstreamClientOutput.Dequeue(); 2072var actualOutput = result.Messages as List<ChatMessage> ?? result.Messages.ToList(); 2089private static List<ChatMessage> CloneInput(List<ChatMessage> input) =>
ChatCompletion\FunctionInvokingChatClientTests.cs (79)
91List<ChatMessage> plan = 125List<ChatMessage> plan = 158List<ChatMessage> plan = 189List<ChatMessage> plan = 249List<ChatMessage> plan = 293List<ChatMessage> plan = 327List<ChatMessage> plan = 414var messages = new List<ChatMessage> 493var messages = new List<ChatMessage> 577var messages = new List<ChatMessage> 634List<ChatMessage> plan = 659List<ChatOptions?> capturedOptions = []; 703List<ChatOptions?> capturedOptions = []; 748List<ChatOptions?> capturedOptions = []; 796List<ChatOptions?> capturedOptions = []; 856List<ChatMessage> plan = 934List<ChatMessage> plan = 981List<ChatMessage> plan = 998static void Validate(List<ChatMessage> finalChat) 1018List<ChatMessage> plan = 1040List<ChatMessage> plan = 1097List<ChatMessage> plan = 1119var activities = new List<Activity>(); 1175var messages = new List<ChatMessage> 1186List<ChatResponseUpdate> updates; 1233var messages = new List<ChatMessage> 1268var invocationContexts = new List<FunctionInvocationContext>(); 1291List<ChatMessage> planBeforeTermination = 1301List<ChatMessage> plan = 1316async Task InvokeAsync(Func<Task<List<ChatMessage>>> work) 1320var messages = await work(); 1377List<ChatMessage> messages = [new(ChatRole.User, "hello")]; 1385var frcs = lastMessage.Contents.OfType<FunctionResultContent>().ToList(); 1447List<ChatMessage> plan = 1476List<ChatMessage> plan = 1529List<ChatMessage> planForContinue = 1548List<ChatMessage> fullPlanWithUnknown = 1562var expected = fullPlanWithUnknown.Take(2).ToList(); 1577List<ChatMessage> fullPlan = 1585List<ChatMessage> expected = fullPlan.Take(2).ToList(); 1606List<ChatMessage> fullPlan = 1617List<ChatMessage> expected = fullPlan.Take(2).ToList(); 1640List<ChatMessage> messages = []; 1679List<ChatMessage> plan = 1695var activities = new List<Activity>(); 1715var childActivities = activities.Where(a => a != invokeAgent).ToList(); 1726var activities = new List<Activity>(); 1769var chatActivities = activities.Where(a => a.DisplayName.StartsWith("chat", StringComparison.Ordinal)).ToList(); 1773var nonAgentActivities = activities.Where(a => a != invokeAgentActivity).ToList(); 1790List<ChatMessage> plan = 1806var activities = new List<Activity>(); 1832List<ChatMessage> plan = 1848var activities = new List<Activity>(); 1863var executeToolActivities = activities.Where(a => a.DisplayName == "execute_tool Func1").ToList(); 1882List<ChatMessage> plan = 1895var activities = new List<Activity>(); 1954List<ChatMessage> plan = 1970var activities = new List<Activity>(); 1987var executeTools = activities.Where(a => a.DisplayName.StartsWith("execute_tool")).ToList(); 2003List<ChatMessage> plan = 2011var chat = await InvokeAndAssertAsync(options, plan); 2198private static async Task<List<ChatMessage>> InvokeAndAssertAsync( 2200List<ChatMessage> plan, 2201List<ChatMessage>? expected = null, 2210List<ChatMessage> chat = [plan[0]]; 2268private static async Task<List<ChatMessage>> InvokeAndAssertStreamingAsync( 2270List<ChatMessage> plan, 2271List<ChatMessage>? expected = null, 2280List<ChatMessage> chat = [plan[0]]; 2321private static List<AIContent> CloneContents(IList<AIContent> contents) 2323var cloned = new List<AIContent>(contents.Count); 3255List<ChatMessage> plan = 3285List<ChatMessage> plan = 3293List<ChatMessage> expected = plan.Take(2).ToList(); 3321List<ChatMessage> plan = 3350List<ChatMessage> plan = 3357List<ChatMessage> expected = 3393var messages = new List<ChatMessage> 3430var messages = new List<ChatMessage>
ChatCompletion\ImageGeneratingChatClientTests.cs (2)
372var updates = new List<ChatResponseUpdate>(); 500var updates = new List<ChatResponseUpdate>();
ChatCompletion\OpenTelemetryChatClientTests.cs (13)
30var activities = new List<Activity>(); 112List<ChatMessage> messages = 393var activities = new List<Activity>(); 440List<ChatMessage> messages = 577var activities = new List<Activity>(); 601List<ChatMessage> messages = 647var activities = new List<Activity>(); 703List<ChatMessage> messages = 812var activities = new List<Activity>(); 841List<ChatMessage> messages = 899var activities = new List<Activity>(); 969var activities = new List<Activity>(); 1008var activities = new List<Activity>();
ChatCompletion\ReducingChatClientTests.cs (4)
35var originalMessages = new List<ChatMessage> 43var reducedMessages = new List<ChatMessage> 73var updates = new List<ChatResponseUpdate>(); 98var reducedMessages = new List<ChatMessage> { new(ChatRole.User, "Reduced message") };
ChatReduction\MessageCountingChatReducerTests.cs (13)
51List<ChatMessage> messages = 61var resultList = result.ToList(); 86List<ChatMessage> messages = 97var resultList = result.ToList(); 125List<ChatMessage> messages = 136var resultList = result.ToList(); 164var messages = new List<ChatMessage>(); 171var resultList = result.ToList(); 200List<ChatMessage> messages = 206var resultList = result.ToList(); 221List<ChatMessage> messages = 239List<ChatMessage> messages = 249var resultList = result.ToList();
ChatReduction\SummarizingChatReducerTests.cs (16)
67List<ChatMessage> messages = 80var resultList = result.ToList(); 94List<ChatMessage> messages = 112var resultList = result.ToList(); 139List<ChatMessage> messages = 151var msgList = msgs.ToList(); 160var resultList = result.ToList(); 185List<ChatMessage> messages = 200var msgList = msgs.ToList(); 213var resultList = result.ToList(); 239var messages = new List<ChatMessage>(); 258var resultList = result.ToList(); 274List<ChatMessage> messages = 300List<ChatMessage> messages = 314var resultList = result.ToList(); 328List<ChatMessage> messages =
ChatRouting\FailoverChatClientTests.cs (13)
125var updates = new List<(FailoverChatClientAttempt attempt, bool isTerminal)>(); 243var invokedOptions = new List<ChatOptions>(); 297var invokedOptions = new List<ChatOptions?>(); 456var terminalUpdates = new List<bool>(); 572var updates = new List<(FailoverChatClientAttempt attempt, bool isTerminal)>(); 667var updates = new List<(FailoverChatClientAttempt attempt, bool isTerminal)>(); 822var terminalUpdates = new List<bool>(); 936var updates = new List<(FailoverChatClientAttempt attempt, bool isTerminal)>(); 1038var updates = new List<ChatResponseUpdate>(); 1079List<ChatResponseUpdate> updates = 1110List<ChatResponseUpdate> updates = 1143private static async Task<List<ChatResponseUpdate>> CollectAsync( 1146var result = new List<ChatResponseUpdate>();
ChatRouting\OrderedFailoverChatClientTests.cs (4)
29var calls = new List<string>(); 58var calls = new List<string>(); 222var clients = new List<IChatClient> { inner }; 234var seenOptions = new List<(string? modelId, string? instructions)>();
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (2)
24var activities = new List<Activity>(); 102var activities = new List<Activity>();
Files\OpenTelemetryHostedFileClientTests.cs (14)
32var activities = new List<Activity>(); 85var activities = new List<Activity>(); 125var activities = new List<Activity>(); 173var activities = new List<Activity>(); 222var activities = new List<Activity>(); 259var activities = new List<Activity>(); 294var activities = new List<Activity>(); 356var activities = new List<Activity>(); 385var activities = new List<Activity>(); 420var activities = new List<Activity>(); 455var activities = new List<Activity>(); 490var activities = new List<Activity>(); 528var activities = new List<Activity>(); 565var activities = new List<Activity>();
Functions\AIFunctionFactoryTest.cs (9)
40Assert.Throws<ArgumentException>("method", () => AIFunctionFactory.Create(typeof(List<>).GetMethod("Add")!, new List<int>())); 1191await ValidateAsync<List<AIContent>>( 1193AIFunctionFactory.Create(() => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]), 1194AIFunctionFactory.Create(async () => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]), 1195AIFunctionFactory.Create(async ValueTask<List<AIContent>> () => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]), 1202AIFunctionFactory.Create(async ValueTask<IList<AIContent>> () => (List<AIContent>)[new TextContent("text"), new DataContent(new byte[] { 1, 2, 3 }, "application/octet-stream")]), 1583List<string> requiredParams = required.EnumerateArray().Select(e => e.GetString()!).ToList(); 1645List<string> requiredParams = required.EnumerateArray().Select(e => e.GetString()!).ToList();
Image\OpenTelemetryImageGeneratorTests.cs (2)
31var activities = new List<Activity>(); 175var activities = new List<Activity>();
parent\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (2)
18public static void EqualMessageLists(List<ChatMessage> expectedMessages, List<ChatMessage> actualMessages)
Realtime\FunctionInvokingRealtimeClientTests.cs (16)
77var received = new List<RealtimeServerMessage>(); 96var injectedMessages = new List<RealtimeClientMessage>(); 114var received = new List<RealtimeServerMessage>(); 146var injectedMessages = new List<RealtimeClientMessage>(); 188var messages = Enumerable.Range(0, 5).Select<int, RealtimeServerMessage>(i => 202var received = new List<RealtimeServerMessage>(); 253var injectedMessages = new List<RealtimeClientMessage>(); 290var injectedMessages = new List<RealtimeClientMessage>(); 328var injectedMessages = new List<RealtimeClientMessage>(); 373var injectedMessages = new List<RealtimeClientMessage>(); 392var received = new List<RealtimeServerMessage>(); 408var injectedMessages = new List<RealtimeClientMessage>(); 426var received = new List<RealtimeServerMessage>(); 526var messages = new List<RealtimeServerMessage> 596var injectedMessages = new List<RealtimeClientMessage>(); 615var received = new List<RealtimeServerMessage>();
Realtime\OpenTelemetryRealtimeClientTests.cs (16)
27var activities = new List<Activity>(); 199var activities = new List<Activity>(); 254var activities = new List<Activity>(); 392var activities = new List<Activity>(); 445var activities = new List<Activity>(); 488var activities = new List<Activity>(); 531var activities = new List<Activity>(); 616var activities = new List<Activity>(); 659var activities = new List<Activity>(); 702var activities = new List<Activity>(); 744var activities = new List<Activity>(); 786var activities = new List<Activity>(); 827var activities = new List<Activity>(); 868var activities = new List<Activity>(); 909var activities = new List<Activity>(); 950var activities = new List<Activity>();
Realtime\RealtimeClientBuilderTests.cs (3)
61var callOrder = new List<string>(); 159private readonly List<string> _callOrder; 161public OrderTrackingClient(IRealtimeClient inner, string name, List<string> callOrder)
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (2)
36var activities = new List<Activity>(); 159var activities = new List<Activity>();
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
33var activities = new List<Activity>(); 139var activities = new List<Activity>();
Microsoft.Extensions.AmbientMetadata.Application (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
134List<string>? temp = null;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
22var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 23var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.Extensions.AmbientMetadata.Build (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
172List<string>? temp = null;
Microsoft.Extensions.AsyncState (17)
AsyncState.cs (3)
16private static readonly ObjectPool<List<object?>> _featuresPool = PoolFactory.CreatePool(new FeaturesPooledPolicy()); 90internal static void EnsureCount(List<object?> features, int count) 109public List<object?>? Features { get; set; }
FeaturesPooledPolicy.cs (3)
9internal sealed class FeaturesPooledPolicy : IPooledObjectPolicy<List<object?>> 12public List<object?> Create() 18public bool Return(List<object?> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.AsyncState.Tests (4)
AsyncStateTests.cs (3)
218var l = new List<object?>(); 226var l = new List<object?>(new object?[5]); 234var l = new List<object?>(new object?[5]);
FeaturesPooledPolicyTests.cs (1)
25var list = policy.Create();
Microsoft.Extensions.Caching.Abstractions (4)
MemoryCacheEntryOptions.cs (4)
19private List<IChangeToken>? _expirationTokens; 20private List<PostEvictionCallbackRegistration>? _postEvictionCallbacks; 88internal List<IChangeToken>? ExpirationTokensDirect => _expirationTokens; 95internal List<PostEvictionCallbackRegistration>? PostEvictionCallbacksDirect => _postEvictionCallbacks;
Microsoft.Extensions.Caching.Hybrid.Tests (6)
LogCollector.cs (1)
12private readonly List<(string categoryName, LogLevel logLevel, EventId eventId, Exception? exception, string message)> _items = [];
SerializerTests.cs (4)
109List<(int, string)> source = [(1, "a"), (2, "b")]; 110var clone = RoundTrip(source, """[{"Item1":1,"Item2":"a"},{"Item1":2,"Item2":"b"}]"""u8, JsonSerializer.FieldEnabled); 125List<Tuple<int, string>> source = [Tuple.Create(1, "a"), Tuple.Create(2, "b")]; 126var clone = RoundTrip(source, """[{"Item1":1,"Item2":"a"},{"Item1":2,"Item2":"b"}]"""u8, JsonSerializer.Default);
TestEventListener.cs (1)
20private readonly List<(int id, string name, EventLevel level)> _events = [];
Microsoft.Extensions.Caching.Memory (16)
CacheEntry.CacheEntryTokens.cs (9)
20private List<IChangeToken>? _expirationTokens; 21private List<IDisposable>? _expirationTokenRegistrations; 22private List<PostEvictionCallbackRegistration>? _postEvictionCallbacks; // this is not really related to tokens, but was moved here to shrink typical CacheEntry size 24internal List<IChangeToken> ExpirationTokens => _expirationTokens ??= new List<IChangeToken>(); 25internal List<PostEvictionCallbackRegistration> PostEvictionCallbacks => _postEvictionCallbacks ??= new List<PostEvictionCallbackRegistration>(); 29List<IChangeToken>? expirationTokens = _expirationTokens; 50List<IChangeToken>? expirationTokens = _expirationTokens; 91List<IDisposable>? registrations = _expirationTokenRegistrations; 117List<PostEvictionCallbackRegistration>? callbackRegistrations = Interlocked.Exchange(ref entry._tokens._postEvictionCallbacks, null);
MemoryCache.cs (7)
31private readonly List<Stats>? _allStats; 644var entriesToRemove = new List<CacheEntry>(); 646var lowPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>(); 647var normalPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>(); 648var highPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>(); 704static void ExpirePriorityBucket(ref long removedSize, long removalSizeTarget, Func<CacheEntry, long> computeEntrySize, List<CacheEntry> entriesToRemove, List<(CacheEntry Entry, DateTime LastAccessed)> priorityEntries)
Microsoft.Extensions.Compliance.Abstractions (11)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Compliance.Redaction (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
110List<string>? temp = null;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 21var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.Extensions.Compliance.Testing (5)
FakeRedactionCollector.cs (2)
15private readonly List<RedactorRequested> _redactorRequestedLog = []; 16private readonly List<RedactedData> _dataRedactedLog = [];
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
105List<string>? temp = null;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 21var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.Extensions.Configuration (24)
ChainedConfigurationProvider.cs (1)
96var keys = new List<string>();
ConfigurationBuilder.cs (2)
14private readonly List<IConfigurationSource> _sources = new(); 47var providers = new List<IConfigurationProvider>();
ConfigurationManager.cs (4)
37private readonly List<IDisposable> _changeTokenRegistrations = new(); 142var newProvidersList = new List<IConfigurationProvider>(); 188private readonly List<IConfigurationSource> _sources = new(); 232public List<IConfigurationSource>.Enumerator GetEnumerator() => _sources.GetEnumerator();
ConfigurationProvider.cs (1)
65var results = new List<string>();
ConfigurationRoot.cs (1)
20private readonly List<IDisposable> _changeTokenRegistrations;
ConfigurationSection.cs (1)
157public List<Configuration.ConfigurationSectionDebugView> Sections => Configuration.ConfigurationSectionDebugView.FromConfiguration(_current, _current._root);
ConfigurationSectionDebugView.cs (2)
43internal static List<ConfigurationSectionDebugView> FromConfiguration(IConfiguration current, IConfigurationRoot root) 45var data = new List<ConfigurationSectionDebugView>();
ReferenceCountedProviders.cs (11)
14public static ReferenceCountedProviders Create(List<IConfigurationProvider> providers) => new ActiveReferenceCountedProviders(providers); 19public static ReferenceCountedProviders CreateDisposed(List<IConfigurationProvider> providers) => new DisposedReferenceCountedProviders(providers); 21public abstract List<IConfigurationProvider> Providers { get; set; } 26public abstract List<IConfigurationProvider> NonReferenceCountedProviders { get; } 37private volatile List<IConfigurationProvider> _providers; 39public ActiveReferenceCountedProviders(List<IConfigurationProvider> providers) 44public override List<IConfigurationProvider> Providers 58public override List<IConfigurationProvider> NonReferenceCountedProviders => _providers; 81public DisposedReferenceCountedProviders(List<IConfigurationProvider> providers) 86public override List<IConfigurationProvider> Providers { get; set; } 87public override List<IConfigurationProvider> NonReferenceCountedProviders => Providers;
ReferenceCountedProvidersManager.cs (1)
41public void ReplaceProviders(List<IConfigurationProvider> providers)
Microsoft.Extensions.Configuration.Binder (9)
ConfigurationBinder.cs (9)
222List<PropertyInfo> modelProperties = GetAllProperties(instance.GetType()); 229List<string>? missingPropertyNames = null; 463Type genericType = typeof(List<>).MakeGenericType(type.GenericTypeArguments); 592List<PropertyInfo> properties = GetAllProperties(type); 625List<PropertyInfo> properties, out string missing) 638List<string> missingParameters = new(); 868var list = new List<object?>(); 1109private static List<PropertyInfo> GetAllProperties( 1117var allProperties = new List<PropertyInfo>();
Microsoft.Extensions.Configuration.Binder.SourceGeneration (17)
ConfigurationBindingGenerator.Parser.cs (6)
24private readonly List<TypeParseInfo> _invocationTypeParseInfo = new(); 33public List<Diagnostic>? Diagnostics { get; private set; } 780List<ParameterSpec>? ctorParams = null; 785List<string>? missingParameters = null; 786List<string>? invalidParameters = null; 828static string FormatParams(List<string> names) => string.Join(",", names);
Emitter\CoreBindingHelpers.cs (2)
331List<string> ctorArgList = new(); 884List<PropertySpec>? initializeBoundProperties = null;
Parser\Extensions.cs (1)
138if (namedType.GetAllTypeArgumentsInScope() is List<ITypeSymbol> typeArgsInScope)
Parser\KnownTypeSymbols.cs (1)
112List = compilation.GetBestTypeByMetadataName(typeof(List<>));
Specs\InterceptorInfo.cs (5)
59private List<InvocationLocationInfo>? _interceptors_configBinder; 60private List<InvocationLocationInfo>? _interceptors_OptionsBuilderExt; 61private List<InvocationLocationInfo>? _interceptors_serviceCollectionExt; 111void RegisterInterceptor(ref List<InvocationLocationInfo>? infoList) 158private readonly List<InvocationLocationInfo> _infoList = new();
src\runtime\src\libraries\Common\src\SourceGenerators\TypeModelHelper.cs (2)
13public static List<ITypeSymbol>? GetAllTypeArgumentsInScope(this INamedTypeSymbol type) 20List<ITypeSymbol>? args = null;
Microsoft.Extensions.Configuration.Xml (5)
XmlConfigurationElement.cs (2)
23public IDictionary<string, List<XmlConfigurationElement>>? ChildrenBySiblingName { get; set; } 32public List<XmlConfigurationElementAttributeValue>? Attributes { get; set; }
XmlStreamConfigurationProvider.cs (3)
77if (!parent.ChildrenBySiblingName.TryGetValue(element.SiblingName, out var siblings)) 94var children = new Dictionary<string, List<XmlConfigurationElement>>(StringComparer.OrdinalIgnoreCase); 332foreach (var childrenWithSameSiblingName in element.ChildrenBySiblingName.Values)
Microsoft.Extensions.DataIngestion (19)
Chunkers\ElementsChunker.cs (2)
35internal IEnumerable<IngestionChunk<string>> Process(IngestionDocument document, string context, List<IngestionDocumentElement> elements) 38List<IngestionChunk<string>> chunks = [];
Chunkers\HeaderChunker.cs (2)
37List<IngestionDocumentElement> elements = []; 68private IEnumerable<IngestionChunk<string>> SplitIntoChunks(IngestionDocument document, string?[] headers, List<IngestionDocumentElement> elements)
Chunkers\SectionChunker.cs (3)
33List<IngestionChunk<string>> chunks = []; 47private void Process(IngestionDocument document, IngestionDocumentSection section, List<IngestionChunk<string>> chunks, string? parentContext = null) 49List<IngestionDocumentElement> elements = new(section.Elements.Count);
Chunkers\SemanticSimilarityChunker.cs (7)
52List<(IngestionDocumentElement, float)> distances = await CalculateDistancesAsync(document, cancellationToken).ConfigureAwait(false); 59private async Task<List<(IngestionDocumentElement element, float distance)>> CalculateDistancesAsync(IngestionDocument documents, CancellationToken cancellationToken) 61List<(IngestionDocumentElement element, float distance)> elementDistances = []; 62List<string> semanticContents = []; 96private IEnumerable<IngestionChunk<string>> MakeChunks(IngestionDocument document, List<(IngestionDocumentElement element, float distance)> elementDistances) 100List<IngestionDocumentElement> elementAccumulator = []; 118private float Percentile(List<(IngestionDocumentElement element, float distance)> elementDistances)
Processors\ImageAlternativeTextEnricher.cs (3)
40List<IngestionDocumentImage>? batch = null; 88private async Task ProcessAsync(List<IngestionDocumentImage> batch, CancellationToken cancellationToken) 90List<AIContent> contents = new(batch.Count);
Utils\Batching.cs (1)
30List<AIContent> contents = new(batch.Length);
Writers\VectorStoreWriter.cs (1)
180List<object> keys = [];
Microsoft.Extensions.DataIngestion.Tests (32)
IngestionPipelineTests.cs (16)
82List<Activity> activities = []; 90List<IngestionResult> ingestionResults = await pipeline.ProcessAsync(_sampleFiles).ToListAsync(); 97var retrieved = await vectorStoreWriter.VectorStoreCollection 115List<Activity> activities = []; 125List<IngestionResult> ingestionResults = await pipeline.ProcessAsync(directory, "*.md").ToListAsync(); 131var retrieved = await vectorStoreWriter.VectorStoreCollection 149List<Activity> activities = []; 158var ingestionResults = await pipeline.ProcessAsync(_sampleFiles).ToListAsync(); 161var retrieved = await vectorStoreWriter.VectorStoreCollection 197List<Activity> activities = []; 211List<IngestionResult> ingestionResults = await results.ToListAsync(); 228private static TracerProvider CreateTraceProvider(List<Activity> activities) 235private static void AssertAllIngestionsSucceeded(List<IngestionResult> ingestionResults) 244private static void AssertActivities(List<Activity> activities, string rootActivityName) 252private static void AssertErrorActivities(List<Activity> activities, int expectedFailedActivitiesCount) 257var failed = activities.Where(act => act.Status == ActivityStatusCode.Error).ToList();
Processors\ClassificationEnricherTests.cs (2)
109List<IngestionChunk<string>> chunks = CreateChunks(); 120private static List<IngestionChunk<string>> CreateChunks() =>
Processors\KeywordEnricherTests.cs (2)
109List<IngestionChunk<string>> chunks = CreateChunks(); 120private static List<IngestionChunk<string>> CreateChunks() =>
Processors\SentimentEnricherTests.cs (3)
75var chunks = await sut.ProcessAsync(input).ToListAsync(); 96List<IngestionChunk<string>> chunks = CreateChunks(); 107private static List<IngestionChunk<string>> CreateChunks() =>
Processors\SummaryEnricherTests.cs (3)
75var chunks = await sut.ProcessAsync(input).ToListAsync(); 93List<IngestionChunk<string>> chunks = CreateChunks(); 104private static List<IngestionChunk<string>> CreateChunks() =>
Writers\VectorStoreWriterTests.cs (6)
27List<IngestionChunk<string>> chunks = 76List<IngestionChunk<string>> chunks = 96List<IngestionChunk<string>> updatedChunks = 138List<IngestionChunk<string>> chunks = []; 152List<IngestionChunk<string>> updatedChunks = 161List<Dictionary<string, object?>> records = await writer.VectorStoreCollection
Microsoft.Extensions.DependencyInjection (26)
DependencyInjectionEventSource.cs (1)
30private readonly List<WeakReference<ServiceProvider>> _providers = new();
ServiceLookup\CallSiteChain.cs (1)
51var ordered = new List<KeyValuePair<ServiceIdentifier, ChainItemInfo>>(_callSiteChain);
ServiceLookup\CallSiteFactory.cs (6)
316List<KeyValuePair<int, ServiceCallSite>> callSitesByIndex = new(); 634List<ServiceIdentifier>? bestResolvedParameters = null; 635List<ServiceIdentifier>? resolvedParameters = null; 644var currentResolvedParameters = new List<ServiceIdentifier>(parameters.Length); 722List<ServiceIdentifier>? resolvedParameters = null) 893private List<ServiceDescriptor>? _items;
ServiceLookup\ILEmit\ILEmitResolverBuilderContext.cs (2)
14public List<object?>? Constants { get; set; } 15public List<Func<IServiceProvider, object>>? Factories { get; set; }
ServiceLookup\ServiceProviderEngineScope.cs (12)
27private List<object?>? _disposables; 127List<object?>? toDispose = BeginDispose(); 164List<object?>? toDispose = BeginDispose(); 208static async ValueTask Await(int i, ValueTask vt, List<object?> toDispose, object? exceptionsCache) 264((List<Exception>)exceptionsCache).Add(exception); 280throw new AggregateException((List<Exception>)exceptionsCache); 283private List<object?>? BeginDispose() 327private static void DeduplicateDisposables(List<object?> disposables) 396public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.RootProvider.CallSiteFactory.Descriptors); 397public List<object> Disposables => FilterDisposables(_serviceProvider.Disposables); 401private static List<object> FilterDisposables(IList<object?> source) 403var result = new List<object>(source.Count);
ServiceProvider.cs (4)
75List<Exception>? exceptions = null; 332public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.Root.RootProvider.CallSiteFactory.Descriptors); 333public List<object> Disposables 338var result = new List<object>(source.Count);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
18private readonly List<ServiceDescriptor> _descriptors = new List<ServiceDescriptor>();
Microsoft.Extensions.DependencyModel (43)
CompilationLibrary.cs (4)
51var assemblies = new List<string>(); 58var assemblies = new List<string>(); 74private List<string> ResolveReferencePaths(ICompilationAssemblyResolver resolver, List<string> assemblies)
DependencyContextJsonReader.cs (30)
139List<Target>? targets = null; 141List<RuntimeFallbacks>? runtimeFallbacks = null; 214private static Target? SelectRuntimeTarget([NotNull] List<Target>? targets, string? runtimeTargetName) 347private List<Target> ReadTargets(ref Utf8JsonReader reader) 351var targets = new List<Target>(); 374var libraries = new List<TargetLibrary>(); 396List<RuntimeFile>? runtimes = null; 397List<RuntimeFile>? natives = null; 398List<string>? compilations = null; 399List<RuntimeTargetEntryStub>? runtimeTargets = null; 400List<ResourceAssembly>? resources = null; 451private List<Dependency> ReadTargetLibraryDependencies(ref Utf8JsonReader reader) 453var dependencies = new List<Dependency>(); 476private static List<string> ReadPropertyNames(ref Utf8JsonReader reader) 478var runtimes = new List<string>(); 500private static List<RuntimeFile> ReadRuntimeFiles(ref Utf8JsonReader reader) 502var runtimeFiles = new List<RuntimeFile>(); 547private List<RuntimeTargetEntryStub> ReadTargetLibraryRuntimeTargets(ref Utf8JsonReader reader) 549var runtimeTargets = new List<RuntimeTargetEntryStub>(); 601private List<ResourceAssembly> ReadTargetLibraryResources(ref Utf8JsonReader reader) 603var resources = new List<ResourceAssembly>(); 726private static List<RuntimeFallbacks> ReadRuntimes(ref Utf8JsonReader reader) 728var runtimeFallbacks = new List<RuntimeFallbacks>(); 793var runtimeAssemblyGroups = new List<RuntimeAssetGroup>(); 794var nativeLibraryGroups = new List<RuntimeAssetGroup>(); 900public List<RuntimeFile>? Runtimes; 902public List<RuntimeFile>? Natives; 904public List<string>? Compilations; 906public List<RuntimeTargetEntryStub>? RuntimeTargets; 908public List<ResourceAssembly>? Resources;
Resolution\AppBaseCompilationAssemblyResolver.cs (3)
44public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string>? assemblies) 70var directories = new List<string>() 95var paths = new List<string>();
Resolution\CompositeCompilationAssemblyResolver.cs (1)
20public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string>? assemblies)
Resolution\ICompilationAssemblyResolver.cs (1)
10bool TryResolveAssemblyPaths(CompilationLibrary library, List<string>? assemblies);
Resolution\PackageCompilationAssemblyResolver.cs (2)
69public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string>? assemblies) 97List<string> paths = [];
Resolution\ReferenceAssemblyPathResolver.cs (1)
44public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string>? assemblies)
Utf8JsonReaderExtensions.cs (1)
74var items = new List<string?>();
Microsoft.Extensions.Diagnostics (13)
Metrics\DefaultMeterFactory.cs (3)
14private readonly Dictionary<string, List<FactoryMeter>> _cachedMeters = new(); 37if (_cachedMeters.TryGetValue(options.Name, out List<FactoryMeter>? meterList)) 74foreach (List<FactoryMeter> meterList in _cachedMeters.Values)
Metrics\MetricsSubscriptionManager.cs (1)
20var list = listeners.ToList();
Tracing\DefaultActivitySourceFactory.cs (9)
134List<TracingRule> rules = options.Rules; 232public void UpdateRules(List<TracingRule> rules, bool overwrite = true) 340private SourceFilterState ComputeFilterState(List<TracingRule> rules, string sourceName, bool isLocalScope) 371private bool IsOperationEnabled(List<TracingRule> rules, string sourceName, bool isLocalScope, string operationName) 412private static TracingRule? GetMostSpecificRule(List<TracingRule> rules, string sourceName, string? operationName, string? listenerName, bool isLocalScope, bool considerOperationName) 574public ListenerState(List<TracingRule> rules, bool hasOperationNameRules, Dictionary<(string Name, bool IsLocalScope), SourceFilterState> sourceFilterStates) 581public List<TracingRule> Rules { get; } 590public static ListenerState Create(List<TracingRule> rules) 596private static bool ComputeHasOperationNameRules(List<TracingRule> rules)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Tracing\TracingOptions.cs (1)
16public List<TracingRule> Rules { get; } = new List<TracingRule>();
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
HttpExceptionSummaryProvider.cs (1)
31var descriptions = new List<string>
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (2)
ExceptionSummarizerTests.cs (2)
20private static readonly List<string> _httpDescriptions = new List<string> { "TaskTimeout", "TaskCanceled" } 23private static readonly List<Type> _httpSupportedExceptionTypes =
Microsoft.Extensions.Diagnostics.HealthChecks (5)
DefaultHealthCheckService.cs (2)
270private readonly List<KeyValuePair<string, object>> _values; 316var values = _values;
HealthCheckPublisherHostedService.cs (3)
26private List<Timer>? _timers; 105private List<Timer> CreateTimers() 114var timers = new List<Timer>(delayPeriodGroups.Count);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (12)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
112List<string>? temp = null;
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherTests.cs (1)
23public static TheoryData<List<HealthStatus>, bool, int, string, LogLevel, string> PublishAsyncArgs => new()
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
205List<string>? temp = null;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (4)
30var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 31var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 79var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 80var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.Extensions.Diagnostics.Probes (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
187List<string>? temp = null;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 21var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (21)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
217List<string>? temp = null;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 21var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Windows\Disk\WindowsDiskIoRatePerfCounter.cs (1)
14private readonly List<IPerformanceCounter> _counters = [];
Windows\Disk\WindowsDiskIoTimePerfCounter.cs (1)
12private readonly List<IPerformanceCounter> _counters = [];
Windows\Disk\WindowsDiskMetrics.cs (4)
105List<string> diskIoRatePerfCounterNames = 134List<Measurement<long>> measurements = []; 159List<Measurement<long>> measurements = []; 184List<Measurement<double>> measurements = [];
Windows\Network\WindowsNetworkMetrics.cs (1)
48List<Measurement<long>> measurements = new(24);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes.Tests (1)
TestKubernetesEnvironmentSetup.cs (1)
13private readonly List<string> _environmentVariablesToCleanup = [];
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (10)
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();
Helpers\TestMeterFactory.cs (1)
12public List<Meter> Meters { get; } = new List<Meter>();
ResourceMonitoringServiceTests.cs (3)
42var publishersList = new List<IResourceUtilizationPublisher> 99var publishersList = new List<IResourceUtilizationPublisher> 131var publishersList = new List<IResourceUtilizationPublisher>
Windows\WindowsCountersTests.cs (2)
50var samples = new List<(Instrument instrument, long value)>(); 92var samples = new List<(Instrument instrument, long value)>();
Microsoft.Extensions.Diagnostics.Testing (8)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
621var temp83 = new List<Type>(); 1465List<string>? temp = null;
Logging\FakeLogCollector.cs (1)
21private readonly List<FakeLogRecord> _records = [];
Logging\FakeLogger.cs (2)
78var l = new List<object?>(); 146var l = new List<KeyValuePair<string, string?>>();
Metrics\MetricCollector.cs (3)
37private readonly List<CollectedMeasurement<T>> _measurements = []; 38private readonly List<Waiter> _waiters = []; 298List<Waiter>? toBeWoken = null;
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Logging\FakeLoggerTests.cs (2)
74var l = new List<KeyValuePair<string, object?>> 130var l = new List<KeyValuePair<string, object?>>
Metrics\MeasurementExtensionsTests.cs (4)
27var filtered = fullSnap.ContainsTags("A").ToList(); 52var filtered = fullSnap.ContainsTags(new KeyValuePair<string, object?>("A", "a")).ToList(); 77var filtered = fullSnap.MatchesTags("A", "B").ToList(); 105var filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a"), new("B", "b")).ToList();
Microsoft.Extensions.DotNetDeltaApplier (13)
src\sdk\src\Dotnet.Watch\HotReloadAgent\AgentReporter.cs (1)
13private readonly List<(string message, AgentMessageSeverity severity)> _log = [];
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (4)
31private readonly ConcurrentDictionary<Guid, List<RuntimeManagedCodeUpdate>> _moduleUpdates = new(); 113if (_moduleUpdates.TryGetValue(moduleId.Value, out var moduleUpdate) && _appliedAssemblies.TryAdd(loadedAssembly, loadedAssembly)) 152var cachedModuleUpdates = _moduleUpdates.GetOrAdd(update.ModuleId, static _ => []); 221List<Type>? types = null;
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (8)
39List<UpdateHandler<ContentUpdateAction>> updateContentHandlers) 152var sortedAssemblies = TopologicalSort(AppDomain.CurrentDomain.GetAssemblies()); 186var clearCacheHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 187var applicationUpdateHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 188var contentUpdateHandlers = new List<UpdateHandler<ContentUpdateAction>>(); 318internal static List<Assembly> TopologicalSort(Assembly[] assemblies) 320var sortedAssemblies = new List<Assembly>(assemblies.Length); 329static void Visit(Assembly[] assemblies, Assembly assembly, List<Assembly> sortedAssemblies, HashSet<string> visited)
Microsoft.Extensions.FileProviders.Composite (3)
CompositeDirectoryContents.cs (2)
19private List<IFileInfo>? _files; 21private List<IDirectoryContents>? _directories;
CompositeFileProvider.cs (1)
79var changeTokens = new List<IChangeToken>();
Microsoft.Extensions.FileProviders.Embedded (6)
EmbeddedFileProvider.cs (1)
158var entries = new List<IFileInfo>();
Manifest\ManifestDirectory.cs (1)
89var list = new List<ManifestEntry>(Children.Count);
Manifest\ManifestDirectoryInfo.cs (1)
60var entries = new List<IFileInfo>();
Manifest\ManifestParser.cs (3)
50var entriesList = new List<ManifestEntry>(); 64private static void ValidateEntries(List<ManifestEntry> entriesList) 100var children = new List<ManifestEntry>();
Microsoft.Extensions.FileSystemGlobbing (23)
InMemoryDirectoryInfo.cs (4)
62var fileList = new List<string>(files.Count()); 98var dict = new Dictionary<string, List<string>>(); 117if (!dict.TryGetValue(name, out List<string>? list)) 128foreach (KeyValuePair<string, List<string>> item in dict)
Internal\MatcherContext.cs (4)
22private readonly List<FilePatternMatch> _files; 42internal MatcherContext(List<IncludeOrExcludeValue<IPattern>> orderedPatterns, DirectoryInfoBase directoryInfo, StringComparison comparison) 74var entities = new List<FileSystemInfoBase?>(); 98var subDirectories = new List<DirectoryInfoBase>();
Internal\PathSegments\WildcardPathSegment.cs (2)
18public WildcardPathSegment(string beginsWith, List<string> contains, string endsWith, StringComparison comparisonType) 38public List<string> Contains { get; }
Internal\PatternContexts\PatternContextLinear.cs (1)
84private List<string>? _stemItems;
Internal\PatternContexts\PatternContextRagged.cs (1)
130private List<string>? _stemItems;
Internal\Patterns\PatternBuilder.cs (7)
41var allSegments = new List<IPathSegment>(); 44List<IPathSegment>? segmentsPatternStartsWith = null; 45List<IList<IPathSegment>>? segmentsPatternContains = null; 46List<IPathSegment>? segmentsPatternEndsWith = null; 114var contains = new List<string>(); 219public LinearPattern(List<IPathSegment> allSegments) 239public RaggedPattern(List<IPathSegment> allSegments, IList<IPathSegment> segmentsPatternStartsWith, IList<IPathSegment> segmentsPatternEndsWith, IList<IList<IPathSegment>> segmentsPatternContains)
Matcher.cs (3)
99private readonly List<IPattern>? _includePatterns; 100private readonly List<IPattern>? _excludePatterns; 101private readonly List<IncludeOrExcludeValue<IPattern>>? _includeOrExcludePatterns;
MatcherExtensions.cs (1)
64List<string> result = matches is ICollection matchCollection ? new(matchCollection.Count) : new();
Microsoft.Extensions.Hosting (22)
HostApplicationBuilder.cs (5)
143List<KeyValuePair<string, string?>>? optionList = null; 258private readonly List<Action<IConfigurationBuilder>> _configureHostConfigActions = new(); 259private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppConfigActions = new(); 260private readonly List<IConfigureContainerAdapter> _configureContainerActions = new(); 261private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new();
HostBuilder.cs (4)
28private readonly List<Action<IConfigurationBuilder>> _configureHostConfigActions = new List<Action<IConfigurationBuilder>>(); 29private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppConfigActions = new List<Action<HostBuilderContext, IConfigurationBuilder>>(); 30private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new List<Action<HostBuilderContext, IServiceCollection>>(); 31private readonly List<IConfigureContainerAdapter> _configureContainerActions = new List<IConfigureContainerAdapter>();
Internal\Host.cs (13)
33private List<Task>? _backgroundServiceTasks; 34private List<Exception>? _backgroundServiceExceptions; 89List<Exception> exceptions = new(); 136List<Exception>? validationFailures = null; 220List<Task> bgTasks = LazyInitializer.EnsureInitialized(ref _backgroundServiceTasks); 296List<Exception> exceptions = LazyInitializer.EnsureInitialized(ref _backgroundServiceExceptions); 331List<Exception> exceptions = new(); 406List<Exception>? backgroundServiceExceptions = Volatile.Read(ref _backgroundServiceExceptions); 441List<Exception> exceptions, 449List<Task>? tasks = null; 524private static List<IHostedLifecycleService>? GetHostLifecycles(IEnumerable<IHostedService> hostedServices) 526List<IHostedLifecycleService>? _result = null; 588public List<IHostedService> HostedServices => new List<IHostedService>(host._hostedServices ??= host.Services.GetRequiredService<IEnumerable<IHostedService>>());
Microsoft.Extensions.Hosting.Testing.Tests (2)
HostingFakesExtensionsTests.cs (2)
314var firstCallbackTarget = new List<string>(); 315var secondCallbackTarget = new List<string>();
Microsoft.Extensions.Http (5)
HttpClientFactoryOptions.cs (1)
106internal List<Action<HttpMessageHandlerBuilder>> LoggingBuilderActions { get; } = new List<Action<HttpMessageHandlerBuilder>>();
Logging\HttpHeadersLogValue.cs (4)
20private List<KeyValuePair<string, object>>? _values; 35private List<KeyValuePair<string, object>> Values 41var values = new List<KeyValuePair<string, object>>(GetHeaderCount(Headers) + GetHeaderCount(ContentHeaders)); 74private void AddHeaders(List<KeyValuePair<string, object>> values, HttpHeaders headers)
Microsoft.Extensions.Http.Diagnostics (20)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
112List<string>? temp = null;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 21var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Logging\Internal\HttpClientLogger.cs (4)
24private readonly ObjectPool<List<KeyValuePair<string, string>>> _headersPool = 71List<KeyValuePair<string, string>>? requestHeadersBuffer = null; 169List<KeyValuePair<string, string>>? responseHeadersBuffer = null; 201var requestHeadersBuffer = logRecord.RequestHeaders; // Store the value first, and then return logRecord to the pool.
Logging\Internal\HttpHeadersReader.cs (3)
41public void ReadRequestHeaders(HttpRequestMessage request, List<KeyValuePair<string, string>>? destination) 55public void ReadResponseHeaders(HttpResponseMessage response, List<KeyValuePair<string, string>>? destination) 76private void ReadHeaders(HttpHeaders headers, FrozenDictionary<string, DataClassification> headersToLog, List<KeyValuePair<string, string>> destination)
Logging\Internal\HttpRequestReader.cs (2)
101List<KeyValuePair<string, string>>? responseHeadersBuffer, 119List<KeyValuePair<string, string>>? requestHeadersBuffer, CancellationToken
Logging\Internal\IHttpHeadersReader.cs (2)
20void ReadRequestHeaders(HttpRequestMessage request, List<KeyValuePair<string, string>>? destination); 27void ReadResponseHeaders(HttpResponseMessage response, List<KeyValuePair<string, string>>? destination);
Logging\Internal\IHttpRequestReader.cs (2)
25List<KeyValuePair<string, string>>? responseHeadersBuffer, 37List<KeyValuePair<string, string>>? requestHeadersBuffer,
Logging\Internal\LoggerMessageStateExtensions.cs (2)
24public static void AddRequestHeaders(this LoggerMessageState state, List<KeyValuePair<string, string>> items, ref int index) 43public static void AddResponseHeaders(this LoggerMessageState state, List<KeyValuePair<string, string>> items, ref int index)
Logging\Internal\LogRecord.cs (2)
46public List<KeyValuePair<string, string>>? RequestHeaders { get; set; } 51public List<KeyValuePair<string, string>>? ResponseHeaders { get; set; }
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
HeadersReaderBenchmark.cs (1)
16private List<KeyValuePair<string, string>> _outputBuffer = null!;
Microsoft.Extensions.Http.Diagnostics.Tests (39)
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();
Logging\HttpClientLoggerTest.cs (6)
132It.IsAny<List<KeyValuePair<string, string>>>(), 533It.IsAny<List<KeyValuePair<string, string>>>(), 535.Returns((LogRecord a, HttpRequestMessage b, List<KeyValuePair<string, string>> c, CancellationToken d) => 542It.IsAny<List<KeyValuePair<string, string>>>(), 766var enrichers = new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }; 984.Setup(r => r.ReadResponseAsync(It.IsAny<LogRecord>(), It.IsAny<HttpResponseMessage>(), It.IsAny<List<KeyValuePair<string, string>>?>(), It.IsAny<CancellationToken>()))
Logging\HttpHeadersReaderTest.cs (9)
28var buffer = new List<KeyValuePair<string, string>>(); 66var buffer = new List<KeyValuePair<string, string>>(); 82var requestBuffer = new List<KeyValuePair<string, string>>(); 83var responseBuffer = new List<KeyValuePair<string, string>>(); 149List<KeyValuePair<string, string>> expectedRequest = [new KeyValuePair<string, string>("Header1", "Value.1")]; 150List<KeyValuePair<string, string>> expectedResponse = [new KeyValuePair<string, string>("Header3", "Value.3")]; 160List<KeyValuePair<string, string>> requestBuffer = []; 164List<KeyValuePair<string, string>> responseBuffer = []; 175List<KeyValuePair<string, string>>? responseBuffer = null;
Logging\HttpRequestReaderTest.cs (18)
103var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 104var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 162var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 163var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 234var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 235var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 310var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 311var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 371var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 372var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 443var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 444var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 512var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 513var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 582var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 583var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 669var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 909var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
Logging\Internal\MockedRequestReader.cs (2)
24List<KeyValuePair<string, string>>? buffer, 29List<KeyValuePair<string, string>>? buffer,
Logging\LoggerMessageStateExtensionsTests.cs (2)
37List<KeyValuePair<string, string>> headers = [new(Header1, "v1"), new(Header2, "v2")]; 52private delegate void AddHeadersDelegate(LoggerMessageState state, List<KeyValuePair<string, string>> items, ref int index);
Microsoft.Extensions.Http.Resilience (41)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
590List<string>? temp = null;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (26)
21var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 22var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 87var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 88var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 158var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 159var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 209var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 210var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 240var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 241var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 311var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 312var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 342var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 343var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 390var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 391var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 448var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 449var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 488var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 489var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(2); 536var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 537var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(2); 584var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 585var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 649var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 650var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Internal\RequestMessageSnapshot.cs (2)
17private readonly List<KeyValuePair<string, IEnumerable<string>>> _headers = []; 18private readonly List<KeyValuePair<string, object?>> _properties = [];
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Routing\Internal\WeightedGroups\WeightedGroupsRoutingStrategy.cs (1)
15private readonly List<WeightedUriEndpointGroup> _groups;
Microsoft.Extensions.Http.Resilience.Tests (14)
Hedging\HedgingTests.cs (2)
58public List<string> Requests { get; } = []; 60public List<ResilienceContext?> RequestContexts { get; } = [];
Hedging\StandardHedgingTests.cs (1)
240var requests = new List<HttpRequestMessage>();
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
228var requests = new List<HttpRequestMessage>();
Resilience\HttpResilienceMetricsEnricherTests.cs (3)
19var tags = new List<KeyValuePair<string, object?>>(); 32var tags = new List<KeyValuePair<string, object?>>(); 45var tags = new List<KeyValuePair<string, object?>>();
Routing\OrderedRoutingStrategyTest.cs (1)
60var groups = new List<UriEndpointGroup>(options.Groups)
Routing\WeightedRoutingStrategyTest.cs (6)
81var groups = new List<WeightedUriEndpointGroup>(options.Groups) 112var groups = new List<WeightedUriEndpointGroup>(options.Groups) 124var groups = new List<WeightedUriEndpointGroup>(options.Groups) 136var groups = new List<WeightedUriEndpointGroup>(options.Groups) 148var groups = new List<WeightedUriEndpointGroup>(options.Groups) 157var groups = new List<WeightedUriEndpointGroup>(options.Groups)
Microsoft.Extensions.Identity.Core (16)
IdentityResult.cs (2)
16private readonly List<IdentityError> _errors = new List<IdentityError>(); 52internal static IdentityResult Failed(List<IdentityError>? errors)
PasswordValidator.cs (1)
43List<IdentityError>? errors = null;
RoleManager.cs (1)
399List<IdentityError>? errors = null;
RoleValidator.cs (3)
38var errors = await ValidateRoleName(manager, role).ConfigureAwait(false); 46private async Task<List<IdentityError>?> ValidateRoleName(RoleManager<TRole> manager, TRole role) 48List<IdentityError>? errors = null;
UserManager.cs (4)
1959var results = new List<string>(); 2454var newCodes = new List<string>(number); 2930List<IdentityError>? errors = null; 2960List<IdentityError>? errors = null;
UserValidator.cs (5)
44var errors = await ValidateUserName(manager, user).ConfigureAwait(false); 52private async Task<List<IdentityError>?> ValidateUserName(UserManager<TUser> manager, TUser user) 54List<IdentityError>? errors = null; 82private async Task<List<IdentityError>?> ValidateEmail(UserManager<TUser> manager, TUser user, List<IdentityError>? errors)
Microsoft.Extensions.Identity.Stores (1)
UserStoreBase.cs (1)
978var updatedCodes = new List<string>(splitCodes.Where(s => s != code));
Microsoft.Extensions.Localization (1)
Internal\ResourceManagerStringProvider.cs (1)
76var names = new List<string>();
Microsoft.Extensions.Logging (16)
Logger.cs (10)
35List<Exception>? exceptions = null; 52static void LoggerLog(LogLevel logLevel, EventId eventId, ILogger logger, Exception? exception, Func<TState, Exception?, string> formatter, ref List<Exception>? exceptions, in TState state) 74List<Exception>? exceptions = null; 97static bool LoggerIsEnabled(LogLevel logLevel, ILogger logger, ref List<Exception>? exceptions) 131List<Exception>? exceptions = null; 155private static void ThrowLoggingError(List<Exception> exceptions) 172public List<LoggerProviderDebugView> Providers 176List<LoggerProviderDebugView> providers = new List<LoggerProviderDebugView>(); 209public List<object?>? Scopes 219List<object?> scopes = new List<object?>();
LoggerFactory.cs (5)
24private readonly List<ProviderRegistration> _providerRegistrations = new List<ProviderRegistration>(); 215var loggers = new List<LoggerInformation>(_providerRegistrations.Count); 232var messageLoggers = new List<MessageLogger>(); 233List<ScopeLogger>? scopeLoggers = _filterOptions.CaptureScopes ? new List<ScopeLogger>() : null; 337public List<ILoggerProvider> Providers => loggerFactory._providerRegistrations.Select(r => r.Provider).ToList();
LoggerFilterOptions.cs (1)
39internal List<LoggerFilterRule> RulesInternal { get; } = new List<LoggerFilterRule>();
Microsoft.Extensions.Logging.Abstractions (3)
LogValuesFormatter.cs (2)
19private readonly List<string> _valueNames = new List<string>(); 86public List<string> ValueNames => _valueNames;
LogValuesFormatterObsolete.cs (1)
32public List<string> ValueNames => _inner.ValueNames;
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLoggerProvider.cs (1)
18private readonly List<LogMessage> _currentBatch = new List<LogMessage>();
Microsoft.Extensions.Logging.Console (2)
_generated\0\BindingExtensions.g.cs (1)
536global::System.Collections.Generic.List<string>? temp = null;
ConsoleControlCharacterSanitizer.cs (1)
97var chars = new List<char>();
Microsoft.Extensions.Logging.EventLog (1)
_generated\0\BindingExtensions.g.cs (1)
118global::System.Collections.Generic.List<string>? temp = null;
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
437var rules = new List<LoggerFilterRule>();
Microsoft.Extensions.Logging.Generators (12)
LoggerMessageGenerator.Emitter.cs (1)
97var parentClasses = new List<string>();
LoggerMessageGenerator.Parser.cs (9)
41public List<Diagnostic> Diagnostics { get; } = new(); 68var results = new List<LoggerClass>(); 772var constraints = new List<string>(); 836private static bool ExtractTemplates(string? message, Dictionary<string, string> templateMap, List<string> templateList) 960public readonly List<LoggerMethod> Methods = new(); 1014public readonly List<LoggerParameter> AllParameters = new(); 1015public readonly List<LoggerParameter> TemplateParameters = new(); 1017public readonly List<string> TemplateList = new(); 1018public readonly List<LoggerMethodTypeParameter> TypeParameters = new();
LoggerMessageGenerator.Roslyn4.0.cs (2)
207var orderedLoggerClasses = allLogClasses 220var parts = new List<string>();
Microsoft.Extensions.Logging.MSBuild (5)
MSBuildLogger.cs (5)
99var unprocessedKeyValues = ProcessState(state, ref message, out string? originalFormat); 112private static void ProcessScope(object? scope, ref MSBuildMessageParameters message, ref string? originalFormat, List<KeyValuePair<string, object?>>? unprocessedKeyValues) 172private static void ApplyUnprocessedItemsToMessage(List<KeyValuePair<string, object?>>? unprocessedStateItems, string originalFormat, SpanBasedStringBuilder builder) 189private static List<KeyValuePair<string, object?>>? ProcessState<TState>(TState state, ref MSBuildMessageParameters message, out string? originalFormat) 192List<KeyValuePair<string, object?>>? unmappedStateItems = null;
Microsoft.Extensions.Options (9)
OptionsFactory.cs (4)
95List<string>? failures = null; 115List<string>? failures = null; 153private static void CollectFailures(ref List<string>? failures, ValidateOptionsResult? result) 161private static void ThrowIfValidationFailed(string name, List<string>? failures)
OptionsMonitor.cs (1)
22private readonly List<IDisposable> _registrations = new List<IDisposable>();
ValidateOnStart.cs (2)
26List<Exception>? exceptions = null; 65List<Exception>? exceptions = null;
ValidateOptionsResultBuilder.cs (2)
20private List<string>? _errors; 118private List<string> Errors => _errors ??= new();
Microsoft.Extensions.Options.Contextual (2)
Internal\ContextualOptionsFactory.cs (2)
79List<Exception>? loadExceptions = null; 133var failures = new List<string>();
Microsoft.Extensions.Options.Contextual.Tests (81)
ContextualOptionsFactoryTests.cs (81)
23var sut = new ContextualOptionsFactory<List<string>>( 24Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 25Enumerable.Empty<IConfigureOptions<List<string>>>(), 26Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 27Enumerable.Empty<IValidateOptions<List<string>>>()); 29var result = await new ContextualOptions<List<string>, IOptionsContext>(sut).GetAsync(Mock.Of<IOptionsContext>(), default); 37var sut = new ContextualOptionsFactory<List<string>>( 38Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 39Enumerable.Empty<IConfigureOptions<List<string>>>(), 40Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 41new[] { new ValidateOptions<List<string>>(null, _ => false, "epic fail") }); 50var sut = new ContextualOptionsFactory<List<string>>( 51Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 52Enumerable.Empty<IConfigureOptions<List<string>>>(), 53Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 54new[] { new ValidateOptions<List<string>>("Foo", _ => false, "epic fail") }); 65new LoadContextualOptions<List<string>>( 67(context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("configure"), context))), 70var sut = new ContextualOptionsFactory<List<string>>( 72Enumerable.Empty<IConfigureOptions<List<string>>>(), 73new[] { new PostConfigureOptions<List<string>>(string.Empty, (list) => list.Add("post configure")) }, 74Enumerable.Empty<IValidateOptions<List<string>>>()); 86new LoadContextualOptions<List<string>>( 88(context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("configure"), context))) 91var sut = new ContextualOptions<List<string>, IOptionsContext>(new ContextualOptionsFactory<List<string>>( 93Enumerable.Empty<IConfigureOptions<List<string>>>(), 94Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 95Enumerable.Empty<IValidateOptions<List<string>>>())); 106new LoadContextualOptions<List<string>>( 108(context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("configure"), context))), 111var sut = new ContextualOptionsFactory<List<string>>( 113Enumerable.Empty<IConfigureOptions<List<string>>>(), 114Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 115Enumerable.Empty<IValidateOptions<List<string>>>()); 124var sut = new ContextualOptionsFactory<List<string>>( 125Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 126Enumerable.Empty<IConfigureOptions<List<string>>>(), 127new[] { new PostConfigureOptions<List<string>>(null, (list) => list.Add("post configure")) }, 128Enumerable.Empty<IValidateOptions<List<string>>>()); 137var sut = new ContextualOptionsFactory<List<string>>( 138Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 139Enumerable.Empty<IConfigureOptions<List<string>>>(), 140new[] { new PostConfigureOptions<List<string>>("Foo", (list) => list.Add("post configure")) }, 141Enumerable.Empty<IValidateOptions<List<string>>>()); 150var sut = new ContextualOptionsFactory<List<string>>( 151Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 152new[] { new ConfigureOptions<List<string>>((list) => list.Add("pre configure")) }, 153Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 154Enumerable.Empty<IValidateOptions<List<string>>>()); 170var loaders = new LoadContextualOptions<List<string>>[] 175return new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("1"), context)); 180return new ConfigureContextualOptions<List<string>>((_, list) => list.Add("2"), context); 185return new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("3"), context)); 190return new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("4"), context)); 194var sut = new ContextualOptionsFactory<List<string>>( 196Enumerable.Empty<IConfigureOptions<List<string>>>(), 197Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 198Enumerable.Empty<IValidateOptions<List<string>>>()); 210var loaders = new LoadContextualOptions<List<string>>[] 212new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))), 216var sut = new ContextualOptionsFactory<List<string>>( 218Enumerable.Empty<IConfigureOptions<List<string>>>(), 219Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 220Enumerable.Empty<IValidateOptions<List<string>>>()); 233var disposeMock = new Mock<IConfigureContextualOptions<List<string>>>(); 235var loaders = new LoadContextualOptions<List<string>>[] 237new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))), 238new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(disposeMock.Object)), 241var sut = new ContextualOptionsFactory<List<string>>( 243Enumerable.Empty<IConfigureOptions<List<string>>>(), 244Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 245Enumerable.Empty<IValidateOptions<List<string>>>());
Microsoft.Extensions.Options.DataAnnotations (9)
DataAnnotationValidateOptions.Async.cs (5)
55var validationResults = new List<ValidationResult>(); 57List<string>? errors = null; 83private static async Task<(bool success, List<string>? errors)> TryValidateOptionsAsync( 86List<ValidationResult> results, 87List<string>? errors,
DataAnnotationValidateOptions.cs (4)
65var validationResults = new List<ValidationResult>(); 67List<string>? errors = null; 81private static bool TryValidateOptions(object options, string qualifiedName, List<ValidationResult> results, ref List<string>? errors, ref HashSet<object>? visited)
Microsoft.Extensions.Options.SourceGeneration (20)
Emitter.cs (2)
904var members = modelToValidate.MembersToValidate; 1181var attrInstantiationStatementLines = new List<string>();
Model\ValidatedMember.cs (1)
10List<ValidationAttributeInfo> ValidationAttributes,
Model\ValidatedModel.cs (1)
15List<ValidatedMember> MembersToValidate);
Model\ValidationAttributeInfo.cs (1)
10public List<string> ConstructorArguments { get; } = new();
Model\ValidatorType.cs (1)
13List<string> ParentTypes,
Parser.cs (14)
59var results = new List<ValidatorType>(); 81var modelTypes = GetModelTypes(validatorType); 89var modelsValidatorTypeValidates = new List<ValidatedModel>(modelTypes.Count); 142var membersToValidate = GetMembersToValidate(modelType, true, lowerLocationInCompilation, validatorType, generateAsync); 166var parents = new List<string>(); 376private List<ValidatedMember> GetMembersToValidate(ITypeSymbol modelType, bool speculate, Location lowerLocationInCompilation, ITypeSymbol validatorType, bool isAsync) 386var members = modelType.GetMembers().ToList(); 402var membersToValidate = new List<ValidatedMember>(); 451var validationAttrs = new List<ValidationAttributeInfo>(); 676var membersToValidate = GetMembersToValidate(memberType, false, location, validatorType, isAsync); 692var membersToValidate = GetMembersToValidate(enumeratedType, false, location, validatorType, isAsync); 831var membersToValidate = GetMembersToValidate(mt, true, location, validatorType, isAsync); 945private List<ITypeSymbol> GetModelTypes(ITypeSymbol validatorType) 947var result = new List<ITypeSymbol>();
Microsoft.Extensions.Primitives (2)
CompositeChangeToken.cs (2)
26private List<IDisposable>? _disposables; 157List<IDisposable>? disposables = compositeChangeTokenState._disposables;
Microsoft.Extensions.Resilience.Tests (1)
Resilience\ResilienceMetricsEnricherTests.cs (1)
24private List<KeyValuePair<string, object?>> _tags = [];
Microsoft.Extensions.ServiceDiscovery (9)
Configuration\ConfigurationServiceEndpointProvider.cs (2)
106List<ServiceEndpoint> resolved = []; 190private void AddEndpoint(List<ServiceEndpoint> endpoints, IConfigurationSection section, string endpointName)
Http\HttpServiceEndpointResolver.cs (1)
138List<Task>? cleanupTasks = null;
ServiceDiscoveryOptions.cs (1)
55List<string> result = [];
ServiceEndpointBuilder.cs (2)
14private readonly List<ServiceEndpoint> _endpoints = new(); 15private readonly List<IChangeToken> _changeTokens = new();
ServiceEndpointResolver.cs (1)
147List<Task>? cleanupTasks = null;
ServiceEndpointWatcherFactory.cs (1)
38List<IServiceEndpointProvider>? providers = null;
ServiceEndpointWatcherFactory.Log.cs (1)
15public static void CreatingResolver(ILogger logger, string serviceName, List<IServiceEndpointProvider> providers)
Microsoft.Extensions.ServiceDiscovery.Abstractions (2)
ServiceEndpointSource.cs (2)
17private readonly List<ServiceEndpoint>? _endpoints; 25public ServiceEndpointSource(List<ServiceEndpoint>? endpoints, IChangeToken changeToken, IFeatureCollection features)
Microsoft.Extensions.ServiceDiscovery.Dns (33)
DnsServiceEndpointProvider.cs (1)
31var endpoints = new List<ServiceEndpoint>();
DnsServiceEndpointProviderBase.cs (2)
23private List<ServiceEndpoint>? _lastEndpointCollection; 105protected void SetResult(List<ServiceEndpoint> endpoints, TimeSpan validityPeriod)
DnsSrvServiceEndpointProvider.cs (1)
34var endpoints = new List<ServiceEndpoint>();
FallbackDnsResolver.cs (4)
54var lookupMapping = new Dictionary<string, List<AddressResult>>(); 57if (!lookupMapping.TryGetValue(record.DomainName, out var addresses)) 70var srvRecords = queryResult.Answers.OfType<SrvRecord>().ToList(); 84Addresses = lookupMapping.TryGetValue(record.Target, out var addresses)
Resolver\DnsPrimitives.cs (2)
161private static bool TryReadQNameCore(List<ReadOnlyMemory<byte>> labels, int totalLength, ReadOnlyMemory<byte> messageBuffer, int offset, out int bytesRead, bool canStartWithPointer = true) 258List<ReadOnlyMemory<byte>> labels = new List<ReadOnlyMemory<byte>>();
Resolver\DnsResolver.cs (14)
76var results = new List<ServiceResult>(response.Answers.Count); 87List<AddressResult> addresses = new List<AddressResult>(); 157List<AddressResult> results = new List<AddressResult>(response.Answers.Count); 221Dictionary<EncodedDomainName, List<AddressResult>> aRecordMap = new(); 246if (!aRecordMap.TryGetValue(answer.Name, out List<AddressResult>? addressList)) 279aRecordMap.TryGetValue(currentAlias, out List<AddressResult>? finalAddressList); 573if (!TryReadRecords(header.AnswerCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? answers) || 574!TryReadRecords(header.AuthorityCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? authorities) || 575!TryReadRecords(header.AdditionalRecordCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? additionals)) 600static bool TryReadRecords(int count, ref int ttl, ref DnsDataReader reader, out List<DnsResourceRecord> records) 622internal static bool GetNegativeCacheExpiration(DateTime createdAt, List<DnsResourceRecord> authorities, out DateTime expiration) 649internal static SendQueryError ValidateResponse(QueryResponseCode responseCode, DateTime createdAt, List<DnsResourceRecord> answers, List<DnsResourceRecord> authorities, ref DateTime expiration) 918List<ReadOnlyMemory<byte>> labels = new();
Resolver\DnsResponse.cs (6)
11public List<DnsResourceRecord> Answers { get; } 12public List<DnsResourceRecord> Authorities { get; } 13public List<DnsResourceRecord> Additionals { get; } 18public DnsResponse(ArraySegment<byte> rawData, DnsMessageHeader header, DateTime createdAt, DateTime expiration, List<DnsResourceRecord> answers, List<DnsResourceRecord> authorities, List<DnsResourceRecord> additionals)
Resolver\EncodedDomainName.cs (1)
14public EncodedDomainName(List<ReadOnlyMemory<byte>> labels, byte[]? pooledBuffer = null)
Resolver\NetworkInfo.cs (1)
14List<IPEndPoint> servers = new List<IPEndPoint>();
Resolver\ResolvConf.cs (1)
20List<IPEndPoint> serverList = new();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (13)
Resolver\LoopbackDnsServer.cs (13)
144public List<(string, QueryType, QueryClass)> Questions { get; } = new List<(string, QueryType, QueryClass)>(); 145public List<DnsResourceRecord> Answers { get; } = new List<DnsResourceRecord>(); 146public List<DnsResourceRecord> Authorities { get; } = new List<DnsResourceRecord>(); 147public List<DnsResourceRecord> Additionals { get; } = new List<DnsResourceRecord>(); 228var encodedLabels = name.Split('.', StringSplitOptions.RemoveEmptyEntries).Select(label => (ReadOnlyMemory<byte>)Encoding.UTF8.GetBytes(s_idnMapping.GetAscii(label))) 234public static List<DnsResourceRecord> AddAddress(this List<DnsResourceRecord> records, string name, int ttl, IPAddress address) 241public static List<DnsResourceRecord> AddCname(this List<DnsResourceRecord> records, string name, int ttl, string alias) 253public static List<DnsResourceRecord> AddService(this List<DnsResourceRecord> records, string name, int ttl, ushort priority, ushort weight, ushort port, string target) 272public static List<DnsResourceRecord> AddStartOfAuthority(this List<DnsResourceRecord> records, string name, int ttl, string mname, string rname, uint serial, uint refresh, uint retry, uint expire, uint minimum)
Microsoft.Extensions.ServiceDiscovery.Tests (2)
ExtensionsServicePublicApiTests.cs (2)
198List<ServiceEndpoint>? endpoints = null; 211List<ServiceEndpoint>? endpoints = null;
Microsoft.Extensions.ServiceDiscovery.Yarp (5)
ServiceDiscoveryDestinationResolver.cs (5)
27var tasks = new List<Task<(List<(string Name, DestinationConfig Config)>, IChangeToken ChangeToken)>>(destinations.Count); 34var changeTokens = new List<IChangeToken>(); 52private async Task<(List<(string Name, DestinationConfig Config)>, IChangeToken ChangeToken)> ResolveHostAsync( 61var results = new List<(string Name, DestinationConfig Config)>(result.Endpoints.Count);
Microsoft.Extensions.Telemetry (36)
Enrichment\ApplicationLogEnricher.cs (1)
35var l = new List<KeyValuePair<string, object>>();
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
422List<string>? temp = null;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (6)
21var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 22var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 51var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 52var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1); 98var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 99var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Http\HttpRouteParser.cs (1)
103var segments = new List<Segment>();
Logging\ExtendedLogger.cs (4)
82List<Exception>? exceptions = null; 105List<Exception>? exceptions = null; 250List<Exception>? exceptions = null; 372List<Exception>? exceptions = null;
Logging\ExtendedLogger.EnrichmentTagCollector.cs (1)
14internal sealed class EnrichmentTagCollector(List<KeyValuePair<string, object?>> extraTags) : IEnrichmentTagCollector
Logging\ExtendedLogger.LegacyTagJoiner.cs (1)
22private readonly List<KeyValuePair<string, object?>> _extraTags = new(TagCapacity);
Logging\ExtendedLogger.ModernTagJoiner.cs (1)
23private readonly List<KeyValuePair<string, object?>> _extraTags = new(TagCapacity);
Logging\ExtendedLoggerFactory.cs (5)
23private readonly List<ProviderRegistration> _providerRegistrations = []; 101var tags = new List<KeyValuePair<string, object?>>(); 223var loggers = new List<LoggerInformation>(_providerRegistrations.Count); 241var messageLoggers = new List<MessageLogger>(); 242List<ScopeLogger>? scopeLoggers = _filterOptions.CaptureScopes ? [] : null;
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\LogBuffering\SerializedLogRecord.cs (2)
34List<KeyValuePair<string, object?>> attributes, 66public List<KeyValuePair<string, object?>> Attributes { get; }
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\LogBuffering\SerializedLogRecordFactory.cs (2)
15private static readonly ObjectPool<List<KeyValuePair<string, object?>>> _attributesPool = 29List<KeyValuePair<string, object?>> serializedAttributes = _attributesPool.Get();
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Telemetry.Abstractions (14)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (2)
22var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 23var validationAttributes = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationAttribute>(1);
Latency\Registration\LatencyContextRegistrationOptions.cs (1)
38if (list is List<string> l)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Logging\LoggerMessageHelperTests.cs (1)
41var d2 = new List<KeyValuePair<string?, string?>>
Microsoft.Extensions.Telemetry.Tests (21)
Logging\ExtendedLoggerFactoryTests.cs (2)
557public List<string> LogText { get; set; } = []; 596public List<string> LogText { get; set; } = [];
Logging\ExtendedLoggerTests.cs (7)
452List<Exception> exceptions = []; 660var store = new List<string>(); 890List<KeyValuePair<string, object?>> list = 1037private readonly List<string> _store; 1039public CustomLoggerProvider(string providerName, ThrowExceptionAt throwExceptionAt, List<string> store) 1061private readonly List<string> _store; 1063public CustomLogger(string name, ThrowExceptionAt throwExceptionAt, List<string> store)
Sampling\LogSamplingRuleSelectorTests.cs (8)
20var rules = new List<RandomProbabilisticSamplerFilterRule> 51var rules = new List<RandomProbabilisticSamplerFilterRule> 75var rules = new List<RandomProbabilisticSamplerFilterRule> 93var rules = new List<RandomProbabilisticSamplerFilterRule> 111var rules = new List<RandomProbabilisticSamplerFilterRule> 129var rules = new List<RandomProbabilisticSamplerFilterRule> 147var rules = new List<RandomProbabilisticSamplerFilterRule> 164var rules = new List<RandomProbabilisticSamplerFilterRule>
Sampling\SamplingLoggerBuilderExtensionsTests.cs (4)
55List<RandomProbabilisticSamplerFilterRule> expectedData = 79List<RandomProbabilisticSamplerFilterRule> initialData = 85List<RandomProbabilisticSamplerFilterRule> updatedData = 212List<RandomProbabilisticSamplerFilterRule> expectedData =
Microsoft.Extensions.TimeProvider.Testing.Tests (4)
FakeTimeProviderTests.cs (1)
504var calls = new List<object?>();
TimerTests.cs (3)
273var callbackTimes = new List<DateTimeOffset>(); 298var callbacks = new List<(int timerId, TimeSpan callbackTime)>(); 334var timers = new List<ITimer>();
Microsoft.Extensions.Validation (3)
ValidateContext.cs (3)
13private Dictionary<string, List<ValidationError>>? _validationErrors; 65_validationErrors ??= new Dictionary<string, List<ValidationError>>(); 67if (!_validationErrors.TryGetValue(validationError.Path, out var existingErrors))
Microsoft.Extensions.Validation.ValidationsGenerator (7)
Parsers\ValidationsGenerator.AttributeParser.cs (1)
22List<ITypeSymbol> visitedTypes = [];
Parsers\ValidationsGenerator.TypesParser.cs (5)
44List<ITypeSymbol> visitedTypes = []; 65internal static bool TryExtractValidatableType(ITypeSymbol incomingTypeSymbol, WellKnownTypes wellKnownTypes, HashSet<ValidatableType> validatableTypes, List<ITypeSymbol> visitedTypes) 174private static ImmutableArray<ValidatableProperty> ExtractValidatableMembers(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, HashSet<ValidatableType> validatableTypes, List<ITypeSymbol> visitedTypes) 176var members = new List<ValidatableProperty>(); 177var resolvedRecordProperty = new List<IPropertySymbol>();
src\aspnetcore\src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
21private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Microsoft.Extensions.VectorData.Abstractions (7)
FilteredRecordRetrievalOptions.cs (1)
55private readonly List<SortInfo> _values = [];
ProviderServices\CollectionModel.cs (1)
165var fullTextStringProperties = DataProperties
ProviderServices\CollectionModelBuilder.cs (3)
33protected List<KeyPropertyModel> KeyProperties { get; } = []; 38protected List<DataPropertyModel> DataProperties { get; } = []; 43protected List<VectorPropertyModel> VectorProperties { get; } = [];
ProviderServices\Filter\FilterTranslatorBase.cs (2)
55} when declaringType.GetGenericTypeDefinition() == typeof(List<>): 242private List<string>? _parameterNames;
Microsoft.Extensions.VectorData.ConformanceTests (56)
DistanceFunctionTests.cs (4)
74List<SearchRecord> insertedRecords = 106var results = await collection.SearchAsync(baseVector, top: 3).ToListAsync(); 140var results = await collection 146var filteredResults = await collection
EmbeddingGenerationTests.cs (2)
461protected override List<Record> BuildTestData() => 532protected override List<RecordWithRomOfFloatVectorProperty> BuildTestData() =>
FilterTests.cs (9)
311r => ((List<string>)r["StringList"]!).Contains("x")); 391List<string> tagsToFind = ["x", "z", "nonexistent"]; 405r => ((List<string>)r["StringList"]!).Any(s => tagsToFind.Contains(s))); 490var expected = fixture.TestData.AsQueryable().Where(filter).OrderBy(r => r.Key).ToList(); 512var actual = await fixture.Collection.SearchAsync( 532var dynamicActual = await fixture.DynamicCollection.SearchAsync( 561public List<string> StringList { get; set; } = null!; 601new VectorStoreDataProperty(nameof(FilterRecord.StringList), typeof(List<string>)) { IsIndexed = true } 605protected override List<FilterRecord> BuildTestData()
HybridSearchTests.cs (9)
28var results = await vectorAndStringFixture.HybridSearchable.HybridSearchAsync(vector, ["Grapes"], top: 3).ToListAsync(); 44var results = await vectorAndStringFixture.HybridSearchable 65var results = await vectorAndStringFixture.HybridSearchable.HybridSearchAsync(vector, ["Oranges"], top: 1).ToListAsync(); 82var results = await vectorAndStringFixture.HybridSearchable.HybridSearchAsync(vector, ["healthy"], top: 3, new() { Skip = 2 }).ToListAsync(); 97var results = await vectorAndStringFixture.HybridSearchable.HybridSearchAsync(vector, ["tangy", "nourishing"], top: 3).ToListAsync(); 114var results1 = await multiTextFixture.HybridSearchable 117var results2 = await multiTextFixture.HybridSearchable 174protected override List<VectorAndStringRecord<TKey>> BuildTestData() 229protected override List<MultiTextStringRecord<TKey>> BuildTestData()
ModelTests\BasicModelTests.cs (10)
79var received = await Collection.GetAsync(ids).ToListAsync(); 104var results = await Collection.GetAsync( 127var ascendingNumbers = fixture.TestData.Where(r => r.Number > 1).OrderBy(r => r.Number).Take(2).Select(r => r.Number).ToList(); 128var descendingNumbers = fixture.TestData.Where(r => r.Number > 1).OrderByDescending(r => r.Number).Take(2).Select(r => r.Number).ToList(); 133var results = await Collection.GetAsync( 155var ascendingNumbers = fixture.TestData 159var descendingNumbers = fixture.TestData 169var results = await Collection.GetAsync( 191var results = await Collection.GetAsync( 469protected override List<Record> BuildTestData() =>
ModelTests\DynamicModelTests.cs (9)
89var results = await fixture.Collection.GetAsync( 110var ascendingNumbers = fixture.TestData 117var descendingNumbers = fixture.TestData 128var results = await fixture.Collection.GetAsync( 150var ascendingNumbers = fixture.TestData 157var descendingNumbers = fixture.TestData 167var results = await fixture.Collection.GetAsync( 189var results = await fixture.Collection.GetAsync( 413protected override List<Dictionary<string, object?>> BuildTestData() =>
ModelTests\MultiVectorModelTests.cs (1)
84protected override List<MultiVectorRecord> BuildTestData() =>
ModelTests\NoDataModelTests.cs (1)
59protected override List<NoDataRecord> BuildTestData() =>
ModelTests\NoVectorModelTests.cs (1)
60protected override List<NoVectorRecord> BuildTestData() =>
Support\VectorStoreCollectionFixtureBase.cs (2)
20protected virtual List<TRecord> BuildTestData() => []; 55public List<TRecord> TestData => field ??= BuildTestData();
TestSuiteImplementationTests.cs (2)
21var concreteTests 26var nonImplementedBases
TypeTests\DataTypeTests.cs (3)
253List<TRecord> testData = [mainRecord, otherRecord]; 299List<Dictionary<string, object?>> testData = [mainRecord, otherRecord]; 484var properties = new List<VectorStoreDataProperty>();
TypeTests\KeyTypeTests.cs (3)
86var results = await collection.GetAsync([key1, key2]).ToListAsync(); 134var dynamicResults = await dynamicCollection.GetAsync([key1, key2]).ToListAsync(); 205var results = await collectionWithAutoGeneration.GetAsync([key1, recordWithDefaultValueKey1.Key, recordWithDefaultValueKey2.Key, recordWithDefaultValueKey3.Key]).ToListAsync();
Microsoft.Gen.BuildMetadata.Unit.Tests (9)
GeneratorTests.cs (2)
100var compilationDiagnostics = outputCompilation.GetDiagnostics() 107var unexpectedDiagnostics = compilationDiagnostics
RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Gen.ComplianceReports (8)
ClassifiedItem.cs (1)
18public List<Classification> Classifications = [];
ClassifiedLogMethod.cs (1)
15public List<ClassifiedItem> Parameters = [];
ClassifiedType.cs (2)
14public List<ClassifiedItem>? Members; 15public List<ClassifiedLogMethod>? LogMethods;
Parser.cs (4)
32var result = new List<ClassifiedType>(); 74var classifiedLogMethods = GetClassifiedLogMethods(typeSymbol); 199private List<ClassifiedLogMethod>? GetClassifiedLogMethods(ITypeSymbol typeSymbol) 201List<ClassifiedLogMethod>? classifiedLogMethods = null;
Microsoft.Gen.ComplianceReports.Unit.Tests (7)
RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Gen.ContextualOptions (7)
ContextReceiver.cs (3)
24private readonly List<TypeDeclarationSyntax> _typeDeclarations = []; 37public bool TryGetTypeDeclarations(Compilation compilation, out Dictionary<INamedTypeSymbol, List<TypeDeclarationSyntax>>? typeDeclarations) 51.ToDictionary<IGrouping<ISymbol?, TypeDeclarationSyntax>, INamedTypeSymbol, List<TypeDeclarationSyntax>>(
ContextualOptionsGenerator.cs (2)
43.ToDictionary<IGrouping<ISymbol?, TypeDeclarationSyntax>, INamedTypeSymbol, List<TypeDeclarationSyntax>>( 46var list = new List<OptionsContextType>();
OptionsContextType.cs (1)
13public readonly List<Diagnostic> Diagnostics = [];
Parser.cs (1)
16public static IEnumerable<OptionsContextType> GetContextualOptionTypes(Dictionary<INamedTypeSymbol, List<TypeDeclarationSyntax>> types) =>
Microsoft.Gen.ContextualOptions.Generated.Tests (1)
ContextualOptionsTests.cs (1)
18public List<(string key, object? value)> Received { get; } = [];
Microsoft.Gen.ContextualOptions.Unit.Tests (9)
ContextualOptionsTests.cs (1)
18public List<(string key, object? value)> Received { get; } = [];
EmitterTests.cs (1)
130var sources = new List<string>();
RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Gen.Logging (26)
Emitter.cs (1)
45var parentTypes = new List<string>();
Emitter.Method.cs (2)
539var templates = lm.GetTemplatesForParameter(p); 568var templates = lm.GetTemplatesForParameter(p);
LoggingMethod.cs (5)
17public readonly List<LoggingMethodParameter> Parameters = []; 18public readonly List<string> Templates = []; 19public readonly List<LoggingMethodTypeParameter> TypeParameters = []; 46public List<string> GetTemplatesForParameter(LoggingMethodParameter lp) 60public List<string> GetTemplatesForParameter(string parameterName)
LoggingMethodParameter.cs (1)
34public List<LoggingProperty> Properties = [];
LoggingProperty.cs (1)
24public List<LoggingProperty> Properties = [];
LoggingType.cs (2)
15public readonly List<LoggingMethod> Methods = []; 16public readonly List<string> AllMembers = [];
Parser.cs (3)
56var results = new List<LoggingType>(); 491var constraints = new List<string>(); 529private static List<INamedTypeSymbol> GetDataClassificationAttributes(ISymbol symbol, SymbolHolder symbols)
Parser.LogProperties.cs (7)
54var props = GetTypePropertiesToLog(paramTypeSymbol, typesChain, symbols, transitive, ref foundDataClassificationAttributes); 83List<LoggingProperty>? GetTypePropertiesToLog( 90var result = new List<LoggingProperty>(); 104var sensitivePropsFromCtor = new Dictionary<string, List<INamedTypeSymbol>>(); 113var maybeDataClasses = GetDataClassificationAttributes(parameter, symbols); 172if (sensitivePropsFromCtor.TryGetValue(property.Name, out var dataClassesFromCtor)) 279var props = GetTypePropertiesToLog(extractedType, typesChain, symbols, transitive, ref foundDataClassificationAttributes);
Parser.Records.cs (3)
40var recordDataClassAttributes = GetDataClassificationAttributes(namedType, symbols); 81var parameterDataClassAttributes = GetDataClassificationAttributes(param, symbols); 138var propertyDataClassAttributes = GetDataClassificationAttributes(m, symbols);
TemplateProcessor.cs (1)
21internal static bool ExtractTemplates(string? message, List<string> templates)
Microsoft.Gen.Logging.Generated.Tests (3)
parent\TestClasses\EnumerableTestExtensions.cs (1)
62private static readonly List<int> _numbers = [1, 2, 3];
parent\TestClasses\LogPropertiesNullHandlingExtensions.cs (1)
35public List<int>? P10 { get; set; }
parent\TestClasses\TransitiveTestExtensions.cs (1)
25public List<string> P3 { get; set; } = [];
Microsoft.Gen.Logging.Unit.Tests (9)
CompilationHelper.cs (1)
28var refs = new List<MetadataReference>();
EmitterTests.cs (1)
25var sources = new List<string>();
RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Gen.MetadataExtractor (20)
ClassifiedItem.cs (1)
18public List<Classification> Classifications = [];
ClassifiedLogMethod.cs (1)
15public List<ClassifiedItem> Parameters = [];
ClassifiedType.cs (2)
14public List<ClassifiedItem>? Members; 15public List<ClassifiedLogMethod>? LogMethods;
MetricMethod.cs (2)
10public readonly List<MetricParameter> AllParameters = []; 23public List<StrongTypeConfig> StrongTypeConfigs = []; // Used for strong type creation only
MetricType.cs (1)
10public readonly List<MetricMethod> Methods = [];
Parser_2.cs (8)
66var results = new List<MetricType>(); 651var tagConfigs = BuildTagConfigs(member, typesChain, strongTypeAttributeParameters.TagHashSet, 688private List<StrongTypeConfig> BuildTagConfigs( 696var tagConfigs = new List<StrongTypeConfig>(); 864private List<StrongTypeConfig> WalkObjectModel( 875var tagConfigs = new List<StrongTypeConfig>(); 906private List<StrongTypeConfig> GetParentTagConfigs( 912var tagConfigs = new List<StrongTypeConfig>();
Parser.cs (4)
32var result = new List<ClassifiedType>(); 74var classifiedLogMethods = GetClassifiedLogMethods(typeSymbol); 199private List<ClassifiedLogMethod>? GetClassifiedLogMethods(ITypeSymbol typeSymbol) 201List<ClassifiedLogMethod>? classifiedLogMethods = null;
StrongTypeAttributeParameters.cs (1)
15public List<StrongTypeConfig> StrongTypeConfigs = [];
Microsoft.Gen.MetadataExtractor.Unit.Tests (7)
RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Gen.Metrics (17)
Emitter.cs (3)
23Dictionary<string, List<MetricType>> metricClassesDict = []; 26if (!metricClassesDict.TryGetValue(cl.Namespace, out var list)) 104var parentTypes = new List<string>();
MetricFactoryEmitter.cs (2)
19Dictionary<string, List<MetricType>> metricClassesDict = []; 22if (!metricClassesDict.TryGetValue(cl.Namespace, out var list))
MetricMethod.cs (2)
10public readonly List<MetricParameter> AllParameters = []; 23public List<StrongTypeConfig> StrongTypeConfigs = []; // Used for strong type creation only
MetricType.cs (1)
10public readonly List<MetricMethod> Methods = [];
Parser.cs (8)
66var results = new List<MetricType>(); 651var tagConfigs = BuildTagConfigs(member, typesChain, strongTypeAttributeParameters.TagHashSet, 688private List<StrongTypeConfig> BuildTagConfigs( 696var tagConfigs = new List<StrongTypeConfig>(); 864private List<StrongTypeConfig> WalkObjectModel( 875var tagConfigs = new List<StrongTypeConfig>(); 906private List<StrongTypeConfig> GetParentTagConfigs( 912var tagConfigs = new List<StrongTypeConfig>();
StrongTypeAttributeParameters.cs (1)
15public List<StrongTypeConfig> StrongTypeConfigs = [];
Microsoft.Gen.Metrics.Unit.Tests (8)
EmitterTests.cs (1)
23var sources = new List<string>();
RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Gen.MetricsReports (12)
MetricMethod.cs (2)
10public readonly List<MetricParameter> AllParameters = []; 23public List<StrongTypeConfig> StrongTypeConfigs = []; // Used for strong type creation only
MetricType.cs (1)
10public readonly List<MetricMethod> Methods = [];
Parser.cs (8)
66var results = new List<MetricType>(); 651var tagConfigs = BuildTagConfigs(member, typesChain, strongTypeAttributeParameters.TagHashSet, 688private List<StrongTypeConfig> BuildTagConfigs( 696var tagConfigs = new List<StrongTypeConfig>(); 864private List<StrongTypeConfig> WalkObjectModel( 875var tagConfigs = new List<StrongTypeConfig>(); 906private List<StrongTypeConfig> GetParentTagConfigs( 912var tagConfigs = new List<StrongTypeConfig>();
StrongTypeAttributeParameters.cs (1)
15public List<StrongTypeConfig> StrongTypeConfigs = [];
Microsoft.Gen.MetricsReports.Unit.Tests (7)
RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Interop.ComInterfaceGenerator (16)
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (1)
229var ancestorChain = new List<ComInterfaceInfo>();
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
34List<Func<ITypeSymbol, bool>> sourceGeneratedComRecognizers = new();
ComInterfaceGenerator.cs (8)
51List<(ComInterfaceInfo, INamedTypeSymbol)> interfaceInfos = new(); 74List<List<ComMethodInfo>> methods = new(); 78var inner = new List<ComMethodInfo>(); 90List<(ComInterfaceContext, SequenceEqualImmutableArray<ComMethodInfo>)> ifaceCtxs = new(); 100var result = ComMethodContext.CalculateAllMethods(ifaceCtxs, ct); 102List<ComMethodContext> methodContexts = new(); 880var combined = new List<AccessorDeclarationSyntax>(2);
ComMethodContext.cs (3)
116public static List<(ComInterfaceContext OwningInterface, Builder Method)> CalculateAllMethods(IEnumerable<(ComInterfaceContext, SequenceEqualImmutableArray<ComMethodInfo>)> ifaceAndDeclaredMethods, CancellationToken _) 124var accumulator = new List<(ComInterfaceContext OwningInterface, Builder Method)>(); 146List<Builder> methods = new();
VirtualMethodPointerStubGenerator.cs (3)
46var setupStatements = new List<StatementSyntax> 118List<FunctionPointerParameterSyntax> functionPointerParameters = []; 338List<FunctionPointerParameterSyntax> functionPointerParameters = new();
Microsoft.Interop.JavaScript.JSImportGenerator (10)
JSExportGenerator.cs (4)
198var registerStatements = new List<StatementSyntax>(); 201var attributes = new List<AttributeListSyntax>(); 360List<ArgumentSyntax> arguments = []; 411var signatureArgs = new List<ArgumentSyntax>
JSGeneratorFactory.cs (1)
306var argsMarshalers = new List<MarshalerType>();
JSImportGenerator.cs (1)
298List<StatementSyntax> statements = [];
JSMarshalAsAttributeInfoParser.cs (1)
25List<JSTypeFlags> jsTypeArguments = new List<JSTypeFlags>();
Marshaling\FuncJSGenerator.cs (2)
53List<ArgumentSyntax> arguments = [source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword))]; 74List<ArgumentSyntax> arguments = [source];
SignatureBindingHelpers.cs (1)
17List<CollectionElementSyntax> arguments = [];
Microsoft.Interop.LibraryImportGenerator (16)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
32List<Diagnostic> fixedDiagnostics = new(context.Diagnostics.Where(IsRequiresDiableRuntimeMarshallingDiagnostic));
Analyzers\ConvertToLibraryImportFixer.cs (2)
453List<SyntaxNode> argumentsToAdd = new List<SyntaxNode>(); 454List<SyntaxNode> argumentsToRemove = new List<SyntaxNode>();
Analyzers\CustomMarshallerAttributeAnalyzer.cs (4)
781List<string> missingCollectionMethods = new(); 839List<string> missingCollectionMethods = new(); 1089List<string> missingCollectionMethods = new(); 1158List<string> missingCollectionMethods = new();
Analyzers\CustomMarshallerAttributeFixer.cs (4)
130private static (HashSet<string> missingMembers, List<Diagnostic> fixedDiagnostics) GetRequiredShapeMissingMemberNames(IEnumerable<Diagnostic> diagnostics) 133List<Diagnostic> requiredShapeDiagnostics = new(); 217List<SyntaxNode> newMembers = new(); 413List<SyntaxNode> newMembers = new();
LibraryImportGenerator.cs (5)
84private static List<AttributeSyntax> GenerateSyntaxForForwardedAttributes(AttributeData? suppressGCTransitionAttribute, AttributeData? unmanagedCallConvAttribute, AttributeData? defaultDllImportSearchPathsAttribute, AttributeData? wasmImportLinkageAttribute, AttributeData? stackTraceHiddenAttribute, AttributeData? debuggerHiddenAttribute) 88List<AttributeSyntax> attributes = new(); 283List<AttributeSyntax> additionalAttributes = GenerateSyntaxForForwardedAttributes(suppressGCTransitionAttribute, unmanagedCallConvAttribute, defaultDllImportSearchPathsAttribute, wasmImportLinkageAttribute, stackTraceHiddenAttribute, debuggerHiddenAttribute); 391var dllImportArgs = new List<AttributeArgumentSyntax> 444var newAttributeArgs = new List<AttributeArgumentSyntax>
Microsoft.Interop.LibraryImportGenerator.Downlevel (5)
DownlevelLibraryImportGenerator.cs (5)
110private static List<AttributeSyntax> GenerateSyntaxForForwardedAttributes(AttributeData? defaultDllImportSearchPathsAttribute) 113List<AttributeSyntax> attributes = []; 233List<AttributeSyntax> additionalAttributes = GenerateSyntaxForForwardedAttributes(defaultDllImportSearchPathsAttribute); 325var dllImportArgs = new List<AttributeArgumentSyntax> 378var newAttributeArgs = new List<AttributeArgumentSyntax>
Microsoft.Interop.SourceGeneration (20)
DiagnosticExtensions.cs (2)
71List<Location> additionalLocations = null; 175List<Location> additionalLocations = null;
GeneratorDiagnosticsBag.cs (1)
22private readonly List<DiagnosticInfo> _diagnostics = new();
ManagedToNativeStubGenerator.cs (4)
115List<StatementSyntax> setupStatements = []; 135List<StatementSyntax> tryStatements = [.. statements.Marshal]; 164List<StatementSyntax> allStatements = setupStatements; 165List<StatementSyntax> finallyStatements = [];
Marshalling\DefaultMarshallingGeneratorResolver.cs (1)
28List<IMarshallingGeneratorResolver> coreResolvers = [
Marshalling\ElementsMarshalling.cs (4)
264var statements = new List<StatementSyntax>() 472private List<StatementSyntax> GenerateElementStages( 504List<StatementSyntax> elementStatements = []; 568var elementStatements = GenerateElementStages(context, elementMarshaller, out string indexer, stagesToGeneratePerElement);
Marshalling\MarshallerHelpers.cs (3)
125List<T> nodeIdToElement = new(elements.Count); 151List<T> L = new(elements.Count); 153List<T> S = new(elements.Count);
Marshalling\MarshallingGeneratorExtensions.cs (1)
110List<AttributeSyntax> rehydratedAttributes = new();
SyntaxExtensions.cs (1)
86List<SyntaxToken> strippedTokens = new();
UnmanagedToManagedStubGenerator.cs (3)
117List<StatementSyntax> setupStatements = 124List<StatementSyntax> tryStatements = 134List<StatementSyntax> allStatements = setupStatements;
Microsoft.JSInterop (1)
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
25/// This differs from a <see cref="System.Collections.Generic.List{T}"/> in that
Microsoft.Maui (62)
Animations\Animation.cs (5)
43 /// <param name="animations">A <see cref="List{T}"/> that contains <see cref="Animation"/> objects that will be children of the newly instantiated animation.</param> 44 public Animation(List<Animation> animations) 71 protected List<Animation> childrenAnimations = new(); 265 var reversedChildren = childrenAnimations.ToList(); 291 var reversedChildren = childrenAnimations.ToList();
Animations\AnimationManager.cs (3)
9 readonly List<Animation> _animations = new(); 87 var animations = new List<Animation>(_animations); 132 var animations = new List<Animation>(_animations);
Animations\Lerp.cs (1)
180 var types = new List<Type> { type };
Animations\LerpingAnimation.cs (2)
34 /// <param name="animations">A <see cref="List{T}"/> that contains <see cref="Animation"/> objects that will be children of the newly instantiated animation.</param> 35 public LerpingAnimation(List<Animation> animations)
Core\Extensions\IPickerExtension.cs (2)
17 public static List<string> GetItemsAsList(this IPicker picker) 19 var returnValue = new List<string>(picker.GetCount());
Core\Extensions\VisualTreeElementExtensions.cs (7)
63 static List<IVisualTreeElement> GetVisualTreeDescendantsInternal(this IVisualTreeElement visualElement, List<IVisualTreeElement>? elements = null) 212 var platformParentPath = new List<PlatformView>(); 260 List<PlatformView> platformParentPath) 309 static List<IVisualTreeElement> GetVisualTreeElementsInternal(IVisualTreeElement visualElement, Predicate<Rect> intersectElementBounds) 311 var elements = new List<IVisualTreeElement>(); 318 static void Impl(IVisualTreeElement visualElement, Predicate<Rect> intersectElementBounds, List<IVisualTreeElement> elements)
Extensions\EnumerableExtensions.cs (4)
36 public static IDictionary<TKey, List<TSource>> GroupToDictionary<TSource, TKey>(this IEnumerable<TSource> enumeration, Func<TSource, TKey> func) 39 var result = new Dictionary<TKey, List<TSource>>(); 43 if (!result.TryGetValue(group, out List<TSource>? value)) 150 if (enumerable is List<T> list)
Hosting\EssentialsMauiAppBuilderExtensions.cs (3)
152 private static async void SetAppActions(IServiceProvider services, List<AppAction> appActions) 174 List<AppAction>? _appActions; 178 internal List<AppAction>? AppActions => _appActions;
Hosting\Internal\FontCollection.cs (1)
8 readonly List<FontDescriptor> _descriptors = new List<FontDescriptor>();
Hosting\Internal\MauiServiceCollection.cs (1)
11 readonly List<ServiceDescriptor> _descriptors = new List<ServiceDescriptor>();
HotReload\HotReloadExtensions.cs (2)
39 public static List<MethodInfo> GetOnHotReloadMethods(this Type type) 48 var foos = type.GetMethods(flags).Where(x => x.GetCustomAttributes(typeof(OnHotReloadAttribute), true).Length > 0).ToList();
HotReload\HotReloadHelper.cs (5)
119 static Dictionary<string, List<KeyValuePair<Type, Type>>> replacedHandlers = new(StringComparer.Ordinal); 148 var onHotReloadMethods = newViewType.GetOnHotReloadMethods(); 156 if (replacedHandlers.TryGetValue(oldViewType, out var vTypes)) 167 var views = HandlerService!.Where(x => x.ImplementationType == t).Select(x => new KeyValuePair<Type, Type>(x.ServiceType, x.ImplementationType!)).ToList(); 190 List<IHotReloadableView>? roots = null;
LifecycleEvents\LifecycleEventService.cs (4)
9 readonly Dictionary<string, List<Delegate>> _mapper = new(StringComparer.Ordinal); 25 if (!_mapper.TryGetValue(eventName, out var delegates) && delegates == null) 34 if (_mapper.TryGetValue(eventName, out var delegates) && delegates != null) 41 _mapper.TryGetValue(eventName, out var delegates) && delegates?.Count > 0;
PropertyMapper.cs (8)
23 List<string>? _updatePropertiesKeys; 24 List<Action<IElementHandler, IElement>>? _updatePropertiesMappers; 27 List<string> UpdatePropertiesKeys => _updatePropertiesKeys ?? SnapshotMappers().UpdatePropertiesKeys; 28 List<Action<IElementHandler, IElement>> UpdatePropertiesMappers => _updatePropertiesMappers ?? SnapshotMappers().UpdatePropertiesMappers; 177 private (List<string> UpdatePropertiesKeys, List<Action<IElementHandler, IElement>> UpdatePropertiesMappers, Dictionary<string, Action<IElementHandler, IElement>?> CachedMappers) SnapshotMappers() 179 var updatePropertiesKeys = GetKeys().Distinct().ToList(); 180 var updatePropertiesMappers = new List<Action<IElementHandler, IElement>>(updatePropertiesKeys.Count);
ViewExtensions.cs (2)
39 List<IView> _flatList = new List<IView>(); 47 void BuildFlatList(IView view, List<IView> flatList)
VisualDiagnostics\AdornerModel.cs (1)
13 List<Rect> marginZones = new List<Rect>();
VisualDiagnostics\VisualDiagnosticsOverlay.cs (2)
51 var scrollBars = GetScrollViews(); 189 List<IScrollView> GetScrollViews()
WeakEventManager.cs (6)
13 readonly Dictionary<string, List<Subscription>> _eventHandlers = new(StringComparer.Ordinal); 42 var toRaise = new List<(object? subscriber, MethodInfo handler)>(); 43 var toRemove = new List<Subscription>(); 45 if (_eventHandlers.TryGetValue(eventName, out List<Subscription>? target)) 107 if (!_eventHandlers.TryGetValue(eventName, out List<Subscription>? targets)) 125 if (!_eventHandlers.TryGetValue(eventName, out List<Subscription>? subscriptions))
WeakList.cs (1)
14 readonly List<WeakReference<T>> _list = new();
WindowOverlay\WindowOverlay.cs (2)
134 var elements = new List<IVisualTreeElement>(); 135 var windowElements = new List<IWindowOverlayElement>();
Microsoft.Maui.Controls (236)
Accelerator.cs (1)
40 var modifiers = new List<string>();
Application\Application.cs (2)
351 var changedResources = new List<KeyValuePair<string, object>>(); 417 readonly List<Window> _windows = new();
BindablePropertyConverter.cs (1)
129 var parents = parentValueProvider.ParentObjects.ToList();
BindingExpression.cs (3)
24 readonly List<BindingExpressionPart> _parts = new List<BindingExpressionPart>(); 29 List<WeakReference<Element>> _ancestryChain; 451 internal void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource)
Brush\BrushTypeConverter.cs (1)
415 var offsets = new List<float>();
Cells\Cell.cs (2)
22 List<MenuItem> _currentContextActions; 323 var children = new List<Maui.IVisualTreeElement>(LogicalChildrenInternal);
ContentPage\HideSoftInputOnTappedChanged\HideSoftInputOnTappedChangedManager.cs (1)
8 List<ContentPage> _contentPages = new List<ContentPage>();
DefinitionCollection.cs (1)
11 readonly List<T> _internalList;
DependencyService.cs (1)
19 static readonly List<DependencyType> DependencyTypes = new List<DependencyType>();
Element\Element_StyleSheets.cs (4)
29 var list = new List<string>(); 48 var sheets = new List<StyleSheet>(); 62 void ApplyStyleSheets(List<StyleSheet> sheets, IVisualTreeElement element) 73 var mergedSheets = sheets;
Element\Element.cs (2)
61 List<Action<object, ResourcesChangedEventArgs>> _changeHandlers; 761 List<(BindableProperty, SetterSpecificity)> changedResources = null;
ElementTemplate.cs (1)
12 List<Action<object, ResourcesChangedEventArgs>> _changeHandlers;
FontAttributes.cs (1)
72 var parts = new List<string>();
FormattedString.cs (1)
86 var removed = new List<Span>(this);
GestureElement.cs (1)
72 List<IGestureRecognizer> removed = new List<IGestureRecognizer>(this);
IExpressionSearch.cs (1)
11 List<T> FindObjects<T>(Expression expression) where T : class;
Interactivity\EventTrigger.cs (1)
16 readonly List<WeakReference<BindableObject>> _associatedObjects = new List<WeakReference<BindableObject>>();
Internals\ProfilePage.cs (1)
35 public static List<ProfileDatum> Data = new List<ProfileDatum>();
Items\MarshalingObservableCollection.cs (1)
56 var items = new List<object>();
Items\SelectableItemsView.cs (1)
88 var oldSelection = new List<object>(SelectedItems);
Items\SelectionList.cs (2)
116 List<object> Copy() 118 var items = new List<object>();
Label\Label.cs (1)
397 var spans = new List<GestureElement>();
Layout\Layout.cs (1)
38 readonly private protected List<IView> _children = new();
LegacyLayouts\Grid.cs (2)
188 List<RowDefinition> rowDefinitions = structure.Rows; 215 List<ColumnDefinition> columnDefinitions = structure.Columns;
LegacyLayouts\GridCalc.cs (4)
95 List<ColumnDefinition> _columns = new List<ColumnDefinition>(); 96 List<RowDefinition> _rows = new List<RowDefinition>(); 100 public List<ColumnDefinition> Columns => _columns; 101 public List<RowDefinition> Rows => _rows;
LegacyLayouts\RelativeLayout.cs (6)
69 var result = new List<View>(); 76 List<View> unsolvedChildren = Children.Cast<View>().ToList(); 79 List<View> copy = unsolvedChildren.ToList(); 245 var parents = new List<View>(); 277 var parents = new List<View>(); 377 var parents = new List<View>();
ListStringTypeConverter.cs (1)
31 if (value is not List<string> list)
ListView\ListView.cs (2)
24 readonly List<Element> _visualChildren = new List<Element>(); 559 var itemSource = ItemsSource?.Cast<object>().ToList();
Menu\MenuBarItem.cs (1)
43 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuFlyout.cs (1)
12 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuFlyoutSubItem.cs (1)
9 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuItemTracker.cs (4)
16 List<WeakReference<Page>> _additionalTargets = new(); 83 List<TMenuItem> returnValue = GetCurrentToolbarItems(Target); 101 List<TMenuItem> GetCurrentToolbarItems(Page page) 103 var result = new List<TMenuItem>();
MergedStyle.cs (1)
23 readonly List<BindableProperty> _implicitStyles = new List<BindableProperty>();
MessagingCenter.cs (5)
107 readonly Dictionary<Sender, List<Subscription>> _subscriptions = 108 new Dictionary<Sender, List<Subscription>>(); 207 List<Subscription> subcriptions = _subscriptions[key]; 216 List<Subscription> subscriptionsCopy = subcriptions.ToList(); 238 var list = new List<Subscription> { value };
MultiBinding.cs (1)
58 var bindingsclone = new List<BindingBase>(Bindings.Count);
MultiPage.cs (1)
329 List<Element> snapshot = InternalChildren.ToList();
NavigationModel.cs (10)
10 readonly List<Page> _modalStack = new List<Page>(); 11 readonly List<List<Page>> _navTree = new List<List<Page>>(); 47 foreach (List<Page> list in _navTree) 70 List<Page> currentStack = _navTree.Last(); 83 foreach (List<Page> stack in _navTree) 151 foreach (List<Page> stack in _navTree) 178 foreach (List<Page> stack in _navTree) 214 List<Page> currentStack = _navTree.Last();
NavigationPage\NavigationPage.cs (3)
582 var parentPages = this.GetParentPages(); 657 var immutableNavigationStack = new List<IView>(NavigationStack); 815 List<Page> pagesToRemove = new List<Page>();
NavigationPage\NavigationPageToolbar.cs (2)
22 List<NavigationPage> _navigationPagesStack = new List<NavigationPage>(); 73 var pages = cp.GetParentPages();
NavigationProxy.cs (4)
27 Lazy<List<Page>> _pushStack = new Lazy<List<Page>>(() => new List<Page>()); 43 _pushStack = new Lazy<List<Page>>(() => new List<Page>()); 251 List<Page> list = _pushStack.Value;
NavigationStepRequest.cs (2)
24 List<NavigationStepRequest> _innerList = new List<NavigationStepRequest>(); 25 List<Page> _pages = new List<Page>();
ObservableList.cs (4)
20 List<T> items = range.ToList(); 37 List<T> items = range.ToList(); 51 var items = new List<T>(count); 86 List<T> items = range.ToList();
OrderedDictionary.cs (1)
43 readonly List<TKey> _keyOrder;
Page\Page.cs (3)
81 List<Action> _pendingActions = new List<Action>(); 386 var actionsToProcess = _pendingActions.ToList(); 585 var startingLayout = new List<Rect>(logicalChildren.Count);
Platform\ModalNavigationManager\ModalNavigationManager.cs (1)
16 List<Page> _platformModalPages = new List<Page>();
Profiler.cs (1)
28 public static List<Datum> Data;
Region.cs (2)
32 var list = rectangles.ToList(); 39 var positions = new List<Rect>();
RelativeBindingSource.cs (4)
119 List<Element> chain, 196 void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource); 212 public void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource) 229 public void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource)
ResourcesExtensions.cs (6)
27 var mergedClassStyles = new List<Style>(resources[res.Key] as List<Style>); 28 mergedClassStyles.AddRange(res.Value as List<Style>); 42 var mergedClassStyles = new List<Style>(resources[res.Key] as List<Style>); 43 mergedClassStyles.AddRange(res.Value as List<Style>);
Routing.cs (1)
192 public static string FormatRoute(List<string> segments)
Shapes\GeometryHelper.cs (4)
27 var points = new List<Point>(); 232 public static void FlattenCubicBezier(List<Point> points, Point ptStart, Point ptCtrl1, Point ptCtrl2, Point ptEnd, double tolerance) 255 public static void FlattenQuadraticBezier(List<Point> points, Point ptStart, Point ptCtrl, Point ptEnd, double tolerance) 277 public static void FlattenArc(List<Point> points, Point pt1, Point pt2, double radiusX, double radiusY, double angleRotation,
Shapes\PathGeometry.cs (1)
99 List<Point> points = new List<Point>();
Shell\BaseShellItem.cs (1)
316 List<string> bindableObjectStyle = new List<string>() {
Shell\IShellController.cs (2)
39 List<List<Element>> GenerateFlyoutGrouping();
Shell\RequestDefinition.cs (3)
18 List<String> builder = new List<string>(); 37 string MakeUriString(List<string> segments) 49 public List<string> GlobalRoutes { get; }
Shell\RouteRequestBuilder.cs (13)
13 readonly List<string> _globalRouteMatches = new List<string>(); 14 readonly List<string> _matchedSegments = new List<string>(); 15 readonly List<string> _fullSegments = new List<string>(); 16 readonly List<string> _allSegments = null; 26 public RouteRequestBuilder(List<string> allSegments) 32 public RouteRequestBuilder(string shellSegment, string userSegment, object node, List<string> allSegments) : this(allSegments) 166 var segmentsToMatch = ShellUriHandler.RetrievePaths(matchMe).ToList(); 182 List<string> matches = new List<string>(); 183 List<string> currentSet = new List<string>(_matchedSegments); 229 public List<string> RemainingSegments 241 string MakeUriString(List<string> segments) 270 public List<string> GlobalRouteMatches => _globalRouteMatches; 271 public List<string> SegmentsMatched => _matchedSegments;
Shell\Shell.cs (4)
632 List<(IAppearanceObserver Observer, Element Pivot)> _appearanceObservers = new List<(IAppearanceObserver Observer, Element Pivot)>(); 633 List<IFlyoutBehaviorObserver> _flyoutBehaviorObservers = new List<IFlyoutBehaviorObserver>(); 1508 List<List<Element>> IShellController.GenerateFlyoutGrouping() =>
Shell\ShellElementCollection.cs (3)
18 readonly List<NotifyCollectionChangedEventArgs> _notifyCollectionChangedEventArgs; 90 var pendingEvents = _notifyCollectionChangedEventArgs.OrderBy(x => x.NewItems != null ? 0 : 1).ToList(); 110 var list = Inner.Cast<BaseShellItem>().ToList();
Shell\ShellFlyoutItemsManager.cs (10)
12 List<List<Element>> _lastGeneratedFlyoutItems; 38 var source = _lastGeneratedFlyoutItems[i]; 83 public List<List<Element>> GenerateFlyoutGrouping() 101 var result = new List<List<Element>>(); 103 var currentGroup = new List<Element>(); 181 var topLevelNew = result[i]; 182 var topLevelPrevious = _lastGeneratedFlyoutItems[i];
Shell\ShellNavigationManager.cs (4)
519 List<string> routeStack = new List<string>(); 575 public static List<Page> BuildFlattenedNavigationStack(Shell shell) 581 public static List<Page> BuildFlattenedNavigationStack(IReadOnlyList<Page> startingList, IReadOnlyList<Page> modalStack) 583 var returnValue = startingList.ToList();
Shell\ShellNavigationState.cs (1)
75 List<string> toKeep = new List<string>();
Shell\ShellSection.cs (20)
40 readonly List<(object Observer, Action<Page> Callback)> _displayedPageObservers = 42 readonly List<IShellContentInsetObserver> _observers = new List<IShellContentInsetObserver>(); 136 var oldStack = _navStack; 214 List<Page> _navStack = new List<Page> { null }; 320 async Task PrepareCurrentStackForBeingReplaced(ShellNavigationRequest request, ShellRouteParameters queryData, IServiceProvider services, bool? animate, List<string> globalRoutes, bool isRelativePopping) 323 List<Page> navStack = null; 332 var navStackCopy = new List<Page>(_navStack); 353 List<Page> pagesToInsert = new List<Page>(); 512 List<string> globalRoutes = request.Request.GlobalRoutes; 525 List<Page> modalPageStacks = new List<Page>(); 526 List<Page> nonModalPageStacks = new List<Page>(); 527 var currentNavStack = ShellNavigationManager.BuildFlattenedNavigationStack(_navStack, Navigation?.ModalStack); 610 async Task PushStackOfPages(List<Page> pages, bool? animate) 745 var stack = _navStack.ToList(); 776 List<Page> stack = _navStack.ToList(); 836 var oldStack = _navStack; 856 List<Page> stack = _navStack.ToList(); 925 var stack = _navStack.ToList(); 1180 var stack = _owner.Stack.ToList(); 1205 var stack = _owner.Stack.ToList();
Shell\ShellUriHandler.cs (40)
25 var pages = ShellNavigationManager.BuildFlattenedNavigationStack(shell); 27 List<string> restOfPath = new List<string>(); 44 List<string> buildUpPages = new List<string>(); 149 var segments = new List<string>(RetrievePaths(pathAndQuery[0])); 185 var possibleRouteMatches = GenerateRoutePaths(shell, request, uri, enableRelativeShellRoutes); 222 internal static List<RouteRequestBuilder> GenerateRoutePaths(Shell shell, Uri request) 228 internal static List<RouteRequestBuilder> GenerateRoutePaths(Shell shell, Uri request, Uri originalRequest, bool enableRelativeShellRoutes) 235 List<RouteRequestBuilder> possibleRoutePaths = new List<RouteRequestBuilder>(); 246 var segments = new List<string>(RetrievePaths(localPath)); 262 var result = ProcessRelativeRoute(shell, routeKeys, segments, enableRelativeShellRoutes, originalRequest); 270 var bestMatches = GetBestMatches(possibleRoutePaths); 288 var globalRouteMatches = 345 static List<RouteRequestBuilder> ProcessRelativeRoute( 348 List<string> segments, 357 var pureRoutesMatch = new List<RouteRequestBuilder>(); 358 var pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 377 var matches = SearchForGlobalRoutes(segments, shell.CurrentState.FullLocation, currentLocation, routeKeys); 428 static List<RouteRequestBuilder> SearchForGlobalRoutes( 429 List<string> segments, 434 List<RouteRequestBuilder> pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 437 var newSegments = CollapsePath(newPath, currentSegments, true); 438 List<string> fullRouteWithNewSegments = new List<string>(currentSegments); 457 var existingGlobalRoutes = routeRequestBuilder.GlobalRouteMatches.ToList(); 463 var additionalRouteMatches = routeRequestBuilder.GlobalRouteMatches; 480 internal static List<string> CollapsePath( 486 internal static List<string> CollapsePath( 491 var localRouteStack = currentRouteStack.ToList(); 502 var paths = myRoute.ToList(); 535 var collapsedRoutes = CollapsePath(routeKey, possibleRoutePath.SegmentsMatched, true); 607 internal static void ExpandOutGlobalRoutes(List<RouteRequestBuilder> possibleRoutePaths, HashSet<string> routeKeys) 618 List<RouteRequestBuilder> pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 640 internal static List<RouteRequestBuilder> GetBestMatches(List<RouteRequestBuilder> possibleRoutePaths) 642 List<RouteRequestBuilder> bestMatches = new List<RouteRequestBuilder>(); 678 List<RouteRequestBuilder> betterMatches = new List<RouteRequestBuilder>(); 783 List<string> paths = new List<string>(); 856 List<string> segments, 857 List<RouteRequestBuilder> possibleRoutePaths, 1005 var segments = RetrievePaths(_path).ToList().Skip(1).ToList(); 1033 var segments = RetrievePaths(_path).ToList().Skip(1).ToList();
SwipeView\SwipeView.cs (2)
16 readonly List<ISwipeItem> _swipeItems = new List<ISwipeItem>(); 101 List<Maui.IVisualTreeElement> elements = new List<IVisualTreeElement>();
SynchronizedList.cs (1)
11 readonly List<T> _list = new List<T>();
TemplatedItemsList.cs (5)
45 readonly List<TItem> _templatedObjects = new List<TItem>(); 684 var contentItems = new List<TItem>(items.Count); 796 List<TemplatedItemsList<TView, TItem>> newItems = null, oldItems = null; 1302 List<string> ConvertItems(IList list) 1304 var newList = new List<string>(list.Count);
TypedBinding.cs (3)
71 internal abstract void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource); 147 List<WeakReference<Element>> _ancestryChain; 346 internal override void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource)
ViewExtensions.cs (2)
378 internal static List<Page> GetParentPages(this Page target) 380 var result = new List<Page>();
VisualElement\VisualElement.cs (4)
1551 var changedResources = new List<KeyValuePair<string, object>>(); 1560 var mergedClassStyles = new List<Style>(Resources[value.Key] as List<Style>); 1561 mergedClassStyles.AddRange(value.Value as List<Style>);
VisualStateManager.cs (5)
449 var conflicts = new List<StateTriggerBase>(); 474 VisualState ResolveStateTriggersConflict(List<StateTriggerBase> conflicts) 727 readonly Action<List<T>> _onAdd; 728 readonly List<T> _internalList; 730 public WatchAddList(Action<List<T>> onAdd)
WebView\WebView.cs (1)
304 var uniqueMatches = new List<string>();
Window\Window.cs (1)
68 List<IVisualTreeElement> _visualChildren;
Microsoft.Maui.Controls.BindingSourceGen (29)
BindingCodeWriter.cs (2)
55 var propertyAccessors = new List<string> 134 var unsafeAccessorsStrings = new List<string>();
BindingTransformer.cs (1)
19 var newPath = new List<IPathPart>();
PathParser.cs (25)
18 internal Result<List<IPathPart>> ParsePath(CSharpSyntaxNode? expressionSyntax) 22 IdentifierNameSyntax _ => Result<List<IPathPart>>.Success(new List<IPathPart>()), 35 private Result<List<IPathPart>> HandleMemberAccessExpression(MemberAccessExpressionSyntax memberAccess) 49 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(memberAccess.GetLocation())); 62 return Result<List<IPathPart>>.Success(result.Value); 65 private Result<List<IPathPart>> HandleElementAccessExpression(ElementAccessExpressionSyntax elementAccess) 83 return Result<List<IPathPart>>.Success(result.Value); 86 private Result<List<IPathPart>> HandleConditionalAccessExpression(ConditionalAccessExpressionSyntax conditionalAccess) 102 return Result<List<IPathPart>>.Success(expressionResult.Value); 105 private Result<List<IPathPart>> HandleMemberBindingExpression(MemberBindingExpressionSyntax memberBinding) 113 return Result<List<IPathPart>>.Success(new List<IPathPart>([part])); 116 private Result<List<IPathPart>> HandleElementBindingExpression(ElementBindingExpressionSyntax elementBinding) 129 return Result<List<IPathPart>>.Success(elementAccessResult.Value); 132 private Result<List<IPathPart>> HandleBinaryExpression(BinaryExpressionSyntax asExpression) 144 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(castTo.GetLocation())); 149 return Result<List<IPathPart>>.Success(leftResult.Value); 152 private Result<List<IPathPart>> HandleCastExpression(CastExpressionSyntax castExpression) 163 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(castExpression.GetLocation())); 168 return Result<List<IPathPart>>.Success(result.Value); 171 private Result<List<IPathPart>> HandleDefaultCase() 173 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(_context.Node.GetLocation())); 176 private Result<List<IPathPart>> CreateIndexAccess(ISymbol? elementAccessSymbol, ITypeSymbol? typeSymbol, SeparatedSyntaxList<ArgumentSyntax> argumentList, Location location) 180 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(location)); 187 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(indexExpression.GetLocation())); 194 return Result<List<IPathPart>>.Success(new List<IPathPart>([part]));
Setter.cs (1)
13 List<string> patternMatchingExpressions = new();
Microsoft.Maui.Controls.Build.Tasks (22)
BindablePropertyReferenceExtensions.cs (1)
45 var attributes = new List<CustomAttribute>();
CompiledConverters\ListStringTypeConverter.cs (1)
23 var parts = value.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()).ToList();
CompiledValueProviders\SetterValueProvider.cs (1)
51 var items = (node as IElementNode)?.CollectionItems;
CreateObjectVisitor.cs (2)
57 var children = node.Properties.Values.ToList(); 329 var arguments = new List<INode>();
ExpandMarkupsVisitor.cs (1)
139 var childnodes = new List<(XmlName, INode)>();
MethodBodyExtensions.cs (1)
67 var ldlocUsed = new List<VariableDefinition>();
MethodDefinitionExtensions.cs (1)
14 var arguments = new List<INode>();
NodeILExtensions.cs (3)
471 var nodes = new List<IElementNode>(); 581 var scopes = new List<VariableDefinition>(); 631 var pushParentIl = node.PushParentObjectsArray(context).ToList();
PerformanceProvider.cs (1)
15 public readonly List<Tuple<string, long>> StartTimes = new List<Tuple<string, long>>();
SetPropertiesVisitor.cs (4)
681 var properties = new List<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)>(); 1057 var partGetters = new List<MethodDefinition>(); 1136 var handlers = new List<(MethodDefinition PartGetter, string PropertyName)>(); 1946 var attributes = variableDefinition.VariableType.ResolveCached(Context.Cache)
TypeReferenceExtensions.cs (2)
317 var implicitOperators = implicitOperatorsOnFromType.Concat(implicitOperatorsOnToType).ToList(); 411 List<TypeReference> args = new List<TypeReference>();
XamlCTask.cs (3)
33 internal static List<BuildException> LoggedErrors { get; set; } 233 var resourcesToPrune = new List<EmbeddedResource>(); 327 if (LoggingHelperExtensions.LoggedErrors is List<BuildException> errors)
XmlTypeExtensions.cs (1)
15 var xmlnsDefinitions = new List<XmlnsDefinitionAttribute>();
Microsoft.Maui.Controls.Foldable (2)
TwoPaneViewLayoutGuide.cs (2)
41 List<string> _pendingPropertyChanges = new List<string>(); 296 var properties = _pendingPropertyChanges.ToList();
Microsoft.Maui.Controls.SourceGen (14)
CodeBehindGenerator.cs (2)
197 var xmlnsDefinitions = new List<XmlnsDefinitionAttribute>(); 198 var internalsVisible = new List<IAssemblySymbol>();
src\Controls\src\Xaml\TypeArgumentsParser.cs (1)
12 var typeList = new List<XmlType>();
src\Controls\src\Xaml\XamlNode.cs (8)
13 List<string> IgnorablePrefixes { get; set; } 28 List<XmlName> SkipProperties { get; } 36 List<INode> CollectionItems { get; } 99 public List<string> IgnorablePrefixes { get; set; } 169 public List<XmlName> SkipProperties { get; } 170 public List<INode> CollectionItems { get; } 259 public List<INode> CollectionItems { get; set; } 273 var items = new List<INode>();
src\Controls\src\Xaml\XmlTypeXamlExtensions.cs (3)
44 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 64 var lookupNames = new List<string>(capacity: 2); 80 var potentialTypes = new List<(string typeName, string clrNamespace, string assemblyName)>();
Microsoft.Maui.Controls.Xaml (18)
ExpandMarkupsVisitor.cs (1)
137 var childnodes = new List<(XmlName, INode)>();
PruneIgnoredNodesVisitor.cs (1)
28 var prefixes = propertyValue.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList();
RemoveDuplicateDesignNodes.cs (1)
26 var props = node.Properties.ToList();
TypeArgumentsParser.cs (1)
12 var typeList = new List<XmlType>();
XamlNode.cs (8)
13 List<string> IgnorablePrefixes { get; set; } 28 List<XmlName> SkipProperties { get; } 36 List<INode> CollectionItems { get; } 99 public List<string> IgnorablePrefixes { get; set; } 169 public List<XmlName> SkipProperties { get; } 170 public List<INode> CollectionItems { get; } 259 public List<INode> CollectionItems { get; set; } 273 var items = new List<INode>();
XamlParser.cs (3)
141 var nodes = new List<INode>(); 207 var attributes = new List<KeyValuePair<XmlName, INode>>(); 289 var prefixes = new List<string>();
XmlTypeXamlExtensions.cs (3)
44 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 64 var lookupNames = new List<string>(capacity: 2); 80 var potentialTypes = new List<(string typeName, string clrNamespace, string assemblyName)>();
Microsoft.Maui.Essentials (13)
Connectivity\Connectivity.shared.cs (1)
82 List<ConnectionProfile> currentProfiles;
Email\Email.shared.cs (4)
174 public List<string>? To { get; set; } = new List<string>(); 179 public List<string>? Cc { get; set; } = new List<string>(); 184 public List<string>? Bcc { get; set; } = new List<string>(); 189 public List<EmailAttachment>? Attachments { get; set; } = new List<EmailAttachment>();
Share\Share.shared.cs (1)
343 public List<ShareFile>? Files { get; set; } = new List<ShareFile>();
Sms\Sms.shared.cs (1)
126 public List<string> Recipients { get; set; } = new List<string>();
TextToSpeech\TextToSpeech.shared.cs (2)
74 internal static List<string> SplitSpeak(string text, int max) 76 var parts = new List<string>();
Types\Contact.shared.cs (2)
97 public List<ContactPhone> Phones { get; set; } = new List<ContactPhone>(); 102 public List<ContactEmail> Emails { get; set; } = new List<ContactEmail>();
VersionTracking\VersionTracking.shared.cs (2)
208 Dictionary<string, List<string>> versionTrail = null!; 336 var trail = versionTrail[key];
Microsoft.Maui.Graphics (34)
PathF.cs (22)
12 private readonly List<float> _arcAngles; 13 private readonly List<bool> _arcClockwise; 14 private readonly List<PointF> _points; 15 private readonly List<PathOperation> _operations; 17 private readonly List<bool> _subPathsClosed; 22 private PathF(List<PointF> points, List<float> arcSizes, List<bool> arcClockwise, List<PathOperation> operations, int subPathCount) 939 public List<PathF> Separate() 941 var paths = new List<PathF>(); 989 var points = new List<PointF>(_points); 992 var arcSizes = new List<float>(_arcAngles); 995 var arcClockwise = new List<bool>(_arcClockwise); 998 var operations = new List<PathOperation>(_operations); 1456 List<PointF> flattenedPoints = null; 1457 List<PointF> curvePoints = null; 1525 private void QuadToCubic(int pointIndex, List<PointF> curvePoints) 1540 private void FlattenCubicSegment(int index, double flatness, List<PointF> curvePoints, List<PointF> flattenedPoints) 1591 private Vector2 DeCasteljau(List<PointF> curvePoints, int index, float t) 1604 private Vector2 GetPointAsVector(List<PointF> curvePoints, int index)
PictureCanvas.cs (1)
15 private readonly List<DrawingCommand> _commands;
Text\AttributedTextExtensions.cs (7)
23 var runs = new List<IAttributedTextRun>(); 28 internal static List<IAttributedTextRun> OptimizeRuns(this IAttributedText attributedText) 38 if (attributedText.Runs is List<IAttributedTextRun> list) 48 var runs = new List<IAttributedTextRun>(); 58 List<IAttributedText> paragraphs = new List<IAttributedText>(); 70 var runs = new List<IAttributedTextRun>(); 159 var blocks = new List<AttributedTextBlock>();
Text\AttributedTextRunExtensions.cs (2)
70 List<IAttributedTextRun> intersections = new List<IAttributedTextRun>(); 156 public static void Optimize(this List<IAttributedTextRun> runs, int textLength)
Text\MutableAttributedText.cs (1)
7 private List<IAttributedTextRun> _runs;
Text\XmlAttributedTextReader.cs (1)
17 private readonly List<IAttributedTextRun> _runs = new List<IAttributedTextRun>();
Microsoft.Maui.Graphics.Skia (6)
SkiaTextLayout.cs (6)
85 var lines = CreateLines(y, bottom, width); 101 List<TextLine> lines, 154 List<TextLine> lines, 187 List<TextLine> lines, 213 private List<TextLine> CreateLines(float y, float bottom, float width) 215 var lines = new List<TextLine>();
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\AttributedTextRenderer.cs (1)
10 private List<IAttributedTextRun> _runs = new List<IAttributedTextRun>();
Microsoft.Maui.Maps (2)
Primitives\GeographyUtils.cs (2)
16 public static List<Location> ToCircumferencePositions(this ICircleMapElement circle) 18 var positions = new List<Location>();
Microsoft.Maui.Resizetizer (10)
AndroidAdaptiveIconGenerator.cs (4)
39 var results = new List<ResizedImageInfo>(); 53 void ProcessBackground(List<ResizedImageInfo> results, DirectoryInfo fullIntermediateOutputPath) 97 void ProcessForeground(List<ResizedImageInfo> results, DirectoryInfo fullIntermediateOutputPath) 141 void ProcessAdaptiveIcon(List<ResizedImageInfo> results, DirectoryInfo fullIntermediateOutputPath)
AppleIconAssetsGenerator.cs (1)
50 var appIconImagesJson = new List<string>();
ResizeImageInfo.cs (2)
59 public static List<ResizeImageInfo> Parse(IEnumerable<ITaskItem> images) 61 var r = new List<ResizeImageInfo>();
ResizetizeImages.cs (2)
39 var inputImages = ResizeImageInfo.Parse(Images); 103 var copiedResources = new List<TaskItem>();
TizenSplashUpdater.cs (1)
27 var orientations = new List<string>() { "portrait", "landscape" };
Microsoft.ML.AutoML (72)
API\AutoCatalog.cs (3)
356var res = new List<SweepableEstimator>(); 460var res = new List<SweepableEstimator>(); 571var res = new List<SweepableEstimator>();
AutoMLExperiment\AutoMLExperiment.cs (1)
224var mostRecentAddedStopServices = stopServices.GroupBy(s => s.GetType()).Select(g => g.Last()).ToList();
AutoMLExperiment\IMonitor.cs (2)
31private readonly List<TrialResult> _completedTrials; 82public List<TrialResult<TMetrics>> RunDetails { get; }
AutoMLExperiment\IStopTrainingManager.cs (1)
117private readonly List<IStopTrainingManager> _managers;
AutoMLExperiment\ITrialResultManager.cs (1)
147var res = new List<TrialResult>();
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (2)
44var metrics = new List<double>(); 45var models = new List<ITransformer>();
AutoMlUtils.cs (1)
39var res = new List<InputOutputColumnPair>();
ColumnInference\ColumnGroupingInference.cs (4)
58var result = new List<GroupingColumn>(); 59var tuples = types.Zip(purposes, Tuple.Create).ToList(); 94private static string GetName(DataKind itemKind, ColumnPurpose purpose, List<GroupingColumn> previousColumns) 134var allRanges = new List<Range>();
ColumnInference\ColumnInformationUtil.cs (3)
130var columnNames = new List<string>(); 163private static void AddStringsToListIfNotNull(List<string> list, IEnumerable<string> strings) 171private static void AddStringToListIfNotNull(List<string> list, string str)
ColumnInference\ColumnTypeInference.cs (2)
274var data = new List<ReadOnlyMemory<char>[]>(); 406var loaderColumns = new List<TextLoader.Column>();
ColumnInference\PurposeInference.cs (3)
88var results = new List<ReadOnlyMemory<char>>(); 245var allColumns = new List<IntermediateColumn>(); 246var columnsToInfer = new List<IntermediateColumn>();
ColumnInference\TextFileContents.cs (1)
95var columnCounts = new List<int>();
ColumnInference\TextFileSample.cs (1)
135var chunks = new List<byte[]>();
Experiment\Experiment.cs (1)
117var iterationResults = new List<TRunDetail>();
Experiment\RecipeInference.cs (1)
20var trainers = new List<SuggestedTrainer>();
Experiment\Runners\CrossValRunner.cs (1)
51var trainResults = new List<SuggestedPipelineTrainResult<TMetrics>>();
Experiment\Runners\CrossValSummaryRunner.cs (1)
56var trainResults = new List<(ModelContainer model, TMetrics metrics, Exception exception, double score)>();
Experiment\SuggestedPipeline.cs (3)
62var pipelineElements = new List<PipelineNode>(); 77var transforms = new List<SuggestedTransform>(); 78var transformsPostTrainer = new List<SuggestedTransform>();
PipelineSuggesters\PipelineSuggester.cs (2)
40var transforms = TransformInferenceApi.InferTransforms(context, task, columns).ToList(); 41var transformsPostTrainer = TransformInferenceApi.InferTransformsPostTrainer(context, task, columns).ToList();
SweepableEstimator\SweepableEstimatorPipeline.cs (1)
16private readonly List<SweepableEstimator> _estimators;
Sweepers\ISweeper.cs (1)
91var parameterNames = _parameterValues.Keys.ToList();
Sweepers\Parameters.cs (2)
246var result = new List<IParameterValue>(); 372var result = new List<IParameterValue>();
Sweepers\SmacSweeper.cs (6)
93List<IRunResult> viableRuns = new List<IRunResult>(); 261List<ParameterSet> neighbors = new List<ParameterSet>(); 327List<double[]> datasetLeafValues = new List<double[]>(); 330List<double> leafValues = new List<double>(); 352List<int> path = null; 405List<ParameterSet> outSet = new List<ParameterSet>();
Sweepers\SweeperProbabilityUtils.cs (3)
33List<double> rvs = new List<double>(); 69var result = new List<float>(); 129List<IParameterValue> parameters = new List<IParameterValue>();
TrainerExtensions\SweepableParams.cs (1)
201var sweepableParams = new List<SweepableParam>();
TransformInference\TransformInference.cs (9)
248var catColumnsNew = new List<string>(); 249var catHashColumnsNew = new List<string>(); 282var transformedColumns = new List<string>(); 296var newColumns = new List<string>(); 324var featureCols = new List<string>(); 350var columnsWithMissing = new List<string>(); 401var suggestedTransforms = new List<SuggestedTransform>(); 428var concatColNames = new List<string>(); 477var newColNames = new List<string>();
TransformInference\TransformPostTrainerInference.cs (2)
15var suggestedTransforms = new List<SuggestedTransform>(); 23var inferredTransforms = new List<SuggestedTransform>();
Tuner\AutoZeroTuner.cs (5)
20private readonly List<Config> _configs = new List<Config>(); 39var trainerEstimators = _sweepablePipeline.Estimators.Where(e => e.Value.EstimatorType.IsTrainer()).Select(e => e.Value.EstimatorType.ToString()).ToList(); 64private List<Config> LoadConfigsFromJson() 73var res = JsonSerializer.Deserialize<List<Config>>(json);
Tuner\SmacTuner.cs (5)
27private readonly List<TrialResult> _histories; 118internal List<TrialResult> Histories => _histories; 260var neighborhood = new List<Parameter>(); 321List<double> leafValues = new List<double>(); 326List<int> path = null;
Utils\SplitUtil.cs (2)
18var trainDatasets = new List<IDataView>(); 19var validationDatasets = new List<IDataView>();
Utils\UserInputValidationUtil.cs (1)
133var allColumns = new List<string>();
Microsoft.ML.AutoML.Interactive (4)
AutoMLMonitorKernelExtension.cs (3)
48var summary = new List<IHtmlContent>(); 82var chartHeader = new List<IHtmlContent>(); 98var tableHeader = new List<IHtmlContent>();
NotebookMonitor.cs (1)
24public List<TrialResult> CompletedTrials { get; set; }
Microsoft.ML.AutoML.SourceGenerator (14)
EstimatorContract.cs (4)
18public List<string> EstimatorTypes { get; set; } 21public List<string> NugetDependencies { get; set; } 24public List<string> UsingStatements { get; set; } 27public List<Argument> ArgumentsList { get; set; }
Template\EstimatorType.cs (2)
72private global::System.Collections.Generic.List<int> indentLengthsField; 113private System.Collections.Generic.List<int> indentLengths
Template\SearchSpace.cs (2)
89private global::System.Collections.Generic.List<int> indentLengthsField; 130private System.Collections.Generic.List<int> indentLengths
Template\SweepableEstimator_T_.cs (2)
96private global::System.Collections.Generic.List<int> indentLengthsField; 137private System.Collections.Generic.List<int> indentLengths
Template\SweepableEstimator.cs (2)
91private global::System.Collections.Generic.List<int> indentLengthsField; 132private System.Collections.Generic.List<int> indentLengths
Template\SweepableEstimatorFactory.cs (2)
67private global::System.Collections.Generic.List<int> indentLengthsField; 108private System.Collections.Generic.List<int> indentLengths
Microsoft.ML.AutoML.Tests (13)
AutoFitTests.cs (1)
566var ignoredExceptions = new List<Exception>();
BestResultUtilTests.cs (2)
27var runResults = new List<RunDetail<RegressionMetrics>>() 43var runResults = new List<RunDetail<RegressionMetrics>>()
GetNextPipelineTests.cs (1)
56var history = new List<PipelineScore>();
GridSearchTunerTests.cs (1)
39var parameters = new List<Parameter>();
InferredPipelineTests.cs (2)
28var transforms1 = new List<SuggestedTransform>(); 29var transforms2 = new List<SuggestedTransform>();
MLContextManagerTests.cs (1)
52var messages = new List<LoggingEventArgs>();
SweeperTests.cs (3)
51List<RunResult> results = new List<RunResult>(); 99List<RunResult> results = new List<RunResult>(); 151List<RunResult> results = new List<RunResult>();
TunerTests.cs (1)
110var history = new List<TrialResult>();
Utils\TaskAgnosticAutoFit.cs (1)
70var iterationResults = classificationResult.RunDetails.Select(i => new TaskAgnosticIterationResult(i)).ToList();
Microsoft.ML.CodeGenerator (40)
CodeGenerator\CSharp\CodeGenerator.cs (8)
198internal (string Usings, string TrainerMethod, List<string> PreTrainerTransforms, List<string> PostTrainerTransforms) GenerateTransformsAndTrainers() 201var usings = new List<string>(); 221var preTrainerTransforms = preTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 222var postTrainerTransforms = postTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 242var results = new List<(string, string[])>(); 365List<string> preTrainerTransforms, 366List<string> postTrainerTransforms,
CodeGenerator\CSharp\PipelineExtension.cs (6)
16internal static (string Usings, string TrainerMethod, List<string> PreTrainerTransforms, List<string> PostTrainerTransforms) GenerateTransformsAndTrainers(this Pipeline pipeline) 19var usings = new List<string>(); 39var preTrainerTransforms = preTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 40var postTrainerTransforms = postTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 60var results = new List<(string, string[])>();
Templates\Azure\Console\AzureModelBuilder.cs (2)
166private global::System.Collections.Generic.List<int> indentLengthsField; 207private System.Collections.Generic.List<int> indentLengths
Templates\Azure\Model\AzureImageModelOutputClass.cs (2)
107private global::System.Collections.Generic.List<int> indentLengthsField; 148private System.Collections.Generic.List<int> indentLengths
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (2)
107private global::System.Collections.Generic.List<int> indentLengthsField; 148private System.Collections.Generic.List<int> indentLengths
Templates\Console\ConsumeModel.cs (2)
118private global::System.Collections.Generic.List<int> indentLengthsField; 159private System.Collections.Generic.List<int> indentLengths
Templates\Console\ModelBuilder.cs (2)
483private global::System.Collections.Generic.List<int> indentLengthsField; 524private System.Collections.Generic.List<int> indentLengths
Templates\Console\ModelInputClass.cs (2)
81private global::System.Collections.Generic.List<int> indentLengthsField; 122private System.Collections.Generic.List<int> indentLengths
Templates\Console\ModelOutputClass.cs (2)
124private global::System.Collections.Generic.List<int> indentLengthsField; 165private System.Collections.Generic.List<int> indentLengths
Templates\Console\ModelProject.cs (2)
113private global::System.Collections.Generic.List<int> indentLengthsField; 154private System.Collections.Generic.List<int> indentLengths
Templates\Console\PredictProgram.cs (2)
140private global::System.Collections.Generic.List<int> indentLengthsField; 181private System.Collections.Generic.List<int> indentLengths
Templates\Console\PredictProject.cs (2)
118private global::System.Collections.Generic.List<int> indentLengthsField; 159private System.Collections.Generic.List<int> indentLengths
Utils.cs (6)
54var featureColumns = dataView.Schema.ToList().FindAll( 63List<string> normalizedColumnNames = GenerateColumnNames(featureColumns.Select(column => column.Name).ToList()); 264List<string> columnNames = new List<string>(); 307List<string> normalizedColumnNames = GenerateColumnNames(columnNames); 323internal static List<string> GenerateColumnNames(List<string> columnNames)
Microsoft.ML.CodeGenerator.Tests (7)
ApprovalTests\ConsoleCodeGeneratorTests.cs (3)
604var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") }; 641var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") }; 1099var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
CodeGenTests.cs (4)
141public static List<TextLoader.Column[]> inputColumns = new List<TextLoader.Column[]> 184public static List<List<string>> expectedLabels = new List<List<string>>
Microsoft.ML.Core (49)
CommandLine\CmdParser.cs (7)
467var args = new List<Argument>(); 953List<ArgumentHelpStrings> strings = new List<ArgumentHelpStrings>(); 1081List<string> args = new List<string>(); 1175public List<KeyValuePair<string, object>> Values; // Key=tag. 1517var values = val.Values; 1568var comList = new List<KeyValuePair<string, IComponentFactory>>(); 1605var comList = new List<IComponentFactory>();
ComponentModel\ComponentCatalog.cs (4)
271List<object> prefix = new List<object>(); 447private readonly List<LoadableClassInfo> _classes; 450private readonly List<EntryPointInfo> _entryPoints; 453private readonly List<ComponentInfo> _components;
Data\AnnotationUtils.cs (2)
427var cols = new List<SchemaShape.Column>(); 443var cols = new List<SchemaShape.Column>();
Data\IEstimator.cs (2)
181var cols = new List<Column>(); 188var mCols = new List<Column>();
Data\IFileHandle.cs (1)
63private List<Stream> _streams;
Data\ProgressReporter.cs (8)
171var hProgress = new List<string>(); 172var hMetrics = new List<string>(); 173var progress = new List<double?>(); 174var progressLim = new List<double?>(); 175var metrics = new List<double?>(); 306private readonly List<CalculationInfo> _infos; 435public List<ProgressEvent> GetAllProgress() 437var list = new List<ProgressEvent>();
Data\Repository.cs (1)
82private readonly List<Entry> _open;
Data\RoleMappedSchema.cs (6)
196private RoleMappedSchema(DataViewSchema schema, Dictionary<string, List<DataViewSchema.Column>> map) 201private static void Add(Dictionary<string, List<DataViewSchema.Column>> map, ColumnRole role, DataViewSchema.Column column) 206if (!map.TryGetValue(role.Value, out var list)) 214private static Dictionary<string, List<DataViewSchema.Column>> MapFromNames(DataViewSchema schema, IEnumerable<KeyValuePair<ColumnRole, string>> roles, bool opt = false) 219var map = new Dictionary<string, List<DataViewSchema.Column>>(); 311private static Dictionary<string, IReadOnlyList<DataViewSchema.Column>> Copy(Dictionary<string, List<DataViewSchema.Column>> map)
EntryPoints\ModuleArgs.cs (1)
265var pieces = new List<string>();
Environment\ConsoleEnvironment.cs (1)
182var entries = progressTracker.GetAllProgress();
Environment\HostEnvironmentBase.cs (1)
366private readonly List<WeakReference<IHost>> _children;
Utilities\BinFinder.cs (4)
16private readonly List<int> _counts; // counts for each value 271protected abstract void FindBinsCore(List<int> counts, int[] path); 329protected override void FindBinsCore(List<int> counts, int[] path) 566protected override void FindBinsCore(List<int> counts, int[] path)
Utilities\Heap.cs (2)
19private readonly List<T> _rgv; // The heap elements. The 0th element is a dummy. 219private readonly List<T> _rgv; // The heap elements. The 0th element is a dummy.
Utilities\MathUtils.cs (1)
340private static List<double> _logFactorialCache;
Utilities\Utils.cs (7)
72public static int Size<T>(List<T> x) 133public static T[] ToArray<T>(List<T> list) 141public static void Add<T>(ref List<T> list, T item) 187public static void CopyTo<T>(this List<T> src, Span<T> dst, int? count = null) 773List<int> mapList = new List<int>(); 807List<int> mapList = new List<int>(); 843List<int> mapList = new List<int>();
Utilities\VBufferUtils.cs (1)
1351public static void Copy<T>(List<T> src, ref VBuffer<T> dst, int length)
Microsoft.ML.Core.Tests (15)
UnitTests\TestCustomTypeRegister.cs (2)
181var tribe = new List<AlienHero>() { new AlienHero("ML.NET", 2, 1000, 2000, 3000, 4000, 5000, 6000, 7000) }; 188var tribeEnumerable = ML.Data.CreateEnumerable<SuperAlienHero>(tribeTransformed, false).ToList();
UnitTests\TestEntryPoints.cs (2)
3350var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 3402var inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
UnitTests\TestHosts.cs (3)
31var children = new ConcurrentDictionary<IHost, List<IHost>>(); 94var children = new ConcurrentDictionary<IHost, List<IHost>>(); 125var messages = new List<string>();
UnitTests\TestUtilities.cs (3)
54List<float> x = Enumerable.Range(0, 1000000).Select(i => (float)i).ToList(); 79List<float> nullX = null; 113List<float> nullX = null;
UnitTests\TestVBuffer.cs (5)
471List<int> indices = new List<int>(a.GetIndices().Length); 850var minSlots = new List<int>(); 851var maxSlots = new List<int>(); 903var expectedIndices = new List<int>(); 904var expectedValues = new List<float>();
Microsoft.ML.Data (322)
Commands\CrossValidationCommand.cs (2)
216if (!TryGetOverallMetrics(tasks.Select(t => t.Result.Metrics).ToArray(), out var overallList)) 312private bool TryGetOverallMetrics(Dictionary<string, IDataView>[] metrics, out List<IDataView> overallList)
Commands\SaveDataCommand.cs (2)
145var cols = new List<int>(); 207var cols = new List<int>();
Commands\ScoreCommand.cs (1)
183var cols = new List<int>();
Commands\TrainCommand.cs (3)
395var xfs = BacktrackPipe(dataPipe, out pipeStart); 421private static List<IDataTransform> BacktrackPipe(IDataView dataPipe, out IDataView pipeStart) 425var transforms = new List<IDataTransform>();
Data\DataViewUtils.cs (1)
1328public static ValueGetter<ReadOnlyMemory<char>>[] PopulateGetterArray(DataViewRowCursor cursor, List<int> colIndices)
DataDebuggerPreview.cs (7)
19private static readonly FuncInstanceMethodInfo1<DataDebuggerPreview, DataViewRow, int, Action<RowInfo, List<object>>> _makeSetterMethodInfo 20= FuncInstanceMethodInfo1<DataDebuggerPreview, DataViewRow, int, Action<RowInfo, List<object>>>.Create(target => target.MakeSetter<int>); 39var rows = new List<RowInfo>(); 40var columns = new List<object>[n]; 46var setters = new Action<RowInfo, List<object>>[n]; 68private Action<RowInfo, List<object>> MakeSetter<T>(DataViewRow row, int col) 72Action<RowInfo, List<object>> result = (rowInfo, list) =>
DataLoadSave\Binary\BinaryLoader.cs (4)
328var mtocEntries = new List<MetadataTableOfContentsEntry>(); 329var deadMtocEntries = new List<MetadataTableOfContentsEntry>(); 1098List<TableOfContentsEntry> aliveList = new List<TableOfContentsEntry>(); 1099List<TableOfContentsEntry> deadList = new List<TableOfContentsEntry>();
DataLoadSave\Binary\BinarySaver.cs (4)
272List<long> offsets = new List<long>(); 274var metadataInfos = new List<Tuple<string, IValueCodec, CompressionKind>>(); 411var blockLookups = new List<BlockLookup>[activeColumns.Length]; 441var lookups = blockLookups[block.ColumnIndex];
DataLoadSave\Binary\Codecs.cs (6)
316private readonly List<int> _boundaries; 667private List<short> _offsets; 668private List<long> _ticks; 830private readonly List<int> _lengths; 831private readonly List<int> _counts; 832private readonly List<int> _indices;
DataLoadSave\Database\DatabaseLoader.cs (1)
118var columns = new List<Column>();
DataLoadSave\Database\LoadColumnNameAttribute.cs (1)
23var sources = new List<string>(1);
DataLoadSave\DataOperationsCatalog.cs (1)
464var result = new List<TrainTestData>();
DataLoadSave\LegacyCompositeDataLoader.cs (4)
199var exes = new List<TransformEx>(); 216var newlyCreated = new List<TransformEx>(); 470var tagData = new List<KeyValuePair<string, string>>(); 471var acceptedIds = new List<int>();
DataLoadSave\MultiFileSource.cs (1)
47List<string> concatenated = new List<string>();
DataLoadSave\Text\LoadColumnAttribute.cs (1)
49internal List<TextLoader.Range> Sources;
DataLoadSave\Text\TextLoader.cs (5)
242var sortedRanges = Source.OrderBy(x => x.Min).ToList(); 726List<ReadOnlyMemory<char>> lines = null; 848var segsAll = new List<Segment>(); 858var segsNew = new List<Segment>(); 1586var columns = new List<Column>();
DataLoadSave\Text\TextLoaderCursor.cs (1)
209public static void GetSomeLines(IMultiStreamSource source, int count, bool readMultilines, char[] separators, char escapeChar, ref List<ReadOnlyMemory<char>> lines)
DataLoadSave\Text\TextLoaderParser.cs (1)
734public static void GetInputSize(TextLoader parent, List<ReadOnlyMemory<char>> lines, out int minSize, out int maxSize)
DataLoadSave\Text\TextSaver.cs (1)
398var activeCols = new List<DataViewSchema.Column>();
DataLoadSave\TransformerChain.cs (2)
167var xfs = new List<ITransformer>(); 168var scopes = new List<TransformerScope>();
DataLoadSave\Transpose\TransposeSaver.cs (1)
121List<long> offsets = new List<long>();
DataView\ArrayDataViewBuilder.cs (2)
21private readonly List<Column> _columns; 22private readonly List<string> _names;
DataView\CacheDataView.cs (1)
114List<int> columnsToDrop = null;
DataView\Transposer.cs (1)
150List<int> toSave = new List<int>();
DataView\TypedCursor.cs (2)
99var acceptedCols = new List<InternalSchemaDefinition.Column>(); 100var indices = new List<int>();
Deprecated\Instances\HeaderSchema.cs (2)
48var nameList = new List<ReadOnlyMemory<char>>(); 49var indexList = new List<int>();
Dirty\PredictionUtils.cs (2)
69List<string> res = null; 115List<char> sepChars = new List<char>();
EntryPoints\EntryPointNode.cs (11)
418private readonly Dictionary<string, List<ParameterBinding>> _inputBindingMap; 488_inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 558Dictionary<string, List<ParameterBinding>> inputBindingMap, 603var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 705var toModify = new List<ParameterBinding>(); 844public Dictionary<string, List<ParameterBinding>> InputBindingMap => _inputBindingMap; 849private object BuildParameterValue(List<ParameterBinding> bindings) 881public static List<EntryPointNode> ValidateNodes(IHostEnvironment env, RunContext context, JArray nodes, 888var result = new List<EntryPointNode>(nodes.Count); 935List<ParameterBinding> parameterBindings; 987private readonly List<EntryPointNode> _nodes;
EntryPoints\InputBuilder.cs (8)
65var fields = new List<FieldInfo>(); 66var attrs = new List<Attributes>(); 152var missing = new List<string>(); 217public JObject GetJsonObject(object instance, Dictionary<string, List<ParameterBinding>> inputBindingMap, Dictionary<ParameterBinding, VariableBinding> inputMap) 231if (inputBindingMap.TryGetValue(field.Name, out List<ParameterBinding> bindings)) 382result.Add(attr.Input.Name ?? field.Name, builder.GetJsonObject(instanceVal, new Dictionary<string, List<ParameterBinding>>(), 674var fields = new List<FieldInfo>(); 675var attrs = new List<TlcModule.OutputAttribute>();
EntryPoints\TransformModelImpl.cs (2)
255var mappers = new List<IRowToRowMapper>(); 256var actives = new List<IEnumerable<DataViewSchema.Column>>();
Evaluators\AnomalyDetectionEvaluator.cs (17)
131var stratCol = new List<uint>(); 132var stratVal = new List<ReadOnlyMemory<char>>(); 133var auc = new List<Double>(); 134var drAtK = new List<Double>(); 135var drAtP = new List<Double>(); 136var drAtNumAnomalies = new List<Double>(); 137var thresholdAtK = new List<Single>(); 138var thresholdAtP = new List<Single>(); 139var thresholdAtNumAnomalies = new List<Single>(); 140var numAnoms = new List<long>(); 142var scores = new List<Single>(); 143var labels = new List<Single>(); 144var names = new List<ReadOnlyMemory<char>>(); 145var topKStratCol = new List<uint>(); 146var topKStratVal = new List<ReadOnlyMemory<char>>(); 309private readonly List<Info> _examples; 763var colsToKeep = new List<string>();
Evaluators\AucAggregator.cs (5)
39private readonly List<T> _posExamples; 40private readonly List<T> _negExamples; 82protected abstract void AddExample(List<T> examples); 209protected override void AddExample(List<Single> examples) 344protected override void AddExample(List<AucInfo> examples)
Evaluators\BinaryClassifierEvaluator.cs (40)
220var stratCol = new List<uint>(); 221var stratVal = new List<ReadOnlyMemory<char>>(); 222var isWeighted = new List<bool>(); 223var auc = new List<Double>(); 224var accuracy = new List<Double>(); 225var posPrec = new List<Double>(); 226var posRecall = new List<Double>(); 227var negPrec = new List<Double>(); 228var negRecall = new List<Double>(); 229var logLoss = new List<Double>(); 230var logLossRed = new List<Double>(); 231var entropy = new List<Double>(); 232var f1 = new List<Double>(); 233var auprc = new List<Double>(); 235var counts = new List<Double[]>(); 236var weights = new List<Double[]>(); 237var confStratCol = new List<uint>(); 238var confStratVal = new List<ReadOnlyMemory<char>>(); 240var scores = new List<Single>(); 241var precision = new List<Double>(); 242var recall = new List<Double>(); 243var fpr = new List<Double>(); 244var weightedPrecision = new List<Double>(); 245var weightedRecall = new List<Double>(); 246var weightedFpr = new List<Double>(); 247var prStratCol = new List<uint>(); 248var prStratVal = new List<ReadOnlyMemory<char>>(); 539public readonly List<Single> Scores; 540public readonly List<Double> Precision; 541public readonly List<Double> Recall; 542public readonly List<Double> FalsePositiveRate; 543public readonly List<Double> WeightedPrecision; 544public readonly List<Double> WeightedRecall; 545public readonly List<Double> WeightedFalsePositiveRate; 858out List<BinaryPrecisionRecallDataPoint> prCurve) 878var prCurveResult = new List<BinaryPrecisionRecallDataPoint>(); 985out List<BinaryPrecisionRecallDataPoint> prCurve) 1004var prCurveResult = new List<BinaryPrecisionRecallDataPoint>(); 1374var colsToKeep = new List<string>(); 1453var prList = new List<IDataView>();
Evaluators\ClusteringEvaluator.cs (9)
70var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>(); 162var stratCol = new List<uint>(); 163var stratVal = new List<ReadOnlyMemory<char>>(); 164var isWeighted = new List<bool>(); 165var nmi = new List<Double>(); 166var avgMinScores = new List<Double>(); 167var dbi = new List<Double>(); 233private readonly List<Double> _numInstancesOfClass; 235private readonly List<Double[]> _confusionMatrix;
Evaluators\EvaluatorBase.cs (4)
112var list = new List<AggregatorDictionaryBase>(); 306var warnings = GetWarningsCore(); 316protected virtual List<string> GetWarningsCore() 318var warnings = new List<string>();
Evaluators\EvaluatorUtils.cs (19)
527var naIndices = new List<int>(); 795var overallList = new List<IDataView>(); 816var firstDvKeyWithNamesColumns = new List<string>(); 818var firstDvVectorKeyColumns = new List<string>(); 819var variableSizeVectorColumnNamesList = new List<string>(); 820var list = new List<IDataView>(); 824var hidden = new List<int>(); 991private static List<string> GetMetricNames(IChannel ch, DataViewSchema schema, DataViewRow row, Func<int, bool> ignoreCol, 1003var metricNames = new List<string>(); 1056var nonAveragedCols = new List<string>(); 1060var idvList = new List<IDataView>() { avgMetrics }; 1123List<string> metricNames; 1175private static void UpdateSums(int isWeightedCol, int stratCol, int stratVal, AggregatedMetric[] aggregated, bool hasStdev, List<string> metricNames, bool hasWeighted, bool hasStrats, int colCount, ValueGetter<double>[] getters, ValueGetter<VBuffer<double>>[] vBufferGetters, ref double metricVal, ref VBuffer<double> metricVals) 1215int numFolds, int stratCol, int stratVal, int isWeightedCol, int foldCol, bool hasStdev, List<string> nonAveragedCols = null) 1442var predictedLabelNames = GetPredictedLabelNames(in labelNames, labelIndexToConfIndexMap); 1448private static List<ReadOnlyMemory<char>> GetPredictedLabelNames(in VBuffer<ReadOnlyMemory<char>> labelNames, int[] labelIndexToConfIndexMap) 1450List<ReadOnlyMemory<char>> result = new List<ReadOnlyMemory<char>>(); 1541private static string GetOverallMetricsAsString(double[] sumMetrics, double[] sumSqMetrics, int numFolds, bool weighted, bool average, List<string> metricNames) 1703var nonAveragedCols = new List<string>();
Evaluators\MamlEvaluator.cs (2)
233var cols = new List<(string name, string source)>(); 234var colsToKeep = new List<string>();
Evaluators\Metrics\ConfusionMatrix.cs (2)
66List<ReadOnlyMemory<char>> labelNames, bool isSampled, bool isBinary) 88List<IReadOnlyList<double>> counts = new List<IReadOnlyList<double>>(NumberOfClasses);
Evaluators\MulticlassClassificationEvaluator.cs (17)
143var stratCol = new List<uint>(); 144var stratVal = new List<ReadOnlyMemory<char>>(); 145var isWeighted = new List<bool>(); 146var microAcc = new List<double>(); 147var macroAcc = new List<double>(); 148var logLoss = new List<double>(); 149var logLossRed = new List<double>(); 150var topKAcc = new List<double>(); 151var allTopK = new List<double[]>(); 152var perClassLogLoss = new List<double[]>(); 153var counts = new List<double[]>(); 154var weights = new List<double[]>(); 155var confStratCol = new List<uint>(); 156var confStratVal = new List<ReadOnlyMemory<char>>(); 515protected override List<string> GetWarningsCore() 517var warnings = base.GetWarningsCore(); 954var overallList = new List<IDataView>();
Evaluators\MultiOutputRegressionEvaluator.cs (10)
98var stratCol = new List<uint>(); 99var stratVal = new List<ReadOnlyMemory<char>>(); 100var isWeighted = new List<bool>(); 101var l1 = new List<Double>(); 102var l2 = new List<Double>(); 103var dist = new List<Double>(); 104var perLabelL1 = new List<Double[]>(); 105var perLabelL2 = new List<Double[]>(); 106var perLabelRms = new List<Double[]>(); 107var perLabelLoss = new List<Double[]>();
Evaluators\RankingEvaluator.cs (27)
84var labelGains = new List<Double>(); 161var stratCol = new List<uint>(); 162var stratVal = new List<ReadOnlyMemory<char>>(); 163var isWeighted = new List<bool>(); 164var ndcg = new List<Double[]>(); 165var dcg = new List<Double[]>(); 167var groupName = new List<ReadOnlyMemory<char>>(); 168var groupNdcg = new List<Double[]>(); 169var groupDcg = new List<Double[]>(); 170var groupMaxDcg = new List<Double[]>(); 171var groupStratCol = new List<uint>(); 172var groupStratVal = new List<ReadOnlyMemory<char>>(); 285private readonly List<Double[]> _groupNdcg; 286private readonly List<Double[]> _groupDcg; 287private readonly List<Double[]> _groupMaxDcg; 295private readonly List<short> _queryLabels; 296private readonly List<Single> _queryOutputs; 433public readonly List<ReadOnlyMemory<char>> GroupId; 830public readonly List<short> QueryLabels; 831public readonly List<Single> QueryOutputs; 926var gsList = new List<IDataView>(); 997List<short> queryLabels, List<Single> queryOutputs, Double[] groupMaxDcgCur) 1036List<short> queryLabels, List<Single> queryOutputs, Double[] groupDcgCur) 1056private static Comparison<int> GetCompareItems(List<short> queryLabels, List<Single> queryOutputs)
Evaluators\RegressionEvaluatorBase.cs (8)
53var stratCol = new List<uint>(); 54var stratVal = new List<ReadOnlyMemory<char>>(); 55var isWeighted = new List<bool>(); 56var l1 = new List<TMetrics>(); 57var l2 = new List<TMetrics>(); 58var rms = new List<TMetrics>(); 59var loss = new List<TMetrics>(); 60var rSquared = new List<TMetrics>();
Model\Onnx\OnnxContext.cs (1)
137public abstract List<long> RetrieveShapeOrNull(string variableName);
Model\Pfa\PfaContext.cs (5)
23private readonly List<CellBlock> _cellBlocks; 24private readonly List<VariableBlock> _letSetBlocks; 25private readonly List<FuncBlock> _funcBlocks; 158var sets = new List<KeyValuePair<string, JToken>>(); 171var lets = new List<KeyValuePair<string, JToken>>(locals.Length - sets.Count);
Model\Pfa\SavePfaCommand.cs (1)
187var toExport = new List<string>();
Prediction\Calibrator.cs (2)
1072private readonly List<float> _cMargins; 1073private readonly List<float> _ncMargins;
Prediction\CalibratorCatalog.cs (1)
107var annotations = new List<SchemaShape.Column>();
Training\TrainerUtils.cs (2)
229var columns = extraCols == null ? 428var nameMap = new List<(string outName, string inName)>();
Transforms\ColumnBindingsBase.cs (1)
687var indices = new List<int>();
Transforms\ColumnConcatenatingEstimator.cs (1)
130List<SchemaShape.Column> meta = new List<SchemaShape.Column>();
Transforms\ColumnConcatenatingTransformer.cs (4)
594List<int> allValues = new List<int>(); 885var toHide = new List<string>(); 886var toDeclare = new List<KeyValuePair<string, JToken>>(); 921List<KeyValuePair<string, long>> inputList = new List<KeyValuePair<string, long>>();
Transforms\ColumnSelecting.cs (4)
554var outputToInputMapping = new List<int>(); 566var columnDict = new Dictionary<string, List<int>>(); 573if (columnDict.TryGetValue(columnName, out List<int> columnList)) 587if (columnDict.TryGetValue(columnName, out List<int> columnList))
Transforms\FeatureContributionCalculationTransformer.cs (1)
352var featContributionMetadata = new List<SchemaShape.Column>();
Transforms\Hashing.cs (4)
197List<int> invertIinfos = null; 198List<int> invertHashMaxCounts = null; 199var sourceColumnsForInvertHash = new List<DataViewSchema.Column>(); 1963var metadata = new List<SchemaShape.Column>();
Transforms\KeyToValue.cs (2)
187var toHide = new List<string>(); 188var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\KeyToVector.cs (3)
635var toHide = new List<string>(); 636var toDeclare = new List<KeyValuePair<string, JToken>>(); 829var metadata = new List<SchemaShape.Column>();
Transforms\MetadataDispatcher.cs (2)
383private List<GetterInfo> _getters; 450var getters = _getters;
Transforms\NormalizeColumn.cs (4)
795protected readonly List<int> Labels; 880protected readonly List<TFloat> ColValues; 908protected readonly List<TFloat>[] ColValues; 920ColValues = new List<TFloat>[ColumnSlotCount];
Transforms\NormalizeColumnDbl.cs (8)
88public static void LoadModel(ModelLoadContext ctx, ref List<int> indicesShift, 668List<int> nz = null; 733List<int> nz = null; 1615var nz = new List<int>(); 1785var nz = new List<int>(); 1857private readonly List<TFloat> _values; 1901private readonly List<TFloat>[] _values; 1909_values = new List<TFloat>[cv];
Transforms\NormalizeColumnSng.cs (9)
88public static void LoadModel(ModelLoadContext ctx, ref List<int> indicesShift, 542protected readonly List<TType> Elements; 826List<int> nz = null; 890List<int> nz = null; 1778var nz = new List<int>(); 1948var nz = new List<int>(); 2020private readonly List<TFloat> _values; 2064private readonly List<TFloat>[] _values; 2072_values = new List<TFloat>[cv];
Transforms\Normalizer.cs (4)
361var newMetadataKinds = new List<SchemaShape.Column> { isNormalizedMeta }; 537var activeCols = new List<DataViewSchema.Column>(); 788var toHide = new List<string>(); 789var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\NormalizeUtils.cs (2)
146var columnsToNormalize = new List<NormalizeTransform.AffineColumn>(); 155var entryPoints = new List<EntryPointNode>();
Transforms\RowShufflingTransformer.cs (1)
191List<int> columnsToDrop = null;
Transforms\SlotsDroppingTransformer.cs (1)
585List<int> newCategoricalSlotRanges = new List<int>();
Transforms\TransformBase.cs (2)
578var toHide = new List<string>(); 579var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\TypeConverting.cs (1)
634var metadata = new List<SchemaShape.Column>();
Transforms\ValueMapping.cs (6)
241var convertedValues = new List<ReadOnlyMemory<char>[]>(); 557List<TKey> keys = new List<TKey>(); 558List<TValue> values = new List<TValue>(); 997var cols = new List<(string outputColumnName, string inputColumnName)>() 1087var srcShape = ctx.RetrieveShapeOrNull(srcVariableName); 1108var srcShape = ctx.RetrieveShapeOrNull(srcVariableName);
Transforms\ValueToKeyMappingTransformer.cs (4)
790var srcShape = ctx.RetrieveShapeOrNull(srcVariableName); 803var srcShape = ctx.RetrieveShapeOrNull(srcVariableName); 928var toHide = new List<string>(); 929var toDeclare = new List<KeyValuePair<string, JToken>>();
Utilities\ApplyTransformUtils.cs (1)
83var transforms = new List<IDataTransform>();
Utilities\ModelFileUtils.cs (3)
241List<string> rolesList = new List<string>(); 242List<string> columnNamesList = new List<string>(); 287var list = new List<KeyValuePair<string, string>>();
Utilities\StreamUtils.cs (1)
71var matchList = new List<string>();
Microsoft.ML.DataView (4)
DataViewSchema.cs (2)
258private readonly List<(string Name, DataViewType Type, Delegate Getter, Annotations Annotations)> _items; 380private readonly List<(string Name, DataViewType Type, Annotations Annotations)> _items;
SchemaDebuggerProxy.cs (2)
39private static List<KeyValuePair<string, object>> BuildValues(DataViewSchema.Annotations annotations) 41var result = new List<KeyValuePair<string, object>>();
Microsoft.ML.Ensemble (22)
OutputCombiners\BaseStacking.cs (3)
123public void Train(List<FeatureSubsetModel<TOutput>> models, RoleMappedData data, IHostEnvironment env) 153TOutput>[] maps, List<FeatureSubsetModel<TOutput>> models) 170List<FeatureSubsetModel<TOutput>> models, Func<float, T> labelConvert)
OutputCombiners\IOutputCombiner.cs (1)
34void Train(List<FeatureSubsetModel<TOutput>> models, RoleMappedData data, IHostEnvironment env);
PipelineEnsemble.cs (1)
705var list = new List<KeyValuePair<string, object>>();
Selector\DiversityMeasure\BaseDisagreementDiversityMeasure.cs (2)
14public List<ModelDiversityMetric<TOutput>> CalculateDiversityMeasure(IList<FeatureSubsetModel<TOutput>> models, 20var diversityValues = new List<ModelDiversityMetric<TOutput>>();
Selector\IDiversityMeasure.cs (1)
16List<ModelDiversityMetric<TOutput>> CalculateDiversityMeasure(IList<FeatureSubsetModel<TOutput>> models,
Selector\SubModelSelector\BaseDiverseSelector.cs (3)
75List<ModelDiversityMetric<TOutput>> diversityValues = CalculateDiversityMeasure(models, _predictions); 87var selectedModels = new List<FeatureSubsetModel<TOutput>>(); 115public abstract List<ModelDiversityMetric<TOutput>> CalculateDiversityMeasure(IList<FeatureSubsetModel<TOutput>> models,
Selector\SubModelSelector\BestDiverseSelectorBinary.cs (1)
41public override List<ModelDiversityMetric<Single>> CalculateDiversityMeasure(IList<FeatureSubsetModel<float>> models,
Selector\SubModelSelector\BestDiverseSelectorMulticlass.cs (1)
42public override List<ModelDiversityMetric<VBuffer<Single>>> CalculateDiversityMeasure(IList<FeatureSubsetModel<VBuffer<float>>> models,
Selector\SubModelSelector\BestDiverseSelectorRegression.cs (1)
39public override List<ModelDiversityMetric<Single>> CalculateDiversityMeasure(IList<FeatureSubsetModel<float>> models,
Trainer\Binary\EnsembleTrainer.cs (1)
83private protected override IPredictor CreatePredictor(List<FeatureSubsetModel<float>> models)
Trainer\EnsembleTrainerBase.cs (5)
137var models = new List<FeatureSubsetModel<TOutput>>(); 175var modelsList = batchModels.Where(m => m != null).ToList(); 193private protected abstract IPredictor CreatePredictor(List<FeatureSubsetModel<TOutput>> models); 208private protected virtual void PrintMetrics(IChannel ch, List<FeatureSubsetModel<TOutput>> models) 221private protected static FeatureSubsetModel<TOutput>[] CreateModels<T>(List<FeatureSubsetModel<TOutput>> models) where T : IPredictorProducing<TOutput>
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (1)
90private protected override IPredictor CreatePredictor(List<FeatureSubsetModel<VBuffer<float>>> models)
Trainer\Regression\RegressionEnsembleTrainer.cs (1)
78private protected override IPredictor CreatePredictor(List<FeatureSubsetModel<float>> models)
Microsoft.ML.EntryPoints (42)
CrossValidationMacro.cs (7)
168var subGraphNodes = new List<EntryPointNode>(); 179var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 205var graph = EntryPointNode.ValidateNodes(env, context, input.Nodes); 239inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 255inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 318var combineInputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 372var warnings = input.Warnings != null ? new List<IDataView>(input.Warnings) : new List<IDataView>();
FeatureCombiner.cs (9)
60var concatNames = new List<KeyValuePair<string, string>>(); 61List<TypeConvertingEstimator.ColumnOptions> cvt; 63var ktv = ConvertFeatures(feats.ToArray(), featNames, concatNames, ch, out cvt, out errCount); 87private static IDataView ApplyKeyToVec(List<KeyToVectorMappingEstimator.ColumnOptions> ktv, IDataView viewTrain, IHost host) 142private static IDataView ApplyConvert(List<TypeConvertingEstimator.ColumnOptions> cvt, IDataView viewTrain, IHostEnvironment env) 152private static List<KeyToVectorMappingEstimator.ColumnOptions> ConvertFeatures(IEnumerable<DataViewSchema.Column> feats, HashSet<string> featNames, List<KeyValuePair<string, string>> concatNames, IChannel ch, 153out List<TypeConvertingEstimator.ColumnOptions> cvt, out int errCount) 159List<KeyToVectorMappingEstimator.ColumnOptions> ktv = null;
JsonUtils\JsonManifestUtils.cs (3)
51var kinds = new List<Type>(); 157var inputs = new List<KeyValuePair<Double, JObject>>(); 285var outputs = new List<KeyValuePair<Double, JObject>>();
MacroUtils.cs (4)
120internal static void ConvertIPredictorModelsToArray(IHostEnvironment env, RunContext context, List<EntryPointNode> subGraphNodes, 124var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 143internal static void ConvertIdataViewsToArray(IHostEnvironment env, RunContext context, List<EntryPointNode> subGraphNodes, 147var inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
OneVersusAllMacro.cs (5)
51private static Var<PredictorModel> ProcessClass(IHostEnvironment env, List<EntryPointNode> macroNodes, int k, string label, Arguments input, EntryPointNode node) 60var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 75var subGraphNodes = EntryPointNode.ValidateNodes(env, subGraphRunContext, input.Nodes); 152var macroNodes = new List<EntryPointNode>(); 172var inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
PermutationFeatureImportance.cs (5)
108List<BinaryMetrics> metrics = new List<BinaryMetrics>(); 165List<MulticlassMetrics> metrics = new List<MulticlassMetrics>(); 224List<RegressionMetrics> metrics = new List<RegressionMetrics>(); 278List<RankingMetrics> metrics = new List<RankingMetrics>(); 313List<string> slotNames = new List<string>();
ScoreColumnSelector.cs (2)
31List<int> indices = new List<int>(); 84var copyCols = new List<(string name, string source)>();
TrainTestMacro.cs (7)
119var subGraphNodes = EntryPointNode.ValidateNodes(env, subGraphRunContext, input.Nodes, label: input.LabelColumn, 159Dictionary<string, List<ParameterBinding>> inputBindingMap; 168inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 191inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 225inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 248inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 270inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
Microsoft.ML.FastTree (118)
Dataset\Dataset.cs (1)
621List<int>[] listQueries = Enumerable.Range(0, numParts).Select(x => new List<int>()).ToArray(numParts);
Dataset\FeatureFlock.cs (9)
340List<int> features = learner.GetActiveFeatures(featureMin, featureLim).ToList(); 520List<int> features = learner.GetActiveFeatures(featureMin, featureLim).ToList(); 538List<VirtualBin> virtualBins = new List<VirtualBin>(); 539List<int> lowPopulationFeatures = new List<int>(); 668List<int> catFeatureIndices = new List<int>(); 716List<int> features = learner.GetActiveFeatures(featureMin, featureLim).ToList(); 734List<VirtualBin> virtualBins = new List<VirtualBin>(); 735List<int> lowPopulationFeatures = new List<int>(); 890List<int> catFeatureIndices = new List<int>();
Dataset\RepeatIntArray.cs (2)
29List<int> tempValueList = new List<int>(); 30List<byte> tempDeltaList = new List<byte>();
Dataset\SparseIntArray.cs (4)
50List<int> tempValueList = new List<int>(); 51List<byte> tempDeltaList = new List<byte>(); 126List<int> tempValueList = new List<int>(); 127List<byte> tempDeltaList = new List<byte>();
FastTree.cs (41)
75private protected List<Test> Tests; 1012var result = new List<KeyValuePair<int, int>>(); 1023List<int> features, int[] binnedValues, int[] lastOn, ValuesList[] instanceList, 1108List<int> features, int[] binnedValues, int[] lastOn, bool categorical) 1287private static int AddColumnIfNeeded(DataViewSchema.Column? info, List<int> toTranspose) 1363var toTranspose = new List<int>(); 1461List<FeatureFlockBase> flocks = new List<FeatureFlockBase>(); 1480List<int> pending = new List<int>(); 1691List<int> minSlots = new List<int>(); 1692List<int> maxSlots = new List<int>(); 1715List<ulong> qids = new List<ulong>(); 1716List<int> boundaries = new List<int>(); 1745private readonly List<short> _targetsList; 1746private readonly List<double> _actualTargets; 1747private readonly List<double> _weights; 1748private readonly List<int> _boundaries; 1914List<int> trivialFeatures = new List<int>(); 1944private NHotFeatureFlock CreateNHotFlock(IChannel ch, List<int> features) 1956var delta = new List<byte>(); 1957var values = new List<int>(); 2090List<int> pending = new List<int>(); 2192List<int> pending = new List<int>(); 2375private List<double> _dense; 2377private List<KeyValuePair<int, double>> _sparse; 2657var sp = values._sparse; 3047var nodesTreeids = new List<long>(); 3048var nodesIds = new List<long>(); 3049var nodesFeatureIds = new List<long>(); 3050var nodeModes = new List<string>(); 3051var nodesValues = new List<double>(); 3052var nodeHitrates = new List<long>(); 3053var missingValueTracksTrue = new List<bool>(); 3054var nodesTrueNodeIds = new List<long>(); 3055var nodesFalseNodeIds = new List<long>(); 3056var nodesBaseValues = new List<float>(); 3059var classTreeIds = new List<long>(); 3060var classNodeIds = new List<long>(); 3061var classIds = new List<long>(); 3062var classWeights = new List<double>(); 3167List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>(); 3272internal int GetLeaf(int treeId, in VBuffer<float> features, ref List<int> path)
GamModelParameters.cs (11)
483var internalNodeIndices = new List<int>(); 484var lteChild = new List<int>(); 485var gtChild = new List<int>(); 501List<int> internalNodeIndices, List<int> lteChild, List<int> gtChild, ref int internalNodeId) 602private readonly List<int>[][] _binDocsList; 644_binDocsList = new List<int>[numFeatures][]; 647var binDocList = new List<int>[_pred._binEffects[f].Length]; 652var labels = new List<float>(); 653var scores = new List<float>();
GamTrainer.cs (2)
545var newBinEffects = new List<double>(); 546var newBinBoundaries = new List<double>();
RandomForestClassification.cs (2)
271List<float> featuresList = new List<float>(); 272List<float> labelsList = new List<float>();
RandomForestRegression.cs (2)
404List<float> featuresList = new List<float>(); 405List<float> labelsList = new List<float>();
Training\DocumentPartitioning.cs (2)
68var perChunkDocumentLists = new List<int>[numChunks][]; 84List<int>[] perLeafDocumentLists = Enumerable.Range(0, tree.NumLeaves)
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (1)
95List<KeyValuePair<short, int>> labelFreqList = new List<KeyValuePair<short, int>>();
Training\OptimizationAlgorithms\GradientDescent.cs (1)
21private readonly List<double[]> _treeScores;
Training\OptimizationAlgorithms\OptimizationAlgorithm.cs (1)
32public List<ScoreTracker> TrackedScores;
Training\Test.cs (4)
409List<TestResult> result = new List<TestResult>() 452List<TestResult> result = new List<TestResult>() 567List<TestResult> result = new List<TestResult>(); 705List<TestResult> result = new List<TestResult>()
TreeEnsemble\InternalRegressionTree.cs (6)
379List<int> categoricalNodeIndices = new List<int>(); 809public int GetLeaf(in VBuffer<float> feat, ref List<int> path) 838private int GetLeafCore(ReadOnlySpan<float> nonBinnedInstance, List<int> path = null, int root = 0) 916private int GetLeafCore(ReadOnlySpan<int> featIndices, ReadOnlySpan<float> featValues, List<int> path = null, int root = 0) 1502List<int> path = new List<int>(); 1509private bool PathToLeaf(int currentNodeIndex, int leafIndex, List<int> path)
TreeEnsemble\InternalTreeEnsemble.cs (1)
26private readonly List<InternalRegressionTree> _trees;
TreeEnsembleFeaturizationTransformer.cs (1)
64var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
TreeEnsembleFeaturizer.cs (4)
187var delegates = new List<Delegate>(); 236private readonly List<int>[] _pathIds; 260_pathIds = new List<int>[_numTrees]; 322var nodes = _pathIds[i];
Utils\BufferPoolManager.cs (9)
30private static readonly ConcurrentDictionary<Type, SortedList<int, List<Array>>> _bufferPools = new ConcurrentDictionary<Type, SortedList<int, List<Array>>>(); 41SortedList<int, List<Array>> availableBuffers = null; 53List<Array> buffers = availableBuffers.FirstOrDefault(x => x.Value.Count > 0 && x.Key >= size && (x.Key - size) < (size * 0.2)).Value as List<Array>; 83SortedList<int, List<Array>> availableBuffers = null; 84List<Array> buffers = null; 112SortedList<int, List<Array>> availableBuffers = null; 153_bufferPools[type] = new SortedList<int, List<Array>>();
Utils\RegressionTreeBaseUtils.cs (14)
28var treeWeightsList = new List<double>(); 29var treeId = new List<int>(); 30var isLeaf = new List<ReadOnlyMemory<char>>(); 31var leftChild = new List<int>(); 32var rightChild = new List<int>(); 33var numericalSplitFeatureIndexes = new List<int>(); 34var numericalSplitThresholds = new List<float>(); 35var categoricalSplitFlags = new List<bool>(); 36var leafValues = new List<double>(); 37var splitGains = new List<double>(); 38var categoricalSplitFeatures = new List<VBuffer<int>>(); 39var categoricalCategoricalSplitFeatureRange = new List<VBuffer<int>>(); 118var leafSamples = new List<VBuffer<double>>(); 121var leafSampleWeights = new List<VBuffer<double>>();
Microsoft.ML.GenAI.Core (6)
Extension\ModuleExtension.cs (2)
215var layerSizeMap = model.GetSizeForEachDynamicLayerInBytes() 224var topK = layerSizeMap.Take(count).ToList();
Pipeline\CausalLMPipeline.cs (2)
228var chunks = new List<string>(); 253List<int[]> stopTokenIds = [[]];
Trainer\CausalLMDataset.cs (1)
19private readonly List<CausalLMModelInput> _data;
Trainer\CausalLMSupervisedFineTuningTrainer.cs (1)
43var losses = new List<float>();
Microsoft.ML.GenAI.Core.Tests (3)
CausalLMDatasetTest.cs (3)
82var inputs = new List<List<ChatMessage>> 91var outputs = new List<ChatMessage>
Microsoft.ML.GenAI.LLaMA (4)
LlamaTextCompletionService.cs (2)
65var stopTokenSequence = executionSettings?.ExtensionData?["stop_token_sequence"] as List<string> ?? new List<string>();
Module\LlamaModel.cs (2)
120var allHiddenStates = new List<Tensor>(); 121var allAttentions = new List<Tensor>();
Microsoft.ML.GenAI.LLaMA.Tests (1)
LLaMA3_1Tests.cs (1)
98var chatHistory = new List<IMessage>
Microsoft.ML.GenAI.Mistral (5)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
170var requiredParameterNames = new List<string>();
MistralCausalLMAgent.cs (2)
149var mistralToolCalls = JsonSerializer.Deserialize<List<MistralToolCall>>(json) ?? throw new InvalidOperationException("Failed to deserialize tool calls.");
MistralModel.cs (2)
114var allHiddenStates = new List<Tensor>(); 115var allAttentions = new List<Tensor>();
Microsoft.ML.GenAI.Mistral.Tests (2)
Mistral_7B_Instruct_V0_3Tests.cs (2)
44var chatHistory = new List<IMessage> 83var chatHistory = new List<IMessage>
Microsoft.ML.GenAI.Phi (4)
Module\Phi3Model.cs (2)
116var allHiddenStates = new List<Tensor>(); 117var allAttentions = new List<Tensor>();
Phi3\Phi3CausalLMTextGenerationService.cs (2)
35var stopTokenSequence = executionSettings?.ExtensionData?["stop_token_sequence"] as List<string> ?? new List<string>();
Microsoft.ML.GenAI.Samples (2)
Llama\SFT_Llama_3_2_1B.cs (2)
36var dataset = new List<Data> 105var trainChatHistory = new List<ChatMessage>
Microsoft.ML.IntegrationTests (2)
IntrospectiveTraining.cs (1)
402var modelComponents = model.ToList();
Prediction.cs (1)
62var transformers = new List<ITransformer>();
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
44var list = new List<string> { AttributeName, "Microsoft.ML.Internal.CpuMath.Core.BestFriendAttribute" };
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
324var tensorC = new List<float>();
Microsoft.ML.LightGbm (15)
LightGbmTrainerBase.cs (10)
564private static List<int> GetCategoricalBoundires(int[] categoricalFeatures, int rawNumCol) 566List<int> catBoundaries = new List<int> { 0 }; 597private static List<string> ConstructCategoricalFeatureMetaData(int[] categoricalFeatures, int rawNumCol, ref CategoricalMetaData catMetaData) 599List<int> catBoundaries = GetCategoricalBoundires(categoricalFeatures, rawNumCol); 605List<string> catIndices = new List<string>(); 659var catIndices = ConstructCategoricalFeatureMetaData(categoricalFeatures, rawNumCol, ref catMetaData); 770List<float> labelList = new List<float>(); 778List<float> weightList = hasWeights ? new List<float>() : null; 779List<ulong> cursorGroups = hasGroup ? new List<ulong>() : null; 808List<int> groupList = new List<int>();
WrappedLightGbmBooster.cs (2)
100var values = new List<double>(); 175List<int> cats = new List<int>();
WrappedLightGbmInterface.cs (1)
254List<string> res = new List<string>();
WrappedLightGbmTraining.cs (2)
42var metrics = new List<string>() { "Iteration" }; 43var units = new List<string>() { "iterations" };
Microsoft.ML.Maml (5)
HelpCommand.cs (5)
147var components = new List<Component>(); 198var components = new List<Component>(); 284var components = new List<Component>(); 304private void Serialize(List<Component> components) 424private void GenerateModule(List<Component> components)
Microsoft.ML.Mkl.Components (2)
SymSgdClassificationTrainer.cs (2)
355private readonly List<VeryLongArray> _storage; 535private readonly List<InstanceProperties> _instanceProperties;
Microsoft.ML.OneDal (2)
OneDalUtils.cs (2)
44internal static long GetTrainData(IChannel channel, FloatLabelCursor.Factory cursorFactory, ref List<float> featuresList, ref List<float> labelsList, int numberOfFeatures)
Microsoft.ML.OnnxConverter (24)
OnnxContextImpl.cs (7)
19private readonly List<OnnxCSharpToProtoWrapper.NodeProto> _nodes; 20private readonly List<OnnxUtils.ModelArgs> _inputs; 22private readonly List<OnnxCSharpToProtoWrapper.TensorProto> _initializers; 23private readonly List<OnnxUtils.ModelArgs> _intermediateValues; 24private readonly List<OnnxUtils.ModelArgs> _outputs; 243public void AddOutputVariable(DataViewType type, string variableName, List<long> dim = null) 276public override List<long> RetrieveShapeOrNull(string variableName)
OnnxUtils.cs (17)
22List<long> dims, List<bool> dimsParam) 51List<long> dims, List<bool> dimsParam) 275public readonly List<long> Dims; 276public readonly List<bool> DimParams; 278public ModelArgs(string name, TensorProto.Types.DataType dataType, List<long> dims, List<bool> dimParams) 287public static ModelProto MakeModel(List<NodeProto> nodes, string producerName, string name, 288string domain, string producerVersion, long modelVersion, int opSetVersion, List<ModelArgs> inputs, 289List<ModelArgs> outputs, List<ModelArgs> intermediateValues, List<TensorProto> initializers) 340List<long> dims = null, List<bool> dimsParams = null) 353List<long> dimsLocal = null; 354List<bool> dimsParamLocal = null;
Microsoft.ML.OnnxTransformer (34)
OnnxTransform.cs (19)
19using OnnxShape = System.Collections.Generic.List<int>; 455private static IEnumerable<int> AdjustDimensions(OnnxShape shape) 500private readonly OnnxShape[] _inputTensorShapes; 512_inputTensorShapes = new OnnxShape[_parent.Inputs.Length]; 520var shape = inputNodeInfo.Shape; 685private void UpdateCacheIfNeeded(long position, INamedOnnxValueGetter[] srcNamedOnnxValueGetters, List<string> activeOutputColNames, OnnxRuntimeOutputCacher outputCache) 689var inputNameOnnxValues = new List<NamedOnnxValue>(); 712var listActiveOutputColumns = activeOutputColNames.ToList(); 731var listActiveOutputColumns = activeOutputColNames.ToList(); 755var listActiveOutputColumns = activeOutputColNames.ToList(); 776OnnxShape[] onnxInputShapes) 795private static INamedOnnxValueGetter CreateNamedOnnxValueGetter(DataViewRow input, Type onnxType, int colIndex, OnnxShape onnxShape) 807/// Function needed by reflection in <see cref="CreateNamedOnnxValueGetter(DataViewRow, Type, int, OnnxShape)"/>. 809private static INamedOnnxValueGetter CreateNamedOnnxValueGetterCore<T>(DataViewRow input, int colIndex, OnnxShape onnxShape) 818private static INamedOnnxValueGetter CreateNamedOnnxValueGetterVec(DataViewRow input, Type onnxType, int colIndex, OnnxShape onnxShape) 830/// Function needed by reflection in <see cref="CreateNamedOnnxValueGetterVec(DataViewRow, Type, int, OnnxShape)"/>. 832private static INamedOnnxValueGetter CreateNamedOnnxValueGetterVecCore<T>(DataViewRow input, int colIndex, OnnxShape onnxShape) 868private readonly OnnxShape _tensorShape; 876public NamedOnnxValueGetterVec(DataViewRow input, int colIndex, OnnxShape tensorShape)
OnnxTypeParser.cs (1)
198List<int> dims = new List<int>();
OnnxUtils.cs (14)
16using OnnxShape = System.Collections.Generic.List<int>; 37public List<string> InputNames { get; } 41public List<string> OutputNames { get; } 45public List<string> InitializerNames { get; } 116public OnnxShape Shape { get; } 132public OnnxVariableInfo(string name, OnnxShape shape, Type typeInOnnxRuntime, DataViewType mlnetType, Func<NamedOnnxValue, object> caster) 279var inputInfos = GetOnnxVariablesFromMetadata(_session.InputMetadata, shapeDictionary, inputTypePool, null); 280var outputInfos = GetOnnxVariablesFromMetadata(_session.OutputMetadata, shapeDictionary, outputTypePool, casterPool); 281var overrideableInitializers = GetOnnxVariablesFromMetadata(_session.OverridableInitializerMetadata, shapeDictionary, inputTypePool, null); 296private List<OnnxVariableInfo> GetOnnxVariablesFromMetadata(IReadOnlyDictionary<string, NodeMetadata> nodeMetadata, 301var onnxVariableInfos = new List<OnnxVariableInfo>(); 449public IDisposableReadOnlyCollection<DisposableNamedOnnxValue> Run(List<NamedOnnxValue> inputNamedOnnxValues, List<string> outputColumns) 554public static NamedOnnxValue CreateNamedOnnxValue<T>(string name, ReadOnlySpan<T> data, OnnxShape shape)
Microsoft.ML.OnnxTransformerTest (12)
DnnImageFeaturizerTest.cs (3)
75var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 76var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 77var sizeData = new List<TestDataSize> { new TestDataSize() { data_0 = new float[2] } };
OnnxTransformTests.cs (9)
143var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 144var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 145var sizeData = new List<TestDataSize> { new TestDataSize() { data_0 = new float[2] } }; 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 (14)
ParquetLoader.cs (2)
261List<Column> columnsLoaded = new List<Column>(); 270private void FlattenFields(Field field, ref List<Column> cols, bool isRepeatable)
PartitionedFileLoader.cs (4)
465if (!TryGetNextPathAndValues(out string path, out string relativePath, out List<string> values)) 504private bool TryGetNextPathAndValues(out string path, out string relativePath, out List<string> values) 556private void UpdateColumnValues(string path, List<string> values) 722private bool TryParseValuesFromPath(string path, out List<string> results)
PartitionedPathParser.cs (8)
285if (!TryParseNames(path, out List<string> names)) 306if (!TryParseValues(path, out List<string> values)) 319public bool TryParseNames(string path, out List<string> names) 321return TryParseNamesAndValues(path, out names, out List<string> values); 324public bool TryParseValues(string path, out List<string> values) 326return TryParseNamesAndValues(path, out List<string> names, out values); 329public bool TryParseNamesAndValues(string path, out List<string> names, out List<string> values)
Microsoft.ML.PerformanceTests (5)
FeaturizeTextBench.cs (3)
33var columns = new List<TextLoader.Column>(); 53var textColumns = new List<string>(); 59var featurizers = new List<TextFeaturizingEstimator>();
TextLoaderBench.cs (2)
25private List<TextLoader.Column> _columns; 60var getters = new List<ValueGetter<ReadOnlyMemory<char>>>();
Microsoft.ML.Predictor.Tests (15)
ResultProcessor\TestResultProcessor.cs (6)
39List<string> result = new List<string>(); 61List<string> testFiles = new List<string>(); 78List<string> testFiles = new List<string>(); 95List<string> testFiles = new List<string>(); 112List<string> testFiles = new List<string>(); 129List<string> testFiles = new List<string>();
TestPredictors.cs (8)
463var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 479var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 516var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 527var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 980var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.adultOnlyCat, TestDatasets.adult }; 999var regressionDatasets = new List<TestDataset> { TestDatasets.autosSample }; 1019var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerGroupId }; 1037var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe };
TestTransposer.cs (1)
124List<int> indices = new List<int>();
Microsoft.ML.Recommender (3)
MatrixFactorizationPredictor.cs (1)
471var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
MatrixFactorizationTrainer.cs (1)
529var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
SafeTrainingAndModelBuffer.cs (1)
267List<MFNode> nodes = new List<MFNode>();
Microsoft.ML.ResultProcessor (29)
ResultProcessor.cs (29)
35public List<ExperimentItemResult> PredictorList; 291public List<string> GetSettings() 293List<string> settings = new List<string>(); 380private static bool ValidateMamlOutput(string filename, string[] rawLines, out List<string> lines) 401List<string> lines; 422List<string> fileTimeMemoryResults; 423List<string> fileResults; 566List<string> lines; 573List<string> fileTimeMemoryResults; 574List<string> fileResults; 595private static ExperimentItemResult? GetMetrics(string filename, ResultProcessorArguments cmd, List<string> lines, List<string> fileTimeMemoryResults, List<string> fileResults) 698List<string> lines; 702List<string> fileTimeMemoryResults; 703List<string> fileResults; 710private static bool TryParseFileToLines(string filename, out List<string> lines, string[] rawLines = null) 733private static bool TryParseMamlCommand(List<string> lines, out string commandline) 749private static bool TryParseLines(List<string> lines, ResultProcessorArguments cmd, out List<string> fileResults, out List<string> fileTimeMemoryResult) 788private static Dictionary<string, ResultMetric> ParseResultLines(List<string> fileResults, ResultProcessorArguments cmd, out Double metricValue, string metricName) 847List<ExperimentItemResult?> results = new List<ExperimentItemResult?>(); 862public static PredictorResult GetPredictorObject(List<PredictorResult> tempPredictorList, string learnerName, out bool newLearner) 908var foldLines = new List<string>(lines.Where((s, i1) => i1 >= startLineIdx && i1 < endLineIdx)); 928List<int> allFoldIndices = new List<int>(foldResults.Keys); 1040List<PredictorResult> predictorResultsList = new List<PredictorResult>(); 1060List<string> m = new List<string>(); 1067List<KeyValuePair<string, string>> srcFiles = new List<KeyValuePair<string, string>>();
Microsoft.ML.Samples (171)
Dynamic\DataOperations\FilterRowsByKeyColumnFraction.cs (1)
20var samples = new List<DataPoint>()
Dynamic\DataOperations\FilterRowsByMissingValues.cs (1)
20var samples = new List<DataPoint>()
Dynamic\DataOperations\LoadingText.cs (1)
16var dataFiles = new List<string>();
Dynamic\DataOperations\SaveAndLoadFromBinary.cs (1)
19var dataPoints = new List<DataPoint>()
Dynamic\DataOperations\SaveAndLoadFromText.cs (1)
19var dataPoints = new List<DataPoint>()
Dynamic\ModelOperations\SaveLoadModel.cs (1)
17var data = new List<Data>()
Dynamic\ModelOperations\SaveLoadModelFile.cs (1)
17var data = new List<Data>()
Dynamic\NgramExtraction.cs (1)
17var data = new List<SampleSentimentData>() {
Dynamic\TextTransform.cs (1)
19var data = new List<SampleSentimentData>() {
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSample.cs (2)
20var samples = new List<DataPoint>() 47var results = mlContext.Data.CreateEnumerable<Result>(transformed,
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSampleWithOptions.cs (2)
20var samples = new List<DataPoint>() 55var results = mlContext.Data.CreateEnumerable<Result>(transformed,
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (1)
53var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (1)
50var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FastForest.cs (1)
45var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (1)
57var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FastTree.cs (1)
45var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (1)
57var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachine.cs (1)
146var data = new List<DataPoint>();
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachineWithOptions.cs (1)
157var data = new List<DataPoint>();
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (1)
51var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LdSvm.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (1)
51var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LightGbm.cs (1)
45var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (1)
56var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (1)
51var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (1)
50var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (1)
62var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (1)
50var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (1)
64var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (1)
54var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (1)
51var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (1)
45var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (1)
54var predictions = mlContext.Data
Dynamic\Trainers\Clustering\KMeans.cs (1)
42var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
50var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
47var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
55var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
50var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
60var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
53var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
48var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
48var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
55var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
64var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
55var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
64var predictions = mlContext.Data
Dynamic\Trainers\Ranking\FastTree.cs (1)
48var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (1)
62var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Ranking\LightGbm.cs (1)
48var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (1)
63var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Recommendation\MatrixFactorization.cs (4)
27var dataPoints = GenerateMatrix(); 46var predictions = mlContext.Data 90private static List<MatrixElement> GenerateMatrix() 92var dataMatrix = new List<MatrixElement>();
Dynamic\Trainers\Recommendation\MatrixFactorizationWithOptions.cs (4)
28var dataPoints = GenerateMatrix(); 70var predictions = mlContext.Data 114private static List<MatrixElement> GenerateMatrix() 116var dataMatrix = new List<MatrixElement>();
Dynamic\Trainers\Recommendation\OneClassMatrixFactorizationWithOptions.cs (5)
32GetOneClassMatrix(out List<MatrixElement> data, 33out List<MatrixElement> testData); 77var results = mlContext.Data.CreateEnumerable<MatrixElement>(prediction, 165out List<MatrixElement> observedMatrix, 166out List<MatrixElement> fullMatrix)
Dynamic\Trainers\Regression\FastForest.cs (1)
46var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
59var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTree.cs (1)
46var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
46var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
61var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
62var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\Gam.cs (1)
46var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
57var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
44var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
58var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LightGbm.cs (1)
47var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
66var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
43var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
58var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
43var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
55var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\Sdca.cs (1)
43var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
59var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Transforms\ApplyONNXModelWithInMemoryImages.cs (1)
58var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\Concatenate.cs (1)
17var samples = new List<InputData>()
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (3)
23var examples = GenerateRandomDataPoints(1000, 10); 87private static List<DataPoint> GenerateRandomDataPoints(int count, 90var examples = new List<DataPoint>();
Dynamic\Transforms\CopyColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\CustomMapping.cs (1)
20var samples = new List<InputData>
Dynamic\Transforms\CustomMappingSaveAndLoad.cs (1)
23var samples = new List<InputData>
Dynamic\Transforms\CustomMappingWithInMemoryCustomType.cs (1)
25var tribe = new List<AlienHero>() { new AlienHero("ML.NET", 2, 1000,
Dynamic\Transforms\DropColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\Expression.cs (1)
17var samples = new List<InputData>()
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCount.cs (1)
83var data = new List<InputData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCountMultiColumn.cs (1)
83var data = new List<InputData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformation.cs (1)
77var data = new List<NumericData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformationMultiColumn.cs (1)
86var data = new List<NumericData>
Dynamic\Transforms\IndicateMissingValues.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\IndicateMissingValuesMultiColumn.cs (1)
17var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeBinning.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeGlobalContrast.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLogMeanVariance.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLpNorm.cs (1)
17var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMeanVariance.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMinMax.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeSupervisedBinning.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
84var data = new List<SampleVectorOfNumbersData>();
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
83var data = new List<SampleVectorOfNumbersData>();
Dynamic\Transforms\ReplaceMissingValues.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\ReplaceMissingValuesMultiColumn.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\SelectColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\StatefulCustomMapping.cs (1)
16var samples = new List<InputData>
Dynamic\Transforms\Text\ApplyCustomWordEmbedding.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\ApplyWordEmbedding.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\FeaturizeText.cs (1)
16var samples = new List<TextData>()
Dynamic\Transforms\Text\FeaturizeTextWithOptions.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\LatentDirichletAllocation.cs (1)
16var samples = new List<TextData>()
Dynamic\Transforms\Text\NormalizeText.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
18var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
18var samples = new List<TextData>()
Dynamic\Transforms\Text\RemoveDefaultStopWords.cs (1)
21var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\RemoveStopWords.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\TokenizeIntoCharactersAsKeys.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\TokenizeIntoWords.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnn.cs (1)
22var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnnBatchPrediction.cs (1)
18var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectChangePointBySsa.cs (1)
28var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaStream.cs (1)
28var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectEntireAnomalyBySrCnn.cs (1)
19var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectIidChangePoint.cs (1)
27var data = new List<TimeSeriesData>(Size)
Dynamic\Transforms\TimeSeries\DetectIidChangePointBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>(Size)
Dynamic\Transforms\TimeSeries\DetectIidSpike.cs (1)
23var data = new List<TimeSeriesData>(Size + 1)
Dynamic\Transforms\TimeSeries\DetectIidSpikeBatchPrediction.cs (1)
21var data = new List<TimeSeriesData>(Size + 1)
Dynamic\Transforms\TimeSeries\DetectSpikeBySsa.cs (1)
26var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectSpikeBySsaBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\Forecasting.cs (1)
20var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\ForecastingWithConfidenceInterval.cs (1)
20var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (2)
38private static List<TimeSeriesPoint> GetPoints() 40List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (3)
24List<RootCause> prediction = mlContext.AnomalyDetection.LocalizeRootCauses(data); 44private static List<TimeSeriesPoint> GetTimeSeriesPoints() 46List<TimeSeriesPoint> TimeSeriesPoints = new List<TimeSeriesPoint>();
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 82var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 83var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 84var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 80var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 83var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 83var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(dataPointCount).ToList(); 73var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\WithOnFitDelegate.cs (1)
19var samples = new List<DataPoint>()
Microsoft.ML.Samples.OneDal (3)
Program.cs (3)
18List<IDataView> dataList = new List<IDataView>(); 23List<TextLoader.Column> columns = new List<TextLoader.Column>(); 51List<string> featuresList = new List<string>();
Microsoft.ML.SamplesUtils (6)
SamplesDatasetUtils.cs (6)
247var data = new List<BinaryLabelFloatFeatureVectorFloatWeightSample>(); 294var data = new List<FloatLabelFloatFeatureVectorUlongGroupIdSample>(); 296var intermediate = GenerateFloatLabelFloatFeatureVectorSamples(exampleCount, naRate).ToList(); 310var data = new List<FloatLabelFloatFeatureVectorSample>(); 362public static List<MulticlassClassificationExample> GenerateRandomMulticlassClassificationExamples(int count) 364var examples = new List<MulticlassClassificationExample>();
Microsoft.ML.SearchSpace (3)
Converter\ParameterConverter.cs (1)
42var list = new List<object>();
Option\NestOption.cs (1)
67var res = new List<double>();
SearchSpace.cs (1)
135var res = new List<double>();
Microsoft.ML.StandardTrainers (27)
FactorizationMachine\FactorizationMachineTrainer.cs (4)
372var columns = new List<DataViewSchema.Column>(featureColumns); 463var metricNames = new List<string>() { "Training-loss" }; 478var columns = data.Schema.Schema.Where(x => fieldColumnIndexes.Contains(x.Index)).ToList(); 593var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (1)
423var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (2)
70private readonly List<int> _inputColumnIndexes; 87var inputFeatureColumns = _columns.Select(c => new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, c.Name)).ToList();
LdSvm\LdSvmTrainer.cs (1)
511var examples = new List<LabelFeatures>();
Optimizer\DifferentiableFunction.cs (2)
204List<int> indices = new List<int>(dirCount); 205List<float> values = new List<float>(dirCount);
Optimizer\LearningRateScheduler.cs (1)
78List<LearningRateSchedulerItem> lrs = new List<LearningRateSchedulerItem>();
Optimizer\Optimizer.cs (1)
191private readonly List<float> _roList;
Standard\LinearModelParameters.cs (2)
541List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>(); 686List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
Standard\LinearPredictorUtils.cs (3)
196List<KeyValuePair<string, object>> weightValues = new List<KeyValuePair<string, object>>(); 214var list = new List<KeyValuePair<string, Single>>() { new KeyValuePair<string, Single>("(Bias)", bias) }; 229in VBuffer<float> weights, float bias, RoleMappedSchema schema, List<KeyValuePair<string, object>> results)
Standard\LogisticRegression\LbfgsPredictorBase.cs (3)
492var labelsList = new List<int>(); 493var featuresList = new List<float>(); 494var weightsList = new List<float>();
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
836List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
Standard\ModelStatistics.cs (5)
170internal virtual void SaveSummaryInKeyValuePairs(DataViewSchema.Column featureColumn, int paramCountCap, List<KeyValuePair<string, object>> resultCollection) 404private List<CoefficientStatistics> GetUnorderedCoefficientStatistics() 413List<CoefficientStatistics> result = new List<CoefficientStatistics>(ParametersCount - 1); 440var featureNames = new List<string>(); 531internal override void SaveSummaryInKeyValuePairs(DataViewSchema.Column featureColumn, int paramCountCap, List<KeyValuePair<string, object>> resultCollection)
Standard\SdcaBinary.cs (1)
1779var outCols = new List<SchemaShape.Column>()
Microsoft.ML.Sweeper (31)
Algorithms\Grid.cs (3)
70var prevParamSets = previousRuns?.Select(r => r.ParameterSet).ToList() ?? new List<ParameterSet>(); 160var prevParamSets = (previousRuns != null) 191var pset = new List<IParameterValue>();
Algorithms\KdoSweeper.cs (4)
86private readonly List<ParameterSet> _randomParamSets; 180List<ParameterSet> children = new List<ParameterSet>(); 205List<int> numericParamIndices = new List<int>(); 206List<double> numericParamValues = new List<double>();
Algorithms\NelderMead.cs (7)
75private readonly List<KeyValuePair<ParameterSet, float[]>> _pendingSweeps; 85private readonly List<IValueGenerator> _sweepParameters; 350var results = FindRunResult(previousRuns); 361private List<KeyValuePair<IRunResult, float[]>> FindRunResult(IEnumerable<IRunResult> previousRuns) 363var result = new List<KeyValuePair<IRunResult, float[]>>(); 435var result = new List<float>(); 449var parameters = new List<IParameterValue>();
Algorithms\SmacSweeper.cs (6)
98List<IRunResult> viableRuns = new List<IRunResult>(); 270List<ParameterSet> neighbors = new List<ParameterSet>(); 336List<double[]> datasetLeafValues = new List<double[]>(); 340List<double> leafValues = new List<double>(); 396List<ParameterSet> outSet = new List<ParameterSet>(); 423List<IParameterValue> parameters = new List<IParameterValue>();
Algorithms\SweeperProbabilityUtils.cs (3)
63List<double> rvs = new List<double>(); 164var result = new List<float>(); 216List<IParameterValue> parameters = new List<IParameterValue>();
AsyncSweeper.cs (2)
71private readonly List<IRunResult> _results; 182private readonly List<IRunResult> _results;
ConfigRunner.cs (1)
60protected readonly List<int> RunNums;
ISweeper.cs (1)
120var parameterNames = _parameterValues.Keys.ToList();
Parameters.cs (2)
254var result = new List<IParameterValue>(); 386var result = new List<IParameterValue>();
SweepCommand.cs (1)
84var runs = new List<IRunResult>();
SynthConfigRunner.cs (1)
44List<IRunResult> results = new List<IRunResult>();
Microsoft.ML.Sweeper.Tests (10)
TestSweeper.cs (10)
145var paramSets = new List<ParameterSet>(); 203var tasks = new List<Task<ParameterSetWithId>>(); 254var paramSets = new List<ParameterSet>(); 272var results = new List<KeyValuePair<int, IRunResult>>(); 304var paramSets = new List<ParameterSet>(); 356var paramSets = new List<ParameterSet>(); 403private void CheckAsyncSweeperResult(List<ParameterSet> paramSets) 563var results = new List<IRunResult>(); 611var results = new List<IRunResult>(); 659var results = new List<IRunResult>();
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
470var modelFilePaths = new List<string>
Microsoft.ML.TensorFlow.Tests (8)
TensorFlowEstimatorTests.cs (3)
78var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[4], B = new float[4] } }; 79var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { a = new string[4], b = new string[4] } }; 80var sizeData = new List<TestDataSize> { new TestDataSize() { a = new float[2], b = new float[2] } };
TensorflowTests.cs (5)
244private List<ShapeData> GetShapeData() 270var data = GetShapeData(); 365var data = new List<TypesData>( 985List<string> logMessages = new List<string>(); 1098var dataObjects = InMemoryImage.LoadFromTsv(_mlContext, dataFile, imageFolder);
Microsoft.ML.TestFramework (15)
BaseTestBaseline.cs (3)
126var configurationDirs = new List<string>(); 448List<T> suffixList = new List<T>(); 449List<T> seqList = new List<T>();
BaseTestPredictorsMaml.cs (8)
98List<string> args = new List<string>(); 175List<string> files = new List<string>(); 227List<int> toRemove = new List<int>(); 290List<string> args = new List<string>(); 326List<string> settings = new List<string>(); 448private static void AddIfNotEmpty(List<string> list, OutputPath val, string name) 457private static void AddIfNotEmpty(List<string> list, object val, string name) 469List<string> optionsList = new List<string>();
DataPipe\TestDataPipeBase.cs (3)
383List<int> savable = new List<int>(); 530List<int> savable = new List<int>(); 576List<int> savable = new List<int>();
TestCommandBase.cs (1)
384List<string> args = new List<string>();
Microsoft.ML.TestFrameworkCommon (4)
src\Common\tests\RetryHelper.cs (2)
39var exceptions = new List<Exception>(); 89var exceptions = new List<Exception>();
Utility\PathResolver.cs (2)
70List<string> allRIDs = new List<string>(); 134private bool AddFallbacks(List<string> fallbacks, string rid, IReadOnlyList<RuntimeFallbacks> allFallbacks)
Microsoft.ML.Tests (141)
AnomalyDetectionTests.cs (5)
138var samples = new List<DataPoint>() 160var results = mlContext.Data.CreateEnumerable<Result>(transformed, reuseRowObject: false).ToList(); 182var samples = new List<DataPoint>() 206var results = mlContext.Data.CreateEnumerable<Result>(transformed, reuseRowObject: false).ToList(); 267var samples = new List<DataPoint>()
CollectionsDataViewTest.cs (8)
109var data = new List<ConversionSimpleClass> 227var data = new List<ClassWithConstField>() 253var data = new List<ClassWithMixOfFieldsAndProperties>() 307var data = new List<ClassWithPrivateFieldsAndProperties>() 337var data = new List<ClassWithInheritedProperties>() 372var data = new List<ClassWithArrays> 424var data = new List<ClassWithArrayProperties> 475var data = new List<ClassWithGetter>()
ExpressionLanguageTests\ExpressionLanguageTests.cs (4)
167List<Error> errors; 168List<int> lineMap; 399private void DumpErrors(IndentedTextWriter wrt, List<int> lineMap, int lineMin, 400string fileName, string phase, List<Error> errors)
ImagesTests.cs (4)
233var images = new List<ImageDataPoint>() { new ImageDataPoint(10, 10, red: 0, green: 0, blue: 255), new ImageDataPoint(10, 10, red: 255, green: 0, blue: 0) }; 1126public static List<InMemoryImage> LoadFromTsv(MLContext mlContext, string tsvPath, string imageFolder) 1128var inMemoryImages = new List<InMemoryImage>(); 1180var dataObjects = InMemoryImage.LoadFromTsv(mlContext, dataFile, imageFolder);
OnnxConversionTest.cs (16)
185List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 223List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 276private (IDataView, List<IEstimator<ITransformer>>, EstimatorChain<NormalizingTransformer>) GetEstimatorsForOnnxConversionTests() 281List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 415var samples = new List<DataPoint>() 1154var samples = new List<DataPoint>() 1243List<IEstimator<ITransformer>> pipelines = new List<IEstimator<ITransformer>>(); 1439var samples = new List<TextData>() 1466var samples = new List<TextData>() 1526var mlNetSlotNames = mlNetSlots.DenseValues().ToList(); 1527var onnxSlotNames = onnxSlots.DenseValues().ToList(); 1546var samples = new List<TextData>() 1570var samples = new List<TextData>() 1649List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 1934List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 1976List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
OnnxSequenceTypeWithAttributesTest.cs (1)
66var keys = new List<string>(onnxOut.Keys);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
77var samples = new List<DataPoint>()
Scenarios\Api\TestApi.cs (15)
152var data = ReadBreastCancerExamples(); 197var data = ReadBreastCancerExamples(); 266private List<BreastCancerExample> ReadBreastCancerExamples() 271var data = File.ReadAllLines(dataFile) 356Func<IDataView, List<string>> getWorkclass = (IDataView view) => 368var simpleTestWorkClass = getWorkclass(simpleSplit.TestSet); 370var simpleWithSeedTestWorkClass = getWorkclass(splitWithSeed.TestSet); 378var stratTrainWorkclass = getWorkclass(stratSplit.TrainSet); 379var stratTestWorkClass = getWorkclass(stratSplit.TestSet); 381var uniqueTrain = stratTrainWorkclass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList(); 383var uniqueTest = stratTestWorkClass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList(); 390var stratTrainWithSeedWorkclass = getWorkclass(stratSeed.TrainSet); 391var stratTestWithSeedWorkClass = getWorkclass(stratSeed.TestSet); 393var uniqueSeedTrain = stratTrainWithSeedWorkclass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList(); 395var uniqueSeedTest = stratTestWithSeedWorkClass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList();
Scenarios\WordBagTest.cs (2)
17var samples = new List<TextData>() 54var samples = new List<TextData>()
TextLoaderTests.cs (3)
1315var ids = new List<string>(); 1316var descriptions = new List<string>(); 1317var animals = new List<string>();
TrainerEstimators\FAFMEstimator.cs (1)
125var data = new List<FfmExample>();
TrainerEstimators\MatrixFactorizationTests.cs (20)
206var dataMatrix = new List<MatrixElement>(); 254var testMatrix = new List<MatrixElementForScore>() { 317var dataMatrix = new List<MatrixElementZeroBased>(); 370var invalidTestMatrix = new List<MatrixElementZeroBasedForScore>() 437var dataMatrix = new List<OneClassMatrixElementZeroBased>(); 481var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 491var testResults = mlContext.Data.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList(); 553var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 563var testResults = mlContext.Data.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList(); 582var dataMatrix = new List<OneClassMatrixElementZeroBased>(); 622var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 633var testResults = mlContext.Data.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList(); 650GetOneClassMatrix(out List<OneClassMatrixElement> data, out List<OneClassMatrixElement> testData); 681var results = mlContext.Data.CreateEnumerable<OneClassMatrixElement>(prediction, false).ToList(); 735private static void GetOneClassMatrix(out List<OneClassMatrixElement> observedMatrix, out List<OneClassMatrixElement> fullMatrix) 764var dataMatrix = new List<MatrixElementZeroBased256By256>(); 803var testMatrix = new List<MatrixElementZeroBasedForScore256By256>(); 815var predictions = mlContext.Data.CreateEnumerable<MatrixElementZeroBasedForScore256By256>(transformedTestData, false).ToList();
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (18)
21var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(1000).ToList(); 128var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 162List<int> path = null; 180var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 213List<int> path = null; 234var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 277List<int> path = null; 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 (8)
438private void LightGbmHelper(bool useSoftmax, double sigmoid, out string modelString, out List<GbmExample> mlnetPredictions, out double[] lgbmRawScores, out double[] lgbmProbabilities, bool unbalancedSets = false) 446var dataList = new List<GbmExample>(); 554LightGbmHelper(useSoftmax: false, sigmoid: sigmoidScale, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0); 589LightGbmHelper(useSoftmax: false, sigmoid: sigmoidScale, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0); 628LightGbmHelper(useSoftmax: false, sigmoid: firstSigmoidScale, out string firstModelString, out List<GbmExample> firstMlnetPredictions, out double[] firstNativeResult1, out double[] firstNativeResult0); 629LightGbmHelper(useSoftmax: false, sigmoid: secondSigmoidScale, out string secondModelString, out List<GbmExample> secondMlnetPredictions, out double[] secondNativeResult1, out double[] secondNativeResult0); 661LightGbmHelper(useSoftmax: true, sigmoid: .5, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0); 690LightGbmHelper(useSoftmax: true, sigmoid: .5, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0, unbalancedSets: true);
Transformers\GroupUngroup.cs (4)
44var data = new List<GroupExample> { 52var grouped = ML.Data.CreateEnumerable<UngroupExample>(groupTransform, false).ToList(); 83var data = new List<UngroupExample> { 89var ungrouped = ML.Data.CreateEnumerable<GroupExample>(ungroupTransform, false).ToList();
Transformers\NormalizerTests.cs (5)
897var samples = new List<DataPointOne>() 938var samples = new List<DataPointVec>() 1074var numbers = GenerateRandomFloats(numberOfItems); 1109static List<float> GenerateRandomFloats(int num, int min = int.MinValue, int max = int.MaxValue, int seed = 0) 1113var list = new List<float>(num);
Transformers\ValueMappingTests.cs (22)
55var keys = new List<string>() { "foo", "bar", "test", "wahoo" }; 56var values = new List<int>() { 1, 2, 3, 4 }; 93var keys = new List<ReadOnlyMemory<char>>() { "foo".AsMemory(), "bar".AsMemory(), "test".AsMemory(), "wahoo".AsMemory() }; 94var values = new List<int>() { 1, 2, 3, 4 }; 139var keyValuePairs = new List<KeyValuePair<string, string>>() { 175List<int[]> values = new List<int[]>() { 264List<string[]> values = new List<string[]>() { 307var keys = new List<string>() { "foo", "bar", "test", "wahoo" }; 308var values = new List<int>() { 1, 2, 3, 4 }; 345var keys = new List<string>() { "foo", "foo" }; 346var values = new List<int>() { 1, 2 }; 364var keyValuePairs = new List<KeyValuePair<string, int>>() { 396var keyValuePairs = new List<KeyValuePair<string, string>>() { 430var keyValuePairs = new List<KeyValuePair<string, uint>>() { 471var keyValuePairs = new List<KeyValuePair<string, ulong>>() { 512var keyValuePairs = new List<KeyValuePair<string, string>>() { 552var keyValuePairs = new List<KeyValuePair<string, string>>() { 594var keyValuePairs = new List<KeyValuePair<string, int>>() { 613var keyValuePairs = new List<KeyValuePair<string, int[]>>() { 633var keyValuePairs = new List<KeyValuePair<ReadOnlyMemory<char>, int>>() { 687var keyValuePairs = new List<KeyValuePair<string, int>>() { 784var features = ML.Data.CreateEnumerable<TransformedData>(transformedData, reuseRowObject: false).ToList();
Transformers\WordBagTransformerTests.cs (4)
29var samples = new List<TextData>() 58var samples = new List<TextData>() 87var samplesDefault = new List<TextData>() 96var samplesNonDefault = new List<TextData>()
Microsoft.ML.TimeSeries (93)
AdaptiveSingularSpectrumSequenceModeler.cs (2)
868var sortedComponents = new List<SignalComponent>(); 869var trendComponents = new List<int>();
Deseasonality.cs (1)
64private List<double>[] _subSeries;
ExtensionsCatalog.cs (2)
338List<RootCause> causes = LocalizeRootCauses(catalog, src, beta, rootCauseThreshold); 365public static List<RootCause> LocalizeRootCauses(this AnomalyDetectionCatalog catalog, RootCauseLocalizationInput src, double beta = 0.5, double rootCauseThreshold = 0.95)
IidChangePointDetector.cs (1)
270var metadata = new List<SchemaShape.Column>() {
IidSpikeDetector.cs (1)
246var metadata = new List<SchemaShape.Column>() {
PolynomialUtils.cs (3)
147public List<decimal> Coefficients; 288var factors = new List<PolynomialFactor>(); 384var coeff = factors.ElementAt(0).Coefficients;
PredictionEngine.cs (3)
160internal DataViewRow GetStatefulRows(DataViewRow input, IRowToRowMapper mapper, IEnumerable<DataViewSchema.Column> activeColumns, List<StatefulRow> rows) 207internal Action<PingerArgument> CreatePinger(List<StatefulRow> rows) 220List<StatefulRow> rows = new List<StatefulRow>();
RootCauseAnalyzer.cs (28)
21private readonly List<RootCause> _preparedCauses; 36public List<RootCause> AnalyzePossibleCauses() 45private List<RootCause> AnalyzeOneLayer(RootCauseLocalizationInput src) 69protected List<TimeSeriesPoint> GetTotalPointsForAnomalyTimestamp(RootCauseLocalizationInput src) 101List<TimeSeriesPoint> totalPoints = GetTotalPointsForAnomalyTimestamp(src); 128protected Dictionary<string, Object> GetSubDim(Dictionary<string, Object> dimension, List<string> keyList) 133private void LocalizeRootCausesByDimension(PointTree anomalyTree, PointTree pointTree, Dictionary<string, Object> anomalyDimension, List<string> aggDims) 158List<TimeSeriesPoint> children = null; 200protected List<TimeSeriesPoint> GetTopAnomaly(List<TimeSeriesPoint> anomalyPoints, TimeSeriesPoint root, List<TimeSeriesPoint> totalPoints, string dimKey, bool isLeaveslevel = false) 222List<TimeSeriesPoint> causeList = new List<TimeSeriesPoint>(); 247protected IEnumerable<BestDimension> SelectOrderedDimension(List<TimeSeriesPoint> totalPoints, List<TimeSeriesPoint> anomalyPoints, List<string> aggDim) 290private IEnumerable<BestDimension> SelectOrderedDimensions(Dictionary<string, List<TimeSeriesPoint>> pointChildren, Dictionary<string, List<TimeSeriesPoint>> anomalyChildren, List<string> aggDim) 356List<RootCauseScore> scoreList = new List<RootCauseScore>(); 442private void BuildTree(PointTree tree, List<string> aggDims, TimeSeriesPoint point, Object aggSymbol) 480List<KeyValuePair<BestDimension, double>> valueMapAsList = valueMap.ToList(); 481List<BestDimension> ordered = new List<BestDimension>(); 706private void UpdateDistribution(Dictionary<string, int> distribution, List<TimeSeriesPoint> points, string dimKey) 743internal List<string> DetailDims { get; set; } 744internal List<string> AggDims { get; set; } 756internal Dictionary<string, List<TimeSeriesPoint>> ChildrenNodes; 757internal List<TimeSeriesPoint> Leaves; 762ChildrenNodes = new Dictionary<string, List<TimeSeriesPoint>>();
RootCauseLocalizationType.cs (8)
16public List<RootCauseItem> Items { get; set; } 49public List<MetricSlice> Slices { get; set; } 61public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, AggregateType aggregateType, Object aggregateSymbol) 70public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, Object aggregateSymbol) 131public List<string> Path; 147public RootCauseItem(Dictionary<string, Object> rootCause, List<string> path) 178public List<TimeSeriesPoint> Points { get; set; } 180public MetricSlice(DateTime timeStamp, List<TimeSeriesPoint> points)
SeasonalityDetector.cs (1)
71var valueCache = seasonalityWindowSize == -1 ? new List<double>() : new List<double>(seasonalityWindowSize);
SrCnnAnomalyDetectionBase.cs (15)
175List<Single> backAddList = BackAdd(data); 184List<Single> magList = new List<Single>(); 191List<Single> magLogList = magList.Select(x => x != 0 ? MathUtils.Log(x) : 0).ToList(); 192List<Single> filteredLogList = AverageFilter(magLogList, Parent.AvergingWindowSize); 193List<Single> spectralList = new List<Single>(); 221List<Single> ifftMagList = new List<Single>(); 226List<Single> filteredIfftMagList = AverageFilter(ifftMagList, Parent.JudgementWindowSize); 242private List<Single> BackAdd(FixedSizeQueue<Single> data) 244List<Single> predictArray = new List<Single>(); 250List<Single> backAddArray = new List<Single>(); 259private Single PredictNext(List<Single> data) 270private List<Single> AverageFilter(List<Single> data, int n) 273List<Single> cumSumList = data.Select(x => cumsum += x).ToList(); 274List<Single> cumSumShift = new List<Single>(cumSumList);
SRCNNAnomalyDetector.cs (1)
278var metadata = new List<SchemaShape.Column>() {
SrCnnEntireAnomalyDetector.cs (8)
267private List<double> _previousBatch; 268private List<double> _batch; 330var tempBatch = _previousBatch; 753List<Tuple<int, int>> segments = new List<Tuple<int, int>>(); 782List<int> anomalyIndex = new List<int>(); 887List<int> anomalyIdxList = new List<int>(); 908List<Tuple<int, double>> fitValues = new List<Tuple<int, double>>(); 939private double CalculateInterpolate(List<Tuple<int, double>> values, int idx)
SsaChangePointDetector.cs (1)
306var metadata = new List<SchemaShape.Column>() {
SsaSpikeDetector.cs (1)
285var metadata = new List<SchemaShape.Column>() {
STL\FastLoess.cs (1)
82public List<double> Y { get; }
STL\InnerStl.cs (15)
19private List<double>[] _cycleSubSeries; 20private List<double>[] _smoothedSubseries; 203List<double> virtualXValues = VirtualXValuesProvider.GetXValues(_cycleSubSeries[i].Count); 238List<double> c1 = MovingAverage(c, np); 239List<double> c2 = MovingAverage(c1, np); 240List<double> c3 = MovingAverage(c2, 3); 241List<double> virtualC3XValues = VirtualXValuesProvider.GetXValues(c3.Count); 266List<double> virtualDeseasonSeries = VirtualXValuesProvider.GetXValues(deseasonSeries.Length); 281private static readonly Dictionary<int, List<double>> _xValuesPool; 285_xValuesPool = new Dictionary<int, List<double>>(); 293internal static List<double> GetXValues(int length) 297List<double> xValues; 301var newXValues = new List<double>(length); 311private static List<double> MovingAverage(IReadOnlyList<double> s, int length) 313List<double> results = new List<double>(s.Count);
STL\MathsTools.cs (1)
17public static double QuickMedian(List<double> values)
Microsoft.ML.TimeSeries.Tests (49)
TimeSeriesDirectApi.cs (26)
112List<Data> data = new List<Data>(size); 134List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08, 157List<Data> data = new List<Data>(); 187List<double> expectedValues = new List<double>() { 0, -3.31410551071167, 0.5, 5.12000000000001E-08, 0, 1.570083498954773, 5.2001145245395008E-07, 213List<Data> data = new List<Data>(); 289List<Data> data = new List<Data>(); 359List<Data> data = new List<Data>(); 394List<float> expectedForecast = new List<float>() { 0.191492021f, 2.53994060f, 5.26454258f, 7.37313938f }; 395List<float> minCnf = new List<float>() { -3.9741986f, -2.36872721f, 0.09407699f, 2.18899393f }; 396List<float> maxCnf = new List<float>() { 4.3571825f, 7.4486084f, 10.435008f, 12.5572853f }; 422List<Data> data = new List<Data>(); 546var data = new List<TimeSeriesData>(); 590List<TimeSeriesDataDouble> data; 680List<TimeSeriesDataDouble> data; 727List<TimeSeriesDataDouble> data; 782List<TimeSeriesDataDouble> data; 841List<TimeSeriesDataDouble> data; 898List<TimeSeriesDataDouble> data; 988List<RootCause> preparedCauses = ml.AnomalyDetection.LocalizeRootCauses(rootCauseLocalizationInput); 1031List<MetricSlice> slice = new List<MetricSlice> 1083private static List<TimeSeriesPoint> GetRootCauseLocalizationPoints(object aggSymbol) 1085List<TimeSeriesPoint> points = new List<TimeSeriesPoint>(); 1181List<MetricSlice> slice = new List<MetricSlice> 1215List<MetricSlice> slice = new List<MetricSlice> 1227private static List<TimeSeriesPoint> GetRootCauseLocalizationPointsForIntDimValue() 1229List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
TimeSeriesEstimatorTests.cs (15)
53List<Data> data = new List<Data>(); 66var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 67var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 85List<Data> data = new List<Data>(); 102var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 103var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 123List<Data> data = new List<Data>(); 136var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 137var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 154List<Data> data = new List<Data>(); 163var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 164var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 181List<Data> data = new List<Data>(); 190var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 191var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } };
TimeSeriesSimpleApiTests.cs (8)
43var data = new List<Data>(size); 62List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08, 85var data = new List<Data>(); 105List<double> expectedValues = new List<double>() { 0, -3.31410598754883, 0.5, 5.12000000000001E-08, 0, 1.5700820684432983, 5.2001145245395008E-07, 128List<Data> data = new List<Data>(size); 145var expectedValues = new List<double[]>() { 180List<Data> data = new List<Data>(size); 197var expectedValues = new List<double[]>() {
Microsoft.ML.Tokenizers (91)
Model\BertTokenizer.cs (5)
245if (ids is not List<int> list) 267if (ids is not List<int> list) 297List<int> ids; 409List<int> mask; 565List<int> typeIds;
Model\BpeOptions.cs (1)
69List<string> merges = new();
Model\BPETokenizer.cs (5)
454List<EncodedToken> tokens = new(); 513List<int> ids = new(); 1305internal void WordToTokens(ref Word word, List<EncodedToken> tokens, int offset, ReadOnlySpan<int> mapping) => word.ToTokens(VocabReverse, tokens, offset, mapping); 1307internal void EncodeWithCache(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset, ref PriorityQueue<Merge>? priorityQueue) 1416private int EncodeToIdsWithCache(ReadOnlySpan<char> text, List<int>? accumulatedIds, int maxTokens, out int charsConsumed, ref PriorityQueue<Merge>? priorityQueue)
Model\CodeGenTokenizer.cs (16)
34private readonly StringSpanOrdinalKeyCache<List<EncodedToken>> _cache; 130_cache = new StringSpanOrdinalKeyCache<List<EncodedToken>>(); 379List<EncodedToken> tokens = new(); 425private void EncodeInternal(string? text, scoped ReadOnlySpan<char> textSpan, List<EncodedToken> tokens, bool addPrefixSpace, int offset, PriorityQueue<SymbolPair> agenda) 439if (_cache.TryGetValue(textSpan, out List<EncodedToken>? hit)) 464List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda); 618List<int> ids = new(); 1013private int EncodeToIdsResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int charsConsumed) 1069private int EncodeToIdsFromEndResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int textIndex) 1123if (_cache.TryGetValue(textSpan, out List<EncodedToken>? hit)) 1147List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda); 1187if (_cache.TryGetValue(textSpan, out List<EncodedToken>? hit)) 1211List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda); 1571private static void AppendTokenWithOffsetAdjusting(IReadOnlyList<EncodedToken> tokensToAdd, List<EncodedToken> tokens, int offset, bool addPrefixSpace) 1598private List<EncodedToken> EncodeToTokens(Span<char> text, Span<int> mapping, ReadOnlySpan<char> originalText, PriorityQueue<SymbolPair> agenda) 1659List<EncodedToken> result = new List<EncodedToken>(text.Length);
Model\EnglishRobertaTokenizer.cs (22)
27private readonly StringSpanOrdinalKeyCache<List<EncodedToken>> _cache; 169_cache = new StringSpanOrdinalKeyCache<List<EncodedToken>>(); 334List<EncodedToken> tokens = new(); 386if (_cache.TryGetValue(text, out List<EncodedToken>? hit)) 393List<EncodedToken> result = EncodeToTokens(token.AsSpan().Slice(0, newTokenIndex), indexMapping); 433List<int> ids = new(); 588private int EncodeToIdsResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int charsConsumed) 625private int EncodeToIdsFromEndResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int textIndex) 670if (_cache.TryGetValue(text, out List<EncodedToken>? hit)) 699List<EncodedToken> result = EncodeToTokens(token.AsSpan().Slice(0, newTokenIndex), indexMapping); 715if (_cache.TryGetValue(text, out List<EncodedToken>? hit)) 744List<EncodedToken> result = EncodeToTokens(token.AsSpan().Slice(0, newTokenIndex), indexMapping); 836List<int> list = new List<int>(ids.Count); 858List<int> list = new List<int>(ids.Count); 880List<int> list = new List<int>(ranks.Count); 921List<EncodedToken> list = new List<EncodedToken>(tokens.Count); 948private List<EncodedToken> EncodeToTokens(Span<char> token, Span<int> indexMapping) 964List<string> word = new(token.Length); 975var newWord = new List<string>(); 1036List<string> temp = word; 1045var tokens = new List<EncodedToken>(word.Count); 1106private readonly List<(int Id, int OccurrenceScore)> _symbols;
Model\SentencePieceBpeModel.cs (4)
91List<EncodedToken> tokens = new(); 105private void EncodeWithSpecialTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, List<EncodedToken> tokens) 150private void EncodeInternal(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, List<EncodedToken> tokens) 343List<int> ids = new();
Model\SentencePieceTokenizer.cs (11)
627List<(string Piece, float Score)> vocab = new List<(string Piece, float Score)>(vocabElement.GetArrayLength()); 731out List<(int Id, string Token)> prefixTokens, out List<(int Id, string Token)> suffixTokens); 801out List<(int Id, string Token)> prefixTokens, 802out List<(int Id, string Token)> suffixTokens) 823List<(int Id, string Token)> prefixTokens, 824List<(int Id, string Token)> suffixTokens) 868List<(int Id, string Token)> prefixTokens, 869List<(int Id, string Token)> suffixTokens) 964List<(int Id, string Token)> target, 989List<(int Id, string Token)> target,
Model\SentencePieceUnigramModel.cs (12)
277private void AddPrefixTokens(List<EncodedToken> tokens) 285private void AddSuffixTokens(List<EncodedToken> tokens, int offset) 384List<EncodedToken> tokens = new(); 487List<EncodedToken> tokens, 539List<EncodedToken> tokens, 605List<EncodedToken> tokens, 687private void FallbackToByteEncoding(ReadOnlySpan<char> normalizationSpan, List<EncodedToken> tokens, int insertionStartPosition) 845List<int>? ids = new(); 921List<int> ids, 993List<int> ids, 1012private void FallbackToByteEncoding(List<int> ids, ReadOnlySpan<byte> normalizationSpan, (int IdsIndex, int Utf8Index, int Utf8Length)[] unknownTokensTracking, int unknownTokensCount) 1049List<int> ids,
Model\TiktokenTokenizer.cs (3)
276List<EncodedToken> tokens = new(); 299private void EncodeToTokens(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset) 386List<int> ids = new();
Model\Word.cs (1)
292public void ToTokens(SortedDictionary<int, string> vocabReverse, List<EncodedToken> tokens, int offset, ReadOnlySpan<int> mapping)
Model\WordPieceTokenizer.cs (4)
290List<EncodedToken> tokens = new(); 313private void EncodeToTokens(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset) 413List<int> ids = new(); 446private int EncodeToIds(ReadOnlySpan<char> text, List<int>? accumulatedIds, out int charsConsumed, int maxTokenCount = int.MaxValue)
Normalizer\SentencePieceNormalizationStep.cs (1)
139var children = new List<SentencePieceNormalizationStep>();
PreTokenizer\CompositePreTokenizer.cs (1)
56var list = new List<PreTokenizer>(specialTokens.Count + 1);
SentencepieceModel.cs (1)
174internal List<Types.SentencePiece> Pieces { get; } = new();
Utils\DoubleArrayTrie.cs (1)
26private readonly List<uint> _units = new();
Utils\IListExtensions.cs (1)
13if (list is List<T> concreteList)
Utils\PriorityQueue.cs (1)
13private readonly List<T> _data;
Utils\TokenizerExtensions.cs (1)
18var keys = source.ToList(); // avoid enumerate twice
Microsoft.ML.Tokenizers.Data.Tests (2)
src\Common\tests\RetryHelper.cs (2)
39var exceptions = new List<Exception>(); 89var exceptions = new List<Exception>();
Microsoft.ML.Tokenizers.Tests (27)
BpeTests.cs (1)
1031List<PreTokenizer> preTokenizers = new List<PreTokenizer>();
CodeGenTests.cs (2)
552var idList = new List<int>(expectedIds); 554var tokensList = new List<string>(expectedTokens);
NormalizerTests.cs (1)
96List<int> mapping = new List<int>();
PreTokenizerTests.cs (1)
85List<(int Offset, int Length)> splits = new();
src\Common\tests\RetryHelper.cs (2)
39var exceptions = new List<Exception>(); 89var exceptions = new List<Exception>();
src\Microsoft.ML.Tokenizers\Utils\DoubleArrayTrie.cs (1)
26private readonly List<uint> _units = new();
TokenizerTests.cs (1)
107var tokens = new List<EncodedToken>();
UnigramTests.cs (18)
289List<EncodedToken> writableTokens = tokens.ToList(); 388List<int> ints = result is List<int> list ? list : result.ToList(); 396ints = result is List<int> ? (List<int>)result : result.ToList(); 404ints = result is List<int> ? (List<int>)result : result.ToList(); 413ints = result is List<int> ? (List<int>)result : result.ToList(); 432ints = result is List<int> ? (List<int>)result : result.ToList(); 448ints = result is List<int> ? (List<int>)result : result.ToList(); 570var vocab = new List<(string Piece, float Score)> 608var vocab = new List<(string Piece, float Score)> { ("a", 0f) }; 674var vocab = new List<(string Piece, float Score)> 696var vocab = new List<(string Piece, float Score)> 1285var vocab = new List<(string Piece, float Score)>
Microsoft.ML.TorchSharp (119)
AutoFormerV2\Anchors.cs (1)
141List<Tensor> tensors = new List<Tensor> { shiftXExpand, shiftYExpand, shiftXExpand, shiftYExpand };
AutoFormerV2\Attention.cs (4)
46public Attention(int inChannels, int keyChannels, int numHeads = 8, int attnRatio = 4, List<int> windowResolution = null) 63var points = new List<List<int>>(); 74var idxs = new List<int>();
AutoFormerV2\AutoformerV2.cs (5)
37public AutoFormerV2(int numClasses, List<int> embedChannels, List<int> depths, List<int> numHeads, Device device = null) 80var xList = this.backbone.forward(imgBatch); 81var fpnOutput = this.neck.forward(xList);
AutoFormerV2\AutoFormerV2Backbone.cs (12)
17public class AutoFormerV2Backbone : Module<Tensor, List<Tensor>> 20private readonly List<int> outIndices; 21private readonly List<int> numFeatures; 47List<int> embedChannels = null, 48List<int> depths = null, 49List<int> numHeads = null, 50List<int> windowSizes = null, 54List<int> outIndices = null, 57List<int> outChannels = null) 72var dpr = new List<double>(); 112public override List<Tensor> forward(Tensor imgBatch) 121var outs = new List<Tensor>();
AutoFormerV2\AutoFormerV2Block.cs (1)
57List<int> windowResolution = new List<int>() { windowSize, windowSize };
AutoFormerV2\BasicLayer.cs (2)
69List<int> hSlicesStartAndEnd = new List<int>() { 0, hp - this.windowSize, hp - this.windowSize, hp - this.shiftSize, hp - this.shiftSize, hp }; 70List<int> wSlicesStartAndEnd = new List<int>() { 0, wp - this.windowSize, wp - this.windowSize, wp - this.shiftSize, wp - this.shiftSize, wp };
AutoFormerV2\FPN.cs (7)
17public class FPN : Module<List<Tensor>, List<Tensor>> 32public FPN(List<int> inChannels = null, int outChannel = 256, int numOuts = 5) 66public override List<Tensor> forward(List<Tensor> inputs) 71var laterals = new List<Tensor>(); 83var outs = new List<Tensor>();
AutoFormerV2\ObjectDetectionMetrics.cs (35)
60private static List<List<ObjectLabel>> ThresholdFilter(List<List<ObjectLabel>> objectLabelListIn, float scoreThreshold) 64List<List<ObjectLabel>> objectLabelListOut = new(); 92var labels = labelSet.ToList(); 94var expectedData = ActualIdvToObjLabl(dataView, labelCol, actualBoundingBoxColumn); 95var actualData = PredIdvToObjLabl(dataView, predictedLabelCol, predictedBoundingBoxColumn, scoreCol); 99Dictionary<string, List<Tuple<float, float>>> iouDic = new(); 118private static float AP50(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes, float threshold = 0.5f) 136private static float AP50_95(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes) 179private static void ImageIoU(List<ObjectLabel> objectLabel, List<ObjectLabel> annotation, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes) 182List<Tuple<int, int, float>> tupleList = new(); // annotaIndex, detectIndex, iouScore 230private static void GenerateIOUDic(List<List<ObjectLabel>> annotations, List<List<ObjectLabel>> objectLabelList, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes) 235var objectLabels = objectLabelList?[annoIndex]; 236var annotation = annotations[annoIndex]; 241foreach (var detectionList in iouDic.Values) 247private static float LabelAP(List<Tuple<float, float>> detectionList, int groundTruthBoxesNum, float threshold = 0.5f) 293private static List<List<ObjectLabel>> PredIdvToObjLabl( 299var data = new List<List<ObjectLabel>>(); 316var l = new List<ObjectLabel>(); 339private static List<List<ObjectLabel>> ActualIdvToObjLabl( 344var data = new List<List<ObjectLabel>>(); 358var l = new List<ObjectLabel>();
AutoFormerV2\ObjectDetectionTrainer.cs (6)
84public List<int> Steps = new List<int> { 6 }; 377List<Tensor> part = new List<Tensor>(); 446var metadata = new List<SchemaShape.Column>(); 450var scoreMetadata = new List<SchemaShape.Column>(); 551var scoreMetadata = new List<SchemaShape.Column>(); 911var part = new List<Tensor>();
AutoFormerV2\RetinaHead.cs (8)
16public class RetinaHead : Module<List<Tensor>, (List<Tensor>, List<Tensor>)> 65public override (List<Tensor>, List<Tensor>) forward(List<Tensor> inputs) 69var clsOutputs = new List<Tensor>(); 70var regOutputs = new List<Tensor>();
Loss\FocalLoss.cs (2)
40var classificationLosses = new List<Tensor>(); 41var regressionLosses = new List<Tensor>();
NasBert\Models\NasBertEncoder.cs (5)
25private readonly List<int> DiscreteArches; 26private readonly List<int> HiddenSizePerBlock; 123var hiddenSizePerBlockExtend = HiddenSizePerBlock.Append(HiddenSizePerBlock[^1]).ToList(); 254private List<int> CheckBlockHiddenSize(int blockPerLayer) 256var hiddenSizePerBlock = new List<int>();
NasBert\NasBertTrainer.cs (6)
113public List<double> LearningRate = new List<double> { 1e-4 }; 238private protected override torch.Tensor PrepareBatchTensor(ref List<Tensor> inputTensors, Device device) 268private protected override void RunModelAndBackPropagate(ref List<Tensor> inputTensors, ref Tensor targetsTensor) 328var metadata = new List<SchemaShape.Column>(); 343var metadata = new List<SchemaShape.Column>(); 587List<int> newList = new List<int>(tokenizer.EncodeToConverted(sentence1.ToString()));
NasBert\NerTrainer.cs (2)
129var tl = target.DenseValues().Select(item => (long)item).ToList(); 136private protected override torch.Tensor CreateTargetsTensor(ref List<TargetType> targets, torch.Device device)
NasBert\SentenceSimilarityTrainer.cs (1)
128private protected override torch.Tensor CreateTargetsTensor(ref List<float> targets, torch.Device device)
NasBert\TextClassificationTrainer.cs (1)
129private protected override torch.Tensor CreateTargetsTensor(ref List<long> targets, torch.Device device)
Roberta\QATrainer.cs (8)
282List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 283List<Tensor> targetTensors = new List<Tensor>(Parent.Option.BatchSize); 308ref List<Tensor> inputTensors, 309ref List<Tensor> targetTensors, 384private torch.Tensor PrepareBatchTensor(ref List<Tensor> inputTensors, Device device, int padIndex) 420var targetList = new List<int> { mapping[answerIndex] + 2 + questionTokenId.Count, mapping[answerEnd] + 2 + questionTokenId.Count }; 510var scoreMetadata = new List<SchemaShape.Column>(); 596var scoreMetadata = new List<SchemaShape.Column>
TorchSharpBaseTrainer.cs (11)
206List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 207List<TTargetsCol> targets = new List<TTargetsCol>(Parent.Option.BatchSize); 227ref List<Tensor> inputTensors, 228ref List<TTargetsCol> targets, 278List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 279List<TTargetsCol> targets = new List<TTargetsCol>(Parent.Option.BatchSize); 302ref List<Tensor> inputTensors, 303ref List<TTargetsCol> targets) 345private protected abstract void RunModelAndBackPropagate(ref List<Tensor> inputTensorm, ref Tensor targetsTensor); 348private protected abstract torch.Tensor PrepareBatchTensor(ref List<Tensor> inputTensors, Device device); 354private protected abstract Tensor CreateTargetsTensor(ref List<TTargetsCol> targets, Device device);
Utils\ImageUtils.cs (1)
119var keep = new List<long>();
Utils\MetricUtils.cs (1)
36var topK = new List<(int start, int end, float score)>();
Microsoft.ML.TorchSharp.Tests (2)
ObjectDetectionTests.cs (1)
71var logs = new List<LoggingEventArgs>();
TextClassificationTests.cs (1)
160var a = predictedLabel.ToList();
Microsoft.ML.Transforms (123)
CountFeatureSelection.cs (5)
176var metadata = new List<SchemaShape.Column>(); 250var dropSlotsCols = new List<SlotsDroppingTransformer.ColumnOptions>(); 251var copyCols = new List<(string outputColumnName, string inputColumnName)>(); 254var slots = new List<(int min, int? max)>(); 301var activeCols = new List<DataViewSchema.Column>();
Dracula\CountTableTransformer.cs (3)
160var cols = new List<DataViewSchema.Column>(); 178private void TrainTables(IDataView trainingData, List<DataViewSchema.Column> cols, MultiCountTableBuilderBase builder, DataViewSchema.Column labelColumn) 339var newMetadataKinds = new List<SchemaShape.Column>();
Expression\CodeGen.cs (5)
29public static Delegate Compile(out List<Error> errors, LambdaNode node) 79private Delegate Do(out List<Error> errors) 107private List<Error> _errors; 138private readonly List<CachedWithLocal> _cacheWith; 148public List<Error> GetErrors()
Expression\LambdaBinder.cs (5)
26private readonly List<WithNode> _rgwith; 28private List<Error> _errors; 51public static void Run(IHostEnvironment env, ref List<Error> errors, LambdaNode node, Action<string> printError) 1305var candidates = new List<Candidate>(); 1550private Candidate GetBestOverload(CallNode node, List<Candidate> candidates)
Expression\LambdaParser.cs (13)
24public SourcePos(List<int> lineMap, TextSpan span, int lineMin = 1) 62private static int FindIndex(List<int> map, int value, int ivMin) 94private List<Error> _errors; 95private List<int> _lineMap; 152public static LambdaNode Parse(out List<Error> errors, out List<int> lineMap, CharCursor chars, int[] perm, params DataViewType[] types) 163private LambdaNode ParseCore(out List<Error> errors, out List<int> lineMap, CharCursor chars, int[] perm, DataViewType[] types) 367var items = new List<ParamNode>(); 631List<Node> list = new List<Node>(); 632List<Token> ops = new List<Token>(); 718List<Token> commas = null; 719List<Node> list = new List<Node>();
Expression\MethodGenerator.cs (4)
139private Dictionary<LocalKey, List<LocalBuilder>> _locals; 151List<LocalBuilder> locals; 170List<LocalBuilder> locals; 172_locals = new Dictionary<LocalKey, List<LocalBuilder>>();
ExpressionTransformer.cs (4)
102var node = LambdaParser.Parse(out List<Error> errors, out List<int> lineMap, chars, perm, inputTypes); 191var metadata = new List<SchemaShape.Column>(); 278Del = LambdaCompiler.Compile(out var errors, node);
GcnTransform.cs (1)
920var metadata = new List<SchemaShape.Column>();
KeyToVectorMapping.cs (1)
478var metadata = new List<SchemaShape.Column>();
LearnerFeatureSelection.cs (1)
144var slots = new List<(int min, int? max)>();
MissingValueHandlingTransformer.cs (5)
141var replaceCols = new List<MissingValueReplacingEstimator.ColumnOptions>(); 142var naIndicatorCols = new List<MissingValueIndicatorTransformer.Column>(); 143var naConvCols = new List<TypeConvertingEstimator.ColumnOptions>(); 144var concatCols = new List<ColumnConcatenatingTransformer.TaggedColumn>(); 145var dropCols = new List<string>();
MissingValueIndicatorTransformer.cs (4)
281var indices = new List<int>(); 299private void FindNAs<T>(in VBuffer<T> src, InPredicate<T> isNA, bool defaultIsNA, List<int> indices, out bool sense) 344private void FillValues(int srcLength, ref VBuffer<bool> dst, List<int> indices, bool sense) 542var metadata = new List<SchemaShape.Column>();
MissingValueReplacing.cs (3)
285List<int> columnsToImpute = null; 288var sourceColumns = new List<DataViewSchema.Column>(); 1045var metadata = new List<SchemaShape.Column>();
MutualInformationFeatureSelection.cs (6)
243var metadata = new List<SchemaShape.Column>(); 330var dropCols = new List<SlotsDroppingTransformer.ColumnOptions>(); 331var copyCols = new List<(string outputColumnName, string inputColumnName)>(); 335var slots = new List<(int min, int? max)>(); 423private readonly List<float> _singles; 424private readonly List<double> _doubles;
OneHotEncoding.cs (3)
102var columns = new List<OneHotEncodingEstimator.ColumnOptions>(); 283var binaryCols = new List<(string outputColumnName, string inputColumnName)>(); 284var cols = new List<(string outputColumnName, string inputColumnName, bool bag)>();
OneHotHashEncoding.cs (3)
151var columns = new List<OneHotHashEncodingEstimator.ColumnOptions>(); 331var binaryCols = new List<(string outputColumnName, string inputColumnName)>(); 332var cols = new List<(string outputColumnName, string inputColumnName, bool bag)>();
PermutationFeatureImportance.cs (3)
43var metricsDelta = new List<TResult>(); 63var workingFeatureIndices = Enumerable.Range(0, numSlots).ToList(); 137List<float> initialfeatureValuesList = new List<float>();
PermutationFeatureImportanceExtensions.cs (1)
706var featureColumnNames = nameBuffer.DenseValues().ToList();
RandomFourierFeaturizing.cs (1)
283var activeColumns = new List<DataViewSchema.Column>();
SvmLight\SvmLightLoader.cs (2)
185var keys = new List<ReadOnlyMemory<char>>(); 186var values = new List<float>();
SvmLight\SvmLightSaver.cs (1)
122var columns = new List<DataViewSchema.Column>() { labelCol.Value, featureCol.Value };
Text\LdaSingleBox.cs (6)
224public List<KeyValuePair<int, float>> GetDocTopicVector(int docID) 228var topicRet = new List<KeyValuePair<int, float>>(); 261public List<KeyValuePair<int, float>> TestDoc(ReadOnlySpan<int> termID, ReadOnlySpan<double> termVal, int termNum, int numBurninIter, bool reset) 286var topicRet = new List<KeyValuePair<int, float>>(); 292public List<KeyValuePair<int, float>> TestDocDense(ReadOnlySpan<double> termVal, int termNum, int numBurninIter, bool reset) 319var topicRet = new List<KeyValuePair<int, float>>();
Text\LdaTransform.cs (11)
340var itemScoresPerTopicBuilder = ImmutableArray.CreateBuilder<List<ModelParameters.ItemScore>>(); 344var itemScores = new List<ModelParameters.ItemScore>(); 357var wordScoresPerTopicBuilder = ImmutableArray.CreateBuilder<List<ModelParameters.WordItemScore>>(); 361var wordScores = new List<ModelParameters.WordItemScore>(); 518List<KeyValuePair<int, float>> retTopics; 637private readonly List<VBuffer<ReadOnlyMemory<char>>> _columnMappings; 660List<VBuffer<ReadOnlyMemory<char>>> columnMappings, 694List<VBuffer<ReadOnlyMemory<char>>> columnMappings; 822private static List<VBuffer<ReadOnlyMemory<char>>> Train(IHostEnvironment env, IChannel ch, IDataView inputData, LdaState[] states, params LatentDirichletAllocationEstimator.ColumnOptions[] columns) 829var activeColumns = new List<DataViewSchema.Column>(); 833var columnMappings = new List<VBuffer<ReadOnlyMemory<char>>>();
Text\NgramHashingTransformer.cs (2)
200var sourceColumnsForInvertHash = new List<DataViewSchema.Column>(); 1225var metadata = new List<SchemaShape.Column>();
Text\NgramTransform.cs (6)
231var activeCols = new List<DataViewSchema.Column>(); 557private IEnumerable<long> GetNgramData(int iinfo, out long[] ngramCounts, out double[] weights, out List<long> indexes) 581var ngramIds = new List<long>[maxNGramLength]; 582var ngramIndexes = new List<long>[maxNGramLength]; 821List<long> ngramIndexes; 1087var metadata = new List<SchemaShape.Column>();
Text\SentimentAnalyzingTransform.cs (1)
121var toHide = new List<string>(colNames.Length);
Text\StopWordsRemovingTransformer.cs (3)
414var list = new List<ReadOnlyMemory<char>>(); 1105var list = new List<ReadOnlyMemory<char>>(); 1160var words = _parent._stopWordsMap.ToList();
Text\TextFeaturizingEstimator.cs (4)
452List<string> tempCols = new List<string>(); 562var xfCols = new List<LpNormNormalizingEstimator.ColumnOptions>(2); 585var srcTaggedCols = new List<KeyValuePair<string, string>>(2); 651var metadata = new List<SchemaShape.Column>(2);
Text\TextNormalizing.cs (1)
364var list = new List<ReadOnlyMemory<char>>();
Text\TokenizingByCharacters.cs (1)
692var metadata = new List<SchemaShape.Column>();
Text\WordBagTransform.cs (2)
466var termCols = new List<Column>(); 490var columnOptions = new List<ValueToKeyMappingEstimator.ColumnOptionsBase>();
Text\WordEmbeddingsExtractor.cs (3)
136public List<string> GetWordLabels() 139var labels = new List<string>(); 424var tensorD = new List<float>();
Text\WordHashBagProducingTransform.cs (3)
105var tokenizeColumns = new List<WordTokenizingEstimator.ColumnOptions>(); 108List<string> tmpColNames = new List<string>(); 335var hashColumns = new List<HashingEstimator.ColumnOptions>();
Text\WordTokenizing.cs (5)
254var terms = new List<ReadOnlyMemory<char>>(); 283var terms = new List<ReadOnlyMemory<char>>(); 303private void AddTerms(ReadOnlyMemory<char> txt, char[] separators, List<ReadOnlyMemory<char>> terms) 337var toHide = new List<string>(); 338var toDeclare = new List<KeyValuePair<string, JToken>>();
UngroupTransform.cs (1)
489var needed = new List<Func<int>>();
Microsoft.ML.Vision (4)
ImageClassificationTrainer.cs (4)
636var metadata = new List<SchemaShape.Column>(); 815List<(long, float[])> featurizedImages = new List<(long, float[])>(); 928List<string> runnerInputTensorNames = new List<string>(); 929List<string> runnerOutputTensorNames = new List<string>();
Microsoft.NET.Build.Containers (16)
AuthHandshakeMessageHandler.cs (1)
585List<Exception>? requestExceptions = null;
BuiltImage.cs (2)
44internal List<ManifestLayer>? Layers { get; init; } 63List<ManifestLayer> layersNode = Layers ?? throw new NotImplementedException("Tried to get layer information but there is no layer node?");
ImageConfig.cs (4)
28private readonly List<string> _rootFsLayers; 31private readonly List<HistoryEntry> _history; 72private List<HistoryEntry> GetHistory() => _config["history"]?.AsArray().Select(node => node.Deserialize<HistoryEntry>()!).ToList() ?? new List<HistoryEntry>(); 333private List<string> GetRootFileSystemLayers()
LocalDaemons\ContainerRuntimes.cs (1)
262var createdImages = new List<string>();
ManifestV2.cs (1)
54public required List<ManifestLayer> Layers { get; init; }
src\sdk\src\Common\VSHostObject.cs (2)
83List<TaskItemDto>? dtos = JsonSerializer.Deserialize<List<TaskItemDto>>(rawTaskItems);
Tasks\CreateImageIndex.cs (1)
110List<ManifestLayer>? layers = null;
Tasks\ParseContainerProperties.cs (2)
211var v = new List<string>(); 212var i = new List<string>();
VSHostObject.cs (2)
75List<TaskItemDto>? dtos = JsonSerializer.Deserialize<List<TaskItemDto>>(rawTaskItems);
Microsoft.NET.Build.Extensions.Tasks (6)
AddFacadesToReferences.cs (1)
33List<ITaskItem> updatedReferences = new();
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (4)
18private Dictionary<string, List<TConflictItem>> _unresolvedConflictItems = new(StringComparer.Ordinal); 61List<TConflictItem>? unresolvedConflictsForKey; 98List<TConflictItem>? previouslyUnresolvedConflicts; 102List<TConflictItem> newUnresolvedConflicts = new();
src\sdk\src\Tasks\Common\ConflictResolution\FrameworkListReader.cs (1)
65var ret = new List<ConflictItem>();
Microsoft.NET.Build.Tasks (184)
_generated\2\SdkVulnerabilitySummaryContext.SdkVulnerabilitySummary.g.cs (3)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>> 108AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkVulnerabilitySummary).GetProperty("Cves", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>>(options, info2);
_generated\3\SdkVulnerabilitySummaryContext.ListSdkCveSummary.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>>? _ListSdkCveSummary; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>> ListSdkCveSummary 22get => _ListSdkCveSummary ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>> Create_ListSdkCveSummary(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>, global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>(options, info); 47private void ListSdkCveSummarySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>? value)
_generated\8\SdkVulnerabilitySummaryContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>))
AddPackageType.cs (1)
35var types = current.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries)
ApplyImplicitVersions.cs (2)
32List<string> buildWarnings = new(); 34var packageReferencesToUpdate = new List<ITaskItem>();
AssetsFileResolver.cs (1)
34List<ResolvedFile> results = new();
CheckForDuplicateFrameworkReferences.cs (2)
37List<ITaskItem> itemsToAdd = new(); 38List<ITaskItem> itemsToRemove = new();
CheckForDuplicateItemMetadata.cs (1)
30var groupings = Items.GroupBy(item => item.GetMetadata(MetadataName))
CheckForDuplicateItems.cs (1)
43var duplicateItems = itemGroups.Where(g => g.Count() > 1).ToList();
CheckForImplicitPackageReferenceOverrides.cs (2)
31List<ITaskItem> itemsToRemove = new(); 32List<ITaskItem> itemsToAdd = new();
CheckForUnsupportedWinMDReferences.cs (1)
26List<ITaskItem> winMDReferences = new();
CheckSdkVulnerabilities.cs (1)
107public List<SdkCveSummary>? Cves { get; set; }
CollectSDKReferencesDesignTime.cs (2)
39var sdkDesignTimeList = new List<ITaskItem>(SdkReferences); 69var implicitPackages = new List<ITaskItem>();
CreateWindowsSdkKnownFrameworkReferences.cs (3)
40List<ITaskItem> knownFrameworkReferences = new(); 72var knownFrameworkReferencesByWindowsSdkVersion = new Dictionary<Version, List<(Version minimumNetVersion, TaskItem[] knownFrameworkReferences)>>(); 116foreach (var knownFrameworkReferencesForSdkVersion in knownFrameworkReferencesByWindowsSdkVersion.Values)
DependencyContextBuilder.cs (25)
24private Dictionary<string, List<ReferenceInfo>> _compileReferences; 25private Dictionary<string, List<ResolvedFile>> _resolvedNuGetFiles; 27private Dictionary<string, List<RuntimePackAssetInfo>> _runtimePackAssets; 34private readonly Dictionary<string, List<LibraryDependency>> _libraryDependencies; 35private readonly List<string> _mainProjectDependencies; 74_libraryDependencies = new Dictionary<string, List<LibraryDependency>>(StringComparer.OrdinalIgnoreCase); 140_libraryDependencies = new Dictionary<string, List<LibraryDependency>>(); 184_compileReferences = new Dictionary<string, List<ReferenceInfo>>(StringComparer.OrdinalIgnoreCase); 195_resolvedNuGetFiles = new Dictionary<string, List<ResolvedFile>>(StringComparer.OrdinalIgnoreCase); 224_runtimePackAssets = new Dictionary<string, List<RuntimePackAssetInfo>>(); 270List<ModifiableRuntimeLibrary> runtimeLibraries = new(); 409List<CompilationLibrary> compilationLibraries = new(); 414var dependencies = GetProjectDependencies(); 527var dependencies = GetProjectDependencies(); 556private List<Dependency> GetProjectDependencies() 558List<Dependency> dependencies = new(); 645List<RuntimeAssetGroup> runtimeAssemblyGroups = new(); 646List<RuntimeAssetGroup> nativeLibraryGroups = new(); 647List<ResourceAssembly> resourceAssemblies = new(); 667if (_resolvedNuGetFiles != null && _resolvedNuGetFiles.TryGetValue(library.Name, out var resolvedNuGetFiles)) 691var managedRuntimeTargetsFiles = runtimeIdentifierGroup.Where(f => f.Asset == AssetType.Runtime).ToList(); 698var nativeRuntimeTargetsFiles = runtimeIdentifierGroup.Where(f => f.Asset == AssetType.Native).ToList(); 736List<string> assemblies = new(); 742else if (_compileReferences != null && _compileReferences.TryGetValue(library.Name, out var compileReferences)) 774List<LibraryDependency> libraryDependencies;
FilterResolvedFiles.cs (2)
18private readonly List<ITaskItem> _assembliesToPublish = new(); 19private readonly List<ITaskItem> _packagesResolved = new();
FindItemsFromPackages.cs (1)
36var itemsFromPackages = new List<ITaskItem>();
FrameworkPackages\FrameworkPackages.cs (1)
85var frameworkPackages = new List<FrameworkPackages>();
GenerateBundle.cs (1)
129var fileSpec = new List<FileSpec>(FilesToBundle.Length);
GenerateDepsFile.cs (3)
113List<ITaskItem> _filesWritten = new(); 284var affectedLibs = new List<string>(); 285var affectedRids = new List<string>();
GenerateRuntimeConfigurationFiles.cs (3)
73List<ITaskItem> _filesWritten = new(); 205var frameworks = new List<RuntimeConfigFramework>(); 489private static JsonArray SerializeFrameworks(List<RuntimeConfigFramework> frameworks)
GenerateShims.cs (1)
78var embeddedApphostPaths = new List<ITaskItem>();
GetEmbeddedApphostPaths.cs (1)
37var embeddedApphostPaths = new List<ITaskItem>();
GetPackagesToPrune.cs (2)
130var filteredFrameworkReferences = FrameworkReferences.Where( 136List<string> runtimeFrameworks = new List<string>();
GetPublishItemsOutputGroupOutputs.cs (1)
22var list = new List<ITaskItem>();
ParseTargetManifests.cs (1)
48var resultPackages = new List<ITaskItem>();
PrepareForReadyToRunCompilation.cs (14)
69private List<ITaskItem> _compileList = new(); 70private List<ITaskItem> _symbolsCompileList = new(); 71private List<ITaskItem> _r2rFiles = new(); 72private List<ITaskItem> _r2rReferences = new(); 73private List<ITaskItem> _r2rCompositeReferences = new(); 74private List<ITaskItem> _r2rCompositeInput = new(); 75private List<ITaskItem> _r2rCompositeUnrootedInput = new(); 130List<ITaskItem> imageCompilationList, 131List<ITaskItem> symbolsCompilationList, 132List<ITaskItem> r2rFilesPublishList, 133List<ITaskItem> r2rReferenceList, 134List<ITaskItem> r2rCompositeReferenceList, 135List<ITaskItem> r2rCompositeInputList, 136List<ITaskItem> r2rCompositeUnrootedInput,
ProcessFrameworkReferences.cs (24)
191List<ITaskItem> packagesToDownload, 192List<ITaskItem> runtimeFrameworks, 193List<ITaskItem> targetingPacks, 194List<ITaskItem> runtimePacks, 195List<ITaskItem> unavailableRuntimePacks, 196out List<KnownRuntimePack> knownRuntimePacksForTargetFramework 199var knownFrameworkReferencesForTargetFramework = 382List<string>? additionalFrameworkReferencesForRuntimePack = null; 444List<ITaskItem>? packagesToDownload = null; 445List<ITaskItem>? runtimeFrameworks = null; 446List<ITaskItem>? targetingPacks = null; 447List<ITaskItem>? runtimePacks = null; 448List<ITaskItem>? unavailableRuntimePacks = null; 449List<KnownRuntimePack>? knownRuntimePacksForTargetFramework = null; 474List<ITaskItem> implicitPackageReferences = new(); 643private KnownRuntimePack? SelectRuntimePack(ITaskItem? frameworkReference, KnownFrameworkReference knownFrameworkReference, List<KnownRuntimePack> knownRuntimePacks) 654var matchingRuntimePacks = knownRuntimePacks.Where(krp => krp.Name.Equals(knownFrameworkReference.RuntimeFrameworkName, StringComparison.OrdinalIgnoreCase)) 692List<string>? additionalFrameworkReferencesForRuntimePack, 694List<ITaskItem> unavailableRuntimePacks, 695List<ITaskItem>? runtimePacks, 696List<ITaskItem> packagesToDownload, 804List<ITaskItem> packagesToDownload, 805List<ITaskItem> implicitPackageReferences) 914List<string> aotPackRuntimeIdentifiers = new List<string>();
ProduceContentAssets.cs (3)
19private readonly List<ITaskItem> _contentItems = new(); 20private readonly List<ITaskItem> _fileWrites = new(); 21private readonly List<ITaskItem> _copyLocalItems = new();
ReferenceInfo.cs (2)
23private List<ResourceAssemblyInfo> _resourceAssemblies; 45List<ReferenceInfo> referenceInfos = new();
RemoveDuplicatePackageReferences.cs (1)
19private readonly List<ITaskItem> _packageList = new();
ResolveAppHosts.cs (3)
88var knownAppHostPacksForTargetFramework = KnownAppHostPacks 170var packAsToolShimAppHostPacks = new List<ITaskItem>(); 231List<ITaskItem> knownAppHostPacksForTargetFramework,
ResolveCopyLocalAssets.cs (1)
18private readonly List<ITaskItem> _resolvedAssets = new();
ResolveFrameworkReferences.cs (1)
33var resolvedFrameworkReferences = new List<TaskItem>(FrameworkReferences.Length);
ResolvePackageAssets.cs (4)
700private List<string> _metadataStrings; 701private List<int> _bufferedMetadata; 974private List<(string, LockFileLibrary, Version)> _potentialAnalyzers; 1926var excludeFromPublishPackageReferences = _task.PackageReferences
ResolvePackageDependencies.cs (5)
32private readonly List<ITaskItem> _targetDefinitions = new(); 33private readonly List<ITaskItem> _packageDefinitions = new(); 34private readonly List<ITaskItem> _fileDefinitions = new(); 35private readonly List<ITaskItem> _packageDependencies = new(); 36private readonly List<ITaskItem> _fileDependencies = new();
ResolveRuntimePackAssets.cs (3)
35var runtimePackAssets = new List<ITaskItem>(); 43List<ITaskItem> matchingRuntimeFrameworks = RuntimeFrameworks != null ? FrameworkReferences 169private void AddRuntimePackAssetsFromManifest(List<ITaskItem> runtimePackAssets, AbsolutePath absoluteRuntimePackRoot,
ResolveTargetingPackAssets.cs (16)
136List<TaskItem> referencesToAdd = new(); 137List<TaskItem> analyzersToAdd = new(); 138List<TaskItem> platformManifests = new(); 139List<TaskItem> packageConflictOverrides = new(); 140List<string> preferredPackages = new(); 141List<string> errors = new(); 265List<TaskItem> deduplicatedReferences = DeduplicateItems(referencesToAdd); 266List<TaskItem> deduplicatedAnalyzers = DeduplicateItems(analyzersToAdd); 284private static List<TaskItem> DeduplicateItems(List<TaskItem> items) 287List<TaskItem> deduplicatedItems = new(items.Count); 305private void AddNetStandardTargetingPackAssets(TargetingPack targetingPack, AbsolutePath targetingPackRoot, List<TaskItem> referencesToAdd) 330private static void AddItemsFromFrameworkList(FrameworkListDefinition definition, IBuildEngine4 buildEngine4, List<TaskItem> referenceItems, List<TaskItem> analyzerItems, bool allowCacheLookup) 373List<TaskItem> referenceItemsFromThisFramework = new(); 374List<TaskItem> analyzerItemsFromThisFramework = new();
RuntimeOptions.cs (3)
18public List<RuntimeConfigFramework> Frameworks { get; set; } 20public List<RuntimeConfigFramework> IncludedFrameworks { get; set; } 22public List<string> AdditionalProbingPaths { get; set; }
SelectRuntimeIdentifierSpecificItems.cs (1)
61var selectedItems = new List<ITaskItem>();
SingleProjectInfo.cs (5)
29private List<ReferenceInfo> _dependencyReferences; 35private List<ResourceAssemblyInfo> _resourceAssemblies; 45protected SingleProjectInfo(string projectPath, string name, string version, string outputName, List<ReferenceInfo> dependencyReferences, List<ResourceAssemblyInfo> resourceAssemblies) 57List<ResourceAssemblyInfo> resourceAssemblies = new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (1)
530var matchingManifestFeatureBandsAndResolvedManifestDirectories = candidateFeatureBands
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadDefinition.cs (6)
19WorkloadId id, bool isAbstract, string? description, WorkloadDefinitionKind kind, List<WorkloadId>? extends, 20List<WorkloadPackId>? packs, List<string>? platforms 34public List<WorkloadId>? Extends { get; } 35public List<WorkloadPackId>? Packs { get; } 36public List<string>? Platforms { get; }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (7)
300private static List<string> ReadStringArray(ref Utf8JsonStreamReader reader) 304var list = new List<string>(); 323private static List<T> ReadStringArray<T>(ref Utf8JsonStreamReader reader, Func<string, T> map) 327var list = new List<T>(); 405List<WorkloadPackId>? packs = null; 406List<WorkloadId>? extends = null; 407List<string>? platforms = null;
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (1)
519List<(WorkloadId Id, HashSet<WorkloadPackId> Packs)>? expandedWorkloads = availableWorkloads
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSuggestionFinder.cs (4)
12out List<WorkloadSuggestionCandidate> partialSuggestions, 45out List<WorkloadSuggestionCandidate> partialSuggestions, 72internal static HashSet<WorkloadSuggestionCandidate> GatherUniqueCompletePermutedSuggestions(List<WorkloadSuggestionCandidate> partialSuggestions) 95static void GatherCompletePermutedSuggestions(WorkloadSuggestionCandidate root, List<WorkloadSuggestionCandidate> branches, HashSet<WorkloadSuggestionCandidate> completeSuggestions)
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (4)
18private Dictionary<string, List<TConflictItem>> _unresolvedConflictItems = new(StringComparer.Ordinal); 61List<TConflictItem>? unresolvedConflictsForKey; 98List<TConflictItem>? previouslyUnresolvedConflicts; 102List<TConflictItem> newUnresolvedConflicts = new();
src\sdk\src\Tasks\Common\ConflictResolution\FrameworkListReader.cs (1)
65var ret = new List<ConflictItem>();
TypeLibraryDictionaryBuilder.cs (1)
16List<string> errorsLocal = new();
Microsoft.NET.HostModel (12)
Bundle\Bundler.cs (1)
494var excluded = new List<FileSpec>();
Bundle\Manifest.cs (1)
85public List<FileEntry> Files;
MachO\BinaryFormat\Blobs\SuperBlob.cs (2)
124var blobs = new List<IBlob>((int)count); 125var blobIndices = new List<BlobIndex>((int)count);
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (6)
197SortedDictionary<string, List<ObjectDataBuilder.Reservation>> nameTable = new SortedDictionary<string, List<ObjectDataBuilder.Reservation>>(); 199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>(); 200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>(); 201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>(); 240foreach (KeyValuePair<string, List<ObjectDataBuilder.Reservation>> name in nameTable)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (2)
58public static ObjectDataBuilder.Reservation Write(ref ObjectDataBuilder dataBuilder, string name, SortedDictionary<string, List<ObjectDataBuilder.Reservation>> nameTable) 60List<ObjectDataBuilder.Reservation> relatedNameReferences;
Microsoft.Net.Http.Headers (6)
CacheControlHeaderValue.cs (2)
532var nameValueList = new List<NameValueHeaderValue>(); 568List<NameValueHeaderValue> nameValueList)
HttpHeaderParser.cs (2)
72List<T>? results = null; 135var parsedValues = new List<T>();
ObjectCollection.cs (1)
24var list = other == null ? new List<T>() : new List<T>(other);
SetCookieHeaderValue.cs (1)
45private List<StringSegment>? _extensions;
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (18)
BootJsonData.cs (1)
52public List<string> config { get; set; }
CreateBlazorTrimmerRootDescriptorFile.cs (1)
50var attributes = new List<XAttribute>
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (8)
292internal static (List<StaticWebAsset> included, HashSet<string> excluded) FilterByGroup( 299var included = new List<StaticWebAsset>(assets.Length); 394internal static void SortByRelatedAssetInPlace(List<StaticWebAsset> assets) 1663internal void ComputeRoutes(List<StaticWebAssetResolvedRoute> routes) 1740internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind) 1743internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind, TaskEnvironment env) 1746var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>(); 1851var result = new List<string>(_defaultPropertyNames.Length + _additionalCustomMetadata.Count);
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (7)
44public StaticWebAssetPathPattern(List<StaticWebAssetPathSegment> segments) 374List<List<StaticWebAssetPathSegment>> expandedPatternSegments = []; 395var expandedPattern = expandedPatternSegments[j]; 412var expandedPattern = expandedPatternSegments[j]; 419var result = new List<StaticWebAssetPathPattern>(); 420foreach (var expandedPattern in expandedPatternSegments)
UpgradeLegacyWasmStaticWebAssets.cs (1)
21var upgradedAssets = new List<ITaskItem>();
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (4)
Program.cs (4)
23Option<List<string>> sourcesOption = new("-s") 28Option<List<string>> outputsOption = new("-o") 43var s = parseResult.GetValue(sourcesOption); 44var o = parseResult.GetValue(outputsOption);
Microsoft.NET.Sdk.Publish.Tasks (38)
Kudu\KuduVfsDeploy.cs (2)
14private List<System.Threading.Tasks.Task> _postTasks; 39List<string> files = Directory.GetFiles(sourcePath, "*.*", SearchOption.AllDirectories).ToList();
MsDeploy\CommonUtility.cs (6)
599internal static void BuildArgumentsBaseOnEnumTypeName(Framework.ITaskItem item, List<string> arguments, Type enumType, string? valueQuote) 858internal static void AdjustSkipDirectives(/*Deployment.DeploymentBaseOptions*/ dynamic baseOptions, List<string> stringList, bool enabled, Utilities.TaskLoggingHelper log) 884List<string> enableSkipDirectiveList, 885List<string> disableSkipDirectiveList, 890List<string> arguments = new(6); 1418List<Framework.ITaskItem> optimizedValueList = new(sortedList);
MsDeploy\VSMSDeployHostObject.cs (3)
13private List<TaskItem> _items; 28public List<TaskItem> GetTaskItems() 45public void AddFileSkips(List<FileSkipData> fileSkipInfos, /*key is src relative path, value is full destination path*/
MsDeploy\VsMSDeployObject.cs (8)
115List<string> enabledLinkList = ConvertStringIntoList(vSMSDeployObject.EnableLinks); 116List<string> disabledLinkList = ConvertStringIntoList(vSMSDeployObject.DisableLinks); 135internal static List<string> ConvertStringIntoList(string? linkExtensionsString) 141List<string> linksList = new(linksArray); 154internal static bool LinkContainedInTheCollection(string link, List<string> linkCollection) 172List<string> linkExtensionList = ConvertStringIntoList(listOfLinkExtensions); 183public static void ChangeLinkExtensionEnableStatue(/*Deployment.DeploymentBaseOptions*/ dynamic baseOptions, List<string> linkExtensions, bool enable) 190List<object> matchedList = new();
src\sdk\src\Common\VSHostObject.cs (2)
83List<TaskItemDto>? dtos = JsonSerializer.Deserialize<List<TaskItemDto>>(rawTaskItems);
Tasks\GenerateEnvTransform.cs (4)
32List<string> generatedFiles = new(); 66var envVariables = GetEnvironmentVariables(webConfigEnvironmentVariables); 88public List<KeyValuePair<string, string>>? GetEnvironmentVariables(string webConfigEnvironmentVariables) 95var keyValuePairs = new List<KeyValuePair<string, string>>();
Tasks\MsDeploy\ImportParameterFile.cs (1)
18private List<Framework.ITaskItem> m_parametersList = new(8);
Tasks\MsDeploy\MSDeploy.cs (9)
597List<string> arguments = new(6); 612List<string> arguments = new(6); 623public static void AddDeclareParameterToCommandArgument(List<string> arguments, 632List<string> idenities = new(6); 677List<string> arguments = new(6); 723List<string> arguments = new(6); 753List<string> arguments = new(6); 761List<string> identities = new(6); 826List<string> arguments = new(6);
Tasks\MsDeploy\VsMsdeploy.cs (2)
937List<string> enableSkipDirectiveList = MSDeployUtility.ConvertStringIntoList(EnableSkipDirective); 938List<string> disableSkipDirectiveList = MSDeployUtility.ConvertStringIntoList(DisableSkipDirective);
WebConfigTransform.cs (1)
115var attributes = aspNetCoreElement.Attributes().ToList();
Microsoft.NET.Sdk.Razor.Tasks (6)
FindAssembliesWithReferencesTo.cs (2)
29var referenceItems = new List<AssemblyItem>(Assemblies.Length); 51var targetAssemblyNames = TargetAssemblyNames.Select(s => s.ItemSpec).ToList();
ReferenceResolver.cs (2)
36var applicationParts = new List<string>(); 119var references = new List<AssemblyItem>(metadataReader.AssemblyReferences.Count);
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerRequest.cs (2)
86var requestArgs = new List<RequestArgument>(requestLength) 153var argumentsBuilder = new List<RequestArgument>((int)argumentCount);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (156)
ApplyCompressionNegotiation.cs (16)
119if (endpointsByAsset.TryGetValue(endpoint.AssetFile, out var endpointsToSkip)) 138if (endpointsByRoute.TryGetValue(route, out var endpoints)) 194private static Dictionary<string, List<StaticWebAssetEndpoint>> GetEndpointsByRoute( 195IDictionary<string, List<StaticWebAssetEndpoint>> endpointsByAsset) 197var result = new Dictionary<string, List<StaticWebAssetEndpoint>>(endpointsByAsset.Count); 199foreach (var endpointsList in endpointsByAsset.Values) 203if (!result.TryGetValue(endpoint.Route, out var routeEndpoints)) 257var endpointProperties = relatedEndpointCandidate.EndpointProperties.ToList(); 287var headers = new List<StaticWebAssetEndpointResponseHeader>(7); 325private (List<StaticWebAssetEndpoint> compressedEndpoints, List<StaticWebAssetEndpoint> relatedAssetEndpoints) ResolveEndpoints( 327IDictionary<string, List<StaticWebAssetEndpoint>> endpointsByAsset, 336if (!endpointsByAsset.TryGetValue(compressedAsset.Identity, out var compressedEndpoints)) 342if (!endpointsByAsset.TryGetValue(relatedAsset.Identity, out var relatedAssetEndpoints)) 373private void ApplyCompressedEndpointHeaders(List<StaticWebAssetEndpointResponseHeader> headers, StaticWebAssetEndpoint compressedEndpoint, string relatedEndpointCandidateRoute) 391private void ApplyRelatedEndpointCandidateHeaders(List<StaticWebAssetEndpointResponseHeader> headers, StaticWebAssetEndpoint relatedEndpointCandidate, HashSet<string> compressedHeaders)
CollectStaticWebAssetsToCopy.cs (1)
27var copyToOutputFolder = new List<ITaskItem>();
Compression\DiscoverPrecompressedAssets.cs (1)
37var assetsToUpdate = new List<ITaskItem>();
Compression\ResolveCompressedAssets.cs (1)
73var matchingCandidateAssets = new List<StaticWebAsset>(CandidateAssets.Length);
ComputeEndpointsForReferenceStaticWebAssets.cs (2)
31var routeSegments = new List<PathTokenizer.Segment>(); 32var basePathSegments = new List<PathTokenizer.Segment>();
ComputeReferenceStaticWebAssetItems.cs (2)
54var resultAssets = new List<StaticWebAsset>(existingAssets.Count); 115var patterns = new List<StaticWebAssetsDiscoveryPattern>();
ComputeStaticWebAssetsForCurrentProject.cs (1)
33var resultAssets = new List<StaticWebAsset>(currentProjectAssets.Count);
Data\StaticWebAsset.cs (8)
292internal static (List<StaticWebAsset> included, HashSet<string> excluded) FilterByGroup( 299var included = new List<StaticWebAsset>(assets.Length); 394internal static void SortByRelatedAssetInPlace(List<StaticWebAsset> assets) 1663internal void ComputeRoutes(List<StaticWebAssetResolvedRoute> routes) 1740internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind) 1743internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind, TaskEnvironment env) 1746var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>(); 1851var result = new List<string>(_defaultPropertyNames.Length + _additionalCustomMetadata.Count);
Data\StaticWebAssetEndpoint.cs (10)
177internal static IDictionary<string, List<StaticWebAssetEndpoint>> ToAssetFileDictionary(ITaskItem[] candidateEndpoints) 179var result = new Dictionary<string, List<StaticWebAssetEndpoint>>(candidateEndpoints.Length / 2, OSPath.PathComparer); 185if (!result.TryGetValue(assetFile, out var endpoints)) 466var result = new List<string>(_defaultPropertyNames.Length + _additionalCustomMetadata.Count); 579List<PathTokenizer.Segment> routeSegments, 580List<PathTokenizer.Segment> prefixSegments) 619List<PathTokenizer.Segment> routeSegments, 620List<PathTokenizer.Segment> basePathSegments) 656List<PathTokenizer.Segment> routeSegments, 657List<PathTokenizer.Segment> basePathSegments)
Data\StaticWebAssetEndpointGroup.cs (5)
17public List<StaticWebAssetEndpointGroupItem> Items { get; } = new(); 47internal static (List<StaticWebAssetEndpoint> removed, List<StaticWebAssetEndpoint> surviving) 52var removed = new List<StaticWebAssetEndpoint>(); 53var surviving = new List<StaticWebAssetEndpoint>();
Data\StaticWebAssetPathPattern.cs (7)
44public StaticWebAssetPathPattern(List<StaticWebAssetPathSegment> segments) 374List<List<StaticWebAssetPathSegment>> expandedPatternSegments = []; 395var expandedPattern = expandedPatternSegments[j]; 412var expandedPattern = expandedPatternSegments[j]; 419var result = new List<StaticWebAssetPathPattern>(); 420foreach (var expandedPattern in expandedPatternSegments)
DefineStaticWebAssetEndpoints.cs (6)
36var endpoints = new List<StaticWebAssetEndpoint>(CandidateAssets.Length); 145List<StaticWebAssetEndpoint> collectedEndpoints, 146List<StaticWebAssetEndpoint> currentEndpoints, 154public List<StaticWebAssetEndpoint> CollectedEndpoints { get; } = collectedEndpoints; 155public List<StaticWebAssetEndpoint> CurrentEndpoints { get; } = currentEndpoints; 163private readonly List<StaticWebAsset.StaticWebAssetResolvedRoute> _resolvedRoutes = new(2);
DefineStaticWebAssets.Cache.cs (2)
110private readonly List<ITaskItem> _assets = []; 111private readonly List<ITaskItem> _copyCandidates = [];
DefineStaticWebAssets.cs (11)
91Dictionary<string, List<GroupDefinition>> groupDefinitions = null; 636Dictionary<string, List<GroupDefinition>> definitionsBySourceId, 639if (!definitionsBySourceId.TryGetValue(asset.SourceId, out var definitions)) 660List<string> groupEntries, 671public List<string> GroupEntries { get; } 712private Dictionary<string, List<GroupDefinition>> ParseGroupDefinitions() 714var definitions = new List<GroupDefinition>(); 793var result = new Dictionary<string, List<GroupDefinition>>(StringComparer.Ordinal); 796if (!result.TryGetValue(def.SourceId, out var list)) 807StaticWebAsset asset, List<GroupDefinition> definitions, StaticWebAssetGlobMatcher.MatchContext matchContext) 811var groupEntries = new List<string>();
DiscoverDefaultScopedCssItems.cs (1)
26var discoveredInputs = new List<ITaskItem>();
FilterStaticWebAssetEndpoints.cs (1)
43var filteredEndpoints = new List<StaticWebAssetEndpoint>();
GeneratePackageAssetsManifestFile.cs (1)
167var manifestEndpoints = new List<StaticWebAssetEndpoint>();
GenerateStaticWebAssetEndpointsManifest.cs (1)
89var filteredEndpoints = new List<StaticWebAssetEndpoint>();
GenerateStaticWebAssetsDevelopmentManifest.cs (2)
230var patterns = new List<StaticWebAssetPattern>(); 254var patterns = new List<StaticWebAssetPattern>();
GenerateStaticWebAssetsManifest.cs (3)
108var filteredEndpoints = new List<StaticWebAssetEndpoint>(); 164private static Dictionary<string, (StaticWebAsset First, StaticWebAsset Second, List<StaticWebAsset> Other)> GroupAssetsByTargetPath(StaticWebAsset[] assets) 166var result = new Dictionary<string, (StaticWebAsset First, StaticWebAsset Second, List<StaticWebAsset> Other)>(StringComparer.OrdinalIgnoreCase);
JSModules\ApplyJsModules.cs (5)
29var razorComponentsWithJsModules = new List<ITaskItem>(); 30var razorGenerateWithJsModules = new List<ITaskItem>(); 31var unmatchedJsModules = new List<ITaskItem>(JSFileModuleCandidates); 101List<ITaskItem> itemsWithScopes, 103List<ITaskItem> unmatchedJsModules,
Legacy\GenerateV1StaticWebAssetsManifest.cs (1)
102var nodes = new List<XElement>();
MergeStaticWebAssets.cs (4)
39var group = kvp.Value; 50var candidates = CandidateDiscoveryPatterns.Select(StaticWebAssetsDiscoveryPattern.FromTaskItem).ToList(); 71internal void ApplyMergeRules(List<StaticWebAsset> group, string source) 80var assetsToRemove = new List<StaticWebAsset>();
OverrideHtmlAssetPlaceholders.cs (10)
49var resources = CreateResourcesFromEndpoints(endpoints); 53var htmlFilesToRemove = new List<ITaskItem>(); 54var htmlCandidates = new List<ITaskItem>(); 55var fileWrites = new List<string>(); 112private static string GeneratePreloadLinks(List<ResourceAsset> assets, string? group) 114var links = new List<(int Order, string Value)>(); 164internal List<ResourceAsset> CreateResourcesFromEndpoints(IEnumerable<StaticWebAssetEndpoint> endpoints) 166var resources = new List<ResourceAsset>(); 233private ImportMap CreateImportMapFromResources(List<ResourceAsset> assets) 263private static Dictionary<string, ResourceAsset> GroupResourcesByLabel(List<ResourceAsset> resources)
ReadPackageAssetsManifest.cs (4)
43var allAssets = new List<StaticWebAsset>(); 44var allEndpoints = new List<StaticWebAssetEndpoint>(); 105List<StaticWebAsset> assets, 106List<StaticWebAssetEndpoint> endpoints,
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (1)
34var resolvedEndpoints = new List<StaticWebAssetEndpoint>();
ResolveStaticWebAssetsEmbeddedProjectConfiguration.cs (2)
58var matchingConfigurations = new List<EmbeddedStaticWebAssetProjectConfiguration>(); 81var filteredConfigurations = new List<ITaskItem>();
ScopedCss\ApplyCssScopes.cs (5)
32var razorComponentsWithScopes = new List<ITaskItem>(); 33var razorGenerateWithScopes = new List<ITaskItem>(); 34var unmatchedScopedCss = new List<ITaskItem>(ScopedCss); 113List<ITaskItem> itemsWithScopes, 115List<ITaskItem> unmatchedScopedCss,
ScopedCss\ResolveAllScopedCssAssets.cs (2)
24var scopedCssAssets = new List<ITaskItem>(); 25var scopedCssProjectBundles = new List<ITaskItem>();
ScopedCss\RewriteCss.cs (8)
86var foundErrors = new List<ErrorMessage>(); 147public List<CssEdit> Edits { get; } = []; 283public List<ParseItem> KeyframesIdentifiers { get; } = []; 298private sealed class EnsureNoImports(string filePath, in RewriteCss.SourceFile sourceFile, ComplexItem root, List<RewriteCss.ErrorMessage> diagnostics) : Visitor(root) 302private readonly List<ErrorMessage> _diagnostics = diagnostics; 383private List<int> _lineStartIndices; 403private static List<int> GetLineStartIndices(string text) 405var result = new List<int>() { 0 };
StaticWebAssetsGeneratePackManifest.cs (1)
47var packageFiles = new List<StaticWebAssetPackageFile>();
UpdateExternallyDefinedStaticWebAssets.cs (4)
69var assetsWithoutEndpoints = new List<StaticWebAsset>(); 70var originalFrameworkAssetItems = new List<ITaskItem>(); 131var routeSegments = new List<PathTokenizer.Segment>(); 132var basePathSegments = new List<PathTokenizer.Segment>();
UpdatePackageStaticWebAssets.cs (9)
44var originalAssets = new List<ITaskItem>(); 45var updatedAssets = new List<ITaskItem>(); 90var remappedEndpoints = new List<StaticWebAssetEndpoint>(); 91var originalEndpointItems = new List<ITaskItem>(); 94var endpointsByRoute = new Dictionary<string, List<(StaticWebAssetEndpoint Parsed, int OriginalIndex)>>(StringComparer.Ordinal); 98if (!endpointsByRoute.TryGetValue(endpoint.Route, out var group)) 106var routeSegments = new List<PathTokenizer.Segment>(); 107var basePathSegments = new List<PathTokenizer.Segment>(); 111var group = kvp.Value;
UpdateStaticWebAssetEndpoints.cs (3)
53var result = new List<StaticWebAssetEndpoint>(); 86private static bool TryUpdateEndpoint(StaticWebAssetEndpoint endpoint, StaticWebAssetEndpointOperation[] operations, List<StaticWebAssetEndpoint> result) 157List<T> selectors = null;
Utils\Globbing\GlobNode.cs (2)
29public List<ComplexGlobSegment> ComplexGlobSegments { get; set; } 86public List<GlobSegmentPart> Parts { get; set; }
Utils\Globbing\PathTokenizer.cs (3)
85internal SegmentCollection Fill(List<Segment> segments) 101public readonly ref struct SegmentCollection(ReadOnlySpan<char> path, List<Segment> segments) 106private SegmentCollection(ReadOnlySpan<char> path, List<Segment> segments, int index) : this(path, segments) =>
Utils\Globbing\StaticWebAssetGlobMatcher.cs (3)
194var parts = complexSegment.Parts; 210private static bool TryMatchParts(ReadOnlySpan<char> span, List<GlobSegmentPart> parts, int index = 0, int partIndex = 0) 565internal List<PathTokenizer.Segment> Segments { get; set; } = [];
Utils\Globbing\StaticWebAssetGlobMatcherBuilder.cs (7)
10private readonly List<string> _includePatterns = []; 11private readonly List<string> _excludePatterns = []; 49var segments = new List<ReadOnlyMemory<char>>(); 60private static void BuildTree(GlobNode root, List<string> patterns, List<ReadOnlyMemory<char>> segments) 68var tokenRanges = new List<PathTokenizer.Segment>(); 138var parts = complexSegment.Parts;
Microsoft.NET.Sdk.StaticWebAssets.Tool (4)
Program.cs (4)
23Option<List<string>> sourcesOption = new("-s") 28Option<List<string>> outputsOption = new("-o") 43var s = parseResults.GetValue(sourcesOption); 44var o = parseResults.GetValue(outputsOption);
Microsoft.NET.Sdk.WorkloadManifestReader (19)
SdkDirectoryWorkloadManifestProvider.cs (1)
530var matchingManifestFeatureBandsAndResolvedManifestDirectories = candidateFeatureBands
WorkloadDefinition.cs (6)
19WorkloadId id, bool isAbstract, string? description, WorkloadDefinitionKind kind, List<WorkloadId>? extends, 20List<WorkloadPackId>? packs, List<string>? platforms 34public List<WorkloadId>? Extends { get; } 35public List<WorkloadPackId>? Packs { get; } 36public List<string>? Platforms { get; }
WorkloadManifestReader.cs (7)
300private static List<string> ReadStringArray(ref Utf8JsonStreamReader reader) 304var list = new List<string>(); 323private static List<T> ReadStringArray<T>(ref Utf8JsonStreamReader reader, Func<string, T> map) 327var list = new List<T>(); 405List<WorkloadPackId>? packs = null; 406List<WorkloadId>? extends = null; 407List<string>? platforms = null;
WorkloadResolver.cs (1)
519List<(WorkloadId Id, HashSet<WorkloadPackId> Packs)>? expandedWorkloads = availableWorkloads
WorkloadSuggestionFinder.cs (4)
12out List<WorkloadSuggestionCandidate> partialSuggestions, 45out List<WorkloadSuggestionCandidate> partialSuggestions, 72internal static HashSet<WorkloadSuggestionCandidate> GatherUniqueCompletePermutedSuggestions(List<WorkloadSuggestionCandidate> partialSuggestions) 95static void GatherCompletePermutedSuggestions(WorkloadSuggestionCandidate root, List<WorkloadSuggestionCandidate> branches, HashSet<WorkloadSuggestionCandidate> completeSuggestions)
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (3)
CachingWorkloadResolver.cs (2)
114List<string> autoImportSdkPaths = new(); 132List<string> workloadManifestPaths = new();
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadInstallRecords\WindowsWorkloadInstallationRecordReader.cs (1)
23List<SdkFeatureBand> featureBands = [];
Microsoft.NET.StringTools (5)
InternableString.cs (1)
111private List<ReadOnlyMemory<char>>? _spans;
SpanBasedStringBuilder.cs (4)
28private readonly List<ReadOnlyMemory<char>> _spans; 40internal Enumerator(List<ReadOnlyMemory<char>> spans) 83private readonly List<ReadOnlyMemory<char>> _spans; 88internal List<ReadOnlyMemory<char>> Spans => _spans;
Microsoft.Private.Windows.Core (64)
System\Collections\Generic\CollectionExtensions.cs (2)
16internal static List<T> CreateTrimmedList<T>(this IReadOnlyList<T> readOnlyList, int count) 28List<T> list = [..readOnlyList];
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (21)
337/// Writes a <see cref="List{String}"/> in binary format. 339public static void WriteStringList(Stream stream, List<string> list) 367public static void WritePrimitiveList<T>(Stream stream, List<T> list) 404&& type.GetGenericTypeDefinition() == typeof(List<>) 411case List<string> typedList: 414case List<int> typedList: 417case List<byte> typedList: 420case List<sbyte> typedList: 423case List<short> typedList: 426case List<ushort> typedList: 429case List<uint> typedList: 432case List<long> typedList: 435case List<ulong> typedList: 438case List<float> typedList: 441case List<double> typedList: 444case List<decimal> typedList: 447case List<DateTime> typedList: 450case List<TimeSpan> typedList: 453case List<char> typedList: 456case List<bool> typedList: 717&& type.GetGenericTypeDefinition() == typeof(List<>)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (32)
57{ Types.ToTypeName($"{Types.ListName}[[{Types.BooleanType}]]"), typeof(List<bool>) }, 58{ Types.ToTypeName($"{Types.ListName}[[{Types.CharType}]]"), typeof(List<char>) }, 59{ Types.ToTypeName($"{Types.ListName}[[{Types.StringType}]]"), typeof(List<string>) }, 60{ Types.ToTypeName($"{Types.ListName}[[{Types.SByteType}]]"), typeof(List<sbyte>) }, 61{ Types.ToTypeName($"{Types.ListName}[[{Types.ByteType}]]"), typeof(List<byte>) }, 62{ Types.ToTypeName($"{Types.ListName}[[{Types.Int16Type}]]"), typeof(List<short>) }, 63{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt16Type}]]"), typeof(List<ushort>) }, 64{ Types.ToTypeName($"{Types.ListName}[[{Types.Int32Type}]]"), typeof(List<int>) }, 65{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt32Type}]]"), typeof(List<uint>) }, 66{ Types.ToTypeName($"{Types.ListName}[[{Types.Int64Type}]]"), typeof(List<long>) }, 67{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt64Type}]]"), typeof(List<ulong>) }, 68{ Types.ToTypeName($"{Types.ListName}[[{Types.SingleType}]]"), typeof(List<float>) }, 69{ Types.ToTypeName($"{Types.ListName}[[{Types.DoubleType}]]"), typeof(List<double>) }, 70{ Types.ToTypeName($"{Types.ListName}[[{Types.DecimalType}]]"), typeof(List<decimal>) }, 71{ Types.ToTypeName($"{Types.ListName}[[{Types.DateTimeType}]]"), typeof(List<DateTime>) }, 72{ Types.ToTypeName($"{Types.ListName}[[{Types.TimeSpanType}]]"), typeof(List<TimeSpan>) }, 124|| type == typeof(List<byte>) 125|| type == typeof(List<sbyte>) 126|| type == typeof(List<short>) 127|| type == typeof(List<ushort>) 128|| type == typeof(List<int>) 129|| type == typeof(List<uint>) 130|| type == typeof(List<long>) 131|| type == typeof(List<ulong>) 132|| type == typeof(List<float>) 133|| type == typeof(List<double>) 134|| type == typeof(List<char>) 135|| type == typeof(List<bool>) 136|| type == typeof(List<string>) 137|| type == typeof(List<decimal>) 138|| type == typeof(List<DateTime>) 139|| type == typeof(List<TimeSpan>)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
294/// Tries to get this object as a <see cref="List{T}"/> of <see cref="PrimitiveType"/>. 309|| classInfo.TypeName.GetGenericTypeDefinition().Name != typeof(List<>).Name
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (3)
318List<string> files = new((int)count); 583List<string> mappedFormats = []; 656List<string> mappedFormats = [];
System\Private\Windows\Ole\DataFormatsCore.cs (1)
19private static List<T>? s_formatList;
System\Private\Windows\Ole\DataStore.cs (1)
44List<string> mappedFormats = [];
System\Private\Windows\Ole\FormatEnumerator.cs (1)
21private readonly List<ComTypes.FORMATETC> _formats = [];
Windows\Win32\System\Com\ComPointerList.cs (1)
16private readonly List<nint> _pointers = [];
Microsoft.SourceLink.AzureDevOpsServer.Git (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.AzureRepos.Git (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.Bitbucket.Git (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.Common (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.Gitea (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.Gitee (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.GitHub (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.GitLab (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.GitWeb (2)
src\sourcelink\src\Common\Utilities\PathUtilities.cs (2)
27var list = new List<string> { UncPrefix }; 34var list = new List<string> { UnixRoot };
Microsoft.SourceLink.Tools.Package (1)
SourceLinkMap.cs (1)
90var list = new List<Entry>();
Microsoft.TemplateEngine.Cli (60)
Alias\AliasRegistry.cs (1)
207List<string> values = new();
ChoiceTemplateParameter.cs (1)
180List<string> parsedValues = new();
CliTemplateParameter.cs (2)
30private readonly List<string> _shortNameOverrides = new(); 32private readonly List<string> _longNameOverrides = new();
Commands\AliasAssignmentCoordinator.cs (7)
15List<(CliTemplateParameter Parameter, IReadOnlySet<string> Aliases, IReadOnlyList<string> Errors)> result = new(); 17List<string> predefinedLongOverrides = parameters.SelectMany(p => p.LongNameOverrides).Where(n => !string.IsNullOrEmpty(n)).Select(n => $"--{n}").ToList(); 18List<string> predefinedShortOverrides = parameters.SelectMany(p => p.ShortNameOverrides).Where(n => !string.IsNullOrEmpty(n)).Select(n => $"-{n}").ToList(); 27List<string> errors = new(); 55List<string> errors, 93List<string> errors, 136List<string> errors,
Commands\create\InstantiateCommand.Help.cs (6)
198List<string> supportedLanguages = new(); 234List<string> supportedTypes = new(); 289List<Option> optionsToShow = new() 341List<TemplateCommand> matchingTemplates = new(); 371List<string> usageParts = new(); 480List<Command> parentCommands = new();
Commands\create\InstantiateCommand.NoMatchHandling.cs (6)
16internal static List<InvalidTemplateOptionResult> GetInvalidOptions(IEnumerable<TemplateResult> templates) 21List<InvalidTemplateOptionResult> invalidOptionsList = new(); 62internal static List<TemplateResult> CollectTemplateMatchInfo(InstantiateCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, TemplateGroup templateGroup) 64List<TemplateResult> matchInfos = new(); 131List<TemplateResult> matchInfos = CollectTemplateMatchInfo(args, environmentSettings, templatePackageManager, templateGroup); 139List<InvalidTemplateOptionResult> invalidOptionsList = GetInvalidOptions(matchInfos);
Commands\create\InstantiateCommand.TabCompletion.cs (2)
171List<TemplateGroup> allowedTemplateGroups = new(); 172List<(TemplateGroup TemplateGroup, Task<IEnumerable<CliTemplateInfo>> Task)> tasksToWait = new();
Commands\create\InstantiateCommandArgs.cs (2)
33var tokens = new List<string>(); 62var tokens = new List<string>();
Commands\create\TemplateResult.cs (1)
16private List<TemplateOptionResult> _parametersInfo = new();
Commands\Example.cs (2)
24List<string> parentCommands = new(); 36List<string> parentCommands2 = new();
Commands\Extensions.cs (1)
71var invalidArguments = optionResult.Tokens.Where(token => !allowedValues.Append(allowedHiddenValue).Contains(token.Value, StringComparer.OrdinalIgnoreCase)).ToList();
Commands\NewCommandArgs.cs (1)
24List<Token> tokensToEvaluate = new();
JExtensions.cs (1)
204List<string> values = new();
PostActionProcessors\PostActionProcessorBase.cs (3)
36List<string> results = new(); 108var fullPaths = paths 143var parts = arr
TabularOutput\TabularOutput.cs (5)
16private readonly List<ColumnDefinition> _columns = new(); 18private readonly List<Tuple<int, bool, IComparer<string>>> _ordering = new(); 79List<TextWrapper[]> grid = new(); 381List<string> lines = new(); 432private static void GetLineText(string text, List<string> lines, int maxLength, int end, ref int position)
TabularOutput\TemplateGroupDisplay.cs (6)
75List<string> languageGroups = new(); 78List<string> languagesForDisplay = new(); 142List<TemplateGroupTableRow> templateGroupsForDisplay = new(); 171List<string> classificationGroups = new(); 206List<TemplateGroupTableRow> templateGroupsForDisplay = new(); 256List<string> typesGroups = new();
TelemetryHelper.cs (1)
35List<string> hashedValues = new();
TemplatePackageCoordinator.cs (10)
208List<InstallRequest> installRequests = new(); 369Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>> sourcesToUninstall; 372foreach (KeyValuePair<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>> providerSourcesToUninstall in sourcesToUninstall) 609private async Task<bool> ValidateInstallationRequestsAsync(InstallCommandArgs args, List<InstallRequest> installRequests, CancellationToken cancellationToken) 655private async Task<(NewCommandStatus, Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>>)> DetermineSourcesToUninstallAsync(UninstallCommandArgs commandArgs, CancellationToken cancellationToken) 664var packagesToUninstall = new Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>>(); 665List<string> notFoundPackages = new(); 675if (packagesToUninstall.TryGetValue(templatePackage.ManagedProvider, out List<IManagedTemplatePackage>? packages)) 697if (packagesToUninstall.TryGetValue(templatePackage.ManagedProvider, out List<IManagedTemplatePackage>? packages)) 885List<PackageSource> customSources = new();
TemplateResolution\TemplateGroupMatchInfo.cs (1)
197List<MatchInfo> groupMatchDispositions = new();
TemplateSearch\CliTemplateSearchCoordinator.cs (1)
233List<SearchResultTableRow> templateGroupsForDisplay = new();
Microsoft.TemplateEngine.Core (34)
Expressions\Cpp\CppStyleEvaluatorDefinition.cs (3)
79List<byte> currentTokenBytes = new List<byte>(); 80List<TokenRef> tokens = new List<TokenRef>(); 329List<TokenRef> outputTokens = new List<TokenRef>();
Expressions\ScopeBuilder.cs (4)
51List<object> symbolValues = new List<object>(); 52List<string> symbolKeys = new List<string>(); 86List<byte> currentLiteral = new List<byte>(); 87List<byte> allData = new List<byte>();
Expressions\Shared\XmlStyleConverters.cs (1)
14List<char> output = new List<char>();
Matching\TrieEvaluator.cs (1)
9private readonly List<TriePath<T>> _activePaths;
Matching\TrieNode.cs (1)
16public List<T>? Terminals { get; set; }
Matching\TriePath.cs (1)
15public List<T> EncounteredTerminals { get; }
Operations\Conditional.cs (2)
76List<IToken> tokens = new List<IToken>(TokenTypeModulus * LongestTokenVariantListSize); 114private void AddTokensOfTypeToTokenListAndTrie(ITokenTrie trie, List<IToken> tokenMasterList, IReadOnlyList<ITokenConfig> tokensOfType, int typeRemainder, Encoding encoding)
Operations\Include.cs (1)
70List<byte> pathBytes = new List<byte>();
Operations\InlineMarkupConditional.cs (2)
104List<byte> conditionBytes = new List<byte>(); 218private void ScanToCloseCondition(IProcessorState processorState, List<byte> conditionBytes, ref int bufferLength, ref int currentBufferPosition)
Operations\Phase.cs (1)
25public List<Phase> Next { get; }
Operations\PhasedOperation.cs (7)
26List<IToken> tokens = new List<IToken>(); 29Stack<List<SpecializedPhase>> targetParents = new Stack<List<SpecializedPhase>>(); 31List<SpecializedPhase> currentTarget = new List<SpecializedPhase>(); 80List<SpecializedPhase> children = currentTarget; 141public List<SpecializedPhase> Next { get; } 145public List<int> ResetsWith { get; }
TokenConfigExtensions.cs (1)
33List<ITokenConfig> configs = new List<ITokenConfig>();
Util\EncodingConfig.cs (1)
12private readonly List<IToken> _variableKeys;
Util\Orchestrator.cs (4)
87private static List<KeyValuePair<IPathMatcher, IProcessor>> CreateFileGlobProcessors(ILogger logger, IGlobalRunSpec spec) 89List<KeyValuePair<IPathMatcher, IProcessor>> processorList = new List<KeyValuePair<IPathMatcher, IProcessor>>(); 122List<IFileChange2> changes = new List<IFileChange2>(); 192List<KeyValuePair<IPathMatcher, IProcessor>> fileGlobProcessors = CreateFileGlobProcessors(_logger, spec);
Util\ProcessorState.cs (2)
14private static readonly ConcurrentDictionary<IReadOnlyList<IOperationProvider>, List<string>> OperationsToExplicitlySetOnByDefault = new(); 75List<string> turnOnByDefault = OperationsToExplicitlySetOnByDefault.GetOrAdd(operationProviders, x =>
Util\TokenTrie.cs (2)
11private readonly List<IToken> _tokens = new List<IToken>(); 12private readonly List<int> _lengths = new List<int>();
Microsoft.TemplateEngine.Edge (60)
BuiltInManagedProvider\GlobalSettings.cs (1)
84var packages = new List<TemplatePackageData>();
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (11)
56var list = new List<ITemplatePackage>(); 84var tasks = new List<Task<IReadOnlyList<CheckUpdateResult>>>(); 91var result = new List<CheckUpdateResult>(); 124var packages = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false)); 127var installersThatCanInstall = new List<IInstaller>(); 169var packagesInSettings = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false)); 193var packages = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false)); 220var updatedPackages = new List<TemplatePackageData>(templatePackages.Select(tp => ((ISerializableInstaller)tp.Installer).Serialize(tp))); 232private async Task<UpdateResult> UpdateAsync(List<TemplatePackageData> packages, UpdateRequest updateRequest, CancellationToken cancellationToken) 258private async Task<(InstallerErrorCode, string)> EnsureInstallPrerequisites(List<TemplatePackageData> packagesInSettings, string identifier, string? version, IInstaller installer, CancellationToken cancellationToken, bool update = false, bool forceUpdate = false) 305private async Task<InstallResult> InstallAsync(List<TemplatePackageData> packages, InstallRequest installRequest, IInstaller installer, CancellationToken cancellationToken)
Constraints\HostConstraint.cs (1)
72List<HostInformation> hostInformation = new List<HostInformation>();
Constraints\SdkVersionConstraintFactory.cs (1)
94List<ISdkInfoProvider> providers = sdkInfoProviders.ToList();
Constraints\WorkloadConstraintFactory.cs (2)
87List<IWorkloadsInfoProvider> providers = workloadsInfoProviders.ToList(); 88List<WorkloadInfo>? workloads = null;
Installers\NuGet\NugetApiPackageManager.cs (4)
223var insecurePackages = new List<PackageSource>(); 224var securePackages = new List<PackageSource>(); 327List<Task<(PackageSource Source, IEnumerable<NugetPackageMetadata>? FoundPackages)>> tasks = 470List<PackageSource> customSources = new List<PackageSource>();
ReflectionLoadProbingPath.cs (1)
17private static readonly List<ReflectionLoadProbingPath> Instance = new List<ReflectionLoadProbingPath>();
Settings\ComponentManager.cs (2)
17private readonly List<string> _loadLocations = new List<string>(); 84var components = new List<T>();
Settings\Scanner.cs (4)
236var templates = new List<IScanTemplateInfo>(); 253var localizationLocators = templates.SelectMany(t => t.Localizations.Values.Where(li => li.IsValid || returnInvalidTemplates)).ToList(); 274List<KeyValuePair<string, Assembly>> loaded = new List<KeyValuePair<string, Assembly>>(); 275List<string> failures = new List<string>();
Settings\TemplateCache.cs (2)
54var templates = new List<TemplateInfo>(); 108List<TemplateInfo> templateList = new List<TemplateInfo>();
Settings\TemplateInfo.cs (1)
250List<ITemplateParameter> localizedParameters = new List<ITemplateParameter>();
Settings\TemplateInfoReader.cs (4)
33List<string> classifications = new List<string>(); 79List<ITemplateParameter> templateParameters = new List<ITemplateParameter>(); 108List<Guid> postActions = new List<Guid>(); 123List<TemplateConstraintInfo> constraints = new List<TemplateConstraintInfo>();
Settings\TemplateMatchInfo.cs (3)
12private readonly List<MatchInfo> _matchDisposition; 14private readonly List<MatchInfo> _dispositionOfDefaults; 65private readonly List<Abstractions.TemplateFiltering.MatchInfo> _matchDisposition = new List<Abstractions.TemplateFiltering.MatchInfo>();
Settings\TemplatePackageManager.cs (1)
101var sources = new List<ITemplatePackage>();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
260private static List<KeyValuePair<string, JsonNode?>> GetObjectPropertiesViaDocument(JsonObject obj) 263var result = new List<KeyValuePair<string, JsonNode?>>(); 376List<string> values = new(); 401List<Guid> values = new();
Template\IParameterSetBuilder.cs (1)
28List<string> paramsWithInvalidValues);
Template\ParameterSetBuilder.cs (7)
41List<string> paramsWithInvalidValuesList = new List<string>(); 110List<EvalData> evaluatedParameters = _resolvedValues.Values.ToList(); 111List<EvalData> clonedParameters = evaluatedParameters.Select(v => v.Clone()).ToList(); 112List<string> invalidParams = new List<string>(); 156public void SetParameterDefault(IGenerator generator, ITemplateParameter parameter, IEngineEnvironmentSettings environment, bool useHostDefaults, bool isRequired, List<string> paramsWithInvalidValues) 194private static void RunDatasetEvaluation(List<EvalData> evaluatedParameters, IGenerator generator, ILogger logger) 343List<EvalData> evaluatedParameters = _resolvedValues.Values.ToList();
Template\TemplateCreator.cs (3)
285List<string> tmpParamsWithInvalidValues = new List<string>(); 388List<string> defaultParamsWithInvalidValues = new List<string>(); 524List<string> paramsWithInvalidValues) =>
TemplateConstraintManager.cs (4)
46List<string> uniqueConstraints = templates.SelectMany(ti => ti.Constraints.Select(c => c.Type)).Distinct().ToList(); 151var tasksToWait = new List<Task>(); 182List<(ITemplateInfo, IReadOnlyList<TemplateConstraintResult>)> evaluationResult = new(); 185List<TemplateConstraintResult> constraintResults = new();
TemplateListFilter.cs (3)
33List<MatchInfo> matchInformation = new List<MatchInfo>(); 78List<MatchInfo> matchInformation = new List<MatchInfo>(); 112List<Abstractions.TemplateFiltering.MatchInfo> matchInformation = new List<Abstractions.TemplateFiltering.MatchInfo>();
Microsoft.TemplateEngine.IDE (2)
Bootstrapper.cs (2)
407var installRequests = paths.Select(path => new InstallRequest(path)).ToList(); 438var packagesToUninstall = new List<IManagedTemplatePackage>();
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (88)
BindSymbolEvaluator.cs (1)
232var tasksToRun = sourcesToSearch.Select(s => new { Source = s, Task = s.GetBoundValueAsync(_settings, binding, cancellationToken) }).ToList();
ConfigModel\CustomFileGlobModel.cs (1)
43List<CustomOperationModel> customOpsForGlob = new List<CustomOperationModel>();
ConfigModel\ExtendedFileSource.cs (1)
59List<SourceModifier> modifiers = new List<SourceModifier>();
ConfigModel\PostActionModel.cs (5)
79internal static IReadOnlyList<PostActionModel> LoadListFromJArray(JsonArray? jArray, List<IValidationEntry> validationEntries) 81List<PostActionModel> localizedPostActions = new(); 126List<string> verifiedApplyFileRenamesToArgs = new(); 180private static IReadOnlyList<ManualInstructionModel> LoadManualInstructionsFromJArray(JsonArray? jArray, List<IValidationEntry> validationEntries) 182var results = new List<ManualInstructionModel>();
ConfigModel\PrimaryOutputModel.cs (1)
32List<PrimaryOutputModel> modelList = new List<PrimaryOutputModel>();
ConfigModel\ReplacementContext.cs (1)
37List<ReplacementContext> contexts = new List<ReplacementContext>();
ConfigModel\SymbolValueFormsModel.cs (1)
36List<string> globalForms;
ConfigModel\TemplateConfigModel.cs (4)
27private readonly List<IValidationEntry> _validationEntries = new(); 78var sources = new List<ExtendedFileSource>(); 166List<CustomFileGlobModel> specialCustomSetup = new(); 179List<TemplateConstraintInfo> constraints = new();
DirectoryBasedTemplate.cs (1)
28private readonly List<IValidationEntry> _validationErrors = new();
FileRenameGenerator.cs (3)
102List<IOperationProvider> operations = new(); 122List<IOperationProvider> operations = new(); 151List<IOperationProvider> operations)
FileSourceHierarchicalPathMatcher.cs (2)
38List<FileSourceEvaluablePathMatcher> evaluators = new List<FileSourceEvaluablePathMatcher>(); 145List<IPathMatcher> paths = new List<IPathMatcher>(expect);
GlobalRunSpec.cs (5)
26List<IOperationConfig> operationConfigReaders = new List<IOperationConfig>(componentManager.OfType<IOperationConfig>()); 39List<KeyValuePair<IPathMatcher, IRunSpec>> specials = new List<KeyValuePair<IPathMatcher, IRunSpec>>(); 99List<IOperationProvider> operations = new List<IOperationProvider>(customOperations); 116List<IOperationProvider> operations = new List<IOperationProvider>(); 143List<IOperationProvider> customOperations = new List<IOperationProvider>();
ListGlobbingPatternMatcher.cs (1)
17List<IPathMatcher> pathMatchers = new List<IPathMatcher>();
Localization\TemplateLocalizationInfo.cs (1)
12private readonly List<IValidationEntry> _validationEntries = new();
LocalizationModelDeserializer.cs (3)
31List<(string Key, string Value)> localizedStrings = srcObject 49private static IReadOnlyDictionary<string, IParameterSymbolLocalizationModel> LoadSymbolModels(List<(string Key, string Value)> localizedStrings) 122private static IReadOnlyDictionary<string, PostActionLocalizationModel> LoadPostActionModels(List<(string Key, string Value)> localizedStrings)
Macros\JoinMacro.cs (1)
19List<string> values = new();
Macros\JoinMacroConfig.cs (1)
30List<(JoinType Type, string Value)> symbolsList = new();
Macros\RegexMacroConfig.cs (1)
33List<(string Type, string Value)> steps = new();
Macros\SwitchMacroConfig.cs (1)
32List<(string? Condition, string Value)> cases = new();
OperationConfig\ConditionalBlockCommentConfig.cs (9)
14internal static List<IOperationProvider> ConfigureFromJObject(JsonObject rawConfiguration) 43internal static List<IOperationProvider> GenerateConditionalSetup(string startToken, string endToken) 48internal static List<IOperationProvider> GenerateConditionalSetup(string? startToken, string? endToken, ConditionalKeywords keywords, ConditionalOperationOptions options) 66internal static List<IOperationProvider> GenerateConditionalSetup(string? startToken, string? endToken, string? pseudoEndToken) 71internal static List<IOperationProvider> GenerateConditionalSetup(string? startToken, string? endToken, string? pseudoEndToken, ConditionalKeywords keywords, ConditionalOperationOptions options) 75List<ITokenConfig> endIfTokens = new List<ITokenConfig>(); 82List<ITokenConfig> actionableIfTokens = new List<ITokenConfig>(); 88List<ITokenConfig> actionableElseTokens = new List<ITokenConfig>(); 95List<ITokenConfig> actionableElseIfTokens = new List<ITokenConfig>();
OperationConfig\ConditionalConfig.cs (7)
39List<IOperationProvider> setup; 108internal static List<IOperationProvider> MSBuildConditionalSetup(EvaluatorType evaluatorType, bool wholeLine, bool trimWhiteSpace, string id) 135internal static List<IOperationProvider> CStyleNoCommentsConditionalSetup(EvaluatorType evaluatorType, bool wholeLine, bool trimWhiteSpace, string? id) 139List<ITokenConfig> ifTokens = new List<ITokenConfig>(); 140List<ITokenConfig> elseifTokens = new List<ITokenConfig>(); 141List<ITokenConfig> elseTokens = new List<ITokenConfig>(); 142List<ITokenConfig> endifTokens = new List<ITokenConfig>();
OperationConfig\ConditionalCustomConfig.cs (1)
13internal static List<IOperationProvider> ConfigureFromJObject(JsonObject rawConfiguration)
OperationConfig\ConditionalLineCommentConfig.cs (10)
14internal static List<IOperationProvider> ConfigureFromJObject(JsonObject rawConfiguration) 30internal static List<IOperationProvider> GenerateConditionalSetup(string token) 35internal static List<IOperationProvider> GenerateConditionalSetup(string? token, ConditionalKeywords keywords, ConditionalOperationOptions options) 42List<ITokenConfig> ifTokens = new List<ITokenConfig>(); 43List<ITokenConfig> actionableIfTokens = new List<ITokenConfig>(); 50List<ITokenConfig> elseTokens = new List<ITokenConfig>(); 51List<ITokenConfig> actionableElseTokens = new List<ITokenConfig>(); 58List<ITokenConfig> elseIfTokens = new List<ITokenConfig>(); 59List<ITokenConfig> actionalElseIfTokens = new List<ITokenConfig>(); 66List<ITokenConfig> endIfTokens = new List<ITokenConfig>();
OperationConfig\FlagsConfig.cs (1)
50List<IOperationProvider> flagOperations = new List<IOperationProvider>();
ParameterConverter.cs (1)
29List<string> val =
PostAction.cs (2)
32internal static List<IPostAction> Evaluate( 39List<IPostAction> actionList = new();
PrimaryOutput.cs (1)
30List<ICreationPath> pathList = new();
RunnableProjectConfig.cs (14)
116List<(string Glob, GlobalRunConfig RunConfig)> specialOperationConfig = new(); 283List<IReplacementTokens> filenameReplacements = new(); 326List<IOperationProvider> operations = new List<IOperationProvider>(); 346List<IReplacementTokens> macroGeneratedReplacements = new(); 348List<IMacroConfig> macros = new(); 446private void GenerateReplacementsForSymbol(BaseReplaceSymbol symbol, string replaces, string sourceVariable, List<IReplacementTokens> macroGeneratedReplacements) 473private void GenerateFileReplacementsForSymbol(string fileRename, string sourceVariable, List<IReplacementTokens> filenameReplacements) 479private List<IMacroConfig> ProduceGeneratedSymbolsMacroConfig() 484var generatedMacroConfigs = new List<IMacroConfig>(); 503private List<BaseMacroConfig> ProduceComputedMacroConfig() 505List<BaseMacroConfig> computedMacroConfigs = new(); 527private List<FileSourceMatchInfo> EvaluateSources(IVariableCollection rootVariableCollection, object? resolvedNameParamValue) 529List<FileSourceMatchInfo> sources = new List<FileSourceMatchInfo>(); 544List<FileSourceEvaluable> modifierList = new List<FileSourceEvaluable>();
RunnableProjectGenerator.cs (2)
142List<IFileChange2> changes = new List<IFileChange2>(); 338List<ScannedTemplateInfo> templateList = new();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
260private static List<KeyValuePair<string, JsonNode?>> GetObjectPropertiesViaDocument(JsonObject obj) 263var result = new List<KeyValuePair<string, JsonNode?>>(); 376List<string> values = new(); 401List<Guid> values = new();
Validation\ValidationManager.cs (1)
56List<Task<ITemplateValidator>> validatorsToCreate = new();
Microsoft.TemplateEngine.Utils (19)
DefaultTemplatePackageProvider.cs (1)
47var list = new List<ITemplatePackage>();
DirectedGraph.cs (2)
37List<T> result = new(); 215List<T> items = new();
FileFindHelpers.cs (2)
17List<string> filesInDir = fileSystem.EnumerateFileSystemEntries(directory, matchPattern, SearchOption.TopDirectoryOnly).ToList(); 19List<string> matches = secondaryFilter == null ? filesInDir : filesInDir.Where(x => secondaryFilter(x)).ToList();
FileSystemInfoExtensions.cs (1)
87List<string> segments = new List<string> { info.Name };
Glob.cs (2)
35List<IMatcher> matchers = new(); 71List<char> values = new();
InMemoryFileSystem.cs (1)
715List<string> realParts = new();
ListExtensions.cs (6)
14Dictionary<ValueWrapper<TKey?>, List<TElement>> groups = new Dictionary<ValueWrapper<TKey?>, List<TElement>>(new ValueWrapperComparer<TKey?>(comparer)); 15List<TElement> ungrouped = new List<TElement>(); 22if (!groups.TryGetValue(x, out List<TElement> group)) 35List<IGrouping<TKey?, TElement>> allGrouped = new List<IGrouping<TKey?, TElement>>(); 37foreach (KeyValuePair<ValueWrapper<TKey?>, List<TElement>> entry in groups)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
260private static List<KeyValuePair<string, JsonNode?>> GetObjectPropertiesViaDocument(JsonObject obj) 263var result = new List<KeyValuePair<string, JsonNode?>>(); 376List<string> values = new(); 401List<Guid> values = new();
Microsoft.TemplateSearch.Common (17)
Providers\NuGetMetadataSearchProvider.cs (2)
80List<(ITemplatePackageInfo PackageInfo, IReadOnlyList<ITemplateInfo> MatchedTemplates)> matchingTemplates = filteredPackages 165List<Exception> exceptionsOccurred = new();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
260private static List<KeyValuePair<string, JsonNode?>> GetObjectPropertiesViaDocument(JsonObject obj) 263var result = new List<KeyValuePair<string, JsonNode?>>(); 376List<string> values = new(); 401List<Guid> values = new();
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (3)
166List<string> classifications = new List<string>(); 197List<Guid> postActions = new List<Guid>(); 210List<ITemplateParameter> templateParameters = new List<ITemplateParameter>();
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (4)
18List<TemplatePackageSearchData> packageData = new List<TemplatePackageSearchData>(); 21List<TemplateSearchData> templateData = new List<TemplateSearchData>(); 106List<ITemplateInfo> buildingTemplateList = new List<ITemplateInfo>(); 171List<TemplateIdentificationEntry> templatesInPack = new List<TemplateIdentificationEntry>();
TemplateDiscoveryMetadata\PackToTemplateEntry.cs (1)
11internal PackToTemplateEntry(string version, List<TemplateIdentificationEntry> templateIdentificationEntry)
TemplateSearchCache\TemplatePackageSearchData.Json.cs (1)
41List<TemplateSearchData> templates = new List<TemplateSearchData>();
TemplateSearchCache\TemplateSearchCache.Json.cs (1)
54List<TemplatePackageSearchData> templatePackages = new();
TemplateSearchCoordinator.cs (1)
55List<SearchResult> results = new List<SearchResult>();
Microsoft.TestPlatform.AdapterUtilities (1)
ManagedNameUtilities\ManagedNameParser.cs (1)
150var types = new List<string>();
Microsoft.TestPlatform.Build (7)
Tasks\TestTaskUtils.cs (6)
127var normalTestLogging = new List<string>() { "n", "normal", "d", "detailed", "diag", "diagnostic" }; 128var quietTestLogging = new List<string>() { "q", "quiet" }; 147var dumpArgs = new List<string>(); 250var cliRunSettings = SplitCLIRunSettings(task.VSTestCLIRunSettings); 374internal static List<string> SplitCLIRunSettings(string? value) 376var settings = new List<string>();
Tasks\VSTestTask2.cs (1)
334var time = new List<string>();
Microsoft.TestPlatform.CommunicationUtilities (83)
_generated\104\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (5)
82if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)) 354if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>)) 358if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>)) 362if (type == typeof(global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>)) 366if (type == typeof(global::System.Collections.Generic.List<string>))
_generated\15\TestPlatformJsonContext.PayloadedMessageListTestCase.g.cs (20)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>>? _PayloadedMessageListTestCase; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>> PayloadedMessageListTestCase 22get => _PayloadedMessageListTestCase ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>> Create_PayloadedMessageListTestCase(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>> 31ObjectCreator = () => new global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>(), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>>(options, objectInfo); 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 58DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>), 60Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)obj).Payload, 61Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)obj).Payload = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>(options, info0); 78private void PayloadedMessageListTestCaseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>? value) 89ListTestCaseSerializeHandler(writer, ((global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)value).Payload);
_generated\42\TestPlatformJsonContext.TestRunRequestPayload.g.cs (6)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<string>> 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload).GetProperty("Sources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<string>>(options, info0); 73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload).GetProperty("TestCases", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>(options, info1);
_generated\83\TestPlatformJsonContext.ListAttachmentSet.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>>? _ListAttachmentSet; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>> ListAttachmentSet 22get => _ListAttachmentSet ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>> Create_ListAttachmentSet(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>(options, info); 47private void ListAttachmentSetSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>? value)
_generated\84\TestPlatformJsonContext.ListTestCase.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>? _ListTestCase; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> ListTestCase 22get => _ListTestCase ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> Create_ListTestCase(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>(options, info); 47private void ListTestCaseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>? value)
_generated\85\TestPlatformJsonContext.ListKeyValuePairTestPropertyObject.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>>? _ListKeyValuePairTestPropertyObject; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>> ListKeyValuePairTestPropertyObject 22get => _ListKeyValuePairTestPropertyObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>> Create_ListKeyValuePairTestPropertyObject(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>, global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>(options, info); 47private void ListKeyValuePairTestPropertyObjectSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>>? value)
_generated\86\TestPlatformJsonContext.ListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>? _ListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> ListString 22get => _ListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> Create_ListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<string>, string>(options, info); 47private void ListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<string>? value)
DataCollectionRequestHandler.cs (1)
272List<string> extensionAssemblies = new();
Serialization\ObjectConverter.cs (2)
40internal static List<object?> ReadArray(ref Utf8JsonReader reader, JsonSerializerOptions options) 42var list = new List<object?>();
Serialization\TestObjectConverter.cs (4)
18internal class TestObjectConverter : JsonConverter<List<KeyValuePair<TestProperty, object>>> 21public override List<KeyValuePair<TestProperty, object>>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 23var propertyList = new List<KeyValuePair<TestProperty, object>>(); 71public override void Write(Utf8JsonWriter writer, List<KeyValuePair<TestProperty, object>> value, JsonSerializerOptions options)
TestPlatformJsonContext.cs (5)
56[JsonSerializable(typeof(List<TestCase>))] 59[JsonSerializable(typeof(List<KeyValuePair<TestProperty, object>>))] 61[JsonSerializable(typeof(List<AttachmentSet>))] 89[JsonSerializable(typeof(List<string>))] 112[JsonSerializable(typeof(JsonDataSerializer.PayloadedMessage<List<TestCase>>))]
Microsoft.TestPlatform.CoreUtilities (1)
Utilities\JobQueue.cs (1)
301List<Job<T>> jobs = new();
Microsoft.TestPlatform.CrossPlatEngine (68)
Adapter\TestExecutionRecorder.cs (1)
21private readonly List<AttachmentSet> _attachmentSets;
AttachmentsProcessing\DataCollectorAttachmentsProcessorsFactory.cs (1)
139var finalDatacollectorsAttachmentsProcessors = new List<DataCollectorAttachmentProcessor>();
Client\InProcessProxyexecutionManager.cs (1)
60var testPackages = new List<string>(testRunCriteria.HasSpecificSources ? testRunCriteria.Sources :
Client\Parallel\DiscoveryDataAggregator.cs (1)
166public List<string> GetSourcesWithStatus(DiscoveryStatus discoveryStatus)
Client\Parallel\ParallelDiscoveryEventsHandler.cs (4)
90var fullyDiscovered = _discoveryDataAggregator.GetSourcesWithStatus(DiscoveryStatus.FullyDiscovered); 91var partiallyDiscovered = _discoveryDataAggregator.GetSourcesWithStatus(DiscoveryStatus.PartiallyDiscovered); 92var notDiscovered = _discoveryDataAggregator.GetSourcesWithStatus(DiscoveryStatus.NotDiscovered); 93var skippedDiscovery = _discoveryDataAggregator.GetSourcesWithStatus(DiscoveryStatus.SkippedDiscovery);
Client\Parallel\ParallelOperationManager.cs (3)
64private readonly List<TManager> _activeManagers = new(); 92List<ProviderSpecificWorkload<TWorkload>> workloads, 133List<(TManager Manager, TEventHandler EventHandler, TWorkload Work)> reserved = new();
Client\Parallel\ParallelProxyDiscoveryManager.cs (8)
49List<TestRuntimeProviderInfo> testHostProviders) 60List<TestRuntimeProviderInfo> testHostProviders) 86var workloads = SplitToWorkloads(discoveryCriteria, _sourceToTestHostProviderMap); 88var runnableWorkloads = workloads.Where(workload => workload.HasProvider).ToList(); 90var nonRunnableWorkloads = workloads.Where(workload => !workload.HasProvider).ToList(); 205private List<ProviderSpecificWorkload<DiscoveryCriteria>> SplitToWorkloads(DiscoveryCriteria discoveryCriteria, Dictionary<string, TestRuntimeProviderInfo> sourceToTestHostProviderMap) 213List<ProviderSpecificWorkload<DiscoveryCriteria>> workloads = new(); 221List<string[]> sourceBatches;
Client\Parallel\ParallelProxyExecutionManager.cs (12)
69List<TestRuntimeProviderInfo> testHostProviders) 79List<TestRuntimeProviderInfo> testHostProviders) 98var workloads = SplitToWorkloads(testRunCriteria, _sourceToTestHostProviderMap); 99var runnableWorkloads = workloads.Where(workload => workload.HasProvider).ToList(); 100var nonRunnableWorkloads = workloads.Where(workload => !workload.HasProvider).ToList(); 194private List<ProviderSpecificWorkload<TestRunCriteria>> SplitToWorkloads(TestRunCriteria testRunCriteria, Dictionary<string, TestRuntimeProviderInfo> sourceToTestHostProviderMap) 228List<ProviderSpecificWorkload<TestRunCriteria>> workloads = new(); 247List<TestCase[]> testCaseBatches; 268var testCases = testCaseBatches.SelectMany(tcb => tcb).ToList(); 269var groups = new List<List<TestCase>>(); 305List<string[]> sourceBatches;
Client\Parallel\ParallelRunDataAggregator.cs (4)
24private readonly List<string> _executorUris; 26private readonly List<ITestRunStatistics> _testRunStatsList; 54public List<AttachmentSet> RunCompleteArgsAttachments { get; } 58public List<Exception> Exceptions { get; }
Client\ProxyDiscoveryManager.cs (2)
308var extensions = TestPluginCache.Instance.GetExtensionPaths(TestPlatformConstants.TestAdapterEndsWithPattern, skipDefaultAdapters); 317var sourceList = sources.ToList();
Client\ProxyExecutionManager.cs (4)
38private List<string>? _testSources; 197var testSources = new List<string>( 433var extensions = TestPluginCache.Instance.GetExtensionPaths(TestPlatformConstants.TestAdapterEndsWithPattern, _skipDefaultAdapters); 442var sourceList = sources.ToList();
Client\ProxyExecutionManagerWithDataCollection.cs (2)
221public List<Tuple<TestMessageLevel, string?>> Messages { get; private set; } 226public List<string> RawMessages { get; private set; }
Client\TestRuntimeProviderInfo.cs (2)
16public List<SourceDetail> SourceDetails { get; } 18public TestRuntimeProviderInfo(Type? type, bool shared, string? runSettings, List<SourceDetail> sourceDetails)
DataCollection\InProcDataCollectionExtensionManager.cs (1)
67var extensionPaths = testPluginCache.GetExtensionPaths(DataCollectorEndsWithPattern);
DataCollection\ProxyDataCollectionManager.cs (2)
306var commandlineArguments = new List<string> 386var enabledDataCollectors = new List<DataCollectorSettings>();
Discovery\DiscovererEnumerator.cs (1)
373var sourcesForWhichNoDiscovererIsAvailable = new List<string>(sources);
Discovery\DiscoveryResultCache.cs (1)
39private List<TestCase> _tests;
Execution\RunTestsWithTests.cs (5)
25private Dictionary<Tuple<Uri, string>, List<TestCase>>? _executorUriVsTestList; 43internal RunTestsWithTests(IRequestData requestData, IEnumerable<TestCase> testCases, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler, Dictionary<Tuple<Uri, string>, List<TestCase>>? executorUriVsTestList) 117private static Dictionary<Tuple<Uri, string>, List<TestCase>> GetExecutorVsTestCaseList(IEnumerable<TestCase> tests) 119var result = new Dictionary<Tuple<Uri, string>, List<TestCase>>(); 128if (result.TryGetValue(executorUriExtensionTuple, out List<TestCase>? testList))
Execution\TestRunCache.cs (3)
62private List<TestCase> _inProgressTests; 67private List<TestResult> _testResults; 272var lastChunk = _testResults;
PostProcessing\ArtifactProcessingManager.cs (1)
198List<AttachmentSet> attachments = new();
TestEngine.cs (9)
88List<TestRuntimeProviderInfo> testHostManagers = GetTestRuntimeProvidersForUniqueConfigurations(discoveryCriteria.RunSettings!, sourceToSourceDetailMap, warningLogger, out ITestRuntimeProvider? testHostManager); 123var sources = discoveryCriteria.Sources.ToList(); 178var testHostProviders = GetTestRuntimeProvidersForUniqueConfigurations(testRunCriteria.TestRunSettings, sourceToSourceDetailMap, warningLogger, out ITestRuntimeProvider? testHostManager); 233var sources = runtimeProviderInfo.SourceDetails.Select(r => r.Source!).ToList(); 278private List<TestRuntimeProviderInfo> GetTestRuntimeProvidersForUniqueConfigurations( 290var testRuntimeProviders = new List<TestRuntimeProviderInfo>(); 297var sources = runConfiguration.Select(c => c.Source!).ToList(); 439List<TestRuntimeProviderInfo> testHostProviders) 510private static void WarnAboutNotFoundRuntimeProvidersOrThrowWhenNoneAreFound(List<TestRuntimeProviderInfo> testRuntimeProviders, IWarningLogger warningLogger)
Microsoft.TestPlatform.Extensions.BlameDataCollector (20)
BlameCollector.cs (2)
65private readonly List<KeyValuePair<string, string>> _environmentVariables = new(); 518List<Guid> testSequenceCopy;
BlameLogger.cs (3)
124var faultyTestCaseNames = new List<string>(); 141var testCaseList = _blameReaderWriter.ReadTestSequence(filepath); 144var testcases = testCaseList.Where(t => !t.IsCompleted).Select(t => t.FullyQualifiedName!).ToList();
Interfaces\IBlameReaderWriter.cs (2)
18string WriteTestSequence(List<Guid> testSequence, Dictionary<Guid, BlameTestObject> testObjectDictionary, string filePath); 25List<BlameTestObject> ReadTestSequence(string filePath);
NetClientHangDumper.cs (2)
28var processTree = process.GetProcessTree().Where(p => p.Process?.ProcessName is not null and not "conhost" and not "WerFault" and not "createdump").ToList(); 58var tasks = new List<Task>();
ProcDumpDumper.cs (1)
263var allTargetProcessDumps = allDumps
ProcessCodeMethods.cs (5)
44public static List<ProcessTreeNode> GetProcessTree(this Process process) 46var childProcesses = Process.GetProcesses() 50var acc = new List<ProcessTreeNode>(); 167private static void ResolveChildren(Process parent, List<ProcessTreeNode> acc, int level, int limit) 176var children = acc.Where(p => p.ParentId == parent.Id && p.Process?.StartTime > parent.StartTime).ToList();
ProcessDumpUtility.cs (1)
65var foundDumps = new List<string>();
WindowsHangDumper.cs (1)
41var processTree = process.GetProcessTree().Where(p => p.Process?.ProcessName is not null and not "conhost" and not "WerFault" and not "createdump").ToList();
XmlReaderWriter.cs (3)
59public string WriteTestSequence(List<Guid> testSequence, Dictionary<Guid, BlameTestObject> testObjectDictionary, string filePath) 103public List<BlameTestObject> ReadTestSequence(string filePath) 112var testCaseList = new List<BlameTestObject>();
Microsoft.TestPlatform.Filter.Source (1)
FilterExpression.cs (1)
195List<string> tokens = TokenizeFilterExpressionString(filterString).ToList();
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\DefaultTestHostManager.cs (1)
340List<string> actualSources = new();
Hosting\DotnetTestHostManager.cs (1)
841List<string> extensionPaths = new();
Microsoft.TestPlatform.Utilities (12)
CodeCoverageDataAttachmentsHandler.cs (2)
52var coverageReportFilePaths = new List<string>(); 53var coverageOtherFilePaths = new List<string>();
CodeCoverageRunSettingsProcessor.cs (2)
87var codeCoveragePathComponents = new List<string>() { "CodeCoverage" }; 107var exclusions = new List<IList<string>>
CommandLineUtilities.cs (1)
17var argArray = new List<string>();
InferRunSettingsHelper.cs (7)
60private static readonly List<string> ExecutionNodesPaths = 357var legacySettingElements = new List<string>(); 378var deploymentAttributes = GetNodeAttributes(deploymentNode); 385var executiontAttributes = GetNodeAttributes(executiontNode); 400private static List<string>? GetNodeAttributes(XPathNavigator? node) 407var attributes = new List<string>(); 676List<string> compatibleSources = new();
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (9)
VsTestConsoleProcessManager.cs (1)
265var args = new List<string>
VsTestConsoleWrapper.cs (8)
306var sourceList = sources.ToList(); 377var testCaseList = testCases.ToList(); 455var sourceList = sources.ToList(); 534var testCaseList = testCases.ToList(); 727var sourceList = sources.ToList(); 798var testCaseList = testCases.ToList(); 876var sourceList = sources.ToList(); 955var testCaseList = testCases.ToList();
Microsoft.VisualBasic.Core (59)
Microsoft\VisualBasic\Collection.vb (1)
21Private m_Iterators As List(Of Object) 'List of iterators currently iterating this collection
Microsoft\VisualBasic\CompilerServices\ConversionResolution.vb (18)
530ByRef foundSourceTypeOperators As Boolean) As List(Of Method) 540Dim result As List(Of Method) = 548Dim narrowingOperators As List(Of Method) = 585Private Shared Function MostEncompassing(ByVal types As List(Of System.Type)) As System.Type 611Private Shared Function MostEncompassed(ByVal types As List(Of System.Type)) As System.Type 640ByVal searchList As List(Of Method), 641ByVal resultList As List(Of Method), 662ByVal operatorList As List(Of Method), 700ByVal operatorSet As List(Of Method), 702ByRef resolutionIsAmbiguous As Boolean) As List(Of Method) 756Dim operatorChoices As List(Of Method) = New List(Of Method)(operatorSet.Count) 757Dim candidates As List(Of Method) = New List(Of Method)(operatorSet.Count) 759Dim sourceBases As List(Of Type) = New List(Of Type)(operatorSet.Count) 760Dim targetDeriveds As List(Of Type) = New List(Of Type)(operatorSet.Count) 761Dim sourceDeriveds As List(Of Type) = Nothing 762Dim targetBases As List(Of Type) = Nothing 949Dim operatorSet As List(Of Method) = 963Dim operatorChoices As List(Of Method) =
Microsoft\VisualBasic\CompilerServices\LikeOperator.vb (6)
559Optional ByVal RangeList As List(Of Range) = Nothing, 862ByRef RangeList As List(Of Range) 968Private m_RangeList As List(Of Range) 969Property RangeList() As List(Of Range) 974Set(ByVal Value As List(Of Range)) 1607Dim RangeList As List(Of Range) = PG.RangeList
Microsoft\VisualBasic\CompilerServices\Operators.Resolution.vb (4)
24ByRef foundType2Operators As Boolean) As List(Of Method) 33Dim result As List(Of Method) 71Dim secondResult As List(Of Method) 159Dim candidates As List(Of Method) =
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (26)
488ByVal candidates As List(Of Method), 723ByVal baseReference As Container) As List(Of Method) 735Dim candidates As List(Of Method) = New List(Of Method)(members.Length) 930ByVal errors As List(Of String), 1237ByVal errors As List(Of String), 1307ByVal errors As List(Of String)) As Boolean 1414ByVal errors As List(Of String)) As Boolean 1669ByVal errors As List(Of String)) As Boolean 1851ByVal errors As List(Of String)) As Boolean 2056ByVal candidates As List(Of Method), 2307ByVal candidates As List(Of Method), 2368ByVal candidates As List(Of Method), 2456ByVal errors As List(Of String), 2472ByVal errors As List(Of String), 2486ByVal errors As List(Of String), 2497Private Shared Sub ReportError(ByVal errors As List(Of String), ByVal resourceID As String) 2508ByVal errors As List(Of String)) As Boolean 2514ByVal candidates As List(Of Method), 2587ByVal errors As List(Of String)) As Boolean 2605ByVal candidates As List(Of Method), 2629ByVal errors As List(Of String)) As Boolean 2647ByVal candidates As List(Of Method), 2670ByVal errors As List(Of String)) As Boolean 2682ByVal candidates As List(Of Method), 2700ByVal candidates As List(Of Method), 2821Dim candidates As List(Of Method) =
Microsoft\VisualBasic\CompilerServices\Symbols.vb (4)
937Friend Function LookupWinRTCollectionInterfaceMembers(ByVal memberName As String) As List(Of MemberInfo) 976Dim collectionMethods As List(Of MemberInfo) = LookupWinRTCollectionInterfaceMembers(memberName) 998Private Function LookupWinRTCollectionDefaultMembers(ByRef defaultMemberName As String) As List(Of MemberInfo) 1066Dim collectionMethods As List(Of MemberInfo) = LookupWinRTCollectionDefaultMembers(memberName)
Microsoft.VisualStudio.TestPlatform.Client (1)
TestPlatform.cs (1)
211List<string> loggersToUpdate = new();
Microsoft.VisualStudio.TestPlatform.Common (44)
DataCollection\DataCollectionAttachmentManager.cs (2)
136public List<AttachmentSet> GetAttachments(DataCollectionContext dataCollectionContext) 150List<AttachmentSet> attachments = new();
DataCollection\DataCollectionEnvironmentVariable.cs (1)
26private readonly List<string> _dataCollectorsThatRequested;
DataCollection\DataCollectionManager.cs (8)
194var enabledDataCollectorsSettings = GetDataCollectorsEnabledForRun(dataCollectionRunSettings); 245var result = new List<AttachmentSet>(); 268List<InvokedDataCollector> invokedDataCollector = new(); 362List<AttachmentSet>? result = null; 590private List<DataCollectorSettings> GetDataCollectorsEnabledForRun(DataCollectionRunSettings dataCollectionSettings) 592var runEnabledDataCollectors = new List<DataCollectorSettings>(); 653var failedCollectors = new List<DataCollectorInformation>(); 783private static void LogAttachments(List<AttachmentSet> attachmentSets)
DataCollection\Interfaces\IDataCollectionAttachmentManager.cs (2)
39/// The <see cref="List{T}"/>. 41List<AttachmentSet> GetAttachments(DataCollectionContext dataCollectionContext);
ExtensionFramework\TestExecutorExtensionManager.cs (1)
64var mergedTestExtensions = new List<LazyExtension<TExecutor1, TValue>>();
ExtensionFramework\TestPluginCache.cs (13)
33private List<string> _filterableExtensionPaths; 34private List<string> _unfilterableExtensionPaths; 48private readonly List<string> _defaultExtensionPaths = new(); 86public List<string> GetExtensionPaths(string endsWithPattern, bool skipDefaultExtensions = false) 148var allExtensionPaths = GetExtensionPaths(endsWithPattern); 218var extensions = additionalExtensionsPath?.ToList(); 349var resolutionPaths = new List<string>(); 369var resolutionPaths = new List<string>(); 372var extensionDirectories = GetExtensionPaths(string.Empty).Select(e => Path.GetDirectoryName(Path.GetFullPath(e))!).Distinct().ToList(); 407protected virtual IEnumerable<string> GetFilteredExtensions(List<string> extensions, string endsWithPattern) 414private static bool TryMergeExtensionPaths(List<string> extensionsList, List<string> additionalExtensions, out List<string> mergedExtensionsList)
ExtensionFramework\TestPluginDiscoverer.cs (1)
133List<Type> types = new();
ExtensionFramework\TestPluginManager.cs (3)
166var values = new List<TestPluginInformation>(); 206var unfilteredExtensions = new List<LazyExtension<TExtension, Dictionary<string, object>>>(); 207var filteredExtensions = new List<LazyExtension<TExtension, IMetadata>>();
ExtensionFramework\Utilities\TestDiscovererPluginInformation.cs (3)
50public List<string>? FileExtensions 89private static List<string> GetFileExtensions(Type testDiscovererType) 91var fileExtensions = new List<string>();
Hosting\ITestRuntimeProviderManager.cs (1)
13ITestRuntimeProvider? GetTestHostManagerByRunConfiguration(string? runConfiguration, List<string> sources);
Hosting\TestRunTimeProviderManager.cs (2)
52var sources = new List<string> { source }; 65public virtual ITestRuntimeProvider? GetTestHostManagerByRunConfiguration(string? runConfiguration, List<string>? sources)
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FilterExpression.cs (1)
195List<string> tokens = TokenizeFilterExpressionString(filterString).ToList();
Utilities\MetadataReaderHelper.cs (1)
66List<Tuple<int, Type>>? extensions = null;
Utilities\SimpleJSON.cs (5)
82private List<JSONNode>.Enumerator _array; 86public Enumerator(List<JSONNode>.Enumerator aArrayEnum) 121public ValueEnumerator(List<JSONNode>.Enumerator aArrayEnum) : this(new Enumerator(aArrayEnum)) { } 131public KeyEnumerator(List<JSONNode>.Enumerator aArrayEnum) : this(new Enumerator(aArrayEnum)) { } 718private readonly List<JSONNode> _list = new();
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (7)
HtmlLogger.cs (1)
422var time = new List<string>();
ObjectModel\HtmlTestResult.cs (1)
62[DataMember] public List<TestResult>? InnerTestResults { get; set; }
ObjectModel\TestResultCollection.cs (2)
49[DataMember] public List<TestResult>? ResultList { get; set; } 54[DataMember] public List<TestResult>? FailedResultList { get; set; }
ObjectModel\TestRunDetails.cs (3)
32[DataMember] public List<string>? RunLevelMessageInformational; 37[DataMember] public List<string>? RunLevelMessageErrorAndWarning; 42[DataMember] public List<TestResultCollection>? ResultCollectionList = new();
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (27)
Interfaces\ITestResultAggregation.cs (1)
10List<ITestResult> InnerResults { get; }
ObjectModel\CollectorDataEntry.cs (1)
26private readonly List<IDataAttachment> _attachments = new();
ObjectModel\TestElementAggregation.cs (1)
61List<TestLink> testLinks;
ObjectModel\TestEntry.cs (2)
19private List<TestEntry>? _testEntries; 44public List<TestEntry> TestEntries
ObjectModel\TestResult.cs (1)
204private readonly List<CollectorDataEntry> _collectorDataEntries = new();
ObjectModel\TestResultAggregation.cs (2)
19protected List<ITestResult>? _innerResults; 38public List<ITestResult> InnerResults
ObjectModel\TestRunSummary.cs (4)
53private readonly List<RunInfo> _runLevelErrorsAndWarnings; 55private readonly List<CollectorDataEntry> _collectorDataEntries; 95List<RunInfo> runMessages, 98List<CollectorDataEntry> dataCollectors)
TrxLogger.cs (4)
209internal List<RunInfo> GetRunLevelErrorsAndWarnings() 430List<TestListCategory> categories = 445List<string> errorMessages = []; 446List<CollectorDataEntry> collectorEntries = _converter.ToCollectionEntries(e.AttachmentSets, loggerTestRun, _testResultsDirPath);
Utility\Converter.cs (10)
66var testCategories = GetCustomPropertyValueFromTestCase(rockSteadyTestCase, "MSTestDiscoverer.TestCategory"); 170public List<CollectorDataEntry> ToCollectionEntries(IEnumerable<AttachmentSet> attachmentSets, TestRun testRun, string trxFileDirectory) 172List<CollectorDataEntry> collectorEntries = new(); 194List<string> errorMessages) 196List<string> resultFiles = new(); 274public static List<string> GetCustomPropertyValueFromTestCase(TestCase testCase, string categoryId) 383List<string> resultFiles = new(); 386List<CollectorDataEntry> collectorEntries = new(); 456List<IDataAttachment> uriDataAttachments = new(); 512List<string> resultFiles = new();
XML\XmlPersistence.cs (1)
526List<FieldPersistenceInfo> toReturn = new();
Microsoft.VisualStudio.TestPlatform.ObjectModel (33)
Client\Payloads\TestRunRequestPayload.cs (2)
22public List<string>? Sources { get; set; } 32public List<TestCase>? TestCases { get; set; }
DataCollector\DataCollectionRunSettings.cs (4)
157var items = ReadListElementFromXml(reader, dataCollectorName); 188/// The <see cref="List{T}"/>. 192internal static List<DataCollectorSettings> ReadListElementFromXml(XmlReader reader, string dataCollectorsName) 194List<DataCollectorSettings> settings = new();
Logger\LoggerRunSettings.cs (3)
117var items = ReadListElementFromXml(reader, loggerSettingName); 150private static List<LoggerSettings> ReadListElementFromXml(XmlReader reader, string loggerSettingName) 157var settings = new List<LoggerSettings>();
Navigation\FullSymbolReader.cs (2)
336List<string> children = new(); 412List<string> children = new();
Nuget.Frameworks\CompatibilityProvider.cs (2)
161var targetSet = new List<NuGetFramework>() { target }; 164var candidateSet = new List<NuGetFramework>() { candidate };
Nuget.Frameworks\DefaultPortableFrameworkMappings.cs (2)
108private static readonly Lazy<List<KeyValuePair<int, NuGetFramework[]>>> ProfileOptionalFrameworksLazy = new(() => 118var profileOptionalFrameworks = new List<KeyValuePair<int, NuGetFramework[]>>(ProfilesWithOptionalFrameworks.Length);
Nuget.Frameworks\FrameworkNameProvider.cs (4)
83private readonly List<NuGetFramework> _netStandardVersions; 84private readonly List<NuGetFramework> _compatibleCandidates; 491var result = new List<NuGetFramework>(); 569var baseFrameworks = new List<NuGetFramework>(result);
Nuget.Frameworks\FrameworkReducer.cs (1)
306var results = new List<NuGetFramework>(input.Length);
Nuget.Frameworks\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 213else if (source is List<T> list)
Nuget.Frameworks\NuGetFramework.cs (1)
142var parts = new List<string>(3) { Framework };
TestObject.cs (1)
37private List<KeyValuePair<TestProperty, object?>> StoreKeyValuePairs
TestServiceLocator.cs (1)
17public static List<Resolve> Resolves { get; } = new();
Utilities\XmlRunSettingsUtilities.cs (1)
88var friendlyNameList = new List<string>();
Microsoft.Web.XmlTransform (10)
NamedTypeFactory.cs (1)
16private List<Registration> registrations = new List<Registration>();
XmlArgumentUtility.cs (2)
19List<string> arguments = new List<string>(); 33List<string> combinedArguments = new List<string>();
XmlAttributePreservationDict.cs (1)
17private List<string> orderedAttributes = new List<string>();
XmlElementContext.cs (1)
222List<XmlAttribute> attributesToRemove = new List<XmlAttribute>();
XmlTransforms.cs (5)
208public List<Dictionary<string, string>> DictionaryList { get; set; } 259List<Dictionary<string, string> > parameters = null; 380List<RegularExpressions.Match> matchsExpr = new List<RegularExpressions.Match>(); 500List<Dictionary<string, string>> parameters) 517List<RegularExpressions.Match> matchs = new List<RegularExpressions.Match>();
Microsoft.Win32.Msi (1)
ProgressEventArgs.cs (1)
33List<int> fields = new();
Microsoft.Win32.SystemEvents (6)
Microsoft\Win32\SystemEvents.cs (6)
62private static Dictionary<object, List<SystemEventInvokeInfo>>? s_handlers; 330s_handlers = new Dictionary<object, List<SystemEventInvokeInfo>>(); 334if (!s_handlers.TryGetValue(key, out List<SystemEventInvokeInfo>? invokeItems)) 1002if (s_handlers != null && s_handlers.TryGetValue(key, out List<SystemEventInvokeInfo>? invokeItems)) 1032List<SystemEventInvokeInfo>? invokeItems = null; 1064if (s_handlers != null && s_handlers.TryGetValue(key, out List<SystemEventInvokeInfo>? invokeItems))
MilvusPlayground.ApiService (4)
Program.cs (4)
46List<long> bookIds = new(); 47List<long> wordCounts = new(); 48List<ReadOnlyMemory<float>> bookIntros = new(); 49List<string> bookNames = new();
Mono.Cecil (5)
Mono.Cecil.Metadata\Buffers.cs (3)
360 var sorted = SortStrings (strings); 388 static List<KeyValuePair<string, uint>> SortStrings (Dictionary<string, uint> strings) 390 var sorted = new List<KeyValuePair<string, uint>> (strings);
Mono.Cecil\MethodReferenceComparer.cs (2)
8 static List<MethodReference> xComparisonStack = null; 11 static List<MethodReference> yComparisonStack = null;
Mono.Cecil.Mdb (17)
Mono.CompilerServices.SymbolWriter\MonoSymbolFile.cs (4)
118 List<MethodEntry> methods = new List<MethodEntry> (); 119 List<SourceFileEntry> sources = new List<SourceFileEntry> (); 120 List<CompileUnitEntry> comp_units = new List<CompileUnitEntry> (); 327 List<MethodEntry> method_list;
Mono.CompilerServices.SymbolWriter\MonoSymbolTable.cs (5)
451 List<CapturedVariable> captured_vars = new List<CapturedVariable> (); 452 List<CapturedScope> captured_scopes = new List<CapturedScope> (); 527 List<SourceFileEntry> include_files; 528 List<NamespaceEntry> namespaces; 945 var lines = new List<LineNumberEntry> ();
Mono.CompilerServices.SymbolWriter\MonoSymbolWriter.cs (3)
43 List<SourceMethodBuilder> methods; 44 List<SourceFileEntry> sources; 45 List<CompileUnitEntry> comp_units;
Mono.CompilerServices.SymbolWriter\SourceMethodBuilder.cs (5)
38 List<LocalVariableEntry> _locals; 39 List<CodeBlockEntry> _blocks; 40 List<ScopeVariable> _scope_vars; 42 readonly List<LineNumberEntry> method_lines; 196 var sorted = new List<CodeBlockEntry> (blocks.Length);
Mono.Cecil.Pdb (4)
Microsoft.Cci.Pdb\PdbFile.cs (3)
275List<PdbFunction> funcList, 321List<DbiModuleInfo> modList = new List<DbiModuleInfo>(); 403List<PdbFunction> funcList = new List<PdbFunction>();
Microsoft.Cci.Pdb\PdbFunction.cs (1)
38internal List<ILocalScope>/*?*/ iteratorScopes;
Mono.Cecil.Rocks (1)
Mono.Cecil.Rocks\DocCommentId.cs (1)
273 var typeGenericArguments = options.Arguments.Skip (options.ArgumentIndex).Take (typeParameterCount).ToList ();
MSBuild (52)
CommandLine\CommandLineParser.cs (9)
45private List<string> includedResponseFiles; 65List<string> args = [BuildEnvironmentHelper.Instance.CurrentMSBuildExePath, .. commandLineArgs]; 66List<DeferredBuildMessage> deferredBuildMessages = []; 97List<DeferredBuildMessage> deferredBuildMessages, 135List<DeferredBuildMessage> deferredBuildMessages, 147List<string> envVarArgs = QuotingUtilities.SplitUnquoted(Traits.MSBuildLoggingArgs); 149List<string> validArgs = new(envVarArgs.Count); 150List<string> invalidArgs = null; 369List<string> argsFromResponseFile;
CommandLine\CommandLineSwitches.cs (3)
447internal static List<(string path, string contents)> SwitchesFromResponseFiles = new(); 591var commandLineA = new List<string>(); 592var commandLineB = new List<string>();
OutOfProcTaskHostNode.cs (1)
543BuildEngineResult result = BuildProjectFilesInParallel(projectFileNames, targetNames, globalProperties, new List<string>[projectFileNames.Length], toolsVersion, includeTargetOutputs);
src\msbuild\src\Shared\TaskHostBuildRequest.cs (6)
21private List<string>?[]? _removeGlobalProperties; 33List<string>?[]? removeGlobalProperties, 63public List<string>?[]? RemoveGlobalProperties => _removeGlobalProperties; 101internal static List<string>?[]? ConvertRemoveGlobalProperties(IList<string>[]? removeGlobalProperties) 197_removeGlobalProperties = new List<string>?[length]; 202List<string>? list = _removeGlobalProperties![i];
src\msbuild\src\Shared\TaskHostBuildResponse.cs (5)
23private List<Dictionary<string, TaskParameter>>? _targetOutputsPerProject; 29public TaskHostBuildResponse(int requestId, bool success, List<Dictionary<string, TaskParameter>>? targetOutputsPerProject) 48public List<Dictionary<string, TaskParameter>>? TargetOutputsPerProject => _targetOutputsPerProject; 56List<IDictionary<string, ITaskItem[]>>? result = null; 87List<Dictionary<string, TaskParameter>>? outputs = null;
src\msbuild\src\Shared\TaskParameter.cs (1)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
XMake.cs (27)
905List<DistributedLoggerRecord> distributedLoggerRecords = null; 1550private static readonly List<BuildManager.DeferredBuildMessage> s_globalMessagesToLogInBuildLoggers = new(); 1620List<ForwardingLoggerRecord> remoteLoggerRecords = new List<ForwardingLoggerRecord>(); 1842List<BuildManager.DeferredBuildMessage> messagesToLogInBuildLoggers = new(); 2048private static List<BuildManager.DeferredBuildMessage> GetMessagesToLogInBuildLoggers(string commandLineString) 2050List<BuildManager.DeferredBuildMessage> messages = new(s_globalMessagesToLogInBuildLoggers) 2417ref List<DistributedLoggerRecord> distributedLoggerRecords, 3318internal static ProfilerLogger ProcessProfileEvaluationSwitch(string[] parameters, List<ILogger> loggers, out bool enableProfiler) 3555List<string> actualProjectFiles = new List<string>(); 3569List<string> actualSolutionFiles = new List<string>(); 3570List<string> solutionFilterFiles = new List<string>(); 3803out List<DistributedLoggerRecord> distributedLoggerRecords, 3840var loggers = new List<ILogger>(); 3918private static void ProcessFileLoggers(string[][] groupedFileLoggerParameters, List<DistributedLoggerRecord> distributedLoggerRecords, int cpuCount, List<ILogger> loggers) 3973private static void ProcessBinaryLogger(string[] binaryLoggerParameters, List<ILogger> loggers, ref LoggerVerbosity verbosity) 4022List<DistributedLoggerRecord> distributedLoggerRecords, 4025List<ILogger> loggers) 4069List<DistributedLoggerRecord> distributedLoggerRecords, 4072List<ILogger> loggers) 4151List<DistributedLoggerRecord> distributedLoggerRecords) 4299private static void ProcessLoggerSwitch(string[] parameters, List<ILogger> loggers, LoggerVerbosity verbosity) 4318private static List<DistributedLoggerRecord> ProcessDistributedLoggerSwitch(string[] parameters, LoggerVerbosity verbosity) 4320List<DistributedLoggerRecord> distributedLoggers = new List<DistributedLoggerRecord>(); 4325var loggerSpec = QuotingUtilities.SplitUnquoted(parameter, 2, true /* keep empty splits */, false /* keep quotes */, out _, '*'); 4370var loggerSpec = QuotingUtilities.SplitUnquoted(parameter, 2, true /* keep empty splits */, false /* keep quotes */, out _, ';'); 4385var loggerTypeSpec = QuotingUtilities.SplitUnquoted(loggerSpec[0], int.MaxValue, true /* keep empty splits */, false /* keep quotes */, out _, ',');
MSBuild.Coordinator (2)
CoordinatorServer.cs (1)
530List<ConnectedClient> clientsToCheck;
NodeBudgetManager.cs (1)
16private readonly List<BuildGrant> _activeGrants = [];
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
102[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.List<>))]
MyFrontend (2)
playground\TestShop\BasketService\Models\BasketItem.cs (1)
15var results = new List<ValidationResult>();
playground\TestShop\BasketService\Models\CustomerBasket.cs (1)
7public List<BasketItem> Items { get; set; } = new();
netstandard (1)
netstandard.cs (1)
128[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.List<>))]
NuGet.Build.Tasks (21)
BuildTasksUtility.cs (3)
118public static async Task<List<RestoreSummary>> RestoreAsync( 161var restoreSummaries = new List<RestoreSummary>(); 200var providers = new List<IPreLoadedRestoreRequestProvider>();
CheckForDuplicateNuGetItemsTask.cs (1)
50var duplicateItems = itemGroups.Where(g => g.Count() > 1).ToList();
GetCentralPackageVersionsTask.cs (1)
42var entries = new List<ITaskItem>();
GetReferenceNearestTargetFrameworkTask.cs (2)
76var fallbackNuGetFrameworks = new List<NuGetFramework>(); 146var targetFrameworkInformations = new List<TargetFrameworkInformation>();
GetRestoreDotnetCliToolsTask.cs (1)
64var entries = new List<ITaskItem>();
GetRestoreFrameworkReferencesTask.cs (1)
39var entries = new List<ITaskItem>();
GetRestoreNuGetAuditSuppressionsTask.cs (1)
41var entries = new List<ITaskItem>(NuGetAuditSuppressions.Length);
GetRestorePackageDownloadsTask.cs (1)
39var entries = new List<ITaskItem>();
GetRestorePackageReferencesTask.cs (1)
39var entries = new List<ITaskItem>();
GetRestoreProjectReferencesTask.cs (1)
56var entries = new List<ITaskItem>();
GetRestorePrunedPackageReferencesTask.cs (1)
41var entries = new List<ITaskItem>(PrunePackageReferences.Length);
GetRestoreSolutionProjectsTask.cs (1)
52var entries = new List<ITaskItem>();
RestoreTask.cs (2)
239var restoreSummaries = await BuildTasksUtility.RestoreAsync( 313List<ITaskItem> restoredProjectOutputPaths = new List<ITaskItem>(projects.Count);
src\nuget-client\build\Shared\SharedExtensions.cs (3)
19public static List<T> AsList<T>(this IEnumerable<T> enumerable) 21var list = enumerable as List<T>;
TaskLoggingQueue.cs (1)
25private readonly List<string> _filesToEmbedInBinlog = new List<string>();
NuGet.Build.Tasks.Console (38)
MSBuildStaticGraphRestore.cs (28)
157List<RestoreSummary> restoreSummaries = await BuildTasksUtility.RestoreAsync( 264/// <returns>A <see cref="List{FrameworkDependency}" /> containing the framework references for the specified project.</returns> 268List<IMSBuildItem> frameworkReferenceItems = GetDistinctItemsOrEmpty(project, "FrameworkReference").ToList(); 351/// <returns>A <see cref="List{LibraryDependency}" /> containing the package references for the specified project.</returns> 355List<IMSBuildItem> packageReferenceItems = GetDistinctItemsOrEmpty(project, "PackageReference").ToList(); 465/// <returns>A <see cref="List{ProjectRestoreReference}" /> containing the project references for the specified project.</returns> 466internal static List<ProjectRestoreReference> GetProjectReferences(IMSBuildProject project) 469var projectReferenceItems = project.GetItems("ProjectReference") 474var projectReferences = new List<ProjectRestoreReference>(projectReferenceItems.Count); 497/// <returns>A <see cref="List{ProjectRestoreMetadataFrameworkInfo}" /> containing the restore metadata framework information for the specified project.</returns> 498internal static List<ProjectRestoreMetadataFrameworkInfo> GetProjectRestoreMetadataFrameworkInfos(List<TargetFrameworkInformation> targetFrameworkInfos, IReadOnlyDictionary<string, IMSBuildProject> projects) 500var projectRestoreMetadataFrameworkInfos = new List<ProjectRestoreMetadataFrameworkInfo>(projects.Count); 653/// <returns>A <see cref="List{PackageSource}" /> object containing the packages sources for the specified project.</returns> 654internal static List<PackageSource> GetSources(IMSBuildProject project, IReadOnlyCollection<IMSBuildProject> innerNodes, ISettings settings) 713private List<ProjectGraphEntryPoint> GetProjectGraphEntryPoints(string entryProjectPath, IDictionary<string, string> globalProperties) 750/// <returns>A <see cref="List{TargetFrameworkInformation}" /> containing the target framework information for the specified project.</returns> 751internal static List<TargetFrameworkInformation> GetTargetFrameworkInfos(IReadOnlyDictionary<string, IMSBuildProject> projectInnerNodes, bool isCpvmEnabled, bool isPruningEnabledGlobally) 753var targetFrameworkInfos = new List<TargetFrameworkInformation>(projectInnerNodes.Count); 768var packageTargetFallback = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty("PackageTargetFallback")).Select(NuGetFramework.Parse).ToList(); 770var assetTargetFallbackEnum = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty(nameof(TargetFrameworkInformation.AssetTargetFallback))).Select(NuGetFramework.Parse).ToList(); 967var entryProjects = GetProjectGraphEntryPoints(entryProjectPath, globalProperties); 1078(ProjectRestoreMetadata restoreMetadata, List<TargetFrameworkInformation> targetFrameworkInfos) = GetProjectRestoreMetadataAndTargetFrameworkInformation(project, projectsByTargetFramework, settings); 1117/// <returns>A <see cref="Tuple" /> containing the <see cref="ProjectRestoreMetadata" /> and <see cref="List{TargetFrameworkInformation}" /> for the specified project.</returns> 1118private (ProjectRestoreMetadata RestoreMetadata, List<TargetFrameworkInformation> TargetFrameworkInfos) GetProjectRestoreMetadataAndTargetFrameworkInformation(IMSBuildProject project, IReadOnlyDictionary<string, IMSBuildProject> projectsByTargetFramework, ISettings settings) 1131List<TargetFrameworkInformation> targetFrameworkInfos = GetTargetFrameworkInfos(projectsByTargetFramework, isCentralPackageManagementEnabled, isPruningEnabledGlobally); 1133List<IMSBuildProject> innerNodes = projectsByTargetFramework.Values.ToList(); 1267var loggers = new List<Microsoft.Build.Framework.ILogger>
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
TargetFrameworkAdapter.cs (1)
24var list = new List<IItem>();
NuGet.Build.Tasks.Pack (18)
GetPackOutputItemsTask.cs (1)
60var outputs = new List<ITaskItem>();
PackTaskLogic.cs (17)
70(Dictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) = BuildAliasFrameworkMappings(assetsFile); 227(Dictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) = BuildAliasFrameworkMappings(assetsFile); 368private static (Dictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> duplicateAliases) 372var frameworkToAliases = new Dictionary<string, List<string>>(); 380if (!frameworkToAliases.TryGetValue(tfmShortName, out List<string> list)) 436Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) 458List<string> duplicates = nuGetFrameworkToDuplicateAliases[frameworkShortFolderName]; 502private static IEnumerable<OutputLibFile> InitLibFiles(IMSBuildItem[] libFiles, IDictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) 504var assemblies = new List<OutputLibFile>(); 594var listOfPackageTypes = new List<PackageType>(); 677var existingContentMetadata = new List<ContentMetadata>(); 692var targetPaths = contentTargetFolders 715var newTargetPaths = new List<string>(); 767var newTargetPaths = new List<string>(); 798var totalSetOfTargetPaths = new List<string>(); 872Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) 878var unsuppressedAliases = duplicates.Value
NuGet.CommandLine.XPlat (228)
_generated\24\PackageSearchJsonContext.ListPackageSearchProblem.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>? _ListPackageSearchProblem; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> ListPackageSearchProblem 22get => _ListPackageSearchProblem ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> Create_ListPackageSearchProblem(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>, global::NuGet.CommandLine.XPlat.PackageSearchProblem>(options, info); 47private void ListPackageSearchProblemSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>? value)
_generated\25\PackageSearchJsonContext.ListPackageSearchResult.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>>? _ListPackageSearchResult; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>> ListPackageSearchResult 22get => _ListPackageSearchResult ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>> Create_ListPackageSearchResult(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>, global::NuGet.CommandLine.XPlat.PackageSearchResult>(options, info); 47private void ListPackageSearchResultSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>? value)
_generated\26\PackageSearchJsonContext.ListIPackageSearchMetadata.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>>? _ListIPackageSearchMetadata; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>> ListIPackageSearchMetadata 22get => _ListIPackageSearchMetadata ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>> Create_ListIPackageSearchMetadata(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>, global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>(options, info); 47private void ListIPackageSearchMetadataSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>? value)
_generated\3\PackageSearchJsonContext.PackageSearchResult.g.cs (6)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> 88AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchResult).GetProperty("Problems", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>(options, info1); 93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>> 108AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchResult).GetProperty("Packages", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>>(options, info2);
_generated\36\PackageSearchJsonContext.GetJsonTypeInfo.g.cs (3)
118if (type == typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>)) 122if (type == typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>)) 126if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>))
_generated\4\PackageSearchJsonContext.SearchMainOutput.g.cs (6)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>> 88AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.SearchMainOutput).GetProperty("Problems", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>>(options, info1); 95var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>> 110AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.SearchMainOutput).GetProperty("SearchResult", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>), global::System.Array.Empty<global::System.Type>(), null), 113properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>>(options, info2);
Commands\Package\Download\PackageDownloadCommand.cs (1)
61var sources = new Option<List<string>>("--source", "-s")
Commands\Package\Download\PackageDownloadRunner.cs (3)
254var mappedRepos = new List<SourceRepository>(mappedNames.Count); 365var insecureSources = HttpSourcesUtility.GetDisallowedInsecureHttpSources([.. packageSources]); 379List<SourceRepository> sourceRepositories = [];
Commands\Package\PackageWithNuGetVersion.cs (1)
25var packages = new List<PackageWithNuGetVersion>(result.Tokens.Count);
Commands\Package\PackageWithVersionRange.cs (1)
26List<PackageWithVersionRange> packages = new List<PackageWithVersionRange>(result.Tokens.Count);
Commands\Package\Update\IPackageUpdateIO.cs (1)
63List<string> packageTfmAliases,
Commands\Package\Update\PackageUpdateCommandRunner.cs (28)
135private static async Task<(List<PackageUpdateResult> vulnerablePackages, HashSet<string> packagesScanned)> SelectVulnerablePackagesToUpdateAsync( 179var packagesToUpdateResult = new List<PackageUpdateResult>(); 192List<(PackageIdentity package, List<string> targetFrameworkAliases)> packagesToUpdate = assetsFile 315private static async Task<(int? exitCode, Dictionary<string, List<PackageUpdateResult>> projectPackageUpdates, int totalPackagesScanned)> 324var projectPackageUpdates = new Dictionary<string, List<PackageUpdateResult>>(StringComparer.OrdinalIgnoreCase); 346(List<PackageUpdateResult> packagesToUpdate, HashSet<string> scannedPackages) = 366(List<PackageUpdateResult>? packagesToUpdate, HashSet<string> scannedPackages) = 388(List<PackageUpdateResult>? packagesToUpdate, HashSet<string> scannedPackages) = 422Dictionary<string, List<PackageUpdateResult>> projectPackageUpdates, 423Func<string, CancellationToken, Task<(List<PackageUpdateResult>? packagesToUpdate, HashSet<string> scannedPackages, int? errorExitCode)>> processProject, 438(List<PackageUpdateResult>? packagesToUpdate, HashSet<string> projectScannedPackages, int? errorExitCode) = 461internal static async Task<(List<PackageUpdateResult>?, HashSet<string> scannedPackages)> SelectSpecificPackagesToUpdateAsync( 474var packagesToUpdate = new List<PackageUpdateResult>(); 558private static (VersionRange? version, List<string> targetFrameworks) 562List<string> frameworks = new(); 620internal static async Task<(List<PackageUpdateResult>? packagesToUpdate, HashSet<string> scannedPackages)> SelectAllPackagesWithUpdatesAsync( 626var allProjectPackages = GetAllPackagesReferencedByProject(project, logger); 633var packagesToUpdate = new List<PackageUpdateResult>(); 682private static List<(PackageWithVersionRange identity, List<string> tfms)>? GetAllPackagesReferencedByProject(PackageSpec project, ILoggerWithColor logger) 684var allPackages = new Dictionary<string, (VersionRange version, List<string> tfms, bool hasError)>(StringComparer.OrdinalIgnoreCase); 714List<string> tfms = [tfm.TargetAlias]; 726List<(PackageWithVersionRange package, List<string> tfms)> result = new(allPackages.Count); 736private static DependencyGraphSpec GetUpdatedDependencyGraphSpec(DependencyGraphSpec currentDgSpec, Dictionary<string, List<PackageUpdateResult>> projectPackageUpdates) 743if (projectPackageUpdates.TryGetValue(project.FilePath, out var packagesToUpdate)) 791public required List<string> TargetFrameworkAliases { get; init; }
Commands\Package\Update\PackageUpdateIO.cs (10)
148var providers = new List<IPreLoadedRestoreRequestProvider> 183/// <inheritdoc cref="IPackageUpdateIO.UpdatePackageReference(PackageSpec, IPackageUpdateIO.RestoreResult, List{string}, PackageToUpdate, ILogger)"/> 184public void UpdatePackageReference(PackageSpec updatedPackageSpec, IPackageUpdateIO.RestoreResult restorePreviewResult, List<string> packageTfmAliases, PackageToUpdate packageToUpdate, ILogger logger) 231var sources = GetSourcesForPackage(packageId, allowedSources); 266var tasks = new List<Task<GetVulnerabilityInfoResult?>>(auditSources.Count); 282List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> allVulnerabilities = new(); 310var sources = GetSourcesForPackage(packageId, allowedSources); 341private List<SourceRepository> GetSourcesForPackage(string packageId, IReadOnlyList<string>? allowedSources) 353List<PackageSource> sourceMappedSources = new List<PackageSource>(allowedSources.Count); 362var sources = new List<SourceRepository>(packageSources.Count);
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (5)
103var userSpecifiedFrameworks = new List<string>(); 125List<string> sources = new List<string>(); 282internal static bool TryFindResolvedVersion(List<string> userSpecifiedFrameworks, string packageId, RestoreResult restoreResult, ILogger logger, out NuGetVersion resolvedVersion) 418var providers = new List<IPreLoadedRestoreRequestProvider> 457List<string> userSpecifiedFrameworks)
Commands\PackageReferenceCommands\ListPackage\ListPackageArgs.cs (4)
21public List<PackageSource> PackageSources { get; } 22public List<string> Frameworks { get; } 52List<PackageSource> packageSources, 53List<string> frameworks,
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (4)
160var packageSources = GetPackageSources(settings, sourceValues, hasConfig); 234var currentlySupportedReportVersions = new List<string> { "1" }; 272private static List<PackageSource> GetPackageSources(ISettings settings, IEnumerable<string> sources, bool hasConfig) 277var packageSources = new List<PackageSource>();
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (27)
129List<FrameworkPackages> frameworks; 147List<PackageSource> httpSources = HttpSourcesUtility.GetDisallowedInsecureHttpSources(listPackageArgs.PackageSources); 175List<ListPackageReportFrameworkPackage> projectFrameworkPackages = ProjectPackagesPrintUtility.GetPackagesMetadata(frameworks, listPackageArgs, ref hasAutoReference); 191List<FrameworkPackages> frameworks) 193List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> vulnerabilities = await GetVulnerabilityData( 218List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> vulnerabilities, 219List<ListReportPackage> reportPackages) 223var vuln = GetPackageVulnerabilities( 272private static async Task<List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>> GetVulnerabilityData( 279var vulnerabilityInfo = new List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>(); 300List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> vulnerabilityInfo) 406var filteredReferences = new List<InstalledPackageReference>(); 424internal async Task<Dictionary<string, List<IPackageSearchMetadata>>> GetPackageMetadataAsync( 425List<FrameworkPackages> targetFrameworks, 428List<string> allPackages = GetAllPackageIdentifiers(targetFrameworks, listPackageArgs.IncludeTransitive); 429var packageMetadataById = new Dictionary<string, List<IPackageSearchMetadata>>(capacity: allPackages.Count); 445static List<string> GetAllPackageIdentifiers(List<FrameworkPackages> frameworks, bool includeTransitive) 452List<string> allPackages = intermediateEnumerable.Select(p => p.Name).Distinct(StringComparer.OrdinalIgnoreCase).ToList(); 562List<FrameworkPackages> frameworks, 563Dictionary<string, List<IPackageSearchMetadata>> packageMetadata, 570if (packageMetadata.TryGetValue(topLevelPackage.Name, out List<IPackageSearchMetadata> matchingPackage)) 609if (packageMetadata.TryGetValue(transitivePackage.Name, out List<IPackageSearchMetadata> matchingPackage)) 673private async Task<KeyValuePair<string, List<IPackageSearchMetadata>>> GetPackageMetadataAsync( 678var results = new List<IPackageSearchMetadata>(); 679var sources = listPackageArgs.PackageSources; 687return new KeyValuePair<string, List<IPackageSearchMetadata>>(package, results);
Commands\PackageSearch\JsonFormat\PackageSearchMainOutput.cs (2)
17public List<PackageSearchProblem> Problems { get; set; } 20public List<PackageSearchResult> SearchResult { get; set; }
Commands\PackageSearch\JsonFormat\PackageSearchResult.cs (2)
21public List<PackageSearchProblem> Problems { get; set; } 24public List<IPackageSearchMetadata> Packages { get; set; }
Commands\PackageSearch\PackageSearchArgs.cs (1)
17public List<string> Sources { get; set; }
Commands\PackageSearch\PackageSearchCommand.cs (1)
35var sources = new Option<List<string>>("--source")
Commands\PackageSearch\PackageSearchRunner.cs (2)
60List<PackageSource> httpSources = HttpSourcesUtility.GetDisallowedInsecureHttpSources(listEndpoints.ToList()); 212private static IList<PackageSource> GetPackageSources(List<string> sources, IPackageSourceProvider sourceProvider)
Commands\PackageSearch\Table.cs (10)
27internal readonly List<Column> _columns = new List<Column>(); 29internal List<string[]> _rows = new List<string[]>(); 94List<string> sanitizedValues = row.Select(v => SanitizeString(v)).ToList(); 112private void PrintRow(ILoggerWithColor logger, List<string> values, string highlightTerm) 119List<int> renderedColumns = new List<int>(); 122List<List<int>> highlight = new List<List<int>>(); 201private static List<int> FindSubstringIndices(string str, string substring) 203List<int> indices = new List<int>();
Commands\Why\DependencyGraphFinder.cs (4)
30public static Dictionary<string, List<DependencyNode>?>? GetAllDependencyGraphsForTarget( 33List<string> userInputFrameworks) 35var result = new Dictionary<string, List<DependencyNode>?>(StringComparer.OrdinalIgnoreCase); 102List<PackageDependency> dependencies = new List<PackageDependency>(directPackages.Length + directProjectReferences.Count);
Commands\Why\DependencyGraphPrinter.cs (13)
27public static void PrintAllDependencyGraphs(Dictionary<string, List<DependencyNode>?> dependencyGraphPerFramework, string targetPackage, IAnsiConsole logger, IDotnetVersionChecker dotnetVersionChecker) 33List<List<string>> deduplicatedFrameworks = GetDeduplicatedFrameworks(dependencyGraphPerFramework); 35foreach (var frameworks in deduplicatedFrameworks) 52private static void PrintDependencyGraphPerFramework(List<string> frameworks, List<DependencyNode>? topLevelNodes, string targetPackage, IAnsiConsole logger, IDotnetVersionChecker dotnetVersionChecker) 142private static List<List<string>> GetDeduplicatedFrameworks(Dictionary<string, List<DependencyNode>?> dependencyGraphPerFramework) 144List<string>? frameworksWithoutGraphs = null; 145var dependencyGraphHashes = new Dictionary<int, List<string>>(dependencyGraphPerFramework.Count); 167var deduplicatedFrameworks = dependencyGraphHashes.Values.ToList(); 181private static int GetDependencyGraphHashCode(List<DependencyNode>? graph)
Commands\Why\WhyCommand.cs (2)
96Option<List<string>> frameworks = new Option<List<string>>("--framework", "-f")
Commands\Why\WhyCommandArgs.cs (1)
16public required List<string> Frameworks { get; init; }
Commands\Why\WhyCommandRunner.cs (2)
67Dictionary<string, List<DependencyNode>?>? dependencyGraphPerFramework = DependencyGraphFinder.GetAllDependencyGraphsForTarget( 224private static void ValidateFrameworksOptionsExistInAssetsFile(LockFile assetsFile, List<string> inputFrameworks, IAnsiConsole logger)
ListPackage\ListPackageConsoleRenderer.cs (4)
21protected List<ReportProblem> _problems = new(); 93private static void WriteProjects(TextWriter consoleOut, TextWriter consoleError, List<ListPackageProjectModel> projects, ListPackageArgs listPackageArgs) 140List<ListReportPackage> frameworkTopLevelPackages = frameworkPackages.TopLevelPackages; 141List<ListReportPackage> frameworkTransitivePackages = frameworkPackages.TransitivePackages;
ListPackage\ListPackageJsonRenderer.cs (6)
51protected readonly List<ReportProblem> _problems = new(); 166private static void WriteProjects(JsonWriter writer, List<ListPackageProjectModel> reportProjects, ListPackageArgs listPackageArgs) 192private static void WriteFrameworkPackage(JsonWriter writer, List<ListPackageReportFrameworkPackage> reportFrameworkPackages, ListPackageArgs listPackageArgs) 209private static void WriteTopLevelPackages(JsonWriter writer, string property, List<ListReportPackage> topLevelPackages, ListPackageArgs listPackageArgs) 256private static void WriteTransitivePackages(JsonWriter writer, string property, List<ListReportPackage> transitivePackages, ListPackageArgs listPackageArgs) 333private static void WriteVulnerabilities(JsonWriter writer, List<PackageVulnerabilityMetadata> vulnerabilities)
ListPackage\ListPackageProjectModel.cs (2)
15internal List<ReportProblem> ProjectProblems { get; } = new(); 18internal List<ListPackageReportFrameworkPackage> TargetFrameworkPackages { get; set; }
ListPackage\ListPackageReportFrameworkPackage.cs (2)
18internal List<ListReportPackage> TopLevelPackages { get; set; } 19internal List<ListReportPackage> TransitivePackages { get; set; }
ListPackage\ListPackageReportModel.cs (1)
17internal List<ListPackageProjectModel> Projects { get; } = new();
ListPackage\ListReportPackage.cs (4)
16public List<PackageVulnerabilityMetadata> Vulnerabilities { get; private set; } 22public ListReportPackage(string packageId, string resolvedVersion, string latestVersion, List<PackageVulnerabilityMetadata> vulnerabilities, PackageDeprecationMetadata deprecationReasons, AlternatePackageMetadata alternativePackage, string requestedVersion, bool autoReference) 87public ListReportPackage(string packageId, string requestedVersion, string resolvedVersion, string latestVersion, List<PackageVulnerabilityMetadata> vulnerabilities) 99public ListReportPackage(string packageId, string requestedVersion, string resolvedVersion, List<PackageVulnerabilityMetadata> vulnerabilities)
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
19public static List<T> AsList<T>(this IEnumerable<T> enumerable) 21var list = enumerable as List<T>;
Utility\AddPackageCommandUtility.cs (4)
34var tasks = new List<Task<NuGetVersion>>(); 35var latestReleaseList = new List<NuGetVersion>(); 97public static List<PackageSource> EvaluateSources(IList<PackageSource> requestedSources, IList<string> configFilePaths) 102var packageSources = new List<PackageSource>();
Utility\CommandLineUtility.cs (1)
30var result = new List<string>();
Utility\HttpSourcesUtility.cs (3)
16public static List<PackageSource> GetDisallowedInsecureHttpSources(IReadOnlyList<PackageSource> packageSources) 23List<PackageSource> httpPackageSources = null; 37public static string BuildHttpSourceErrorMessage(List<PackageSource> httpSources, string commandName)
Utility\MSBuildAPIUtility.cs (9)
106List<string> projects = new List<string>(); 728internal static List<FrameworkPackages> GetResolvedVersions( 746var resultPackages = new List<FrameworkPackages>(); 755var userFrameworkInputs = userInputFrameworks.Select(f => 761var filteredTargets = new List<LockFileTarget>(); 806var topLevelPackages = new List<InstalledPackageReference>(); 807var transitivePackages = new List<InstalledPackageReference>(); 811var matchingPackages = frameworkDependencies.Where(d => 1035var mergedPackageReferences = new List<ProjectItem>();
Utility\ProjectPackagesPrintUtility.cs (4)
27internal static List<ListPackageReportFrameworkPackage> GetPackagesMetadata( 32var projectFrameworkPackages = new List<ListPackageReportFrameworkPackage>(); 118var valueSelectors = new List<Func<ListReportPackage, object>> 275var result = new List<string>();
Utility\TableParser.cs (6)
29var stringTable = new List<List<FormattedCell>>(); 36var headers = new List<FormattedCell>(); 46var row = new List<FormattedCell>(); 95var subsequentRow = new List<FormattedCell>(); 125var stringTable = new List<FormattedCell>();
NuGet.Commands (313)
ClientCertificatesCommand\ListClientCertRunner.cs (1)
33var clientCertificatesLogs = new List<LogMessage>();
CommandRunners\LocalsCommandRunner.cs (1)
280var failedDeletes = new List<string>();
CommandRunners\PackCommandRunner.cs (5)
355var includes = new List<string>(); 356var excludes = new List<string>(); 713List<IPackageFile> toRemove = packageFiles.Where(matchedFiles.Contains).ToList(); 823List<IPackageFile> toRemove = files.Where(t => !string.Equals(Path.GetExtension(t.Path), ".pdb", StringComparison.OrdinalIgnoreCase)).ToList(); 948List<string> candidates = files.Where(file => AllowedExtensions.Contains(Path.GetExtension(file))).ToList();
ListCommand\ListCommandRunner.cs (3)
32var sourceFeeds = new List<ListResource>(); 56var allPackages = new List<IEnumerableAsync<IPackageSearchMetadata>>(); 71List<PackageSource> httpPackageSources = null;
RestoreCommand\CompatibilityChecker.cs (7)
67var issues = new List<CompatibilityIssue>(); 79var available = new List<NuGetFramework>(); 256List<ContentItemGroup> itemGroups = new(); 285private static List<NuGetFramework> GetProjectFrameworks(Library localLibrary) 287var available = new List<NuGetFramework>(); 294available = (List<NuGetFramework>)frameworksObject; 341private async Task VerifyDotnetToolCompatibilityChecks(CompatibilityData compatibilityData, GraphItem<RemoteResolveResult> node, RestoreTargetGraph graph, List<CompatibilityIssue> issues)
RestoreCommand\CompatibilityIssue.cs (2)
23public List<NuGetFramework> AvailableFrameworks { get; } 24public List<FrameworkRuntimePair> AvailableFrameworkRuntimePairs { get; }
RestoreCommand\ContentFiles\ContentFileUtils.cs (15)
34internal static List<ContentItemGroup> GetContentGroupsForFramework( 38var groups = new List<ContentItemGroup>(); 41var groupsByLanguage = new Dictionary<string, List<ContentItemGroup>>(StringComparer.OrdinalIgnoreCase); 47List<ContentItemGroup> index; 60var languageGroups = codeLanguagePair.Value; 79internal static List<LockFileContentFile> GetContentFileGroup( 81List<ContentItemGroup> contentFileGroups) 87var nuspecContentFiles = nuspec.GetContentFiles().ToList(); 90var entryMappings = new Dictionary<string, List<ContentFilesEntry>>(StringComparer.OrdinalIgnoreCase); 111Dictionary<string, List<ContentFilesEntry>> relativePathToEntries = new(entryMappings.Count, StringComparer.OrdinalIgnoreCase); 112foreach ((string file, List<ContentFilesEntry> entries) in entryMappings) 128var absolutePaths = new List<string>(relativePathToEntries.Count); 155if (relativePathToEntries.TryGetValue(match.Path, out var entries)) 163var results = new List<LockFileContentFile>(entryMappings.Count); 166foreach ((var file, var entries) in entryMappings)
RestoreCommand\DependencyGraphResolver.cs (10)
103/// <param name="localRepositories">A <see cref="List{T}" /> of <see cref="NuGetv3LocalRepository" /> objects that represent the local package repositories configured for restore.</param> 108/// <item>A <see cref="List{T}" /> of <see cref="RestoreTargetGraph" /> objects representing the resolved dependency graphs for each pair of target framework and runtime identifier.</item> 112public async Task<ValueTuple<bool, List<RestoreTargetGraph>, RuntimeGraph>> ResolveAsync( 117List<NuGetv3LocalRepository> localRepositories, 132List<RestoreTargetGraph> allGraphs = new(); 138List<RestoreTargetGraph> runtimeGraphs = new(); 150List<FrameworkRuntimeDefinition> frameworkRuntimeDefinitions = RestoreCommand.CreateFrameworkRuntimeDefinitions(_request.Project, runtimeIds: RequestRuntimeUtility.GetRestoreRuntimes(_request)); 331List<GraphNode<RemoteResolveResult>> graphNodes = new(); 1421/// <param name="localRepositories">A <see cref="List{T}" /> containing <see cref="NuGetv3LocalRepository" /> objects to find local packages in.</param> 1427private bool TryGetRuntimeGraph(List<NuGetv3LocalRepository> localRepositories, Dictionary<string, RestoreTargetGraph> graphsByTargetAlias, FrameworkRuntimeDefinition frameworkRuntimeDefinition, TargetFrameworkInformation? projectTargetFramework, [NotNullWhen(true)] out RuntimeGraph? runtimeGraph)
RestoreCommand\DependencyGraphResolver.DependencyGraphItem.cs (1)
100List<LibraryDependency> dependencies = new(capacity: (RuntimeDependencies?.Count ?? 0) + item.Data.Dependencies.Count);
RestoreCommand\DependencyGraphResolver.ResolvedDependencyGraphItem.cs (2)
123/// Gets or sets a <see cref="List{T}" /> of <see cref="HashSet{T}" /> containing <see cref="LibraryDependencyIndex" /> representing dependencies that should be suppressed under this item. 125public required List<HashSet<LibraryDependencyIndex>> Suppressions { get; init; }
RestoreCommand\Diagnostics\DiagnosticUtility.cs (1)
110var output = new List<RestoreLogMessage>();
RestoreCommand\Diagnostics\IndexedRestoreTargetGraph.cs (2)
43var versionConflicts = graph.AnalyzeResult?.VersionConflicts; 54var cycles = graph.AnalyzeResult?.Cycles;
RestoreCommand\Diagnostics\UnexpectedDependencyMessages.cs (8)
30var graphList = graphs.AsList(); 33var indexedGraphs = graphList.Select(IndexedRestoreTargetGraph.Create).ToList(); 73var messages = new List<RestoreLogMessage>(); 130List<IndexedRestoreTargetGraph> graphs, 134var messages = new List<RestoreLogMessage>(); 248public static IEnumerable<RestoreLogMessage> GetDependenciesAboveUpperBounds(List<IndexedRestoreTargetGraph> graphs, ILogger logger) 250var messages = new List<RestoreLogMessage>(); 258List<LibraryDependency> dependencies = node.Data?.Dependencies;
RestoreCommand\Diagnostics\UnresolvedMessages.cs (5)
51var messageTasks = new List<Task<RestoreLogMessage>>(); 115var sourceInfo = await GetSourceInfosForIdAsync(unresolved.Name, applicableRemoteLibraryProviders, sourceCacheContext, logger, token); 154var lines = new List<string>() 253internal static async Task<List<KeyValuePair<PackageSource, ImmutableArray<NuGetVersion>>>> GetSourceInfosForIdAsync( 260var sources = new List<KeyValuePair<PackageSource, ImmutableArray<NuGetVersion>>>();
RestoreCommand\LockFileBuilder.cs (4)
437private static void AddProjectFileDependenciesForPackageReference(PackageSpec project, LockFile lockFile, List<RestoreTargetGraph> targetGraphs) 445var dependencies = new List<LibraryRange>(); 469var uniqueDependencies = new List<LibraryRange>(); 509List<LibraryDependency> centralEnforcedTransitiveDependencies = GetLibraryDependenciesForCentralTransitiveDependencies(targetGraph, targetFrameworkInformation, logger).ToList();
RestoreCommand\LockFileBuilderCache.cs (9)
31private readonly ConcurrentDictionary<CriteriaKey, List<(List<SelectionCriteria>, bool)>> _criteriaSets = 46public List<List<SelectionCriteria>> GetSelectionCriteria(RestoreTargetGraph graph, NuGetFramework framework) 52List<(List<SelectionCriteria> selectionCriterias, bool fallbackUsed)> result = _criteriaSets.GetOrAdd(key, _ => LockFileUtils.CreateOrderedCriteriaSets(graph.Conventions, framework, runtimeIdentifier: graph.RuntimeIdentifier)); 67internal List<(List<SelectionCriteria>, bool)> GetLabeledSelectionCriteria(RestoreTargetGraph graph, NuGetFramework framework) 109internal (LockFileTargetLibrary, bool, NuGetFramework, NuGetFramework) GetLockFileTargetLibrary(RestoreTargetGraph graph, NuGetFramework framework, LocalPackageInfo localPackageInfo, string aliases, LibraryIncludeFlags libraryIncludeFlags, List<LibraryDependency> dependencies, bool restoreEnableAnalyzerAssets, Func<(LockFileTargetLibrary, bool, NuGetFramework, NuGetFramework)> valueFactory)
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (1)
32var projectFrameworks = new List<string>();
RestoreCommand\MSBuildRestoreItemGroup.cs (2)
25public List<string> Conditions { get; set; } = new List<string>(); 30public List<XElement> Items { get; set; } = new List<XElement>();
RestoreCommand\OriginalCaseGlobalPackageFolder.cs (1)
27private readonly List<NuGetv3LocalRepository> _localRepositories;
RestoreCommand\ProjectRestoreCommand.cs (11)
45public async Task<Tuple<bool, List<RestoreTargetGraph>, RuntimeGraph>> TryRestoreAsync(LibraryRange projectRange, 58var frameworkTasks = new List<Task<RestoreTargetGraph>>(); 59var graphs = new List<RestoreTargetGraph>(); 107var localRepositories = new List<NuGetv3LocalRepository>(); 111var runtimeGraphs = new List<RestoreTargetGraph>(); 112var runtimeTasks = new List<Task<RestoreTargetGraph[]>>(); 221List<Task<DownloadDependencyResolutionResult>> downloadDependencyResolutionTasks = new(capacity: packageSpec.TargetFrameworks.Count); 243List<Task<Tuple<LibraryRange, RemoteMatch>>> packageDownloadTasks = new(capacity: targetFrameworkInformation.DownloadDependencies.Length); 285var graphs = new List<GraphNode<RemoteResolveResult>> 353var packagesToInstall = graphs 465var resultGraphs = new List<Task<RestoreTargetGraph>>();
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (3)
172var packageSources = restoreArgs.GetEffectiveSources(settings, projectPackageSpec.RestoreMetadata.Sources); 241var auditSourceRepositories = new List<SourceRepository>(auditSources.Count); 265List<IAssetsLogMessage> projectAdditionalMessages = null;
RestoreCommand\RequestFactory\RestoreArgs.cs (8)
36public List<string> Inputs { get; set; } = new List<string>(); 46public List<string> Sources { get; set; } = new List<string>(); 50public List<IRestoreRequestProvider> RequestProviders { get; set; } = new List<IRestoreRequestProvider>(); 52public List<IPreLoadedRestoreRequestProvider> PreLoadedRequestProviders { get; set; } = new List<IPreLoadedRestoreRequestProvider>(); 78private ConcurrentDictionary<string, List<SourceRepository>> _sourcesCache 79= new ConcurrentDictionary<string, List<SourceRepository>>(StringComparer.Ordinal); 128internal List<SourceRepository> GetEffectiveSources(ISettings settings, IList<PackageSource> dgSpecSources) 145private List<SourceRepository> GetEffectiveSourcesCore(ISettings settings, IList<PackageSource> dgSpecSources)
RestoreCommand\RestoreCommand.cs (46)
225var localRepositories = new List<NuGetv3LocalRepository> 270(successfulResult, List<RestoreTargetGraph> graphs) = await GenerateRestoreGraphsAsync(telemetry, contextForProject, success, token); 483private void PopulateAnalyzerAssetsTelemetry(TelemetryEvent telemetryEvent, LockFile assetsFile, List<RestoreTargetGraph> graphs, PackageSpec project) 749private async Task<(bool, List<RestoreTargetGraph>)> GenerateRestoreGraphsAsync(TelemetryActivity telemetry, RemoteWalkContext contextForProject, bool success, CancellationToken token) 751List<RestoreTargetGraph> graphs = null; 784var frameworkRuntimePairs = CreateFrameworkRuntimeDefinitions(_request.Project, RequestRuntimeUtility.GetRestoreRuntimes(_request)); 796private async Task<(bool, IEnumerable<MSBuildOutputFile>, string, string, LockFile, List<RestoreTargetGraph>, PackagesLockFile, string, CacheFile)> ProcessRestoreResultAsync(TelemetryActivity telemetry, 797List<NuGetv3LocalRepository> localRepositories, 802List<RestoreTargetGraph> graphs, 880var logs = logsEnumerable 952private async Task<bool> PerformAuditAsync(List<RestoreTargetGraph> graphs, TelemetryActivity telemetry, CancellationToken token) 1002void AddPackagesList(TelemetryActivity telemetry, string eventName, List<string> packages) 1004List<TelemetryEvent> result = new List<TelemetryEvent>(packages.Count); 1140Dictionary<string, List<string>> prunedDirectPackages = GetPrunableDirectPackages(project); 1146static Dictionary<string, List<string>> GetPrunableDirectPackages(PackageSpec project) 1148Dictionary<string, List<string>> prunedDirectPackages = null; 1178static void RaiseNU1510WarningsIfNeeded(PackageSpec project, ILogger logger, bool enablePruningWarnings, Dictionary<string, List<string>> prunedDirectPackages, TelemetryEvent telemetry) 1246static bool ContainsPackage(KeyValuePair<string, List<string>> prunedPackage, TargetFrameworkInformation framework) 1301var packagesList = new List<string>(packagesWithoutVersions.Count); 1334List<CentralPackageVersion> packageVersionItemsWithFloatingVersion = null; 1335List<LibraryDependency> implicitPackageReferenceItemsWithPackageVersion = null; 1336List<LibraryDependency> packageReferenceItemsWithNoPackageVersion = null; 1337List<LibraryDependency> packageReferenceItemsWithVersion = null; 1338List<LibraryDependency> packageReferenceItemsWithVersionOverride = null; 1635var libraries = target.Dependencies 1791List<RestoreTargetGraph> graphs, 1914var messages = new List<RestoreLogMessage>(); 1979var checkResults = new List<CompatibilityCheckResult>(); 2017private async Task<(bool, List<RestoreTargetGraph>)> ExecuteLegacyRestoreAsync( 2046var updatedExternalProjects = GetProjectReferences(_request); 2063var allGraphs = new List<RestoreTargetGraph>(); 2065var projectFrameworkRuntimePairs = CreateFrameworkRuntimeDefinitions(_request.Project, runtimeIds); 2075Tuple<bool, List<RestoreTargetGraph>, RuntimeGraph> result = null; 2079List<FrameworkRuntimePair> frameworkRuntimePairs = new(); 2158Tuple<bool, List<RestoreTargetGraph>, RuntimeGraph> compatibilityResult = null; 2202private async Task<(bool, List<RestoreTargetGraph>)> ExecuteRestoreAsync( 2237var localRepositories = new List<NuGetv3LocalRepository>(); 2246var updatedExternalProjects = GetProjectReferences(_request); 2255List<RestoreTargetGraph> graphs = null; 2263(bool Success, List<RestoreTargetGraph> Graphs, RuntimeGraph Runtimes) result = await dependencyGraphResolver.ResolveAsync(userPackageFolder, fallbackPackageFolders, context, projectRestoreCommand, localRepositories, token); 2409internal static List<ExternalProjectReference> GetProjectReferences(RestoreRequest request) 2412var updatedExternalProjects = new List<ExternalProjectReference>(); 2423var rootProjectMatches = request.ExternalProjects.Where(proj => 2472/// <returns>A <see cref="List{T}" /> containing <see cref="FrameworkRuntimeDefinition" /> objects with the frameworks with empty runtime identifiers followed by frameworks with the specified runtime identifiers.</returns> 2473internal static List<FrameworkRuntimeDefinition> CreateFrameworkRuntimeDefinitions(PackageSpec packageSpec, ISet<string> runtimeIds) 2476List<FrameworkRuntimeDefinition> projectFrameworkRuntimePairs = new(capacity: packageSpec.TargetFrameworks.Count * (runtimeIds.Count + 1));
RestoreCommand\RestoreCommandProvidersCache.cs (10)
102List<NuGetv3LocalRepository> fallbackFolders = GetFallbackFolderRepositories(fallbackPackagesPaths); 103List<IRemoteDependencyProvider> localProviders = CreateLocalProviders(globalPackagesPath, fallbackPackagesPaths, cacheContext, log, environmentVariableReader); 104List<IRemoteDependencyProvider> remoteProviders = CreateRemoteProviders(packageSources, cacheContext, log, environmentVariableReader); 117private List<NuGetv3LocalRepository> GetFallbackFolderRepositories(IReadOnlyList<string> fallbackPackagesPaths) 119var fallbackFolders = new List<NuGetv3LocalRepository>(); 130private List<IRemoteDependencyProvider> CreateLocalProviders(string globalPackagesPath, IReadOnlyList<string> fallbackPackagesPaths, SourceCacheContext cacheContext, ILogger log, IEnvironmentVariableReader environmentVariableReader) 150var localProviders = new List<IRemoteDependencyProvider>(fallbackPackagesPaths.Count + 1) { local }; 179private List<IRemoteDependencyProvider> CreateRemoteProviders(IReadOnlyList<SourceRepository> sources, SourceCacheContext cacheContext, ILogger log, IEnvironmentVariableReader environmentVariableReader) 181var remoteProviders = new List<IRemoteDependencyProvider>(sources.Count); 214var vulnerabilityInformationProviders = new List<IVulnerabilityInformationProvider>(sources.Count);
RestoreCommand\RestoreResult.cs (3)
105internal readonly Lazy<List<MSBuildOutputFile>> _dirtyMSBuildFiles; 143_dirtyMSBuildFiles = new Lazy<List<MSBuildOutputFile>>(() => 336List<string> dirtyFiles = null;
RestoreCommand\RestoreRunner.cs (9)
70var restoreTasks = new List<Task<RestoreSummary>>(maxTasks); 71var restoreSummaries = new List<RestoreSummary>(requests.Count); 136var restoreTasks = new List<Task<RestoreResultPair>>(maxTasks); 137var restoreResults = new List<RestoreResultPair>(maxTasks); 172var requests = new List<RestoreSummaryRequest>(); 174var inputs = new List<string>(restoreContext.Inputs); 339private static async Task<RestoreSummary> CompleteTaskAsync(List<Task<RestoreSummary>> restoreTasks) 347CompleteTaskAsync(List<Task<RestoreResultPair>> restoreTasks) 357var results = new List<RestoreSummaryRequest>();
RestoreCommand\RestoreSummary.cs (1)
204var logs = restoreSummary
RestoreCommand\Utility\AuditUtility.cs (16)
26private readonly List<RestoreTargetGraph> _targetGraphs; 34internal List<string>? DirectPackagesWithAdvisory { get; private set; } 35internal List<string>? PackageDownloadPackagesWithAdvisory { get; private set; } 36internal List<string>? TransitivePackagesWithAdvisory { get; private set; } 65List<RestoreTargetGraph> graphs, 137List<PackageVulnerabilityInfo>? knownVulnerabilitiesForPackage = GetKnownVulnerabilities(downloadDependency.Name, downloadDependency.VersionRange.MaxVersion!, knownVulnerabilities); 169if (!auditInfo.GraphsPerVulnerability.TryGetValue(knownVulnerability, out List<string>? affectedGraphs)) 199List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? allVulnerabilityData = await GetAllVulnerabilityDataAsync(cancellationToken); 280List<string> affectedGraphs = kvp2.Value; 330private static List<PackageVulnerabilityInfo>? GetKnownVulnerabilities( 385List<PackageVulnerabilityInfo>? knownVulnerabilitiesForPackage = GetKnownVulnerabilities(package.Name, package.Version, knownVulnerabilities); 419if (!auditInfo.GraphsPerVulnerability.TryGetValue(knownVulnerability, out List<string>? affectedGraphs)) 443private async Task<List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>?> GetAllVulnerabilityDataAsync(CancellationToken cancellationToken) 458List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? knownVulnerabilities = null; 574public Dictionary<PackageVulnerabilityInfo, List<string>> GraphsPerVulnerability { get; } 587public Dictionary<PackageVulnerabilityInfo, List<string>> GraphsPerVulnerability { get; }
RestoreCommand\Utility\BuildAssetsUtils.cs (15)
88public static List<MSBuildOutputFile> GenerateMultiTargetFailureFiles( 104var files = new List<MSBuildOutputFile>() 315public static XDocument GenerateMSBuildFile(List<MSBuildRestoreItemGroup> groups, ProjectStyle outputType) 453public static List<MSBuildOutputFile> GetMSBuildOutputFiles(PackageSpec project, 501var props = new List<MSBuildRestoreItemGroup>(); 502var targets = new List<MSBuildRestoreItemGroup>(); 542List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>> sortedPackages = new List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>>(sortedGraph.Count); 632var lockContentFiles = new List<LockFileContentFile>(pkg.Key.ContentFiles.Count); 643var currentItems = new List<(LockFileTargetLibrary, LockFileContentFile, string)>(lockContentFiles.Count); 677var files = new List<MSBuildOutputFile>(capacity: 2) 689static MSBuildRestoreItemGroup GenerateBuildGroup(string repositoryRoot, List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>> sortedPackages, string extension, IEnvironmentVariableReader environmentVariableReader) 712static MSBuildRestoreItemGroup GenerateMultiTargetingGroup(string repositoryRoot, List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>> sortedPackages, HashSet<string> multiTargetingImportsAdded, string extension, IEnvironmentVariableReader environmentVariableReader) 773List<ValueTuple<LockFileTargetLibrary, LockFileContentFile, string>> currentItems) 821var newConditions = new List<string>(original.Conditions.Count + 1); 892List<PackageDependency> newDependencies = new List<PackageDependency>(item.Data.Dependencies.Count);
RestoreCommand\Utility\LockFileUtils.cs (40)
70List<LibraryDependency> dependencies, 95List<(List<SelectionCriteria> orderedCriteria, bool fallbackUsed)> orderedCriteriaSets = cache.GetLabeledSelectionCriteria(targetGraph, framework); 98var packageTypes = nuspec.GetPackageTypes().AsList(); 144internal static List<(List<SelectionCriteria>, bool)> CreateOrderedCriteriaSets(ManagedCodeConventions codeConventions, NuGetFramework framework, string runtimeIdentifier) 151var orderedCriteriaSets = new List<(List<SelectionCriteria>, bool)>(1); 204List<SelectionCriteria> orderedCriteria, 287List<SelectionCriteria> orderedCriteria, 337List<ContentItemGroup> contentFileGroups = new(); 343var contentFileGroupsForFramework = ContentFileUtils.GetContentGroupsForFramework( 372var runtimeTargetItems = new List<LockFileRuntimeTarget>(); 439var groups = nuspec.GetReferenceGroups().ToList(); 576var orderedCriteria = CreateCriteria(targetGraph.Conventions, targetGraph.Framework, targetGraph.RuntimeIdentifier); 583List<ProjectRestoreMetadataFile> files = (List<ProjectRestoreMetadataFile>)filesObject; 653projectLib.FrameworkAssemblies.AddRange((List<string>)frameworkAssembliesObject); 679private static List<LockFileItem> ConvertToProjectPaths( 684var results = new List<LockFileItem>(items.Count); 701List<SelectionCriteria> criteria, 708List<LockFileItem> result = null; 753List<SelectionCriteria> criteria, 769var lockFileItems = new List<LockFileItem>(); 916private static List<SelectionCriteria> CreateCriteria( 921List<SelectionCriteria> managedCriteria; 1022private static List<ContentItemGroup> GetContentGroupsForFramework( 1024List<ContentItemGroup> contentGroups, 1027var groups = new List<ContentItemGroup>(); 1030var primaryGroups = new Dictionary<string, List<ContentItemGroup>>(StringComparer.Ordinal); 1039List<ContentItemGroup> index; 1053var groupedItems = primaryGroup.Value; 1080private static List<LockFileRuntimeTarget> GetRuntimeTargetLockFileItems( 1088List<ContentItemGroup> groups = new List<ContentItemGroup>(); 1091var groupsForFramework = GetContentGroupsForFramework( 1096var items = GetRuntimeTargetItems(groupsForFramework, assetType); 1111private static List<LockFileRuntimeTarget> GetRuntimeTargetItems(List<ContentItemGroup> groups, string assetType) 1113var results = new List<LockFileRuntimeTarget>(); 1221var newBuildAssets = new List<LockFileItem>();
RestoreCommand\Utility\MSBuildRestoreUtility.cs (18)
73var itemsById = new Dictionary<string, List<IMSBuildItem>>(uniqueNameComparer); 89List<IMSBuildItem> idItems; 100var additionalMessages = collectAdditionalMessages ? new List<IAssetsLogMessage>() : null; 103var validProjectSpecs = new List<PackageSpec>(); 104foreach (var projectItems in itemsById.Values) 342private static PackageSpec CreateErrorSpecFromItems(IEnumerable<IMSBuildItem> items, string errorDetails, List<IAssetsLogMessage> additionalMessages) 552var packageTargetFallback = MSBuildStringUtility.Split(item.GetProperty("PackageTargetFallback")) 556var assetTargetFallbackList = MSBuildStringUtility.Split(item.GetProperty(AssetTargetFallbackUtility.AssetTargetFallback)) 609var runtimes = MSBuildStringUtility.Split(specItem.GetProperty("RuntimeIdentifiers")) 614var supports = MSBuildStringUtility.Split(specItem.GetProperty("RuntimeSupports")) 625var aliasGroups = new Dictionary<string, List<ProjectRestoreReference>>(); 642var addToFrameworks = frameworkPair.Item1.Count == 0 648List<ProjectRestoreReference> references; 661foreach (KeyValuePair<string, List<ProjectRestoreReference>> frameworkPair in aliasGroups) 672private static Tuple<List<string>, ProjectRestoreReference> GetProjectRestoreReference(IMSBuildItem item, bool crossTargeting) 674var frameworks = GetFrameworks(item, crossTargeting).ToList(); 684return new Tuple<List<string>, ProjectRestoreReference>(frameworks, reference); 798List<IMSBuildItem> targetFrameworkInfos = GetItemByType(items, "TargetFrameworkInformation").ToList();
RestoreCommand\Utility\NoOpRestoreUtilities.cs (4)
240internal static List<string> GetRestoreOutput(RestoreRequest request, LockFile lockFile) 242var pathResolvers = new List<VersionFolderPathResolver>(request.Project.RestoreMetadata.FallbackFolders.Count + 1) 252var packageFiles = new List<string>(lockFile.Libraries.Count + request.Project.TargetFrameworks.Sum(i => i.DownloadDependencies.Length)); 271private static IEnumerable<string> GetPackageFiles(LocalPackageFileCache packageFileCache, string packageId, NuGetVersion version, List<VersionFolderPathResolver> resolvers)
RestoreCommand\Utility\PackageSpecFactory.cs (23)
47(ProjectRestoreMetadata? restoreMetadata, List<TargetFrameworkInformation>? targetFrameworkInfos) = GetProjectRestoreMetadataAndTargetFrameworkInformation(project, settings); 119/// <returns>A <see cref="Tuple" /> containing the <see cref="ProjectRestoreMetadata" /> and <see cref="List{TargetFrameworkInformation}" /> for the specified project.</returns> 120private static (ProjectRestoreMetadata? RestoreMetadata, List<TargetFrameworkInformation>? TargetFrameworkInfos) GetProjectRestoreMetadataAndTargetFrameworkInformation(IProject project, ISettings settings) 134List<TargetFrameworkInformation> targetFrameworkInfos = GetTargetFrameworkInfos(project, isCentralPackageManagementEnabled, isPruningEnabledGlobally); 220/// <returns>A <see cref="List{TargetFrameworkInformation}" /> containing the target framework information for the specified project.</returns> 221internal static List<TargetFrameworkInformation> GetTargetFrameworkInfos(IProject project, bool isCpvmEnabled, bool isPruningEnabledGlobally) 223var targetFrameworkInfos = new List<TargetFrameworkInformation>(project.TargetFrameworks.Count); 238var packageTargetFallback = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty("PackageTargetFallback")).Select(NuGetFramework.Parse).ToList(); 240var assetTargetFallbackEnum = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty(nameof(TargetFrameworkInformation.AssetTargetFallback))).Select(NuGetFramework.Parse).ToList(); 584/// <returns>A <see cref="List{ProjectRestoreMetadataFrameworkInfo}" /> containing the restore metadata framework information for the specified project.</returns> 585internal static List<ProjectRestoreMetadataFrameworkInfo> GetProjectRestoreMetadataFrameworkInfos(List<TargetFrameworkInformation> targetFrameworkInfos, IReadOnlyDictionary<string, ITargetFramework> projects) 587var projectRestoreMetadataFrameworkInfos = new List<ProjectRestoreMetadataFrameworkInfo>(projects.Count); 606/// <returns>A <see cref="List{ProjectRestoreReference}" /> containing the project references for the specified project.</returns> 607internal static List<ProjectRestoreReference> GetProjectReferences(ITargetFramework project) 610var projectReferenceItems = project.GetItems("ProjectReference") 615var projectReferences = new List<ProjectRestoreReference>(projectReferenceItems.Count); 639/// <returns>A <see cref="List{LibraryDependency}" /> containing the package references for the specified project.</returns> 643List<IItem> packageReferenceItems = GetDistinctItemsOrEmpty(project, "PackageReference").ToList(); 746/// <returns>A <see cref="List{FrameworkDependency}" /> containing the framework references for the specified project.</returns> 750List<IItem> frameworkReferenceItems = GetDistinctItemsOrEmpty(project, "FrameworkReference").ToList(); 844/// <returns>A <see cref="List{PackageSource}" /> object containing the packages sources for the specified project.</returns> 845internal static List<PackageSource> GetSources(IProject project, ISettings settings)
RestoreCommand\Utility\SpecValidationUtility.cs (3)
152List<NuGetFramework> frameworkNames = new List<NuGetFramework>(spec.TargetFrameworks.Count); 219List<string> aliases = (spec.TargetFrameworks.Count > 1 || spec.RestoreMetadata.TargetFrameworks.Count > 1) ? 257var packageDependencies = GetAllDependencies(spec).ToList();
RestoreCommand\Utility\ToolRestoreUtility.cs (3)
87var results = new List<RestoreSummaryRequest>(); 88var tools = new List<RestoreSummaryRequest>(); 122var results = new List<RestoreSummaryRequest>();
SourcesCommands\SourceRunners.cs (2)
141var sourcesList = sourceProvider.LoadPackageSources().ToList(); 203List<PackageSource> httpPackageSources = null;
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
19public static List<T> AsList<T>(this IEnumerable<T> enumerable) 21var list = enumerable as List<T>;
TrustedSignersCommand\TrustedSignerActionsProvider.cs (1)
292var certs = new List<CertificateItem>();
TrustedSignersCommand\TrustedSignersCommandRunner.cs (1)
211var trustedSignersLogs = new List<LogMessage>();
Utility\MSBuildProjectFrameworkUtility.cs (1)
325var frameworks = new List<NuGetFramework>();
VerifyCommand\VerifyCommandRunner.cs (3)
58var allowListEntries = verifyArgs.CertificateFingerprint.Select(fingerprint => 66var verificationProviders = new List<ISignatureVerificationProvider>() 130var logMessages = verificationResult.Results.SelectMany(p => p.Issues).ToList();
NuGet.Common (8)
AsyncEnumerable\AggregateEnumeratorAsync.cs (2)
21private readonly List<IEnumeratorAsync<T>> _asyncEnumerators = new List<IEnumeratorAsync<T>>(); 61List<IEnumeratorAsync<T>>? completedEnums = null;
Errors\RestoreLogMessage.cs (1)
35var graphList = new List<string>();
LocalResourceUtils.cs (2)
13public static void DeleteDirectoryTree(string folderPath, List<string> failedDeletes) 89private static void DeleteFilesInDirectoryTree(string folderPath, List<string> failedDeletes)
PathUtil\PathResolver.cs (2)
26List<Regex> filters = wildcards.Select(WildcardToRegex).ToList(); 52List<T> toRemove = source.Where(matchedFiles.Contains).ToList();
Telemetry\TelemetryActivity.cs (1)
18private readonly List<Tuple<string, TimeSpan>> _intervalList;
NuGet.Configuration (41)
ClientCertificate\ClientCertificateProvider.cs (2)
64var result = clientCertificatesSection.Items.OfType<ClientCertItem>().ToList(); 68var groupsWithSamePackageSource = groupedByPackageSourceItems.Where(g => g.Count() > 1).ToList();
PackageSource\PackageSourceProvider.cs (11)
106List<PackageSource> defaultSources = new(packageSourceLookup.Count); 114private static List<PackageSource> GetPackageSourceFromSettings(ISettings settings, string sectionName, IEnvironmentVariableReader environmentVariableReader) 126List<PackageSource> packageSources; 304private static List<PackageSource> LoadPackageSources(ISettings settings, string sectionName, IEnumerable<PackageSource> defaultSources, IEnvironmentVariableReader environmentVariableReader) 306List<PackageSource> loadedPackageSources = GetPackageSourceFromSettings(settings, sectionName, environmentVariableReader); 319private static void AddDefaultPackageSources(List<PackageSource> loadedPackageSources, IEnumerable<PackageSource> defaultPackageSources) 321var defaultPackageSourcesToBeAdded = new List<PackageSource>(); 513List<PackageSource> packageSources = LoadPackageSources(Settings, ConfigurationConstants.PackageSources, _configurationDefaultSources, environmentVariableReader); 534List<PackageSource> packageSources = LoadPackageSources(Settings, ConfigurationConstants.PackageSources, _configurationDefaultSources, environmentVariableReader); 558List<PackageSource> packageSources = LoadPackageSources(Settings, ConfigurationConstants.PackageSources, _configurationDefaultSources, environmentVariableReader); 1090List<SourceItem>? existingSettings = sourcesSection?.Items.OfType<SourceItem>().Where(
PackageSourceMapping\PackageSourceMappingProvider.cs (1)
94List<PackageSourceMappingSourceItem> removeMappings = new List<PackageSourceMappingSourceItem>();
PackageSourceMapping\SearchNode.cs (1)
12public List<string>? PackageSources;
Settings\ConfigurationDefaults.cs (1)
68List<PackageSource> sources = new();
Settings\Items\PackageSourceMappingSourceItem.cs (2)
81var parsedPackagePatternItems = parsedDescendants.OfType<PackagePatternItem>().ToList(); 159var clonedPatterns = new List<PackagePatternItem>(Patterns);
Settings\Items\TrustedSignerItem.cs (3)
59var parsedCertificates = parsedDescendants.OfType<CertificateItem>().ToList(); 73var parsedCertificates = parsedDescendants.OfType<CertificateItem>().ToList(); 122var immutableCerts = new List<CertificateItem>(Certificates);
Settings\SettingFactory.cs (2)
162var children = new List<T>(); 168List<T>? duplicatedDescendants = null;
Settings\Settings.cs (7)
397var settings = new List<SettingsFile>(); 409var settings = new List<SettingsFile>(); 425private static ISettings LoadSettingsGivenSettingsFiles(List<SettingsFile> settings) 450var validSettingFiles = new List<SettingsFile>(); 488var validSettingFiles = new List<SettingsFile>(); 513List<SettingsFile> validSettingFiles, 655var settingFiles = new List<SettingsFile>();
Settings\VirtualSettingSection.cs (1)
137var mergedSettings = new List<SettingItem>();
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
Utility\SettingsUtility.cs (1)
293var paths = new List<string>();
NuGet.Credentials (2)
DefaultCredentialServiceUtility.cs (1)
90var providers = new List<ICredentialProvider>();
SecurePluginCredentialProviderBuilder.cs (1)
45var plugins = new List<ICredentialProvider>();
NuGet.DependencyResolver.Core (40)
GraphModel\AnalyzeResult.cs (3)
12public List<DowngradeResult<TItem>> Downgrades { get; } 13public List<VersionConflictResult<TItem>> VersionConflicts { get; } 14public List<GraphNode<TItem>> Cycles { get; }
GraphModel\GraphNode.cs (1)
72if (InnerNodes is List<GraphNode<TItem>> innerList)
GraphModel\GraphOperations.cs (13)
74List<DowngradeResult<RemoteResolveResult>> downgrades, 75List<GraphNode<RemoteResolveResult>> cycles) 123var cycles = context.Cycles; 348private static bool TryResolveConflicts<TItem>(this GraphNode<TItem> root, List<VersionConflictResult<TItem>> versionConflicts) 362var centralTransitiveNodes = root.InnerNodes.Where(n => n.Item.IsCentralTransitive).ToList(); 412var versionConflicts = context.VersionConflicts; 575var graphNodes = roots.AsList(); 808public List<VersionConflictResult<TItem>> VersionConflicts; 811private static ConflictsAndAccepted<TItem> CreateState<TItem>(List<VersionConflictResult<TItem>> versionConflicts, Dictionary<string, GraphNode<TItem>> acceptedLibraries) 837public List<GraphNode<RemoteResolveResult>> Cycles; 841private static CyclesAndDowngrades CreateState(List<GraphNode<RemoteResolveResult>> cycles, Dictionary<GraphNode<RemoteResolveResult>, GraphNode<RemoteResolveResult>> downgrades) 850private static void DetectAndMarkAmbiguousCentralTransitiveDependencies<TItem>(Tracker<TItem> tracker, List<GraphNode<TItem>> centralTransitiveNodes) 880private static void RejectCentralTransitiveBecauseOfRejectedParents<TItem>(this GraphNode<TItem> root, Tracker<TItem> tracker, List<GraphNode<TItem>> centralTransitiveNodes)
Remote\RemoteDependencyWalker.cs (7)
52var transitiveCentralPackageVersionNodes = new List<GraphNode<RemoteResolveResult>>(); 303var newDependencies = new List<LibraryDependency>(runtimeDependencies.Count + node.Item.Data.Dependencies.Count); 621private Dictionary<string, List<GraphNode<RemoteResolveResult>>> _transitiveCentralPackageVersions; 626_transitiveCentralPackageVersions = new Dictionary<string, List<GraphNode<RemoteResolveResult>>>(StringComparer.OrdinalIgnoreCase); 633if (!_transitiveCentralPackageVersions.TryGetValue(centralPackageVersionDependency.Name, out var list)) 654List<GraphNode<RemoteResolveResult>> graphNodes = _transitiveCentralPackageVersions[node.Item.Key.Name]; 761private List<T> _additionalItems;
Remote\RemoteResolveResult.cs (2)
13internal static readonly List<LibraryDependency> EmptyDependencies = new List<LibraryDependency>(0); 16public List<LibraryDependency> Dependencies { get; set; }
Remote\RemoteWalkContext.cs (1)
77var filteredLibraryProviders = new List<IRemoteDependencyProvider>(sources.Count);
ResolverUtility.cs (1)
501var tasks = new List<Task<RemoteMatch?>>();
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
19public static List<T> AsList<T>(this IEnumerable<T> enumerable) 21var list = enumerable as List<T>;
NuGet.Frameworks (23)
CompatibilityProvider.cs (2)
161var targetSet = new List<NuGetFramework>() { target }; 164var candidateSet = new List<NuGetFramework>() { candidate };
DefaultPortableFrameworkMappings.cs (3)
108private static readonly Lazy<List<KeyValuePair<int, NuGetFramework[]>>> ProfileOptionalFrameworksLazy = new Lazy<List<KeyValuePair<int, NuGetFramework[]>>>(() => 118var profileOptionalFrameworks = new List<KeyValuePair<int, NuGetFramework[]>>(ProfilesWithOptionalFrameworks.Length);
FrameworkNameProvider.cs (4)
84private readonly List<NuGetFramework> _netStandardVersions; 85private readonly List<NuGetFramework> _compatibleCandidates; 503var result = new List<NuGetFramework>(shortNames.Length); 581var baseFrameworks = new List<NuGetFramework>(result);
FrameworkReducer.cs (1)
306var results = new List<NuGetFramework>(input.Length);
NuGetFramework.cs (1)
142var parts = new List<string>(3) { Framework };
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
19public static List<T> AsList<T>(this IEnumerable<T> enumerable) 21var list = enumerable as List<T>;
NuGet.LibraryModel (11)
LibraryDependencyTargetUtils.cs (1)
126var flagStrings = new List<string>();
LibraryIncludeFlagUtils.cs (1)
87var flagStrings = new List<string>();
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
NuGet.PackageManagement (152)
Audit\AuditChecker.cs (14)
23List<SourceRepository> packageSources, 28private readonly List<SourceRepository> _packageSources = packageSources; 34List<SourceRepository> sourceRepositories, 96List<PackageIdentity> packagesWithReportedAdvisories = new(packagesWithKnownVulnerabilities?.Count ?? 0); 142List<SourceRepository> packageSources, 149List<Task<GetVulnerabilityInfoResult?>> results; 178List<Exception>? errors = null; 179List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? knownVulnerabilities = null; 239internal static List<LogMessage> CreateWarnings(Dictionary<PackageIdentity, PackageAuditInfo> packagesWithKnownVulnerabilities, 248ref List<PackageIdentity> packagesWithReportedAdvisories) 250var warnings = new List<LogMessage>(); 324List<PackageVulnerabilityInfo>? knownVulnerabilitiesForPackage = GetKnownVulnerabilities(packageIdentity.Id, packageIdentity.Version, knownVulnerabilities); 346internal static List<PackageVulnerabilityInfo>? GetKnownVulnerabilities( 412public List<PackageVulnerabilityInfo> Vulnerabilities { get; }
Audit\AuditCheckResult.cs (2)
28internal List<PackageIdentity>? Packages { get; set; } 86List<TelemetryEvent> result = new List<TelemetryEvent>(Packages.Count);
BuildIntegratedInstallationContext.cs (2)
19public required List<string> SuccessfulFrameworks { get; init; } 25public required List<string> UnsuccessfulFrameworks { get; init; }
BuildIntegration\BuildIntegratedProjectAction.cs (1)
147var actions = new List<NuGetProjectAction>();
BuildIntegration\BuildIntegratedRestoreUtility.cs (1)
100var results = updatedPackages
BuildIntegration\DependencyGraphRestoreUtility.cs (2)
248List<IAssetsLogMessage> allAdditionalMessages = null; 250var projects = (await solutionManager.GetNuGetProjectsAsync()).OfType<IDependencyGraphProject>().ToList();
FileModifiers\XmlTransformer.cs (1)
127var elements = new List<XElement>();
IDE\IPackageRestoreManager.cs (1)
57Dictionary<PackageReference, List<string>> packageReferencesDict);
IDE\PackageRestoreManager.cs (14)
119 public IEnumerable<PackageRestoreData> GetPackagesRestoreData(string solutionDirectory, Dictionary<PackageReference, List<string>> packageReferencesDict) 122var packages = new List<PackageRestoreData>(); 128foreach ((var packageReference, var projectNames) in packageReferencesDict) 144private async Task<Dictionary<PackageReference, List<string>>> GetPackagesReferencesDictionaryAsync(CancellationToken token) 146var packageReferencesDict = new Dictionary<PackageReference, List<string>>(PackageReferenceComparer.Instance); 166List<string> projectNames = null; 369List<SourceRepository> sourceRepositories = packageRestoreContext.SourceRepositories.AsList(); 372var missingPackages = packageRestoreContext.Packages.Where(p => p.IsMissing).ToList(); 419private static async Task<AuditCheckResult> RunNuGetAudit(PackageRestoreContext packageRestoreContext, List<SourceRepository> sourceRepositories, IReadOnlyList<SourceRepository> auditSources) 451var tasks = new List<Task<List<AttemptedPackage>>>(); 469private static async Task<List<AttemptedPackage>> PackageRestoreRunnerAsync( 477var attemptedPackages = new List<AttemptedPackage>(); 508var tasks = new List<Task>();
NuGetPackageManager.cs (53)
169var sources = new List<SourceRepository>(); 176var folders = new List<string>(count) 620List<PackageIdentity> packageIdentities, 641List<PackageIdentity> packageIdentities, 680var tasks = new List<Task<IEnumerable<NuGetProjectAction>>>(maxTasks); 681var nugetActions = new List<NuGetProjectAction>(); 683var nuGetProjectList = nuGetProjects.ToList(); 684var buildIntegratedProjects = nuGetProjectList.OfType<BuildIntegratedNuGetProject>().ToList(); 685var nonBuildIntegratedProjects = nuGetProjectList.Except(buildIntegratedProjects).ToList(); 700var packagesToUpdateInProject = packageIdentities; 751var packagesToUpdateInProject = packageIdentities; 793private async Task<List<PackageIdentity>> GetPackagesToUpdateInProjectAsync( 795List<PackageIdentity> packages, 806var packagesToUpdateInProject = packages.Where( 813List<Task<IEnumerable<T>>> updateTasks) 842var actions = new List<NuGetProjectAction>(); 847var lowLevelActions = new List<NuGetProjectAction>(); 941var lowLevelActions = new List<NuGetProjectAction>(); 1024var primaryTargetIds = new List<string>(); 1025var primaryTargets = new List<PackageIdentity>(); 1094var nuGetProjectActions = new List<NuGetProjectAction>(); 1111var allSources = new List<SourceRepository>(primarySources); 1389private static List<NuGetProjectAction> GetProjectActionsForUpdate( 1401var nuGetProjectActions = new List<NuGetProjectAction>(); 1571var primarySources = new List<SourceRepository> { primarySourceRepository }; 1655var results = new List<ResolvedAction>(); 1658var buildIntegratedProjectsToUpdate = new List<BuildIntegratedNuGetProject>(); 1661var otherTargetProjectsToUpdate = new List<NuGetProject>(); 1808var nuGetProjectActions = new List<NuGetProjectAction>(); 1845var primaryPackages = new List<PackageIdentity> { packageIdentity }; 1912var preferredPackageReferences = new List<PackageReference>(projectInstalledPackageReferences.Where(pr => 1954var newPackagesToUninstall = new List<PackageIdentity>(); 2153var results = new List<NuGetProjectAction>(); 2155var buildIntegratedProjectsToUpdate = new List<BuildIntegratedNuGetProject>(); 2156var otherTargetProjectsToUpdate = new List<NuGetProject>(); 2415var projects = nuGetProjects.ToList(); 2418var buildIntegratedProjectsToUpdate = projects.OfType<BuildIntegratedNuGetProject>().ToList(); 2421var sortedProjectsToUpdate = projects.Except(buildIntegratedProjectsToUpdate).ToList(); 2562var actionsList = nuGetProjectActions.ToList(); 2914var result = new List<ResolvedAction>(); 3076var unsuccessfulFrameworks = restoreResult 3084List<(NuGetProjectAction, BuildIntegratedInstallationContext)> projectActionsAndInstallationContexts = new(nuGetProjectActions.Length); 3101var successfulFrameworks = firstInstallationAndProjectContext.Item2.SuccessfulFrameworks.AsList(); 3189internal static BuildIntegratedInstallationContext CreateInstallationContextForPackageId(string packageIdentityId, PackageSpec packageSpec, PackageSpec originalPackageSpec, List<string> unsuccessfulFrameworks) 3203var successfulFrameworksWithPackage = frameworksWithResultingPackage 3244List<PackagePatternItem> newPatternItems = new() 3250List<PackageSourceMappingSourceItem> newAndExistingPackageSourceMappingItems = mappingProvider.GetPackageSourceMappingItems().ToList(); 3436var projects = (await SolutionManager.GetNuGetProjectsAsync()).OfType<BuildIntegratedNuGetProject>().ToList(); 3509List<string> filesToBeUpdated = new(3); // We know that we have 3 files. 3834var tasks = new List<Task<ResolvedPackage>>(); 3856var tasks = new List<Task<ResolvedPackage>>(); 3886var packages = (await dependencyInfoResource.ResolvePackages(packageId, framework, resolutionContext.SourceCacheContext, log, token)).ToList(); 3922var effectiveSources = new List<SourceRepository>(count)
PackageDownloader.cs (6)
77var failedTasks = new List<Task<DownloadResourceResult>>(); 84var groups = new Queue<List<SourceRepository>>(); 85var localGroup = new List<SourceRepository>(); 86var otherGroup = new List<SourceRepository>(); 125var sourceGroup = groups.Dequeue(); 126var tasks = new List<Task<DownloadResourceResult>>();
PackagePreFetcher.cs (1)
113var downloadResults = new List<PackagePreFetcherResult>(maxParallelTasks);
Projects\FolderNuGetProject.cs (1)
162var addedPackageFilesList = new List<string>();
Projects\MSBuildNuGetProject.cs (1)
688var references = (await ProjectServices
Projects\PackagesConfigNuGetProject.cs (3)
106var installedPackagesList = GetInstalledPackagesList(); 198var installedPackagesList = GetInstalledPackagesList(); 324private List<PackageReference> GetInstalledPackagesList()
Projects\ProjectJsonNuGetProject.cs (3)
96var supported = new List<FrameworkName> 140var packages = new List<PackageReference>(); 222var references = (await ProjectServices
Resolution\GatherCache.cs (5)
28private readonly ConcurrentDictionary<GatherAllCacheKey, List<SourcePackageDependencyInfo>> _allPackageVersions 29= new ConcurrentDictionary<GatherAllCacheKey, List<SourcePackageDependencyInfo>>(); 52List<SourcePackageDependencyInfo> packages) 91var packages = new List<SourcePackageDependencyInfo>(1); 111List<SourcePackageDependencyInfo> result;
Resolution\ResolverGather.cs (12)
25private readonly List<SourceResource> _primaryResources = new List<SourceResource>(); 26private readonly List<SourceResource> _allResources = new List<SourceResource>(); 30private readonly List<Task<GatherResult>> _workerTasks; 32private readonly List<GatherResult> _results = new List<GatherResult>(); 138var currentItems = _results.ToList(); 201List<String> allPrimarySourcesList = new List<string>(); 303var packages = new List<SourcePackageDependencyInfo>() { packageInfo }; 395var packages = new List<SourcePackageDependencyInfo>(); 486private async Task<List<SourcePackageDependencyInfo>> GatherPackageFromSourceAsync( 496var results = new List<SourcePackageDependencyInfo>(); 595var getResourceTasks = new List<Task>(); 597var allSources = new List<SourceRepository>();
Resolution\UninstallResolver.cs (3)
77var unMarkedDependents = dependents.Where(d => !packagesMarkedForUninstall.Contains(d)).ToList(); 106var markedPackages = new List<PackageIdentity>(); 140List<PackageIdentity> packageDependents)
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
19public static List<T> AsList<T>(this IEnumerable<T> enumerable) 21var list = enumerable as List<T>;
Utility\BuildIntegratedProjectUtility.cs (1)
90var results = new List<LibraryIdentity>();
Utility\FileSystemUtility.cs (2)
183var trimmedPaths = new List<string>(); 245var filesToDelete = new List<string>();
Utility\JsonConfigUtility.cs (1)
145var results = new List<NuGetFramework>();
Utility\MSBuildNuGetProjectSystemUtility.cs (2)
147var packageItemListAsArchiveEntryNames = frameworkSpecificGroup.Items.ToList(); 276var matchingFiles = new List<InternalZipFileInfo>();
Utility\PackageGraphAnalysisUtilities.cs (2)
81var dependantPackages = new List<PackageDependencyInfo>(); 100var packageWithDependants = new List<PackageWithDependants>();
Utility\PackagesConfigLockFileUtility.cs (5)
29List<NuGetProjectAction> actionsList, 103var errors = new List<IRestoreLogMessage>(); 136var errors = new List<IRestoreLogMessage>(); 151var errors = new List<IRestoreLogMessage>(); 225List<NuGetProjectAction> actionsList,
Utility\XElementExtensions.cs (1)
190var sourceElements = source.Elements(targetChild.Name).ToList();
NuGet.Packaging (178)
ContentModel\ContentItemCollection.cs (10)
19private static readonly SimplePool<List<Asset>> ListAssetPool = new(() => new List<Asset>()); 20private static readonly SimplePool<Dictionary<ContentItem, List<Asset>>> GroupAssetsPool = new(() => new(GroupComparer.DefaultComparer)); 22private List<Asset>? _assets; 96Dictionary<ContentItem, List<Asset>>? groupAssets = null; 105if (!groupAssets.TryGetValue(item, out var assets)) 120if (contentItemGroupList is List<ContentItemGroup> list) 152List<ContentItemGroup> itemGroups = new List<ContentItemGroup>(); 248private List<ContentItem> FindItemsImplementation(PatternSet definition, IEnumerable<Asset> assets) 252List<ContentItem> items = new(); 291List<string>? relatedFileExtensionList = null;
ContentModel\ContentPropertyDefinition.cs (1)
67public List<string>? FileExtensions { get; }
ContentModel\Infrastructure\Parser.cs (1)
14private readonly List<Segment> _segments = new List<Segment>();
Core\NuspecUtility.cs (1)
69var packageTypes = new List<PackageType>();
Core\PackageDependency.cs (1)
19private static readonly List<string> EmptyList = new List<string>();
FallbackPackagePathResolver.cs (2)
17private readonly List<VersionFolderPathResolver> _pathResolvers; 41var packageFolders = new List<string>();
NuspecReader.cs (8)
214var results = new List<FrameworkSpecificGroup>(); 224var frameworks = new List<NuGetFramework>(); 446List<string>? errors = null; 633private static readonly List<string> EmptyList = new List<string>(); 635private static List<string> GetFlags(string? flags) 652var result = new List<string>(set.Count); 704var includeFlags = GetFlags(GetAttributeValue(depNode, IncludeFlags)); 705var excludeFlags = GetFlags(GetAttributeValue(depNode, ExcludeFlags));
PackageArchiveReader.cs (1)
289var filesCopied = new List<string>();
PackageCreation\Authoring\Manifest.cs (1)
268var results = new List<string>();
PackageCreation\Authoring\ManifestMetadata.cs (3)
227var groupedReferenceSets = referenceSetGroups.Select(group => new PackageReferenceSet(group.Key, group.SelectMany(g => g.References))) 258var groupedDependencySets = dependencySetGroups.Select(group => new PackageDependencyGroup(group.Key, new HashSet<PackageDependency>(group.SelectMany(g => g.Packages)))) 282var dependenciesList = dependencyGroup.Packages.Select(dependency =>
PackageCreation\Authoring\ManifestReader.cs (11)
244private static List<ManifestContentFiles> ReadContentFiles(XElement contentFilesElement) 251var contentFileSets = (from element in contentFilesElement.ElementsNoNamespace("files") 270private static List<PackageReferenceSet> ReadReferenceSets(XElement referencesElement) 283var references = ReadReference(referencesElement, throwIfEmpty: false); 299public static List<string> ReadReference(XElement referenceElement, bool throwIfEmpty) 301var references = referenceElement.ElementsNoNamespace("reference") 315private static List<FrameworkAssemblyReference> ReadFrameworkAssemblies(XElement frameworkElement) 332private static List<PackageDependencyGroup> ReadDependencyGroups(XElement dependenciesElement) 387var dependency = (from element in containerElement.ElementsNoNamespace("dependency") 401private static List<ManifestFile>? ReadFilesList(XElement? xElement) 408var files = new List<ManifestFile>();
PackageCreation\Authoring\PackageBuilder.cs (5)
388List<string> creatorInfo = new List<string>(); 706var frameworkPatterns = new List<PatternSet>() 721List<ContentItemGroup> targetedItemGroups = new(); 992List<PhysicalPackageFile> searchFiles = ResolveSearchPattern(basePath, source.Replace('\\', Path.DirectorySeparatorChar), destination, _includeEmptyDirectories).ToList(); 1091private static void ExcludeFiles(List<PhysicalPackageFile> searchFiles, string basePath, string? exclude)
PackageCreation\Extensions\CollectionExtensions.cs (1)
12if (collection is List<T> list)
PackageCreation\Extensions\XElementExtensions.cs (1)
86var sourceElements = source.Elements(targetChild.Name).ToList();
PackageCreation\Xml\PackageMetadataXmlExtensions.cs (8)
154var groupableSets = new List<TSet>(); 155var ungroupableSets = new List<TSet>(); 169var childElements = new List<XElement>(); 212var attributes = new List<XAttribute>(); 264var attributes = new List<XAttribute?> 278var attributes = new List<XAttribute?>(); 291var attributeList = new List<XAttribute>(); 334var attributes = new List<XAttribute?>();
PackageExtraction\PackageHelper.cs (1)
136var satelliteFileEntries = new List<string>();
PackageExtractor.cs (5)
63var filesAdded = new List<string>(); 190var filesAdded = new List<string>(); 296var filesAdded = new List<string>(); 1009var satelliteFiles = result.Item2 1059var verificationProviders = new List<ISignatureVerificationProvider>()
PackageFolderReader.cs (1)
202var filesCopied = new List<string>();
PackageReaderBase.cs (8)
203var results = new List<FrameworkSpecificGroup>(); 253var fileGroups = new List<FrameworkSpecificGroup>(); 262var libItems = new List<FrameworkSpecificGroup>(); 290var filteredItems = new List<string>(); 427var groups = new Dictionary<NuGetFramework, List<string>>(NuGetFrameworkFullComparer.Instance); 435List<string>? items = null; 446foreach ((var framework, var items) in groups.OrderBy(e => e.Key, NuGetFrameworkSorter.Instance)) 533var nuspecPaths = files
PackageReaderExtensions.cs (1)
31var satelliteFiles = new List<string>();
PackagesConfigReader.cs (1)
141var packages = new List<PackageReference>();
Rules\AccidentallyCompatibleWithAllFrameworksRule.cs (5)
38List<ContentItemGroup> items = new(); 58List<string>? suggestedFrameworks = null; 90var issue = new List<PackagingLogMessage>(); 99private static (string, string) GenerateWarningString(List<string> possibleFrameworks) 114private static string CreateDirectoriesMessage(List<string> possibleFrameworks)
Rules\ContentFolderInPackageReferenceProjectRule.cs (1)
35var issue = new List<PackagingLogMessage>();
Rules\DependenciesGroupsForEachTFMRule.cs (4)
40var issues = new List<PackagingLogMessage>(); 67List<ContentItemGroup> libItems = new(); 68List<ContentItemGroup> refItems = new(); 76var tfmsFromFiles = tfmsFromFilesSet.Where(t => t != Net00).ToList();
Rules\InstallScriptInPackageReferenceProjectRule.cs (1)
29var issue = new List<PackagingLogMessage>();
Rules\InvalidUndottedFrameworkRule.cs (6)
99var messages = new List<PackagingLogMessage>(); 128var messages = new List<PackagingLogMessage>(); 175var messages = new List<PackagingLogMessage>(); 204var frameworkPatterns = new List<PatternSet>() 219List<ContentItemGroup> targetedItemGroups = new(); 243var messages = new List<PackagingLogMessage>();
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (5)
51var missingReferences = new List<MissingReference>(); 58var keys = GetAllKeys(filesByTFM); 130var issues = new List<PackagingLogMessage>(); 180internal List<string> GetAllKeys(IEnumerable<IGrouping<string, string>> filesByTFM) 182var keys = new List<string>();
Rules\UnrecognizedLicenseIdentifierRule.cs (1)
28var warnings = new List<PackagingLogMessage>();
Rules\UpholdBuildConventionRule.cs (3)
35var expectedFiles = FindAbsentExpectedFiles(filesInPackage, packageId); 59internal List<ExpectedFile> FindAbsentExpectedFiles(IEnumerable<string> files, string packageId) 61var expectedFiles = new List<ExpectedFile>();
RuntimeModel\JsonRuntimeFormat.cs (4)
152var runtimes = frameworkGroup.ToList(); 170var sets = new List<FrameworkRuntimePair>(); 200List<string>? inheritedRuntimes = null; 201List<RuntimeDependencySet>? additionalDependencies = null;
RuntimeModel\RuntimeDescription.cs (1)
86List<string> inheritedRuntimes;
RuntimeModel\RuntimeGraph.cs (7)
21private readonly ConcurrentDictionary<RuntimeDependencyKey, List<RuntimePackageDependency>>? _dependencyCache; 192var expansions = Cache<string>.RentList(); 281static List<RuntimePackageDependency> FindRuntimeDependenciesInternal(RuntimeDependencyKey key, RuntimeGraph runtimeGraph) 336[ThreadStatic] private static List<T>? _list; 359public static List<T> RentList() 361var list = _list; 371public static void ReleaseList(List<T> list)
Signing\Archive\ExtraField.cs (1)
76var fields = new List<ExtraField>();
Signing\Archive\SignedPackageArchiveIOUtility.cs (2)
237var centralDirectoryRecords = new List<CentralDirectoryHeaderMetadata>(); 347var centralDirectoryRecords = new List<CentralDirectoryHeaderMetadata>();
Signing\Archive\SignedPackageArchiveMetadata.cs (1)
16public required List<CentralDirectoryHeaderMetadata> CentralDirectoryHeaders { get; set; }
Signing\Archive\SignedPackageArchiveUtility.cs (4)
461var centralDirectoryRecordsWithoutSignature = RemoveSignatureAndOrderByOffset(metadata); 524private static List<CentralDirectoryHeaderMetadata> RemoveSignatureAndOrderByOffset(SignedPackageArchiveMetadata metadata) 527var centralDirectoryRecordsList = metadata.CentralDirectoryHeaders.Where((v, i) => i != metadata.SignatureCentralDirectoryHeaderIndex).ToList(); 572var centralDirectoryRecordsWithoutSignature = RemoveSignatureAndOrderByOffset(metadata);
Signing\Cms\HeapBlockRetainer.cs (1)
53private List<SafeLocalAllocHandle>? _blocks;
Signing\DerEncoding\DerEncoder.cs (2)
491List<byte> encodedBytes = new List<byte>(oidValue.Length / 2); 1003private static void EncodeRid(List<byte> encodedData, ref BigInteger rid)
Signing\Signatures\AuthorPrimarySignature.cs (1)
29var issues = new List<SignatureLog>();
Signing\Signatures\CommitmentTypeIndication.cs (1)
54List<CommitmentTypeQualifier>? qualifiers = null;
Signing\Signatures\IssuerSerial.cs (1)
84var generalNames = new List<GeneralName>(capacity: 1);
Signing\Signatures\NuGetPackageOwners.cs (1)
45var packageOwners = new List<string>();
Signing\Signatures\PolicyInformation.cs (1)
59var policyQualifiers = new List<PolicyQualifierInfo>();
Signing\Signatures\RepositoryCountersignature.cs (1)
95var issues = new List<SignatureLog>();
Signing\Signatures\RepositoryPrimarySignature.cs (1)
34var issues = new List<SignatureLog>();
Signing\Signatures\Signature.cs (3)
72List<SignatureLog> issues, 144var issues = new List<SignatureLog>(); 395var timestampList = new List<Timestamp>();
Signing\Signatures\SigningCertificate.cs (4)
41var certificates = ReadCertificates(essCertIdReader); 58private static List<EssCertId> ReadCertificates(DerSequenceReader reader) 60var certificates = new List<EssCertId>(); 74var policies = new List<PolicyInformation>();
Signing\Signatures\SigningCertificateV2.cs (3)
75var entries = new List<byte[][]>(Certificates.Count); 87var certificates = new List<EssCertIdV2>(); 101var policies = new List<PolicyInformation>();
Signing\Timestamp\Extensions.cs (1)
35var extensions = new List<Extension>();
Signing\Timestamp\Timestamp.cs (1)
100List<SignatureLog> issues)
Signing\Utility\AttributeUtility.cs (2)
53var knownValues = values.Where(e => e != SignatureType.Unknown).ToList(); 295var values = new List<SignatureType>(capacity: 1);
Signing\Utility\CertificateChainUtility.cs (1)
108var fatalStatuses = new List<X509ChainStatus>();
Signing\Utility\CertificateUtility.cs (4)
49var issues = new List<SignatureLog>(); 397var certificatesRawData = new List<byte[]>(capacity: certificates.Count); 478var urls = new List<string>(); 544var urls = new List<string>();
Signing\Utility\SignatureUtility.cs (1)
292internal static void LogAdditionalContext(IX509Chain chain, List<SignatureLog> issues)
Signing\Utility\VerificationUtility.cs (2)
57internal static SignatureVerificationStatusFlags ValidateSigningCertificate(X509Certificate2 certificate, bool treatIssuesAsErrors, string signatureFriendlyName, List<SignatureLog> issues) 98internal static SignatureVerificationStatusFlags ValidateTimestamp(Timestamp timestamp, Signature signature, bool treatIssuesAsErrors, List<SignatureLog> issues, SigningSpecifications spec)
Signing\Verification\AllowListVerificationProvider.cs (1)
39var issues = new List<SignatureLog>();
Signing\Verification\IntegrityVerificationProvider.cs (1)
24var issues = new List<SignatureLog>();
Signing\Verification\PackageSignatureVerifier.cs (2)
16private readonly List<ISignatureVerificationProvider> _verificationProviders; 36var trustResults = new List<PackageVerificationResult>();
Signing\Verification\SignatureTrustAndValidityVerificationProvider.cs (1)
205var issues = new List<SignatureLog>();
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
19public static List<T> AsList<T>(this IEnumerable<T> enumerable) 21var list = enumerable as List<T>;
TopologicalSortUtility.cs (11)
50var itemInfos = new List<ItemDependencyInfo>(); 65var sortedInfos = SortPackagesByDependencyOrder(itemInfos, comparer); 68var sorted = new List<T>(sortedInfos.Count); 93private static List<ItemDependencyInfo> SortPackagesByDependencyOrder(List<ItemDependencyInfo> items, StringComparer comparer) 107var sorted = new List<ItemDependencyInfo>(toSort.Length); 129var children = package.Children; 152var parents = dependencyPackage.Parents; 161var packageChildren = package.Children; 228public List<ItemDependencyInfo>? Parents; 229public List<ItemDependencyInfo>? Children;
NuGet.ProjectModel (75)
DependencyGraphSpec.cs (3)
93var parents = new List<PackageSpec>(); 179var closure = new List<PackageSpec>(); 240var projects =
JsonPackageSpecReader.cs (1)
60private static void ExtractMacros(List<string> paths, string userSettingsDirectory, bool useMacros)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (26)
116List<CompatibilityProfile> compatibilityProfiles = null; 117List<RuntimeDescription> runtimeDescriptions = null; 548List<FrameworkRuntimePair> sets = null; 722private static void ReadImports(PackageSpec packageSpec, ref Utf8JsonStreamReader jsonReader, List<NuGetFramework> importFrameworks) 754List<string> configFilePaths = null; 756List<string> fallbackFolders = null; 757List<ProjectRestoreMetadataFile> files = null; 759List<string> originalTargetFrameworks = null; 770List<PackageSource> sources = null; 806configFilePaths = jsonReader.ReadStringArrayAsIList() as List<string>; 816fallbackFolders = jsonReader.ReadStringArrayAsIList() as List<string>; 843originalTargetFrameworks = jsonReader.ReadStringArrayAsIList() as List<string>; 1200List<RuntimePackageDependency> dependencies = null; 1222List<string> inheritedRuntimes = null; 1223List<RuntimeDependencySet> additionalDependencies = null; 1232inheritedRuntimes = jsonReader.ReadStringArrayAsIList() as List<string>; 1252private static List<RuntimeDescription> ReadRuntimes(ref Utf8JsonStreamReader jsonReader) 1254List<RuntimeDescription> runtimeDescriptions = null; 1269private static List<CompatibilityProfile> ReadSupports(ref Utf8JsonStreamReader jsonReader) 1271List<CompatibilityProfile> compatibilityProfiles = null; 1313private static List<ProjectRestoreMetadataFrameworkInfo> ReadTargetFrameworks(ref Utf8JsonStreamReader jsonReader) 1315List<ProjectRestoreMetadataFrameworkInfo> targetFrameworks = null; 1324List<ProjectRestoreReference> projectReferences = new(); 1425List<LibraryDependency> dependencies = null; 1426List<DownloadDependency> downloadDependencies = null; 1428List<NuGetFramework> imports = null;
JsonTextReaderExtensions.cs (3)
127internal static List<string> ReadStringArrayAsList(this JsonTextReader reader) 134List<string> strings = null; 180List<string> strings = null;
JsonUtility.cs (1)
114var items = new List<TItem>(jObject.Count);
LockFile\LockFileTargetLibrary.cs (1)
47var list = new List<T>();
LockFile\Utf8JsonStreamIAssetsLogMessageConverter.cs (1)
126targetGraphs = (List<string>)reader.ReadStringArrayAsIList();
LockFile\Utf8JsonStreamLockFileTargetLibraryConverter.cs (1)
193var packageDependencies = new List<PackageDependency>(10);
MacroStringsUtility.cs (1)
35internal static void ExtractMacros(List<string> list, string macroValue, string macroName)
PackageSpec.cs (1)
125List<TargetFrameworkInformation> targetFrameworks;
PackageSpecExtensions.cs (2)
101List<TargetFrameworkInformation>? frameworks = null; 141static void FindMatchingFrameworks(PackageSpec project, NuGetFramework targetFramework, ref TargetFrameworkInformation? matchedFramework, ref List<TargetFrameworkInformation>? matchingFrameworks)
PackageSpecReferenceDependencyProvider.cs (16)
122List<LibraryDependency> dependencies; 136List<LibraryDependency> uniqueDependencies = DeduplicateDependencies(dependencies); 167static List<LibraryDependency> DeduplicateDependencies(List<LibraryDependency> dependencies) 175var uniqueDependencies = new List<LibraryDependency>(dependencies.Count); 211var frameworks = new List<NuGetFramework>( 223var frameworkAssemblies = targetFrameworkInfo.Dependencies 236private List<LibraryDependency> GetDependenciesFromSpecRestoreMetadata(PackageSpec packageSpec, NuGetFramework targetFramework, string targetAlias) 250List<LibraryDependency> dependencies = GetSpecDependencies(packageSpec, targetFrameworkInfo); 339private List<LibraryDependency> GetDependenciesFromExternalReference(ExternalProjectReference externalReference) 343var childReferences = GetChildReferences(externalReference); 344var childReferenceNames = childReferences.Select(reference => reference.ProjectName).ToList(); 368private List<LibraryDependency> GetSpecDependencies( 372List<LibraryDependency> dependencies = [.. targetFrameworkInfo.Dependencies]; 423private List<ExternalProjectReference> GetChildReferences(ExternalProjectReference parent) 425var children = new List<ExternalProjectReference>(parent.ExternalProjectReferences.Count);
PackageSpecWriter.cs (2)
115var fallbackFolderCopy = msbuildMetadata.FallbackFolders.ToList(); 116var configFilePathsCopy = msbuildMetadata.ConfigFilePaths.ToList();
ProjectLockFile\PackagesLockFileUtilities.cs (4)
86List<string> invalidReasons = new List<string>(); 165var transitiveDependenciesEnforcedByCentralVersions = target.Dependencies.Where(dep => dep.Type == PackageDependencyType.CentralTransitive).ToList(); 166var transitiveDependencies = target.Dependencies.Where(dep => dep.Type == PackageDependencyType.Transitive).ToList(); 374var matchedDependencies = new List<KeyValuePair<LockFileDependency, LockFileDependency>>();
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (2)
143var listObjects = new List<T>(); 320List<string> strings = null;
ToolPathResolver.cs (1)
101var availableVersions = new List<NuGetVersion>();
NuGet.Protocol (215)
_generated\10\PackageSearchJsonContext.V3SearchResults.g.cs (3)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>> 88AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.V3SearchResults).GetProperty("Data", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>>(options, info1);
_generated\104\JsonContext.FlatContainerVersionList.g.cs (3)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<string>> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.FlatContainerVersionList).GetProperty("Versions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<string>>(options, info0);
_generated\108\JsonContext.RegistrationIndex.g.cs (3)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.RegistrationIndex).GetProperty("Items", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>>(options, info0);
_generated\110\JsonContext.RegistrationPage.g.cs (3)
75var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>> 90AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.RegistrationPage).GetProperty("Items", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>), global::System.Array.Empty<global::System.Type>(), null), 93properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>>(options, info1);
_generated\112\JsonContext.ServiceIndexModel.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Model.ServiceIndexModel((string)args[0], (global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexModel).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>)}, modifiers: null), 74var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>> 89AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexModel).GetProperty("Resources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>), global::System.Array.Empty<global::System.Type>(), null), 92properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>>(options, info1); 112ParameterType = typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>),
_generated\129\JsonContext.ListRegistrationLeafItem.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>>? _ListRegistrationLeafItem; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>> ListRegistrationLeafItem 22get => _ListRegistrationLeafItem ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>> Create_ListRegistrationLeafItem(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>, global::NuGet.Protocol.Model.RegistrationLeafItem>(options, info);
_generated\130\JsonContext.ListRegistrationPage.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>>? _ListRegistrationPage; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>> ListRegistrationPage 22get => _ListRegistrationPage ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>> Create_ListRegistrationPage(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>, global::NuGet.Protocol.Model.RegistrationPage>(options, info);
_generated\131\JsonContext.ListServiceIndexEntryModel.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>>? _ListServiceIndexEntryModel; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>> ListServiceIndexEntryModel 22get => _ListServiceIndexEntryModel ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>> Create_ListServiceIndexEntryModel(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>, global::NuGet.Protocol.Model.ServiceIndexEntryModel>(options, info);
_generated\132\JsonContext.ListString.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>? _ListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> ListString 22get => _ListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> Create_ListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<string>, string>(options, info);
_generated\143\JsonContext.GetJsonTypeInfo.g.cs (4)
150if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>)) 154if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>)) 158if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>)) 162if (type == typeof(global::System.Collections.Generic.List<string>))
_generated\24\PackageSearchJsonContext.ListRegistrationLeafItem.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>>? _ListRegistrationLeafItem; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>> ListRegistrationLeafItem 22get => _ListRegistrationLeafItem ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>> Create_ListRegistrationLeafItem(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>, global::NuGet.Protocol.Model.RegistrationLeafItem>(options, info);
_generated\25\PackageSearchJsonContext.ListRegistrationPage.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>>? _ListRegistrationPage; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>> ListRegistrationPage 22get => _ListRegistrationPage ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>> Create_ListRegistrationPage(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>, global::NuGet.Protocol.Model.RegistrationPage>(options, info);
_generated\26\PackageSearchJsonContext.ListPackageSearchMetadata.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>>? _ListPackageSearchMetadata; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>> ListPackageSearchMetadata 22get => _ListPackageSearchMetadata ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>> Create_ListPackageSearchMetadata(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>, global::NuGet.Protocol.PackageSearchMetadata>(options, info);
_generated\36\PackageSearchJsonContext.GetJsonTypeInfo.g.cs (3)
118if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>)) 122if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>)) 126if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>))
_generated\7\PackageSearchJsonContext.RegistrationIndex.g.cs (3)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.RegistrationIndex).GetProperty("Items", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>>(options, info0);
_generated\9\PackageSearchJsonContext.RegistrationPage.g.cs (3)
75var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>> 90AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.RegistrationPage).GetProperty("Items", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>), global::System.Array.Empty<global::System.Type>(), null), 93properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationLeafItem>>(options, info1);
CachingSourceProvider.cs (2)
19private readonly List<Lazy<INuGetResourceProvider>> _resourceProviders 21private readonly List<SourceRepository> _repositories = new List<SourceRepository>();
Converters\MetadataFieldStjConverter.cs (1)
33List<string>? rest = null;
Converters\MetadataStringOrArrayStjConverter.cs (1)
56var values = new List<string>();
Converters\PackageDependencyGroupStjConverter.cs (1)
30var packages = new List<PackageDependency>();
Converters\ServiceIndexEntryStringOrArrayConverter.cs (1)
23List<string>? values = null;
DependencyInfo\ResolverMetadataClient.cs (2)
177var dependencyGroups = new List<PackageDependencyGroup>(); 188var groupDependencies = new List<PackageDependency>();
HttpSource\HttpRetryHandler.cs (2)
99var stopwatches = new List<Stopwatch>(2); 109requestMessage.Options.Set(new HttpRequestOptionsKey<List<Stopwatch>>(StopwatchPropertyName), stopwatches);
HttpSource\HttpSourceAuthenticationHandler.cs (2)
106List<Stopwatch>? stopwatches = null; 110new HttpRequestOptionsKey<List<Stopwatch>>(HttpRetryHandler.StopwatchPropertyName),
LegacyFeed\AutoCompleteResourceV2Feed.cs (1)
75var versions = results.ToList();
LegacyFeed\DependencyInfoResourceV2Feed.cs (1)
76var results = new List<SourcePackageDependencyInfo>();
LegacyFeed\MetadataResourceV2Feed.cs (1)
36var results = new List<KeyValuePair<string, NuGetVersion?>>();
LegacyFeed\V2FeedPackageInfo.cs (2)
250var results = new Dictionary<NuGetFramework, List<PackageDependency>>(NuGetFrameworkFullComparer.Instance); 290if (!results.TryGetValue(framework, out List<PackageDependency>? deps))
LegacyFeed\V2FeedPage.cs (1)
14public V2FeedPage(List<V2FeedPackageInfo> items, string? nextUri)
LegacyFeed\V2FeedParser.cs (1)
435var results = new List<V2FeedPackageInfo>();
LegacyFeed\V2FeedUtilities.cs (1)
55var results = new List<VersionInfo>();
LocalRepositories\FindLocalPackagesResourceUnzipped.cs (1)
114var result = new List<LocalPackageInfo>(validSet.Count);
LocalRepositories\LocalDependencyInfoResource.cs (1)
110var results = new List<SourcePackageDependencyInfo>();
LocalRepositories\LocalMetadataResource.cs (1)
40var results = new List<KeyValuePair<string, NuGetVersion?>>();
LocalRepositories\LocalPackageSearchResource.cs (2)
154private static List<VersionInfo> GetVersions( 164var versions = localResource.FindPackagesById(package.Identity.Id, log, token)
LocalRepositories\LocalV2FindPackageByIdResource.cs (1)
424var result = new List<LocalPackageInfo>();
LocalRepositories\LocalV3FindPackageByIdResource.cs (7)
30private readonly ConcurrentDictionary<string, List<NuGetVersion>> _cache 31= new ConcurrentDictionary<string, List<NuGetVersion>>(StringComparer.OrdinalIgnoreCase); 483private List<NuGetVersion> GetVersions(string id, SourceCacheContext cacheContext, ILogger logger) 485List<NuGetVersion>? results = null; 487Func<string, List<NuGetVersion>> findPackages = (keyId) => GetVersionsCore(keyId, logger); 501private List<NuGetVersion> GetVersionsCore(string id, ILogger logger) 503var versions = new List<NuGetVersion>();
Model\PackageSearchMetadata.cs (1)
233List<string>? errors = null;
Model\RegistrationIndex.cs (1)
17public List<RegistrationPage>? Items { get; set; }
Model\RegistrationPage.cs (1)
30public List<RegistrationLeafItem>? Items { get; set; }
Model\ServiceIndexModel.cs (2)
17public List<ServiceIndexEntryModel>? Resources { get; } 20public ServiceIndexModel(string? version, List<ServiceIndexEntryModel>? resources)
Model\V3SearchResults.cs (1)
19public List<PackageSearchMetadata> Data { get; set; } = new List<PackageSearchMetadata>();
PackagesFolder\NuGetv3LocalRepository.cs (5)
27private readonly ConcurrentDictionary<string, List<LocalPackageInfo>> _cache 28= new ConcurrentDictionary<string, List<LocalPackageInfo>>(StringComparer.OrdinalIgnoreCase); 142private List<LocalPackageInfo> FindPackagesByIdImpl(string packageId) 168private List<LocalPackageInfo> GetPackages(string id) 170var packages = new List<LocalPackageInfo>();
Plugins\PluginDiscoverer.cs (13)
21private List<PluginFile>? _pluginFiles; 109var directories = new List<string> { PluginDiscoveryUtility.GetNuGetHomePluginsPath() }; 132var results = new List<PluginDiscoveryResult>(); 153private static List<PluginFile> GetPluginFiles(IEnumerable<string>? filePaths, CancellationToken cancellationToken) 157var files = new List<PluginFile>(); 188internal List<PluginFile> GetPluginsInNuGetPluginPaths() 190var pluginFiles = new List<PluginFile>(); 215List<PluginFile>? plugins = GetNetToolsPluginsInDirectory(path); 236internal List<PluginFile> GetPluginsInPath() 238var pluginFiles = new List<PluginFile>(); 246List<PluginFile>? plugins = GetNetToolsPluginsInDirectory(path); 258private static List<PluginFile>? GetNetToolsPluginsInDirectory(string directoryPath) 260List<PluginFile>? pluginFiles = null;
Plugins\PluginDiscoveryUtility.cs (1)
80var paths = new List<string>();
Plugins\PluginManager.cs (1)
141var pluginCreationResults = new List<PluginCreationResult>();
Plugins\PluginPackageReader.cs (6)
614var results = new List<FrameworkSpecificGroup>(); 811var fileGroups = new List<FrameworkSpecificGroup>(); 820var libItems = new List<FrameworkSpecificGroup>(); 848var filteredItems = new List<string>(); 993var groups = new Dictionary<NuGetFramework, List<string>>(NuGetFrameworkFullComparer.Instance); 1003List<string>? items = null;
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (1)
613public List<string>? Versions { get; set; }
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (4)
38private readonly TaskResultCache<string, List<PackageInfo>> _packageVersionsCache = new(StringComparer.OrdinalIgnoreCase); 443List<PackageInfo> result = await _packageVersionsCache.GetOrAddAsync( 452private async Task<List<PackageInfo>> FindPackagesByIdAsyncCore( 467var results = new List<PackageInfo>();
Resources\AutoCompleteResourceV3.cs (3)
117var outputs = new List<string>(); 180var versions = new List<NuGetVersion>(); 202var versions = new List<NuGetVersion>();
Resources\DependencyInfoResourceV3.cs (1)
112var results = new List<SourcePackageDependencyInfo>();
Resources\MetadataResourceV3.cs (5)
53var results = new List<KeyValuePair<string, NuGetVersion?>>(); 151private async Task<List<NuGetVersion>> GetVersionsFromItemsAsync( 161var versions = new List<NuGetVersion>(); 183private async Task<List<NuGetVersion>> GetVersionsFromJObjectsAsync( 193var versions = new List<NuGetVersion>();
Resources\PackageMetadataResourceV3.cs (2)
130var results = new List<PackageSearchMetadataRegistration>(); 299List<PackageSearchMetadataRegistration> results,
Resources\PackageSearchResourceV3.cs (2)
66List<IPackageSearchMetadata> searchResults = new(searchResultMetadata.Count); 81var versions = new List<VersionInfo>(parsedVersions.Length + 1);
Resources\RegistrationResourceV3.cs (2)
130var results = new List<JObject>(); 190var results = new List<RegistrationLeafItem>();
Resources\ServiceIndexResourceV3.cs (11)
29private readonly IDictionary<string, List<ServiceIndexEntry>> _index; 106List<ServiceIndexEntry>? entries; 121private IReadOnlyList<ServiceIndexEntry> GetBestVersionMatchForType(NuGetVersion clientVersion, List<ServiceIndexEntry> entries) 170private static IDictionary<string, List<ServiceIndexEntry>> MakeLookup(ServiceIndexModel index, PackageSource? packageSource) 172var result = new Dictionary<string, List<ServiceIndexEntry>>(StringComparer.Ordinal); 192var clientVersions = new List<SemanticVersion>(); 212if (!result.TryGetValue(type, out List<ServiceIndexEntry>? entries)) 235private static IDictionary<string, List<ServiceIndexEntry>> MakeLookup(JObject index, PackageSource? packageSource) 237var result = new Dictionary<string, List<ServiceIndexEntry>>(StringComparer.Ordinal); 262var clientVersions = new List<SemanticVersion>(); 287List<ServiceIndexEntry>? entries;
Resources\VulnerabilityInfoResourceV3.cs (5)
131List<Exception>? exceptions = null; 132List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? knownVulnerabilities = null; 201private IReadOnlyList<V3VulnerabilityIndexEntry> GetValidIndexEntries(IReadOnlyList<V3VulnerabilityIndexEntry> indexEntries, ref List<Exception>? exceptions) 203List<V3VulnerabilityIndexEntry> validIndexEntries = new(indexEntries.Count); 278private static void AddException(Exception exception, ref List<Exception>? exceptions)
SourceRepository.cs (1)
190var items = new List<INuGetResourceProvider>(group.Count());
SourceRepositoryProvider.cs (1)
18private List<SourceRepository> _repositories;
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
Utility\LocalFolderUtility.cs (9)
206foreach (var directoryList in GetNupkgsFromFlatFolderChunked(rootDirInfo, log, cancellationToken)) 729foreach (var directoryList in GetNupkgsFromFlatFolderChunked(rootDirectoryInfo, log, cancellationToken)) 857private static IEnumerable<List<FileInfo>> GetNupkgsFromFlatFolderChunked(DirectoryInfo root, ILogger log, CancellationToken cancellationToken) 878var topLevel = GetNupkgsFromDirectory(root, log, cancellationToken); 888var files = GetNupkgsFromDirectory(subDirectory, log, cancellationToken); 1137private static List<DirectoryInfo> GetDirectoriesSafe(DirectoryInfo root, ILogger log, CancellationToken cancellationToken) 1157private static List<DirectoryInfo> GetDirectoriesSafe(DirectoryInfo root, string filter, SearchOption searchOption, ILogger log, CancellationToken cancellationToken) 1180internal static List<FileInfo> GetFilesSafe(DirectoryInfo root, string filter, ILogger log, CancellationToken cancellationToken) 1246private static List<FileInfo> GetNupkgsFromDirectory(DirectoryInfo root, ILogger log, CancellationToken cancellationToken)
NuGet.Resolver (48)
CombinationSolver.cs (10)
38private readonly List<HashSet<T>> _currentDomains; 40private readonly List<List<T>> _currentDomainsSorted; 46private readonly List<HashSet<int>> _conflictSet; 52private readonly List<Stack<int>> _pastForwardChecking; 57private readonly List<Stack<int>> _futureForwardChecking; 63private readonly List<Stack<Stack<T>>> _reductions; 75var initialDomains = groupedItems.ToList(); 84foreach (var list in _currentDomainsSorted) 347var sorted = _currentDomainsSorted[pos];
PackageResolver.cs (11)
47var invalidExistingPackages = new List<string>(); 96var resolverPackages = new List<ResolverPackage>(); 123var grouped = new List<List<ResolverPackage>>(); 130var curSet = group.ToList(); 172var sortedGroups = ResolverInputSort.TreeFlatten(grouped, context); 244List<SourcePackageDependencyInfo> before; 245List<SourcePackageDependencyInfo> after = new List<SourcePackageDependencyInfo>(packages); 257private static List<SourcePackageDependencyInfo> InnerPruneImpossiblePackages(List<SourcePackageDependencyInfo> packages, ISet<string> mustKeep) 297var result = packages.Where(
ResolverInputSort.cs (10)
31public static List<List<ResolverPackage>> TreeFlatten(List<List<ResolverPackage>> grouped, PackageResolverContext context) 33var sorted = new List<List<ResolverPackage>>(); 36var groupIds = grouped.Select(group => group.First().Id).ToList(); 39var dependencies = grouped.Select(group => new SortedSet<string>( 62var idsToSort = new List<string>(groupIds); 83var nextGroup = grouped.Single(group => StringComparer.OrdinalIgnoreCase.Equals(group.First().Id, nextId));
ResolverUtility.cs (8)
46var requiredPackages = solution.Where(package => requiredPackageIds.Contains(package.Id)).ToList(); 312var dependencyIds = walkedPackages.SelectMany(package => package.Dependencies.Select(dependency => dependency.Id)).ToList(); 328var result = new List<ResolverPackage>(); 404var result = FindCircularDependency(package, packageLookUp, visitedPackages); 414private static List<ResolverPackage> FindCircularDependency(ResolverPackage package, Dictionary<string, ResolverPackage> packageLookUp, HashSet<ResolverPackage> visitedPackages) 431var parentPackages = new List<ResolverPackage>(source.ParentPackages); 468public QueueNode(ResolverPackage package, List<ResolverPackage> parentPackages) 482public List<ResolverPackage> ParentPackages { get; }
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
NuGet.Versioning (13)
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (9)
21/// If the underlying type is <see cref="List{T}"/> then this method will delegate to <see cref="List{T}.Enumerator"/>, 71private List<T>.Enumerator _listEnumerator; 82else if (list is List<T> concreteList) 136/// has a well known struct enumerator, such as for <see cref="List{T}"/>, or when index-based access is possible via 141/// Several collection types (e.g. <see cref="List{T}"/>) provide a struct-based enumerator type 142/// (e.g. <see cref="List{T}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 202private List<T>.Enumerator _listEnumerator; 214else if (source is List<T> list)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
19public static List<T> AsList<T>(this IEnumerable<T> enumerable) 21var list = enumerable as List<T>;
VersionRange.cs (1)
390var fixedLabels = version.ReleaseLabels.Take(version.ReleaseLabels.Count() - 1).ToList();
OracleEndToEnd.ApiService (1)
Program.cs (1)
17var users = await dbContext.Users.ToListAsync();
OrderProcessor (2)
playground\TestShop\BasketService\Models\BasketItem.cs (1)
15var results = new List<ValidationResult>();
playground\TestShop\BasketService\Models\Order.cs (1)
8public List<BasketItem> Items { get; set; } = new();
ParameterEndToEnd.ApiService (1)
Program.cs (1)
31var entries = await context.Entries.ToListAsync();
Pipelines.AppHost (4)
AppHost.cs (4)
29var fileShares = infra.GetProvisionableResources().OfType<Azure.Provisioning.Storage.FileShare>().ToList(); 48var resourcesWithBindMounts = context.Model.Resources 230var resourcesWithBindMounts = deployingContext.Model.Resources 250var bindMounts = mounts.Where(m => m.Type == ContainerMountType.BindMount).ToList();
PostgresEndToEnd.ApiService (1)
Program.cs (1)
30var entries = await db1Context.Entries.ToListAsync();
PresentationBuildTasks (53)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (6)
69var mainEmbeddedList = new List<ITaskItem>(); 70var satelliteEmbeddedList = new List<ITaskItem>(); 71var clrEmbeddedResourceList = new List<ITaskItem>(); 72var clrSatelliteEmbeddedResourceList = new List<ITaskItem>(); 288private void Classify(IEnumerable<ITaskItem> inputItems, List<ITaskItem> mainList, List<ITaskItem> satelliteList)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
271var properties = new List<(string PropertyName, string PropertyValue)> 752private void AddNewProperties(XmlDocument xmlProjectDoc, List<(string PropertyName, string PropertyValue)> properties )
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
911private List<Uid> _uids; 915private List<string> _namespacePrefixes;
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1297var paths = new List<string>(ReferenceAssemblyList?.Count ?? 0);
MS\Internal\MarkupCompiler\ParserExtension.cs (1)
727List<ClrNamespaceAssemblyPair> cnap = XamlTypeMapper.GetClrNamespacePairFromCache(xamlXmlnsPropertyNode.XmlNamespace);
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (3)
180List<FileUnit> modifiedXamlFiles = new List<FileUnit>(); 358private void UpdateFileListForIncrementalBuild(List<FileUnit> modifiedXamlFiles) 360List<FileUnit> recompiledXaml = new List<FileUnit>();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\internal\Media\XamlSerializationHelper.cs (7)
191List<ThreeDoublesMarkup> point3Ds = ParseThreeDoublesCollection(stringValues, TypeConverterHelper.InvariantEnglishUS); 223List<ThreeDoublesMarkup> points = ParseThreeDoublesCollection(stringValues, TypeConverterHelper.InvariantEnglishUS); 255List<Point> points = ParsePointCollection(stringValue, TypeConverterHelper.InvariantEnglishUS); 367private static List<ThreeDoublesMarkup> ParseThreeDoublesCollection(string source, IFormatProvider formatProvider) 372List<ThreeDoublesMarkup> resource = new List<ThreeDoublesMarkup>( source.Length/ 8 ) ; // SWAG the length of the collection. 394private static List<Point> ParsePointCollection(string source, IFormatProvider formatProvider) 398List<Point> resource = new List<Point>(source.Length/ 8 ); // SWAG the length of the collection.
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\MS\Internal\Globalization\LocalizationComments.cs (1)
81List<PropertyComment> tokens = new List<PropertyComment>(8);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (8)
1730private List<BamlAssemblyInfoRecord> AssemblyIdMap 1738private List<BamlTypeInfoRecord> TypeIdMap 1746private List<BamlAttributeInfoRecord> AttributeIdMap 1754private List<BamlStringInfoRecord> StringIdMap 1815private readonly List<BamlAssemblyInfoRecord> _assemblyIdToInfo = new(); 1819private readonly List<BamlTypeInfoRecord> _typeIdToInfo = new(); 1823private readonly List<BamlAttributeInfoRecord> _attributeIdToInfo = new(10); 1827private readonly List<BamlStringInfoRecord> _stringIdToInfo = new();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (9)
1584List<List<ValueDeferRecord>> staticResourceRecordList = keyRecord.StaticResourceRecordList; 1591List<ValueDeferRecord> srRecords = staticResourceRecordList[j]; 1778internal List<List<ValueDeferRecord>> StaticResourceRecordList 1784_staticResourceRecordList = new List<List<ValueDeferRecord>>(1); 1793private List<List<ValueDeferRecord>> _staticResourceRecordList; 1930private List<ValueDeferRecord> _staticResourceRecordList; // List of BamlRecords between the start and end of a StaticResource definition (both ends inclusive).
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (3)
83List<IntegerMarkup> ints = Parse( stringValue); 213public static List<IntegerMarkup> Parse(string source) 218List<IntegerMarkup> resource = new List<IntegerMarkup>();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (3)
3251List<ClrNamespaceAssemblyPair> namespaceAssemblyPair; 3413internal static List<ClrNamespaceAssemblyPair> GetClrNamespacePairFromCache( 3416List<ClrNamespaceAssemblyPair> mappingArray = null;
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (6)
84List<Assembly> interestingAssemblies = new List<Assembly>(); 141internal List<ClrNamespaceAssemblyPair> GetMappingArray(string xmlns) 143return _cacheTable[xmlns] as List<ClrNamespaceAssemblyPair>; 215List<CustomAttributeData> foundAttributes = new List<CustomAttributeData>(); 297List<ClrNamespaceAssemblyPair> pairList; 320pairList = (List<ClrNamespaceAssemblyPair>)_cacheTable[xmlns];
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
130List<string> keysToUpdate = new List<string>();
PresentationCore (362)
MS\Internal\FontCache\FamilyCollection.cs (3)
40private List<CompositeFontFamily> _userCompositeFonts; 47private static List<CompositeFontFamily> GetCompositeFontList(FontSourceCollection fontSourceCollection) 49List<CompositeFontFamily> compositeFonts = new List<CompositeFontFamily>();
MS\Internal\FontCache\FontResourceCache.cs (8)
24private static void ConstructFontResourceCache(Assembly entryAssembly, Dictionary<string, List<string>> folderResourceMap) 46internal static List<string> LookupFolder(Uri uri) 76Dictionary<string, List<string>> folderResourceMap; 82folderResourceMap = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 88List<string> ret; 108private static void AddResourceToFolderMap(Dictionary<string, List<string>> folderResourceMap, string resourceFullName) 145private static Dictionary<Assembly, Dictionary<string, List<string>>> _assemblyCaches 146= new Dictionary<Assembly, Dictionary<string, List<string>>>(1);
MS\Internal\FontCache\FontSourceCollection.cs (2)
85List<Text.TextInterface.IFontSource> fontSources; 127List<string> resourceEntries = FontResourceCache.LookupFolder(_uri);
MS\Internal\IListConverters.cs (4)
98List<double> list = new List<double>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 141List<ushort> list = new List<ushort>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 182List<bool> list = new List<bool>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 224List<Point> list = new List<Point>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1));
MS\Internal\Ink\Bezier.cs (4)
46internal List<Point> Flatten(double tolerance) 48List<Point> points = new List<Point>(); 493private void FlattenSegment(int iFirst, double tolerance, List<Point> points) 579private List<Point> _bezierControlPoints = new List<Point>();
MS\Internal\Ink\CuspData.cs (3)
529private List<CDataPoint> _points; 530private List<double> _nodes; 532private List<int> _cusps = new List<int>();
MS\Internal\Ink\ErasingStroke.cs (4)
133internal bool EraseTest(StrokeNodeIterator iterator, List<StrokeIntersection> intersections) 139List<StrokeFIndices> eraseAt = new List<StrokeFIndices>(); 261List<Point> newPath = new List<Point>(); 326private List<StrokeNode> _erasingStrokeNodes = null;
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
356private List<ExtendedProperty> _extendedProperties = new List<ExtendedProperty>();
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (3)
213List<ApplicationGesture> gestures = new List<ApplicationGesture>(); 601List<GestureRecognitionResult> resultList = new List<GestureRecognitionResult>(); 669List<GestureRecognitionResult> resultList = new List<GestureRecognitionResult>();
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (2)
71List<byte> compressedData = new List<byte>(); 249List<byte> compressedData = new List<byte>(input.Length + 1); //reasonable default based on profiling.
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (3)
358internal void Compress(int bitCount, int[] input, int startInputIndex, DeltaDelta dtxf, List<byte> compressedData) 406internal void Compress(int bitCount, BitStreamReader reader, GorillaEncodingType encodingType, int unitsToEncode, List<byte> compressedData) 626List<byte> output = new List<byte>((bitsToWrite / 8) * unitsToDecode);
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (1)
13private readonly System.Collections.Generic.List<Guid> _customGuids = new System.Collections.Generic.List<Guid>();
MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (1)
45internal void Compress(DataXform dataXf, int[] input, List<byte> compressedData)
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
103private List<HuffCodec> _huffCodecs = new List<HuffCodec>();
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (8)
51internal System.Collections.Generic.List<int> StrokeIds = null; 93List<char> charData = new List<char>((int)inkData.Length); 1562System.Collections.Generic.List<KnownTagCache.KnownTagIndex> tags = null; 1614List<StylusPointPropertyInfo> stylusPointPropertyInfos = new List<StylusPointPropertyInfo>(); 2676private System.Collections.Generic.List<StrokeDescriptor> _strokeDescriptorTable = null; 2677private System.Collections.Generic.List<TransformDescriptor> _transformTable = null; 2678private System.Collections.Generic.List<DrawingAttributes> _drawingAttributesTable = null; 2679private System.Collections.Generic.List<MetricBlock> _metricTable = null;
MS\Internal\Ink\InkSerializedFormat\LZCodec.cs (1)
32List<byte> output = new List<byte>();
MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (2)
23internal void Encode(uint data, List<byte> output) 41internal void SignEncode(int data, List<byte> output)
MS\Internal\Ink\InkSerializedFormat\StrokeDescriptor.cs (2)
11private System.Collections.Generic.List<KnownTagCache.KnownTagIndex> _strokeDescriptor = new System.Collections.Generic.List<KnownTagCache.KnownTagIndex>(); 24public System.Collections.Generic.List<KnownTagCache.KnownTagIndex> Template
MS\Internal\Ink\Lasso.cs (10)
219List<LassoCrossing> crossingList = new List<LassoCrossing>(); 315List<StrokeIntersection> strokeIntersectionList = new List<StrokeIntersection>(); 325private static void SortAndMerge(ref List<LassoCrossing> crossingList) 330List<LassoCrossing> mergedList = new List<LassoCrossing>(); 379List<LassoCrossing> crossingList, List<StrokeIntersection> strokeIntersections) 490protected List<Point> PointsList 532private List<Point> _points; 681List<Point> points = PointsList; 769List<Point> points = PointsList;
MS\Internal\Ink\Quad.cs (1)
69internal void GetPoints(List<Point> pointBuffer)
MS\Internal\Ink\Renderer.cs (1)
700private List<Visual> _attachedVisuals = null;
MS\Internal\Ink\StrokeIntersection.cs (2)
187List<StrokeFIndices> inFIndices = new List<StrokeFIndices>(intersections.Length); 219List<StrokeFIndices> hitFIndices = new List<StrokeFIndices>(intersections.Length);
MS\Internal\Ink\StrokeNode.cs (8)
110internal void GetContourPoints(List<Point> pointBuffer) 121internal void GetPreviousContourPoints(List<Point> pointBuffer) 185internal void GetPointsAtStartOfSegment(List<Point> abPoints, 186List<Point> dcPoints 310internal void GetPointsAtEndOfSegment( List<Point> abPoints, 311List<Point> dcPoints 416List<Point> abPoints, 417List<Point> dcPoints,
MS\Internal\Ink\StrokeNodeOperations.cs (1)
89internal void GetNodeContourPoints(in StrokeNodeData node, List<Point> pointBuffer)
MS\Internal\Ink\StrokeRenderer.cs (18)
49List<Point> connectingQuadPoints = new List<Point>(iterator.Count * 4); 61List<Point> strokeNodePoints = new List<Point>(); 259List<Point> pathFigureABSide = new List<Point>();//don't prealloc. It causes Gen2 collections to rise and doesn't help execution time 260List<Point> pathFigureDCSide = new List<Point>(); 261List<Point> polyLinePoints = new List<Point>(4); 743List<Point> pointBuffer1, 744List<Point> pointBuffer2, 745List<Point> pointBuffer3 798private static void ReverseDCPointsRenderAndClear(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints, List<Point> polyLinePoints, bool isEllipse, bool clear) 863private static void AddFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> points, bool isBezierFigure) 891private static void AddPolylineFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints) 913private static void AddArcToFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints, List<Point> polyLinePoints) 930List<Point> points = j == 0 ? abPoints : dcPoints;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (14)
246private List<HitTestEdge> GrabValidEdges(Point[] visualTexCoordBounds) 249List<HitTestEdge> hitTestEdgeList = new List<HitTestEdge>(); 426List<HitTestEdge> edgeList, 468List<HitTestEdge> edgeList) 472List<Point3D> pointList = new List<Point3D>(); 473List<Point> uvList = new List<Point>(); 587List<HitTestEdge> edgeList) 819List<HitTestEdge> edgeList, 900List<HitTestEdge> edgeList) 902List<Point3D> pointList = new List<Point3D>(); 903List<Point> uvList = new List<Point>(); 1020private bool FindClosestIntersection(Point mousePos, List<HitTestEdge> edges, out Point finalPoint) 1157List<HitTestEdge> edges = null; 1329private List<HitTestEdge> _validEdgesCache = null;
MS\Internal\TextFormatting\FullTextLine.cs (1)
2062List<TextSpan<TextRun>> lsrunList = new List<TextSpan<TextRun>>(2);
MS\Internal\TextFormatting\LineServicesRun.cs (1)
641List<DWriteFontFeature> fontFeatures = new List<DWriteFontFeature>((int)CustomOpenTypeFeatures.Count);
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
898List<IndexedGlyphRun> indexedGlyphRuns = new List<IndexedGlyphRun>(_runs.Length);
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (11)
1021private List<Entry> _others; 1290List<Entry> others = (List<Entry>)(_head._key); 1334List<Entry> others = new List<Entry>(2); // by default we have two entries in the extra storage. 1348((List<Entry>)(_head._key)).Add(new Entry(key, value)); 1354((List<Entry>)(_head._key))[index] = new Entry(key, value); 1377List<Entry> others = (List<Entry>)_head._key; 1422value = ((List<Entry>)_head._key)[index]._value; 1447return ((List<Entry>)_head._key).Count; 1467return ((List<Entry>)_head._key)[index]._key;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (2)
355internal BitStreamWriter(List<byte> bufferToWriteTo) 483private List<byte> _targetBuffer = null;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
168List<object> keysToRemove = null;
System\Windows\Automation\Peers\AutomationPeer.cs (12)
267protected abstract List<AutomationPeer> GetChildrenCore(); 546List<AutomationPeer> children = parent.GetChildren(); 700protected virtual List<AutomationPeer> GetControlledPeersCore() 1225public List<AutomationPeer> GetControlledPeers() 1227List<AutomationPeer> result = null; 1252List<AutomationPeer> controlledPeers = GetControlledPeers(); 1428public List<AutomationPeer> GetChildren() 1760List<AutomationPeer> children = GetChildren(); 1888List<AutomationPeer> oldChildren = _children; 1889List<AutomationPeer> addedChildren = null; 2222internal List<AutomationPeer> Children 2507private List<AutomationPeer> _children;
System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (1)
62protected override List<AutomationPeer> GetChildrenCore()
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
59protected override List<AutomationPeer> GetChildrenCore() 61List<AutomationPeer> children = null;
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (2)
57protected override List<AutomationPeer> GetChildrenCore() 59List<AutomationPeer> children = null;
System\Windows\clipboard.cs (2)
359/// NRBF primitive types</see> are also handled, as well as <see cref="List{T}"/> or arrays of these type. Basic 469/// NRBF primitive types</see> are also handled, as well as <see cref="List{T}"/> or arrays of these type. Basic
System\Windows\FreezableCollection.cs (1)
947internal List<T> _collection;
System\Windows\Ink\IncrementalHitTester.cs (5)
144internal List<StrokeInfo> StrokeInfos { get { return _strokeInfos; } } 226List<StrokeInfo> newStrokeInfos = new List<StrokeInfo>(_strokes.Count); 276private List<StrokeInfo> _strokeInfos; 522List<StrokeHitEventArgs> strokeHitEventArgCollection = null; 526List<StrokeIntersection> eraseAt = new List<StrokeIntersection>();
System\Windows\Ink\Stroke.cs (2)
241List<Point> bezierPoints = bezier.Flatten(tolerance); 248private StylusPointCollection GetInterpolatedStylusPoints(List<Point> bezierPoints)
System\Windows\Ink\Stroke2.cs (1)
571List<StrokeIntersection> intersections = new List<StrokeIntersection>();
System\Windows\Ink\StrokeCollection.cs (13)
38List<Stroke> items = (List<Stroke>)this.Items; 279( (List<Stroke>)removed.Items ).Add(this[x]); 297( (List<Stroke>)removed.Items ).Add(removedStroke); 315( (List<Stroke>)addedStrokes.Items ).Add(stroke); 334( (List<Stroke>)removed.Items ).Add(removedStroke); 337( (List<Stroke>)added.Items ).Add(stroke); 397( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 434( (List<Stroke>)this.Items ).AddRange(strokes); 515( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 521( (List<Stroke>)this.Items ).InsertRange(indexes[0], strokesToReplaceWith); 534( (List<Stroke>)this.Items ).Add(stroke); 847( (List<Stroke>)this.Items ).AddRange(strokeCollection);
System\Windows\Ink\StrokeCollection2.cs (6)
334List<StrokeIntersection> intersections = new List<StrokeIntersection>(); 352List<Stroke> solidStrokes = new List<Stroke>(); 353Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>(); 358List<Stroke> strokes; 377foreach (List<Stroke> strokes in highLighters.Values)
System\Windows\Input\AccessKeyManager.cs (10)
89List<IInputElement> targets = akm.GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty); 215List<IInputElement> targets = GetTargetsForSender(inputElementSender, key); 223List<IInputElement> targets = GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty); 228private ProcessKeyResult ProcessKey(List<IInputElement> targets, string key, bool existsElsewhere, bool userInitiated) 333private List<IInputElement> GetTargetsForSender(IInputElement sender, string key) 341private List<IInputElement> GetTargetsForScope(object scope, string key, IInputElement sender, AccessKeyInformation senderInfo) 369List<IInputElement> possibleElements; 377List<IInputElement> finalTargets = new List<IInputElement>(1); 582private static List<IInputElement> CopyAndPurgeDead(ArrayList elements) 589List<IInputElement> copy = new List<IInputElement>(elements.Count);
System\Windows\Input\Command\CanExecuteChangedEventManager.cs (11)
90List<HandlerSink> list = data as List<HandlerSink>; 91List<HandlerSink> toRemove = null; 188List<HandlerSink> list = (List<HandlerSink>)this[source]; 206List<HandlerSink> list = (List<HandlerSink>)this[source]; 261List<Delegate> list = value as List<Delegate>; 288List<Delegate> list = value as List<Delegate>;
System\Windows\Input\Command\CommandBindingCollection.cs (2)
336System.Collections.Generic.List<CommandBinding> list = new System.Collections.Generic.List<CommandBinding>(0); 382private Collections.Generic.List<CommandBinding> _innerCBList;
System\Windows\Input\Command\CommandManager.cs (1)
554List<ValueTuple<Type, CommandBinding>> list = default; // more than one
System\Windows\Input\Command\InputBindingCollection.cs (3)
359List<InputBinding> oldInputBindings = new List<InputBinding>(_innerBindingList); 379System.Collections.Generic.List<InputBinding> list = new System.Collections.Generic.List<InputBinding>(0); 452private List<InputBinding> _innerBindingList;
System\Windows\Input\Command\InputGestureCollection.cs (2)
158List<InputGesture> list = new List<InputGesture>(0); 438private System.Collections.Generic.List<InputGesture> _innerGestureList;
System\Windows\Input\ManipulationDevice.cs (3)
449List<IManipulator> manipulators = new List<IManipulator>(_manipulators); 465List<IManipulator> manipulators = new List<IManipulator>(_manipulators); 505private List<IManipulator> _manipulators;
System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (1)
259private List<InertiaParameters2D> _inertiaParameters;
System\Windows\Input\ManipulationStartingEventArgs.cs (1)
139private List<ManipulationParameters2D> _parameters;
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (2)
207private List<StrokeInfo> _strokeInfoList = new List<StrokeInfo>(); 1172private List<StrokeInfo> _strokeInfoList = new List<StrokeInfo>();
System\Windows\Input\Stylus\Common\StylusButtonCollection.cs (1)
22internal StylusButtonCollection(List<StylusButton> buttons)
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (14)
47((List<StylusPoint>)this.Items).Capacity = initialCapacity; 72((List<StylusPoint>)this.Items).Capacity = initialCapacity; 85List<StylusPoint> points = new List<StylusPoint>(stylusPoints); 96((List<StylusPoint>)this.Items).Capacity = points.Count; 112List<StylusPoint> stylusPoints = new List<StylusPoint>(); 126((List<StylusPoint>)this.Items).Capacity = stylusPoints.Count; 127((List<StylusPoint>)this.Items).AddRange(stylusPoints); 149((List<StylusPoint>)this.Items).Capacity = logicalPointCount; 189((List<StylusPoint>)this.Items).Add(newPoint); 215((List<StylusPoint>)this.Items).Add(stylusPoint); 376((List<StylusPoint>)newCollection.Items).Add(this[x]); 387((List<StylusPoint>)newCollection.Items).Add(stylusPoint); 423((List<StylusPoint>)this.Items)[i] = stylusPoint; 505((List<StylusPoint>)newCollection.Items).Add(newStylusPoint);
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (3)
47List<StylusPointPropertyInfo> infos = 61List<Guid> seenIds = new List<Guid>(); 350List<StylusPointPropertyInfo> commonProperties = new List<StylusPointPropertyInfo>();
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (1)
259List<StylusPointPropertyInfo> propertyInfos = new List<StylusPointPropertyInfo>();
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
119internal List<TabletDevice> TabletDevices { get; set; } = new List<TabletDevice>();
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (2)
35private static List<UnsafeNativeMethods.INTERACTION_CONTEXT_CONFIGURATION> DefaultConfiguration = 149internal PointerInteractionEngine(PointerStylusDevice stylusDevice, List<UnsafeNativeMethods.INTERACTION_CONTEXT_CONFIGURATION> configuration = null)
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
121List<StylusButton> buttons = new List<StylusButton>();
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
648private List<StylusPlugInCollection> _plugInCollectionList = new List<StylusPlugInCollection>();
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
95List<PointerStylusDevice> pointerStylusDevices = new List<PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceInfo.cs (4)
188List<StylusPointProperty> properties = new List<StylusPointProperty>() 195List<StylusPointProperty> buttonProperties = new List<StylusPointProperty>(); 198List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY> supportedProperties = new List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY>() 204List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY> supportedButtonProperties = new List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY>();
System\Windows\Input\Stylus\Wisp\PenContext.cs (2)
109List<StylusPointPropertyInfo> propertyInfos = new List<StylusPointPropertyInfo>(cProps + cButtons + 3); 522private List<int> _stylusDevicesInRange;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
544private List<StylusPlugInCollection> _plugInCollectionList = new List<StylusPlugInCollection>();
System\Windows\Input\Stylus\Wisp\PenThreadPool.cs (2)
52private List<WeakReference<PenThread>> _penThreadWeakRefList; 83List<PenThread> ignoredThreads = new List<PenThread>();
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (4)
42private List <WorkerOperation> _workerOperation = new List<WorkerOperation>(); 904List<StylusPointProperty> properties = new List<StylusPointProperty>(cProps + cButtons + 3); 997List <PenContext> penContextRefs = new List<PenContext>(); // keep them alive while processing! 1056List <PenContext> penContextRefs = new List<PenContext>(); // keep them alive while processing!
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (3)
636List<TabletDevice> tabletTemp = new List<TabletDevice>(); 685internal List<TabletDevice> DeferredTablets 699private List<TabletDevice> _deferredTablets = new List<TabletDevice>();
System\Windows\Input\TouchDevice.cs (3)
427List<DependencyObject> others = null; 1214List<TouchDevice> touches = new List<TouchDevice>(); 1316private static List<TouchDevice> _activeDevices;
System\Windows\InterOp\HwndSource.cs (1)
2811private List<HwndSourceKeyboardInputSite> _keyboardInputSinkChildren;
System\Windows\Media\Animation\AnimationLayer.cs (2)
191List<AnimationClock> animationClockList = _animationClocks as List<AnimationClock>;
System\Windows\Media\Animation\Clock.cs (3)
1412List<Clock> parentChildren = _parent.InternalChildren; 4267List<Clock> children = thisGroup.InternalChildren; 4292List<WeakReference> children = ((ClockGroup) this).InternalRootChildren;
System\Windows\Media\Animation\ClockGroup.cs (5)
59internal List<Clock> InternalChildren 72internal List<WeakReference> InternalRootChildren 167List<Clock> children = _children; 610private List<Clock> _children; 611private List<WeakReference> _rootChildren;
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
24private List<BooleanKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
24private List<ByteKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
24private List<CharKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
24private List<ColorKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
24private List<DecimalKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
24private List<DoubleKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
24private List<Int16KeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
24private List<Int32KeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
24private List<Int64KeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
24private List<MatrixKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
24private List<ObjectKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
24private List<Point3DKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
24private List<PointKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
24private List<QuaternionKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
24private List<RectKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
24private List<Rotation3DKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
24private List<SingleKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
24private List<SizeKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
24private List<StringKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
24private List<Vector3DKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
24private List<VectorKeyFrame> _keyFrames;
System\Windows\Media\Animation\ParallelTimeline.cs (1)
91List<Clock> children = clockGroup.InternalChildren;
System\Windows\Media\Animation\TimelineClockCollection.cs (4)
31List<Clock> childList = clockGroup.InternalChildren; 123List<Clock> list = clockGroup.InternalChildren; 150List<Clock> list = null; 274List<Clock> list = null;
System\Windows\Media\Animation\WeakRefEnumerator.cs (2)
27internal WeakRefEnumerator(List<WeakReference> list) 174private List<WeakReference> _list;
System\Windows\Media\ColorContext.cs (1)
343List<ColorContext> colorContextsList = null;
System\Windows\Media\Effects\ShaderEffect.cs (6)
460private static void StashInPosition<T>(ref List<T?> list, int position, T value, int maxIndex, ref uint count) where T : struct 723private void AppendRegisters<T>(DUCE.Channel channel, List<T?> list) where T : struct 1075private List<MilColorF?> _floatRegisters = null; 1076private List<MilColorI?> _intRegisters = null; 1077private List<bool?> _boolRegisters = null; 1078private List<SamplerData?> _samplerData = null;
System\Windows\Media\FamilyMap.cs (1)
226List<Range> ranges = new List<Range>(3);
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1636internal List<BitmapFrame> _frames;
System\Windows\Media\Imaging\BitmapDownload.cs (1)
25internal List<WeakReference> decoders;
System\Windows\Media\Imaging\BitmapMetadata.cs (5)
142List<SafeMILHandle> metadataBlocks = blockWriter.MetadataBlocks; 256List<SafeMILHandle> metadataBlocks = new(); 424internal List<SafeMILHandle> MetadataBlocks 434private List<SafeMILHandle> _metadataBlocks; 570private readonly List<SafeMILHandle> _metadataBlocks;
System\Windows\Media\Imaging\BitmapPalette.cs (1)
302List<Color> colors = new List<Color>();
System\Windows\Media\PathGeometry.cs (1)
242List<Point> points = new List<Point>((int)pSegmentPoly->Count);
System\Windows\Media\SolidColorBrush.cs (4)
252revDictionary = new Dictionary<TValue, List<TKey>>(valueComparer); 260public bool TryGetKeys(TValue value, out List<TKey> keys) 286List<TKey> keys; 305private Dictionary<TValue, List<TKey>> revDictionary;
System\Windows\Media3D\Matrix3DStack.cs (1)
102private readonly List<Matrix3D> _stack = new List<Matrix3D>();
System\Windows\Media3D\RayHitTestParameters.cs (1)
211private readonly List<RayHitTestResult> results = new List<RayHitTestResult>();
System\Windows\Nrbf\SerializationRecordExtensions.cs (4)
114/// Trys to get this object as a <see cref="List{T}"/> of <see cref="PrimitiveType"/>. 129|| classInfo.TypeName.GetGenericTypeDefinition().Name != typeof(List<>).Name 358internal static List<T> CreateTrimmedList<T>(this IReadOnlyList<T> readOnlyList, int count) 370List<T> list = new(readOnlyList);
System\Windows\UIElement.cs (2)
4647internal static List<double> DpiScaleXValues = new List<double>(3); 4648internal static List<double> DpiScaleYValues = new List<double>(3);
PresentationFramework (1094)
Microsoft\Win32\FileDialog.cs (1)
676List<string> extensions = new();
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
229List<ContentLocatorPart> res = new List<ContentLocatorPart>(1);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (5)
636List<ContentLocatorBase> locatorsToReturn = new List<ContentLocatorBase>(); 716List<ContentLocatorBase> tempLocators = new List<ContentLocatorBase>(locatorsToReturn.Count * locatorParts.Count); 1209List<ContentLocatorBase> res = new List<ContentLocatorBase>(1); 1252public List<IAttachedAnnotation> AttachedAnnotations 1298private List<IAttachedAnnotation> _attachedAnnotations = new List<IAttachedAnnotation>();
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (6)
416internal static List<ITextView> GetDocumentPageTextViews(TextSegment segment) 418List<ITextView> res = null; 477private static List<ITextView> ProcessSinglePage(IDocumentPaginatorSource idp, int pageNumber) 483List<ITextView> res = null; 503private static List<ITextView> ProcessMultiplePages(IDocumentPaginatorSource idp, int startPageNumber, int endPageNumber) 520List<ITextView> res = null;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
163List<ContentLocatorPart> res = new List<ContentLocatorPart>(1);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
126List<ContentLocatorPart> res = null;
MS\Internal\Annotations\AnnotationMap.cs (10)
23List<IAttachedAnnotation> list = null; 39List<IAttachedAnnotation> list = null; 67internal List<IAttachedAnnotation> GetAttachedAnnotations(Guid annotationId) 69List<IAttachedAnnotation> list = null; 85internal List<IAttachedAnnotation> GetAllAttachedAnnotations() 87List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(_annotationIdToAttachedAnnotations.Keys.Count); 91List<IAttachedAnnotation> list = _annotationIdToAttachedAnnotations[annId]; 105private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>(); 108private static readonly List<IAttachedAnnotation> _emptyList = new List<IAttachedAnnotation>(0);
MS\Internal\Annotations\AnnotationObservableCollection.cs (1)
55public AnnotationObservableCollection(List<T> list) : base(list)
MS\Internal\Annotations\AnnotationResourceCollection.cs (1)
73List<AnnotationResource> list = new List<AnnotationResource>(this);
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (4)
327List<AnnotationAdorner> adorners = GetTopAnnotationAdorners(level, component); 389private List<AnnotationAdorner> GetTopAnnotationAdorners(int level, IAnnotationComponent component) 391List<AnnotationAdorner> res = new List<AnnotationAdorner>(); 423private void AddAdorner(List<AnnotationAdorner> adorners, AnnotationAdorner adorner)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (7)
605List<IHighlightRange> list = new List<IHighlightRange>(1); 722private void AddActiveOwners(List<IHighlightRange> owners) 917List<ITextView> textViews = TextSelectionHelper.GetDocumentPageTextViews(segment); 1195private List<TextSegment> _contentSegments = new List<TextSegment>(1); 1196private readonly List<IHighlightRange> _owners; 1197private List<IHighlightRange> _activeOwners = new List<IHighlightRange>(); 1216private List<HighlightSegment> _segments;
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (4)
889List<MarkedHighlightComponent> components = componentsRegister.Components; 959List<MarkedHighlightComponent> components = registry.Components; 1056public List<MarkedHighlightComponent> Components 1110private List<MarkedHighlightComponent> _components;
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (2)
197public List<Annotation> FindDirtyAnnotations() 199List<Annotation> annotations = new List<Annotation>();
MS\Internal\Annotations\TextAnchor.cs (2)
593List<TextSegment> orderedList = new List<TextSegment>(textSegments.Count); 746private List<TextSegment> _segments = new List<TextSegment>(1);
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (2)
142internal void UpdateSelectionWireFrame(Rect strokesBounds, List<Rect> hatchBounds) 432private List<Rect> _elementsBounds;
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
867private List<CollectionViewGroupInternal> _toRemove;
MS\Internal\Data\CollectionViewGroupRoot.cs (5)
231internal void RestoreGrouping(LiveShapingItem lsi, List<AbandonedGroupItem> deleteList) 238private void RestoreGrouping(LiveShapingItem lsi, GroupTreeNode node, int level, List<AbandonedGroupItem> deleteList) 333List<CollectionViewGroupInternal> parentGroups = lsi.ParentGroups; 334List<GroupTreeNode> list = new List<GroupTreeNode>(parentGroups.Count + 1); 388internal void DeleteAbandonedGroupItems(List<AbandonedGroupItem> deleteList)
MS\Internal\Data\CollectionViewProxy.cs (2)
993internal override void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources)
MS\Internal\Data\CommitManager.cs (11)
43internal List<BindingGroup> GetBindingGroupsInScope(DependencyObject element) 47List<BindingGroup> fullList = _bindingGroups.ToList(); 48List<BindingGroup> list = EmptyBindingGroupList; 67internal List<BindingExpressionBase> GetBindingsInScope(DependencyObject element) 71List<BindingExpressionBase> fullList = _bindings.ToList(); 72List<BindingExpressionBase> list = EmptyBindingList; 101List<BindingExpressionBase> list = _bindings.ToList(); 113List<BindingGroup> list = _bindingGroups.ToList(); 143private static readonly List<BindingGroup> EmptyBindingGroupList = new List<BindingGroup>(); 144private static readonly List<BindingExpressionBase> EmptyBindingList = new List<BindingExpressionBase>(); 180public List<T> ToList()
MS\Internal\Data\CompositeCollectionView.cs (2)
821internal override void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources)
MS\Internal\Data\LiveShapingBlock.cs (2)
274List<LiveShapingBlock> list = new List<LiveShapingBlock>(); // subtrees to explore 355List<LiveShapingBlock> list = new List<LiveShapingBlock>(); // subtrees to explore
MS\Internal\Data\LiveShapingItem.cs (6)
180List<CollectionViewGroupInternal> list; 186else if ((list = o as List<CollectionViewGroupInternal>) == null) 202List<CollectionViewGroupInternal> list = o as List<CollectionViewGroupInternal>; 221internal List<CollectionViewGroupInternal> ParentGroups 223get { return GetValue(ParentGroupsProperty) as List<CollectionViewGroupInternal>; }
MS\Internal\Data\LiveShapingList.cs (8)
491internal List<LiveShapingItem> SortDirtyItems { get { return _sortDirtyItems; } } 492internal List<LiveShapingItem> FilterDirtyItems { get { return _filterDirtyItems; } } 493internal List<LiveShapingItem> GroupDirtyItems { get { return _groupDirtyItems; } } 742private List<string> _unusedKeys; 786private List<LiveShapingItem> _sortDirtyItems; // list of items needing sorting fixup 787private List<LiveShapingItem> _filterDirtyItems; // list of items needing filtering fixup 788private List<LiveShapingItem> _groupDirtyItems; // list of items needing grouping fixup 793private static List<DependencyProperty> s_dpList = new List<DependencyProperty>();
MS\Internal\Data\PathParser.cs (1)
382private readonly List<SourceValueInfo> _sourceValueInfos = new();
MS\Internal\Data\PropertyPathWorker.cs (2)
1313List<MemberInfo> list = new List<MemberInfo>(); 1818typeof(System.Collections.Generic.List<>),
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
569private List<String> _toRemove = new List<String>();
MS\Internal\Data\ValueChangedEventManager.cs (1)
384private List<PropertyDescriptor> _toRemove = new List<PropertyDescriptor>();
MS\Internal\Data\ValueTable.cs (1)
243List<PropertyDescriptor> result = new List<PropertyDescriptor>();
MS\Internal\Documents\ContentHostHelper.cs (2)
87List<DocumentPageView> pageViews; 143private static void FindDocumentPageViews(Visual root, List<DocumentPageView> pageViews)
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
919private List<AsyncRequest> _asyncRequests = new List<AsyncRequest>(0);
MS\Internal\Documents\MultiPageTextView.cs (2)
684List<TextSegment> textSegments = new List<TextSegment>(); 1557private List<DocumentPageTextView> _pageTextViews;
MS\Internal\Documents\PageCache.cs (10)
367List<PageCacheChange> changes = new List<PageCacheChange>(2); 530List<PageCacheChange> changes = new List<PageCacheChange>(1); 617List<PageCacheChange> changes = new List<PageCacheChange>(2); 705List<PageCacheChange> changes = new List<PageCacheChange>(PageCount); 733private void FirePageCacheChangedEvent(List<PageCacheChange> changes) 845List<PageCacheChange> changes = new List<PageCacheChange>(1); 871private List<PageCacheEntry> _cache; 1037public PageCacheChangedEventArgs(List<PageCacheChange> changes) 1045public List<PageCacheChange> Changes 1053private readonly List<PageCacheChange> _changes;
MS\Internal\Documents\ParagraphResult.cs (1)
404internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end)
MS\Internal\Documents\RowCache.cs (8)
477List<RowCacheChange> changes = new List<RowCacheChange>(1); 570List<RowCacheChange> changes = new List<RowCacheChange>(1); 672List<RowInfo> tempRows = new List<RowInfo>(pivotPage / columns); 1200List<RowCacheChange> changes = new List<RowCacheChange>(args.Changes.Count); 1316private List<RowInfo> _rowCache; 1499public RowCacheChangedEventArgs(List<RowCacheChange> changes) 1507public List<RowCacheChange> Changes 1515private readonly List<RowCacheChange> _changes;
MS\Internal\Documents\TextBoxLine.cs (2)
251internal List<Rect> GetRangeBounds(int cp, int cch, double xOffset, double yOffset) 253List<Rect> rectangles = new List<Rect>();
MS\Internal\Documents\TextBoxView.cs (5)
1255List<TextSegment> segments = new List<TextSegment>(1); 2613List<TextBoxLineDrawingVisual> oldLineVisuals = _viewportLineVisuals; 3200private List<TextBoxLineDrawingVisual> _visualChildren; 3203private List<LineRecord> _lineMetrics; 3206private List<TextBoxLineDrawingVisual> _viewportLineVisuals;
MS\Internal\Documents\TextContainerHelper.cs (6)
80List<TextSegment> segments; 307internal static List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end, ITextPointer ownerContentStart) 312List<AutomationPeer> peers = new List<AutomationPeer>(); 432List<object> ancestorsStart, ancestorsEnd; 433List<ITextPointer> positionsStart, positionsEnd; 728private static void iterate(Visual parent, List<AutomationPeer> peers)
MS\Internal\Documents\TextDocumentView.cs (5)
355List<GlyphRun> glyphRuns = new List<GlyphRun>(); 3085private bool GetGlyphRunsFromParagraphs(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> paragraphs) 3137private void GetGlyphRunsFromFloatingElements(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> floatingElements, out bool success) 3180private void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements) 3245List<TextSegment> segments = new List<TextSegment>(1);
MS\Internal\Documents\TextParagraphView.cs (1)
478List<TextSegment> segments = new List<TextSegment>(1);
MS\Internal\Documents\UIElementIsland.cs (1)
207List<IInputElement> hostedElements = new List<IInputElement>();
MS\Internal\Documents\UndoManager.cs (4)
696List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoCount); 748List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoLimit); 1065protected List<IUndoUnit> UndoStack 1164private List<IUndoUnit> _undoStack; // stack of undo units
MS\Internal\Globalization\BamlResourceContent.cs (1)
188List<BamlStringToken> tokens = new(8);
MS\Internal\Globalization\BamlResourceSerializer.cs (1)
90private void PushChildrenToStack(List<BamlTreeNode> children)
MS\Internal\Globalization\BamlTreeNode.cs (6)
70List<BamlTreeNode> newNodeList = new List<BamlTreeNode>(Size); 92private void CreateInternalIndex(ref BamlTreeNode parent, ref List<BamlTreeNode> nodeList, bool toCopy) 95List<BamlTreeNode> children = parent.Children; 134private List<BamlTreeNode> _nodeList; // stores flattened baml tree in depth first order 232internal List<BamlTreeNode> Children 335protected List<BamlTreeNode> _children; // the children list.
MS\Internal\Globalization\BamlTreeUpdater.cs (3)
45List<KeyValuePair<BamlLocalizableResourceKey, BamlLocalizableResource>> deferredResources = new(); 261List<BamlTreeNode> oldChildren = parent.Children; 565List<BamlTreeNode> list = new();
MS\Internal\Globalization\LocalizationComments.cs (1)
81List<PropertyComment> tokens = new List<PropertyComment>(8);
MS\Internal\Helper.cs (19)
752List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item); 774List<KeyValuePair<int, object>> itemValues = EnsureItemValues(owner, item); 805List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item); 826internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item) 831internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item, 832WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage) 835List<KeyValuePair<int, object>> itemValues = null; 843internal static List<KeyValuePair<int, object>> EnsureItemValues(DependencyObject owner, object item) 845WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage = EnsureItemValueStorage(owner); 846List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item, itemValueStorage); 858internal static WeakDictionary<object, List<KeyValuePair<int, object>>> EnsureItemValueStorage(DependencyObject owner) 860WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage = ItemValueStorageField.GetValue(owner); 864itemValueStorage = new WeakDictionary<object, List<KeyValuePair<int, object>>>(); 879List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item) ?? new List<KeyValuePair<int, object>>(); 1024private static void ClearItemValueStorageRecursive(WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage, int[] dpIndices) 1028foreach (List<KeyValuePair<int, object>> itemValuesList in itemValueStorage.Values) 1035ClearItemValueStorageRecursive((WeakDictionary<object, List<KeyValuePair<int, object>>>)itemValue.Value, dpIndices); 1519private static readonly UncommonField<WeakDictionary<object, List<KeyValuePair<int, object>>>> ItemValueStorageField = 1520new UncommonField<WeakDictionary<object, List<KeyValuePair<int, object>>>>();
MS\Internal\Ink\ClipboardProcessor.cs (6)
135List<UIElement> elements = new List<UIElement>(inkCanvasSelection.SelectedElements); 180internal bool PasteData(IDataObject dataObject, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 199List<UIElement> elements = xamlData.Elements; 314private bool CopySelectionInXAML(IDataObject dataObject, StrokeCollection strokes, List<UIElement> elements, Matrix transform, Size size) 370private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 376List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.Count);
MS\Internal\Ink\ElementsClipboardData.cs (3)
49internal List<UIElement> Elements 75protected List<UIElement> ElementList 97private List<UIElement> _elementList;
MS\Internal\Ink\HighContrastHelper.cs (1)
214private static List<WeakReference> __highContrastCallbackList;
MS\Internal\Ink\InkCanvasSelection.cs (3)
821private List<Rect> GetElementsBounds() 823List<Rect> rects = new List<Rect>(); 1103private List<UIElement> _selectedElements;
MS\Internal\Ink\LassoHelper.cs (3)
35private List<Point> _lasso = null; 65public Point[] AddPoints(List<Point> points) 72List<Point> justAdded = new List<Point>();
MS\Internal\Ink\LassoSelectionBehavior.cs (11)
127List<Point> points = new List<Point>(); 179List<Point> points = new List<Point>(); 195List<Point> points = new List<Point>(); 237List<UIElement> elementsToSelect = new List<UIElement>(); 335private List<UIElement> HitTestForElements() 337List<UIElement> elementsToSelect = new List<UIElement>(); 357private void HitTestElement(InkCanvasInnerCanvas parent, UIElement uiElement, List<UIElement> elementsToSelect) 429List<Point> pointArray = new(4); 454private void FillInPoints(List<Point> pointArray, Point point1, Point point2) 479private void FillInGrid(List<Point> pointArray, 583private void StartLasso(List<Point> points)
MS\Internal\LayoutDump.cs (2)
356List<UIElement> uiElements = new List<UIElement>(); 418internal static void GetUIElementsFromVisual(Visual visual, List<UIElement> uiElements)
MS\Internal\PtsHost\BaseParaClient.cs (2)
124internal virtual List<Rect> GetRectangles(ContentElement e, int start, int length) 135internal virtual void GetRectanglesForParagraphElement(out List<Rect> rectangles)
MS\Internal\PtsHost\BreakRecordTable.cs (1)
498private List<BreakRecordTableEntry> _breakRecords;
MS\Internal\PtsHost\ContainerParaClient.cs (3)
127internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 129List<Rect> rectangles = new List<Rect>(); 339List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length);
MS\Internal\PtsHost\FigureParaClient.cs (7)
279internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 281List<Rect> rectangles = new List<Rect>(); 316List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]); 549List<ParagraphResult> paragraphResults; 643List<ColumnResult> columnResults = new List<ColumnResult>(0); 772List<ParagraphResult> floatingElements = new List<ParagraphResult>(0); 773List<BaseParaClient> floatingElementList = _pageContextOfThisPage.FloatingElementList;
MS\Internal\PtsHost\FloaterParaClient.cs (7)
284internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 286List<Rect> rectangles = new List<Rect>(); 321List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]); 557List<ParagraphResult> paragraphResults; 652List<ColumnResult> columnResults = new List<ColumnResult>(0); 781List<ParagraphResult> floatingElements = new List<ParagraphResult>(0); 782List<BaseParaClient> floatingElementList = _pageContextOfThisPage.FloatingElementList;
MS\Internal\PtsHost\FlowDocumentPage.cs (6)
312List<Rect> rectangles = new List<Rect>(); 334List<Rect> transformedRectangles = new List<Rect>(rectangles.Count); 379List<ParagraphResult> floatingElements = new List<ParagraphResult>(0); 380List<BaseParaClient> floatingElementList = _ptsPage.PageContext.FloatingElementList; 413List<ColumnResult> columnResults = new List<ColumnResult>(0); 580List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length);
MS\Internal\PtsHost\Line.cs (6)
283List<InlineObject> inlineObjects = new List<InlineObject>(1); 486internal List<Rect> GetRangeBounds(int cp, int cch, double xOffset, double yOffset) 488List<Rect> rectangles = new List<Rect>(); 652internal void GetGlyphRuns(List<GlyphRun> glyphRuns, int dcpStart, int dcpEnd) 675List<GlyphRun> glyphRunsCollection = new(4); 1056private static void AddGlyphRunRecursive(Drawing drawing, List<GlyphRun> glyphRunsCollection, ref int cchGlyphRuns)
MS\Internal\PtsHost\PtsCache.cs (2)
750private List<ContextDesc> _contextPool; 755private List<PtsContext> _releaseQueue;
MS\Internal\PtsHost\PtsContext.cs (1)
139List<AttachedObject> attachedObjects = ((TextParagraph)objDbg).AttachedObjectDbg;
MS\Internal\PtsHost\PtsHelper.cs (8)
68internal static void UpdateFloatingElementVisuals(ContainerVisual visual, List<BaseParaClient> floatingElementList) 439internal static List<Rect> GetRectanglesInTrack( 446List<Rect> rectangles = new List<Rect>(); 478internal static List<Rect> GetRectanglesInParaList( 485List<Rect> rectangles = new List<Rect>(); 512internal static List<Rect> OffsetRectangleList(List<Rect> rectangleList, double xOffset, double yOffset) 514List<Rect> offsetRectangles = new List<Rect>(rectangleList.Count);
MS\Internal\PtsHost\PtsHost.cs (2)
1963List<AttachedObject> attachedObjects = para.GetAttachedObjects(dcpFirst, dcpLast); 2078List<AttachedObject> attachedObjects = para.GetAttachedObjects(dcpLast, dcpLim);
MS\Internal\PtsHost\PtsPage.cs (9)
224internal List<Rect> GetRectangles(ContentElement e, int start, int length) 226List<Rect> rectangles = new List<Rect>(); 1246private List<Rect> GetRectanglesInPage(ContentElement e, int start, int length) 1249List<Rect> rectangles = new List<Rect>(); 1366private List<Rect> GetRectanglesInSection( 1377List<Rect> rectangles = new List<Rect>(); 1404List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]); 1537internal List<BaseParaClient> FloatingElementList { get { return _floatingElementList; } } 1568private List<BaseParaClient> _floatingElementList;
MS\Internal\PtsHost\SubpageParaClient.cs (7)
218internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 220List<Rect> rectangles = new List<Rect>(); 254List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]); 538List<ColumnResult> columnResults = new List<ColumnResult>(0); 619List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 691List<ParagraphResult> floatingElements = new List<ParagraphResult>(0); 692List<BaseParaClient> floatingElementList = _pageContextOfThisPage.FloatingElementList;
MS\Internal\PtsHost\TableParaClient.cs (6)
429internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 433List<Rect> rectangles = new List<Rect>(); 690List<ParagraphResult> rowParagraphResults = new List<ParagraphResult>(0); 733List<ParagraphResult> cellParagraphResults = new List<ParagraphResult>(0); 783List<ParagraphResult> listResults = new List<ParagraphResult>(0); 804List<ParagraphResult> listResults = new List<ParagraphResult>(0);
MS\Internal\PtsHost\TextParaClient.cs (26)
247internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 249List<Rect> rectangles = new List<Rect>(); 382List<ParagraphResult> floaters = null; 420List<ParagraphResult> figures = null; 1104internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end) 1261List<InlineObject> inlineObjects = TextParagraph.InlineObjectsFromRange(lineDesc.dcpFirst, lineDesc.dcpLim); 1295List<InlineObject> inlineObjects = TextParagraph.InlineObjectsFromRange(element.dcpFirst, element.dcpLim); 1525List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 1577List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 2058private List<Rect> RectanglesFromDcpRangeOfSimpleLine( 2067List<Rect> rectangles = null; 2169private List<Rect> RectanglesFromDcpRangeOfCompositeLineElement( 2180List<Rect> rectangles = null; 3089List<GlyphRun> glyphRuns, 3142List<GlyphRun> glyphRuns, 3855private List<Rect> GetRectanglesInSimpleLines( 3863List<Rect> rectangles = new List<Rect>(); 3883List<Rect> lineRectangles = GetRectanglesInSingleLine(lineDesc, e, localStart, length); 3897private List<Rect> GetRectanglesInSingleLine( 3905List<Rect> rectangles = new List<Rect>(); 4035private List<Rect> GetRectanglesInCompositeLines( 4043List<Rect> rectangles = new List<Rect>(); 4062List<Rect> lineRectangles = GetRectanglesInCompositeLine(lineDesc, e, localStart, length); 4079private List<Rect> GetRectanglesInCompositeLine( 4085List<Rect> rectangles = new List<Rect>(); 4139List<Rect> elementRectangles = line.GetRangeBounds(localStart, localEnd - localStart, TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
MS\Internal\PtsHost\TextParagraph.cs (16)
881private List<TextElement> GetAttachedObjectElements(int dcpFirst, int dcpLast) 883List<TextElement> attachedElements = new List<TextElement>(); 922List<TextElement> textElements = GetAttachedObjectElements(dcpFirst, dcpLast); 935internal List<AttachedObject> GetAttachedObjects(int dcpFirst, int dcpLast) 938List<AttachedObject> attachedObjects = new List<AttachedObject>(); 939List<TextElement> textElements = GetAttachedObjectElements(dcpFirst, dcpLast); 1020internal void SubmitInlineObjects(int dcpStart, int dcpLim, List<InlineObject> inlineObjects) 1038internal void SubmitAttachedObjects(int dcpStart, int dcpLim, List<AttachedObject> attachedObjects) 1052internal List<InlineObject> InlineObjectsFromRange(int dcpStart, int dcpLast) 1054List<InlineObject> objects = null; 1521private void SubmitEmbeddedObjects<T>(ref List<T> objectsCached, int dcpStart, int dcpLim, List<T> objectsNew) where T : EmbeddedObject 1634ref List<T> objectsCached, 1738private List<AttachedObject> _attachedObjects; 1740internal List<AttachedObject> AttachedObjectDbg { get { return _attachedObjects; } } 1746private List<InlineObject> _inlineObjects;
MS\Internal\PtsHost\UIElementParaClient.cs (2)
83internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 85List<Rect> rectangles = new List<Rect>();
MS\Internal\Text\Line.cs (2)
152internal List<Rect> GetRangeBounds(int cp, int cch, double xOffset, double yOffset) 154List<Rect> rectangles = new List<Rect>();
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (4)
100public static List<ComInterfaceEntry> GetInterfaceTableEntries(object obj) 102var entries = new List<ComInterfaceEntry>(); 145public static (InspectableInfo inspectableInfo, List<ComInterfaceEntry> interfaceTableEntries) PregenerateNativeTypeInformation(object obj) 147var interfaceTableEntries = GetInterfaceTableEntries(obj);
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (1)
73var entries = ComWrappersSupport.GetInterfaceTableEntries(obj);
MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
85private static List<string> ScriptCodesRequiringDedicatedSegmenter { get; } = new List<string>
System\Windows\Annotations\AnnotationHelper.cs (5)
722List<IAttachedAnnotation> attachedAnnotations = null; 723List<Annotation> annotations = new List<Annotation>(); 753private static void AddRange(List<Annotation> annotations, IList<Annotation> newAnnotations) 773private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations) 776List<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(annotations.Count);
System\Windows\Annotations\AnnotationService.cs (19)
787List<IAttachedAnnotation> annotations = obj as List<IAttachedAnnotation>; 794List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 855List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 909List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 957List<IAttachedAnnotation> existingAnnotations = _annotationMap.GetAllAttachedAnnotations(); 1160List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(); 1161DescendentsWalker<List<IAttachedAnnotation>> walker = new DescendentsWalker<List<IAttachedAnnotation>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result); 1175private bool GetAttachedAnnotationsFor(DependencyObject node, List<IAttachedAnnotation> result, bool visitedViaVisualTree) 1180List<IAttachedAnnotation> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1273List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(annotation.Anchors.Count); 1305List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(list.Length); 1466List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1494List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1609private void FireEvents(List<AttachedAnnotationChangedEventArgs> eventsToFire)
System\Windows\Annotations\LocatorGroup.cs (1)
217List<ContentLocatorBase> tempList = new List<ContentLocatorBase>(locatorGroup.Locators.Count * (this.Locators.Count - 1));
System\Windows\Annotations\LocatorPartList.cs (1)
349List<ContentLocatorBase> results = null;
System\Windows\Annotations\Storage\XmlStreamStore.cs (7)
541private List<Guid> FindAnnotationIds(string queryExpression) 547List<Guid> retObj = null; 645private IList<Annotation> MergeAndCacheAnnotations(Dictionary<Guid, Annotation> mapAnnotations, List<Guid> storeAnnotationsId) 648List<Annotation> annotations = new List<Annotation>((IEnumerable<Annotation>)mapAnnotations.Values); 688List<Guid> annotationIds = FindAnnotationIds(query); 944List<Annotation> mapAnnotations = _storeAnnotationsMap.FindDirtyAnnotations(); 1033private List<Uri> _ignoredNamespaces = new List<Uri>();
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (4)
102protected override List<AutomationPeer> GetChildrenCore() 109List<AutomationPeer> peers = new List<AutomationPeer>(); 456List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 603List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>();
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (2)
64protected override List<AutomationPeer> GetChildrenCore() 66List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (1)
86internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (7)
42protected override List<AutomationPeer> GetChildrenCore() 44List<AutomationPeer> children = base.GetChildrenCore(); 173List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(); 238List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 272List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 414private void AddSelectedCells(List<IRawElementProviderSimple> cellProviders) 436private void AddSelectedRows(List<IRawElementProviderSimple> itemProviders)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (4)
93protected override List<AutomationPeer> GetChildrenCore() 103List<AutomationPeer> children = wrapperPeer.GetChildren(); 567List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(1); 589List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(1);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (2)
58protected override List<AutomationPeer> GetChildrenCore() 60List<AutomationPeer> children = null;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (5)
44protected override List<AutomationPeer> GetChildrenCore() 54List<AutomationPeer> children = wrapperPeer.GetChildren(); 373List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(); 406internal List<AutomationPeer> GetCellItemPeers() 408List<AutomationPeer> children = null;
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (2)
50protected override List<AutomationPeer> GetChildrenCore() 57List<AutomationPeer> children = new List<AutomationPeer>(3);
System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (2)
87protected override List<AutomationPeer> GetChildrenCore() 89List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
194protected override List<AutomationPeer> GetChildrenCore()
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
55protected override List<AutomationPeer> GetChildrenCore() 198internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\DocumentPageViewAutomationPeer.cs (1)
33protected override List<AutomationPeer> GetChildrenCore()
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (2)
60protected override List<AutomationPeer> GetChildrenCore() 63List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\ExpanderAutomationPeer.cs (2)
30protected override List<AutomationPeer> GetChildrenCore() 32List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\FlowDocumentPageViewerAutomationPeer.cs (2)
33protected override List<AutomationPeer> GetChildrenCore() 36List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (2)
52protected override List<AutomationPeer> GetChildrenCore() 55List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (2)
77protected override List<AutomationPeer> GetChildrenCore() 80List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (5)
64List<AutomationPeer> IViewAutomationPeer.GetChildren(List<AutomationPeer> children) 132List<IRawElementProviderSimple> array = new List<IRawElementProviderSimple>(_owner.HeaderRowPresenter.ActualColumnHeaders.Count); 236List<AutomationPeer> columns = peer.GetChildren(); 266List<AutomationPeer> list = lvPeer.GetChildren();
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (3)
74List<AutomationPeer> children = GetChildrenAutomationPeer(Owner, includeInvisibleItems); 136private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent, bool includeInvisibleItems) 140List<AutomationPeer> children = null;
System\Windows\Automation\Peers\GridViewHeaderRowPresenterAutomationPeer.cs (3)
37protected override List<AutomationPeer> GetChildrenCore() 39List<AutomationPeer> list = base.GetChildrenCore(); 40List<AutomationPeer> newList = null;
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
36protected override List<AutomationPeer> GetChildrenCore() 51List<AutomationPeer> list = new List<AutomationPeer>();
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (3)
111protected override List<AutomationPeer> GetChildrenCore() 120List<AutomationPeer> children = new List<AutomationPeer>(); 283internal void InvalidateGroupItemPeersContainingRecentlyRealizedPeers(List<ItemAutomationPeer> recentlyRealizedPeers)
System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
182protected override List<AutomationPeer> GetChildrenCore() 189List<AutomationPeer> children = wrapperPeer.GetChildren();
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (6)
54protected override List<AutomationPeer> GetChildrenCore() 56List<AutomationPeer> children = null; 500internal List<ItemAutomationPeer> RecentlyRealizedPeers 516private List<ItemAutomationPeer> _recentlyRealizedPeers; // *** DEAD CODE Only use is from dead code when UseNetFx472CompatibleAccessibilityFeatures==true *** 661List<object> cleanUpItemsCollection = new List<object>(); 723private List<KeyValuePair<object, T>> _list = null;
System\Windows\Automation\Peers\IViewAutomationPeer.cs (2)
35List<AutomationPeer> GetChildren(List<AutomationPeer> children);
System\Windows\Automation\Peers\ListViewAutomationPeer.cs (2)
56protected override List<AutomationPeer> GetChildrenCore() 64List<AutomationPeer> ret = base.GetChildrenCore();
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
160protected override List<AutomationPeer> GetChildrenCore() 162List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (1)
152internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
69protected override List<AutomationPeer> GetChildrenCore() 78internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
91List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(count);
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (5)
32protected override List<AutomationPeer> GetChildrenCore() 34List<AutomationPeer> list = new List<AutomationPeer>(); 61List<AutomationPeer> childList = GetChildrenAutomationPeer(item); 82private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent) 86List<AutomationPeer> children = null;
System\Windows\Automation\Peers\TabItemAutomationPeer.cs (3)
49protected override List<AutomationPeer> GetChildrenCore() 52List<AutomationPeer> headerChildren = base.GetChildrenCore(); 65List<AutomationPeer> contentChildren = contentHostPeer.GetChildren();
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
111internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (2)
30protected override List<AutomationPeer> GetChildrenCore() 32List<AutomationPeer> peers = null;
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (1)
123internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
36protected override List<AutomationPeer> GetChildrenCore() 204internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (2)
53protected override List<AutomationPeer> GetChildrenCore() 63List<AutomationPeer> children = null;
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (2)
50protected override List<AutomationPeer> GetChildrenCore() 52List<AutomationPeer> children = null;
System\Windows\BroadcastEventHelper.cs (4)
230internal BroadcastEventData(DependencyObject root, RoutedEvent routedEvent, List<DependencyObject> eventRoute) 239internal List<DependencyObject> EventRoute; 255List<DependencyObject> eventRoute = new List<DependencyObject>(); 287List<DependencyObject> eventRoute = data.EventRoute;
System\Windows\Controls\AlternationConverter.cs (1)
56private List<object> _values = new List<object>();
System\Windows\Controls\CustomDictionarySources.cs (1)
356private readonly List<Uri> _uriList;
System\Windows\Controls\DataGrid.cs (11)
413internal List<int> DisplayIndexMap 2115List<int> columnIndexRanges = null; 3628List<int> columnIndexRanges = null; 5324List<Tuple<int, int>> ranges = null; 7209private List<int> GroupingSortDescriptionIndices 7541List<int> groupingSortDescriptionIndices = GroupingSortDescriptionIndices; 7597List<Tuple<int, int>> ranges = new List<Tuple<int, int>>(); 7676List<ItemInfo> list = new List<ItemInfo>(); 7696List<ItemInfo> list = new List<ItemInfo>(); 8589private List<ItemInfo> _pendingInfos; // Selected items whose index is not yet known 8604private List<int> _groupingSortDescriptionIndices = null; // List to hold the indices of SortDescriptions added for the sake of GroupDescriptions.
System\Windows\Controls\DataGridCellsPanel.cs (32)
164List<RealizedColumnsBlock> blockList = RealizedColumnsBlockList; 219List<int> realizedColumnIndices = new List<int>(); 220List<int> realizedColumnDisplayIndices = new List<int>(); 428List<int> realizedColumnIndices, 429List<int> realizedColumnDisplayIndices, 458private static List<RealizedColumnsBlock> BuildRealizedColumnsBlockList(List<int> indexList) 460List<RealizedColumnsBlock> resultList = new List<RealizedColumnsBlock>(); 780private static bool InBlockOrNextBlock(List<RealizedColumnsBlock> blockList, int index, ref int blockIndex, ref RealizedColumnsBlock block, out bool pastLastBlock) 817List<int> realizedColumnIndices, 818List<int> realizedColumnDisplayIndices) 858List<int> realizedColumnIndices, 859List<int> realizedColumnDisplayIndices, 946List<int> realizedColumnIndices, 947List<int> realizedColumnDisplayIndices, 990List<int> realizedColumnIndices, 991List<int> realizedColumnDisplayIndices, 1021private void VirtualizeChildren(List<RealizedColumnsBlock> blockList, IItemContainerGenerator generator) 1320private static void Debug_VerifyRealizedIndexCountVsDisplayIndexCount(List<RealizedColumnsBlock> blockList, List<RealizedColumnsBlock> displayIndexBlockList) 1359List<RealizedColumnsBlock> displayIndexBlockList = RealizedColumnsDisplayIndexBlockList; 1363List<RealizedColumnsBlock> blockList = RealizedColumnsBlockList; 1367List<int> additionalChildIndices = GetRealizedChildrenNotInBlockList(blockList, children); 1532private static RealizedColumnsBlock GetRealizedBlockForColumn(List<RealizedColumnsBlock> blockList, int columnIndex) 1551private List<int> GetRealizedChildrenNotInBlockList(List<RealizedColumnsBlock> blockList, IList children) 1563List<int> additionalChildIndices = new List<int>(); 1634List<int> displayIndexMap = columns.DisplayIndexMap; 1635List<RealizedColumnsBlock> blockList = RealizedColumnsBlockList; 1696private List<RealizedColumnsBlock> RealizedColumnsBlockList 1727private List<RealizedColumnsBlock> RealizedColumnsDisplayIndexBlockList 2437private List<UIElement> _realizedChildren;
System\Windows\Controls\DataGridColumnCollection.cs (10)
233internal List<int> DisplayIndexMap 900List<DataGridColumn> unResolvedColumns = new List<DataGridColumn>(); 901List<DataGridColumn> partialResolvedColumns = new List<DataGridColumn>(); 2389internal List<RealizedColumnsBlock> RealizedColumnsBlockListForNonVirtualizedRows 2415internal List<RealizedColumnsBlock> RealizedColumnsDisplayIndexBlockListForNonVirtualizedRows 2432internal List<RealizedColumnsBlock> RealizedColumnsBlockListForVirtualizedRows 2458internal List<RealizedColumnsBlock> RealizedColumnsDisplayIndexBlockListForVirtualizedRows 2531private List<int> _displayIndexMap; // maps a DisplayIndex to an index in the _columns collection. 2537private List<RealizedColumnsBlock> _realizedColumnsBlockListForNonVirtualizedRows = null; // Realized columns for non-virtualized rows 2538private List<RealizedColumnsBlock> _realizedColumnsBlockListForVirtualizedRows = null; // Realized columns for virtualized rows
System\Windows\Controls\DataGridRowClipboardEventArgs.cs (2)
46public List<DataGridClipboardCellContent> ClipboardRowContent 112private List<DataGridClipboardCellContent> _clipboardRowContent;
System\Windows\Controls\DefinitionBase.cs (1)
947private readonly List<DefinitionBase> _registry; // registry of participating definitions
System\Windows\Controls\Frame.cs (1)
1393private List<CommandBinding> _commandBindings;
System\Windows\Controls\GridViewColumnCollection.cs (4)
156internal List<GridViewColumn> ColumnCollection { get { return _columns; } } 160internal List<int> IndexList { get { return _actualIndices; } } 458private List<GridViewColumn> _columns = new List<GridViewColumn>(); 462private List<int> _actualIndices = new List<int>();
System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
1560internal List<GridViewColumnHeader> ActualColumnHeaders 1588private List<GridViewColumnHeader> _gvHeaders; 1592private List<Rect> HeadersPositionList 1605private List<Rect> _headersPositionList;
System\Windows\Controls\GridViewRowPresenter.cs (3)
400internal List<UIElement> ActualCells 404List<UIElement> list = new List<UIElement>(); 409List<int> indexList = columns.IndexList;
System\Windows\Controls\InkCanvas.cs (2)
2098List<UIElement> newElements = new List<UIElement>(); 2515List<UIElement> elements = new List<UIElement>();
System\Windows\Controls\ItemCollection.cs (2)
1574internal override void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources)
System\Windows\Controls\ItemContainerGenerator.cs (6)
999List<string> errors = new List<string>(); 1060List<string> sources = new List<string>(); 1105private void FormatCollectionChangedSource(int level, object source, bool? isLikely, List<string> sources) 1136private void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources) 2793private List<EmptyGroupItem> _emptyGroupItems;
System\Windows\Controls\ItemsControl.cs (1)
3621List<DependencyObject> claimedContainers = new List<DependencyObject>();
System\Windows\Controls\Panel.cs (1)
990System.Collections.Generic.List<Int64> stableKeyValues = null;
System\Windows\Controls\PopupControlService.cs (2)
847List<NativeMethods.RECT> rects = new List<NativeMethods.RECT>(); 1354internal ConvexHull(PresentationSource source, List<NativeMethods.RECT> rects)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
422List<DocumentPageView> pageViewList; 892private void FindDocumentPageViews(Visual root, List<DocumentPageView> pageViews)
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
203internal List<double> DesiredWidthList 349private List<double> _desiredWidthList;
System\Windows\Controls\Primitives\Popup.cs (4)
149internal static readonly UncommonField<List<Popup>> RegisteredPopupsField = new UncommonField<List<Popup>>(); 185List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget); 210List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget);
System\Windows\Controls\Primitives\Selector.cs (10)
1764private void InvokeSelectionChanged(List<ItemInfo> unselectedInfos, List<ItemInfo> selectedInfos) 1957internal void LocateSelectedItems(List<Tuple<int,int>> ranges = null, bool deselectMissingItems=false) 1959List<int> knownIndices = new List<int>(_selectedItems.Count); 2286List<ItemInfo> unselected = new List<ItemInfo>(); 2287List<ItemInfo> selected = new List<ItemInfo>(); 2345private void CreateDeltaSelectionChange(List<ItemInfo> unselectedItems, List<ItemInfo> selectedItems) 2406List<ItemInfo> toRemove = (_toSelect.UnresolvedCount > 0) 2896private List<ItemInfo> _list;
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
68List<UIElement> generatedItemsCollection = toolBarPanel.GeneratedItemsCollection;
System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
523internal List<UIElement> GeneratedItemsCollection 532private List<UIElement> _generatedItemsCollection;
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (2)
19public SelectedCellsChangedEventArgs(List<DataGridCellInfo> addedCells, List<DataGridCellInfo> removedCells)
System\Windows\Controls\SelectionChangedEventArgs.cs (6)
47internal SelectionChangedEventArgs(List<ItemsControl.ItemInfo> unselectedInfos, List<ItemsControl.ItemInfo> selectedInfos) 94internal List<ItemsControl.ItemInfo> RemovedInfos 102internal List<ItemsControl.ItemInfo> AddedInfos 130private List<ItemsControl.ItemInfo> _addedInfos; 131private List<ItemsControl.ItemInfo> _removedInfos;
System\Windows\Controls\TextAdaptor.cs (2)
128List<Rect> rectangles = new List<Rect>(); 508List<TextSegment> visibleTextSegments = new List<TextSegment>();
System\Windows\Controls\TextBlock.cs (5)
1784List<Rect> rectangles = new List<Rect>(); 1819List<Rect> lineBounds = line.GetRangeBounds(boundStart, boundEnd - boundStart, xOffset, yOffset); 1856System.Collections.Generic.List<TextSegment> textSegmentsList = new System.Collections.Generic.List<TextSegment>(1); 2036List<LineResult> lines = new List<LineResult>(lineCount); 3855private List<LineMetrics> _subsequentLines;
System\Windows\Controls\TextRangeAdaptor.cs (3)
1418private List<AutomationPeer> GetAutomationPeersFromRange(AutomationPeer peer, ITextPointer start, ITextPointer end) 1420List<AutomationPeer> peers; 2090List<AutomationPeer> peers = GetAutomationPeersFromRange(peer, _start, _end);
System\Windows\Controls\TextSearch.cs (1)
824private List<string> _charsEntered;
System\Windows\Controls\ToolBarTray.cs (15)
356List<ToolBar> band = _bands[bandIndex].Band; 420List<ToolBar> band = _bands[bandIndex].Band; 542List<ToolBar> band = _bands[currentBand].Band; 642List<ToolBar> oldBand = _bands[currentBand].Band; 664private void ShrinkToolBars(List<ToolBar> band, int startIndex, int endIndex, double shrinkAmount) 702private double ToolBarsTotalMinimum(List<ToolBar> band, int startIndex, int endIndex) 712private void ExpandToolBars(List<ToolBar> band, int startIndex, int endIndex, double expandAmount) 750private double ToolBarsTotalMaximum(List<ToolBar> band, int startIndex, int endIndex) 765List<ToolBar> newBand = _bands[newBandNumber].Band; 841List<ToolBar> band = _bands[bandIndex].Band; 863List<ToolBar> band = _bands[bandIndex].Band; 915private void InsertToolBar(ToolBar toolBar, List<ToolBar> band) 944public List<ToolBar> Band 955private List<ToolBar> _band = new List<ToolBar>(); 965private List<BandInfo> _bands = new List<BandInfo>(0);
System\Windows\Controls\VirtualizedCellInfoCollection.cs (33)
34private VirtualizedCellInfoCollection(DataGrid owner, List<CellRegion> regions) 201List<DataGridCellInfo> list = new List<DataGridCellInfo>(); 232public VirtualizedCellInfoCollectionEnumerator(DataGrid owner, List<CellRegion> regions, VirtualizedCellInfoCollection collection) 293private List<CellRegion> _regions; 700public bool Remainder(CellRegion region, out List<CellRegion> remainder) 832List<CellRegion> addList = new List<CellRegion>(); 843List<CellRegion> remainder; 893List<CellRegion> removeList = null; 902private void RemoveRegion(int rowIndex, int columnIndex, int rowCount, int columnCount, ref List<CellRegion> removeList) 926List<CellRegion> remainder; 943internal void OnItemsCollectionChanged(NotifyCollectionChangedEventArgs e, List<Tuple<int,int>> ranges) 976List<CellRegion> keepRegions = null; 1004List<CellRegion> keepRegions = null; 1005List<CellRegion> removedRegions = null; 1044List<CellRegion> removedRegions = null; 1060List<CellRegion> slideRegions = null; 1061List<CellRegion> movedRegions = null; 1149List<CellRegion> keepRegions = null; 1192List<CellRegion> keepRegions = null; 1193List<CellRegion> removedRegions = null; 1232List<CellRegion> removedRegions = null; 1251List<CellRegion> slideRegions = null; 1252List<CellRegion> movedRegions = null; 1311internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, DataGridColumn column) 1317internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, object item) 1409List<CellRegion> removeList = new List<CellRegion>(); 1430internal void RestoreOnlyFullRows(List<Tuple<int,int>> ranges) 1485List<CellRegion> removeList = null; 1527internal bool Intersects(int rowIndex, out List<int> columnIndexRanges) 1577private static void ConvertIndexToIndexes(List<CellRegion> regions, int index, out int rowIndex, out int columnIndex) 1602private DataGridCellInfo GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index) 1631private void AddRegionToList(CellRegion region, List<DataGridCellInfo> list) 1661private List<CellRegion> _regions;
System\Windows\Controls\VirtualizingStackPanel.cs (24)
2037List<double> previouslyMeasuredOffsets = null; 2095ref List<double> previouslyMeasuredOffsets, 4505List<double> offsetList = effectiveOffsetInfo.OffsetList; 5665List<Double> childOffsetList = effectiveOffsetInformation?.OffsetList; 5691List<double> offsetList = effectiveOffsetInformation.OffsetList; 9441List<String> list = new List<String>(count); 9461List<String> list = new List<String>(count); 9581ref List<double> previouslyMeasuredOffsets) 10432ref List<double> previouslyMeasuredOffsets) 10918ref List<double> previouslyMeasuredOffsets, 10930List<double> previouslyMeasuredOffsets, 11692private List<UIElement> _realizedChildren; 11884public List<double> previouslyMeasuredOffsets { get; set; } 11960public List<double> OffsetList { get; private set; } 12447record.RevirtualizedChildren = args[2] as List<String>; 12464private static List<Tuple<WeakReference<ItemsControl>,TraceList>> s_TargetToTraceListMap 12564private List<ScrollTraceRecord> _traceList = new List<ScrollTraceRecord>(); 12771internal List<String> RevirtualizedChildren 12773get { return _extraData as List<String>; } 12793List<String> children; 12829internal List<ChildInfo> _realizedChildren; 12845internal List<Double> _effectiveOffsets; 12990List<ChildInfo> list = new List<ChildInfo>(); 13045internal List<double> EffectiveOffsets { get; set; }
System\Windows\Data\BindingExpression.cs (8)
2302List<object> propertyErrors = GetDataErrors(indei, propertyName); 2303List<object> valueErrors = GetDataErrors(dataErrorValue, String.Empty); 2304List<object> errors = MergeErrors(propertyErrors, valueErrors); 2324internal static List<object> GetDataErrors(INotifyDataErrorInfo indei, string propertyName) 2327List<object> result = null; 2364private List<object> MergeErrors(List<object> list1, List<object> list2)
System\Windows\Data\BindingExpressionBase.cs (13)
233internal List<ValidationError> NotifyDataErrors 235get { return (List<ValidationError>)GetValue(Feature.NotifyDataErrors, null); } 279List<ValidationError> list; 2273internal void UpdateNotifyDataErrorValidationErrors(List<object> errors) 2275List<object> toAdd; 2276List<ValidationError> toRemove; 2285List<ValidationError> notifyDataErrors = NotifyDataErrors; 2303List<ValidationError> notifyDataErrors = NotifyDataErrors; 2315internal static void GetValidationDelta(List<ValidationError> previousErrors, List<object> errors, out List<object> toAdd, out List<ValidationError> toRemove) 2428var tempList = new List<WeakDependencySource>();
System\Windows\Data\BindingGroup.cs (11)
259List<ValidationError> errors = new List<ValidationError>(); 1061List<object> errors; 1078private void UpdateNotifyDataErrorValidationErrors(WeakReference itemWR, List<object> errors) 1081List<ValidationError> itemErrors; 1085List<object> toAdd; 1086List<ValidationError> toRemove; 1340List<BindingExpressionBase> list = _getValueTable.RemoveRootBinding(root); 1532private Dictionary<WeakReference, List<ValidationError>> _notifyDataErrors = new Dictionary<WeakReference, List<ValidationError>>(); 1622public List<BindingExpressionBase> RemoveRootBinding(BindingExpressionBase rootBindingExpression) 1624List<BindingExpressionBase> result = new List<BindingExpressionBase>();
System\Windows\Data\BindingListCollectionView.cs (3)
2385List<AbandonedGroupItem> deleteList = new List<AbandonedGroupItem>(); 2486List<Action> deferredActions = _deferredActions; 2548private List<Action> _deferredActions;
System\Windows\Data\BindingOperations.cs (4)
379List<BindingExpressionBase> list = DataBindEngine.CurrentDataBindEngine.CommitManager.GetBindingsInScope(root); 390List<BindingGroup> list = DataBindEngine.CurrentDataBindEngine.CommitManager.GetBindingGroupsInScope(root); 590internal List<Exception> Log { get { return _log; } } 592private List<Exception> _log = new List<Exception>();
System\Windows\Data\CollectionContainer.cs (2)
219internal void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources)
System\Windows\Data\CollectionView.cs (10)
1476List<ItemPropertyInfo> list = new List<ItemPropertyInfo>(); 1571internal virtual void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources) 1804private void DeferProcessing(List<NotifyCollectionChangedEventArgs> changeLog) 1834private List<NotifyCollectionChangedEventArgs> ProcessChangeLog(List<NotifyCollectionChangedEventArgs> changeLog, bool processAll = false) 1933List<NotifyCollectionChangedEventArgs> unprocessedChanges = ProcessChangeLog(_tempChangeLog); 2127private List<NotifyCollectionChangedEventArgs> _changeLog = new(); 2128private List<NotifyCollectionChangedEventArgs> _tempChangeLog = s_emptyList; 2147private static readonly List<NotifyCollectionChangedEventArgs> s_emptyList = new();
System\Windows\Data\CompositeCollection.cs (2)
587internal void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources)
System\Windows\Data\ListCollectionView.cs (3)
3203List<AbandonedGroupItem> deleteList = new List<AbandonedGroupItem>(); 3284List<Action> deferredActions = _deferredActions; 3323private List<Action> _deferredActions;
System\Windows\DescendentsWalker.cs (2)
231List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent); 335List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent);
System\Windows\Diagnostics\BindingDiagnostics.cs (2)
23private static List<BindingFailedEventArgs> s_pendingEvents; 69List<BindingFailedEventArgs> pendingEvents = null;
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (13)
152List<WeakReference<ResourceDictionary>> list; 158List<ResourceDictionary> result = new List<ResourceDictionary>(list.Count); 159List<WeakReference<ResourceDictionary>> toRemove = null; 202List<WeakReference<ResourceDictionary>> list; 206_dictionariesFromUri = new Dictionary<Uri, List<WeakReference<ResourceDictionary>>>(); 234List<WeakReference<ResourceDictionary>> list; 237List<WeakReference<ResourceDictionary>> toRemove = new List<WeakReference<ResourceDictionary>>(); 254List<WeakReference<ResourceDictionary>> list, 255List<WeakReference<ResourceDictionary>> toRemove) 268private static Dictionary<Uri, List<WeakReference<ResourceDictionary>>> _dictionariesFromUri; 300List<T> result = new List<T>(list.Count); 504List<WeakReferenceKey<StaticResourceExtension>> toRemove = null; 528private static List<object> IgnorableProperties = new List<object>();
System\windows\Documents\CaretElement.cs (1)
459List<TextSegment> textSegments = _textEditor.Selection.TextSegments;
System\Windows\Documents\DocumentReferenceCollection.cs (1)
177private List<DocumentReference> _internalList;
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
713List<TextSegment> rangeArray = new List<TextSegment>(4);
System\Windows\Documents\DocumentSequenceTextView.cs (1)
548List<TextSegment> parentSegments = new List<TextSegment>(childSegments.Count);
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (2)
27internal List<BlockElement> BlockElementList 38internal List<BlockElement> _elementList;
System\Windows\Documents\DocumentStructures\StoryFragments.cs (4)
61internal List<StoryFragment> StoryFragmentList 69private List<StoryFragment> _elementList; 167internal List<BlockElement> BlockElementList 175private List<BlockElement> _elementList;
System\Windows\Documents\FixedDocument.cs (2)
1058List<FixedPage> oldHighlightPages = new List<FixedPage>(); 1134List<int> dirtyPages = new List<int>();
System\Windows\Documents\FixedDSBuilder.cs (5)
61public void ConstructFlowNodes(FixedTextBuilder.FlowModelBuilder flowBuilder, List<FixedNode> fixedNodes) 70List<StoryFragment> StoryFragmentList = StoryFragments.StoryFragmentList; 73List<BlockElement> blockElementList = storyFragme.BlockElementList; 164List<BlockElement> blockElementList = sbe.BlockElementList; 251private List<FixedNode> _fixedNodes;
System\Windows\Documents\FixedElement.cs (1)
459private List<FixedElement> _children;
System\Windows\Documents\FixedFlowMap.cs (10)
159internal void MappingReplace(FlowNode flowOld, List<FlowNode> flowNew) 175List<FixedSOMElement> entry = _GetEntry(fixedp); 209FlowNode flowNode = ((List<FixedSOMElement>) _GetEntry(start))[0].FlowNode; 314internal List<FlowNode> FlowNodes 368private List<FixedSOMElement> _GetEntry(FixedNode node) 372_cachedEntry = (List<FixedSOMElement>)_mapping[node]; 381List<FixedSOMElement> entry; 384entry = (List<FixedSOMElement>)_mapping[fn]; 403private List<FlowNode> _flowOrder; // Flow Order represents a linear stream of symbols view on the fixed document 412private List<FixedSOMElement> _cachedEntry;
System\Windows\Documents\FixedPage.cs (2)
1007List<int> childPath = new List<int>(); 1232private void _RenderMarkupOrder(DrawingContext dc, List<FixedNode> markupOrder)
System\Windows\Documents\FixedPageStructure.cs (4)
670public void ConstructFixedSOMPage(List<FixedNode> fixedNodes) 811List<FlowNode> nodes = new List<FlowNode>(); 844internal List<FixedNode> FixedNodes 889private List<FixedNode> _fixedNodes;
System\Windows\Documents\FixedSOMContainer.cs (5)
178public List<FixedSOMSemanticBox> SemanticBoxes 190public List<FixedNode> FixedNodes 220List<FixedNode> nodes = container.FixedNodes; 251protected List<FixedSOMSemanticBox> _semanticBoxes; 252protected List<FixedNode> _fixedNodes;
System\Windows\Documents\FixedSOMLineCollection.cs (6)
67private void _AddLineToRanges(List<FixedSOMLineRanges> ranges, double line, double start, double end) 110private bool _IsSeparated(List<FixedSOMLineRanges> lines, double parallelLowEnd, double perpLowEnd, double parallelHighEnd, double perpHighEnd) 168public List<FixedSOMLineRanges> HorizontalLines 176public List<FixedSOMLineRanges> VerticalLines 192private List<FixedSOMLineRanges> _horizontals; 193private List<FixedSOMLineRanges> _verticals;
System\Windows\Documents\FixedSOMLineRanges.cs (4)
81public List<double> Start 93public List<double> End 116private List<double> _start; // where lines start. Invariant: _start[i] < _end[i] 117private List<double> _end; // where lines end. Invariant: _end[i] < _start[i+1]
System\Windows\Documents\FixedSOMPage.cs (3)
59List<FixedSOMSemanticBox> groupBoxes = group.SemanticBoxes; 113internal List<FixedNode> MarkupOrder 143private List<FixedNode> _markupOrder;
System\Windows\Documents\FixedSOMPageConstructor.cs (9)
235public FixedSOMPage ConstructPageStructure(List<FixedNode> fixedNodes) 752List<FixedSOMLineRanges> horizontal = _lines.HorizontalLines; 753List<FixedSOMLineRanges> vertical = _lines.VerticalLines; 758List<FixedSOMTableRow> tableRows = new List<FixedSOMTableRow>(); 869List<FixedSOMSemanticBox> boxes = _fixedSOMPage.SemanticBoxes; 1018private void _FillTables(List<FixedSOMTableRow> tableRows) 1020List<FixedSOMTable> tables = new List<FixedSOMTable>(); 1129List<FixedSOMSemanticBox> groups = new List<FixedSOMSemanticBox>(); 1178private List<FixedNode> _fixedNodes;
System\Windows\Documents\FixedSOMTextRun.cs (1)
74List<FixedNode> markupOrder = this.FixedBlock.FixedSOMPage.MarkupOrder;
System\Windows\Documents\FixedTextBuilder.cs (10)
881List<FixedNode> fixedNodes = new List<FixedNode>(); 923List<FixedNode> fixedNodes, // start empty, nodes will be added to this list 1055List<FixedSOMSemanticBox> children = node.SemanticBoxes; 1152private List<FixedPageStructure> _pageStructures; // contain all FixedPageStructure for each page. 1358private List<LogicalHyperlink> _hyperlinks; 1778private List<FixedSOMTextRun> _textRuns; 1779private List<FlowNode> _flowNodes; 1780private List<FixedNode> _fixedNodes; 1781private List<FixedNode> _nodesInLine; 1782private List<FixedLineResult> _lineResults;
System\Windows\Documents\FixedTextView.cs (1)
717List<TextSegment> list = new List<TextSegment>(1);
System\Windows\Documents\Glyphs.cs (2)
322List<ParsedGlyphData> parsedGlyphs; 496out List<ParsedGlyphData> parsedGlyphs,
System\Windows\Documents\Highlights.cs (1)
337List<TextSegment> ranges;
System\Windows\Documents\ITextRange.cs (2)
248List<TextSegment> TextSegments { get; } 376List<TextSegment> _TextSegments { get; set; }
System\Windows\Documents\MsSpellCheckLib\SpellChecker\OptionDescription.cs (2)
31private List<string> _labels; 45private OptionDescription(string id, string heading, string description, List<string> labels = null)
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (20)
83public List<string> SuggestImpl(string word) 91public List<string> SuggestImplWithRetries(string word, bool shouldSuppressCOMExceptions = true) 93List<string> result = null; 104public List<string> Suggest(string word, bool shouldSuppressCOMExceptions = true) 215private List<string> GetOptionIdsImpl() 221private List<string> GetOptionIdsImplWithRetries(bool suppressCOMExceptions) 223List<string> optionIds = null; 234public List<string> GetOptionIds(bool suppressCOMExceptions = true) 325private List<SpellingError> CheckImpl(string text) 331private List<SpellingError> CheckImplWithRetries(string text, bool suppressCOMExceptions) 333List<SpellingError> errors = null; 344public List<SpellingError> Check(string text, bool suppressCOMExceptions = true) 353public List<SpellingError> ComprehensiveCheckImpl(string text) 359public List<SpellingError> ComprehensiveCheckImplWithRetries(string text, bool shouldSuppressCOMExceptions = true) 361List<SpellingError> errors = null; 372public List<SpellingError> ComprehensiveCheck(string text, bool shouldSuppressCOMExceptions = true) 425List<HasErrorsResult> hasErrorsCache = _hasErrorsCache; 640private static readonly Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>> 661private List<HasErrorsResult> _hasErrorsCache;
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellingError.cs (2)
49private List<string> _suggestions; 92var suggestions = spellChecker.Suggest(text, shouldSuppressCOMExceptions);
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (9)
52private static Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>> 180private List<string> SupportedLanguagesImpl() 184List<string> result = null; 193private List<string> SupportedLanguagesImplWithRetries(bool shouldSuppressCOMExceptions) 195List<string> languages = null; 210private List<string> GetSupportedLanguagesPrivate(bool shouldSuppressCOMExceptions = true) 212List<string> result = null; 219internal static List<string> GetSupportedLanguages(bool shouldSuppressCOMExceptions = true)
System\Windows\Documents\MsSpellCheckLib\Utils\Extensions.cs (5)
26internal static List<string> ToList( 31var result = new List<string>(); 70internal static List<SpellingError> ToList( 79var result = new List<SpellingError>(); 118internal static bool IsClean(this List<SpellingError> errors)
System\Windows\Documents\MsSpellCheckLib\Utils\RetryHelper.cs (6)
50List<Type> ignoredExceptions, 106List<Type> ignoredExceptions, 166List<Type> ignoredExceptions, 228List<Type> ignoredExceptions, 281private static bool MatchException(Exception exception, List<Type> exceptions) 296private static void ValidateExceptionTypeList(List<Type> exceptions)
System\Windows\Documents\NLGSpellerInterop.cs (3)
571List<string> suggestions = new List<string>(); 623List<ISpellerSegment> subSegments = new List<ISpellerSegment>(); 831List<ISpellerSegment> segments = new List<ISpellerSegment>();
System\Windows\Documents\PageContentCollection.cs (1)
178private List<PageContent> _internalList;
System\Windows\Documents\Serialization\SerializerProvider.cs (1)
34List<SerializerDescriptor> installedSerializers = new List<SerializerDescriptor>();
System\Windows\Documents\Speller.cs (5)
172internal List<string> GetSuggestionsForError(SpellingError error) 181List<string> suggestions = new(4); 895List<string> suggestions = (List<string>)data.Data; 2019private List<string> _ignoredWordsList;
System\Windows\Documents\SpellerHighlightLayer.cs (1)
200List<TextSegment> list;
System\Windows\Documents\TextEffectResolver.cs (1)
50List<TextEffectTarget> list = new List<TextEffectTarget>();
System\Windows\Documents\TextRange.cs (3)
351List<TextSegment> ITextRange.TextSegments 506List<TextSegment> ITextRange._TextSegments 1883private List<TextSegment> _textSegments;
System\Windows\Documents\TextRangeBase.cs (2)
1219internal static List<TextSegment> GetTextSegments(ITextRange thisRange) 1982List<TextSegment> textSegments;
System\Windows\Documents\TextRangeEditTables.cs (7)
279internal static List<TextSegment> BuildTableRange( 326private static List<TextSegment> BuildCellSelection(TableCell anchorCell, TableCell movingCell) 338List<TextSegment> cellRange = new List<TextSegment>(lastRowIndex - firstRowIndex + 1); 370private static List<TextSegment> BuildCrossTableSelection( 374List<TextSegment> textSegments = new List<TextSegment>(1); 400List<TextSegment> textSegments = range._TextSegments; 975List<TextSegment> textSegments = TextRangeEditTables.BuildTableRange(
System\Windows\Documents\TextRangeSerialization.cs (5)
84List<int> ignoreList = new List<int>(); 188private static void WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool ignoreWriteHyperlinkEnd, List<int> ignoreList, bool preserveTextElements) 337List<TextSegment> textSegments = range.TextSegments; 343List<int> ignoreList = new List<int>(); 414private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements)
System\windows\Documents\TextSelectionHighlightLayer.cs (3)
83List<TextSegment> textSegments = _selection.TextSegments; 109List<TextSegment> textSegments = _selection.TextSegments; 328List<TextSegment> rangeArray;
System\Windows\Documents\TextStore.cs (4)
4130private List<CompositionEventRecord> CompositionEventList 4617private List<CompositionEventRecord> _compositionEventList; 4939private static List<Tuple<WeakReference<FrameworkElement>,TraceList>> s_TargetToTraceListMap 5039private List<IMECompositionTraceRecord> _traceList = new List<IMECompositionTraceRecord>();
System\Windows\Documents\WinRTSpellerInterop.cs (5)
52_customDictionaryFiles = new Dictionary<string, List<string>>(); 517foreach (KeyValuePair<string, List<string>> items in _customDictionaryFiles) 831private Dictionary<string, List<string>> _customDictionaryFiles; 913List<string> result = new List<string>(); 922List<SpellChecker.SpellingError> spellingErrors = null;
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (1)
65var allTokens = new List<SpellerSegment>();
System\Windows\Documents\WpfPayload.cs (1)
849private List<Image> _images;
System\Windows\Documents\XPSS0ValidatingLoader.cs (1)
53List<Type> safeTypes = new List<Type> { typeof(System.Windows.ResourceDictionary) };
System\Windows\FrameworkContextData.cs (1)
93private List<WalkerEntry> _currentWalkers = new List<WalkerEntry>(4);
System\Windows\FrameworkElementFactory.cs (4)
630List<DependencyObject> affectedChildren, 631ref List<DependencyObject> noChildIndexChildren, 999List<DependencyObject> affectedChildren, ref List<DependencyObject> noChildIndexChildren )
System\Windows\FrameworkTemplate.cs (5)
552List<DependencyObject> affectedChildren) 889IStyleConnector styleConnector, List<DependencyObject> affectedChildren, UncommonField<Hashtable> templatedNonFeChildrenField) 1488internal List<String> ChildNames 1517private List<String> _childNames = new List<string>(); 1577internal ConditionalWeakTable<DependencyObject,List<DeferredAction>> DeferredActions = null;
System\Windows\Ink\Events.cs (5)
117private List<UIElement> _elements; 129List<UIElement> elements = 167List<UIElement> elements = 291private List<GestureRecognitionResult> _gestureRecognitionResults; 308List<GestureRecognitionResult> results =
System\Windows\Input\KeyboardNavigation.cs (1)
3592private List<WeakReference> _list = new List<WeakReference>(1);
System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (2)
44public List<Object> StaticResources 89private List<Object> _resources;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
247internal List<KeyRecord> ReadKeys() 901var staticResources = _context.LastKey.StaticResources;
System\Windows\Markup\Baml2006\Baml2006ReaderContext.cs (1)
43public List<KeyRecord> KeyList { get; set; }
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (4)
654private readonly List<BamlAssembly> _bamlAssembly = new List<BamlAssembly>(); 655private readonly List<object> _bamlType = new List<object>(); 656private readonly List<Object> _bamlProperty = new List<Object>(); 657private readonly List<string> _bamlString = new List<string>();
System\Windows\Markup\Baml2006\Baml6ConstructorInfo.cs (3)
8public Baml6ConstructorInfo(List<Type> types, Func<Object[], object> ctor) 14private List<Type> _types; 17public List<Type> Types { get { return _types; } }
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
331List<XamlType> xTypes = null;
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (2)
35private List<ThemeKnownTypeHelper> _themeHelpers; 337internal List<ThemeKnownTypeHelper> ThemeKnownTypeHelpers
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
178List<XamlMember> members = new List<XamlMember>();
System\Windows\Markup\BamlMapTable.cs (8)
1730private List<BamlAssemblyInfoRecord> AssemblyIdMap 1738private List<BamlTypeInfoRecord> TypeIdMap 1746private List<BamlAttributeInfoRecord> AttributeIdMap 1754private List<BamlStringInfoRecord> StringIdMap 1815private readonly List<BamlAssemblyInfoRecord> _assemblyIdToInfo = new(); 1819private readonly List<BamlTypeInfoRecord> _typeIdToInfo = new(); 1823private readonly List<BamlAttributeInfoRecord> _attributeIdToInfo = new(10); 1827private readonly List<BamlStringInfoRecord> _stringIdToInfo = new();
System\Windows\Markup\BamlReader.cs (16)
177_reverseXmlnsTable = new Dictionary<String, List<String>>(); 1364List<BamlRecord> srRecords = new List<BamlRecord>(); 1705private void ProcessStaticResourceTree(List<BamlRecord> srRecords) 2662List<String> xmlnsList = GetXmlNamespaceList(typeInfo.ClrNamespace, assemblyFullName); 2676List<String> list; 2691private List<String> GetXmlNamespaceList(string clrNamespace, string assemblyFullName) 2694List<String> xmlnsList=null; 2730private string GetXmlnsPrefix(List<String> xmlnsList) 2790private List<BamlKeyInfo> _deferKeys; 2796private List<BamlRecord> _currentStaticResourceRecords; 2864private Dictionary<String, List<String>> _reverseXmlnsTable; 3034internal List<List<BamlRecord>> StaticResources 3040_staticResources = new List<List<BamlRecord>>(); 3048private List<List<BamlRecord>> _staticResources;
System\Windows\Markup\BamlRecordReader.cs (3)
1688List<object[]> staticResourceValuesList; 1726out List<object[]> staticResourceValuesList) 5625private static List<ReaderContextStackData> _stackDataFactoryCache = new List<ReaderContextStackData>();
System\Windows\Markup\BamlRecordWriter.cs (9)
1584List<List<ValueDeferRecord>> staticResourceRecordList = keyRecord.StaticResourceRecordList; 1591List<ValueDeferRecord> srRecords = staticResourceRecordList[j]; 1778internal List<List<ValueDeferRecord>> StaticResourceRecordList 1784_staticResourceRecordList = new List<List<ValueDeferRecord>>(1); 1793private List<List<ValueDeferRecord>> _staticResourceRecordList; 1930private List<ValueDeferRecord> _staticResourceRecordList; // List of BamlRecords between the start and end of a StaticResource definition (both ends inclusive).
System\Windows\Markup\DependencyPropertyConverter.cs (1)
188List<XamlType> ceilingTypes = new List<XamlType>();
System\Windows\Markup\ParserContext.cs (2)
601internal List<object[]> StaticResourcesStack 830private List<object[]> _staticResourcesStack;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
616private static readonly List<Type> EmptyTypes = new List<Type>();
System\Windows\Markup\Primitives\MarkupWriter.cs (10)
247public List<int> Predecessors; 429private List<Entry> _entries = new List<Entry>(); 487List<int> argumentCompositeIndexes = null; 489List<MarkupProperty> composites = null; 745List<Type> wrapperTypes = GetWrapperTypes(contentProperty.PropertyType); 1081private List<Type> GetWrapperTypes(Type type) 1088List<Type> wrapperTypes = new List<Type>(); 1099private MarkupProperty GetWrappedProperty(List<Type> wrapperTypes, MarkupObject item) 1119private bool IsInTypes(Type type, List<Type> types) 1174List<Type> wrapperTypes = GetWrapperTypes(contentProperty.PropertyType);
System\Windows\Markup\RestrictiveXamlXmlReader.cs (1)
78internal RestrictiveXamlXmlReader(XmlReader xmlReader, XamlSchemaContext schemaContext, XamlXmlReaderSettings settings, List<Type> safeTypes) : base(xmlReader, schemaContext, settings)
System\Windows\Markup\RoutedEventConverter.cs (1)
88List<XamlType> ceilingTypes = new List<XamlType>();
System\Windows\Markup\XamlReader.cs (1)
849List<Type> safeTypes)
System\Windows\Markup\XamlTypeMapper.cs (4)
2194List<ClrNamespaceAssemblyPair> namespaceAssemblyPair = GetClrNamespacePairFromCache(XamlReaderHelper.DefaultNamespaceURI); 3251List<ClrNamespaceAssemblyPair> namespaceAssemblyPair; 3413internal static List<ClrNamespaceAssemblyPair> GetClrNamespacePairFromCache( 3416List<ClrNamespaceAssemblyPair> mappingArray = null;
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (6)
78List<string> resultList = new List<string>(_sharedSchemaContext.GetAllXamlNamespaces()); 187List<NamespaceMapEntry> list = (List<NamespaceMapEntry>)result[key]; 281private void AddKnownNamespaces(List<string> nsList) 399List<V> list = (List<V>)hashtable[key];
System\Windows\Markup\XmlnsCache.cs (6)
150internal List<ClrNamespaceAssemblyPair> GetMappingArray(string xmlns) 152List<ClrNamespaceAssemblyPair> clrNsMapping =null; 155clrNsMapping = _cacheTable[xmlns] as List<ClrNamespaceAssemblyPair>; 186clrNsMapping = _cacheTable[xmlns] as List<ClrNamespaceAssemblyPair>; 331private List<ClrNamespaceAssemblyPair> GetClrnsToAssemblyNameMappingList( 335List<ClrNamespaceAssemblyPair> pairList = new List<ClrNamespaceAssemblyPair>();
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
24private List<ThicknessKeyFrame> _keyFrames;
System\Windows\Media\Animation\Storyboard.cs (7)
574Debug.Assert( mappedObject == null || mappedObject is AnimationClock || mappedObject is List<AnimationClock>, 585List<AnimationClock> clockList = new List<AnimationClock>(); 595List<AnimationClock> clockList = (List<AnimationClock>)mappedObject; 613List<AnimationClock> clockList; 615Debug.Assert( value is AnimationClock || value is List<AnimationClock> , 625clockList = (List<AnimationClock>)value;
System\Windows\Navigation\Journal.cs (3)
60_journalEntryList = (List<JournalEntry>)info.GetValue("_journalEntryList", typeof(List<JournalEntry>)); 654private List<JournalEntry> _journalEntryList = new List<JournalEntry>();
System\Windows\ResourceDictionary.cs (3)
1889List<ResourceDictionary> oldDictionaries = null; 1890List<ResourceDictionary> newDictionaries = null; 2635private List<KeyRecord> _deferredLocationList = null;
System\Windows\ResourcesChangeInfo.cs (4)
66List<ResourceDictionary> oldDictionaries, 67List<ResourceDictionary> newDictionaries, 341private List<ResourceDictionary> _oldDictionaries; 342private List<ResourceDictionary> _newDictionaries;
System\Windows\Shell\JumpList.cs (26)
193public static void ReleaseShellObjects(List<_ShellObjectPair> list) 262private List<JumpItem> _jumpItems; 323public List<JumpItem> JumpItems 456List<JumpItem> successList; 457List<_RejectedJumpItemPair> rejectedList; 460List<List<_ShellObjectPair>> categories = null; 461List<_ShellObjectPair> removedList = null; 500categories = new List<List<_ShellObjectPair>>() { new List<_ShellObjectPair>() }; 542foreach (var list in categories) 586foreach (List<_ShellObjectPair> categoryList in categories) 621foreach (List<_ShellObjectPair> list in categories) 643var items = new List<JumpItem>(rejectedList.Count); 644var reasons = new List<JumpItemRejectionReason>(rejectedList.Count); 657var items = new List<JumpItem>(removedList.Count); 674private static bool ListContainsShellObject(List<_ShellObjectPair> removedList, object shellObject) 755private static List<_ShellObjectPair> GenerateJumpItems(IObjectArray shellObjects) 759var retList = new List<_ShellObjectPair>(); 787private static void AddCategory(ICustomDestinationList cdl, string category, List<_ShellObjectPair> jumpItems, List<JumpItem> successList, List<_RejectedJumpItemPair> rejectionList) 792private static void AddCategory(ICustomDestinationList cdl, string category, List<_ShellObjectPair> jumpItems, List<JumpItem> successList, List<_RejectedJumpItemPair> rejectionList, bool isHeterogenous) 835var linksOnlyList = new List<_ShellObjectPair>(); 1101var reasons = new List<JumpItemRejectionReason>(_jumpItems.Count);
System\Windows\Shell\WindowChrome.cs (1)
311private static readonly List<_SystemParameterBoundProperty> _BoundProperties = new List<_SystemParameterBoundProperty>
System\Windows\Shell\WindowChromeWorker.cs (1)
30private readonly List<HANDLE_MESSAGE> _messageTable;
System\Windows\StaticResourceExtension.cs (2)
239List<AmbientPropertyValue> ambientList; 240ambientList = ambientValues as List<AmbientPropertyValue>;
System\Windows\StyleHelper.cs (42)
1069List<TriggerAction> actionsList = null; 1101actionsList = triggerActions[eventTrigger.RoutedEvent] as List<TriggerAction>; 1784List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex); 1794List<DependencyObject> noChildIndexChildren = null; 1843List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex); 2131List<DependencyObject> templatedChildren; 2207List<DependencyObject> templateChain, 2499List<TriggerAction> actionsList; 2504? ownerStyle._triggerActions[Event] as List<TriggerAction> 2511? frameworkTemplate._triggerActions[Event] as List<TriggerAction> 3453List<ResourceDictionary> oldStyleTables = StyleHelper.GetResourceDictionariesFromStyle(oldStyle); 3454List<ResourceDictionary> newStyleTables = StyleHelper.GetResourceDictionariesFromStyle(newStyle); 3501List<ResourceDictionary> oldResourceTable = GetResourceDictionaryFromTemplate(oldTemplate); 3502List<ResourceDictionary> newResourceTable = GetResourceDictionaryFromTemplate(newTemplate); 3516private static void SetShouldLookupImplicitStyles(FrameworkObject fo, List<ResourceDictionary> dictionaries) 3534private static List<ResourceDictionary> GetResourceDictionariesFromStyle(Style style) 3536List<ResourceDictionary> dictionaries = null; 3559private static List<ResourceDictionary> GetResourceDictionaryFromTemplate( object template ) 3570List<ResourceDictionary> table = new List<ResourceDictionary>(1); 4055List<DependencyObject> styledChildren = TemplatedFeChildrenField.GetValue(container); 4340Debug.Assert(candidateTrigger is List<TriggerBase>, 4343List<TriggerBase> triggerList = (List<TriggerBase>)candidateTrigger; 4388List<DependencyObject> styledChildren = TemplatedFeChildrenField.GetValue(container); 4748ConditionalWeakTable<DependencyObject, List<DeferredAction>> deferredActions; 4759deferredActions = new ConditionalWeakTable<DependencyObject, List<DeferredAction>>(); 4772List<DeferredAction> actionList; 4792List<DeferredAction> actionList; 5042List<TriggerBase> newList = new List<TriggerBase>(); 5051Debug.Assert( existing is List<TriggerBase>, 5054List<TriggerBase> existingList = (List<TriggerBase>)existing; 5088List<TriggerBase> newList = new List<TriggerBase>(); 5097Debug.Assert( existing is List<TriggerBase>, 5100List<TriggerBase> existingList = (List<TriggerBase>)existing; 5270Debug.Assert(candidateTrigger is List<TriggerBase>, 5273List<TriggerBase> triggerList = (List<TriggerBase>)candidateTrigger; 5420internal static DependencyObject GetChild(List<DependencyObject> styledChildren, int childIndex) 5629internal static readonly UncommonField<List<DependencyObject>> TemplatedFeChildrenField = new UncommonField<List<DependencyObject>>();
System\Windows\SystemResources.cs (4)
197List<ResourceDictionaryInfo> dictionaries = new List<ResourceDictionaryInfo>(); 228List<ResourceDictionaryInfo> dictionaries = new List<ResourceDictionaryInfo>(); 1206List<SystemResourceKey> keys = new List<SystemResourceKey>(); 1662[ThreadStatic] private static List<DpiUtil.HwndDpiInfo> _dpiAwarenessContextAndDpis;
System\Windows\TemplateContent.cs (5)
240List<PropertyValue> sharedProperties = new List<PropertyValue>(); 307private void UpdateSharedPropertyNames(string name, List<PropertyValue> sharedProperties, XamlType type) 345List<PropertyValue> sharedProperties, 353List<PropertyValue> sharedProperties, 398List<PropertyValue> sharedProperties,
System\Windows\TemplateNameScope.cs (2)
47List<DependencyObject> affectedChildren, 257private List<DependencyObject> _affectedChildren;
System\Windows\ThemeDictionaryExtension.cs (1)
183private static List<ThemeDictionaryInfo> _themeDictionaryInfos;
System\Windows\ThemeManager.cs (1)
437List<int> indices = new List<int>();
System\Windows\TriggerActionCollection.cs (1)
314private List<TriggerAction> _rawList;
System\Windows\Window.cs (2)
6709var nativeIcons = new List<NativeMethods.IconHandle>(); 7223private List<IntPtr> _threadWindowHandles;
PresentationFramework.Aero (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationFramework.Aero2 (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationFramework.AeroLite (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationFramework.Classic (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationFramework.Luna (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationFramework.Royale (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationUI (18)
MS\Internal\Documents\Application\ChainOfResponsibility.cs (1)
112private List<T> _members;
MS\Internal\Documents\Application\CommandEnforcer.cs (1)
172private List<PolicyBinding> _bindings;
MS\Internal\Documents\Application\DocumentManager.cs (1)
534private static List<IDocumentController> _controllers =
MS\Internal\Documents\Application\TransactionalPackage.cs (2)
434List<PackagePart> _proxiedParts = new List<PackagePart>(); 584private List<Package> _trashCan = new List<Package>();
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
313List<X509Certificate2> certificateList = new List<X509Certificate2>();
MS\Internal\Documents\DocumentSignatureManager.cs (1)
1343private List<ChangeLogEntity> _changeLog;
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
228List<String> addresses = new List<String>(paths.Length);
MS\Internal\Documents\RightsManagementProvider.cs (3)
368List<RightsManagementUser> rmUsers = 840List<ContentGrant> grantList = new List<ContentGrant>(); 1176List<ContentGrant> grants = new List<ContentGrant>();
MS\Internal\Documents\RMPublishingDialog.cs (7)
238List<RightsManagementLicense> licenseList = 286List<ServerSideTemplate> templates = null; 370private List<ServerSideTemplate> GetXmlTemplates() 372List<Uri> templateList = new List<Uri>(); 1009public static List<ServerSideTemplate> BuildTemplateList(List<Uri> files) 1011List<ServerSideTemplate> templates = new List<ServerSideTemplate>();
Publishers.ApiService (1)
Program.cs (1)
24var entries = await dbContext.Entries.ToListAsync();
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
88var options = new List<KeyValuePair<string, string>>();
QuarantineTools.Tests (23)
ActiveIssueTests.cs (10)
283var methodNodes = root.DescendantNodes().OfType<MethodDeclarationSyntax>().Where(m => m.Identifier.ValueText == methodName).ToList(); 288var actualParts = new List<string>(); 310private static (List<string> PathPartsBeforeMethod, string Method) ParseFullMethodName(string input) 314var beforeMethod = parts.Take(parts.Length - 1) 320private static (string Namespace, List<string> TypeChain) GetEnclosingNames(SyntaxNode node) 322var typeNames = new List<string>(); 358private static bool SequenceEquals(List<string> a, List<string> b) 395var newLists = new List<AttributeListSyntax>(); 398var remaining = list.Attributes.Where(a => !IsActiveIssueAttribute(a)).ToList();
QuarantineScriptTests.cs (13)
170var methods = root.DescendantNodes().OfType<MethodDeclarationSyntax>().ToList(); 227var methodNodes = root.DescendantNodes().OfType<MethodDeclarationSyntax>().Where(m => m.Identifier.ValueText == methodName).ToList(); 232var actualParts = new List<string>(); 254private static (List<string> PathPartsBeforeMethod, string Method) ParseFullMethodName(string input) 258var beforeMethod = parts.Take(parts.Length - 1) 264private static (string Namespace, List<string> TypeChain) GetEnclosingNames(SyntaxNode node) 266var typeNames = new List<string>(); 302private static bool SequenceEquals(List<string> a, List<string> b) 339var newLists = new List<AttributeListSyntax>(); 342var remaining = list.Attributes.Where(a => !IsQuarantinedAttribute(a)).ToList(); 433var nodesToRemove = root.DescendantNodes().OfType<UsingDirectiveSyntax>() 449var filtered = updated.Usings.Where(u => u.Name == null || u.Name.ToString() != namespaceName).ToList();
ReachFramework (86)
AlphaFlattener\Flattener.cs (18)
285List<PrimitiveInfo> commands = _dl.Commands; 537private static void SwitchCommands(List<PrimitiveInfo> commands, int i, PrimitiveInfo pi, int j, PrimitiveInfo pj, bool disconnect) 605private static void PushTransparencyDown(List<PrimitiveInfo> commands, int j) 659private static bool ConvertTransparentOnOpaque(List<PrimitiveInfo> commands, int i) 754private static void ReduceTie(PrimitiveInfo pi, List<PrimitiveInfo> commands, int i) 782private static List<int>[] CopyUnderlay(int count, List<PrimitiveInfo> commands) 784List<int>[] oldUnderlay = new List<int>[count]; 788List<int> l = commands[i].underlay; 810private void DisplayListOptimization(List<PrimitiveInfo> commands, int count, bool disjoint) 817List<int> [] oldUnderlay = null; 938List<Cluster> transparentCluster = Cluster.CalculateCluster(commands, count, disjoint, oldUnderlay); 959internal void LogInterestingPrimitives(List<PrimitiveInfo> commands, int count, List<Cluster> transparentCluster) 1006internal void SaveInterestingPrimitives(List<PrimitiveInfo> commands, int count, List<Cluster> transparentCluster) 1090private void AlphaRender(Primitive primitive, List<int> overlapping, int overlapHasTransparency, bool disjoint, string desp)
AlphaFlattener\Optimizer.cs (15)
17private List<int> m_primitives; 42public void Render(List<PrimitiveInfo> commands, IProxyDrawingContext dc) 122public static void CheckForRasterization(List<Cluster> clusters, List<PrimitiveInfo> commands) 140public static List<Cluster> CalculateCluster(List<PrimitiveInfo> commands, int count, bool disjoint, List<int>[] oldUnderlay) 142List<Cluster> transparentCluster = new List<Cluster>(); 252List<int>[] underlay, 253List<PrimitiveInfo> commands, 300private bool BetterRasterize(List<PrimitiveInfo> commands) 386List<PrimitiveInfo> commands, 389List<int> [] oldUnderlay, 390List<Cluster> transparentCluster, 469internal List<int> DebugPrimitives
AlphaFlattener\Primitive.cs (2)
2145public List<int> overlap; // 4 + N bytes, object on top of current object 2146public List<int> underlay; // 4 + N bytes, object under current object
AlphaFlattener\PrimitiveList.cs (6)
34List<int> l = obj as List<int>; 96List<int> extra = null; 306private static bool OrderedInsert(List<int> list, int n) 405public List<PrimitiveInfo> Commands 415protected List<PrimitiveInfo> _commands; // = null;
AlphaFlattener\PrimitiveRenderer.cs (4)
174public List<int> Overlapping 179public List<PrimitiveInfo> Commands 549private List<int> _overlapping; 550private List<PrimitiveInfo> _commands;
AlphaFlattener\SegmentTree.cs (1)
43private List<int> _sList;
packaging\XpsDigitalSignature.cs (2)
67List<PackageRelationshipSelector> selectorList = 358List<PackageRelationshipSelector> containedCollection
Packaging\XpsDocument.cs (3)
304List<PackagePart> xmlPartList = new List<PackagePart>(); 754List<PackageRelationshipSelector> selectorList, 864List<PackageRelationshipSelector> selectorList =
Packaging\XpsFixedDocumentReaderWriter.cs (4)
705List<PackageRelationshipSelector> selectorList, 762List<PackagePart> xmlPartList 809List<PackageRelationshipSelector> selectorList, 1150private List<IXpsFixedPageReader> _pageCache;
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (4)
437List<PackageRelationshipSelector> selectorList, 455List<PackagePart> xmlPartList 575List<PackageRelationshipSelector> selectorList, 644private List<IXpsFixedDocumentReader>_documentCache;
Packaging\XpsFixedPageReaderWriter.cs (4)
1353List<PackageRelationshipSelector> selectorList, 1375List<PackagePart> xmlPartList 1692AddRelationshipTypes(List<PackageRelationshipSelector> selectorList) 1981private List<INode> _currentChildren;
Packaging\XpsInterleavingPolicy.cs (2)
420List<InterleavingNode> removeList = new List<InterleavingNode>(); 555private List<InterleavingNode> _interleavingNodes = new List<InterleavingNode>();
Packaging\XpsManager.cs (1)
805List<PackageRelationshipSelector> selectorList,
PrintConfig\PrtCap_Public_Simple.cs (17)
218List<Collation> valueSet = new List<Collation>(); 251List<DeviceFontSubstitution> valueSet = new List<DeviceFontSubstitution>(); 284List<Duplexing> valueSet = new List<Duplexing>(); 321List<InputBin> valueSet = new List<InputBin>(); 435List<OutputColor> valueSet = new List<OutputColor>(); 468List<OutputQuality> valueSet = new List<OutputQuality>(); 501List<PageBorderless> valueSet = new List<PageBorderless>(); 568List<PageMediaSize> mediaSet = new List<PageMediaSize>(); 608List<PageMediaType> valueSet = new List<PageMediaType>(); 641List<PageOrder> valueSet = new List<PageOrder>(); 674List<PageOrientation> valueSet = new List<PageOrientation>(); 707List<PageResolution> resSet = new List<PageResolution>(); 816List<int> valueSet = new List<int>(); 850List<PagesPerSheetDirection> valueSet = new List<PagesPerSheetDirection>(); 885List<PhotoPrintingIntent> valueSet = new List<PhotoPrintingIntent>(); 917List<Stapling> valueSet = new List<Stapling>(); 950List<TrueTypeFontMode> valueSet = new List<TrueTypeFontMode>();
Serialization\DrawingContextFlattener.cs (2)
43private List<Matrix> _fullTransform = new List<Matrix>(); 46private List<Geometry> _fullClip = new List<Geometry>();
Serialization\VisualSerializer.cs (1)
1601List<char> filteredCharacters = null;
RepoTasks (28)
BatchHelixWorkItems.cs (7)
47var unbatched = new List<ITaskItem>(); 48var batched = new List<ITaskItem>(); 49var eligibleGroups = new Dictionary<string, List<ITaskItem>>(StringComparer.OrdinalIgnoreCase); 85if (!eligibleGroups.TryGetValue(tfm, out var group)) 97var orderedItems = group.Value.OrderBy(item => item.ItemSpec, StringComparer.OrdinalIgnoreCase).ToList(); 101var chunk = orderedItems.Skip(index).Take(batchSize).ToList(); 126var targets = new List<string>();
ResolveDotnetToolPackagePaths.cs (1)
66var toolPackages = new List<ITaskItem>();
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (9)
140var certificates = new List<X509Certificate2>(); 248protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 292var currentUserCertificates = allCurrentUserCertificates.Where(c => c.Subject == Subject).ToList(); 293var localMachineCertificates = allLocalMachineCertificates.Where(c => c.Subject == Subject).ToList(); 294var filteredCertificates = currentUserCertificates.Concat(localMachineCertificates).ToList(); 318var certificates = filteredCertificates; 805var extensions = new List<X509Extension>(); 1034var list = certificates.ToList(); 1076var certificatesToDispose = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
295var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 374protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 380var certsFromStore = new List<X509Certificate2>(); 426var certsFromDisk = new List<X509Certificate2>();
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
137var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 304var nssDbs = GetNssDbs(homeDirectory); 505var nssDbs = GetNssDbs(homeDirectory); 843var nssDbs = new List<string>(); 861private static List<NssDb> GetNssDbs(string homeDirectory) 863var nssDbs = new List<NssDb>(); 1018var certs = new List<FileInfo>();
Roslyn.Diagnostics.Analyzers (141)
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (2)
56var exportAttributes = new List<INamedTypeSymbol>() { mefV1ExportAttribute, mefV2ExportAttribute }; 67var appliedExportAttributes = exportAttributes.Where(e => namedTypeAttributes.Any(ad => ad.AttributeClass.DerivesFrom(e))).ToList();
src\0bf6ba47805c8821\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\a16f30e1d256badc\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
29public static void ParseFeatures(IDictionary<string, string> builder, List<string> values) 40internal static void PrependFeatureFlagFromEnvironment(List<string> arguments, Action<string>? log = null)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
150var attributes = new List<AttributeData>(); 217var attributes = new List<AttributeData>();
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
40List<SyntaxNode> statements = []; 353List<SyntaxNode> statements = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1099var specifiedParameters1 = new List<IParameterSymbol>(); 1100var specifiedParameters2 = new List<IParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
292=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
759var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 799var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
63var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 66var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 73List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 74List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 152private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 168List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
178public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 200public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
62List<Exception>? exceptions = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Roslyn.Diagnostics.CSharp.Analyzers (64)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
117var partsList = new List<string>(); 128public static bool TryGetNameParts(this ExpressionSyntax expression, List<string> parts) 158private static bool AddSimpleName(SimpleNameSyntax simpleName, List<string> parts)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (3)
16private readonly Dictionary<string, List<SyntaxToken>> _map = []; 23public static Dictionary<string, List<SyntaxToken>> GetAllDeclarations(SyntaxNode syntax) 35if (!_map.TryGetValue(identifier, out var list))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (3)
586var result = new List<IList<TSyntaxNode>>(); 588var currentGroup = new List<TSyntaxNode>(); 884var finalTrivia = from.GetLeadingTrivia().ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\DefaultOperationProvider.cs (3)
27public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 35public override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (2)
16public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 90private static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (9)
18List<IndentBlockOperation> list, 33List<IndentBlockOperation> list, 46List<IndentBlockOperation> list, 60List<IndentBlockOperation> list, 74List<IndentBlockOperation> list, 89List<IndentBlockOperation> list, 99List<IndentBlockOperation> list, 124protected static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxToken anchorToken, SyntaxToken endToken) 134protected static void AddAlignIndentationOfTokensToBaseTokenOperation(List<AlignTokensOperation> list, SyntaxNode containingNode, SyntaxToken baseNode, IEnumerable<SyntaxToken> tokens, AlignTokensOption option = AlignTokensOption.AlignIndentationOfTokensToBaseToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (11)
47public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 61private static void AddTypeParameterConstraintClauseOperation(List<IndentBlockOperation> list, SyntaxNode node) 70private void AddSwitchIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 129private void AddLabelIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 145private static void AddAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode node) 200private static void SetAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode baseNode, SyntaxNode body) 211private void AddBlockIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 248private static void AddBracketIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 289private static void AddParenthesizedPatternIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 309private static void AddAlignmentBlockOperationRelativeToFirstTokenOnBaseTokenLine(List<IndentBlockOperation> list, (SyntaxToken openBrace, SyntaxToken closeBrace) bracePair) 315private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentUserSettingsFormattingRule.cs (1)
37public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (3)
52private static void AddIndentBlockOperationsForFromClause(List<IndentBlockOperation> list, FromClauseSyntax fromClause) 82public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 129public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (2)
75var result = new List<SimpleNameSyntax>(); 80private static void DecomposeNameParts(NameSyntax name, List<SimpleNameSyntax> result)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
197List<string> paramNames;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (2)
119var initialList = usingList.Cast<SyntaxNode>() 133var finalList = initialList.OrderBy(comparer).ToList();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
27var attributeNodes = 39var attributeDeclarations =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
25var members = new List<SyntaxNodeOrToken>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
162var accessors = new List<AccessorDeclarationSyntax?>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
320var types = new List<BaseTypeSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
141var usingDirectives =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
22var newUsings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (3)
111var usings = AddUsingDirectives(root, usingDirectives); 140private static List<UsingDirectiveSyntax> AddUsingDirectives( 144var usings = new List<UsingDirectiveSyntax>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
24var indices = new List<bool>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\UsingDirectiveSyntaxExtensions.cs (1)
15this List<UsingDirectiveSyntax> usingDirectives,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (3)
116public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 172private static void ReplaceCaseIndentationRules(List<IndentBlockOperation> list, SyntaxNode node) 191private static void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
603var invocationTypes = this.InferTypes(parentInvocationExpressionToTypeInfer).Select(t => t.InferredType).ToList(); 604var instantiatedMethods = methods.Select(m => Instantiate(m, invocationTypes)).ToList(); 609var filteredMethods = instantiatedMethods.Where(m =>
rzc (28)
Application.cs (1)
95var expandedArgs = new List<string>(args.Length);
CommandLine\CommandArgument.cs (1)
18public List<string> Values { get; private set; }
CommandLine\CommandLineApplication.cs (7)
47public readonly List<CommandOption> Options; 50public readonly List<CommandArgument> Arguments; 51public readonly List<string> RemainingArguments; 56public readonly List<CommandLineApplication> Commands; 467var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 483var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 499var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
CommandLine\CommandOption.cs (1)
58public List<string> Values { get; private set; }
CompilerHost.cs (1)
76var args = new List<string>(request.Arguments.Count);
DefaultExtensionAssemblyLoader.cs (4)
22private readonly Dictionary<string, List<string>> _wellKnownAssemblies; 33_wellKnownAssemblies = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 55if (!_wellKnownAssemblies.TryGetValue(assemblyName, out var paths)) 84if (_wellKnownAssemblies.TryGetValue(identity.Name, out var paths))
DefaultRequestDispatcher.cs (2)
26private List<Task<ConnectionResult>> _connections = new(); 143var all = new List<Task>(_connections.Count + 3);
DiscoverCommand.cs (1)
213var inputFiles = new List<RazorInputFile>
GenerateCommand.cs (7)
300var inputFiles = new List<RazorInputFile>(sourceItems.Length); 408private static SourceItem[] GetSourceItems(List<string> sources, List<string> outputs, List<string> relativePath, List<string> fileKinds, List<string> cssScopeSources, List<string> cssScopeValues)
MetadataReaderExtensions.cs (1)
33var references = new List<AssemblyIdentity>(reader.AssemblyReferences.Count);
ServerProtocol\ServerRequest.cs (2)
86var requestArgs = new List<RequestArgument>(requestLength) 153var argumentsBuilder = new List<RequestArgument>((int)argumentCount);
ScenarioTests.Common.Tests (5)
ScenarioTestTypes.cs (2)
1180public List<string> ServerLog { get; set; } 1225public void ReceiveLog(List<string> log)
ServiceInterfaces.cs (3)
462List<string> GetLog(); 514void ReceiveLog(List<string> log); 633List<Employee> GetAllEmployees();
sdk-tasks (34)
_generated\0\SdkTasksJsonSerializerContext.MetadataEntry.g.cs (3)
74var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<string>> 89AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry).GetProperty("Files", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null), 92properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<string>>(options, info1);
_generated\2\SdkTasksJsonSerializerContext.ListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>? _ListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> ListString 22get => _ListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> Create_ListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<string>, string>(options, info); 47private void ListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<string>? value)
_generated\5\SdkTasksJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
30if (type == typeof(global::System.Collections.Generic.List<string>))
AddMetadataIsPE.cs (1)
20var resultItemsList = new List<ITaskItem>();
CopyPreservingRelativeSymlinks.cs (1)
57var copiedFiles = new List<ITaskItem>();
DeduplicateAssembliesWithLinks.cs (10)
45var files = Directory.GetFiles(LayoutDirectory, "*", SearchOption.AllDirectories) 57var duplicateGroups = filesByHash.Values.Where(g => g.Count > 1).ToList(); 62private (Dictionary<string, List<FileEntry>> filesByHash, bool success) HashAndGroupFiles(List<string> files) 64var filesByHash = new Dictionary<string, List<FileEntry>>(); 96private bool DeduplicateFileGroups(List<List<FileEntry>> duplicateGroups) 102foreach (var group in duplicateGroups) 105var sorted = group.OrderBy(f => f.Depth).ThenBy(f => f.Path, StringComparer.Ordinal).ToList(); 109var duplicates = sorted.Skip(1).ToList();
FilterItemsByDuplicateHash.cs (1)
53var unmatched = new List<ITaskItem>();
GenerateMSBuildExtensionsSWR.cs (1)
43var files = Directory.GetFiles(sourceFolder)
OverrideAndCreateBundledNETCoreAppPackageVersion.cs (5)
36var items2 = stage2Doc.Root.Elements(ns + "ItemGroup").SelectMany(ig => ig.Elements()).ToList(); 37var items0 = stage0Doc.Root.Elements(ns + "ItemGroup").SelectMany(ig => ig.Elements()).ToList(); 40var allTargetFrameworks = items2 54var items2Filtered = items2 59var matches0 = items0
ProcessRuntimeAnalyzerVersions.cs (1)
71public List<string> Files { get; } = [];
SelectTests (57)
ChangedFileFilter.cs (1)
54var regexes = File.ReadAllLines(patternsPath)
GraphAffectedProjects.cs (10)
190var chain = new List<string>(); 234private static Dictionary<string, List<ProjectGraphNode>> BuildNodesByProjectPath(IEnumerable<ProjectGraphNode> graphNodes) 238var nodesByProjectPath = new Dictionary<string, List<ProjectGraphNode>>(s_pathComparer); 242if (!nodesByProjectPath.TryGetValue(projectPath, out var nodes)) 311IReadOnlyDictionary<string, List<ProjectGraphNode>> nodesByProjectPath, 369IReadOnlyDictionary<string, List<ProjectGraphNode>> nodesByProjectPath, 379var dependents = new Dictionary<string, List<string>>(s_pathComparer); 393if (!dependents.TryGetValue(target, out var list)) 425if (!dependents.TryGetValue(current, out var deps)) 503var args = new List<string> { "-c", "core.quotePath=false", "diff", "--name-status", "-M" };
Program.cs (17)
209var excludedFiles = rawChangedFiles 212var changedFiles = rawChangedFiles 423var args = new List<string> { "-c", "core.quotePath=false", "diff", "--name-only", "--no-renames" }; 738var tests = result.TestProjects.OrderBy(p => p, StringComparer.Ordinal).ToList(); 740var jobs = result.Jobs.OrderBy(j => j, StringComparer.Ordinal).ToList(); 823var orderedGroups = groups 846var direct = members.Where(m => m.Value.Kind is CauseKind.Convention or CauseKind.PathRule).Select(m => m.Key).OrderBy(p => p, StringComparer.Ordinal).ToList(); 847var graph = members.Where(m => m.Value.Kind is CauseKind.Layer1Graph).OrderBy(m => m.Key, StringComparer.Ordinal).ToList(); 848var other = members.Where(m => m.Value.Kind is not (CauseKind.Convention or CauseKind.PathRule or CauseKind.Layer1Graph)).Select(m => m.Key).OrderBy(p => p, StringComparer.Ordinal).ToList(); 992var ordered = list.OrderBy(c => CausePriority(c.Kind)).ToList(); 997var fileCauses = ordered 1002var otherCauses = ordered 1008var segments = new List<string>(); 1082var unmatched = result.UnmatchedFiles.OrderBy(f => f, StringComparer.Ordinal).ToList(); 1109var selected = result.TestProjects.OrderBy(p => p, StringComparer.Ordinal).ToList(); 1110var skipped = allTestProjects.Except(result.TestProjects, StringComparer.Ordinal) 1113var jobTokens = result.Jobs.OrderBy(j => j, StringComparer.Ordinal).ToList();
TestSelector.cs (14)
164var testCauses = new Dictionary<string, List<Cause>>(StringComparer.Ordinal); 165var jobCauses = new Dictionary<string, List<Cause>>(StringComparer.Ordinal); 274var affectedProductionProjects = layer1Affected 330private static IReadOnlyDictionary<string, IReadOnlyList<Cause>> Freeze(Dictionary<string, List<Cause>> causes) => 338var path = new List<string>(affectedPath.ProjectChain.Count + 1) { affectedPath.ChangedFile }; 345private static void AddCause(Dictionary<string, List<Cause>> causes, string key, Cause cause) 347if (!causes.TryGetValue(key, out var list)) 380Dictionary<string, List<Cause>> testCauses, 381Dictionary<string, List<Cause>> jobCauses, 417Dictionary<string, List<Cause>> testCauses, 418Dictionary<string, List<Cause>> jobCauses, 441Dictionary<string, List<Cause>> testCauses, 442Dictionary<string, List<Cause>> jobCauses, 453else if (map.Groups.TryGetValue(target, out var members))
TriggerMap.cs (15)
19public Dictionary<string, List<string>> Groups { get; set; } = new(); 21public List<ConventionRule> Conventions { get; set; } = new(); 27public List<string> Ignore { get; set; } = new(); 29public List<PathRule> PathRules { get; set; } = new(); 31public List<AffectedProjectRule> AffectedProjectRules { get; set; } = new(); 33public List<DerivedRule> DerivedTargets { get; set; } = new(); 72foreach (var members in Groups.Values) 90else if (Groups.TryGetValue(target, out var members)) 176public List<string> KeepRouted { get; set; } = new(); 181public List<string> Paths { get; set; } = new(); 183public List<string> Targets { get; set; } = new(); 196public List<string> Projects { get; set; } = new(); 198public List<string> Targets { get; set; } = new(); 215public List<string> Tests { get; set; } = new(); 217public List<string> Targets { get; set; } = new();
Shared (15)
LogBuffering\SerializedLogRecord.cs (2)
34List<KeyValuePair<string, object?>> attributes, 66public List<KeyValuePair<string, object?>> Attributes { get; }
LogBuffering\SerializedLogRecordFactory.cs (2)
15private static readonly ObjectPool<List<KeyValuePair<string, object?>>> _attributesPool = 29List<KeyValuePair<string, object?>> serializedAttributes = _attributesPool.Get();
Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Shared.Tests (48)
Data.Validation\LengthAttributeTests.cs (10)
29var results = new List<ValidationResult>(); 85var results = new List<ValidationResult>(); 157var results = new List<ValidationResult>(); 214var results = new List<ValidationResult>(); 264var results = new List<ValidationResult>(); 342var results = new List<ValidationResult>(); 382public List<string> CustomMessage { get; set; } = []; 390var results = new List<ValidationResult>(); 402public List<string> DefaultMessage { get; set; } = []; 410var results = new List<ValidationResult>();
Data.Validation\TimeSpanAttributeTests.cs (4)
27var results = new List<ValidationResult>(); 92var results = new List<ValidationResult>(); 155var results = new List<ValidationResult>(); 229var results = new List<ValidationResult>();
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
25var input = new List<T>();
Generated\361d1da7f942c932\TestTypesContext.PocoWithNonRecursiveDuplicateOccurrences.g.cs (3)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>> 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithNonRecursiveDuplicateOccurrences).GetProperty("ListValue", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>>(options, info2);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (2)
264if (type == typeof(global::System.Collections.Generic.List<bool>)) 268if (type == typeof(global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ListBoolean.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<bool>>? _ListBoolean; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<bool>> ListBoolean 24get => _ListBoolean ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<bool>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<bool>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<bool>> Create_ListBoolean(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<bool>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<bool>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<bool>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<bool>, bool>(options, info); 47private void ListBooleanSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<bool>? value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.ListSimpleRecord.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>>? _ListSimpleRecord; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>> ListSimpleRecord 24get => _ListSimpleRecord ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>> Create_ListSimpleRecord(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>(options, info); 47private void ListSimpleRecordSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimpleRecord>? value)
JsonSchemaExporter\TestTypes.cs (3)
815yield return new TestData<List<bool>>([false, true, false], """{"type":["array","null"],"items":{"type":"boolean"}}"""); 954public List<SimpleRecord>? ListValue { get; set; } 1298[JsonSerializable(typeof(List<bool>))]
Pools\PoolTests.cs (2)
151var l = pool.Get(); 155var l2 = pool.Get();
Throw\ThrowTest.cs (3)
340exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((List<int>?)null, "foo")); 349var list = new List<int>(); 390List<int>? listButActuallyNull = null;
SqlServerEndToEnd.ApiService (2)
Program.cs (2)
27var entries1 = await db1Context.Entries.ToListAsync(); 28var entries2 = await db2Context.Entries.ToListAsync();
Stress.ApiService (3)
ProducerConsumer.cs (1)
32var links = new List<ActivityLink>();
TestMetrics.cs (1)
34var uploadSpeed = new List<double>();
TraceCreator.cs (1)
17private readonly List<Activity> _allActivities = new List<Activity>();
Stress.AppHost (13)
CommandResources.cs (5)
1088var inputs = new List<InteractionInput> 1145var processArguments = new List<string> { scriptPath }; 1169var processArguments = new List<string> { "run", "--file", appPath }; 1191var resources = model.Resources 1196var commandTasks = new List<Task>();
InteractionCommands.cs (8)
237var inputs = new List<InteractionInput> 325var list = new List<KeyValuePair<string, string>>(); 381var inputs = new List<InteractionInput> 470var list = new List<KeyValuePair<string, string>>(); 482var inputs = new List<InteractionInput> 567var inputs = new List<InteractionInput>(); 747var inputs = new List<InteractionInput> { tenantInput, subscriptionInput, resourceGroupInput, locationInput }; 1068var fileDetails = new List<object>();
Stress.TelemetryService (2)
GaugeMetrics.cs (2)
22var measurements = new List<Measurement<long>>(); 23var processes = Process.GetProcesses().ToList();
System.CodeDom (2)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
167var typeArgumentList = new List<CodeTypeReference>();
System\CodeDom\Compiler\CodeDomProvider.cs (1)
18private static readonly List<CompilerInfo> s_allCompilerInfo = new List<CompilerInfo>();
System.Collections (6)
src\runtime\artifacts\obj\System.Collections\Release\net11.0\System.Collections.Forwards.cs (1)
9[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.List<>))]
System\Collections\Generic\OrderedDictionary.cs (1)
23/// Operations on the collection have algorithmic complexities that are similar to that of the <see cref="List{T}"/>
System\Collections\Generic\PriorityQueueDebugView.cs (1)
31var list = new List<(TElement Element, TPriority Priority)>(_queue.UnorderedItems);
System\Collections\Generic\SortedSet.cs (2)
1049List<T> toSave = new List<T>(Count); 1429List<T> matches = new List<T>(this.Count);
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
99List<T> toRemove = new List<T>(Count);
System.Collections.Concurrent (8)
System\Collections\Concurrent\BlockingCollection.cs (5)
971List<WaitHandle> handles = GetHandles(collections, externalCancellationToken, true, out collatedCancellationTokens); 1048private static List<WaitHandle> GetHandles(BlockingCollection<T>[] collections, CancellationToken externalCancellationToken, bool isAddOperation, out CancellationToken[] cancellationTokens) 1051List<WaitHandle> handlesList = new List<WaitHandle>(collections.Length + 1); // + 1 for the external token handle to be added 1052List<CancellationToken> tokensList = new List<CancellationToken>(collections.Length + 1); // + 1 for the external token 1376List<WaitHandle> handles = GetHandles(collections, externalCancellationToken, false, out collatedCancellationTokens);
System\Collections\Concurrent\ConcurrentStack.cs (3)
692private List<T> ToList() 701private static List<T> ToList(Node? curr) 703List<T> list = new List<T>();
System.Collections.Immutable (8)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
545List<int>? removeIndices = null;
System\Collections\Immutable\ImmutableArray_1.cs (1)
759List<int>? removeIndices = null;
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (2)
73List<T> list = sequence.ToList(); 108if (sequence is List<T> list)
System\Collections\Immutable\ImmutableList_1.cs (1)
1135/// This implementation comes from <see cref="List{T}"/>.
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
1055List<T>? list = null;
System\Collections\Immutable\ImmutableSortedSet_1.cs (2)
1185List<T> list; 1242List<T> list;
System.CommandLine (46)
Argument.cs (4)
19private List<Func<CompletionContext, IEnumerable<CompletionItem>>>? _completionSources = null; 20private List<Action<ArgumentResult>>? _validators = null; 89public List<Func<CompletionContext, IEnumerable<CompletionItem>>> CompletionSources 133public List<Action<ArgumentResult>> Validators => _validators ??= new ();
Argument{T}.cs (1)
129if (genericTypeDefinition == typeof(List<>))
Binding\ArgumentConverter.DefaultValues.cs (2)
28_listCtor = listCtor = typeof(List<>).GetConstructor(Type.EmptyTypes)!; 57if (genericTypeDefinition == typeof(List<>))
ChildSymbolList{T}.cs (1)
14private readonly List<T> _children;
Command.cs (3)
31private List<Action<CommandResult>>? _validators; 87public List<Action<CommandResult>> Validators => _validators ??= new (); 267var completions = new List<CompletionItem>();
CompletionSourceExtensions.cs (2)
21this List<Func<CompletionContext, IEnumerable<CompletionItem>>> completionSources, 43this List<Func<CompletionContext, IEnumerable<CompletionItem>>> completionSources,
Help\HelpBuilder.cs (2)
284var end = default(List<char>);
Help\HelpBuilder.Default.cs (2)
81List<Func<CompletionContext, IEnumerable<CompletionItem>>> completionSources, 232List<TwoColumnHelpRow> optionRows = new();
Option.cs (4)
18private List<Action<OptionResult>>? _validators; 88public List<Action<OptionResult>> Validators => _validators ??= new(); 95public List<Func<CompletionContext, IEnumerable<CompletionItem>>> CompletionSources => Argument.CompletionSources; 136List<CompletionItem>? completions = null;
ParseResult.cs (5)
23private readonly List<CommandLineAction>? _preActions; 30List<Token> tokens, 31List<Token>? unmatchedTokens, 32List<ParseError>? errors, 35List<CommandLineAction>? preActions = null)
Parsing\CommandLineParser.cs (2)
155out List<Token> tokens, 156out List<string>? tokenizationErrors);
Parsing\DirectiveResult.cs (1)
10private List<string>? _values;
Parsing\ParseOperation.cs (7)
12private readonly List<Token> _tokens; 22private List<CommandLineAction>? _preActions; 26List<Token> tokens, 29List<string>? tokenizeErrors, 429var errorsNotUnderInnermostCommand = _symbolResultTree 454var errorsForPrimarySymbol = _symbolResultTree 469var errorsForPrimarySymbol = _symbolResultTree
Parsing\StringExtensions.cs (5)
33out List<Token> tokens, 34out List<string>? errors) 38List<string>? errorList = null; 44var tokenList = new List<Token>(args.Count); 116List<string> listWithReplacedTokens = args.ToList();
Parsing\SymbolResult.cs (2)
14private protected List<Token>? _tokens; 29var parseErrors = SymbolResultTree.Errors;
Parsing\SymbolResultTree.cs (3)
11internal List<ParseError>? Errors; 12internal List<Token>? UnmatchedTokens; 17List<string>? tokenizeErrors = null)
System.CommandLine.StaticCompletions (8)
shells\BashShellProvider.cs (1)
131var completions = new List<string>();
shells\FishShellProvider.cs (5)
32var states = new List<(int id, Command cmd)>(); 61private static void CollectStates(Command cmd, List<(int id, Command cmd)> states) 90private static void WriteStateWalker(IndentedTextWriter writer, List<(int id, Command cmd)> states, Dictionary<Command, int> stateIdByCommand) 211private static void WriteOptionValueCompletions(IndentedTextWriter writer, List<(int id, Command cmd)> states) 314private static void WriteStateCompletions(IndentedTextWriter writer, List<(int id, Command cmd)> states)
shells\PowershellShellProvider.cs (1)
176List<string> completions = new();
shells\ZshShellProvider.cs (1)
354var lines = new List<string>(staticCompletions.Length + 2) { "((" };
System.ComponentModel.Annotations (31)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
53List<PropertyDescriptor> tempPropertyDescriptors = new List<PropertyDescriptor>();
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
238List<Attribute> attributes = new List<Attribute>(propertyDescriptorAttributes.Count);
System\ComponentModel\DataAnnotations\Validator.cs (29)
226List<ValidationError> errors = GetValidationErrors(value, validationContext, attributes, false); 289List<ValidationError> errors = GetObjectValidationErrors(instance, validationContext, validateAllProperties, false); 319List<ValidationError> errors = GetValidationErrors(value, validationContext, validationAttributes, false); 533List<ValidationError> errors = await GetValidationErrorsAsync(value, validationContext, attributes, false, cancellationToken).ConfigureAwait(false); 600List<ValidationError> errors = await GetObjectValidationErrorsAsync(instance, validationContext, validateAllProperties, false, cancellationToken).ConfigureAwait(false); 627List<ValidationError> errors = await GetValidationErrorsAsync(value, validationContext, validationAttributes, false, cancellationToken).ConfigureAwait(false); 639private static async Task<List<ValidationError>> GetObjectValidationErrorsAsync( 651List<ValidationError> errors = await GetObjectPropertyValidationErrorsAsync(instance, validationContext, validateAllProperties, breakOnFirstError, cancellationToken).ConfigureAwait(false); 709private static async Task<List<ValidationError>> GetObjectPropertyValidationErrorsAsync( 716var properties = GetPropertyValues(instance, validationContext); 717var errors = new List<ValidationError>(); 723var tasks = new List<Task<List<ValidationError>>>(properties.Count); 736Task<List<ValidationError>> completed = await Task.WhenAny(tasks).ConfigureAwait(false); 739List<ValidationError> propertyErrors; 769foreach (Task<List<ValidationError>> remaining in tasks) 809private static async Task<List<ValidationError>> GetValidationErrorsAsync( 818var errors = new List<ValidationError>(); 819List<AsyncValidationAttribute>? asyncAttributes = null; 867var tasks = new List<Task<(AsyncValidationAttribute Attr, ValidationResult? Result)>>(asyncAttributes.Count); 1012private static List<ValidationError> GetObjectValidationErrors(object instance, 1020List<ValidationError> errors = GetObjectPropertyValidationErrors(instance, validationContext, validateAllProperties, breakOnFirstError); 1070private static List<ValidationError> GetObjectPropertyValidationErrors(object instance, 1073var properties = GetPropertyValues(instance, validationContext); 1074var errors = new List<ValidationError>(); 1125private static List<KeyValuePair<ValidationContext, object?>> GetPropertyValues(object instance, 1129var items = new List<KeyValuePair<ValidationContext, object?>>(properties.Count); 1161private static List<ValidationError> GetValidationErrors(object? value, 1166var errors = new List<ValidationError>();
System.ComponentModel.Composition (123)
Microsoft\Internal\Collections\CollectionServices.cs (10)
93List<T> result = new List<T>(source); 99public static List<T>? FastAppendToListAllowNulls<T>(this List<T>? source, IEnumerable<T>? second) 113if (second is List<T> secondAsList) 132private static List<T> FastAppendToListAllowNulls<T>(this List<T>? source, T value) 140public static List<T>? FastAppendToListAllowNulls<T>( 141this List<T>? source, T? value, 217public static List<T> AsList<T>(this IEnumerable<T> enumerable) 219if (enumerable is List<T> list)
Microsoft\Internal\Collections\WeakReferenceCollection.cs (3)
11private readonly List<WeakReference> _items = new List<WeakReference>(); 64public List<T> AliveItemsToList() 66List<T> aliveItems = new List<T>();
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (6)
23private List<ExportDefinition>? _exports; 24private List<ImportDefinition>? _imports; 255private List<ExportDefinition> GetExportDefinitions() 257List<ExportDefinition> exports = new List<ExportDefinition>(); 417private List<ImportDefinition> GetImportDefinitions() 419List<ImportDefinition> imports = new List<ImportDefinition>();
System\ComponentModel\Composition\CompositionException.cs (5)
138var errors = new List<Exception>(); 162List<Stack<CompositionError>> paths = CalculatePaths(this); 207private static void WritePaths(StringBuilder writer, List<Stack<CompositionError>> paths) 262private static List<Stack<CompositionError>> CalculatePaths(CompositionException exception) 264List<Stack<CompositionError>> paths = new List<Stack<CompositionError>>();
System\ComponentModel\Composition\CompositionExceptionDebuggerProxy.cs (1)
27var errors = new List<Exception>();
System\ComponentModel\Composition\Hosting\AggregateCatalog.cs (1)
128List<Tuple<ComposablePartDefinition, ExportDefinition>>? aggregateResult = null;
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (1)
162var exports = new List<Export>();
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
80var catalogs = new List<ComposablePartCatalog>();
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (4)
40private List<Action>? _completeActionList; 41private List<Action>? _revertActionList; 148List<Exception>? exceptions = null; 187List<Exception>? exceptions = null;
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogChangeProxy.cs (2)
16private readonly List<ComposablePartDefinition> _addedParts; 42var addedExports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (8)
41private ConditionalWeakTable<object, List<ComposablePart>>? _gcRoots; 311private List<Export> InternalGetExportsCore(ImportDefinition definition, AtomicComposition? atomicComposition) 329List<Export> exports = new List<Export>(); 367List<ExportDefinition> exports = new List<ExportDefinition>(); 603List<ComposablePart>? partList; 605ConditionalWeakTable<object, List<ComposablePart>>? gcRoots = _gcRoots; 606gcRoots ??= new ConditionalWeakTable<object, List<ComposablePart>>(); 811var resurrectedExports = new List<ExportDefinition>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (1)
27List<Export> exports = new List<Export>();
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (1)
25private List<ComposablePartCatalog> _catalogs = new List<ComposablePartCatalog>();
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (7)
17private List<ComposablePart> _parts = new List<ComposablePart>(); 206List<ComposablePart>? parts = null; 217List<Export> exports = new List<Export>(); 248var newParts = GetUpdatedPartsList(ref batch); 315private List<ComposablePart> GetUpdatedPartsList(ref CompositionBatch batch) 322List<ComposablePart>? parts = null; 333List<ComposablePart>? partsToRemove = null;
System\ComponentModel\Composition\Hosting\CompositionBatch.cs (2)
17private List<ComposablePart> _partsToAdd; 19private List<ComposablePart> _partsToRemove;
System\ComponentModel\Composition\Hosting\CompositionScopeDefinition.cs (1)
191var exports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
480List<PropertyInfo> properties = metadataViewType.GetAllProperties().
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (4)
574List<Tuple<string, AssemblyCatalog>> catalogsToAdd; 575List<Tuple<string, AssemblyCatalog>> catalogsToRemove; 694out List<Tuple<string, AssemblyCatalog>> catalogsToAdd, 695out List<Tuple<string, AssemblyCatalog>> catalogsToRemove)
System\ComponentModel\Composition\Hosting\FilteredCatalog.cs (1)
154var exports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependenciesTraversal.cs (5)
18private Dictionary<string, List<ComposablePartDefinition>>? _exportersIndex; 36_exportersIndex = new Dictionary<string, List<ComposablePartDefinition>>(); 48if (!_exportersIndex!.TryGetValue(contractName, out List<ComposablePartDefinition>? parts)) 59List<ComposablePartDefinition>? reachablePartList = null; 65List<ComposablePartDefinition>? candidateReachableParts = null;
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependentsTraversal.cs (5)
24private Dictionary<string, List<ComposablePartDefinition>>? _importersIndex; 42_importersIndex = new Dictionary<string, List<ComposablePartDefinition>>(); 57if (!_importersIndex!.TryGetValue(contractName, out List<ComposablePartDefinition>? parts)) 68List<ComposablePartDefinition>? reachablePartList = null; 75List<ComposablePartDefinition>? candidateReachableParts = null;
System\ComponentModel\Composition\Hosting\ImportEngine.EngineContext.cs (2)
18private readonly List<PartManager> _addedPartManagers = new List<PartManager>(); 19private readonly List<PartManager> _removedPartManagers = new List<PartManager>();
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (4)
20private Dictionary<ImportDefinition, List<IDisposable>>? _importedDisposableExports; 141List<IDisposable>? disposableExports = null; 152List<IDisposable>? oldDisposableExports = null; 174_importedDisposableExports ??= new Dictionary<ImportDefinition, List<IDisposable>>();
System\ComponentModel\Composition\Hosting\ImportEngine.RecompositionManager.cs (5)
34public List<PartManager> GetAffectedParts(IEnumerable<string> changedContractNames) 38List<PartManager> parts = new List<PartManager>(); 104var aliveItems = indexEntries.AliveItemsToList(); 116var partsToIndex = _partsToIndex.AliveItemsToList(); 119List<PartManager?> partsToUnindex = _partsToUnindex.AliveItemsToList()!;
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (16)
29private List<ComposablePartDefinition>? _parts; 32private readonly Lazy<Dictionary<string, List<ComposablePartDefinition>>> _contractPartIndex; 81_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 109_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 138_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 171_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 176var typesList = new List<Type>(); 266var collection = new List<ComposablePartDefinition>(); 299List<ComposablePartDefinition>? nonGenericMatches = GetCandidateParts(contractName); 300List<ComposablePartDefinition>? genericMatches = GetCandidateParts(genericContractName); 305private List<ComposablePartDefinition>? GetCandidateParts(string? contractName) 312_contractPartIndex.Value.TryGetValue(contractName, out List<ComposablePartDefinition>? contractCandidateParts); 316private Dictionary<string, List<ComposablePartDefinition>> CreateIndex() 318Dictionary<string, List<ComposablePartDefinition>> index = new Dictionary<string, List<ComposablePartDefinition>>(StringComparers.ContractName); 324List<ComposablePartDefinition>? contractParts = null;
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (2)
27internal static readonly List<Tuple<ComposablePartDefinition, ExportDefinition>> _EmptyExportsList = new List<Tuple<ComposablePartDefinition, ExportDefinition>>(); 103List<Tuple<ComposablePartDefinition, ExportDefinition>>? exports = null;
System\ComponentModel\Composition\Primitives\ComposablePartDefinition.cs (1)
110List<Tuple<ComposablePartDefinition, ExportDefinition>>? multipleExports = null;
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (1)
20List<Type> pureGenericParameters = new List<Type>();
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (20)
25private List<LazyMemberInfo>? _members; 26private List<Lazy<ParameterInfo>>? _parameters; 134List<LazyMemberInfo>? members = null; 135List<Lazy<ParameterInfo>>? parameters = null; 171private Dictionary<LazyMemberInfo, MemberInfo[]> BuildMembersTable(List<LazyMemberInfo> members) 236private Dictionary<Lazy<ParameterInfo>, ParameterInfo>? BuildParametersTable(List<Lazy<ParameterInfo>>? parameters) 256private List<ImportDefinition> PopulateImports(List<LazyMemberInfo> members, List<Lazy<ParameterInfo>> parameters) 258List<ImportDefinition> imports = new List<ImportDefinition>(); 275private ImportDefinition TranslateImport(ReflectionImportDefinition reflectionImport, List<LazyMemberInfo> members, List<Lazy<ParameterInfo>> parameters) 373private List<ExportDefinition> PopulateExports(List<LazyMemberInfo> members) 375List<ExportDefinition> exports = new List<ExportDefinition>(); 392public ExportDefinition TranslateExpot(ReflectionMemberExportDefinition reflectionExport, List<LazyMemberInfo> members) 470List<LazyMemberInfo> members = new List<LazyMemberInfo>(); 471List<Lazy<ParameterInfo>> parameters = new List<Lazy<ParameterInfo>>(); 474var exports = PopulateExports(members); 475var imports = PopulateImports(members, parameters);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (2)
148List<Tuple<ComposablePartDefinition, ExportDefinition>>? exports = null; 223List<Tuple<ComposablePartDefinition, ExportDefinition>>? multipleExports = null;
System.ComponentModel.Composition.Registration (45)
System\ComponentModel\Composition\Registration\ExportBuilder.cs (3)
13private List<Tuple<string, object>> _metadataItems; 14private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 57internal void BuildAttributes(Type type, ref List<Attribute> attributes)
System\ComponentModel\Composition\Registration\ImportBuilder.cs (1)
71internal void BuildAttributes(Type type, ref List<Attribute> attributes)
System\ComponentModel\Composition\Registration\PartBuilder.cs (20)
13private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() }; 15private readonly List<ExportBuilder> _typeExportBuilders; 20private List<Tuple<string, object>> _metadataItems; 21private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 28private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>> _propertyExports; 29private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>> _propertyImports; 30private readonly List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>> _interfaceExports; 225var attributes = new List<Attribute>(); 335internal bool BuildConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 376internal static void BuildDefaultConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 386private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo, ImportBuilder> configureConstructorImports) 388configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 410List<Attribute> attributes = null; 417internal void BuildPropertyAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 423List<Attribute> attributes = null; 503configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (21)
21private static readonly List<object> s_emptyList = new List<object>(); 24private readonly List<PartBuilder> _conventions = new List<PartBuilder>(); 26private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 27private readonly Dictionary<ParameterInfo, List<Attribute>> _parameters = new Dictionary<ParameterInfo, List<Attribute>>(); 89private List<Tuple<object, List<Attribute>>> EvaluateThisTypeAgainstTheConvention(Type type) 91List<Attribute> attributes = new List<Attribute>(); 93var configuredMembers = new List<Tuple<object, List<Attribute>>>(); 123List<Attribute> cachedAttributes = null; 140List<Attribute> attributeList; 141foreach (Tuple<object, List<Attribute>> element in EvaluateThisTypeAgainstTheConvention((Type)member)) 148List<Attribute> memberAttributes; 182if (!_parameters.TryGetValue((ParameterInfo)element.Item1, out List<Attribute> parameterAttributes)) 212List<Attribute> cachedAttributes = ReadParameterCustomAttributes(parameter); 217private List<Attribute> ReadMemberCustomAttributes(MemberInfo member) 219List<Attribute> cachedAttributes = null; 253private List<Attribute> ReadParameterCustomAttributes(ParameterInfo parameter) 255List<Attribute> cachedAttributes = null;
System.ComponentModel.TypeConverter (14)
System\ComponentModel\Design\Serialization\ContextStack.cs (1)
26private List<object>? _contextStack;
System\ComponentModel\EnumConverter.cs (1)
179List<Enum> flagValues = new List<Enum>();
System\ComponentModel\EventDescriptorCollection.cs (1)
314List<EventDescriptor?> eventList = new List<EventDescriptor?>(_events);
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
28List<Attribute> attrList = new List<Attribute>(AttributeArray!)
System\ComponentModel\MaskedTextProvider.cs (2)
148private List<CharDescriptor> _stringDescriptor; 535List<int> editPositions = new List<int>();
System\ComponentModel\MemberDescriptor.cs (2)
95List<Attribute> newList = new List<Attribute>(); 327List<Attribute> list;
System\ComponentModel\PropertyDescriptorCollection.cs (1)
332List<PropertyDescriptor?> propList = new List<PropertyDescriptor?>(_properties);
System\ComponentModel\ReferenceConverter.cs (1)
126List<object?>? components = null;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
598List<PropertyDescriptor>? propertyList = null; 859List<Type> typeList = new List<Type>(); 1265List<ReflectPropertyDescriptor> extendedList = new List<ReflectPropertyDescriptor>(attributes.Count);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
89var attributes = new List<Attribute>(ReflectGetAttributes(_type));
System.Composition.Convention (52)
System\Composition\Convention\ConventionBuilder.cs (20)
17private readonly List<PartConventionBuilder> _conventions = new List<PartConventionBuilder>(); 19private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 20private readonly Dictionary<ParameterInfo, List<Attribute>> _parameters = new Dictionary<ParameterInfo, List<Attribute>>(); 114private List<Tuple<object, List<Attribute>>> EvaluateThisTypeInfoAgainstTheConvention(TypeInfo typeInfo) 116List<Attribute> attributes = new List<Attribute>(); 117var configuredMembers = new List<Tuple<object, List<Attribute>>>(); 152List<Attribute> cachedAttributes = null; 174List<Attribute> attributeList; 175foreach (Tuple<object, List<Attribute>> element in EvaluateThisTypeInfoAgainstTheConvention(typeInfo)) 185if (!_memberInfos.TryGetValue(mi, out List<Attribute> memberAttributes)) 200if (!_parameters.TryGetValue(pi, out List<Attribute> parameterAttributes)) 232private List<Attribute> ReadMemberCustomAttributes(Type reflectedType, System.Reflection.MemberInfo member) 234List<Attribute> cachedAttributes = null; 289List<Attribute> cachedAttributes = ReadParameterCustomAttributes(reflectedType, parameter); 293private List<Attribute> ReadParameterCustomAttributes(Type reflectedType, System.Reflection.ParameterInfo parameter) 295List<Attribute> cachedAttributes = null;
System\Composition\Convention\ExportConventionBuilder.cs (3)
20private List<Tuple<string, object>> _metadataItems; 21private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 120internal void BuildAttributes(Type type, ref List<Attribute> attributes)
System\Composition\Convention\ImportConventionBuilder.cs (3)
21private List<Tuple<string, object>> _metadataConstraintItems; 22private List<Tuple<string, Func<Type, object>>> _metadataConstraintItemFuncs; 128internal void BuildAttributes(Type type, ref List<Attribute> attributes)
System\Composition\Convention\PartConventionBuilder.cs (26)
17private static List<Attribute> s_onImportsSatisfiedAttributeList; 18private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() }; 20private readonly List<ExportConventionBuilder> _typeExportBuilders; 25private List<Tuple<string, object>> _metadataItems; 26private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 33private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>> _propertyExports; 34private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>> _propertyImports; 35private readonly List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>> _interfaceExports; 36private readonly List<Predicate<MethodInfo>> _methodImportsSatisfiedNotifications; 422var attributes = new List<Attribute>(); 529internal bool BuildConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 567internal static void BuildDefaultConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 577private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo, ImportConventionBuilder> configureConstructorImports) 579configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 601List<Attribute> attributes = null; 608internal void BuildOnImportsSatisfiedNotification(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 646var onImportsSatisfiedAttributeList = new List<Attribute> 652configuredMembers.Add(new Tuple<object, List<Attribute>>(mi, s_onImportsSatisfiedAttributeList)); 662internal void BuildPropertyAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 668List<Attribute> attributes = null; 748configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.Composition.Hosting (6)
System\Composition\Hosting\Core\CompositionOperation.cs (3)
16private List<Action> _nonPrerequisiteActions; 17private List<Action> _postCompositionActions; 104var currentActions = _nonPrerequisiteActions;
System\Composition\Hosting\Core\LifetimeContext.cs (1)
38private List<IDisposable> _boundPartInstances = new List<IDisposable>(0);
System\Composition\Hosting\Core\UpdateResult.cs (1)
17private readonly List<ExportDescriptorPromise> _providedDescriptors = new List<ExportDescriptorPromise>();
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (1)
49var blockExprs = new List<Expression>();
System.Composition.TypedParts (9)
System\Composition\Debugging\ContainerConfigurationDebuggerProxy.cs (2)
59var discovered = new List<DiscoveredPart>(); 60var ignored = new List<Type>();
System\Composition\Hosting\ContainerConfiguration.cs (3)
23private readonly List<ExportDescriptorProvider> _addedSources = new List<ExportDescriptorProvider>(); 24private readonly List<Tuple<IEnumerable<Type>, AttributedModelProvider>> _types = new List<Tuple<IEnumerable<Type>, AttributedModelProvider>>(); 33var providers = _addedSources.ToList();
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (2)
40var result = new List<CompositionDependency>(); 79var statements = new List<Expression>();
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (2)
24private readonly List<DiscoveredExport> _exports = new List<DiscoveredExport>(); 30private readonly List<Type[]> _appliedArguments = new List<Type[]>();
System.Configuration.ConfigurationManager (34)
System\Configuration\ApplicationSettingsBase.cs (1)
715var settingProps = new List<PropertyInfo>();
System\Configuration\BaseConfigurationRecord.cs (8)
382Dictionary<string, List<SectionInput>> indirectLocationInputs = null; 413indirectLocationInputs ??= new Dictionary<string, List<SectionInput>>(1); 436foreach (KeyValuePair<string, List<SectionInput>> keyValuePair in indirectLocationInputs) 438List<SectionInput> inputsPerConfigKey = keyValuePair.Value; 645List<SectionRecord> removes = null; 1165List<SectionInput> locationInputs = sectionRecord.LocationInputs; 1166List<SectionInput> indirectLocationInputs = sectionRecord.IndirectLocationInputs; 2633List<ConfigurationException> localErrors =
System\Configuration\ConfigurationSchemaErrors.cs (5)
13private List<ConfigurationException> _errorsAll; 16private List<ConfigurationException> _errorsGlobal; 22private List<ConfigurationException> _errorsLocal; 78internal List<ConfigurationException> RetrieveAndResetLocalErrors(bool keepLocalErrors) 80List<ConfigurationException> list = _errorsLocal;
System\Configuration\ErrorsHelper.cs (6)
11internal static int GetErrorCount(List<ConfigurationException> errors) 16internal static bool GetHasErrors(List<ConfigurationException> errors) 21internal static void AddError(ref List<ConfigurationException> errors, ConfigurationException e) 38internal static void AddErrors(ref List<ConfigurationException> errors, ICollection<ConfigurationException> coll) 49internal static ConfigurationErrorsException GetErrorsException(List<ConfigurationException> errors) 57internal static void ThrowOnErrors(List<ConfigurationException> errors)
System\Configuration\FactoryRecord.cs (2)
23private List<ConfigurationException> _errors; // errors 156internal List<ConfigurationException> Errors => _errors;
System\Configuration\LocationSectionRecord.cs (3)
12private List<ConfigurationException> _errors; // errors 14internal LocationSectionRecord(SectionXmlInfo sectionXmlInfo, List<ConfigurationException> errors) 27internal List<ConfigurationException> ErrorsList => _errors;
System\Configuration\MgmtConfigurationRecord.cs (1)
802List<string> streamsToRemove = new List<string>();
System\Configuration\SectionInput.cs (2)
16private readonly List<ConfigurationException> _errors; 21internal SectionInput(SectionXmlInfo sectionXmlInfo, List<ConfigurationException> errors)
System\Configuration\SectionRecord.cs (5)
108internal List<SectionInput> LocationInputs { get; private set; } 119internal List<SectionInput> IndirectLocationInputs { get; private set; } 210List<SectionInput> inputs = isIndirectLocation 274private List<ConfigurationException> GetAllErrors() 276List<ConfigurationException> allErrors = null;
System\Diagnostics\ListenerElementsCollection.cs (1)
27List<TraceListener> listeners = new();
System.Console (2)
System\TermInfo.Database.cs (2)
224var values = new List<string>(extendedStringCount); 244var names = new List<string>(extendedBoolCount + extendedNumberCount + extendedStringCount);
System.Data.Common (86)
System\Data\Common\DataColumnMappingCollection.cs (2)
14private List<DataColumnMapping>? _items; // delay creation until AddWithoutEvents, Insert, CopyTo, GetEnumerator 189private List<DataColumnMapping> ArrayList()
System\Data\Common\DataTableMappingCollection.cs (2)
17private List<DataTableMapping>? _items; // delay creation until AddWithoutEvents, Insert, CopyTo, GetEnumerator 148private List<DataTableMapping> ArrayList() => _items ??= new List<DataTableMapping>();
System\Data\Common\DbDataAdapter.cs (1)
1385List<DataRow>? rows = null;
System\Data\Common\DbDataReaderExtensions.cs (1)
73var columnSchema = new List<DbColumn>();
System\Data\DataColumn.cs (1)
59internal List<DataColumn>? _dependentColumns; // list of columns whose expression consume values from this column
System\Data\DataRelation.cs (1)
428List<DataTable> list = new List<DataTable>();
System\Data\DataSet.cs (1)
3226List<DataTable> topTables = new List<DataTable>();
System\Data\DataTable.cs (24)
64internal readonly List<Index> _indexes; 66private List<Index>? _shadowIndexes; 126internal List<DataColumn>? _dependentColumns; 148internal readonly List<DataView> _delayedViews = new List<DataView>(); 149private readonly List<DataViewListener> _dataViewListeners = new List<DataViewListener>(); 373List<DataTable> list = new List<DataTable>(); 1120internal List<Index> LiveIndexes 1588List<DataRelation>? nestedParents = null; 1855private string GetInheritedNamespace(List<DataTable> visitedTables) 3160List<DataRow> errorList = new List<DataRow>(); 3210internal List<DataViewListener> GetListeners() => _dataViewListeners; 4350List<DataRow>? cachedRows = null; 5526List<DataTable> tableList = new List<DataTable>(); 5535private static bool CheckForClosureOnExpressionTables(List<DataTable> tableList) 6382List<DataTable> tableList = new List<DataTable>(); 6541List<DataTable> tableList = new List<DataTable>(); 6544List<DataRelation> relationList = new List<DataRelation>(); 6662private static void CreateTableList(DataTable currentTable, List<DataTable> tableList) 6673private static void CreateRelationList(List<DataTable> tableList, List<DataRelation> relationList) 6820internal static List<DataTable>? t_usedTables; 6987internal void EvaluateExpressions(DataRow row, DataRowAction action, List<DataRow>? cachedRows) 7140internal void EvaluateDependentExpressions(List<DataColumn>? columns, DataRow row, DataRowVersion version, List<DataRow>? cachedRows)
System\Data\DataTableCollection.cs (1)
616internal void ReplaceFromInference(List<DataTable> tableList)
System\Data\DataView.cs (2)
1704List<object[]> rowlist = new List<object[]>(); 1735private static bool RowExist(List<object[]> arraylist, object[] objectArray)
System\Data\DataViewListener.cs (2)
141List<DataViewListener> listeners = table.GetListeners(); 190List<DataViewListener> listeners = table.GetListeners();
System\Data\EnumerableRowCollection.cs (3)
38private readonly List<Func<TRow, bool>> _listOfPredicates; 235(List<object>)key, 261(List<object>)key,
System\Data\Filter\AggregateNode.cs (3)
70internal override void Bind(DataTable table, List<DataColumn> list) 137internal static void Bind(DataRelation? relation, List<DataColumn> list) 197List<int> recordList = new List<int>();
System\Data\Filter\BinaryNode.cs (1)
27internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\ConstNode.cs (1)
67internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\DataExpression.cs (2)
95List<DataColumn> list = new List<DataColumn>(); 176List<int> recordList = new List<int>();
System\Data\Filter\ExpressionNode.cs (1)
46internal abstract void Bind(DataTable table, List<DataColumn> list);
System\Data\Filter\FunctionNode.cs (1)
85internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\LookupNode.cs (1)
24internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\NameNode.cs (1)
34internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\UnaryNode.cs (1)
24internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\ZeroOpNode.cs (1)
24internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\LinqDataView.cs (2)
132List<object?> keyList = new List<object?>(); 168List<object?> keyList = new List<object?>();
System\Data\Merger.cs (1)
53List<DataColumn>? existingColumns = null; // need to cache existing columns
System\Data\ProviderBase\SchemaMapping.cs (4)
530private static void AddItemToAllowRollback(ref List<object>? items, object value) 539private static void RollbackAddedItems(List<object>? items) 577List<object>? addedItems = null; 799List<object>? addedItems = null;
System\Data\RecordManager.cs (1)
16private readonly List<int> _freeRecordList = new List<int>();
System\Data\Select.cs (2)
810List<int> matchingRecords = new List<int>(); 833List<DataRow> matchingRows = new List<DataRow>();
System\Data\Selection.cs (5)
499List<object[]> list = new List<object[]>(); 1009private void GetUniqueKeyValues(List<object[]> list, int curNodeId) 1027internal static int IndexOfReference<T>(List<T?>? list, T item) where T : class 1041internal static bool ContainsReference<T>(List<T?> list, T item) where T : class 1049private readonly List<TElem?> _listeners;
System\Data\SortExpressionBuilder.cs (5)
15internal sealed class SortExpressionBuilder<T> : IComparer<List<object>> 76public List<object> Select(T row) 78List<object> result = new List<object>(); 95public int Compare(List<object>? a, List<object>? b)
System\Data\TypeLimiter.cs (1)
292if (type.IsGenericType && !type.IsGenericTypeDefinition && type.GetGenericTypeDefinition() == typeof(List<>))
System\Data\XMLSchema.cs (9)
148private Dictionary<DataTable, List<DataTable>>? _tableDictionary; 687_tableDictionary = new Dictionary<DataTable, List<DataTable>>(); 730List<XmlQualifiedName> qnames = new List<XmlQualifiedName>(); 1344if (_tableDictionary!.TryGetValue(relation.ParentTable, out List<DataTable>? value)) 1757if (_tableDictionary!.TryGetValue(relation.ParentTable, out List<DataTable>? value)) 2563List<DataTable> tableSequenceList = new List<DataTable>(); 2709List<DataTable> _tableList = new List<DataTable>(_ds.Tables.Count); 2718private void AddTablesToList(List<DataTable> tableList, DataTable dt) 2862private readonly List<string> _namespacesToIgnore;
System\Xml\XmlDataDocument.cs (2)
3057List<DataTable> tableList = new List<DataTable>(); 3097List<DataTable> tableList = new List<DataTable>();
System.Data.Odbc (20)
Common\System\Data\Common\DBConnectionString.cs (4)
395List<string>? newlist = null; 418List<string>? newlist = null; 447List<string> newlist = new List<string>(a.Length + b.Length); 467List<string> restrictionValues = new List<string>();
Common\System\Data\ProviderBase\DbConnectionPool.cs (2)
128private readonly List<DbConnectionInternal> _objectList; 1059List<DbConnectionInternal> reclaimedObjects = new List<DbConnectionInternal>();
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (2)
16private readonly List<DbConnectionPool> _poolsToRelease; 17private readonly List<DbConnectionPoolGroup> _poolGroupsToRelease;
System\Data\Odbc\OdbcCommandBuilder.cs (1)
165List<OdbcParameter> rParams = new List<OdbcParameter>();
System\Data\Odbc\OdbcDataReader.cs (3)
1494List<byte[]> junkArray = new List<byte[]>(); 2002List<string>? qrytables; 2154List<string>.Enumerator tablesEnum = qrytables.GetEnumerator();
System\Data\Odbc\OdbcParameterCollectionHelper.cs (8)
13private List<OdbcParameter>? _items; 23private List<OdbcParameter> InnerList 27List<OdbcParameter>? items = _items; 110List<OdbcParameter> items = InnerList; 153private static int IndexOf(List<OdbcParameter> items, string parameterName) 192List<OdbcParameter> items = InnerList; 257List<OdbcParameter> items = InnerList; 266List<OdbcParameter> items = InnerList;
System.Data.OleDb (17)
OleDbConnectionStringBuilder.cs (2)
452List<Guid> listPropertySets = new List<Guid>(); 569System.Collections.Generic.List<string> providerNames = new System.Collections.Generic.List<string>(table.Rows.Count);
OleDbDataReader.cs (2)
1224List<OleDbException>? exceptions = null; 2234List<MetaData> metainfo = new List<MetaData>();
OleDbException.cs (1)
104internal static OleDbException CombineExceptions(List<OleDbException> exceptions)
OleDbParameterCollectionHelper.cs (8)
14private List<OleDbParameter>? _items; 24private List<OleDbParameter> InnerList 28List<OleDbParameter>? items = _items; 111List<OleDbParameter> items = InnerList; 154private static int IndexOf(List<OleDbParameter> items, string parameterName) 193List<OleDbParameter> items = InnerList; 258List<OleDbParameter> items = InnerList; 267List<OleDbParameter> items = InnerList;
System\Data\ProviderBase\DbConnectionFactory.cs (2)
15private readonly List<DbConnectionPool> _poolsToRelease; 16private readonly List<DbConnectionPoolGroup> _poolGroupsToRelease;
System\Data\ProviderBase\DbConnectionPool.cs (2)
367private readonly List<DbConnectionInternal> _objectList; 1596List<DbConnectionInternal> reclaimedObjects = new List<DbConnectionInternal>();
System.Diagnostics.DiagnosticSource (35)
System\Diagnostics\Activity.cs (4)
2270public List<KeyValuePair<string, string?>> Baggage => new List<KeyValuePair<string, string?>>(activity.Baggage); 2274public List<ActivityEvent> Events => new List<ActivityEvent>(activity.Events); 2278public List<ActivityLink> Links => new List<ActivityLink>(activity.Links); 2288public List<KeyValuePair<string, object?>> TagObjects => new List<KeyValuePair<string, object?>>(activity.TagObjects);
System\Diagnostics\ActivitySource.cs (2)
59var tagList = new List<KeyValuePair<string, object?>>(tags); 423List<Exception>? predicateFailures = null;
System\Diagnostics\ActivityTagsCollection.cs (5)
24private readonly List<KeyValuePair<string, object?>> _list = new List<KeyValuePair<string, object?>>(); 98List<string> list = new List<string>(_list.Count); 114List<object?> list = new List<object?>(_list.Count); 274private List<KeyValuePair<string, object?>>.Enumerator _enumerator; 275internal Enumerator(List<KeyValuePair<string, object?>> list) => _enumerator = list.GetEnumerator();
System\Diagnostics\DsesFilterAndTransform.cs (3)
424public List<KeyValuePair<string, string?>> Morph(object? args) 427var outputArgs = new List<KeyValuePair<string, string?>>(); 531var outputArgs = this.Morph(evnt.Value);
System\Diagnostics\LegacyPropagator.cs (1)
88List<KeyValuePair<string, string?>>? baggageList = null;
System\Diagnostics\Metrics\AggregationManager.cs (1)
22private readonly List<Predicate<Instrument>> _instrumentConfigFuncs = new();
System\Diagnostics\Metrics\Instrument.cs (2)
75var tagList = new List<KeyValuePair<string, object?>>(tags); 92List<MeterListener>? allListeners = null;
System\Diagnostics\Metrics\InstrumentAdvice.cs (2)
43List<T> bucketBoundariesCopy = new List<T>(value); 54private static bool IsSortedAndDistinct(List<T> values)
System\Diagnostics\Metrics\Meter.cs (10)
18private static readonly List<Meter> s_allMeters = new List<Meter>(); 19private List<Instrument> _instruments = new List<Instrument>(); 20private Dictionary<string, List<Instrument>> _nonObservableInstrumentsCache = new(); 78var tagList = new List<KeyValuePair<string, object?>>(tags); 496List<Instrument>? instruments = null; 525private static Instrument? GetCachedInstrument(List<Instrument> instrumentList, Type instrumentType, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) 531instrument.Description == description && DiagnosticsHelper.CompareTags(instrument.Tags as List<KeyValuePair<string, object?>>, tags)) 543List<Instrument>? instrumentList; 598internal static List<Instrument>? GetPublishedInstruments() 600List<Instrument>? instruments = null;
System\Diagnostics\Metrics\MeterListener.cs (4)
21private static readonly List<MeterListener> s_allStartedListeners = new List<MeterListener>(); 184List<Instrument>? publishedInstruments = null; 218List<Exception>? exceptionsList = null; 295internal static List<MeterListener>? GetAllListeners() => s_allStartedListeners.Count == 0 ? null : new List<MeterListener>(s_allStartedListeners);
System\Diagnostics\W3CPropagator.cs (1)
104List<KeyValuePair<string, string?>>? baggageList = null;
System.Diagnostics.EventLog (28)
System\Diagnostics\EventLog.cs (1)
649List<EventLog> logs = new List<EventLog>(logNames.Length);
System\Diagnostics\EventLogInternal.cs (1)
1421public List<EventLogInternal> listeningComponents = new();
System\Diagnostics\Reader\EventLogPropertySelector.cs (1)
29List<string> queries;
System\Diagnostics\Reader\EventLogReader.cs (1)
315var list = new List<EventLogStatus>(channelNames.Length);
System\Diagnostics\Reader\EventLogRecord.cs (1)
372List<EventProperty> list = new List<EventProperty>();
System\Diagnostics\Reader\EventLogSession.cs (2)
165List<string> namesList = new List<string>(100); 188List<string> namesList = new List<string>(100);
System\Diagnostics\Reader\EventMetadata.cs (1)
86List<EventKeyword> list = new List<EventKeyword>();
System\Diagnostics\Reader\NativeWrapper.cs (2)
914List<object?> valuesList = new List<object?>(propCount); 994List<string> keywordsList = new List<string>();
System\Diagnostics\Reader\ProviderMetadata.cs (18)
164List<EventLogLink> channelList = new List<EventLogLink>(arraySize); 240_standardLevels ??= (List<EventLevel>)GetProviderListProperty(_defaultProviderHandle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataLevels)!; 250_standardOpcodes ??= (List<EventOpcode>)GetProviderListProperty(_defaultProviderHandle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataOpcodes)!; 260_standardKeywords ??= (List<EventKeyword>)GetProviderListProperty(_defaultProviderHandle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataKeywords)!; 270_standardTasks ??= (List<EventTask>)GetProviderListProperty(_defaultProviderHandle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataTasks)!; 290List<EventLevel>? levelList = null; 291List<EventOpcode>? opcodeList = null; 292List<EventKeyword>? keywordList = null; 293List<EventTask>? taskList = null; 418List<EventLevel> el; 424el = (List<EventLevel>)this.GetProviderListProperty(_handle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataLevels)!; 435List<EventOpcode> eo; 441eo = (List<EventOpcode>)this.GetProviderListProperty(_handle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataOpcodes)!; 452List<EventKeyword> ek; 458ek = (List<EventKeyword>)this.GetProviderListProperty(_handle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataKeywords)!; 469List<EventTask> et; 475et = (List<EventTask>)this.GetProviderListProperty(_handle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataTasks)!; 486List<EventMetadata> emList = new List<EventMetadata>();
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\PerformanceData\PerfProviderCollection.cs (1)
34private static readonly List<PerfProvider> s_providerList = new List<PerfProvider>();
System.Diagnostics.Process (20)
System\Diagnostics\Process.Multiplexing.cs (4)
269List<ProcessOutputLine> lines) 325List<ProcessOutputLine> lines) 344private static void DecodeBytesAndParseLines(Decoder decoder, ReadOnlySpan<byte> byteBuffer, ref char[] charBuffer, ref int charStart, ref int charEnd, bool standardError, List<ProcessOutputLine> lines) 350private static bool FlushDecoderAndEmitRemainingChars(bool preambleChecked, Encoding encoding, Decoder decoder, ReadOnlySpan<byte> unconsumedBytes, ref char[] charBuffer, ref int charStart, ref int charEnd, bool standardError, List<ProcessOutputLine> lines)
System\Diagnostics\Process.Multiplexing.Unix.cs (2)
64List<ProcessOutputLine> lines = new(); 226List<ProcessOutputLine> lines)
System\Diagnostics\Process.NonUap.cs (3)
28List<Exception>? result = KillTree(); 72private List<Process> GetChildProcesses(Process[]? processes = null) 77List<Process> childProcesses = new List<Process>();
System\Diagnostics\Process.Unix.cs (7)
104private List<Exception>? KillTree() 106List<Exception>? exceptions = null; 111private void KillTree(ref List<Exception>? exceptions) 117List<Process> stoppedProcesses = []; 160private bool StopTree(ref List<Exception>? exceptions, List<Process> stoppedProcesses) 184List<Process> children = GetChildProcesses();
System\Diagnostics\ProcessInfo.cs (1)
16internal readonly List<ThreadInfo> _threadInfoList;
System\Diagnostics\ProcessUtils.Unix.cs (2)
242var argvList = new List<string>(); 339private static void ParseArgumentsIntoList(string arguments, List<string> results)
System\Diagnostics\ProcessWaitState.Unix.cs (1)
657List<ProcessWaitState>? additionalToRemove = null;
System.Diagnostics.TraceSource (9)
System\Diagnostics\CorrelationManager.cs (1)
128var results = new List<object?>();
System\Diagnostics\Switch.cs (2)
29private static readonly List<WeakReference<Switch>> s_switches = new List<WeakReference<Switch>>(); 67List<WeakReference<Switch>> buffer = new List<WeakReference<Switch>>(s_switches.Count);
System\Diagnostics\SwitchAttribute.cs (3)
53List<object> switchAttribs = new List<object>(); 67private static void GetAllRecursive([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, List<object> switchAttribs) 82private static void GetAllRecursive(MemberInfo member, List<object> switchAttribs)
System\Diagnostics\TraceListeners.cs (1)
16private readonly List<TraceListener?> _list;
System\Diagnostics\TraceSource.cs (2)
15private static readonly List<WeakReference<TraceSource>> s_tracesources = new List<WeakReference<TraceSource>>(); 49List<WeakReference<TraceSource>> buffer = new List<WeakReference<TraceSource>>(s_tracesources.Count);
System.DirectoryServices (2)
System\DirectoryServices\ActiveDirectory\DirectoryServerCollection.cs (2)
18private readonly List<object> _copyList = new(); 401var values = new List<string>();
System.DirectoryServices.AccountManagement (79)
System\DirectoryServices\AccountManagement\AccountInfo.cs (1)
311_permittedWorkstations.Load((List<string>)value);
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (3)
20private List<string> _cachedBindableObjectList; 260private List<string> PopulatAuxObjectList(string auxClassName) 285List<string> objectClasses = new List<string>();
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (11)
583List<byte[]> sidList = new List<byte[]>(_foreignMembersCurrentGroup.Count); 1276private List<string> _groupsVisited = new List<string>(); 1278private List<string> _groupsToVisit = new List<string>(); 1303private List<DirectoryEntry> _foreignMembersCurrentGroup = new List<DirectoryEntry>(); 1305private List<DirectoryEntry> _fakePrincipalMembers = new List<DirectoryEntry>(); 1312private List<GroupPrincipal> _foreignGroups = new List<GroupPrincipal>(); 1367public List<string> groupsToVisit; 1368public List<string> groupsVisited; 1375public List<DirectoryEntry> foreignMembersCurrentGroup; 1376public List<DirectoryEntry> fakePrincipalMembers; 1380public List<GroupPrincipal> foreignGroups;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (4)
908List<string> list = new List<string>(individualValues.Length); 1359var propertyValueList = new List<object>(); 1516List<Principal> insertedMembers = members.Inserted; 1517List<Principal> removedMembers = members.Removed;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
1167List<DirectoryEntry> roots = new List<DirectoryEntry>(1);
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (4)
502List<T> list = new List<T>(); 604List<string> insertedValues = trackingList.Inserted; 605List<string> removedValues = trackingList.Removed; 606List<Pair<string, string>> changedValues = trackingList.ChangedValues;
System\DirectoryServices\AccountManagement\AD\SidList.cs (3)
13internal SidList(List<byte[]> sidListByteFormat) : this(sidListByteFormat, null, null) 17internal SidList(List<byte[]> sidListByteFormat, string target, NetCred credentials) 207private readonly List<SidListEntry> _entries = new List<SidListEntry>();
System\DirectoryServices\AccountManagement\AuthenticablePrincipal.cs (4)
249private readonly List<string> _certificateOriginalThumbprints = new List<string>(); 386LoadCertificateCollection((List<byte[]>)value); 542private void LoadCertificateCollection(List<byte[]> certificatesToLoad) 598List<string> remainingOriginalThumbprints = new List<string>(_certificateOriginalThumbprints);
System\DirectoryServices\AccountManagement\Computer.cs (1)
120_servicePrincipalNames.Load((List<string>)value);
System\DirectoryServices\AccountManagement\PrincipalCollection.cs (6)
663private readonly List<Principal> _insertedValuesCompleted = new List<Principal>(); 664private readonly List<Principal> _insertedValuesPending = new List<Principal>(); 668private readonly List<Principal> _removedValuesCompleted = new List<Principal>(); 669private readonly List<Principal> _removedValuesPending = new List<Principal>(); 706internal List<Principal> Inserted 714internal List<Principal> Removed
System\DirectoryServices\AccountManagement\PrincipalCollectionEnumerator.cs (8)
240List<Principal> removedValuesCompleted, 241List<Principal> removedValuesPending, 242List<Principal> insertedValuesCompleted, 243List<Principal> insertedValuesPending 274private readonly List<Principal> _insertedValuesPending; 275private readonly List<Principal> _insertedValuesCompleted; 276private readonly List<Principal> _removedValuesPending; 277private readonly List<Principal> _removedValuesCompleted;
System\DirectoryServices\AccountManagement\SAM\SAMMembersSet.cs (8)
575private List<string> _groupsVisited = new List<string>(); 577private List<string> _groupsToVisit = new List<string>(); 588private List<DirectoryEntry> _foreignMembers = new List<DirectoryEntry>(); 591private List<GroupPrincipal> _foreignGroups = new List<GroupPrincipal>(); 597public List<string> groupsToVisit; 598public List<string> groupsVisited; 604public List<DirectoryEntry> foreignMembers; 605public List<GroupPrincipal> foreignGroups;
System\DirectoryServices\AccountManagement\SAM\SAMQuerySet.cs (2)
19List<string> schemaTypes, 185private readonly List<string> _schemaTypes;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (2)
1064List<Principal> insertedMembers = members.Inserted; 1109List<Principal> removedMembers = members.Removed;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_Query.cs (3)
96List<string> schemaTypes = GetSchemaFilter(qbeFilterType); 110private List<string> GetSchemaFilter(Type principalType) 112List<string> schemaTypes = new List<string>();
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (4)
75List<Hashtable> byPropertyTables = new List<Hashtable>(); 76List<Hashtable> byWinNTTables = new List<Hashtable>(); 593List<string> schemaTypes = GetSchemaFilter(principalType); 648List<string> schemaTypes = GetSchemaFilter(typeof(GroupPrincipal));
System\DirectoryServices\AccountManagement\TrackedCollection.cs (7)
223internal List<ValueEl> combinedValues = new List<ValueEl>(); 227internal List<T> removedValues = new List<T>(); 246internal List<T> Inserted 250List<T> insertedValues = new List<T>(); 262internal List<T> Removed 270internal List<Pair<T, T>> ChangedValues 274List<Pair<T, T>> changedList = new List<Pair<T, T>>();
System\DirectoryServices\AccountManagement\TrackedCollectionEnumerator.cs (2)
131internal TrackedCollectionEnumerator(string outerClassName, TrackedCollection<T> trackedCollection, List<TrackedCollection<T>.ValueEl> combinedValues) 150private readonly List<TrackedCollection<T>.ValueEl> _combinedValues;
System\DirectoryServices\AccountManagement\ValueCollection.cs (4)
375internal void Load(List<T> values) 398internal List<T> Inserted 406internal List<T> Removed 414internal List<Pair<T, T>> ChangedValues
System\DirectoryServices\AccountManagement\ValueCollectionEnumerator.cs (1)
70internal ValueCollectionEnumerator(TrackedCollection<T> trackingList, List<TrackedCollection<T>.ValueEl> combinedValues)
System.Drawing.Common (3)
System\Drawing\ImageAnimator.cs (1)
43private static List<ImageInfo>? s_imageInfoList;
System\Drawing\Printing\PreviewPrintController.cs (1)
15private readonly List<PreviewPageInfo> _list = [];
System\Drawing\Printing\PrinterSettings.StringCollection.cs (1)
13private readonly List<string> _list;
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.cs (1)
748List<(int, int)> positions = new List<(int, int)>();
System.Formats.Cbor (20)
System\Formats\Cbor\Reader\CborReader.String.cs (11)
16private List<(int Offset, int Length)>? _indefiniteLengthStringRangeAllocation; 334List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.ByteString, out int encodingLength, out int concatenatedBufferSize); 355List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.ByteString, out int encodingLength, out int concatenatedBufferSize); 380List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.TextString, out int encodingLength, out int concatenatedBufferSize); 399static void BuildString(Span<char> target, (List<(int Offset, int Length)> ranges, ReadOnlyMemory<byte> source, Encoding utf8Encoding) input) 415List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.TextString, out int encodingLength, out int _); 448private List<(int Offset, int Length)> ReadIndefiniteLengthStringChunkRanges(CborMajorType type, out int encodingLength, out int concatenatedBufferSize) 452List<(int Offset, int Length)> ranges = AcquireIndefiniteLengthStringRangeList(); 522private List<(int Offset, int Length)> AcquireIndefiniteLengthStringRangeList() 524List<(int Offset, int Length)>? ranges = Interlocked.Exchange(ref _indefiniteLengthStringRangeAllocation, null); 535private void ReturnIndefiniteLengthStringRangeList(List<(int Offset, int Length)> ranges)
System\Formats\Cbor\Writer\CborWriter.cs (3)
33private List<KeyValuePairEncodingRange>? _keyValuePairEncodingRanges; // all key/value pair encoding ranges 483List<KeyValuePairEncodingRange>? keyValuePairEncodingRanges, 505public List<KeyValuePairEncodingRange>? KeyValuePairEncodingRanges { get; }
System\Formats\Cbor\Writer\CborWriter.Map.cs (5)
15private Stack<List<KeyValuePairEncodingRange>>? _pooledKeyValuePairEncodingRangeLists; 125List<KeyValuePairEncodingRange> keyValuePairEncodingRanges = GetKeyValueEncodingRanges(); 215private List<KeyValuePairEncodingRange> GetKeyValueEncodingRanges() 223_pooledKeyValuePairEncodingRangeLists.TryPop(out List<KeyValuePairEncodingRange>? result)) 236_pooledKeyValuePairEncodingRangeLists ??= new Stack<List<KeyValuePairEncodingRange>>();
System\Formats\Cbor\Writer\CborWriter.String.cs (1)
15private List<(int Offset, int Length)>? _currentIndefiniteLengthStringRanges;
System.Formats.Nrbf (14)
System\Formats\Nrbf\ArrayRecord.cs (2)
125private protected void CheckExpectedRecordCount(List<SerializationRecord> records, bool allowNulls) 133internal static void Populate(List<SerializationRecord> source, Array destination, int[] lengths, AllowedRecordTypes allowedRecordTypes, bool allowNulls)
System\Formats\Nrbf\ArraySingleObjectRecord.cs (1)
27private List<SerializationRecord> Records { get; }
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (5)
58return (List<T>)(object)DecodeDecimals(reader, count); 218private static List<decimal> DecodeDecimals(BinaryReader reader, int count) 220List<decimal> values = new(); 250private static List<T> DecodeFromNonSeekableStream(BinaryReader reader, int count) 256List<T> values = new List<T>(Math.Min(count, 4));
System\Formats\Nrbf\ArraySingleStringRecord.cs (1)
27private List<SerializationRecord> Records { get; }
System\Formats\Nrbf\ClassRecord.cs (1)
40internal List<object?> MemberValues { get; }
System\Formats\Nrbf\JaggedArrayRecord.cs (1)
24private readonly List<SerializationRecord> _records;
System\Formats\Nrbf\MemberTypeInfo.cs (1)
28List<(BinaryType BinaryType, object? AdditionalInfo)> info = [];
System\Formats\Nrbf\RectangularArrayRecord.cs (1)
20private readonly List<SerializationRecord> _records;
System\Formats\Nrbf\SZArrayOfRecords.cs (1)
28internal List<SerializationRecord> Records { get; }
System.Formats.Tar (1)
System\Formats\Tar\TarReader.cs (1)
20private List<Stream>? _dataStreamsToDispose;
System.IO.Compression (22)
System\IO\Compression\ZipArchive.Async.cs (1)
363List<ZipArchiveEntry> entriesToWrite = _entries;
System\IO\Compression\ZipArchive.cs (2)
24private readonly List<ZipArchiveEntry> _entries; 911List<ZipArchiveEntry> entriesToWrite = _entries;
System\IO\Compression\ZipArchiveEntry.cs (2)
44private List<ZipGenericExtraField>? _cdUnknownExtraFields; 46private List<ZipGenericExtraField>? _lhUnknownExtraFields;
System\IO\Compression\ZipBlocks.Async.cs (4)
24public static async Task WriteAllBlocksAsync(List<ZipGenericExtraField>? fields, ReadOnlyMemory<byte> trailingExtraFieldData, Stream stream, CancellationToken cancellationToken) 42public static async Task WriteAllBlocksExcludingTagAsync(List<ZipGenericExtraField>? fields, ReadOnlyMemory<byte> trailingExtraFieldData, Stream stream, ushort excludeTag, CancellationToken cancellationToken) 132public static async Task<(List<ZipGenericExtraField>, byte[] trailingData)> GetExtraFieldsAsync(Stream stream, CancellationToken cancellationToken) 152List<ZipGenericExtraField> list = GetExtraFieldPostReadWork(extraFieldBuffer.Span, out byte[] trailingData);
System\IO\Compression\ZipBlocks.cs (13)
70public static List<ZipGenericExtraField> ParseExtraField(ReadOnlySpan<byte> extraFieldData, out ReadOnlySpan<byte> trailingExtraFieldData) 72List<ZipGenericExtraField> extraFields = new List<ZipGenericExtraField>(); 90public static int TotalSize(List<ZipGenericExtraField>? fields, int trailingDataLength) 104public static void WriteAllBlocks(List<ZipGenericExtraField>? fields, ReadOnlySpan<byte> trailingExtraFieldData, Stream stream) 120public static void WriteAllBlocksExcludingTag(List<ZipGenericExtraField>? fields, ReadOnlySpan<byte> trailingExtraFieldData, Stream stream, ushort excludeTag) 139public static int TotalSizeExcludingTag(List<ZipGenericExtraField>? fields, int trailingDataLength, ushort excludeTag) 372public static Zip64ExtraField GetAndRemoveZip64Block(List<ZipGenericExtraField> extraFields, 407public static void RemoveZip64Blocks(List<ZipGenericExtraField> extraFields) 623private static List<ZipGenericExtraField> GetExtraFieldPostReadWork(Span<byte> extraFieldBuffer, out byte[] trailingData) 625List<ZipGenericExtraField> list = ZipGenericExtraField.ParseExtraField(extraFieldBuffer, out ReadOnlySpan<byte> trailingDataSpan); 631public static unsafe List<ZipGenericExtraField> GetExtraFields(Stream stream, out byte[] trailingData) 744public static bool TryGetFromExtraFields(List<ZipGenericExtraField>? extraFields, out WinZipAesExtraField aesExtraField) 886public List<ZipGenericExtraField>? ExtraFields;
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\System\IO\FileSystem.DirectoryCreation.Windows.cs (1)
29List<string> stackDir = new List<string>();
System.IO.FileSystem.DriveInfo (2)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (2)
21internal List<string> _results; 46List<string> mountPoints = new();
System.IO.FileSystem.Watcher (7)
System\IO\FileSystemWatcher.Linux.cs (7)
131private readonly List<Watcher> _watchers = new(); 1312private List<WatchedDirectory>? _children; 1328public List<WatchedDirectory>? Children 1341public List<WatchedDirectory> InitializedChildren => Children ??= new List<WatchedDirectory>(); 1346var children = Children; 1402private List<WatchedDirectory> _watchers = new(); 1405public List<WatchedDirectory> Watchers
System.IO.Packaging (29)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (1)
61internal InterleavedZipPackagePartStream(ZipStreamManager zipStreamManager, List<ZipPackagePartPiece> sortedPieceInfoList, FileAccess access)
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (3)
39private readonly List<PieceStreamInfo> _pieceStreamInfoList; 48private readonly List<ZipPackagePartPiece> _sortedPieceInfoList; 111internal PieceDirectory(List<ZipPackagePartPiece> sortedPieceInfoList, ZipStreamManager zipStreamManager, FileAccess access)
System\IO\Packaging\Package.cs (2)
418List<string> partIndex = new(parts.Length); 1203private void CopyPartDictionaryToPartList(Dictionary<string, KeyValuePair<PackUriHelper.ValidatedPartUri, PackagePart>> partDictionary, List<string> partIndex)
System\IO\Packaging\PackagePart.cs (1)
796private List<Stream>? _requestedStreams;
System\IO\Packaging\PackageRelationshipSelector.cs (2)
109public List<PackageRelationship> Select(Package package) 113List<PackageRelationship> relationships = new List<PackageRelationship>(0);
System\IO\Packaging\XmlCompatibilityReader.cs (1)
113List<string> keysToUpdate = new List<string>();
System\IO\Packaging\ZipPackage.cs (16)
176List<PackagePart> parts = new List<PackagePart>(InitialPartListSize); 538private static void DeleteInterleavedPartOrStream(List<ZipPackagePartPiece> sortedPieceInfoList) 564private void ProcessPieces(SortedSet<ZipPackagePartPiece> pieceSet, List<PackagePart> parts) 580List<ZipPackagePartPiece> pieces = new List<ZipPackagePartPiece>(pieceSet); 679List<ZipPackagePartPiece> pieces, 682List<PackagePart> parts) 1073List<ZipPackagePartPiece>? partPieces = null; 1303private List<ZipPackagePartPiece>? _contentTypeStreamPieces; 1355private readonly Dictionary<string, List<string>> _ignoredItemDictionary; 1360private readonly Dictionary<string, List<string>> _extensionDictionary; 1372_extensionDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, s_extensionEqualityComparer); 1373_ignoredItemDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, StringComparer.Ordinal); 1408internal void AddItemsForInvalidSequence(string normalizedPrefixNameForThisSequence, List<ZipPackagePartPiece> pieces, int startIndex, int count) 1410if (!_ignoredItemDictionary.TryGetValue(normalizedPrefixNameForThisSequence, out List<string>? zipFileInfoNameList)) 1441if (_ignoredItemDictionary.TryGetValue(normalizedPartName, out List<string>? zipFileInfoNames)) 1461if (_extensionDictionary.TryGetValue(extension, out List<string>? normalizedPartNames))
System\IO\Packaging\ZipPackagePart.cs (3)
87List<ZipPackagePartPiece> pieces, 106internal List<ZipPackagePartPiece> PieceDescriptors => _pieces; 121private readonly List<ZipPackagePartPiece> _pieces;
System.IO.Pipelines (6)
System\IO\Pipelines\PipeCompletion.cs (2)
17private List<PipeCompletionCallback>? _callbacks; 73var callbacks = _callbacks;
System\IO\Pipelines\PipeCompletionCallbacks.cs (4)
11private readonly List<PipeCompletionCallback> _callbacks; 14public PipeCompletionCallbacks(List<PipeCompletionCallback> callbacks, ExceptionDispatchInfo? edi) 28List<Exception>? exceptions = null; 42private void Execute(PipeCompletionCallback callback, ref List<Exception>? exceptions)
System.IO.Ports (4)
System\IO\Ports\SerialPort.Unix.cs (4)
41List<string> ports = new List<string>(); 76var ports = new List<string>(); 95List<string> ports = new List<string>(); 120List<string> ports = new List<string>();
System.Linq (108)
System\Linq\AppendPrepend.SpeedOpt.cs (4)
97public override List<TSource> ToList() 107List<TSource> list = count == -1 ? [] : new List<TSource>(count); 261public override List<TSource> ToList() 264List<TSource> list = count == -1 ? [] : new List<TSource>(count);
System\Linq\Cast.SpeedOpt.cs (2)
28public override List<TResult> ToList() 30List<TResult> list = new(_source.Count);
System\Linq\Concat.SpeedOpt.cs (2)
370public override List<TSource> ToList() 373var list = count != -1 ? new List<TSource>(count) : new List<TSource>();
System\Linq\DebugView.cs (1)
79List<object?> tempList = [.. _enumerable];
System\Linq\DefaultIfEmpty.SpeedOpt.cs (2)
20public override List<TSource> ToList() 22List<TSource> list = _source.ToList();
System\Linq\Distinct.SpeedOpt.cs (1)
14public override List<TSource> ToList() => new List<TSource>(new HashSet<TSource>(_source, _comparer));
System\Linq\Enumerable.cs (4)
32/// Sets the <paramref name="list"/>'s <see cref="List{T}.Count"/> to be <paramref name="count"/> 36internal static Span<T> SetCountAndGetSpan<T>(List<T> list, int count) 58else if (source.GetType() == typeof(List<TSource>)) 60span = CollectionsMarshal.AsSpan(Unsafe.As<List<TSource>>(source));
System\Linq\Grouping.SpeedOpt.cs (4)
15public override List<TResult> ToList() => 27public override List<TResult> ToList() => 39public override List<IGrouping<TKey, TElement>> ToList() => 51public override List<IGrouping<TKey, TSource>> ToList() =>
System\Linq\Iterator.SpeedOpt.cs (3)
19/// Produce a <see cref="List{TSource}"/> of the sequence through an optimized path. 21/// <returns>The <see cref="List{TSource}"/>.</returns> 22public abstract List<TSource> ToList();
System\Linq\Lookup.cs (2)
160internal List<TResult> ToList<TResult>(Func<TKey, IEnumerable<TElement>, TResult> resultSelector) 162List<TResult> list = new List<TResult>(_count);
System\Linq\OfType.SpeedOpt.cs (2)
53public override List<TResult> ToList() 66List<TResult> result = builder.ToList();
System\Linq\OrderedEnumerable.SpeedOpt.cs (7)
28public override List<TElement> ToList() 32List<TElement> list = new(buffer.Length); 89internal List<TElement> ToList(int minIdx, int maxIdx) 107List<TElement> list = []; 373public override List<TElement> ToList() 375List<TElement> list = _source.ToList(); 544public override List<TElement> ToList() => _source.ToList(_minIndexInclusive, _maxIndexInclusive);
System\Linq\Range.SpeedOpt.cs (2)
26public override List<T> ToList() 30List<T> list = new List<T>(count);
System\Linq\Repeat.SpeedOpt.cs (2)
24public override List<TResult> ToList() 26List<TResult> list = new List<TResult>(_count);
System\Linq\Reverse.SpeedOpt.cs (2)
19public override List<TSource> ToList() 21List<TSource> list = _source.ToList();
System\Linq\SegmentedArrayBuilder.cs (2)
256public readonly List<T> ToList() 258List<T> result;
System\Linq\Select.cs (5)
62if (source is List<TSource> list) 211/// An iterator that maps each item of a <see cref="List{TSource}"/>. 218private readonly List<TSource> _source; 220private List<TSource>.Enumerator _enumerator; 222public ListSelectIterator(List<TSource> source, Func<TSource, TResult> selector)
System\Linq\Select.SizeOpt.cs (2)
97public override List<TResult> ToList() 99List<TResult> list = new List<TResult>(_source.Count);
System\Linq\Select.SpeedOpt.cs (16)
34public override List<TResult> ToList() 45List<TResult> result = builder.ToList(); 153public override List<TResult> ToList() 158var results = new List<TResult>(source.Length); 298public override List<TResult> ToList() 301var results = new List<TResult>(count); 410public override List<TResult> ToList() 414var results = new List<TResult>(source.Length); 527public override List<TResult> ToList() 532var results = new List<TResult>(count); 766private List<TResult> ToListNoPresizing() 779List<TResult> result = builder.ToList(); 785public override List<TResult> ToList() 788List<TResult> list; 967public override List<TResult> ToList() 975List<TResult> list = new List<TResult>(count);
System\Linq\SelectMany.SpeedOpt.cs (2)
49public override List<TResult> ToList() 60List<TResult> result = builder.ToList();
System\Linq\Shuffle.SpeedOpt.cs (10)
21public override List<TSource> ToList() 23List<TSource> list = _source.ToList(); 61List<TSource>? sample = ShuffleTakeIterator<TSource>.SampleToList(_source, 1, out long totalElementCount); 97private List<TSource>? _buffer; 117List<TSource>? buffer = _buffer; 130List<TSource>? buffer = SampleToList(_source, _takeCount, out _); 151public override List<TSource> ToList() => SampleToList(_source, _takeCount, out _) ?? []; 186List<TSource>? sample = SampleToList(_source, 1, out long totalElementCount); 202internal static List<TSource>? SampleToList(IEnumerable<TSource> source, int takeCount, out long totalElementCount) 204List<TSource>? reservoir = null;
System\Linq\SkipTake.SpeedOpt.cs (4)
131public override List<TSource> ToList() 135List<TSource> list = []; 516public override List<TSource> ToList() 534List<TSource> result = builder.ToList();
System\Linq\ToCollection.cs (3)
58public static List<TSource> ToList<TSource>(this IEnumerable<TSource> source) 163if (source is List<TSource> list) 221if (source is List<TSource> list)
System\Linq\Union.SpeedOpt.cs (1)
29public override List<TSource> ToList() => new List<TSource>(FillSet());
System\Linq\Where.cs (9)
45if (source is List<TSource> list) 203/// An iterator that filters each item of a <see cref="List{TSource}"/>. 208private readonly List<TSource> _source; 210private List<TSource>.Enumerator _enumerator; 212public ListWhereIterator(List<TSource> source, Func<TSource, bool> predicate) 305/// An iterator that filters, then maps, each item of a <see cref="List{TSource}"/>. 311private readonly List<TSource> _source; 314private List<TSource>.Enumerator _enumerator; 316public ListWhereSelectIterator(List<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector)
System\Linq\Where.SizeOpt.cs (2)
87public override List<TSource> ToList() 100List<TSource> result = builder.ToList();
System\Linq\Where.SpeedOpt.cs (12)
56public override List<TSource> ToList() 70List<TSource> result = builder.ToList(); 217public override List<TSource> ToList() => ToList(_source, _predicate); 219public static List<TSource> ToList(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate) 232List<TSource> result = builder.ToList(); 320public override List<TSource> ToList() => ArrayWhereIterator<TSource>.ToList(CollectionsMarshal.AsSpan(_source), _predicate); 450public override List<TResult> ToList() => ToList(_source, _predicate, _selector); 452public static List<TResult> ToList(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector) 465List<TResult> result = builder.ToList(); 552public override List<TResult> ToList() => ArrayWhereSelectIterator<TSource, TResult>.ToList(CollectionsMarshal.AsSpan(_source), _predicate, _selector); 613public override List<TResult> ToList() 628List<TResult> result = builder.ToList();
System.Linq.AsyncEnumerable (6)
System\Linq\ToArrayAsync.cs (1)
34List<TSource> list = [];
System\Linq\ToAsyncEnumerable.cs (2)
28List<TSource> list => FromList(list), 48static async IAsyncEnumerable<TSource> FromList(List<TSource> source)
System\Linq\ToListAsync.cs (3)
19public static ValueTask<List<TSource>> ToListAsync<TSource>( 27static async ValueTask<List<TSource>> Impl( 30List<TSource> list = [];
System.Linq.Expressions (56)
System\Dynamic\BindingRestrictions.cs (1)
359var restrictions = new List<BindingRestrictions>();
System\Dynamic\ExpandoClass.cs (5)
17private Dictionary<int, List<WeakReference>>? _transitions; // cached transitions 56List<WeakReference> infos = GetTransitionList(hashCode); 90private List<WeakReference> GetTransitionList(int hashCode) 92_transitions ??= new Dictionary<int, List<WeakReference>>(); 94if (!_transitions.TryGetValue(hashCode, out List<WeakReference>? infos))
System\Linq\Expressions\Compiler\BoundConstants.cs (1)
55private readonly List<object> _values = new List<object>();
System\Linq\Expressions\Compiler\LabelInfo.cs (1)
41private readonly List<LabelScopeInfo> _references = new List<LabelScopeInfo>();
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (8)
204List<WriteBack>? wb = EmitArguments(lambda.Type.GetInvokeMethod(), invoke); 401List<WriteBack>? wb = EmitArguments(mi, args); 503private List<WriteBack>? EmitArguments(MethodBase method, IArgumentProvider args) 513private List<WriteBack>? EmitArguments(MethodBase method, IArgumentProvider args, int skipParameters) 518List<WriteBack>? writeBacks = null; 545private void EmitWriteBack(List<WriteBack>? writeBacks) 609List<WriteBack>? wb = EmitArguments(invoke, node, 1); 629List<WriteBack>? wb = EmitArguments(node.Constructor, node);
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (15)
293private static bool FitsInBucket(List<SwitchLabel> buckets, decimal key, int count) 305private static void MergeBuckets(List<List<SwitchLabel>> buckets) 309List<SwitchLabel> first = buckets[buckets.Count - 2]; 310List<SwitchLabel> second = buckets[buckets.Count - 1]; 324private static void AddToBuckets(List<List<SwitchLabel>> buckets, SwitchLabel key) 328List<SwitchLabel> last = buckets[buckets.Count - 1]; 396var keys = new List<SwitchLabel>(); 420var buckets = new List<List<SwitchLabel>>(); 529private void EmitSwitchBuckets(SwitchInfo info, List<List<SwitchLabel>> buckets, int first, int last) 564private void EmitSwitchBucket(SwitchInfo info, List<SwitchLabel> bucket) 666var initializers = new List<ElementInit>(tests);
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (2)
68private List<Expression>? _comma; 205List<Expression> comma = new List<Expression>(count + 1);
System\Linq\Expressions\Compiler\StackSpiller.Temps.cs (2)
88private List<ParameterExpression>? _freeTemps; 98internal List<ParameterExpression> Temps { get; } = new List<ParameterExpression>();
System\Linq\Expressions\Interpreter\BranchLabel.cs (1)
38private List<int>? _forwardBranchFixups;
System\Linq\Expressions\Interpreter\CallInstruction.cs (1)
212List<Type> types = new List<Type>();
System\Linq\Expressions\Interpreter\InstructionList.cs (7)
26internal readonly List<KeyValuePair<int, object?>>? DebugCookies; 29object[]? objects, RuntimeLabel[] labels, List<KeyValuePair<int, object?>>? debugCookies) 69private readonly List<Instruction> _instructions = new List<Instruction>(); 70private List<object>? _objects; 77private List<BranchLabel>? _labels; 81private List<KeyValuePair<int, object?>>? _debugCookies; 114var result = new List<InstructionView>();
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (1)
158var trace = new List<string>();
System\Linq\Expressions\Interpreter\LabelInfo.cs (1)
29private readonly List<LabelScopeInfo> _references = new List<LabelScopeInfo>();
System\Linq\Expressions\Interpreter\LightCompiler.cs (5)
284private readonly List<DebugInfo> _debugInfos = new List<DebugInfo>(); 2007List<ExceptionHandler>? exHandlers = null; 2163List<ByRefUpdater>? updaters = null; 2412List<ByRefUpdater>? updaters = null; 2853var parameterList = new List<ParameterExpression>(count);
System\Linq\Expressions\Interpreter\LocalVariables.cs (1)
175public List<VariableScope>? ChildScopes;
System\Linq\Expressions\Interpreter\TypeOperations.cs (2)
578var boxes = new List<IStrongBox>(); 579var vars = new List<ParameterExpression>();
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (2)
133var boxes = new List<IStrongBox>(); 134var vars = new List<ParameterExpression>();
System.Linq.Parallel (11)
System\Linq\Parallel\Merging\DefaultMergeHelper.cs (1)
163List<TInputOutput> output = new List<TInputOutput>();
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (1)
108private List<Pair<TSource, TKey>>? _buffer; // Our buffer. [allocate in moveNext to avoid false-sharing]
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (2)
163private List<Pair<TResult, TKey>>? _buffer; // Our buffer. 201List<Pair<TResult, TKey>> buffer = new List<Pair<TResult, TKey>>();
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (2)
218private List<Pair<TResult, TKey>>? _buffer; // Our buffer. 258List<Pair<TResult, TKey>> buffer = new List<Pair<TResult, TKey>>();
System\Linq\Parallel\Utils\Sorting.cs (3)
190List<TInputOutput>? sourceValues = null; 220private void BuildKeysFromSource(ref GrowingArray<TKey>? keys, ref List<TInputOutput>? values) 265private void QuickSortIndicesInPlace(GrowingArray<TKey> keys, List<TInputOutput> values, OrdinalIndexState ordinalIndexState)
System\Linq\ParallelEnumerable.cs (2)
4848public static List<TSource> ToList<TSource>(this ParallelQuery<TSource> source) 4853List<TSource> list = new List<TSource>();
System.Linq.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
68List<Expression>? newArgs = null; 109List<Expression> exprs = new List<Expression>(na.Expressions.Count);
System.Memory (2)
System\Text\EncodingExtensions.cs (2)
166List<(byte[], int)> listOfSegments = new List<(byte[], int)>(); 353List<(char[], int)> listOfSegments = new List<(char[], int)>();
System.Net.Http (56)
System\Net\Http\DiagnosticsHandler.cs (1)
38var fieldDescriptors = new List<HeaderDescriptor>(fields.Count);
System\Net\Http\Headers\CacheControlHeaderParser.cs (1)
28if (storeValue is List<object> list)
System\Net\Http\Headers\CacheControlHeaderValue.cs (2)
363List<NameValueHeaderValue> nameValueList = new List<NameValueHeaderValue>(); 400private static bool TrySetCacheControlValues(CacheControlHeaderValue cc, List<NameValueHeaderValue> nameValueList)
System\Net\Http\Headers\HttpHeaders.cs (21)
224if (rawValue is not List<string> rawValues) 509List<object>? parsedValues = parsedValue as List<object>; 601List<object>? parsedValues = parsedValue as List<object>; 708List<object>? sourceValues = sourceInfo.ParsedAndInvalidValues as List<object>; 750List<object>? sourceValues = source as List<object>; 859if (info.RawValue is List<string> rawValues) 968List<object> parsedValues = new List<object>(); 1017Debug.Assert(!(value is List<object>), 1045List<T>? storeValues = currentStoreValue as List<T>; 1133List<object> parsedValues = new List<object>(); 1305valueStore is List<T> list ? list.Count : 1313List<T>? storeValues = storeValue as List<T>; 1386if (ParsedAndInvalidValues is List<object> list) 1404if (ParsedAndInvalidValues is List<object> list) 1428private static void AssertContainsSingleParsedValue(List<object> list)
System\Net\Http\Headers\HttpHeaderValueCollection.cs (5)
96List<object>? storeValues = storeValue as List<object>; 144if (storeValue is List<object> storeValues) 206List<object>? storeValues = storeValue as List<object>;
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (5)
23private static readonly HttpRequestOptionsKey<List<Action<HttpMetricsEnrichmentContext>>> s_optionsKeyForCallbacks = new(nameof(HttpMetricsEnrichmentContext)); 78if (options.TryGetValue(s_optionsKeyForCallbacks, out List<Action<HttpMetricsEnrichmentContext>>? callbacks)) 88internal static List<Action<HttpMetricsEnrichmentContext>>? GetEnrichmentCallbacksForRequest(HttpRequestMessage request) 93return (List<Action<HttpMetricsEnrichmentContext>>)callbacks!; 100List<Action<HttpMetricsEnrichmentContext>> callbacks,
System\Net\Http\Metrics\MetricsHandler.cs (1)
247List<Action<HttpMetricsEnrichmentContext>>? callbacks = HttpMetricsEnrichmentContext.GetEnrichmentCallbacksForRequest(request);
System\Net\Http\MultipartContent.cs (1)
28private readonly List<HttpContent> _nestedContent;
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
32private static readonly List<SslApplicationProtocol> s_http3ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http3 }; 33private static readonly List<SslApplicationProtocol> s_http2ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http2, SslApplicationProtocol.Http11 }; 34private static readonly List<SslApplicationProtocol> s_http2OnlyApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http2 }; 1023List<HttpConnectionBase>? toDispose = null; 1100List<HttpConnectionBase>? toDispose = null; 1145Task.Factory.StartNew(static s => ((List<HttpConnectionBase>)s!).ForEach(c => c.Dispose()), toDispose,
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (1)
430private static void ScavengeHttp11ConnectionStack(HttpConnectionPool pool, ConcurrentStack<HttpConnection> connections, ref List<HttpConnectionBase>? toDispose, long nowTicks, TimeSpan pooledConnectionLifetime, TimeSpan pooledConnectionIdleTimeout)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (4)
21private List<Http2Connection>? _availableHttp2Connections; 29private List<Http2Connection>? _http2ConnectionsForHeartBeat; 656private static int ScavengeHttp2ConnectionList(List<Http2Connection> list, ref List<HttpConnectionBase>? toDispose, long nowTicks, TimeSpan pooledConnectionLifetime, TimeSpan pooledConnectionIdleTimeout)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (3)
30private List<Http3Connection>? _availableHttp3Connections; 562private static int ScavengeHttp3ConnectionList(List<Http3Connection> list, ref List<HttpConnectionBase>? toDispose, long nowTicks, TimeSpan pooledConnectionLifetime, TimeSpan pooledConnectionIdleTimeout)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
1111List<Http2Stream> streamsToAbort = new List<Http2Stream>(); 1901List<Http2Stream> streamsToAbort = new List<Http2Stream>();
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
422var streamsToGoAway = new List<Http3RequestStream>();
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (2)
102private readonly List<string>? _bypass; // list of domains or IP addresses not to proxy 103private readonly List<IPNetwork>? _bypassNetworks; // list of subnet ranges not to proxy
System.Net.HttpListener (21)
System\Net\HttpListenerRequest.cs (1)
368List<string> values = new List<string>();
System\Net\HttpListenerRequestUriBuilder.cs (2)
40private List<byte>? _rawOctets; 342private static string GetOctetsAsString(List<byte> octets)
System\Net\Managed\ChunkStream.cs (2)
82private readonly List<Chunk> _chunks; 111var chunksForRemoving = new List<Chunk>(count);
System\Net\Managed\HttpEndPointListener.cs (12)
47private List<ListenerPrefix>? _unhandledPrefixes; // host = '*' 48private List<ListenerPrefix>? _allPrefixes; // host = '+' 212List<ListenerPrefix>? list = _unhandledPrefixes; 233private static HttpListener? MatchFromList(string path, List<ListenerPrefix>? list, out ListenerPrefix? prefix) 259private static void AddSpecial(List<ListenerPrefix> list, ListenerPrefix prefix) 272private static bool RemoveSpecial(List<ListenerPrefix> list, ListenerPrefix prefix) 295List<ListenerPrefix>? list = _unhandledPrefixes; 312var connections = new List<HttpConnection>(_unregisteredConnections); 322List<ListenerPrefix>? current; 323List<ListenerPrefix> future; 363List<ListenerPrefix>? current; 364List<ListenerPrefix> future;
System\Net\Managed\HttpEndPointManager.cs (1)
48List<string> added = new List<string>();
System\Net\Managed\HttpListener.Managed.cs (2)
16private readonly List<HttpListenerContext> _contextQueue = new List<HttpListenerContext>(); 17private readonly List<ListenerAsyncResult> _asyncWaitQueue = new List<ListenerAsyncResult>();
System\Net\ServiceNameStore.cs (1)
14private readonly List<string> _serviceNames;
System.Net.Mail (9)
System\Net\Mail\MailAddressCollection.cs (1)
42List<MailAddress> result = MailAddressParser.ParseMultipleAddresses(addresses);
System\Net\Mail\MailAddressParser.cs (2)
37internal static List<MailAddress> ParseMultipleAddresses(string data) 39List<MailAddress> results = new List<MailAddress>();
System\Net\Mail\SmtpAuthenticationManager.cs (1)
10private static readonly List<ISmtpAuthenticationModule> s_modules = new List<ISmtpAuthenticationModule>();
System\Net\Mail\SmtpClient.cs (1)
496List<SmtpFailedRecipientException>? failedRecipientExceptions = null;
System\Net\Mail\SmtpFailedRecipientsException.cs (1)
48internal SmtpFailedRecipientsException(List<SmtpFailedRecipientException> innerExceptions, bool allFailed) :
System\Net\Mail\SmtpReplyReaderFactory.cs (1)
266var lines = new List<LineInfo>();
System\Net\Mail\SmtpTransport.cs (2)
111internal async Task<(MailWriter, List<SmtpFailedRecipientException>?)> SendMailAsync<TIOAdapter>(MailAddress sender, MailAddressCollection recipients, string deliveryNotify, bool allowUnicode, CancellationToken cancellationToken = default) 118List<SmtpFailedRecipientException>? failedRecipientExceptions = null;
System.Net.NameResolution (21)
System\Net\DnsResolver.cs (1)
427List<string> values = new();
System\Net\DnsResolverPal.Managed.cs (14)
135List<AddressRecord> records = new List<AddressRecord>(); 184List<(string Target, ushort Port, ushort Priority, ushort Weight, uint Ttl)> srvs = new(); 198Dictionary<string, List<AddressRecord>>? glue = null; 215glue ??= new Dictionary<string, List<AddressRecord>>(StringComparer.OrdinalIgnoreCase); 216ref List<AddressRecord>? list = ref CollectionsMarshal.GetValueRefOrAddDefault(glue, owner, out _); 222List<SrvRecord> records = new List<SrvRecord>(srvs.Count); 226if (glue is not null && glue.TryGetValue(target, out List<AddressRecord>? list)) 248List<TxtRecord> records = new List<TxtRecord>(); 254List<string> values = new List<string>(); 278List<MxRecord> records = new List<MxRecord>(); 303List<CNameRecord> records = new List<CNameRecord>(); 328List<PtrRecord> records = new List<PtrRecord>(); 353List<NsRecord> records = new List<NsRecord>(); 861List<IPEndPoint> systemServers = ResolvConf.GetNameServers();
System\Net\ResolvConf.cs (6)
17private static List<IPEndPoint>? s_cachedServers; 20public static List<IPEndPoint> GetNameServers() 34List<IPEndPoint> servers = ReadNameServers(); 62private static List<IPEndPoint> ReadNameServers() 82internal static List<IPEndPoint> Parse(TextReader reader) 84List<IPEndPoint> servers = new List<IPEndPoint>();
System.Net.NetworkInformation (24)
System\Net\NetworkInformation\GatewayIPAddressInformationCollection.cs (2)
10private readonly List<GatewayIPAddressInformation> _addresses; 17internal GatewayIPAddressInformationCollection(List<GatewayIPAddressInformation> addresses)
System\Net\NetworkInformation\InternalIPAddressCollection.cs (2)
10private readonly List<IPAddress> _addresses; 17internal InternalIPAddressCollection(List<IPAddress> addresses)
System\Net\NetworkInformation\IPAddressInformationCollection.cs (1)
10private readonly List<IPAddressInformation> _addresses = new List<IPAddressInformation>();
System\Net\NetworkInformation\LinuxIPInterfaceProperties.cs (3)
58List<GatewayIPAddressInformation> collection = new List<GatewayIPAddressInformation>(); 75List<IPAddress> internalCollection = new List<IPAddress>(); 86List<IPAddress> internalCollection
System\Net\NetworkInformation\MulticastIPAddressInformationCollection.cs (1)
10private readonly List<MulticastIPAddressInformation> _addresses = new List<MulticastIPAddressInformation>();
System\Net\NetworkInformation\StringParsingHelpers.Addresses.cs (6)
13internal static List<GatewayIPAddressInformation> ParseIPv4GatewayAddressesFromRouteFile(List<GatewayIPAddressInformation> collection, string[] fileLines, string interfaceName) 38internal static void ParseIPv6GatewayAddressesFromRouteFile(List<GatewayIPAddressInformation> collection, string[] fileLines, string interfaceName, long scopeId) 80internal static void ParseDhcpServerAddressesFromLeasesFile(List<IPAddress> collection, string filePath, string name) 124internal static List<IPAddress> ParseWinsServerAddressesFromSmbConfFile(string smbConfFilePath) 126List<IPAddress> collection = new List<IPAddress>();
System\Net\NetworkInformation\StringParsingHelpers.Dns.cs (2)
18internal static List<IPAddress> ParseDnsAddressesFromResolvConfFile(string data) 26List<IPAddress> addresses = new List<IPAddress>();
System\Net\NetworkInformation\UnicastIPAddressInformationCollection.cs (1)
10private readonly List<UnicastIPAddressInformation> _addresses =
System\Net\NetworkInformation\UnixIPGlobalProperties.cs (1)
63internal List<Exception>? _exceptions;
System\Net\NetworkInformation\UnixIPInterfaceProperties.cs (1)
103List<IPAddress> internalAddresses = StringParsingHelpers.ParseDnsAddressesFromResolvConfFile(File.ReadAllText(NetworkFiles.EtcResolvConfFile));
System\Net\NetworkInformation\UnixNetworkInterface.cs (4)
15internal List<UnixUnicastIPAddressInformation> _unicastAddresses = new List<UnixUnicastIPAddressInformation>(); 16internal List<IPAddress>? _multicastAddresses; 60public List<UnixUnicastIPAddressInformation> UnicastAddress { get { return _unicastAddresses; } } 65public List<IPAddress>? MulticastAddresess { get { return _multicastAddresses; } }
System.Net.Primitives (4)
System\Net\CookieContainer.cs (4)
469var removePathList = new List<object>(); 470var removeDomainList = new List<string>(); 683List<string> matchingDomainKeys = [uri.Host]; 702private void BuildCookieCollectionFromDomainMatches(Uri uri, bool isSecure, int port, ref CookieCollection? cookies, List<string> matchingDomainKeys)
System.Net.Quic (6)
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (3)
34public readonly List<SslApplicationProtocol> ApplicationProtocols; 37public CacheKey(QUIC_SETTINGS settings, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol> alpnProtocols, QUIC_ALLOWED_CIPHER_SUITE_FLAGS allowedCipherSuites) 117private static MsQuicConfigurationSafeHandle GetCachedCredentialOrCreate(QUIC_SETTINGS settings, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol> alpnProtocols, QUIC_ALLOWED_CIPHER_SUITE_FLAGS allowedCipherSuites)
System\Net\Quic\Internal\MsQuicConfiguration.cs (2)
124private static MsQuicConfigurationSafeHandle Create(QuicConnectionOptions options, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol>? alpnProtocols, CipherSuitesPolicy? cipherSuitesPolicy, EncryptionPolicy encryptionPolicy) 204private static unsafe MsQuicConfigurationSafeHandle CreateInternal(QUIC_SETTINGS settings, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol> alpnProtocols, QUIC_ALLOWED_CIPHER_SUITE_FLAGS allowedCipherSuites)
System\Net\Quic\QuicListenerOptions.cs (1)
27public List<SslApplicationProtocol> ApplicationProtocols { get; set; } = null!;
System.Net.Requests (7)
System\Net\FtpControlStream.cs (1)
489var commandList = new List<PipelineEntry>();
System\Net\TimerThread.cs (1)
135var garbage = new List<object>();
System\Net\WebRequest.cs (5)
34private static List<WebRequestPrefixElement>? s_prefixList; 97List<WebRequestPrefixElement> prefixList = PrefixList; 248List<WebRequestPrefixElement> prefixList = new List<WebRequestPrefixElement>(PrefixList); 343internal static List<WebRequestPrefixElement> PrefixList 357var prefixList = new List<WebRequestPrefixElement>(Count)
System.Net.Security (15)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
1222if (!(options?.ApplicationProtocols is List<SslApplicationProtocol> protocolList))
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (3)
325internal static int GetAlpnProtocolListSerializedLength(List<SslApplicationProtocol> applicationProtocols) 346internal static void SerializeAlpnProtocolList(List<SslApplicationProtocol> applicationProtocols, Span<byte> buffer) 360internal static unsafe int SslSetAlpnProtos(SafeSslHandle ssl, List<SslApplicationProtocol> applicationProtocols)
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (1)
19private readonly List<TlsCipherSuite> _tlsCipherSuites = new List<TlsCipherSuite>();
System\Net\Security\SslAuthenticationOptions.cs (1)
290internal List<SslApplicationProtocol>? ApplicationProtocols { get; set; }
System\Net\Security\SslClientAuthenticationOptions.cs (1)
39public List<SslApplicationProtocol>? ApplicationProtocols { get; set; }
System\Net\Security\SslServerAuthenticationOptions.cs (1)
36public List<SslApplicationProtocol>? ApplicationProtocols { get; set; }
System\Net\Security\SslStream.Protocol.cs (3)
293List<X509Certificate>? filteredCerts = null; // This is an intermediate client certs collection that try to use if no selectedCert is available yet. 646private static List<T> EnsureInitialized<T>(ref List<T>? list) => list ??= new List<T>();
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
42private List<string>? _ocspUrls;
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (3)
78List<string>? list = serviceNames as List<string>; 107private void AddIfNew(List<string> serviceNames)
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
28private List<ArraySegment<byte>>? _bufferListInternal;
System.Net.WebHeaderCollection (2)
System\Net\HeaderInfoTable.cs (1)
24var tempStringCollection = new List<string>();
System\Net\WebHeaderCollection.cs (1)
221List<string>? valueList = null;
System.Net.WebSockets.Client (4)
System\Net\WebSockets\BrowserWebSockets\BrowserWebSocket.cs (2)
136internal Task ConnectAsync(Uri uri, List<string>? requestedSubProtocols, CancellationToken cancellationToken) 298private void CreateCore(Uri uri, List<string>? requestedSubProtocols)
System\Net\WebSockets\BrowserWebSockets\ClientWebSocketOptions.cs (2)
104List<string> subprotocols = RequestedSubProtocols; // force initialization of the list 115internal List<string> RequestedSubProtocols => field ??= new List<string>();
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\Tensor.cs (3)
1419List<nint> origStrides = [.. tensor.Strides]; 1492List<nint> origStrides = [.. tensor.Strides]; 1569List<nint> origStrides = [.. tensor.Strides];
System.ObjectModel (5)
System\Collections\ObjectModel\KeyedCollection.cs (4)
45/// Enables the use of foreach internally without allocations using <see cref="List{T}"/>'s struct enumerator. 47private new List<TItem> Items 51Debug.Assert(base.Items is List<TItem>); 52return (List<TItem>)base.Items;
System\Collections\ObjectModel\ObservableCollection.cs (1)
61public ObservableCollection(List<T> list) : base(new List<T>(list ?? throw new ArgumentNullException(nameof(list))))
System.Private.CoreLib (187)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (2)
21internal List<string> _results; 46List<string> mountPoints = new();
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (5)
149internal AggregateException(List<ExceptionDispatchInfo> innerExceptionInfos) : 167internal AggregateException(string message, List<ExceptionDispatchInfo> innerExceptionInfos) 266List<Exception>? unhandledExceptions = null; 301List<Exception> flattenedExceptions = new List<Exception>(); 304var exceptionsToFlatten = new List<AggregateException> { this };
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (10)
91/// <summary>Adds the elements of the specified span to the end of the <see cref="List{T}"/>.</summary> 94/// <param name="source">The span whose elements should be added to the end of the <see cref="List{T}"/>.</param> 96public static void AddRange<T>(this List<T> list, params ReadOnlySpan<T> source) 116/// <summary>Inserts the elements of a span into the <see cref="List{T}"/> at the specified index.</summary> 120/// <param name="source">The span whose elements should be added to the <see cref="List{T}"/>.</param> 122/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than <paramref name="list"/>'s <see cref="List{T}.Count"/>.</exception> 123public static void InsertRange<T>(this List<T> list, int index, params ReadOnlySpan<T> source) 158/// <summary>Copies the entire <see cref="List{T}"/> to a span.</summary> 163/// <exception cref="ArgumentException">The number of elements in the source <see cref="List{T}"/> is greater than the number of elements that the destination span can contain.</exception> 164public static void CopyTo<T>(this List<T> list, Span<T> destination)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
162else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 164span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (14)
364public List<TOutput> ConvertAll<TOutput>(Converter<T, TOutput> converter) 371List<TOutput> list = new List<TOutput>(_size); 525public List<T> FindAll(Predicate<T> match) 532List<T> list = new List<T>(); 673public List<T> GetRange(int index, int count) 690List<T> list = new List<T>(count); 697/// Creates a shallow copy of a range of elements in the source <see cref="List{T}" />. 699/// <param name="start">The zero-based <see cref="List{T}" /> index at which the range starts.</param> 701/// <returns>A shallow copy of a range of elements in the source <see cref="List{T}" />.</returns> 707/// <exception cref="ArgumentException"><paramref name="start" /> and <paramref name="length" /> do not denote a valid range of elements in the <see cref="List{T}" />.</exception> 708public List<T> Slice(int start, int length) => GetRange(start, length); 1187private readonly List<T> _list; 1193internal Enumerator(List<T> list) 1205List<T> localList = _list;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (4)
514/// <seealso cref="List&lt;T&gt;.TrueForAll"/> 536/// <seealso cref="List&lt;T&gt;.TrueForAll"/> 561/// <seealso cref="List&lt;T&gt;.Exists"/> 582/// <seealso cref="List&lt;T&gt;.Exists"/>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
142List<StackFrame> frameList = new List<StackFrame>(frames);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (5)
17private readonly List<DiagnosticCounter> _counters; 298private static List<CounterGroup>? s_counterGroupEnabledList; 299private static List<IncrementingPollingCounter> s_needsResetIncrementingPollingCounters = []; 309var onTimers = new List<CounterGroup>(); 310List<IncrementingPollingCounter>? countersToReset = null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventListener.cs (2)
336List<EventSource> sourcesToDispose = new List<EventSource>(); 620internal static List<WeakReference<EventSource>>? s_EventSources;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
461var ret = new List<EventSource>(); 3944private static List<Func<EventSource?>> s_preregisteredEventSourceFactories = new List<Func<EventSource?>>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (9)
63perEventByteArrayArgIndices = new Dictionary<string, List<int>>(); 369var sortedChannels = new List<KeyValuePair<int, ChannelInfo>>(); 407var sortedTasks = new List<int>(taskTab.Keys); 484var sortedOpcodes = new List<int>(opcodeTab.Keys); 499var sortedKeywords = new List<ulong>(keywordTab.Keys); 889if (perEventByteArrayArgIndices.TryGetValue(evtName, out List<int>? byteArrArgIndices)) 931private readonly List<string> errors; // list of currently encountered errors 932private readonly Dictionary<string, List<int>> perEventByteArrayArgIndices; // "event_name" -> List_of_Indices_of_Byte[]_Arg 937private List<int>? byteArrArgIndices; // keeps track of the index of each byte[] argument
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EnumerableTypeInfo.cs (1)
53List<object?> serializedEnumerable = new List<object?>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\SimpleTypeInfos.cs (1)
315public NullableTypeInfo(Type type, List<Type> recursionCheck)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (1)
393List<Type> recursionCheck)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (2)
745List<byte> traitMetaData = new List<byte>(100); 795private static int AddValueToMetaData(List<byte> metaData, string value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTypes.cs (2)
178var recursionCheck = new List<Type>(paramInfos.Length); 193var recursionCheck = new List<Type>(types.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingMetadataCollector.cs (1)
285internal readonly List<FieldMetadata> fields = new List<FieldMetadata>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
141public static TraceLoggingTypeInfo GetInstance(Type type, List<Type>? recursionCheck)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs (2)
26List<Type> recursionCheck) 28var propertyList = new List<PropertyAnalysis>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (3)
151List<string> datePatternsList = callbackContext.Results; 171private static unsafe void FixDefaultShortDatePattern(List<string> shortDatePatterns) 472public List<string> Results;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Nls.cs (2)
58public List<string>? strings; 91public List<int> calendars; // list of calendars found so far
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
566List<CultureInfo> list = new List<CultureInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (1)
387public List<string> strings;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
1804List<string> results = new List<string>(DEFAULT_ALL_DATETIMES_SIZE);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
1291List<string> results = new List<string>(DEFAULT_ALL_DATETIMES_SIZE);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfoScanner.cs (1)
102internal List<string>? m_dateWords;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Icu.cs (1)
50List<EraInfo> eras = new List<EraInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
899List<string> lines = new List<string>(); 1342List<string> lines = new List<string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
20private static readonly List<string> s_loadFromAssemblyList = new List<string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
20private readonly List<int> _stack = new List<int>(); 274var nestings = new List<Type>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.cs (2)
1569private static List<AsyncThreadContextHolder> s_cache = new List<AsyncThreadContextHolder>(); 1751if (continuationObject is List<object?> list)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (1)
151List<ExceptionDispatchInfo> edis = task.GetExceptionDispatchInfos();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (5)
17/// Get a <see cref="Span{T}"/> view over a <see cref="List{T}"/>'s data. 18/// Items should not be added or removed from the <see cref="List{T}"/> while the <see cref="Span{T}"/> is in use. 23public static Span<T> AsSpan<T>(List<T>? list) 130/// Sets the count of the <see cref="List{T}"/> to the specified value. 144public static void SetCount<T>(List<T> list, int count)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (2)
67private static readonly ConditionalWeakTable<object, List<ManagedObjectWrapperHolder>> s_allManagedObjectWrapperTable = []; // [cDAC] [ComWrappers] : Contract depends on this exact name 835List<ManagedObjectWrapperHolder> allWrappersForThisInstance = s_allManagedObjectWrapperTable.GetOrCreateValue(instance);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (6)
12private static readonly Dictionary<int, List<Token>> s_registrations = Initialize(); 14private static unsafe Dictionary<int, List<Token>> Initialize() 23return new Dictionary<int, List<Token>>(); 39if (!s_registrations.TryGetValue(signo, out List<Token>? tokens)) 64if (s_registrations.TryGetValue(token.SigNo, out List<Token>? tokens)) 84if (s_registrations.TryGetValue(signo, out List<Token>? registrations))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TrackerObjectManager.cs (2)
64List<ReferenceTrackerNativeObjectWrapper> wrappersToRemove = []; 65List<object> objects = [];
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\BitmapCharSearchValues.cs (1)
29var chars = new List<char>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SR.cs (1)
16private static List<string>? _currentlyLoading;
src\runtime\src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
42List<string> startupHookParts = new();
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (5)
166if (values.GetType() == typeof(List<string?>)) // avoid accidentally bypassing a derived type's reimplementation of IEnumerable<T> 168return Concat(CollectionsMarshal.AsSpan((List<string?>)values)); 806if (values is List<string?> valuesList) 944if (values.GetType() == typeof(List<string?>)) // avoid accidentally bypassing a derived type's reimplementation of IEnumerable<T> 946return JoinCore(separator, CollectionsMarshal.AsSpan((List<string?>)values));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (2)
77var segments = new List<(string? Literal, int ArgIndex, int Alignment, string? Format)>(); 112private static unsafe bool TryParseLiterals(ReadOnlySpan<char> format, List<(string? Literal, int ArgIndex, int Alignment, string? Format)> segments, ref int failureOffset, ref ExceptionResource failureReason)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
745List<Exception>? exceptionList = null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (2)
215List<Exception>? exceptions = localThis.m_completionState.m_exceptions; 479internal List<Exception>? m_exceptions;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (33)
388internal volatile List<Task>? m_exceptionalChildren; 2014internal List<ExceptionDispatchInfo> GetExceptionDispatchInfos() 2180List<Task>? exceptionalChildren = props.m_exceptionalChildren; 2326List<Task>? tmp = props.m_exceptionalChildren; 2357List<Task>? exceptionalChildren = props.m_exceptionalChildren; 3670List<object?> list = (List<object?>)continuationObject; 4735List<object?>? list = oldValue as List<object?>; 4761list = oldValue as List<object?>; 4828List<object?>? continuationsLocalListRef = continuationsLocalRef as List<object?>; 4839continuationsLocalListRef = continuationsLocalRef as List<object?>; 5106tasks is List<Task> list ? CollectionsMarshal.AsSpan(list) : 5131List<Exception>? exceptions = null; 5132List<Task>? waitedOnTaskList = null; 5133List<Task>? notificationTasks = null; 5236private static void AddToList<T>(T item, ref List<T>? list, int initSize) 5248private static bool WaitAllBlockingCore(List<Task> tasks, int millisecondsTimeout, CancellationToken cancellationToken) 5317internal static void AddExceptionsForCompletedTask(ref List<Exception>? exceptions, Task t) 6111if (tasks is List<Task> taskList) 6288if (failedOrCanceled is List<Task> list) 6307Debug.Assert(failedOrCanceled is List<Task>); 6335List<ExceptionDispatchInfo>? observedExceptions = null; 6353if (failedOrCanceled is List<Task> list) 6455List<Task<TResult>> taskList = new List<Task<TResult>>(); 6605List<ExceptionDispatchInfo>? observedExceptions = null; 6907if (tasks.GetType() == typeof(List<TTask>)) 6909return WhenAnyCore((ReadOnlySpan<TTask>)CollectionsMarshal.AsSpan(Unsafe.As<List<TTask>>(tasks))); 6942var taskList = new List<TTask>(); 7275if (continuationObject is List<object?> continuationList) 7277List<Delegate> result = new List<Delegate>(); 7700List<ExceptionDispatchInfo> edis = task.GetExceptionDispatchInfos();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (1)
162var defensiveCopy = new List<Exception>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (1)
162var defensiveCopy = new List<Exception>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskExceptionHolder.cs (5)
35private volatile List<ExceptionDispatchInfo>? m_faultExceptions; 148List<ExceptionDispatchInfo>? exceptions = m_faultExceptions ??= new List<ExceptionDispatchInfo>(1); 254List<ExceptionDispatchInfo>? exceptions = m_faultExceptions; 281internal List<ExceptionDispatchInfo> GetExceptionDispatchInfos() 283List<ExceptionDispatchInfo>? exceptions = m_faultExceptions;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
490List<TaskScheduler> schedulers = new List<TaskScheduler>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadInt64PersistentCounter.cs (2)
15private static List<ThreadLocalNodeFinalizationHelper>? t_nodeFinalizationHelpers; 32List<ThreadLocalNodeFinalizationHelper>? nodeFinalizationHelpers = t_nodeFinalizationHelpers ??= new List<ThreadLocalNodeFinalizationHelper>(1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (6)
430List<T>? list = GetValuesAsList(); // returns null if disposed 437private List<T>? GetValuesAsList() 447var valueList = new List<T>(); 508internal List<T>? ValuesForDebugDisplay => // same as Values property, but doesn't throw if disposed 618private readonly List<int> _freeIds = new List<int>(); 775public List<T>? Values => _tlocal.ValuesForDebugDisplay;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Portable.cs (7)
14private static List<TimerQueue>? s_scheduledTimers; 15private static List<TimerQueue>? s_scheduledTimersToFire; 29private static List<TimerQueue> InitializeScheduledTimerManager_Locked() 33var timers = new List<TimerQueue>(Instances.Length); 61List<TimerQueue> timers = s_scheduledTimers ?? InitializeScheduledTimerManager_Locked(); 82List<TimerQueue> timersToFire = s_scheduledTimersToFire!; 83List<TimerQueue> timers;
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
480internal static void ThrowAggregateException(List<Exception> exceptions)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
54private List<TimeZoneInfo>? _equivalentZones;
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
723List<AdjustmentRule> rules = new List<AdjustmentRule>(1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (3)
155List<AdjustmentRule> rulesList = new List<AdjustmentRule>(_adjustmentRules.Length); 508List<AdjustmentRule> rulesList = new List<AdjustmentRule>(); 523private static void TZif_GenerateAdjustmentRule(ref int index, TimeSpan timeZoneBaseUtcOffset, List<AdjustmentRule> rulesList, DateTime[] dts,
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
182private static List<string> ParseTimeZoneIds(StreamReader reader) 184List<string> timeZoneIds = new List<string>();
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (2)
38private readonly List<TypeName>? _genericArguments; 49List<TypeName>? genericTypeArguments = default,
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (3)
77List<int>? nestedNameLengths = null; 90List<TypeName>? genericArgs = null; 262private static TypeName? GetDeclaringType(string fullTypeName, List<int>? nestedNameLengths, AssemblyNameInfo? assemblyName)
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
226ref List<int>? nestedNameLengths, ref int recursiveDepth, out int totalLength)
System\Reflection\Runtime\Assemblies\RuntimeAssemblyInfo.cs (3)
95List<Type> types = new List<Type>(); 96List<Exception>? exceptions = null; 143private static void AddPublicNestedTypes(Type type, List<Type> types)
System.Private.CoreLib.Generators (4)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
620List<int> includedClauses = new List<int>();
NativeRuntimeEventSourceGenerator.cs (3)
237var eventNodes = eventsNode.Elements(EventNs + "event").ToList(); 322var paramList = new List<string>(); 416private static readonly List<string> manuallyHandledEventSymbols =
System.Private.DataContractSerialization (60)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
167var typeArgumentList = new List<CodeTypeReference>();
System\Runtime\Serialization\ClassDataContract.cs (8)
70internal List<DataMember>? Members 256internal static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable) 590private List<DataMember>? _members; 805List<DataMember> tempMembers = new List<DataMember>(); 975private void SetIfMembersHaveConflict(List<DataMember> members) 981List<Member> membersInHierarchy = new List<Member>(); 1157internal List<DataMember>? Members 1424List<DataMember> dataContractMembersList = new List<DataMember>();
System\Runtime\Serialization\CodeGenerator.cs (1)
102private List<ArgBuilder> _argList = null!; // initialized in BeginMethod
System\Runtime\Serialization\DataContract.cs (7)
1159List<Type> itemTypeClosure = new List<Type>(); 1510List<int> nestedParamCounts = GetDataContractNameForGenericName(typeName, localName); 1559internal static List<int> GetDataContractNameForGenericName(string typeName, StringBuilder? localName) 1561List<int> nestedParamCounts = new List<int>(); 1640List<int> nestedParamCounts = GetDataContractNameForGenericName(localName, localNameBuilder); 2389private List<GenericInfo>? _paramGenericInfos; 2390private readonly List<int> _nestedParamCounts;
System\Runtime\Serialization\DataContractSet.cs (9)
22private readonly List<Type>? _referencedTypes; 23private readonly List<Type>? _referencedCollectionTypes; 394List<Type> types = new List<Type>(); 402List<Type> types = (List<Type>)value; 593List<Type> types = (List<Type>)value; 665public List<XmlQualifiedName> ImportSchemaSet(XmlSchemaSet schemaSet, IEnumerable<XmlSchemaElement> elements, bool importXmlDataType) 668importer.Import(out List<XmlQualifiedName>? elementNames);
System\Runtime\Serialization\EnumDataContract.cs (8)
50internal List<DataMember> Members 58internal List<long>? Values 82private List<DataMember> _members; 83private List<long>? _values; 179internal List<DataMember> Members 185internal List<long>? Values 220List<DataMember> tempMembers = new List<DataMember>(fields.Length); 221List<long> tempValues = new List<long>(fields.Length);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
426List<DataMember> members = contract.Members!;
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (3)
62private static List<Type> GetKnownTypesFromContext(XmlObjectSerializerContext? context, IList<Type>? serializerKnownTypeList) 64List<Type> knownTypesList = new List<Type>(); 67List<XmlQualifiedName> xmlNames = new List<XmlQualifiedName>();
System\Runtime\Serialization\ReflectionXmlFormatReader.cs (1)
145List<DataMember> members = contract.Members!;
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (1)
244List<DataMember> members = currentContract.Members!;
System\Runtime\Serialization\SchemaExporter.cs (1)
266List<int>? genericArgumentCounts = null;
System\Runtime\Serialization\SchemaHelper.cs (2)
18internal List<XmlSchemaType>? _knownTypes; 20internal SchemaObjectInfo(XmlSchemaType? type, XmlSchemaElement? element, XmlSchema? schema, List<XmlSchemaType>? knownTypes)
System\Runtime\Serialization\SchemaImporter.cs (9)
30private List<XmlSchemaRedefine> _redefineList = null!; // Not directly referenced. Always lazy initialized by property getter. 46internal void Import([NotNullIfNotNull(nameof(_elements))] out List<XmlQualifiedName>? elementTypeNames) 103var elementNameList = new List<XmlQualifiedName>(); 158private List<XmlSchemaRedefine> RedefineList 173List<XmlSchemaType>? knownTypes = schemaObjectInfo._knownTypes; 221List<XmlSchemaType>? knownTypes = schemaObjectInfo._knownTypes; 244List<XmlSchemaType> knownTypesForObject = new List<XmlSchemaType>(); 327private List<XmlSchemaRedefine> CreateRedefineList() 329List<XmlSchemaRedefine> list = new List<XmlSchemaRedefine>();
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
479List<DataMember> members = contract.Members!;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
804List<DataMember> members = currentContract.Members!;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (4)
905List<XmlAttribute>? xmlAttributes = null; 906List<XmlNode>? xmlChildNodes = null; 951var xmlChildNodes = new List<XmlNode>(); 952List<XmlAttribute>? xmlAttributes = null;
System\Runtime\Serialization\XmlSerializableServices.cs (1)
17List<XmlNode> nodeList = new List<XmlNode>();
System\Xml\XmlBufferReader.cs (1)
1235List<int> list = new List<int>();
System.Private.Reflection.Execution (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SR.cs (1)
16private static List<string>? _currentlyLoading;
System.Private.TypeLoader (3)
Internal\Reflection\Execution\AssemblyBinderImplementation.cs (1)
83List<AssemblyBindResult> loadedAssemblies = new List<AssemblyBindResult>(ScopeGroups.Length);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
210List<EmbeddedSignatureData> ret = new();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SR.cs (1)
16private static List<string>? _currentlyLoading;
System.Private.Windows.Core (65)
System\Collections\Generic\CollectionExtensions.cs (2)
16internal static List<T> CreateTrimmedList<T>(this IReadOnlyList<T> readOnlyList, int count) 28List<T> list = [..readOnlyList];
System\IO\BinaryReaderExtensions.cs (1)
248else if (values is List<T> list)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (21)
337/// Writes a <see cref="List{String}"/> in binary format. 339public static void WriteStringList(Stream stream, List<string> list) 367public static void WritePrimitiveList<T>(Stream stream, List<T> list) 404&& type.GetGenericTypeDefinition() == typeof(List<>) 411case List<string> typedList: 414case List<int> typedList: 417case List<byte> typedList: 420case List<sbyte> typedList: 423case List<short> typedList: 426case List<ushort> typedList: 429case List<uint> typedList: 432case List<long> typedList: 435case List<ulong> typedList: 438case List<float> typedList: 441case List<double> typedList: 444case List<decimal> typedList: 447case List<DateTime> typedList: 450case List<TimeSpan> typedList: 453case List<char> typedList: 456case List<bool> typedList: 717&& type.GetGenericTypeDefinition() == typeof(List<>)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (32)
57{ Types.ToTypeName($"{Types.ListName}[[{Types.BooleanType}]]"), typeof(List<bool>) }, 58{ Types.ToTypeName($"{Types.ListName}[[{Types.CharType}]]"), typeof(List<char>) }, 59{ Types.ToTypeName($"{Types.ListName}[[{Types.StringType}]]"), typeof(List<string>) }, 60{ Types.ToTypeName($"{Types.ListName}[[{Types.SByteType}]]"), typeof(List<sbyte>) }, 61{ Types.ToTypeName($"{Types.ListName}[[{Types.ByteType}]]"), typeof(List<byte>) }, 62{ Types.ToTypeName($"{Types.ListName}[[{Types.Int16Type}]]"), typeof(List<short>) }, 63{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt16Type}]]"), typeof(List<ushort>) }, 64{ Types.ToTypeName($"{Types.ListName}[[{Types.Int32Type}]]"), typeof(List<int>) }, 65{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt32Type}]]"), typeof(List<uint>) }, 66{ Types.ToTypeName($"{Types.ListName}[[{Types.Int64Type}]]"), typeof(List<long>) }, 67{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt64Type}]]"), typeof(List<ulong>) }, 68{ Types.ToTypeName($"{Types.ListName}[[{Types.SingleType}]]"), typeof(List<float>) }, 69{ Types.ToTypeName($"{Types.ListName}[[{Types.DoubleType}]]"), typeof(List<double>) }, 70{ Types.ToTypeName($"{Types.ListName}[[{Types.DecimalType}]]"), typeof(List<decimal>) }, 71{ Types.ToTypeName($"{Types.ListName}[[{Types.DateTimeType}]]"), typeof(List<DateTime>) }, 72{ Types.ToTypeName($"{Types.ListName}[[{Types.TimeSpanType}]]"), typeof(List<TimeSpan>) }, 124|| type == typeof(List<byte>) 125|| type == typeof(List<sbyte>) 126|| type == typeof(List<short>) 127|| type == typeof(List<ushort>) 128|| type == typeof(List<int>) 129|| type == typeof(List<uint>) 130|| type == typeof(List<long>) 131|| type == typeof(List<ulong>) 132|| type == typeof(List<float>) 133|| type == typeof(List<double>) 134|| type == typeof(List<char>) 135|| type == typeof(List<bool>) 136|| type == typeof(List<string>) 137|| type == typeof(List<decimal>) 138|| type == typeof(List<DateTime>) 139|| type == typeof(List<TimeSpan>)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
294/// Tries to get this object as a <see cref="List{T}"/> of <see cref="PrimitiveType"/>. 309|| classInfo.TypeName.GetGenericTypeDefinition().Name != typeof(List<>).Name
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (3)
318List<string> files = new((int)count); 583List<string> mappedFormats = []; 656List<string> mappedFormats = [];
System\Private\Windows\Ole\DataFormatsCore.cs (1)
19private static List<T>? s_formatList;
System\Private\Windows\Ole\DataStore.cs (1)
44List<string> mappedFormats = [];
System\Private\Windows\Ole\FormatEnumerator.cs (1)
21private readonly List<ComTypes.FORMATETC> _formats = [];
Windows\Win32\System\Com\ComPointerList.cs (1)
16private readonly List<nint> _pointers = [];
System.Private.Windows.Core.TestUtilities (1)
XUnit\InvalidEnumDataAttribute.cs (1)
26List<TEnum> data = [];
System.Private.Xml (259)
System\Xml\Core\XmlEventCache.cs (1)
17private List<XmlEvent[]>? _pages; // All event pages
System\Xml\Core\XmlWriterSettings.cs (1)
250internal List<XmlQualifiedName> CDataSectionElements { get; private set; } = new();
System\Xml\Dom\DocumentXmlWriter.cs (1)
63private readonly List<XmlNode> _fragment; // top level node cache
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1802List<XmlElement> elements = new List<XmlElement>();
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (13)
29List<object>? list = _field as List<object>; 44List<object>? list = _field as List<object>; 63List<object> temp = new List<object>(); 73List<object>? list = _field as List<object>; 92List<object?>? list = _field as List<object?>; 113List<object>? list = _field as List<object>; 188List<object>? list = _field as List<object>;
System\Xml\Dom\XPathNodeList.cs (1)
13private readonly List<XmlNode?> _list;
System\Xml\Schema\ContentValidator.cs (5)
1442List<int[]> transitionTable = new(); 1849List<RangePositionInfo>? runningPositions = context.RunningPositions; 1874List<RangePositionInfo>? runningPositions = context.RunningPositions; 2042List<RangePositionInfo> runningPositions = context.RunningPositions; 2085List<RangePositionInfo> runningPositions = context.RunningPositions;
System\Xml\Schema\Preprocessor.cs (1)
727List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
633var memberTypeDefinitions = new List<XmlSchemaSimpleType>(); 690private void CheckUnionType(XmlSchemaSimpleType unionMember, List<XmlSchemaSimpleType> memberTypeDefinitions, XmlSchemaSimpleType parentType)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
531List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
System\Xml\Schema\SchemaDeclBase.cs (2)
35protected List<string>? values; // array of values for enumerated and notation types 104internal List<string>? Values
System\Xml\Schema\SchemaElementDecl.cs (1)
14private List<IDtdDefaultAttributeInfo>? _defaultAttdefs;
System\Xml\Schema\SchemaSetCompiler.cs (2)
723var memberTypeDefinitions = new List<XmlSchemaSimpleType>(); 779private void CheckUnionType(XmlSchemaSimpleType unionMember, List<XmlSchemaSimpleType> memberTypeDefinitions, XmlSchemaSimpleType parentType)
System\Xml\Schema\ValidationState.cs (1)
51public List<RangePositionInfo>? RunningPositions;
System\Xml\Schema\XmlSchemaObjectTable.cs (8)
13private readonly List<XmlSchemaObjectEntry> _entries = new List<XmlSchemaObjectEntry>(); 159private readonly List<XmlSchemaObjectEntry> _entries; 162internal NamesCollection(List<XmlSchemaObjectEntry> entries, int size) 212private readonly List<XmlSchemaObjectEntry> _entries; 215internal ValuesCollection(List<XmlSchemaObjectEntry> entries, int size) 264private readonly List<XmlSchemaObjectEntry> _entries; 273internal XSOEnumerator(List<XmlSchemaObjectEntry> entries, int size, EnumeratorType enumType) 335internal XSODictionaryEnumerator(List<XmlSchemaObjectEntry> entries, int size, EnumeratorType enumType) : base(entries, size, enumType)
System\Xml\Schema\XmlSchemaSet.cs (2)
971List<XmlSchemaElement>? newMembers = null; 1299List<XmlSchema> reprocessList = new List<XmlSchema>();
System\Xml\Schema\XmlValueConverter.cs (3)
3053List<T> listDst = new List<T>(); 3081List<object> listDst = new List<object>(); 3091private static List<string> StringAsList(string value)
System\Xml\Schema\XsdBuilder.cs (2)
674private readonly List<XmlAttribute> _unhandledAttributes = new List<XmlAttribute>(); 675private List<XmlQualifiedName>? _namespaces;
System\Xml\Serialization\Models.cs (1)
430var list = new List<ConstantModel>();
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (10)
146var membersList = new List<Member>(); 147var textOrArrayMembersList = new List<Member>(); 148var attributeMembersList = new List<Member>(); 387List<CheckTypeSource>? checkTypeHrefSource = null; 485private void WriteMemberElements(Member[] expectedMembers, UnknownNodeAction elementElseAction, UnknownNodeAction elseAction, Member? anyElement, Member? anyText, Fixup? fixup = null, List<CheckTypeSource>? checkTypeHrefsSource = null, int[]? sequenceState = null) 514private void WriteMemberElementsCheckType(List<CheckTypeSource> checkTypeHrefsSource) 579private static void AddObjectsIntoTargetCollection(object targetCollection, List<object?> sourceCollection, 1592var listOfItems = new List<object?>(); 1697var allMembersList = new List<Member>(mappings.Length); 2014var attributes = new List<AttributeAccessor>();
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
360var namedAnys = new List<ElementAccessor>();
System\Xml\Serialization\SoapReflectionImporter.cs (2)
386var members = new List<MemberMapping>(); 575var constants = new List<ConstantMapping>();
System\Xml\Serialization\Types.cs (9)
655var secondaryList = (List<TypeDesc>?)s_primitiveNamesSecondary[dataTypeName, XmlSchema.Namespace]; 708var tdList = (List<TypeDesc>?)s_primitiveNamesSecondary[name, ns]; 1092var list = new List<MemberMapping>(); 1097internal static void GetAllMembers(StructMapping mapping, List<MemberMapping> list) 1122var list = new List<MemberMapping>(); 1127private static void GetSettableMembers(StructMapping mapping, List<MemberMapping> list) 1155private static bool TryReplaceHiddenMapping(List<MemberMapping> list, MemberMapping memberMapping)
System\Xml\Serialization\XmlReflectionImporter.cs (2)
846var members = new List<MemberMapping>(); 1220var constants = new List<ConstantMapping>();
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1331private bool IsCyclicReferencedType(XmlSchemaElement element, List<string> identifiers)
System\Xml\Serialization\XmlSerializationReader.cs (7)
1925var xmlNodeList = new List<XmlNode>(); 2566var membersList = new List<Member>(); 2567var textOrArrayMembersList = new List<Member>(); 2568var attributeMembersList = new List<Member>(); 3373var arraysToDeclareList = new List<Member>(mappings.Length); 3374var arraysToSetList = new List<Member>(mappings.Length); 3375var allMembersList = new List<Member>(mappings.Length);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (17)
385List<Type> argTypes = new List<Type>(); 505var membersList = new List<Member>(); 506var textOrArrayMembersList = new List<Member>(); 507var attributeMembersList = new List<Member>(); 1100List<Type> argTypes = new List<Type>(); 1101List<string> argNames = new List<string>(); 1143List<Label> caseLabels = new List<Label>(); 1144List<object> retValues = new List<object>(); 1221List<Type> argTypes = new List<Type>(); 1406List<Type> argTypes = new List<Type>(); 1407List<string> argNames = new List<string>(); 1609var arraysToDeclareList = new List<Member>(mappings.Length); 1610var arraysToSetList = new List<Member>(mappings.Length); 1611var allMembersList = new List<Member>(mappings.Length); 1881var attributes = new List<AttributeAccessor>(); 2068List<Type> argTypes = new List<Type>(); 3363List<Type> argTypes = new List<Type>();
System\Xml\Serialization\XmlSerializationWriterILGen.cs (12)
101List<Type> argTypes = new List<Type>(); 230List<Type> argTypes = new List<Type>(); 600List<Type> argTypes = new List<Type>(); 601List<string> argNames = new List<string>(); 619List<Label> caseLabels = new List<Label>(); 620List<string> retValues = new List<string>(); 751List<Type> argTypes = new List<Type>(); 915List<Type> argTypes = new List<Type>(5); 916List<string> argNames = new List<string>(5); 1315List<Type> argTypes = new List<Type>(); 1628var namedAnys = new List<ElementAccessor>(); 2039List<Type> argTypes = new List<Type>();
System\Xml\XPath\Internal\CacheAxisQuery.cs (1)
13protected List<XPathNavigator> outputBuffer;
System\Xml\XPath\Internal\CacheOutputQuery.cs (1)
16protected List<XPathNavigator> outputBuffer;
System\Xml\XPath\Internal\FollSiblingQuery.cs (1)
13private readonly List<XPathNavigator> _parentStk;
System\Xml\XPath\Internal\Function.cs (4)
45private readonly List<AstNode> _argumentList; 50public Function(FunctionType ftype, List<AstNode> argumentList) 56public Function(string prefix, string name, List<AstNode> argumentList) 82public List<AstNode> ArgumentList { get { return _argumentList; } }
System\Xml\XPath\Internal\FunctionQuery.cs (1)
18public FunctionQuery(string prefix, string name, List<Query> args) : base(prefix, name)
System\Xml\XPath\Internal\PreSiblingQuery.cs (2)
28private static bool NotVisited(XPathNavigator nav, List<XPathNavigator> parentStk) 48List<XPathNavigator> parentStk = new List<XPathNavigator>();
System\Xml\XPath\Internal\Query.cs (1)
103public static bool Insert(List<XPathNavigator> buffer, XPathNavigator nav)
System\Xml\XPath\Internal\QueryBuilder.cs (3)
440private List<Query> ProcessArguments(List<AstNode> args, out Props props) 443List<Query> argList = new List<Query>(numArgs);
System\Xml\XPath\Internal\SortQuery.cs (1)
16private readonly List<SortKey> _results;
System\Xml\XPath\Internal\XPathParser.cs (2)
504List<AstNode> argList = new List<AstNode>(); 656List<AstNode> argList = new List<AstNode>();
System\Xml\Xsl\IlGen\StaticDataManager.cs (3)
21private readonly List<T> _list = new List<T>(); 60private List<StringPair[]>? _prefixMappingsList; 61private List<string>? _globalNames;
System\Xml\Xsl\QIL\QilXmlWriter.cs (2)
317private readonly List<QilNode> _fwdrefs = new List<QilNode>(); 318private readonly List<QilNode> _backrefs = new List<QilNode>();
System\Xml\Xsl\Runtime\DocumentOrderComparer.cs (1)
20private List<XPathNavigator>? _roots;
System\Xml\Xsl\Runtime\DodSequenceMerge.cs (1)
20private List<IEnumerator<XPathNavigator>>? _sequencesToMerge;
System\Xml\Xsl\Runtime\StringConcat.cs (2)
21private List<string?>? _strList; 94List<string?> strList = _strList = new List<string?>(capacity);
System\Xml\Xsl\Runtime\XslNumber.cs (1)
119private readonly List<TokenInfo?>? _tokens;
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
83private List<DecimalFormatter>? _decimalFormatters;
System\Xml\Xsl\XmlQueryTypeFactory.cs (9)
97List<XmlQueryType> list = new List<XmlQueryType>(types[0]); 251private static List<XmlQueryType> PrimeChoice(List<XmlQueryType> accumulator, IList<XmlQueryType> types) 263private static void AddItemToChoice(List<XmlQueryType> accumulator, XmlQueryType itemType) 695private readonly List<XmlQueryType> _members; 702List<XmlQueryType> members; 725public static XmlQueryType Create(List<XmlQueryType> members) 739private ChoiceType(List<XmlQueryType> members) 826List<XmlQueryType> members = new List<XmlQueryType>(length);
System\Xml\Xsl\XPath\XPathParser.cs (1)
551List<Node> argList = new List<Node>();
System\Xml\Xsl\Xslt\Compiler.cs (4)
48public List<VarPar> ExternalPars = new List<VarPar>(); 49public List<VarPar> GlobalVars = new List<VarPar>(); 50public List<WhitespaceRule> WhitespaceRules = new List<WhitespaceRule>(); 53public List<ProtoTemplate> AllTemplates = new List<ProtoTemplate>();
System\Xml\Xsl\Xslt\MatcherBuilder.cs (18)
261public Dictionary<QilName, List<Pattern>> FixedNamePatterns = new Dictionary<QilName, List<Pattern>>(); 262public List<QilName> FixedNamePatternsNames = new List<QilName>(); // Needed only to guarantee a stable order 263public List<Pattern> NonFixedNamePatterns = new List<Pattern>(); 275List<Pattern>? list; 312private readonly List<Pattern> _textPatterns = new List<Pattern>(); 313private readonly List<Pattern> _documentPatterns = new List<Pattern>(); 314private readonly List<Pattern> _commentPatterns = new List<Pattern>(); 316private readonly List<Pattern> _heterogenousPatterns = new List<Pattern>(); 318private readonly List<List<TemplateMatch>> _allMatches = new List<List<TemplateMatch>>(); 335private void AddPatterns(List<TemplateMatch> matches) 363List<TemplateMatch>? matchesForMode; 396private QilNode MatchPatterns(QilIterator it, List<Pattern> patternList) 410private QilNode MatchPatterns(QilIterator it, XmlQueryType xt, List<Pattern> patternList, QilNode otherwise) 429private QilNode MatchPatternsWhosePriorityGreater(QilIterator it, List<Pattern> patternList, QilNode matcher) 513foreach (List<TemplateMatch> list in _allMatches)
System\Xml\Xsl\Xslt\QilGenerator.cs (3)
201List<EarlyBoundInfo> ebTypes = new List<EarlyBoundInfo>(scriptClasses.Count); 476List<VarPar>? paramWithCalls = null; 2642List<QilFunction>? functionsForMode;
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (2)
439private QilNode CompileSingleKey(List<Key> defList, QilNode key, IFocus env) 456private QilNode CompileSingleKey(List<Key> defList, QilIterator key, QilIterator context)
System\Xml\Xsl\Xslt\Stylesheet.cs (10)
23public Dictionary<QilName, List<QilFunction>> ApplyFunctions = new Dictionary<QilName, List<QilFunction>>(); 29public List<Uri> ImportHrefs = new List<Uri>(); 30public List<XslNode>? GlobalVarPars = new List<XslNode>(); 43public List<WhitespaceRule>[]? WhitespaceRules = new List<WhitespaceRule>[3]; 45public List<Template> Templates = new List<Template>(); // Templates defined on this level. Empty for RootLevel. 47public Dictionary<QilName, List<TemplateMatch>> TemplateMatches = new Dictionary<QilName, List<TemplateMatch>>(); 51List<TemplateMatch>? matchesForMode;
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (2)
234public QilNode BuildPredicates(QilNode nodeset, List<QilNode> predicates) 237List<QilNode> convertedPredicates = new List<QilNode>(predicates.Count);
System\Xml\Xsl\Xslt\XPathPatternParser.cs (2)
127List<QilNode> args = new List<QilNode>(2); 235List<QilNode> predicates = new List<QilNode>();
System\Xml\Xsl\Xslt\XslAst.cs (4)
84private List<XslNode>? _content; 112public void SetContent(List<XslNode>? content) 246internal sealed class Keys : KeyedCollection<QilName, List<Key>> 248protected override QilName GetKeyForItem(List<Key> list)
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (10)
26private readonly List<VarPar> _allVarPars = new List<VarPar>(); 41private Dictionary<QilName, List<ProtoTemplate>>? _revApplyTemplatesGraph = new Dictionary<QilName, List<ProtoTemplate>>(); 54internal sealed class Graph<V> : Dictionary<V, List<V>?> 61List<V>? adjList; 77List<V>? adjList; 754List<ProtoTemplate>? templates; 809List<ProtoTemplate>? list; 1410var content = (List<XslNode>)parent.Content;
System\Xml\Xsl\Xslt\XsltLoader.cs (43)
254List<Uri> importHrefs = _curStylesheet.ImportHrefs; 336List<XslNode> content = new List<XslNode>(); 619List<XmlQualifiedName> list = new List<XmlQualifiedName>(); 754List<QilName> useCharacterMaps = ParseUseCharacterMaps(15); 861List<XslNode>? content; 902List<Key> defList = new List<Key>(); 1083List<XslNode> content = new List<XslNode>(); 1345private List<XslNode> LoadInstructions() 1350private List<XslNode> LoadInstructions(InstructionFlags flags) 1355private List<XslNode> LoadInstructions(List<XslNode> content) 1362private List<XslNode> LoadInstructions(List<XslNode> content, InstructionFlags flags) 1468private List<XslNode> LoadWithParams(InstructionFlags flags) 1471List<XslNode> content = new List<XslNode>(); 1525List<XslNode>? content = LoadWithParams(InstructionFlags.None); 1566List<XslNode> content = LoadWithParams(InstructionFlags.AllowSort); 1583List<XslNode> content = LoadWithParams(InstructionFlags.None); 1606List<XslNode> content = new List<XslNode>(); 1662List<XslNode> content = new List<XslNode>(); 1744List<XslNode> content = LoadInstructions(InstructionFlags.AllowSort); 1765List<XslNode> content = LoadInstructions(); 1858List<XslNode>? content; 1957List<XslNode> content = LoadContent(select != null); 1979private List<XslNode> LoadContent(bool hasSelect) 1982List<XslNode> content = LoadInstructions(); 2020List<XslNode> content = new List<XslNode>(); 2072List<XslNode> content = new List<XslNode>(); 2139List<XslNode>? content; 2495List<XslNode> content = new List<XslNode>(); 2523private void CheckWithParam(List<XslNode> content, XslNode withParam) 2537private static void AddInstruction(List<XslNode> content, XslNode? instruction) 2546private List<XslNode> LoadEndTag(List<XslNode> content) 2568List<XslNode> fallbacks = LoadFallbacks(_input.LocalName); 2573private List<XslNode> LoadFallbacks(string instrName) 2577List<XslNode> fallbacksArray = new List<XslNode>(); 2666List<QilName> modes = new List<QilName>(list.Length); 2890private void AddUseAttributeSets(List<XslNode> list) 2907private List<QilName> ParseUseCharacterMaps(int attNum) 2909List<QilName> useCharacterMaps = new List<QilName>(); 3080private static void SetContent(XslNode node, List<XslNode>? content) 3090internal static XslNode SetInfo(XslNode to, List<XslNode>? content, ContextInfo info)
System\Xml\Xsl\XsltOld\ActionFrame.cs (2)
153List<SortKey> results = new List<SortKey>(); 315public XPathSortArrayIterator(List<SortKey> list) : base(list) { }
System\Xml\Xsl\XsltOld\Compiler.cs (2)
89private List<TheQuery>? _queryStore; 156internal List<TheQuery>? QueryStore
System\Xml\Xsl\XsltOld\NumberAction.cs (4)
153private List<FormatInfo?>? _formatTokens; 489private static string Format(ArrayList numberlist, List<FormatInfo?>? tokens, string? groupingSep, string? groupingSize) 682private static List<FormatInfo?>? ParseFormat(string? formatString) 690List<FormatInfo?> tokens = new List<FormatInfo?>();
System\Xml\Xsl\XsltOld\Processor.cs (2)
55private readonly List<TheQuery> _queryStore; 327Stylesheet stylesheet, List<TheQuery> queryStore, RootAction rootAction,
System\Xml\Xsl\XsltOld\RootAction.cs (2)
85private List<Key>? _keyList; 244internal List<Key>? KeyList
System\Xml\Xslt\XslTransform.cs (1)
36private List<TheQuery>? _QueryStore;
System.Private.Xml.Linq (7)
System\Xml\Linq\XContainer.cs (2)
1442private static void AddContentToList(List<object?> list, object? content) 1462List<object?> list = new List<object?>();
System\Xml\Linq\XLinq.cs (1)
530private readonly List<XAttribute> _attributes;
System\Xml\Linq\XNodeBuilder.cs (1)
11private List<object>? _content;
System\Xml\Linq\XStreamingElement.cs (3)
39this.content = content is List<object?> ? new object?[] { content } : content; 77List<object>? list = this.content as List<object>;
System.Reflection.Context (10)
System\Reflection\Context\CollectionServices.cs (2)
38public static object[] ConvertListToArray(List<object> list, Type arrayType) 54List<object> list = new List<object>(enumerable);
System\Reflection\Context\Custom\AttributeUtils.cs (3)
33List<object> results = new List<object>(attributes); 73List<object> results = new List<object>(attributes); 151private static void CombineCustomAttributes(List<object> declaredAttributes, IEnumerable<object> inheritedAttributes, Type attributeFilterType, bool inherited, bool allowMultiple)
System\Reflection\Context\Custom\CustomType.cs (4)
58List<PropertyInfo> results = new List<PropertyInfo>(properties); 102List<PropertyInfo> matchingProperties = new List<PropertyInfo>(); 153List<MethodInfo> results = new List<MethodInfo>(methods); 218List<MethodInfo> matchingMethods = new List<MethodInfo>();
System\Reflection\Context\Projection\ProjectingType.cs (1)
113List<MemberInfo> matchingMembers = new List<MemberInfo>();
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
269private readonly List<FieldBuilder> _fields; 270private readonly List<MethodInfo> _methodInfos;
System.Reflection.Emit (67)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
20private readonly List<int> _stack = new List<int>(); 274var nestings = new List<Type>();
System\Reflection\Emit\EventBuilderImpl.cs (1)
21internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\FieldBuilderImpl.cs (1)
24internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (2)
20internal List<CustomAttributeWrapper>? _customAttributes; 21internal List<Type>? _interfaces;
System\Reflection\Emit\ILGeneratorImpl.cs (13)
32private List<KeyValuePair<object, BlobWriter>> _memberReferences = new(); 33private List<ExceptionBlock> _exceptionStack = new(); // tracks the exception nesting 34private List<ExceptionHandlerInfo> _exceptionBlocks = new(); // keeps all ExceptionHandler blocks 35private Dictionary<SymbolDocumentWriter, List<SequencePoint>> _documentToSequencePoints = new(); 50internal List<KeyValuePair<object, BlobWriter>> GetMemberReferences() => _memberReferences; 53internal List<LocalBuilder> Locals => _scope.GetAllLocals(); 56internal Dictionary<SymbolDocumentWriter, List<SequencePoint>> DocumentToSequencePoints => _documentToSequencePoints; 849if (_documentToSequencePoints.TryGetValue(symbolDoc, out List<SequencePoint>? sequencePoints)) 943internal List<Scope>? _children; 944internal List<LocalBuilder>? _locals; 945internal List<string>? _importNamespaces; 949internal List<LocalBuilder> GetAllLocals() 951List<LocalBuilder> locals = new List<LocalBuilder>();
System\Reflection\Emit\MethodBuilderImpl.cs (1)
33internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\ModuleBuilderImpl.cs (19)
25private readonly List<TypeBuilderImpl> _typeDefinitions = new(); 28private List<CustomAttributeWrapper>? _customAttributes; 138List<GenericTypeParameterBuilderImpl> genericParams = new(); 217foreach (List<(MethodInfo ifaceMethod, MethodInfo targetMethod)> mapList in typeBuilder._methodOverrides.Values) 303private void PopulateFieldDefinitionHandles(List<FieldBuilderImpl> fieldDefinitions) 311private void PopulateMethodDefinitionHandles(List<MethodBuilderImpl> methods) 319private void PopulatePropertyDefinitionHandles(List<PropertyBuilderImpl> properties) 327private void PopulateEventDefinitionHandles(List<EventBuilderImpl> eventDefinitions) 351private void WriteMethods(List<MethodBuilderImpl> methods, List<GenericTypeParameterBuilderImpl> genericParams, 423Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator = il.DocumentToSequencePoints.GetEnumerator(); 447private BlobHandle PopulateMultiDocSequencePointsBlob(Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator, StandaloneSignatureHandle localSignature) 453KeyValuePair<SymbolDocumentWriter, List<SequencePoint>> pair = enumerator.Current; 473private static void PopulateSequencePointsBlob(BlobBuilder spBlobBuilder, List<SequencePoint> sequencePoints, ref int previousNonHiddenStartLine, ref int previousNonHiddenStartColumn) 530private LocalVariableHandle GetLocalVariableHandle(List<LocalBuilder>? locals, LocalVariableHandle firstLocalHandleOfLastScope) 553private ImportScopeHandle GetImportScopeHandle(List<string>? importNamespaces, ImportScopeHandle parent) 680internal void WriteCustomAttributes(List<CustomAttributeWrapper>? customAttributes, EntityHandle parent) 1403internal List<TypeBuilderImpl> GetNestedTypeBuilders(TypeBuilderImpl declaringType) 1405List<TypeBuilderImpl> nestedTypes = new List<TypeBuilderImpl>();
System\Reflection\Emit\ParameterBuilderImpl.cs (1)
15internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\PersistedAssemblyBuilder.cs (1)
23internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\PropertyBuilderImpl.cs (1)
26internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\SignatureHelper.cs (1)
13internal static BlobBuilder GetLocalSignature(List<LocalBuilder> locals, ModuleBuilderImpl module)
System\Reflection\Emit\TypeBuilderImpl.cs (24)
34internal readonly List<MethodBuilderImpl> _methodDefinitions = new(); 35internal readonly List<FieldBuilderImpl> _fieldDefinitions = new(); 36internal readonly List<ConstructorBuilderImpl> _constructorDefinitions = new(); 37internal List<Type>? _interfaces; 38internal readonly List<PropertyBuilderImpl> _propertyDefinitions = new(); 39internal readonly List<EventBuilderImpl> _eventDefinitions = new(); 40internal List<CustomAttributeWrapper>? _customAttributes; 41internal Dictionary<Type, List<(MethodInfo ifaceMethod, MethodInfo targetMethod)>>? _methodOverrides; 313if (_methodOverrides.TryGetValue(baseType, out List<(MethodInfo ifaceMethod, MethodInfo targetMethod)>? im)) 735List<ConstructorInfo> constructors = new List<ConstructorInfo>(); 753List<ConstructorInfo> ctors = new(); 778List<MethodInfo> methods = new List<MethodInfo>(); 795List<MethodInfo> methods = new List<MethodInfo>(); 895List<FieldInfo> fields = new List<FieldInfo>(); 913List<FieldInfo> fields = new List<FieldInfo>(_fieldDefinitions.Count); 969List<Type> interfaces = _interfaces ?? []; 1004List<PropertyInfo> properties = new List<PropertyInfo>(); 1021List<PropertyInfo> candidates = new List<PropertyInfo>(_propertyDefinitions.Count); 1045List<PropertyInfo> candidates = GetPropertyCandidates(name, bindingAttr, types); 1077private List<PropertyInfo> GetPropertyCandidates(string name, BindingFlags bindingAttr, Type[]? types) 1081List<PropertyInfo> candidates = new List<PropertyInfo>(properties.Length); 1109List<Type> nestedTypes = new List<Type>(); 1127List<Type> nestedTypes = new List<Type>(); 1279if (_methodOverrides.TryGetValue(interfaceType, out var mapping))
System.Reflection.Metadata (57)
System\Reflection\Internal\Utilities\EnumerableExtensions.cs (1)
23public static IEnumerable<T> OrderBy<T>(this List<T> source, Comparison<T> comparison)
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (4)
41internal int GetBranchDistance(List<int> labels) 89private readonly List<BranchInfo> _branches; 90private readonly List<int> _labels; 91private List<ExceptionHandlerInfo>? _lazyExceptionHandlers;
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
539var sorted = new List<KeyValuePair<string, StringHandle>>(strings);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (43)
67private readonly List<ClassLayoutRow> _classLayoutTable = new List<ClassLayoutRow>(); 69private readonly List<ConstantRow> _constantTable = new List<ConstantRow>(); 73private readonly List<CustomAttributeRow> _customAttributeTable = new List<CustomAttributeRow>(); 77private readonly List<DeclSecurityRow> _declSecurityTable = new List<DeclSecurityRow>(); 81private readonly List<EncLogRow> _encLogTable = new List<EncLogRow>(); 82private readonly List<EncMapRow> _encMapTable = new List<EncMapRow>(); 83private readonly List<EventRow> _eventTable = new List<EventRow>(); 84private readonly List<EventMapRow> _eventMapTable = new List<EventMapRow>(); 85private readonly List<ExportedTypeRow> _exportedTypeTable = new List<ExportedTypeRow>(); 86private readonly List<FieldLayoutRow> _fieldLayoutTable = new List<FieldLayoutRow>(); 88private readonly List<FieldMarshalRow> _fieldMarshalTable = new List<FieldMarshalRow>(); 92private readonly List<FieldRvaRow> _fieldRvaTable = new List<FieldRvaRow>(); 93private readonly List<FieldDefRow> _fieldTable = new List<FieldDefRow>(); 94private readonly List<FileTableRow> _fileTable = new List<FileTableRow>(); 95private readonly List<GenericParamConstraintRow> _genericParamConstraintTable = new List<GenericParamConstraintRow>(); 96private readonly List<GenericParamRow> _genericParamTable = new List<GenericParamRow>(); 97private readonly List<ImplMapRow> _implMapTable = new List<ImplMapRow>(); 98private readonly List<InterfaceImplRow> _interfaceImplTable = new List<InterfaceImplRow>(); 99private readonly List<ManifestResourceRow> _manifestResourceTable = new List<ManifestResourceRow>(); 100private readonly List<MemberRefRow> _memberRefTable = new List<MemberRefRow>(); 101private readonly List<MethodImplRow> _methodImplTable = new List<MethodImplRow>(); 103private readonly List<MethodSemanticsRow> _methodSemanticsTable = new List<MethodSemanticsRow>(); 107private readonly List<MethodSpecRow> _methodSpecTable = new List<MethodSpecRow>(); 108private readonly List<MethodRow> _methodDefTable = new List<MethodRow>(); 109private readonly List<ModuleRefRow> _moduleRefTable = new List<ModuleRefRow>(); 110private readonly List<NestedClassRow> _nestedClassTable = new List<NestedClassRow>(); 111private readonly List<ParamRow> _paramTable = new List<ParamRow>(); 112private readonly List<PropertyMapRow> _propertyMapTable = new List<PropertyMapRow>(); 113private readonly List<PropertyRow> _propertyTable = new List<PropertyRow>(); 114private readonly List<TypeDefRow> _typeDefTable = new List<TypeDefRow>(); 115private readonly List<TypeRefRow> _typeRefTable = new List<TypeRefRow>(); 116private readonly List<TypeSpecRow> _typeSpecTable = new List<TypeSpecRow>(); 117private readonly List<AssemblyRefTableRow> _assemblyRefTable = new List<AssemblyRefTableRow>(); 118private readonly List<StandaloneSigRow> _standAloneSigTable = new List<StandaloneSigRow>(); 121private readonly List<DocumentRow> _documentTable = new List<DocumentRow>(); 122private readonly List<MethodDebugInformationRow> _methodDebugInformationTable = new List<MethodDebugInformationRow>(); 123private readonly List<LocalScopeRow> _localScopeTable = new List<LocalScopeRow>(); 124private readonly List<LocalVariableRow> _localVariableTable = new List<LocalVariableRow>(); 125private readonly List<LocalConstantRow> _localConstantTable = new List<LocalConstantRow>(); 126private readonly List<ImportScopeRow> _importScopeTable = new List<ImportScopeRow>(); 127private readonly List<StateMachineMethodRow> _stateMachineMethodTable = new List<StateMachineMethodRow>(); 128private readonly List<CustomDebugInformationRow> _customDebugInformationTable = new List<CustomDebugInformationRow>(); 209private static void SetTableCapacity<T>(List<T> table, int rowCount)
System\Reflection\Metadata\Internal\NamespaceCache.cs (4)
137List<NamespaceDataBuilder>? virtualNamespaces; 170List<KeyValuePair<NamespaceDefinitionHandle, NamespaceDataBuilder>>? remaps = null; 234ref List<NamespaceDataBuilder>? virtualNamespaces) 302private void ResolveParentChildRelationships(Dictionary<string, NamespaceDataBuilder> namespaces, out List<NamespaceDataBuilder>? virtualNamespaces)
System\Reflection\Metadata\TypeNameParser.cs (2)
77List<int>? nestedNameLengths = null; 262private static TypeName? GetDeclaringType(string fullTypeName, List<int>? nestedNameLengths, AssemblyNameInfo? assemblyName)
System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
226ref List<int>? nestedNameLengths, ref int recursiveDepth, out int totalLength)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (1)
20private readonly List<Entry> _entries;
System.Reflection.MetadataLoadContext (16)
System\Reflection\PathAssemblyResolver.cs (4)
25private readonly Dictionary<string, List<string>> _fileToPaths = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 45List<string>? paths; 59if (_fileToPaths.TryGetValue(assemblyName.Name, out List<string>? paths))
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
82List<Type> list = new List<Type>(ExportedTypes);
System\Reflection\TypeLoading\Assemblies\RoAssembly.GetForwardedTypes.cs (3)
16List<Type> types = new List<Type>(); 17List<Exception>? exceptions = null; 65private static void AddPublicNestedTypes(Type type, List<Type> types)
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (2)
47List<Module> modules = new List<Module>(_loadedModules.Length + 1) 89List<RoModule> modules = new List<RoModule>(_loadedModules.Length + 1);
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (1)
113List<CustomAttributeNamedArgument> cans = new List<CustomAttributeNamedArgument>();
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (1)
68List<MethodInfo> results = new List<MethodInfo>(capacity: count);
System\Reflection\TypeLoading\General\Helpers.cs (1)
56List<T> list = new List<T>(enumeration);
System\Reflection\TypeLoading\Types\RoModifiedFunctionPointerType.cs (1)
53List<Type> builder = new(returnTypeOptionalModifiers.Length + 1);
System\Reflection\TypeLoading\Types\RoModifiedType.cs (2)
18private List<Type>? _requiredModifiersBuilder; 19private List<Type>? _optionalModifiersBuilder;
System.Resources.Extensions (11)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (2)
249List<string> typeNames = new List<string>(); 420private static ResourceTypeCode FindTypeCode(object? value, List<string> types)
System\Resources\Extensions\BinaryFormat\SerializationEvents.cs (9)
18private readonly List<MethodInfo>? _onDeserializingMethods; 19private readonly List<MethodInfo>? _onDeserializedMethods; 24List<MethodInfo>? onDeserializingMethods, 25List<MethodInfo>? onDeserializedMethods) 39List<MethodInfo>? onDeserializingMethods = GetMethodsWithAttribute(typeof(OnDeserializingAttribute), type); 40List<MethodInfo>? onDeserializedMethods = GetMethodsWithAttribute(typeof(OnDeserializedAttribute), type); 47private static List<MethodInfo>? GetMethodsWithAttribute( 52List<MethodInfo>? attributedMethods = null; 94private static Action<StreamingContext>? AddOnDelegate(object obj, List<MethodInfo>? methods)
System.Resources.Writer (2)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (2)
249List<string> typeNames = new List<string>(); 420private static ResourceTypeCode FindTypeCode(object? value, List<string> types)
System.Runtime.Caching (4)
System\Runtime\Caching\HostFileChangeMonitor.cs (1)
177List<string> newList = new List<string>(filePaths.Count);
System\Runtime\Caching\MemoryCache.cs (1)
418List<string> keysClone = new List<string>(keys);
System\Runtime\Caching\MemoryCacheEntryChangeMonitor.cs (2)
24private List<MemoryCacheEntry> _dependencies; 132internal List<MemoryCacheEntry> Dependencies { get { return _dependencies; } }
System.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (2)
25private readonly List<nint> JSVHandleFreeList = new(); 545List<WeakReference<JSObject>> copy = new(ThreadCsOwnedObjects.Values);
System.Runtime.Serialization.Formatters (9)
System\Runtime\Serialization\FormatterServices.cs (1)
52var allMembers = new List<FieldInfo>();
System\Runtime\Serialization\SerializationEventsCache.cs (8)
14private readonly List<MethodInfo>? _onSerializingMethods; 15private readonly List<MethodInfo>? _onSerializedMethods; 16private readonly List<MethodInfo>? _onDeserializingMethods; 17private readonly List<MethodInfo>? _onDeserializedMethods; 27private List<MethodInfo>? GetMethodsWithAttribute( 32List<MethodInfo>? mi = null; 75private static void InvokeOnDelegate(object obj, StreamingContext context, List<MethodInfo>? methods) 82private static SerializationEventHandler? AddOnDelegate(object obj, SerializationEventHandler? handler, List<MethodInfo>? methods)
System.Runtime.Serialization.Schema (4)
System\Runtime\Serialization\Schema\CodeExporter.cs (4)
372get { return DataContract.GetXmlName(typeof(List<>)); } 378get { return _dataContractSet.GetDataContract(typeof(List<>)); } 920List<CodeTypeReference> knownTypeReferences = new List<CodeTypeReference>(); 1240baseTypeReference = GetCodeTypeReference(typeof(List<>));
System.Security.AccessControl (1)
System\Security\AccessControl\ACL.cs (1)
152private List<GenericAce> _aces;
System.Security.Claims (9)
System\Security\Claims\ClaimsIdentity.cs (7)
36private List<List<Claim>>? _externalClaims; 38private readonly List<Claim> _instanceClaims = new List<Claim>(); 148/// <para>All <see cref="Claim"/>s are copied into this instance in a <see cref="List{Claim}"/>. Each Claim is examined and if Claim.Subject != this, then Claim.Clone(this) is called before the claim is added.</para> 407internal List<List<Claim>> ExternalClaims => _externalClaims ??= new List<List<Claim>>();
System\Security\Claims\ClaimsPrincipal.cs (1)
27private readonly List<ClaimsIdentity> _identities = new List<ClaimsIdentity>();
System\Security\Claims\GenericPrincipal.cs (1)
49List<Claim> roleClaims = new List<Claim>(roles.Length);
System.Security.Cryptography (47)
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (2)
37internal static List<AttributeAsn> BuildAttributes(CryptographicAttributeObjectCollection? attributes) 39List<AttributeAsn> signedAttrs = new List<AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
105var tmpList = new List<ReadOnlyMemory<byte>>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (1)
124var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (1)
104var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (4)
142var tmpList = new List<System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn>(); 162var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 183var tmpList = new List<ReadOnlyMemory<byte>>(); 202var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.SignerInfoAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
155var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
119var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
163private readonly List<CryptographicAttributeObject> _list;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
22private List<ContentInfoAsn>? _contents;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
107List<ContentInfoAsn> authSafeData = new List<ContentInfoAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
86List<AttributeAsn> attrs = PkcsHelpers.BuildAttributes(_attributes);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (9)
15System.Collections.Generic.List<System.Security.Cryptography.Pkcs.Pkcs12SafeBag> Container)>; 28private List<Pkcs12SafeBag>? _bags; 247List<Pkcs12SafeBag> bags; 291private static List<Pkcs12SafeBag> ReadBags(ReadOnlyMemory<byte> serialized) 294List<Pkcs12SafeBag> result = ReadBagsCore(serialized, pendingContents); 298(ReadOnlyMemory<byte> nestedSerialized, Pkcs12SafeContentsBag bag, List<Pkcs12SafeBag> container) = pendingContents.Pop(); 333private static List<Pkcs12SafeBag> ReadBagsCore( 337List<SafeBagAsn> serializedBags = new List<SafeBagAsn>(); 361List<Pkcs12SafeBag> bags = new List<Pkcs12SafeBag>(serializedBags.Count);
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
113private readonly List<AsnEncodedData> _list;
System\Security\Cryptography\CryptoConfig.cs (1)
449List<MethodBase> candidates = new List<MethodBase>();
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (1)
119var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (1)
269var tmpList = new List<System.Security.Cryptography.Asn1.X509ExtensionAsn>();
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
1061List<X509ExtensionAsn> extensionAsns = new List<X509ExtensionAsn>(CertificateExtensions.Count);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (2)
18private readonly List<RevokedCertificate> _revoked; 29private CertificateRevocationListBuilder(List<RevokedCertificate> revoked)
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
88List<RevokedCertificate> list = new();
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
18private readonly List<byte[]> _encodedNames = new List<byte[]>();
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (5)
13private List<X500RelativeDistinguishedName>? _parsedAttributes; 83List<X500RelativeDistinguishedName> parsedAttributes = _parsedAttributes ??= ParseAttributes(RawData); 107List<X500RelativeDistinguishedName> parsedAttributes, 126private static List<X500RelativeDistinguishedName> ParseAttributes(byte[] rawData) 128List<X500RelativeDistinguishedName>? parsedAttributes = null;
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (1)
34private readonly List<byte[]> _encodedComponents = new List<byte[]>();
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
107private readonly List<X509Extension> _list = new List<X509Extension>();
System\Security\Cryptography\X509Certificates\X509SubjectAlternativeNameExtension.cs (7)
17private List<GeneralNameAsn>? _decoded; 65List<GeneralNameAsn> decoded = (_decoded ??= Decode(RawData)); 70private static IEnumerable<string> EnumerateDnsNames(List<GeneralNameAsn> decoded) 87List<GeneralNameAsn> decoded = (_decoded ??= Decode(RawData)); 92private static IEnumerable<IPAddress> EnumerateIPAddresses(List<GeneralNameAsn> decoded) 106private static List<GeneralNameAsn> Decode(ReadOnlySpan<byte> rawData) 114List<GeneralNameAsn> decoded = new List<GeneralNameAsn>();
System.Security.Cryptography.Cose (5)
System\Security\Cryptography\Cose\CoseMessage.cs (3)
243List<CoseSignature> signatures = DecodeCoseSignaturesArray(reader); 356private static List<CoseSignature> DecodeCoseSignaturesArray(CborReader reader) 359List<CoseSignature> signatures = new List<CoseSignature>(signaturesLength.GetValueOrDefault());
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (2)
24private readonly List<CoseSignature> _signatures; 32internal CoseMultiSignMessage(CoseHeaderMap protectedHeader, CoseHeaderMap unprotectedHeader, byte[]? content, List<CoseSignature> signatures, byte[] encodedProtectedHeader, bool isTagged)
System.Security.Cryptography.Pkcs (47)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
55var recipientInfos = new List<RecipientInfo>();
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (1)
82List<AttributeAsn> attrList = PkcsHelpers.BuildAttributes(unprotectedAttributes);
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.DecodeRecipients.cs (1)
24List<RecipientInfo> recipientInfos = new List<RecipientInfo>(numRecipients);
Internal\Cryptography\Pal\Windows\HeapBlockRetainer.cs (2)
82private readonly List<object> _mustLive; 83private List<SafeHeapAllocHandle> _blocks;
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (2)
37internal static List<AttributeAsn> BuildAttributes(CryptographicAttributeObjectCollection? attributes) 39List<AttributeAsn> signedAttrs = new List<AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
105var tmpList = new List<ReadOnlyMemory<byte>>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (1)
124var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (1)
104var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (4)
142var tmpList = new List<System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn>(); 162var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 183var tmpList = new List<ReadOnlyMemory<byte>>(); 202var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.SignerInfoAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
155var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
119var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
163private readonly List<CryptographicAttributeObject> _list;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
22private List<ContentInfoAsn>? _contents;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
107List<ContentInfoAsn> authSafeData = new List<ContentInfoAsn>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
86List<AttributeAsn> attrs = PkcsHelpers.BuildAttributes(_attributes);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (9)
15System.Collections.Generic.List<System.Security.Cryptography.Pkcs.Pkcs12SafeBag> Container)>; 28private List<Pkcs12SafeBag>? _bags; 247List<Pkcs12SafeBag> bags; 291private static List<Pkcs12SafeBag> ReadBags(ReadOnlyMemory<byte> serialized) 294List<Pkcs12SafeBag> result = ReadBagsCore(serialized, pendingContents); 298(ReadOnlyMemory<byte> nestedSerialized, Pkcs12SafeContentsBag bag, List<Pkcs12SafeBag> container) = pendingContents.Pop(); 333private static List<Pkcs12SafeBag> ReadBagsCore( 337List<SafeBagAsn> serializedBags = new List<SafeBagAsn>(); 361List<Pkcs12SafeBag> bags = new List<Pkcs12SafeBag>(serializedBags.Count);
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (1)
90var tmpList = new List<System.Security.Cryptography.Asn1.GeneralNameAsn>();
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (2)
125var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.RecipientInfoAsn>(); 145var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (1)
135var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.RecipientEncryptedKeyAsn>();
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (2)
117var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 138var tmpList = new List<ReadOnlyMemory<byte>>();
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (1)
103var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyQualifierInfo>();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (1)
184var tmpList = new List<System.Security.Cryptography.Asn1.X509ExtensionAsn>();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (1)
218var tmpList = new List<System.Security.Cryptography.Asn1.X509ExtensionAsn>();
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
116var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateAsn.xml.cs (2)
99var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.EssCertId>(); 118var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyInformation>();
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (2)
99var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.EssCertIdV2>(); 118var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyInformation>();
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
128private readonly List<CmsRecipient> _recipients;
System\Security\Cryptography\Pkcs\CmsSigner.cs (2)
244List<AttributeAsn> signedAttrs = PkcsHelpers.BuildAttributes(SignedAttributes); 384List<AttributeAsn> attrs = PkcsHelpers.BuildAttributes(UnsignedAttributes);
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
260List<SignerInfo> signerInfos = new List<SignerInfo>();
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\SignedXml.cs (2)
736List<string> safeAlgorithms = new List<string>(); 757List<string> safeAlgorithms = new List<string>();
System.Security.Permissions (1)
System\Security\Permissions\PrincipalPermission.cs (1)
140List<IDRole> idroles = null;
System.Security.Principal.Windows (8)
System\Security\Principal\IRCollection.cs (2)
20private readonly List<IdentityReference> _identities; 132internal List<IdentityReference> Identities
System\Security\Principal\WindowsIdentity.cs (6)
57private List<Claim>? _deviceClaims; 58private List<Claim>? _userClaims; 1083private unsafe void AddGroupSidClaims(List<Claim> instanceClaims) 1153private unsafe void AddPrimarySidClaim(List<Claim> instanceClaims) 1187private unsafe void AddDeviceGroupSidClaims(List<Claim> instanceClaims, TokenInformationClass tokenInformationClass) 1239private unsafe void AddTokenClaims(List<Claim> instanceClaims, TokenInformationClass tokenInformationClass, string propertyValue)
System.ServiceModel.Federation (2)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
174List<ClaimType> claimTypes = new List<ClaimType>();
System\ServiceModel\Federation\WsTrustTokenParameters.cs (1)
76List<ClaimType> claimTypes = new List<ClaimType>();
System.ServiceModel.NetFramingBase (22)
System\ServiceModel\Channels\ConnectionPool.cs (13)
75private List<TItem> PruneIfNecessary() 77List<TItem> itemsToClose = null; 91List<TKey> endpointKeysToRemove = null; 120List<TItem> itemsToClose = null; 227private readonly List<TItem> _busyConnections; 300List<TItem> idleItemsToClose = null; 317List<TItem> itemsToClose = null; 332var closeTasks = new List<Task>(itemsToClose.Count); 356private void AbortConnections(List<TItem> idleItemsToClose) 371private List<TItem> SnapshotIdleConnections() 373List<TItem> itemsToClose = new List<TItem>(); 418public virtual void Prune(List<TItem> itemsToClose) 425List<TItem> itemsToClose = null;
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (4)
13private Dictionary<string, List<ConnectionPool>> _registry; 17_registry = new Dictionary<string, List<ConnectionPool>>(); 31List<ConnectionPool> registryEntry = null; 84List<ConnectionPool> registryEntry = _registry[pool.Name];
System\ServiceModel\Channels\IdlingCommunicationPool.cs (3)
72public override void Prune(List<TItem> itemsToClose) 200List<TItem> itemsToClose = new List<TItem>(); 226public void Prune(List<TItem> itemsToClose, bool calledFromTimer)
System\ServiceModel\Security\SecurityUtilsEx.cs (2)
136List<IIdentity> identities = null; 140identities = obj as List<IIdentity>;
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\NamedPipeTransportBindingElement.cs (1)
14private readonly List<SecurityIdentifier> _allowedUsers = new List<SecurityIdentifier>();
System.ServiceModel.Primitives (122)
Internals\System\Runtime\Fx.cs (1)
250List<Type> types = new List<Type>(typeNames.Length);
Internals\System\Runtime\InputQueue.cs (1)
24private List<IQueueWaiter> _waiterList;
Internals\System\Runtime\InternalBufferManager.cs (1)
60List<BufferPool> bufferPoolList = new List<BufferPool>();
Internals\System\Xml\XmlMtomWriter.cs (1)
52private List<MimePart> _mimeParts;
System\IdentityModel\Claims\ClaimSet.cs (1)
26List<Claim> claims = new List<Claim>(2);
System\IdentityModel\Claims\X509CertificateClaimSet.cs (3)
177List<Claim> claims = new List<Claim>(); 339List<string> dnsEntries = new List<string>(); 386List<Claim> claims = new List<Claim>(2);
System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
15private List<ClaimSet> _claimSets;
System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
160List<ClaimSet> issuances = new List<ClaimSet>(1);
System\IdentityModel\SecurityUtils.cs (3)
129List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 266List<IAuthorizationPolicy> ret = new List<IAuthorizationPolicy>(authorizationPolicies.Count); 337List<IIdentity> identities = new List<IIdentity>();
System\IdentityModel\Tokens\AggregateTokenResolver.cs (1)
18private List<SecurityTokenResolver> _tokenResolvers = new List<SecurityTokenResolver>();
System\IdentityModel\Tokens\KeyInfoSerializer.cs (4)
18private readonly List<KeyIdentifierEntry> _keyIdentifierEntries; 19private readonly List<KeyIdentifierClauseEntry> _keyIdentifierClauseEntries; 20private readonly List<SerializerEntries> _serializerEntries; 21private readonly List<TokenEntry> _tokenEntries;
System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (1)
17private readonly List<SecurityKeyIdentifierClause> _clauses;
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
30List<StrEntry> strEntries = new List<StrEntry>();
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
34List<StrEntry> strEntries = new List<StrEntry>();
System\IdentityModel\Tokens\X509SecurityToken.cs (1)
75List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Channels\AddressHeaderCollection.cs (2)
87List<AddressHeader> results = new List<AddressHeader>(); 203List<AddressHeader> headerList = new List<AddressHeader>();
System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
883private List<XmlDictionaryString> _newStrings; 943private List<byte> _bytes;
System\ServiceModel\Channels\MessageFault.cs (1)
727List<FaultReasonText> translations = new List<FaultReasonText>();
System\ServiceModel\Channels\MessageHeaders.cs (1)
870List<MessageHeaderInfo> understoodHeaders = new List<MessageHeaderInfo>();
System\ServiceModel\Channels\MessageProperties.cs (3)
199List<string> keys = new List<string>(); 268List<object> values = new List<object>(); 924List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(_propertyCount);
System\ServiceModel\Channels\RequestChannel.cs (1)
15private List<IRequestBase> _outstandingRequests = new List<IRequestBase>();
System\ServiceModel\Channels\ServiceChannelFactory.cs (2)
17private List<IChannel> _channelsList; 264List<ICommunicationObject> objectList;
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
55private readonly List<long> _retransmissionWindow = new List<long>();
System\ServiceModel\Description\ServiceReflector.cs (8)
411static internal List<Type> GetInterfaces(Type service) 413List<Type> types = new List<Type>(); 463static internal List<Type> GetInheritedContractTypes(Type service) 465List<Type> types = new List<Type>(); 498List<object> attrTypeAttributes = new List<object>(); 637List<Type> types = new List<Type>(GetInheritedContractTypes(interfaceType)); 664private static List<MethodInfo> GetMethodsInternal(Type interfaceType) 666List<MethodInfo> methods = new List<MethodInfo>();
System\ServiceModel\Description\TypeLoader.cs (8)
391List<Type> knownTypes = new List<Type>(); 727List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType); 778List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType); 779List<Type> inheritedCallbackTypes = new List<Type>(); 1323List<MemberInfo> contractMembers = new List<MemberInfo>(); 1390List<MessagePartDescription> bodyPartDescriptionList = new List<MessagePartDescription>(); 1391List<MessageHeaderDescription> headerPartDescriptionList = new List<MessageHeaderDescription>(); 1597private void AddSortedParts<T>(List<T> partDescriptionList, KeyedCollection<XmlQualifiedName, T> partDescriptionCollection)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
845private List<XmlMembersMapping> _mappings = new List<XmlMembersMapping>(); 891List<XmlMembersMapping> uniqueMappings = new List<XmlMembersMapping>();
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
404List<ICommunicationObject> list = new List<ICommunicationObject>();
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (4)
25private List<IDuplexRequest> _requests; 26private List<ICorrelatorKey> _timedOutRequests; 138private List<IDuplexRequest> Requests 154private List<ICorrelatorKey> TimedOutRequests
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
25List<Attr> attrSet = new List<Attr>();
System\ServiceModel\Dispatcher\EndpointDispatcherTable.cs (1)
14private List<EndpointDispatcher> _cachedEndpoints;
System\ServiceModel\Dispatcher\FaultFormatter.cs (4)
23List<FaultContractInfo> faultContractInfoList = new List<FaultContractInfo>(); 35List<FaultContractInfo> faultContractInfoList; 183private static FaultContractInfo[] GetSortedArray(List<FaultContractInfo> faultContractInfoList) 193private static void AddInfrastructureFaults(List<FaultContractInfo> faultContractInfos)
System\ServiceModel\Dispatcher\InvokerUtil.cs (5)
55var outputParamPositions = new List<int>(); 118List<ParameterExpression> variables = new(); 122List<(Type ParameterType, ParameterExpression OutputExpression)> outputVariables = new(); 123List<ParameterExpression> invocationParameters = new(); 124List<Expression> expressions = new();
System\ServiceModel\Dispatcher\SynchronizedChannelCollection.cs (1)
50List<TChannel> items = Items;
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
586((List<MessageHeader<object>>)_attributes[headerDescription.Index]).Add(new MessageHeader<object>(null, mustUnderstand, actor, relay));
System\ServiceModel\DXD.cs (4)
121public List<XmlDictionaryString> SecureConversationDictionaryStrings = new List<XmlDictionaryString>(); 186public List<XmlDictionaryString> SecurityAlgorithmDictionaryStrings = new List<XmlDictionaryString>(); 215public List<XmlDictionaryString> Feb2005DictionaryStrings = new List<XmlDictionaryString>(); 216public List<XmlDictionaryString> Dec2005DictionaryString = new List<XmlDictionaryString>();
System\ServiceModel\EndpointAddress.cs (1)
702List<AddressHeader> headerList = new List<AddressHeader>();
System\ServiceModel\ExtensionCollection.cs (2)
61List<IExtension<T>> items = Items; 81List<IExtension<T>> items = Items;
System\ServiceModel\Security\IInitiatorSecuritySessionProtocol.cs (2)
17List<SecurityToken> GetIncomingSessionTokens(); 18void SetIncomingSessionTokens(List<SecurityToken> tokens);
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (3)
18private List<SecurityToken> _incomingSessionTokens; 73public List<SecurityToken> GetIncomingSessionTokens() 81public void SetIncomingSessionTokens(List<SecurityToken> tokens)
System\ServiceModel\Security\MessagePartSpecification.cs (3)
15private List<XmlQualifiedName> _headerTypes; 106List<XmlQualifiedName> headerTypes = specification._headerTypes; 131List<XmlQualifiedName> noDuplicates = new List<XmlQualifiedName>(_headerTypes.Count);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (2)
51private List<TokenTracker> _supportingTokenTrackers; 53private List<SecurityTokenAuthenticator> _allowedAuthenticators;
System\ServiceModel\Security\SecuritySessionClientSettings.cs (4)
404List<SecurityToken> incomingSessionTokens = new List<SecurityToken>(1); 813List<RequestSecurityTokenResponse> rstrList = new List<RequestSecurityTokenResponse>(); 950List<SecurityToken> incomingTokens = new List<SecurityToken>(1); 992List<SecurityToken> incomingTokens = new List<SecurityToken>(2);
System\ServiceModel\Security\SecurityUtils.cs (3)
437List<Claim> claims = new List<Claim>(2); 441List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 821List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\SendSecurityHeader.cs (5)
28private List<SecurityTokenParameters> _basicSupportingTokenParameters = null; 29private List<SecurityTokenParameters> _endorsingTokenParameters = null; 30private List<SecurityTokenParameters> _signedEndorsingTokenParameters = null; 31private List<SecurityTokenParameters> _signedTokenParameters = null; 224private void AddParameters(ref List<SecurityTokenParameters> list, SecurityTokenParameters item)
System\ServiceModel\Security\SendSecurityHeaderElementContainer.cs (10)
14private List<SecurityToken> _signedSupportingTokens = null; 15private List<SendSecurityHeaderElement> _basicSupportingTokens = null; 16private List<SecurityToken> _endorsingSupportingTokens = null; 17private List<SecurityToken> _endorsingDerivedSupportingTokens = null; 18private List<SecurityToken> _signedEndorsingSupportingTokens = null; 19private List<SecurityToken> _signedEndorsingDerivedSupportingTokens = null; 20private List<SendSecurityHeaderElement> _signatureConfirmations = null; 21private List<SendSecurityHeaderElement> _endorsingSignatures = null; 34private void Add<T>(ref List<T> list, T item) 53public List<SecurityToken> EndorsingSupportingTokens
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
207List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
162List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\WSKeyInfoSerializer.cs (1)
20List<SerializerEntries> serializerEntries = new List<SerializerEntries>();
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
23private readonly List<SerializerEntries> _serializerEntries; 25private readonly List<TokenEntry> _tokenEntries = new List<TokenEntry>(); 512private List<XmlDictionaryString> _dictionaryStrings; 514public CollectionDictionary(List<XmlDictionaryString> dictionaryStrings)
System\ServiceModel\Security\WSTrust.cs (2)
165private List<SecurityTokenAuthenticator> _entropyAuthenticators; 396List<RequestSecurityTokenResponse> rstrCollection = new List<RequestSecurityTokenResponse>(2);
System\ServiceModel\SynchronizedCollection.cs (1)
60protected List<T> Items { get; }
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
54internal SynchronizedReadOnlyCollection(object syncRoot, List<T> list, bool makeCopy)
System\ServiceModel\XmlBuffer.cs (1)
14private List<Section> _sections;
System.ServiceModel.Primitives.Tests (26)
Channels\CommunicationObjectTest.cs (9)
20List<string> openMethodsCalled = new List<string>(); 21List<string> closeMethodsCalled = new List<string>(); 51List<string> openMethodsCalled = new List<string>(); 52List<string> closeMethodsCalled = new List<string>(); 86List<string> closeMethodsCalled = new List<string>(); 112List<string> openEventsFired = new List<string>(); 113List<string> closeEventsFired = new List<string>(); 142List<string> openEventsFired = new List<string>(); 143List<string> closeEventsFired = new List<string>();
Channels\CustomChannelTest.cs (12)
24List<string> channelOpenMethodsCalled = new List<string>(); 25List<string> channelCloseMethodsCalled = new List<string>(); 26List<string> factoryOpenMethodsCalled = new List<string>(); 27List<string> factoryCloseMethodsCalled = new List<string>(); 114List<string> channelOpenMethodsCalled = new List<string>(); 115List<string> channelCloseMethodsCalled = new List<string>(); 116List<string> factoryOpenMethodsCalled = new List<string>(); 117List<string> factoryCloseMethodsCalled = new List<string>(); 316List<string> channelOpenMethodsCalled = new List<string>(); 317List<string> channelCloseMethodsCalled = new List<string>(); 318List<string> factoryOpenMethodsCalled = new List<string>(); 319List<string> factoryCloseMethodsCalled = new List<string>();
ServiceModel\MessageContractTest.4.4.0.cs (5)
147Dictionary<string, List<string>> headers = new Dictionary<string, List<string>>(); 168List<string> values = null; 301private static void ValidateHeader(Dictionary<string, List<string>> headers, string name, params string[] values) 303List<string> headerValues;
System.ServiceModel.Syndication (1)
System\ServiceModel\XmlBuffer.cs (1)
12private readonly List<Section> _sections;
System.Speech (124)
Internal\GrammarBuilding\BuilderElements.cs (2)
197internal List<GrammarBuilderBase> Items 273private readonly List<GrammarBuilderBase> _items = new();
Internal\GrammarBuilding\IdentifierCollection.cs (1)
48protected List<string> _identifiers;
Internal\GrammarBuilding\ItemElement.cs (1)
37internal ItemElement(List<GrammarBuilderBase> builders, int minRepeat, int maxRepeat)
Internal\ObjectToken\ObjectTokenCategory.cs (3)
48internal List<ObjectToken> FindMatchingTokens(string? requiredAttributes, string? optionalAttributes) 50var objectTokenList = new List<ObjectToken>(); 91List<ObjectToken> objectTokenList = FindMatchingTokens(null, null);
Internal\ObjectToken\RegistryDataKey.cs (1)
397List<string> valueNames = new();
Internal\SapiAttributeParser.cs (2)
35internal static List<SpeechAudioFormatInfo> GetAudioFormatsFromString(string valueString) 37List<SpeechAudioFormatInfo> formatList = new();
Internal\SapiInterop\EventNotify.cs (1)
82List<SpeechEvent> speechEvents = new();
Internal\SapiInterop\SapiRecoInterop.cs (1)
454List<GCHandle> handles = new();
Internal\SeekableReadStream.cs (1)
236private List<byte> _buffer = new(); // Data cached from start of stream onwards.
Internal\SrgsCompiler\Arc.cs (1)
397internal void CloneTags(Arc arc, List<Tag> _tags, Dictionary<Tag, Tag> endArcs, Backend? be)
Internal\SrgsCompiler\ArcList.cs (2)
20internal List<Arc> ToList() 22List<Arc> collection = new();
Internal\SrgsCompiler\BackEnd.cs (7)
57List<State> sortedStates = new(_states); 531List<State> CloneStack = new(); // States to process 981private CfgGrammar.CfgSerializedHeader BuildHeader(List<State> sortedStates, int cBasePath, ushort iSemanticGlobals, out int cArcs, out float[]? pWeights) 1146private Rule CloneState(State srcToState, List<State> CloneStack, Dictionary<State, State> srcToDestHash) 1253private void CheckLeftRecursion(List<State> states) 1361private List<Rule> _rules = new(); 1378private List<Tag> _tags = new();
Internal\SrgsCompiler\CustomGrammar.cs (2)
144internal List<Rule> _rules = new(); 165internal List<string> _types = new();
Internal\SrgsCompiler\GrammarElement.cs (2)
197internal List<Rule> UndefRules 361private List<Rule> _undefRules = new();
Internal\SrgsCompiler\Graph.cs (13)
174List<Arc> arcs = srcState.InArcs.ToList(); 221List<Arc> arcs = srcState.OutArcs.ToList(); 368List<Arc> tempList = new(); 399List<Arc> tempList = new(); 424List<Arc> tempList = new(); 459List<Arc>? arcsToMerge = null; 601List<Arc>? arcsToMerge = null; 827private static void MergeIdenticalTransitions(ArcList arcs, List<Arc> identicalWords) 833List<List<Arc>>? segmentsToDelete = null; 845segmentsToDelete ??= new List<List<Arc>>(); 868foreach (List<Arc> segmentToDelete in segmentsToDelete) 892private static void MergeIdenticalTransitions(List<Arc> identicalWords)
Internal\SrgsCompiler\Rule.cs (1)
288internal List<Rule> _listRules = new();
Internal\SrgsCompiler\RuleRef.cs (2)
31internal RuleRef(ParseElementCollection parent, Backend backend, Uri uri, List<Rule> undefRules, string? semanticKey, string? initParameters) 141private static Rule GetRuleRef(Backend backend, string sRuleId, List<Rule> undefRules)
Internal\SrgsCompiler\SRGSCompiler.cs (2)
34List<CustomGrammar.CfgResource> cfgResources = new(); 84List<CustomGrammar.CfgResource> cfgResources = new();
Internal\SrgsCompiler\State.cs (1)
56List<Arc> outArcs = _outArcs.ToList();
Internal\SrgsParser\SrgsDocumentParser.cs (1)
390List<SrgsElement> list = new();
Internal\SrgsParser\XmlParser.cs (4)
1294List<IPropertyTag>? tags = null; 1863List<string> ruleNames = new(); 1901private List<string> _rules = new(); 1903private List<ForwardReference> _scripts = new();
Internal\StringBlob.cs (2)
203private List<string> _refStrings = new(); 206private List<int> _offsetStrings = new();
Internal\Synthesis\AudioDeviceOut.cs (2)
475private List<InItem> _queueIn = new(); 477private List<InItem> _queueOut = new();
Internal\Synthesis\ConvertTextFrag.cs (1)
14internal static bool ToSapi(List<TextFragment> ssmlFrags, ref GCHandle sapiFragLast)
Internal\Synthesis\ISSmlParser.cs (4)
17object ProcessSpeak(string sVersion, string? sBaseUri, CultureInfo? culture, List<SsmlXmlAttribute> extraNamespace); 30object ProcessVoice(string? name, CultureInfo? culture, VoiceGender gender, VoiceAge age, int variant, bool fNewCulture, List<SsmlXmlAttribute>? extraNamespace); 36void StartProcessUnknownAttributes(object voice, ref FragmentState fragmentState, string? element, List<SsmlXmlAttribute> extraAttributes); 37void EndProcessUnknownAttributes(object voice, ref FragmentState fragmentState, string? element, List<SsmlXmlAttribute> extraAttributes);
Internal\Synthesis\SpeakInfo.cs (1)
102private List<SpeechSeg> _listSeg = new();
Internal\Synthesis\SpeechSeg.cs (2)
31internal List<TextFragment> FragmentList 86private List<TextFragment> _textFragments = new();
Internal\Synthesis\SSmlParser.cs (22)
90List<SsmlXmlAttribute> extraSpeakAttributes = new(); 191List<SsmlXmlAttribute>? extraAttributes = null; 217private static void ProcessElement(XmlReader reader, ISsmlParser engine, string? sElement, SsmlElement possibleElements, SsmlAttributes ssmAttributesParent, bool fIgnore, List<SsmlXmlAttribute>? extraAttributes) 300List<SsmlXmlAttribute>? extraAttributes = null; 361List<SsmlXmlAttribute>? extraAttributes = null; 436List<SsmlXmlAttribute>? extraAttributes = null; 492List<SsmlXmlAttribute>? extraAttributes = null; 552List<SsmlXmlAttribute>? extraAttributes = null; 649List<SsmlXmlAttribute>? extraAttributes = null; 717List<SsmlXmlAttribute>? extraAttributes = null; 839List<SsmlXmlAttribute>? extraAttributes = null; 922List<SsmlXmlAttribute>? extraAttributes = null; 991List<SsmlXmlAttribute>? extraAttributes = null; 1066List<SsmlXmlAttribute>? extraAttributes = null; 1067List<SsmlXmlAttribute>? extraAttributesVoice = null; 1068List<SsmlXmlAttribute>? localUnknownNamespaces = null; 1222List<SsmlXmlAttribute>? extraAttributes = null; 1523List<ContourPoint> points = new(); 1823public SsmlAttributes(object voice, List<SsmlXmlAttribute> unknownNamespaces) 1836internal List<SsmlXmlAttribute> _unknownNamespaces; 1838internal bool AddUnknowAttribute(SsmlXmlAttribute attribute, ref List<SsmlXmlAttribute>? extraAttributes) 1852internal bool AddUnknowAttribute(XmlReader reader, ref List<SsmlXmlAttribute>? extraAttributes)
Internal\Synthesis\TextFragmentEngine.cs (6)
18internal TextFragmentEngine(SpeakInfo speakInfo, string ssmlText, bool pexml, ResourceLoader resourceLoader, List<LexiconEntry> lexicons) 30public object ProcessSpeak(string sVersion, string? sBaseUri, CultureInfo? culture, List<SsmlXmlAttribute> extraNamespace) 173public object ProcessVoice(string? name, CultureInfo? culture, VoiceGender gender, VoiceAge age, int variant, bool fNewCulture, List<SsmlXmlAttribute>? extraNamespace) 195public void StartProcessUnknownAttributes(object voice, ref FragmentState fragmentState, string? element, List<SsmlXmlAttribute> extraAttributes) 208public void EndProcessUnknownAttributes(object voice, ref FragmentState fragmentState, string? element, List<SsmlXmlAttribute> extraAttributes) 312private List<LexiconEntry> _lexicons;
Internal\Synthesis\TextWriterEngine.cs (4)
28public object ProcessSpeak(string sVersion, string? baseUri, CultureInfo? culture, List<SsmlXmlAttribute> extraNamespace) 208public object ProcessVoice(string? name, CultureInfo? culture, VoiceGender gender, VoiceAge age, int variant, bool fNewCulture, List<SsmlXmlAttribute>? extraNamespace) 271public void StartProcessUnknownAttributes(object? voice, ref FragmentState fragmentState, string? sElement, List<SsmlXmlAttribute> extraAttributes) 280public void EndProcessUnknownAttributes(object? voice, ref FragmentState fragmentState, string? sElement, List<SsmlXmlAttribute> extraAttributes)
Internal\Synthesis\TTSEngineProxy.cs (3)
20internal abstract void Speak(List<TextFragment> frags, byte[] wfx); 59internal override void Speak(List<TextFragment> frags, byte[] wfx) 146internal override void Speak(List<TextFragment> frags, byte[] wfx)
Internal\Synthesis\TTSVoice.cs (2)
45internal void UpdateLexicons(List<LexiconEntry> lexicons) 153private List<LexiconEntry> _lexicons = new();
Internal\Synthesis\VoiceSynthesis.cs (9)
751List<LexiconEntry> lexicons = new(); 849private void SpeakText(SpeakInfo speakInfo, Prompt prompt, List<LexiconEntry> lexicons) 1189List<InstalledVoice> tokens = new(_installedVoices); 1226private static InstalledVoice MatchVoice(InstalledVoice defaultTokenInfo, CultureInfo? culture, VoiceGender gender, VoiceAge age, int variant, List<InstalledVoice> tokensInfo) 1465private static List<InstalledVoice> BuildInstalledVoices(VoiceSynthesis voiceSynthesizer) 1467List<InstalledVoice> voices = new(); 1773private List<InstalledVoice> _installedVoices; 1774private static List<InstalledVoice>? s_allVoices; 1791private List<LexiconEntry> _lexicons = new();
Recognition\GrammarBuilder.cs (1)
128List<GrammarBuilderBase> items = builder == this ? builder.Clone().InternalBuilder.Items : builder.InternalBuilder.Items;
Recognition\RecognizerBase.cs (2)
166List<Grammar> snapshotGrammars; 2963private List<Grammar> _grammars;
Recognition\SpeechRecognitionEngine.cs (1)
108List<RecognizerInfo> recognizers = new();
Recognition\SrgsGrammar\SrgsGrammar.cs (1)
686private List<XmlParser.ForwardReference> _scriptsForwardReference = new();
Result\RecognizedPhrase.cs (7)
162List<RecognizedWordUnit> wordList = new(countOfElements); 252List<RecognizedPhrase> homophones = new(_recoResult.Alternates.Count); 424List<ResultPropertiesRef> propertyList = BuildRecoPropertyTree(_serializedPhrase, buffer, ruleTree, words, _isSapi53Header); 454private static List<ResultPropertiesRef> BuildRecoPropertyTree(SPSERIALIZEDPHRASE serializedPhrase, IntPtr phraseBuffer, RuleNode ruleTree, IList<RecognizedWordUnit> words, bool isSapi53Header) 456List<ResultPropertiesRef> propertyList = new(); 466private static SemanticValue RecursiveBuildSemanticProperties(IList<RecognizedWordUnit> words, List<ResultPropertiesRef> properties, RuleNode ruleTree, GrammarOptions semanticTag, ref Collection<SemanticValue>? dupItems) 543private static void RecursivelyExtractSemanticProperties(List<ResultPropertiesRef> propertyList, int semanticsOffset, IntPtr phraseBuffer, RuleNode ruleTree, IList<RecognizedWordUnit> words, bool isSapi53Header)
Synthesis\InstalledVoice.cs (2)
68internal static InstalledVoice? Find(List<InstalledVoice> list, VoiceInfo voiceId) 80internal static InstalledVoice? FirstEnabled(List<InstalledVoice> list, CultureInfo culture)
Synthesis\PromptBuilder.cs (1)
989private List<Element> _elements = new();
System.Text.Json (109)
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (3)
69internal static void StableSortByKey<T, TKey>(this List<T> items, Func<T, TKey> keySelector) 113var nodes = new List<T> { entryNode }; // the integer-to-node mapping 115var adjacency = new List<bool[]?>(); // the growable adjacency matrix
src\runtime\src\libraries\System.Text.Json\Common\ReflectionExtensions.cs (1)
330var results = new List<Type>();
System\Text\Json\Nodes\JsonArray.cs (11)
24private List<JsonNode?>? _list; 76GetUnderlyingRepresentation(out List<JsonNode?>? list, out JsonElement? jsonElement); 108List<JsonNode?> currentList = List; 109List<JsonNode?> otherList = array.List; 151var list = new List<JsonNode?>(items); 163List<JsonNode?> list = new(items.Length); 227private List<JsonNode?> List => _list ?? InitializeList(); 268GetUnderlyingRepresentation(out List<JsonNode?>? list, out JsonElement? jsonElement); 294private List<JsonNode?> InitializeList() 296GetUnderlyingRepresentation(out List<JsonNode?>? list, out JsonElement? jsonElement); 332private void GetUnderlyingRepresentation(out List<JsonNode?>? list, out JsonElement? jsonElement)
System\Text\Json\Nodes\JsonArray.IList.cs (2)
34List<JsonNode?>? list = _list; 166List<JsonNode?> list = List;
System\Text\Json\Schema\JsonSchema.cs (3)
61public List<KeyValuePair<string, JsonSchema>>? Properties { get; set { VerifyMutable(); field = value; } } 63public List<string>? Required { get; set { VerifyMutable(); field = value; } } 73public List<JsonSchema>? AnyOf { get; set { VerifyMutable(); field = value; } }
System\Text\Json\Schema\JsonSchemaExporter.cs (9)
93List<JsonDerivedType> derivedTypes = new(polyOptions.DerivedTypes); 104List<JsonSchema>? anyOf = new(derivedTypes.Count); 193List<JsonSchema> anyOf = schema.AnyOf; 218List<KeyValuePair<string, JsonSchema>>? properties = null; 219List<string>? required = null; 336List<KeyValuePair<string, JsonSchema>>? dictProps = null; 337List<string>? dictRequired = null; 365List<JsonSchema>? unionAnyOf = new(unionCases.Count); 521private readonly List<string> _currentPath = [];
System\Text\Json\Serialization\Attributes\JsonObjectCreationHandlingAttribute.cs (1)
25/// <see cref="IEnumerable{T}"/> has runtime value of type <see cref="List{T}"/> it will not be populated
System\Text\Json\Serialization\ConfigurationList.cs (2)
17protected readonly List<TItem> _list; 72public List<TItem>.Enumerator GetEnumerator() => _list.GetEnumerator();
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (3)
18((List<TElement>)state.Current.ReturnValue!).Add(value); 30List<TElement> list = (List<TElement>)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (1)
162public readonly List<TElement> _buffer = new();
System\Text\Json\Serialization\Converters\Collection\ICollectionOfTConverter.cs (1)
43if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(List<TElement>)))
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs (2)
18private readonly bool _isDeserializable = typeof(TCollection).IsAssignableFrom(typeof(List<object?>)); 22((List<object?>)state.Current.ReturnValue!).Add(value);
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (1)
56else if ((actualTypeToConvert = typeToConvert.GetCompatibleGenericBaseClass(typeof(List<>))) != null)
System\Text\Json\Serialization\Converters\Collection\IEnumerableOfTConverter.cs (2)
16private readonly bool _isDeserializable = typeof(TCollection).IsAssignableFrom(typeof(List<TElement>)); 20((List<TElement>)state.Current.ReturnValue!).Add(value);
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (1)
82if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(List<object?>)))
System\Text\Json\Serialization\Converters\Collection\IListOfTConverter.cs (1)
43if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(List<TElement>)))
System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverter.cs (2)
16((List<TElement>)state.Current.ReturnValue!).Add(value); 34state.Current.ReturnValue = creator((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs (2)
12where TCollection : List<TElement> 38List<TElement> list = value;
System\Text\Json\Serialization\Converters\Collection\MemoryConverter.cs (2)
32((List<T>)state.Current.ReturnValue!).Add(value); 43Memory<T> memory = ((List<T>)state.Current.ReturnValue!).ToArray().AsMemory();
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (2)
32((List<T>)state.Current.ReturnValue!).Add(value); 43ReadOnlyMemory<T> memory = ((List<T>)state.Current.ReturnValue!).ToArray().AsMemory();
System\Text\Json\Serialization\Converters\Collection\RootLevelListConverter.cs (4)
14internal sealed class RootLevelListConverter<T> : JsonResumableConverter<List<T?>> 26internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out List<T?>? value) 32var results = (List<T?>?)state.Current.ReturnValue;
System\Text\Json\Serialization\Converters\FSharp\FSharpListConverter.cs (2)
25((List<TElement>)state.Current.ReturnValue!).Add(value); 37state.Current.ReturnValue = _listConstructor((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs (3)
27((List<Tuple<TKey, TValue>>)state.Current.ReturnValue!).Add(new Tuple<TKey, TValue>(key, value)); 41List<Tuple<TKey, TValue>> listToConvert = (List<Tuple<TKey, TValue>>)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\FSharp\FSharpSetConverter.cs (2)
25((List<TElement>)state.Current.ReturnValue!).Add(value); 37state.Current.ReturnValue = _setConstructor((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (2)
607private List<EnumFieldInfo>? _conflictingFields; 627List<EnumFieldInfo> conflictingFields = _conflictingFields ??= [];
System\Text\Json\Serialization\JsonConverterFactory.cs (1)
13/// This is useful for converters supporting generics, such as a converter for <see cref="System.Collections.Generic.List{T}"/>.
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (7)
145private static JsonTypeInfo<List<T?>> GetOrAddListTypeInfoForRootLevelValueMode<T>(JsonTypeInfo<T> elementTypeInfo) 149return (JsonTypeInfo<List<T?>>)elementTypeInfo._asyncEnumerableRootLevelValueTypeInfo; 153var listTypeInfo = new JsonTypeInfo<List<T?>>(converter, elementTypeInfo.Options) 163private static JsonTypeInfo<List<T?>> GetOrAddListTypeInfoForArrayMode<T>(JsonTypeInfo<T> elementTypeInfo) 167return (JsonTypeInfo<List<T?>>)elementTypeInfo._asyncEnumerableArrayTypeInfo; 170var converter = new ListOfTConverter<List<T>, T>(); 171var listTypeInfo = new JsonTypeInfo<List<T?>>(converter, elementTypeInfo.Options)
System\Text\Json\Serialization\JsonSerializer.Read.Pipe.cs (5)
312JsonTypeInfo<List<T?>> listTypeInfo; 328JsonTypeInfo<List<T?>> listTypeInfo, 349out List<T?>? _); 353var list = (List<T?>)returnValue;
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (5)
467JsonTypeInfo<List<T?>> listTypeInfo; 483JsonTypeInfo<List<T?>> listTypeInfo, 505out List<T?>? _); 509var list = (List<T?>)returnValue;
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
480/// <see cref="IEnumerable{T}"/> but it is assigned <see cref="List{T}"/> it will not be populated
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (15)
93List<PocoObjectCase> pocoObjectCaseList = []; 121Dictionary<byte[], List<PocoPropertyClassifierInfo>> pocoPropertyIndex = new(JsonHelpers.ByteArrayOrdinalComparer.Instance); 122Dictionary<string, List<PocoPropertyClassifierInfo>>? caseInsensitivePocoPropertyIndex = null; 148Dictionary<TKey, List<PocoPropertyClassifierInfo>> index, 153if (!index.TryGetValue(key, out List<PocoPropertyClassifierInfo>? matches)) 168List<PocoObjectCase> pocoObjectCases, 256List<PocoPropertyClassifierInfo> properties = new(typeInfo.Properties.Count); 294List<PocoObjectCase> pocoObjectCases) 329private readonly Dictionary<byte[], List<PocoPropertyClassifierInfo>> _pocoPropertyIndex; 330private readonly Dictionary<string, List<PocoPropertyClassifierInfo>>? _caseInsensitivePocoPropertyIndex; 339Dictionary<byte[], List<PocoPropertyClassifierInfo>> pocoPropertyIndex, 340Dictionary<string, List<PocoPropertyClassifierInfo>>? caseInsensitivePocoPropertyIndex, 349List<int>? disallowUnmappedPropertiesPocoCaseIndices = null; 545out List<PocoPropertyClassifierInfo>? propertyMatches)) 564out List<PocoPropertyClassifierInfo>? caseInsensitivePropertyMatches))
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
369List<Type> matchingBases = new();
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (2)
41private readonly List<UnionCaseEntry> _caseEntries = new(); 488List<Type>? relatedTypes = null;
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Collections.cs (2)
28/// Creates serialization metadata for types assignable to <see cref="List{T}"/>. 39where TCollection : List<TElement>
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (3)
722/// For example, for a property returning <see cref="List{T}"/> where T is a string, 1514List<JsonPropertyInfo> propertyCache = new(properties.Count); 1623List<JsonParameterInfo> parameterCache = new(ParameterCount);
System\Text\Json\Serialization\Metadata\PropertyRefCacheBuilder.cs (1)
15private readonly List<PropertyRef> _propertyRefs = [];
System\Text\Json\Serialization\ReferenceHandler.cs (1)
41/// 5) For enumerable types, such as <see cref="List{T}"/>, the JSON array must be nested within a JSON object containing an `$id` and `$values` metadata property, in that order.
System.Text.Json.SourceGeneration (60)
Helpers\KnownTypeSymbols.cs (1)
37public INamedTypeSymbol? ListOfTType => GetOrResolveType(typeof(List<>), ref _ListOfTType);
Helpers\RoslynExtensions.cs (6)
222public static List<ITypeParameterSymbol> GetAllTypeParameters(this INamedTypeSymbol typeDef) 224var result = new List<ITypeParameterSymbol>(); 229static void AppendEnclosing(INamedTypeSymbol? enclosing, List<ITypeParameterSymbol> list) 648var list = new List<INamedTypeSymbol>(); 871public static List<ITypeSymbol>? GetClosedDerivedTypes(this INamedTypeSymbol closedType) 874List<ITypeSymbol>? derivedTypes = null;
JsonSourceGenerator.Emitter.cs (6)
204private static List<string>? GetContextExperimentalDiagnosticIds(ContextGenerationSpec contextSpec) 227var sorted = new List<string>(ids); 1103Dictionary<string, List<GenericAccessorEntry>>? genericAccessorEntries = null; 1135if (!genericAccessorEntries.TryGetValue(key, out List<GenericAccessorEntry>? entries)) 1248foreach (KeyValuePair<string, List<GenericAccessorEntry>> kvp in genericAccessorEntries) 1250List<GenericAccessorEntry> entries = kvp.Value;
JsonSourceGenerator.Parser.cs (42)
62public List<Diagnostic> Diagnostics { get; } = new(); 126out List<TypeToGenerate>? rootSerializableTypes, 147if (!TryGetNestedTypeDeclarations(contextClassDeclaration, semanticModel, cancellationToken, out List<string>? classDeclarationList)) 190private static bool TryGetNestedTypeDeclarations(ClassDeclarationSyntax contextClassSyntax, SemanticModel semanticModel, CancellationToken cancellationToken, [NotNullWhen(true)] out List<string>? typeDeclarations) 320out List<TypeToGenerate>? rootSerializableTypes, 408List<TypeRef>? converters = null; 409List<TypeRef>? typeClassifiers = null; 693List<PropertyGenerationSpec>? propertySpecs = null; 694List<int>? fastPathPropertyIndices = null; 699List<PropertyInitializerGenerationSpec>? propertyInitializerSpecs = null; 837List<(ITypeSymbol CaseType, bool IsNullable)> unionCaseTypes = GetUnionCaseTypes(namedUnionType); 843var resolvedUnionCaseSpecs = new List<UnionCaseSpec>(unionCaseTypes.Count); 992List<DerivedTypeSpec>? derivedTypes = null; 1179List<ITypeSymbol>? closedDerivedTypes = closedBaseType.GetClosedDerivedTypes(); 1232ref List<DerivedTypeSpec>? derivedTypes, 1306List<ITypeSymbol> closedTypeDerivedTypes, 1309ref List<DerivedTypeSpec>? derivedTypes) 1372List<INamedTypeSymbol> matchingBases = derivedDefinition 1385List<ITypeParameterSymbol> requiredParams = derivedDefinition.GetAllTypeParameters(); 1620List<(ITypeSymbol CaseType, bool IsNullable)> caseTypes = GetUnionCaseTypes(namedType); 1636private List<(ITypeSymbol CaseType, bool IsNullable)> GetUnionCaseTypes(INamedTypeSymbol namedType) 1640var caseTypes = new List<ITypeSymbol>(); 1675List<ITypeSymbol> sorted = SortCaseTypesTopologically(caseTypes); 1676var result = new List<(ITypeSymbol, bool)>(sorted.Count); 1696private static bool[] ComputeUnionSwitchArmRoles(List<(ITypeSymbol CaseType, bool IsNullable)> caseTypes) 1733private List<ITypeSymbol> SortCaseTypesTopologically(List<ITypeSymbol> caseTypes) 1747var sortedCaseTypes = new List<ITypeSymbol>(caseTypes.Count); 1770List<ITypeSymbol>? parentTypes = null; 1784private void EmitUnionAmbiguityDiagnostics(INamedTypeSymbol unionType, List<ITypeSymbol> caseTypes, Location? location) 1787Dictionary<JsonValueType, List<string>> valueTypeToTypes = new(); 1802if (!valueTypeToTypes.TryGetValue(valueType, out List<string>? typeNames)) 1812foreach (KeyValuePair<JsonValueType, List<string>> kvp in valueTypeToTypes) 2189private List<PropertyGenerationSpec> ParsePropertyGenerationSpecs( 2196out List<int>? fastPathPropertyIndices, 2200List<PropertyGenerationSpec> properties = new(); 2308public readonly List<int> Properties = new(); 2884private List<PropertyInitializerGenerationSpec>? ParsePropertyInitializers( 2886List<PropertyGenerationSpec>? properties, 2896List<PropertyInitializerGenerationSpec>? propertyInitializers = null; 3072var typeChain = new List<INamedTypeSymbol>(); 3259if (namedType.GetAllTypeArgumentsInScope() is List<ITypeSymbol> typeArgsInScope)
src\runtime\src\libraries\Common\src\SourceGenerators\TypeModelHelper.cs (2)
13public static List<ITypeSymbol>? GetAllTypeArgumentsInScope(this INamedTypeSymbol type) 20List<ITypeSymbol>? args = null;
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (3)
69internal static void StableSortByKey<T, TKey>(this List<T> items, Func<T, TKey> keySelector) 113var nodes = new List<T> { entryNode }; // the integer-to-node mapping 115var adjacency = new List<bool[]?>(); // the growable adjacency matrix
System.Text.RegularExpressions (112)
System\Text\RegularExpressions\MatchCollection.cs (1)
60private readonly List<Match> _matches;
System\Text\RegularExpressions\Regex.Cache.cs (1)
75private static readonly List<Node> s_cacheList = new List<Node>(DefaultMaxCacheSize);
System\Text\RegularExpressions\Regex.Debug.cs (1)
55List<string> results = new(k);
System\Text\RegularExpressions\Regex.Split.cs (2)
299regex.RunAllMatchesWithCallback(input, startat, ref state, static (ref (List<string> results, int prevat, string input, int count) state, Match match) => 327regex.RunAllMatchesWithCallback(input, startat, ref state, static (ref (List<string> results, int prevat, string input, int count) state, Match match) =>
System\Text\RegularExpressions\RegexCharClass.cs (11)
187private List<(char First, char Last)>? _rangelist; 222private RegexCharClass(bool negate, List<(char First, char Last)>? ranges, StringBuilder? categories, RegexCharClass? subtraction) 274private List<(char First, char Last)> EnsureRangeList() => 284List<(char First, char Last)> rangeList = EnsureRangeList(); 350List<(char First, char Last)>? rangeList = _rangelist; 1466List<(char First, char Last)>? ranges = ComputeRanges(charClass.AsSpan(pos)); 1499public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set) 1505List<(char First, char Last)>? ranges = null; 1648List<(char First, char Last)>? rangelist = current._rangelist; 1687List<(char First, char Last)>? rangelist = _rangelist; 1868var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
System\Text\RegularExpressions\RegexCompiler.cs (3)
123protected List<object>? _searchValues; 871List<RegexFindOptimizations.FixedDistanceSet>? sets = _regexTree.FindOptimizations.FixedDistanceSets; 6516List<object> list = _searchValues ??= new();
System\Text\RegularExpressions\RegexFindOptimizations.cs (4)
186List<FixedDistanceSet>? fixedDistanceSets = RegexPrefixAnalyzer.FindFixedDistanceSets(root, thorough: !interpreter); 313public List<FixedDistanceSet>? FixedDistanceSets { get; } 339private static unsafe (string String, int Distance)? FindFixedDistanceString(List<FixedDistanceSet> fixedDistanceSets) 742List<FixedDistanceSet> sets = FixedDistanceSets!;
System\Text\RegularExpressions\RegexNode.cs (37)
19/// <remarks>null if no children, a <see cref="RegexNode"/> if one child, or a <see cref="List{RegexNode}"/> if multiple children.</remarks> 141((List<RegexNode>)Children!).Reverse(); 753List<RegexNode>? branches = child.Children as List<RegexNode>; 1133List<RegexNode> children = (List<RegexNode>)Children!; 1145if (at.Children is List<RegexNode> atChildren) 1242Debug.Assert(alternation.Children is List<RegexNode> { Count: >= 2 }); 1243var children = (List<RegexNode>)alternation.Children; 1305((List<RegexNode>)children[i].Children!).RemoveAt(0); 1343var children = (List<RegexNode>)node.Children!; 1385Debug.Assert(alternation.Children is List<RegexNode> { Count: >= 2 }); 1386var children = (List<RegexNode>)alternation.Children; 1785Debug.Assert(Children is List<RegexNode>); 1791List<RegexNode> children = (List<RegexNode>)Children!; 1804if (at.Children is List<RegexNode> atChildren) 1868Debug.Assert(Children is List<RegexNode>); 1870var children = (List<RegexNode>)Children!; 2076Debug.Assert(Children is List<RegexNode>); 2077var children = (List<RegexNode>)Children; 2710var peers = (List<RegexNode>)parent.Children!; 2808var peers = (List<RegexNode>)parent.Children!; 3341((List<RegexNode>)Children).Add(newChild); 3347Debug.Assert(Children is List<RegexNode>); 3353((List<RegexNode>)Children).Insert(index, newChild); 3379((List<RegexNode>)Children)[index] = newChild; 3383public RegexNode Child(int i) => Children is RegexNode child ? child : ((List<RegexNode>)Children!)[i]; 3392if (Children is List<RegexNode> children) 3465var stack = new List<int>();
System\Text\RegularExpressions\RegexParser.cs (3)
45private List<string>? _capnamelist; 583List<RegexCharClass?>? parents = null; 2058List<string>? oldcapnamelist;
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (9)
34List<StringBuilder> results = [new StringBuilder()]; 57static unsafe bool FindPrefixesCore(RegexNode node, List<StringBuilder> results, bool ignoreCase) 254List<StringBuilder>? allBranchResults = null; 255List<StringBuilder>? alternateBranchResults = [new StringBuilder()]; 511public static unsafe List<RegexFindOptimizations.FixedDistanceSet>? FindFixedDistanceSets(RegexNode root, bool thorough) 517var results = new List<RegexFindOptimizations.FixedDistanceSet>(); 586static bool TryFindRawFixedSets(RegexNode node, List<RegexFindOptimizations.FixedDistanceSet> results, ref int distance, bool thorough) 716var localResults = new List<RegexFindOptimizations.FixedDistanceSet>(); 788public static void SortFixedDistanceSetsByQuality(List<RegexFindOptimizations.FixedDistanceSet> results) =>
System\Text\RegularExpressions\Symbolic\BDD.cs (2)
248var nonterminals = new List<BDD>[Ordinal + 1]; 249var sorted = new List<BDD>();
System\Text\RegularExpressions\Symbolic\BDDRangeConverter.cs (2)
73var merged = new List<(uint, uint)>(); 168var ranges1 = new List<(uint, uint)>();
System\Text\RegularExpressions\Symbolic\CharSetSolver.cs (1)
79internal BDD CreateBDDFromRanges(List<(char Lower, char Upper)> ranges)
System\Text\RegularExpressions\Symbolic\MatchingState.cs (1)
90internal List<(SymbolicRegexNode<TSet> Node, DerivativeEffect[] Effects)> NfaNextWithEffects(SymbolicRegexBuilder<TSet> builder, TSet minterm, uint nextCharKind)
System\Text\RegularExpressions\Symbolic\MintermGenerator.cs (3)
28public static List<TSet> GenerateMinterms(ISolver<TSet> solver, HashSet<TSet> sets) 88internal List<TSet> GetLeafSets() 90var leaves = new List<TSet>();
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (2)
345List<BDD> conditions = new(); 361List<(char First, char Last)>? ranges = RegexCharClass.ComputeRanges(set);
System\Text\RegularExpressions\Symbolic\SparseIntMap.cs (3)
15private readonly List<KeyValuePair<int, T>> _dense = new(); 25public List<KeyValuePair<int, T>> Values => _dense; 36List<KeyValuePair<int, T>> dense = _dense;
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (2)
150internal SymbolicRegexNode<TSet> Alternate(List<SymbolicRegexNode<TSet>> nodes) 337List<SymbolicRegexNode<TSet>> concatElements = node.ToList();
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (5)
407List<int> targetsList = []; 408ForEachNfaState(targetNode, nextCharKind, targetsList, static (int nfaId, List<int> targetsList) => 433List<(SymbolicRegexNode<TSet> Node, DerivativeEffect[] Effects)>? transition = coreState.NfaNextWithEffects(_builder, minterm, nextCharKind); 436List<(int, DerivativeEffect[])> targetsList = []; 440static (int nfaId, (List<(int, DerivativeEffect[])> Targets, DerivativeEffect[] Effects) args) =>
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (5)
24Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> transitions = GatherTransitions(this); 57foreach (KeyValuePair<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> transition in transitions) 144static Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> GatherTransitions(SymbolicRegexMatcher<TSet> matcher) 146Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> result = new(); 161if (!result.TryGetValue(key, out (TSet Rule, List<int> NfaTargets) entry))
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (2)
33var results = new List<string>(); 77List<string> possibleEndings = new();
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (10)
185public List<SymbolicRegexNode<TSet>> ToList(List<SymbolicRegexNode<TSet>>? list = null, SymbolicRegexNodeKind listKind = SymbolicRegexNodeKind.Concat) 192static void AppendToList(SymbolicRegexNode<TSet> concat, List<SymbolicRegexNode<TSet>> list, SymbolicRegexNodeKind listKind) 540List<SymbolicRegexNode<TSet>> elems = left.ToList(listKind: SymbolicRegexNodeKind.Alternate); 840List<SymbolicRegexNode<TSet>> prefixElements = []; 1054internal List<(SymbolicRegexNode<TSet>, DerivativeEffect[])> CreateNfaDerivativeWithEffects(SymbolicRegexBuilder<TSet> builder, TSet elem, uint context) 1056List<(SymbolicRegexNode<TSet>, DerivativeEffect[])> transitions = []; 1408List<SymbolicRegexNode<TSet>> elems = strippedLeft.ToList(listKind: SymbolicRegexNodeKind.Alternate); 1449internal void StripAndMapEffects(SymbolicRegexBuilder<TSet> builder, uint context, List<(SymbolicRegexNode<TSet>, DerivativeEffect[])> alternativesAndEffects, 1450List<DerivativeEffect>? currentEffects = null)
System\Text\RegularExpressions\Symbolic\UInt64Solver.cs (1)
33public List<ulong> GenerateMinterms(HashSet<ulong> constraints) => MintermGenerator<ulong>.GenerateMinterms(this, constraints);
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
114public readonly List<(char Lower, char Upper)> ranges = new List<(char Lower, char Upper)>();
System.Text.RegularExpressions.Generator (67)
RegexGenerator.Emitter.cs (3)
638var excludedAsciiChars = new List<char>(); 697var lines = new List<string>(); 1280List<RegexFindOptimizations.FixedDistanceSet>? sets = regexTree.FindOptimizations.FixedDistanceSets;
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (11)
187private List<(char First, char Last)>? _rangelist; 222private RegexCharClass(bool negate, List<(char First, char Last)>? ranges, StringBuilder? categories, RegexCharClass? subtraction) 274private List<(char First, char Last)> EnsureRangeList() => 284List<(char First, char Last)> rangeList = EnsureRangeList(); 350List<(char First, char Last)>? rangeList = _rangelist; 1466List<(char First, char Last)>? ranges = ComputeRanges(charClass.AsSpan(pos)); 1499public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set) 1505List<(char First, char Last)>? ranges = null; 1648List<(char First, char Last)>? rangelist = current._rangelist; 1687List<(char First, char Last)>? rangelist = _rangelist; 1868var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (3)
186List<FixedDistanceSet>? fixedDistanceSets = RegexPrefixAnalyzer.FindFixedDistanceSets(root, thorough: !interpreter); 313public List<FixedDistanceSet>? FixedDistanceSets { get; } 339private static unsafe (string String, int Distance)? FindFixedDistanceString(List<FixedDistanceSet> fixedDistanceSets)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (37)
19/// <remarks>null if no children, a <see cref="RegexNode"/> if one child, or a <see cref="List{RegexNode}"/> if multiple children.</remarks> 141((List<RegexNode>)Children!).Reverse(); 753List<RegexNode>? branches = child.Children as List<RegexNode>; 1133List<RegexNode> children = (List<RegexNode>)Children!; 1145if (at.Children is List<RegexNode> atChildren) 1242Debug.Assert(alternation.Children is List<RegexNode> { Count: >= 2 }); 1243var children = (List<RegexNode>)alternation.Children; 1305((List<RegexNode>)children[i].Children!).RemoveAt(0); 1343var children = (List<RegexNode>)node.Children!; 1385Debug.Assert(alternation.Children is List<RegexNode> { Count: >= 2 }); 1386var children = (List<RegexNode>)alternation.Children; 1785Debug.Assert(Children is List<RegexNode>); 1791List<RegexNode> children = (List<RegexNode>)Children!; 1804if (at.Children is List<RegexNode> atChildren) 1868Debug.Assert(Children is List<RegexNode>); 1870var children = (List<RegexNode>)Children!; 2076Debug.Assert(Children is List<RegexNode>); 2077var children = (List<RegexNode>)Children; 2710var peers = (List<RegexNode>)parent.Children!; 2808var peers = (List<RegexNode>)parent.Children!; 3341((List<RegexNode>)Children).Add(newChild); 3347Debug.Assert(Children is List<RegexNode>); 3353((List<RegexNode>)Children).Insert(index, newChild); 3379((List<RegexNode>)Children)[index] = newChild; 3383public RegexNode Child(int i) => Children is RegexNode child ? child : ((List<RegexNode>)Children!)[i]; 3392if (Children is List<RegexNode> children) 3465var stack = new List<int>();
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (3)
45private List<string>? _capnamelist; 583List<RegexCharClass?>? parents = null; 2058List<string>? oldcapnamelist;
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (9)
34List<StringBuilder> results = [new StringBuilder()]; 57static unsafe bool FindPrefixesCore(RegexNode node, List<StringBuilder> results, bool ignoreCase) 254List<StringBuilder>? allBranchResults = null; 255List<StringBuilder>? alternateBranchResults = [new StringBuilder()]; 511public static unsafe List<RegexFindOptimizations.FixedDistanceSet>? FindFixedDistanceSets(RegexNode root, bool thorough) 517var results = new List<RegexFindOptimizations.FixedDistanceSet>(); 586static bool TryFindRawFixedSets(RegexNode node, List<RegexFindOptimizations.FixedDistanceSet> results, ref int distance, bool thorough) 716var localResults = new List<RegexFindOptimizations.FixedDistanceSet>(); 788public static void SortFixedDistanceSetsByQuality(List<RegexFindOptimizations.FixedDistanceSet> results) =>
UpgradeToGeneratedRegexCodeFixer.cs (1)
500var callSites = new List<(string FilePath, int TreeIndex, int Position)>();
System.Threading.Channels (1)
System\Threading\Channels\UnboundedPriorityChannel.cs (1)
373List<T> list = [];
System.Threading.RateLimiting (9)
System\Threading\RateLimiting\ChainedRateLimiterShared.cs (1)
157List<Exception>? exceptions = null;
System\Threading\RateLimiting\ChainedReplenishingRateLimiter.cs (2)
25var replenishingLimiters = new List<ReplenishingRateLimiter>(); 62List<Exception>? exceptions = null;
System\Threading\RateLimiting\CombinedRateLimitLease.cs (1)
73List<Exception>? exceptions = null;
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (5)
26private readonly List<KeyValuePair<TKey, Lazy<LimiterEntry>>> _cachedLimiters = new(); 28private readonly List<RateLimiter> _limitersToDispose = new(); 140List<Exception>? exceptions = null; 178List<Exception>? exceptions = null; 241List<Exception>? aggregateExceptions = null;
System.Threading.Tasks.Dataflow (38)
Base\DataflowBlock.cs (2)
1948List<Exception>? exceptions = null; 2370private List<Task<bool>>? _tempSendAsyncTaskList;
Blocks\BatchBlock.cs (8)
276internal readonly List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> ReservedSourcesTemp; 527List<Exception>? exceptions = null; 759List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp; 877List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp; 984List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp; 1036List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp; 1086List<Exception>? exceptions = null; 1088List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
Blocks\BatchedJoinBlock.cs (2)
534private List<T> _messages = new List<T>(); 558List<T> toReturn = _messages;
Blocks\BroadcastBlock.cs (4)
387List<Exception>? exceptions = null; 530private List<Exception>? _exceptions; 957List<Exception>? exceptions; 1160internal void AddExceptions(List<Exception> exceptions)
Blocks\BufferBlock.cs (1)
390List<Exception>? exceptions = null;
Blocks\JoinBlock.cs (1)
790List<Exception>? exceptions = null;
Blocks\TransformManyBlock.cs (4)
322if (outputItems is TOutput[] || outputItems is List<TOutput>) 369IList<TOutput>? itemAsTrustedList = (IList<TOutput>?)(item as TOutput[]) ?? item as List<TOutput>; 385List<TOutput>? itemCopy = null; 439Debug.Assert(outputItems is TOutput[] || outputItems is List<TOutput>, "outputItems must be a list we've already vetted as trusted");
Blocks\TransformManyBlock.netstandard21.cs (1)
140List<TOutput>? itemCopy = null;
Blocks\WriteOnceBlock.cs (4)
156List<Exception>? exceptions = OfferToTargets(); 244List<Exception>? exceptions = null; 446private List<Exception>? OfferToTargets() 453List<Exception>? exceptions = null;
Internal\Common.cs (2)
311internal static void AddException([NotNull] ref List<Exception>? list, Exception exception, bool unwrapInnerExceptions = false) 499ref List<Exception>? exceptions)
Internal\QueuedMap.cs (1)
47private readonly List<KeyValuePair<int, T>> _storage;
Internal\SourceCore.cs (6)
91private List<Exception>? _exceptions; // Protected by ValueLock, sometimes read with volatile reads 337var tmpList = new List<TOutput>(); 417var itemsAsList = items as List<TOutput>; 466internal void AddExceptions(List<Exception> exceptions) 931List<Exception>? exceptions;
Internal\SpscTargetCore.cs (1)
56private volatile List<Exception>? _exceptions;
Internal\TargetCore.cs (1)
84private List<Exception>? _exceptions;
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.ForEachAsync.cs (1)
530private List<Exception>? _exceptions;
System.Windows.Controls.Ribbon (53)
Microsoft\Windows\Automation\Peers\RibbonApplicationMenuAutomationPeer.cs (2)
47protected override List<AutomationPeer> GetChildrenCore() 49List<AutomationPeer> children = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (3)
75protected override System.Collections.Generic.List<AutomationPeer> GetChildrenCore() 83List<AutomationPeer> children = new List<AutomationPeer>(); 181List<AutomationPeer> ribbonTabs = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonComboBoxAutomationPeer.cs (2)
53protected override System.Collections.Generic.List<AutomationPeer> GetChildrenCore() 55List<AutomationPeer> children = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (3)
79protected override List<AutomationPeer> GetChildrenCore() 82List<AutomationPeer> children = null; 165List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>();
Microsoft\Windows\Automation\Peers\RibbonGalleryCategoryAutomationPeer.cs (1)
38protected override List<AutomationPeer> GetChildrenCore()
Microsoft\Windows\Automation\Peers\RibbonGroupAutomationPeer.cs (2)
34protected override System.Collections.Generic.List<AutomationPeer> GetChildrenCore() 36List<AutomationPeer> children = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonMenuButtonAutomationPeer.cs (2)
43protected override List<AutomationPeer> GetChildrenCore() 45List<AutomationPeer> children = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonQuickAccessToolBarAutomationPeer.cs (2)
40protected override List<AutomationPeer> GetChildrenCore() 42List<AutomationPeer> children = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (2)
34protected override System.Collections.Generic.List<AutomationPeer> GetChildrenCore() 36List<AutomationPeer> children = null;
Microsoft\Windows\Controls\KeyTipService.cs (12)
862List<DependencyObject> activeKeyTipElements = FindKeyTipMatches(text, out exactMatchElement); 875private List<DependencyObject> FindKeyTipMatches(string text, out DependencyObject exactMatchElement) 878List<DependencyObject> activeKeyTipElements = null; 989private void OnKeyTipPartialMatch(List<DependencyObject> activeKeyTipElements, string text) 1618private static void AddKeyTipFocusEventHandler(KeyTipFocusEventHandler handler, ref List<WeakReference> handlerList) 1641private static void RemoveKeyTipFocusEventHandler(KeyTipFocusEventHandler handler, List<WeakReference> handlerList) 1666private static void RaiseKeyTipFocusEvent(object sender, EventArgs e, List<WeakReference> handlerList) 1727private List<WeakReference> _keyTipEnterFocusHandlers = null; 1728private List<WeakReference> _keyTipExitRestoreFocusHandlers = null; 1730private List<AdornerLayer> _placementProcessingAdornerLayers = new List<AdornerLayer>(); 1740private List<DependencyObject> _currentActiveKeyTipElements = new List<DependencyObject>(); // List of elements whose keytips are active. 1742private List<KeyTipControl> _cachedKeyTipControls = null; // cache of keytip controls for re-use.
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (6)
164List<int> starChildIndices) 197List<int> starChildIndices = new List<int>(); 300List<int> columnStarChildren = null; 338private void AdjustDesiredWidthForStarColumn(UIElementCollection children, List<int> columnStarChildren, int starLayoutIndex, ref double desiredWidth) 404private static void AddItemToList<T>(T item, ref List<T> list) 464private List<StarLayoutInfo> _starLayoutCombinations = new List<StarLayoutInfo>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (5)
368List<StarLayoutInfo> starInfoList = new List<StarLayoutInfo>(2); 369List<IProvideStarLayoutInfo> starLayoutInfoProviders = new List<IProvideStarLayoutInfo>(2); 432private static void EqualizeStarValues(List<StarLayoutInfo> starInfoList, 472private static double EqualizeLeftOf(List<StarLayoutInfo> starInfoList, int index, bool isChecking) 497private static void DistributeRemainingSpace(List<StarLayoutInfo> starInfoList,
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
155List<IProvideStarLayoutInfoBase> InvalidateRegisteredLayoutProvidersList = new List<IProvideStarLayoutInfoBase>(); ;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (3)
109private List<UIElement> _generatedChildren; 111internal List<UIElement> GeneratedChildren 176List<UIElement> generatedItems = GeneratedChildren;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (6)
181Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders = new Dictionary<object, List<RibbonTabHeaderAndIndex>>(); 487List<double> elementSizes = new List<double>(); 540List<double> desiredPaddings = new List<double>(); 660Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders, 706Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders,
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
877private List<string> _charsEntered;
System.Windows.Forms (192)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
112List<AssemblyName> assemblyList = new(_names.Length);
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (4)
168List<object>? results = null; 286private void MaybeAdd(List<object> controls, Control control, bool selected, OLECONTF flags, bool allowContainingControls) 534List<AxHost> hostControls = []; 585List<object> oleControls = [];
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
22private readonly List<Attribute> _updateAttributes = []; 257List<Attribute> attributes = [..AttributeArray!];
System\Windows\Forms\ActiveX\AxHost.cs (2)
2569List<PropertyDescriptor> returnProperties = []; 2654List<PropertyDescriptor>? removeList = null;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
616List<char> mnemonicList = []; 710private static void GetMnemonicList(Control control, List<char> mnemonicList)
System\Windows\Forms\Application.ThreadContext.cs (3)
41private readonly List<ParkingWindow> _parkingWindows = []; 43private List<IMessageFilter>? _messageFilters; 44private List<IMessageFilter>? _messageFilterSnapshot;
System\Windows\Forms\Application.ThreadWindows.cs (1)
15private readonly List<HWND> _windows;
System\Windows\Forms\AutoCompleteStringCollection.cs (2)
15private readonly List<string> _data = []; 83List<string> nonNullItems = [];
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
59List<Attribute> attributes = [];
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (3)
160List<Attribute> attributes = []; 199List<Attribute>? newAttributes = null; 235List<Attribute> attributeList = [];
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (4)
104List<nint> handles = new((int)count); 220List<Com2PropertyDescriptor> propList = []; 706List<string> strings = []; 707List<object?> vars = [];
System\Windows\Forms\ComponentModel\COM2Interop\Com2TypeInfoProcessor.PropInfo.cs (1)
24public List<Attribute> Attributes { get; } = [];
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (2)
191List<object> disposeKeys = []; 242List<Attribute> attributes = [];
System\Windows\Forms\ComponentModel\COM2Interop\GetAttributesEvent.cs (2)
10private readonly List<Attribute> _attributeList; 12public GetAttributesEvent(List<Attribute> attributeList) => _attributeList = attributeList;
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
22private readonly List<ControlItem> _items = []; 63internal List<ControlItem> ControlItems => _items;
System\Windows\Forms\Components\HelpProvider.cs (1)
22private readonly List<Control> _boundControls = [];
System\Windows\Forms\Components\ImageList\ImageList.cs (1)
45private List<Original>? _originals = [];
System\Windows\Forms\Components\ImageList\ImageList.ImageCollection.cs (1)
20private readonly List<ImageInfo> _imageInfoCollection = [];
System\Windows\Forms\Components\KioskModeManager\KioskModeManager.cs (1)
75private readonly List<Control> _parentChain = [];
System\Windows\Forms\Control.ControlCollection.cs (2)
176List<Control> foundControls = []; 185private static void FindInternal(string key, bool searchAllChildren, ControlCollection controlsToLookIn, List<Control> foundControls)
System\Windows\Forms\Control.cs (4)
5689List<ControlTabOrderHolder> holders = []; 5719List<ControlTabOrderHolder> holders = new(Controls.Count); 7618public List<VisualStylesModeLayoutRequest>? LayoutRequests; 13601List<Rectangle> neighboringControlsRectangles = new(4);
System\Windows\Forms\Controls\ComboBox\ComboBox.ACNativeWindow.cs (1)
107List<HWND> toRemove = [];
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
133List<Entry> entries = owner.Items.InnerList;
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (2)
18private List<Entry>? _innerList; 48internal List<Entry> InnerList
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.EntryEnumerator.cs (2)
18private readonly List<Entry> _entries; 24public EntryEnumerator(List<Entry> entries)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
297private readonly List<DataGridViewRow> _lstRows;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
929public List<DataGridViewColumn>? GetCollectionOfBoundDataGridViewColumns() 936List<DataGridViewColumn> cols = new(_props.Count);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
900List<DataGridViewColumn>? autoFillColumns = null; 1521private void AutoGenerateDataBoundColumns(List<DataGridViewColumn>? boundColumns)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
53private readonly List<Rectangle> _nonEmptyNeighbors;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
17private readonly List<DataGridViewCell> _items = [];
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (4)
18private readonly List<DataGridViewColumn> _items = []; 19private List<DataGridViewColumn>? _itemsSorted; 193List<DataGridViewColumn> initialColumns = new(dataGridViewColumns.Length); 194List<DataGridViewColumn> sortedColumns = new(dataGridViewColumns.Length);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (2)
18private List<object>? _items; 37internal List<object> InnerArray => _items ??= [];
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (2)
29private readonly List<DataGridViewElementStates> _rowStates; 110internal List<DataGridViewRow> SharedList => _items;
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (1)
16private readonly List<DataGridViewCell> _items = [];
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (1)
12private readonly List<DataGridViewColumn> _items = [];
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (1)
16private readonly List<DataGridViewRow> _items = [];
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
39private readonly List<Link> _links = new(2); 644List<CharacterRange> ranges = new(Links.Count + 1);
System\Windows\Forms\Controls\ListView\ListView.cs (5)
137private List<ListViewItem>? _listViewItems = []; 170private List<ListViewItem>? _savedSelectedItems; 171private List<ListViewItem>? _savedCheckedItems; 2229if (Properties.TryGetValue(s_propDelayedUpdateItems, out List<ListViewItem>? newItems)) 4013if (_updateCounter > 0 && Properties.TryGetValue(s_propDelayedUpdateItems, out List<ListViewItem>? itemList))
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
260List<ListViewGroup> list = [];
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (2)
269List<ListViewItem> foundItems = []; 279private static void FindInternal(string? key, bool searchAllSubItems, ListViewItemCollection listViewItems, List<ListViewItem> foundItems)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
195List<ListViewItem> visibleItems = [];
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (2)
17private List<ListViewGroup>? _list; 34private List<ListViewGroup> List => _list ??= [];
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
117List<ListViewGroup?> list = new();
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (2)
11private List<ListViewItem>? _items; 20private List<ListViewItem> Items => _items ??= [];
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
41private List<ListViewSubItem> _subItems = [];
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
24List<Rectangle> neighboringRectangles = [];
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (1)
161List<CalendarCellAccessibleObject> headers = [];
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (3)
123private readonly List<DateTime> _boldDates = []; 124private readonly List<DateTime> _annualBoldDates = []; 125private readonly List<DateTime> _monthlyBoldDates = [];
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
42private readonly List<TabInfo> _tabs = []; 2209List<Type> tabClasses = []; 3898List<ToolStripItem> buttonList = fullRebuild ? new() : new(_toolStrip.Items.OfType<ToolStripItem>());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (8)
30List<PropertyDescriptor[]>? commonProperties = GetCommonProperties(objects, presort: true, tab, parentEntry); 58List<PropertyDescriptor[]>? properties = null; 69List<PropertyDescriptor[]>? firstProperties = GetCommonProperties(firstObject.AsSpan(), presort: false, tab, parentEntry); 131private static List<PropertyDescriptor[]>? GetCommonProperties( 167List<PropertyDescriptor[]> mergedList = []; 302private static List<PropertyDescriptor[]> UnsortedMerge( 304List<PropertyDescriptor[]> sortedMergedEntries) 306List<PropertyDescriptor[]> mergedEntries = [];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
4154internal void RestoreHierarchyState(List<GridEntryCollection> expandedItems) 4167internal static List<GridEntryCollection> SaveHierarchyState(GridEntryCollection? entries, List<GridEntryCollection>? expandedItems = null)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (1)
10private readonly List<GridEntryCollection> _expandedState;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (4)
250Dictionary<string, List<GridEntry>> categories = []; 254if (!categories.TryGetValue(category, out var gridEntries)) 265List<GridEntry> categoryGridEntries = []; 268var gridEntries = entry.Value;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
67private readonly List<TabPage> _tabPages = [];
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
27private List<ToolTip>? _associatedToolTips; 166List<Rectangle> neighbors = [];
System\Windows\Forms\Controls\TextBox\TextBoxAutoCompleteSourceConverter.cs (1)
21List<object> list = [];
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (3)
601List<string> list = []; 2865List<Rectangle> paintBands = [.. initialBands]; 2913List<Rectangle> scrollBarBounds = [];
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
161internal List<ToolStripDropDown> ActiveDropDowns { get; } = new(1);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1948List<ToolStripDropDown> dropDowns = [..ActiveDropDowns];
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3548List<Rectangle> neighbors = new(3);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (2)
246List<ToolStripItem> foundItems = []; 255private static void FindInternal(string key, bool searchAllChildren, ToolStripItemCollection itemsToLookIn, List<ToolStripItem> foundItems)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
1043internal static List<ToolStrip> FindMergeableToolStrips(ContainerControl? container) 1045List<ToolStrip> result = [];
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
34private List<ToolStrip>? _inputFilterQueue;
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (10)
26List<SettingsStub> savedToolStripSettingsObjects = []; 28List<ToolStrip> toolStripControls = []; 50List<ToolStrip> toolStripControls = []; 90private void ApplySettings(List<SettingsStub> toolStripSettingsToApply) 104Dictionary<object, List<SettingsStub>> toolStripPanelDestinationHash = []; 123if (!toolStripPanelDestinationHash.TryGetValue(destinationPanel, out List<SettingsStub>? value)) 134List<ToolStripPanel> toolStripPanels = []; 154if (toolStripPanelDestinationHash.TryGetValue(toolStripPanelName, out List<SettingsStub>? stubSettings)) 214List<ToolStrip> toolStripControls = []; 232private void FindControls<T>(bool searchAllChildren, Control.ControlCollection controlsToLookIn, List<T> foundControls)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
1713internal List<TreeNode> GetSelfAndChildNodes() 1715List<TreeNode> nodes = [this];
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (1)
24List<Rectangle> neighboringRectangles = [];
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (3)
244List<TreeNode> foundNodes = FindInternal(key, searchAllChildren, this, []); 249private static List<TreeNode> FindInternal( 253List<TreeNode> foundTreeNodes)
System\Windows\Forms\Controls\UpDown\NumericUpDownAccelerationCollection.cs (1)
16private readonly List<NumericUpDownAcceleration> _items;
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (2)
51List<object> list = []; 156private void ListAXControls(List<object> list, bool fuseOcx)
System\Windows\Forms\DataBinding\BindingContext.cs (1)
320List<HashKey>? cleanupList = null;
System\Windows\Forms\DataBinding\BindingsCollection.cs (1)
15private readonly List<Binding> _list = [];
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (1)
17private static List<BindingManagerBase> IgnoreItemChangedTable { get; } = [];
System\Windows\Forms\Design\EventsTab.cs (1)
139List<PropertyDescriptor>? matchingPropertyEvents = null;
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (2)
227List<string> extensions = []; 468List<string> names = [];
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
409List<string> tempSelectedPaths = [];
System\Windows\Forms\Dialogs\CommonDialogs\SpecialFolderEnumConverter.cs (1)
24List<object> list = [];
System\Windows\Forms\Form.cs (9)
1616public Form[] OwnedForms => Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms) ? ([.. ownedForms]) : ([]); 2894if (!Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 3548if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 4863if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 4891if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 5042if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 6304List<ToolStrip> childrenToolStrips = ToolStripManager.FindMergeableToolStrips(ActiveMdiChildInternal); 6770if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 6839if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms))
System\Windows\Forms\Form.EnumThreadWindowsCallback.cs (1)
14private List<HWND>? _ownedWindows;
System\Windows\Forms\Input\CursorConverter.cs (1)
162List<object> list = [];
System\Windows\Forms\Input\KeysConverter.cs (8)
17private Dictionary<CultureInfo, List<string>>? _cultureToDisplayOrder; 37List<string> localizedOrder = new(34); 112private Dictionary<CultureInfo, List<string>> CultureToDisplayOrder 236List<Enum> termKeys = []; 239List<string> displayOrder = GetDisplayOrder(culture); 287List<string> displayOrder = GetDisplayOrder(culture); 331private List<string> GetDisplayOrder(CultureInfo? culture) 362var keys = CultureToKeyName[CultureInfo.InvariantCulture]!.Values.ToList();
System\Windows\Forms\Internal\ItemArray.cs (1)
27private readonly List<Entry> _entries;
System\Windows\Forms\Layout\ArrangedElementCollection.cs (2)
16internal ArrangedElementCollection(List<IArrangedElement> innerList) => InnerList = innerList; 20private protected List<IArrangedElement> InnerList { get; }
System\Windows\Forms\Layout\TableLayout.cs (2)
1394List<LayoutInfo> childrenInfo = new(children.Count); 1455List<LayoutInfo> layoutInfos = new(container.Children.Count);
System\Windows\Forms\Layout\TableLayout.ReservationGrid.cs (1)
14private readonly List<BitArray> _rows = [];
System\Windows\Forms\MDI\MDIClient.cs (1)
24private readonly List<Form> _children = [];
System\Windows\Forms\MDI\MdiWindowListItemConverter.cs (1)
23List<ToolStripItem> list = [];
System\Windows\Forms\OLE\Clipboard.cs (2)
221/// NRBF primitive types</see> are also handled, as well as <see cref="List{T}"/> or arrays of these type. Basic 331/// NRBF primitive types</see> are also handled, as well as <see cref="List{T}"/> or arrays of these type. Basic
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (2)
489internal List<ControlInformation> GetControlsInformation() 497List<ControlInformation> controlsInfo = new(Owner!.Children.Count);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (2)
81internal List<ControlInformation> GetControlsInformation() 88List<ControlInformation> listOfControlInfo = new(_controlsInfo.Count);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
15private readonly List<TableLayoutStyle> _innerList = [];
System\Windows\Forms\Screen.cs (1)
108List<Screen> screens = [];
System\Windows\Forms\SuspendPaintingScope.cs (8)
55List<Exception> exceptions = [exception]; 96List<Exception> exceptions = [exception]; 121List<Exception> exceptions = []; 167List<Control> layoutControls = []; 195List<Exception> exceptions) 212List<Exception> exceptions, 233List<Exception> exceptions) 261private static void ThrowExceptions(List<Exception> exceptions)
System.Windows.Forms.Design (258)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
25private List<object>? _createdItems; 26private List<object>? _removedItems; 27private List<object>? _originalItems; 824List<ListItem> toBeDeleted = [.._listBox.SelectedItems.Cast<ListItem>()];
System\ComponentModel\Design\DesignerActionPanel.cs (14)
40private readonly List<Line> _lines; 41private readonly List<int> _lineYPositions; 42private readonly List<int> _lineHeights; 208private static void AddToCategories(StandardLineInfo lineInfo, Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories) 213if (!categories.TryGetValue(categoryName, out Dictionary<DesignerActionList, List<LineInfo>>? category)) 219if (!category.TryGetValue(lineInfo.List, out List<LineInfo>? categoryList)) 546private void ProcessLists(DesignerActionListCollection? lists, Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories) 602private List<StandardLineInfo> ProcessRelatedTaskItems(IComponent relatedComponent) 625List<StandardLineInfo> lineInfos = []; 814Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories = []; 818List<LineInfo> newLines = 824foreach (Dictionary<DesignerActionList, List<LineInfo>> category in categories.Values) 827foreach (List<LineInfo> categoryList in category.Values) 878List<Control> newControlList = newLine.GetControls();
System\ComponentModel\Design\DesignerActionPanel.Line.cs (2)
13protected readonly List<Control> AddedControls = []; 30internal List<Control> GetControls()
System\ComponentModel\Design\DesignerActionService.cs (1)
190List<DesignerVerb> verbsArray = [];
System\ComponentModel\Design\DesignerEventService.cs (1)
19private List<IDesignerHost>? _designerList; // read write list used as data for the collection
System\ComponentModel\Design\DesignerHost.cs (5)
58private List<string>? _savedSelection; // set of selected components names saved across reloads 706List<Exception> exceptions = []; 1112List<object> errorList = errorCollection is null ? [] : [..errorCollection.Cast<object>()]; 1129List<IComponent> selectedComponents = new(_savedSelection.Count); 1163List<string> list = new(ss.SelectionCount);
System\ComponentModel\Design\EventBindingService.cs (1)
176List<PropertyDescriptor> props = new(events.Count);
System\ComponentModel\Design\ExceptionCollection.cs (2)
11private readonly List<Exception>? _exceptions; 28internal ExceptionCollection(List<Exception>? exceptions)
System\ComponentModel\Design\ExtenderProviderService.cs (1)
13private List<IExtenderProvider>? _providers;
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
81List<Attribute> attributes = new(AttributeArray!) 99List<Attribute> attributes = new(AttributeArray!)
System\ComponentModel\Design\MenuCommandService.cs (10)
19private readonly Dictionary<Guid, List<MenuCommand>> _commandGroups; 23private List<DesignerVerb>? _globalVerbs; 89if (!_commandGroups.TryGetValue(commandId.Guid, out List<MenuCommand>? commandsList)) 156foreach (KeyValuePair<Guid, List<MenuCommand>> group in _commandGroups) 158List<MenuCommand> commands = group.Value; 192List<DesignerVerb> designerActionVerbs = []; // we instantiate this one here... 257List<DesignerVerb> verbsOrder = []; 324List<MenuCommand>? commands; 380List<MenuCommand>? commands; 486if (_commandGroups.TryGetValue(command.CommandID!.Guid, out List<MenuCommand>? commands))
System\ComponentModel\Design\ReferenceService.cs (6)
14private List<IComponent>? _addedComponents; // list of newly added components 15private List<IComponent>? _removedComponents; // list of newly removed components 16private List<ReferenceHolder>? _references; // our current list of references 30private static void CreateReferences(IComponent component, List<ReferenceHolder> references) 38private static void CreateReferences(string trailingName, object? reference, IComponent sitedComponent, List<ReferenceHolder> references) 287List<object> results = new(_references.Count);
System\ComponentModel\Design\SelectionService.cs (2)
35private List<IComponent>? _selection; // list of selected objects 36private List<string>? _contextAttributes; // help context information we have pushed to the help service.
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (1)
195List<object>? localErrorList = null;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomComponentSerializationState.cs (4)
25public readonly List<string>? Properties; 31public readonly List<string>? Events; 41List<string>? properties, 43List<string>? events,
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (10)
20private readonly Dictionary<string, List<CodeExpression>> _expressions = []; 30private static void PopulateCompleteStatements(object? data, string name, CodeStatementCollection completeStatements, Dictionary<string, List<CodeExpression>> expressions) 49if (!expressions.TryGetValue(name, out List<CodeExpression>? exps)) 68internal void Deserialize(IDesignerSerializationManager manager, Dictionary<string, CodeDomComponentSerializationState> objectState, List<string> objectNames, bool applyDefaults) 139private void DeserializeDefaultProperties(IDesignerSerializationManager manager, string name, List<string>? defProps) 347if (_expressions.Remove(name, out List<CodeExpression>? exps)) 363if (_expressions.TryGetValue(name, out List<CodeExpression>? exps)) 411private static void DeserializeEventResets(IDesignerSerializationManager? manager, string name, List<string>? eventNames) 575List<string>? defaultPropList = null; 576List<string>? defaultEventList = null;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (5)
44private readonly List<string> _objectNames; 47private readonly List<string> _shimObjectNames; 193internal List<object> Deserialize(IServiceProvider? provider, IContainer? container = null) 195List<object> collection = []; 200private void Deserialize(IServiceProvider? provider, IContainer? container, bool validateRecycledTypes, bool applyDefaults, List<object>? objects)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ObjectData.cs (1)
16private List<MemberData>? _members;
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (2)
214List<string>? failures = null; 469List<CodeTypeMember> newElements = [];
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
101List<MemberAttributes> list = new(values.Count);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (5)
63List<object>? result = null; 228private static MethodInfo? ChooseMethodByType(TypeDescriptionProvider provider, List<MethodInfo> methods, ICollection values) 329List<MethodInfo> addRangeMethods = []; 330List<MethodInfo> addMethods = []; 566List<CodeExpression> arrayList = new(valuesToSerialize.Count);
System\ComponentModel\Design\Serialization\ComponentCache.cs (5)
93List<string>? localNames = kvp.Value.LocalNames; 232private List<ResourceEntry>? _resources; 233private List<ResourceEntry>? _metadata; 247public List<object>? Dependencies { get; private set; } 249internal List<string>? LocalNames { get; private set; }
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
34private List<object>? _errorList;
System\ComponentModel\Design\Serialization\StatementContext.cs (1)
36private List<TableEntry>? _table;
System\ComponentModel\Design\UndoEngine.cs (3)
27private Dictionary<IComponent, List<ReferencingComponent>>? _refToRemovedComponent; 412if (_refToRemovedComponent is not null && _refToRemovedComponent.Remove(e.Component!, out List<ReferencingComponent>? propsToUpdate)) 444List<ReferencingComponent>? propsToUpdate = null;
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (6)
18private List<UndoEvent>? _events; // the list of events we've captured 19private List<ChangeUndoEvent>? _changeEvents; // the list of change events we're currently capturing. Only valid until Commit is called. 20private List<AddRemoveUndoEvent>? _removeEvents; // the list of remove events we're currently capturing. Only valid until a matching Removed is encountered. 21private List<IComponent>? _ignoreAddingList; // the list of objects that are currently being added. We ignore change events between adding and added. 22private List<IComponent>? _ignoreAddedList; // the list of objects that are added. We do not serialize before state for change events that happen in the same transaction 472List<IComponent> list = new(_lastSelection.Count);
System\Drawing\Design\BitmapEditor.cs (1)
13protected static List<string> BitmapExtensions = ["bmp", "gif", "jpg", "jpeg", "png", "ico"];
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
125List<Color> colorList = [];
System\Drawing\Design\IconEditor.cs (1)
18private static readonly List<string> s_iconExtensions = ["ico"];
System\Drawing\Design\ImageEditor.cs (1)
128List<string> list = [];
System\Drawing\Design\ToolboxItem.cs (3)
257List<IComponent> comps = []; 615List<ToolboxItemFilterAttribute> filterItems = []; 709List<string> propertyNames = new(Properties.Count);
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
318List<string> errors = []; 862List<string> errors,
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
79List<Component> parentControls = [];
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
18private static readonly List<AdornerWindow> s_adornerWindowList = [];
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
34private readonly List<Behavior> _behaviorStack; // the stack behavior objects can be pushed to and popped from
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
217List<IComponent> dragControls = [];
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
125List<IComponent> componentList = [RelatedComponent];
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (21)
33private readonly List<SnapLine> _verticalSnapLines = []; 34private readonly List<SnapLine> _horizontalSnapLines = []; 36private readonly List<SnapLine> _targetVerticalSnapLines = []; 37private readonly List<SnapLine> _targetHorizontalSnapLines = []; 41private readonly List<SnapLineType> _targetSnapLineTypes = []; 53private readonly List<Line> _tempVertLines = []; 54private readonly List<Line> _tempHorzLines = []; 91internal DragAssistanceManager(IServiceProvider serviceProvider, List<IComponent> dragComponents) 106internal DragAssistanceManager(IServiceProvider serviceProvider, List<IComponent> dragComponents, bool resizing) 123List<IComponent>? dragComponents, 142List<IComponent>? dragComponents, 194private void AddSnapLines(ControlDesigner controlDesigner, List<SnapLine> horizontalList, List<SnapLine> verticalList, bool isTarget, bool validTarget) 270private int BuildDistanceArray(List<SnapLine> snapLines, List<SnapLine> targetSnapLines, int[] distances, Rectangle dragBounds) 332private Line[] EraseOldSnapLines(Line[] lines, List<Line>? tempLines) 443private void IdentifyAndStoreValidLines(List<SnapLine> snapLines, int[] distances, Rectangle dragBounds, int smallestDistance) 472private bool AddChildCompSnaplines(IComponent comp, List<IComponent>? dragComponents, Rectangle clipBounds, Control? targetControl) 522private void Initialize(List<IComponent>? dragComponents, IDesignerHost host) 749private static int FindSmallestValidDistance(List<SnapLine> snapLines, int[] distances, int min, int max, int direction) 901private static void CombineSnaplines(Line snapLine, List<Line> currentLines)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.BehaviorDataObject.cs (3)
18public BehaviorDataObject(List<IComponent> dragComponents, Control source, DropSourceBehavior sourceBehavior) : base() 28public List<IComponent> DragComponents { get; } 36internal List<IComponent> GetSortedDragControls(out int primaryControlIndex) => _sourceBehavior.GetSortedDragControls(out primaryControlIndex);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (7)
32private List<IComponent> _dragObjects; // used to initialize the DragAssistanceManager 78internal DropSourceBehavior(List<IComponent> dragComponents, Control source, Point initialMouseLocation) 336List<IComponent> originalControls = null; 405List<IComponent> temp = []; 532List<Control> listOfTrayControls = []; 1045internal List<IComponent> GetSortedDragControls(out int primaryControlIndex) 1048List<IComponent> dragControls = [];
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
160List<SnapLine> lines = new(2); 206List<IComponent> components = []; 324List<Control> components = [];
System\Windows\Forms\Design\Behavior\SelectionManager.cs (4)
114private void AddAllControlGlyphs(Control parent, List<IComponent> selComps, object? primarySelection) 257List<IComponent> dragComps = [..e.DragComponents.Cast<IComponent>()]; 258List<Glyph> glyphsToRemove = []; 412List<IComponent> selComps = [.._selectionService.GetSelectedComponents().Cast<IComponent>()];
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
26private List<TableLayoutStyle> _styles;
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
273List<ControlBodyGlyph> glyphsToRemove = [];
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (3)
128private void ReParentControls(List<IComponent> controls, bool copy) 139List<IComponent>? temp = copy ? [] : null; 222List<IComponent>? components = null;
System\Windows\Forms\Design\CommandSet.cs (22)
452List<IComponent> list = new(components.Length); 496List<IComponent> copySelection = []; 509private static void GetAssociatedComponents(IComponent component, IDesignerHost host, List<IComponent> list) 801List<IComponent> selComps = [..SelectionService.GetSelectedComponents().Cast<IComponent>()]; 1465List<ParentControlDesigner> designerList = []; 1530List<IComponent> al = []; 1595List<ParentControlDesigner> designerList = []; 1695static List<ITreeDesigner> GetDesignerChain(ITreeDesigner designer) 1697List<ITreeDesigner> designerChain = []; 1707List<ITreeDesigner> designerChain = GetDesignerChain(designer); 1708List<ITreeDesigner> parentDesignerChain = GetDesignerChain(commonParentDesigner); 1712List<ITreeDesigner> shorterList = designerChain.Count < parentDesignerChain.Count ? designerChain : parentDesignerChain; 1713List<ITreeDesigner> longerList = (shorterList == designerChain ? parentDesignerChain : designerChain); 1741List<IComponent> al = []; 1826List<ParentControlDesigner> designerList = []; 1897List<IComponent> selectComps = []; 1898List<Control> controls = []; 2014List<IComponent> associatedComps = []; 2100List<Control> compsWithControlDesigners = []; 2136List<Control> listOfTrayControls = []; 3153List<string?> names = new(objects.Count); 3228private void UpdatePastePositions(List<Control> controls)
System\Windows\Forms\Design\ComponentTray.cs (3)
32private List<Control> _controls; // List of items in the tray in the order of their layout. 1361List<IComponent> list = []; 1710internal void UpdatePastePositions(List<Control> components)
System\Windows\Forms\Design\ContextMenuStripGroup.cs (2)
8private List<ToolStripItem>? _items; 10public List<ToolStripItem> Items => _items ??= [];
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
30List<Control>? suspendedComponents = null;
System\Windows\Forms\Design\ControlCommandSet.cs (7)
459private List<SnapLine> GenerateSnapLines(SelectionRules rules, Control primaryControl, int directionOffsetX, int directionOffsetY) 461List<SnapLine> lines = new(2); 623List<IComponent> selComps = (List<IComponent>)selSvc.GetSelectedComponents(); 628List<SnapLine> targetSnaplines = GenerateSnapLines(des.SelectionRules, primaryControl, moveOffsetX, moveOffsetY); 970List<Control> layoutParentList = []; 971List<Control> parentList = [];
System\Windows\Forms\Design\ControlDesigner.cs (3)
114List<IComponent>? sitedChildren = null; 347List<SnapLine> snapLines = new(8); 1424List<IComponent> dragControls = [];
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionCodeDomSerializer.cs (1)
24List<IComponent> subset = [];
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
609List<DataGridViewColumn>? columnsToBeAdded = null;
System\Windows\Forms\Design\DesignerFrame.cs (2)
315List<ThemedScrollbarWindow> windows = new(Controls.Count); 339private readonly List<Control> _overlayList;
System\Windows\Forms\Design\DesignerUtils.cs (6)
708List<Type> final = new(types.Count); 731public static List<IComponent>? CopyDragObjects(IReadOnlyList<IComponent> objects, IServiceProvider svcProvider) 765List<IComponent> newObjects = new(objects.Count); 790private static List<IComponent> GetCopySelection(IReadOnlyList<IComponent> objects, IDesignerHost host) 792List<IComponent> copySelection = []; 802internal static void GetAssociatedComponents(IComponent component, IDesignerHost? host, List<IComponent> list)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
34private List<Control> _suspendedComponents;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (4)
28private List<Control> _dragControls; 36private readonly List<(int Min, int Max, int Size, int LastIndex)> _commonSizes = []; 610List<Control> originalControls = []; 629List<IComponent> tempList = DesignerUtils.CopyDragObjects(_dragControls, Component.Site);
System\Windows\Forms\Design\GroupedContextMenuStrip.cs (1)
52List<ToolStripItem> items = _groups[groupName].Items;
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
19private readonly List<object> _items = [];
System\Windows\Forms\Design\MaskDescriptorTemplate.cs (2)
51public static List<MaskDescriptor> GetLocalizedMaskDescriptors(CultureInfo culture) 315public List<MaskDescriptor> List { get; } = [];
System\Windows\Forms\Design\MaskDesignerDialog.cs (2)
33private readonly List<MaskDescriptor> _maskDescriptors = []; 326List<MaskDescriptor> maskDescriptors = MaskDescriptorTemplate.GetLocalizedMaskDescriptors(culture);
System\Windows\Forms\Design\NavigationalTableLayoutPanel.cs (3)
10private List<RadioButton> RadioButtons 14List<RadioButton> radioButtons = []; 35List<RadioButton> radioButtons = RadioButtons;
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (2)
80List<IComponent> components = []; 120List<Control>? trayComponents = null;
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (3)
102List<IComponent> copySelection = []; 117private static void GetAssociatedComponents(IComponent component, IDesignerHost host, List<IComponent> list) 249List<object> topComponents = new(_components.Length);
System\Windows\Forms\Design\OleDragDropHandler.cs (5)
260List<IComponent> selectComps = [..comps]; 298private static void DisableDragDropChildren(ICollection controls, List<Control> allowDropCache) 511List<Control> allowDropChanged = []; 738List<IComponent> selectComps = []; 1046List<object> topLevel = [];
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
861internal List<Control> GetComponentsInRect(Rectangle value, bool screenCoords, bool containRect) 863List<Control> list = []; 1259List<Control> selectedControls = parentDesigner.GetComponentsInRect(bounds, true, true /* component should be fully contained*/); 1880List<Control> selection = GetComponentsInRect(offset, true, false /*component does not need to be fully contained*/); 2126private void ReParentControls(Control newParent, List<Control> controls, string transactionName, IDesignerHost host)
System\Windows\Forms\Design\PbrsForward.cs (1)
16private List<BufferedKey>? _bufferedChars;
System\Windows\Forms\Design\SelectionUIService.cs (2)
989List<object> list = []; 1169List<object> list = [];
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
145List<Control> components = []; 378List<ControlBodyGlyph> glyphsToRemove = [];
System\Windows\Forms\Design\StyleEditorForm.cs (2)
22private readonly List<Control> _deleteList; 1064List<IComponent> componentList = [];
System\Windows\Forms\Design\TabControlDesigner.cs (1)
489List<IComponent> dragControls = data.GetSortedDragControls(out _);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (6)
28private List<IComponent> _dragComponents; // the components we are dragging 563List<IComponent> temp = [control]; 1771internal void FixUpControlsOnDelete(bool isRow, int index, List<Control> deleteList) 1870List<Control> deleteList = []; 1886List<IComponent> al = []; 2211List<IComponent> subset = [];
System\Windows\Forms\Design\TabOrder.cs (3)
22private List<Control>? _tabControls; 189private void DrawTabs(List<Control> tabs, Graphics graphics, bool fRegion) 303private Control? GetControlAtPoint(List<Control> tabs, int x, int y)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1854List<ToolStripItem> dragComponents = data.DragComponents;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
260List<Type> creatableTypes = new(itemTypes.Count);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
582List<ToolStripItem> dragItems = []; 653List<ToolStripItem> dragComponents = data.DragComponents;
System\Windows\Forms\Design\ToolStripItemDataObject.cs (2)
11internal ToolStripItemDataObject(List<ToolStripItem> dragComponents, ToolStripItem primarySelection, ToolStrip owner) : base() 18internal List<ToolStripItem> DragComponents { get; }
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
244internal List<Component> AddParentTree() 246List<Component> parentControls = [];
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
36private List<MenuCommand> _oldCommands; 38private List<MenuCommand> _newCommands;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2643List<ToolStripItem> dragComponents = data.DragComponents;
System.Windows.Forms.Primitives (6)
System\Collections\Generic\WeakRefCollection.cs (1)
11private readonly List<WeakReference<T>> _list = [];
System\Windows\Forms\Automation\UiaTextProvider.cs (1)
81public static SafeArrayScope<double> RectListToDoubleArray(List<Rectangle> rectArray)
System\Windows\Forms\Automation\UiaTextRange.cs (3)
348List<Rectangle> rectangles = []; 719private List<Rectangle> GetMultilineBoundingRectangles(Rectangle clippingRectangle) 749List<Rectangle> rects = [];
System\Windows\Forms\NonNullCollection.cs (1)
16private readonly List<T> _list = [];
System.Windows.Input.Manipulations (3)
System\Windows\Input\Manipulations\ManipulationSequence.cs (3)
293out List<ManipulatorState> addedManipulatorList, 381List<ManipulatorState> addedManipulatorList; 468private void ProcessAddsAndRemoves(Int64 timestamp, List<ManipulatorState> addedManipulatorList, HashSet<int> removedManipulatorIds)
System.Xaml (169)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
168List<object> keysToRemove = null;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
130List<string> keysToUpdate = new List<string>();
System\Xaml\Context\NameFixupGraph.cs (7)
129public void GetDependentNames(object instance, List<string> result) 266List<string> names = new List<string>(_dependenciesByName.Keys); 296List<object> parentObjs = new List<object>(_dependenciesByParentObject.Keys); 350List<NameFixupToken> markupExtensionTokens = new List<NameFixupToken>(); 366List<NameFixupToken> dependencies = new List<NameFixupToken>(); 405List<NameFixupToken> dependencies = new List<NameFixupToken>(); 426private bool FindDependencies(NameFixupToken inEdge, List<NameFixupToken> alreadyTraversed)
System\Xaml\Context\NameFixupToken.cs (4)
102private List<string> _names; 103private List<XAML3.INameScopeDictionary> _nameScopeDictionaryList; 157public List<XAML3.INameScopeDictionary> NameScopeDictionaryList 162public List<string> NeededNames
System\Xaml\Context\ObjectWriterContext.cs (17)
24private List<NameScopeInitializationCompleteSubscriber> _nameScopeInitializationCompleteSubscribers; 174List<AmbientPropertyValue> valueList = FindAmbientValues(ceilingTypes, searchLiveStackOnly: false, types: null, properties, true); 180List<object> valueList = FindAmbientValues(types, true); 186List<AmbientPropertyValue> valueList = FindAmbientValues(ceilingTypes, searchLiveStackOnly: false, types: null, properties, stopAfterFirst: false); 192List<object> valueList = FindAmbientValues(types, false); 198List<AmbientPropertyValue> valueList = FindAmbientValues(ceilingTypes, searchLiveStackOnly, types, properties, false); 307private List<AmbientPropertyValue> FindAmbientValues(IEnumerable<XamlType> ceilingTypesEnumerable, 321List<XamlType> ceilingTypes = ceilingTypesEnumerable is not null ? new List<XamlType>(ceilingTypesEnumerable) : null; 323List<AmbientPropertyValue> retList = new List<AmbientPropertyValue>(); 426private List<object> FindAmbientValues(XamlType[] types, bool stopAfterFirst) 436List<object> retList = new List<object>(); 990List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>(); 1049private List<XAML3.INameScopeDictionary> _nameScopeDictionaryList = new List<XAML3.INameScopeDictionary>(); 1056public List<XAML3.INameScopeDictionary> NameScopeDictionaryList 1064private List<XAML3.INameScopeDictionary> _nameScopeDictionaryList; 1066public StackWalkNameResolver(List<XAML3.INameScopeDictionary> nameScopeDictionaryList) 1129List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>();
System\Xaml\Context\XamlCommonFrame.cs (1)
79List<NamespaceDeclaration> _namespaceDeclarations = new List<NamespaceDeclaration>();
System\Xaml\Context\XamlContext.cs (1)
280List<XamlTypeName> typeNames = typeName.TypeArgumentsList;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (12)
34private Dictionary<object, List<PendingCollectionAdd>> _pendingCollectionAdds; 213private Dictionary<object, List<PendingCollectionAdd>> PendingCollectionAdds 218_pendingCollectionAdds = new Dictionary<object, List<PendingCollectionAdd>>(); 730_context.CurrentCtorArgs = ((List<object>)_context.CurrentCollection).ToArray(); 1238var rawArgs = (List<PositionalParameterDescriptor>)ctx.CurrentCollection; 1939List<PendingCollectionAdd> pendingCollection = null; 2264List<string> names = new List<string>(); 2306List<NameFixupToken> unresolvedRefs = null; 2621List<PendingCollectionAdd> pendingCollection = PendingCollectionAdds[token.Target.Instance]; 2631List<PendingCollectionAdd> pendingCollection = PendingCollectionAdds[token.Target.Instance]; 2643List<PendingCollectionAdd> pendingCollection;
System\Xaml\MS\Impl\XmlNsInfo.cs (4)
231List<string> nsList = (List<string>)clrToXmlNs.Value; 246var result = new List<AssemblyName>(); 279private void LoadInternalsVisibleToHelper(List<AssemblyName> result, string assemblyName, Assembly assembly)
System\Xaml\NameScope.cs (2)
229var list = new List<string>(_nameMap.Keys.Count); 248var list = new List<object>(_nameMap.Values.Count);
System\Xaml\Parser\GenericTypeNameParser.cs (3)
320List<XamlTypeName> xamlTypeNameList = frame.TypeArgs; 327private List<XamlTypeName> _typeArgs; 331public List<XamlTypeName> TypeArgs { get { return _typeArgs; } }
System\Xaml\Parser\NamespacePrefixLookup.cs (1)
12private readonly List<NamespaceDeclaration> _newNamespaces;
System\Xaml\Parser\NodeStreamSorter.cs (2)
31private List<SeenCtorDirectiveFlags> _seenStack = new List<SeenCtorDirectiveFlags>(); 33private List<int> _moveList;
System\Xaml\Parser\XamlPullParser.cs (2)
452List<XamlNode> savedPrefixDefinitions = null; 651List<XamlNode> _savedPrefixDefinitions = null;
System\Xaml\Parser\XamlScanner.cs (6)
31private List<XamlAttribute> _attributes; 559List<XamlAttribute> list = new List<XamlAttribute>(); 599private void PreprocessForTypeArguments(List<XamlAttribute> attrList) 655List<XamlAttribute> ctorDirectivesList = null; 656List<XamlAttribute> otherDirectivesList = null; 657List<XamlAttribute> otherPropertiesList = null;
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
351List<object> result;
System\Xaml\Schema\Reflector.cs (4)
298public List<T> GetAllAttributeContents<T>(Type attributeType) 308List<T> result = new List<T>(); 336List<CustomAttributeData> cads = new List<CustomAttributeData>(); 343List<T> types = new List<T>();
System\Xaml\Schema\TypeReflector.cs (44)
465out ICollection<EventInfo> newEvents, out List<XamlMember> knownMembers) 486private IList<PropertyInfo> FilterProperties(PropertyInfo[] propList, List<XamlMember> knownMembers, bool skipKnownNegatives) 536List<PropertyInfo> filteredResult = new List<PropertyInfo>(result.Count); 548private ICollection<EventInfo> FilterEvents(EventInfo[] eventList, List<XamlMember> knownMembers) 590List<EventInfo> filteredResult = new List<EventInfo>(result.Count); 641private void PickAttachablePropertyAccessors(List<MethodInfo> getters, 642List<MethodInfo> setters, out MethodInfo getter, out MethodInfo setter) 644List<KeyValuePair<MethodInfo, MethodInfo>> candidates = 709List<MethodInfo> setters = LookupStaticSetters(name); 710List<MethodInfo> getters = LookupStaticGetters(name); 726List<MethodInfo> adders = LookupStaticAdders(name); 735private void LookupAllStaticAccessors(out Dictionary<string, List<MethodInfo>> getters, 736out Dictionary<string, List<MethodInfo>> setters, out Dictionary<string, List<MethodInfo>> adders) 738getters = new Dictionary<string, List<MethodInfo>>(); 739setters = new Dictionary<string, List<MethodInfo>>(); 740adders = new Dictionary<string, List<MethodInfo>>(); 754private void LookupAllStaticAccessorsHelper(MethodInfo[] allMethods, Dictionary<string, List<MethodInfo>> getters, 755Dictionary<string, List<MethodInfo>> setters, Dictionary<string, List<MethodInfo>> adders, bool isUnderlyingTypePublic) 778private List<MethodInfo> LookupStaticAdders(string name) 782List<MethodInfo> preferredAdders, otherAdders; 787private List<MethodInfo> LookupStaticGetters(string name) 790List<MethodInfo> preferredGetters, otherGetters; 795private List<MethodInfo> LookupStaticSetters(string name) 798List<MethodInfo> preferredSetters, otherSetters; 805private void PrioritizeAccessors(MemberInfo[] accessors, bool isEvent, bool isGetter, out List<MethodInfo> preferredAccessors, out List<MethodInfo> otherAccessors) 866private static void AddToMultiDict(Dictionary<string, List<MethodInfo>> dict, string name, MethodInfo value, bool isUnderlyingTypePublic) 868List<MethodInfo> list; 989List<XamlMember> result = new List<XamlMember>(); 991Dictionary<string, List<MethodInfo>> getters; 992Dictionary<string, List<MethodInfo>> setters; 993Dictionary<string, List<MethodInfo>> adders; 1001private void GetOrCreateAttachableProperties(XamlSchemaContext schemaContext, List<XamlMember> result, 1002Dictionary<string, List<MethodInfo>> getters, Dictionary<string, List<MethodInfo>> setters) 1004foreach (KeyValuePair<string, List<MethodInfo>> nameAndSetterList in setters) 1010List<MethodInfo> getterList; 1031foreach (KeyValuePair<string, List<MethodInfo>> nameAndGetterList in getters) 1045List<XamlMember> result, Dictionary<string, List<MethodInfo>> adders) 1047foreach (KeyValuePair<string, List<MethodInfo>> nameAndAdderList in adders) 1189List<K> listOfNulls = null;
System\Xaml\Schema\XamlDirective.cs (1)
39List<string> nsList = new List<string>(xamlNamespaces);
System\Xaml\Schema\XamlNamespace.cs (1)
206List<XamlType> xamlTypeList = new List<XamlType>();
System\Xaml\XamlLanguage.cs (3)
86new Lazy<XamlType>(() => GetXamlType(typeof(List<object>))); 88new Lazy<XamlType>(() => GetXamlType(typeof(List<MemberDefinition>))); 90new Lazy<XamlType>(() => GetXamlType(typeof(List<Attribute>)));
System\Xaml\XamlMember.cs (2)
572List<string> doPropertyNames = _reflector.GetAllAttributeContents<string>(typeof(DependsOnAttribute)); 578List<XamlMember> result = new List<XamlMember>();
System\Xaml\XamlNodeList.cs (1)
16private List<XamlNode> _nodeList;
System\Xaml\XamlObjectReader.cs (23)
81var namespaceNodes = context.GetSortedNamespaceNodes(); 105var subNodes = node.Decompose(); 251private List<MarkupInfo> children = new List<MarkupInfo>(); 255public List<MarkupInfo> Children { get { return children; } } 257public override List<MarkupInfo> Decompose() 959public virtual List<MarkupInfo> Decompose() { return null; } 991private List<MarkupInfo> properties = new List<MarkupInfo>(); 994public List<MarkupInfo> Properties { get { return properties; } } 1000public override List<MarkupInfo> Decompose() 1023List<MarkupInfo> removedProperties; 1032private void InsertPropertiesWithDO(List<MarkupInfo> propertiesWithDO) 1087private void SelectAndRemovePropertiesWithDO(out List<MarkupInfo> removedProperties) 1468var propertyList = GetXamlSerializableProperties(xamlType, context); 1622var ctorArgProps = new List<XamlMember>(); 2327private static List<XamlMember> GetXamlSerializableProperties(XamlType type, SerializerContext context) 2329List<XamlMember> propertyList = new List<XamlMember>(); 2356public override List<MarkupInfo> Decompose() 2544public List<XamlNode> GetSortedNamespaceNodes() 2546List<KeyValuePair<string, string>> namespaceMapList = new List<KeyValuePair<string, string>>(); 2878private List<MarkupInfo> nodes = new List<MarkupInfo>(); 3001public override List<MarkupInfo> Decompose() 3030public List<int> Predecessors; 3213private List<Entry> _entries = new List<Entry>();
System\Xaml\XamlSchemaContext.cs (3)
57List<Assembly> listOfAssemblies = new List<Assembly>(referenceAssemblies); 934List<string> combinedList = new List<string>(); 1047List<string> list = new List<string>();
System\Xaml\XamlType.cs (5)
728List<XamlType> result = new List<XamlType>(contentWrappers.Count + 1); 821List<XamlType> contentWrappers = null; 825List<Type> wrapperTypes = _reflector.GetAllAttributeContents<Type>(typeof(ContentWrapperAttribute)); 1068List<XamlMember> result; 1663List<XamlMember> result = new List<XamlMember>(excludedMembers.Count);
System\Xaml\XamlTypeName.cs (3)
14private List<XamlTypeName> _typeArguments; 34List<XamlTypeName> typeArgList = new List<XamlTypeName>(typeArguments); 66internal List<XamlTypeName> TypeArgumentsList => _typeArguments;
System\Xaml\XamlXmlWriter.cs (14)
29private Stack<List<XamlNode>> meNodesStack; 107meNodesStack = new Stack<List<XamlNode>>(); 533var prefixMap = frame.GetSortedPrefixMap(); 761public List<KeyValuePair<string, string>> GetSortedPrefixMap() 763List<KeyValuePair<string, string>> prefixMapList = new List<KeyValuePair<string, string>>(); 1793var meNodes = writer.meNodesStack.Pop(); 1918List<XamlMember> ctorArgProps = GetAllPropertiesWithCAA(objectXamlType); 1994private List<XamlMember> GetAllPropertiesWithCAA(XamlType objectXamlType) 2000var ctorArgProps = new List<XamlMember>(); 2023var ppNodesList = writer.ppStateInfo.NodesList; 2027foreach (List<XamlNode> nodesList in ppNodesList) 2140public List<List<XamlNode>> NodesList 2174NodesList = new List<List<XamlNode>>();
TestProject.AppHost (1)
TestProgram.cs (1)
145public List<IResourceBuilder<ProjectResource>> ServiceProjectBuilders => [ServiceABuilder, ServiceBBuilder, ServiceCBuilder];
TypeScriptApiCompat (15)
ApiCompatResult.cs (2)
34var unsuppressedDiagnostics = new List<ApiCompatDiagnostic>(); 35var suppressedDiagnostics = new List<ApiCompatDiagnostic>();
ApiCompatSuppression.cs (4)
33var suppressions = new List<ApiCompatSuppression>(); 34var errors = new List<string>(); 55private static void ParseFile(string filePath, List<ApiCompatSuppression> suppressions, List<string> errors)
AtsCompatibilityComparer.cs (8)
13var diagnostics = new List<ApiCompatDiagnostic>(); 38private static void CompareSurface(AtsSurface baseline, AtsSurface current, List<ApiCompatDiagnostic> diagnostics) 74private static void CompareDtoTypes(AtsSurface baseline, AtsSurface current, List<ApiCompatDiagnostic> diagnostics) 138private static void CompareEnumTypes(AtsSurface baseline, AtsSurface current, List<ApiCompatDiagnostic> diagnostics) 170private static void CompareExportedValues(AtsSurface baseline, AtsSurface current, List<ApiCompatDiagnostic> diagnostics) 207private static void CompareCapabilities(AtsSurface baseline, AtsSurface current, List<ApiCompatDiagnostic> diagnostics) 241List<ApiCompatDiagnostic> diagnostics) 342List<ApiCompatDiagnostic> diagnostics)
AtsSurface.cs (1)
46var files = Directory.EnumerateFiles(rootPath, "*.ats.txt", SearchOption.AllDirectories)
UIAutomationClientSideProviders (18)
MS\Internal\AutomationProxies\ClickablePoint.cs (11)
53internal static bool GetPoint(IntPtr hwnd, List<CPRect> listIn, List<CPRect> listOut, ref NativeMethods.Win32Point pt) 136internal static void ExcludeChildren(ProxyFragment fragment, List<CPRect> listIn, List<CPRect> listOut) 231private static bool ClickableInRect(IntPtr hwnd, ref NativeMethods.Win32Point pt, bool fRiAsInsideRect, List<CPRect> listIn, List<CPRect> listOut) 299private static void SplitVertical(ref CPRect ro, ref CPRect ri, int left, int right, List<CPRect> rectList, bool fRiAsInsideRect) 353private static void SplitRect(ref CPRect ro, CPRect ri, List<CPRect> rectList, bool fRiAsInsideRect) 416private static void SplitRect(List<CPRect> listIn, ref CPRect ri, List<CPRect> listOut, bool fRiAsInsideRect) 436private static bool GetClickablePoint(List<CPRect> rectList, out int x, out int y)
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
510List<WinEventTracker.EvtIdProperty> automationEvents = new(16);
MS\Internal\AutomationProxies\ProxySimple.cs (2)
587List<ClickablePoint.CPRect> listIn = new(100); 588List<ClickablePoint.CPRect> listOut = new(100);
MS\Internal\AutomationProxies\WinEventTracker.cs (4)
118internal List<EventCreateParams> _hWndList; 231List<EventCreateParams> eventCreateParams = hookParams._hWndList; 284List<EventCreateParams> eventCreateParams = hookParams._hWndList; 385List<EventCreateParams> eventCreateParams = hookParams._hWndList;
UnitTests.Common (5)
MemberDataSet.cs (1)
37private readonly List<object[]> _data = new List<object[]>();
MockCommunicationObject.cs (4)
239public static void InterceptAllOpenMethods(IMockCommunicationObject mco, List<string> methodsCalled) 268public static void InterceptAllCloseMethods(IMockCommunicationObject mco, List<string> methodsCalled) 303public static void InterceptAllOpenEvents(IMockCommunicationObject mco, List<string> eventsFired) 310public static void InterceptAllCloseEvents(IMockCommunicationObject mco, List<string> eventsFired)
vbc (7)
src\roslyn\src\Compilers\Shared\BuildClient.cs (3)
128List<string>? parsedArgs; 208private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive) 220var buildRequestArguments = new List<string>(arguments);
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 541var list = new List<string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
72List<string> arguments,
VBCSCompiler (20)
src\roslyn\src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (5)
48ICompilerServerLogger logger) => Check(baseDirectory, analyzerReferences, loader, logger, out var _); 55[NotNullWhen(false)] out List<string>? errorMessages) 81[NotNullWhen(false)] out List<string>? errorMessages) 84var resolvedPaths = new List<string>(); 109var loadedAssemblies = new List<Assembly>();
src\roslyn\src\Compilers\Server\VBCSCompiler\BuildProtocolUtil.cs (1)
43List<string> commandLineArguments = new List<string>();
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (4)
249List<(string Path, string Name)> recentEntries; 671public List<(string DllName, string HashKey, DateTimeOffset Created, DateTimeOffset LastUsed)> HitDetails { get; } = new(); 672public List<(string DllName, string HashKey, DateTimeOffset Created, DateTimeOffset LastUsed)> StoreDetails { get; } = new(); 695private static void FormatGrouped(StringBuilder sb, string label, List<(string DllName, string HashKey, DateTimeOffset Created, DateTimeOffset LastUsed)> details, int verbosity)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (1)
143if (!AnalyzerConsistencyChecker.Check(request.WorkingDirectory, compiler.Arguments.AnalyzerReferences, AnalyzerAssemblyLoader, Logger, out List<string>? errorMessages))
src\roslyn\src\Compilers\Server\VBCSCompiler\ServerDispatcher.cs (2)
62private readonly List<Task<CompletionData>> _connectionList = new List<Task<CompletionData>>(); 189var all = new List<Task>();
src\roslyn\src\Compilers\Shared\BuildClient.cs (3)
128List<string>? parsedArgs; 208private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive) 220var buildRequestArguments = new List<string>(arguments);
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 541var list = new List<string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
72List<string> arguments,
vstest.console (44)
CommandLine\CommandLineOptions.cs (3)
47private List<string> _sources = new(); 271List<string> matchingFiles; 283var filteredFiles = KnownPlatformSourceFilter.FilterKnownPlatformSources(matchingFiles);
CommandLine\Executor.cs (4)
201exitCode |= GetArgumentProcessors(flattenedArguments, out List<IArgumentProcessor> argumentProcessors); 246private int GetArgumentProcessors(string[] args, out List<IArgumentProcessor> processors) 390private static void EnsureActionArgumentIsPresent(List<IArgumentProcessor> argumentProcessors, ArgumentProcessorFactory processorFactory) 518List<string> outputArguments = new();
Internal\ConsoleLogger.cs (1)
647var time = new List<string>();
Internal\FilePatternParser.cs (2)
48public List<string> GetMatchingFiles(string filePattern) 50var matchingFiles = new List<string>();
Internal\MSBuildLogger.cs (1)
383var time = new List<string>();
Processors\CLIRunSettingsArgumentProcessor.cs (1)
129var mergedArgs = new List<string>();
Processors\CollectArgumentProcessor.cs (1)
84internal static List<string> EnabledDataCollectors = new();
Processors\HelpArgumentProcessor.cs (1)
99List<IArgumentProcessor> processors = new();
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (20)
111private readonly List<string> _discoveredTests = new(); 207private readonly List<string> _discoveredTests; 210public DiscoveryEventsRegistrar(List<string> discoveredTests, CommandLineOptions cmdOptions) 239var discoveredTests = args.DiscoveredTestCases!.ToList(); 240var filteredTests = TestCaseFilter.FilterTests(discoveredTests).ToList(); 270List<TestCase> filteredList; 309private static List<TestCase> GetFilteredTestCases(IEnumerable<TestCase> testCases) 311var filteredList = new List<TestCase>(); 339private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(TestCase testCase) 341var traitDictionary = new Dictionary<string, List<string>>(); 358var testPropertyValueList = new List<string>(testPropertyValueArray); 367var multiValue = new List<string> { testPropertyValue.ToString()! }; 378private static Dictionary<string, List<string>> GetTraitsInTraitDictionary(Dictionary<string, List<string>> traitDictionary, TraitCollection traits) 382var newTraitValueList = new List<string> { trait.Value }; 383if (!traitDictionary.TryGetValue(trait.Name, out List<string>? currentTraitValue)) 398List<string> traitValueList = currentTraitValue; 407traitDictionary.TryGetValue(Category, out var categoryValue); 417private static string[]? PropertyValueProvider(string propertyName, Dictionary<string, List<string>> traitDictionary) 419traitDictionary.TryGetValue(propertyName, out List<string>? propertyValueList);
Processors\PlatformArgumentProcessor.cs (1)
121var validPlatforms = Enum.GetValues(typeof(Architecture)).Cast<Architecture>()
Processors\TestAdapterPathArgumentProcessor.cs (1)
140var testAdapterPaths = new List<string>();
TestPlatformHelpers\TestRequestManager.cs (8)
334var sources = GetSources(testRunRequestPayload); 694var keys = sourceToArchitectureMap.Keys.ToList(); 705var keys = sourceToFrameworkMap.Keys.ToList(); 1347var commandsUsed = new List<string>(); 1442private static List<string> GetSources(TestRunRequestPayload testRunRequestPayload) 1547internal static List<string> FilterKnownPlatformSources(List<string>? sources) 1554var filteredSources = new List<string>();
vstest.console.arm64 (44)
src\vstest\src\vstest.console\CommandLine\CommandLineOptions.cs (3)
47private List<string> _sources = new(); 271List<string> matchingFiles; 283var filteredFiles = KnownPlatformSourceFilter.FilterKnownPlatformSources(matchingFiles);
src\vstest\src\vstest.console\CommandLine\Executor.cs (4)
201exitCode |= GetArgumentProcessors(flattenedArguments, out List<IArgumentProcessor> argumentProcessors); 246private int GetArgumentProcessors(string[] args, out List<IArgumentProcessor> processors) 390private static void EnsureActionArgumentIsPresent(List<IArgumentProcessor> argumentProcessors, ArgumentProcessorFactory processorFactory) 518List<string> outputArguments = new();
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
647var time = new List<string>();
src\vstest\src\vstest.console\Internal\FilePatternParser.cs (2)
48public List<string> GetMatchingFiles(string filePattern) 50var matchingFiles = new List<string>();
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (1)
383var time = new List<string>();
src\vstest\src\vstest.console\Processors\CLIRunSettingsArgumentProcessor.cs (1)
129var mergedArgs = new List<string>();
src\vstest\src\vstest.console\Processors\CollectArgumentProcessor.cs (1)
84internal static List<string> EnabledDataCollectors = new();
src\vstest\src\vstest.console\Processors\HelpArgumentProcessor.cs (1)
99List<IArgumentProcessor> processors = new();
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (20)
111private readonly List<string> _discoveredTests = new(); 207private readonly List<string> _discoveredTests; 210public DiscoveryEventsRegistrar(List<string> discoveredTests, CommandLineOptions cmdOptions) 239var discoveredTests = args.DiscoveredTestCases!.ToList(); 240var filteredTests = TestCaseFilter.FilterTests(discoveredTests).ToList(); 270List<TestCase> filteredList; 309private static List<TestCase> GetFilteredTestCases(IEnumerable<TestCase> testCases) 311var filteredList = new List<TestCase>(); 339private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(TestCase testCase) 341var traitDictionary = new Dictionary<string, List<string>>(); 358var testPropertyValueList = new List<string>(testPropertyValueArray); 367var multiValue = new List<string> { testPropertyValue.ToString()! }; 378private static Dictionary<string, List<string>> GetTraitsInTraitDictionary(Dictionary<string, List<string>> traitDictionary, TraitCollection traits) 382var newTraitValueList = new List<string> { trait.Value }; 383if (!traitDictionary.TryGetValue(trait.Name, out List<string>? currentTraitValue)) 398List<string> traitValueList = currentTraitValue; 407traitDictionary.TryGetValue(Category, out var categoryValue); 417private static string[]? PropertyValueProvider(string propertyName, Dictionary<string, List<string>> traitDictionary) 419traitDictionary.TryGetValue(propertyName, out List<string>? propertyValueList);
src\vstest\src\vstest.console\Processors\PlatformArgumentProcessor.cs (1)
121var validPlatforms = Enum.GetValues(typeof(Architecture)).Cast<Architecture>()
src\vstest\src\vstest.console\Processors\TestAdapterPathArgumentProcessor.cs (1)
140var testAdapterPaths = new List<string>();
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (8)
334var sources = GetSources(testRunRequestPayload); 694var keys = sourceToArchitectureMap.Keys.ToList(); 705var keys = sourceToFrameworkMap.Keys.ToList(); 1347var commandsUsed = new List<string>(); 1442private static List<string> GetSources(TestRunRequestPayload testRunRequestPayload) 1547internal static List<string> FilterKnownPlatformSources(List<string>? sources) 1554var filteredSources = new List<string>();
WaitForSandbox.ApiService (1)
Program.cs (1)
24var entries = await dbContext.Entries.ToListAsync();
WindowsFormsIntegration (3)
System\Windows\Integration\ApplicationInterop.cs (3)
307private List<WeakReference> _internalList; 332public List<T> SnapshotListOfTargets 336List<T> targets = new List<T>();