9708 references to List
Accessibility_Core_App (1)
DataBindingExample.cs (1)
40dataGridView1.DataSource = new List<Student>
AnalyzerRunner (2)
CodeRefactoringRunner.cs (1)
88var codeActions = new List<CodeAction>();
DiagnosticAnalyzerRunner.cs (1)
324var projectDiagnosticTasks = new List<KeyValuePair<ProjectId, Task<AnalysisResult>>>();
ApiExplorerWebSite (5)
ApiExplorerDataFilter.cs (5)
34var descriptions = new List<ApiExplorerData>(); 126public List<ApiExplorerParameterData> ParameterDescriptions { get; } = new List<ApiExplorerParameterData>(); 130public List<ApiExplorerResponseType> SupportedResponseTypes { get; } = new List<ApiExplorerResponseType>(); 132public List<ApiExplorerRequestFormat> SupportedRequestFormats { get; } = new List<ApiExplorerRequestFormat>(); 165= new List<ApiExplorerResponseFormat>();
ApplicationModelWebSite (2)
Conventions\CloneActionConvention.cs (1)
12var actionModels = new List<ActionModel>();
Conventions\MultipleAreasControllerConvention.cs (1)
13var controllerModels = new List<ControllerModel>();
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.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.Components.Common.Tests (4)
ActivityNotifier.cs (1)
20var activityList = new List<Activity>();
ConformanceTests.cs (2)
125List<string> registeredNames = new(); 429List<Activity> exportedActivities = new();
TestLoggerFactory.cs (1)
13public List<ILoggerProvider> LoggerProviders { get; } = new();
Aspire.Confluent.Kafka.Tests (2)
OtelMetricsTests.cs (1)
33List<Metric> metrics = new();
OtelTracesTests.cs (1)
35List<Activity> activities = new();
Aspire.Dashboard (59)
Components\Controls\Chart\ChartBase.cs (5)
130var xValues = new List<DateTimeOffset>(); 131var exemplars = new List<ChartExemplar>(); 377var yValues = new List<double?>(); 378var xValues = new List<DateTimeOffset>(); 379var exemplars = new List<ChartExemplar>();
Components\Controls\Chart\ChartContainer.razor.cs (1)
199var filters = new List<DimensionFilterViewModel>();
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)
65TraceData = new List<object?>() 148Y = new List<double?>(), 149X = new List<DateTimeOffset>(), 150Tooltips = new List<string?>(), 151TraceData = new List<object?>()
Components\Controls\ClearSignalsButton.razor.cs (1)
30private readonly List<MenuButtonItem> _clearMenuItems = new();
Components\Controls\ResourceActions.razor.cs (2)
57private readonly List<CommandViewModel> _highlightedCommands = new(); 58private readonly List<MenuButtonItem> _menuItems = new();
Components\Controls\ResourceDetails.razor.cs (2)
159var items = new List<ResourceDetailRelationship>(); 189var items = new List<ResourceDetailRelationship>();
Components\Controls\SpanActions.razor.cs (1)
33private readonly List<MenuButtonItem> _menuItems = new();
Components\Controls\StructuredLogActions.razor.cs (1)
39private readonly List<MenuButtonItem> _menuItems = new();
Components\Controls\TraceActions.razor.cs (1)
30private readonly List<MenuButtonItem> _menuItems = new();
Components\Pages\ConsoleLogs.razor.cs (3)
90private readonly List<CommandViewModel> _highlightedCommands = new(); 91private readonly List<MenuButtonItem> _logsMenuItems = new(); 92private readonly List<MenuButtonItem> _resourceMenuItems = new();
Components\Pages\Metrics.razor.cs (1)
70_durations = new List<SelectViewModel<TimeSpan>>
Components\Pages\StructuredLogs.razor.cs (1)
173_logLevels = new List<SelectViewModel<LogLevel?>>
Components\Pages\TraceDetail.razor.cs (1)
25private readonly List<IDisposable> _peerChangesSubscriptions = new();
Configuration\DashboardOptions.cs (1)
84public List<AllowedCertificateRule> AllowedCertificates { get; set; } = new();
Configuration\ValidateDashboardOptions.cs (1)
27var errorMessages = new List<string>();
DashboardWebApplication.cs (3)
51private readonly List<Func<EndpointInfo>> _frontendEndPointAccessor = new(); 555var connectionTypes = new List<ConnectionType> { ConnectionType.Otlp }; 587var connectionTypes = new List<ConnectionType> { ConnectionType.Otlp };
Model\DimensionFilterViewModel.cs (1)
15public List<DimensionValueViewModel> Values { get; } = new();
Model\Otlp\ApplicationsSelectHelpers.cs (1)
47var selectViewModels = new List<SelectViewModel<ResourceTypeDetails>>();
Model\Otlp\SpanWaterfallViewModel.cs (1)
123var orderedSpans = new List<SpanWaterfallViewModel>();
Model\ResourceGridViewModel.cs (1)
43var gridViewModels = new List<ResourceGridViewModel>();
Model\StructuredLogsViewModel.cs (1)
13private readonly List<TelemetryFilter> _filters = new();
Model\ThemeManager.cs (1)
51private readonly List<ModelSubscription> _subscriptions = new List<ModelSubscription>();
Model\TracesViewModel.cs (1)
13private readonly List<TelemetryFilter> _filters = new();
Otlp\Model\ColorGenerator.cs (1)
34_colors = new List<GeneratedColor>();
Otlp\Model\DurationFormatter.cs (1)
18private static readonly List<UnitStep> s_unitSteps = new List<UnitStep>
Otlp\Model\MetricValues\MetricValueBase.cs (1)
13public List<MetricsExemplar> Exemplars => _exemplars ??= new List<MetricsExemplar>();
Otlp\Model\OtlpApplicationView.cs (1)
44var props = new List<OtlpDisplayField>
Otlp\Model\OtlpInstrument.cs (1)
75values = new List<string?>();
Otlp\Model\OtlpSpan.cs (1)
90var props = new List<OtlpDisplayField>
Otlp\Storage\PagedResult.cs (1)
11Items = new List<T>()
Otlp\Storage\TelemetryRepository.cs (9)
29private readonly List<Subscription> _applicationSubscriptions = new(); 30private readonly List<Subscription> _logSubscriptions = new(); 31private readonly List<Subscription> _metricsSubscriptions = new(); 32private readonly List<Subscription> _tracesSubscriptions = new(); 46private readonly List<OtlpSpanLink> _spanLinks = new(); 1084var events = new List<OtlpSpanEvent>(); 1086var links = new List<OtlpSpanLink>(); 1140return new List<OtlpInstrumentSummary>(); 1182var allDimensions = new List<DimensionScope>();
src\Shared\CircularBuffer.cs (1)
25public CircularBuffer(int capacity) : this(new List<T>(), capacity, start: 0, end: 0)
Utils\GlobalizationHelpers.cs (2)
42var selfAndChildren = new List<CultureInfo>(); 140RequestCultureProviders = new List<IRequestCultureProvider>
Aspire.Dashboard.Components.Tests (11)
Controls\ResourceDetailsTests.cs (8)
26environment: new List<EnvironmentVariableViewModel> 71environment: new List<EnvironmentVariableViewModel> 109environment: new List<EnvironmentVariableViewModel> 154environment: new List<EnvironmentVariableViewModel> 192environment: new List<EnvironmentVariableViewModel> 237environment: new List<EnvironmentVariableViewModel> 275environment: new List<EnvironmentVariableViewModel> 320environment: new List<EnvironmentVariableViewModel>
Pages\ConsoleLogsTests.cs (1)
36var subscribedResourceNames = new List<string>();
Pages\ResourcesTests.cs (2)
24var initialResources = new List<ResourceViewModel> 113var initialResources = new List<ResourceViewModel>
Aspire.Dashboard.Tests (21)
CircularBufferTests.cs (1)
596var values = new List<string>
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (1)
19var applications = new List<ResourceViewModel>
GlobalizationHelpersTests.cs (1)
45var cultureOptions = new List<CultureInfo>
Integration\ServerRetryHelper.cs (1)
70var unavailableEndpoints = new List<IPEndPoint>();
Model\ApplicationsSelectHelpersTests.cs (5)
23var appVMs = ApplicationsSelectHelpers.CreateApplications(new List<OtlpApplication> 68var appVMs = ApplicationsSelectHelpers.CreateApplications(new List<OtlpApplication> 112var appVMs = new List<SelectViewModel<ResourceTypeDetails>> 134var appVMs = ApplicationsSelectHelpers.CreateApplications(new List<OtlpApplication> 171var appVMs = ApplicationsSelectHelpers.CreateApplications(new List<OtlpApplication>
TelemetryRepositoryTests\LogTests.cs (1)
622var attributes = new List<KeyValuePair<string, string>>
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\TraceTests.cs (6)
533CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), events: new List<Span.Types.Event> 610CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), links: new List<Span.Types.Link> 766var attributes = new List<KeyValuePair<string, string>>(); 773var events = new List<Span.Types.Event>(); 993CreateSpan(traceId: traceId, spanId: $"{traceId}-2", startTime: startTime.AddMinutes(5), endTime: startTime.AddMinutes(1), parentSpanId: $"{traceId}-1", links: new List<Span.Types.Link> 997CreateSpan(traceId: traceId, spanId: $"{traceId}-1", startTime: startTime.AddMinutes(1), endTime: startTime.AddMinutes(10), links: new List<Span.Types.Link>
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
Aspire.Hosting (26)
ApplicationModel\ReferenceExpression.cs (2)
145private readonly List<IValueProvider> _valueProviders = new(); 146private readonly List<string> _manifestExpressions = new();
ApplicationModel\ResourceExtensions.cs (3)
240var args = new List<string>(); 268var args = new List<object>(); 364var args = new List<object>();
ApplicationModel\ResourceLoggerService.cs (2)
54var loggers = new List<ILogger>(); 74var scopes = new List<IDisposable>();
ApplicationModel\ResourceNotificationService.cs (1)
288var pendingDependencies = new List<Task>();
Dcp\DcpExecutor.cs (8)
151var tasks = new List<Task>(); 950var tasks = new List<Task>(); 1080ctr.Spec.Networks = new List<ContainerNetworkConnection> 1085Aliases = new List<string> { container.Name }, 1146var tasks = new List<Task>(); 1189dcpContainerResource.Spec.Ports = new(); 1300var dcpBuildArgs = new List<EnvVar>(); 1330var dcpBuildSecrets = new List<BuildContextSecret>();
Dcp\DcpKubernetesClient.cs (1)
112private readonly List<string> _parameters = new List<string>();
Dcp\Model\ModelCommon.cs (2)
98values = JsonSerializer.Deserialize<List<TValue>>(annotationVal) ?? new(); 102values = new();
Dcp\ResourceLogSource.cs (1)
34var streamTasks = new List<Task>();
Eventing\DistributedApplicationEventing.cs (1)
91if (!_eventSubscriptionListLookup.TryAdd(typeof(T), new List<DistributedApplicationEventSubscription> { subscription }))
Publishing\ManifestPublishingContext.cs (1)
528var args = new List<(object, string)>();
ResourceLoggerForwarderService.cs (1)
40var logWatchTasks = new List<Task>();
src\Shared\CircularBuffer.cs (1)
25public CircularBuffer(int capacity) : this(new List<T>(), capacity, start: 0, end: 0)
src\Shared\CommandLineArgsParser.cs (1)
13var result = new List<string>();
src\Shared\CustomResourceSnapshotExtensions.cs (1)
37var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.Analyzers (1)
Infrastructure\BoundedCacheWithFactory.cs (1)
18private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Aspire.Hosting.Azure (4)
Provisioning\Provisioners\AzureProvisioner.cs (2)
53var azureResources = new List<(IResource, IAzureResource)>(); 215var tasks = new List<Task>();
Provisioning\Provisioners\BicepProvisioner.cs (1)
77var portalUrls = new List<UrlSnapshot>();
src\Shared\CustomResourceSnapshotExtensions.cs (1)
37var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.Azure.CognitiveServices (1)
AzureOpenAIExtensions.cs (1)
63var cdkDeployments = new List<CognitiveServicesAccountDeployment>();
Aspire.Hosting.Azure.Functions (1)
src\Shared\CommandLineArgsParser.cs (1)
13var result = new List<string>();
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubHubResource.cs (1)
21internal List<(ReferenceExpression url, string userEvents, string[]? systemEvents, UpstreamAuthSettings? auth)> EventHandlers { get; } = new();
Aspire.Hosting.Dapr (2)
DaprDistributedApplicationLifecycleHook.cs (2)
42var sideCars = new List<ExecutableResource>(); 76var waitAnnotationsToCopyToDaprCli = new List<WaitAnnotation>();
Aspire.Hosting.Garnet.Tests (3)
AddGarnetTests.cs (3)
172var args = new List<object>(); 203var args = new List<object>(); 235var args = new List<object>();
Aspire.Hosting.Nats (1)
NatsBuilderExtensions.cs (1)
116var args = new List<string> { "-js" };
Aspire.Hosting.Nats.Tests (1)
NatsFunctionalTests.cs (1)
288var events = new List<AppEvent>();
Aspire.Hosting.PostgreSQL.Tests (1)
AddPostgresTests.cs (1)
528var bookmarkFilesContent = new List<string>();
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
294var databasesToDelete = new List<Guid>();
Aspire.Hosting.Testing.Tests (3)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
119var logWatchTasks = new List<Task>();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
18var logs = new List<LogLine>(); 35var logs = new List<LogLine>();
Aspire.Hosting.Tests (10)
Dcp\DcpExecutorTests.cs (1)
62var startingEvents = new List<OnResourceStartingContext>();
ManifestGenerationTests.cs (1)
158var verify = new List<Action<JsonElement>>();
ProjectResourceTests.cs (1)
642var resolvedArgs = new List<string>();
ResourceNotificationTests.cs (2)
53var values = new List<ResourceEvent>(); 106var values = new List<ResourceEvent>();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
18var logs = new List<LogLine>(); 35var logs = new List<LogLine>();
Utils\ArgumentEvaluator.cs (1)
12var args = new List<string>();
Utils\LoggerNotificationExtensions.cs (1)
119var logWatchTasks = new List<Task>();
Utils\ManifestUtils.cs (1)
46var results = new List<JsonNode>();
Aspire.Hosting.Valkey.Tests (3)
AddValkeyTests.cs (3)
172var args = new List<object>(); 203var args = new List<object>(); 235var args = new List<object>();
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (1)
37this.listenerSubscriptions = new List<IDisposable>();
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (1)
37this.listenerSubscriptions = new List<IDisposable>();
Aspire.Oracle.EntityFrameworkCore.Tests (1)
ConformanceTests.cs (1)
151List<Activity> exportedActivities = new();
Aspire.Playground.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
119var logWatchTasks = new List<Task>();
Aspire.RabbitMQ.Client (1)
RabbitMQEventSourceLogForwarder.cs (1)
130private readonly List<EventSource> _eventSources = new List<EventSource>();
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
77List<string> args = new();
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentation.cs (1)
23internal List<StackExchangeRedisConnectionInstrumentation> InstrumentedConnections { get; } = new();
Aspire.Workload.Tests (2)
StarterTemplateRunTestsBase.cs (1)
144var expectedResources = new List<ResourceRow>
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
AzureContainerApps.ApiService (1)
Program.cs (1)
49var blobNames = new List<string>();
AzureStorageEndToEnd.ApiService (1)
Program.cs (1)
27var blobNames = new List<string>();
BasicWebSite (3)
ContactsRepository.cs (1)
10private readonly List<Contact> _contacts = new List<Contact>();
Controllers\AsyncActionsController.cs (1)
198private readonly IList<Action> _continuations = new List<Action>();
Controllers\HomeController.cs (1)
20var people = new List<(string FirstName, string LastName, object FavoriteNumber)>()
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>();
BinaryFormatTests (22)
FormatTests\FormattedObject\ListTests.cs (22)
90new List<int>(), 91new List<bool>() { true, false}, 92new List<float>() { 3.14f }, 93new List<float>() { float.NaN, float.PositiveInfinity, float.NegativeInfinity, float.NegativeZero }, 94new List<int>() { 1, 3, -4, 5, 6, 7 }, 95new List<uint>() { 0, 2, uint.MaxValue, uint.MinValue }, 96new List<sbyte>() { 0, -2, sbyte.MaxValue, sbyte.MinValue }, 97new List<byte>() { 0xDE, 0xAD, 0xBE, 0xEF }, 98new List<short>() { 0, -2, short.MinValue, short.MaxValue }, 99new List<ushort>() { 1, 2, ushort.MinValue, ushort.MaxValue }, 100new List<long>() { 0, -2, long.MinValue, long.MaxValue }, 101new List<ulong>() { 1, 2, ulong.MinValue, ulong.MaxValue }, 102new List<double>() { 3.14, double.NaN, double.PositiveInfinity, double.NegativeInfinity, double.NegativeZero }, 103new List<char>() { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' }, 104new List<char>() { 'a', '\0', 'c' }, 105new List<string>() { "Believe", "it", "or", "not" }, 106new List<decimal>() { 42m }, 107new List<DateTime>() { new(2000, 1, 1) }, 108new List<TimeSpan>() { new(0, 0, 50) } 113new List<object>(), 114new List<nint>(), 115new List<(int, int)>()
BuildActionTelemetryTable (1)
Program.cs (1)
514var missingDescriptions = new List<string>();
BuildBoss (4)
CompilerNuGetCheckerUtil.cs (1)
308var list = new List<PackagePartData>();
ProjectUtil.cs (2)
114var list = new List<ProjectReferenceEntry>(); 146var list = new List<InternalsVisibleTo>();
SolutionUtil.cs (1)
22var list = new List<ProjectEntry>();
BuildValidator (4)
LocalReferenceResolver.cs (3)
57var directories = new List<DirectoryInfo>(); 82locations = new(); 160var assemblyInfoList = new List<AssemblyInfo>();
Program.cs (1)
239var assembliesCompiled = new List<CompilationDiff>();
CatalogDb (1)
Model.cs (1)
99var results = new List<T>();
CatalogModel (1)
Model.cs (1)
102var results = new List<T>();
CdkSample.ApiService (2)
Program.cs (2)
69var entries = new List<Entry>(); 97var blobNames = new List<string>();
ClaimsTransformation (1)
Controllers\AccountController.cs (1)
36var claims = new List<Claim>
Client.ClientBase.IntegrationTests (1)
SessionTests.cs (1)
485private List<ICommunicationObject> _objectsToClose = new List<ICommunicationObject>();
ClientSample (7)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
Tcp\SocketSender.cs (1)
87_bufferList = new List<ArraySegment<byte>>();
CodeGenerator (1)
HttpUtilities\HttpUtilitiesGeneratorHelpers.cs (1)
20var shifts = new List<ShiftInfo<ulong>>();
ConfigurationSchemaGenerator (13)
ConfigSchemaGenerator.cs (4)
76(configurationPaths ??= new()).Add(path); 77(types ??= new()).Add((INamedTypeSymbol)args[1].Value); 82(exclusionPaths ??= new()).AddRange(exclusionPathsArg.Values.Select(v => $"{path}:{(string)v.Value}")); 93(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);
Cookies (1)
Controllers\AccountController.cs (1)
35var claims = new List<Claim>
CosmosEndToEnd.ApiService (1)
Program.cs (1)
29var entries = new List<Entry>();
Crossgen2Tasks (6)
PrepareForReadyToRunCompilation.cs (6)
62private List<ITaskItem> _compileList = new List<ITaskItem>(); 63private List<ITaskItem> _symbolsCompileList = new List<ITaskItem>(); 64private List<ITaskItem> _r2rFiles = new List<ITaskItem>(); 65private List<ITaskItem> _r2rReferences = new List<ITaskItem>(); 66private List<ITaskItem> _r2rCompositeReferences = new List<ITaskItem>(); 67private List<ITaskItem> _r2rCompositeInput = new List<ITaskItem>();
CSharpErrorFactsGenerator (4)
Program.cs (4)
38var warningCodeNames = new List<string>(); 39var fatalCodeNames = new List<string>(); 40var infoCodeNames = new List<string>(); 41var hiddenCodeNames = new List<string>();
CSharpSyntaxGenerator (6)
Model\AbstractNode.cs (1)
14public readonly List<Field> Fields = new List<Field>();
Model\Field.cs (1)
61public 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)
32public List<TreeTypeChild> Children = new List<TreeTypeChild>();
SourceWriter.cs (1)
696: new List<Field>();
CustomCheck (2)
Check1.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
Check2.cs (1)
21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
CustomCheck2 (1)
Check3.cs (1)
21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
CustomPolicyProvider (1)
Controllers\AccountController.cs (1)
29var claims = new List<Claim>();
DesignSurface (2)
MainForm.cs (2)
281bindingSource.DataSource = new List<string> { "a1", "b2", "c3", "d4", "e5", "f6" }; 361DataSource = new List<string> { "Item 1", "Item 2", "Item 3" }
Diagnostics.EFCore.FunctionalTests (7)
DatabaseErrorPageMiddlewareTest.cs (1)
295var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>>
Helpers\TestLoggerProvider.cs (1)
28private readonly List<string> _messages = new List<string>();
MigrationsEndPointMiddlewareTest.cs (5)
120var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>> 159var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>>()); 188var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>> 217var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>> 256var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>>
dotnet-dev-certs (15)
Program.cs (1)
279var validCertificates = new List<X509Certificate2>();
src\Shared\CertificateGeneration\CertificateManager.cs (3)
88var certificates = new List<X509Certificate2>(); 649var extensions = new List<X509Extension>(); 888var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
700var nssDbs = new List<string>(); 720var nssDbs = new List<NssDb>(); 879var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
dotnet-getdocument (7)
Commands\InvokeCommand.cs (1)
54var args = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
dotnet-openapi (6)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
dotnet-razorpagegenerator (1)
Program.cs (1)
94var results = new List<RazorPageGeneratorResult>();
dotnet-sql-cache (6)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
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-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 }; 103this.ReferencedTypes = new List<Type>(); 104this.ReferencedAssemblies = new List<Assembly>(); 105this.ReferencedCollectionTypes = new List<Type>(); 894List<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>(); 186var services = new List<ServiceInfo>(); 191List<ContractDescription> contracts = new List<ContractDescription>(); 388this.Contracts = new List<ContractDescription> { contract };
Shared\MSBuildProj.cs (6)
45private List<string> _targetFrameworks = new List<string>(); 46private List<string> _endOfLifeTargetFrameworks = new List<string>(); 758excludeDependencies = new List<ProjectDependency>(); 774dependencies = new List<ProjectDependency>(); 789var packageDependencies = new List<ProjectDependency>(); 867var 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" }; 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-user-jwts (14)
Commands\CreateCommand.cs (2)
202var roles = rolesOption.HasValue() ? rolesOption.Values : new List<string>(); 205var 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)
72return new List<string>(); 111List<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\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
dotnet-user-secrets (6)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
ErrorCustomCheck (3)
ErrorOnInitializeCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
ErrorOnRegisteredAction.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
ErrorWhenRegisteringActions.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
FormatterWebSite (4)
Controllers\JsonPatchController.cs (1)
36Reviews = new List<Review>()
Models\Product.cs (1)
10public List<Review> Reviews { get; set; } = new List<Review>();
Models\ValidationProviderAttributeModel.cs (2)
23return new List<ValidationAttribute> 36return new List<ValidationAttribute>
GetDocument.Insider (7)
Commands\GetDocumentCommandWorker.cs (1)
285var filePathList = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
HeaderPropagationSample (1)
Startup.cs (1)
110var values = new List<string>();
HtmlGenerationWebSite (8)
Controllers\HtmlGeneration_HomeController.cs (5)
12private readonly List<Product> _products = new List<Product> 45PaymentMethod = new List<string> { "Check" }, 46Products = new List<int> { 0, 1 }, 113var model = new List<Product> 123var employees = new List<Employee>
Models\Order.cs (1)
56public IList<Product> ProductDetails { get; } = new List<Product>();
Models\ValidationProviderAttributeModel.cs (2)
23return new List<ValidationAttribute> 36return new List<ValidationAttribute>
http2cat (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
IdeCoreBenchmarks (2)
NavigateToBenchmarks.cs (2)
110var roots = new List<SyntaxNode>(); 229var results = new List<INavigateToSearchResult>();
Identity.DefaultUI.WebSite (6)
Services\ContosoEmailSender.cs (1)
10public IList<IdentityEmail> SentEmails { get; set; } = new List<IdentityEmail>();
src\Identity\test\Shared\PocoModel\PocoRole.cs (1)
57public virtual ICollection<PocoRoleClaim<TKey>> Claims { get; private set; } = new List<PocoRoleClaim<TKey>>();
src\Identity\test\Shared\PocoModel\PocoUser.cs (4)
134public virtual ICollection<PocoUserRole<TKey>> Roles { get; private set; } = new List<PocoUserRole<TKey>>(); 138public virtual ICollection<PocoUserClaim<TKey>> Claims { get; private set; } = new List<PocoUserClaim<TKey>>(); 142public virtual ICollection<PocoUserLogin<TKey>> Logins { get; private set; } = new List<PocoUserLogin<TKey>>(); 146public virtual ICollection<PocoUserToken<TKey>> Tokens { get; private set; } = new List<PocoUserToken<TKey>>();
IIS.Common.TestLib (2)
DisposableList.cs (1)
11public DisposableList() : base() { }
TestConnections.cs (1)
192List<string> headers = new List<string>();
IIS.FunctionalTests (10)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (2)
46var messages = new List<string>(); 88var messages = new List<string>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (2)
43var list = new List<FrebLogItem>(); 147var frebEvents = new List<FrebLogItem>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
58List<Task> tasks = new List<Task>(); 138var exceptions = new List<Exception>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
116private readonly List<ForwardingLogger> _loggers = new List<ForwardingLogger>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
257var messages = new List<string>(); 742List<Task> tasks = new List<Task>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
IIS.LongTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
58List<Task> tasks = new List<Task>(); 138var exceptions = new List<Exception>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
116private readonly List<ForwardingLogger> _loggers = new List<ForwardingLogger>();
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
204var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
IIS.NewHandler.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
58List<Task> tasks = new List<Task>(); 138var exceptions = new List<Exception>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
116private readonly List<ForwardingLogger> _loggers = new List<ForwardingLogger>();
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
204var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
IIS.NewShim.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
58List<Task> tasks = new List<Task>(); 138var exceptions = new List<Exception>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
116private readonly List<ForwardingLogger> _loggers = new List<ForwardingLogger>();
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
204var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
IIS.ShadowCopy.Tests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
58List<Task> tasks = new List<Task>(); 138var exceptions = new List<Exception>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
116private readonly List<ForwardingLogger> _loggers = new List<ForwardingLogger>();
IIS.Tests (1)
Utilities\TestServer.cs (1)
212var exceptions = new List<Exception>();
IISExpress.FunctionalTests (13)
OutOfProcess\MultipleAppTests.cs (2)
32var deploymentResults = new List<DeploymentResult>(); 45var requestTasks = new List<Task<HttpResponseMessage>>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (2)
46var messages = new List<string>(); 88var messages = new List<string>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (2)
43var list = new List<FrebLogItem>(); 147var frebEvents = new List<FrebLogItem>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
58List<Task> tasks = new List<Task>(); 138var exceptions = new List<Exception>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
116private readonly List<ForwardingLogger> _loggers = new List<ForwardingLogger>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
257var messages = new List<string>(); 742List<Task> tasks = new List<Task>();
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
204var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
illink (73)
ILLink.RoslynAnalyzer (4)
DataFlow\DynamicallyAccessedMembersBinder.cs (3)
23 var members = new List<ISymbol> (); 75 var members = new List<ISymbol> (); 86 var members = new List<ISymbol> ();
src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
132 var args = new List<string> ();
Infrastructure.Common (5)
OSHelper.cs (2)
29private static List<Tuple<string, OSID>> _runtimeToOSID = new List<Tuple<string, OSID>> 50private 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>();
InMemory.FunctionalTests (39)
Http2\Http2ConnectionTests.cs (4)
852var dataFrames = new List<Http2FrameWithPayload>(); 1085var dataFrames = new List<Http2FrameWithPayload>(); 1439var dataFrames = new List<Http2FrameWithPayload>(); 2958var headers = new List<KeyValuePair<string, string>>();
Http2\Http2StreamTests.cs (1)
835var headers = new List<KeyValuePair<string, string>>()
Http2\Http2TestBase.cs (2)
237var data = new List<byte>(); 507public ICollection<KeyValuePair<string, object>> Tags { get; } = new List<KeyValuePair<string, object>>();
Http2\TlsTests.cs (1)
68ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2, SslApplicationProtocol.Http11 },
Http3\Http3ConnectionTests.cs (4)
235await outboundcontrolStream.SendSettingsAsync(new List<Http3PeerSetting> 299await controlStream.SendSettingsAsync(new List<Http3PeerSetting>()); 325await controlStream.SendSettingsAsync(new List<Http3PeerSetting>()); 380await outboundcontrolStream.SendSettingsAsync(new List<Http3PeerSetting>
Http3\Http3StreamTests.cs (5)
736var receivedData = new List<byte>(); 2377var headers = new List<KeyValuePair<string, string>>(); 2405var headers = new List<KeyValuePair<string, string>>(); 2759await outboundControlStream.SendSettingsAsync(new List<Http3PeerSetting>()); 2794await outboundcontrolStream.SendSettingsAsync(new List<Http3PeerSetting>
Http3\WebTransport\WebTransportHandshakeTests.cs (1)
132var headersConnectFrame = new List<KeyValuePair<string, string>>();
HttpsConnectionMiddlewareTests.cs (6)
806var streams = new List<SslStream>(); 941ApplicationProtocols = new() { SslApplicationProtocol.Http2, SslApplicationProtocol.Http11, }, 974ApplicationProtocols = new() { SslApplicationProtocol.Http2, SslApplicationProtocol.Http11, }, 992ApplicationProtocols = new(), 1007ApplicationProtocols = new() { SslApplicationProtocol.Http2, SslApplicationProtocol.Http11, }, 1400ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http11, SslApplicationProtocol.Http2 },
HttpsTests.cs (2)
847public List<string> ErrorMessages => new List<string>(); 848public List<Exception> ErrorExceptions { get; } = new List<Exception>();
KestrelMetricsTests.cs (1)
433public ICollection<KeyValuePair<string, object>> Tags { get; } = new List<KeyValuePair<string, object>>();
RequestTests.cs (1)
84var bufferLengths = new List<int>();
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
141_revocationList = new List<(byte[], DateTimeOffset)>();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
1038public ICollection<KeyValuePair<string, object>> Tags { get; } = new List<KeyValuePair<string, object>>(); 1287_onClosed = new List<CloseAction>();
src\Servers\Kestrel\shared\test\MockLogger.cs (1)
13private readonly List<string> _messages = new List<string>();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
26new List<(string, CertificateAuthority)>();
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (1)
55var unavailableEndpoints = new List<IPEndPoint>();
src\Servers\Kestrel\shared\test\StreamExtensions.cs (2)
52var data = new List<byte>(); 79var data = new List<byte>();
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
23public List<Type> IgnoredExceptions { get; } = new List<Type>();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
42_blockAccessExceptions = new List<Exception>();
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.WebSockets.cs (1)
78var messages = new List<string>();
IntegrationTestsWebsite (1)
Infrastructure\DynamicEndpointDataSource.cs (1)
14private readonly List<Endpoint> _endpoints = new List<Endpoint>();
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
85var expectedOutput = new List<string>
Interop.FunctionalTests (14)
H2SpecCommands.cs (2)
83var testCases = new List<Tuple<string, string>>(); 275var failures = new List<string>();
Http2\Http2RequestTests.cs (1)
304var data = new List<byte>();
Http2WebSocketInteropTests.cs (1)
26var list = new List<object[]>()
Http3\Http3RequestTests.cs (4)
780var connectionRequestTasks = new List<Task<int>>(); 800var requestTasks = new List<Task>(); 888var requestHeaders = new List<Dictionary<string, StringValues>>(); 1521var contexts = new List<HttpContext>();
Http3\Http3TlsTests.cs (1)
309ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 }
HttpClientHttp2InteropTests.cs (1)
35var list = new List<object[]>()
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (1)
55var unavailableEndpoints = new List<IPEndPoint>();
src\Servers\Kestrel\shared\test\StreamExtensions.cs (2)
52var data = new List<byte>(); 79var data = new List<byte>();
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
InteropClient (4)
AsyncStreamExtensions.cs (1)
46var result = new List<T>();
InteropClient.cs (3)
311var bodySizes = new List<int> { 27182, 8, 1828, 45904 }.Select((size) => new StreamingInputCallRequest { Payload = CreateZerosPayload(size) }); 327var bodySizes = new List<int> { 31415, 9, 2653, 58979 }; 823var bodySizes = new List<int> { 31415, 92653 };
IOperationGenerator (3)
IOperationClassWriter.cs (3)
330var unusedKinds = _tree.UnusedOperationKinds.Entries?.Select(e => e.Value).ToList() ?? new List<int>(); 706var orderedProperties = new List<Property>(); 1120private static List<string> GetPropertyOrder(Node node) => node.ChildrenOrder?.Split(",", StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()).ToList() ?? new List<string>();
JwtBearerSample (1)
Startup.cs (1)
22public IList<Todo> Todos { get; } = new List<Todo>();
KeyManagementSimulator (1)
Program.cs (1)
523private readonly List<XElement> _elements = new();
LocalizationWebsite (11)
StartupContentLanguageHeader.cs (2)
23SupportedCultures = new List<CultureInfo>() 27SupportedUICultures = new List<CultureInfo>()
StartupCustomCulturePreserved.cs (2)
22SupportedCultures = new List<CultureInfo>() 26SupportedUICultures = new List<CultureInfo>()
StartupGetAllStrings.cs (2)
26SupportedCultures = new List<CultureInfo>() 30SupportedUICultures = new List<CultureInfo>()
StartupResourcesAtRootFolder.cs (2)
29SupportedCultures = new List<CultureInfo>() 33SupportedUICultures = new List<CultureInfo>()
StartupResourcesInClassLibrary.cs (1)
23var supportedCultures = new List<CultureInfo>()
StartupResourcesInFolder.cs (2)
32SupportedCultures = new List<CultureInfo>() 36SupportedUICultures = new List<CultureInfo>()
Microsoft.Analyzers.Extra (8)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (3)
379var parameters = new List<SyntaxNode> 429var args = new List<ITypeSymbol> 476var argList = new List<SyntaxNode>();
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (3)
54var interpolationArgs = new List<IOperation>(); 55var messageArgs = new List<string>(); 263var args = new List<string>();
CallAnalysis\LegacyLogging.cs (1)
21var legacyMethods = new List<IMethodSymbol>();
MakeExeTypesInternalAnalyzer.cs (1)
79var disqualifyingBaseClasses = new List<ITypeSymbol>();
Microsoft.Analyzers.Extra.Tests (7)
Resources\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 (1)
ApiLifecycle\Utils.cs (1)
50var result = new List<string>();
Microsoft.Analyzers.Local.Tests (10)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (2)
99public static IEnumerable<object[]> CodeWithMissingMembers => new List<object[]> 783public static IEnumerable<object[]> CodeWithMissingApis => new List<object[]>
CallAnalysis\UseThrowsTests.cs (3)
51new List<object[]> 236new List<object[]> 287new List<object[]>
Resources\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>();
Microsoft.Arcade.Test.Common (8)
MockBuildEngine.cs (4)
21public List<CustomBuildEventArgs> CustomBuildEvents = new List<CustomBuildEventArgs>(); 22public List<BuildErrorEventArgs> BuildErrorEvents = new List<BuildErrorEventArgs>(); 23public List<BuildMessageEventArgs> BuildMessageEvents = new List<BuildMessageEventArgs>(); 24public List<BuildWarningEventArgs> BuildWarningEvents = new List<BuildWarningEventArgs>();
MockEngine.cs (3)
27public ICollection<BuildMessageEventArgs> Messages { get; } = new List<BuildMessageEventArgs>(); 28public ICollection<BuildWarningEventArgs> Warnings { get; } = new List<BuildWarningEventArgs>(); 29public ICollection<BuildErrorEventArgs> Errors { get; } = new List<BuildErrorEventArgs>();
MockFileSystem.cs (1)
19public List<string> RemovedFiles { get; } = new();
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.Analyzer.Testing (3)
CodeFixRunner.cs (1)
28var actions = new List<CodeAction>();
DiagnosticAnalyzerRunner.cs (1)
59var diagnostics = new List<Diagnostic>();
DiagnosticVerifier.cs (1)
79var diagnostics = new List<Diagnostic>();
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)
93var allClaims = new List<Claim>();
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultClaimUidExtractorTest.cs (1)
199Assert.Equal(new List<string>
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\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
21private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Microsoft.AspNetCore.App.Analyzers.Test (3)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (3)
70var matches = new List<(int matchIndex, string name)>(); 197GetOrAdd(spans, name, _ => new List<TextSpan>()).Add(span); 214var builder = GetOrAdd(dictionary, string.Empty, _ => new List<TextSpan>());
Microsoft.AspNetCore.App.UnitTests (2)
TestData.cs (2)
18ListedSharedFxAssemblies = new List<string>() 170ListedTargetingPackAssemblies = new List<string>
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)
239var claims = new List<Claim>();
Microsoft.AspNetCore.Authentication.Cookies (3)
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.Core.Test (7)
AuthenticationPropertiesTests.cs (1)
68["list"] = new List<string> { "a", "b", "c" },
TokenExtensionTests.cs (6)
16var tokens = new List<AuthenticationToken>(); 35var tokens = new List<AuthenticationToken>(); 58var tokens = new List<AuthenticationToken>(); 82var tokens = new List<AuthenticationToken>(); 105var tokens = new List<AuthenticationToken>(); 157var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.JwtBearer (2)
JwtBearerOptions.cs (2)
32SecurityTokenValidators = new List<ISecurityTokenValidator> { _defaultHandler }; 34TokenHandlers = new List<TokenHandler> { _defaultTokenHandler };
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (5)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (2)
18private readonly List<string> _items = new List<string>(); 19private readonly List<string> _properties = new List<string>();
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (3)
14private readonly List<TemporaryCSharpProject> _projects = new List<TemporaryCSharpProject>(); 15private readonly List<TemporaryDirectory> _subdirs = new List<TemporaryDirectory>(); 126var segments = new List<string>();
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\LdapAdapter.cs (1)
42var 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)
1112var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.Test (12)
OpenIdConnect\TestSettings.cs (3)
52var errors = new List<string>(); 90var errors = new List<string>(); 133var errors = new List<string>();
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
TokenExtensionTests.cs (5)
12var tokens = new List<AuthenticationToken>(); 31var tokens = new List<AuthenticationToken>(); 54var tokens = new List<AuthenticationToken>(); 78var tokens = new List<AuthenticationToken>(); 101var tokens = new List<AuthenticationToken>();
WsFederation\WsFederationTest.cs (2)
248var kvps = new List<KeyValuePair<string, string>>(); 297options.SecurityTokenHandlers = new List<ISecurityTokenValidator>() { new TestSecurityTokenValidator() };
WsFederation\WsFederationTest_Handler.cs (1)
246var kvps = new List<KeyValuePair<string, string>>();
Microsoft.AspNetCore.Authorization (3)
AuthorizationHandlerContext.cs (1)
104_failedReasons = new List<AuthorizationFailureReason>();
AuthorizationPolicyBuilder.cs (2)
42public IList<IAuthorizationRequirement> Requirements { get; set; } = new List<IAuthorizationRequirement>(); 51public IList<string> AuthenticationSchemes { get; set; } = new List<string>();
Microsoft.AspNetCore.Authorization.Test (3)
AuthorizationEndpointConventionBuilderExtensionsTests.cs (1)
253public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>();
DefaultAuthorizationServiceTests.cs (1)
1101public BadContext() : base(new List<IAuthorizationRequirement>(), null, null) { }
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.BrowserTesting (6)
BrowserManager.cs (2)
172var result = new List<object[]>(); 186var result = new List<object[]>();
PageInformation.cs (4)
14public List<string> FailedRequests { get; } = new(); 16public List<LogEntry> BrowserConsoleLogs { get; } = new(); 18public List<string> PageErrors { get; } = new(); 20public List<IWebSocket> WebSockets { get; set; } = new();
Microsoft.AspNetCore.Components (28)
CascadingParameterState.cs (1)
127result ??= new List<CascadingParameterInfo>();
CascadingValueSource.cs (2)
94var tasks = new List<Task>(); 169_subscribers?.GetOrAdd(dispatcher, _ => new()).Add(subscriber);
ComponentFactory.cs (1)
112injectables ??= new();
Infrastructure\ComponentStatePersistenceManager.cs (2)
14private readonly List<PersistComponentStateRegistration> _registeredCallbacks = new(); 148pendingCallbackTasks ??= new();
NavigationManager.cs (1)
34private readonly List<Func<LocationChangingContext, ValueTask>> _locationChangingHandlers = new();
Reflection\ComponentProperties.cs (1)
240var propertyNames = new List<string>();
Reflection\MemberAssignment.cs (1)
35many = new List<PropertyInfo> { single };
RenderTree\Renderer.cs (7)
273_pendingTasks ??= new(); 431_pendingTasks ??= new(); 917batch = batch ?? new List<Task>(); 975exceptions ??= new List<Exception>(); 1190asyncDisposables ??= new(); 1196exceptions ??= new List<Exception>(); 1223asyncExceptions ??= new List<Exception>();
Routing\RouteTableFactory.cs (2)
52var routeableComponents = new List<Type>(); 242unusedParameters ??= new();
Routing\StringSegmentAccumulator.cs (1)
49_multiple = new();
Sections\SectionRegistry.cs (1)
15providers = new();
src\Http\Routing\src\ParameterPolicyActivator.cs (1)
148var result = new List<ConstructorInfo>();
src\Http\Routing\src\Patterns\RouteParameterParser.cs (1)
103var constraints = new List<RoutePatternParameterPolicyReference>();
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
482parameters = new List<RoutePatternParameterPart>();
src\Http\Routing\src\Patterns\RoutePatternParser.cs (2)
32var segments = new List<RoutePatternPathSegment>(); 76var parts = new List<RoutePatternPart>();
src\Http\Routing\src\RouteConstraintBuilder.cs (1)
171list = new List<IRouteConstraint>();
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
236public IList<InboundRouteEntry> InboundEntries { get; } = new List<InboundRouteEntry>();
src\Http\Routing\src\Tree\UrlMatchingNode.cs (1)
30Matches = new List<InboundMatch>();
Microsoft.AspNetCore.Components.Analyzers (2)
ComponentParameterAnalyzer.cs (2)
52var properties = new List<IPropertySymbol>(); 71var captureUnmatchedValuesParameters = new List<IPropertySymbol>();
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Helpers\DiagnosticVerifier.Helper.cs (1)
59var diagnostics = new List<Diagnostic>();
Verifiers\CodeFixVerifier.cs (1)
85var actions = new List<CodeAction>();
Microsoft.AspNetCore.Components.Authorization (1)
AttributeAuthorizeDataCache.cs (1)
38authorizeDatas ??= new();
Microsoft.AspNetCore.Components.Authorization.Tests (6)
src\Components\Shared\test\CapturedBatch.cs (2)
14= new List<RenderTreeDiff>(); 30DiffsByComponentId.Add(componentId, new List<RenderTreeDiff>());
src\Components\Shared\test\TestRenderer.cs (2)
42= new List<CapturedBatch>(); 44public List<Exception> HandledExceptions { get; } = new List<Exception>();
TestAsyncAuthorizationService.cs (1)
15= new List<(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements)>();
TestAuthorizationService.cs (1)
15= new List<(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements)>();
Microsoft.AspNetCore.Components.Endpoints (20)
Builder\RazorComponentEndpointDataSource.cs (1)
109var endpoints = new List<Endpoint>();
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>();
Rendering\EndpointHtmlRenderer.cs (1)
50private readonly List<Task> _nonStreamingPendingTasks = new();
src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
src\Shared\Components\ResourceCollectionResolver.cs (1)
34var resources = new List<ResourceAsset>();
src\Shared\PropertyHelper\PropertyHelper.cs (1)
502var propertyHelpers = new List<PropertyHelper>();
Microsoft.AspNetCore.Components.Endpoints.Tests (63)
Binding\FormDataMapperTests.cs (34)
100var errors = new List<FormDataMappingError>(); 138var errors = new List<FormDataMappingError>(); 379var errors = new List<FormDataMappingError>(); 404var errors = new List<FormDataMappingError>(); 459var rented = new List<int[]>(); 460var returned = new List<int[]>(); 505var rented = new List<int[]>(); 506var returned = new List<int[]>(); 575var errors = new List<FormDataMappingError>(); 608var expected = new List<int> { 0, 11, 12, 13, 0, 15, 16, 17, 18, 19 }; 624var errors = new List<FormDataMappingError>(); 665var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 673var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 689var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 697var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 705var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 737var expected = new ReadOnlyCollection<int>(new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }); 753var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 1072var errors = new List<FormDataMappingError>(); 1133var errors = new List<FormDataMappingError>(); 1192var errors = new List<FormDataMappingError>(); 1432var errors = new List<FormDataMappingError>(); 1482Children = new List<RecursiveTree>() { expected } 1599var errors = new List<FormDataMappingError>(); 1793var errors = new List<FormDataMappingError>(); 1854var errors = new List<FormDataMappingError>(); 1877var errors = new List<FormDataMappingError>(); 1908var errors = new List<FormDataMappingError>(); 1936var errors = new List<FormDataMappingError>(); 1969var errors = new List<FormDataMappingError>(); 1991var errors = new List<FormDataMappingError>(); 2014var errors = new List<FormDataMappingError>(); 2047var errors = new List<FormDataMappingError>(); 2418private readonly List<T> _inner = new();
Binding\FormDataMetadataFactoryTests.cs (1)
598var logMessages = new List<LogMessage>();
Discovery\ComponentApplicationBuilderTests.cs (9)
298RouteTemplates = new List<string> { "/App1/Test1" } 304RouteTemplates = new List<string> { "/App1/Test2" } 310RouteTemplates = new List<string> { "/App1/Test3" } 350RouteTemplates = new List<string> { "/App2/Test1" } 356RouteTemplates = new List<string> { "/App2/Test2" } 362RouteTemplates = new List<string> { "/App2/Test3" } 402RouteTemplates = new List<string> { "/Shared/Test1" } 408RouteTemplates = new List<string> { "/Shared/Test2" } 414RouteTemplates = new List<string> { "/Shared/Test3" }
HotReloadServiceTests.cs (2)
61RouteTemplates = new List<string> { "/app/test" } 294private List<EndpointDataSource> _dataSources = new();
ImportMapTest.cs (1)
269public List<Exception> HandledExceptions { get; } = new List<Exception>();
RazorComponentEndpointDataSourceTest.cs (1)
310private List<EndpointDataSource> _dataSources = new();
RazorComponentEndpointFactoryTest.cs (15)
17var endpoints = new List<Endpoint>(); 19var conventions = new List<Action<EndpointBuilder>>(); 20var finallyConventions = new List<Action<EndpointBuilder>>(); 57var endpoints = new List<Endpoint>(); 59var conventions = new List<Action<EndpointBuilder>>() { 63var finallyConventions = new List<Action<EndpointBuilder>>(); 83var endpoints = new List<Endpoint>(); 85var conventions = new List<Action<EndpointBuilder>>(); 87var finallyConventions = new List<Action<EndpointBuilder>>() 111var endpoints = new List<Endpoint>(); 113var conventions = new List<Action<EndpointBuilder>>(); 115var finallyConventions = new List<Action<EndpointBuilder>>() 140var endpoints = new List<Endpoint>(); 142var conventions = new List<Action<EndpointBuilder>>() 147var finallyConventions = new List<Action<EndpointBuilder>>()
Microsoft.AspNetCore.Components.Forms (3)
EditContextDataAnnotationsExtensions.cs (2)
96var results = new List<ValidationResult>(); 115var validationResults = new List<ValidationResult>();
ValidationMessageStore.cs (1)
111messagesForField = new List<string>();
Microsoft.AspNetCore.Components.Forms.Tests (5)
FieldIdentifierTest.cs (1)
210var models = new List<TestModel>() { null, new TestModel() };
src\Components\Shared\test\CapturedBatch.cs (2)
14= new List<RenderTreeDiff>(); 30DiffsByComponentId.Add(componentId, new List<RenderTreeDiff>());
src\Components\Shared\test\TestRenderer.cs (2)
42= new List<CapturedBatch>(); 44public List<Exception> HandledExceptions { get; } = new List<Exception>();
Microsoft.AspNetCore.Components.QuickGrid (6)
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)
160_columns = new();
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
ComponentParameterAnalyzer.cs (2)
46var properties = new List<IPropertySymbol>(); 65var captureUnmatchedValuesParameters = new List<IPropertySymbol>();
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Helpers\DiagnosticVerifier.Helper.cs (1)
59var diagnostics = new List<Diagnostic>();
Verifiers\CodeFixVerifier.cs (1)
85var actions = new List<CodeAction>();
Microsoft.AspNetCore.Components.Server (12)
CircuitOptions.cs (1)
83internal IList<string> JavaScriptInitializers { get; } = new List<string>();
Circuits\CircuitHost.cs (4)
248exceptions ??= new List<Exception>(); 277exceptions ??= new List<Exception>(); 306exceptions ??= new List<Exception>(); 333exceptions ??= new List<Exception>();
Circuits\ServerComponentDeserializer.cs (1)
97descriptors = new List<ComponentDescriptor>();
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
134public ICollection<EndpointDataSource> DataSources { get; } = new List<EndpointDataSource>() { };
src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
273streams = new List<string>();
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.Components.Server.Tests (18)
Circuits\CircuitHostTest.cs (3)
139var circuitUnhandledExceptions = new List<UnhandledExceptionEventArgs>(); 221var descriptors = new List<ComponentDescriptor>(); 252var reportedErrors = new List<UnhandledExceptionEventArgs>();
Circuits\RemoteRendererTest.cs (9)
134var renderIds = new List<long>(); 210var renderIds = new List<long>(); 236var exceptions = new List<Exception>(); 273var renderIds = new List<long>(); 299var exceptions = new List<Exception>(); 326var renderIds = new List<long>(); 360var exceptions = new List<Exception>(); 383var renderIds = new List<long>(); 417var exceptions = new List<Exception>();
Circuits\RenderBatchWriterTest.cs (1)
292var result = new List<string>();
Circuits\RevalidatingServerAuthenticationStateProviderTest.cs (1)
243= new List<(AuthenticationState, CancellationToken)>();
Circuits\TestCircuitHost.cs (1)
59descriptors ?? new List<ComponentDescriptor>(),
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
61var buildersAffected = new List<string>();
ProtectedBrowserStorageTest.cs (2)
297public List<string> ProtectorsCreated { get; } = new List<string>(); 356= new List<(string Identifier, object[] Args)>();
Microsoft.AspNetCore.Components.Tests (48)
Lifetime\ComponentApplicationStateTest.cs (9)
14var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>()); 32var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>()); 48var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>()); 68var applicationState = new PersistentComponentState(currentState, new List<PersistComponentStateRegistration>()) 87var applicationState = new PersistentComponentState(currentState, new List<PersistComponentStateRegistration>()) 104var applicationState = new PersistentComponentState(currentState, new List<PersistComponentStateRegistration>()) 123var applicationState = new PersistentComponentState(currentState, new List<PersistComponentStateRegistration>()) 143var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>()); 161var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
Lifetime\ComponentStatePersistenceManagerTest.cs (2)
132var sequence = new List<int> { }; 160var sequence = new List<int> { };
NavigationManagerTest.cs (1)
902private readonly List<Exception> _exceptionsThrownFromLocationChangingHandlers = new();
ParameterViewTest.Assignment.cs (2)
740private readonly List<(string Name, object Value, bool Cascading)> _parameters = new(); 764var cascadingParameters = new List<CascadingParameterState>();
ParameterViewTest.cs (3)
96}, 0).WithCascadingParameters(new List<CascadingParameterState> 191}, 0).WithCascadingParameters(new List<CascadingParameterState> 306}, 0).WithCascadingParameters(new List<CascadingParameterState>
RendererTest.cs (19)
242[0] = new List<NestedAsyncComponent.ExecutionAction> 249[1] = new List<NestedAsyncComponent.ExecutionAction> 401[0] = new List<NestedAsyncComponent.ExecutionAction> 408[1] = new List<NestedAsyncComponent.ExecutionAction> 445[0] = new List<NestedAsyncComponent.ExecutionAction> 452[1] = new List<NestedAsyncComponent.ExecutionAction> 489[0] = new List<NestedAsyncComponent.ExecutionAction> 496[1] = new List<NestedAsyncComponent.ExecutionAction> 503[2] = new List<NestedAsyncComponent.ExecutionAction> 510[3] = new List<NestedAsyncComponent.ExecutionAction> 3308var onAfterRenderCallCountLog = new List<int>(); 3338var onAfterRenderCallCountLog = new List<int>(); 3367var onAfterRenderCallCountLog = new List<int>(); 3754[1] = new List<NestedAsyncComponent.ExecutionAction> 3766[2] = new List<NestedAsyncComponent.ExecutionAction> 3812[1] = new List<NestedAsyncComponent.ExecutionAction> 3823[2] = new List<NestedAsyncComponent.ExecutionAction> 5156public List<Type> RequestedComponentTypes { get; } = new List<Type>(); 5450= new List<RenderHandle>();
Rendering\RenderTreeBuilderTest.cs (1)
382var attributes = new List<KeyValuePair<string, object>>()
Rendering\TestArrayPool.cs (1)
15public List<T[]> ReturnedBuffers = new List<T[]>();
Routing\RouteTableFactoryTests.cs (3)
96var routeTable = RouteTableFactory.Create(new List<Type> { typeof(MyComponent), }, _serviceProvider); 113var routeTable = RouteTableFactory.Create(new List<Type> { typeof(MyComponent), typeof(MyInheritedComponent) }, _serviceProvider); 1128readonly IList<(string Template, Type Handler)> _routeTemplates = new List<(string, Type)>();
Routing\TemplateParserTests.cs (3)
244public IList<RoutePatternPathSegment> Segments { get; set; } = new List<RoutePatternPathSegment>(); 249Segments.Add(new RoutePatternPathSegment(new List<RoutePatternPart> 260new RoutePatternPathSegment(new List<RoutePatternPart>
src\Components\Shared\test\CapturedBatch.cs (2)
14= new List<RenderTreeDiff>(); 30DiffsByComponentId.Add(componentId, new List<RenderTreeDiff>());
src\Components\Shared\test\TestRenderer.cs (2)
42= new List<CapturedBatch>(); 44public List<Exception> HandledExceptions { get; } = new List<Exception>();
Microsoft.AspNetCore.Components.Web (3)
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.Web.Tests (9)
Forms\InputBaseTest.cs (4)
137var valueChangedCallLog = new List<string>(); 160var valueChangedCallLog = new List<string>(); 280var valueChangedArgs = new List<DateTime>(); 310var valueChangedArgs = new List<DateTime>();
src\Components\Shared\test\CapturedBatch.cs (2)
14= new List<RenderTreeDiff>(); 30DiffsByComponentId.Add(componentId, new List<RenderTreeDiff>());
src\Components\Shared\test\TestRenderer.cs (2)
42= new List<CapturedBatch>(); 44public List<Exception> HandledExceptions { get; } = new List<Exception>();
Virtualization\VirtualizeTest.cs (1)
39InnerContent = BuildVirtualize(10f, EmptyItemsProvider<int>, new List<int>())
Microsoft.AspNetCore.Components.WebAssembly (13)
Hosting\WebAssemblyCultureProvider.cs (1)
77var culturesToLoad = new List<string>();
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>();
HotReload\HotReloadAgent.cs (4)
51public List<Action<Type[]?>> ClearCache { get; } = new(); 52public List<Action<Type[]?>> UpdateApplication { get; } = new(); 202var cachedDeltas = _deltas.GetOrAdd(item.ModuleId, static _ => new()); 246types ??= new();
Services\LazyAssemblyLoader.cs (2)
50var loadedAssemblies = new List<Assembly>(); 72var loadedAssemblies = new List<Assembly>();
src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ComponentWebAssemblyConventions.cs (1)
21var headers = new List<StaticAssetResponseHeader>
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
WebAssemblyHotReloadTest.cs (1)
19var logs = new List<string>();
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
168patterns ??= new();
Microsoft.AspNetCore.Components.WebView.Test (4)
Infrastructure\ContainerNode.cs (1)
8public List<TestNode> Children { get; } = new();
Infrastructure\TestDocument.cs (1)
72var permutations = new List<PermutationListEntry>();
Infrastructure\TestWebViewManager.cs (1)
11private readonly List<string> _sentIpcMessages = new();
WebViewManagerTests.cs (1)
168public List<ScopedService> Services { get; } = 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.CookiePolicy.Test (3)
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.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.Cors.Test (9)
CorsEndpointConventionBuilderExtensionsTests.cs (1)
98public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>();
CorsPolicyBuilderTests.cs (8)
123Assert.Equal(new List<string>() { "http://example.com", "http://example2.com" }, corsPolicy.Origins); 134Assert.Equal(new List<string>() { "http://www.example.com", "https://example2.com" }, corsPolicy.Origins); 171Assert.Equal(new List<string>() { "*" }, corsPolicy.Origins); 229Assert.Equal(new List<string>() { "PUT", "GET" }, corsPolicy.Methods); 244Assert.Equal(new List<string>() { "*" }, corsPolicy.Methods); 259Assert.Equal(new List<string>() { "example1", "example2" }, corsPolicy.Headers); 274Assert.Equal(new List<string>() { "*" }, corsPolicy.Headers); 288Assert.Equal(new List<string>() { "exposed1", "exposed2" }, corsPolicy.ExposedHeaders);
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.DataProtection.Tests (15)
KeyManagement\KeyEscrowServiceProviderExtensionsTests.cs (2)
33List<string> output = new List<string>(); 58List<string> output = new List<string>();
KeyManagement\KeyRingProviderTests.cs (13)
21var callSequence = new List<string>(); 59var callSequence = new List<string>(); 102var callSequence = new List<string>(); 152var callSequence = new List<string>(); 193var callSequence = new List<string>(); 241var callSequence = new List<string>(); 275var callSequence = new List<string>(); 325var callSequence = new List<string>(); 363var callSequence = new List<string>(); 427var actualCallSequence = new List<string>(); 456var expectedCallSequence = new List<string> { "GetCacheExpirationToken", "GetAllKeys", "ResolveDefaultKeyPolicy" }; 458var resolveDefaultKeyPolicyReturnValues = new List<Tuple<DateTimeOffset, IEnumerable<IKey>, DefaultKeyResolution>>() 520var actualCallSequence = new List<string>();
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
88var certificates = new List<X509Certificate2>(); 649var extensions = new List<X509Extension>(); 888var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
700var nssDbs = new List<string>(); 720var nssDbs = new List<NssDb>(); 879var certs = new List<FileInfo>();
Microsoft.AspNetCore.Diagnostics (7)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
294var 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\Shared\Diagnostics\BaseView.cs (1)
100AttributeValues = new List<string>();
src\Shared\RazorViews\BaseView.cs (1)
140AttributeValues = new List<string>();
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\Shared\Diagnostics\BaseView.cs (1)
100AttributeValues = new List<string>();
src\Shared\RazorViews\BaseView.cs (1)
140AttributeValues = new List<string>();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (19)
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.Diagnostics.Tests (20)
DeveloperExceptionPageMiddlewareTest.cs (13)
485var failures = new List<CompilationFailure>(); 486var diagnosticMessages = new List<DiagnosticMessage>(); 487variations.Add(new List<CompilationFailure>() 491variations.Add(new List<CompilationFailure>() 495variations.Add(new List<CompilationFailure>() 499variations.Add(new List<CompilationFailure>() 503variations.Add(new List<CompilationFailure>() 507variations.Add(new List<CompilationFailure>() 513variations.Add(new List<CompilationFailure>() 517variations.Add(new List<CompilationFailure>() 522variations.Add(new List<CompilationFailure>() 526variations.Add(new List<CompilationFailure>() 528new CompilationFailure(@"c:\sourcefilepath.cs", "source file content", "compiled content", new List<DiagnosticMessage>(){ null })
ExceptionHandlerMiddlewareTest.cs (6)
133var exceptionHandlers = new List<IExceptionHandler> 158var exceptionHandlers = new List<IExceptionHandler> 188var exceptionHandlers = new List<IExceptionHandler> 213var exceptionHandlers = new List<IExceptionHandler> { new TestExceptionHandler(true, "1") }; 236var exceptionHandlers = new List<IExceptionHandler> { new TestExceptionHandler(true, "1") }; 258var exceptionHandlers = new List<IExceptionHandler> { new TestExceptionHandler(true, "1") };
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
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\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (1)
63values = new List<AuthProperty>();
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePattern.cs (1)
32public List<string> FieldPath { get; } = new List<string>();
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (2)
40_segments = new List<string>(); 41_variables = new List<HttpRouteVariable>();
src\Grpc\JsonTranscoding\src\Shared\Server\MethodOptions.cs (1)
112var tempInterceptors = new List<InterceptorRegistration>();
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\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (1)
53List<string> dnsEntries = new List<string>();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
JsonTranscodingServiceMethodProviderTests.cs (1)
251DataSources = new List<EndpointDataSource>();
UnaryServerCallHandlerTests.cs (1)
1405var interceptors = new List<(Type Type, object[] Args)>();
Microsoft.AspNetCore.Grpc.Swagger (10)
GrpcSwaggerServiceExtensions.cs (1)
61public ActionDescriptorCollection ActionDescriptors { get; } = new ActionDescriptorCollection(new List<ActionDescriptor>(), 1);
Internal\GrpcDataContractResolver.cs (2)
84var anyProperties = new List<DataProperty> 104var properties = new List<DataProperty>();
Internal\XmlComments\GrpcXmlCommentsDocumentFilter.cs (1)
65swaggerDoc.Tags = new List<OpenApiTag>();
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePattern.cs (1)
32public List<string> FieldPath { get; } = new List<string>();
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (2)
40_segments = new List<string>(); 41_variables = new List<HttpRouteVariable>();
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>());
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
XmlComments\XmlCommentsDocumentFilterTests.cs (1)
56EndpointMetadata = new List<object>
Microsoft.AspNetCore.HeaderParsing (1)
Parsers\IPAddressListParser.cs (1)
18var list = new List<IPAddress>();
Microsoft.AspNetCore.HeaderParsing.Tests (4)
ParserTests.cs (4)
372Assert.Equal(new List<IPAddress> { IPAddress.Parse("1.1.1.1"), IPAddress.Parse("192.168.1.100"), IPAddress.Parse("3.3.3.3") }, result); 382Assert.Equal(new List<IPAddress> { IPAddress.Parse("1.1.1.1"), IPAddress.Parse("192.168.1.100"), IPAddress.Parse("3.3.3.3") }, result); 394Assert.Equal(new List<IPAddress> { IPAddress.Parse("1.1.1.1") }, result); 406Assert.Equal(new List<IPAddress> { IPAddress.Parse("1::ffff") }, result);
Microsoft.AspNetCore.HostFiltering (2)
HostFilteringOptions.cs (1)
24public IList<string> AllowedHosts { get; set; } = new List<string>();
MiddlewareConfigurationManager.cs (1)
40var allowedHosts = new List<StringSegment>();
Microsoft.AspNetCore.HostFiltering.Tests (2)
MiddlewareConfigurationManagerTests.cs (2)
20AllowedHosts = new List<string>() { "*" }, 75AllowedHosts = new List<string>() { "localhost;foo.example.com.bar:443" },
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\Shared\RazorViews\BaseView.cs (1)
140AttributeValues = new List<string>();
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
62var typeLoadExceptions = new List<Exception>(); 72var list = new List<Exception>();
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
168patterns ??= new();
WebHostBuilder.cs (1)
224var exceptions = new List<Exception>();
Microsoft.AspNetCore.Hosting.Tests (9)
GenericWebHostBuilderTests.cs (1)
140public ICollection<string> Addresses { get; } = new List<string>();
HostingApplicationDiagnosticsTests.cs (1)
1152public List<object> Scopes { get; set; } = new List<object>();
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
StartupManagerTests.cs (2)
428var diagnosticMessages = new List<string>(); 755private readonly IList<object> _configurationMethodCalledList = new List<object>();
WebHostBuilderTests.cs (2)
964var disposables = new List<DisposableService>(); 1601private readonly List<IServiceProvider> _serviceProviders = new List<IServiceProvider>();
WebHostTests.AsyncDisposable.cs (1)
46public List<AsyncDisposableServiceProvider> Providers { get; } = new List<AsyncDisposableServiceProvider>();
WebHostTests.cs (1)
1232public IList<StartInstance> StartInstances { get; } = new List<StartInstance>();
Microsoft.AspNetCore.Html.Abstractions (1)
HtmlContentBuilder.cs (1)
19: this(new List<object>())
Microsoft.AspNetCore.Html.Abstractions.Tests (1)
HtmlContentBuilderExtensionsTest.cs (1)
363public List<IHtmlContent> Entries { get; } = new List<IHtmlContent>();
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\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\Shared\PropertyHelper\PropertyHelper.cs (1)
502var propertyHelpers = new List<PropertyHelper>();
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
EndpointMetadataCollectionTests.cs (1)
14var metadata = new EndpointMetadataCollection(new List<object>
HttpMethodslTests.cs (1)
13var testCases = new List<(string[] methods, string expectedMethod)>
RouteValueDictionaryTests.cs (2)
156var values = new List<KeyValuePair<string, object?>>() 173var values = new List<KeyValuePair<string, string?>>()
Microsoft.AspNetCore.Http.Connections (9)
ConnectionEndpointRouteBuilderExtensions.cs (1)
94var conventionBuilders = new List<IEndpointConventionBuilder>();
HttpConnectionDispatcherOptions.cs (1)
31AuthorizationData = new List<IAuthorizeData>();
Internal\HttpConnectionContext.cs (1)
226_heartbeatHandlers = new List<(Action<object> handler, object state)>();
Internal\HttpConnectionDispatcher.cs (4)
25TransferFormats = new List<string> { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) } 32TransferFormats = new List<string> { nameof(TransferFormat.Text) } 39TransferFormats = new List<string> { nameof(TransferFormat.Text), nameof(TransferFormat.Binary) } 421response.AvailableTransports = new List<AvailableTransport>();
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)
310var transportExceptions = new List<Exception>();
Microsoft.AspNetCore.Http.Connections.Common (2)
NegotiateProtocol.cs (2)
195availableTransports = new List<AvailableTransport>(); 293availableTransport.TransferFormats = new List<string>();
Microsoft.AspNetCore.Http.Connections.Tests (6)
HttpConnectionDispatcherTests.cs (1)
3304var claims = new List<Claim>
NegotiateProtocolTests.cs (1)
107AvailableTransports = new List<AvailableTransport>
ServerSentEventsMessageFormatterTests.cs (1)
40public static IEnumerable<object[]> PayloadData => new List<object[]>
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
11 private readonly List<XElement> _storedElements = new List<XElement>();
TestWebSocketConnectionFeature.cs (1)
232var frames = new List<WebSocketMessage>();
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\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ReadOnlyCollectionBufferAdapter.cs (1)
10public static IList<TElement> CreateBuffer() => new List<TElement>();
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\Components\Endpoints\src\FormMapping\FormDataMapperOptions.cs (1)
15private readonly List<IFormDataConverterFactory> _factories = new();
src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
317public List<Type> CurrentTypes { get; set; } = new();
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.Extensions.Tests (59)
HeaderDictionaryTypeExtensionsTest.cs (1)
303var results = new List<TestHeaderValue>();
ProblemDetailsServiceTest.cs (4)
15writers: new List<IProblemDetailsWriter> 41writers: new List<IProblemDetailsWriter> 83writers: new List<IProblemDetailsWriter> { new MetadataBasedWriter() }); 118writers: new List<IProblemDetailsWriter> { new MetadataBasedWriter() });
RequestDelegateFactoryTests.cs (25)
88return new List<object[]> 108EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 1323return new List<object[]> 1444return new List<object[]> 1498return new List<object[]> 1535return new List<object?[]> 1716return new List<object?[]> 1887return new List<object?[]> 2168EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2211EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2283EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2378EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2412EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2497EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2560var options = new RequestDelegateFactoryOptions { EndpointBuilder = CreateEndpointBuilder(new List<object> { customMetadata }) }; 2675EndpointBuilder = CreateEndpointBuilder(new List<object> 2697EndpointBuilder = CreateEndpointBuilder(new List<object> 2720EndpointBuilder = CreateEndpointBuilder(new List<object> 2743EndpointBuilder = CreateEndpointBuilder(new List<object> 2766EndpointBuilder = CreateEndpointBuilder(new List<object> 2787EndpointBuilder = CreateEndpointBuilder(new List<object> 2808EndpointBuilder = CreateEndpointBuilder(new List<object> 2871var metadataResult = new RequestDelegateMetadataResult { EndpointMetadata = new List<object>() }; 3051EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 3094EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
RequestDelegateFactoryTests.FormMapping.cs (8)
24EndpointBuilder = CreateEndpointBuilder(new List<object>() 30var metadataResult = new RequestDelegateMetadataResult { EndpointMetadata = new List<object>() }; 71EndpointBuilder = CreateEndpointBuilder(new List<object>() 77var metadataResult = new RequestDelegateMetadataResult { EndpointMetadata = new List<object>() }; 118EndpointBuilder = CreateEndpointBuilder(new List<object>() 125var metadataResult = new RequestDelegateMetadataResult { EndpointMetadata = new List<object>() }; 243EndpointBuilder = CreateEndpointBuilder(new List<object>() 249var metadataResult = new RequestDelegateMetadataResult { EndpointMetadata = new List<object>() };
RequestDelegateGenerator\CompileTimeCreationTests.cs (1)
436return new List<object[]>
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (4)
131var embeddedTexts = new List<EmbeddedText>(); 425assemblies ??= new(); 433assemblies ??= new(); 475DataSources = new List<EndpointDataSource>();
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (1)
799return new List<object[]>
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (1)
444return new List<object[]>
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBodyOrService.cs (1)
93return new List<object[]>
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (1)
17return new List<object[]>
RequestDelegateGenerator\RequestDelegateCreationTests.Responses.cs (12)
88public static IEnumerable<object[]> MapAction_NoParam_ComplexReturn_Data => new List<object[]>() 122public static IEnumerable<object[]> MapAction_NoParam_ExtensionResult_Data => new List<object[]>() 146public static IEnumerable<object[]> MapAction_NoParam_TaskOfTReturn_Data => new List<object[]>() 174public static IEnumerable<object[]> MapAction_NoParam_ValueTaskOfTReturn_Data => new List<object[]>() 199public static IEnumerable<object[]> MapAction_NoParam_TaskLikeOfObjectReturn_Data => new List<object[]>() 444return new List<object[]> 547return new List<object[]> 627return new List<object[]> 731return new List<object[]> 814return new List<object[]> 870return new List<object[]> 948return new List<object[]>
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
105get => _extensions ??= new List<string>();
Microsoft.AspNetCore.Http.Microbenchmarks (5)
AdaptiveCapacityDictionaryBenchmark.cs (1)
25_tenValues = new List<KeyValuePair<string, string>>()
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (4)
131var embeddedTexts = new List<EmbeddedText>(); 425assemblies ??= new(); 433assemblies ??= new(); 475DataSources = new List<EndpointDataSource>();
Microsoft.AspNetCore.Http.RequestDelegateGenerator (4)
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)
486var propertiesWithParameterInfo = new List<ConstructorParameter>();
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (1)
303var potentialImplicitBodyParameters = new List<EndpointParameter>();
Microsoft.AspNetCore.Http.Results.Tests (45)
AcceptedAtRouteResultTests.cs (1)
80var metadata = new List<object>();
AcceptedOfTResultTests.cs (1)
67var metadata = new List<object>();
AcceptedResultTests.cs (1)
37var metadata = new List<object>();
BadRequestOfTResultTests.cs (1)
110var metadata = new List<object>();
BadRequestResultTests.cs (1)
50var metadata = new List<object>();
ConflictOfTResultTests.cs (1)
88var metadata = new List<object>();
ConflictResultTests.cs (1)
51var metadata = new List<object>();
CreatedAtRouteOfTResultTests.cs (1)
96var metadata = new List<object>();
CreatedAtRouteResultTests.cs (1)
78var metadata = new List<object>();
CreatedOfTResultTests.cs (1)
102var metadata = new List<object>();
CreatedResultTests.cs (1)
68var metadata = new List<object>();
InternalServerErrorOfTResultTests.cs (1)
110var metadata = new List<object>();
InternalServerErrorResultTests.cs (1)
50var metadata = new List<object>();
NoContentResultTests.cs (1)
47var metadata = new List<object>();
NotFoundOfTResultTests.cs (1)
70var metadata = new List<object>();
NotFoundResultTests.cs (1)
46var metadata = new List<object>();
OkOfTResultTests.cs (1)
87var metadata = new List<object>();
OkResultTests.cs (1)
49var metadata = new List<object>();
ResultsTests.cs (12)
283public static IEnumerable<object[]> BytesOrFile_ResultHasCorrectValues_Data => new List<object[]> 331public static IEnumerable<object[]> Stream_ResultHasCorrectValues_Data => new List<object[]> 386Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes); 398Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes); 448Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes); 467public static IEnumerable<object[]> ChallengeForbidSignInOut_ResultHasCorrectValues_Data => new List<object[]> 469new object[] { new AuthenticationProperties(), new List<string> { "TestScheme" } }, 471new object[] { default(AuthenticationProperties), new List<string> { "TestScheme" } }, 1280var extensions = new List<KeyValuePair<string, object>> { new("test", "value") }; 1430var errors = new List<KeyValuePair<string, string[]>> { new("testField", new[] { "test error" }) }; 1436var extensions = new List<KeyValuePair<string, object>> { new("testField", "test value") }; 1728private static IEnumerable<(Expression<Func<IResult>>, Type)> FactoryMethodsTuples { get; } = new List<(Expression<Func<IResult>>, Type)>
TypedResultsTests.cs (12)
261public static IEnumerable<object[]> BytesOrFile_ResultHasCorrectValues_Data => new List<object[]> 307public static IEnumerable<object[]> PhysicalOrVirtualFile_ResultHasCorrectValues_Data => new List<object[]> 415public static IEnumerable<object[]> Stream_ResultHasCorrectValues_Data => new List<object[]> 434Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes); 446Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes); 458Assert.Equal(authenticationSchemes ?? new ReadOnlyCollection<string>(new List<string>()), result.AuthenticationSchemes); 477public static IEnumerable<object[]> ChallengeForbidSignInOut_ResultHasCorrectValues_Data => new List<object[]> 479new object[] { new AuthenticationProperties(), new List<string> { "TestScheme" } }, 481new object[] { default(AuthenticationProperties), new List<string> { "TestScheme" } }, 1096var extensions = new List<KeyValuePair<string, object>> { new("test", "value") }; 1217var errors = new List<KeyValuePair<string, string[]>> { new("testField", new[] { "test error" }) }; 1222var extensions = new List<KeyValuePair<string, object>> { new("testField", "test value") };
UnprocessableEntityOfTResultTests.cs (1)
87var metadata = new List<object>();
UnprocessableEntityResultTests.cs (1)
50var metadata = new List<object>();
ValidationProblemResultTests.cs (1)
98var metadata = new List<object>();
Microsoft.AspNetCore.Http.Tests (9)
DefaultHttpContextTests.cs (2)
428public List<(Func<object, Task> callback, object state)> CompletedCallbacks = new List<(Func<object, Task> callback, object state)>(); 519public List<AsyncServiceScope> Scopes { get; } = new List<AsyncServiceScope>();
Features\FakeResponseFeature.cs (1)
8List<Tuple<Func<object, Task>, object>> _onCompletedCallbacks = new List<Tuple<Func<object, Task>, object>>();
Features\FormFeatureTests.cs (4)
453var formContent = new List<byte>(); 477var formContent = new List<byte>(); 501var formContent = new List<byte>(); 525var formContent = new List<byte>();
Features\RequestBodyPipeFeatureTests.cs (1)
47var bufferLengths = new List<int>();
Internal\DefaultHttpResponseTests.cs (1)
193private readonly List<(Func<object, Task>, object)> _callbacks = new();
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)
149logContext.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.HttpLogging.Tests (2)
HttpLoggingEndpointConventionBuilderTests.cs (1)
64public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>();
TestW3CLoggerProcessor.cs (1)
20Lines = new List<string>();
Microsoft.AspNetCore.HttpOverrides (4)
ForwardedHeadersMiddleware.cs (1)
77var allowedHosts = new List<StringSegment>();
ForwardedHeadersOptions.cs (3)
81public IList<IPAddress> KnownProxies { get; } = new List<IPAddress>() { IPAddress.IPv6Loopback }; 86public IList<IPNetwork> KnownNetworks { get; } = new List<IPNetwork>() { new IPNetwork(IPAddress.Loopback, 8) }; 102public 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)
172claims = new List<Claim>(); 210additionalClaims = new List<Claim>(); 500var claims = new List<Claim>();
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
UserStore.cs (1)
621return new List<TUser>();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (9)
src\Identity\test\Shared\MockHelpers.cs (4)
27var roles = new List<IRoleValidator<TRole>>(); 40var userValidators = new List<IUserValidator<TUser>>(); 43var pwdValidators = new List<PasswordValidator<TUser>>(); 57var roles = new List<IRoleValidator<TRole>>();
src\Identity\test\Shared\PocoModel\PocoRole.cs (1)
57public virtual ICollection<PocoRoleClaim<TKey>> Claims { get; private set; } = new List<PocoRoleClaim<TKey>>();
src\Identity\test\Shared\PocoModel\PocoUser.cs (4)
134public virtual ICollection<PocoUserRole<TKey>> Roles { get; private set; } = new List<PocoUserRole<TKey>>(); 138public virtual ICollection<PocoUserClaim<TKey>> Claims { get; private set; } = new List<PocoUserClaim<TKey>>(); 142public virtual ICollection<PocoUserLogin<TKey>> Logins { get; private set; } = new List<PocoUserLogin<TKey>>(); 146public virtual ICollection<PocoUserToken<TKey>> Tokens { get; private set; } = new List<PocoUserToken<TKey>>();
Microsoft.AspNetCore.Identity.FunctionalTests (5)
ManagementTests.cs (4)
115var principals = new List<ClaimsPrincipal>(); 150var principals = new List<ClaimsPrincipal>(); 190var principals = new List<ClaimsPrincipal>(); 240var principals = new List<ClaimsPrincipal>();
MapIdentityApiTests.cs (1)
1512public List<TestEmail> Emails { get; set; } = new();
Microsoft.AspNetCore.Identity.InMemory.Test (11)
InMemoryStore.cs (2)
42IList<string> roles = new List<string>(); 65return Task.FromResult<IList<TUser>>(new List<TUser>());
src\Identity\test\Shared\MockHelpers.cs (4)
27var roles = new List<IRoleValidator<TRole>>(); 40var userValidators = new List<IUserValidator<TUser>>(); 43var pwdValidators = new List<PasswordValidator<TUser>>(); 57var roles = new List<IRoleValidator<TRole>>();
src\Identity\test\Shared\PocoModel\PocoRole.cs (1)
57public virtual ICollection<PocoRoleClaim<TKey>> Claims { get; private set; } = new List<PocoRoleClaim<TKey>>();
src\Identity\test\Shared\PocoModel\PocoUser.cs (4)
134public virtual ICollection<PocoUserRole<TKey>> Roles { get; private set; } = new List<PocoUserRole<TKey>>(); 138public virtual ICollection<PocoUserClaim<TKey>> Claims { get; private set; } = new List<PocoUserClaim<TKey>>(); 142public virtual ICollection<PocoUserLogin<TKey>> Logins { get; private set; } = new List<PocoUserLogin<TKey>>(); 146public virtual ICollection<PocoUserToken<TKey>> Tokens { get; private set; } = new List<PocoUserToken<TKey>>();
Microsoft.AspNetCore.Identity.Specification.Tests (2)
IdentitySpecificationTestBase.cs (1)
571var roleNameList = new List<string>();
TestLogger.cs (1)
28public IList<string> LogMessages { get; } = new List<string>();
Microsoft.AspNetCore.Identity.Test (20)
IdentityUIScriptsTest.cs (2)
108var scriptTags = new List<ScriptTag>(); 134var scriptTags = new List<ScriptTag>();
PasswordValidatorTest.cs (1)
147var errors = new List<string>();
SignInManagerTest.cs (3)
273IList<string> providers = new List<string>(); 311IList<string> providers = new List<string>(); 780IList<string> providers = new List<string>();
src\Identity\test\Shared\MockHelpers.cs (4)
27var roles = new List<IRoleValidator<TRole>>(); 40var userValidators = new List<IUserValidator<TUser>>(); 43var pwdValidators = new List<PasswordValidator<TUser>>(); 57var roles = new List<IRoleValidator<TRole>>();
src\Identity\test\Shared\PocoModel\PocoRole.cs (1)
57public virtual ICollection<PocoRoleClaim<TKey>> Claims { get; private set; } = new List<PocoRoleClaim<TKey>>();
src\Identity\test\Shared\PocoModel\PocoUser.cs (4)
134public virtual ICollection<PocoUserRole<TKey>> Roles { get; private set; } = new List<PocoUserRole<TKey>>(); 138public virtual ICollection<PocoUserClaim<TKey>> Claims { get; private set; } = new List<PocoUserClaim<TKey>>(); 142public virtual ICollection<PocoUserLogin<TKey>> Logins { get; private set; } = new List<PocoUserLogin<TKey>>(); 146public virtual ICollection<PocoUserToken<TKey>> Tokens { get; private set; } = new List<PocoUserToken<TKey>>();
UserManagerTest.cs (5)
1220return Task.FromResult<IList<Claim>>(new List<Claim>()); 1310return Task.FromResult<IList<UserLoginInfo>>(new List<UserLoginInfo>()); 1399return Task.FromResult<IList<string>>(new List<string>()); 1449return Task.FromResult<IList<PocoUser>>(new List<PocoUser>()); 1454return Task.FromResult<IList<PocoUser>>(new List<PocoUser>());
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
113var viewsToRemove = new List<CompiledViewDescriptor>();
Microsoft.AspNetCore.InternalTesting (2)
Tracing\EventAssert.cs (1)
17private readonly IList<(string name, Action<object> asserter)> _payloadAsserters = new List<(string, Action<object>)>();
xunit\AspNetTestRunner.cs (1)
79List<string> messages = new();
Microsoft.AspNetCore.JsonPatch (7)
Converters\JsonPatchDocumentConverter.cs (1)
41var targetOperations = new List<Operation>();
Internal\DynamicObjectAdapter.cs (2)
180new List<CSharpArgumentInfo> 216new List<CSharpArgumentInfo>
Internal\ParsedPath.cs (1)
44var strings = new List<string>();
JsonPatchDocument.cs (1)
30Operations = new List<Operation>();
JsonPatchDocumentOfT.cs (2)
34Operations = new List<Operation<TModel>>(); 678var listOfSegments = new List<string>();
Microsoft.AspNetCore.JsonPatch.Tests (75)
Adapters\AdapterFactoryTests.cs (1)
25IAdapter adapter = factory.Create(new List<string>(), new DefaultContractResolver());
IntegrationTests\DynamicObjectIntegrationTest.cs (2)
177IntegerList = new List<int>() { 1, 2, 3 } 218IntegerList = new List<int>() { 1, 2, 3 }
IntegrationTests\HeterogenousCollectionTests.cs (1)
22Items = new List<Shape>()
IntegrationTests\ListIntegrationTest.cs (26)
21IntegerList = new List<int>() { 1, 2, 3 } 40IntegerList = new List<int>() { 1, 2, 3 } 61IntegerIList = new List<int>() { 1, 2, 3 } 72Assert.Equal(new List<int>() { 4, 1, 2, 3 }, targetObject.SimpleObject.IntegerIList); 81SimpleObjectList = new List<SimpleObject>() 112IntegerList = new List<int>() { 1, 2, 3 } 123Assert.Equal(new List<int>() { 1, 2, 3, 4 }, targetObject.SimpleObject.IntegerList); 132IntegerList = new List<int>() { 1, 2, 3 } 142Assert.Equal(new List<int>() { 1, 2 }, targetObject.IntegerList); 153IntegerList = new List<int>() { 1, 2, 3 } 177IntegerList = new List<int>() { 1, 2, 3 } 188Assert.Equal(new List<int>() { 1, 2 }, targetObject.SimpleObject.IntegerList); 197IntegerList = new List<int>() { 1, 2, 3 } 207Assert.Equal(new List<int>() { 4, 5, 6 }, targetObject.IntegerList); 218IntegerList = new List<int>() { 1, 2, 3 } 229Assert.Equal(new List<int>() { 1, 2, 5 }, targetObject.SimpleObject.IntegerList); 240IntegerList = new List<int>() { 1, 2, 3 } 260IntegerList = new List<int>() { 1, 2, 3 } 270Assert.Equal(new List<int>() { 1, 2, 3, 1 }, targetObject.IntegerList); 279IntegerList = new List<int>() { 1, 2, 3 } 299IntegerList = new List<int>() { 1, 2, 3 } 310Assert.Equal(new List<int>() { 1, 2, 3, 5 }, targetObject.IntegerList); 322SimpleObjectList = new List<SimpleObject>() { 336Assert.Equal(new List<SimpleObject>() { simpleObject2, simpleObject1, simpleObject3 }, targetObject.SimpleObjectList); 351IntegerList = new List<int>() { 1, 2, 3 } 362Assert.Equal(new List<int>() { 2, 3 }, targetObject.SimpleObject.IntegerList);
Internal\DictionaryAdapterTest.cs (1)
301var value = new List<object>()
Internal\DynamicObjectAdapterTest.cs (3)
36target.List = new List<int>() { 1, 2, 3 }; 37var value = new List<string>() { "stringValue1", "stringValue2" }; 257var value = new List<object>()
Internal\ListAdapterTest.cs (38)
53var targetObject = new List<string>() { "James", "Mike" }; 64Assert.Equal(new List<string>() { "James", "Mike", "Rob" }, targetObject); 75var targetObject = new List<string>() { "James", "Mike" }; 93var targetObject = new List<string>() { "James", "Mike" }; 111new List<int>() { }, 112new List<int>() { 20 } 115new List<int>() { 5, 10 }, 116new List<int>() { 5, 10, 20 } 146var targetObject = new List<string>() { "James", "Mike" }; 155Assert.Equal(new List<string>() { "James", "Mike", null }, targetObject); 165var targetObject = new List<SimpleObject>() { sDto }; 175Assert.Equal(new List<SimpleObject>() { sDto, iDto }, targetObject); 183var targetObject = new List<int>() { 10, 20 }; 201new List<string>() { }, 204new List<string>() { "a" } 207new List<string>() { "a", "b" }, 210new List<string>() { "a", "b", "c" } 213new List<string>() { "a", "b" }, 216new List<string>() { "c", "a", "b" } 219new List<string>() { "a", "b" }, 222new List<string>() { "a", "c", "b" } 256new List<SimpleObject>() { }, 259new List<SimpleObject>() { sDto1 } 262new List<SimpleObject>() { sDto1, sDto2 }, 265new List<SimpleObject>() { sDto1, sDto2, sDto3 } 268new List<SimpleObject>() { sDto1, sDto2 }, 271new List<SimpleObject>() { sDto3, sDto1, sDto2 } 274new List<SimpleObject>() { sDto1, sDto2 }, 277new List<SimpleObject>() { sDto1, sDto3, sDto2 } 383var targetObject = new List<int>() { 10, 20 }; 399var targetObject = new List<int>() { 10, 20 }; 408Assert.Equal(new List<int>() { 10, 30 }, targetObject); 419new List<int>() { 30, 20 } 423new List<int>() { 10, 30 } 435var targetObject = new List<int>() { 10, 20 }; 452var targetObject = new List<int>() { 10, 20 }; 468var targetObject = new List<int>() { 10, 20 }; 485var targetObject = new List<int>() { 10, 20 };
Internal\ObjectVisitorTest.cs (2)
16public IList<string> States { get; set; } = new List<string>(); 23public List<Class1> Customers { get; set; } = new List<Class1>();
TestObjectModels\SimpleObjectWithNestedObject.cs (1)
27SimpleObjectList = new List<SimpleObject>();
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.Localization.Routing.Tests (4)
RouteDataRequestCultureProviderTest.cs (4)
45SupportedCultures = new List<CultureInfo> 49SupportedUICultures = new List<CultureInfo> 164SupportedCultures = new List<CultureInfo> 168SupportedUICultures = new List<CultureInfo>
Microsoft.AspNetCore.Localization.Tests (31)
AcceptLanguageHeaderRequestCultureProviderTest.cs (5)
28SupportedCultures = new List<CultureInfo> 69SupportedCultures = new List<CultureInfo> 109SupportedCultures = new List<CultureInfo> 150SupportedCultures = new List<CultureInfo> 154SupportedUICultures = new List<CultureInfo>
CookieRequestCultureProviderTest.cs (10)
32SupportedCultures = new List<CultureInfo> 36SupportedUICultures = new List<CultureInfo> 85SupportedCultures = new List<CultureInfo> 89SupportedUICultures = new List<CultureInfo> 134SupportedCultures = new List<CultureInfo> 138SupportedUICultures = new List<CultureInfo> 185SupportedCultures = new List<CultureInfo> 189SupportedUICultures = new List<CultureInfo> 245SupportedCultures = new List<CultureInfo> 249SupportedUICultures = new List<CultureInfo>
CustomRequestCultureProviderTest.cs (2)
29SupportedCultures = new List<CultureInfo> 33SupportedUICultures = new List<CultureInfo>
QueryStringRequestCultureProviderTest.cs (14)
28SupportedCultures = new List<CultureInfo> 32SupportedUICultures = new List<CultureInfo> 104SupportedCultures = new List<CultureInfo> 108SupportedUICultures = new List<CultureInfo> 145SupportedCultures = new List<CultureInfo> 149SupportedUICultures = new List<CultureInfo> 186SupportedCultures = new List<CultureInfo> 190SupportedUICultures = new List<CultureInfo> 228SupportedCultures = new List<CultureInfo> 232SupportedUICultures = new List<CultureInfo> 270SupportedCultures = new List<CultureInfo> 274SupportedUICultures = new List<CultureInfo> 317SupportedCultures = new List<CultureInfo> 321SupportedUICultures = new List<CultureInfo>
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (3)
TestDiagnosticListener.cs (3)
11public IList<string> MiddlewareStarting { get; } = new List<string>(); 12public IList<string> MiddlewareFinished { get; } = new List<string>(); 13public IList<string> MiddlewareException { get; } = new List<string>();
Microsoft.AspNetCore.Mvc.Abstractions (9)
Abstractions\ActionDescriptorProviderContext.cs (1)
15public IList<ActionDescriptor> Results { get; } = new List<ActionDescriptor>();
ApiExplorer\ApiDescription.cs (3)
33public IList<ApiParameterDescription> ParameterDescriptions { get; } = new List<ApiParameterDescription>(); 51public IList<ApiRequestFormat> SupportedRequestFormats { get; } = new List<ApiRequestFormat>(); 60public 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.Api.Analyzers (4)
ActualApiResponseMetadataFactory.cs (2)
27var localActualResponseMetadata = new List<ActualApiResponseMetadata>(); 104var metadata = new List<ActualApiResponseMetadata?>();
SymbolApiResponseMetadataProvider.cs (2)
142var metadataItems = new List<DeclaredApiResponseMetadata>(); 169var conventionTypes = new List<ITypeSymbol>();
Microsoft.AspNetCore.Mvc.ApiExplorer (7)
ApiParameterContext.cs (1)
21Results = new List<ApiParameterDescription>();
ApiResponseTypeProvider.cs (1)
62return new List<IApiResponseMetadataProvider>();
DefaultApiDescriptionProvider.cs (4)
109var templateParameters = parsedTemplate?.Parameters?.ToList() ?? new List<TemplatePart>(); 346var constraints = new List<IRouteConstraint>(); 392var segments = new List<string>(); 427var results = new List<ApiRequestFormat>();
EndpointMetadataApiDescriptionProvider.cs (1)
226var constraints = new List<IRouteConstraint>();
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (26)
ApiResponseTypeProviderTest.cs (1)
790FilterDescriptors = new List<FilterDescriptor>(),
DefaultApiDescriptionProviderTest.cs (24)
96action.EndpointMetadata = new List<object>() { new EndpointGroupNameAttribute("Customers") }; 111action.EndpointMetadata = new List<object>() { new EndpointGroupNameAttribute("Customers") }; 141action.ActionConstraints = new List<IActionConstraintMetadata>() 529action.EndpointMetadata = new List<object>() { new ProducesResponseTypeMetadata(200, typeof(Product)) }; 548action.EndpointMetadata = new List<object>() { new ProducesResponseTypeMetadata(200, typeof(Product)) }; 549action.FilterDescriptors = new List<FilterDescriptor>{ 640var filterDescriptors = new List<FilterDescriptor>() 737var filterDescriptors = new List<FilterDescriptor>() 844action.FilterDescriptors = new List<FilterDescriptor>() 914action.FilterDescriptors = new List<FilterDescriptor>() 984action.FilterDescriptors = new List<FilterDescriptor>() 1075action.FilterDescriptors = new List<FilterDescriptor> 1114action.FilterDescriptors = new List<FilterDescriptor> 1158action.FilterDescriptors = new List<FilterDescriptor> 1182action.FilterDescriptors = new List<FilterDescriptor> 1247action.FilterDescriptors = new List<FilterDescriptor> 1268action.EndpointMetadata = new List<object>() { new XmlOnlyMetadata() }; 1287action.FilterDescriptors = new List<FilterDescriptor> 2262var formatters = new List<MockInputFormatter>() 2280var formatters = new List<MockOutputFormatter>() 2307action.BoundProperties = new List<ParameterDescriptor>(); 2330action.Parameters = new List<ParameterDescriptor>(); 2809public List<Type> SupportedTypes { get; } = new List<Type>(); 2837public List<Type> SupportedTypes { get; } = new List<Type>();
EndpointMetadataApiDescriptionProviderTest.cs (1)
1620DataSources = new List<EndpointDataSource>();
Microsoft.AspNetCore.Mvc.Core (77)
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 (2)
25SupportedEncodings = new List<Encoding>(); 242var sorted = new List<StringWithQualityHeaderValue>();
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\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (3)
231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
src\Shared\PropertyHelper\PropertyHelper.cs (1)
502var propertyHelpers = new List<PropertyHelper>();
Microsoft.AspNetCore.Mvc.Core.Test (296)
ActionConstraints\HttpMethodActionConstraintTest.cs (2)
60var actionSelectorCandidate = new ActionSelectorCandidate(new ActionDescriptor(), new List<IActionConstraint> { constraint }); 62context.Candidates = new List<ActionSelectorCandidate> { actionSelectorCandidate };
ApplicationModels\ActionModelTest.cs (4)
20new List<object>()); 23new List<object>()); 62new List<object>() 75new List<object>());
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (10)
19new List<object>() { }); 25new List<object>() { }) 34new List<object>() { })); 40var actionModel = new ActionModel(methodInfo, new List<object>() { }); 67new List<object>() { }); 72var actionModel = new ActionModel(methodInfo, new List<object>() { }); 92new List<object>() { }); 98var actionModel = new ActionModel(methodInfo, new List<object>() { }); 118new List<object>() { }); 124var actionModel = new ActionModel(methodInfo, new List<object>() { });
ApplicationModels\ControllerActionDescriptorProviderTests.cs (3)
1156new List<object>() { controllerConvention.Object }); 1161var actionModel = new ActionModel(methodInfo, new List<object>() { actionConvention.Object }); 1167new List<object>() { parameterConvention.Object });
ApplicationModels\ControllerModelTest.cs (5)
18new List<object>()); 21new List<object>()); 27new List<object>() { })); 66new List<object>() 81new PropertyModel(typeof(TestController).GetProperty("TestProperty"), new List<object>()));
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1272var selectors = new List<SelectorModel> { selector };
ApplicationModels\EndpointMetadataProviderTest.cs (2)
222var nonLinkGenerationEndpoints = new List<Endpoint>(); 253var descriptorsWithMatchingActionName = new List<ControllerActionDescriptor>();
ApplicationModels\ParameterModelTest.cs (2)
16new List<object>() { new FromBodyAttribute() }); 18parameter.Action = new ActionModel(typeof(TestController).GetMethod("Edit"), new List<object>());
ApplicationModels\PropertyModelTest.cs (2)
16new List<object>() { new FromBodyAttribute() }); 18propertyModel.Controller = new ControllerModel(typeof(TestController).GetTypeInfo(), new List<object>());
ApplicationParts\ApplicationPartManagerTest.cs (2)
102public IList<string> Values { get; } = new List<string>(); 107public IList<string> Values { get; } = new List<string>();
Builder\MvcAreaRouteBuilderExtensionsTest.cs (1)
285.Returns(new List<IRouter>());
ConsumesAttributeTests.cs (28)
88new List<FilterDescriptor>() { new FilterDescriptor(constraint, FilterScope.Action) } 92context.Candidates = new List<ActionSelectorCandidate>() 112new List<FilterDescriptor>() { new FilterDescriptor(constraint1, FilterScope.Action) } 119new List<FilterDescriptor>() { new FilterDescriptor(constraint2.Object, FilterScope.Action) } 126context.Candidates = new List<ActionSelectorCandidate>() 150new List<FilterDescriptor>() { new FilterDescriptor(constraint1, FilterScope.Action) } 157new List<FilterDescriptor>() { new FilterDescriptor(constraint2.Object, FilterScope.Action) } 164context.Candidates = new List<ActionSelectorCandidate>() 187new List<FilterDescriptor>() { new FilterDescriptor(constraint1, FilterScope.Action) } 194new List<FilterDescriptor>() { new FilterDescriptor(constraint2, FilterScope.Action) } 200context.Candidates = new List<ActionSelectorCandidate>() 204new ActionSelectorCandidate(actionWithoutConstraint, new List<IActionConstraint>()), 228new List<FilterDescriptor>() { new FilterDescriptor(constraint1, FilterScope.Action) } 235new List<FilterDescriptor>() { new FilterDescriptor(constraint2, FilterScope.Action) } 239context.Candidates = new List<ActionSelectorCandidate>() 243new ActionSelectorCandidate(actionWithoutConstraint, new List<IActionConstraint>()), 266new List<FilterDescriptor>() { new FilterDescriptor(constraint1, FilterScope.Action) } 273new List<FilterDescriptor>() { new FilterDescriptor(constraint2, FilterScope.Action) } 279context.Candidates = new List<ActionSelectorCandidate>() 305ActionConstraints = new List<IActionConstraintMetadata>() { consumesFilter }, 307new List<FilterDescriptor>() { new FilterDescriptor(consumesFilter, FilterScope.Action) } 314new List<IValueProviderFactory>()); 335ActionConstraints = new List<IActionConstraintMetadata>() { consumesFilter }, 337new List<FilterDescriptor>() { new FilterDescriptor(consumesFilter, FilterScope.Action) } 344new List<IValueProviderFactory>()); 364ActionConstraints = new List<IActionConstraintMetadata>() { consumesFilter }, 366new List<FilterDescriptor>() { new FilterDescriptor(consumesFilter, FilterScope.Action) } 372new List<IValueProviderFactory>());
ControllerBaseTest.cs (1)
3217ValueProviderFactories = new List<IValueProviderFactory> { new SimpleValueProviderFactory(valueProvider), },
Controllers\ControllerBinderDelegateProviderTest.cs (14)
649Assert.Equal(new List<string> { "goodbye" }, controller.CollectionProperty); 670var expected = new List<string> { "Hello", "World", "!!" }; 921new List<string> { "goodbye" } 934new List<string> { "hello", "world" }, 1001{ nameof(TestController.CollectionProperty), new List<string> { "hello", "world" } }, 1003{ nameof(TestController.NullCollectionProperty), new List<string> { "hello", "world" } }, 1057Assert.Equal(new List<string> { "hello", "world" }, controller.CollectionProperty); 1082new List<ParameterDescriptor>() 1099new List<ParameterDescriptor>() 1130BoundProperties = new List<ParameterDescriptor>(), 1207BoundProperties = new List<ParameterDescriptor>(), 1275BoundProperties = new List<ParameterDescriptor>(), 1276Parameters = new List<ParameterDescriptor>() 1369public ICollection<string> CollectionProperty { get; } = new List<string> { "goodbye" };
Controllers\ControllerFeatureProviderTest.cs (2)
311var expected = new List<TypeInfo> 344var expected = new List<TypeInfo>
Controllers\DefaultControllerActivatorTest.cs (1)
178.Returns(new DefaultObjectValidator(metadataProvider, new List<IModelValidatorProvider>(), new MvcOptions()));
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (9)
173var list = new List<IApplicationModelConvention> 200var conventions = new List<IApplicationModelConvention>(); 219var conventions = new List<IApplicationModelConvention>(); 243var conventions = new List<IApplicationModelConvention>(); 268var conventions = new List<IApplicationModelConvention>(); 293var conventions = new List<IApplicationModelConvention>(); 324var conventions = new List<IApplicationModelConvention>(); 356var conventions = new List<IApplicationModelConvention>(); 366var list = new List<IApplicationModelConvention>
Filters\FilterProviderTest.cs (4)
19var context = CreateFilterContext(new List<FilterItem>() 50var context = CreateFilterContext(new List<FilterItem>() 83var context = CreateFilterContext(new List<FilterItem>() 114var context = CreateFilterContext(new List<FilterItem>()
Filters\MiddlewareFilterBuilderTest.cs (3)
132var context = new ResourceExecutedContext(actionContext, new List<IFilterMetadata>()) 195var context = new ResourceExecutedContext(actionContext, new List<IFilterMetadata>()) 263var context = new ResourceExecutedContext(actionContext, new List<IFilterMetadata>())
Filters\MiddlewareFilterTest.cs (6)
221new List<IFilterMetadata>(), 222new List<IValueProviderFactory>()); 228() => Task.FromResult(new ResourceExecutedContext(new ActionContext(), new List<IFilterMetadata>()))); 237FilterDescriptors = new List<FilterDescriptor>(), 238Parameters = new List<ParameterDescriptor>(), 282new List<IValueProviderFactory>(),
Filters\ResponseCacheFilterExecutorTest.cs (1)
537filters ?? new List<IFilterMetadata>(),
Formatters\AcceptHeaderParserTest.cs (15)
15var expected = new List<MediaTypeSegmentWithQuality> 21var parsed = AcceptHeaderParser.ParseAcceptHeader(new List<string> { header }); 32var expected = new List<MediaTypeSegmentWithQuality> 39var parsed = AcceptHeaderParser.ParseAcceptHeader(new List<string> { header }); 54var expectedMediaTypes = new List<MediaTypeSegmentWithQuality> 61var mediaTypes = AcceptHeaderParser.ParseAcceptHeader(new List<string> { header }); 108var expected = new List<MediaTypeSegmentWithQuality> 116new List<string> { "application/json", "", "application/xml;q=0.8" }); 133var parsed = AcceptHeaderParser.ParseAcceptHeader(new List<string>() { input }); 148var parsed = AcceptHeaderParser.ParseAcceptHeader(new List<string>() { input }); 167var parsed = AcceptHeaderParser.ParseAcceptHeader(new List<string>() { input }); 185var parsed = AcceptHeaderParser.ParseAcceptHeader(new List<string>() { input }); 200var parsed = AcceptHeaderParser.ParseAcceptHeader(new List<string>() { input }); 215var parsed = AcceptHeaderParser.ParseAcceptHeader(new List<string>() { input }); 230var parsed = AcceptHeaderParser.ParseAcceptHeader(new List<string>() { input });
Formatters\FormatFilterTest.cs (4)
87new List<IValueProviderFactory>()); 342new List<IValueProviderFactory>()); 377new List<IValueProviderFactory>()); 413new List<IValueProviderFactory>());
Formatters\InputFormatterTest.cs (1)
442public IList<Type> SupportedTypes { get; } = new List<Type>();
Formatters\MediaTypeTest.cs (1)
29return new List<string[]>
Formatters\OutputFormatterTests.cs (1)
189public List<Type> SupportedTypes { get; } = new List<Type>();
Formatters\TextInputFormatterTest.cs (1)
214public IList<Type> SupportedTypes { get; } = new List<Type>();
Infrastructure\ActionSelectorTest.cs (20)
525ActionConstraints = new List<IActionConstraintMetadata>() 529Parameters = new List<ParameterDescriptor>(), 534Parameters = new List<ParameterDescriptor>(), 555ActionConstraints = new List<IActionConstraintMetadata>() 563ActionConstraints = new List<IActionConstraintMetadata>() 587ActionConstraints = new List<IActionConstraintMetadata>() 596ActionConstraints = new List<IActionConstraintMetadata>() 621ActionConstraints = new List<IActionConstraintMetadata>() 632Parameters = new List<ParameterDescriptor>(), 653ActionConstraints = new List<IActionConstraintMetadata>() 680ActionConstraints = new List<IActionConstraintMetadata>() 688Parameters = new List<ParameterDescriptor>(), 710ActionConstraints = new List<IActionConstraintMetadata>() 718ActionConstraints = new List<IActionConstraintMetadata>() 743ActionConstraints = new List<IActionConstraintMetadata>() 753ActionConstraints = new List<IActionConstraintMetadata>() 779ActionConstraints = new List<IActionConstraintMetadata>() 789ActionConstraints = new List<IActionConstraintMetadata>() 1124Parameters = new List<ParameterDescriptor>(), 1140return new ActionConstraintCache(descriptorProvider, actionConstraintProviders.AsEnumerable() ?? new List<IActionConstraintProvider>());
Infrastructure\ControllerActionInvokerCacheTest.cs (2)
119Parameters = new List<ParameterDescriptor>(), 120BoundProperties = new List<ParameterDescriptor>(),
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
51FilterDescriptors = new List<FilterDescriptor>(),
Infrastructure\ControllerActionInvokerTest.cs (27)
35FilterDescriptors = new List<FilterDescriptor>(), 36Parameters = new List<ParameterDescriptor>(), 37BoundProperties = new List<ParameterDescriptor>(), 76FilterDescriptors = new List<FilterDescriptor>(), 77Parameters = new List<ParameterDescriptor>(), 78BoundProperties = new List<ParameterDescriptor>(), 107FilterDescriptors = new List<FilterDescriptor>(), 108Parameters = new List<ParameterDescriptor>(), 109BoundProperties = new List<ParameterDescriptor>(), 150FilterDescriptors = new List<FilterDescriptor>(), 151Parameters = new List<ParameterDescriptor>(), 152BoundProperties = new List<ParameterDescriptor>(), 211var valueProviderFactories = new List<IValueProviderFactory>(); 242var valueProviderFactories = new List<IValueProviderFactory>(); 1386BoundProperties = new List<ParameterDescriptor>(), 1391Parameters = new List<ParameterDescriptor> 1400FilterDescriptors = new List<FilterDescriptor>() 1558FilterDescriptors = new List<FilterDescriptor>(), 1559Parameters = new List<ParameterDescriptor>(), 1560BoundProperties = new List<ParameterDescriptor>(), 1608FilterDescriptors = new List<FilterDescriptor>(), 1609Parameters = new List<ParameterDescriptor>(), 1610BoundProperties = new List<ParameterDescriptor>(), 1650FilterDescriptors = new List<FilterDescriptor>(), 1651Parameters = new List<ParameterDescriptor>(), 1652BoundProperties = new List<ParameterDescriptor>(), 1690valueProviderFactories = new List<IValueProviderFactory>();
Infrastructure\DefaultOutputFormatterSelectorTest.cs (9)
20var formatters = new List<IOutputFormatter> 50var formatters = new List<IOutputFormatter> 80var formatters = new List<IOutputFormatter> 150var formatters = new List<IOutputFormatter> 180var formatters = new List<IOutputFormatter> 209var formatters = new List<IOutputFormatter> 273var formatters = new List<IOutputFormatter> 302var formatters = new List<IOutputFormatter> 336var formatters = new List<IOutputFormatter>
ModelBinding\Binders\BodyModelBinderProviderTest.cs (1)
78var formatterList = new List<IInputFormatter> { formatter };
ModelBinding\Binders\BodyModelBinderTests.cs (8)
60var binder = CreateBinder(new List<IInputFormatter>()); 85var binder = CreateBinder(new List<IInputFormatter>()); 109var binder = CreateBinder(new List<IInputFormatter>()); 546var binder = CreateBinder(new List<IInputFormatter>()); 568var inputFormatters = new List<IInputFormatter>() 595var inputFormatters = new List<IInputFormatter>() 624var inputFormatters = new List<IInputFormatter>() 668var binder = new BodyModelBinder(new List<IInputFormatter>(), new TestHttpRequestStreamReaderFactory());
ModelBinding\Binders\CollectionModelBinderTest.cs (3)
107var list = new List<int>(); 159var list = new List<int>(); 360var list = new List<string>();
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (3)
1006var result = ModelBindingResult.Success(new List<string>() { "hi" }); 1391public IList<int> ReadOnlyList { get; } = new List<int>(); 1402public IList<int> SettableList { get; set; } = new List<int> { 3, 9, 0 };
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (3)
1168var result = ModelBindingResult.Success(new List<string>() { "hi" }); 1566public IList<int> ReadOnlyList { get; } = new List<int>(); 1577public IList<int> SettableList { get; set; } = new List<int> { 3, 9, 0 };
ModelBinding\Binders\HeaderModelBinderTests.cs (3)
116{ "10.50", typeof(IEnumerable<double>), new List<double>() { 10.50 } }, 121{ "", typeof(IEnumerable<string>), new List<string>() }, 122{ null, typeof(IEnumerable<string>), new List<string>() },
ModelBinding\Metadata\DefaultModelMetadataTest.cs (20)
512new List<string> { "Property1", "Property2", "Property3", "Property4", }, 513new List<string> { "Property1", "Property2", "Property3", "Property4", } 516new List<string> { "Property4", "Property3", "Property2", "Property1", }, 517new List<string> { "Property4", "Property3", "Property2", "Property1", } 520new List<string> { "Delta", "Bravo", "Charlie", "Alpha", }, 521new List<string> { "Delta", "Bravo", "Charlie", "Alpha", } 524new List<string> { "John", "Jonathan", "Jon", "Joan", }, 525new List<string> { "John", "Jonathan", "Jon", "Joan", } 541var expectedProperties = new List<DefaultModelMetadata>(); 580new List<KeyValuePair<string, int>> 587new List<string> { "Property1", "Property2", "Property3", "Property4", } 591new List<KeyValuePair<string, int>> 598new List<string> { "Property4", "Property3", "Property2", "Property1", } 602new List<KeyValuePair<string, int>> 609new List<string> { "Property4", "Property3", "Property2", "Property1", } 612new List<KeyValuePair<string, int>> 619new List<string> { "Charlie", "Bravo", "Delta", "Alpha", } 623new List<KeyValuePair<string, int>> 630new List<string> { "John", "Jonathan", "Jon", "Joan", } 646var expectedProperties = new List<DefaultModelMetadata>();
ModelBinding\Metadata\MetadataDetailsProviderExtensionsTest.cs (2)
12var list = new List<IMetadataDetailsProvider> 31var list = new List<IMetadataDetailsProvider>
ModelBinding\ModelBinderProviderExtensionsTest.cs (2)
12var list = new List<IModelBinderProvider> 31var list = new List<IModelBinderProvider>
ModelBinding\ModelBindingHelperTest.cs (2)
1552public IEnumerable<int> EnumerablePropertyWithListValue { get; } = new List<int> { 23 }; 1556public List<int> ListPropertyWithValue { get; } = new List<int> { 23 };
ModelBinding\ParameterBinderTest.cs (1)
833public IList<Person> Kids { get; } = new List<Person>();
ModelBinding\TestModelBinderProviderContext.cs (1)
20new List<Func<ModelMetadata, IModelBinder>>();
ModelBinding\UnsupportedContentTypeFilterTest.cs (4)
24new List<IFilterMetadata>(), 57new List<IFilterMetadata>(), 83new List<IFilterMetadata>(), 107new List<IFilterMetadata>(),
ModelBinding\Validation\CompositeModelValidatorProviderTest.cs (1)
38var validatorProviderContext = new ModelValidatorProviderContext(modelMetadata, new List<ValidatorItem>());
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (2)
14var model = new List<int>() { 2, 3, 5 }; 143var entries = new List<ValidationEntry>();
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (2)
63var metadata = TestModelMetadataProvider.CreateDefaultProvider(new List<IMetadataDetailsProvider> { new TestValidationModelNameProvider() }).GetMetadataForType(typeof(Person)); 188var entries = new List<ValidationEntry>();
ModelBinding\Validation\DefaultObjectValidatorTests.cs (9)
603.Returns(new List<ValidationResult>()); 652person.Family = new Family { Members = new List<Person> { person } }; 835var model = (object)new List<Person> { new Person(), new Person() }; 875{ new List<string> { "Foo", "Bar", "Baz" }, typeof(IList<string>)}, 878new List<DateTime> 1166var model = new List<ValidatedModel>() 1312var model = new List<ModelWithRequiredProperty> 1463var excludeFilters = new List<SuppressChildValidationMetadataProvider>(); 1635public List<string> Items { get; set; } = new List<string> { "Joe", "Fred", "Joe", "Herman" };
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (4)
14var model = new List<int>() { 2, 3, 5 }; 124var model = new List<int>() { 2, 3, 5 }; 154var model = new List<int>() { 2, 3, }; 203var entries = new List<ValidationEntry>();
ModelBinding\Validation\ModelValidatorProviderExtensionsTest.cs (2)
12var list = new List<IModelValidatorProvider> 31var list = new List<IModelValidatorProvider>
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (1)
140var entries = new List<ValidationEntry>();
ModelBinding\Validation\ValidationStackTest.cs (1)
68var models = new List<Model>();
ModelBinding\ValueProviderFactoryExtensionsTest.cs (2)
12var list = new List<IValueProviderFactory> 31var list = new List<IValueProviderFactory>
ResponseCacheAttributeTest.cs (1)
349filters?.ToList() ?? new List<IFilterMetadata>(),
Routing\ActionEndpointDataSourceBaseTest.cs (1)
24actions.Setup(m => m.ActionDescriptors).Returns(new ActionDescriptorCollection(new List<ActionDescriptor>
Routing\ActionEndpointFactoryTest.cs (8)
272var endpoints = new List<Endpoint>(); 378var endpoints = new List<Endpoint>(); 394return CreateConventionalRoutedEndpoint(action, new ConventionalRouteEntry(routeName: null, template, null, null, null, order: 0, new List<Action<EndpointBuilder>>(), new List<Action<EndpointBuilder>>())); 401var endpoints = new List<Endpoint>(); 427var endpoints = new List<Endpoint>(); 451conventions ??= new List<Action<EndpointBuilder>>(); 452finallyConventions ??= new List<Action<EndpointBuilder>>();
Routing\AttributeRouteTest.cs (14)
30var actions = new List<ActionDescriptor>() 116var actions = new List<ActionDescriptor>() 160var actions = new List<ActionDescriptor>() 204var actions = new List<ActionDescriptor>() 251var actions = new List<ActionDescriptor>() 319var actions = new List<ActionDescriptor>() 362var actions = new List<ActionDescriptor>() 405var actions = new List<ActionDescriptor>() 453var actions = new List<ActionDescriptor>() 513var actions = new List<ActionDescriptor>() 544var actions = new List<ActionDescriptor>() 600var actions = new List<ActionDescriptor>() 656var actions = new List<ActionDescriptor>() 712var actions = new List<ActionDescriptor>()
Routing\ControllerActionEndpointDataSourceTest.cs (8)
20var actions = new List<ActionDescriptor> 52var actions = new List<ActionDescriptor> 132var actions = new List<ActionDescriptor> 213var actions = new List<ActionDescriptor> 301var actions = new List<ActionDescriptor> 382var actions = new List<ActionDescriptor> 420var groupConventions = new List<Action<EndpointBuilder>>() 483var actions = new List<ActionDescriptor>
Routing\EndpointRoutingUrlHelperTest.cs (2)
192var endpoints = new List<RouteEndpoint>(); 262metadata = metadata ?? new List<object>();
Microsoft.AspNetCore.Mvc.Core.TestCommon (7)
TestModelMetadataProvider.cs (7)
27var detailsProviders = new List<IMetadataDetailsProvider> 46var detailsProviders = new List<IMetadataDetailsProvider>() 70var detailsProviders = new List<IMetadataDetailsProvider>(); 149public List<MetadataBuilder> Builders { get; } = new List<MetadataBuilder>(); 187private readonly List<Action<BindingMetadata>> _bindingActions = new List<Action<BindingMetadata>>(); 188private readonly List<Action<DisplayMetadata>> _displayActions = new List<Action<DisplayMetadata>>(); 189private readonly List<Action<ValidationMetadata>> _validationActions = new List<Action<ValidationMetadata>>();
Microsoft.AspNetCore.Mvc.Cors.Test (8)
CorsAuthorizationFilterTest.cs (3)
181new List<string> { "header1", "header2" }, 182new List<string> { "PUT" }, 183new List<string> { "exposed1", "exposed2" },
CorsHttpMethodActionConstraintTest.cs (2)
76var actionSelectorCandidate = new ActionSelectorCandidate(new ActionDescriptor(), new List<IActionConstraint> { constraint }); 78context.Candidates = new List<ActionSelectorCandidate> { actionSelectorCandidate };
DisableCorsAuthorizationFilterTest.cs (3)
25new List<IFilterMetadata>()); 44new List<IFilterMetadata>()); 66new List<IFilterMetadata>());
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.DataAnnotations.Test (15)
DataAnnotationsMetadataProviderTest.cs (14)
818var expectedKeyValuePairs = new List<KeyValuePair<EnumGroupAndName, string>> 867{ typeof(EmptyEnum), new List<KeyValuePair<EnumGroupAndName, string>>() }, 868{ typeof(EmptyEnum?), new List<KeyValuePair<EnumGroupAndName, string>>() }, 871new List<KeyValuePair<EnumGroupAndName, string>> 883new List<KeyValuePair<EnumGroupAndName, string>> 897new List<KeyValuePair<EnumGroupAndName, string>> 910new List<KeyValuePair<EnumGroupAndName, string>> 923new List<KeyValuePair<EnumGroupAndName, string>> 934new List<KeyValuePair<EnumGroupAndName, string>> 945new List<KeyValuePair<EnumGroupAndName, string>> 957new List<KeyValuePair<EnumGroupAndName, string>> 998var expectedKeyValuePairs = new List<KeyValuePair<EnumGroupAndName, string>> 1448attributes: new List<ValidationAttribute> 1463var expected = new List<object>
ValidatableObjectAdapterTest.cs (1)
189public IList<ValidationResult> ValidationResults { get; } = new List<ValidationResult>();
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.Formatters.Xml.Test (3)
EnumerableWrapperProviderFactoryTest.cs (1)
167var wrapperProviderFactories = new List<IWrapperProviderFactory>();
XmlDataContractSerializerOutputFormatterTest.cs (2)
483var parent = new Parent { Name = "Parent", Children = new List<Child> { child } }; 607var parent = new Parent { Name = sampleName, Children = new List<Child> { child } };
Microsoft.AspNetCore.Mvc.FunctionalTests (40)
AntiforgeryMiddlewareTest.cs (5)
42var nameValueCollection = new List<KeyValuePair<string, string>> 84var nameValueCollection = new List<KeyValuePair<string, string>> 126var nameValueCollection = new List<KeyValuePair<string, string>> 158var nameValueCollection = new List<KeyValuePair<string, string>> 190var nameValueCollection = new List<KeyValuePair<string, string>>
AntiforgeryTests.cs (3)
69var nameValueCollection = new List<KeyValuePair<string, string>> 119var nameValueCollection = new List<KeyValuePair<string, string>> 148var nameValueCollection = new List<KeyValuePair<string, string>>
ApiExplorerTest.cs (4)
1607public List<ApiExplorerParameterData> ParameterDescriptions { get; } = new List<ApiExplorerParameterData>(); 1611public List<ApiExplorerResponseType> SupportedResponseTypes { get; } = new List<ApiExplorerResponseType>(); 1613public List<ApiExplorerRequestFormat> SupportedRequestFormats { get; } = new List<ApiExplorerRequestFormat>(); 1646= new List<ApiExplorerResponseFormat>();
HtmlGenerationTest.cs (2)
325var nameValueCollection = new List<KeyValuePair<string, string>> 377var nameValueCollection = new List<KeyValuePair<string, string>>
InputObjectValidationTests.cs (1)
185var kvps = new List<KeyValuePair<string, string>>
RequestFormLimitsTest.cs (6)
40var kvps = new List<KeyValuePair<string, string>>(); 62var kvps = new List<KeyValuePair<string, string>>(); 85var kvps = new List<KeyValuePair<string, string>>(); 109var kvps = new List<KeyValuePair<string, string>>(); 134var kvps = new List<KeyValuePair<string, string>>(); 157var kvps = new List<KeyValuePair<string, string>>();
RequestSizeLimitTest.cs (2)
41var kvps = new List<KeyValuePair<string, string>>(); 63var kvps = new List<KeyValuePair<string, string>>();
TempDataInCookiesTest.cs (2)
117var nameValueCollection = new List<KeyValuePair<string, string>> 170var nameValueCollection = new List<KeyValuePair<string, string>>
TempDataInCookiesUsingCookieConsentTest.cs (2)
40var nameValueCollection = new List<KeyValuePair<string, string>> 73var nameValueCollection = new List<KeyValuePair<string, string>>
TempDataPropertyTest.cs (4)
36var nameValueCollection = new List<KeyValuePair<string, string>> 64var nameValueCollection = new List<KeyValuePair<string, string>> 92var nameValueCollection = new List<KeyValuePair<string, string>> 129var nameValueCollection = new List<KeyValuePair<string, string>>
TempDataTestBase.cs (7)
39var nameValueCollection = new List<KeyValuePair<string, string>> 70var nameValueCollection = new List<KeyValuePair<string, string>> 89var nameValueCollection = new List<KeyValuePair<string, string>> 120var nameValueCollection = new List<KeyValuePair<string, string>> 154var nameValueCollection = new List<KeyValuePair<string, string>> 185var nameValueCollection = new List<KeyValuePair<string, string>> 199var nameValueCollection = new List<KeyValuePair<string, string>>
TestingInfrastructureInheritanceTests.cs (1)
136public IList<string> ConfigureWebHostCalled { get; private set; } = new List<string>();
XmlDataContractSerializerInputFormatterTest.cs (1)
90var expectedErrorMessages = new List<string>();
Microsoft.AspNetCore.Mvc.IntegrationTests (36)
ActionParametersIntegrationTest.cs (2)
27Address = new List<Address>(); 1005: this(new List<T>())
CollectionModelBinderIntegrationTest.cs (9)
44Assert.Equal(new List<int>() { 10, 11 }, model); 92Assert.Equal(new List<int>() { 10, 11 }, model); 128Assert.Equal(new List<int> { 10, 11 }, model); 473Assert.Equal(new List<int>() { 10, 11 }, model); 936var expectedCollection = new List<string> { "hello", "world" }; 1234private readonly List<string> _data = new List<string>(); 1290private readonly List<string> _data = new List<string>(); 1374private readonly List<T> _data = new List<T>(); 1430private readonly List<T> _data = new List<T>();
ComplexRecordIntegrationTest.cs (2)
998Assert.Equal(new List<int>() { 10, 11 }, model.ProductIds); 1053Assert.Equal(new List<int>() { 10, 11 }, model.ProductIds);
ComplexTypeIntegrationTestBase.cs (2)
1011Assert.Equal(new List<int>() { 10, 11 }, model.ProductIds); 1066Assert.Equal(new List<int>() { 10, 11 }, model.ProductIds);
FormFileModelBindingIntegrationTest.cs (1)
552public List<IFormFile> ListProperty { get; } = new List<IFormFile>
GenericModelBinderIntegrationTest.cs (2)
534Assert.Equal(new List<int>() { 10, 11 }, kvp.Value); 582Assert.Equal(new List<int>() { 10, 11 }, kvp.Value);
HeaderModelBinderIntegrationTest.cs (1)
201public List<string> ListProperty { get; } = new List<string> { "One", "Two", "Three" };
TryUpdateModelIntegrationTest.cs (7)
115var model = new List<Person1> 257Address = new List<Address>(), 290Address = new List<Address>(); 715var model = new List<Person1> 852Address = new List<Address>(), 1053var model = new List<IFormFile> 1296: this(new List<T>())
TryValidateModelIntegrationTest.cs (1)
82var model = new List<ProductViewModel>();
ValidationIntegrationTests.cs (5)
44new List<ParameterDescriptor>() 61new List<ParameterDescriptor>() 89BoundProperties = new List<ParameterDescriptor>(), 131BoundProperties = new List<ParameterDescriptor>(), 2599public List<ModelMetadata> Visited = new();
ValidationWithRecordIntegrationTests.cs (4)
36new List<ParameterDescriptor>() 53new List<ParameterDescriptor>() 81BoundProperties = new List<ParameterDescriptor>(), 123BoundProperties = new List<ParameterDescriptor>(),
Microsoft.AspNetCore.Mvc.Localization.Test (1)
TestStringLocalizer.cs (1)
58var allStrings = new List<LocalizedString>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\Mvc\Mvc.Core\src\Infrastructure\AsyncEnumerableReader.cs (1)
82var result = new List<T>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (5)
BsonTempDataSerializerTest.cs (3)
21{ new List<TestItem>(), typeof(TestItem) }, 80{ new List<string> { "foo", "bar" } }, 233var value = new List<DateTime>
JsonPatchOperationsArrayProviderTests.cs (1)
34var actionDescriptorList = new List<ActionDescriptor>();
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (1)
288var value = new List<string> { "Hello", "world" };
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)
22public IList<IFileProvider> FileProviders { get; } = new List<IFileProvider>(); 31public IList<string> AdditionalReferencePaths { get; } = new List<string>();
RuntimeViewCompiler.cs (1)
238IList<IChangeToken> expirationTokens = new List<IChangeToken>
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
PageLoaderMatcherPolicyTest.cs (1)
89var metadata = new List<object>() { action, };
TestInfrastructure\DirectoryNode.cs (2)
19public List<DirectoryNode> Directories { get; } = new List<DirectoryNode>(); 21public List<FileNode> Files { get; } = new List<FileNode>();
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Compilation\DefaultViewCompilerTest.cs (1)
95var compiledViews = new List<CompiledViewDescriptor>
RazorViewTest.cs (1)
149var paths = new List<string>();
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.RazorPages.Test (57)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (12)
22ActionConstraints = new List<IActionConstraintMetadata>(), 24EndpointMetadata = new List<object>(), 25FilterDescriptors = new List<FilterDescriptor>(), 51ActionConstraints = new List<IActionConstraintMetadata>(), 53FilterDescriptors = new List<FilterDescriptor>(), 102ActionConstraints = new List<IActionConstraintMetadata>(), 104FilterDescriptors = new List<FilterDescriptor>(), 144ActionConstraints = new List<IActionConstraintMetadata>(), 146FilterDescriptors = new List<FilterDescriptor>(), 405ActionConstraints = new List<IActionConstraintMetadata>(), 407EndpointMetadata = new List<object> { metadata3, metadata4, }, 408FilterDescriptors = new List<FilterDescriptor>(),
ApplicationModels\CompiledPageRouteModelProviderTest.cs (1)
499public List<CompiledViewDescriptor> Descriptors { get; } = new List<CompiledViewDescriptor>();
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (15)
30HandlerMethods = new List<HandlerMethodDescriptor>() 77HandlerMethods = new List<HandlerMethodDescriptor>() 128HandlerMethods = new List<HandlerMethodDescriptor>() 173HandlerMethods = new List<HandlerMethodDescriptor>() 210HandlerMethods = new List<HandlerMethodDescriptor>() 252HandlerMethods = new List<HandlerMethodDescriptor>() 296HandlerMethods = new List<HandlerMethodDescriptor>() 346HandlerMethods = new List<HandlerMethodDescriptor>() 397HandlerMethods = new List<HandlerMethodDescriptor>() 447HandlerMethods = new List<HandlerMethodDescriptor>() 492HandlerMethods = new List<HandlerMethodDescriptor>() 543HandlerMethods = new List<HandlerMethodDescriptor>() 587HandlerMethods = new List<HandlerMethodDescriptor>() 642HandlerMethods = new List<HandlerMethodDescriptor>() 696HandlerMethods = new List<HandlerMethodDescriptor>()
Infrastructure\PageActionEndpointDataSourceTest.cs (9)
21var actions = new List<ActionDescriptor> 53var actions = new List<ActionDescriptor> 97var actions = new List<ActionDescriptor> 110EndpointMetadata = new List<object>() { "A" } 123EndpointMetadata = new List<object>() { "B" } 138var groupConventions = new List<Action<EndpointBuilder>>() 175var actions = new List<ActionDescriptor> 217var actions = new List<ActionDescriptor> 230EndpointMetadata = new List<object>() { "initial-metadata" }
Infrastructure\PageActionInvokerTest.cs (18)
97var valueProviderFactories = new List<IValueProviderFactory> 130var valueProviderFactories = new List<IValueProviderFactory> 1447HandlerMethods = new List<HandlerMethodDescriptor>(), 1451BoundProperties = new List<ParameterDescriptor>(), 1454var handlers = new List<PageHandlerExecutorDelegate>(); 1461Parameters = new List<HandlerParameterDescriptor>(), 1470Parameters = new List<HandlerParameterDescriptor>(), 1509ValueProviderFactories = valueProviderFactories?.ToList() ?? new List<IValueProviderFactory>(), 1510ViewStartFactories = new List<Func<IRazorPage>>(), 1586BoundProperties = new List<ParameterDescriptor>(), 1594Parameters = new List<HandlerParameterDescriptor>(), 1600Parameters = new List<HandlerParameterDescriptor>(), 1614BoundProperties = new List<ParameterDescriptor>(), 1622Parameters = new List<HandlerParameterDescriptor>(), 1628Parameters = new List<HandlerParameterDescriptor>(), 1642BoundProperties = new List<ParameterDescriptor>(), 1650Parameters = new List<HandlerParameterDescriptor>(), 1656Parameters = new List<HandlerParameterDescriptor>(),
Infrastructure\PageBinderFactoryTest.cs (1)
819public IList<ParameterDescriptor> Descriptors { get; } = new List<ParameterDescriptor>();
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (1)
24actions.Setup(m => m.ActionDescriptors).Returns(new ActionDescriptorCollection(new List<ActionDescriptor>
Microsoft.AspNetCore.Mvc.TagHelpers (4)
Cache\CacheTagKey.cs (1)
277var result = new List<KeyValuePair<string, string>>();
GlobbingUrlBuilder.cs (3)
120var trimmedIncludePatterns = new List<string>(); 133var trimmedExcludePatterns = new List<string>(); 153var matchedUrls = new List<string>();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (25)
CacheTagHelperTest.cs (6)
215tempEntry.Setup(e => e.ExpirationTokens).Returns(new List<IChangeToken>()); 216tempEntry.Setup(e => e.PostEvictionCallbacks).Returns(new List<PostEvictionCallbackRegistration>()); 219finalEntry.Setup(e => e.ExpirationTokens).Returns(new List<IChangeToken>()); 220finalEntry.Setup(e => e.PostEvictionCallbacks).Returns(new List<PostEvictionCallbackRegistration>()); 977public IList<IChangeToken> ExpirationTokens { get; } = new List<IChangeToken>(); 980new List<PostEvictionCallbackRegistration>();
DefaultFileVersionProviderTest.cs (1)
265var cacheEntry = Mock.Of<ICacheEntry>(c => c.ExpirationTokens == new List<IChangeToken>());
GlobbingUrlBuilderTest.cs (8)
250var expected = new List<string> { "/blank.css", "/site.css" }; 276value.Setup(c => c.ExpirationTokens).Returns(new List<IChangeToken>()); 365var includePatterns = new List<string>(); 366var excludePatterns = new List<string>(); 393var includePatterns = new List<string>(); 394var excludePatterns = new List<string>(); 414var cacheEntry = Mock.Of<ICacheEntry>(m => m.ExpirationTokens == new List<IChangeToken>()); 474var children = new List<IFileInfo>();
InputTagHelperTest.cs (1)
581var models = new List<Model>
LabelTagHelperTest.cs (1)
34var models = new List<Model>
RenderAtEndOfFormTagHelperTest.cs (2)
20new List<TagBuilder> 27new List<TagBuilder>
SelectTagHelperTest.cs (3)
39var models = new List<Model> 96var listItems = new List<SelectListItem>(); 157{ typeof(object), new List<string>(), true },
TagHelperLogger.cs (1)
10public List<LoggerData> Logged { get; } = new List<LoggerData>();
TextAreaTagHelperTest.cs (1)
35var models = new List<Model>
ValidationSummaryTagHelperTest.cs (1)
692private readonly List<Model> _fields = new List<Model>();
Microsoft.AspNetCore.Mvc.Test (24)
MvcServiceCollectionExtensionsTest.cs (1)
646var implementations = new List<Type>();
Routing\ActionConstraintMatcherPolicyTest.cs (23)
46ActionConstraints = new List<IActionConstraintMetadata>() 50Parameters = new List<ParameterDescriptor>(), 55Parameters = new List<ParameterDescriptor>(), 79ActionConstraints = new List<IActionConstraintMetadata>() 87ActionConstraints = new List<IActionConstraintMetadata>() 114ActionConstraints = new List<IActionConstraintMetadata>() 123ActionConstraints = new List<IActionConstraintMetadata>() 151ActionConstraints = new List<IActionConstraintMetadata>() 159ActionConstraints = new List<IActionConstraintMetadata>() 185ActionConstraints = new List<IActionConstraintMetadata>() 195ActionConstraints = new List<IActionConstraintMetadata>() 224ActionConstraints = new List<IActionConstraintMetadata>() 232ActionConstraints = new List<IActionConstraintMetadata>() 260ActionConstraints = new List<IActionConstraintMetadata>() 270ActionConstraints = new List<IActionConstraintMetadata>() 299ActionConstraints = new List<IActionConstraintMetadata>() 309ActionConstraints = new List<IActionConstraintMetadata>() 343ActionConstraints = new List<IActionConstraintMetadata>() 347EndpointMetadata = new List<object>() 383ActionConstraints = new List<IActionConstraintMetadata>() 390ActionConstraints = new List<IActionConstraintMetadata>() 419ActionConstraints = new List<IActionConstraintMetadata>() 473var metadata = new List<object>() { action, };
Microsoft.AspNetCore.Mvc.TestDiagnosticListener (1)
TestDiagnosticListener.cs (1)
445public List<object> PageInstrumentationData { get; set; } = new List<object>();
Microsoft.AspNetCore.Mvc.Testing (4)
DeferredHostBuilder.cs (1)
41var args = new List<string>();
WebApplicationFactory.cs (3)
32private readonly List<HttpClient> _clients = new(); 33private readonly List<WebApplicationFactory<TEntryPoint>> _derivedFactories = new(); 347var 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\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.Mvc.ViewFeatures.Test (89)
Buffers\PagedBufferedTextWriterTest.cs (2)
325public IList<char[]> Returned { get; } = new List<char[]>(); 340public IList<char[]> Returned { get; } = new List<char[]>();
Buffers\ViewBufferTest.cs (5)
252var nestedItems = new List<object>(); 257var destinationItems = new List<object>(); 275var nestedItems = new List<object>(); 280var destinationItems = new List<object>(); 474var pages = new List<ViewBufferPage>();
Buffers\ViewBufferTextWriterTest.cs (3)
65var expected = new List<object> { "False", newLine, "1.1", newLine, "3", newLine }; 84var expected = new List<object> { "False", newLine, "1.1", newLine, "3", newLine }; 162var pages = new List<ViewBufferPage>();
ControllerTest.cs (2)
397{ new List<int>(), typeof(List<int>) }, 398{ new List<string>(), typeof(List<string>) },
DefaultDisplayTemplatesTest.cs (1)
173var expectedProperties = new List<string>
DefaultEditorTemplatesTest.cs (1)
406var expectedProperties = new List<string>
DefaultHtmlGeneratorTest.cs (3)
100selectList: new List<SelectListItem>(), 127selectList: new List<SelectListItem>(), 1096public List<string> Collection { get; } = new List<string>();
ExpressionHelperTest.cs (4)
20var myModels = new List<TestModel>(); 21var models = new List<TestModel>(); 207var myModels = new List<TestModel>(); 439var collection = new List<TestModel>();
Filters\ControllerSaveTempDataPropertyFilterTest.cs (4)
45new List<IFilterMetadata>(), 91new List<IFilterMetadata>(), 134new List<IFilterMetadata>(), 173new List<IFilterMetadata>(),
Infrastructure\TempDataSerializerTestBase.cs (1)
288var value = new List<string> { "Hello", "world" };
MemberExpressionCacheKeyTest.cs (1)
78var members = new List<MemberInfo>();
Rendering\HtmlHelperDropDownListExtensionsTest.cs (8)
12private static readonly List<SelectListItem> BasicSelectList = new List<SelectListItem> 75var selectList = new List<SelectListItem> 100var selectList = new List<SelectListItem> 127var selectList = new List<SelectListItem> 175var selectList = new List<SelectListItem> 201var selectList = new List<SelectListItem> 209helper.ViewData.Model = new TestModel { Property3 = new List<string> { "0", "2", "4" } }; 227var selectList = new List<SelectListItem>
Rendering\HtmlHelperFormExtensionsTest.cs (6)
16private static readonly IEnumerable<string> _actionNames = new List<string> { null, "Details" }; 17private static readonly IEnumerable<string> _controllerNames = new List<string> { null, "Product" }; 18private static readonly IEnumerable<object> _htmlAttributes = new List<object> 24private static readonly IEnumerable<FormMethod> _methods = new List<FormMethod> 29private static readonly IEnumerable<string> _routeNames = new List<string> { null, "default" }; 30private static readonly IEnumerable<object> _routeValues = new List<object>
Rendering\HtmlHelperHiddenTest.cs (1)
995public List<string> Property6 { get; } = new List<string>();
Rendering\HtmlHelperListBoxExtensionsTest.cs (9)
12private static readonly List<SelectListItem> BasicSelectList = new List<SelectListItem> 51var selectList = new List<SelectListItem> 59helper.ViewData.Model = new TestModel { Property3 = new List<string> { "4" } }; 76var selectList = new List<SelectListItem> 84helper.ViewData["Property2"] = new List<string> { "1", "2", "5" }; 123var selectList = new List<SelectListItem> 131helper.ViewData.Model = new TestModel { Property3 = new List<string> { "0", "4", "5" } }; 148var selectList = new List<SelectListItem> 156helper.ViewData["Property3"] = new List<string> { "0", "2" };
Rendering\HtmlHelperNameExtensionsTest.cs (7)
18private static readonly List<string> _staticCollection = new List<string>(); 21private readonly List<string> _collection = new List<string>(); 23private readonly List<string[]> _nestedCollection = new List<string[]>(); 263var collection = new List<string>(); 264var nestedCollection = new List<string[]>(); 312var model = new List<OuterClass>(); 328var collection = new List<string>();
Rendering\HtmlHelperPasswordTest.cs (1)
545public List<string> Property6 { get; } = new List<string>();
Rendering\HtmlHelperSelectTest.cs (17)
27private static readonly List<SelectListItem> BasicSelectList = new List<SelectListItem> 34private static readonly List<SelectListItem> SomeDisabledOneSelectedSelectList = new List<SelectListItem> 41private static readonly List<SelectListItem> SomeGroupedSomeSelectedSelectList = new List<SelectListItem> 48private static readonly List<SelectListItem> OneGroupSomeSelectedSelectList = new List<SelectListItem> 55private static readonly List<SelectListItem> OneDisabledGroupAllSelectedSelectList = new List<SelectListItem> 62private static readonly List<SelectListItem> SourcesSelectList = new List<SelectListItem> 1214var model = new List<string> { "2" }; 1257var model = new List<string> { "2" }; 1412new List<SelectListItem> 1424new List<SelectListItem> 1436new List<SelectListItem> 1449new List<SelectListItem> 1462new List<SelectListItem> 1474new List<SelectListItem> 1596var copiedSelectListItems = new List<SelectListItem>(); 1636public List<SelectSources> Property1 { get; } = new List<SelectSources>(); 1716public List<string> Property1 { get; } = new List<string>();
Rendering\HtmlHelperTextAreaTest.cs (1)
157public List<string> Property6 { get; } = new List<string>();
Rendering\HtmlHelperTextBoxTest.cs (1)
175public List<string> Property6 { get; } = new List<string>();
SkipStatusCodePagesAttributeTest.cs (1)
47new List<IValueProviderFactory>());
ViewComponents\ViewComponentContextTest.cs (2)
71{ new List<int>(), typeof(List<int>) }, 72{ new List<string>(), typeof(List<string>) },
ViewDataDictionaryOfTModelTest.cs (3)
234{ new List<int>(), typeof(List<int>) }, 235{ new List<string>(), typeof(List<string>) }, 236{ new List<TestModel>(), typeof(List<TestModel>) },
ViewDataDictionaryTest.cs (5)
126{ new List<int>(), typeof(List<int>) }, 127{ new List<string>(), typeof(List<string>) }, 128{ new List<TestModel>(), typeof(List<TestModel>) }, 152var model = new List<TestModel>() 227{ typeof(List<string>), new List<string>() },
Microsoft.AspNetCore.Mvc.Views.TestCommon (2)
TestViewBufferScope.cs (2)
10public IList<ViewBufferValue[]> CreatedBuffers { get; } = new List<ViewBufferValue[]>(); 12public IList<ViewBufferValue[]> ReturnedBuffers { get; } = new List<ViewBufferValue[]>();
Microsoft.AspNetCore.OpenApi (5)
Schemas\OpenApiJsonSchema.Helpers.cs (1)
30var values = new List<T>();
Services\OpenApiGenerator.cs (2)
333var tags = new List<OpenApiTagReference>(); 369var openApiParameters = new List<OpenApiParameter>();
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.OpenApi.Tests (8)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (1)
77Parameters = new List<OpenApiParameter>() { new() { Schema = new() { Type = JsonSchemaType.Number } } }
Services\OpenApiDocumentServiceTestsBase.cs (2)
171DataSources = new List<EndpointDataSource>(); 195action.BoundProperties = new List<ParameterDescriptor>();
Transformers\SchemaTransformerTests.cs (5)
447builder.MapGet("/list", () => new List<int> { 1, 2, 3, 4 }); 524builder.MapGet("/list-of-todo", () => new List<Todo> { new Todo(1, "Item1", false, DateTime.Now) }); 525builder.MapGet("/list-of-int", () => new List<int> { 1, 2, 3, 4 }); 560builder.MapGet("/list", () => new List<Shape> { new Triangle { Hypotenuse = 12, Color = "blue", Sides = 3 }, new Square { Area = 24, Color = "red ", Sides = 4 } }); 642builder.MapGet("/list", () => new List<PolymorphicContainer>());
Microsoft.AspNetCore.OutputCaching (8)
OutputCacheMiddleware.cs (3)
222result = new(); 232result ??= new(); 240result ??= 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.OutputCaching.Tests (7)
CachedResponseBodyTests.cs (7)
17var segments = new List<byte[]>(); 27var segments = new List<byte[]>(); 28var receivedSegments = new List<byte[]>(); 46var segments = new List<byte[]> 50var receivedSegments = new List<byte[]>(); 69var segments = new List<byte[]> 74var receivedSegments = new List<byte[]>();
Microsoft.AspNetCore.Owin.Tests (3)
OwinExtensionTests.cs (3)
27var list = new List<CreateMiddleware>(); 56var list = new List<CreateMiddleware>(); 91var list = new List<CreateMiddleware>();
Microsoft.AspNetCore.RateLimiting (1)
DefaultCombinedLease.cs (1)
73exceptions ??= new List<Exception>();
Microsoft.AspNetCore.RateLimiting.Tests (5)
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
TestEndpointBuilder.cs (1)
24public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>();
TestPartitionedRateLimiter.cs (3)
15private readonly List<RateLimiter> _limiters = new List<RateLimiter>(); 40var leases = new List<RateLimitLease>(); 66var leases = new List<RateLimitLease>();
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.Razor.Runtime.Test (1)
Runtime\TagHelpers\TagHelperRunnerTest.cs (1)
93var processOrder = new List<int>();
Microsoft.AspNetCore.Razor.Test (4)
TagHelpers\DefaultTagHelperContentTest.cs (4)
108var items = new List<object>(); 134var items = new List<object>(); 157var items = new List<object>(); 184var items = new List<object>();
Microsoft.AspNetCore.ResponseCaching (1)
src\Shared\SegmentWriteStream.cs (1)
8private readonly List<byte[]> _segments = new();
Microsoft.AspNetCore.ResponseCaching.Tests (8)
CachedResponseBodyTests.cs (8)
17var segments = new List<byte[]>(); 26var segments = new List<byte[]>(); 35var segments = new List<byte[]>(); 36var receivedSegments = new List<byte[]>(); 53var segments = new List<byte[]> 57var receivedSegments = new List<byte[]>(); 75var segments = new List<byte[]> 80var receivedSegments = new List<byte[]>();
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.Rewrite.Tests (20)
ApacheModRewrite\RewriteTokenizerTest.cs (5)
16var expected = new List<string>(); 29var expected = new List<string>(); 42var expected = new List<string>(); 56var expected = new List<string>(); 70var expected = new List<string>();
ApacheModRewrite\RuleBuilderTest.cs (1)
29var pattern = new Pattern(new List<PatternSegment>());
ApacheModRewrite\TestStringParserTests.cs (8)
18var list = new List<PatternSegment>(); 30var list = new List<PatternSegment>(); 43var list = new List<PatternSegment>(); 55var list = new List<PatternSegment>(); 67var list = new List<PatternSegment>(); 80var list = new List<PatternSegment>(); 91var list = new List<PatternSegment>(); 104var list = new List<PatternSegment>();
IISUrlRewrite\FileParserTests.cs (3)
26var expected = new List<IISUrlRewriteRule>(); 59var expected = new List<IISUrlRewriteRule>(); 99var expected = new List<IISUrlRewriteRule>();
PatternSegments\ToLowerSegmentTests.cs (1)
17var pattern = new Pattern(new List<PatternSegment>());
PatternSegments\UrlDecodeSegmentTests.cs (1)
17var pattern = new Pattern(new List<PatternSegment>());
PatternSegments\UrlEncodeSegmentTests.cs (1)
17var pattern = new Pattern(new List<PatternSegment>());
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)
213edges.Add(host, new List<Endpoint>()); 280(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)
17private 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\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\Shared\PropertyHelper\PropertyHelper.cs (1)
502var propertyHelpers = new List<PropertyHelper>();
Microsoft.AspNetCore.Routing.FunctionalTests (12)
MinimalFormTests.cs (12)
55var nameValueCollection = new List<KeyValuePair<string, string>> 115var nameValueCollection = new List<KeyValuePair<string, string>> 161var nameValueCollection = new List<KeyValuePair<string, string>> 200var nameValueCollection = new List<KeyValuePair<string, string>> 277var nameValueCollection = new List<KeyValuePair<string, string>> 324var nameValueCollection = new List<KeyValuePair<string, string>> 420var nameValueCollection = new List<KeyValuePair<string, string>> 476var nameValueCollection = new List<KeyValuePair<string, string>> 535var nameValueCollection = new List<KeyValuePair<string, string>> 587var nameValueCollection = new List<KeyValuePair<string, string>> 639var nameValueCollection = new List<KeyValuePair<string, string>> 688var nameValueCollection = new List<KeyValuePair<string, string>>
Microsoft.AspNetCore.Routing.Microbenchmarks (11)
EndpointRoutingShortCircuitBenchmark.cs (1)
102public ICollection<EndpointDataSource> DataSources => new List<EndpointDataSource>();
LinkGeneration\LinkGenerationGithubBenchmark.generated.cs (1)
1505var metadata = new List<object>();
Matching\HttpMethodMatcherPolicyBenchmark.cs (1)
13private List<PolicyJumpTableEdge> _edges = new();
Matching\HttpMethodPolicyJumpTableBenchmark.cs (1)
33var destinations = new List<KeyValuePair<string, int>>
Matching\JumpTableMultipleEntryBenchmark.cs (1)
39var entries = new List<(string text, int _)>();
Matching\MatcherBuilderMultipleEntryBenchmark.cs (1)
41_policies = new List<MatcherPolicy>()
Matching\TrivialMatcherBuilder.cs (1)
8private readonly List<RouteEndpoint> _endpoints = new List<RouteEndpoint>();
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcherBuilder.cs (1)
11private readonly List<RouteEndpoint> _endpoints = new List<RouteEndpoint>();
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
22_endpoints = new List<RouteEndpoint>();
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
21_endpoints = new List<RouteEndpoint>();
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Routing.Tests (122)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (3)
175var matcherEndpointDataSources = new List<EndpointDataSource>(); 236var matcherEndpointDataSources = new List<EndpointDataSource>(); 306mockRouteBuilder.Setup(m => m.DataSources).Returns(new List<EndpointDataSource>());
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (2)
1110var contentTypes = new List<string>() 1131List<string> _contentTypes = new();
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (3)
254public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>(); 288_conventions = new(); 289_finallyConventions = new();
CompositeEndpointDataSourceTest.cs (2)
514public List<RouteGroupContext> ReceivedRouteGroupContexts { get; } = new(); 516public List<IReadOnlyList<Endpoint>> ResolvedGroupedEndpoints { get; } = new();
DecisionTreeBuilderTest.cs (6)
12var items = new List<Item>(); 26var items = new List<Item>(); 43var items = new List<Item>(); 84var items = new List<Item>(); 132var items = new List<Item>(); 165var items = new List<Item>();
DefaultEndpointDataSourceTests.cs (2)
57var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 75var endpoints = new List<Endpoint> { endpoint1, endpoint2 };
DefaultLinkGeneratorProcessTemplateTest.cs (4)
152values: new RouteValueDictionary(new { color = new List<string> { "red", "green", "blue" } }), 175values: new RouteValueDictionary(new { items = new List<int> { 10, 20, 30 } }), 198values: new RouteValueDictionary(new { color = new List<string> { } }), 221values: new RouteValueDictionary(new { page = 1, color = new List<string> { "red", "green", "blue" }, message = "textfortest" }),
EndpointRoutingMiddlewareTest.cs (3)
238var metadata = new List<object>(); 281var metadata = new List<object> { new RequestSizeLimitMetadata(100) }; 310var metadata = new List<object> { new RequestSizeLimitMetadata(100) };
LinkGeneratorIntegrationTest.cs (1)
17var endpoints = new List<Endpoint>()
Matching\AcceptsMatcherPolicyTest.cs (1)
600var metadata = new List<object>();
Matching\BarebonesMatcherBuilder.cs (1)
11private readonly List<RouteEndpoint> _endpoints = new List<RouteEndpoint>();
Matching\DataSourceDependentMatcherTest.cs (1)
240private List<RouteEndpoint> Endpoints { get; } = new List<RouteEndpoint>();
Matching\DfaMatcherTest.cs (29)
65var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 86var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 115var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 141var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 180var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 206var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 255var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 289var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 324var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 361var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 388var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 415var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 441var endpoints = new List<Endpoint> 467var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 493var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 520var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 546var endpoints = new List<Endpoint> 584var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 621var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 667var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 713var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 760var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 782var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 812var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 852var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 892var endpointDataSource = new DefaultEndpointDataSource(new List<Endpoint> 949var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 985var dataSource = new DefaultEndpointDataSource(new List<Endpoint> 1020var dataSource = new DefaultEndpointDataSource(new List<Endpoint>
Matching\EndpointComparerTest.cs (2)
200var list = new List<RouteEndpoint>() { endpoint7, endpoint6, endpoint5, endpoint4, endpoint3, endpoint2, endpoint1, }; 227var list = new List<RouteEndpoint>() { endpoint1, endpoint2, endpoint3 };
Matching\EndpointMetadataComparerTest.cs (1)
73var list = new List<Endpoint>() { endpoint2, endpoint1, };
Matching\HostMatcherPolicyIntegrationTestBase.cs (1)
407var metadata = new List<object>();
Matching\HostMatcherPolicyTest.cs (1)
260var metadata = new List<object>();
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (1)
389var metadata = new List<object>();
Matching\HttpMethodMatcherPolicyTest.cs (1)
390var metadata = new List<object>();
Matching\RouteMatcherBuilder.cs (1)
22_endpoints = new List<RouteEndpoint>();
Matching\TreeRouterMatcherBuilder.cs (1)
21_endpoints = new List<RouteEndpoint>();
RouteTest.cs (4)
686new { color = new List<string> { "red", "green", "blue" } }, 704new { items = new List<int> { 10, 20, 30 } }, 722new { color = new List<string> { } }, 740new { page = 1, color = new List<string> { "red", "green", "blue" }, message = "textfortest" },
RouteValuesAddressSchemeTest.cs (1)
435var metadata = new List<object>();
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
Template\TemplateParserTests.cs (18)
16var expected = new RouteTemplate(template, new List<TemplateSegment>()); 33var expected = new RouteTemplate(template, new List<TemplateSegment>()); 52var expected = new RouteTemplate(template, new List<TemplateSegment>()); 71var expected = new RouteTemplate(template, new List<TemplateSegment>()); 92var expected = new RouteTemplate(template, new List<TemplateSegment>()); 131var expected = new RouteTemplate(template, new List<TemplateSegment>()); 154var expected = new RouteTemplate(template, new List<TemplateSegment>()); 177var expected = new RouteTemplate(template, new List<TemplateSegment>()); 206var expected = new RouteTemplate(template, new List<TemplateSegment>()); 230var expected = new RouteTemplate(template, new List<TemplateSegment>()); 260var expected = new RouteTemplate(template, new List<TemplateSegment>()); 290var expected = new RouteTemplate(template, new List<TemplateSegment>()); 328var expected = new RouteTemplate(template, new List<TemplateSegment>()); 366var expected = new RouteTemplate(template, new List<TemplateSegment>()); 403var expected = new RouteTemplate(template, new List<TemplateSegment>()); 440var expected = new RouteTemplate(template, new List<TemplateSegment>()); 474var expected = new RouteTemplate(template, new List<TemplateSegment>()); 482inlineConstraints: new List<InlineConstraint> { c }));
TestObjects\DynamicEndpointDataSource.cs (1)
18_endpoints = new List<Endpoint>();
TestObjects\TestMatcherFactory.cs (1)
63var metadataList = new List<object>
Tree\LinkGenerationDecisionTreeTest.cs (29)
16var entries = new List<OutboundMatch>(); 36var entries = new List<OutboundMatch>(); 56var entries = new List<OutboundMatch>(); 76var entries = new List<OutboundMatch>(); 98var entries = new List<OutboundMatch>(); 122var entries = new List<OutboundMatch>(); 146var entries = new List<OutboundMatch>(); 166var entries = new List<OutboundMatch>(); 188var entries = new List<OutboundMatch>(); 213var entries = new List<OutboundMatch>(); 239var entries = new List<OutboundMatch>(); 264var entries = new List<OutboundMatch>(); 291var entries = new List<OutboundMatch>(); 317var entries = new List<OutboundMatch>(); 342var entries = new List<OutboundMatch>(); 370var entries = new List<OutboundMatch>(); 398var entries = new List<OutboundMatch>(); 426var entries = new List<OutboundMatch>(); 453var entries = new List<OutboundMatch>(); 481var entries = new List<OutboundMatch>(); 509var entries = new List<OutboundMatch>(); 536var entries = new List<OutboundMatch>(); 563var entries = new List<OutboundMatch>(); 588var entries = new List<OutboundMatch>(); 613var entries = new List<OutboundMatch>(); 640var entries = new List<OutboundMatch>(); 667var entries = new List<OutboundMatch>(); 692var entries = new List<OutboundMatch>(); 717var entries = new List<OutboundMatch>();
Microsoft.AspNetCore.Server.HttpSys (5)
AuthenticationManager.cs (1)
150IList<string> challenges = new List<string>();
RequestProcessing\RequestContext.FeatureCollection.cs (2)
71private List<Tuple<Func<object, Task>, object>>? _onStartingActions = new List<Tuple<Func<object, Task>, object>>(); 72private List<Tuple<Func<object, Task>, object>>? _onCompletedActions = new List<Tuple<Func<object, Task>, object>>();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
42_blockAccessExceptions = new List<Exception>();
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
ServerTests.cs (1)
264List<Task> requestTasks = new List<Task>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
RequestHeaderBenchmarks.cs (1)
125var result = new List<(string, string)>();
Microsoft.AspNetCore.Server.IIS (5)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
42_blockAccessExceptions = new List<Exception>();
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
src\Shared\RazorViews\BaseView.cs (1)
140AttributeValues = new List<string>();
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.IntegrationTesting.IIS (4)
IISDeployer.cs (2)
164var debugLogLocations = new List<string>(); 491exceptions = new List<Exception>();
IISDeploymentParameters.cs (2)
40public IList<Action<XElement, string>> WebConfigActionList { get; } = new List<Action<XElement, string>>(); 42public IList<Action<XElement, string>> ServerConfigActionList { get; } = new List<Action<XElement, string>>();
Microsoft.AspNetCore.Server.Kestrel.Core (34)
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)
742_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>(); 341var endpointsToStart = new List<ListenOptions>(); 342var endpointsToReuse = new List<ListenOptions>(); 390var matchingBoundEndpoints = new List<ListenOptions>(); 437var certificateConfigsToRemove = new List<CertificateConfig>(); 438var 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)
31var exceptions = new List<Exception>();
Middleware\HttpsConnectionMiddleware.cs (2)
359serverOptions.ApplicationProtocols = new List<SslApplicationProtocol>(); 545ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http3 },
src\Shared\CertificateGeneration\CertificateManager.cs (3)
88var certificates = new List<X509Certificate2>(); 649var extensions = new List<X509Extension>(); 888var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
700var nssDbs = new List<string>(); 720var nssDbs = new List<NssDb>(); 879var certs = new List<FileInfo>();
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (45)
AddressBinderTests.cs (1)
300var endpoints = new List<ListenOptions>();
CertificatePathWatcherTests.cs (8)
429watcher.UpdateWatches(new List<CertificateConfig> { }, new List<CertificateConfig> { certificateConfig1 }); 436watcher.UpdateWatches(new List<CertificateConfig> { certificateConfig1 }, new List<CertificateConfig> { }); 443watcher.UpdateWatches(new List<CertificateConfig> { }, new List<CertificateConfig> { certificateConfig1 }); 450new List<CertificateConfig> 457new List<CertificateConfig>
HeartbeatTests.cs (1)
32var splits = new List<TimeSpan>();
Http2\Http2HeadersEnumeratorTests.cs (1)
143var headers = new List<(int HPackStaticTableId, string Name, string Value)>();
Http2\Http2HPackEncoderTests.cs (1)
683var headers = new List<EncoderHeaderEntry>();
Http3\Http3HeadersEnumeratorTests.cs (1)
150var headers = new List<(int HPackStaticTableId, string Name, string Value)>();
HttpParserTests.cs (1)
945var segments = new List<byte[]>();
KestrelServerTests.cs (20)
322new List<IConnectionListenerFactory>(), 333new List<IConnectionListenerFactory>() { new ThrowingTransportFactory(), new MockTransportFactory() }, 347new List<IConnectionListenerFactory> { new NonBindableTransportFactory() }, 367new List<IConnectionListenerFactory> { transportFactory, new NonBindableTransportFactory() }, 388new List<IConnectionListenerFactory>(), 389new List<IMultiplexedConnectionListenerFactory> { new NonBindableMultiplexedTransportFactory() }); 412new List<IConnectionListenerFactory>(), 413new List<IMultiplexedConnectionListenerFactory> { transportFactory, new NonBindableMultiplexedTransportFactory() }); 438new List<IConnectionListenerFactory>() { mockTransportFactory }, 439new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 465new List<IConnectionListenerFactory>() { mockTransportFactory }, 466new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 496new List<IConnectionListenerFactory>() { mockTransportFactory }, 497new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 524new List<IConnectionListenerFactory>() { mockTransportFactory }, 525new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 803var mockTransports = new List<Mock<IConnectionListener>>(); 941var mockTransports = new List<Mock<IConnectionListener>>(); 990public List<BindDetail> BoundEndPoints { get; } = new List<BindDetail>(); 1042public List<BindDetail> BoundEndPoints { get; } = new List<BindDetail>();
SniOptionsSelectorTests.cs (1)
834ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
141_revocationList = new List<(byte[], DateTimeOffset)>();
src\Servers\Kestrel\shared\test\MockLogger.cs (1)
13private readonly List<string> _messages = new List<string>();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
26new List<(string, CertificateAuthority)>();
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (1)
55var unavailableEndpoints = new List<IPEndPoint>();
src\Servers\Kestrel\shared\test\StreamExtensions.cs (2)
52var data = new List<byte>(); 79var data = new List<byte>();
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
23public List<Type> IgnoredExceptions { get; } = new List<Type>();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
42_blockAccessExceptions = new List<Exception>();
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
src\Shared\test\Shared.Tests\runtime\Http2\DynamicTableTest.cs (1)
163List<HeaderField> headers = new List<HeaderField>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (5)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
1038public ICollection<KeyValuePair<string, object>> Tags { get; } = new List<KeyValuePair<string, object>>(); 1287_onClosed = new List<CloseAction>();
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
23public List<Type> IgnoredExceptions { get; } = new List<Type>();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
42_blockAccessExceptions = new List<Exception>();
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
42_blockAccessExceptions = new List<Exception>();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicStreamContext.FeatureCollection.cs (1)
111_onClosedRegistrations = new List<OnCloseRegistration>();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
42_blockAccessExceptions = new List<Exception>();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (17)
QuicConnectionContextTests.cs (3)
262var data = new List<byte>(); 579var streamTasks = new List<Task>(); 778private readonly List<(Action<object> Action, object State)> _actions = new List<(Action<object>, object)>();
QuicConnectionListenerTests.cs (7)
169ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 }, 173options.ApplicationProtocols = new List<SslApplicationProtocol>(); 236ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 }, 306ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 }, 339ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 }, 382ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 }, 434ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 },
QuicTestHelpers.cs (2)
85sslServerAuthenticationOptions.ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http3 }; 128ApplicationProtocols = new List<SslApplicationProtocol>
QuicTransportFactoryTests.cs (1)
65ApplicationProtocols = new List<SslApplicationProtocol>
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (1)
55var unavailableEndpoints = new List<IPEndPoint>();
src\Servers\Kestrel\shared\test\StreamExtensions.cs (2)
52var data = new List<byte>(); 79var data = new List<byte>();
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
23public List<Type> IgnoredExceptions { get; } = new List<Type>();
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Internal\SocketSender.cs (1)
83_bufferList = new List<ArraySegment<byte>>();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
42_blockAccessExceptions = new List<Exception>();
Microsoft.AspNetCore.Shared.Tests (17)
CopyOnWriteDictionaryTest.cs (3)
17var values = new List<object>(); 62var values = new List<object>(); 86var values = new List<object>();
ObjectMethodExecutorTest.cs (1)
590private List<Action> _onCompletedCallbacks = new List<Action>();
QueryStringEnumerableTest.cs (1)
117var result = new List<(string key, string value)>();
runtime\Http2\DynamicTableTest.cs (1)
163List<HeaderField> headers = new List<HeaderField>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
src\Shared\PropertyHelper\PropertyHelper.cs (1)
502var propertyHelpers = new List<PropertyHelper>();
src\Shared\SegmentWriteStream.cs (1)
8private readonly List<byte[]> _segments = new();
StackTraceHelperTest.cs (1)
156var expectedCallStack = new List<string>()
UrlDecoderTests.cs (1)
167return new List<object[]>()
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (2)
790streamIds = new List<string>(); 2046_invocationHandlers = new List<InvocationHandler>() { handler };
Internal\SerializedHubMessage.cs (1)
122_cachedItems = new List<SerializedMessage>();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (6)
HubConnectionTests.cs (4)
612var results = new List<int>(); 891var results = new List<int>(); 936var results = new List<int>(); 1463var hubException = await Assert.ThrowsAsync<HubException>(() => connection.InvokeAsync<int>("StreamEcho", new List<string> { "1", "2" }).DefaultTimeout());
HubConnectionTests.Tracing.cs (1)
405var results = new List<int>();
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
11 private readonly List<XElement> _storedElements = new List<XElement>();
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.Client.Tests (23)
HubClientProxyGeneratorTests.cs (2)
42public List<int> CallsOfSingleArg = new(); 48public List<(int, float, int?)> CallsOfManyArgs = new();
HubConnectionTests.Reconnect.cs (9)
115var retryContexts = new List<RetryContext>(); 216var retryContexts = new List<RetryContext>(); 311var retryContexts = new List<RetryContext>(); 391var retryContexts = new List<RetryContext>(); 489var retryContexts = new List<RetryContext>(); 745var retryContexts = new List<RetryContext>(); 852var retryContexts = new List<RetryContext>(); 985var retryContexts = new List<RetryContext>(); 1062var retryContexts = new List<RetryContext>();
HubServerProxyGeneratorTests.cs (3)
107.Returns(Task.FromResult((object)new List<int> { 10 })); 149var arg = new List<int>() { 20 }; 157.Returns(Task.FromResult((object)new List<int> { 10 }));
LongPollingTransportTests.cs (3)
404var sentRequests = new List<HttpRequestMessage>(); 457var sentRequests = new List<byte[]>(); 524var sentRequests = new List<byte[]>();
ResponseUtils.cs (1)
67var availableTransports = new List<object>();
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
TestConnection.cs (1)
184var results = new List<string>();
TestHttpMessageHandler.cs (2)
19private readonly List<HttpRequestMessage> _receivedRequests = new List<HttpRequestMessage>(); 23private readonly List<Func<RequestDelegate, RequestDelegate>> _middleware = new List<Func<RequestDelegate, RequestDelegate>>();
Microsoft.AspNetCore.SignalR.Common (2)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.SignalR.Common.Tests (4)
Internal\Formatters\BinaryMessageParserTests.cs (1)
99var messages = new List<byte[]>();
Internal\Protocol\MessagePackHubProtocolTests.cs (1)
19var result = Write(CompletionMessage.WithResult("0", new List<int> { 42 }.AsReadOnly()));
Internal\Protocol\Utf8BufferTextWriterTests.cs (2)
347private readonly List<Memory<byte>> _completedSegments = new List<Memory<byte>>(); 416var list = new List<Memory<byte>>();
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)
117_cachedItems = new List<SerializedMessage>();
Microsoft.AspNetCore.SignalR.Microbenchmarks (14)
DefaultHubLifetimeManagerBenchmark.cs (4)
26_connectionIds = new List<string>(); 27_subsetConnectionIds = new List<string>(); 28_groupNames = new List<string>(); 29_userIdentifiers = new List<string>();
HubConnectionContextBenchmark.cs (1)
51_supportedProtocols = new List<string> { "json" };
NegotiateProtocolBenchmark.cs (2)
28AvailableTransports = new List<AvailableTransport> 33TransferFormats = new List<string>
RedisHubLifetimeManagerBenchmark.cs (4)
23private readonly List<string> _excludedConnectionIds = new List<string>(); 24private readonly List<string> _sendIds = new List<string>(); 25private readonly List<string> _groups = new List<string>(); 26private readonly List<string> _users = new List<string>();
RedisProtocolBenchmark.cs (2)
31var resolver = new DefaultHubProtocolResolver(new List<IHubProtocol> { new DummyProtocol("protocol1"), 34_protocol = new RedisProtocol(new DefaultHubMessageSerializer(resolver, new List<string>() { "protocol1", "protocol2" }, hubSupportedProtocols: null));
Shared\TestPipeReader.cs (1)
14ReadResults = new List<ValueTask<ReadResult>>();
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\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\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.SignalR.Specification.Tests (5)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
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\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (17)
DefaultHubMessageSerializerTests.cs (10)
24var resolver = CreateHubProtocolResolver(new List<IHubProtocol> { new MessagePackHubProtocol(), new JsonHubProtocol() }); 29var allBytes = new List<byte>(); 44var resolver = CreateHubProtocolResolver(new List<IHubProtocol> { new MessagePackHubProtocol(), new JsonHubProtocol() }); 46var serializer = new DefaultHubMessageSerializer(resolver, new List<string>() { "json" }, new List<string>() { "messagepack" }); 51Assert.Equal(new List<byte>() { 0x0D, 71new List<IHubProtocol>() { new MessagePackHubProtocol() }, 83new List<IHubProtocol>() { new MessagePackHubProtocol(), new JsonHubProtocol() }, 100new List<IHubProtocol>() { new MessagePackHubProtocol(), new TestHubProtocol() }, 112new List<IHubProtocol>(),
RedisProtocolTests.cs (6)
38var protocol = new RedisProtocol(CreateHubMessageSerializer(new List<IHubProtocol>())); 50var protocol = new RedisProtocol(CreateHubMessageSerializer(new List<IHubProtocol>())); 70var protocol = new RedisProtocol(CreateHubMessageSerializer(new List<IHubProtocol>())); 86var protocol = new RedisProtocol(CreateHubMessageSerializer(new List<IHubProtocol>())); 177var protocol = new RedisProtocol(CreateHubMessageSerializer(new List<IHubProtocol>() { new DummyHubProtocol("p1"), new DummyHubProtocol("p2") })); 192var hubMessageSerializer = CreateHubMessageSerializer(new List<IHubProtocol>() { new DummyHubProtocol("p1"), new DummyHubProtocol("p2") });
TestConnectionMultiplexer.cs (1)
272_subscriptions.AddOrUpdate(messageQueue.Channel, _ => new List<(int, Action<RedisChannel, RedisValue>)> { (subscriberId, handler) }, (_, list) =>
Microsoft.AspNetCore.SignalR.Tests (28)
AddSignalRTests.cs (1)
35var hubOptions = new HubOptionsSetup(new List<IHubProtocol>());
ClientProxyTests.cs (5)
52var proxy = new MultipleUserProxy<FakeHub>(o.Object, new List<string>()); 94var proxy = new MultipleGroupProxy<FakeHub>(o.Object, new List<string>()); 115var proxy = new GroupExceptProxy<FakeHub>(o.Object, string.Empty, new List<string>()); 157var proxy = new AllClientsExceptProxy<FakeHub>(o.Object, new List<string>()); 199var proxy = new MultipleClientProxy<FakeHub>(o.Object, new List<string>());
DefaultHubLifetimeManagerTests.cs (5)
65var sendTask = manager.SendAllExceptAsync("Hello", new object[] { "World" }, new List<string> { connection1.ConnectionId }, cts.Token).DefaultTimeout(); 111var sendTask = manager.SendConnectionsAsync(new List<string> { connection1.ConnectionId }, "Hello", new object[] { "World" }, cts.Token).DefaultTimeout(); 161var sendTask = manager.SendGroupExceptAsync("group", "Hello", new object[] { "World" }, new List<string> { connection1.ConnectionId }, cts.Token).DefaultTimeout(); 186var sendTask = manager.SendGroupsAsync(new List<string> { "group" }, "Hello", new object[] { "World" }, cts.Token).DefaultTimeout(); 241var sendTask = manager.SendUsersAsync(new List<string> { "user1", "user2" }, "Hello", new object[] { "World" }, cts.Token).DefaultTimeout();
HubConnectionHandlerTests.cs (5)
1757var excludedConnectionIds = new List<string> { firstClient.Connection.ConnectionId }; 1853var groupNames = new List<string> { "GroupA", "GroupB" }; 2513o.SupportedProtocols = new List<string>(); 5440var result = new List<T>(); 5454var result = new List<T>();
HubConnectionHandlerTestUtils\Hubs.cs (3)
228var results = new List<object>(); 244var results = new List<object>(); 963private static readonly IEnumerable<Type> _knownTypes = new List<Type>()
Internal\DefaultHubProtocolResolverTests.cs (1)
48var supportedProtocols = new List<string> { protocol.Name };
Internal\MessageBufferTests.cs (1)
561var list = new List<Type>
Internal\TypedClientBuilderTests.cs (2)
344public IList<SendContext> Sends { get; } = new List<SendContext>(); 358public IList<SendContext> Sends { get; } = new List<SendContext>();
NativeAotTests.cs (4)
56var counterResults = new List<string>(); 70var echoResults = new List<string>(); 92var streamValueTypeResults = new List<int>(); 99var returnChannelValueTypeResults = new List<char>();
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
11 private readonly List<XElement> _storedElements = new List<XElement>();
Microsoft.AspNetCore.SignalR.Tests.Utils (8)
ChannelExtensions.cs (2)
12var list = new List<T>(); 44var items = new List<T>();
DummyHubProtocol.cs (1)
14private readonly List<HubMessage> _writtenMessages = new List<HubMessage>();
HubProtocolHelpers.cs (2)
14public static readonly List<string> AllProtocolNames = new List<string> 20public static readonly IList<IHubProtocol> AllProtocols = new List<IHubProtocol>()
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.SpaServices.Extensions.Tests (1)
ListLoggerFactory.cs (1)
69= new List<(LogLevel, EventId, string, object, Exception)>();
Microsoft.AspNetCore.StaticAssets (1)
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.Tests (7)
WebApplicationTests.cs (7)
178var urls = new List<string>(); 199var urls = new List<string>(); 218var urls = new List<string>(); 237var urls = new List<string>(); 257var urls = new List<string>(); 290var startOrder = new List<object>(); 363builder.Services.AddSingleton<IServer>(new MockAddressesServer(new List<string>().AsReadOnly()));
Microsoft.AspNetCore.WebSockets (1)
WebSocketOptions.cs (1)
19AllowedOrigins = new List<string>();
Microsoft.AspNetCore.WebSockets.ConformanceTests (6)
Autobahn\AutobahnSpec.cs (3)
12public IList<ServerSpec> Servers { get; } = new List<ServerSpec>(); 13public IList<string> Cases { get; } = new List<string>(); 14public IList<string> ExcludedCases { get; } = new List<string>();
Autobahn\AutobahnTester.cs (3)
15private readonly List<ApplicationDeployer> _deployers = new List<ApplicationDeployer>(); 16private readonly List<DeploymentResult> _deployments = new List<DeploymentResult>(); 17private readonly List<AutobahnExpectations> _expectations = new List<AutobahnExpectations>();
Microsoft.AspNetCore.WebUtilities (1)
PagedByteBuffer.cs (1)
19Pages = new List<byte[]>();
Microsoft.AspNetCore.WebUtilities.Tests (1)
HttpRequestStreamReaderTest.cs (1)
430var data = 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 (189)
BackEnd\BuildManager\CacheAggregator.cs (1)
18private readonly List<(IConfigCache ConfigCache, IResultsCache ResultsCache)> _inputCaches = new List<(IConfigCache ConfigCache, IResultsCache ResultsCache)>();
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (5)
135_requests = new List<BuildRequestEntry>(); 524var blockersToIssue = new List<BuildRequestBlocker>(); 527var requestsToIssue = new List<BuildRequest>(); 726var completedEntries = new List<BuildRequestEntry>(); 1131var existingResultsToReport = new List<BuildResult>();
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (3)
197_unresolvedConfigurationsToIssue ??= new List<BuildRequestConfiguration>(); 516_unresolvedConfigurations.Add(newRequest.ConfigurationId, new List<BuildRequest>()); 524_requestsToIssue ??= new List<BuildRequest>();
BackEnd\Components\Caching\ConfigCache.cs (1)
225List<int> configurationIdsCleared = new List<int>();
BackEnd\Components\Communications\LogMessagePacket.cs (1)
56targetOutputs = new List<TaskItem>();
BackEnd\Components\Communications\NodeManager.cs (2)
310return new List<NodeInfo>(); 316return new List<NodeInfo>();
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
88return new List<NodeInfo>();
BackEnd\Components\Logging\LoggingService.cs (5)
305_loggers = new List<ILogger>(); 306_loggerDescriptions = new List<LoggerDescription>(); 782List<string> loggerTypes = new List<string>(); 808List<string> eventSinkNames = new List<string>(); 948_loggers = new List<ILogger>();
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
741List<string> targets = buildResult.ResultsByTarget?.Keys.ToList() ?? new();
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
310var buckets = new List<ItemBucket>();
BackEnd\Components\RequestBuilder\IntrinsicTasks\CallTarget.cs (1)
32private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>();
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (3)
60List<string> parameterValues = new List<string>(); 391List<ProjectItemInstance> items = new List<ProjectItemInstance>(); 596List<ProjectItemInstance> itemsRemoved = new List<ProjectItemInstance>();
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (5)
54private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>(); 412var projectsToBuildList = new List<ITaskItem>(); 455var expandedProperties = new List<string>(); 456var expandedTargets = new List<string>(); 501var targetLists = new List<string[]>();
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
54List<string> parameterValues = new List<string>();
BackEnd\Components\RequestBuilder\ItemBucket.cs (1)
97_lookup.PopulateWithItems(name, new List<ProjectItemInstance>());
BackEnd\Components\RequestBuilder\Lookup.cs (2)
219errorMessages = new List<string>(); 666var deduplicatedItemsToAdd = new List<ProjectItemInstance>();
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
246List<TargetSpecification> targetToPush = new List<TargetSpecification>(); 829circularDependenceChain = new List<string>();
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
401return new List<TargetSpecification>(); 405List<TargetSpecification> dependencyTargets = new List<TargetSpecification>(); 632List<TaskItem> targetOutputItemsList = new(); 911List<string> batchableTargetParameters = new List<string>();
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (5)
884List<string> itemSpecs = new(); 928commonKeys = new List<K>(); 929uniqueKeysInH1 = new List<K>(); 930uniqueKeysInH2 = new List<K>(); 1247private readonly List<DependencyAnalysisLogDetail> _dependencyAnalysisDetail = new List<DependencyAnalysisLogDetail>();
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
244return new List<string>();
BackEnd\Components\Scheduler\Scheduler.cs (4)
306List<ScheduleResponse> responses = new List<ScheduleResponse>(); 379List<ScheduleResponse> responses = new List<ScheduleResponse>(); 511List<ScheduleResponse> responses = new List<ScheduleResponse>(); 615List<ScheduleResponse> responses = new List<ScheduleResponse>();
BackEnd\Components\Scheduler\SchedulingData.cs (1)
616List<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>(); 50new List<SdkResolver> { new DefaultSdkResolver() } 51: new List<SdkResolver>(); 107List<SdkResolverManifest> manifestsList = new List<SdkResolverManifest>(); 258var resolvers = new List<SdkResolver>();
BackEnd\Components\SdkResolution\SdkResolverService.cs (7)
178List<SdkResolverManifest> matchingResolversManifests = new(); 265List<SdkResolver> resolvers = new List<SdkResolver>(); 302List<SdkResult> results = new List<SdkResult>(); 419specificResolversManifestsRegistry = new List<SdkResolverManifest>(); 420generalResolversManifestsRegistry = new List<SdkResolverManifest>(); 495var specificResolversManifestsRegistry = new List<SdkResolverManifest>(); 496var generalResolversManifestsRegistry = new List<SdkResolverManifest>();
BackEnd\Shared\BuildRequestConfiguration.cs (1)
189_transferredProperties = new List<ProjectPropertyInstance>();
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
291_remotedTaskItems = new List<TaskItem>();
BuildCheck\Acquisition\BuildCheckAcquisitionModule.cs (1)
32var checksFactories = new List<CheckFactory>();
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
23public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (1)
266checksToRemove = checksToRemove ?? new List<CheckWrapper>();
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (3)
75_checkRegistry = new List<CheckFactoryContext>(); 202List<CheckFactoryContext> invalidChecksToRemove = new(); 325List<CheckFactoryContext> invalidChecksToRemove = new();
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (1)
111var numberRangePairs = new List<(int minValue, int maxValue)>();
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
34var editorConfigDataFromFilesList = new List<EditorConfigFile>();
Collections\CopyOnReadEnumerable.cs (1)
77list = new List<TResult>();
Collections\MultiDictionary.cs (1)
248var list = new List<TT> { (TT)_entry, value };
Collections\PropertyDictionary.cs (1)
554List<TResult> result = new();
Collections\WeakValueDictionary.cs (2)
64var keys = new List<K>(); 212remove ??= new List<K>();
Construction\ProjectElementContainer.cs (1)
817List<T> list = new();
Construction\ProjectRootElement.cs (1)
1878var nodes = new List<ProjectImportElement>();
Construction\ProjectTaskElement.cs (2)
178var parameterLocations = new List<KeyValuePair<string, ElementLocation>>(); 378toRemove ??= new List<XmlAttribute>();
Construction\Solution\ProjectInSolution.cs (2)
125_dependencies = new List<string>(); 246internal List<string> ProjectReferences { get; } = new List<string>();
Construction\Solution\SolutionFile.cs (5)
146internal List<string> SolutionParserWarnings { get; } = new List<string>(); 151internal List<string> SolutionParserComments { get; } = new List<string>(); 156internal List<string> SolutionParserErrorCodes { get; } = new List<string>(); 349_projectsInOrder = new List<ProjectInSolution>(); 754_projectsInOrder = new List<ProjectInSolution>();
Construction\Solution\SolutionProjectGenerator.cs (1)
2418new List<ProjectPropertyGroupTaskPropertyInstance> { property }));
Definition\Project.cs (12)
1679var relevantItems = new List<ProjectItem>(); 2525return new List<GlobResult>(); 2567return new List<GlobResult>(); 2723return new List<ProvenanceResult>(); 2778return new List<ProvenanceResult>(); 3400var relevantItems = new List<ProjectItem>(); 4275ImportClosure = new List<ResolvedImport>(); 4276ImportClosureWithDuplicates = new List<ResolvedImport>(); 4277AllEvaluatedProperties = new List<ProjectProperty>(); 4278AllEvaluatedItemDefinitionMetadata = new List<ProjectMetadata>(); 4279AllEvaluatedItems = new List<ProjectItem>(); 4280EvaluatedItemElements = new List<ProjectItemElement>();
Definition\ProjectCollection.cs (2)
2472var projects = new List<Project>(); 2542projectList = new List<Project>();
Definition\ProjectImportPathMatch.cs (1)
23public static readonly ProjectImportPathMatch None = new ProjectImportPathMatch(string.Empty, new List<string>());
Definition\Toolset.cs (2)
489List<string> additionalSubToolsetNames = new List<string>(); 902List<ProjectPropertyInstance> reservedProperties = new List<ProjectPropertyInstance>();
Evaluation\Conditionals\Parser.cs (1)
292var arglist = new List<GenericExpressionNode>();
Evaluation\ConditionEvaluator.cs (1)
88conditionedPropertyValues = new List<string>();
Evaluation\Evaluator.cs (15)
245_itemGroupElements = new List<ProjectItemGroupElement>(); 246_itemDefinitionGroupElements = new List<ProjectItemDefinitionGroupElement>(); 247_usingTaskElements = new List<KeyValuePair<string, ProjectUsingTaskElement>>(); 248_targetElements = new List<ProjectTargetElement>(); 250_initialTargetsList = new List<string>(); 272_streamImports = new List<string>(); 367List<I> items = new List<I>(); 502List<ProjectItemGroupTaskMetadataInstance> metadata = itemElement.Metadata.Count > 0 ? new List<ProjectItemGroupTaskMetadataInstance>() : null; 550List<ProjectOnErrorInstance> targetOnErrorChildren = new List<ProjectOnErrorInstance>(); 1068beforeTargetsForTarget = new List<TargetSpecification>(); 1091afterTargetsForTarget = new List<TargetSpecification>(); 1569var allProjects = new List<ProjectRootElement>(); 1846projectList ??= new List<ProjectRootElement>(); 1856projectList ??= new List<ProjectRootElement>(); 2167imports ??= new List<ProjectRootElement>();
Evaluation\Expander.cs (3)
573List<T> result = new List<T>(); 833List<string> arguments = new List<string>(); 2023itemsFromCapture = new List<KeyValuePair<string, S>>();
Evaluation\ExpressionShredder.cs (3)
177transformExpressions = new List<ItemExpressionCapture>(); 190transformExpressions = new List<ItemExpressionCapture>(); 248subExpressions = new List<ItemExpressionCapture>();
Evaluation\IntrinsicFunctions.cs (1)
738return 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)
122list = new List<ProjectRootElement>(); 146_implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument] = new List<ResolvedImport>();
FileMatcher.cs (5)
908files ??= new List<string>(); 940newSearchesToExclude = new List<RecursionState>(); 965newSearchesToExclude ??= new(); 2413searchesToExclude = new List<RecursionState>(); 2487listForSubdir = new List<RecursionState>();
Graph\GraphBuilder.cs (5)
214projectsByPath[projectPath] = new List<ProjectGraphNode> { project.Value.GraphNode }; 410var entryPointConfigurationMetadata = new List<ConfigurationMetadata>(); 480FormatCircularDependencyError(new List<string> { node.ProjectInstance.FullPath, node.ProjectInstance.FullPath }); 489var projectsInCycle = new List<string> { referenceNode.ProjectInstance.FullPath }; 575var referenceInfos = new List<ProjectInterpretation.ReferenceInfo>();
Graph\ProjectGraph.cs (1)
752var entriesToUpdate = new List<KeyValuePair<ProjectGraphNode, ImmutableList<string>>>();
Instance\ProjectInstance.cs (9)
548this.InitialTargets = new List<string>(); 549this.DefaultTargets = new List<string>(); 558this.EvaluatedItemElements = new List<ProjectItemElement>(); 2833new ObjectModel.ReadOnlyCollection<ProjectTargetInstanceChild>(new List<ProjectTargetInstanceChild>()), 2834new ObjectModel.ReadOnlyCollection<ProjectOnErrorInstance>(new List<ProjectOnErrorInstance>()), 2963clearedVariables = new List<DictionaryEntry>(); 3094_importPaths = new List<string>(); 3096_importPathsIncludingDuplicates = new List<string>(); 3104this.EvaluatedItemElements = new List<ProjectItemElement>();
Instance\ProjectItemInstance.cs (2)
722inheritedItemDefinitions ??= new List<ProjectItemDefinitionInstance>(); 2099itemDefinitionsClone ??= new List<ProjectItemDefinitionInstance>();
Instance\ProjectTaskInstance.cs (1)
141new List<ProjectTaskInstanceChild>(),
Instance\TaskRegistry.cs (2)
706registeredTaskEntries = new List<RegisteredTaskRecord>(); 741List<RegisteredTaskRecord> unqualifiedTaskNameMatches = new();
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)[]>(); 1560list = new List<DictionaryEntry>(); 1581list = new List<DictionaryEntry>();
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
858private readonly List<object> reusableItemsList = new List<object>(); 859private readonly List<object> reusableProjectItemList = new List<object>();
Logging\ParallelLogger\ParallelConsoleLogger.cs (4)
190errorList = new List<BuildErrorEventArgs>(); 191warningList = new List<BuildWarningEventArgs>(); 455errorWarningEventListByTarget = new List<BuildEventArgs>(); 1162messageList = new List<BuildMessageEventArgs>();
Logging\ParallelLogger\ParallelLoggerHelpers.cs (2)
96List<ProjectStartedEventMinimumFields> stackTrace = new List<ProjectStartedEventMinimumFields>(); 143List<string> stackTrace = new List<string>();
Logging\SerialConsoleLogger.cs (2)
76errorList = new List<BuildErrorEventArgs>(); 77warningList = new List<BuildWarningEventArgs>();
LogMessagePacketBase.cs (3)
1106reusablePropertyList = new List<KeyValuePair<string, string>>(); 1136reusableItemList = new List<(string itemType, object item)>(); 1174reusablePropertyList = new List<KeyValuePair<string, string>>();
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
147List<XmlAttributeLink> result = new List<XmlAttributeLink>();
PropertyParser.cs (2)
90var finalPropertiesList = new List<PropertyNameValuePair>(); 211Value = new List<string>
SolutionConfiguration.cs (1)
95list = new List<string>();
TaskParameter.cs (1)
793List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
Utilities\EngineFileUtilities.cs (1)
575List<Regex> regexes = new List<Regex>();
VersionUtilities.cs (1)
53versionValues.Add(candidateVersion, new List<string>() { version });
WindowsFileSystem.cs (1)
96var enumeration = new List<string>();
Microsoft.Build.BuildCheck.UnitTests (31)
BuildCheckManagerProviderTests.cs (3)
88? new List<CheckFactory>() { () => new CheckRuleMock("Rule1"), () => new CheckRuleMock("Rule2") } 89: new List<CheckFactory>(); 108public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
EditorConfigParser_Tests.cs (2)
19var configs = new List<EditorConfigFile>(){ 39var configs = new List<EditorConfigFile>(){
EndToEndTests.cs (14)
539PrepareSampleProjectsAndConfig(buildInOutOfProcessNode, out TransientTestFile projectFile, new List<(string, string)>() { ("BC0101", "warning") }); 575PrepareSampleProjectsAndConfig(buildInOutOfProcessNode, out TransientTestFile projectFile, new List<(string, string)>() { ("BC0101", BC0101Severity) }); 629PrepareSampleProjectsAndConfig(true, out TransientTestFile projectFile, new List<(string, string)>() { ("BC0101", BC0101Severity) }); 664new List<(string, string)>() { ("X01234", severity) }, 665new List<(string, (string, string))> 689PrepareSampleProjectsAndConfig(buildInOutOfProcessNode, out TransientTestFile projectFile, new List<(string, string)>() { ("BC0101", "warning") }); 733customConfigData = new List<(string, (string, string))>() 742new List<(string, string)>() { ("BC0103", "error") }, 770customConfigData = new List<(string, (string, string))>() 778new List<(string, string)>() { ("BC0103", "error") }, 803new List<(string, string)>() { ("BC0103", "warning") }); 875new List<(string, string)>() { (ruleId, severity) }, 904new List<(string, string)>() { (ruleId, "warning") }, 926PrepareSampleProjectsAndConfig(buildInOutOfProcessNode, out TransientTestFile projectFile, new List<(string, string)>() { ("BC0101", "warning") });
MockBuildCheckRegistrationContext.cs (1)
16public List<BuildCheckResult> Results { get; } = new();
ParsedItemsAnalysisDataTests.cs (4)
26var items = new List<ProjectItemElement>() 34var itemsHolder = new ItemsHolder(items, new List<ProjectItemGroupElement>()); 39itemsA.ShouldBeSameIgnoringOrder(new List<ProjectItemElement>() { el3, el5 }); 40itemsB.ShouldBeSameIgnoringOrder(new List<ProjectItemElement>() { el1, el2, el4 });
TaskInvocationAnalysisDataTests.cs (1)
47public List<TaskInvocationCheckData> CheckData = new();
TestAssets\CustomCheck\Check1.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\CustomCheck\Check2.cs (1)
21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\CustomCheck2\Check3.cs (1)
21public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorOnInitializeCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorOnRegisteredAction.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
TestAssets\ErrorCustomCheck\ErrorWhenRegisteringActions.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
Microsoft.Build.CommandLine.UnitTests (49)
CommandLineSwitches_Tests.cs (9)
603MSBuildApp.GatherCommandLineSwitches(new List<string>() { "/targets:targets.txt" }, switches); 613MSBuildApp.GatherCommandLineSwitches(new List<string>() { "/targets /targets" }, switches); 691MSBuildApp.GatherCommandLineSwitches(new List<string> { "/graph", "/graph:true; NoBuild ;; ;", "/graph:foo" }, switches); 703MSBuildApp.GatherCommandLineSwitches(new List<string> { "/graph" }, switches); 715MSBuildApp.GatherCommandLineSwitches(new List<string>() { "/irc", "/irc:a;b", "/irc:c;d" }, switches); 727MSBuildApp.GatherCommandLineSwitches(new List<string>() { "/orc:a" }, switches); 739MSBuildApp.GatherCommandLineSwitches(new List<string>() { "/orc:a", "/orc:b" }, switches); 1390MSBuildApp.GatherCommandLineSwitches(new List<string>() { "validProject.csproj", "%ENVIRONMENTVARIABLE%" }, commandLineSwitches, fullCommandLine); 1395MSBuildApp.GatherCommandLineSwitches(new List<string>() { "%ENVIRONMENTVARIABLE%", "validProject.csproj" }, commandLineSwitches, fullCommandLine);
TerminalLogger_Tests.cs (2)
136return new ProjectStartedEventArgs("", "", projectFile, targetNames, new Dictionary<string, string>(), new List<DictionaryEntry>()) 645List<MockStopwatch> stopwatches = new();
VersionUtilities.cs (1)
53versionValues.Add(candidateVersion, new List<string>() { version });
XMake_Tests.cs (37)
54var arguments = new List<string>(); 69var arguments = new List<string> { 86var arguments = new List<string>(); 103var arguments = new List<string>(); 123var arguments = new List<string>(); 538List<string> cmdLine = new() 582List<string> cmdLine = new() 1941_directoryFileNameList = new List<string>(); 1957List<string> fileNamesToReturn = new List<string>(); 2037List<DistributedLoggerRecord> distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2039var loggers = new List<ILogger>(); 2056List<DistributedLoggerRecord> distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2058var loggers = new List<ILogger>(); 2075List<DistributedLoggerRecord> distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2077var loggers = new List<ILogger>(); 2086distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2088loggers = new List<ILogger>(); 2097distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2099loggers = new List<ILogger>(); 2117List<DistributedLoggerRecord> distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2119var loggers = new List<ILogger>(); 2129distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2131loggers = new List<ILogger>(); 2142distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2144loggers = new List<ILogger>(); 2155distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2157loggers = new List<ILogger>(); 2168distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2170loggers = new List<ILogger>(); 2180distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2181loggers = new List<ILogger>(); 2191loggers = new List<ILogger>(); 2192distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2209List<DistributedLoggerRecord> distributedLoggerRecords = new List<DistributedLoggerRecord>(); 2211var loggers = new List<ILogger>(); 2225var loggers = new List<ILogger>(); 2227List<DistributedLoggerRecord> distributedLoggerRecords = new List<DistributedLoggerRecord>();
Microsoft.Build.Engine.OM.UnitTests (102)
Construction\ConstructionEditing_Tests.cs (6)
2385Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item1, item2 }); 2408Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item2, item1 }); 2431Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item2, item1 }); 2454Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item1, item2 }); 2477Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item1, item2 }); 2501Helpers.AssertListsValueEqual(allChildren, new List<ProjectElement> { item1, item2 });
Definition\DefinitionEditing_Tests.cs (3)
206List<KeyValuePair<string, string>> metadata = new List<KeyValuePair<string, string>>(); 1971List<KeyValuePair<string, string>> metadata = new List<KeyValuePair<string, string>>(); 2130List<KeyValuePair<string, string>> metadata = new List<KeyValuePair<string, string>>();
Definition\Project_Tests.cs (68)
1725List<string> filePaths = new List<string>(); 2076bool result = project.Build(new string[] { "nonexistent" }, new List<ILogger>() { logger }); 2293List<ProjectItem> list = new List<ProjectItem>() { project.GetItems("i").FirstOrDefault(), project.GetItems("j").FirstOrDefault() }; 2366project.RemoveItems(new List<ProjectItem>() { null }); 2406project.RemoveItems(new List<ProjectItem>() { item }); 2407project.RemoveItems(new List<ProjectItem>() { item }); 2437List<ILogger> loggers = new List<ILogger>(); 2461List<ILogger> loggers = new List<ILogger>(); 2531List<ILogger> loggers = new List<ILogger>(); 2671var expected = new ProvenanceResultTupleList(); 2719var expected = new ProvenanceResultTupleList(); 2737var expected = new ProvenanceResultTupleList 2757var expected = new ProvenanceResultTupleList(); 2773var expected = new ProvenanceResultTupleList 2780AssertProvenanceResult(new ProvenanceResultTupleList(), project, "a/2.foo"); 2796var expected = new ProvenanceResultTupleList 2817var expected = new ProvenanceResultTupleList 2824expected = new ProvenanceResultTupleList 2836var expected = new ProvenanceResultTupleList(); 2871var expected = new ProvenanceResultTupleList 2904var expected = new ProvenanceResultTupleList 2923var expected = new ProvenanceResultTupleList(); 2941var expected = new ProvenanceResultTupleList 2964var expected = new ProvenanceResultTupleList 2971AssertProvenanceResult(new ProvenanceResultTupleList(), project, "1.foo", "NotExistent"); 2989new ProvenanceResultTupleList() 3009new ProvenanceResultTupleList() 3026new ProvenanceResultTupleList() 3057new ProvenanceResultTupleList 3091var expected = new ProvenanceResultTupleList 3117var expected = new ProvenanceResultTupleList 3143var expected = new ProvenanceResultTupleList 3171var expected = new ProvenanceResultTupleList 3191var expected = new ProvenanceResultTupleList(); 3207var expected = new ProvenanceResultTupleList(); 3225var expected = new ProvenanceResultTupleList(); 3242var expected1Foo = new ProvenanceResultTupleList 3256var expected2Foo = new ProvenanceResultTupleList 3262AssertProvenanceResult(new ProvenanceResultTupleList(), project.GetItemProvenance(@"../x/d13/../x/d12/d23/../2.foo")); 3286var expectedProvenance = new ProvenanceResultTupleList 3310var expected = new ProvenanceResultTupleList(); 3332var expected = new ProvenanceResultTupleList(); 3348var expected = new ProvenanceResultTupleList 3377new ProvenanceResultTupleList 3389new ProvenanceResultTupleList() 3396new ProvenanceResultTupleList 3408new ProvenanceResultTupleList() 3415new ProvenanceResultTupleList() 3422new ProvenanceResultTupleList() 3429new ProvenanceResultTupleList 3441new ProvenanceResultTupleList() 3448new ProvenanceResultTupleList() 3455new ProvenanceResultTupleList 3467new ProvenanceResultTupleList 3479new ProvenanceResultTupleList 3514var expected = new ProvenanceResultTupleList 3544var expected = new ProvenanceResultTupleList 3581? new ProvenanceResultTupleList 3585: new ProvenanceResultTupleList(); 3601var expected = new GlobResultList(); 3618var expected = new GlobResultList(); 3636var expected = new GlobResultList(); 3656var expected = new GlobResultList 3679var expected = new GlobResultList 3796var expected = new GlobResultList 3802AssertGlobResult(new GlobResultList(), project, "NotExistent"); 3819var expected = new GlobResultList 3847var expected = new GlobResultList
Definition\ProjectItemDefinition_Tests.cs (2)
218List<ILogger> loggers = new List<ILogger>() { logger }; 456List<ILogger> loggers = new List<ILogger>() { l };
Instance\ProjectInstance_Tests.cs (3)
128var metadata = new List<KeyValuePair<string, string>>(); 715Helpers.VerifyAssertThrowsInvalidOperation(delegate () { instance.AddItem("a", "b", new List<KeyValuePair<string, string>>()); }); 781Helpers.VerifyAssertThrowsInvalidOperation(delegate () { Helpers.GetFirst(instance.Items).SetMetadata(new List<KeyValuePair<string, string>>()); });
ObjectModelRemoting\Helpers\TestCollectionGroup.cs (2)
233List<string> stdFiles = new List<string>(); 253var toUnload = new List<Project>();
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (3)
148var viewResult = new List<CT>(); 149var realResult = new List<CT>(); 150var finalResult = new List<ElementLinkPair<CT>>();
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (2)
71List<KeyValuePair<string, string>> itemMetadata = new List<KeyValuePair<string, string>>() 700List<KeyValuePair<string, string>> itemMetadata = new List<KeyValuePair<string, string>>()
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (3)
120List<KeyValuePair<string, string>> testMedatada = new List<KeyValuePair<string, string>>() 181var toRemoveView = new List<ProjectItem>() { barWithMetadataView, fooWithMetadataView }; 219var toRemoveReal = new List<ProjectItem>() { fooRealFast, barRealFast };
ObjectModelRemoting\RemoteProjectsProviderMock\CollectionsHelpers.cs (5)
21List<A> result = new List<A>(); 38List<T> result = new List<T>(); 57List<T> result = new List<T>(); 75List<MockProjectElementLinkRemoter> result = new List<MockProjectElementLinkRemoter>(); 93List<RMock> result = new List<RMock>();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
49private static List<ElementInfo> canonicalTypes = new List<ElementInfo>()
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (3)
346List<Project> result = new List<Project>(); 361List<MockProjectLinkRemoter> remoted = new List<MockProjectLinkRemoter>(); 408private List<ProjectCollectionLinker> group = new List<ProjectCollectionLinker>();
WindowsFileSystem.cs (1)
96var enumeration = new List<string>();
Microsoft.Build.Engine.UnitTests (256)
AssemblyNameEx_Tests.cs (1)
662List<AssemblyNameExtension> assemblies = new List<AssemblyNameExtension>();
BackEnd\BatchingEngine_Tests.cs (10)
29List<string> parameters = new List<string>(); 36IList<ProjectItemInstance> items = new List<ProjectItemInstance>(); 44items = new List<ProjectItemInstance>(); 127List<string> parameters = new List<string>(); 133List<ProjectItemInstance> items = new List<ProjectItemInstance>(); 164List<string> parameters = new List<string>(); 170List<ProjectItemInstance> items = new List<ProjectItemInstance>(); 200List<string> parameters = new List<string>(); 226List<string> parameters = new List<string>(); 231List<ProjectItemInstance> items = new List<ProjectItemInstance>();
BackEnd\BinaryTranslator_Tests.cs (1)
151HelperTestList(new List<string>(), StringComparer.Ordinal);
BackEnd\BuildManager_Tests.cs (4)
365Loggers = new List<ILogger> { new MockLogger(_output) } 500{"ItemWithMetadata", new List<string> {"Metadatum1"}}, 502PropertyFilters = new List<string> { "NewProperty", "RequestedProperty" }, 4040Loggers = new List<ILogger>()
BackEnd\BuildRequestEngine_Tests.cs (1)
68NewRequests = new List<FullyQualifiedBuildRequest[]>();
BackEnd\BuildResult_Tests.cs (2)
320result.InitialTargets = new List<string> { "a", "b" }; 321result.DefaultTargets = new List<string> { "c", "d" };
BackEnd\CacheAggregator_Tests.cs (11)
82var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 103var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 108var buildResult2 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 132var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 154var buildResult11 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 162var buildResult21 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.Invalid, null)); 198var buildResult = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 217var buildResult11 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "a", "b" }, null, BuildEventContext.Invalid, null)); 219var buildResult12 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "c", "d" }, null, BuildEventContext.Invalid, null)); 229var buildResult21 = new BuildResult(new BuildRequest(1, 2, configurationId: 1, new List<string>() { "e", "f" }, null, BuildEventContext.Invalid, null)); 231var buildResult22 = new BuildResult(new BuildRequest(1, 2, configurationId: 2, new List<string>() { "g", "h" }, null, BuildEventContext.Invalid, null));
BackEnd\CacheSerialization_Tests.cs (1)
84return new List<object[]>
BackEnd\ConfigCache_Tests.cs (2)
49brq3.ProjectDefaultTargets = new List<string> { "target3" }; 50brq3.ProjectInitialTargets = new List<string> { "targetInitial" };
BackEnd\EventSourceSink_Tests.cs (1)
94List<Exception> exceptionList = new List<Exception>();
BackEnd\EventSourceTestHelper.cs (2)
40emittedEvents = new List<EventWrittenEventArgs>(); 77var resultList = new List<EventWrittenEventArgs>();
BackEnd\IntrinsicTask_Tests.cs (1)
3925List<ProjectItemInstance> items = new List<ProjectItemInstance>();
BackEnd\LoggingService_Tests.cs (3)
515_initializedService.InitializeNodeLoggers(new List<LoggerDescription>(), new EventSourceSink(), 3); 533List<LoggerDescription> tempList = new List<LoggerDescription>(); 548List<LoggerDescription> loggerDescriptions = new List<LoggerDescription>();
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
1494List<TaskItem> outputs = new List<TaskItem>();
BackEnd\Lookup_Tests.cs (11)
781ICollection<ProjectItemInstance> group = new List<ProjectItemInstance>(); 836ICollection<ProjectItemInstance> group = new List<ProjectItemInstance>(); 876ICollection<ProjectItemInstance> group = new List<ProjectItemInstance>(); 921group = new List<ProjectItemInstance>(); 982ICollection<ProjectItemInstance> group = new List<ProjectItemInstance>(); 1039ICollection<ProjectItemInstance> group = new List<ProjectItemInstance>(); 1051ICollection<ProjectItemInstance> group3 = new List<ProjectItemInstance>(); 1090List<ProjectItemInstance> group = new List<ProjectItemInstance>(); 1102List<ProjectItemInstance> group3 = new List<ProjectItemInstance>(); 1143List<ProjectItemInstance> group = new List<ProjectItemInstance>(); 1180List<ProjectItemInstance> group = new List<ProjectItemInstance>();
BackEnd\MockTaskBuilder.cs (2)
72ErrorTasks = new List<ProjectOnErrorInstance>(); 73ExecutedTasks = new List<ProjectTaskInstance>();
BackEnd\MSBuild_Tests.cs (1)
1558using ProjectCollection pc = new ProjectCollection(null, new List<ILogger> { logger }, null, ToolsetDefinitionLocations.Default, 2, false);
BackEnd\NodePackets_Tests.cs (1)
251List<TaskItem> targetOutputs = new List<TaskItem>();
BackEnd\ResultsCache_Tests.cs (6)
186ResultsCacheResponse response = cache.SatisfyRequest(request, new List<string>(), new List<string>(new string[] { "testTarget2" }), skippedResultsDoNotCauseCacheMiss: false); 240new List<string>(), 246new List<string>(), 252new List<string>(), 321new List<string>(), 327new List<string>(),
BackEnd\Scheduler_Tests.cs (3)
735BuildRequestConfiguration config = new(configId, data, "4.0") { ProjectInitialTargets = new List<string>(), ProjectDefaultTargets = new List<string>() }; 857List<NodeInfo> nodeInfos = new List<NodeInfo>();
BackEnd\SdkResolverLoader_Tests.cs (3)
130FindPotentialSdkResolversFunc = (rootFolder, loc) => new List<string> 162FindPotentialSdkResolversFunc = (rootFolder, loc) => new List<string> 194FindPotentialSdkResolversFunc = (rootFolder, loc) => new List<string>
BackEnd\SdkResolverService_Tests.cs (17)
88new List<SdkResolver> 362new List<SdkResolver> 447service.InitializeForTests(null, new List<SdkResolver>() { resolver }); 484service.InitializeForTests(null, new List<SdkResolver>() { resolver }); 531service.InitializeForTests(null, new List<SdkResolver>() { resolver }); 537var resultPaths = new List<string>(); 577service.InitializeForTests(null, new List<SdkResolver>() { resolver }); 583var resultPaths = new List<string>(); 617new List<SdkResolver> 645resolvers: new List<SdkResolver> 677resolvers: new List<SdkResolver> 725List<SdkResolverManifest> manifests = new List<SdkResolverManifest>(); 769_resolvers = new List<SdkResolver> 777_defaultResolvers = new List<SdkResolver>(); 779_resolversWithPatterns = new List<(string ResolvableSdkPattern, SdkResolver Resolver)>(); 793var manifests = new List<SdkResolverManifest>(); 814var resolvers = new List<SdkResolver>();
BackEnd\SdkResultOutOfProc_Tests.cs (2)
270sdkService.InitializeForTests(null, new List<SdkResolver> { sdkResolver }); 276resolverService.InitializeForTests(null, new List<SdkResolver> { sdkResolver });
BackEnd\TargetEntry_Tests.cs (3)
730List<ITaskItem> outputListB = new List<ITaskItem>(); 741List<ITaskItem> outputListC = new List<ITaskItem>(); 853List<ILogger> loggers = new List<ILogger>();
BackEnd\TargetUpToDateChecker_Tests.cs (8)
182List<ProjectItemInstance> items = new List<ProjectItemInstance>(); 224List<ProjectItemInstance> items = new List<ProjectItemInstance>(); 271List<ProjectItemInstance> items = new List<ProjectItemInstance>(); 574List<string> filesToDelete = new List<string>(); 873List<string> inputs = new List<string>(); 874List<string> outputs = new List<string>(); 1020var inputs = new List<string>(); 1021var outputs = new List<string>();
BackEnd\TaskBuilder_Tests.cs (10)
81List<ILogger> loggers = new List<ILogger>(); 134List<ILogger> loggers = new List<ILogger>(); 240List<ILogger> loggers = new List<ILogger>(); 293List<ILogger> loggers = new List<ILogger>(); 364List<ILogger> loggers = new List<ILogger>(); 414List<ILogger> loggers = new List<ILogger>(); 480List<ILogger> loggers = new List<ILogger>(); 504List<ILogger> loggers = new List<ILogger>(); 535List<ILogger> loggers = new List<ILogger>(); 566List<ILogger> loggers = new List<ILogger>();
BackEnd\TaskHost_Tests.cs (1)
75BuildRequest buildRequest = new BuildRequest(1 /* submissionId */, 1, 1, new List<string>(), null, BuildEventContext.Invalid, null);
BackEnd\TaskRegistry_Tests.cs (42)
104List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 138List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 180List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 245List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 284List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 312List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 353List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 389List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 425List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 463List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 501List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 568List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 609List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 697List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 770List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 822List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 936List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 984List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 1046List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 1109List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 1162List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 1213List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 1237List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 1262List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 1294List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 1664List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 1727List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 1751List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 1860new List<ProjectUsingTaskElement>(), 1903{"a", new ProjectImportPathMatch("a", new List<string> {"b", "c"}) }, 1904{"d", new ProjectImportPathMatch("d", new List<string> {"e", "f"}) } 1913new List<ProjectUsingTaskElement>() 1931new List<ProjectUsingTaskElement>() 1948new List<ProjectUsingTaskElement>() 1966new List<ProjectUsingTaskElement>() 2136List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 2154List<ProjectUsingTaskElement> elementList = new List<ProjectUsingTaskElement>(); 2214List<ProjectItemInstance> intermediateAssemblyItemGroup = new List<ProjectItemInstance>(); 2223List<ProjectItemInstance> firstItemGroup = new List<ProjectItemInstance>(); 2230List<ProjectItemInstance> secondItemGroup = new List<ProjectItemInstance>(); 2237List<ProjectItemInstance> thirdItemGroup = new List<ProjectItemInstance>(); 2241List<ProjectItemInstance> trueItemGroup = new List<ProjectItemInstance>();
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (2)
73private List<TKey> _keys = new List<TKey>(); 74private List<TValue> _values = new List<TValue>();
BuildEnvironmentHelper_Tests.cs (1)
510private readonly List<VisualStudioInstance> _mockInstances = new List<VisualStudioInstance>();
BuildEventArgsDataEnumeration.cs (3)
30Properties = new List<object>() 58Items = new List<DictionaryEntry>() 96Items = new List<DictionaryEntry>()
BuildEventArgsSerialization_Tests.cs (11)
121var entryPointProjects = new List<string>() 127var targetNames = new List<string>() 160properties: new List<DictionaryEntry>() { new DictionaryEntry("Key", "Value") }, 161items: new List<DictionaryEntry>() { new DictionaryEntry("Key", new MyTaskItem() { ItemSpec = "TestItemSpec" }) }, 229new List<ITaskItem> { new MyTaskItem() }); 770Properties = new List<DictionaryEntry>() { new DictionaryEntry("Key", "Value") }, 771Items = new List<DictionaryEntry>() { new DictionaryEntry("Key", new MyTaskItem() { ItemSpec = "TestItemSpec" }) } 1008List<BinaryLogReaderErrorEventArgs> readerErrors = new(); 1063List<BinaryLogReaderErrorEventArgs> readerErrors = new(); 1119List<BinaryLogReaderErrorEventArgs> readerErrors = new(); 1175List<BinaryLogReaderErrorEventArgs> readerErrors = new();
Collections\OMcollections_tests.cs (3)
124List<ProjectItemInstance> list = new List<ProjectItemInstance>(); 158list = new List<ProjectItemInstance>(); 296var backing = new List<string>();
ConfigureableForwardingLogger_Tests.cs (1)
39ForwardedEvents = new List<BuildEventArgs>();
ConsoleLogger_Tests.cs (1)
158List<ILogger> loggerList = new List<ILogger>();
Construction\SolutionFilter_Tests.cs (1)
148instances[0].Build(targets: null, new List<ILogger> { logger }).ShouldBeTrue();
Construction\SolutionProjectGenerator_Tests.cs (7)
82instances[0].Build(targets: null, new List<ILogger> { logger }).ShouldBeTrue(); 2353ProjectInstance[] instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "One" }); 2357instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "Two", "Three", "Four" }); 2363instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "Build" }); 2367instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "Five", "Rebuild" }); 2372instances = SolutionProjectGenerator.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "My_Project:Six" }); 2618projectInstance.Build(targetsToBuild, new List<ILogger> { mockLogger })
Definition\ItemDataCollectionValue_Tests.cs (1)
21List<int> result = new List<int>();
Definition\ItemDefinitionGroup_Tests.cs (3)
599List<ProjectItemDefinitionInstance> itemdefs = new List<ProjectItemDefinitionInstance>(); 635List<ProjectItemDefinitionInstance> itemdefs = new List<ProjectItemDefinitionInstance>(); 677List<ProjectItemDefinitionInstance> itemdefs = new List<ProjectItemDefinitionInstance>();
Definition\ProjectEvaluationContext_Tests.cs (2)
54sdkService.InitializeForTests(null, new List<SdkResolver> { resolver }); 988var projects = new List<Project>();
Definition\Toolset_Tests.cs (1)
111["MSBuildExtensionsPath"] = new ProjectImportPathMatch("MSBuildExtensionsPath", new List<string> { @"c:\foo" })
Definition\ToolsVersion_Tests.cs (2)
257List<string> sortedTasksExpectedPaths = new List<string>(); 258List<string> sortedOverrideExpectedPaths = new List<string>();
EscapingInProjects_Tests.cs (1)
1821List<ProjectItem> matchingItems = new List<ProjectItem>();
Evaluation\EvaluationLogging_Tests.cs (1)
145AdditionalHandlers = new List<Action<object, BuildEventArgs>>
Evaluation\Evaluator_Tests.cs (4)
2344List<ILogger> loggerList = new List<ILogger>(); 2369List<ILogger> loggerList = new List<ILogger>(); 2393List<ILogger> loggerList = new List<ILogger>(); 4731globalProperties, new List<ILogger> { logger }, ToolsetDefinitionLocations.Default);
Evaluation\Expander_Tests.cs (10)
85List<ProjectItemInstance> ig = new List<ProjectItemInstance>(); 89List<ProjectItemInstance> ig2 = new List<ProjectItemInstance>(); 1368List<ProjectItemInstance> intermediateAssemblyItemGroup = new List<ProjectItemInstance>(); 1378List<ProjectItemInstance> contentItemGroup = new List<ProjectItemInstance>(); 1383List<ProjectItemInstance> resourceItemGroup = new List<ProjectItemInstance>(); 1391List<ProjectItemInstance> contentItemGroup2 = new List<ProjectItemInstance>(); 1580var itemGroup = new List<ProjectItemInstance>(); 3915List<ProjectItemInstance> ig = new List<ProjectItemInstance>(); 4089var validTests = new List<string[]> { 4146var errorTests = new List<string> {
Evaluation\ExpressionShredder_Tests.cs (3)
454List<string> list = new List<string>(); 474List<string> messages = new List<string>(); 523List<string> messages = new List<string>();
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
183IList<string> sdkNames = new List<string>
FileMatcher_Tests.cs (5)
523var inputs = new List<Tuple<string, string, bool>> 1293files = FileMatcher.Default.GetFiles(testProject.TestRoot, "**/*.cs", new List<string> { "a.cs" }).FileList; 1297files = FileMatcher.Default.GetFiles(testProject.TestRoot, "**/*.cs", new List<string> { "a.cs", "c.cs" }).FileList; 1368new List<string> { driveEnumeratingWildcard }); 1408new List<string> { driveEnumeratingWildcard });
Graph\ParallelWorkSet_Tests.cs (8)
20internal List<WorkItem> WorkItemsToAdd { get; set; } = new List<WorkItem>(); 42WorkItemsToAdd = new List<WorkItem> 70WorkItemsToAdd = new List<WorkItem> 113WorkItemsToAdd = new List<WorkItem> 145WorkItemsToAdd = new List<WorkItem> 177WorkItemsToAdd = new List<WorkItem> 210WorkItemsToAdd = new List<WorkItem> 241List<Exception> observedExceptions = new();
Graph\ProjectGraph_Tests.cs (6)
308var projectsInCycle = new List<string> { entryProject.Path, proj3.Path, proj2.Path, entryProject.Path }; 342var projectsInCycle = new List<string> { proj2.Path, proj3.Path, proj7.Path, proj6.Path, proj2.Path }; 1115IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" }); 1156IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" }); 1190IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" }); 1362IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" });
Graph\ResultCacheBasedBuilds_Tests.cs (1)
494var expectedOutputForNode = new List<string>();
Instance\ProjectInstance_Internal_Tests.cs (1)
582List<ILogger> loggers = new List<ILogger>();
Instance\ProjectItemGroupTaskItemInstance_Internal_Tests.cs (2)
25new List<ProjectItemGroupTaskMetadataInstance>() 30new List<ProjectItemGroupTaskMetadataInstance>
Instance\ProjectTaskInstance_Internal_Tests.cs (3)
33new List<ProjectTaskInstanceChild>() 42new List<ProjectTaskInstanceChild> 55new List<ProjectTaskInstanceChild>
Instance\TaskItem_Tests.cs (1)
210List<ProjectItemDefinitionInstance> itemDefinitions = new();
InternalEngineHelpers.cs (2)
31sdkService.InitializeForTests(null, new List<SdkResolver>() { resolver }); 93List<string> pathList = new List<string>();
PrintLineDebugger_Tests.cs (1)
23public readonly List<string> Logs = new List<string>();
ProjectCache\ProjectCacheTests.cs (3)
1478var buildResultTasks = new List<Task<BuildResult>>(); 1620var buildRequests = new List<(string, string)>(); 1624var buildTasks = new List<Task<BuildResult>>();
SolutionFileBuilder.cs (2)
63_dependencies = new List<ProjectInfo>(); 64_dependencyGuids = new List<string>();
TestData\ProjectInstanceTestObjects.cs (6)
18items ??= new List<ProjectItemGroupTaskItemInstance>(); 30metadata ??= new List<ProjectItemGroupTaskMetadataInstance>(); 73properties ??= new List<ProjectPropertyGroupTaskPropertyInstance>(); 118outputs ??= new List<ProjectTaskInstanceChild>(); 168children ??= new System.Collections.ObjectModel.ReadOnlyCollection<ProjectTargetInstanceChild>(new List<ProjectTargetInstanceChild>()); 169errorChildren ??= new System.Collections.ObjectModel.ReadOnlyCollection<ProjectOnErrorInstance>(new List<ProjectOnErrorInstance>());
Utilities_Tests.cs (1)
313List<Toolset> toolsets = new List<Toolset>();
WarningsAsMessagesAndErrors_Tests.cs (4)
99customProperties: new List<KeyValuePair<string, string>> 115customProperties: new List<KeyValuePair<string, string>> 185customProperties: new List<KeyValuePair<string, string>> 201customProperties: new List<KeyValuePair<string, string>>
Microsoft.Build.Framework (20)
BuildEngineResult.cs (1)
38this.targetOutputsPerProject = new List<IDictionary<string, ITaskItem[]>>();
NativeMethods.cs (1)
1448List<KeyValuePair<int, SafeProcessHandle>> myChildren = new List<KeyValuePair<int, SafeProcessHandle>>();
TaskParameterEventArgs.cs (1)
238reusableMetadataList = new List<KeyValuePair<string, string>>();
VisualStudioLocationHelper.cs (1)
33var validInstances = new List<VisualStudioInstance>();
XamlTypes\BaseProperty.cs (3)
49Metadata = new List<NameValuePair>(); 50Arguments = new List<Argument>(); 51ValueEditors = new List<ValueEditor>();
XamlTypes\ContentType.cs (1)
30this.Metadata = new List<NameValuePair>();
XamlTypes\DynamicEnumProperty.cs (1)
28ProviderSettings = new List<NameValuePair>();
XamlTypes\EnumProperty.cs (1)
28AdmissibleValues = new List<EnumValue>();
XamlTypes\EnumValue.cs (2)
36Arguments = new List<Argument>(); 37Metadata = new List<NameValuePair>();
XamlTypes\ProjectSchemaDefinitions.cs (1)
25Nodes = new List<IProjectSchemaNode>();
XamlTypes\Rule.cs (5)
75Properties = new List<BaseProperty>(); 76Categories = new List<Category>(); 580_evaluatedCategories = new List<Category>(); 591_categoryNamePropertyListMap.Add(category.Name, new List<BaseProperty>()); 604_categoryNamePropertyListMap.Add(category.Name, new List<BaseProperty>());
XamlTypes\RuleBag.cs (1)
33Rules = new List<Rule>();
XamlTypes\ValueEditor.cs (1)
36Metadata = new List<NameValuePair>();
Microsoft.Build.Framework.UnitTests (5)
BuildSubmissionStartedEventArgs_Tests.cs (2)
27var entryPointProjects = new List<string>() 33var targetNames = new List<string>()
CustomEventArgSerialization_Tests.cs (2)
580List<DictionaryEntry> propertyList = new List<DictionaryEntry>(); 606List<DictionaryEntry> entryList = new List<DictionaryEntry>();
TargetFinishedEventArgs_Tests.cs (1)
25List<ITaskItem> outputs = new List<ITaskItem>();
Microsoft.Build.Tasks.CodeAnalysis (3)
ManagedToolTask.cs (1)
140var argumentList = new List<string>();
MapSourceRoots.cs (1)
91var mappedSourceRoots = new List<ITaskItem>();
src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (1)
56var list = new List<string>();
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
DotNetSdkTests.cs (1)
572List<string> foundConfigs = new List<string>();
IntegrationTests.cs (1)
28private readonly List<Process> _existingServerList = new List<Process>();
TestUtilities\MockEngine.cs (1)
19public List<BuildMessageEventArgs> BuildMessages = new List<BuildMessageEventArgs>();
Microsoft.Build.Tasks.Core (174)
AppConfig\DependentAssembly.cs (1)
44var redirects = new List<BindingRedirect>();
AppConfig\RuntimeSection.cs (1)
48internal List<DependentAssembly> DependentAssemblies { get; } = new List<DependentAssembly>();
AssemblyDependency\AssemblyInformation.cs (1)
587var arguments = new List<string>();
AssemblyDependency\DirectoryResolver.cs (1)
53var 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>(); 825internal List<ResolutionSearchLocation> AssembliesConsideredAndRejected { get; private set; } = new List<ResolutionSearchLocation>();
AssemblyDependency\ReferenceTable.cs (18)
1275var assembliesConsideredAndRejected = new List<ResolutionSearchLocation>(); 1280var parentReferenceFolders = new List<DirectoryWithParentAssembly>(); 1287var jaggedResolvers = new List<Resolver[]>(); 1371var removedReferences = new List<Reference>(); 1471dependencies = new List<ReferenceAssemblyExtensionPair>(); 1686var newEntries = new List<KeyValuePair<AssemblyNameExtension, Reference>>(); 1932remapping.BindingRedirects = new List<BindingRedirect> { bindingRedirect }; 2041var assemblyTableInfos = new List<AssemblyTableInfo>(); 2080referenceAssemblyDirectories = new List<string>(); 2192refs = new List<AssemblyNameReference>(); 2590var primaryItems = new List<ITaskItem>(); 2591var dependencyItems = new List<ITaskItem>(); 2592var relatedItems = new List<ITaskItem>(); 2593var satelliteItems = new List<ITaskItem>(); 2594var serializationAssemblyItems = new List<ITaskItem>(); 2595var scatterItems = new List<ITaskItem>(); 2596var copyLocalItems = new List<ITaskItem>(); 3153ListOfExcludedAssemblies = new List<string>();
AssemblyDependency\ResolveAssemblyReference.cs (10)
196private List<ITaskItem> _unresolvedConflicts = new List<ITaskItem>(); 1013private List<ITaskItem> _filesWritten = new List<ITaskItem>(); 2220List<Exception> inclusionListErrors = new List<Exception>(); 2221List<string> inclusionListErrorFilesNames = new List<string>(); 2421var generalResolutionExceptions = new List<Exception>(); 2782List<Exception> inclusionListErrors = new List<Exception>(); 2783List<string> inclusionListErrorFilesNames = new List<string>(); 2818List<string> subsetNames = new List<string>(); 2984var holdSuggestedRedirects = new List<ITaskItem>(); 3107var assembliesLeft = new List<ITaskItem>();
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>();
AssemblyFoldersFromConfig.cs (1)
22private readonly List<AssemblyFoldersFromConfigInfo> _directoryNames = new List<AssemblyFoldersFromConfigInfo>();
AssignCulture.cs (2)
137var cultureList = new List<ITaskItem>(); 138var noCultureList = new List<ITaskItem>();
AssignLinkMetadata.cs (1)
39var outputItems = new List<ITaskItem>();
BootstrapperUtil\BootstrapperBuilder.cs (9)
171var componentFilesCopied = new List<string>(); 449var files = new List<string>(); 452List<string> packagePaths = new List<string>() { invariantPath }; 597List<string> packagePaths = new List<string>() { PackagePath }; 660p.AddMissingDependency(new List<string> { relatedProductCode }); 666var foundDependencies = new List<Product>(); 667var allDependencies = new List<string>(); 710var list = new List<string>(); 739var 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)
20private readonly List<ProductBuilder> _list = new List<ProductBuilder>();
BootstrapperUtil\ProductCollection.cs (1)
21private readonly List<Product> _list = new List<Product>();
BootstrapperUtil\ResourceUpdater.cs (2)
19private readonly List<StringResource> _stringResources = new List<StringResource>(); 20private readonly List<FileResource> _fileResources = new List<FileResource>();
BootstrapperUtil\Util.cs (1)
167List<string> additionalPackagePaths = new List<string>();
BootstrapperUtil\xmlvalidationresults.cs (2)
15private readonly List<string> _validationErrors = new List<string>(); 16private readonly List<string> _validationWarnings = new List<string>();
CallTarget.cs (1)
23private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>();
CombinePath.cs (1)
62var combinedPathsList = new List<ITaskItem>();
ConvertToAbsolutePath.cs (1)
48var absolutePathsList = new List<ITaskItem>();
Copy.cs (2)
749var sourceFiles = SourceFiles != null ? new List<ITaskItem>(SourceFiles) : new List<ITaskItem>(); 750var 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)
106var deletedFilesList = new List<ITaskItem>();
Exec.cs (1)
55private readonly List<ITaskItem> _nonEmptyOutput = new List<ITaskItem>();
FileIO\ReadLinesFromFile.cs (1)
47var nonEmptyLines = new List<ITaskItem>();
FileMatcher.cs (5)
908files ??= new List<string>(); 940newSearchesToExclude = new List<RecursionState>(); 965newSearchesToExclude ??= new(); 2413searchesToExclude = new List<RecursionState>(); 2487listForSubdir = new List<RecursionState>();
FindInvalidProjectReferences.cs (1)
79var invalidReferences = new List<ITaskItem>();
GenerateResource.cs (12)
665_satelliteInputs = new List<ITaskItem>(); 667List<ITaskItem> newSources = new List<ITaskItem>(); 1377inputsToProcess = new List<ITaskItem>(); 1378outputsToProcess = new List<ITaskItem>(); 1379cachedOutputFiles = new List<ITaskItem>(); 2221private List<ReaderInfo> _readers = new List<ReaderInfo>(); 2331_extractedResWFiles = new List<ITaskItem>(); 2419_readers = new List<ReaderInfo>(); 2422_portableLibraryCacheInfo = new List<ResGenDependencies.PortableLibraryFile>(); 2591_readers = new List<ReaderInfo>(); 2670List<string> resWFilesForThisAssembly = new List<string>(); 3884resources = new List<IResource>();
GetAssemblyIdentity.cs (1)
58var list = new List<ITaskItem>();
GetInstalledSDKLocations.cs (1)
155var 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)
53var inPathList = new List<ITaskItem>(); 54var outOfPathList = new List<ITaskItem>();
MakeDir.cs (1)
45var items = new List<ITaskItem>();
ManifestUtil\AssemblyReferenceCollection.cs (1)
19private readonly List<AssemblyReference> _list = new List<AssemblyReference>();
ManifestUtil\ComImporter.cs (1)
76var comClassList = new List<ComClass>();
ManifestUtil\CompatibleFrameworkCollection.cs (1)
15private readonly List<CompatibleFramework> _list = new List<CompatibleFramework>();
ManifestUtil\DeployManifest.cs (1)
81private List<CompatibleFramework> _compatibleFrameworks = new List<CompatibleFramework>();
ManifestUtil\FileAssociationCollection.cs (1)
15private 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)
29var comInfoList = new List<ComInfo>();
ManifestUtil\MetadataReader.cs (1)
84_customAttributes = new List<string>();
ManifestUtil\OutputMessage.cs (1)
80private readonly List<OutputMessage> _list = new List<OutputMessage>();
Move.cs (1)
150var destinationFilesSuccessfullyMoved = new List<ITaskItem>();
MSBuild.cs (4)
53private readonly List<ITaskItem> _targetOutputs = new List<ITaskItem>(); 375var projectsToBuildInParallel = new List<ITaskItem>(); 411var expandedProperties = new List<string>(); 412var expandedTargets = new List<string>();
PropertyParser.cs (2)
90var finalPropertiesList = new List<PropertyNameValuePair>(); 211Value = new List<string>
RedistList.cs (7)
93var errors = new List<Exception>(); 94var errorFilenames = new List<string>(); 95var assemblyList = new List<AssemblyEntry>(); 96var remappingEntries = new List<AssemblyRemapping>(); 547var allowListAssemblies = new List<AssemblyEntry>(); 555var allowListAssembliesReadIn = new List<AssemblyEntry>(); 1045var subsetFilesForFrameworkDirectory = new List<string>();
RemoveDir.cs (1)
52var removedDirectoriesList = new List<ITaskItem>();
ResGenDependencies.cs (1)
261var retVal = new List<string>();
ResolveManifestFiles.cs (6)
493var assemblyList = new List<ITaskItem>(); 501var fileList = new List<ITaskItem>(); 704assemblyPublishInfos = new List<PublishInfo>(); 705filePublishInfos = new List<PublishInfo>(); 706satellitePublishInfos = new List<PublishInfo>(); 707manifestEntryPointPublishInfos = new List<PublishInfo>();
ResolveSDKReference.cs (7)
407var listOfIncompatibleReferences = new List<string>(); 436var listOfIncompatibleReferences = new List<string>(); 552return new List<string>(); 739ResolutionErrors = new List<Tuple<string, object[]>>(); 740ResolutionWarnings = new List<Tuple<string, object[]>>(); 741StatusMessages = new List<Tuple<string, object[]>>(); 1344List<string> appxLocationComponents = new List<string>();
ResourceHandling\MSBuildResXReader.cs (1)
22var resources = new List<IResource>();
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (5)
31internal static readonly IList<string> DefaultNamespaces = new List<string> 51new List<string> 62new List<string>() 67new List<string>() 545List<string> directoriesToAddToAppDomain = new();
SolutionConfiguration.cs (1)
95list = new List<string>();
system.design\stronglytypedresourcebuilder.cs (1)
151var errors = new List<string>();
Touch.cs (1)
89var touchedItems = new List<ITaskItem>();
VersionUtilities.cs (1)
53versionValues.Add(candidateVersion, new List<string>() { version });
WindowsFileSystem.cs (1)
96var enumeration = new List<string>();
WriteCodeFragment.cs (4)
197var namedParameters = new List<AttributeParameter>(); 235List<AttributeParameter> providedOrderedParameters = new(); 323keysToRemove = new(); 353keysToRemove = new();
XmlPeek.cs (1)
135var peekValues = new List<string>();
XslTransformation.cs (1)
514var types = new List<Type>();
Microsoft.Build.Tasks.UnitTests (31)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
375protected static List<string> s_existentFiles = new List<string>
AssemblyDependency\TaskTranslatorHelpers.cs (1)
46new List<object[]>
AssemblyNameEx_Tests.cs (1)
662List<AssemblyNameExtension> assemblies = new List<AssemblyNameExtension>();
CallTarget_Tests.cs (1)
183List<ITaskItem> targetOutputsTaskItems = new List<ITaskItem>();
Copy_Tests.cs (7)
32new List<object[]> 39new List<object[]> 50public static IEnumerable<object[]> GetHardLinksSymLinks() => new List<object[]> 67public static IEnumerable<object[]> GetHardLinksSymLinksSingleThreaded() => new List<object[]> 1999var filesActuallyCopied = new List<KeyValuePair<FileState, FileState>>(); 2066var filesActuallyCopied = new List<KeyValuePair<FileState, FileState>>(); 3051internal List<FileState> FilesCopiedSuccessfully { get; } = new List<FileState>();
GetSDKReference_Tests.cs (2)
271directoryToFileList.Add("third", new List<string>() { "a", "b", "c" }); 272directoryToFileList.Add("fourth", new List<string>() { "1", "2", "3" });
HintPathResolver_Tests.cs (1)
86assembliesConsideredAndRejected: new List<ResolutionSearchLocation>(),
MockUnmanagedMemoryHelper.cs (2)
32_allocatedHandles = new List<IntPtr>(); 49_dependentAllocations.Add(_mainAllocationHandle, new List<IntPtr>());
PrintLineDebugger_Tests.cs (1)
23public readonly List<string> Logs = new List<string>();
QuotingUtilities.cs (1)
135var pieces = new List<string>();
RemoveDir_Tests.cs (2)
52List<TaskItem> list = new List<TaskItem>(); 101List<TaskItem> list = new List<TaskItem>();
ResolveSDKReference_Tests.cs (2)
97List<string> dependentSDKsEmpty = new List<string>(); 100List<string> dependentSDKs = new List<string>() { "bar, Version=1.0", "bar, Version=2.0", "baz, Version=2.0", "CannotParseMeAsSDK", "newt, version=1.0" };
RoslynCodeTaskFactory_Tests.cs (4)
233ICollection<TaskPropertyInfo> parameters = new List<TaskPropertyInfo> 342ICollection<TaskPropertyInfo> parameters = new List<TaskPropertyInfo> 781bool success = RoslynCodeTaskFactory.TryLoadTaskBody(log, TaskName, taskBody, new List<TaskPropertyInfo>(), out RoslynCodeTaskFactoryTaskInfo _); 807bool success = RoslynCodeTaskFactory.TryLoadTaskBody(log, TaskName, taskBody, parameters ?? new List<TaskPropertyInfo>(), out RoslynCodeTaskFactoryTaskInfo taskInfo);
XslTransformation_Tests.cs (3)
1127xmlInputs = new List<KeyValuePair<XslTransformation.XmlInput.XmlModes, object>>(); 1128xslInputs = new List<KeyValuePair<XslTransformation.XsltInput.XslModes, object>>(); 1140List<bool> results = new List<bool>();
ZipDirectory_Tests.cs (2)
53new List<string> 95new List<string>
Microsoft.Build.UnitTests.Shared (34)
BuildEventArgsExtension.cs (2)
354List<string> argItemIncludes = new List<string>(); 360List<string> otherItemIncludes = new List<string>();
EngineTestEnvironment.cs (1)
155var result = new List<(ILogger logger, Func<string> textGetter)>();
EnvironmentProvider.cs (1)
47var searchPaths = new List<string>();
MockEngine.cs (1)
300targetOutputsPerProject = new List<IDictionary<string, ITaskItem[]>>();
MockLogger.cs (19)
64public List<BuildErrorEventArgs> Errors { get; } = new List<BuildErrorEventArgs>(); 69public List<BuildWarningEventArgs> Warnings { get; } = new List<BuildWarningEventArgs>(); 79public List<ExternalProjectStartedEventArgs> ExternalProjectStartedEvents { get; } = new List<ExternalProjectStartedEventArgs>(); 84public List<ExternalProjectFinishedEventArgs> ExternalProjectFinishedEvents { get; } = new List<ExternalProjectFinishedEventArgs>(); 89public List<ProjectEvaluationStartedEventArgs> EvaluationStartedEvents { get; } = new List<ProjectEvaluationStartedEventArgs>(); 94public List<ProjectEvaluationFinishedEventArgs> EvaluationFinishedEvents { get; } = new List<ProjectEvaluationFinishedEventArgs>(); 99public List<ProjectStartedEventArgs> ProjectStartedEvents { get; } = new List<ProjectStartedEventArgs>(); 104public List<ProjectFinishedEventArgs> ProjectFinishedEvents { get; } = new List<ProjectFinishedEventArgs>(); 109public List<TargetStartedEventArgs> TargetStartedEvents { get; } = new List<TargetStartedEventArgs>(); 114public List<TargetFinishedEventArgs> TargetFinishedEvents { get; } = new List<TargetFinishedEventArgs>(); 119public List<TaskStartedEventArgs> TaskStartedEvents { get; } = new List<TaskStartedEventArgs>(); 124public List<TaskFinishedEventArgs> TaskFinishedEvents { get; } = new List<TaskFinishedEventArgs>(); 129public List<TaskParameterEventArgs> TaskParameterEvents { get; } = new List<TaskParameterEventArgs>(); 134public List<BuildMessageEventArgs> BuildMessageEvents { get; } = new List<BuildMessageEventArgs>(); 139public List<BuildStartedEventArgs> BuildStartedEvents { get; } = new List<BuildStartedEventArgs>(); 144public List<BuildFinishedEventArgs> BuildFinishedEvents { get; } = new List<BuildFinishedEventArgs>(); 149public List<TelemetryEventArgs> TelemetryEvents { get; } = new(); 151public List<BuildEventArgs> AllBuildEvents { get; } = new List<BuildEventArgs>(); 258public List<Action<object, BuildEventArgs>> AdditionalHandlers { get; set; } = new List<Action<object, BuildEventArgs>>();
ObjectModelHelpers.cs (7)
509List<ITaskItem> expectedItems = new List<ITaskItem>(); 1186List<T> list = new List<T>(); 1325List<T> listOne = new List<T>(); 1326List<T> listTwo = new List<T>(); 1366List<ILogger> loggers = new List<ILogger>(); 1379List<ILogger> loggers = new List<ILogger>() { binaryLogger }; 2152public List<LoggingDirectoryCache> DirectoryCaches { get; } = new();
TestEnvironment.cs (3)
31private readonly List<TestInvariant> _invariants = new List<TestInvariant>(); 36private readonly List<TransientTestState> _variants = new List<TransientTestState>(); 474List<string> files = new();
Microsoft.Build.Utilities.Core (38)
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>();
AssemblyFoldersFromConfig.cs (1)
22private readonly List<AssemblyFoldersFromConfigInfo> _directoryNames = new List<AssemblyFoldersFromConfigInfo>();
FileMatcher.cs (5)
908files ??= new List<string>(); 940newSearchesToExclude = new List<RecursionState>(); 965newSearchesToExclude ??= new(); 2413searchesToExclude = new List<RecursionState>(); 2487listForSubdir = new List<RecursionState>();
MuxLogger.cs (1)
473_loggers = new List<ILogger>();
PlatformManifest.cs (2)
119DependentPlatforms = new List<DependentPlatform>(); 120ApiContracts = new List<ApiContract>();
SDKManifest.cs (1)
351ApiContracts = new List<ApiContract>();
ToolLocationHelper.cs (18)
331var assemblyFolders = new List<AssemblyFoldersExInfo>(); 784var filteredTargetPlatformSdkList = new List<TargetPlatformSDK>(); 1125var contractWinMDs = new List<string>(); 1339var platforms = new List<string>(); 1376var availablePlatformVersions = new List<Version>(); 1985return new List<string>(); 2105var referencePaths = new List<string>(); 2131var referencePaths = new List<string>(); 2155var referencePaths = new List<string>(); 2199return pathsList ?? new List<string>(); 2327var referencePaths = new List<string>(); 2941var sdkDiskRoots = new List<string>(); 2968var sdkDiskRoots = new List<string>(); 3635s_targetFrameworkMonikers = new List<string>(); 3761var frameworkIdentifiers = new List<string>(); 3835var frameworkVersions = new List<string>(); 3902var frameworkProfiles = new List<string>(); 3934IList<string> versions = new List<string>();
VersionUtilities.cs (1)
53versionValues.Add(candidateVersion, new List<string>() { version });
WindowsFileSystem.cs (1)
96var enumeration = new List<string>();
Microsoft.Build.Utilities.UnitTests (5)
PrintLineDebugger_Tests.cs (1)
23public readonly List<string> Logs = new List<string>();
ToolLocationHelper_Tests.cs (4)
3079var paths = new List<string> { tooLongPath }; 3096var paths = new List<string> { directoryWithInvalidChars }; 3111var paths = new List<string> { normalDirectory }; 3787var paths = new List<string> { _fakeStructureRoot, _fakeStructureRoot2 };
Microsoft.Cci.Extensions (14)
Differs\ElementDiffer.cs (1)
53_differences = new List<Difference>();
Differs\ListMerger.cs (1)
29List<Tuple<DifferenceType, T>> list = new List<Tuple<DifferenceType, T>>();
Filters\IntersectionFilter.cs (1)
17var filterList = new List<ICciFilter>();
HostEnvironment.cs (4)
576List<IAssembly> assemblySet = new List<IAssembly>(); 613paths = Enumerable.Concat(new List<string>() { coreAssemblyFile }, paths.Where(ai => !StringComparer.OrdinalIgnoreCase.Equals(ai, coreAssemblyFile))); 626List<IAssembly> matchingAssemblies = new List<IAssembly>(); 675identities = Enumerable.Concat(new List<AssemblyIdentity>() { coreIdentity }, identities.Where(ai => ai != coreIdentity));
TypeDependencies.cs (3)
29_publicDependents = new List<ITypeReference>(); 30_dependents = new List<ITypeReference>(); 31_methodDependents = new List<IMethodReference>();
Writers\CSharp\CSDeclarationWriter.Enums.cs (1)
44List<IFieldDefinition> candidateFlagFields = new List<IFieldDefinition>();
Writers\CSharp\CSDeclarationWriter.Types.cs (1)
35var args = new List<string>();
Writers\CSharp\CSharpWriter.cs (1)
222List<IFieldDefinition> newFields = new List<IFieldDefinition>();
Writers\Syntax\TokenSyntaxWriter.cs (1)
11private List<SyntaxToken> _tokens = new List<SyntaxToken>();
Microsoft.CodeAnalysis (40)
AdditionalTextFile.cs (1)
38var diagnostics = new List<DiagnosticInfo>();
CodeGen\SwitchStringJumpTableEmitter.cs (1)
200bucket = new HashBucket();
CommandLine\AnalyzerConfigSet.cs (1)
60private readonly ObjectPool<List<Section>> _sectionKeyPool = new ObjectPool<List<Section>>(() => new List<Section>());
CommandLine\CommandLineArguments.cs (1)
394var resolved = new List<MetadataReference>();
CommandLine\CommandLineParser.cs (3)
583var splitList = new List<string>(); 673var arguments = new List<string>(); 720var newArgs = new List<string>();
CommandLine\CommonCompiler.cs (2)
234List<MetadataReference> resolved = new List<MetadataReference>(); 945var diagnosticInfos = new List<DiagnosticInfo>();
Compilation\Compilation.cs (1)
2064var resourceList = new List<Win32Resource>();
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)
1028typeArguments = new List<ITypeSymbol>();
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
57private readonly List<(EntityHandle parentHandle, IEnumerator<ICustomAttribute> attributeEnumerator)> _deferredCustomAttributes = new(); 102_changedTypeDefs = new List<ITypeDefinition>(); 1454this.rows = new List<T>();
InternalUtilities\CommandLineUtilities.cs (1)
56var list = new List<string>();
InternalUtilities\EnumerableExtensions.cs (1)
744List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
MetadataReader\MetadataHelpers.cs (3)
779var nestedTypes = new List<IGrouping<string, TypeDefinitionHandle>>(); 786var nestedNamespaces = new List<KeyValuePair<string, IEnumerable<IGrouping<string, TypeDefinitionHandle>>>>(); 856typesInLastChildNamespace = new List<IGrouping<string, TypeDefinitionHandle>>();
MetadataReader\PEAssembly.cs (1)
145keys = new List<ImmutableArray<byte>>();
MetadataReader\PEModule.cs (1)
2510result = new List<AttributeInfo>();
PEWriter\MetadataWriter.cs (3)
449protected readonly List<MethodImplementation> methodImplList = new List<MethodImplementation>(); 565result = new List<IGenericTypeParameter>(); 4204_rows = new List<T>();
PEWriter\NativeResourceWriter.cs (1)
128this.Entries = new List<object>();
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
677referencesBySimpleName.Add(identity.Name, new List<ReferencedAssemblyIdentity> { referencedAssembly });
RuleSet\RuleSetProcessor.cs (1)
154var rules = new List<KeyValuePair<string, ReportDiagnostic>>();
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)
423var nodesToInsertWithSeparators = new List<SyntaxNodeOrToken>();
Syntax\SyntaxDiffer.cs (2)
21private readonly List<ChangeRecord> _changes = new List<ChangeRecord>(); 105var 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.CodeStyle (22)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
744List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamespaceOrTypeSymbolExtensions.cs (1)
35var result = new List<string>();
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
74var operations = new List<IndentBlockOperation>(); 75var list = new List<IndentBlockOperation>();
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
60var result = new List<TextChange>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
313var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
151var list = new List<AnchorIndentationOperation>(); 163var list = new List<IndentBlockOperation>(); 175var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1108var specifiedParameters1 = new List<IParameterSymbol>(); 1109var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
509(_exceptions ??= new List<Exception>()).Add(e);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
64var removedNodes = new List<SyntaxNode> { paramNode };
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
106var removalList = new List<int>();
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
44var declarators = new List<TSymbolSyntax>();
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
175var newArms = new List<TSwitchArmSyntax>();
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (1)
47var result = new List<CodeAction>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
300var newMembers = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (2)
64var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 67var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
54var names = new List<string>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
108var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
19var assemblies = new List<Assembly>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
89var result = new List<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
23exceptions ??= new List<Exception>();
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.cs (1)
912var sub = new List<TreeDumperNode>();
Binder\Semantics\Conversions\Conversion.cs (1)
1224var 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)
54List<Diagnostic> diagnostics = new List<Diagnostic>(); 56List<string>? scriptArgs = IsScriptCommandLineParser ? new List<string>() : null; 57List<string>? responsePaths = IsScriptCommandLineParser ? new List<string>() : null; 100List<ResourceDescription> managedResources = new List<ResourceDescription>(); 101List<CommandLineSourceFile> sourceFiles = new List<CommandLineSourceFile>(); 102List<CommandLineSourceFile> additionalFiles = new List<CommandLineSourceFile>(); 104List<CommandLineSourceFile> embeddedFiles = new List<CommandLineSourceFile>(); 111List<CommandLineReference> metadataReferences = new List<CommandLineReference>(); 112List<CommandLineAnalyzerReference> analyzers = new List<CommandLineAnalyzerReference>(); 113List<string> libPaths = new List<string>(); 114List<string> sourcePaths = new List<string>(); 115List<string> keyFileSearchPaths = new List<string>(); 116List<string> usings = new List<string>(); 126List<string> features = new List<string>();
CommandLine\CSharpCompiler.cs (2)
98var diagnostics = new List<DiagnosticInfo>(); 181var fileDiagnostics = new List<DiagnosticInfo>();
FlowAnalysis\AlwaysAssignedWalker.cs (1)
50List<Symbol> result = new List<Symbol>();
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (3)
969this.proxiedLabels = proxiedLabels = new List<LabelSymbol>(); 1047this.handlers = new List<BoundBlock>(); 1050_orderedHoistedLocals = new List<LocalSymbol>();
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
237_dispatches.Add(resumeLabel, new List<StateMachineState> { stateNumber });
Symbols\ReferenceManager.cs (1)
422var newSymbols = new List<int>();
Symbols\Source\SourceNamedTypeSymbol.cs (2)
149var parameterBuilders1 = new List<List<TypeParameterBuilder>>(); 181var parameterBuilder = new List<TypeParameterBuilder>();
Syntax\DirectiveTriviaSyntax.cs (1)
131var list = new List<DirectiveTriviaSyntax>();
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
118var partsList = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
597var result = new List<IList<TSyntaxNode>>(); 599var currentGroup = new List<TSyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1057var constructors = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (1)
77var result = new List<SimpleNameSyntax>();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
54var result = new List<ITypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
26var members = new List<SyntaxNodeOrToken>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
162var accessors = new List<AccessorDeclarationSyntax?>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
227var attributes = new List<AttributeListSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
318var types = new List<BaseTypeSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
22var newUsings = new List<UsingDirectiveSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (1)
144var usings = new List<UsingDirectiveSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (2)
26var clauses = new List<TypeParameterConstraintClauseSyntax>(); 40var constraints = new List<TypeParameterConstraintSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\QueryExpressionSyntaxExtensions.cs (2)
15var result = new List<SyntaxNode> 26var result = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
25var indices = new List<bool>();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (7)
CommandLineTests.cs (6)
917var diags = new List<Diagnostic>(); 6487var diagnostics = new List<Diagnostic>(); 9498var args = new List<string>() { "/reportanalyzer", "/t:library", "/a:" + typeof(DoNothingGenerator).Assembly.Location, srcFile.Path }; 12420var list = new List<Tuple<string, DebugInformationFormat>>() 12445var list = new List<Tuple<string, OutputKind>>() 12465var list = new List<Tuple<string, Platform>>()
TouchedFileLoggingTests.cs (1)
220var writes = new List<string>();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (275)
Classification\SyntacticTaggerTests.cs (2)
55var callstacks = new List<string>(); 109var callstacks = new List<string>();
CodeActions\ApplyChangesOperationTests.cs (1)
246var refactorings = new List<CodeAction>();
CodeActions\InlineMethod\CSharpInlineMethodTests.cs (3)
1915var diagnostic = new List<DiagnosticResult>() 3541var diagnostic = new List<DiagnosticResult>() 3606var diagnostic = new List<DiagnosticResult>()
CodeActions\PreviewExceptionTests.cs (1)
93var codeActions = new List<CodeAction>();
CodeActions\PreviewTests.cs (1)
96var refactorings = new List<CodeAction>();
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
111var results = new List<Tuple<Solution, Solution>>();
CodeActions\SyncNamespace\SyncNamespaceTests_MoveFile.cs (10)
25var expectedFolders = new List<string[]>(); 52var expectedFolders = new List<string[]>(); 80var expectedFolders = new List<string[]> 112var expectedFolders = new List<string[]> 152var expectedFolders = new List<string[]> 187var expectedFolders = new List<string[]> 232var expectedFolders = new List<string[]> 281var expectedFolders = new List<string[]> 321var expectedFolders = new List<string[]> 360var expectedFolders = new List<string[]>
Completion\CompletionProviders\ExtensionMethodImportCompletionProviderTests.cs (9)
58=> CombineWithReferenceTypeData((new[] { "class", "struct", "interface", "enum", "abstract class" }).Select(kind => new List<object>() { kind })); 64var predefinedTypes = new List<string>() { "string", "String", "System.String" }; 73yield return new List<object>() { type1 + suffix, type2 + suffix }; 496}).Select(tuple => new List<object>() { tuple })); 535=> CombineWithReferenceTypeData((new[] { "class", "interface", "abstract class" }).Select(kind => new List<object>() { kind })); 584}).Select(tuple => new List<object>() { tuple })); 631}).Select(tuple => new List<object>() { tuple })); 876var predefinedTypes = new List<(string vbType, string csType)> 2019var expectedFilters = new List<CompletionFilter>()
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (1)
152=> new List<SnippetInfo>
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (1)
1524var triggerInfos = new List<CompletionTrigger>
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
146var exceptions = new List<Exception>(); 764var nugetAnalyzerReferences = new List<DiagnosticAnalyzer>();
Intents\IntentTestsBase.cs (1)
66var actualDocumentTexts = new List<string>();
Interactive\NavigateTo\InteractiveNavigateToTests.cs (8)
158var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 430var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 463var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 562var expecteditems = new List<NavigateToItem> 640var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2, expecteditem3 }; 659var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2 }; 676var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2 }; 718var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2 };
NavigateTo\NavigateToTests.cs (25)
243var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 601var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 615var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 664var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 879var expectedItems = new List<NavigateToItem> 937var expecteditems = new List<NavigateToItem> 1029var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2, expecteditem3 }; 1047var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2 }; 1063var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2 }; 1099var expecteditems = new List<NavigateToItem> 1145var expecteditems = new List<NavigateToItem> 1162var expecteditems = new List<NavigateToItem> 1179var expecteditems = new List<NavigateToItem> 1195var expecteditems = new List<NavigateToItem> 1212var expecteditems = new List<NavigateToItem> 1229var expecteditems = new List<NavigateToItem> 1246var expecteditems = new List<NavigateToItem> 1263var expecteditems = new List<NavigateToItem> 1281var expecteditems = new List<NavigateToItem> 1326var expectedItems = new List<NavigateToItem>() 1752var expectedItems = new List<NavigateToItem>() 1797var expectedItems = new List<NavigateToItem>() 1842var expectedItems = new List<NavigateToItem>() 1887var expectedItems = new List<NavigateToItem>() 1932var expectedItems = new List<NavigateToItem>()
SignatureHelp\AttributeSignatureHelpProviderTests.cs (36)
41var expectedOrderedItems = new List<SignatureHelpTestItem> 65var expectedOrderedItems = new List<SignatureHelpTestItem> 86var expectedOrderedItems = new List<SignatureHelpTestItem> 108var expectedOrderedItems = new List<SignatureHelpTestItem> 132var expectedOrderedItems = new List<SignatureHelpTestItem> 160var expectedOrderedItems = new List<SignatureHelpTestItem> 182var expectedOrderedItems = new List<SignatureHelpTestItem> 210var expectedOrderedItems = new List<SignatureHelpTestItem> 231var expectedOrderedItems = new List<SignatureHelpTestItem> 336var expectedOrderedItems = new List<SignatureHelpTestItem> 359var expectedOrderedItems = new List<SignatureHelpTestItem> 382var expectedOrderedItems = new List<SignatureHelpTestItem> 405var expectedOrderedItems = new List<SignatureHelpTestItem> 433var expectedOrderedItems = new List<SignatureHelpTestItem> 457var expectedOrderedItems = new List<SignatureHelpTestItem> 480var expectedOrderedItems = new List<SignatureHelpTestItem> 503var expectedOrderedItems = new List<SignatureHelpTestItem> 526var expectedOrderedItems = new List<SignatureHelpTestItem> 549var expectedOrderedItems = new List<SignatureHelpTestItem> 581var expectedOrderedItems = new List<SignatureHelpTestItem> 613var expectedOrderedItems = new List<SignatureHelpTestItem> 642var expectedOrderedItems = new List<SignatureHelpTestItem> 671var expectedOrderedItems = new List<SignatureHelpTestItem> 698var expectedOrderedItems = new List<SignatureHelpTestItem> 725var expectedOrderedItems = new List<SignatureHelpTestItem> 755var expectedOrderedItems = new List<SignatureHelpTestItem> 780var expectedOrderedItems = new List<SignatureHelpTestItem> 805var expectedOrderedItems = new List<SignatureHelpTestItem>(); 841var expectedOrderedItems = new List<SignatureHelpTestItem> 874var expectedOrderedItems = new List<SignatureHelpTestItem> 881expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 907var expectedOrderedItems = new List<SignatureHelpTestItem> 914expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 954var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 959var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 1068var expectedOrderedItems = new List<SignatureHelpTestItem>();
SignatureHelp\ConstructorInitializerSignatureHelpProviderTests.cs (31)
42var expectedOrderedItems = new List<SignatureHelpTestItem> 67var expectedOrderedItems = new List<SignatureHelpTestItem> 91var expectedOrderedItems = new List<SignatureHelpTestItem> 118var expectedOrderedItems = new List<SignatureHelpTestItem> 145var expectedOrderedItems = new List<SignatureHelpTestItem> 172var expectedOrderedItems = new List<SignatureHelpTestItem> 191var expectedOrderedItems = new List<SignatureHelpTestItem> 210var expectedOrderedItems = new List<SignatureHelpTestItem> 229var expectedOrderedItems = new List<SignatureHelpTestItem> 248var expectedOrderedItems = new List<SignatureHelpTestItem> 269var expectedOrderedItems = new List<SignatureHelpTestItem> 291var expectedOrderedItems = new List<SignatureHelpTestItem> 333var expectedOrderedItems = new List<SignatureHelpTestItem> 352var expectedOrderedItems = new List<SignatureHelpTestItem> 371var expectedOrderedItems = new List<SignatureHelpTestItem> 390var expectedOrderedItems = new List<SignatureHelpTestItem> 409var expectedOrderedItems = new List<SignatureHelpTestItem>(); 443var expectedOrderedItems = new List<SignatureHelpTestItem> 474var expectedOrderedItems = new List<SignatureHelpTestItem> 481expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 505var expectedOrderedItems = new List<SignatureHelpTestItem> 512expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 549var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 554var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 671var expectedOrderedItems = new List<SignatureHelpTestItem>(); 687var expectedOrderedItems = new List<SignatureHelpTestItem> 706var expectedOrderedItems = new List<SignatureHelpTestItem> 726var expectedOrderedItems = new List<SignatureHelpTestItem> 745var expectedOrderedItems = new List<SignatureHelpTestItem> 773var expectedOrderedItems = new List<SignatureHelpTestItem> 809var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\ElementAccessExpressionSignatureHelpProviderTests.cs (26)
49var expectedOrderedItems = new List<SignatureHelpTestItem> 74var expectedOrderedItems = new List<SignatureHelpTestItem> 99var expectedOrderedItems = new List<SignatureHelpTestItem> 130var expectedOrderedItems = new List<SignatureHelpTestItem> 165var expectedOrderedItems = new List<SignatureHelpTestItem> 195var expectedOrderedItems = new List<SignatureHelpTestItem> 231var expectedOrderedItems = new List<SignatureHelpTestItem> 263var expectedOrderedItems = new List<SignatureHelpTestItem> 294var expectedOrderedItems = new List<SignatureHelpTestItem> 359var expectedOrderedItems = new List<SignatureHelpTestItem> 390var expectedOrderedItems = new List<SignatureHelpTestItem> 421var expectedOrderedItems = new List<SignatureHelpTestItem>(); 462var expectedOrderedItems = new List<SignatureHelpTestItem> 499var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 506expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 536var expectedOrderedItems = new List<SignatureHelpTestItem> 543expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 589var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 594var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 632var expectedOrderedItems = new List<SignatureHelpTestItem> 669var expectedOrderedItems = new List<SignatureHelpTestItem> 707var expectedOrderedItems = new List<SignatureHelpTestItem> 768var metadataItems = new List<SignatureHelpTestItem> 773var projectReferenceItems = new List<SignatureHelpTestItem> 894var expectedOrderedItems = new List<SignatureHelpTestItem> 924var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\GenericNamePartiallyWrittenSignatureHelpProviderTests.cs (16)
40var expectedOrderedItems = new List<SignatureHelpTestItem> 65var expectedOrderedItems = new List<SignatureHelpTestItem> 90var expectedOrderedItems = new List<SignatureHelpTestItem> 113var expectedOrderedItems = new List<SignatureHelpTestItem> 139var expectedOrderedItems = new List<SignatureHelpTestItem> 170var expectedOrderedItems = new List<SignatureHelpTestItem> 205var expectedOrderedItems = new List<SignatureHelpTestItem> 212expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 240var expectedOrderedItems = new List<SignatureHelpTestItem> 255expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 287var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 292var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 330var expectedOrderedItems = new List<SignatureHelpTestItem> 359var expectedOrderedItems = new List<SignatureHelpTestItem> 383var expectedOrderedItems = new List<SignatureHelpTestItem> 406var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (33)
44var expectedOrderedItems = new List<SignatureHelpTestItem> 67var expectedOrderedItems = new List<SignatureHelpTestItem> 90var expectedOrderedItems = new List<SignatureHelpTestItem> 113var expectedOrderedItems = new List<SignatureHelpTestItem> 141var expectedOrderedItems = new List<SignatureHelpTestItem> 172var expectedOrderedItems = new List<SignatureHelpTestItem> 200var expectedOrderedItems = new List<SignatureHelpTestItem> 224var expectedOrderedItems = new List<SignatureHelpTestItem> 248var expectedOrderedItems = new List<SignatureHelpTestItem> 274var expectedOrderedItems = new List<SignatureHelpTestItem> 300var expectedOrderedItems = new List<SignatureHelpTestItem> 326var expectedOrderedItems = new List<SignatureHelpTestItem> 352var expectedOrderedItems = new List<SignatureHelpTestItem> 376var expectedOrderedItems = new List<SignatureHelpTestItem> 411var expectedOrderedItems = new List<SignatureHelpTestItem> 446var expectedOrderedItems = new List<SignatureHelpTestItem> 470var expectedOrderedItems = new List<SignatureHelpTestItem> 497var expectedOrderedItems = new List<SignatureHelpTestItem> 527var expectedOrderedItems = new List<SignatureHelpTestItem> 551var expectedOrderedItems = new List<SignatureHelpTestItem> 579var expectedOrderedItems = new List<SignatureHelpTestItem> 607var expectedOrderedItems = new List<SignatureHelpTestItem> 637var expectedOrderedItems = new List<SignatureHelpTestItem> 676var expectedOrderedItems = new List<SignatureHelpTestItem> 710var expectedOrderedItems = new List<SignatureHelpTestItem> 739await TestAsync(markup, new List<SignatureHelpTestItem> 851var expectedOrderedItems = new List<SignatureHelpTestItem> 884var expectedOrderedItems = new List<SignatureHelpTestItem> 891expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 917var expectedOrderedItems = new List<SignatureHelpTestItem> 924expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 955var expectedOrderedItems = new List<SignatureHelpTestItem>(); 984var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\InitializerExpressionSignatureHelpProviderTests.cs (8)
39var expectedOrderedItems = new List<SignatureHelpTestItem> 62var expectedOrderedItems = new List<SignatureHelpTestItem> 85var expectedOrderedItems = new List<SignatureHelpTestItem> 113var expectedOrderedItems = new List<SignatureHelpTestItem> 139var expectedOrderedItems = new List<SignatureHelpTestItem> 167var expectedOrderedItems = new List<SignatureHelpTestItem> 197var expectedOrderedItems = new List<SignatureHelpTestItem>(); 226var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\InvocationExpressionSignatureHelpProviderTests.cs (2)
1273var expectedOrderedItems = new List<SignatureHelpTestItem> 2608var expectedItems = new List<SignatureHelpTestItem>();
SignatureHelp\ObjectCreationExpressionSignatureHelpProviderTests.cs (31)
39var expectedOrderedItems = new List<SignatureHelpTestItem> 66var expectedOrderedItems = new List<SignatureHelpTestItem> 92var expectedOrderedItems = new List<SignatureHelpTestItem> 114var expectedOrderedItems = new List<SignatureHelpTestItem> 137var expectedOrderedItems = new List<SignatureHelpTestItem> 165var expectedOrderedItems = new List<SignatureHelpTestItem> 187var expectedOrderedItems = new List<SignatureHelpTestItem> 214var expectedOrderedItems = new List<SignatureHelpTestItem> 237var expectedOrderedItems = new List<SignatureHelpTestItem> 261var expectedOrderedItems = new List<SignatureHelpTestItem> 285var expectedOrderedItems = new List<SignatureHelpTestItem> 309var expectedOrderedItems = new List<SignatureHelpTestItem> 331var expectedOrderedItems = new List<SignatureHelpTestItem> 354var expectedOrderedItems = new List<SignatureHelpTestItem> 377var expectedOrderedItems = new List<SignatureHelpTestItem> 400var expectedOrderedItems = new List<SignatureHelpTestItem> 449var expectedOrderedItems = new List<SignatureHelpTestItem> 474var expectedOrderedItems = new List<SignatureHelpTestItem> 499var expectedOrderedItems = new List<SignatureHelpTestItem>(); 538var expectedOrderedItems = new List<SignatureHelpTestItem> 574var expectedOrderedItems = new List<SignatureHelpTestItem> 581expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 609var expectedOrderedItems = new List<SignatureHelpTestItem> 616expectedOrderedItemsMetadataReference: new List<SignatureHelpTestItem>(), 657var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 662var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 788var expectedOrderedItems = new List<SignatureHelpTestItem> 811var expectedOrderedItems = new List<SignatureHelpTestItem> 834var expectedOrderedItems = new List<SignatureHelpTestItem> 857var expectedOrderedItems = new List<SignatureHelpTestItem> 895var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProviderTests.cs (9)
35var expectedOrderedItems = new List<SignatureHelpTestItem> 55var expectedOrderedItems = new List<SignatureHelpTestItem> 74var expectedOrderedItems = new List<SignatureHelpTestItem> 95var expectedOrderedItems = new List<SignatureHelpTestItem> 116var expectedOrderedItems = new List<SignatureHelpTestItem> 138var expectedOrderedItems = new List<SignatureHelpTestItem> 160var expectedOrderedItems = new List<SignatureHelpTestItem> 183var expectedOrderedItems = new List<SignatureHelpTestItem> 202var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\TupleConstructionSignatureHelpProviderTests.cs (13)
34var expectedOrderedItems = new List<SignatureHelpTestItem> 52var expectedOrderedItems = new List<SignatureHelpTestItem> 73var expectedOrderedItems = new List<SignatureHelpTestItem> 91var expectedOrderedItems = new List<SignatureHelpTestItem> 109var expectedOrderedItems = new List<SignatureHelpTestItem> 127var expectedOrderedItems = new List<SignatureHelpTestItem> 145var expectedOrderedItems = new List<SignatureHelpTestItem> 166var expectedOrderedItems = new List<SignatureHelpTestItem> 184var expectedOrderedItems = new List<SignatureHelpTestItem> 202var expectedOrderedItems = new List<SignatureHelpTestItem> 220var expectedOrderedItems = new List<SignatureHelpTestItem> 238var expectedOrderedItems = new List<SignatureHelpTestItem> 262var expectedOrderedItems = new List<SignatureHelpTestItem>
SymbolKey\SymbolKeyTestBase.cs (3)
126var list = new List<BlockSyntax>(); 154var kinds = new List<SymbolKind>(); 200var list = new List<ISymbol>();
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1422var eventArgs = new List<WorkspaceChangeEventArgs>();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenCapturing.cs (7)
27public readonly List<IList<string>> VariablesByScope = new List<IList<string>>(); 48VariablesByScope.Insert(depth, new List<string>() { varName }); 74var varNames = new List<string>(); 82variablesByScope.Add(new List<string>()); 272LocalFuncs = new List<IList<string>>(); 307var methods = new List<MethodInfo>(); 326copy.LocalFuncs.Insert(depth, new List<string>());
CodeGen\CodeGenFieldInitTests.cs (1)
650var trees = new List<SyntaxTree>();
CodeGen\CodeGenFunctionPointersTests.cs (1)
10595List<DiagnosticDescription> diagnostics = new()
CodeGen\CodeGenOverridingAndHiding.cs (3)
2827var refs = new System.Collections.Generic.List<MetadataReference>() { asm01, asm02 }; 2920var refs = new System.Collections.Generic.List<MetadataReference>() { asm01, asm02 }; 3158var refs = new System.Collections.Generic.List<MetadataReference>() { asm01, asm02 };
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (12)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (1)
6309var typeParameters = new List<TypeParameterSymbol>();
Emit\EditAndContinue\AssemblyReferencesTests.cs (2)
74var updatedMethods = new List<MethodDefinitionHandle>(); 146var updatedMethods = new List<MethodDefinitionHandle>();
Emit\EditAndContinue\EditAndContinueTests.cs (7)
3458var readers = new List<MetadataReader> { reader0, reader1 }; 3646var readers = new List<MetadataReader>() { reader0, reader1 }; 3981var readers = new List<MetadataReader> { reader0, reader1 }; 5442var readers = new List<MetadataReader> { reader0, reader1 }; 7033var readers = new List<MetadataReader> { reader0, reader1 }; 10130var readers = new List<MetadataReader> { reader0, reader1 }; 12228var readers = new List<MetadataReader> { reader0, reader1 };
Emit\EditAndContinue\SymbolMatcherTests.cs (1)
80var builder = new List<Symbol>();
PDB\TypeDefinitionDocumentTests.cs (1)
492var result = new List<string>();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\AttributeTests_Conditional.cs (1)
139var attributesArrayBuilder = new List<ImmutableArray<CSharpAttributeData>>();
Diagnostics\DiagnosticAnalyzerTests.cs (1)
1464var generatedFileNames = new List<string>
Diagnostics\DiagnosticSuppressorTests.cs (5)
393var exceptions = new List<Exception>(); 435var exceptions = new List<Exception>(); 486var exceptions = new List<Exception>(); 539var exceptions = new List<Exception>(); 592var exceptions = new List<Exception>();
Microsoft.CodeAnalysis.CSharp.Features (32)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
99var 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)
195var droppedTrivia = new List<SyntaxTrivia>();
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (2)
396var list = new List<StatementSyntax>(); 811var statements = new List<StatementSyntax>();
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
98var list = new List<string> 304var result = new List<SyntaxToken>();
DocumentationComments\DocCommentConverter.cs (1)
50var newLeadingTrivia = new List<SyntaxTrivia>();
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2572var result = new List<SyntaxNode>();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (2)
61var list = new List<VariableDeclaratorSyntax>(); 62var triviaList = new List<SyntaxTrivia>();
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
136var variables = new List<VariableDeclaratorSyntax>();
GenerateType\CSharpGenerateTypeService.cs (1)
591var namespaceContainers = new List<string>();
SignatureHelp\AbstractOrdinaryMethodSignatureHelpProvider.cs (1)
52var result = new List<SymbolDisplayPart>();
SignatureHelp\AttributeSignatureHelpProvider.cs (2)
165var result = new List<SignatureHelpSymbolParameter>(); 179var displayParts = new List<SymbolDisplayPart>
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
245var result = new List<SymbolDisplayPart>();
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
230var parts = new List<SymbolDisplayPart>();
SignatureHelp\GenericNameSignatureHelpProvider_Method.cs (2)
17var result = new List<SymbolDisplayPart>(); 76var 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)
44var result = new List<SymbolDisplayPart>();
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (1)
144var result = new List<SymbolDisplayPart>();
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
182var result = new List<SignatureHelpParameter>();
SplitStringLiteral\InterpolatedStringSplitter.cs (2)
40var beforeSplitContents = new List<InterpolatedStringContentSyntax>(); 41var afterSplitContents = new List<InterpolatedStringContentSyntax>();
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
54var result = new List<ITypeParameterSymbol>();
Structure\Providers\CompilationUnitStructureProvider.cs (1)
27var externsAndUsings = new List<SyntaxNode>();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (8)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (3)
94var unhandledKinds = new List<SyntaxKind>(); 677var result = new List<DocumentAnalysisResults>(); 723var result = new List<DocumentAnalysisResults>();
EditAndContinue\TopLevelEditingTests.cs (1)
3758var expectedEdits = new List<SemanticEditDescription>();
SemanticSearch\CSharpSemanticSearchServiceTests.cs (4)
75var results = new List<DefinitionItem>(); 118var exceptions = new List<UserCodeExceptionInfo>(); 167var exceptions = new List<UserCodeExceptionInfo>(); 225var exceptions = new List<UserCodeExceptionInfo>();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
ObjectFormatterTests.cs (1)
611var obj = new List<object> { 1, 2, 'c' };
ScriptTests.cs (1)
623Assert.Equal(new List<int> { 1, 2, 3 }, result);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (86)
Semantics\AccessCheckTests.cs (1)
630}", new List<MetadataReference>() { new CSharpCompilationReference(other) });
Semantics\AmbiguousOverrideTests.cs (2)
132var ref1 = new List<MetadataReference>() { comp1ref }; 137var ref2 = new List<MetadataReference>() { comp1ref, comp2ref };
Semantics\BindingTests.cs (10)
778", assemblyName: "DerivedAssembly1", references: new List<MetadataReference>() { baseAssembly.EmitToImageReference() }).VerifyDiagnostics(); 791", references: new List<MetadataReference>() { derivedAssembly.EmitToImageReference() }) 817", assemblyName: "DerivedAssembly2", references: new List<MetadataReference>() { baseAssembly.EmitToImageReference() }).VerifyDiagnostics(); 830", references: new List<MetadataReference>() { derivedAssembly.EmitToImageReference() }) 856", assemblyName: "DerivedAssembly3", references: new List<MetadataReference>() { baseAssembly.EmitToImageReference() }).VerifyDiagnostics(); 867}", references: new List<MetadataReference>() { derivedAssembly.EmitToImageReference() }) 1465}", references: new List<MetadataReference>() { TestReferences.SymbolsTests.NoPia.NoPIAGenericsAsm1 }) 1497}", references: new List<MetadataReference>() { TestReferences.SymbolsTests.NoPia.NoPIAGenericsAsm1 }) 1522}", references: new List<MetadataReference>() { TestReferences.SymbolsTests.NoPia.NoPIAGenericsAsm1 }) 1558}", references: new List<MetadataReference>() { TestReferences.SymbolsTests.NoPia.NoPIAGenericsAsm1 })
Semantics\ConstantTests.cs (1)
4235_list = new List<BoundNode>();
Semantics\InteractiveSemanticModelTests.cs (1)
281exprSynList = new List<ExpressionSyntax>();
Semantics\LambdaTests.cs (1)
8623var diagnostics = new List<DiagnosticDescription>();
Semantics\LookupTests.cs (44)
57var expected_lookupNames = new List<string> 85var expected_lookupNames = new List<string> 146List<string> expected_lookupNames = new List<string> 161List<string> expected_lookupSymbols = new List<string> 203List<string> expected_in_lookupNames = new List<string> 209List<string> expected_in_lookupSymbols = new List<string> 306List<string> expected_in_lookupNames = new List<string> 312List<string> expected_in_lookupSymbols = new List<string> 357List<string> expected_in_lookupNames = new List<string> 364List<string> expected_in_lookupSymbols = new List<string> 402List<string> expected_in_lookupNames = new List<string> 413List<string> expected_in_lookupSymbols = new List<string> 503List<string> expected_in_lookupNames = new List<string> 508List<string> expected_in_lookupSymbols = new List<string> 514List<string> not_expected_in_lookupSymbols = new List<string> 566List<string> expected_in_lookupNames = new List<string> 571List<string> expected_in_lookupSymbols = new List<string> 624List<string> not_expected_in_lookup = new List<string> 712List<string> expected_in_lookupNames = new List<string> 719List<string> expected_in_lookupSymbols = new List<string> 755List<string> expected_in_lookupNames = new List<string> 761List<string> expected_in_lookupSymbols = new List<string> 767List<string> not_expected_in_lookupNames = new List<string> 772List<string> not_expected_in_lookupSymbols = new List<string> 814List<string> expected_in_lookupNames = new List<string> 821List<string> expected_in_lookupSymbols = new List<string> 859List<string> not_expected_in_lookupNames = new List<string> 864List<string> not_expected_in_lookupSymbols = new List<string> 898List<string> not_expected_in_lookupNames = new List<string> 903List<string> not_expected_in_lookupSymbols = new List<string> 933List<string> expected_in_lookupNames = new List<string> 939List<string> expected_in_lookupSymbols = new List<string> 975List<string> expected_in_lookupNames = new List<string> 980List<string> expected_in_lookupSymbols = new List<string> 1015List<string> expected_in_lookupNames = new List<string> 1020List<string> expected_in_lookupSymbols = new List<string> 1141List<string> expected_in_lookupNames = new List<string> 1146List<string> expected_in_lookupSymbols = new List<string> 1179List<string> expected_in_lookupNames = new List<string> 1184List<string> expected_in_lookupSymbols = new List<string> 1214List<string> expected_in_lookupNames = new List<string> 1219List<string> expected_in_lookupSymbols = new List<string> 1338List<string> expected_in_lookupNames = new List<string> 1343List<string> expected_in_lookupSymbols = new List<string>
Semantics\NullableTests.cs (1)
1262List<Tuple<string, string[,]>> items = new List<Tuple<string, string[,]>>()
Semantics\SemanticErrorTests.cs (1)
12926", new List<MetadataReference> { systemRef })
Semantics\SpanStackSafetyTests.cs (8)
1929references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 1946references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() }, 1963references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 1980references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() }, 2007references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 2024references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() }, 2048references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 2065references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef, reference.EmitToImageReference() },
Semantics\StackAllocSpanExpressionsTests.cs (1)
779var references = new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef };
SourceGeneration\GeneratorDriverFuzzTests.cs (1)
281var editedInputs = new List<InMemoryAdditionalText>();
SourceGeneration\GeneratorDriverTests.cs (4)
1996List<Compilation> compilationsCalledFor = new List<Compilation>(); 2032List<AdditionalText> texts = new List<AdditionalText>() { new InMemoryAdditionalText("abc", "") }; 2294List<Compilation> compilationsCalledFor = new List<Compilation>(); 3361List<string?> referenceList = new List<string?>();
SourceGeneration\StateTableTests.cs (1)
946List<IncrementalGeneratorRunStep> steps = new();
SourceGeneration\SyntaxAwareGeneratorTests.cs (9)
937List<string> syntaxFilterVisited = new(); 1220List<string> fieldsCalledFor = new List<string>(); 1303List<string> fieldsCalledFor = new List<string>(); 1380List<string> syntaxFieldsCalledFor = new List<string>(); 1568List<string> syntaxCalledFor = new List<string>(); 1617List<string> syntaxCalledFor = new List<string>(); 1618List<string> noCompareCalledFor = new List<string>(); 1619List<string> compareCalledFor = new List<string>(); 2126public List<T> VisitedNodes { get; } = new List<T>();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (107)
Compilation\CompilationAPITests.cs (5)
338var listSyntaxTree = new List<SyntaxTree>(); 339var listRef = new List<MetadataReference>(); 933var listSyntaxTree = new List<SyntaxTree>(); 966var listRef = new List<MetadataReference>(); 1421var listRef = new List<MetadataReference> { ref1, ref2, ref3, ref4 };
Compilation\SemanticModelAPITests.cs (2)
1001var comp = CreateCompilation(new List<SyntaxTree> { tree1, tree2 }); 4803var exprSynList = new List<ExpressionSyntax>();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
5147public readonly List<IncompleteMemberSyntax> Incompletes = new List<IncompleteMemberSyntax>();
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (2)
200var refs = new System.Collections.Generic.List<MetadataReference>() { comp1ref }; 824var refs = new System.Collections.Generic.List<MetadataReference>() { asm01, asm02 };
Symbols\AnonymousTypesSemanticsTests.cs (2)
2049var nodes = new List<SyntaxNode>(); 2093List<TextSpan> intervals = new List<TextSpan>();
Symbols\InterfaceImplementationTests.cs (3)
235var refs = new System.Collections.Generic.List<MetadataReference>() { comp1ref }; 307var refs = new System.Collections.Generic.List<MetadataReference>() { comp1ref }; 421var refs = new System.Collections.Generic.List<MetadataReference>() { comp1ref };
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (2)
76var types = new List<NamedTypeSymbol>(); 77var namespaces = new List<NamespaceSymbol>();
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (10)
186references: new List<MetadataReference>() { 223references: new List<MetadataReference>() { 258references: new List<MetadataReference>() { 289references: new List<MetadataReference>() { 317references: new List<MetadataReference>() { 339references: new List<MetadataReference>() { 361references: new List<MetadataReference>() { 426references: new List<MetadataReference>() { new CSharpCompilationReference(localType1, embedInteropTypes: true) }); 431references: new List<MetadataReference>() { 471references: new List<MetadataReference>() {
Symbols\OverriddenOrHiddenMembersTests.cs (1)
736var refs = new System.Collections.Generic.List<MetadataReference>() { comp1ref };
Symbols\Source\MethodTests.cs (6)
758var comp2 = CreateCompilationWithMscorlib461(new string[] { text1 }, new List<MetadataReference>() { compRef1 }, assemblyName: "Test2"); 764var comp = CreateCompilationWithMscorlib461(new string[] { text2 }, new List<MetadataReference>() { compRef1, compRef2 }, assemblyName: "Test3"); 972var list = new List<Symbol>(); 1047var comp2 = CreateCompilation(new string[] { text1 }, new List<MetadataReference>() { compRef1 }, assemblyName: "Test2"); 1053var comp = CreateCompilation(new string[] { text2 }, new List<MetadataReference>() { compRef1, compRef2 }, assemblyName: "Test3"); 1081var list = new List<Symbol>();
Symbols\SymbolErrorTests.cs (67)
5494var comp = CreateCompilation(text, new List<MetadataReference> { ref1, ref2 }); 5516comp = CreateCompilation(new SyntaxTree[] { Parse(text, "goo.cs") }, new List<MetadataReference> { ref1 }); 5552var comp = DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, new List<MetadataReference> { ref1, ref2 }, 5588new List<MetadataReference>() 5627new List<MetadataReference>() 5672new List<MetadataReference>() 5686new List<MetadataReference>() 5734new List<MetadataReference>() 5747new List<MetadataReference>() 5793new List<MetadataReference>() 5807new List<MetadataReference>() 5855new List<MetadataReference>() 5868new List<MetadataReference>() 5914new List<MetadataReference>() 5926new List<MetadataReference>() 5971new List<MetadataReference>() 5984new List<MetadataReference>() 6030new List<MetadataReference>() 6043new List<MetadataReference>() 6089new List<MetadataReference>() 6102new List<MetadataReference>() 6136new List<MetadataReference>() 6172new List<MetadataReference>() 6208new List<MetadataReference>() 6244new List<MetadataReference>() 6287new List<MetadataReference>() 6300new List<MetadataReference>() 6347new List<MetadataReference>() 6361new List<MetadataReference>() 6409new List<MetadataReference>() 6422new List<MetadataReference>() 6469new List<MetadataReference>() 6483new List<MetadataReference>() 6534new List<MetadataReference>() 6547new List<MetadataReference>() 6597new List<MetadataReference>() 6610new List<MetadataReference>() 6660new List<MetadataReference>() 6677new List<MetadataReference>() 6731new List<MetadataReference>() 6744new List<MetadataReference>() 6794new List<MetadataReference>() 6810new List<MetadataReference>() 6863new List<MetadataReference>() 6880new List<MetadataReference>() 6928new List<MetadataReference>() 6945new List<MetadataReference>() 6964new List<MetadataReference>() 7013new List<MetadataReference>() 7027new List<MetadataReference>() 7043new List<MetadataReference>() 7088new List<MetadataReference>() 7143new List<MetadataReference>() 7232new List<MetadataReference>() 7307new List<MetadataReference>() 7320new List<MetadataReference>() 7330new List<MetadataReference>() 7339new List<MetadataReference>() 7359new List<MetadataReference>() 7372new List<MetadataReference>() 7386new List<MetadataReference>() 7400new List<MetadataReference>() 7410new List<MetadataReference>() 14838new List<MetadataReference> { reference }, 17637var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 }); 17675var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 }); 17918var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 });
Symbols\TypeTests.cs (6)
194references: new List<MetadataReference> { compRef1 }); 198references: new List<MetadataReference> { compRef2, compRef1 }); 380var comp = CreateCompilation(text1, references: new List<MetadataReference> { compRef1 }, assemblyName: "Comp2"); 399comp = CreateCompilation(text1, references: new List<MetadataReference> { compRef1 }, assemblyName: "Comp2"); 418comp = CreateCompilation(text1, references: new List<MetadataReference> { compRef1 }, assemblyName: "Comp2"); 441comp = CreateCompilation(text1, references: new List<MetadataReference> { compRef1 }, assemblyName: "Comp2");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (28)
LexicalAndXml\LexicalErrorTests.cs (1)
826var descriptions = new List<DiagnosticDescription>
LexicalAndXml\PreprocessorTests.cs (2)
129List<SyntaxKind> actual = new List<SyntaxKind>(); 148List<SyntaxKind> actual = new List<SyntaxKind>();
LexicalAndXml\XmlDocCommentTests.cs (11)
1678VerifyDiagnostics(tree.GetCompilationUnitRoot(), new List<TestError>() { new TestError(1570, true) }); 1695VerifyDiagnostics(tree.GetCompilationUnitRoot(), new List<TestError>() { new TestError(1570, true) }); 2243VerifyDiagnostics(tree.GetCompilationUnitRoot(), new List<TestError>() { new TestError(1035, false) }); 2368VerifyDiagnostics(trivias[0], new List<TestError>() { new TestError(1570, true) }); 2393VerifyDiagnostics(xmlText, new List<TestError>() { new TestError(1570, true) }); 2423VerifyDiagnostics(xmlText, new List<TestError>() { new TestError(1570, true) }); 2501VerifyDiagnostics(doc, new List<TestError>() { new TestError(1570, true), new TestError(1570, true) }); 2526VerifyDiagnostics(doc, new List<TestError>() { new TestError(1570, true), new TestError(1570, true) }); 2696VerifyDiagnostics(tree.GetCompilationUnitRoot(), new List<TestError> 2722VerifyDiagnostics(tree.GetCompilationUnitRoot(), new List<TestError> 2750VerifyDiagnostics(doc, new List<TestError>() { new TestError(1570, true), new TestError(1570, true) });
Syntax\SyntaxAnnotationTests.cs (3)
471var annotations = new List<Tuple<SyntaxAnnotation, SyntaxNodeOrToken>>(); 677this.NodeOrTokens = new List<SyntaxNodeOrToken>(); 678this.Trivia = new List<SyntaxTrivia>();
Syntax\SyntaxFactoryTests.cs (1)
278var builder = new System.Collections.Generic.List<ArgumentSyntax>();
Syntax\SyntaxNodeTests.cs (10)
1007var list = new List<SyntaxToken>(); 1084List<SyntaxToken> list = new List<SyntaxToken>(); 1106var list = new List<SyntaxToken>(); 1189List<SyntaxToken> list = new List<SyntaxToken>(); 1213var list = new List<SyntaxToken>(); 1234List<SyntaxToken> list = new List<SyntaxToken>(); 1255var list = new List<SyntaxToken>(); 1279List<SyntaxToken> list = new List<SyntaxToken>(); 1301var list = new List<SyntaxNodeOrToken>(); 1320var list = new List<SyntaxNodeOrToken>();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (18)
CSharpTestBase.cs (13)
1582synList = new List<SyntaxNode>(); 1708var nodeList = new List<TNode>(); 2292references: new List<MetadataReference>() { NetFramework.mscorlib, NetFramework.SystemCore, NetFramework.MicrosoftCSharp }, 2299references: new List<MetadataReference>() { NetFramework.mscorlib, NetFramework.SystemCore, NetFramework.MicrosoftCSharp, reference.EmitToImageReference() }, 2311references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 2326references: new List<MetadataReference>() { reference.EmitToImageReference() }, 2337references: new List<MetadataReference>() { reference.EmitToImageReference() }, 2348references: new List<MetadataReference>() { reference.EmitToImageReference() }, 2365references: new List<MetadataReference>() { reference.EmitToImageReference() }, 2383references: new List<MetadataReference>() { reference.EmitToImageReference() }, 2613return new List<object[]>() 2625return new List<object[]>() 2637return new List<object[]>()
DiagnosticTestUtilities.cs (1)
58return VerifyErrorsAndGetCompilationWithMscorlib(new List<string> { text }, refs, expectedErrorDesp);
MetadataTestHelpers.cs (1)
48var refs = new List<MetadataReference>();
MockCSharpCompiler.cs (1)
67diagnostics = new List<DiagnosticInfo>();
SemanticModelTestBase.cs (1)
41exprSynList = new List<ExpressionSyntax>();
TestOptions.cs (1)
158var list = new List<KeyValuePair<string, string>>();
Microsoft.CodeAnalysis.CSharp.Workspaces (33)
CodeGeneration\CSharpSyntaxGenerator.cs (5)
402var accessors = new List<AccessorDeclarationSyntax>(); 472var accessors = new List<AccessorDeclarationSyntax>(); 555var accessors = new List<AccessorDeclarationSyntax>(); 2822var newNodes = new List<SyntaxNode>(); 2928var newNodes = new List<SyntaxNode>
Rename\CSharpRenameRewriterLanguageService.cs (1)
847var properties = new List<ISymbol>();
Rename\LabelConflictVisitor.cs (1)
31var tokens = new List<SyntaxToken>();
Rename\LocalConflictVisitor.cs (5)
43var tokens = new List<SyntaxToken>(); 72var tokens = new List<SyntaxToken>(); 86var tokens = new List<SyntaxToken>(); 100var tokens = new List<SyntaxToken>(); 134var 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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
118var partsList = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
597var result = new List<IList<TSyntaxNode>>(); 599var currentGroup = new List<TSyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1057var constructors = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (1)
77var result = new List<SimpleNameSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
26var members = new List<SyntaxNodeOrToken>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
162var accessors = new List<AccessorDeclarationSyntax?>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
227var attributes = new List<AttributeListSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
318var types = new List<BaseTypeSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
22var newUsings = new List<UsingDirectiveSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (1)
144var usings = new List<UsingDirectiveSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (2)
26var clauses = new List<TypeParameterConstraintClauseSyntax>(); 40var constraints = new List<TypeParameterConstraintSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\QueryExpressionSyntaxExtensions.cs (2)
15var result = new List<SyntaxNode> 26var result = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
25var indices = new List<bool>();
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingMultipleSpanTests.cs (1)
182var spans = new List<TextSpan>();
Microsoft.CodeAnalysis.EditorFeatures (15)
CommentSelection\AbstractToggleBlockCommentBase.cs (1)
406var uncommentedSpans = new List<TextSpan>();
CommentSelection\ToggleLineCommentCommandHandler.cs (1)
157var lines = new List<ITextSnapshotLine>();
IntelliSense\AsyncCompletion\FilterSet.cs (1)
159var result = new List<CompletionFilter>();
Preview\AbstractPreviewFactoryService.cs (4)
77var previewItems = new List<SolutionPreviewItem>(); 733var result = new List<LineSpan>(); 809var lineSpans = new List<Span>(); 824var lineSpans = new List<Span>();
Preview\SolutionPreviewResult.cs (1)
54var result = new List<object>();
Shared\Extensions\ClassificationExtensions.cs (1)
19var result = new List<ClassificationSpan>();
Shared\Extensions\IProjectionBufferFactoryServiceExtensions.cs (4)
74var finalSpans = new List<object>(); 244var spans = new List<object>(); 319var result = new List<IList<SnapshotSpan>>(); 334var result = new List<SnapshotSpan>();
Shared\Extensions\ITextSelectionExtensions.cs (1)
19var list = new List<SnapshotSpan>();
Structure\AbstractStructureTaggerProvider.cs (1)
337var sourceSpans = new List<object>()
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (6)
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (1)
61var highlightSpans = new List<TextSpan>();
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
458var locationsForName = locations.GetValueOrDefault(name, new List<LSP.Location>());
Rename\RenamerTests.cs (2)
45var documentIdToDocumentInfoMap = new List<(DocumentId, DocumentWithInfo)>(); 180var documentIdToDocumentInfoMap = new List<(DocumentId, DocumentWithInfo)>();
Workspaces\EditorTestWorkspace.cs (2)
361projectionBufferSpans = new List<object>(); 362var projectionBufferSpanStartingPositions = new List<int>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (13)
CodeGeneration\CodeGenerationTests.cs (1)
598var allMembers = new List<ISymbol>();
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (1)
782var spans = new List<Span>();
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (3)
28var diagnosticIdAndOptions = new List<(string diagnosticId, ImmutableHashSet<IOption2> options)>(); 716var baseline = new List<(string diagnosticId, string optionName, string optionValue)>(); 742var extraEntitiesBuilder = new List<(string diagnosticId, string optionName, string optionValue)>();
Extensions\EnumerableExtensionTests.cs (2)
24var result = new List<int>(); 82var seq = new List<int>() { 1, 2, 3 };
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
96var references = new List<MetadataReference>();
RenameTracking\RenameTrackingTestState.cs (1)
172var actions = new List<CodeAction>();
TextEditor\OpenDocumentTests.cs (1)
38var documentIds = new List<DocumentId>();
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (1)
18var allReferences = new List<ReferenceInfo>();
Utilities\BloomFilterTests.cs (1)
209var allHashSets = new List<HashSet<string>>
Utilities\PatternMatcherTests.cs (1)
490var flattened = new List<TextSpan>();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (8)
NavigateTo\NavigateToItemDisplay.cs (2)
63return new List<DescriptionItem>().AsReadOnly(); 66var items = new List<DescriptionItem>
SignatureHelp\Presentation\Signature.cs (4)
106var parts = new List<TaggedText>(); 107var prettyPrintedParts = new List<TaggedText>(); 109var parameters = new List<IParameter>(); 218var result = new List<TaggedText>
Suggestions\SuggestedActions\SuggestedAction.CaretPositionRestorer.cs (1)
46var result = new List<Tuple<ITextView, IMappingPoint>>();
WpfClassificationExtensions.cs (1)
40var inlines = new List<Inline>();
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
Request.cs (1)
38_resolvedAddresses = new List<Address>();
Resolver.cs (1)
39requests = new List<Request>();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ArrayBuilder.cs (1)
37_items = new List<T>();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ArrayBuilder.cs (1)
37_items = new List<T>();
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Testing\RazorTestLanguageServerFactory.cs (1)
56folders ??= new List<string>();
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Internal\DescriptionService.cs (1)
69var builder = new List<TaggedText>();
Microsoft.CodeAnalysis.Features (44)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (2)
259var getChangedDocumentsTasks = new List<Task>(); 284var getFinalDocumentTasks = new List<Task>();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
211var builder = new List<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>>();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (2)
118var attributeRemoveFixes = new List<AttributeRemoveAction>(); 119var newBatchOfFixes = new List<(Diagnostic diagnostic, CodeAction action)>();
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
444var refLocationsInCurrentDocument = new List<LocationForAffectedSymbol>(); 445var refLocationsInOtherDocuments = new List<LocationForAffectedSymbol>();
Completion\CommonCompletionUtilities.cs (1)
99var textContentBuilder = new List<TaggedText>();
Completion\CompletionService_GetCompletions.cs (1)
408_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)
500var list = new List<UnitTestingWorkItem>();
ExtractMethod\AbstractSyntaxTriviaService.cs (2)
126var triviaLeftAtCallSite = new List<SyntaxTrivia>(); 127var 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)
61var listOfParametersOrdinals = new List<int>();
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
372var nodesToTrack = new List<SyntaxNode> { constructorDeclaration };
InlineHints\InlineHintHelpers.cs (1)
31var parts = new List<TaggedText>();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
313var requiredArguments = new List<SyntaxNode>();
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (3)
213var parts = new List<SymbolDisplayPart>(); 257var parts = new List<SymbolDisplayPart>(); 375var finalParts = new List<SymbolDisplayPart>();
PdbSourceDocument\SourceLinkMap.cs (1)
70var list = new List<Entry>();
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
90var candidateResults = new List<(DocumentId docId, TokenInformation tokenInformation)>
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
66var 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>();
SemanticSearch\SemanticSearchUtilities.cs (1)
34var metadataReferences = new List<MetadataReference>();
Shared\Utilities\SupportedPlatformData.cs (1)
27var builder = new List<SymbolDisplayPart>();
SignatureHelp\AbstractSignatureHelpProvider.cs (3)
199var structuralTypeParts = new List<SymbolDisplayPart> 262var finalItems = new List<SignatureHelpItem>(); 328var startingNewLine = new List<TaggedText>();
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
64var removedNodes = new List<SyntaxNode> { paramNode };
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
106var removalList = new List<int>();
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
44var declarators = new List<TSymbolSyntax>();
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
175var newArms = new List<TSwitchArmSyntax>();
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (1)
47var result = new List<CodeAction>();
Microsoft.CodeAnalysis.Features.Test.Utilities (7)
EditAndContinue\ActiveStatementsDescription.cs (1)
103new List<UnmappedActiveStatement>(),
EditAndContinue\EditAndContinueTestVerifier.cs (1)
147var allEdits = new List<SemanticEditInfo>();
EditAndContinue\SourceMarkers.cs (4)
96var result = new List<(int id, TextSpan span)>(); 117var result = new List<List<TextSpan>>(); 142var result = new List<List<TextSpan>>(); 159var result = new List<TextSpan>();
RelatedDocuments\AbstractRelatedDocumentsTests.cs (1)
35var results = new List<DocumentId>();
Microsoft.CodeAnalysis.Features.UnitTests (1)
FindUsages\DefinitionItemFactoryTests.cs (1)
92var failures = new List<Exception>();
Microsoft.CodeAnalysis.InteractiveHost (3)
Interactive\Core\InteractiveHost.Service.cs (3)
550var metadataReferences = new List<PortableExecutableReference>(); 623var attempts = new List<string>(); 777var displayedDiagnostics = new List<Diagnostic>();
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\LanguageServerProjectSystem.cs (1)
248var existingProjects = _loadedProjects.GetOrAdd(projectPath, static _ => new List<LoadedProject>());
HostWorkspace\LanguageServerWorkspaceFactory.cs (1)
59var references = new List<AnalyzerFileReference>();
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Handler\Highlights\DocumentHighlightHandler.cs (1)
80var keywordSpans = new List<TextSpan>();
Handler\ProjectContext\GetTextDocumentWithContextHandler.cs (1)
47var contexts = new List<VSProjectContext>();
Protocol\Converters\NaturalObjectConverter.cs (1)
58var list = new List<object?>();
Protocol\Converters\SumConverter.cs (4)
46var allUnionTypeInfosSet = new List<UnionTypeInfo>(); 71primitiveUnionTypeInfosSet ??= new List<UnionTypeInfo>(); 76arrayUnionTypeInfosSet ??= new List<UnionTypeInfo>(); 81objectUnionTypeInfosSet ??= new List<UnionTypeInfo>();
Protocol\Internal\Converters\ClassifiedTextElementConverter.cs (1)
18List<ClassifiedTextRun> objects = new();
Protocol\Internal\Converters\ContainerElementConverter.cs (1)
24List<object> objects = new();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (1)
137private static readonly IReadOnlyList<string> RequiredMethods = new List<string> { "initialize", "initialized", "shutdown", "exit" };
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
CodeActions\CodeActionResolveTests.cs (1)
196edit: GenerateRenameFileEdit(new List<(Uri, Uri)> { (documentUriBefore, documentUriAfter) }));
Diagnostics\DiagnosticRegistrationTests.cs (1)
99private readonly List<Registration> _registrations = new();
Ordering\RequestOrderingTests.cs (1)
299var waitables = new List<Task<TestResponse?>>();
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
451List<(string, string)> options = new List<(string, string)>();
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
RebuildCommandLineTests.cs (2)
217var list = new List<object?[]>(); 411var list = new List<object?[]>();
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\TestUtils.cs (1)
103var items = new List<KeyValuePair<Checksum, object>>();
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (1)
307var paths = new List<string>();
Microsoft.CodeAnalysis.Scripting (9)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (2)
206_loadedAssembliesBySimpleName.Add(identity.Name, new List<LoadedAssemblyInfo> { info }); 219_dependenciesWithLocationBySimpleName.Add(simpleName, new List<AssemblyIdentityAndLocation> { dependency });
Hosting\CommandLine\CommandLineRunner.cs (2)
112var diagnosticsInfos = new List<DiagnosticInfo>(); 159var 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)
289var members = new List<FormattedMember>(); 331var members = new List<MemberInfo>();
Hosting\SynchronizedList.cs (1)
15private readonly List<T> _list = new List<T>();
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ScriptTestBase.cs (1)
25private readonly List<MetadataImageReference> _referenceList = new List<MetadataImageReference>();
Microsoft.CodeAnalysis.Test.Utilities (48)
Assert\ArtifactUploadUtil.cs (2)
28private readonly List<string> _filePaths = new List<string>(); 29private readonly List<string> _directoryPaths = new List<string>();
Assert\AssertEx.cs (1)
982(exceptions ??= new()).Add((index, ex));
CommonTestBase.cs (4)
371var references = new List<MetadataReference>(); 458var references = new List<MetadataReference>(); 719return new List<object[]>() 727return new List<object[]>()
Compilation\CompilationDifference.cs (1)
143var actual = new List<string>();
Compilation\IRuntimeEnvironment.cs (2)
154var list = new List<Compilation>(); 178var list = new List<Compilation>();
CompilationVerifier.cs (1)
74var images = new List<ImmutableArray<byte>>
Diagnostics\CommonDiagnosticAnalyzers.cs (16)
2118IList<ISymbol> containersToVerify = new List<ISymbol>(); 2982public readonly List<SyntaxTree> AnalyzedTrees = new(); 2983public readonly List<SemanticModel> AnalyzedSemanticModels = new(); 2984public readonly List<ISymbol> AnalyzedSymbols = new(); 2985public readonly List<ISymbol> AnalyzedSymbolStartSymbols = new(); 2986public readonly List<ISymbol> AnalyzedSymbolEndSymbols = new(); 2987public readonly List<IOperation> AnalyzedOperations = new(); 2988public readonly List<ISymbol> AnalyzedOperationBlockSymbols = new(); 2989public readonly List<IOperation> AnalyzedOperationsInsideOperationBlock = new(); 2990public readonly List<ISymbol> AnalyzedOperationBlockStartSymbols = new(); 2991public readonly List<ISymbol> AnalyzedOperationBlockEndSymbols = new(); 2992public readonly List<SyntaxNode> AnalyzedSyntaxNodes = new(); 2993public readonly List<ISymbol> AnalyzedCodeBlockSymbols = new(); 2994public readonly List<SyntaxNode> AnalyzedSyntaxNodesInsideCodeBlock = new(); 2995public readonly List<ISymbol> AnalyzedCodeBlockStartSymbols = new(); 2996public readonly List<ISymbol> AnalyzedCodeBlockEndSymbols = new();
Diagnostics\OperationTestAnalyzer.cs (2)
1693var nullList = new List<IOperation>(); 1694var paramsList = new List<IOperation>();
Diagnostics\ThrowingDiagnosticAnalyzer.cs (1)
43private readonly List<string> _throwOnList = new List<string>();
FX\DirectoryHelper.cs (1)
36var files = new List<string>();
InstrumentationChecker.cs (1)
372_snippetExpectations = new List<string>();
MarkedSource\MarkupTestFile.cs (1)
70var matches = new List<(int matchIndex, string name)>();
Metadata\ILBuilderVisualizer.cs (1)
82var spans = new List<HandlerSpan>();
Metadata\MetadataSignatureUnitTestHelper.cs (3)
29var expected = new List<string>(); 30var actual = new List<string>(); 82actualSignatures = new List<string>();
Mocks\TestMissingMetadataReferenceResolver.cs (1)
35public readonly List<ReferenceAndIdentity> ResolutionAttempts = new List<ReferenceAndIdentity>();
Platform\CoreClr\CoreCLRRuntimeEnvironment.cs (1)
45var dependencies = new List<ModuleData>();
Platform\Custom\MetadataSignatureHelper.cs (4)
160List<string> list = new List<string>(); 183List<string> list = new List<string>(); 202List<string> list = new List<string>(); 667var candidates = new List<string>();
SourceGeneration\TestGenerators.cs (1)
20private readonly List<(string content, string hintName)> _sources = new();
TestableCompiler.cs (2)
120var args = new List<string>(); 167var args = new List<string>();
TestableFile.cs (1)
61public List<byte> Contents { get; } = new List<byte>();
Win32Res.cs (1)
140var result = new List<Tuple<string, string>>();
Microsoft.CodeAnalysis.UnitTests (29)
AnalyzerAssemblyLoaderTests.cs (1)
1201var analyzerFilePaths = new List<string>();
Analyzers\AnalyzerFileReferenceTests.cs (7)
147List<AnalyzerLoadFailureEventArgs> errors = new List<AnalyzerLoadFailureEventArgs>(); 166List<AnalyzerLoadFailureEventArgs> errors = new List<AnalyzerLoadFailureEventArgs>(); 183List<AnalyzerLoadFailureEventArgs> errors = new List<AnalyzerLoadFailureEventArgs>(); 243List<AnalyzerLoadFailureEventArgs> errors = new List<AnalyzerLoadFailureEventArgs>(); 261List<AnalyzerLoadFailureEventArgs> errors = new List<AnalyzerLoadFailureEventArgs>(); 283List<AnalyzerLoadFailureEventArgs> errors = new List<AnalyzerLoadFailureEventArgs>(); 494List<AnalyzerLoadFailureEventArgs> errors = new List<AnalyzerLoadFailureEventArgs>();
AsyncQueueTests.cs (2)
77var list = new List<Task<int>>(); 118var list = new List<Task<int>>();
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (2)
294List<T> objects = new List<T>() { CreateT(1), CreateT(2), CreateT(3), CreateT(4), CreateT(5), CreateT(6) }; 328List<T> objects = new List<T>() { CreateT(1), CreateT(2), CreateT(3), CreateT(4), CreateT(5), CreateT(6) };
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (2)
200var list = new List<KeyValuePair<int, int>> { new KeyValuePair<int, int>(3, 5), new KeyValuePair<int, int>(8, 10) }; 274var list = new List<T>();
Collections\ImmutableListTestBase.cs (1)
561IList bclList = new List<T> { item };
Collections\ImmutableSegmentedListTest.cs (2)
42var expected = new List<int>(); 221var list = new List<int>();
Collections\ImmutableSetTest.cs (5)
238var list = new List<T>(); 296return new List<SetTriad> 314return new List<SetTriad> 327var results = new List<SetTriad> 345return new List<SetTriad>
Collections\List\ICollection.NonGeneric.Tests.cs (1)
110protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(ModifyOperation operations) => new List<ModifyEnumerable>();
Collections\TemporaryArrayTests.cs (1)
241var result = new List<ImmutableArray<T>>();
Diagnostics\DiagnosticLocalizationTests.cs (2)
287var exceptions = new List<Exception>(); 302var exceptionDiagnostics = new List<Diagnostic>();
Diagnostics\SuppressMessageTargetSymbolResolverTests.cs (1)
1347var expectedSymbols = new List<ISymbol>();
InternalUtilities\WeakListTests.cs (1)
90var nonWeakList = new List<object>();
Text\SourceTextTests.cs (1)
256var allSourceTexts = new List<SourceText>();
Microsoft.CodeAnalysis.VisualBasic (2)
Analysis\FlowAnalysis\AlwaysAssignedWalker.vb (1)
39Dim result As New List(Of Symbol)
OptionsValidator.vb (1)
33Dim parsedImportList As New List(Of GlobalImport)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
FlowAnalysis\FlowTestBase.vb (3)
40Dim symbols As New List(Of MethodSymbol) 74Dim startNodes As New List(Of VisualBasicSyntaxNode) 75Dim endNodes As New List(Of VisualBasicSyntaxNode)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (1)
402references:=New List(Of MetadataReference)() From {TestReferences.SymbolsTests.NoPia.NoPIAGenericsAsm1})
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Syntax\SyntaxAnnotationTests.vb (3)
433Dim annotations = New List(Of Tuple(Of SyntaxAnnotation, SyntaxNodeOrToken))() 634Me.NodeOrTokens = New List(Of SyntaxNodeOrToken)() 635Me.Trivia = New List(Of SyntaxTrivia)()
Microsoft.CodeAnalysis.Workspaces (47)
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>
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
275var ignoreErrorCodes = new List<string> 704var possibleNameConflictsList = new List<string>();
Rename\ConflictEngine\RenamedSpansTracker.cs (1)
189var modifiedSubSpans = new List<(TextSpan oldSpan, TextSpan newSpan)>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
260var results = new List<RenameLocation>();
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
24var result = new List<string>();
Shared\Extensions\ISymbolExtensions.cs (1)
336var result = new List<XNode>();
Shared\Utilities\ExtensionOrderer.Graph.cs (1)
35var result = new List<Lazy<TExtension, TMetadata>>();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
744List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamespaceOrTypeSymbolExtensions.cs (1)
35var result = new List<string>();
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
74var operations = new List<IndentBlockOperation>(); 75var list = new List<IndentBlockOperation>();
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
60var result = new List<TextChange>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
313var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
151var list = new List<AnchorIndentationOperation>(); 163var list = new List<IndentBlockOperation>(); 175var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1108var specifiedParameters1 = new List<IParameterSymbol>(); 1109var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (1)
509(_exceptions ??= new List<Exception>()).Add(e);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
300var newMembers = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (2)
64var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 67var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
54var names = new List<string>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
108var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
19var assemblies = new List<Assembly>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
89var result = new List<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
23exceptions ??= new List<Exception>();
Workspace\CommandLineProject.cs (1)
147var documents = new List<DocumentInfo>();
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
699var projectReferencesCreated = new List<ProjectReference>();
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
489var newReferences = new List<MetadataReference>();
Workspace\Workspace.cs (1)
1263var updatedDocumentIds = new List<DocumentId>();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
232var idsAndFileInfos = new List<(ProjectId id, ProjectFileInfo fileInfo)>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (1)
56var list = new List<string>();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
744List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
SolutionGeneration.cs (1)
64var list = new List<(string, object)>();
VisualStudioMSBuildWorkspaceTests.cs (1)
2478var result = new List<(string, object)>();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (16)
Options\NamingStyleTestUtilities.cs (1)
35var elementsToRemove = new List<XElement>();
Options\OptionsTestHelpers.cs (3)
158var symbolSpecifications = new List<SymbolSpecification>(); 159var namingStyles = new List<NamingStyle>(); 160var namingRules = new List<SerializableNamingRule>();
SolutionUtilities.cs (3)
57var changedDocuments = new List<DocumentId>(); 77var changedDocuments = new List<DocumentId>(); 89var addedDocuments = new List<DocumentId>();
Workspaces\TestWorkspace_XmlConsumption.cs (6)
161var documents = new List<TDocument>(); 200var additionalDocuments = new List<TDocument>(); 215var analyzerConfigDocuments = new List<TDocument>(); 409var globalImports = new List<GlobalImport>(); 816var analyzers = new List<AnalyzerReference>(); 831var references = new List<MetadataReference>();
Workspaces\TestWorkspace_XmlCreation.cs (1)
31var documentElements = new List<XElement>();
Workspaces\TestWorkspace`1.cs (2)
707var submissions = new List<TProject>(); 726var documents = new List<TDocument> { document };
Microsoft.CodeAnalysis.Workspaces.UnitTests (21)
BatchFixAllProviderTests.cs (1)
95var fixes = new List<CodeAction>();
EditorConfigParsing\EditorConfigFileParserTests.cs (1)
17var list = new List<EditorConfigOption>();
ExtensionOrdererTests.cs (11)
26var extensions = new List<Lazy<Extension, OrderableMetadata>>() { d, b, a, c, e }; 43var extensions = new List<Lazy<Extension, OrderableMetadata>>() { d, b, a, c, e }; 60var extensions = new List<Lazy<Extension, OrderableMetadata>>() { d, b, a, c, e }; 77var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e }; 94var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e }; 109var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c }; 124var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c }; 143var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e, f, g }; 162var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e, f, g }; 180var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e, f }; 198var extensions = new List<Lazy<Extension, OrderableMetadata>>() { a, b, c, d, e, f };
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (1)
22var documentIds = new List<DocumentId>();
Remote\ServiceDescriptorTests.cs (2)
57var interfaces = new List<Type>(); 299var errors = new List<string>();
SymbolKeyTests.cs (3)
1496var list = new List<ISymbol>(); 1531var list = new List<ISymbol>(); 1551var results = new List<ISymbol>();
UtilityTest\WeakEventTests.cs (1)
19var target = new List<int>();
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
173var events = new List<OptionChangedEventArgs>();
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
HandlerProvider.cs (1)
137private static readonly IReadOnlyList<string> RequiredMethods = new List<string> { "initialize", "initialized", "shutdown", "exit" };
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
HandlerProviderTests.cs (1)
100var services = new List<(Type, object)>
Microsoft.CSharp (30)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
355List<string> argNames = new List<string>();
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (2)
44var v = new List<DynamicMetaObject> { self }; 445var result = new List<KeyValuePair<string, object>>();
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
890List<Expression> expressions = new List<Expression>();
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
548List<CType> callingTypes = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (1)
686List<UdConvInfo> prguci = new List<UdConvInfo>();
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (2)
563List<CandidateFunctionMember> methFirstList = new List<CandidateFunctionMember>(); 1314argInfo.prgexpr = new List<Expr>();
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (2)
77_methList = new List<CandidateFunctionMember>(); 83_HiddenTypes = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (3)
272_prgtype = new List<AggregateType>(); 493_methPropWithTypeList = new List<MethPropWithType>(); 494_rgtypeStart = new List<AggregateType>();
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (6)
132_pLowerBounds[iBound] = new List<CType>(); 133_pUpperBounds[iBound] = new List<CType>(); 134_pExactBounds[iBound] = new List<CType>(); 1605List<CType> initialCandidates = new List<CType>(); 1645List<CType> removeList = new List<CType>(); 1663List<CType> removeList = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (3)
499List<BinOpFullSig> binopSignatures = new List<BinOpFullSig>(); 1183List<UnaOpFullSig> pSignatures = new List<UnaOpFullSig>(); 2526List<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)
216(events ??= new List<EventInfo>()).Add(e); 257list = new List<Type> { type }; 333List<CType> ctypes = new List<CType>(); 672List<CType> types = new List<CType>(); 739List<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 (21)
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 (14)
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);
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.DotNet.Arcade.Sdk (2)
src\ExtractNgenMethodList.cs (1)
54var items = new List<string>();
src\InstallDotNetCore.cs (1)
215var items = new List<KeyValuePair<string, string>>();
Microsoft.DotNet.AsmDiff (6)
ApiRecordingCSharpDiffWriter.cs (2)
17private List<DiffApiDefinition> _apis = new List<DiffApiDefinition>(); 61var newChildren = new List<DiffApiDefinition>();
DiffCSharpWriter.cs (1)
351List<Tuple<DifferenceType, SyntaxToken>> merged = new List<Tuple<DifferenceType, SyntaxToken>>();
DiffEngine.cs (2)
178var lines = new List<DiffLine>(); 179var currentLineTokens = new List<DiffToken>();
DiffRecorder.cs (1)
20public List<DiffToken> Tokens { get; } = new List<DiffToken>();
Microsoft.DotNet.Build.Tasks.Feed (6)
src\AzureDevOpsArtifactFeed.cs (1)
41Permissions = new List<AzureDevOpsFeedPermission>
src\BuildModelFactory.cs (2)
144var blobArtifacts = new List<BlobArtifactModel>(); 145var packageArtifacts = new List<PackageArtifactModel>();
src\common\LatestLinksManager.cs (1)
79List<AkaMSLink> newLinks = new List<AkaMSLink>();
src\common\UploadToAzure.cs (1)
84List<Task> uploadTasks = new List<Task>();
src\model\PublishingConstants.cs (1)
317public static readonly List<TargetChannelConfig> ChannelInfos = new List<TargetChannelConfig>() {
Microsoft.DotNet.Build.Tasks.Feed.Tests (24)
GenerateBuildManifestTests.cs (2)
56IList<string> actualPath = new List<string>(); 57IList<string> actualBuildModel = new List<string>();
LatestLinksManagerTests.cs (3)
112links.Should().BeEquivalentTo(new List<AkaMSLink> 179links.Should().BeEquivalentTo(new List<AkaMSLink> 216links.Should().BeEquivalentTo(new List<AkaMSLink>
PushToBuildStorageTests.cs (15)
217IList<string> actualPath = new List<string>(); 218IList<string> actualBuildModel = new List<string>(); 248IList<string> actualPath = new List<string>(); 249IList<string> actualBuildModel = new List<string>(); 280IList<string> actualPath = new List<string>(); 281IList<string> actualBuildModel = new List<string>(); 282IList<string> files = new List<string> { PACKAGE_A, PACKAGE_B, SAMPLE_MANIFEST }; 287IList<string> actualNupkgInfoPath = new List<string>(); 328IList<string> actualPath = new List<string>(); 329IList<string> actualBuildModel = new List<string>(); 330IList<string> files = new List<string> { PACKAGE_A, PACKAGE_B, SAMPLE_MANIFEST }; 377IList<string> actualPath = new List<string>(); 378IList<string> actualBuildModel = new List<string>(); 379IList<string> files = new List<string> { PACKAGE_A, PACKAGE_B, SAMPLE_MANIFEST }; 384IList<string> actualNupkgInfoPath = new List<string>();
SetupTargetFeedConfigV3Tests.cs (4)
43private readonly List<TargetFeedContentType> InstallersAndSymbols = new List<TargetFeedContentType>() { 91var expectedFeeds = new List<TargetFeedConfig>(); 208var expectedFeeds = new List<TargetFeedConfig>(); 319var expectedFeeds = new List<TargetFeedConfig>();
Microsoft.DotNet.Build.Tasks.Installers (1)
src\BuildFPMToolPreReqs.cs (1)
138var parameters = new List<string>();
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)
333List<PackageDependencyGroup> packedPackageDependencyGroups = new List<PackageDependencyGroup>(); 336List<NuGet.Packaging.Core.PackageDependency> packages = new List<NuGet.Packaging.Core.PackageDependency>(); 348List<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 (21)
CreateVisualStudioWorkload.wix.cs (7)
136List<WorkloadManifestPackage> manifestPackages = new(); 137List<WorkloadManifestMsi> manifestMsisToBuild = new(); 198List<WorkloadPackGroupJson> packGroupJsonList = new(); 268packsInWorkloadByPlatform[platform] = new(); 299groupPackage.ManifestsPerPlatform[platform] = new(); 332List<ITaskItem> msiItems = new(); 333List<ITaskItem> swixProjectItems = new();
CreateVisualStudioWorkloadSet.wix.cs (3)
41List<WorkloadSetMsi> workloadSetMsisToBuild = new(); 42List<ITaskItem> msiItems = new(); 43List<ITaskItem> swixProjectItems = new();
Msi\MsiUtils.wix.cs (4)
52List<FileRow> files = new(); 73List<DirectoryRow> directories = new(); 94List<RegistryRow> registryKeys = new(); 118List<RelatedProduct> relatedProducts = new();
Msi\WorkloadManifestMsi.wix.cs (2)
23public List<WorkloadPackGroupJson> WorkloadPackGroups { get; } = new(); 169public List<WorkloadPackJson> Packs { get; set; } = new List<WorkloadPackJson>();
Msi\WorkloadPackGroupMsi.wix.cs (1)
31List<string> packageContentWxsFiles = new List<string>();
Swix\SwixPackageBase.cs (1)
17} = new List<SwixDependency>();
Wix\CompilerToolTask.cs (1)
16private List<string> _sourceFiles = new();
Wix\WixToolTaskBase.cs (1)
17private List<string> _preprocessorDefinitions = new();
WorkloadPackGroupPackage.wix.cs (1)
15public List<WorkloadPackPackage> Packs { get; set; } = new();
Microsoft.DotNet.Build.Tasks.Workloads.Tests (1)
SwixPackageGroupTests.cs (1)
46public static readonly IEnumerable<object[]> PackageGroupData = new List<object[]>
Microsoft.DotNet.Deployment.Tasks.Links (2)
Microsoft.DotNet.GenFacades (2)
SourceGenerator.cs (1)
47List<string> externAliases = new List<string>();
TypeParser.cs (1)
136List<SyntaxTree> result = new List<SyntaxTree>();
Microsoft.DotNet.Helix.Client (1)
generated-code\PagedResponse.cs (1)
17var results = new List<T>();
Microsoft.DotNet.Helix.JobSender (2)
JobDefinition.cs (2)
29_workItems = new List<WorkItemDefinition>(); 178var jobList = new List<JobListEntry>();
Microsoft.DotNet.Helix.Sdk (3)
FindDotNetCliPackage.cs (1)
83var feeds = new List<ITaskItem>();
GetHelixWorkItems.cs (1)
53var workItems = new List<ITaskItem>();
InstallDotNetTool.cs (1)
124var args = new List<string>()
Microsoft.DotNet.Helix.Sdk.Tests (2)
FindDotNetCliPackageTests.cs (2)
23List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>() 174List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>()
Microsoft.DotNet.NuGetRepack.Tasks (3)
src\NuGetVersionUpdater.cs (2)
285var errors = new List<Exception>(); 352var errors = new List<Exception>();
src\UpdatePackageVersionTask.cs (1)
73var preReleaseDependencies = new List<string>();
Microsoft.DotNet.NuGetRepack.Tests (5)
TestHelpers\FakeBuildEngine.cs (5)
15public List<BuildErrorEventArgs> LogErrorEvents = new List<BuildErrorEventArgs>(); 18new List<BuildMessageEventArgs>(); 21new List<CustomBuildEventArgs>(); 24new List<BuildWarningEventArgs>(); 26public readonly List<ImmutableArray<XElement>> FilesToSign = new List<ImmutableArray<XElement>>();
Microsoft.DotNet.Open.Api.Tools.Tests (5)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (2)
18private readonly List<string> _items = new List<string>(); 19private readonly List<string> _properties = new List<string>();
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (3)
14private readonly List<TemporaryCSharpProject> _projects = new List<TemporaryCSharpProject>(); 15private readonly List<TemporaryDirectory> _subdirs = new List<TemporaryDirectory>(); 126var segments = 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.PackageTesting.Tests (17)
GetCompatibilePackageTargetFrameworksTests.cs (17)
18public static IEnumerable<object[]> PackageTfmData => new List<object[]> 23new List<string> 27new List<NuGetFramework> 37new List<string> 41new List<NuGetFramework> 51new List<string> 56new List<NuGetFramework> 67new List<string> 71new List<NuGetFramework> 78new List<string> 83new List<NuGetFramework> 91new List<string> 96new List<NuGetFramework> 106new List<string> 112new List<NuGetFramework> 124new List<string> 128new List<NuGetFramework>
Microsoft.DotNet.SharedFramework.Sdk (6)
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>();
src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
176var types = new List<string>();
Microsoft.DotNet.SignCheck (5)
SignCheck.cs (3)
193var inputFiles = new List<string>(); 194var downloadFiles = new List<Uri>(); 229var _matchedFiles = new List<string>();
SignCheckTask.cs (1)
108List<string> inputFiles = new List<string>();
Utils.cs (1)
21var directories = new List<string>();
Microsoft.DotNet.SignCheckLibrary (13)
Interop\PortableExecutable\ImageSectionHeader.cs (1)
69var sectionHeaders = new List<IMAGE_SECTION_HEADER>();
Interop\PortableExecutable\PortableExecutableHeader.cs (1)
181_imageSectionHeaders = new List<IMAGE_SECTION_HEADER>();
Logging\Log.cs (1)
29_loggers = new List<ILogger>();
Verification\AuthentiCode.cs (2)
68var timestamps = new List<Timestamp>(); 101var timestamps = new List<Timestamp>();
Verification\Exclusions.cs (1)
15private List<Exclusion> _exclusions = new List<Exclusion>();
Verification\Jar\JarError.cs (1)
11private static List<string> _errors = new List<string>();
Verification\Jar\JarFile.cs (1)
184var signatureFiles = new List<JarSignatureFile>();
Verification\Jar\JarSignatureFile.cs (1)
84_timestamps = new List<Timestamp>();
Verification\NupkgVerifier.cs (1)
36List<ISignatureVerificationProvider> providers = new()
Verification\SignatureVerificationManager.cs (1)
48_results = new List<SignatureVerificationResult>();
Verification\SignatureVerificationResult.cs (2)
143_nestedResults = new List<SignatureVerificationResult>(); 163_timestamps = new List<Timestamp>();
Microsoft.DotNet.SignTool (9)
src\BatchSignUtil.cs (3)
242var largeRepackList = new List<FileSignInfo>(); 243var smallRepackList = new List<FileSignInfo>(); 312var list = new List<FileSignInfo>();
src\Configuration.cs (3)
130_filesToSign = new List<FileSignInfo>(); 131_wixPacks = new List<WixPackInfo>(); 132_filesToCopy = new List<KeyValuePair<string, string>>();
src\SignToolTask.cs (3)
333additionalCertificateInformation = new List<AdditionalCertificateInformation>(); 441map.Add(extension, new List<SignInfo> { signInfo }); 497map.Add(publicKeyToken, new List<SignInfo> { signInfo });
Microsoft.DotNet.SignTool.Tests (140)
FakeBuildEngine.cs (5)
17public List<BuildErrorEventArgs> LogErrorEvents = new List<BuildErrorEventArgs>(); 20new List<BuildMessageEventArgs>(); 23new List<CustomBuildEventArgs>(); 26new List<BuildWarningEventArgs>(); 28public readonly List<ImmutableArray<XElement>> FilesToSign = new List<ImmutableArray<XElement>>();
SignToolTests.cs (135)
30{".js", new List<SignInfo>{ new SignInfo("JSCertificate") } }, 31{".jar", new List<SignInfo>{ new SignInfo("JARCertificate") } }, 32{".ps1", new List<SignInfo>{ new SignInfo("PSCertificate") } }, 33{".psd1", new List<SignInfo>{ new SignInfo("PSDCertificate") } }, 34{".psm1", new List<SignInfo>{ new SignInfo("PSMCertificate") } }, 35{".psc1", new List<SignInfo>{ new SignInfo("PSCCertificate") } }, 36{".dylib", new List<SignInfo>{ new SignInfo("DylibCertificate") } }, 37{".deb", new List<SignInfo>{ new SignInfo("LinuxSign") } }, 38{".rpm", new List<SignInfo>{ new SignInfo("LinuxSign") } }, 39{".dll", new List<SignInfo>{ new SignInfo("Microsoft400") } }, // lgtm [cs/common-default-passwords] Safe, these are certificate names 40{".exe", new List<SignInfo>{ new SignInfo("Microsoft400") } }, // lgtm [cs/common-default-passwords] Safe, these are certificate names 41{".msi", new List<SignInfo>{ new SignInfo("Microsoft400") } }, // lgtm [cs/common-default-passwords] Safe, these are certificate names 42{".vsix", new List<SignInfo>{ new SignInfo("VsixSHA2") } }, 43{".zip", new List<SignInfo>{ SignInfo.Ignore } }, 44{".tgz", new List<SignInfo>{ SignInfo.Ignore } }, 45{".pkg", new List<SignInfo>{ new SignInfo("MacDeveloperHarden") } }, // lgtm [cs/common-default-passwords] Safe, these are certificate names 46{".app", new List<SignInfo>{ new SignInfo("MacDeveloperHarden") } }, // lgtm [cs/common-default-passwords] Safe, these are certificate names 47{".py", new List<SignInfo>{ new SignInfo("Microsoft400") } }, // lgtm [cs/common-default-passwords] Safe, these are certificate names 48{".nupkg", new List<SignInfo>{ new SignInfo("NuGet") } }, 49{".symbols.nupkg", new List<SignInfo>{ SignInfo.Ignore } }, 55{".js", new List<SignInfo>{ new SignInfo("JSCertificate", collisionPriorityId: "123") } }, 56{".jar", new List<SignInfo>{ new SignInfo("JARCertificate", collisionPriorityId: "123") } }, 57{ ".ps1", new List<SignInfo>{ new SignInfo("PSCertificate", collisionPriorityId: "123") } }, 58{ ".psd1", new List<SignInfo>{ new SignInfo("PSDCertificate", collisionPriorityId: "123") } }, 59{ ".psm1", new List<SignInfo>{ new SignInfo("PSMCertificate", collisionPriorityId: "123") } }, 60{ ".psc1", new List<SignInfo>{ new SignInfo("PSCCertificate", collisionPriorityId: "123") } }, 61{ ".dylib", new List<SignInfo>{ new SignInfo("DylibCertificate", collisionPriorityId: "123") } }, 62{ ".deb", new List<SignInfo>{ new SignInfo("LinuxSign", collisionPriorityId: "123") } }, 63{ ".dll", new List<SignInfo> 69{ ".exe", new List<SignInfo>{ new SignInfo("Microsoft400", collisionPriorityId: "123") } }, // lgtm [cs/common-default-passwords] Safe, these are certificate names 70{ ".msi", new List<SignInfo>{ new SignInfo("Microsoft400", collisionPriorityId: "123") } }, // lgtm [cs/common-default-passwords] Safe, these are certificate names 71{ ".vsix", new List<SignInfo>{ new SignInfo("VsixSHA2", collisionPriorityId: "123") } }, 72{ ".zip", new List<SignInfo>{ SignInfo.Ignore } }, 73{ ".tgz", new List<SignInfo>{ SignInfo.Ignore } }, 74{ ".pkg", new List<SignInfo>{ new SignInfo("Microsoft400", collisionPriorityId: "123") } }, 75{ ".app", new List<SignInfo>{ new SignInfo("Microsoft400", collisionPriorityId: "123") } }, 76{ ".nupkg", new List<SignInfo>{ new SignInfo("NuGet", collisionPriorityId: "123") } }, 77{ ".symbols.nupkg", new List<SignInfo>{ SignInfo.Ignore } }, 523var itemsToSign = new List<ItemToSign>(); 582var itemsToSign = new List<ItemToSign>() 590{ "581d91ccdfc4ea9c", new List<SignInfo> {new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 617var itemsToSign = new List<ItemToSign>() 625{ "581d91ccdfc4ea9c", new List<SignInfo> {new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 649var itemsToSign = new List<ItemToSign>() 658{ "31bf3856ad364e35", new List<SignInfo> {new SignInfo(certificate: "FooCert", strongName: "Blah.snk") } } 671var itemsToSign = new List<ItemToSign>() 679{ "b03f5f7f11d50a3a", new List<SignInfo> {new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 695var itemsToSign = new List<ItemToSign>() 703{ "b03f5f7f11d50a3a", new List<SignInfo> {new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 719var itemsToSign = new List<ItemToSign>() 727{ "cc7b13ffcd2ddd51", new List<SignInfo> {new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 747var itemsToSign = new List<ItemToSign>() 755{ pktToTest, new List<SignInfo> { new SignInfo(certificateToTest, collisionPriorityId: "123") } } 780var itemsToSign = new List<ItemToSign>() 788{ "581d91ccdfc4ea9c", new List<SignInfo> { new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 822var itemsToSign = new List<ItemToSign>() 830{ "581d91ccdfc4ea9c", new List<SignInfo> { new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 862var itemsToSign = new List<ItemToSign>() 870{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo("ArcadeCertTest", "ArcadeStrongTest") } } 889var itemsToSign = new List<ItemToSign>() 898{ "7cec85d7bea7798e", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } }, 899{ "adb9793829ddae60", new List<SignInfo>{ new SignInfo(certificate: "Microsoft400", strongName: "AspNetCore", collisionPriorityId: "123") } } // lgtm [cs/common-default-passwords] Safe, these are certificate names 929var itemsToSign = new List<ItemToSign>() 936{ "", new List<SignInfo>{ new SignInfo("3PartySHA2", collisionPriorityId: "123") } } 951var itemsToSign = new List<ItemToSign>() 958{ "", new List<SignInfo>{ new SignInfo("DefaultCertificate", collisionPriorityId: "123") } } 976var itemsToSign = new List<ItemToSign>() 999var itemsToSign = new List<ItemToSign>() 1008{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo("3PartySHA2", "ArcadeStrongTest", "123") } } 1050var itemsToSign = new List<ItemToSign>() 1058{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 1128var itemsToSign = new List<ItemToSign>() 1136{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 1211var itemsToSign = new List<ItemToSign>() 1219{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1267var itemsToSign = new List<ItemToSign>() 1275{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1301var itemsToSign = new List<ItemToSign>() 1309{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1358var itemsToSign = new List<ItemToSign>() 1366{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1373new List<AdditionalCertificateInformation>() { 1434var itemsToSign = new List<ItemToSign>() 1442{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1486var itemsToSign = new List<ItemToSign>() 1494{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1532var itemsToSign = new List<ItemToSign>() 1540{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1584var itemsToSign = new List<ItemToSign>() 1592{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1636var itemsToSign = new List<ItemToSign>() 1644{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1867var itemsToSign = new List<ItemToSign>() 1893var itemsToSign = new List<ItemToSign>() 1910var itemsToSign = new List<ItemToSign>() 1935var itemsToSign = new List<ItemToSign>() 1944{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1982var itemsToSign = new List<ItemToSign>() 1991{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 2048var itemsToSign = new List<ItemToSign>() 2056{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2") } } 2082var itemsToSign = new List<ItemToSign>() 2091{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 2143var itemsToSign = new List<ItemToSign>() 2152{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 2204var itemsToSign = new List<ItemToSign>() 2213{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 2261var itemsToSign = new List<ItemToSign>() 2271{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 2323var itemsToSign = new List<ItemToSign>() 2331{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 2362var itemsToSign = new List<ItemToSign>() 2380var itemsToSign = new List<ItemToSign>() 2412var fileExtensionSignInfo = new List<ITaskItem>(); 2431var fileExtensionSignInfo = new List<ITaskItem>(); 2454var fileExtensionSignInfo = new List<ITaskItem>(); 2476var itemsToSign = new List<ItemToSign>() 2622var itemsToSign = new List<ItemToSign>() 2630{dualCertName, new List<AdditionalCertificateInformation>(){new AdditionalCertificateInformation() { DualSigningAllowed = true } } }, 2635{ "31bf3856ad364e35", new List<SignInfo>{ new SignInfo(certificate: dualCertName, strongName: null) } } 2651var itemsToSign = new List<ItemToSign>() 2659{ dualCertName, new List<AdditionalCertificateInformation>(){new AdditionalCertificateInformation() 2668{ "31bf3856ad364e35", new List<SignInfo>{ new SignInfo(certificate: dualCertName, strongName: null) } } 2680var itemsToSign = new List<ItemToSign>() 2688{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 2712var itemsToSign = new List<ItemToSign>() 2720{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 2747var itemsToSign = new List<ItemToSign>() 2772{ "581d91ccdfc4ea9c", new List<SignInfo> {new SignInfo(certificate: "ArcadeCertTest", strongName: "StrongNameValue", collisionPriorityId: "123") } }, 2803new List<AdditionalCertificateInformation>() { 2861var itemsToSign = new List<ItemToSign>() 2901var itemsToSign = new List<ItemToSign>() 2908{ extension, new List<SignInfo> { SignInfo.Ignore } } 2913extensionSignInfo.Add(additionalExtension, new List<SignInfo> { SignInfo.Ignore }); 2934var itemsToSign = new List<ItemToSign>()
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (5)
HelperFactory.cs (4)
50var helpers = new List<(string name, HandlebarsBlockHelper helper)>(); 76var helpers = new List<(string name, HandlebarsHelper helper)>(); 133var parameterExpressions = GetParameterExpressions(method, argumentsParameter, new List<ProvidedParameter> 179var parameterExpressions = GetParameterExpressions(method, argumentsParameter, new List<ProvidedParameter>
Modeler\ServiceClientModelFactory.cs (1)
141var methods = new List<MethodModel>();
Microsoft.DotNet.SwaggerGenerator.MSBuild (1)
GenerateSwaggerCode.cs (1)
82var generatedFiles = new List<ITaskItem>();
Microsoft.DotNet.VersionTools (7)
Automation\GitHubVersionsRepoUpdater.cs (1)
85List<GitObject> objects = new List<GitObject>();
BuildManifest\Model\ArtifactSet.cs (2)
13public List<PackageArtifactModel> Packages { get; set; } = new List<PackageArtifactModel>(); 15public List<BlobArtifactModel> Blobs { get; set; } = new List<BlobArtifactModel>();
BuildManifest\Model\OrchestratedBuildModel.cs (2)
24public List<EndpointModel> Endpoints { get; set; } = new List<EndpointModel>(); 26public List<BuildIdentity> Builds { get; set; } = new List<BuildIdentity>();
Dependencies\BuildOutput\ProjectJsonUpdater.cs (1)
31var tasks = new List<DependencyUpdateTask>();
Dependencies\BuildOutput\ToolVersionsUpdater.cs (1)
23var lineResults = new List<ToolUpdateLineResult>();
Microsoft.DotNet.VersionTools.Tests (3)
BuildManifest\ManifestModelTests.cs (2)
70Endpoints = new List<EndpointModel> 322Packages = new List<PackageArtifactModel>
BuildManifest\VersionIdentiferTests.cs (1)
66List<VersionIdentifierTestAsset> testAssets = new List<VersionIdentifierTestAsset>();
Microsoft.DotNet.XliffTasks (3)
Model\UnstructuredDocument.cs (2)
15private List<string> _fragments = new(); 16private List<UnstructuredTranslatableNode> _nodes = new();
Tasks\TransformTemplates.cs (1)
34List<ITaskItem> transformedTemplates = new();
Microsoft.DotNet.XliffTasks.Tests (1)
XlfDocumentTests.cs (1)
611List<XmlSchemaException> validationErrors = new();
Microsoft.DotNet.XUnitAssert.Tests (131)
AsyncCollectionAssertsTests.cs (31)
60 var indices = new List<int>(); 112 var indices = new List<int>(); 125 var list = new List<int>().ToAsyncEnumerable(); 135 var list = new List<int>().ToAsyncEnumerable(); 157 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable(); 168 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable(); 196 var list = new List<int>().ToAsyncEnumerable(); 206 var list = new List<int>().ToAsyncEnumerable(); 228 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable(); 247 var list = new List<int> { 42, 2112 }.ToAsyncEnumerable(); 289 var list = new List<object?> { 16, null, "Hi there" }.ToAsyncEnumerable(); 297 var list = new List<int> { 42 }.ToAsyncEnumerable(); 305 var list = new List<int> { 41, 43 }.ToAsyncEnumerable(); 321 var list = new List<object?> { null, 16, "Hi there" }.ToAsyncEnumerable(); 341 var list = new List<int> { 42 }.ToAsyncEnumerable(); 399 var list = new List<object?> { 16, "Hi there", null }.ToAsyncEnumerable(); 407 var list = new List<int> { 42, 42 }.ToAsyncEnumerable(); 423 var list = new List<string?> { "a", null, "b", null, "c", "d" }.ToAsyncEnumerable(); 473 var list = new List<object?> { 16, "Hi there" }.ToAsyncEnumerable(); 481 var list = new List<int> { 42 }.ToAsyncEnumerable(); 498 var list = new List<int>().ToAsyncEnumerable(); 506 var list = new List<object?> { null, 16, "Hi there" }.ToAsyncEnumerable(); 526 var list = new List<int> { 42 }.ToAsyncEnumerable(); 584 var list = new List<int>().ToAsyncEnumerable(); 592 var list = new List<int> { 42 }.ToAsyncEnumerable(); 837 List<EnumerableItem> actual = new List<EnumerableItem> { new(0), new(2) }; 838 List<EnumerableItem> expected = new List<EnumerableItem> { new(1), new(3) }; 996 var expected = new List<EnumerableItem> { new(1), new(3) }; 997 var actual = new List<EnumerableItem> { new(0), new(2) }.ToAsyncEnumerable(); 1051 var list = new List<int>().ToAsyncEnumerable(); 1065 var list = new List<int> { 42 }.ToAsyncEnumerable();
CollectionAssertsTests.cs (55)
58 var indices = new List<int>(); 110 var indices = new List<int>(); 123 var list = new List<int>(); 133 var list = new List<int>(); 155 var list = new List<int> { 42, 2112 }; 167 var list = new List<int> { 42, 2112 }; 196 var list = new List<int>(); 206 var list = new List<int>(); 228 var list = new List<int> { 42, 2112 }; 247 var list = new List<int> { 42, 2112 }; 289 var list = new List<object?> { 16, null, "Hi there" }; 297 var list = new List<int> { 42 }; 305 var list = new List<int> { 41, 43 }; 321 var list = new List<object?> { null, 16, "Hi there" }; 359 var list = new List<int> { 42 }; 433 var list = new List<object?> { 16, "Hi there", null }; 441 var list = new List<int> { 42, 42 }; 457 var list = new List<string?> { "a", null, "b", null, "c", "d" }; 507 var list = new List<object?> { 16, "Hi there" }; 515 var list = new List<int> { 42 }; 532 var list = new List<int>(); 540 var list = new List<object?> { null, 16, "Hi there" }; 596 var list = new List<int> { 42 }; 662 var list = new List<int>(); 670 var list = new List<int> { 42 }; 1078 List<EnumerableItem> actual = new List<EnumerableItem> { new(0), new(2) }; 1079 List<EnumerableItem> expected = new List<EnumerableItem> { new(1), new(3) }; 1208 List<EnumerableItem> actual = new List<EnumerableItem> { new(0), new(2) }; 1209 List<EnumerableItem> expected = new List<EnumerableItem> { new(1), new(3) }; 1342 ["toAddresses"] = new List<string> { "test1@example.com" }, 1343 ["ccAddresses"] = new List<string> { "test2@example.com" }, 1360 ["toAddresses"] = new List<string> { "test1@example.com" }, 1361 ["ccAddresses"] = new List<string> { "test2@example.com" }, 1425 ["key"] = new List<Dictionary<string, object>>() 1429 ["key"] = new List<object> { "value" } 1438 ["key"] = new List<Dictionary<string, object>>() 1442 ["key"] = new List<object> { "value" } 1458 ["key"] = new List<Dictionary<string, object>>() 1462 ["key"] = new List<object> { "value1" } 1471 ["key"] = new List<Dictionary<string, object>>() 1475 ["key"] = new List<object> { "value2" } 1614 var list = new List<int>(); 1628 var list = new List<int> { 42 }; 2009 ["toAddresses"] = new List<string> { "test1@example.com" }, 2010 ["ccAddresses"] = new List<string> { "test2@example.com" }, 2035 ["toAddresses"] = new List<string> { "test1@example.com" }, 2036 ["ccAddresses"] = new List<string> { "test2@example.com" }, 2092 ["key"] = new List<Dictionary<string, object>>() 2096 ["key"] = new List<object> { "value" } 2105 ["key"] = new List<Dictionary<string, object>>() 2109 ["key"] = new List<object> { "value" } 2133 ["key"] = new List<Dictionary<string, object>>() 2137 ["key"] = new List<object> { "value1" } 2146 ["key"] = new List<Dictionary<string, object>>() 2150 ["key"] = new List<object> { "value2" }
EqualityAssertsTests.cs (34)
879 var x = new List<object> { new List<object> { new List<object> { 1 } } }; 880 var y = new List<object> { new List<object> { new List<object> { 1 } } }; 888 var x = new List<object> { new List<object> { new List<object> { 1 } } }; 889 var y = new List<object> { new List<object> { new List<object> { 2 } } }; 1101 List<T> values = new(); 1568 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42); 1578 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42); 1596 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" }); 1606 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" }); 3186 var x = new List<object> { new List<object> { new List<object> { 1 } } }; 3187 var y = new List<object> { new List<object> { new List<object> { 1 } } }; 3203 var x = new List<object> { new List<object> { new List<object> { 1 } } }; 3204 var y = new List<object> { new List<object> { new List<object> { 2 } } }; 3330 List<T> values = new(); 3796 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42); 3814 var expected = new KeyValuePair<IEnumerable<string>, int>(new List<string> { "Key1", "Key2" }, 42); 3824 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" }); 3842 var expected = new KeyValuePair<string, IEnumerable<string>>("Key1", new List<string> { "Value1a", "Value1b" });
EquivalenceAssertsTests.cs (8)
1123 Assert.Equivalent(new[] { 1, 2, 3 }, new List<int> { 1, 2, 3 }); 1129 Assert.Equivalent(new List<int> { 1, 2, 3 }, new[] { 1, 2, 3 }); 1176 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 } }; 1177 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } }; 1228 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 16 } }; 1229 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } };
Sdk\ArgumentFormatterTests.cs (3)
293 var kvp = new KeyValuePair<object, List<object>>(42, new() { 21.12M, "2600" }); 331 { 42, new() { 21.12M, "2600" } }, 332 { "123", new() { } },
Microsoft.DotNet.XUnitExtensions (3)
Discoverers\ConditionalTheoryDiscoverer.cs (1)
35List<IXunitTestCase> skippedTestCase = new List<IXunitTestCase>();
XunitParallelTheoryTestCaseRunner.cs (2)
24private readonly List<XunitTestRunner> _testRunners = new(); 25private readonly List<IDisposable> _toDispose = new();
Microsoft.Extensions.AI.Abstractions (12)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (1)
102messages[update.ChoiceIndex] = message = new(default, new List<AIContent>());
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (11)
216Required = containsTypesWithoutDiscriminator ? null : new() { typeDiscriminatorKey }, 253(properties = new()).Add(typeDiscriminatorPair); 257(required = new()).Add(typeDiscriminatorPair.Key); 328(properties ??= new()).Add(new(property.Name, propertySchema)); 332(required ??= new()).Add(property.Name); 382Properties = new() 392Required = parentPolymorphicTypeContainsTypesWithoutDiscriminator ? new() { typeDiscriminator.Value.Key } : null, 405dictProps = new() { dictDiscriminator }; 409dictRequired = new() { dictDiscriminator.Key }; 485private readonly List<string> _currentPath = new(); 666AnyOf = new()
Microsoft.Extensions.AI.Abstractions.Tests (3)
ChatCompletion\DelegatingChatClientTests.cs (2)
33var expectedChatContents = new List<ChatMessage>(); 65var expectedChatContents = new List<ChatMessage>();
Embeddings\DelegatingEmbeddingGeneratorTests.cs (1)
33var expectedInput = new List<string>();
Microsoft.Extensions.AI.Integration.Tests (4)
ChatClientIntegrationTests.cs (3)
164var activities = new List<Activity>(); 609var activities = new List<Activity>(); 765var capturedCalls = new List<IList<ChatMessage>>();
EmbeddingGeneratorIntegrationTests.cs (1)
108var activities = new List<Activity>();
Microsoft.Extensions.AI.Tests (17)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (9)
56var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 119var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 138var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 157var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 195var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 229var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 257var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 303var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 331var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
ChatCompletion\DistributedCachingChatClientTest.cs (1)
704var result = new List<T>();
ChatCompletion\FunctionInvokingChatClientTests.cs (4)
473var activities = new List<Activity>(); 512var messages = new List<ChatMessage> 534var updates = new List<StreamingChatCompletionUpdate>(); 559var invocationContexts = new List<FunctionInvokingChatClient.FunctionInvocationContext>();
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
27var activities = new List<Activity>();
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
22var activities = new List<Activity>();
Functions\AIFunctionFactoryTest.cs (1)
22Assert.Throws<ArgumentException>("method", () => AIFunctionFactory.Create(typeof(List<>).GetMethod("Add")!, new List<int>()));
Microsoft.Extensions.ApiDescription.Client.Tests (5)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (2)
18private readonly List<string> _items = new List<string>(); 19private readonly List<string> _properties = new List<string>();
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (3)
14private readonly List<TemporaryCSharpProject> _projects = new List<TemporaryCSharpProject>(); 15private readonly List<TemporaryDirectory> _subdirs = new List<TemporaryDirectory>(); 126var segments = new List<string>();
Microsoft.Extensions.ApiDescription.Tool.Tests (5)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (2)
18private readonly List<string> _items = new List<string>(); 19private readonly List<string> _properties = new List<string>();
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (3)
14private readonly List<TemporaryCSharpProject> _projects = new List<TemporaryCSharpProject>(); 15private readonly List<TemporaryDirectory> _subdirs = new List<TemporaryDirectory>(); 126var segments = new List<string>();
Microsoft.Extensions.AsyncState.Tests (1)
AsyncStateTests.cs (1)
218var l = new List<object?>();
Microsoft.Extensions.Caching.Abstractions (2)
MemoryCacheEntryOptions.cs (2)
84public IList<IChangeToken> ExpirationTokens { get; } = new List<IChangeToken>(); 90= new List<PostEvictionCallbackRegistration>();
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)
61_allStats = new List<WeakReference<Stats>>(); 535var entriesToRemove = new List<CacheEntry>(); 537var lowPriEntries = new List<(CacheEntry entry, DateTimeOffset lastAccessed)>(); 538var normalPriEntries = new List<(CacheEntry entry, DateTimeOffset lastAccessed)>(); 539var highPriEntries = new List<(CacheEntry entry, DateTimeOffset 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.Configuration (9)
ChainedConfigurationProvider.cs (1)
78var 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)
237(missingPropertyNames ??= new()).Add($"'{cs.Key}'"); 589List<string> missingParameters = new(); 819var list = new List<object?>(); 1052var allProperties = new List<PropertyInfo>();
Microsoft.Extensions.Configuration.KeyPerFile.Tests (2)
ConfigurationProviderCommandLineTest.cs (1)
17var testFiles = new List<IFileInfo>();
ConfigurationProviderTestBase.cs (1)
343var values = new List<KeyValuePair<string, string>>();
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 (7)
DependencyInjectionEventSource.cs (1)
28private readonly List<WeakReference<ServiceProvider>> _providers = new();
ServiceLookup\CallSiteFactory.cs (2)
315List<KeyValuePair<int, ServiceCallSite>> callSitesByIndex = new(); 798newCacheItem._items = _items ?? new List<ServiceDescriptor>();
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (2)
248argument.Factories ??= new List<Func<IServiceProvider, object>>(); 266argument.Constants ??= new List<object?>();
ServiceLookup\ServiceProviderEngineScope.cs (1)
94_disposables ??= new List<object>();
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>(); 545var runtimeTargets = new List<RuntimeTargetEntryStub>(); 596var resources = new List<ResourceAssembly>(); 716var runtimeFallbacks = new List<RuntimeFallbacks>(); 781var runtimeAssemblyGroups = new List<RuntimeAssetGroup>(); 782var 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)
52meterList = new List<FactoryMeter>();
Microsoft.Extensions.Diagnostics.Abstractions (1)
Metrics\MetricsOptions.cs (1)
16public IList<InstrumentRule> Rules { get; } = new List<InstrumentRule>();
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
HttpExceptionSummaryProvider.cs (1)
31var descriptions = new List<string>
Microsoft.Extensions.Diagnostics.HealthChecks (1)
HealthCheckServiceOptions.cs (1)
16public ICollection<HealthCheckRegistration> Registrations { get; } = new List<HealthCheckRegistration>();
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.Tests (4)
DefaultHealthCheckServiceTest.cs (3)
62var healthyCheckTags = new List<string> { "healthy-check-tag" }; 63var degradedCheckTags = new List<string> { "degraded-check-tag" }; 64var unhealthyCheckTags = new List<string> { "unhealthy-check-tag" };
HealthCheckPublisherHostedServiceTest.cs (1)
804public List<(HealthReport report, CancellationToken cancellationToken)> Entries { get; } = new List<(HealthReport report, CancellationToken cancellationToken)>();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (21)
Helpers\TestMeterFactory.cs (1)
12public List<Meter> Meters { get; } = new List<Meter>();
Linux\LinuxCountersTests.cs (1)
101var samples = new List<(Instrument instrument, long value)>();
Linux\LinuxUtilizationProviderTests.cs (2)
66var samples = new List<(Instrument instrument, double value)>(); 135var samples = new List<(Instrument instrument, double value)>();
ResourceMonitoringServiceTests.cs (15)
43var publishersList = new List<IResourceUtilizationPublisher> 100var publishersList = new List<IResourceUtilizationPublisher> 132var publishersList = new List<IResourceUtilizationPublisher> 174new List<IResourceUtilizationPublisher> 207new List<IResourceUtilizationPublisher> 248new List<IResourceUtilizationPublisher> 280new List<IResourceUtilizationPublisher> 322new List<IResourceUtilizationPublisher> 447new List<IResourceUtilizationPublisher> 556new List<IResourceUtilizationPublisher> 596new List<IResourceUtilizationPublisher> 618new List<IResourceUtilizationPublisher> 658new List<IResourceUtilizationPublisher> 682new List<IResourceUtilizationPublisher> 705new 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 (2)
Logging\FakeLogger.cs (2)
67var l = new List<object?>(); 114var l = new List<KeyValuePair<string, string?>>();
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Logging\FakeLoggerTests.cs (2)
76var l = new List<KeyValuePair<string, object?>> 132var l = new List<KeyValuePair<string, object?>>
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)
151var 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 (18)
InMemoryDirectoryInfo.cs (2)
38files ??= new List<string>(); 105dict[name] = new List<string> { file };
Internal\MatcherContext.cs (3)
39_files = new List<FilePatternMatch>(); 63var entities = new List<FileSystemInfoBase?>(); 87var subDirectories = new List<DirectoryInfoBase>();
Internal\PathSegments\WildcardPathSegment.cs (1)
14string.Empty, new List<string>(), string.Empty, StringComparison.OrdinalIgnoreCase);
Internal\PatternContexts\PatternContextLinear.cs (1)
74public IList<string> StemItems => _stemItems ??= new List<string>();
Internal\PatternContexts\PatternContextRagged.cs (1)
129public 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>();
Matcher.cs (2)
99private readonly List<IPattern> _includePatterns = new List<IPattern>(); 100private readonly List<IPattern> _excludePatterns = new List<IPattern>();
MatcherExtensions.cs (3)
61List<string> result = matches is ICollection matchCollection ? new(matchCollection.Count) : new(); 77return Match(matcher, Directory.GetCurrentDirectory(), new List<string> { file }); 89return Match(matcher, rootDir, new List<string> { file });
Microsoft.Extensions.Hosting (15)
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 (4)
87List<Exception> exceptions = new(); 231List<Exception> exceptions = new(); 346tasks ??= new(); 400_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 (5)
DefaultHttpMessageHandlerBuilder.cs (1)
41public override IList<DelegatingHandler> AdditionalHandlers { get; } = new List<DelegatingHandler>();
HttpClientFactoryOptions.cs (3)
28public IList<Action<HttpMessageHandlerBuilder>> HttpMessageHandlerBuilderActions { get; } = new List<Action<HttpMessageHandlerBuilder>>(); 33public IList<Action<HttpClient>> HttpClientActions { get; } = new List<Action<HttpClient>>(); 106internal List<Action<HttpMessageHandlerBuilder>> LoggingBuilderActions { get; } = new List<Action<HttpMessageHandlerBuilder>>();
Logging\HttpHeadersLogValue.cs (1)
39var values = new List<KeyValuePair<string, object>>();
Microsoft.Extensions.Http.Diagnostics.Tests (46)
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 }, 326new List<IHttpClientLogEnricher> { testEnricher }, 431new List<IHttpClientLogEnricher> { testEnricher }, 546new List<IHttpClientLogEnricher> { testEnricher }, 639new List<IHttpClientLogEnricher> { testEnricher }, 682new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }, 725new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }, 760var enrichers = new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }; 807new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }, 909new List<IHttpClientLogEnricher> { testEnricher },
Logging\HttpClientLoggingExtensionsTest.cs (2)
141options.RequestHeadersDataClasses.Should().ContainKeys(new List<string> { "test1", "test2" }); 142options.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 (16)
100var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 101var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 157var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 158var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 227var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 228var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 302var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 303var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 362var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 363var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 432var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 433var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 499var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 500var responseHeadersBuffer = new List<KeyValuePair<string, string>>(); 567var requestHeadersBuffer = new List<KeyValuePair<string, string>>(); 568var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
Logging\Internal\TestHttpMessageHandlerBuilder.cs (1)
27public override IList<DelegatingHandler> AdditionalHandlers { get; } = new List<DelegatingHandler>();
Microsoft.Extensions.Http.Polly.Tests (2)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (2)
532var policyTypes = new List<Type> 578public List<Func<HttpRequestMessage, HttpResponseMessage>> Responses { get; } = new List<Func<HttpRequestMessage, HttpResponseMessage>>();
Microsoft.Extensions.Http.Resilience (3)
Routing\OrderedGroupsRoutingOptions.cs (1)
30public IList<UriEndpointGroup> Groups { get; set; } = new List<UriEndpointGroup>();
Routing\UriEndpointGroup.cs (1)
30public IList<WeightedUriEndpoint> Endpoints { get; set; } = new List<WeightedUriEndpoint>();
Routing\WeightedGroupsRoutingOptions.cs (1)
36public 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)
157public IList<IUserValidator<TUser>> UserValidators { get; } = new List<IUserValidator<TUser>>(); 162public IList<IPasswordValidator<TUser>> PasswordValidators { get; } = new List<IPasswordValidator<TUser>>(); 1618var results = new List<string>(); 2315errors ??= new List<IdentityError>(); 2348errors ??= 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)
23private readonly List<ProviderRegistration> _providerRegistrations = new List<ProviderRegistration>(); 224var messageLoggers = new List<MessageLogger>(); 225List<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.EventSource (1)
LoggingEventSource.cs (1)
419var rules = new List<LoggerFilterRule>();
Microsoft.Extensions.Logging.Generators (6)
LoggerMessageGenerator.Emitter.cs (1)
87var parentClasses = new List<string>();
LoggerMessageGenerator.Parser.cs (5)
70var results = new List<LoggerClass>(); 862public readonly List<LoggerMethod> Methods = new(); 874public readonly List<LoggerParameter> AllParameters = new(); 875public readonly List<LoggerParameter> TemplateParameters = new(); 877public readonly List<string> TemplateList = new();
Microsoft.Extensions.Options (5)
OptionsFactory.cs (1)
76var failures = new List<string>();
OptionsMonitor.cs (1)
22private readonly List<IDisposable> _registrations = new List<IDisposable>();
OptionsValidationException.cs (1)
25Failures = failureMessages ?? new List<string>();
ValidateOnStart.cs (1)
33exceptions ??= new();
ValidateOptionsResultBuilder.cs (1)
118private List<string> Errors => _errors ??= new();
Microsoft.Extensions.Options.Contextual (1)
Internal\ContextualOptionsFactory.cs (1)
134var failures = new List<string>();
Microsoft.Extensions.Options.DataAnnotations (4)
DataAnnotationValidateOptions.cs (4)
58var validationResults = new List<ValidationResult>(); 88errors ??= new List<string>(); 116results ??= new List<ValidationResult>(); 124results ??= new List<ValidationResult>();
Microsoft.Extensions.Options.SourceGeneration (10)
Emitter.cs (1)
755var attrInstantiationStatementLines = new List<string>();
Model\ValidationAttributeInfo.cs (1)
10public List<string> ConstructorArguments { get; } = new();
Parser.cs (7)
48var results = new List<ValidatorType>(); 125var parents = new List<string>(); 155return new List<ValidatorType>(); 292var membersToValidate = new List<ValidatedMember>(); 341var validationAttrs = new List<ValidationAttributeInfo>(); 720new List<string>(), 749var result = new List<ITypeSymbol>();
TypeDeclarationSyntaxReceiver.cs (1)
20public ICollection<TypeDeclarationSyntax> TypeDeclarations { get; } = new List<TypeDeclarationSyntax>();
Microsoft.Extensions.Primitives (1)
CompositeChangeToken.cs (1)
104_disposables = new List<IDisposable>();
Microsoft.Extensions.SecretManager.Tools.Tests (5)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (2)
18private readonly List<string> _items = new List<string>(); 19private readonly List<string> _properties = new List<string>();
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (3)
14private readonly List<TemporaryCSharpProject> _projects = new List<TemporaryCSharpProject>(); 15private readonly List<TemporaryDirectory> _subdirs = new List<TemporaryDirectory>(); 126var segments = new List<string>();
Microsoft.Extensions.ServiceDiscovery (5)
Http\HttpServiceEndpointResolver.cs (1)
143cleanupTasks ??= new();
ServiceDiscoveryOptions.cs (1)
31public 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 (2)
DnsServiceEndpointProvider.cs (1)
29var endpoints = new List<ServiceEndpoint>();
DnsSrvServiceEndpointProvider.cs (1)
35var endpoints = new List<ServiceEndpoint>();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (4)
DnsSrvServiceEndpointResolverTests.cs (4)
84Answers = new List<DnsResourceRecord> 90Additionals = new List<DnsResourceRecord> 146Answers = new List<DnsResourceRecord> 152Additionals = new List<DnsResourceRecord>
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
ServiceDiscoveryDestinationResolver.cs (1)
34var changeTokens = new List<IChangeToken>();
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (2)
YarpServiceDiscoveryTests.cs (2)
274Answers = new List<DnsResourceRecord> 280Additionals = new List<DnsResourceRecord>
Microsoft.Extensions.Telemetry (4)
Enrichment\ApplicationLogEnricher.cs (1)
36var l = new List<KeyValuePair<string, object>>();
Http\HttpRouteParser.cs (1)
104var segments = new List<Segment>();
Logging\ExtendedLoggerFactory.cs (2)
85var tags = new List<KeyValuePair<string, object?>>(); 220var messageLoggers = new List<MessageLogger>();
Microsoft.Extensions.Telemetry.Abstractions (3)
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 (3)
Enrichment\ProcessLogEnricherTests.cs (1)
53var enrichedProperties = new TestLogEnrichmentTagCollector(new List<KeyValuePair<string, object>>());
Logging\ExtendedLoggerTests.cs (1)
618var store = new List<string>();
Logging\TestConfiguration.cs (1)
25return new ConfigurationRoot(new List<IConfigurationProvider> { provider });
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.Gen.ComplianceReports (2)
Parser.cs (1)
32var result = new List<ClassifiedType>();
src\Generators\Shared\TypeDeclarationSyntaxReceiver.cs (1)
25public ICollection<TypeDeclarationSyntax> TypeDeclarations { get; } = new List<TypeDeclarationSyntax>();
Microsoft.Gen.ComplianceReports.Unit.Tests (5)
test\Generators\Shared\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>();
test\Generators\Shared\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 (5)
Emission\Emitter.cs (1)
42var parentTypes = new List<string>();
Parsing\Parser.cs (1)
47var results = new List<LoggingType>();
Parsing\Parser.LogProperties.cs (1)
91var result = new List<LoggingProperty>();
src\Generators\Shared\ClassDeclarationSyntaxReceiver.cs (1)
25public ICollection<ClassDeclarationSyntax> ClassDeclarations { get; } = new List<ClassDeclarationSyntax>();
src\Generators\Shared\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>();
test\Generators\Shared\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 (8)
src\Generators\Microsoft.Gen.ComplianceReports\Parser.cs (1)
32var result = new List<ClassifiedType>();
src\Generators\Microsoft.Gen.Metrics\Emitter.cs (1)
104var parentTypes = new List<string>();
src\Generators\Microsoft.Gen.Metrics\Parser.cs (4)
65var results = new List<MetricType>(); 683var tagConfigs = new List<StrongTypeConfig>(); 862var tagConfigs = new List<StrongTypeConfig>(); 899var tagConfigs = new List<StrongTypeConfig>();
src\Generators\Shared\ClassDeclarationSyntaxReceiver.cs (1)
25public ICollection<ClassDeclarationSyntax> ClassDeclarations { get; } = new List<ClassDeclarationSyntax>();
src\Generators\Shared\TypeDeclarationSyntaxReceiver.cs (1)
25public ICollection<TypeDeclarationSyntax> TypeDeclarations { get; } = new List<TypeDeclarationSyntax>();
Microsoft.Gen.MetadataExtractor.Unit.Tests (5)
test\Generators\Shared\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)
Emitter.cs (1)
104var parentTypes = new List<string>();
Parser.cs (4)
65var results = new List<MetricType>(); 683var tagConfigs = new List<StrongTypeConfig>(); 862var tagConfigs = new List<StrongTypeConfig>(); 899var tagConfigs = new List<StrongTypeConfig>();
src\Generators\Shared\ClassDeclarationSyntaxReceiver.cs (1)
25public ICollection<ClassDeclarationSyntax> ClassDeclarations { get; } = new List<ClassDeclarationSyntax>();
src\Generators\Shared\TypeDeclarationSyntaxReceiver.cs (1)
25public ICollection<TypeDeclarationSyntax> TypeDeclarations { get; } = new List<TypeDeclarationSyntax>();
Microsoft.Gen.Metrics.Unit.Tests (7)
EmitterTests.cs (2)
23var sources = new List<string>(); 93emitter.EmitMetrics(new List<MetricType> { metricClass }, cancellationToken: default));
test\Generators\Shared\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)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (4)
65var results = new List<MetricType>(); 683var tagConfigs = new List<StrongTypeConfig>(); 862var tagConfigs = new List<StrongTypeConfig>(); 899var tagConfigs = new List<StrongTypeConfig>();
src\Generators\Shared\ClassDeclarationSyntaxReceiver.cs (1)
25public ICollection<ClassDeclarationSyntax> ClassDeclarations { get; } = new List<ClassDeclarationSyntax>();
Microsoft.Gen.MetricsReports.Unit.Tests (5)
test\Generators\Shared\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 (7)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
34List<Func<ITypeSymbol, bool>> sourceGeneratedComRecognizers = new();
ComClassGenerator.cs (1)
96List<StatementSyntax> vtableInitializationBlock = new()
ComMethodContext.cs (2)
165var accumulator = new List<(ComInterfaceContext OwningInterface, Builder Method)>(); 187List<Builder> methods = new();
VirtualMethodPointerStubGenerator.cs (3)
46var setupStatements = new List<StatementSyntax> 239List<StatementSyntax> statements = new(); 271List<FunctionPointerParameterSyntax> functionPointerParameters = new();
Microsoft.Interop.JavaScript.JSImportGenerator (13)
JSExportCodeGenerator.cs (6)
74var setupStatements = new List<StatementSyntax>(); 86var tryStatements = new List<StatementSyntax>(); 115List<StatementSyntax> finallyStatements = new List<StatementSyntax>(); 152var signatureArgs = new List<ArgumentSyntax> 198var statements = new List<StatementSyntax>(); 199var arguments = new List<ArgumentSyntax>();
JSExportGenerator.cs (2)
227var registerStatements = new List<StatementSyntax>(); 230var attributes = new List<AttributeListSyntax>();
JSGeneratorFactory.cs (1)
269var argsMarshalers = new List<MarshalerType>();
JSImportCodeGenerator.cs (3)
81var setupStatements = new List<StatementSyntax>(); 94var tryStatements = new List<StatementSyntax>(); 110List<StatementSyntax> finallyStatements = new List<StatementSyntax>();
JSMarshalAsAttributeInfoParser.cs (1)
25List<JSTypeFlags> jsTypeArguments = new List<JSTypeFlags>();
Microsoft.Interop.LibraryImportGenerator (11)
Analyzers\ConvertToLibraryImportFixer.cs (2)
432List<SyntaxNode> argumentsToAdd = new List<SyntaxNode>(); 433List<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 (2)
116List<AttributeSyntax> attributes = new(); 482var newAttributeArgs = new List<AttributeArgumentSyntax>
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
357var 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)
265var statements = new List<StatementSyntax>()
Marshalling\MarshallingGeneratorExtensions.cs (1)
110List<AttributeSyntax> rehydratedAttributes = new();
SyntaxExtensions.cs (1)
86List<SyntaxToken> strippedTokens = new();
Microsoft.JSInterop.Tests (3)
JSInProcessRuntimeTest.cs (1)
94public List<InvokeArgs> InvokeCalls { get; set; } = new List<InvokeArgs>();
JSRuntimeTest.cs (2)
448public List<BeginInvokeAsyncArgs> BeginInvokeCalls = new List<BeginInvokeAsyncArgs>(); 449public List<EndInvokeDotNetArgs> EndInvokeDotNetCalls = new List<EndInvokeDotNetArgs>();
Microsoft.Maui (35)
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 });
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
447 var uniqueMatches = new List<string>();
Handlers\NavigationPage\NavigationViewHandler.iOS.cs (1)
14 public IReadOnlyList<IView> NavigationStack { get; private set; } = new List<IView>();
Handlers\WebView\WebViewHandler.iOS.cs (3)
266 List<NSHttpCookie> deleteCookies = new List<NSHttpCookie>(); 275 List<Cookie> cookiesToSet = new List<Cookie>(); 356 List<NSHttpCookie> existingCookies = new List<NSHttpCookie>();
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\iOS\ApplicationExtensions.cs (2)
49 var dicts = new List<NSDictionary>(); 68 var dicts = new List<NSDictionary>();
Platform\iOS\MauiSwipeView.cs (3)
48 _swipeItemsRect = new List<CGRect>(); 292 _swipeItemsRect = new List<CGRect>(); 379 var swipeItems = new List<UIView>();
Platform\iOS\MauiUIApplicationDelegate.Menu.cs (1)
36 var activeWindowScenes = new List<UIWindowScene>();
Platform\iOS\SwipeViewExtensions.cs (1)
76 var itemsHeight = new List<double>();
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 (149)
Accelerator.cs (1)
40 var modifiers = new List<string>();
Application\Application.cs (2)
350 var changedResources = new List<KeyValuePair<string, object>>(); 416 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>();
Compatibility\Handlers\ListView\iOS\ContextActionCell.cs (2)
23 readonly List<UIButton> _buttons = new List<UIButton>(); 24 readonly List<MenuItem> _menuItems = new List<MenuItem>();
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (3)
1057 readonly List<UIView> _lines = new List<UIView>(); 1690 (secondaries = secondaries ?? new List<UIBarButtonItem>()).Add(item.ToUIBarButtonItem(true)); 1692 (primaries = primaries ?? new List<UIBarButtonItem>()).Add(item.ToUIBarButtonItem());
Compatibility\Handlers\Shell\iOS\ShellPageRendererTracker.cs (2)
306 (primaries = primaries ?? new List<UIBarButtonItem>()).Add(item.ToUIBarButtonItem(false, true)); 313 (primaries = primaries ?? new List<UIBarButtonItem>()).Add(item.ToUIBarButtonItem(false, true));
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (1)
164 var sourcesToComplete = new List<TaskCompletionSource<bool>>();
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (1)
432 removeMe = removeMe ?? new List<ShellContent>();
Compatibility\Handlers\TabbedPage\iOS\TabbedRenderer.cs (1)
302 var list = new List<UIViewController>();
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.cs (3)
175 _internalChildren ??= new List<Element>(); 758 _bindableResources = new List<BindableObject>(); 770 changedResources = changedResources ?? new List<(BindableProperty, SetterSpecificity)>();
Element\Element_StyleSheets.cs (2)
29 var list = new List<string>(); 48 var sheets = new List<StyleSheet>();
FontAttributes.cs (1)
72 var parts = new List<string>();
Handlers\Items\iOS\CarouselViewController.cs (2)
240 _oldViews = new List<View>(); 604 var newViews = new List<View>();
Handlers\Items\iOS\ItemsViewController.cs (1)
47 List<string> _cellReuseIds = new List<string>();
Handlers\Items\iOS\ListSource.cs (2)
15 _itemsSource = new List<object>(); 30 _itemsSource = new List<object>();
Handlers\Items\iOS\ObservableGroupedSource.cs (1)
17 List<ObservableItemsSource> _groups = new List<ObservableItemsSource>();
Handlers\Items2\iOS\CarouselViewController2.cs (2)
160 _oldViews = new List<View>(); 556 var newViews = new List<View>();
Handlers\Items2\iOS\ItemsViewController2.cs (1)
41 List<string> _cellReuseIds = new List<string>();
Handlers\Items2\iOS\LayoutFactory2.cs (2)
28 var items = new List<NSCollectionLayoutBoundarySupplementaryItem>(); 55 var items = new List<NSCollectionLayoutBoundarySupplementaryItem>();
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)
396 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)
818 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)
80 List<Action> _pendingActions = new List<Action>();
Platform\AlertManager\AlertManager.iOS.cs (1)
16 readonly List<AlertRequestHelper> Subscriptions = new List<AlertRequestHelper>();
Platform\GestureManager\GesturePlatformManager.iOS.cs (7)
24 readonly List<INativeObject> _interactions = new List<INativeObject>(); 242 return new List<UIGestureRecognizer?> { tapGestureRecognizer }; 266 return new List<UIGestureRecognizer?> { uiRecognizer }; 326 return new List<UIGestureRecognizer?> { uiRecognizer }; 373 return new List<UIGestureRecognizer?> { uiRecognizer }; 464 var result = new List<UIGestureRecognizer?>() 682 var toRemove = new List<IGestureRecognizer>();
Platform\iOS\Extensions\FormattedStringExtensions.cs (2)
198 var spanRects = new List<CGRect>(); 251 var rects = new List<Rect>();
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)
315 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)
630 List<(IAppearanceObserver Observer, Element Pivot)> _appearanceObservers = new List<(IAppearanceObserver Observer, Element Pivot)>(); 631 List<IFlyoutBehaviorObserver> _flyoutBehaviorObservers = new List<IFlyoutBehaviorObserver>(); 849 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)
39 new List<(object Observer, Action<Page> Callback)>(); 40 readonly List<IShellContentInsetObserver> _observers = new List<IShellContentInsetObserver>(); 135 _navStack = new List<Page> { null }; 212 List<Page> _navStack = new List<Page> { null }; 351 List<Page> pagesToInsert = new List<Page>(); 512 List<Page> modalPageStacks = new List<Page>(); 513 List<Page> nonModalPageStacks = new List<Page>(); 824 _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)
1516 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)
303 var uniqueMatches = new List<string>();
Window\Window.cs (1)
88 _visualChildren = new List<IVisualTreeElement>();
Microsoft.Maui.Controls.BindingSourceGen (7)
BindingCodeWriter.cs (2)
55 var propertyAccessors = new List<string> 134 var unsafeAccessorsStrings = new List<string>();
BindingTransformer.cs (1)
19 var newPath = new List<IPathPart>();
PathParser.cs (3)
22 IdentifierNameSyntax _ => Result<List<IPathPart>>.Success(new List<IPathPart>()), 113 return Result<List<IPathPart>>.Success(new List<IPathPart>([part])); 194 return Result<List<IPathPart>>.Success(new List<IPathPart>([part]));
Setter.cs (1)
13 List<string> patternMatchingExpressions = new();
Microsoft.Maui.Controls.Build.Tasks (23)
BindablePropertyReferenceExtensions.cs (1)
45 var attributes = new List<CustomAttribute>();
CompiledMarkupExtensions\DataTemplateExtension.cs (1)
29 return new List<Instruction> {
CompiledMarkupExtensions\TypeExtension.cs (1)
35 return new List<Instruction> {
CreateObjectVisitor.cs (1)
329 var arguments = new List<INode>();
ExpandMarkupsVisitor.cs (2)
11 readonly IList<XmlName> _skips = new List<XmlName> 139 var childnodes = new List<(XmlName, INode)>();
MethodBodyExtensions.cs (1)
67 var ldlocUsed = new List<VariableDefinition>();
MethodDefinitionExtensions.cs (1)
14 var arguments = new List<INode>();
NodeILExtensions.cs (2)
471 var nodes = new List<IElementNode>(); 581 var scopes = new List<VariableDefinition>();
PerformanceProvider.cs (1)
15 public readonly List<Tuple<string, long>> StartTimes = new List<Tuple<string, long>>();
SetNamescopesAndRegisterNamesVisitor.cs (2)
52 namesInNamescope = new List<string>(); 80 IList<string> namesInNamescope = new List<string>();
SetPropertiesVisitor.cs (3)
613 var properties = new List<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)>(); 989 var partGetters = new List<MethodDefinition>(); 1068 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>(); 310 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(e); 330 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(error); 404 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(e);
XmlTypeExtensions.cs (1)
15 var xmlnsDefinitions = new List<XmlnsDefinitionAttribute>();
Microsoft.Maui.Controls.Compatibility (22)
iOS\CollectionView\CarouselViewController.cs (2)
32 _oldViews = new List<View>(); 421 var newViews = new List<View>();
iOS\CollectionView\ObservableGroupedSource.cs (1)
17 List<ObservableItemsSource> _groups = new List<ObservableItemsSource>();
iOS\ContextActionCell.cs (2)
22 readonly List<UIButton> _buttons = new List<UIButton>(); 23 readonly List<MenuItem> _menuItems = new List<MenuItem>();
iOS\Extensions\GeometryExtensions.cs (1)
173 List<Point> points = new List<Point>();
iOS\Extensions\LabelExtensions.cs (1)
83 var lineHeights = new List<double>();
iOS\Forms.cs (1)
196 _results = new List<object>();
iOS\Platform.cs (3)
56 _modals = new List<Page>(); 98 return new List<Page>(); 106 get { return new List<Page>(); }
iOS\Renderers\NavigationRenderer.cs (3)
929 readonly List<UIView> _lines = new List<UIView>(); 1418 (secondaries = secondaries ?? new List<UIBarButtonItem>()).Add(item.ToUIBarButtonItem(true)); 1420 (primaries = primaries ?? new List<UIBarButtonItem>()).Add(item.ToUIBarButtonItem());
iOS\Renderers\SwipeViewRenderer.cs (3)
451 _swipeItemsRect = new List<CGRect>(); 553 var swipeItems = new List<UIView>(); 1361 var itemsHeight = new List<double>();
iOS\Renderers\TabbedRenderer.cs (1)
313 var list = new List<UIViewController>();
iOS\Renderers\WkWebViewRenderer.cs (3)
363 List<NSHttpCookie> existingCookies = new List<NSHttpCookie>(); 477 List<NSHttpCookie> deleteCookies = new List<NSHttpCookie>(); 486 List<Cookie> cookiesToSet = new List<Cookie>();
iOS\VisualElementRenderer.cs (1)
43 readonly List<EventHandler<VisualElementChangedEventArgs>> _elementChangedHandlers = new List<EventHandler<VisualElementChangedEventArgs>>();
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)
43 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 79 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)
43 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 79 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)
207 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.cs (1)
138this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Template\SweepableEstimator_T_.cs (1)
143this.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\CasualLMSupervisedFineTuningTrainer.cs (1)
43var losses = new List<float>();
Microsoft.ML.GenAI.Core.Tests (3)
CasualLMDatasetTest.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)
542List<int> catBoundaries = new List<int> { 0 }; 581List<string> catIndices = new List<string>(); 746List<float> labelList = new List<float>(); 754List<float> weightList = hasWeights ? new List<float>() : null; 755List<ulong> cursorGroups = hasGroup ? new List<ulong>() : null; 784List<int> groupList = new List<int>();
WrappedLightGbmBooster.cs (2)
100var values = new List<double>(); 175List<int> cats = new List<int>();
WrappedLightGbmInterface.cs (1)
253List<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)
1000List<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 (1)
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)
444var 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>(); 190List<double> expectedValues = new List<double>() { 0, -3.31410598754883, 0.5, 5.12000000000001E-08, 0, 1.5700820684432983, 5.2001145245395008E-07, 213List<Data> data = new List<Data>(); 289List<Data> data = new List<Data>(); 359List<Data> data = new List<Data>(); 398List<float> expectedForecast = new List<float>() { 0.191491723f, 2.53994083f, 5.26454258f, 7.37313938f }; 399List<float> minCnf = new List<float>() { -3.9741993f, -2.36872721f, 0.09407653f, 2.18899345f }; 400List<float> maxCnf = new List<float>() { 4.3571825f, 7.448609f, 10.435009f, 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 (16)
Model\BPETokenizer.cs (2)
331List<EncodedToken> tokens = new(); 380List<int> ids = new();
Model\CodeGenTokenizer.cs (3)
376List<EncodedToken> tokens = new(); 615List<int> ids = new(); 1628return 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\SentencePieceTokenizer.cs (2)
256List<EncodedToken>? tokens = new(); 579List<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();
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 (15)
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>();
TiktokenTests.cs (10)
139Assert.Equal(new List<int>() { 9906, 4435 }, encoded); 151Assert.Equal(new List<Range> { new Range(0, 5), new Range(5, 11) }, offsets); 192Assert.Equal(new List<int>() { 100264, 9906, 4435, 100265 }, encoded); 205Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 6), (23, 10) }, offsets); 235Assert.Equal(new List<int>() { 100264, 9906, 100265, 4435 }, encoded); 248Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 10), (27, 6) }, offsets); 270Assert.Equal(new List<int>() { 100264, 9906, 2928, 99834, 4435, 100265 }, encoded); 278Assert.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()); 304Assert.Equal(new List<int>() { 199999, 13225, 161181, 5922, 200018 }, encoded); 313Assert.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());
TokenizerTests.cs (1)
107var tokens = new List<EncodedToken>();
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)
446List<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>(); 831List<(long, float[])> featurizedImages = new List<(long, float[])>(); 944List<string> runnerInputTensorNames = new List<string>(); 945List<string> runnerOutputTensorNames = new List<string>();
Microsoft.Net.Http.Headers (5)
CacheControlHeaderValue.cs (1)
532var nameValueList = new List<NameValueHeaderValue>();
HttpHeaderParser.cs (2)
82results = new List<T>(); // Allocate it only when used 121var 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.Http.Headers.Tests (6)
CookieHeaderValueTest.cs (1)
285Assert.Equal(cookies ?? new List<CookieHeaderValue>(), results);
MediaTypeHeaderValueTest.cs (4)
897new List<StringSegment>(){ "vdn", "github" } }, 899new List<StringSegment>(){ "vdn", "github" } }, 901new List<StringSegment>(){ "vdn", "github", "v3" } }, 903new List<StringSegment>(){ "vdn", "github", "" } },
SetCookieHeaderValueTest.cs (1)
454Assert.Equal(cookies ?? new List<SetCookieHeaderValue>(), results);
Microsoft.NET.StringTools.net35 (1)
WeakStringCache.Locking.cs (1)
91keysToRemove ??= new List<int>();
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) 1004Dim result As New List(Of MemberInfo)
Microsoft.VisualStudio.LanguageServices (61)
CallHierarchy\CallHierarchyProvider.cs (1)
109var finders = new List<AbstractCallFinder>
CallHierarchy\Finders\AbstractCallFinder.cs (1)
152var initializerLocations = new List<CallHierarchyDetail>();
CallHierarchy\Finders\CallToOverrideFinder.cs (1)
28var callsToOverrides = new List<SymbolCallerInfo>();
ChangeSignature\ChangeSignatureDialogViewModel.cs (4)
116.GetOrAdd(parameter.ParameterName, _ => new List<ParameterViewModel>()) 149var list = new List<ParameterViewModel>(); 348var displayParts = new List<SymbolDisplayPart>(); 388var list = new List<ParameterViewModel>();
EditorConfigSettings\SettingsEditorPane.SearchFilter.cs (1)
25var newVisibleColumns = new List<ITableColumnDefinition>();
ErrorReporting\VisualStudioErrorReportingService.cs (1)
67var infoBarUIs = new List<InfoBarUI>();
ErrorReporting\VisualStudioInfoBar.cs (1)
80var actionItems = new List<IVsInfoBarActionItem>();
Extensions\DocumentExtensions.cs (1)
21var codeBlocks = new List<Tuple<TextSpan, uint>>();
FindReferences\RoslynDefinitionBucket.cs (1)
116var inlines = new List<Inline> { new Run(" ") };
GenerateType\GenerateTypeDialog.xaml.cs (5)
53new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.A, ModifierKeys.Alt) })), 60new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.K, ModifierKeys.Alt) })), 67new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.P, ModifierKeys.Alt) })), 74new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.C, ModifierKeys.Alt) })), 81new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.X, ModifierKeys.Alt) })),
GenerateType\GenerateTypeDialogViewModel.cs (1)
730var projectListing = new List<ProjectSelectItem>
PickMembers\PickMembersDialog.xaml.cs (2)
52new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.S, ModifierKeys.Alt) })), 59new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.D, ModifierKeys.Alt) })),
Preview\FileChange.cs (1)
102var spanChanges = new List<SpanChange>();
Preview\PreviewEngine.cs (1)
118var allDocumentsWithChanges = new List<DocumentId>();
Progression\GraphBuilder.cs (1)
34private readonly IList<Tuple<GraphNode, GraphProperty, object>> _deferredPropertySets = new List<Tuple<GraphNode, GraphProperty, object>>();
Progression\GraphNodeIdCreation.cs (8)
68var items = new List<GraphNodeId>(); 171var partials = new List<GraphNodeId> 191var genericArguments = new List<GraphNodeId>(); 222var partials = new List<GraphNodeId> 238var partials = new List<GraphNodeId>(); 290var partials = new List<GraphNodeId>(); 297var memberPartials = new List<GraphNodeId> 309var parameterTypeIds = new List<GraphNodeId>();
ProjectSystem\Legacy\SolutionEventsBatchScopeCreator.cs (1)
31private readonly List<(ProjectSystemProject project, IVsHierarchy hierarchy, ProjectSystemProject.BatchScope batchScope)> _fullSolutionLoadScopes = new List<(ProjectSystemProject, IVsHierarchy, ProjectSystemProject.BatchScope)>();
ProjectSystem\VisualStudioProjectManagementService.cs (1)
62var folders = new List<string>();
Snippets\SnippetExpansionClient.cs (2)
642var declarations = new List<XElement>(); 1089var failedReferenceAdditions = new List<string>();
SymbolSearch\VisualStudioSymbolSearchService.cs (2)
166var packagesUsedInOtherProjects = new List<TPackageResult>(); 167var packagesNotUsedInOtherProjects = new List<TPackageResult>();
Telemetry\CodeMarkerLogger.cs (23)
23{ FunctionId.NavigateTo_Search, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 29{ FunctionId.Rename_InlineSession, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 34{ FunctionId.Rename_FindLinkedSpans, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 39{ FunctionId.WinformDesigner_GenerateXML, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 44{ FunctionId.BackgroundCompiler_BuildCompilationsAsync, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 50{ FunctionId.FindReference, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 55{ FunctionId.SmartTags_SmartTagInitializeFixes, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 60{ FunctionId.SmartTags_ApplyQuickFix, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 66{ FunctionId.LineCommit_CommitRegion, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 71{ FunctionId.Tagger_Outlining_TagProducer_ProduceTags, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 76{ FunctionId.Tagger_LineSeparator_TagProducer_ProduceTags, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 81{ FunctionId.NavigationBar_ComputeModelAsync, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 86{ FunctionId.Completion_ModelComputer_DoInBackground, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 92{ FunctionId.SignatureHelp_ModelComputation_UpdateModelInBackground, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 97{ FunctionId.Formatting_Format, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 102{ FunctionId.Formatting_ApplyResultToBuffer, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 107{ FunctionId.SmartTags_RefreshSession, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 118{ FunctionId.Rename_InlineSession, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBRenameSymbolEnd } }, 119{ FunctionId.BackgroundCompiler_BuildCompilationsAsync, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBCompilerReachedBoundState, CodeMarkerEvent.perfVBCompilerReachedCompiledState } }, 120{ FunctionId.Completion_ModelComputer_DoInBackground, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBIntelliXMLIndexingEnd } }, 121{ FunctionId.WorkCoordinator_AsyncWorkItemQueue_FirstItem, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBCompilerRegisterDesignViewAttributeBegin, CodeMarkerEvent.perfVBCompilerCommitBegin } }, 122{ FunctionId.WorkCoordinator_AsyncWorkItemQueue_LastItem, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBCompilerRegisterDesignViewAttributeEnd, CodeMarkerEvent.perfVBCompilerCommitEnd } }, 123{ FunctionId.Snippet_OnAfterInsertion, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBInsertSnippetEnd } }
Watson\FaultReporter.cs (1)
307var paths = new List<string>();
Microsoft.VisualStudio.LanguageServices.CodeLens (1)
ReferenceCodeLensProvider.cs (1)
276Fields = new List<CodeLensDetailEntryField>()
Microsoft.VisualStudio.LanguageServices.CSharp (15)
ChangeSignature\CSharpChangeSignatureViewModelFactoryService.cs (1)
31var parts = new List<SymbolDisplayPart>();
CodeModel\CSharpCodeModelService.cs (3)
1222var commentList = new List<SyntaxTrivia>(); 2316var updatedAccessors = new List<AccessorDeclarationSyntax>(); 2356var updatedAccessors = new List<AccessorDeclarationSyntax>();
CodeModel\ModifierFlagsExtensions.cs (1)
111var newModifierList = new List<SyntaxToken>();
Options\Formatting\StyleViewModel.cs (8)
2210var usingDirectivePlacementPreferences = new List<CodeStylePreference> 2216var qualifyMemberAccessPreferences = new List<CodeStylePreference> 2222var predefinedTypesPreferences = new List<CodeStylePreference> 2228var typeStylePreferences = new List<CodeStylePreference> 2353var bracesPreferences = new List<CodeStylePreference> 2372var preferences = new List<CodeStylePreference> 2390var expressionBodyPreferences = new List<CodeStylePreference> 2458var unusedValuePreferences = new List<CodeStylePreference>
ProjectSystemShim\TempPECompilerService.cs (1)
75var arguments = new List<string>();
Snippets\CSharpSnippetExpansionLanguageHelper.cs (1)
113var newUsings = new List<UsingDirectiveSyntax>();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (10)
Interactive\Commands\InteractiveCommandHandlerTests.cs (1)
178var submissions = new List<string>();
Interactive\Commands\ResetInteractiveTests.cs (3)
59var expectedUsings = new List<string> { @"using ""System"";", @"using ""ResetInteractiveTestsDocument"";" }; 77var executedSubmissionCalls = new List<string>(); 118var expectedSubmissions = new List<string>();
PersistentStorage\AbstractPersistentStorageTests.cs (2)
914var exceptions = new List<Exception>(); 946var exceptions = new List<Exception>();
ProjectSystemShim\CPS\SourceFileHandlingTests.cs (4)
319Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>())); 343Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>())); 351Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>())); 367Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>()));
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\Projects\RemoteProjectInfoProvider.cs (1)
32var projectInfos = new List<ProjectInfo>();
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Features\InlineRename\XamlEditorInlineRenameService.cs (1)
79var references = new List<InlineRenameLocation>();
Implementation\LanguageServer\Extensions\SymbolExtensions.cs (1)
56var builder = new List<TaggedText>();
MilvusPlayground.ApiService (4)
Program.cs (4)
46List<long> bookIds = new(); 47List<long> wordCounts = new(); 48List<ReadOnlyMemory<float>> bookIntros = new(); 49List<string> bookNames = new();
MSBuild (19)
CommandLineSwitches.cs (3)
442internal static List<(string path, string contents)> SwitchesFromResponseFiles = new(); 581var commandLineA = new List<string>(); 582var commandLineB = new List<string>();
QuotingUtilities.cs (1)
135var pieces = new List<string>();
TaskParameter.cs (1)
793List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
TerminalLogger\Project.cs (1)
95_buildMessages ??= new List<BuildMessage>();
TerminalLogger\TerminalLogger.cs (1)
197private List<TestSummary> _testRunSummaries = new();
WindowsFileSystem.cs (1)
96var enumeration = new List<string>();
XMake.cs (11)
1223s_includedResponseFiles = new List<string>(); 1225CommandLineSwitches.SwitchesFromResponseFiles = new(); 1249private static readonly List<BuildManager.DeferredBuildMessage> s_globalMessagesToLogInBuildLoggers = new(); 1316List<ForwardingLoggerRecord> remoteLoggerRecords = new List<ForwardingLoggerRecord>(); 1523List<BuildManager.DeferredBuildMessage> messagesToLogInBuildLoggers = new(); 2246argsFromResponseFile = new List<string>(); 3543List<string> actualProjectFiles = new List<string>(); 3557List<string> actualSolutionFiles = new List<string>(); 3558List<string> solutionFilterFiles = new List<string>(); 3816var loggers = new List<ILogger>(); 4250List<DistributedLoggerRecord> distributedLoggers = new List<DistributedLoggerRecord>();
MSBuildTaskHost (4)
BuildEngineResult.cs (1)
38this.targetOutputsPerProject = new List<IDictionary<string, ITaskItem[]>>();
NativeMethods.cs (1)
1448List<KeyValuePair<int, SafeProcessHandle>> myChildren = new List<KeyValuePair<int, SafeProcessHandle>>();
TaskParameter.cs (1)
793List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
VisualStudioLocationHelper.cs (1)
33var validInstances = new List<VisualStudioInstance>();
Mvc.Api.Analyzers.Test (5)
TestFiles\ActualApiResponseMetadataFactoryTest\TryGetActualResponseMetadataTests.cs (2)
14var models = new List<TryGetActualResponseMetadataModel>(); 22var models = new List<TryGetActualResponseMetadataModel>();
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Input.cs (1)
14new List<CodeFixWorksWhenMultipleIdenticalStatusCodesAreInErrorModel>();
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Output.cs (1)
15new List<CodeFixWorksWhenMultipleIdenticalStatusCodesAreInErrorModel>();
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForOkResultReturningAction.cs (1)
15var models = new List<NoDiagnosticsAreReturned_ForOkResultReturningActionModel>();
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();
Nats.ApiService (1)
Program.cs (1)
62var events = new List<AppEvent>();
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();
PathSchemeSelection (1)
Controllers\AccountController.cs (1)
36var claims = new List<Claim>
PrepareTests (2)
MinimizeUtil.cs (2)
126var fileList = new List<string>(); 146var rehydratedDirectories = new List<string>();
PresentationBuildTasks (12)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (4)
70var mainEmbeddedList = new List<ITaskItem>(); 71var satelliteEmbeddedList = new List<ITaskItem>(); 72var clrEmbeddedResourceList = new List<ITaskItem>(); 73var clrSatelliteEmbeddedResourceList = new List<ITaskItem>();
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (1)
272var properties = new List<(string PropertyName, string PropertyValue)>
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (2)
181List<FileUnit> modifiedXamlFiles = new List<FileUnit>(); 361List<FileUnit> recompiledXaml = new List<FileUnit>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (1)
219List<IntegerMarkup> resource = new List<IntegerMarkup>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (3)
85List<Assembly> interestingAssemblies = new List<Assembly>(); 216List<CustomAttributeData> foundAttributes = new List<CustomAttributeData>(); 319_cacheTable[xmlns] = new List<ClrNamespaceAssemblyPair>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
130List<string> keysToUpdate = new List<string>();
PresentationCore (140)
MS\Internal\FontCache\FamilyCollection.cs (1)
50List<CompositeFontFamily> compositeFonts = new List<CompositeFontFamily>();
MS\Internal\Ink\Bezier.cs (2)
49List<Point> points = new List<Point>(); 580private List<Point> _bezierControlPoints = new List<Point>();
MS\Internal\Ink\CuspData.cs (1)
533private List<int> _cusps = new List<int>();
MS\Internal\Ink\ErasingStroke.cs (2)
140List<StrokeFIndices> eraseAt = new List<StrokeFIndices>(); 262List<Point> newPath = new List<Point>();
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
357private List<ExtendedProperty> _extendedProperties = new List<ExtendedProperty>();
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (3)
214List<ApplicationGesture> gestures = new List<ApplicationGesture>(); 602List<GestureRecognitionResult> resultList = new List<GestureRecognitionResult>(); 670List<GestureRecognitionResult> resultList = new List<GestureRecognitionResult>();
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (1)
72List<byte> compressedData = new List<byte>();
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (1)
14private readonly System.Collections.Generic.List<Guid> _customGuids = new System.Collections.Generic.List<Guid>();
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
104private List<HuffCodec> _huffCodecs = new List<HuffCodec>();
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (9)
317_strokeDescriptorTable = new System.Collections.Generic.List<StrokeDescriptor>(); 318_drawingAttributesTable = new System.Collections.Generic.List<DrawingAttributes>(); 319_transformTable = new System.Collections.Generic.List<TransformDescriptor>(); 320_metricTable = new System.Collections.Generic.List<MetricBlock>(); 1568tags = new System.Collections.Generic.List<KnownTagCache.KnownTagIndex>(); 1615List<StylusPointPropertyInfo> stylusPointPropertyInfos = new List<StylusPointPropertyInfo>(); 1686_drawingAttributesTable = new List<DrawingAttributes>(); 1687_metricTable = new List<MetricBlock>(); 1688_transformTable = new List<TransformDescriptor>();
MS\Internal\Ink\InkSerializedFormat\LZCodec.cs (1)
33List<byte> output = new List<byte>();
MS\Internal\Ink\InkSerializedFormat\StrokeDescriptor.cs (1)
12private System.Collections.Generic.List<KnownTagCache.KnownTagIndex> _strokeDescriptor = new System.Collections.Generic.List<KnownTagCache.KnownTagIndex>();
MS\Internal\Ink\Lasso.cs (4)
26_points = new List<Point>(); 220List<LassoCrossing> crossingList = new List<LassoCrossing>(); 316List<StrokeIntersection> strokeIntersectionList = new List<StrokeIntersection>(); 331List<LassoCrossing> mergedList = new List<LassoCrossing>();
MS\Internal\Ink\Renderer.cs (1)
297_attachedVisuals = new List<Visual>();
MS\Internal\Ink\StrokeRenderer.cs (3)
62List<Point> strokeNodePoints = new List<Point>(); 260List<Point> pathFigureABSide = new List<Point>();//don't prealloc. It causes Gen2 collections to rise and doesn't help execution time 261List<Point> pathFigureDCSide = new List<Point>();
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (8)
250List<HitTestEdge> hitTestEdgeList = new List<HitTestEdge>(); 261return new List<HitTestEdge>(); 273return new List<HitTestEdge>(); 407hitTestEdgeList = new List<HitTestEdge>(); 473List<Point3D> pointList = new List<Point3D>(); 474List<Point> uvList = new List<Point>(); 903List<Point3D> pointList = new List<Point3D>(); 904List<Point> uvList = new List<Point>();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
189keysToRemove = new List<object>();
System\Windows\Automation\Peers\AutomationPeer.cs (1)
1925if(addedChildren == null) addedChildren = new List<AutomationPeer>();
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
68children = new List<AutomationPeer>();
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
66children = new List<AutomationPeer>();
System\Windows\FreezableCollection.cs (2)
42_collection = new List<T>(); 75_collection = new List<T>();
System\Windows\Ink\IncrementalHitTester.cs (2)
527List<StrokeIntersection> eraseAt = new List<StrokeIntersection>(); 547strokeHitEventArgCollection = new List<StrokeHitEventArgs>();
System\Windows\Ink\Stroke2.cs (1)
572List<StrokeIntersection> intersections = new List<StrokeIntersection>();
System\Windows\Ink\StrokeCollection2.cs (3)
335List<StrokeIntersection> intersections = new List<StrokeIntersection>(); 353List<Stroke> solidStrokes = new List<Stroke>(); 367strokes = new List<Stroke>();
System\Windows\Input\Command\CanExecuteChangedEventManager.cs (3)
106toRemove = new List<HandlerSink>(); 192list = new List<HandlerSink>(); 267list = new List<Delegate>();
System\Windows\Input\InputScope.cs (2)
90private IList<InputScopeName> _scopeNames = new List<InputScopeName>(); 91private IList<InputScopePhrase> _phraseList = new List<InputScopePhrase>();
System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (1)
199_inertiaParameters = new List<InertiaParameters2D>();
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (2)
208List<StrokeInfo> _strokeInfoList = new List<StrokeInfo>(); 1173List<StrokeInfo> _strokeInfoList = new List<StrokeInfo>();
System\Windows\Input\Stylus\Common\StylusDeviceCollection.cs (1)
23: base(new List<StylusDevice>())
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (1)
113List<StylusPoint> stylusPoints = new List<StylusPoint>();
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (2)
62List<Guid> seenIds = new List<Guid>(); 351List<StylusPointPropertyInfo> commonProperties = new List<StylusPointPropertyInfo>();
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (1)
260List<StylusPointPropertyInfo> propertyInfos = new List<StylusPointPropertyInfo>();
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
120internal List<TabletDevice> TabletDevices { get; set; } = new List<TabletDevice>();
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (1)
37new List<UnsafeNativeMethods.INTERACTION_CONTEXT_CONFIGURATION>()
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
122List<StylusButton> buttons = new List<StylusButton>();
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
649List<StylusPlugInCollection> _plugInCollectionList = new List<StylusPlugInCollection>();
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
96List<PointerStylusDevice> pointerStylusDevices = new List<PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceInfo.cs (4)
189List<StylusPointProperty> properties = new List<StylusPointProperty>() 196List<StylusPointProperty> buttonProperties = new List<StylusPointProperty>(); 199List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY> supportedProperties = new List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY>() 205List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY> supportedButtonProperties = new List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY>();
System\Windows\Input\Stylus\Wisp\PenContext.cs (1)
331_stylusDevicesInRange = new List<int>(); // create it as needed.
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
545List<StylusPlugInCollection> _plugInCollectionList = new List<StylusPlugInCollection>();
System\Windows\Input\Stylus\Wisp\PenThreadPool.cs (2)
61_penThreadWeakRefList = new List<WeakReference<PenThread>>(); 84List<PenThread> ignoredThreads = new List<PenThread>();
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (3)
43private List <WorkerOperation> _workerOperation = new List<WorkerOperation>(); 998List <PenContext> penContextRefs = new List<PenContext>(); // keep them alive while processing! 1057List <PenContext> penContextRefs = new List<PenContext>(); // keep them alive while processing!
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (2)
637List<TabletDevice> tabletTemp = new List<TabletDevice>(); 700List<TabletDevice> _deferredTablets = new List<TabletDevice>();
System\Windows\Input\TouchDevice.cs (1)
1215List<TouchDevice> touches = new List<TouchDevice>();
System\Windows\InterOp\HwndSource.cs (1)
1920_keyboardInputSinkChildren = new List<HwndSourceKeyboardInputSite>();
System\Windows\Media\Animation\ClockGroup.cs (2)
105_children = new List<Clock>(); 414_rootChildren = new List<WeakReference>();
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
631List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 826List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
630List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 825List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
630List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 825List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
630List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 825List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
724List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 919List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
724List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 919List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
724List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 919List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
630List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 825List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
724List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 919List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
723List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 918List<Double> segmentLengths = new List<Double>();
System\Windows\Media\GlyphRun.cs (2)
2326(_advanceWidths == null ? null : ((_textFormattingMode != TextFormattingMode.Ideal) ? (IList<double>)(new List<double>()) : (IList<double>)(new ThousandthOfEmRealDoubles(_renderingEmSize, _advanceWidths)))), 2327(_glyphOffsets == null ? null : ((_textFormattingMode != TextFormattingMode.Ideal) ? (IList<Point>)(new List<Point>()) : (IList<Point>)(new ThousandthOfEmRealPoints(_renderingEmSize, _glyphOffsets)))),
System\Windows\Media\Imaging\BitmapDownload.cs (1)
104decoders = new List<WeakReference>()
System\Windows\Media\Imaging\BitmapMetadata.cs (3)
132_metadataBlocks = new List<SafeMILHandle>(); 141_metadataBlocks = new List<SafeMILHandle>(); 257List<SafeMILHandle> metadataBlocks = new();
System\Windows\Media\Imaging\BitmapPalette.cs (2)
302List<Color> colors = new List<Color>(); 368private IList<Color> _colors = new PartialList<Color>(new List<Color>());
System\Windows\Media\SolidColorBrush.cs (1)
290keys = new List<TKey>();
System\Windows\Media3D\Matrix3DStack.cs (1)
103private readonly List<Matrix3D> _stack = new List<Matrix3D>();
System\Windows\Media3D\RayHitTestParameters.cs (1)
212private readonly List<RayHitTestResult> results = new List<RayHitTestResult>();
PresentationCore.Tests (15)
BinaryFormat\ListTests.cs (14)
108new List<int>(), 109new List<float>() { 3.14f }, 110new List<float>() { float.NaN, float.PositiveInfinity, float.NegativeInfinity, float.NegativeZero }, 111new List<int>() { 1, 3, 4, 5, 6, 7 }, 112new List<byte>() { 0xDE, 0xAD, 0xBE, 0xEF }, 113new List<char>() { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' }, 114new List<char>() { 'a', '\0', 'c' }, 115new List<string>() { "Believe", "it", "or", "not" }, 116new List<decimal>() { 42m }, 117new List<DateTime>() { new(2000, 1, 1) }, 118new List<TimeSpan>() { new(0, 0, 50) } 123new List<object>(), 124new List<nint>(), 125new List<(int, int)>()
System\Windows\TextDecorationCollectionConverter.Tests.cs (1)
233new List<TextDecoration> { TextDecorations.Underline[0], TextDecorations.OverLine[0], TextDecorations.Baseline[0] }, typeof(InstanceDescriptor) };
PresentationFramework (329)
Microsoft\Win32\CommonItemDialog.cs (1)
551CustomPlaces = new List<FileDialogCustomPlace>();
Microsoft\Win32\FileDialog.cs (1)
677List<string> extensions = new();
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
89IList<DependencyObject> pageEl = new List<DependencyObject>();
MS\Internal\Annotations\Anchoring\LocatorManager.cs (3)
264IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(); 637List<ContentLocatorBase> locatorsToReturn = new List<ContentLocatorBase>(); 1299private List<IAttachedAnnotation> _attachedAnnotations = new List<IAttachedAnnotation>();
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
114IList<DependencyObject> list = new List<DependencyObject>();
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
392List<AnnotationAdorner> res = new List<AnnotationAdorner>();
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
274currentList = new List<IAnnotationComponent>();
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (3)
37_segments = new List<HighlightSegment>(); 794IList<HighlightSegment> res = new List<HighlightSegment>(); 1199private List<IHighlightRange> _activeOwners = new List<IHighlightRange>();
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
999_components = new List<MarkedHighlightComponent>();
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (1)
200List<Annotation> annotations = new List<Annotation>();
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
89_elementsBounds = new List<Rect>();
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
843_toRemove = new List<CollectionViewGroupInternal>();
MS\Internal\Data\CommitManager.cs (4)
58list = new List<BindingGroup>(); 84list = new List<BindingExpressionBase>(); 144static readonly List<BindingGroup> EmptyBindingGroupList = new List<BindingGroup>(); 145static readonly List<BindingExpressionBase> EmptyBindingList = new List<BindingExpressionBase>();
MS\Internal\Data\LiveShapingBlock.cs (2)
273List<LiveShapingBlock> list = new List<LiveShapingBlock>(); // subtrees to explore 354List<LiveShapingBlock> list = new List<LiveShapingBlock>(); // subtrees to explore
MS\Internal\Data\LiveShapingList.cs (4)
88_sortDirtyItems = new List<LiveShapingItem>(); 89_filterDirtyItems = new List<LiveShapingItem>(); 90_groupDirtyItems = new List<LiveShapingItem>(); 795static List<DependencyProperty> s_dpList = new List<DependencyProperty>();
MS\Internal\Data\PathParser.cs (1)
383private readonly List<SourceValueInfo> _sourceValueInfos = new();
MS\Internal\Data\PropertyPathWorker.cs (1)
1312List<MemberInfo> list = new List<MemberInfo>();
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
570List<String> _toRemove = new List<String>();
MS\Internal\Data\ValueChangedEventManager.cs (1)
385List<PropertyDescriptor> _toRemove = new List<PropertyDescriptor>();
MS\Internal\Data\ValueTable.cs (1)
244List<PropertyDescriptor> result = new List<PropertyDescriptor>();
MS\Internal\Documents\ContentHostHelper.cs (1)
108pageViews = new List<DocumentPageView>();
MS\Internal\Documents\DocumentPageTextView.cs (2)
316return new ReadOnlyCollection<GlyphRun>(new List<GlyphRun>()); 531return new ReadOnlyCollection<TextSegment>(new List<TextSegment>());
MS\Internal\Documents\MultiPageTextView.cs (2)
43_pageTextViews = new List<DocumentPageTextView>(); 685List<TextSegment> textSegments = new List<TextSegment>();
MS\Internal\Documents\TextBoxLine.cs (1)
260List<Rect> rectangles = new List<Rect>();
MS\Internal\Documents\TextContainerHelper.cs (6)
84segments = new List<TextSegment>(); 313List<AutomationPeer> peers = new List<AutomationPeer>(); 438ancestorsStart = new List<object>(); 439positionsStart = new List<ITextPointer>(); 454ancestorsEnd = new List<object>(); 455positionsEnd = new List<ITextPointer>();
MS\Internal\Documents\TextDocumentView.cs (2)
356List<GlyphRun> glyphRuns = new List<GlyphRun>(); 591return new ReadOnlyCollection<TextSegment>(new List<TextSegment>());
MS\Internal\Documents\TextViewBase.cs (1)
112return new ReadOnlyCollection<GlyphRun>(new List<GlyphRun>());
MS\Internal\Documents\UIElementIsland.cs (2)
198return new ReadOnlyCollection<Rect>(new List<Rect>()); 208List<IInputElement> hostedElements = new List<IInputElement>();
MS\Internal\Globalization\BamlTreeNode.cs (1)
193_children = new List<BamlTreeNode>();
MS\Internal\Globalization\BamlTreeUpdater.cs (2)
46List<KeyValuePair<BamlLocalizableResourceKey, BamlLocalizableResource>> deferredResources = new(); 566List<BamlTreeNode> list = new();
MS\Internal\Helper.cs (1)
880List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item) ?? new List<KeyValuePair<int, object>>();
MS\Internal\Ink\ElementsClipboardData.cs (1)
60return new List<UIElement>();
MS\Internal\Ink\HighContrastHelper.cs (1)
62__highContrastCallbackList = new List<WeakReference>();
MS\Internal\Ink\InkCanvasSelection.cs (2)
83_selectedElements = new List<UIElement>(); 830List<Rect> rects = new List<Rect>();
MS\Internal\Ink\LassoHelper.cs (1)
72List<Point> justAdded = new List<Point>();
MS\Internal\Ink\LassoSelectionBehavior.cs (5)
128List<Point> points = new List<Point>(); 180List<Point> points = new List<Point>(); 196List<Point> points = new List<Point>(); 238List<UIElement> elementsToSelect = new List<UIElement>(); 338List<UIElement> elementsToSelect = new List<UIElement>();
MS\Internal\Ink\TextClipboardData.cs (1)
70ElementList = new List<UIElement>();
MS\Internal\Ink\XamlClipboardData.cs (1)
89ElementList = new List<UIElement>();
MS\Internal\LayoutDump.cs (1)
357List<UIElement> uiElements = new List<UIElement>();
MS\Internal\PtsHost\BaseParaClient.cs (2)
128return new List<Rect>(); 138rectangles = new List<Rect>();
MS\Internal\PtsHost\BreakRecordTable.cs (1)
38_breakRecords = new List<BreakRecordTableEntry>();
MS\Internal\PtsHost\ContainerParaClient.cs (2)
130List<Rect> rectangles = new List<Rect>(); 159rectangles = new List<Rect>();
MS\Internal\PtsHost\FigureParaClient.cs (1)
282List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\FloaterParaClient.cs (1)
287List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
313List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\Line.cs (1)
489List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\PtsCache.cs (1)
236_releaseQueue = new List<PtsContext>();
MS\Internal\PtsHost\PtsHelper.cs (2)
447List<Rect> rectangles = new List<Rect>(); 486List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\PtsPage.cs (5)
227List<Rect> rectangles = new List<Rect>(); 1250List<Rect> rectangles = new List<Rect>(); 1299rectangles = new List<Rect>(); 1378List<Rect> rectangles = new List<Rect>(); 1544_floatingElementList = new List<BaseParaClient>();
MS\Internal\PtsHost\SubpageParaClient.cs (1)
221List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\TableParaClient.cs (2)
434List<Rect> rectangles = new List<Rect>(); 448rectangles = new List<Rect>();
MS\Internal\PtsHost\TextParaClient.cs (5)
250List<Rect> rectangles = new List<Rect>(); 3864List<Rect> rectangles = new List<Rect>(); 3906List<Rect> rectangles = new List<Rect>(); 4044List<Rect> rectangles = new List<Rect>(); 4086List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\TextParagraph.cs (2)
884List<TextElement> attachedElements = new List<TextElement>(); 939List<AttachedObject> attachedObjects = new List<AttachedObject>();
MS\Internal\PtsHost\UIElementParaClient.cs (1)
86List<Rect> rectangles = new List<Rect>();
MS\Internal\Text\Line.cs (1)
158List<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)
86private static List<string> ScriptCodesRequiringDedicatedSegmenter { get; } = new List<string>
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
367IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>();
System\Windows\Annotations\AnnotationHelper.cs (1)
724List<Annotation> annotations = new List<Annotation>();
System\Windows\Annotations\AnnotationService.cs (3)
963IList<IAttachedAnnotation> dirtyAnnotations = new List<IAttachedAnnotation>(); 991IList<UIElement> processedElements = new List<UIElement>(); 1174List<IAttachedAnnotation> result = new List<IAttachedAnnotation>();
System\Windows\Annotations\Storage\XmlStreamStore.cs (3)
770IList<Uri> allNamespaces = new List<Uri>(); 821IList<string> supportedNamespaces = new List<string>(); 1034List<Uri> _ignoredNamespaces = new List<Uri>();
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
110List<AutomationPeer> peers = new List<AutomationPeer>(); 460List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 607List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>();
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
78children = new List<AutomationPeer>();
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
174List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(); 239List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 273List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>();
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
374List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>();
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (1)
78children = new List<AutomationPeer>();
System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (1)
73children = new List<AutomationPeer>();
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
103children = new List<AutomationPeer>();
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
76children = new List<AutomationPeer>();
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
147children = new List<AutomationPeer>();
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
52List<AutomationPeer> list = new List<AutomationPeer>();
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
121List<AutomationPeer> children = new List<AutomationPeer>();
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (3)
513_recentlyRealizedPeers = new List<ItemAutomationPeer>(); 625_list = new List<KeyValuePair<object, T>>(); 671List<object> cleanUpItemsCollection = new List<object>();
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (1)
155return new List<AutomationPeer>();
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (2)
35List<AutomationPeer> list = new List<AutomationPeer>(); 93children = new List<AutomationPeer>();
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (1)
126return new List<AutomationPeer>();
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
64children = new List<AutomationPeer>();
System\Windows\BroadcastEventHelper.cs (1)
256List<DependencyObject> eventRoute = new List<DependencyObject>();
System\Windows\Controls\AlternationConverter.cs (1)
57List<object> _values = new List<object>();
System\Windows\Controls\CustomDictionarySources.cs (1)
42_uriList = new List<Uri>();
System\Windows\Controls\DataGrid.cs (6)
4665_pendingInfos = new List<ItemInfo>(); 5343ranges = new List<Tuple<int, int>>(); 7357GroupingSortDescriptionIndices = new List<int>(); 7610List<Tuple<int, int>> ranges = new List<Tuple<int, int>>(); 7689List<ItemInfo> list = new List<ItemInfo>(); 7709List<ItemInfo> list = new List<ItemInfo>();
System\Windows\Controls\DataGridCellsPanel.cs (4)
220List<int> realizedColumnIndices = new List<int>(); 221List<int> realizedColumnDisplayIndices = new List<int>(); 467List<RealizedColumnsBlock> resultList = new List<RealizedColumnsBlock>(); 1573List<int> additionalChildIndices = new List<int>();
System\Windows\Controls\DataGridColumnCollection.cs (2)
901List<DataGridColumn> unResolvedColumns = new List<DataGridColumn>(); 902List<DataGridColumn> partialResolvedColumns = new List<DataGridColumn>();
System\Windows\Controls\DataGridRowClipboardEventArgs.cs (1)
53_clipboardRowContent = new List<DataGridClipboardCellContent>();
System\Windows\Controls\DefinitionBase.cs (1)
746_registry = new List<DefinitionBase>();
System\Windows\Controls\GridViewColumnCollection.cs (2)
459private List<GridViewColumn> _columns = new List<GridViewColumn>(); 463private List<int> _actualIndices = new List<int>();
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1599_gvHeaders = new List<GridViewColumnHeader>(); 1630_headersPositionList = new List<Rect>();
System\Windows\Controls\GridViewRowPresenter.cs (1)
405List<UIElement> list = new List<UIElement>();
System\Windows\Controls\InkCanvas.cs (3)
2099List<UIElement> newElements = new List<UIElement>(); 2516List<UIElement> elements = new List<UIElement>(); 2676removeSelectedElements ? new List<UIElement>() : elements,
System\Windows\Controls\ItemContainerGenerator.cs (3)
1000List<string> errors = new List<string>(); 1061List<string> sources = new List<string>(); 2055_emptyGroupItems = new List<EmptyGroupItem>();
System\Windows\Controls\ItemsControl.cs (1)
3622List<DependencyObject> claimedContainers = new List<DependencyObject>();
System\Windows\Controls\PopupControlService.cs (1)
851List<NativeMethods.RECT> rects = new List<NativeMethods.RECT>();
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
62_pageViews = new ReadOnlyCollection<DocumentPageView>(new List<DocumentPageView>());
System\Windows\Controls\Primitives\Popup.cs (1)
189registeredPopups = new List<Popup>()
System\Windows\Controls\Primitives\Selector.cs (3)
2287List<ItemInfo> unselected = new List<ItemInfo>(); 2288List<ItemInfo> selected = new List<ItemInfo>(); 2408? new List<ItemInfo>() : null;
System\Windows\Controls\TextAdaptor.cs (2)
129List<Rect> rectangles = new List<Rect>(); 509List<TextSegment> visibleTextSegments = new List<TextSegment>();
System\Windows\Controls\TextBlock.cs (1)
1785List<Rect> rectangles = new List<Rect>();
System\Windows\Controls\TextChangedEventArgs.cs (1)
89: this(id, action, new ReadOnlyCollection<TextChange>(new List<TextChange>()))
System\Windows\Controls\ToolBarTray.cs (1)
956private List<ToolBar> _band = new List<ToolBar>();
System\Windows\Controls\VirtualizedCellInfoCollection.cs (8)
29_regions = new List<CellRegion>(); 42_regions = (regions != null) ? new List<CellRegion>(regions) : new List<CellRegion>(); 202List<DataGridCellInfo> list = new List<DataGridCellInfo>(); 714remainder = new List<CellRegion>(); 833List<CellRegion> addList = new List<CellRegion>(); 918removeList = new List<CellRegion>(); 1410List<CellRegion> removeList = new List<CellRegion>(); 1541columnIndexRanges = new List<int>();
System\Windows\Controls\VirtualizingStackPanel.cs (4)
10927previouslyMeasuredOffsets = new List<double>(); 12475= new List<Tuple<WeakReference<ItemsControl>,TraceList>>(); 12574private List<ScrollTraceRecord> _traceList = new List<ScrollTraceRecord>(); 13000List<ChildInfo> list = new List<ChildInfo>();
System\Windows\Data\BindingExpression.cs (1)
2340result = new List<object>();
System\Windows\Data\BindingExpressionBase.cs (4)
290list = new List<ValidationError>(); 2296notifyDataErrors = new List<ValidationError>(); 2338toAdd = new List<object>(); 2435var tempList = new List<WeakDependencySource>();
System\Windows\Data\BindingGroup.cs (3)
260List<ValidationError> errors = new List<ValidationError>(); 1104itemErrors = new List<ValidationError>(); 1631List<BindingExpressionBase> result = new List<BindingExpressionBase>();
System\Windows\Data\BindingListCollectionView.cs (2)
2387List<AbandonedGroupItem> deleteList = new List<AbandonedGroupItem>(); 2478_deferredActions = new List<Action>();
System\Windows\Data\BindingOperations.cs (1)
593List<Exception> _log = new List<Exception>();
System\Windows\Data\CollectionView.cs (4)
1477List<ItemPropertyInfo> list = new List<ItemPropertyInfo>(); 1929_changeLog = new List<NotifyCollectionChangedEventArgs>(); 2131private List<NotifyCollectionChangedEventArgs> _changeLog = new(); 2152private static readonly List<NotifyCollectionChangedEventArgs> s_emptyList = new();
System\Windows\Data\ListCollectionView.cs (2)
3207List<AbandonedGroupItem> deleteList = new List<AbandonedGroupItem>(); 3278_deferredActions = new List<Action>();
System\Windows\Diagnostics\BindingDiagnostics.cs (1)
38s_pendingEvents = new List<BindingFailedEventArgs>();
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (5)
174toRemove = new List<WeakReference<ResourceDictionary>>(); 238List<WeakReference<ResourceDictionary>> toRemove = new List<WeakReference<ResourceDictionary>>(); 514toRemove = new List<WeakReferenceKey<StaticResourceExtension>>(); 529private static List<object> IgnorableProperties = new List<object>(); 553= new List<ResourceDictionaryInfo>().AsReadOnly();
System\Windows\Documents\DocumentReferenceCollection.cs (1)
142_internalList = new List<DocumentReference>();
System\Windows\Documents\DocumentSequence.cs (1)
656_pendingPages = new List<RequestedPage>();
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (1)
25_elementList = new List<BlockElement>();
System\Windows\Documents\DocumentStructures\StoryFragments.cs (2)
26_elementList = new List<StoryFragment>(); 84_elementList = new List<BlockElement>();
System\Windows\Documents\FixedDocument.cs (2)
830_pendingPages = new List<PageContent>(); 1058List<FixedPage> oldHighlightPages = new List<FixedPage>();
System\Windows\Documents\FixedElement.cs (1)
135_children = new List<FixedElement>();
System\Windows\Documents\FixedFlowMap.cs (2)
341_flowOrder = new List<FlowNode>(); 389entry = new List<FixedSOMElement>();
System\Windows\Documents\FixedPage.cs (1)
1008List<int> childPath = new List<int>();
System\Windows\Documents\FixedPageStructure.cs (1)
812List<FlowNode> nodes = new List<FlowNode>();
System\Windows\Documents\FixedSOMContainer.cs (2)
23_semanticBoxes = new List<FixedSOMSemanticBox>(); 209_fixedNodes = new List<FixedNode>();
System\Windows\Documents\FixedSOMLineCollection.cs (2)
29_verticals = new List<FixedSOMLineRanges>(); 30_horizontals = new List<FixedSOMLineRanges>();
System\Windows\Documents\FixedSOMLineRanges.cs (2)
88_start = new List<double>(); 100_end = new List<double>();
System\Windows\Documents\FixedSOMPageConstructor.cs (4)
229_fixedNodes = new List<FixedNode>(); 759List<FixedSOMTableRow> tableRows = new List<FixedSOMTableRow>(); 1021List<FixedSOMTable> tables = new List<FixedSOMTable>(); 1130List<FixedSOMSemanticBox> groups = new List<FixedSOMSemanticBox>();
System\Windows\Documents\FixedTextBuilder.cs (8)
744_pageStructures = new List<FixedPageStructure>(); 882List<FixedNode> fixedNodes = new List<FixedNode>(); 1245_hyperlinks = new List<LogicalHyperlink>(); 1367_textRuns = new List<FixedSOMTextRun>(); 1368_flowNodes = new List<FlowNode>(); 1369_fixedNodes = new List<FixedNode>(); 1370_nodesInLine = new List<FixedNode>(); 1371_lineResults = new List<FixedLineResult>();
System\Windows\Documents\Highlights.cs (1)
346ranges = new List<TextSegment>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\OptionDescription.cs (1)
52_labels = labels ?? new List<string>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (2)
643{false, new List<Type>{ /*empty*/ }}, 644{true, new List<Type> { typeof(COMException), typeof(UnauthorizedAccessException)}}
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellingError.cs (1)
90_suggestions = new List<string>();
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (2)
55{false, new List<Type> { /* empty */ } }, 56{true, new List<Type> { typeof(COMException), typeof(UnauthorizedAccessException)} }
System\Windows\Documents\MsSpellCheckLib\Utils\Extensions.cs (2)
32var result = new List<string>(); 80var result = new List<SpellingError>();
System\Windows\Documents\NLGSpellerInterop.cs (3)
572List<string> suggestions = new List<string>(); 624List<ISpellerSegment> subSegments = new List<ISpellerSegment>(); 832List<ISpellerSegment> segments = new List<ISpellerSegment>();
System\Windows\Documents\PageContentCollection.cs (1)
30_internalList = new List<PageContent>();
System\Windows\Documents\Serialization\SerializerProvider.cs (1)
35List<SerializerDescriptor> installedSerializers = new List<SerializerDescriptor>();
System\Windows\Documents\TextEffectResolver.cs (1)
51List<TextEffectTarget> list = new List<TextEffectTarget>();
System\Windows\Documents\TextRangeSerialization.cs (2)
85List<int> ignoreList = new List<int>(); 344List<int> ignoreList = new List<int>();
System\Windows\Documents\TextStore.cs (3)
4146_compositionEventList = new List<CompositionEventRecord>(); 4956= new List<Tuple<WeakReference<FrameworkElement>,TraceList>>(); 5055private List<IMECompositionTraceRecord> _traceList = new List<IMECompositionTraceRecord>();
System\Windows\Documents\WinRTSpellerInterop.cs (3)
467_customDictionaryFiles[ietfLanguageTag] = new List<string>(); 905_empty = new List<ISpellerSegment>().AsReadOnly(); 914List<string> result = new List<string>();
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (1)
66var allTokens = new List<SpellerSegment>();
System\Windows\Documents\WpfPayload.cs (1)
495_images = new List<Image>();
System\Windows\Documents\XPSS0ValidatingLoader.cs (1)
54List<Type> safeTypes = new List<Type> { typeof(System.Windows.ResourceDictionary) };
System\Windows\FrameworkTemplate.cs (1)
1522private List<String> _childNames = new List<string>();
System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (1)
51_resources = new List<Object>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
250_context.KeyList = new List<KeyRecord>(); 938_context.KeyList = new List<KeyRecord>();
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (4)
655private readonly List<BamlAssembly> _bamlAssembly = new List<BamlAssembly>(); 656private readonly List<object> _bamlType = new List<object>(); 657private readonly List<Object> _bamlProperty = new List<Object>(); 658private readonly List<string> _bamlString = new List<string>();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (14)
1796new List<Type>() { typeof(System.Type) }, 1886new List<Type>() { typeof(System.String) }, 2829new List<Type>() { typeof(System.Object) }, 2975new List<Type>() { typeof(System.Type), typeof(System.Object) }, 3357new List<Type>() { typeof(System.Object) }, 4353new List<Type>() { typeof(System.Object) }, 9168new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode) }, 9175new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode), typeof(System.Type), typeof(System.Int32) }, 10452new List<Type>() { typeof(System.String) }, 10473new List<Type>() { typeof(System.Object) }, 10957new List<Type>() { typeof(System.Windows.DependencyProperty) }, 11197new List<Type>() { typeof(System.String) }, 11829new List<Type>() { typeof(System.Type) }, 13166new List<Type>() { typeof(System.Object) },
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
336xTypes = new List<XamlType>();
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
344_themeHelpers = new List<ThemeKnownTypeHelper>();
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
179List<XamlMember> members = new List<XamlMember>();
System\Windows\Markup\BamlReader.cs (4)
1223_deferKeys = new List<BamlKeyInfo>(); 1365List<BamlRecord> srRecords = new List<BamlRecord>(); 2690list = new List<String>(); 3047_staticResources = new List<List<BamlRecord>>();
System\Windows\Markup\BamlRecordReader.cs (1)
5632static List<ReaderContextStackData> _stackDataFactoryCache = new List<ReaderContextStackData>();
System\Windows\Markup\DependencyPropertyConverter.cs (1)
189List<XamlType> ceilingTypes = new List<XamlType>();
System\Windows\Markup\ParserContext.cs (1)
608_staticResourcesStack = new List<object[]>();
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
617static 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)
89List<XamlType> ceilingTypes = new List<XamlType>();
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
403list = new List<V>();
System\Windows\Markup\XmlnsCache.cs (1)
336List<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)
586List<AnimationClock> clockList = new List<AnimationClock>();
System\Windows\Navigation\Journal.cs (1)
655private List<JournalEntry> _journalEntryList = new List<JournalEntry>();
System\Windows\ResourceDictionary.cs (1)
1102_deferredLocationList = new List<KeyRecord>();
System\Windows\Shell\JumpList.cs (9)
75RejectedItems = new List<JumpItem>().AsReadOnly(); 76RejectionReasons = new List<JumpItemRejectionReason>().AsReadOnly(); 101RemovedItems = new List<JumpItem>().AsReadOnly(); 283_jumpItems = new List<JumpItem>(); 504categories = new List<List<_ShellObjectPair>>() { new List<_ShellObjectPair>() }; 558categories.Add(new List<_ShellObjectPair>() { shellMap }); 763var retList = new List<_ShellObjectPair>(); 839var linksOnlyList = new List<_ShellObjectPair>();
System\Windows\Shell\WindowChrome.cs (1)
312private static readonly List<_SystemParameterBoundProperty> _BoundProperties = new List<_SystemParameterBoundProperty>
System\Windows\Shell\WindowChromeWorker.cs (1)
61_messageTable = new List<HANDLE_MESSAGE>
System\Windows\StyleHelper.cs (4)
1111actionsList = new List<TriggerAction>(); 4779actionList = new List<DeferredAction>(); 5045List<TriggerBase> newList = new List<TriggerBase>(); 5091List<TriggerBase> newList = new List<TriggerBase>();
System\Windows\SystemResources.cs (4)
198List<ResourceDictionaryInfo> dictionaries = new List<ResourceDictionaryInfo>(); 229List<ResourceDictionaryInfo> dictionaries = new List<ResourceDictionaryInfo>(); 1030_dpiAwarenessContextAndDpis = new List<DpiUtil.HwndDpiInfo>(); 1207List<SystemResourceKey> keys = new List<SystemResourceKey>();
System\Windows\TemplateContent.cs (1)
241List<PropertyValue> sharedProperties = new List<PropertyValue>();
System\Windows\ThemeDictionaryExtension.cs (1)
193_themeDictionaryInfos = new List<ThemeDictionaryInfo>();
System\Windows\ThemeManager.cs (1)
427List<int> indices = new List<int>();
System\Windows\TriggerActionCollection.cs (1)
31_rawList = new List<TriggerAction>();
System\Windows\Window.cs (2)
345_threadWindowHandles = new List<IntPtr>(); 6722var nativeIcons = new List<NativeMethods.IconHandle>();
PresentationUI (18)
MS\Internal\Documents\Application\DocumentManager.cs (1)
536new List<IDocumentController>();
MS\Internal\Documents\Application\TransactionalPackage.cs (2)
435List<PackagePart> _proxiedParts = new List<PackagePart>(); 585private List<Package> _trashCan = new List<Package>();
MS\Internal\Documents\DigitalSignatureProvider.cs (3)
314List<X509Certificate2> certificateList = new List<X509Certificate2>(); 386IList<DigitalSignature> signatureList = new List<DigitalSignature>(); 398new List<XpsSignatureDefinition>();
MS\Internal\Documents\DocumentSignatureManager.cs (2)
43_changeLog = new List<ChangeLogEntity>(); 528IList<SignatureResources> signResourcesList = new List<SignatureResources>();
MS\Internal\Documents\RightsManagementManager.cs (1)
652IList<string> accountList = new List<string>();
MS\Internal\Documents\RightsManagementProvider.cs (5)
517grantDictionary[user] = new List<ContentGrant>(); 718IList<ContentGrant> grantList = new List<ContentGrant>(); 841List<ContentGrant> grantList = new List<ContentGrant>(); 1018IList<CryptoProvider> cryptoProviders = new List<CryptoProvider>(); 1177List<ContentGrant> grants = new List<ContentGrant>();
MS\Internal\Documents\RMPermissions.cs (1)
96IList<string> rightsStrings = new List<string>();
MS\Internal\Documents\RMPublishingDialog.cs (3)
240new List<RightsManagementLicense>(); 373List<Uri> templateList = new List<Uri>(); 1018List<ServerSideTemplate> templates = new List<ServerSideTemplate>();
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
117var files = new List<IFileInfo> { file };
RazorWebSite (5)
Controllers\ViewEngineController.cs (1)
48var model = new List<Person>()
Startup.cs (2)
49SupportedCultures = new List<CultureInfo> 55SupportedUICultures = new List<CultureInfo>
StartupDataAnnotations.cs (2)
37SupportedCultures = new List<CultureInfo> 41SupportedUICultures = new List<CultureInfo>
ReachFramework (36)
AlphaFlattener\Optimizer.cs (2)
33m_primitives = new List<int>(); 143List<Cluster> transparentCluster = new List<Cluster>();
AlphaFlattener\PrimitiveList.cs (3)
245_commands = new List<PrimitiveInfo>(); 342pi.overlap = new List<int>(); 358qi.underlay = new List<int>();
AlphaFlattener\SegmentTree.cs (1)
94_sList = new List<int>();
packaging\XpsDigitalSignature.cs (1)
69new List<PackageRelationshipSelector>();
Packaging\XpsDocument.cs (2)
305List<PackagePart> xmlPartList = new List<PackagePart>(); 850new List<PackageRelationshipSelector>();
Packaging\XpsFixedDocumentReaderWriter.cs (2)
272_pageCache = new List<IXpsFixedPageReader>(); 423_linkTargetStream = new List<String>();
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
204_documentCache = new List<IXpsFixedDocumentReader>();
Packaging\XpsFixedPageReaderWriter.cs (1)
476_currentChildren = new List<INode>();
Packaging\XpsInterleavingPolicy.cs (2)
421List<InterleavingNode> removeList = new List<InterleavingNode>(); 556private List<InterleavingNode> _interleavingNodes = new List<InterleavingNode>();
PrintConfig\PrtCap_Public_Simple.cs (17)
219List<Collation> valueSet = new List<Collation>(); 252List<DeviceFontSubstitution> valueSet = new List<DeviceFontSubstitution>(); 285List<Duplexing> valueSet = new List<Duplexing>(); 322List<InputBin> valueSet = new List<InputBin>(); 436List<OutputColor> valueSet = new List<OutputColor>(); 469List<OutputQuality> valueSet = new List<OutputQuality>(); 502List<PageBorderless> valueSet = new List<PageBorderless>(); 569List<PageMediaSize> mediaSet = new List<PageMediaSize>(); 609List<PageMediaType> valueSet = new List<PageMediaType>(); 642List<PageOrder> valueSet = new List<PageOrder>(); 675List<PageOrientation> valueSet = new List<PageOrientation>(); 708List<PageResolution> resSet = new List<PageResolution>(); 817List<int> valueSet = new List<int>(); 851List<PagesPerSheetDirection> valueSet = new List<PagesPerSheetDirection>(); 886List<PhotoPrintingIntent> valueSet = new List<PhotoPrintingIntent>(); 918List<Stapling> valueSet = new List<Stapling>(); 951List<TrueTypeFontMode> valueSet = new List<TrueTypeFontMode>();
Serialization\DrawingContextFlattener.cs (2)
44private List<Matrix> _fullTransform = new List<Matrix>(); 47private List<Geometry> _fullClip = new List<Geometry>();
Serialization\Manager\NullPackagingPolicy.cs (1)
213_linkTargetStream = new List <String>();
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
257_currentFixedPageLinkTargetStream = new List<String>();
Replay (1)
Replay.cs (1)
139return BinaryLogUtil.ReadAllCompilerCalls(stream, new List<string>());
Roslyn.Test.PdbUtilities (5)
EditAndContinue\EditAndContinueTest.cs (3)
94var unmappedNodes = new List<SyntaxNode>(); 123var readers = new List<MetadataReader>(); 125var exceptions = new List<ImmutableArray<Exception>>();
Reader\PdbValidation.cs (1)
362var pendingRemoval = new List<XElement>();
Reader\Token2SourceLineExporter.cs (1)
1452var modList = new List<DbiModuleInfo>();
Roslyn.VisualStudio.Next.UnitTests (4)
Options\VisualStudioSettingsOptionPersisterTests.cs (1)
112var refreshedOptions = new List<(OptionKey2, object?)>();
Services\AssetProviderTests.cs (1)
60var stored2 = new List<(Checksum, object)>();
Services\PerformanceTrackerServiceTests.cs (1)
167var analyzerInfos = new List<AnalyzerInfoForPerformanceReporting>();
Services\ServiceHubServicesTests.cs (1)
1484var changedDocuments = new List<string>();
RoutingSandbox (6)
Framework\FrameworkEndpointDataSource.cs (4)
23_conventions = new List<Action<EndpointBuilder>>(); 25Patterns = new List<RoutePattern>(); 26HubMethods = new List<HubMethod>(); 44List<Endpoint> endpoints = new List<Endpoint>();
HelloExtension\HelloMiddleware.cs (1)
20var payload = new List<byte>();
UseEndpointRoutingStartup.cs (1)
116public IReadOnlyList<string> HttpMethods { get; } = new List<string> { "GET" };
RoutingWebSite (1)
HelloExtension\HelloMiddleware.cs (1)
20var payload = new List<byte>();
RunTests (18)
AssemblyScheduler.cs (2)
164var workItems = new List<HelixWorkItem>(); 166var currentFilters = new List<(string AssemblyFilePath, TestMethodInfo TestMethodInfo)>();
Logger.cs (1)
16private static readonly List<string> s_lines = new List<string>();
Options.cs (4)
56public List<string> IncludeFilter { get; set; } = new List<string>(); 58public List<string> ExcludeFilter { get; set; } = new List<string>(); 148var includeFilter = new List<string>(); 149var excludeFilter = new List<string>();
ProcessRunner.cs (2)
82var errorLines = new List<string>(); 83var outputLines = new List<string>();
ProcessTestExecutor.cs (1)
124var processResultList = new List<ProcessResult>();
ProcessUtil.cs (2)
50var list = new List<Process>(); 74var list = new List<Process>();
Program.cs (1)
290var list = new List<AssemblyInfo>();
TestHistoryManager.cs (2)
197return testResults ?? new List<TestCaseResult>(); 203return new List<TestCaseResult>();
TestRunner.cs (3)
65var workItems = new List<WorkItemInfo>(); 84var running = new List<Task<TestResult>>(); 85var completed = new List<TestResult>();
SampleStartups (1)
StartupExternallyControlled.cs (1)
16private readonly List<string> _urls = new List<string>();
SemanticSearch.BuildTask (9)
GenerateFilteredReferenceAssembliesTask.cs (9)
102var errors = new List<(string message, int line)>(); 103var patterns = new List<ApiPattern>(); 137var types = new List<INamedTypeSymbol>(); 138var methods = new List<IMethodSymbol>(); 139var fields = new List<IFieldSymbol>(); 143var apis = new List<string>(); 351var types = new List<INamedTypeSymbol>(); 352var methods = new List<IMethodSymbol>(); 353var fields = new List<IFieldSymbol>();
SemanticSearch.BuildTask.UnitTests (8)
GenerateFilteredReferenceAssembliesTaskTests.cs (8)
30var errors = new List<(string message, int line)>(); 31var patterns = new List<ApiPattern>(); 42var errors = new List<(string message, int line)>(); 43var patterns = new List<ApiPattern>(); 56var errors = new List<(string message, int line)>(); 57var patterns = new List<ApiPattern>(); 83var errors = new List<(string message, int line)>(); 84var patterns = new List<ApiPattern>();
Shared (11)
JsonSchemaExporter\JsonSchemaExporter.cs (11)
216Required = containsTypesWithoutDiscriminator ? null : new() { typeDiscriminatorKey }, 253(properties = new()).Add(typeDiscriminatorPair); 257(required = new()).Add(typeDiscriminatorPair.Key); 328(properties ??= new()).Add(new(property.Name, propertySchema)); 332(required ??= new()).Add(property.Name); 382Properties = new() 392Required = parentPolymorphicTypeContainsTypesWithoutDiscriminator ? new() { typeDiscriminator.Value.Key } : null, 405dictProps = new() { dictDiscriminator }; 409dictRequired = new() { dictDiscriminator.Key }; 485private readonly List<string> _currentPath = new(); 666AnyOf = new()
Shared.Tests (14)
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>();
Throw\ThrowTest.cs (1)
337var list = new List<int>();
SignalR.Client.FunctionalTestApp (1)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
11 private readonly List<XElement> _storedElements = new List<XElement>();
Sockets.BindTests (4)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
23public List<Type> IgnoredExceptions { get; } = new List<Type>();
src\Servers\Kestrel\shared\test\TransportTestHelpers\DiagnosticMemoryPoolFactory.cs (1)
24_pools = new List<DiagnosticMemoryPool>();
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
273var errors = new List<Exception>();
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
Sockets.FunctionalTests (6)
src\Servers\Kestrel\shared\test\StreamExtensions.cs (2)
52var data = new List<byte>(); 79var data = new List<byte>();
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
23public List<Type> IgnoredExceptions { get; } = new List<Type>();
src\Servers\Kestrel\shared\test\TransportTestHelpers\DiagnosticMemoryPoolFactory.cs (1)
24_pools = new List<DiagnosticMemoryPool>();
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (1)
28private List<Http2Frame> ReceivedFrames { get; } = new List<Http2Frame>();
src\Shared\Metrics\TestMeterFactory.cs (1)
11public List<Meter> Meters { get; } = new List<Meter>();
StaticFilesAuth (2)
Controllers\AccountController.cs (1)
35var claims = new List<Claim>
Startup.cs (1)
126var metadata = new List<object>
Stress.ApiService (4)
ProducerConsumer.cs (1)
32var links = new List<ActivityLink>();
Program.cs (1)
122IReadOnlyList<KeyValuePair<string, object?>> eventData = new List<KeyValuePair<string, object?>>()
TestMetrics.cs (1)
28var uploadSpeed = new List<double>();
TraceCreator.cs (1)
17private readonly List<Activity> _allActivities = new List<Activity>();
Stress.TelemetryService (1)
GaugeMetrics.cs (1)
22var measurements = new List<Measurement<long>>();
Swaggatherer (11)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
SwaggathererApplication.cs (2)
63var entries = new List<RouteEntry>(); 90matches = new List<RouteEntry>();
Template.cs (3)
18var setupEndpointsLines = new List<string>(); 44var setupRequestsLines = new List<string>(); 59var setupMatcherLines = new List<string>();
System.CodeDom (2)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
174var typeArgumentList = new List<CodeTypeReference>();
System\CodeDom\Compiler\CodeDomProvider.cs (1)
18private static readonly List<CompilerInfo> s_allCompilerInfo = new List<CompilerInfo>();
System.Collections (1)
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
99List<T> toRemove = new List<T>();
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)
548removeIndices ??= new List<int>();
System\Collections\Immutable\ImmutableArray_1.cs (1)
764removeIndices ??= new List<int>();
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
1057list ??= new List<T>();
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
53List<PropertyDescriptor> tempPropertyDescriptors = new List<PropertyDescriptor>();
System\ComponentModel\DataAnnotations\Validator.cs (2)
465var errors = new List<ValidationError>(); 558var 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>(); 265List<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>(); 172exceptions ??= new List<Exception>(); 207exceptions ??= 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>(); 617partList = new List<ComposablePart>(); 818var 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)
264List<ImportDefinition> imports = new List<ImportDefinition>(); 381List<ExportDefinition> exports = new List<ExportDefinition>(); 476List<LazyMemberInfo> members = new List<LazyMemberInfo>(); 477List<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>>>(); 215_metadataItems ??= new List<Tuple<string, object>>(); 223_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 252var attributes = new List<Attribute>(); 415configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 530configuredMembers ??= 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>(); 103List<Attribute> attributes = new List<Attribute>(); 105var configuredMembers = new List<Tuple<object, List<Attribute>>>();
System.ComponentModel.TypeConverter (10)
System\ComponentModel\Design\Serialization\ContextStack.cs (2)
100_contextStack ??= new List<object>(); 129_contextStack ??= new List<object>();
System\ComponentModel\EnumConverter.cs (1)
180List<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)
863List<Type> typeList = new List<Type>();
System\ComponentModel\WeakHashtable.cs (1)
82cleanupList ??= new List<object>();
System.Composition.Convention (21)
System\Composition\Convention\ConventionBuilder.cs (3)
17private readonly List<PartConventionBuilder> _conventions = new List<PartConventionBuilder>(); 128List<Attribute> attributes = new List<Attribute>(); 129var configuredMembers = new List<Tuple<object, List<Attribute>>>();
System\Composition\Convention\ExportConventionBuilder.cs (3)
106_metadataItems ??= new List<Tuple<string, object>>(); 133_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 140attributes ??= new List<Attribute>();
System\Composition\Convention\ImportConventionBuilder.cs (3)
111_metadataConstraintItems ??= new List<Tuple<string, object>>(); 138_metadataConstraintItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 163attributes ??= 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>>(); 436_metadataItems ??= new List<Tuple<string, object>>(); 463_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 491var attributes = new List<Attribute>(); 648configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 715var onImportsSatisfiedAttributeList = new List<Attribute> 817configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.Composition.Hosting (4)
System\Composition\Hosting\Core\CompositionOperation.cs (2)
62_nonPrerequisiteActions ??= new List<Action>(); 79_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)
718var settingProps = new List<PropertyInfo>();
System\Configuration\BaseConfigurationRecord.cs (1)
663removes ??= 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)
1808_dependentColumns ??= new List<DataColumn>();
System\Data\DataRelation.cs (1)
428List<DataTable> list = new List<DataTable>();
System\Data\DataSet.cs (1)
3229List<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>(); 6839(t_usedTables ??= new List<DataTable>()).Add(table); 6888RowDiffIdUsageSection.t_usedTables ??= new List<DataTable>(); 6945_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)
820List<int> matchingRecords = new List<int>(); 843List<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)
733List<XmlQualifiedName> qnames = new List<XmlQualifiedName>(); 1511_tableDictionary!.Add(table, new List<DataTable>()); 1636_tableDictionary!.Add(table, new List<DataTable>()); 2567List<DataTable> tableSequenceList = new List<DataTable>();
System\Xml\XmlDataDocument.cs (2)
3059List<DataTable> tableList = new List<DataTable>(); 3099List<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\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.Diagnostics.DiagnosticSource (11)
System\Diagnostics\ActivityTagsCollection.cs (1)
24private readonly List<KeyValuePair<string, object?>> _list = new List<KeyValuePair<string, object?>>();
System\Diagnostics\DsesFilterAndTransform.cs (1)
411var outputArgs = new List<KeyValuePair<string, string?>>();
System\Diagnostics\LegacyPropagator.cs (1)
168baggageList ??= new List<KeyValuePair<string, string?>>();
System\Diagnostics\Metrics\AggregationManager.cs (1)
23private 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>(); 507_instruments = new List<Instrument>(); 548instrumentList = new List<Instrument>(); 603instruments = 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.Process (6)
System\Diagnostics\Process.NonUap.cs (1)
77List<Process> childProcesses = new List<Process>();
System\Diagnostics\Process.Unix.cs (3)
119(exceptions ??= new List<Exception>()).Add(new Win32Exception()); 133(exceptions ??= new List<Exception>()).Add(new Win32Exception()); 582var argvList = new List<string>();
System\Diagnostics\ProcessInfo.cs (1)
34_threadInfoList = new List<ThreadInfo>();
System\Diagnostics\ProcessWaitState.Unix.cs (1)
652additionalToRemove ??= new List<ProcessWaitState>();
System.Diagnostics.TraceSource (4)
System\Diagnostics\CorrelationManager.cs (1)
128var results = new List<object?>();
System\Diagnostics\Switch.cs (1)
30private 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.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.cs (1)
717List<(int, int)> positions = new List<(int, int)>();
System.Formats.Cbor (4)
System\Formats\Cbor\Reader\CborReader.String.cs (1)
528return new List<(int Offset, int Length)>();
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
227return _keyValuePairEncodingRanges = new List<KeyValuePairEncodingRange>();
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
84_currentIndefiniteLengthStringRanges ??= new List<(int, int)>(); 181_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)
624_dataStreamsToDispose ??= new List<Stream>();
System.IO.Compression (2)
System\IO\Compression\ZipArchive.cs (1)
165_entries = new List<ZipArchiveEntry>();
System\IO\Compression\ZipBlocks.cs (1)
66List<ZipGenericExtraField> extraFields = new List<ZipGenericExtraField>();
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
40context._results = new List<string>();
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
902internal List<WatchedDirectory> InitializedChildren => Children ??= new List<WatchedDirectory>();
System.IO.Packaging (2)
System\IO\Packaging\PackagePart.cs (1)
340_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)
352var 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>(); 2006exHandlers = new List<ExceptionHandler>(); 2150updaters = new List<ByRefUpdater>() { updater }; 2167updaters ??= new List<ByRefUpdater>(); 2404updaters ??= 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 (19)
System\Net\Http\Headers\CacheControlHeaderValue.cs (1)
363List<NameValueHeaderValue> nameValueList = new List<NameValueHeaderValue>();
System\Net\Http\Headers\HttpHeaders.cs (3)
196info.RawValue = rawValues = new List<string>(); 884List<object> parsedValues = new List<object>(); 1052List<object> parsedValues = new List<object>();
System\Net\Http\MultipartContent.cs (1)
61_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 }; 933toDispose ??= new();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (1)
449toDispose ??= new List<HttpConnectionBase>();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (2)
429_availableHttp2Connections ??= new List<Http2Connection>(); 598toDispose ??= new List<HttpConnectionBase>();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (2)
432_availableHttp3Connections ??= new List<Http3Connection>(); 582toDispose ??= new List<HttpConnectionBase>();
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
1086List<Http2Stream> streamsToAbort = new List<Http2Stream>(); 1817List<Http2Stream> streamsToAbort = new List<Http2Stream>();
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
406var streamsToGoAway = new List<Http3RequestStream>();
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (2)
564_trailingHeaders = new List<(HeaderDescriptor name, string value)>(); 1365_trailingHeaders = new List<(HeaderDescriptor name, string value)>();
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 (6)
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 (2)
312var lines = new List<LineInfo>(); 397_lines = new List<LineInfo>();
System\Net\Mail\SmtpTransport.cs (2)
21private readonly List<SmtpFailedRecipientException> _failedRecipientExceptions = new List<SmtpFailedRecipientException>(); 246private readonly List<SmtpFailedRecipientException> _failedRecipientExceptions = new List<SmtpFailedRecipientException>();
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)
65_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 (4)
System\Net\CookieContainer.cs (4)
507var removePathList = new List<object>(); 508var removeDomainList = new List<string>(); 804var domainAttributeMatchAnyCookieVariant = new System.Collections.Generic.List<string>(); 848domainAttributeMatchOnlyCookieVariantPlain ??= new System.Collections.Generic.List<string>();
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (2)
56CertificateThumbprints = certificate == null ? new List<byte[]>() : new List<byte[]> { certificate.GetCertHash() };
System.Net.Requests (2)
System\Net\FtpControlStream.cs (1)
487var 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)
668private static List<T> EnsureInitialized<T>(ref List<T>? list) => list ??= new List<T>();
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
226(_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\ClientWebSocketOptions.cs (1)
85internal List<string> RequestedSubProtocols => _requestedSubProtocols ??= new List<string>();
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\TensorExtensions.cs (3)
3286List<nint> tempLengths = new List<nint>(); 3342List<nint> tempLengths = new List<nint>(); 3398List<nint> tempLengths = new List<nint>();
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 (80)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
40context._results = new List<string>();
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\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1164List<T> list = new List<T>();
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
532List<T> list = new List<T>();
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
20items = new List<T>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (3)
22_counters = new List<DiagnosticCounter>(); 166s_counterGroupEnabledList = new List<CounterGroup>(); 285var onTimers = new List<CounterGroup>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (5)
473var ret = new List<EventSource>(); 3914private static List<Func<EventSource?>> s_preregisteredEventSourceFactories = new List<Func<EventSource?>>(); 4393List<EventSource> sourcesToDispose = new List<EventSource>(); 5349errors = new List<string>(); 5656var sortedChannels = new List<KeyValuePair<int, ChannelInfo>>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EnumerableTypeInfo.cs (1)
53List<object?> serializedEnumerable = new List<object?>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingMetadataCollector.cs (1)
285internal readonly List<FieldMetadata> fields = new List<FieldMetadata>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
147recursionCheck ??= new List<Type>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs (1)
28var propertyList = new List<PropertyAnalysis>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (1)
50private static readonly List<char> escape_seq = new List<char> { '\b', '\f', '\n', '\r', '\t', '\"', '\\' };
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (3)
145callbackContext.Results = new List<string>(); 372callbackContext.Results = new List<string>(); 419callbackContext.Results = new List<string>();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
555List<CultureInfo> list = new List<CultureInfo>();
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\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfoScanner.cs (3)
112internal List<string> m_dateWords = new List<string>(); 213m_dateWords ??= new List<string>(); 356m_dateWords ??= new List<string>();
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Icu.cs (1)
50List<EraInfo> eras = new List<EraInfo>();
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
872List<string> lines = new List<string>(); 1311List<string> lines = new List<string>();
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
20private static readonly List<string> s_loadFromAssemblyList = new List<string>();
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\libraries\System.Private.CoreLib\src\System\SearchValues\BitmapCharSearchValues.cs (1)
29var chars = new List<char>();
src\libraries\System.Private.CoreLib\src\System\SearchValues\BitVector256.cs (2)
53var chars = new List<char>(); 66var bytes = new List<byte>();
src\libraries\System.Private.CoreLib\src\System\SR.cs (1)
75_currentlyLoading ??= new List<string>();
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
41List<string> startupHookParts = new();
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
77var segments = new List<(string? Literal, int ArgIndex, int Alignment, string? Format)>();
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
820(exceptionList ??= new List<Exception>()).Add(ex);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (9)
2167Interlocked.CompareExchange(ref props.m_exceptionalChildren, new List<Task>(), null); 4556list = new List<object?>(); 4650continuationsLocalRef = Interlocked.CompareExchange(ref m_continuationObject, new List<object?>(), continuationObject); 6120failedOrCanceled = Interlocked.CompareExchange(ref m_stateObject, new List<Task> { first, completedTask }, first); 6162(observedExceptions ??= new()).AddRange(task.GetExceptionDispatchInfos()); 6275List<Task<TResult>> taskList = new List<Task<TResult>>(); 6439observedExceptions ??= new List<ExceptionDispatchInfo>(); 6762var taskList = new List<TTask>(); 7095List<Delegate> result = new List<Delegate>();
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (1)
162var defensiveCopy = new List<Exception>();
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (1)
162var defensiveCopy = new List<Exception>();
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
496List<TaskScheduler> schedulers = new List<TaskScheduler>();
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (2)
450var valueList = new List<T>(); 621private readonly List<int> _freeIds = new List<int>();
src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (1)
982var timers = new List<TimerQueueTimer>();
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
2014value!._equivalentZones = new List<TimeZoneInfo>();
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
501List<AdjustmentRule> rulesList = new List<AdjustmentRule>();
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
184List<string> timeZoneIds = new List<string>(); 341toExplore ??= new List<string>();
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
270(nestedNameLengths ??= new()).Add(length);
src\System\Attribute.CoreCLR.cs (3)
38List<Attribute> attributeList = new List<Attribute>(); 142List<Attribute> attributeList = new List<Attribute>(); 248List<Type> disAllowMultiple = new List<Type>();
src\System\GC.CoreCLR.cs (1)
585private static readonly List<MemoryLoadChangeNotification> s_notifications = new List<MemoryLoadChangeNotification>();
src\System\Reflection\Emit\DynamicILGenerator.cs (1)
966internal readonly List<object?> m_tokens = new List<object?> { null };
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (7)
346m_listMethods = new List<RuntimeMethodBuilder>(); 358m_typeInterfaces = new List<Type>(); 372m_typeInterfaces = new List<Type>(); 437m_listMethods = new List<RuntimeMethodBuilder>(); 597m_ca ??= new List<CustAttr>(); 1026m_typeInterfaces = new List<Type>(); 1499m_typeInterfaces ??= new List<Type>();
src\System\Reflection\RuntimeAssembly.cs (2)
741List<Type> types = new List<Type>(); 742List<Exception> exceptions = new List<Exception>();
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
74return new List<CustomAttributeData>();
src\System\Reflection\RuntimeEventInfo.cs (1)
137List<MethodInfo> ret = new List<MethodInfo>();
src\System\Reflection\RuntimePropertyInfo.cs (1)
230List<MethodInfo> accessorList = new List<MethodInfo>();
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
620List<int> includedClauses = new List<int>();
System.Private.DataContractSerialization (33)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
174var typeArgumentList = new List<CodeTypeReference>();
System\Runtime\Serialization\ClassDataContract.cs (4)
625_members = new List<DataMember>(); 803List<DataMember> tempMembers = new List<DataMember>(); 979List<Member> membersInHierarchy = new List<Member>(); 1422List<DataMember> dataContractMembersList = new List<DataMember>();
System\Runtime\Serialization\CodeGenerator.cs (1)
146_argList = new List<ArgBuilder>();
System\Runtime\Serialization\DataContract.cs (4)
1134List<Type> itemTypeClosure = new List<Type>(); 1536List<int> nestedParamCounts = new List<int>(); 2369_nestedParamCounts = new List<int>(); 2388_paramGenericInfos ??= new List<GenericInfo>();
System\Runtime\Serialization\DataContractSerializer.cs (1)
130_knownTypeList = new List<Type>();
System\Runtime\Serialization\DataContractSet.cs (1)
388List<Type> types = new List<Type>();
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
591this.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)
104var elementNameList = new List<XmlQualifiedName>(); 245List<XmlSchemaType> knownTypesForObject = new List<XmlSchemaType>(); 276baseTypeInfo._knownTypes ??= new List<XmlSchemaType>(); 280baseTypeInfo = new SchemaObjectInfo(null, null, null, new List<XmlSchemaType>()); 330List<XmlSchemaRedefine> list = new List<XmlSchemaRedefine>(); 680dataContract.Members = new List<DataMember>(); 1202dataContract.Values = new List<long>(); 1203dataContract.Members = new List<DataMember>();
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (8)
282extensionData.Members ??= new List<ExtensionDataMember>(); 798dataNode.Members ??= new List<ExtensionDataMember>(); 828dataNode.Items ??= new List<IDataNode?>(); 888dataNode.Members ??= new List<ISerializableDataMember>(); 917xmlAttributes ??= new List<XmlAttribute>(); 929xmlChildNodes ??= new List<XmlNode>(); 952var xmlChildNodes = new List<XmlNode>(); 956xmlAttributes = 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.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
270new List<object?>
System.Private.Xml (135)
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)
534List<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)
1003newMembers ??= new List<XmlSchemaElement>(); 1311List<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)
139var membersList = new List<Member>(); 140var textOrArrayMembersList = new List<Member>(); 141var attributeMembersList = new List<Member>(); 382checkTypeHrefSource = new List<CheckTypeSource>(); 1485var listOfItems = new List<object?>(); 1828var attributes = new List<AttributeAccessor>();
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
198var 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 (2)
1029var list = new List<MemberMapping>(); 1056var list = new List<MemberMapping>();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
846var members = new List<MemberMapping>(); 1214var constants = new List<ConstantMapping>();
System\Xml\Serialization\XmlSerializationReader.cs (4)
1874var xmlNodeList = new List<XmlNode>(); 2502var membersList = new List<Member>(); 2503var textOrArrayMembersList = new List<Member>(); 2504var attributeMembersList = new List<Member>();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (14)
309List<Type> argTypes = new List<Type>(); 429var membersList = new List<Member>(); 430var textOrArrayMembersList = new List<Member>(); 431var attributeMembersList = new List<Member>(); 1024List<Type> argTypes = new List<Type>(); 1025List<string> argNames = new List<string>(); 1067List<Label> caseLabels = new List<Label>(); 1068List<object> retValues = new List<object>(); 1145List<Type> argTypes = new List<Type>(); 1330List<Type> argTypes = new List<Type>(); 1331List<string> argNames = new List<string>(); 1805var attributes = new List<AttributeAccessor>(); 1992List<Type> argTypes = new List<Type>(); 3152List<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>(); 1585var namedAnys = new List<ElementAccessor>(); 1996List<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)
47public List<VarPar> ExternalPars = new List<VarPar>(); 48public List<VarPar> GlobalVars = new List<VarPar>(); 49public List<WhitespaceRule> WhitespaceRules = new List<WhitespaceRule>(); 52public 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)
574paramWithCalls = new List<VarPar>(); 2641functionsForMode = 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>(); 1345return LoadInstructions(new List<XslNode>(), InstructionFlags.None); 1350return LoadInstructions(new List<XslNode>(), flags); 1469List<XslNode> content = new List<XslNode>(); 1604List<XslNode> content = new List<XslNode>(); 1660List<XslNode> content = new List<XslNode>(); 2018List<XslNode> content = new List<XslNode>(); 2070List<XslNode> content = new List<XslNode>(); 2493List<XslNode> content = new List<XslNode>(); 2575List<XslNode> fallbacksArray = new List<XslNode>(); 2907List<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)
100_keyList ??= new List<Key>();
System.Private.Xml.Linq (4)
System\Xml\Linq\XContainer.cs (1)
1373List<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)
104List<PropertyInfo> matchingProperties = new List<PropertyInfo>(); 220List<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)
275_fields = new List<FieldBuilder>(); 278_methodInfos = new List<MethodInfo>();
System.Reflection.Emit (38)
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>(); 835sequencePoints = new List<SequencePoint> { new SequencePoint(_il.Offset, startLine, startColumn, endLine, endColumn) }; 849_currentScope._importNamespaces ??= new List<string>(); 931List<LocalBuilder> locals = new List<LocalBuilder>();
System\Reflection\Emit\MethodBuilderImpl.cs (1)
205_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\ModuleBuilderImpl.cs (4)
25private readonly List<TypeBuilderImpl> _typeDefinitions = new(); 138List<GenericTypeParameterBuilderImpl> genericParams = new(); 1338_customAttributes ??= new List<CustomAttributeWrapper>(); 1390List<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)
35internal readonly List<MethodBuilderImpl> _methodDefinitions = new(); 36internal readonly List<FieldBuilderImpl> _fieldDefinitions = new(); 37internal readonly List<ConstructorBuilderImpl> _constructorDefinitions = new(); 39internal readonly List<PropertyBuilderImpl> _propertyDefinitions = new(); 40internal readonly List<EventBuilderImpl> _eventDefinitions = new(); 94_interfaces ??= new List<Type>(); 336im = new List<(MethodInfo ifaceMethod, MethodInfo targetMethod)>(); 499_customAttributes ??= new List<CustomAttributeWrapper>(); 762List<ConstructorInfo> constructors = new List<ConstructorInfo>(); 780List<ConstructorInfo> ctors = new(); 805List<MethodInfo> methods = new List<MethodInfo>(); 822List<MethodInfo> methods = new List<MethodInfo>(); 922List<FieldInfo> fields = new List<FieldInfo>(); 1029List<PropertyInfo> properties = new List<PropertyInfo>(); 1134List<Type> nestedTypes = new List<Type>(); 1152List<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>>(); 295virtualNamespaces = new List<NamespaceDataBuilder>();
System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
270(nestedNameLengths ??= new()).Add(length);
System.Reflection.MetadataLoadContext (6)
System\Reflection\PathAssemblyResolver.cs (1)
49_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\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
267List<string> typeNames = new List<string>();
System.Resources.Writer (1)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
267List<string> typeNames = new List<string>();
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)
906List<CodeTypeReference> knownTypeReferences = new List<CodeTypeReference>();
System\Runtime\Serialization\Schema\ImportOptions.cs (2)
65public ICollection<Type> ReferencedCollectionTypes => _referencedCollectionTypes ??= new List<Type>(); 70public ICollection<Type> ReferencedTypes => _referencedTypes ??= new List<Type>();
System.Security.Claims (3)
System\Security\Claims\ClaimsIdentity.cs (2)
38private readonly List<Claim> _instanceClaims = new List<Claim>(); 353internal 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 (34)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
39List<AttributeAsn> signedAttrs = new List<AttributeAsn>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
105var tmpList = new List<ReadOnlyMemory<byte>>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (1)
124var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (1)
104var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
119var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
23_list = new List<CryptographicAttributeObject>(); 28_list = new List<CryptographicAttributeObject>();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (3)
66_contents ??= new List<ContentInfoAsn>(); 116_contents ??= new List<ContentInfoAsn>(); 136_contents ??= new List<ContentInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
73_bags ??= new List<Pkcs12SafeBag>(); 303List<SafeBagAsn> serializedBags = new List<SafeBagAsn>();
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
15_list = new List<AsnEncodedData>();
System\Security\Cryptography\CryptoConfig.cs (1)
444List<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\DistributionPointAsn.xml.cs (1)
127var tmpList = new List<System.Security.Cryptography.Asn1.GeneralNameAsn>();
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (1)
131var tmpList = new List<System.Security.Cryptography.Asn1.GeneralNameAsn>();
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (1)
266var tmpList = new List<System.Security.Cryptography.Asn1.X509ExtensionAsn>();
System\Security\Cryptography\X509Certificates\CertificatePolicy.cs (1)
375List<CertificatePolicyMappingAsn> mappings = new List<CertificatePolicyMappingAsn>();
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\OpenSslPkcsFormatReader.cs (1)
203List<ICertificatePal>? readPals = single ? null : new List<ICertificatePal>();
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (5)
265downloadedCerts ??= new List<X509Certificate2>(); 863statusBuilder ??= new List<X509ChainStatus>(); 864overallStatus ??= new List<X509ChainStatus>(); 906List<X509Certificate2> certsToRead = new List<X509Certificate2>(); 935overallStatus ??= new List<X509ChainStatus>();
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\X500NameEncoder.ManagedDecode.cs (1)
26var rdnReaders = new List<AsnReader>();
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
107private readonly List<X509Extension> _list = new List<X509Extension>();
System\Security\Cryptography\X509Certificates\X509SubjectAlternativeNameExtension.cs (1)
86List<GeneralNameAsn> decoded = new List<GeneralNameAsn>();
System.Security.Cryptography.Pkcs (35)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
55var recipientInfos = new List<RecipientInfo>();
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
39List<AttributeAsn> signedAttrs = new List<AttributeAsn>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
105var tmpList = new List<ReadOnlyMemory<byte>>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (1)
124var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (1)
104var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
119var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
23_list = new List<CryptographicAttributeObject>(); 28_list = new List<CryptographicAttributeObject>();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (3)
66_contents ??= new List<ContentInfoAsn>(); 116_contents ??= new List<ContentInfoAsn>(); 136_contents ??= new List<ContentInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
73_bags ??= new List<Pkcs12SafeBag>(); 303List<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.Pkcs.Asn1.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)
181var tmpList = new List<System.Security.Cryptography.Asn1.X509ExtensionAsn>();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (1)
215var tmpList = new List<System.Security.Cryptography.Asn1.X509ExtensionAsn>();
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
101var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
System\Security\Cryptography\Pkcs\Asn1\SignedDataAsn.xml.cs (4)
142var tmpList = new List<System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn>(); 162var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.CertificateChoiceAsn>(); 183var tmpList = new List<ReadOnlyMemory<byte>>(); 202var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.SignerInfoAsn>();
System\Security\Cryptography\Pkcs\Asn1\SignerInfoAsn.xml.cs (1)
155var 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\Pkcs12Info.cs (1)
102List<ContentInfoAsn> authSafeData = new List<ContentInfoAsn>();
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
242List<SignerInfo> signerInfos = new List<SignerInfo>();
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\SignedXml.cs (2)
748List<string> safeAlgorithms = new List<string>(); 769List<string> safeAlgorithms = new List<string>();
System.Security.Permissions (1)
System\Security\Permissions\PrincipalPermission.cs (1)
164idroles ??= new List<IDRole>();
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.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.Text.Json (20)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (2)
99var nodes = new List<T> { entryNode }; // the integer-to-node mapping 101var adjacency = new List<bool[]?>(); // the growable adjacency matrix
src\libraries\System.Text.Json\Common\ReflectionExtensions.cs (1)
330var results = new List<Type>();
System\Text\Json\Nodes\JsonArray.cs (1)
319list = 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)
137public 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)
34state.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.Read.Stream.cs (1)
603CreateObject = static () => new List<T?>(),
System\Text\Json\Serialization\WriteStack.cs (1)
278=> (CompletedAsyncDisposables ??= new List<IAsyncDisposable>()).Add(asyncDisposable);
System.Text.Json.SourceGeneration (11)
Helpers\RoslynExtensions.cs (1)
238var list = new List<INamedTypeSymbol>();
JsonSourceGenerator.Parser.cs (7)
50public List<DiagnosticInfo> Diagnostics { get; } = new(); 200(typeDeclarations ??= new()).Add(stringBuilder.ToString()); 252(rootSerializableTypes ??= new()).Add(typeToGenerate.Value); 310converters = new List<TypeRef>(); 918List<PropertyGenerationSpec> properties = new(); 1028public readonly List<int> Properties = new(); 1546(propertyInitializers ??= new()).Add(propertyInitializer);
src\libraries\Common\src\SourceGenerators\TypeModelHelper.cs (1)
33(args ??= new()).AddRange(current.TypeArguments);
src\libraries\System.Text.Json\Common\JsonHelpers.cs (2)
99var nodes = new List<T> { entryNode }; // the integer-to-node mapping 101var adjacency = new List<bool[]?>(); // the growable adjacency matrix
System.Text.RegularExpressions (21)
System\Text\RegularExpressions\MatchCollection.cs (1)
36_matches = new List<Match>();
System\Text\RegularExpressions\Regex.Split.cs (1)
89var state = (results: new List<string>(), prevat: 0, input, count);
System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
120FixedDistanceSets = new List<FixedDistanceSet>()
System\Text\RegularExpressions\RegexNode.cs (2)
2728Children = new List<RegexNode>() { currentChild, newChild }; 2848var stack = new List<int>();
System\Text\RegularExpressions\RegexParser.cs (3)
1812_capnamelist = new List<string>(); 1872_capnamelist = new List<string>(); 1878_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>(); 78List<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 (10)
RegexGenerator.Emitter.cs (2)
513var excludedAsciiChars = new List<char>(); 572var lines = new List<string>();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
120FixedDistanceSets = new List<FixedDistanceSet>()
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (2)
2728Children = new List<RegexNode>() { currentChild, newChild }; 2848var stack = new List<int>();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (3)
1812_capnamelist = new List<string>(); 1872_capnamelist = new List<string>(); 1878_capnamelist = new List<string>();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (2)
517var results = new List<RegexFindOptimizations.FixedDistanceSet>(); 716var localResults = new List<RegexFindOptimizations.FixedDistanceSet>();
System.Threading.Channels (1)
System\Threading\Channels\IDebugEnumerator.cs (1)
18var list = new List<T>();
System.Threading.RateLimiting (8)
System\Threading\RateLimiting\ChainedPartitionedRateLimiter.cs (2)
158exceptions ??= new List<Exception>(); 246exceptions ??= new List<Exception>();
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (6)
26private readonly List<KeyValuePair<TKey, Lazy<RateLimiter>>> _cachedLimiters = new(); 28private readonly List<RateLimiter> _limitersToDispose = new(); 136exceptions ??= new List<Exception>(); 171exceptions ??= new List<Exception>(); 262aggregateExceptions ??= new List<Exception>(); 276aggregateExceptions ??= new List<Exception>();
System.Threading.Tasks.Dataflow (9)
Base\DataflowBlock.cs (1)
2512_tempSendAsyncTaskList ??= new List<Task<bool>>();
Blocks\BatchedJoinBlock.cs (2)
540private List<T> _messages = new List<T>(); 565_messages = new List<T>();
Blocks\TransformManyBlock.IAsyncEnumerable.cs (1)
159itemCopy = new List<TOutput>();
Blocks\WriteOnceBlock.cs (1)
253exceptions = 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)
343var 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)
57children = new List<AutomationPeer>(); 67children = new List<AutomationPeer>();
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (1)
84List<AutomationPeer> children = new List<AutomationPeer>();
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
166List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>();
Microsoft\Windows\Automation\Peers\RibbonQuickAccessToolBarAutomationPeer.cs (1)
49children = new List<AutomationPeer>();
Microsoft\Windows\Controls\KeyTipService.cs (4)
893activeKeyTipElements = new List<DependencyObject>(); 1532current._cachedKeyTipControls = new List<KeyTipControl>(); 1731private List<AdornerLayer> _placementProcessingAdornerLayers = new List<AdornerLayer>(); 1741private List<DependencyObject> _currentActiveKeyTipElements = new List<DependencyObject>(); // List of elements whose keytips are active.
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (3)
201List<int> starChildIndices = new List<int>(); 412list = new List<T>(); 468List<StarLayoutInfo> _starLayoutCombinations = new List<StarLayoutInfo>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
156List<IProvideStarLayoutInfoBase> InvalidateRegisteredLayoutProvidersList = new List<IProvideStarLayoutInfoBase>(); ;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
129_generatedChildren = new List<UIElement>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
488List<double> elementSizes = new List<double>(); 541List<double> desiredPaddings = new List<double>(); 686contextualTabHeaders[contextualTabGroupHeader] = new List<RibbonTabHeaderAndIndex>();
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2355Properties.AddValue(s_propDelayedUpdateItems, new List<ListViewItem>());
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
117List<ListViewGroup?> list = new();
System\Windows\Forms\DataBinding\BindingSource.cs (1)
81_innerList = new List<object>();
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
1068errorCollection = new List<object>()
System.Windows.Forms.Design.Tests (9)
System\ComponentModel\Design\CollectionFormTests.cs (6)
88EditValue = new List<int> { 1, 2 }, 199EditValue = new List<int> { 1, 2 }, 258EditValue = new List<int> { 1, 2 }, 317EditValue = new List<int> { 1, 2 }, 378EditValue = new List<int> { 1, 2 }, 433EditValue = new List<int> { 1, 2 },
System\Windows\Forms\Design\ListControlStringCollectionEditorTests.cs (1)
59using ListBox listControl = new() { DataSource = new List<string> { "item1", "item2", "item3" } };
System\Windows\Forms\Design\MaskDesignerDialogTests.cs (2)
50List<MaskDescriptor> descriptors = new(); 78List<Type> types = new(){ descriptorType };
System.Windows.Forms.Tests (85)
System\Resources\ResxDataNodeTests.cs (2)
93new List<string> { "Jack", "Queen", "King" }, 94new List<int> { 4, 3, 2, 1 },
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (21)
155new List<bool> { false, true }, 156new List<char> { char.MinValue, char.MaxValue }, 157new List<byte> { byte.MinValue, byte.MaxValue }, 158new List<sbyte> { sbyte.MinValue, sbyte.MaxValue }, 159new List<short> { short.MinValue, short.MaxValue }, 160new List<ushort> { ushort.MinValue, ushort.MaxValue }, 161new List<int> { int.MinValue, int.MaxValue }, 162new List<uint> { uint.MinValue, uint.MaxValue }, 163new List<long> { long.MinValue, long.MaxValue }, 164new List<ulong> { ulong.MinValue, ulong.MaxValue }, 165new List<float> { float.MinValue, float.MaxValue }, 166new List<double> { double.MinValue, double.MaxValue }, 167new List<decimal> { decimal.MinValue, decimal.MaxValue }, 168new List<DateTime> { DateTime.MinValue, DateTime.MaxValue }, 169new List<TimeSpan> { TimeSpan.MinValue, TimeSpan.MaxValue }, 170new List<string> { "a", "b", "c" } 244new List<object>(), 245new List<nint>(), 246new List<(int, int)>(), 247new List<nint> { nint.MinValue, nint.MaxValue }, 248new List<nuint> { nuint.MinValue, nuint.MaxValue }
System\Windows\Forms\BindingSourceTests.cs (1)
360.Returns(new List<int>().GetEnumerator());
System\Windows\Forms\ComboBoxTests.cs (1)
619yield return new object[] { new List<int>() };
System\Windows\Forms\ListBindingHelperTests.cs (13)
48yield return new object[] { new ListDataClass { ListProperty = [] }, "ListProperty", new List<DataClass>() }; 64BindingSource validSource = new(new List<CustomCurrencyManagerProvider> { new() { Property = 1 } }, null); 125yield return new object[] { new List<int> { 1 }, typeof(int) }; 247yield return new object[] { new List<DataClass>(), new string[] { "Property" } }; 250yield return new object[] { new List<ICustomTypeDescriptor>(), Array.Empty<string>() }; 365yield return new object[] { new List<EnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 373yield return new object[] { new List<NonEnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 384yield return new object[] { new List<ITypedListDataClass> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 385yield return new object[] { new List<ITypedListDataClass> { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 397yield return new object[] { new List<ITypedListParent> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 398yield return new object[] { new List<ITypedListParent> { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 481yield return new object[] { new List<int>(), null, "Int32" }; 483yield return new object[] { new List<object>(), null, "List`1" };
System\Windows\Forms\ListBoxTests.cs (1)
783yield return new object[] { new List<int>() };
System\Windows\Forms\ListControlTests.cs (16)
412control.DataSource = new List<DataClass>(); 439control.DataSource = new List<DataClass>(); 540control.DataSource = new List<DataClass>(); 550yield return new object[] { new List<int>() }; 587DataSource = new List<int>() 897DataSource = new List<int>() 1940yield return new object[] { new List<DataClass>(), "selected" }; 1941yield return new object[] { new List<DataClass> { new() { Value = "NoSuchValue" } }, string.Empty }; 1942yield return new object[] { new List<DataClass> { new() { Value = "NoSuchValue" } }, "selected" }; 1943yield return new object[] { new List<DataClass> { new() { Value = "NoSuchValue" } }, "nosuchvalue" }; 2011control.DataSource = new List<int>(); 2478DataSource = new List<CustomTypeConverterDataClass> { item }, 2495DataSource = new List<CustomTypeConverterDataClass> { item }, 2511DataSource = new List<CustomTypeConverterDataClass> { item }, 2528DataSource = new List<NonCriticalThrowingTypeConverterDataClass> { item }, 2545DataSource = new List<CriticalThrowingTypeConverterDataClass> { item },
System\Windows\Forms\ScrollBarTests.cs (30)
2229yield return new object[] { RightToLeft.No, 10, -119, new List<ScrollEventArgs>(), 10 }; 2230yield return new object[] { RightToLeft.No, 10, 0, new List<ScrollEventArgs>(), 10 }; 2231yield return new object[] { RightToLeft.No, 10, 119, new List<ScrollEventArgs>(), 10 }; 2232yield return new object[] { RightToLeft.Yes, 10, -119, new List<ScrollEventArgs>(), 10 }; 2233yield return new object[] { RightToLeft.Yes, 10, 0, new List<ScrollEventArgs>(), 10 }; 2234yield return new object[] { RightToLeft.Yes, 10, 119, new List<ScrollEventArgs>(), 10 }; 2240new List<ScrollEventArgs> 2249new List<ScrollEventArgs> 2258new List<ScrollEventArgs> 2268new List<ScrollEventArgs> 2277new List<ScrollEventArgs> 2287new List<ScrollEventArgs> 2298new List<ScrollEventArgs> 2307new List<ScrollEventArgs> 2316new List<ScrollEventArgs> 2326new List<ScrollEventArgs> 2335new List<ScrollEventArgs> 2345new List<ScrollEventArgs> 2357new List<ScrollEventArgs> 2366new List<ScrollEventArgs> 2375new List<ScrollEventArgs> 2385new List<ScrollEventArgs> 2394new List<ScrollEventArgs> 2403new List<ScrollEventArgs> 2414new List<ScrollEventArgs> 2423new List<ScrollEventArgs> 2432new List<ScrollEventArgs> 2442new List<ScrollEventArgs> 2451new List<ScrollEventArgs> 2460new List<ScrollEventArgs>
System.Xaml (69)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
189keysToRemove = new List<object>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
130List<string> keysToUpdate = new List<string>();
System\Windows\Markup\PropertyDefinition.cs (1)
25public IList<Attribute> Attributes => _attributes ??= new List<Attribute>();
System\Xaml\Context\NameFixupGraph.cs (3)
351List<NameFixupToken> markupExtensionTokens = new List<NameFixupToken>(); 367List<NameFixupToken> dependencies = new List<NameFixupToken>(); 406List<NameFixupToken> dependencies = new List<NameFixupToken>();
System\Xaml\Context\NameFixupToken.cs (2)
108_names = new List<string>(); 109_nameScopeDictionaryList = new List<XAML3.INameScopeDictionary>();
System\Xaml\Context\ObjectWriterContext.cs (6)
325List<AmbientPropertyValue> retList = new List<AmbientPropertyValue>(); 438List<object> retList = new List<object>(); 992List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>(); 1018_nameScopeInitializationCompleteSubscribers = new List<NameScopeInitializationCompleteSubscriber>(); 1051List<XAML3.INameScopeDictionary> _nameScopeDictionaryList = new List<XAML3.INameScopeDictionary>(); 1131List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>();
System\Xaml\Context\XamlCommonFrame.cs (1)
80List<NamespaceDeclaration> _namespaceDeclarations = new List<NamespaceDeclaration>();
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
638_context.CurrentCollection = new List<PositionalParameterDescriptor>(); 1954pendingCollection = new List<PendingCollectionAdd>(); 2265List<string> names = new List<string>(); 2316unresolvedRefs = new List<NameFixupToken>();
System\Xaml\MS\Impl\XmlNsInfo.cs (3)
156IList<XmlNsDefinition> result = new List<XmlNsDefinition>(); 221xmlNamespaceList = new List<string>(); 247var result = new List<AssemblyName>();
System\Xaml\Parser\GenericTypeNameParser.cs (1)
336_typeArgs = new List<XamlTypeName>();
System\Xaml\Parser\NamespacePrefixLookup.cs (1)
17newNamespaces = _newNamespaces = new List<NamespaceDeclaration>();
System\Xaml\Parser\NodeStreamSorter.cs (2)
34List<SeenCtorDirectiveFlags> _seenStack = new List<SeenCtorDirectiveFlags>(); 422_moveList = new List<int>();
System\Xaml\Parser\XamlPullParser.cs (2)
485savedPrefixDefinitions = new List<XamlNode>(); 696_savedPrefixDefinitions = new List<XamlNode>();
System\Xaml\Parser\XamlScanner.cs (5)
560List<XamlAttribute> list = new List<XamlAttribute>(); 673ctorDirectivesList = new List<XamlAttribute>(); 688otherDirectivesList = new List<XamlAttribute>(); 697otherPropertiesList = new List<XamlAttribute>(); 705_attributes = new List<XamlAttribute>();
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
356result = new List<object>();
System\Xaml\Schema\Reflector.cs (4)
309List<T> result = new List<T>(); 337List<CustomAttributeData> cads = new List<CustomAttributeData>(); 344List<T> types = new List<T>(); 425IList<CustomAttributeData> attrDataList = new List<CustomAttributeData>();
System\Xaml\Schema\TypeReflector.cs (7)
646new List<KeyValuePair<MethodInfo, MethodInfo>>(); 819preferredAccessors = new List<MethodInfo>(); 828otherAccessors = new List<MethodInfo>(); 843preferredAccessors = new List<MethodInfo>(); 904list = new List<MethodInfo>(); 990List<XamlMember> result = new List<XamlMember>(); 1197listOfNulls = new List<K>();
System\Xaml\Schema\XamlNamespace.cs (3)
206List<XamlType> xamlTypeList = new List<XamlType>(); 244List<AssemblyNamespacePair> onePair = new List<AssemblyNamespacePair>(); 281assemblyNamespacesCopy = new List<AssemblyNamespacePair>();
System\Xaml\XamlMember.cs (1)
578List<XamlMember> result = new List<XamlMember>();
System\Xaml\XamlNodeList.cs (1)
38_nodeList = new List<XamlNode>();
System\Xaml\XamlObjectReader.cs (8)
252List<MarkupInfo> children = new List<MarkupInfo>(); 992List<MarkupInfo> properties = new List<MarkupInfo>(); 1623var ctorArgProps = new List<XamlMember>(); 2330List<XamlMember> propertyList = new List<XamlMember>(); 2547List<KeyValuePair<string, string>> namespaceMapList = new List<KeyValuePair<string, string>>(); 2879List<MarkupInfo> nodes = new List<MarkupInfo>(); 3107keyEntry.Predecessors = new List<int>(); 3214private List<Entry> _entries = new List<Entry>();
System\Xaml\XamlSchemaContext.cs (3)
114result = new List<string>(); 935List<string> combinedList = new List<string>(); 1048List<string> list = new List<string>();
System\Xaml\XamlTypeName.cs (1)
60_typeArguments = new List<XamlTypeName>();
System\Xaml\XamlXmlWriter.cs (7)
766List<KeyValuePair<string, string>> prefixMapList = new List<KeyValuePair<string, string>>(); 1629writer.meNodesStack.Push(new List<XamlNode>()); 2019var ctorArgProps = new List<XamlMember>(); 2073writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2110writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2139writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2193NodesList = new List<List<XamlNode>>();
System.Xaml.Tests (7)
System\Xaml\Schema\XamlTypeInvokerTests.cs (6)
62var instance = new List<string>(); 511var instance = new List<int> { 1 }; 540public IEnumerator GetEnumerator() => new List<int> { 1 }.GetEnumerator(); 546public List<object> List { get; } = new List<object>(); 548public IEnumerator GetEnumerator() => new List<int> { 1 }.GetEnumerator(); 556public IEnumerator GetEnumerator() => new List<int> { 1 }.GetEnumerator();
System\Xaml\XamlWriterTests.cs (1)
122public List<object> CalledMethodArgs { get; } = new List<object>();
Templates.Blazor.Tests (17)
BlazorWasmTemplateTest.cs (1)
187var buffer = new List<string>();
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
220var buffer = new List<string>();
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
72var list = new List<Exception>();
src\Shared\CertificateGeneration\CertificateManager.cs (3)
88var certificates = new List<X509Certificate2>(); 649var extensions = new List<X509Extension>(); 888var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
700var nssDbs = new List<string>(); 720var nssDbs = new List<NssDb>(); 879var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
Templates.Blazor.WebAssembly.Auth.Tests (16)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
220var buffer = new List<string>();
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
72var list = new List<Exception>();
src\Shared\CertificateGeneration\CertificateManager.cs (3)
88var certificates = new List<X509Certificate2>(); 649var extensions = new List<X509Extension>(); 888var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
700var nssDbs = new List<string>(); 720var nssDbs = new List<NssDb>(); 879var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
Templates.Blazor.WebAssembly.Tests (16)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
220var buffer = new List<string>();
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
72var list = new List<Exception>();
src\Shared\CertificateGeneration\CertificateManager.cs (3)
88var certificates = new List<X509Certificate2>(); 649var extensions = new List<X509Extension>(); 888var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
700var nssDbs = new List<string>(); 720var nssDbs = new List<NssDb>(); 879var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
Templates.Mvc.Tests (22)
MvcTemplateTest.cs (4)
90IEnumerable<string> menuLinks = new List<string> { 98var pages = new List<Page> 184var pages = new List<Page> { 295var pages = new List<Page>
RazorPagesTemplateTest.cs (2)
76var pages = new List<Page> 173var pages = new List<Page> {
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
220var buffer = new List<string>();
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
72var list = new List<Exception>();
src\Shared\CertificateGeneration\CertificateManager.cs (3)
88var certificates = new List<X509Certificate2>(); 649var extensions = new List<X509Extension>(); 888var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
700var nssDbs = new List<string>(); 720var nssDbs = new List<NssDb>(); 879var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
Templates.Tests (16)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
220var buffer = new List<string>();
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
72var list = new List<Exception>();
src\Shared\CertificateGeneration\CertificateManager.cs (3)
88var certificates = new List<X509Certificate2>(); 649var extensions = new List<X509Extension>(); 888var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
700var nssDbs = new List<string>(); 720var nssDbs = new List<NssDb>(); 879var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
UnitTests.Common (1)
MemberDataSet.cs (1)
37private readonly List<object[]> _data = new List<object[]>();
VBCSCompiler (7)
src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (4)
65errorMessages ??= new List<string>(); 83var resolvedPaths = new List<string>(); 108var loadedAssemblies = new List<Assembly>(); 133errorMessages ??= new List<string>();
src\Compilers\Server\VBCSCompiler\BuildProtocolUtil.cs (1)
43List<string> commandLineArguments = new List<string>();
src\Compilers\Server\VBCSCompiler\ServerDispatcher.cs (2)
62private readonly List<Task<CompletionData>> _connectionList = new List<Task<CompletionData>>(); 189var all = new List<Task>();
VBCSCompiler.UnitTests (10)
BuildClientTests.cs (1)
34private readonly List<ServerData> _serverDataList = new List<ServerData>();
CompilerServerApiTest.cs (1)
124var buildResponse = await serverData.SendAsync(new BuildRequest(RequestLanguage.CSharpCompile, "abc", new List<BuildRequest.Argument> { }));
NamedPipeClientConnectionHostTests.cs (2)
93var list = new List<Task<NamedPipeClientStream?>>(); 123var list = new List<Task<NamedPipeClientStream?>>();
TestableDiagnosticListener.cs (1)
17public List<CompletionData> CompletionDataList { get; set; } = new List<CompletionData>();
TouchedFileLoggingTests.cs (4)
50var filelist = new List<string>(); 101var filelist = new List<string>(); 159expectedReads = new List<string>(); 172var writes = new List<string>();
VBCSCompilerServerTests.cs (1)
338var list = new List<Task>();
Wasm.Performance.ConsoleHost (6)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
13Values = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
39Options = new List<CommandOption>(); 40Arguments = new List<CommandArgument>(); 41Commands = new List<CommandLineApplication>(); 42RemainingArguments = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
16Values = new List<string>();
Wasm.Performance.Driver (3)
BenchmarkOutput.cs (2)
8public List<BenchmarkMetadata> Metadata { get; } = new List<BenchmarkMetadata>(); 10public List<BenchmarkMeasurement> Measurements { get; } = new List<BenchmarkMeasurement>();
Program.cs (1)
55var browserArgs = new List<string>();
WindowsBase.Tests (77)
System\ComponentModel\GroupDescriptionTests.cs (3)
139var properties = new List<string>(); 175var properties = new List<string>(); 435var properties = new List<string>();
System\ComponentModel\SortDescriptionCollectionTests.cs (9)
74var events = new List<NotifyCollectionChangedEventArgs>(); 160var events = new List<NotifyCollectionChangedEventArgs>(); 239var events = new List<NotifyCollectionChangedEventArgs>(); 328var events = new List<NotifyCollectionChangedEventArgs>(); 410var events = new List<NotifyCollectionChangedEventArgs>(); 482var events = new List<NotifyCollectionChangedEventArgs>(); 564var events = new List<NotifyCollectionChangedEventArgs>(); 650var events = new List<NotifyCollectionChangedEventArgs>(); 730var events = new List<NotifyCollectionChangedEventArgs>();
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (1)
271var parts = new List<Uri>();
System\Windows\Data\DataSourceProviderTests.cs (1)
1654var propertyNames = new List<string>();
System\Windows\DependencyPropertyTests.cs (24)
60yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 112yield return new object?[] { "Register_String_Type_Type_Validate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>(), 2 }; 172yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_NullValidate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 371yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 425yield return new object?[] { "RegisterAttached_String_Type_Type_Validate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 485yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_NullValidate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 647yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 703yield return new object?[] { "RegisterReadOnly_String_Type_Type_Validate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>(), 2 }; 767yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 940yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 998yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_Validate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>(), 1 }; 1062yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() };
System\Windows\Markup\Primitives\MarkupObjectTests.cs (3)
100var instance = new List<int> { 1, 2, 3 }; 194var list = new List<int> { 1, 2, 3 }; 307var list = new List<int> { 1, 2, 3 };
System\Windows\Markup\Primitives\MarkupPropertyTests.cs (6)
87var instance = new List<int> { 1, 2, 3 }; 181var list = new List<int> { 1, 2, 3 }; 294var list = new List<int> { 1, 2, 3 }; 451var instance = new List<int> { 1, 2, 3 }; 474var list = new List<int> { 1, 2, 3 }; 509var list = new List<int> { 1, 2, 3 };
System\Windows\PropertyMetadataTests.cs (6)
387var events = new List<string>(); 404var events = new List<string>(); 422var events = new List<string>(); 442var events = new List<string>(); 460var events = new List<string>(); 478var events = new List<string>();
System\Windows\WeakEventManagerTests.cs (24)
153var events = new List<string>(); 192var events = new List<string>(); 230var events = new List<string>(); 292var events = new List<string>(); 389var events = new List<string>(); 442var events = new List<string>(); 479var events = new List<string>(); 514var events = new List<string>(); 669var events = new List<string>(); 708var events = new List<string>(); 1196var handlers = new List<Delegate>(); 1562var listeners = new List<CustomWeakEventListener>(); 2079var handlers = new List<Delegate>(); 2504var listeners = new List<CustomWeakEventListener>(); 3565var listeners = new List<CustomWeakEventListener>(); 3886var handlers = new List<Delegate>(); 4311var events = new List<string>(); 4346var events = new List<string>(); 4379var events = new List<string>(); 5342var listeners = new List<CustomWeakEventListener>(); 5601var handlers = new List<Delegate>(); 5807var events = new List<string>(); 5842var events = new List<string>(); 5886var events = new List<string>();
WindowsFormsIntegration (2)
System\Windows\Integration\ApplicationInterop.cs (2)
314_internalList = new List<WeakReference>(); 337List<T> targets = new List<T>();
XmlFileLogger (5)
ItemGroupParser.cs (1)
24var items = new List<Item>();
LogProcessNode.cs (2)
104_childNodes[type] = new List<ILogNode> { childNode }; 117return _childNodes.ContainsKey(t) ? _childNodes[t].Cast<T>() : new List<T>();
ObjectModel\Item.cs (1)
20private readonly List<KeyValuePair<string, string>> _metadata = new List<KeyValuePair<string, string>>();
ObjectModel\TaskParameter.cs (1)
19protected readonly List<Item> items = new List<Item>();
XmlFormattersWebSite (3)
Controllers\HomeController.cs (1)
30var allErrorMessages = new List<string>();
Controllers\IEnumerableController.cs (1)
51List<SerializableError> errors = new List<SerializableError>();
Controllers\ValidationController.cs (1)
28var allErrorMessages = new List<string>();
xunit.assert (8)
CollectionAsserts.cs (3)
73 var errors = new List<Tuple<int, string, Exception>>(); 127 var errors = new List<Tuple<int, string, Exception>>(); 705 var matchIndices = new List<int>();
MultipleAsserts.cs (1)
33 var exceptions = new List<Exception>();
Sdk\CollectionTracker.cs (3)
679 var startItems = new List<T>(); 710 var startItems = new List<T>(); 867 public List<T> StartItems { get; } = new List<T>();
Sdk\Exceptions\ExceptionUtility.cs (1)
47 var results = new List<string>();
xunit.console (19)
CommandLine.cs (2)
14readonly List<string> unknownOptions = new List<string>(); 209var assemblies = new List<Tuple<string, string>>();
common\AssemblyResolution\DependencyContextAssemblyCache.cs (2)
235var assemblies = new List<string>(); 278var assemblies = new List<string>();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (8)
188var targets = new List<Target>(); 201var libraries = new List<TargetLibrary>(); 246var dependencies = new List<Dependency>(); 259var runtimeTargets = new List<RuntimeTargetEntryStub>(); 283var resources = new List<ResourceAssembly>(); 345var runtimeFallbacks = new List<RuntimeFallbacks>(); 387var runtimeAssemblyGroups = new List<RuntimeAssetGroup>(); 388var nativeLibraryGroups = new List<RuntimeAssetGroup>();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\AppBaseCompilationAssemblyResolver.cs (2)
59var directories = new List<string>() 82var paths = new List<string>();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\PackageCompilationAssemblyResolver.cs (1)
105var paths = new List<string>();
common\AssemblyResolution\XunitPackageCompilationAssemblyResolver.cs (2)
39results = new List<string>(); 82var paths = new List<string>();
common\Json.cs (1)
446var list = new List<JsonValue>();
ConsoleRunner.cs (1)
129var result = new List<IRunnerReporter>();