9421 references to List
aspire (191)
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\PipelineCommandBase.cs (1)
1280var filePaths = new List<string>();
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\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 (1)
718var results = new List<ApiSearchResult>();
Documentation\ApiDocs\ApiMemberMarkdownParser.cs (1)
35var candidates = new List<ParsedMemberCandidate>();
Documentation\ApiDocs\ApiSitemapParser.cs (1)
60var entries = new List<ApiSitemapEntry>();
Documentation\Docs\LlmsTxtParser.cs (4)
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)>();
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 (2)
127var restoreArgs = new List<string> 213var manifestArgs = new List<string>
NuGet\NuGetPackageCache.cs (2)
122var collectedPackages = new List<NuGetPackage>(); 193var collectedPackages = new List<NuGetPackage>();
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 (1)
153var prPackageChannels = new List<PackageChannel>();
Processes\ProcessTreeGracefulShutdownService.cs (2)
54var processesToForceKill = new List<ProcessTarget> { appHostProcess }; 288var arguments = new List<string>
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 (3)
111var entries = new List<AppHostServerClosureManifestEntry>(); 150var managedAssemblies = new List<IntegrationPackageManagedAssembly>(); 151var nativeLibraries = new List<IntegrationPackageNativeLibrary>();
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 (4)
372var closure = new List<string>(); 468var references = new List<string>(); 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\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\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 (3)
142var textFragments = new List<string>(); 143var qualifiers = new List<SearchQualifier>(); 144var negatedQualifiers = new List<SearchQualifier>();
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\ConfigurationHelper.cs (1)
307var colonKeys = new List<(string key, JsonNode? value)>();
Utils\ConsoleActivityLogger.cs (1)
289var summaryParts = new List<string>();
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 (222)
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();
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 (118)
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 (5)
68TraceData = new List<object?>() 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 (2)
87public List<AllowedCertificateRule> AllowedCertificates { get; set; } = new(); 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\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\OtlpInstrument.cs (1)
98values = new List<string?>();
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 (14)
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>(); 699Items = items ?? new List<OtlpTrace>(), 779Items = items ?? new List<OtlpSpan>(), 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\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\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 (3)
142var textFragments = new List<string>(); 143var qualifiers = new List<SearchQualifier>(); 144var negatedQualifiers = new List<SearchQualifier>();
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 (91)
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 (1)
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 (88)
ApplicationModel\CertificateAuthorityCollectionAnnotation.cs (1)
46public List<CertificateAuthorityCollection> CertificateAuthorityCollections { get; internal set; } = new List<CertificateAuthorityCollection>();
ApplicationModel\ExecutableLaunchRecipe.cs (4)
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 (2)
11public List<object> Arguments { get; } = new(); 48List<Exception> exceptions = new();
ApplicationModel\ProjectResource.cs (2)
45var steps = new List<PipelineStep>(); 228var outputLines = new List<string>();
ApplicationModel\ReferenceExpression.cs (3)
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>>();
Backchannel\AuxiliaryBackchannelRpcTarget.cs (6)
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\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>();
Eventing\DistributedApplicationEventing.cs (1)
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\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\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\CustomResourceSnapshotExtensions.cs (1)
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>();
Aspire.Hosting.Analyzers (1)
Infrastructure\BoundedCacheWithFactory.cs (1)
18private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Aspire.Hosting.Azure (20)
AzureEnvironmentResource.cs (2)
78var steps = new List<PipelineStep>(); 279var resources = new List<(string Name, string ResourceType)>();
AzureProvisioningController.cs (3)
1249var targetResources = new List<(IResource Resource, IAzureResource AzureResource)>(); 3048var keyVaultLocations = new List<string>(); 3647var resources = new List<IResource>();
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 (1)
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 (5)
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 (8)
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>();
BrowserLogsSessionManager.cs (2)
256var sessionsToStop = new List<IBrowserLogsRunningSession>(); 257var completionObservers = new List<Task>();
src\Shared\CustomResourceSnapshotExtensions.cs (1)
41var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.Browsers.Tests (16)
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\BrowserLogsSessionManager.cs (2)
256var sessionsToStop = new List<IBrowserLogsRunningSession>(); 257var completionObservers = new List<Task>();
src\Shared\CustomResourceSnapshotExtensions.cs (1)
41var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.CodeGeneration.Go (8)
AtsGoCodeGenerator.cs (8)
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>(); 1814var result = new List<AtsParameterInfo>();
Aspire.Hosting.CodeGeneration.Java (12)
AtsJavaCodeGenerator.cs (12)
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>(); 1505var result = new List<List<AtsTypeRef>> { new() }; 1508var temp = new List<List<AtsTypeRef>>(); 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 (13)
Publishing\RadCredentialRegisterStep.cs (4)
179var azure = new List<(string Env, string Identity)>(); 180var aws = new List<(string Env, string Identity)>(); 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 (36)
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 (24)
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 }; 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 (144)
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>();
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 (3)
ConfigurationBuilder\YarpRoute.cs (1)
276transforms = new List<IReadOnlyDictionary<string, string>>();
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 (1)
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 (1)
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 (11)
Program.cs (6)
33private List<ModuleDesc> _referenceableModules = new(); 357List<EcmaModule> inputModules = new List<EcmaModule>(); 358List<EcmaModule> rootingModules = new List<EcmaModule>(); 408List<string> mibcFiles = new List<string>(); 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();
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 (61)
_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\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\TerminalTestReporter.cs (1)
59private readonly List<HandshakeFailureRecord> _handshakeFailures = new();
Commands\Test\MTP\TestModulesFilterHandler.cs (1)
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>();
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>()
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>();
dotnet-aot (18)
_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\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 (19)
_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 (2)
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 (4)
Analyzers\CodeAnalysisResult.cs (1)
35_dictionary.Add(project, new List<Diagnostic>() { diagnostic });
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-lib (202)
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>();
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 (1)
69private List<XmlQualifiedName> _cdataSections = new List<XmlQualifiedName>();
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\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 (2)
3585List<T> listDst = new List<T>(); 3613List<object> listDst = new List<object>();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (9)
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>(); 1394List<Type> argTypes = new List<Type>(); 2113List<Type> argTypes = new List<Type>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheAxisQuery.cs (1)
20this.outputBuffer = new List<XPathNavigator>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheOutputQuery.cs (1)
23this.outputBuffer = new List<XPathNavigator>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\followingsibling.cs (1)
23_parentStk = new List<XPathNavigator>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingsibling.cs (1)
51List<XPathNavigator> parentStk = new List<XPathNavigator>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\SortQuery.cs (1)
24_results = new List<SortKey>();
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\ExceptionDataContract.cs (2)
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\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\X509CertificateClaimSet.cs (2)
163List<Claim> claims = new List<Claim>(); 319List<string> dnsEntries = new List<string>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
63_claimSets = new List<ClaimSet>();
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (2)
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\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 (3)
17: base(new List<AddressHeader>()) 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 (2)
166List<string> keys = new List<string>(); 226List<object> values = new List<object>();
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 (4)
376List<Type> types = new List<Type>(); 428List<Type> types = new List<Type>(); 461List<object> attrTypeAttributes = new List<object>(); 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\FaultFormatter.cs (2)
19List<FaultContractInfo> faultContractInfoList = new List<FaultContractInfo>(); 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 (1)
25_headerTypes = new List<XmlQualifiedName>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ReferenceList.cs (1)
21private List<string> _referredIds = new List<string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (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\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\SynchronizedCollection.cs (2)
18_items = new List<T>(); 27_items = new List<T>();
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (2)
17_items = new List<T>(); 26_items = new List<T>();
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 (8)
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>(); 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 (4)
FixupUtil.cs (1)
22_replacements = new List<ReplaceInfo>
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 (9)
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 (1)
333_parent._referencedTypes = new List<Type>();
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 (32)
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\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\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.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
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\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\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>();
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 (13)
Program.cs (6)
49List<ModuleDesc> assembliesWithInitializers = new List<ModuleDesc>(); 78var suppressedWarningCategories = new List<string>(); 171List<ICompilationRootProvider> compilationRoots = new List<ICompilationRootProvider>(); 206List<EcmaModule> inputModules = new List<EcmaModule>(); 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 (141)
Compiler\Dataflow\CompilerGeneratedState.cs (1)
133_warnings ??= new List<(MessageOrigin, DiagnosticId, string[])>();
Compiler\Dataflow\FlowAnnotations.cs (1)
399var annotatedMethods = new List<MethodAnnotations>();
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\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\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 (1)
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 (1)
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 (15)
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>(); 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\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 (2)
44private readonly List<ElfSectionDefinition> _sections = new(); 45private readonly List<ElfSymbol> _symbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (4)
63private readonly List<MachSection> _sections = new(); 67private readonly List<MachSymbol> _symbolTable = new(); 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 (1)
584list = new List<ushort>();
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 (44)
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 (3)
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 (113)
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\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\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 (1)
104List<ILBodyFixupSignature> _markedILBodyFixupSignatures = new List<ILBodyFixupSignature>();
Compiler\FileLayoutOptimizer.cs (3)
78List<MethodWithGCInfo> methods = new List<MethodWithGCInfo>(); 289List<CallerCalleeCount> callList = new List<CallerCalleeCount>(); 299List<MethodWithGCInfo> outputMethods = new List<MethodWithGCInfo>();
Compiler\ProfileDataManager.cs (2)
20private readonly List<ProfileData> _inputData = new List<ProfileData>(); 187List<PgoSchemaElem> elems = new();
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 (4)
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>();
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 (2)
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\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 (2)
44private readonly List<ElfSectionDefinition> _sections = new(); 45private readonly List<ElfSymbol> _symbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (4)
63private readonly List<MachSection> _sections = new(); 67private readonly List<MachSymbol> _symbolTable = new(); 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 (1)
584list = new List<ushort>();
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 (1)
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 (11)
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 (1)
78List<MethodWithGCInfo> methods = new List<MethodWithGCInfo>();
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 (1)
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 (76)
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 (5)
DataFlow\DynamicallyAccessedMembersBinder.cs (3)
24var members = new List<ISymbol>(); 85var members = new List<ISymbol>(); 98var members = new List<ISymbol>();
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 (5)
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\WcfTestCase.cs (1)
26static TestEventListener s_testListener = new TestEventListener(new List<string>() { "Microsoft-Windows-Application Server-Applications" }, EventLevel.Verbose);
xunit\WcfTestDiscoverer.cs (1)
36List<string> issueSkipList = new List<string>();
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 (2)
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 (1)
Internal\DefaultClaimUidExtractor.cs (1)
85var allClaims = new List<Claim>();
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 (1)
CertificateAuthenticationHandler.cs (1)
256var claims = new List<Claim>();
Microsoft.AspNetCore.Authentication.Cookies (3)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (3)
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 (2)
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.Authorization (6)
AuthorizationHandlerContext.cs (1)
104_failedReasons = new List<AuthorizationFailureReason>();
AuthorizationPolicy.cs (3)
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 (31)
CascadingParameterState.cs (1)
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 (1)
187var keys = new List<(string, Type)>();
Reflection\ComponentProperties.cs (1)
259var propertyNames = new List<string>();
Reflection\MemberAssignment.cs (1)
35many = new List<PropertyInfo> { single };
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 (1)
482parameters = new List<RoutePatternParameterPart>();
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 (32)
Builder\RazorComponentEndpointDataSource.cs (1)
108var endpoints = new List<Endpoint>();
Builder\ResourcePreloadCollection.cs (1)
40groupHeaders = _storage[group] = new List<PreloadAsset>();
CacheView\CacheViewKeyResolver.cs (1)
168var names = new List<string>();
Discovery\IRazorComponentApplication.cs (2)
23var pages = new List<PageComponentBuilder>(); 24var components = new List<ComponentBuilder>();
Discovery\PageCollectionBuilder.cs (1)
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\EndpointHtmlRenderer.cs (1)
53private readonly List<Task> _nonStreamingPendingTasks = new();
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 (3)
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 (1)
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 (6)
Infrastructure\ServerFactory.cs (1)
196var exceptions = new List<Exception> { launchException };
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 (4)
_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();
JSComponents\JSComponentConfigurationStore.cs (1)
64identifiersForInitializer = new();
Microsoft.AspNetCore.Components.WebAssembly (12)
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 (1)
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
168patterns ??= new();
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.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 (7)
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?>();
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>();
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 (7)
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 (4)
29var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 88var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 127var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 196var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (1)
RedactionBenchmark.cs (1)
41var routeSegments = new List<RouteSegment>();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (20)
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\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 (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 (3)
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 (1)
22var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
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 (8)
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\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
168patterns ??= new();
WebHostBuilder.cs (1)
226var exceptions = new List<Exception>();
Microsoft.AspNetCore.Html.Abstractions (1)
HtmlContentBuilder.cs (1)
19: this(new List<object>())
Microsoft.AspNetCore.Http (7)
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>();
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 (6)
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 (1)
502var propertyHelpers = new List<PropertyHelper>();
Microsoft.AspNetCore.Http.Connections (10)
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>();
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 (16)
QueryBuilder.cs (1)
25_params = new List<KeyValuePair<string, string>>();
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>();
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
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 (5)
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>();
JsonPatchDocumentOfT.cs (1)
678var listOfSegments = new List<string>();
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Internal\ParsedPath.cs (1)
39var strings = new List<string>();
JsonPatchDocumentOfT.cs (1)
690var listOfSegments = new List<string>();
Microsoft.AspNetCore.Localization (7)
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 (3)
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 };
Microsoft.AspNetCore.Mvc.Abstractions (9)
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 (1)
1053_nodes = new List<ModelStateNode> { _rootNode };
ModelBinding\ValueProviderFactoryContext.cs (1)
32public IList<IValueProvider> ValueProviders { get; } = new List<IValueProvider>();
Microsoft.AspNetCore.Mvc.ApiExplorer (7)
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 (1)
227var constraints = new List<IRouteConstraint>();
Microsoft.AspNetCore.Mvc.Core (76)
ActionConstraints\HttpMethodActionConstraint.cs (1)
35var methods = new List<string>();
ApplicationModels\ActionAttributeRouteModel.cs (1)
54var actionConstraints = new List<IActionConstraintMetadata>();
ApplicationModels\ActionModel.cs (3)
36Filters = new List<IFilterMetadata>(); 37Parameters = new List<ParameterModel>(); 40Selectors = new List<SelectorModel>();
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
23ActionModelConventions = new List<IActionModelConvention>()
ApplicationModels\ApplicationModel.cs (2)
21Controllers = new List<ControllerModel>(); 22Filters = new List<IFilterMetadata>();
ApplicationModels\ApplicationModelFactory.cs (5)
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>();
ApplicationModels\ControllerModel.cs (4)
33Actions = new List<ActionModel>(); 36ControllerProperties = new List<PropertyModel>(); 37Filters = new List<IFilterMetadata>(); 40Selectors = new List<SelectorModel>();
ApplicationModels\DefaultApplicationModelProvider.cs (5)
143var filteredAttributes = new List<object>(); 531var routeProviders = new List<IRouteTemplateProvider>(); 576var selectorModels = new List<SelectorModel>(); 588var filteredAttributes = new List<object>(); 624var filteredAttributes = new List<object>();
ApplicationModels\SelectorModel.cs (2)
18ActionConstraints = new List<IActionConstraintMetadata>(); 19EndpointMetadata = new List<object>();
ApplicationParts\ApplicationPartManager.cs (2)
18new List<IApplicationFeatureProvider>(); 29public IList<ApplicationPart> ApplicationParts { get; } = new List<ApplicationPart>();
ApplicationParts\RelatedAssemblyAttribute.cs (1)
79var relatedAssemblies = new List<Assembly>();
Builder\MvcApplicationBuilderExtensions.cs (1)
96Routes = new List<IRouter>();
ConsumesAttribute.cs (2)
99readonly List<string> _contentTypes = new(); 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>();
Formatters\AcceptHeaderParser.cs (1)
13var parsedValues = new List<MediaTypeSegmentWithQuality>();
Formatters\TextInputFormatter.cs (1)
32public IList<Encoding> SupportedEncodings { get; } = new List<Encoding>();
Formatters\TextOutputFormatter.cs (1)
26SupportedEncodings = new List<Encoding>();
Infrastructure\ActionSelectionTable.cs (1)
141entries = new List<T>();
Infrastructure\ActionSelector.cs (2)
179var actionsWithConstraint = new List<ActionSelectorCandidate>(); 180var actionsWithoutConstraint = new List<ActionSelectorCandidate>();
Infrastructure\AsyncEnumerableReader.cs (1)
82var result = new List<T>();
Infrastructure\DefaultOutputFormatterSelector.cs (1)
151var result = new List<MediaTypeSegmentWithQuality>();
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\ValidationMetadata.cs (1)
44public IList<object> ValidatorMetadata { get; } = new List<object>();
ModelBinding\ModelBindingHelper.cs (1)
583return capacity.HasValue ? new List<T>(capacity.Value) : new List<T>();
ModelBinding\Validation\ValidationStack.cs (1)
20internal List<object> List { get; } = new List<object>();
ModelBinding\Validation\ValidationVisitor.cs (1)
223var results = new List<ModelValidationResult>();
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>();
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 (3)
231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
502var propertyHelpers = new List<PropertyHelper>();
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsMetadataProvider.cs (1)
175var groupedDisplayNamesAndValues = new List<KeyValuePair<EnumGroupAndName, string>>();
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 (10)
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>();
TagHelpers\TagHelperFeature.cs (1)
21public IList<TypeInfo> TagHelpers { get; } = new List<TypeInfo>();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (5)
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>();
RuntimeViewCompiler.cs (1)
238IList<IChangeToken> expirationTokens = new List<IChangeToken>
Microsoft.AspNetCore.Mvc.RazorPages (13)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
121var results = new List<PageBoundPropertyDescriptor>();
ApplicationModels\PageApplicationModel.cs (3)
41Filters = new List<IFilterMetadata>(); 45HandlerMethods = new List<PageHandlerModel>(); 46HandlerProperties = new List<PagePropertyModel>();
ApplicationModels\PageHandlerModel.cs (1)
28Parameters = new List<PageParameterModel>();
ApplicationModels\PageRouteModel.cs (1)
38Selectors = new List<SelectorModel>();
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\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 (4)
Cache\CacheTagKey.cs (1)
277var result = new List<KeyValuePair<string, string>>();
GlobbingUrlBuilder.cs (3)
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 (20)
AttributeDictionary.cs (2)
87_items = new List<KeyValuePair<string, string?>>(); 100_items = new List<KeyValuePair<string, string?>>();
Buffers\MemoryPoolViewBufferScope.cs (1)
79_available = new List<ViewBufferValue[]>();
Buffers\PagedCharBuffer.cs (1)
21public List<char[]> Pages { get; } = new List<char[]>();
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>();
MemberExpressionCacheKey.cs (1)
30var members = new List<MemberInfo>();
MvcViewOptions.cs (2)
39public IList<IViewEngine> ViewEngines { get; } = new List<IViewEngine>(); 45new List<IClientModelValidatorProvider>();
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\ViewComponentFeature.cs (1)
21public IList<TypeInfo> ViewComponents { get; } = new List<TypeInfo>();
Microsoft.AspNetCore.OpenApi (4)
Schemas\OpenApiJsonSchema.Helpers.cs (1)
33var values = new List<T>();
Services\OpenApiGenerator.cs (1)
369var openApiParameters = new List<IOpenApiParameter>();
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 (8)
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 (1)
DefaultCombinedLease.cs (1)
73exceptions ??= new List<Exception>();
Microsoft.AspNetCore.Razor (3)
TagHelpers\DefaultTagHelperContent.cs (1)
29_buffer = new List<object>();
TagHelpers\ReadOnlyTagHelperAttributeList.cs (2)
18: base(new List<TagHelperAttribute>()) 130matchedAttributes = new List<TagHelperAttribute>();
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 (70)
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>();
DecisionTree\DecisionTreeBuilder.cs (3)
107var matches = new List<TItem>(); 134branch = new List<ItemDescriptor<TItem>>(); 150var reducedCriteria = new List<DecisionCriterion<TItem>>();
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 (14)
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>>(); 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 (1)
62Matches = new List<Endpoint>();
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\RoutePatternFactory.cs (2)
482parameters = new List<RoutePatternParameterPart>(); 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 (1)
502var propertyHelpers = new List<PropertyHelper>();
Template\DefaultTemplateBinderFactory.cs (1)
39var policies = new List<(string parameterName, IParameterPolicy policy)>();
Template\RouteTemplate.cs (2)
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 (1)
21Parts = new List<TemplatePart>();
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 (2)
RouteData.cs (1)
90_routers = new List<IRouter>();
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
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 (5)
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>();
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 (35)
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\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 (1)
108var transportsToStop = new List<ActiveTransport>();
Internal\ServerAddressesCollection.cs (1)
15private readonly List<string> _addresses = new List<string>();
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>>();
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (1)
DirectTlsTransportFactory.cs (1)
195var applicationProtocols = new List<SslApplicationProtocol>();
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_blockAccessExceptions = new List<Exception>();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicStreamContext.FeatureCollection.cs (1)
111_onClosedRegistrations = new List<OnCloseRegistration>();
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_blockAccessExceptions = new List<Exception>();
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketSender.cs (1)
83_bufferList = new List<ArraySegment<byte>>();
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (2)
1050streamIds = new List<string>(); 2339_invocationHandlers = new List<InvocationHandler>() { handler };
Internal\SerializedHubMessage.cs (1)
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 (7)
DefaultHubLifetimeManager.cs (2)
123tasks = new List<Task>(); 168tasks = new List<Task>();
HubOptionsExtensions.cs (1)
26options.HubFilters = new List<IHubFilter>();
HubOptionsSetup.cs (1)
25private readonly List<string> _defaultProtocols = new List<string>();
Internal\HubMethodDescriptor.cs (2)
73StreamingParameters = new List<Type>(); 100KeyedServiceKeys ??= new List<(int, object?)>();
SerializedHubMessage.cs (1)
120_cachedItems = new List<SerializedMessage>();
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 (3)
RedisHubLifetimeManager.cs (1)
124var tasks = new List<Task>();
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.StaticAssets (2)
_generated\9\StaticAssetsManifestJsonContext.ListStaticAssetDescriptor.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>(),
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 (1)
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 (193)
_generated\3\TasksDetailsJsonContext.ListTaskDetailInfo.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.List<global::Microsoft.Build.Framework.Telemetry.TelemetryDataUtils.TaskDetailInfo>(),
BackEnd\BuildManager\CacheAggregator.cs (1)
17private readonly List<(IConfigCache ConfigCache, IResultsCache ResultsCache)> _inputCaches = new List<(IConfigCache ConfigCache, IResultsCache ResultsCache)>();
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (5)
166_requests = new List<BuildRequestEntry>(); 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\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\NodeProviderOutOfProcBase.cs (1)
472List<Process> processes = new();
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 (1)
867List<string> targets = buildResult.ResultsByTarget?.Keys.ToList() ?? new();
BackEnd\Components\RequestBuilder\BatchingEngine.cs (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\MSBuild.cs (5)
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[]>();
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
57List<string> parameterValues = new List<string>();
BackEnd\Components\RequestBuilder\Lookup.cs (2)
221errorMessages = new List<string>(); 759var deduplicatedItemsToAdd = new List<ProjectItemInstance>();
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
252List<TargetSpecification> targetToPush = new List<TargetSpecification>(); 837circularDependenceChain = new List<string>();
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
398return new List<TargetSpecification>(); 402List<TargetSpecification> dependencyTargets = new List<TargetSpecification>(); 632List<TaskItem> targetOutputItemsList = new(); 901List<string> batchableTargetParameters = new List<string>();
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (5)
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 (1)
255return new List<string>();
BackEnd\Components\Scheduler\Scheduler.cs (4)
351List<ScheduleResponse> responses = new List<ScheduleResponse>(); 424List<ScheduleResponse> responses = new List<ScheduleResponse>(); 569List<ScheduleResponse> responses = new List<ScheduleResponse>(); 674List<ScheduleResponse> responses = new List<ScheduleResponse>();
BackEnd\Components\Scheduler\SchedulingData.cs (1)
603List<SchedulableRequest> roots = new List<SchedulableRequest>();
BackEnd\Components\Scheduler\SchedulingPlan.cs (1)
304pathsForConfig = new List<Stack<PlanConfigData>>();
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 (7)
175List<SdkResolverManifest> matchingResolversManifests = new(); 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\Shared\BuildRequestConfiguration.cs (1)
210_transferredProperties = new List<ProjectPropertyInstance>();
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 (1)
82list = new List<TResult>();
Collections\ItemDictionary.cs (2)
327list = new List<T>(); 387list = new List<T>();
Collections\MultiDictionary.cs (1)
256var list = new List<TT> { (TT)_entry, value };
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 (1)
2494new List<ProjectPropertyGroupTaskPropertyInstance> { property }));
Definition\Project.cs (11)
1702var relevantItems = new List<ProjectItem>(); 2549return new List<GlobResult>(); 2603return new List<ProvenanceResult>(); 2658return new List<ProvenanceResult>(); 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 (2)
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\Toolset.cs (2)
445List<string> additionalSubToolsetNames = new List<string>(); 800List<ProjectPropertyInstance> reservedProperties = new List<ProjectPropertyInstance>();
Evaluation\Conditionals\Parser.cs (1)
291var arglist = new List<GenericExpressionNode>();
Evaluation\ConditionEvaluator.cs (1)
86conditionedPropertyValues = new List<string>();
Evaluation\Evaluator.cs (16)
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>(); 551List<ProjectItemGroupTaskMetadataInstance> metadata = itemElement.Metadata.Count > 0 ? new List<ProjectItemGroupTaskMetadataInstance>() : null; 599List<ProjectOnErrorInstance> targetOnErrorChildren = new List<ProjectOnErrorInstance>(); 1157beforeTargetsForTarget = new List<TargetSpecification>(); 1180afterTargetsForTarget = new List<TargetSpecification>(); 1667var allProjects = new List<ProjectRootElement>(); 1951projectList ??= new List<ProjectRootElement>(); 1961projectList ??= new List<ProjectRootElement>(); 2297imports ??= new List<ProjectRootElement>(); 2778_itemGlobElements = new List<ProjectItemElement>();
Evaluation\Expander.cs (1)
333List<T> result = new List<T>();
Evaluation\GlobResultBuilder.cs (1)
57return new List<GlobResult>();
Evaluation\IntrinsicFunctions.cs (1)
745return new List<string> { "A", "B", "C", "D" };
Evaluation\ItemDataCollectionValue.cs (1)
75list = new List<I>()
Evaluation\ItemSpec.cs (3)
181return new List<ItemSpecFragment>(); 353matches ??= new List<string>(); 365matches ??= new List<string>();
Evaluation\Preprocessor.cs (2)
125list = new List<ProjectRootElement>(); 149_implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument] = new List<ResolvedImport>();
Graph\GraphBuilder.cs (5)
226projectsByPath[projectPath] = new List<ProjectGraphNode> { project.Value.GraphNode }; 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\ProjectGraph.cs (1)
781var entriesToUpdate = new List<KeyValuePair<ProjectGraphNode, ImmutableList<string>>>();
Instance\ProjectInstance.cs (11)
421this.EvaluatedItemElements = new List<ProjectItemElement>(); 493EvaluatedItemElements = new List<ProjectItemElement>(); 591this.InitialTargets = new List<string>(); 592this.DefaultTargets = new List<string>(); 601this.EvaluatedItemElements = new List<ProjectItemElement>(); 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>();
Instance\ProjectItemInstance.cs (2)
752inheritedItemDefinitions ??= new List<ProjectItemDefinitionInstance>(); 2343itemDefinitionsClone ??= new List<ProjectItemDefinitionInstance>();
Instance\ProjectTaskInstance.cs (1)
140new List<ProjectTaskInstanceChild>(),
Instance\TaskRegistry.cs (2)
692registeredTaskEntries = new List<RegisteredTaskRecord>(); 728List<RegisteredTaskRecord> unqualifiedTaskNameMatches = new();
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 (4)
42private readonly List<object> stringRecords = new List<object>(); 49private readonly List<(int keyIndex, int valueIndex)[]> nameValueListRecords = new List<(int, int)[]>(); 1628list = new List<DictionaryEntry>(); 1649list = new List<DictionaryEntry>();
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
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\TaskParameter.cs (1)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
Utilities\EngineFileUtilities.cs (1)
579List<Regex> regexes = new List<Regex>();
Microsoft.Build.Framework (15)
BuildEngineResult.cs (1)
36this.targetOutputsPerProject = new List<IDictionary<string, ITaskItem[]>>();
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\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 (5)
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 (1)
29private static readonly List<NuGetFramework> TargetFrameworks = new List<NuGetFramework>
Microsoft.Build.Tasks.CodeAnalysis (3)
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\Portable\InternalUtilities\CommandLineUtilities.cs (1)
56var list = new List<string>();
Microsoft.Build.Tasks.Core (163)
AppConfig\DependentAssembly.cs (1)
44var redirects = new List<BindingRedirect>();
AppConfig\RuntimeSection.cs (1)
47internal List<DependentAssembly> DependentAssemblies { get; } = new List<DependentAssembly>();
AssemblyDependency\AssemblyInformation.cs (1)
652var arguments = new List<string>();
AssemblyDependency\DirectoryResolver.cs (1)
60var searchLocationsWithParentAssembly = new List<ResolutionSearchLocation>();
AssemblyDependency\Reference.cs (12)
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>(); 824internal List<ResolutionSearchLocation> AssembliesConsideredAndRejected { get; private set; } = new List<ResolutionSearchLocation>();
AssemblyDependency\ReferenceTable.cs (18)
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>>(); 1971remapping.BindingRedirects = new List<BindingRedirect> { bindingRedirect }; 2080var assemblyTableInfos = new List<AssemblyTableInfo>(); 2119referenceAssemblyDirectories = new List<string>(); 2231refs = new List<AssemblyNameReference>(); 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 (10)
212private List<ITaskItem> _unresolvedConflicts = new List<ITaskItem>(); 1106private List<ITaskItem> _filesWritten = new List<ITaskItem>(); 2401List<Exception> inclusionListErrors = new List<Exception>(); 2402List<string> inclusionListErrorFilesNames = new List<string>(); 2621var generalResolutionExceptions = new List<Exception>(); 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>();
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 (1)
27private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>();
CombinePath.cs (1)
62var combinedPathsList = new List<ITaskItem>();
ConvertToAbsolutePath.cs (1)
49var absolutePathsList = new List<ITaskItem>();
Copy.cs (2)
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>();
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)
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 (4)
53private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>(); 362var projectsToBuildInParallel = new List<ITaskItem>(); 398var expandedProperties = new List<string>(); 399var expandedTargets = new List<string>();
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>();
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 (1)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
Touch.cs (1)
93var touchedItems = new List<ITaskItem>();
WriteCodeFragment.cs (4)
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 (31)
MuxLogger.cs (1)
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>();
ToolLocationHelper.cs (18)
336var assemblyFolders = new List<AssemblyFoldersExInfo>(); 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>();
Microsoft.CodeAnalysis (41)
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>();
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 (1)
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\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 (3)
448protected readonly List<MethodImplementation> methodImplList = new List<MethodImplementation>(); 563result = new List<IGenericTypeParameter>(); 4255_rows = new List<T>();
PEWriter\NativeResourceWriter.cs (1)
129this.Entries = new List<object>();
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 (2)
22private readonly List<ChangeRecord> _changes = new List<ChangeRecord>(); 106var newSpans = new List<TextSpan>();
Syntax\SyntaxNodeExtensions_Tracking.cs (1)
212list = new List<SyntaxNode>();
Text\ChangedText.cs (1)
225var list = new List<ImmutableArray<TextChangeRange>>();
Microsoft.CodeAnalysis.Analyzers (34)
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\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\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.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
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\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\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>();
Microsoft.CodeAnalysis.AnalyzerUtilities (23)
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\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.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
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\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\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Microsoft.CodeAnalysis.CodeStyle (21)
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\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.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
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\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\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Microsoft.CodeAnalysis.CodeStyle.Fixes (11)
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>();
Microsoft.CodeAnalysis.CSharp (31)
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 (1)
241_dispatches.Add(resumeLabel, new List<StateMachineState> { stateNumber });
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>();
Syntax\DirectiveTriviaSyntax.cs (1)
133var list = new List<DirectiveTriviaSyntax>();
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
117var partsList = new List<string>();
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 (7)
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>();
Microsoft.CodeAnalysis.CSharp.Features (32)
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 (2)
59var list = new List<VariableDeclaratorSyntax>(); 60var triviaList = new List<SyntaxTrivia>();
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
136var variables = new List<VariableDeclaratorSyntax>();
GenerateType\CSharpGenerateTypeService.cs (1)
589var namespaceContainers = new List<string>();
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>();
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 (22)
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\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>();
Microsoft.CodeAnalysis.Extensions.Package (2)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
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 (43)
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>();
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 (32)
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 (2)
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\Performance\AvoidSingleUseOfLocalJsonSerializerOptions.cs (2)
319localSymbols ??= new List<ILocalSymbol>(); 346localSymbols = new List<ILocalSymbol> { local };
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\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 (22)
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\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\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 (24)
AbstractResxGenerator.cs (1)
546var getResourceStringAttributes = new List<string>();
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\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.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
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\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\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 (45)
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>();
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\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\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.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
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\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\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>();
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 (2)
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
21_builder = new List<string>();
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
887var resolvedParts = new List<string>();
Microsoft.CSharp (37)
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\DynamicDebuggerProxy.cs (2)
45var v = new List<DynamicMetaObject> { self }; 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 (1)
713List<UdConvInfo> prguci = new List<UdConvInfo>();
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 (5)
221(events ??= new List<EventInfo>()).Add(e); 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 (36)
DataFrame.Arrow.cs (1)
186List<Apache.Arrow.Array> arrays = new List<Apache.Arrow.Array>();
DataFrame.cs (2)
543List<object> cachedObjectConversions = new List<object>(); 624List<object> cachedObjectConversions = new List<object>();
DataFrame.IO.cs (1)
379var linesForGuessType = new List<(long LineNumber, string[] Line)>();
DataFrameColumn.cs (2)
90private readonly List<DataFrameColumnCollection> _ownerColumnCollections = new(); 511heapOfValueAndListOfTupleOfSortAndBufferIndex.Add(nextValue, new List<ValueTuple<int, int>>() { (nextValueAndBufferSortIndex.bufferSortIndex, bufferIndex) });
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 (8)
23private readonly List<List<string>> _stringBuffers = new List<List<string>>(); // To store more than intMax number of strings 46_stringBuffers.Add(new List<string>()); 73lastBuffer = new List<string>(); 120var ret = new List<object>(); 167var ret = new List<string>(); 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 (4)
22private readonly List<List<VBuffer<T>>> _vBuffers = new List<List<VBuffer<T>>>(); // To store more than intMax number of vbuffers 49_vBuffers.Add(new List<VBuffer<T>>()); 75lastBuffer = new List<VBuffer<T>>(); 105var ret = new List<object>();
IDataView.Extension.cs (1)
57List<DataViewSchema.Column> activeDataViewColumns = new List<DataViewSchema.Column>();
PrimitiveColumnContainer.cs (3)
22public IList<ReadOnlyDataFrameBuffer<T>> Buffers = new List<ReadOnlyDataFrameBuffer<T>>(); 26public IList<ReadOnlyDataFrameBuffer<byte>> NullBitMapBuffers = new List<ReadOnlyDataFrameBuffer<byte>>(); 451List<ReadOnlyDataFrameBuffer<byte>> ret = new List<ReadOnlyDataFrameBuffer<byte>>();
PrimitiveDataFrameColumn.cs (2)
391return new DataFrame(new List<DataFrameColumn> { keys, counts }); 637multimap.Add(readOnlySpan[i], new List<long>() { currentLength });
PrimitiveDataFrameColumn.Sort.cs (2)
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 (34)
ArrowIntegrationTests.cs (1)
146DataFrame df = new DataFrame(new List<DataFrameColumn>() { ageColumn, lengthColumn, stringColumn });
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 (16)
Contracts\CallingConvention\CallingConvention_1.cs (1)
192List<ArgumentLocation> arguments = new();
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\X86\GCTransition.cs (4)
220CallRegisters = new List<CallRegister>(); 221PtrArgs = new List<PtrArg>(); 229CallRegisters = new List<CallRegister>(); 230PtrArgs = new List<PtrArg>();
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 (7)
DiagnosticsClient\DiagnosticsClient.cs (2)
433List<int> pids = new(); 483List<int> discoveredPids = new();
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.ApiCompatibility (3)
Rules\CannotChangeGenericConstraints.cs (2)
86List<string> addedConstraints = new(); 87List<string> removedConstraints = new();
Rules\RuleFactory.cs (1)
18List<IRule> rules = new()
Microsoft.DotNet.ApiSymbolExtensions (1)
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 (1)
CatalogBuilder.cs (1)
34private readonly List<CatalogEntry> _entries = new();
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 (38)
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>();
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 (5)
Commands\New\CommandDefinitionExtensions.cs (2)
64List<string> wrongTokens = new(); 97List<string> wrongTokens = new();
Commands\New\SharedOptionsFactory.cs (1)
152List<string> values = new();
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 (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)
34deltas = new List<OutputSummary.Delta>();
Microsoft.DotNet.HotReload.Watch (14)
Aspire\AspireServiceFactory.cs (1)
254var arguments = new List<string>
Build\EvaluationResult.cs (1)
251var targets = new List<string>
HotReload\HotReloadDotNetWatcher.cs (4)
439var newChangedFiles = new List<ChangedFile>(); 666var buildRequests = new List<BuildRequest<string>>(); 707var copyTasks = new List<Task>(); 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 (3)
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (3)
186var clearCacheHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 187var applicationUpdateHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 188var contentUpdateHandlers = new List<UpdateHandler<ContentUpdateAction>>();
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 (5)
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>(),
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 (115)
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 (15)
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>(); 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 (2)
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 (1)
22var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
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.Tests (1)
AsyncStateTests.cs (1)
218var l = new List<object?>();
Microsoft.Extensions.Caching.Memory (7)
CacheEntry.CacheEntryTokens.cs (2)
24internal List<IChangeToken> ExpirationTokens => _expirationTokens ??= new List<IChangeToken>(); 25internal List<PostEvictionCallbackRegistration> PostEvictionCallbacks => _postEvictionCallbacks ??= new List<PostEvictionCallbackRegistration>();
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.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 (2)
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 (1)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
Microsoft.Extensions.Compliance.Testing (2)
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 (1)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
Microsoft.Extensions.Configuration (9)
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>();
ConfigurationSectionDebugView.cs (1)
45var data = new List<ConfigurationSectionDebugView>();
ReferenceCountedProvidersManager.cs (1)
15private ReferenceCountedProviders _refCountedProviders = ReferenceCountedProviders.Create(new List<IConfigurationProvider>());
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.DependencyInjection (8)
DependencyInjectionEventSource.cs (1)
30private readonly List<WeakReference<ServiceProvider>> _providers = new();
ServiceLookup\CallSiteFactory.cs (2)
316List<KeyValuePair<int, ServiceCallSite>> callSitesByIndex = new(); 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 (2)
100_disposables ??= new List<object?>(); 260exceptionsCache = new List<Exception> { exceptionInfo.SourceException, exception };
ServiceProvider.cs (1)
84exceptions ??= new List<Exception>();
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 (1)
HealthCheckServiceOptions.cs (1)
16public ICollection<HealthCheckRegistration> Registrations { get; } = new List<HealthCheckRegistration>();
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
118(temp ??= new List<string>()).Add($"'{section.Key}'");
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 (3)
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 (2)
30var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 79var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
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 (2)
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 (1)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
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 (1)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
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 (3)
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (3)
186var clearCacheHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 187var applicationUpdateHandlers = new List<UpdateHandler<MetadataUpdateAction>>(); 188var contentUpdateHandlers = new List<UpdateHandler<ContentUpdateAction>>();
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 (4)
EmbeddedFileProvider.cs (1)
158var entries = new List<IFileInfo>();
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 (15)
InMemoryDirectoryInfo.cs (2)
52files ??= new List<string>(); 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 (5)
41var allSegments = new List<IPathSegment>(); 114var contains = new List<string>(); 176segmentsPatternEndsWith = new List<IPathSegment>(); 177segmentsPatternContains = new List<IList<IPathSegment>>(); 182segmentsPatternEndsWith = new List<IPathSegment>();
MatcherExtensions.cs (3)
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 (18)
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 (7)
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>();
Microsoft.Extensions.Hosting.Testing.Tests (2)
HostingFakesExtensionsTests.cs (2)
314var firstCallbackTarget = new List<string>(); 315var secondCallbackTarget = new List<string>();
Microsoft.Extensions.Http (4)
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>>();
Microsoft.Extensions.Http.Diagnostics (2)
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 (1)
20var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
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 (21)
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 (13)
21var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 87var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 158var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 209var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 240var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 311var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 342var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 390var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 448var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 488var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 536var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 584var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 649var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
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 (7)
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\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));
Microsoft.Extensions.Identity.Core (22)
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 (5)
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>(); 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.Localization (1)
Internal\ResourceManagerStringProvider.cs (1)
76var names = new List<string>();
Microsoft.Extensions.Logging (9)
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 (3)
24private readonly List<ProviderRegistration> _providerRegistrations = new List<ProviderRegistration>(); 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 (8)
OptionsFactory.cs (1)
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 (10)
Emitter.cs (1)
1181var attrInstantiationStatementLines = new List<string>();
Model\ValidationAttributeInfo.cs (1)
10public List<string> ConstructorArguments { get; } = new();
Parser.cs (7)
59var results = new List<ValidatorType>(); 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 (10)
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 (3)
87List<AddressResult> addresses = new List<AddressResult>(); 248addressList = new List<AddressResult>(); 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 (1)
ServiceDiscoveryDestinationResolver.cs (1)
34var changeTokens = new List<IChangeToken>();
Microsoft.Extensions.Telemetry (9)
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 (3)
21var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 51var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>(); 98var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
Http\HttpRouteParser.cs (1)
103var segments = new List<Segment>();
Logging\ExtendedLoggerFactory.cs (2)
101var tags = new List<KeyValuePair<string, object?>>(); 241var messageLoggers = new List<MessageLogger>();
Microsoft.Extensions.Telemetry.Abstractions (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (1)
22var validationResults = new global::System.Collections.Generic.List<global::System.ComponentModel.DataAnnotations.ValidationResult>();
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>();
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 (11)
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (1)
229var ancestorChain = new List<ComInterfaceInfo>();
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
34List<Func<ITypeSymbol, bool>> sourceGeneratedComRecognizers = new();
ComInterfaceGenerator.cs (5)
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();
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 (12)
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 (6)
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\MarshallingGeneratorExtensions.cs (1)
110List<AttributeSyntax> rehydratedAttributes = new();
SyntaxExtensions.cs (1)
86List<SyntaxToken> strippedTokens = new();
Microsoft.Maui (23)
Animations\Animation.cs (1)
71 protected List<Animation> childrenAnimations = new();
Animations\AnimationManager.cs (1)
9 readonly List<Animation> _animations = new();
Animations\Lerp.cs (1)
180 var types = new List<Type> { type };
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>();
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 (118)
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>();
ContentPage\HideSoftInputOnTappedChanged\HideSoftInputOnTappedChangedManager.cs (1)
8 List<ContentPage> _contentPages = new List<ContentPage>();
DefinitionCollection.cs (1)
13 internal DefinitionCollection() => _internalList = new List<T>();
DependencyService.cs (1)
19 static readonly List<DependencyType> DependencyTypes = new List<DependencyType>();
Element\Element_StyleSheets.cs (2)
29 var list = new List<string>(); 48 var sheets = new List<StyleSheet>();
Element\Element.cs (3)
175 _internalChildren ??= new List<Element>(); 758 _bindableResources = new List<BindableObject>(); 770 changedResources = changedResources ?? new List<(BindableProperty, SetterSpecificity)>();
FontAttributes.cs (1)
72 var parts = new List<string>();
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 (2)
186 IList<object> previousSelection = new List<object>(); 187 IList<object> newSelection = new List<object>();
Items\SelectionList.cs (2)
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\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 (1)
48 get => _bindings ?? (_bindings = new List<BindingBase>());
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 (1)
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>();
OnPlatform.cs (1)
13 Platforms = new List<On>();
Page\Page.cs (1)
81 List<Action> _pendingActions = new List<Action>();
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>>();
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 (2)
114 _collectionTrack = _collectionTrack ?? new List<ResourceDictionary>(); 352 classes = new 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 (4)
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>();
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 (8)
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 }; 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 (15)
27 List<string> restOfPath = new List<string>(); 44 List<string> buildUpPages = new List<string>(); 235 List<RouteRequestBuilder> possibleRoutePaths = new List<RouteRequestBuilder>(); 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>(); 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 (1)
45 readonly List<TItem> _templatedObjects = new List<TItem>();
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 (1)
1551 var changedResources = new List<KeyValuePair<string, object>>();
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 (5)
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 (1)
22 IdentifierNameSyntax _ => Result<List<IPathPart>>.Success(new List<IPathPart>()),
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 (8)
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 (2)
44 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 80 var potentialTypes = new List<(string typeName, string clrNamespace, string assemblyName)>();
Microsoft.Maui.Controls.Xaml (18)
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 (2)
44 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 80 var potentialTypes = new List<(string typeName, string clrNamespace, string assemblyName)>();
Microsoft.Maui.Essentials (14)
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 (19)
PathF.cs (10)
29 _subPathsClosed = new List<bool>(); 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>(); 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 (34)
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 (2)
31_rgv = new List<T>(); 231_rgv = new List<T>();
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 (10)
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 (4)
850var minSlots = new List<int>(); 851var maxSlots = new List<int>(); 903var expectedIndices = new List<int>(); 904var expectedValues = new List<float>();
Microsoft.ML.Data (251)
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\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 (1)
115List<char> sepChars = new List<char>();
EntryPoints\EntryPointNode.cs (5)
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>(); 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\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 (4)
103_cellBlocks = new List<CellBlock>(); 104_letSetBlocks = new List<VariableBlock>(); 105_funcBlocks = new List<FuncBlock>(); 158var sets = new List<KeyValuePair<string, JToken>>();
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 (4)
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 (36)
CrossValidationMacro.cs (11)
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 (95)
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 (35)
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>(); 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\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 (2)
Pipeline\CausalLMPipeline.cs (1)
228var chunks = new List<string>();
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 (3)
OnnxTransform.cs (1)
689var inputNameOnnxValues = new List<NamedOnnxValue>();
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 (1)
ParquetLoader.cs (1)
261List<Column> columnsLoaded = new List<Column>();
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 (10)
ResultProcessor.cs (10)
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>(); 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>();
Microsoft.ML.Samples (77)
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\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 (17)
FactorizationMachine\FactorizationMachineTrainer.cs (2)
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\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 (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 (4)
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 (1)
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 (86)
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 (2)
44var dataView = ctx.Data.LoadFromEnumerable(new List<FloatInput>()); 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 (2)
897var samples = new List<DataPointOne>() 938var samples = new List<DataPointVec>()
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 (40)
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 (1)
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 (2)
66var rowCursor = input.GetRowCursor(new List<DataViewSchema.Column>() { column.Value }); 71var valueCache = seasonalityWindowSize == -1 ? new List<double>() : new List<double>(seasonalityWindowSize);
SrCnnAnomalyDetectionBase.cs (5)
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>();
SRCNNAnomalyDetector.cs (1)
278var metadata = new List<SchemaShape.Column>() {
SrCnnEntireAnomalyDetector.cs (6)
281_previousBatch = new List<double>(); 282_batch = new List<double>(); 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 (2)
189_cycleSubSeries[i] = new List<double>(); 190_smoothedSubseries[i] = new List<double>();
Microsoft.ML.TimeSeries.Tests (39)
TimeSeriesDirectApi.cs (19)
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 (5)
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, 145var expectedValues = new List<double[]>() { 197var expectedValues = new List<double[]>() {
Microsoft.ML.Tokenizers (24)
Model\BpeOptions.cs (1)
69List<string> merges = new();
Model\BPETokenizer.cs (2)
454List<EncodedToken> tokens = new(); 513List<int> ids = new();
Model\CodeGenTokenizer.cs (3)
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)) };
Model\EnglishRobertaTokenizer.cs (5)
334List<EncodedToken> tokens = new(); 433List<int> ids = new(); 961return new List<EncodedToken> { new EncodedToken(_vocab[new StringSpanOrdinalKey(tokenValue)], tokenValue, new Range(indexMapping[0], indexMapping[0] + 1)) }; 975var newWord = new List<string>(); 1114_symbols = new List<(int, int)>();
Model\SentencePieceBpeModel.cs (2)
91List<EncodedToken> tokens = new(); 343List<int> ids = new();
Model\SentencePieceTokenizer.cs (2)
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>();
SentencepieceModel.cs (1)
174internal List<Types.SentencePiece> Pieces { get; } = new();
Utils\DoubleArrayTrie.cs (1)
26private readonly List<uint> _units = new();
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 (29)
BpeTests.cs (1)
1031List<PreTokenizer> preTokenizers = new List<PreTokenizer>();
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 (72)
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 (4)
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>();
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 (4)
82LearningRate = new List<double>() { .000001 }; 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>
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 (1)
ObjectDetectionTests.cs (1)
71var logs = new List<LoggingEventArgs>();
Microsoft.ML.Transforms (77)
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>();
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\StopWordsRemovingTransformer.cs (2)
414var list = new List<ReadOnlyMemory<char>>(); 1105var list = new List<ReadOnlyMemory<char>>();
Text\TextFeaturizingEstimator.cs (1)
452List<string> tempCols = new List<string>();
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 (6)
AuthHandshakeMessageHandler.cs (1)
618requestExceptions ??= new();
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 (89)
_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 (1)
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>();
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();
ResolvePackageAssets.cs (2)
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 (8)
136List<TaskItem> referencesToAdd = new(); 137List<TaskItem> analyzersToAdd = new(); 138List<TaskItem> platformManifests = new(); 139List<TaskItem> packageConflictOverrides = new(); 140List<string> preferredPackages = new(); 141List<string> errors = new(); 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 (6)
Bundle\Bundler.cs (1)
494var excluded = new List<FileSpec>();
Bundle\Manifest.cs (1)
91Files = new List<FileEntry>();
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 (5)
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 (1)
24var list = other == null ? new List<T>() : new List<T>(other);
SetCookieHeaderValue.cs (1)
184get => _extensions ??= new List<StringSegment>();
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (4)
CreateBlazorTrimmerRootDescriptorFile.cs (1)
50var attributes = new List<XAttribute>
GenerateBlazorWebAssemblyBootJson50.cs (1)
79config = new List<string>(),
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 (9)
Kudu\KuduVfsDeploy.cs (1)
20_postTasks = new List<System.Threading.Tasks.Task>();
MsDeploy\VSMSDeployHostObject.cs (1)
25_items = new List<TaskItem>();
MsDeploy\VsMSDeployObject.cs (5)
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>>();
Microsoft.NET.Sdk.Razor.Tasks (1)
ReferenceResolver.cs (1)
36var applicationParts = new List<string>();
Microsoft.NET.Sdk.StaticWebAssets.Tasks (53)
CollectStaticWebAssetsToCopy.cs (1)
27var copyToOutputFolder = new List<ITaskItem>();
Compression\DiscoverPrecompressedAssets.cs (1)
37var assetsToUpdate = new List<ITaskItem>();
ComputeEndpointsForReferenceStaticWebAssets.cs (2)
31var routeSegments = new List<PathTokenizer.Segment>(); 32var basePathSegments = new List<PathTokenizer.Segment>();
ComputeReferenceStaticWebAssetItems.cs (1)
115var patterns = new List<StaticWebAssetsDiscoveryPattern>();
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>();
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 (2)
29var razorComponentsWithJsModules = new List<ITaskItem>(); 30var razorGenerateWithJsModules = new List<ITaskItem>();
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 (2)
32var razorComponentsWithScopes = new List<ITaskItem>(); 33var razorGenerateWithScopes = new List<ITaskItem>();
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.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
269new List<object?>
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 (54)
Alias\AliasRegistry.cs (3)
89expandedInputTokens = new List<string>(); 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();
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 (26)
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\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 (46)
BuiltInManagedProvider\GlobalSettings.cs (1)
84var packages = new List<TemplatePackageData>();
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (6)
56var list = new List<ITemplatePackage>(); 84var tasks = new List<Task<IReadOnlyList<CheckUpdateResult>>>(); 91var result = new List<CheckUpdateResult>(); 109return new List<InstallResult>(); 127var installersThatCanInstall = new List<IInstaller>(); 164return new List<UninstallResult>();
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 (76)
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 (1)
38List<FileSourceEvaluablePathMatcher> evaluators = new List<FileSourceEvaluablePathMatcher>();
GlobalRunSpec.cs (6)
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) }; 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 (31)
Adapter\TestExecutionRecorder.cs (1)
42_attachmentSets = new List<AttachmentSet>();
AttachmentsProcessing\DataCollectorAttachmentsProcessorsFactory.cs (1)
139var finalDatacollectorsAttachmentsProcessors = new List<DataCollectorAttachmentProcessor>();
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\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 (3)
459{ AssemblyType.Native, new List<string>()}, 460{ AssemblyType.Managed, new List<string>()}, 461{ AssemblyType.None, new List<string>()}
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 (1)
277_testResults = new List<TestResult>();
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 (11)
Microsoft\VisualBasic\Collection.vb (1)
345m_Iterators = New List(Of Object)
Microsoft\VisualBasic\CompilerServices\ConversionResolution.vb (1)
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 (1)
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 (25)
DataCollection\DataCollectionAttachmentManager.cs (1)
150List<AttachmentSet> attachments = new();
DataCollection\DataCollectionEnvironmentVariable.cs (1)
45_dataCollectorsThatRequested = new List<string> { requestingDataCollectorFriendlyName };
DataCollection\DataCollectionManager.cs (4)
245var result = new List<AttachmentSet>(); 268List<InvokedDataCollector> invokedDataCollector = new(); 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\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 (13)
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>();
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 (18)
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\FrameworkNameProvider.cs (3)
105_netStandardVersions = new List<NuGetFramework>(); 106_compatibleCandidates = new List<NuGetFramework>(); 491var result = new List<NuGetFramework>();
TestServiceLocator.cs (1)
17public static List<Resolve> Resolves { get; } = new();
Utilities\XmlRunSettingsUtilities.cs (1)
88var friendlyNameList = new List<string>();
Microsoft.Web.XmlTransform (7)
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 (2)
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 (2)
Mono.Cecil\MethodReferenceComparer.cs (2)
75 xComparisonStack = new List<MethodReference> (); 78 yComparisonStack = new List<MethodReference> ();
Mono.Cecil.Mdb (18)
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 (4)
51 method_lines = new List<LineNumberEntry> (); 104 _blocks = new List<CodeBlockEntry> (); 160 _locals = new List<LocalVariableEntry> (); 177 _scope_vars = new List<ScopeVariable> ();
Mono.Cecil.Pdb (2)
Microsoft.Cci.Pdb\PdbFile.cs (2)
321List<DbiModuleInfo> modList = new List<DbiModuleInfo>(); 403List<PdbFunction> funcList = new List<PdbFunction>();
MSBuild (15)
CommandLine\CommandLineParser.cs (3)
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\TaskParameter.cs (1)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
XMake.cs (8)
1550private static readonly List<BuildManager.DeferredBuildMessage> s_globalMessagesToLogInBuildLoggers = new(); 1620List<ForwardingLoggerRecord> remoteLoggerRecords = new List<ForwardingLoggerRecord>(); 1842List<BuildManager.DeferredBuildMessage> messagesToLogInBuildLoggers = new(); 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 (12)
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>();
GetRestorePackageDownloadsTask.cs (1)
39var entries = new List<ITaskItem>();
GetRestorePackageReferencesTask.cs (1)
39var entries = new List<ITaskItem>();
GetRestoreProjectReferencesTask.cs (1)
56var entries = new List<ITaskItem>();
GetRestoreSolutionProjectsTask.cs (1)
52var entries = new List<ITaskItem>();
TaskLoggingQueue.cs (1)
25private readonly List<string> _filesToEmbedInBinlog = new List<string>();
NuGet.Build.Tasks.Console (3)
MSBuildStaticGraphRestore.cs (2)
738return new List<ProjectGraphEntryPoint> 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 (62)
_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\Update\PackageUpdateCommandRunner.cs (4)
179var packagesToUpdateResult = new List<PackageUpdateResult>(); 474var packagesToUpdate = new List<PackageUpdateResult>(); 562List<string> frameworks = new(); 633var packagesToUpdate = new List<PackageUpdateResult>();
Commands\Package\Update\PackageUpdateIO.cs (2)
148var providers = new List<IPreLoadedRestoreRequestProvider> 282List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> allVulnerabilities = new();
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\VerifyCommand.cs (2)
72new List<Verification>() { Verification.All } : 73new List<Verification>() { Verification.Signatures };
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();
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 (2)
20return new(); 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 (94)
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 (2)
38var groups = new List<ContentItemGroup>(); 101entryMappings.Add(item.Path, new List<ContentFilesEntry>());
RestoreCommand\DependencyGraphResolver.cs (3)
132List<RestoreTargetGraph> allGraphs = new(); 138List<RestoreTargetGraph> runtimeGraphs = new(); 331List<GraphNode<RemoteResolveResult>> graphNodes = new();
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 (3)
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 (7)
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[]>>(); 285var graphs = new List<GraphNode<RemoteResolveResult>> 465var resultGraphs = new List<Task<RestoreTargetGraph>>();
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (2)
146?? new List<ProjectRestoreReference>(); 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 (13)
225var localRepositories = new List<NuGetv3LocalRepository> 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>();
RestoreCommand\RestoreCommandProvidersCache.cs (1)
119var fallbackFolders = new List<NuGetv3LocalRepository>();
RestoreCommand\RestoreRequest.cs (1)
45ExternalProjects = new List<ExternalProjectReference>();
RestoreCommand\RestoreResult.cs (1)
140LogMessages = lockFile?.LogMessages ?? new List<IAssetsLogMessage>();
RestoreCommand\RestoreRunner.cs (2)
172var requests = new List<RestoreSummaryRequest>(); 357var results = new List<RestoreSummaryRequest>();
RestoreCommand\Utility\AuditUtility.cs (3)
171affectedGraphs = new(); 421affectedGraphs = new(); 477knownVulnerabilities = new();
RestoreCommand\Utility\BuildAssetsUtils.cs (3)
104var files = new List<MSBuildOutputFile>() 501var props = new List<MSBuildRestoreItemGroup>(); 502var targets = new List<MSBuildRestoreItemGroup>();
RestoreCommand\Utility\LockFileUtils.cs (10)
337List<ContentItemGroup> contentFileGroups = new(); 372var runtimeTargetItems = new List<LockFileRuntimeTarget>(); 639projectLib.CompileTimeAssemblies = new List<LockFileItem>() { lockFileItem }; 640projectLib.RuntimeAssemblies = new List<LockFileItem>() { lockFileItem }; 745return result ?? new(); 769var lockFileItems = new List<LockFileItem>(); 1027var groups = new List<ContentItemGroup>(); 1088List<ContentItemGroup> groups = new List<ContentItemGroup>(); 1113var results = new List<LockFileRuntimeTarget>(); 1221var newBuildAssets = new List<LockFileItem>();
RestoreCommand\Utility\MSBuildRestoreUtility.cs (3)
100var additionalMessages = collectAdditionalMessages ? new List<IAssetsLogMessage>() : null; 103var validProjectSpecs = new List<PackageSpec>(); 629aliasGroups.Add(alias, new List<ProjectRestoreReference>());
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();
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 (5)
AsyncEnumerable\AggregateEnumeratorAsync.cs (3)
21private readonly List<IEnumeratorAsync<T>> _asyncEnumerators = new List<IEnumeratorAsync<T>>(); 71completedEnums = new List<IEnumeratorAsync<T>>(); 100completedEnums = new List<IEnumeratorAsync<T>>();
Errors\RestoreLogMessage.cs (1)
35var graphList = new List<string>();
Telemetry\TelemetryActivity.cs (1)
55_intervalList = new List<Tuple<string, TimeSpan>>();
NuGet.Configuration (24)
PackageSource\PackageSourceProvider.cs (2)
154packageSources = new List<PackageSource>(); 321var defaultPackageSourcesToBeAdded = new List<PackageSource>();
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 (1)
67Patterns = new List<PackagePatternItem>();
Settings\Items\RepositoryItem.cs (3)
55Owners = new List<string>(); 80Owners = _owners?.Content ?? new List<string>(); 84Owners = new List<string>();
Settings\Items\TrustedSignerItem.cs (1)
45Certificates = new List<CertificateItem>();
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 (1)
32Children = new List<T>();
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 (11)
GraphModel\AnalyzeResult.cs (3)
18Downgrades = new List<DowngradeResult<TItem>>(); 19VersionConflicts = new List<VersionConflictResult<TItem>>(); 20Cycles = new List<GraphNode<TItem>>();
GraphModel\GraphNode.cs (2)
24InnerNodes = hasInnerNodes ? new List<GraphNode<TItem>>() : EmptyList; 25ParentNodes = hasParentNodes ? new List<GraphNode<TItem>>() : EmptyList;
Remote\RemoteDependencyWalker.cs (2)
52var transitiveCentralPackageVersionNodes = new List<GraphNode<RemoteResolveResult>>(); 635list = new List<GraphNode<RemoteResolveResult>>();
Remote\RemoteWalkContext.cs (3)
21ProjectLibraryProviders = new List<IDependencyProvider>(); 22LocalLibraryProviders = new List<IRemoteDependencyProvider>(); 23RemoteLibraryProviders = new List<IRemoteDependencyProvider>();
ResolverUtility.cs (1)
501var tasks = new List<Task<RemoteMatch?>>();
NuGet.Frameworks (4)
CompatibilityProvider.cs (2)
161var targetSet = new List<NuGetFramework>() { target }; 164var candidateSet = new List<NuGetFramework>() { candidate };
FrameworkNameProvider.cs (2)
106_netStandardVersions = new List<NuGetFramework>(); 107_compatibleCandidates = new List<NuGetFramework>();
NuGet.LibraryModel (2)
LibraryDependencyTargetUtils.cs (1)
126var flagStrings = new List<string>();
LibraryIncludeFlagUtils.cs (1)
87var flagStrings = new List<string>();
NuGet.PackageManagement (82)
Audit\AuditChecker.cs (4)
199knownVulnerabilities ??= new(); 206errors ??= new(); 250var warnings = new List<LogMessage>(); 417Vulnerabilities = new();
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 (35)
169var sources = new List<SourceRepository>(); 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 }, 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>(); 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 }; 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>(); 3244List<PackagePatternItem> newPatternItems = new() 3779new List<SourceRepository> { primarySourceRepository }, 3803new List<SourceRepository> { primarySourceRepository }, 3834var tasks = new List<Task<ResolvedPackage>>(); 3856var tasks = new List<Task<ResolvedPackage>>();
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>>();
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\GatherCacheResult.cs (1)
24Packages = packages ?? new List<SourcePackageDependencyInfo>();
Resolution\ResolverGather.cs (9)
25private readonly List<SourceResource> _primaryResources = new List<SourceResource>(); 26private readonly List<SourceResource> _allResources = new List<SourceResource>(); 32private readonly List<GatherResult> _results = new List<GatherResult>(); 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>();
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 (110)
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 (10)
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>();
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 (4)
288return new List<PackageReferenceSet> { referenceSet }; 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 (2)
38List<ContentItemGroup> items = new(); 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 (2)
170var sets = new List<FrameworkRuntimePair>(); 216additionalDependencies ??= new();
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\Signatures\AuthorPrimarySignature.cs (1)
29var issues = new List<SignatureLog>();
Signing\Signatures\CommitmentTypeIndication.cs (1)
60qualifiers = new List<CommitmentTypeQualifier>();
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 (2)
87var certificates = new List<EssCertIdV2>(); 101var policies = new List<PolicyInformation>();
Signing\Timestamp\Extensions.cs (1)
35var extensions = new List<Extension>();
Signing\Utility\CertificateChainUtility.cs (1)
108var fatalStatuses = new List<X509ChainStatus>();
Signing\Utility\CertificateUtility.cs (3)
49var issues = new List<SignatureLog>(); 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>();
TopologicalSortUtility.cs (2)
50var itemInfos = new List<ItemDependencyInfo>(); 155parents = new List<ItemDependencyInfo>();
NuGet.ProjectModel (39)
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>();
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>();
PackageSpec.cs (1)
29public PackageSpec() : this(new List<TargetFrameworkInformation>())
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 (6)
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>();
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 (75)
_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\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 (1)
104return new List<LocalPackageInfo>();
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\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 (2)
140knownVulnerabilities = new(); 282exceptions = new();
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 (9)
PackageResolver.cs (5)
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) }); 271dependencyRangesByPackageId.Add(package.Id, new List<VersionRange>());
ResolverInputSort.cs (1)
33var sorted = new List<List<ResolverPackage>>();
ResolverUtility.cs (3)
328var result = new List<ResolverPackage>(); 422var node = new QueueNode(package, new List<ResolverPackage>()); 460return new List<ResolverPackage>();
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 (15)
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)>
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\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (3)
1815private readonly List<BamlAssemblyInfoRecord> _assemblyIdToInfo = new(); 1819private readonly List<BamlTypeInfoRecord> _typeIdToInfo = new(); 1827private readonly List<BamlStringInfoRecord> _stringIdToInfo = new();
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\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 (139)
MS\Internal\FontCache\FamilyCollection.cs (1)
49List<CompositeFontFamily> compositeFonts = new List<CompositeFontFamily>();
MS\Internal\Ink\Bezier.cs (2)
48List<Point> points = new List<Point>(); 579private List<Point> _bezierControlPoints = new List<Point>();
MS\Internal\Ink\CuspData.cs (1)
532private List<int> _cusps = new List<int>();
MS\Internal\Ink\ErasingStroke.cs (2)
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 (1)
71List<byte> compressedData = new List<byte>();
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 (9)
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>(); 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\StrokeRenderer.cs (3)
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>();
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>();
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 (2)
41_collection = new List<T>(); 74_collection = new List<T>();
System\Windows\Ink\IncrementalHitTester.cs (2)
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\Command\CanExecuteChangedEventManager.cs (3)
105toRemove = new List<HandlerSink>(); 191list = new List<HandlerSink>(); 266list = new List<Delegate>();
System\Windows\Input\InputScope.cs (2)
89private IList<InputScopeName> _scopeNames = new List<InputScopeName>(); 90private IList<InputScopePhrase> _phraseList = new List<InputScopePhrase>();
System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (1)
198_inertiaParameters = new List<InertiaParameters2D>();
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\StylusDeviceCollection.cs (1)
22: base(new List<StylusDevice>())
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (1)
112List<StylusPoint> stylusPoints = new List<StylusPoint>();
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (2)
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 (1)
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 (3)
42private List <WorkerOperation> _workerOperation = new List<WorkerOperation>(); 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 (2)
636List<TabletDevice> tabletTemp = new List<TabletDevice>(); 699private List<TabletDevice> _deferredTablets = new List<TabletDevice>();
System\Windows\Input\TouchDevice.cs (1)
1214List<TouchDevice> touches = new List<TouchDevice>();
System\Windows\InterOp\HwndSource.cs (1)
1919_keyboardInputSinkChildren = new List<HwndSourceKeyboardInputSite>();
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\ByteAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
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\ColorAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
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\DoubleAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
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\Int32AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
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\MatrixAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
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\Point3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
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\QuaternionAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
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\Rotation3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
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\SizeAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
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\Vector3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
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\BitmapDownload.cs (1)
118decoders = new List<WeakReference>()
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\SolidColorBrush.cs (1)
289keys = new List<TKey>();
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>();
PresentationFramework (326)
Microsoft\Win32\CommonItemDialog.cs (1)
550CustomPlaces = new List<FileDialogCustomPlace>();
Microsoft\Win32\FileDialog.cs (1)
676List<string> extensions = new();
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
88IList<DependencyObject> pageEl = new List<DependencyObject>();
MS\Internal\Annotations\Anchoring\LocatorManager.cs (3)
263IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(); 636List<ContentLocatorBase> locatorsToReturn = new List<ContentLocatorBase>(); 1298private List<IAttachedAnnotation> _attachedAnnotations = new List<IAttachedAnnotation>();
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
113IList<DependencyObject> list = new List<DependencyObject>();
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 (3)
36_segments = new List<HighlightSegment>(); 793IList<HighlightSegment> res = new List<HighlightSegment>(); 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\Controls\InkCanvasSelectionAdorner.cs (1)
88_elementsBounds = new List<Rect>();
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
842_toRemove = new List<CollectionViewGroupInternal>();
MS\Internal\Data\CommitManager.cs (4)
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>();
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\LiveShapingList.cs (4)
87_sortDirtyItems = new List<LiveShapingItem>(); 88_filterDirtyItems = new List<LiveShapingItem>(); 89_groupDirtyItems = new List<LiveShapingItem>(); 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\MultiPageTextView.cs (2)
42_pageTextViews = new List<DocumentPageTextView>(); 684List<TextSegment> textSegments = new List<TextSegment>();
MS\Internal\Documents\TextBoxLine.cs (1)
253List<Rect> rectangles = new List<Rect>();
MS\Internal\Documents\TextContainerHelper.cs (6)
83segments = new List<TextSegment>(); 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 (1)
355List<GlyphRun> glyphRuns = new List<GlyphRun>();
MS\Internal\Documents\UIElementIsland.cs (1)
207List<IInputElement> hostedElements = new List<IInputElement>();
MS\Internal\Globalization\BamlTreeNode.cs (1)
192_children = new List<BamlTreeNode>();
MS\Internal\Globalization\BamlTreeUpdater.cs (2)
45List<KeyValuePair<BamlLocalizableResourceKey, BamlLocalizableResource>> deferredResources = new(); 565List<BamlTreeNode> list = new();
MS\Internal\Helper.cs (1)
879List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item) ?? new List<KeyValuePair<int, object>>();
MS\Internal\Ink\ElementsClipboardData.cs (1)
59return new List<UIElement>();
MS\Internal\Ink\HighContrastHelper.cs (1)
61__highContrastCallbackList = new List<WeakReference>();
MS\Internal\Ink\InkCanvasSelection.cs (2)
82_selectedElements = new List<UIElement>(); 823List<Rect> rects = new List<Rect>();
MS\Internal\Ink\LassoHelper.cs (1)
72List<Point> justAdded = new List<Point>();
MS\Internal\Ink\LassoSelectionBehavior.cs (5)
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>();
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 (2)
129List<Rect> rectangles = new List<Rect>(); 158rectangles = new List<Rect>();
MS\Internal\PtsHost\FigureParaClient.cs (1)
281List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\FloaterParaClient.cs (1)
286List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
312List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\Line.cs (1)
488List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\PtsCache.cs (1)
235_releaseQueue = new List<PtsContext>();
MS\Internal\PtsHost\PtsHelper.cs (2)
446List<Rect> rectangles = new List<Rect>(); 485List<Rect> rectangles = new List<Rect>();
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 (1)
220List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\TableParaClient.cs (2)
433List<Rect> rectangles = new List<Rect>(); 447rectangles = new List<Rect>();
MS\Internal\PtsHost\TextParaClient.cs (5)
249List<Rect> rectangles = new List<Rect>(); 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 (2)
883List<TextElement> attachedElements = new List<TextElement>(); 938List<AttachedObject> attachedObjects = new List<AttachedObject>();
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 (1)
723List<Annotation> annotations = new List<Annotation>();
System\Windows\Annotations\AnnotationService.cs (3)
952IList<IAttachedAnnotation> dirtyAnnotations = new List<IAttachedAnnotation>(); 980IList<UIElement> processedElements = new List<UIElement>(); 1160List<IAttachedAnnotation> result = new List<IAttachedAnnotation>();
System\Windows\Annotations\Storage\XmlStreamStore.cs (3)
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 (3)
173List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(); 238List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 272List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>();
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
373List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>();
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 (1)
75children = new List<AutomationPeer>();
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
146children = new List<AutomationPeer>();
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 (3)
506_recentlyRealizedPeers = new List<ItemAutomationPeer>(); 615_list = new List<KeyValuePair<object, T>>(); 661List<object> cleanUpItemsCollection = new List<object>();
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (1)
154return new List<AutomationPeer>();
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\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 (4)
219List<int> realizedColumnIndices = new List<int>(); 220List<int> realizedColumnDisplayIndices = new List<int>(); 460List<RealizedColumnsBlock> resultList = new List<RealizedColumnsBlock>(); 1563List<int> additionalChildIndices = new List<int>();
System\Windows\Controls\DataGridColumnCollection.cs (2)
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\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\PopupControlService.cs (1)
847List<NativeMethods.RECT> rects = new List<NativeMethods.RECT>();
System\Windows\Controls\Primitives\Popup.cs (1)
188registeredPopups = new List<Popup>()
System\Windows\Controls\Primitives\Selector.cs (3)
2286List<ItemInfo> unselected = new List<ItemInfo>(); 2287List<ItemInfo> selected = new List<ItemInfo>(); 2407? new List<ItemInfo>() : null;
System\Windows\Controls\TextAdaptor.cs (2)
128List<Rect> rectangles = new List<Rect>(); 508List<TextSegment> visibleTextSegments = new List<TextSegment>();
System\Windows\Controls\TextBlock.cs (1)
1784List<Rect> rectangles = new List<Rect>();
System\Windows\Controls\ToolBarTray.cs (1)
955private List<ToolBar> _band = new List<ToolBar>();
System\Windows\Controls\VirtualizedCellInfoCollection.cs (8)
28_regions = new List<CellRegion>(); 41_regions = (regions != null) ? new List<CellRegion>(regions) : new List<CellRegion>(); 201List<DataGridCellInfo> list = new List<DataGridCellInfo>(); 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 (4)
10923previouslyMeasuredOffsets = new List<double>(); 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 (4)
289list = new List<ValidationError>(); 2289notifyDataErrors = new List<ValidationError>(); 2331toAdd = new List<object>(); 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 (5)
173toRemove = new List<WeakReference<ResourceDictionary>>(); 237List<WeakReference<ResourceDictionary>> toRemove = new List<WeakReference<ResourceDictionary>>(); 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\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\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 (2)
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\TextEffectResolver.cs (1)
50List<TextEffectTarget> list = new List<TextEffectTarget>();
System\Windows\Documents\TextRangeSerialization.cs (2)
84List<int> ignoreList = new List<int>(); 343List<int> ignoreList = new List<int>();
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\FrameworkTemplate.cs (1)
1517private List<String> _childNames = new List<string>();
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 (3)
1815private readonly List<BamlAssemblyInfoRecord> _assemblyIdToInfo = new(); 1819private readonly List<BamlTypeInfoRecord> _typeIdToInfo = new(); 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 (1)
5625private static List<ReaderContextStackData> _stackDataFactoryCache = new List<ReaderContextStackData>();
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\XamlTypeMapperSchemaContext.cs (1)
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\Storyboard.cs (1)
585List<AnimationClock> clockList = new List<AnimationClock>();
System\Windows\Navigation\Journal.cs (1)
654private List<JournalEntry> _journalEntryList = new List<JournalEntry>();
System\Windows\ResourceDictionary.cs (1)
1162_deferredLocationList = new List<KeyRecord>();
System\Windows\Shell\JumpList.cs (9)
74RejectedItems = new List<JumpItem>().AsReadOnly(); 75RejectionReasons = new List<JumpItemRejectionReason>().AsReadOnly(); 100RemovedItems = new List<JumpItem>().AsReadOnly(); 279_jumpItems = new List<JumpItem>(); 500categories = new List<List<_ShellObjectPair>>() { new List<_ShellObjectPair>() }; 554categories.Add(new List<_ShellObjectPair>() { shellMap }); 759var retList = new List<_ShellObjectPair>(); 835var linksOnlyList = new List<_ShellObjectPair>();
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 (4)
1108actionsList = new List<TriggerAction>(); 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 (1)
30_rawList = new List<TriggerAction>();
System\Windows\Window.cs (2)
344_threadWindowHandles = new List<IntPtr>(); 6709var nativeIcons = new List<NativeMethods.IconHandle>();
PresentationUI (18)
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\RightsManagementManager.cs (1)
651IList<string> accountList = new List<string>();
MS\Internal\Documents\RightsManagementProvider.cs (5)
516grantDictionary[user] = new List<ContentGrant>(); 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 (3)
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 (36)
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>();
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 (30)
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\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\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.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
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\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\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>();
Roslyn.Diagnostics.CSharp.Analyzers (11)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
117var partsList = new List<string>();
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>();
rzc (9)
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>();
DefaultExtensionAssemblyLoader.cs (1)
57paths = new List<string>();
DefaultRequestDispatcher.cs (1)
26private List<Task<ConnectionResult>> _connections = new();
DiscoverCommand.cs (1)
213var inputFiles = new List<RazorInputFile>
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 (18)
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 (1)
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.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.Concurrent (1)
System\Collections\Concurrent\ConcurrentStack.cs (1)
703List<T> list = new List<T>();
System.Collections.Immutable (3)
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.CommandLine (17)
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 (1)
124(errorList ??= new()).Add(error!);
Parsing\SymbolResult.cs (1)
57internal void AddToken(Token token) => (_tokens ??= new()).Add(token);
Parsing\SymbolResultTree.cs (3)
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 (3)
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();
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
53List<PropertyDescriptor> tempPropertyDescriptors = new List<PropertyDescriptor>();
System\ComponentModel\DataAnnotations\Validator.cs (5)
717var errors = new List<ValidationError>(); 818var errors = new List<ValidationError>(); 845(asyncAttributes ??= new List<AsyncValidationAttribute>()).Add(asyncAttr); 1074var errors = new List<ValidationError>(); 1166var errors = new List<ValidationError>();
System.ComponentModel.Composition (50)
Microsoft\Internal\Collections\CollectionServices.cs (1)
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\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 (1)
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 (2)
25private List<ComposablePartCatalog> _catalogs = new List<ComposablePartCatalog>(); 113_catalogs = new List<ComposablePartCatalog>();
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 (2)
37_partsToAdd = new List<ComposablePart>(); 51_partsToRemove = new List<ComposablePart>();
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 (9)
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\MaskedTextProvider.cs (2)
290_stringDescriptor = new List<CharDescriptor>(); 535List<int> editPositions = new List<int>();
System\ComponentModel\MemberDescriptor.cs (2)
95List<Attribute> newList = new List<Attribute>(); 331list = new List<Attribute>();
System\ComponentModel\ReferenceConverter.cs (1)
130components = new List<object?> { null };
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
859List<Type> typeList = new List<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 (4)
System\Composition\Hosting\Core\CompositionOperation.cs (2)
53_nonPrerequisiteActions ??= new List<Action>(); 67_postCompositionActions ??= new List<Action>();
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 (5)
System\Configuration\ApplicationSettingsBase.cs (1)
715var settingProps = new List<PropertyInfo>();
System\Configuration\BaseConfigurationRecord.cs (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\Diagnostics\ListenerElementsCollection.cs (1)
27List<TraceListener> listeners = new();
System.Data.Common (48)
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 (18)
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>(); 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 (3)
83_listOfPredicates = new List<Func<TRow, bool>>(); 94_listOfPredicates = new List<Func<TRow, bool>>(); 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 (2)
132List<object?> keyList = new List<object?>(); 168List<object?> keyList = new List<object?>();
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 (4)
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>();
System\Xml\XmlDataDocument.cs (2)
3057List<DataTable> tableList = new List<DataTable>(); 3097List<DataTable> tableList = new List<DataTable>();
System.Data.Odbc (10)
Common\System\Data\Common\DBConnectionString.cs (3)
402newlist = new List<string>(); 425newlist = new List<string>(); 467List<string> restrictionValues = new List<string>();
Common\System\Data\ProviderBase\DbConnectionPool.cs (1)
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 (7)
OleDbConnectionStringBuilder.cs (1)
452List<Guid> listPropertySets = new List<Guid>();
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 (1)
1596List<DbConnectionInternal> reclaimedObjects = new List<DbConnectionInternal>();
System.Diagnostics.DiagnosticSource (13)
System\Diagnostics\ActivitySource.cs (1)
438(predicateFailures ??= new List<Exception>()).Add(ex);
System\Diagnostics\ActivityTagsCollection.cs (1)
24private readonly List<KeyValuePair<string, object?>> _list = new List<KeyValuePair<string, object?>>();
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\Meter.cs (5)
18private static readonly List<Meter> s_allMeters = new List<Meter>(); 19private List<Instrument> _instruments = new List<Instrument>(); 508_instruments = new List<Instrument>(); 549instrumentList = new List<Instrument>(); 604instruments = new List<Instrument>();
System\Diagnostics\Metrics\MeterListener.cs (2)
21private static readonly List<MeterListener> s_allStartedListeners = new List<MeterListener>(); 230exceptionsList ??= new List<Exception>();
System\Diagnostics\W3CPropagator.cs (1)
131baggageList ??= new List<KeyValuePair<string, string?>>();
System.Diagnostics.EventLog (5)
System\Diagnostics\EventLogInternal.cs (1)
1421public List<EventLogInternal> listeningComponents = new();
System\Diagnostics\Reader\EventLogRecord.cs (1)
372List<EventProperty> list = new List<EventProperty>();
System\Diagnostics\Reader\EventMetadata.cs (1)
86List<EventKeyword> list = new List<EventKeyword>();
System\Diagnostics\Reader\NativeWrapper.cs (1)
994List<string> keywordsList = new List<string>();
System\Diagnostics\Reader\ProviderMetadata.cs (1)
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 (8)
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 (1)
34_threadInfoList = new List<ThreadInfo>();
System\Diagnostics\ProcessUtils.Unix.cs (1)
242var argvList = new List<string>();
System\Diagnostics\ProcessWaitState.Unix.cs (1)
669additionalToRemove ??= new List<ProcessWaitState>();
System.Diagnostics.TraceSource (4)
System\Diagnostics\CorrelationManager.cs (1)
128var results = new List<object?>();
System\Diagnostics\Switch.cs (1)
29private static readonly List<WeakReference<Switch>> s_switches = new List<WeakReference<Switch>>();
System\Diagnostics\SwitchAttribute.cs (1)
53List<object> switchAttribs = new List<object>();
System\Diagnostics\TraceSource.cs (1)
15private static readonly List<WeakReference<TraceSource>> s_tracesources = new List<WeakReference<TraceSource>>();
System.DirectoryServices (2)
System\DirectoryServices\ActiveDirectory\DirectoryServerCollection.cs (2)
18private readonly List<object> _copyList = new(); 401var values = new List<string>();
System.DirectoryServices.AccountManagement (34)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (1)
285List<string> objectClasses = new List<string>();
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (10)
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 (1)
1359var propertyValueList = new List<object>();
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 (1)
249private readonly List<string> _certificateOriginalThumbprints = new List<string>();
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 (1)
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (1)
220List<decimal> values = new();
System.Formats.Tar (1)
System\Formats\Tar\TarReader.cs (1)
395_dataStreamsToDispose ??= new List<Stream>();
System.IO.Compression (2)
System\IO\Compression\ZipArchive.cs (1)
191_entries = new List<ZipArchiveEntry>();
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 (2)
System\IO\Packaging\PackagePart.cs (1)
334_requestedStreams ??= new List<Stream>(); //Default capacity is 4
System\IO\Packaging\XmlCompatibilityReader.cs (1)
113List<string> keysToUpdate = new List<string>();
System.IO.Pipelines (2)
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 (1)
System\Linq\Concat.SpeedOpt.cs (1)
373var list = count != -1 ? new List<TSource>(count) : new List<TSource>();
System.Linq.Expressions (29)
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 (3)
338buckets.Add(new List<SwitchLabel> { key }); 396var keys = new List<SwitchLabel>(); 420var buckets = new List<List<SwitchLabel>>();
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 (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>(); 2025exHandlers = new List<ExceptionHandler>(); 2169updaters = new List<ByRefUpdater>() { updater }; 2186updaters ??= new List<ByRefUpdater>(); 2423updaters ??= new List<ByRefUpdater>();
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 (6)
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 (1)
4853List<TSource> list = new List<TSource>();
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 (20)
System\Net\Http\Headers\CacheControlHeaderValue.cs (1)
363List<NameValueHeaderValue> nameValueList = new List<NameValueHeaderValue>();
System\Net\Http\Headers\HttpHeaders.cs (3)
226info.RawValue = rawValues = new List<string>(); 968List<object> parsedValues = new List<object>(); 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 (11)
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 (1)
88_chunks = new List<Chunk>();
System\Net\Managed\HttpEndPointListener.cs (4)
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 (14)
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 (9)
135List<AddressRecord> records = new List<AddressRecord>(); 184List<(string Target, ushort Port, ushort Priority, ushort Weight, uint Ttl)> srvs = new(); 217list ??= new List<AddressRecord>(); 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.Requests (2)
System\Net\FtpControlStream.cs (1)
489var commandList = new List<PipelineEntry>();
System\Net\TimerThread.cs (1)
135var garbage = new List<object>();
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.WebHeaderCollection (1)
System\Net\HeaderInfoTable.cs (1)
24var tempStringCollection = new List<string>();
System.Net.WebSockets.Client (1)
System\Net\WebSockets\BrowserWebSockets\ClientWebSocketOptions.cs (1)
115internal List<string> RequestedSubProtocols => field ??= new List<string>();
System.ObjectModel (1)
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.Private.CoreLib (59)
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\System.Private.CoreLib\src\System\AggregateException.cs (3)
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 (1)
532List<T> list = new List<T>();
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\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 (1)
336List<EventSource> sourcesToDispose = new List<EventSource>();
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 (2)
62errors = new List<string>(); 369var sortedChannels = new List<KeyValuePair<int, ChannelInfo>>();
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\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\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 (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\Task.cs (9)
2319Interlocked.CompareExchange(ref props.m_exceptionalChildren, new List<Task>(), null); 4739list = new List<object?>(); 4833continuationsLocalRef = Interlocked.CompareExchange(ref m_continuationObject, new List<object?>(), continuationObject); 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\TaskScheduler.cs (1)
490List<TaskScheduler> schedulers = new List<TaskScheduler>();
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\TimeZoneInfo.cs (1)
1174value._equivalentZones = new List<TimeZoneInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
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\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 (33)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
167var typeArgumentList = new List<CodeTypeReference>();
System\Runtime\Serialization\ClassDataContract.cs (4)
627_members = new List<DataMember>(); 805List<DataMember> tempMembers = new List<DataMember>(); 981List<Member> membersInHierarchy = new List<Member>(); 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 (1)
394List<Type> types = new List<Type>();
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 (2)
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 (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
269new List<object?>
System.Private.Xml (136)
System\Xml\Core\XmlEventCache.cs (1)
537_pages = new List<XmlEvent[]>();
System\Xml\Core\XmlWriterSettings.cs (1)
250internal List<XmlQualifiedName> CDataSectionElements { get; private set; } = new();
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\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 (2)
3053List<T> listDst = new List<T>(); 3081List<object> listDst = new List<object>();
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 (6)
146var membersList = new List<Member>(); 147var textOrArrayMembersList = new List<Member>(); 148var attributeMembersList = new List<Member>(); 390checkTypeHrefSource = new List<CheckTypeSource>(); 1592var listOfItems = new List<object?>(); 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\XmlSerializationReader.cs (4)
1925var xmlNodeList = new List<XmlNode>(); 2566var membersList = new List<Member>(); 2567var textOrArrayMembersList = new List<Member>(); 2568var attributeMembersList = new List<Member>();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (14)
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>(); 1881var attributes = new List<AttributeAccessor>(); 2068List<Type> argTypes = new List<Type>(); 3363List<Type> argTypes = new List<Type>();
System\Xml\Serialization\XmlSerializationWriterILGen.cs (10)
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>(); 1315List<Type> argTypes = new List<Type>(); 1628var namedAnys = new List<ElementAccessor>(); 2039List<Type> argTypes = new List<Type>();
System\Xml\XPath\Internal\CacheAxisQuery.cs (1)
17this.outputBuffer = new List<XPathNavigator>();
System\Xml\XPath\Internal\CacheOutputQuery.cs (1)
21this.outputBuffer = new List<XPathNavigator>();
System\Xml\XPath\Internal\FollSiblingQuery.cs (1)
19_parentStk = new List<XPathNavigator>();
System\Xml\XPath\Internal\Function.cs (1)
67_argumentList = new List<AstNode>();
System\Xml\XPath\Internal\PreSiblingQuery.cs (1)
48List<XPathNavigator> parentStk = new List<XPathNavigator>();
System\Xml\XPath\Internal\SortQuery.cs (1)
23_results = new List<SortKey>();
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\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 (2)
690public static readonly XmlQueryType None = new ChoiceType(new List<XmlQueryType>()); 711members = new List<XmlQueryType>();
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 (2)
578paramWithCalls = new List<VarPar>(); 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\XPathPatternParser.cs (1)
235List<QilNode> predicates = new List<QilNode>();
System\Xml\Xsl\Xslt\XslAst.cs (2)
105private static readonly IList<XslNode> s_emptyList = new List<XslNode>().AsReadOnly(); 120_content ??= new List<XslNode>();
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (4)
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>();
System\Xml\Xsl\Xslt\XsltLoader.cs (14)
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>(); 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 (3)
System\Reflection\Context\Custom\CustomType.cs (2)
102List<PropertyInfo> matchingProperties = new List<PropertyInfo>(); 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 (38)
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 (2)
46_interfaces ??= new List<Type>(); 53_customAttributes ??= new List<CustomAttributeWrapper>();
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 (16)
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(); 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>(); 1004List<PropertyInfo> properties = new List<PropertyInfo>(); 1109List<Type> nestedTypes = new List<Type>(); 1127List<Type> nestedTypes = new List<Type>();
System.Reflection.Metadata (48)
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.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.MetadataLoadContext (6)
System\Reflection\PathAssemblyResolver.cs (1)
48_fileToPaths.Add(file, paths = new List<string>());
System\Reflection\TypeLoading\Assemblies\RoAssembly.GetForwardedTypes.cs (2)
16List<Type> types = new List<Type>(); 47exceptions ??= new List<Exception>();
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (1)
113List<CustomAttributeNamedArgument> cans = new List<CustomAttributeNamedArgument>();
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.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (1)
25private readonly List<nint> JSVHandleFreeList = new();
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.Claims (3)
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.Cryptography (30)
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 (2)
81_bags ??= new List<Pkcs12SafeBag>(); 337List<SafeBagAsn> serializedBags = new List<SafeBagAsn>();
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\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 (1)
114List<GeneralNameAsn> decoded = new List<GeneralNameAsn>();
System.Security.Cryptography.Pkcs (37)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
55var recipientInfos = new List<RecipientInfo>();
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 (2)
81_bags ??= new List<Pkcs12SafeBag>(); 337List<SafeBagAsn> serializedBags = new List<SafeBagAsn>();
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)
16_recipients = new List<CmsRecipient>();
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 (2)
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 (7)
System\ServiceModel\Channels\ConnectionPool.cs (5)
82itemsToClose = new List<TItem>(); 98endpointKeysToRemove = new List<TKey>(); 235_busyConnections = new List<TItem>(); 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 (80)
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
75IList<Tuple<string, string>> exceptionInfo = new List<Tuple<string, string>>()
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\X509CertificateClaimSet.cs (2)
177List<Claim> claims = new List<Claim>(); 339List<string> dnsEntries = new List<string>();
System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
66_claimSets = new List<ClaimSet>();
System\IdentityModel\SecurityUtils.cs (2)
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\WSSecurityJan2004.cs (1)
30List<StrEntry> strEntries = new List<StrEntry>();
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
34List<StrEntry> strEntries = new List<StrEntry>();
System\ServiceModel\Channels\AddressHeaderCollection.cs (3)
16: base(new List<AddressHeader>()) 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 (2)
199List<string> keys = new List<string>(); 268List<object> values = new List<object>();
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 (4)
413List<Type> types = new List<Type>(); 465List<Type> types = new List<Type>(); 498List<object> attrTypeAttributes = new List<object>(); 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\FaultFormatter.cs (2)
23List<FaultContractInfo> faultContractInfoList = new List<FaultContractInfo>(); 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\MessagePartSpecification.cs (1)
25_headerTypes = new List<XmlQualifiedName>();
System\ServiceModel\Security\ReceiveSecurityHeader.cs (1)
393_allowedAuthenticators = new List<SecurityTokenAuthenticator>();
System\ServiceModel\Security\SecurityProtocol.cs (1)
60s_emptyTokenProviders = new ReadOnlyCollection<SupportingTokenProviderSpecification>(new List<SupportingTokenProviderSpecification>());
System\ServiceModel\Security\SecuritySessionClientSettings.cs (1)
813List<RequestSecurityTokenResponse> rstrList = new List<RequestSecurityTokenResponse>();
System\ServiceModel\Security\SecurityUtils.cs (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\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\SynchronizedCollection.cs (2)
18Items = new List<T>(); 24Items = new List<T>();
System\ServiceModel\SynchronizedReadOnlyCollection.cs (2)
17Items = new List<T>(); 23Items = new List<T>();
System.ServiceModel.Primitives.Tests (25)
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 (1)
88new SynchronizedCollection<int>(null, new List<int>());
System.Speech (53)
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 (3)
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 (6)
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>>();
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 (3)
751List<LexiconEntry> lexicons = new(); 1467List<InstalledVoice> voices = new(); 1791private List<LexiconEntry> _lexicons = new();
Recognition\RecognizerBase.cs (1)
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 (1)
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 (22)
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 (1)
316list = new();
System\Text\Json\Serialization\ConfigurationList.cs (1)
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\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
369List<Type> matchingBases = new();
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (2)
41private readonly List<UnionCaseEntry> _caseEntries = new(); 497(relatedTypes ??= new()).Add(candidate);
System.Text.Json.SourceGeneration (20)
Helpers\RoslynExtensions.cs (3)
224var result = new List<ITypeParameterSymbol>(); 648var list = new List<INamedTypeSymbol>(); 885(derivedTypes ??= new()).Add(derivedType);
JsonSourceGenerator.Emitter.cs (1)
1137entries = new();
JsonSourceGenerator.Parser.cs (13)
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>(); 1291(derivedTypes ??= new()).Add(new DerivedTypeSpec 1640var caseTypes = new List<ITypeSymbol>(); 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 (24)
System\Text\RegularExpressions\MatchCollection.cs (1)
77_matches = new List<Match>();
System\Text\RegularExpressions\Regex.Split.cs (1)
295var state = (results: new List<string>(), prevat: 0, input, count);
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 (13)
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\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.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 (9)
Base\DataflowBlock.cs (1)
2427_tempSendAsyncTaskList ??= new List<Task<bool>>();
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 (1)
58_storage = new List<KeyValuePair<int, T>>();
Internal\SourceCore.cs (1)
337var tmpList = new List<TOutput>();
Internal\SpscTargetCore.cs (1)
312lock (LazyInitializer.EnsureInitialized(ref _exceptions, static () => new List<Exception>()))
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.ForEachAsync.cs (1)
619(_exceptions ??= new List<Exception>()).Add(e);
System.Windows.Controls.Ribbon (17)
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\RibbonGalleryAutomationPeer.cs (1)
165List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>();
Microsoft\Windows\Automation\Peers\RibbonQuickAccessToolBarAutomationPeer.cs (1)
48children = new List<AutomationPeer>();
Microsoft\Windows\Controls\KeyTipService.cs (4)
892activeKeyTipElements = new List<DependencyObject>(); 1531current._cachedKeyTipControls = new List<KeyTipControl>(); 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\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>();
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2365Properties.AddValue(s_propDelayedUpdateItems, new List<ListViewItem>());
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
117List<ListViewGroup?> list = new();
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
3898List<ToolStripItem> buttonList = fullRebuild ? new() : new(_toolStrip.Items.OfType<ToolStripItem>());
System\Windows\Forms\DataBinding\BindingSource.cs (1)
81_innerList = new List<object>();
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
1058errorCollection = new List<object>()
System.Xaml (67)
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 (3)
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 (6)
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\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 (7)
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\XamlNamespace.cs (1)
206List<XamlType> xamlTypeList = new List<XamlType>();
System\Xaml\XamlMember.cs (1)
578List<XamlMember> result = new List<XamlMember>();
System\Xaml\XamlNodeList.cs (1)
37_nodeList = new List<XamlNode>();
System\Xaml\XamlObjectReader.cs (8)
251private List<MarkupInfo> children = new List<MarkupInfo>(); 991private List<MarkupInfo> properties = new List<MarkupInfo>(); 1622var ctorArgProps = new List<XamlMember>(); 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 (3)
113result = new List<string>(); 934List<string> combinedList = new List<string>(); 1047List<string> list = new List<string>();
System\Xaml\XamlTypeName.cs (1)
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>();
UnitTests.Common (1)
MemberDataSet.cs (1)
37private readonly List<object[]> _data = new List<object[]>();
VBCSCompiler (9)
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>();
vstest.console (18)
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 (4)
111private readonly List<string> _discoveredTests = new(); 311var filteredList = new List<TestCase>(); 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 (18)
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 (4)
111private readonly List<string> _discoveredTests = new(); 311var filteredList = new List<TestCase>(); 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>();