54 types derived from List
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ClonableStack.cs (1)
12internal sealed class ClonableStack<T> : System.Collections.Generic.List<T>
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
IIS.Common.TestLib (1)
DisposableList.cs (1)
9public class DisposableList<T> : List<T>, IDisposable where T : IDisposable
illink (1)
Metrics (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Metrics.Legacy (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.AspNetCore.Http (1)
FormFileCollection.cs (1)
9public class FormFileCollection : List<IFormFile>, IFormFileCollection
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
53private class DerivedList : List<int>
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
88private sealed class EmptyFormFileCollection : List<IFormFile>, IFormFileCollection
Microsoft.AspNetCore.Mvc.Core.Test (7)
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
513private class FileList : List<IFormFile>
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
412private class StringList : List<string>
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
280private class DerivedList : List<int>
ModelBinding\ModelBindingHelperTest.cs (2)
1571private abstract class AbstractIntList : List<int> 1575private class IntList : List<int>
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (1)
121private class TwiceEnumerable : List<string>, IEnumerable<int>
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (1)
181private class TwiceEnumerable : List<string>, IEnumerable<int>
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
EnumerableWrapperProviderFactoryTest.cs (1)
181internal class PersonList : List<Person>
Models\PersonList.cs (1)
6public class PersonList : List<Person>
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
CollectionModelBinderIntegrationTest.cs (1)
1228private class ClosedGenericList : List<string>
Microsoft.AspNetCore.Routing (1)
RouteEndpointDataSource.cs (1)
364private sealed class ThrowOnAddAfterEndpointBuiltConventionCollection : List<Action<EndpointBuilder>>, ICollection<Action<EndpointBuilder>>
Microsoft.AspNetCore.Shared.Tests (1)
ClosedGenericMatcherTest.cs (1)
223private class TwoIEnumerableImplementationsInherited : List<int>, IEnumerable<string>
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Microsoft.DotNet.Helix.Client (1)
generated-code\HelixApi.cs (1)
402public partial class QueryBuilder : List<KeyValuePair<string, string>>
Microsoft.DotNet.SignCheckLibrary (1)
Verification\Jar\JarIndividualSection.cs (1)
15public class JarIndividualSection : List<JarIndividualEntry>
Microsoft.Maui (1)
Layouts\Flex.cs (1)
231 class Item : List<Item>
Microsoft.Maui.Controls (2)
Items\MarshalingObservableCollection.cs (1)
16 public class MarshalingObservableCollection : List<object>, INotifyCollectionChanged
SwipeView\SwipeView.cs (1)
414 class HandlerSwipeItems : List<Maui.ISwipeItem>, ISwipeItems
Microsoft.ML.CodeGenerator (2)
CodeGenerator\CSharp\CSharpProject.cs (1)
12internal class CSharpProject : List<ICSharpFile>, ICSharpProject
CodeGenerator\CSharp\CSharpSolution.cs (1)
15internal class CSharpSolution : List<ICSharpProject>, ICSharpSolution
Microsoft.ML.Data (1)
Data\SchemaDefinition.cs (1)
205public sealed class SchemaDefinition : List<SchemaDefinition.Column>
PresentationCore (1)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
3651internal class StagingAreaInputItemList : List<StagingAreaInputItem>
PresentationFramework (1)
System\Windows\Controls\PopupControlService.cs (1)
1716private class PointList : List<Point>
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
System.Private.Xml (2)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
2070internal sealed class CollectionMember : List<object?>
System\Xml\XPath\Internal\ClonableStack.cs (1)
6internal sealed class ClonableStack<T> : System.Collections.Generic.List<T>
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.RowList.cs (1)
8private class RowList : List<DataGridViewRow>
System.Windows.Forms.Tests (6)
System\Windows\Forms\BindingSourceTests.cs (3)
878private class PrivateDefaultConstructor : List<int>, ITypedList 893private class NoDefaultConstructor : List<int>, ITypedList 910private class ThrowingDefaultConstructor : List<int>, ITypedList
System\Windows\Forms\ListBindingHelperTests.cs (1)
524private class GenericIListSourceClassWithItem : List<int>, IListSource
System\Windows\Forms\ListControlTests.cs (2)
2872private class ComponentList : List<int>, IComponent 2886private class SupportInitializeNotificationList : List<int>, ISupportInitializeNotification
System.Xaml (1)
System\Xaml\XamlSchemaContext.cs (1)
1410private class WeakReferenceList<T> : List<WeakReference>, IList<T> where T : class
System.Xaml.Tests (2)
System\Xaml\Schema\XamlTypeInvokerTests.cs (2)
395public class ClassWithAllowedContentTypes : List<int> 405private class PrivateClassWithAllowedContentTypes : List<int>
Test.Utilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
626private sealed class OrderedSpanList : List<TextSpan>
11069 instantiations of List
AnalyzerRunner (3)
CodeRefactoringRunner.cs (2)
89var codeActions = new List<CodeAction>(); 202var assemblies = new List<Assembly>(MefHostServices.DefaultAssemblies);
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 (25)
Commands\AddCommand.cs (2)
99var packages = new List<(NuGetPackage Package, PackageChannel Channel)>(); 312var rootChoices = new List<(string Label, Func<CancellationToken, Task<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>> Action)>();
Commands\ExecCommand.cs (2)
305List<string> arbitraryFlags = new(); 306List<string> commandTokens = new();
Commands\NewCommand.cs (1)
203var rootChoices = new List<(string Label, Func<CancellationToken, Task<(NuGetPackage, PackageChannel)>> Action)>();
Configuration\ConfigurationService.cs (1)
180var objectPath = new List<(JsonObject obj, string key)>();
DotNet\DotNetCliRunner.cs (3)
683var cliArgsList = new List<string> 817var stdoutLines = new List<string>(); 824var stderrLines = new List<string>();
NuGet\NuGetPackageCache.cs (1)
83var collectedPackages = new List<NuGetPackage>();
Packaging\NuGetConfigMerger.cs (2)
120var patternsToAdd = new List<(string pattern, string newSource)>(); 132var elementsToRemove = new List<XElement>();
Packaging\PackageChannel.cs (3)
19var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 54var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 89var tasks = new List<Task<IEnumerable<NuGetPackage>>>();
Packaging\PackagingService.cs (2)
31var prPackageChannels = new List<PackageChannel>(); 53var channels = new List<PackageChannel>([defaultChannel, stableChannel, dailyChannel, ..prPackageChannels]);
Projects\ProjectLocator.cs (2)
36var appHostProjects = new List<FileInfo>(); 37var unbuildableSuspectedAppHostProjects = new List<FileInfo>();
src\Shared\CircularBuffer.cs (1)
25public CircularBuffer(int capacity) : this(new List<T>(), capacity, start: 0, end: 0)
src\Shared\PackageUpdateHelpers.cs (1)
118var foundPackages = new List<NuGetPackage>();
Templating\DotNetTemplateFactory.cs (3)
102var extraArgs = new List<string>(); 112var extraArgs = new List<string>(); 361var results = new List<(NuGetPackage Package, PackageChannel Channel)>();
Utils\MarkdownToSpectreConverter.cs (1)
203var spectreMarkups = new List<string>();
Aspire.Azure.AI.Inference (1)
ChatCompletionsClientSettings.cs (1)
109var deploymentKeys = new List<string>();
Aspire.Azure.Messaging.EventHubs (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Messaging.EventHubs.Tests (3)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (3)
17public List<MockRequest> Requests { get; } = new List<MockRequest>(); 92_headers[header.Name] = values = new List<string>(); 176_headers[header.Name] = values = new List<string>();
Aspire.Azure.Messaging.ServiceBus (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Messaging.WebPubSub (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Security.KeyVault.Tests (3)
MockTransport.cs (3)
17public List<MockRequest> Requests { get; } = new List<MockRequest>(); 92_headers[header.Name] = values = new List<string>(); 176_headers[header.Name] = values = new List<string>();
Aspire.Azure.Storage.Queues (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Cli.Tests (13)
Commands\ExecCommandTests.cs (1)
189return Task.FromResult(new List<FileInfo>
Commands\PublishCommandPromptingIntegrationTests.cs (1)
123var options = new List<KeyValuePair<string, string>>
Commands\RunCommandTests.cs (2)
161return Task.FromResult(new List<FileInfo> 314var errorMessages = new List<string>();
Projects\ProjectUpdaterTests.cs (7)
53var packages = new List<NuGetPackageCli>(); 155var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource)>(); 164var packages = new List<NuGetPackageCli>(); 299var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource)>(); 308var packages = new List<NuGetPackageCli>(); 465var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource)>(); 474var packages = new List<NuGetPackageCli>();
TestServices\TestProjectLocator.cs (1)
40return Task.FromResult(new List<FileInfo> { new FileInfo(fakeProjectFilePath) });
Utils\CliTestHelper.cs (1)
310public List<string> Logs { get; } = new List<string>();
Aspire.Components.Common.TestUtilities (3)
ActivityNotifier.cs (1)
20var activityList = new List<Activity>();
ConformanceTests.cs (2)
134List<string> registeredNames = new(); 442List<Activity> exportedActivities = new();
Aspire.Confluent.Kafka.Tests (2)
OtelMetricsTests.cs (1)
32List<Metric> metrics = new();
OtelTracesTests.cs (1)
34List<Activity> activities = new();
Aspire.Dashboard (81)
Components\Controls\Chart\ChartBase.cs (5)
133var xValues = new List<DateTimeOffset>(); 134var exemplars = new List<ChartExemplar>(); 380var yValues = new List<double?>(); 381var xValues = new List<DateTimeOffset>(); 382var exemplars = new List<ChartExemplar>();
Components\Controls\Chart\ChartContainer.razor.cs (1)
214var 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 (6)
65TraceData = new List<object?>() 131var sampledList = new List<ChartExemplar>(MaxExemplarsPerTick); 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)
60private readonly List<CommandViewModel> _highlightedCommands = new(); 61private readonly List<MenuButtonItem> _menuItems = new();
Components\Controls\ResourceDetails.razor.cs (3)
54private readonly List<DisplayedResourcePropertyViewModel> _displayedResourcePropertyViewModels = new(); 200var items = new List<ResourceDetailRelationshipViewModel>(); 225var items = new List<ResourceDetailRelationshipViewModel>();
Components\Controls\SpanActions.razor.cs (1)
33private readonly List<MenuButtonItem> _menuItems = new();
Components\Controls\StructuredLogActions.razor.cs (1)
42private readonly List<MenuButtonItem> _menuItems = new();
Components\Controls\TraceActions.razor.cs (1)
30private readonly List<MenuButtonItem> _menuItems = new();
Components\Pages\ConsoleLogs.razor.cs (3)
139private readonly List<CommandViewModel> _highlightedCommands = new(); 140private readonly List<MenuButtonItem> _logsMenuItems = new(); 141private readonly List<MenuButtonItem> _resourceMenuItems = new();
Components\Pages\Metrics.razor.cs (1)
84_durations = new List<SelectViewModel<TimeSpan>>
Components\Pages\Resources.razor.cs (3)
108private readonly List<MenuButtonItem> _resourcesMenuItems = new(); 118private readonly List<MenuButtonItem> _contextMenuItems = new(); 912var properties = new List<ComponentTelemetryProperty>
Components\Pages\StructuredLogs.razor.cs (1)
184_logLevels = new List<SelectViewModel<LogLevel?>>
Components\Pages\TraceDetail.razor.cs (1)
31private readonly List<IDisposable> _peerChangesSubscriptions = new();
Configuration\DashboardOptions.cs (2)
86public List<AllowedCertificateRule> AllowedCertificates { get; set; } = new(); 190var addresses = new List<BindingAddress>(parts.Length);
Configuration\ValidateDashboardOptions.cs (1)
27var errorMessages = new List<string>();
ConsoleLogs\AnsiParser.cs (3)
305List<int> ret = new(2); 453var classes = new List<string>(2); 454var styles = new List<string>(2);
DashboardWebApplication.cs (4)
54private readonly List<Func<EndpointInfo>> _frontendEndPointAccessor = new(); 528var browserEndpointNames = new List<string>(capacity: frontendAddresses.Count); 605var connectionTypes = new List<ConnectionType> { ConnectionType.Otlp }; 637var connectionTypes = new List<ConnectionType> { ConnectionType.Otlp };
Model\ConsoleLogsManager.cs (1)
13private readonly List<ModelSubscription> _subscriptions = new List<ModelSubscription>();
Model\DimensionFilterViewModel.cs (1)
15public List<DimensionValueViewModel> Values { get; } = new();
Model\Otlp\ResourcesSelectHelpers.cs (1)
70var selectViewModels = new List<SelectViewModel<ResourceTypeDetails>>();
Model\Otlp\SpanWaterfallViewModel.cs (2)
122var orderedSpans = new List<SpanWaterfallViewModel>(); 157var spanLogVms = new List<SpanLogEntryViewModel>();
Model\ResourceGraph\ResourceGraphMapper.cs (1)
18var resolvedNames = new List<string>();
Model\ResourceGridViewModel.cs (1)
42var gridViewModels = new List<ResourceGridViewModel>();
Model\ResourceMenuItems.cs (2)
86var urlItems = new List<MenuButtonItem>(); 206var commands = new List<MenuButtonItem>();
Model\ResourceUrlHelpers.cs (1)
13var urls = new List<DisplayedUrl>(resource.Urls.Length);
Model\ResourceViewModel.cs (1)
57var addresses = new List<string>();
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)
19private 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\OtlpHelpers.cs (1)
221values ??= new List<KeyValuePair<string, string>>(readLimit);
Otlp\Model\OtlpInstrument.cs (1)
84values = new List<string?>();
Otlp\Model\OtlpResource.cs (1)
237var instruments = new List<OtlpInstrumentSummary>(_instruments.Count);
Otlp\Model\OtlpResourceView.cs (1)
44var props = new List<OtlpDisplayField>
Otlp\Model\OtlpSpan.cs (1)
103var props = new List<OtlpDisplayField>
Otlp\Storage\PagedResult.cs (1)
11Items = new List<T>(),
Otlp\Storage\TelemetryRepository.cs (11)
35private readonly List<Subscription> _resourceSubscriptions = new(); 36private readonly List<Subscription> _logSubscriptions = new(); 37private readonly List<Subscription> _metricsSubscriptions = new(); 38private readonly List<Subscription> _tracesSubscriptions = new(); 52private readonly List<OtlpSpanLink> _spanLinks = new(); 53private readonly List<IDisposable> _peerResolverSubscriptions = new(); 1207var events = new List<OtlpSpanEvent>(); 1209var links = new List<OtlpSpanLink>(); 1237BackLinks = new() 1263return new List<OtlpInstrumentSummary>(); 1306var allDimensions = new List<DimensionScope>();
src\Shared\CircularBuffer.cs (1)
25public CircularBuffer(int capacity) : this(new List<T>(), capacity, start: 0, end: 0)
Utils\FilterHelpers.cs (1)
30var filterMenuItems = new List<MenuButtonItem>();
Utils\GlobalizationHelpers.cs (2)
40var selfAndChildren = new List<CultureInfo>(); 143RequestCultureProviders = new List<IRequestCultureProvider>
Aspire.Dashboard.Components.Tests (13)
Controls\ResourceDetailsTests.cs (8)
27environment: new List<EnvironmentVariableViewModel> 73environment: new List<EnvironmentVariableViewModel> 111environment: new List<EnvironmentVariableViewModel> 157environment: new List<EnvironmentVariableViewModel> 195environment: new List<EnvironmentVariableViewModel> 241environment: new List<EnvironmentVariableViewModel> 279environment: new List<EnvironmentVariableViewModel> 325environment: new List<EnvironmentVariableViewModel>
Pages\ResourcesTests.cs (5)
28var initialResources = new List<ResourceViewModel> 117var initialResources = new List<ResourceViewModel> 179var initialResources = new List<ResourceViewModel> 216var initialResources = new List<ResourceViewModel> 313var initialResources = new List<ResourceViewModel>
Aspire.Dashboard.Tests (28)
CircularBufferTests.cs (1)
641var values = new List<string>
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (3)
19var resources = new List<ResourceViewModel> 51var resources = new List<ResourceViewModel> 141var resources = new List<ResourceViewModel>
GlobalizationHelpersTests.cs (1)
45var cultureOptions = new List<CultureInfo>
Integration\ServerRetryHelper.cs (2)
36var ports = new List<int>(portCount); 70var unavailableEndpoints = new List<IPEndPoint>();
Model\ApplicationsSelectHelpersTests.cs (5)
23var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 68var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 112var appVMs = new List<SelectViewModel<ResourceTypeDetails>> 134var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 171var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource>
Model\ResourceMenuItemsTests.cs (3)
29var menuItems = new List<MenuButtonItem>(); 80var menuItems = new List<MenuButtonItem>(); 131var menuItems = new List<MenuButtonItem>();
TelemetryRepositoryTests\LogTests.cs (1)
621var 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\TestOutgoingPeerResolver.cs (1)
17_callbacks = new();
TelemetryRepositoryTests\TraceTests.cs (6)
535CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), events: new List<Span.Types.Event> 612CreateSpan(traceId: "1", spanId: "1-1", startTime: s_testTime.AddMinutes(1), endTime: s_testTime.AddMinutes(10), links: new List<Span.Types.Link> 768var attributes = new List<KeyValuePair<string, string>>(); 775var events = new List<Span.Types.Event>(); 995CreateSpan(traceId: traceId, spanId: $"{traceId}-2", startTime: startTime.AddMinutes(5), endTime: startTime.AddMinutes(1), parentSpanId: $"{traceId}-1", links: new List<Span.Types.Link> 999CreateSpan(traceId: traceId, spanId: $"{traceId}-1", startTime: startTime.AddMinutes(1), endTime: startTime.AddMinutes(10), links: new List<Span.Types.Link>
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
268var tasksToWaitFor = new List<Task> { appRunning.Task, projectsParsed.Task };
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
Aspire.Hosting (49)
ApplicationModel\ReferenceExpression.cs (4)
99private readonly List<IValueProvider> _valueProviders = new(formattedCount); 100private readonly List<string> _manifestExpressions = new(formattedCount); 206private readonly List<IValueProvider> _valueProviders = new(); 207private readonly List<string> _manifestExpressions = new();
ApplicationModel\ResourceCommandService.cs (3)
72var tasks = new List<Task<ExecuteCommandResult>>(); 80var failures = new List<(string resourceId, ExecuteCommandResult result)>(); 81var cancellations = new List<(string resourceId, ExecuteCommandResult result)>();
ApplicationModel\ResourceExtensions.cs (3)
242var args = new List<string>(); 284var args = new List<object>(); 400var args = new List<object>();
ApplicationModel\ResourceLoggerService.cs (2)
55var loggers = new List<ILogger>(); 75var scopes = new List<IDisposable>();
ApplicationModel\ResourceNotificationService.cs (1)
394var pendingDependencies = new List<Task>();
ConnectionStringBuilderExtensions.cs (1)
48var tasks = new List<Task>();
Dcp\DcpExecutor.cs (16)
182var tasks = new List<Task>(); 537var logs = new List<LogEntry>(); 1027var projectArgs = new List<string>(); 1183var tasks = new List<Task>(); 1277var launchArgs = new List<(string Value, bool IsSensitive, bool AnnotationOnly)>(); 1360ctr.Spec.Networks = new List<ContainerNetworkConnection> 1365Aliases = new List<string> { container.Name }, 1424var tasks = new List<Task>(); 1528var dcpBuildArgs = new List<EnvVar>(); 1558var dcpBuildSecrets = new List<BuildContextSecret>(); 1912var args = new List<(string Value, bool IsSensitive)>(); 1939var createFiles = new List<ContainerCreateFileSystem>(); 1970var env = new List<EnvVar>(); 1997var runArgs = new List<string>(); 2032var ports = new List<ContainerPortSpec>(); 2071var volumeMounts = new List<VolumeMount>();
Dcp\DcpKubernetesClient.cs (1)
153private readonly List<string> _parameters = new List<string>();
Dcp\Model\ModelCommon.cs (2)
110values = JsonSerializer.Deserialize<List<TValue>>(annotationVal) ?? new(); 114values = new();
Dcp\ResourceLogSource.cs (1)
35var streamTasks = new List<Task>();
Eventing\DistributedApplicationEventing.cs (2)
30var pendingSubscriptionCallbacks = new List<Task>(subscriptions.Count); 91if (!_eventSubscriptionListLookup.TryAdd(typeof(T), new List<DistributedApplicationEventSubscription> { subscription }))
Orchestrator\ApplicationOrchestrator.cs (1)
202var urls = new List<ResourceUrlAnnotation>();
Orchestrator\ParameterProcessor.cs (1)
143var resourceInputs = new List<(ParameterResource ParameterResource, InteractionInput Input)>();
Publishing\ManifestPublishingContext.cs (1)
531var args = new List<(object, string)>();
Publishing\Publisher.cs (2)
43var publishingResources = new List<IResource>(); 44var deployingResources = new List<IResource>();
Publishing\PublishingActivityReporter.cs (1)
313var promptInputs = new List<PublishingPromptInput>
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 (2)
13var result = new List<string>(); 23var result = new List<string>();
src\Shared\CustomResourceSnapshotExtensions.cs (2)
36var existingProperties = new List<ResourcePropertySnapshot>(properties); 37var propertiesToAdd = new List<ResourcePropertySnapshot>();
src\Shared\PackageUpdateHelpers.cs (1)
118var foundPackages = new List<NuGetPackage>();
Aspire.Hosting.Analyzers (1)
Infrastructure\BoundedCacheWithFactory.cs (1)
18private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Aspire.Hosting.Azure (9)
AzurePublishingContext.cs (1)
225var computeEnvironments = new List<IAzureComputeEnvironmentResource>();
AzureResourcePreparer.cs (2)
58var azureResources = new List<(IResource, IAzureResource)>(); 296var roleAssignmentResources = new List<AzureBicepResource>();
Provisioning\Internal\DefaultArmClientProvider.cs (2)
55var subscriptions = new List<ISubscriptionResource>(); 68var locations = new List<(string Name, string DisplayName)>();
Provisioning\Provisioners\AzureProvisioner.cs (1)
177var tasks = new List<Task>();
Provisioning\Provisioners\BicepProvisioner.cs (1)
71var portalUrls = new List<UrlSnapshot>();
src\Shared\CustomResourceSnapshotExtensions.cs (2)
36var existingProperties = new List<ResourcePropertySnapshot>(properties); 37var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
266var args = new List<BicepValue<string>>();
Aspire.Hosting.Azure.CosmosDB (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Hosting.Azure.Functions (2)
src\Shared\CommandLineArgsParser.cs (2)
13var result = new List<string>(); 23var result = new List<string>();
Aspire.Hosting.Azure.Tests (2)
ProvisioningTestHelpers.cs (2)
215var subscriptions = new List<ISubscriptionResource> 224var locations = new List<(string Name, string DisplayName)>
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubHubResource.cs (1)
43internal List<(ReferenceExpression url, string userEvents, string[]? systemEvents, UpstreamAuthSettings? auth)> EventHandlers { get; } = new();
Aspire.Hosting.Docker (2)
DockerComposePublishingContext.cs (1)
79var containerImagesToBuild = new List<IResource>();
DockerComposeServiceResource.cs (1)
180var args = new List<string>();
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
141var garnetCommand = new List<string>
Aspire.Hosting.Nats (1)
NatsBuilderExtensions.cs (1)
117var args = new List<string> { "-js" };
Aspire.Hosting.Nats.Tests (1)
NatsFunctionalTests.cs (1)
287var events = new List<AppEvent>();
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
493var bookmarkFiles = new List<ContainerFileSystemItem>();
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
103var redisCommand = new List<string>
Aspire.Hosting.Testing.Tests (3)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
128var logWatchTasks = new List<Task>();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
18var logs = new List<LogLine>(); 35var logs = new List<LogLine>();
Aspire.Hosting.Tests (33)
Backchannel\Exec\ExecTestsBase.cs (1)
31var logs = new List<CommandOutput>();
Dashboard\DashboardLifecycleHookTests.cs (4)
242var args = new List<object>(); 327var args = new List<object>(); 399var args = new List<object>(); 469var args = new List<object>();
Dcp\DcpExecutorTests.cs (1)
66var startingEvents = new List<OnResourceStartingContext>();
DistributedApplicationTests.cs (2)
551var createFileEntries = new List<ContainerFileSystemItem> 588Assert.Equal(new List<ContainerCreateFileSystem>
InteractionServiceTests.cs (10)
415var inputs = new List<InteractionInput> 455var inputs = new List<InteractionInput> 489var inputs = new List<InteractionInput> 512var inputs = new List<InteractionInput> 527var inputs = new List<InteractionInput> 542var inputs = new List<InteractionInput> 575var inputs = new List<InteractionInput> 612var inputs = new List<InteractionInput> 628var inputs = new List<InteractionInput> 667var inputs = new List<InteractionInput>
ManifestGenerationTests.cs (1)
157var verify = new List<Action<JsonElement>>();
Orchestrator\ParameterProcessorTests.cs (1)
77var updates = new List<(IResource Resource, CustomResourceSnapshot Snapshot)>();
ProjectResourceTests.cs (1)
656var resolvedArgs = new List<string>();
PublishingTests.cs (2)
121var callOrder = new List<string>(); 151var deployingCallbacks = new List<string>();
ResourceLoggerServiceTests.cs (1)
289var allLogs = new List<LogLine>();
ResourceNotificationTests.cs (3)
52var values = new List<ResourceEvent>(); 105var values = new List<ResourceEvent>(); 446var values = new List<ResourceEvent>();
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
18var logs = new List<LogLine>(); 35var logs = new List<LogLine>();
Utils\ArgumentEvaluator.cs (1)
13var args = new List<string>();
Utils\LoggerNotificationExtensions.cs (1)
128var logWatchTasks = new List<Task>();
Utils\ManifestUtils.cs (1)
45var results = new List<JsonNode>();
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
155var valkeyCommand = new List<string>
Aspire.Hosting.Yarp (6)
ConfigurationBuilder\YarpRoute.cs (2)
155transforms = new List<IReadOnlyDictionary<string, string>>(); 159transforms = new List<IReadOnlyDictionary<string, string>>(r.Transforms.Count + 1);
YarpJsonConfigGeneratorBuilder.cs (2)
15private readonly List<ClusterConfig> _clusterConfigs = new List<ClusterConfig>(); 16private readonly List<RouteConfig> _routeConfigs = new List<RouteConfig>();
YarpResource.cs (2)
14internal List<YarpRoute> Routes { get; } = new (); 16internal List<YarpCluster> Clusters { get; } = new ();
Aspire.Hosting.Yarp.Tests (4)
YarpConfigGeneratorTests.cs (4)
34Hosts = new List<string> { "host-A" }, 35Methods = new List<string> { "GET", "POST", "DELETE" }, 88Hosts = new List<string> { "host-B" }, 89Methods = new List<string> { "GET" },
Aspire.Microsoft.Azure.Cosmos (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (1)
37this.listenerSubscriptions = new List<IDisposable>();
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
src\Shared\StableConnectionStringBuilder.cs (1)
176var segments = new List<ConnectionStringSegment>();
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)
150List<Activity> exportedActivities = new();
Aspire.Playground.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
128var 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.Templates.Tests (3)
StarterTemplateRunTestsBase.cs (1)
150var expectedResources = new List<ResourceRow>
tests\Shared\TemplatesTesting\AspireProject.cs (1)
268var tasksToWaitFor = new List<Task> { appRunning.Task, projectsParsed.Task };
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
Aspire.TestUtilities (1)
TestLoggerFactory.cs (1)
12public List<ILoggerProvider> LoggerProviders { get; } = new();
AzureAppService.ApiService (1)
Program.cs (1)
44var blobNames = new List<string>();
AzureContainerApps.ApiService (1)
Program.cs (1)
49var blobNames = new List<string>();
AzureStorageEndToEnd.ApiService (1)
Program.cs (1)
23var 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)
144var missingDescriptions = new List<string>();
BuildBoss (4)
CompilerNuGetCheckerUtil.cs (1)
309var list = new List<PackagePartData>();
ProjectUtil.cs (2)
112var list = new List<ProjectReferenceEntry>(); 144var list = new List<InternalsVisibleTo>();
SolutionUtil.cs (1)
19var list = new List<ProjectEntry>();
BuildValidator (5)
LocalReferenceResolver.cs (3)
52var directories = new List<DirectoryInfo>(); 77locations = new(); 155var assemblyInfoList = new List<AssemblyInfo>();
Program.cs (2)
108var excludes = new List<string>(exclude ?? Array.Empty<string>()); 240var 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 (13)
ChannelBaseTests.4.0.0.cs (6)
60List<string> eventsCalled = new List<string>(4); 61List<string> proxyEventsCalled = new List<string>(4); 112List<string> eventsCalled = new List<string>(4); 113List<string> proxyEventsCalled = new List<string>(4); 167List<string> eventsCalled = new List<string>(4); 168List<string> proxyEventsCalled = new List<string>(4);
ClientBaseTests.4.0.0.cs (6)
536List<string> eventsCalled = new List<string>(4); 537List<string> proxyEventsCalled = new List<string>(4); 587List<string> eventsCalled = new List<string>(4); 588List<string> proxyEventsCalled = new List<string>(4); 640List<string> eventsCalled = new List<string>(4); 641List<string> proxyEventsCalled = new List<string>(4);
SessionTests.cs (1)
485private List<ICommunicationObject> _objectsToClose = new List<ICommunicationObject>();
ClientSample (8)
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 (2)
16Values = new List<string>(); 105var parts = 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>
CookieSessionSample (1)
Startup.cs (1)
35var claims = new List<Claim>(1001);
CosmosEndToEnd.ApiService (1)
Program.cs (1)
28var entries = new List<T>();
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>();
csc (3)
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
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 (7)
Grammar\GrammarGenerator.cs (1)
24var rules = types.ToDictionary(n => n.Name, _ => new List<Production>());
Model\AbstractNode.cs (1)
13public readonly List<Field> Fields = new List<Field>();
Model\Field.cs (1)
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>();
CustomPolicyProvider (1)
Controllers\AccountController.cs (1)
29var claims = new List<Claim>();
DemoConsole (2)
MainForm.cs (2)
306bindingSource.DataSource = new List<string> { "a1", "b2", "c3", "d4", "e5", "f6" }; 406DataSource = new List<string> { "Item 1", "Item 2", "Item 3" }
Diagnostics.EFCore.FunctionalTests (8)
DatabaseErrorPageMiddlewareTest.cs (1)
295var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>>
Helpers\TestLoggerProvider.cs (2)
28private readonly List<string> _messages = new List<string>(); 38return new List<string>(_messages);
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 (18)
Program.cs (3)
56var newArgs = new List<string>(args); 304var validCertificates = new List<X509Certificate2>(); 534var dnsNames = new List<string>();
src\Shared\CertificateGeneration\CertificateManager.cs (3)
129var certificates = new List<X509Certificate2>(); 690var extensions = new List<X509Extension>(); 933var 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)
714var nssDbs = new List<string>(); 734var nssDbs = new List<NssDb>(); 893var 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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
dotnet-getdocument (8)
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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
dotnet-openapi (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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
dotnet-razorpagegenerator (1)
Program.cs (1)
94var results = new List<RazorPageGeneratorResult>();
dotnet-sql-cache (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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
dotnet-svcutil (1)
GlobalTool.cs (1)
18var arguments = new List<string>(args);
dotnet-svcutil.xmlserializer (11)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (2)
100values = new List<string>(); 130result = new List<string>();
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (1)
31private readonly List<Type> _types = new List<Type>();
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (1)
30_assemblies = new List<Assembly>();
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (3)
257_parent._inputParameters = new List<string>(_arguments.GetArguments(String.Empty)); 333_parent._referencedTypes = new List<Type>(); 334_parent._referencedAssemblies = new List<Assembly>(referenceArgs.Count);
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
124private static readonly List<string> s_existingFileNames = new List<string>();
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (1)
181var options = new List<ArgumentInfo>();
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (2)
47List<XmlMapping> mappings = new List<XmlMapping>(); 119List<Type> types = new List<Type>();
dotnet-svcutil-lib (255)
CmdCredentialsProvider.cs (1)
149var candidateCerts = new List<X509Certificate2>();
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
21private List<string> _addedToCodeCompileUnit = new List<string>(); 22private List<string> _needToAdd = new List<string>();
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (2)
18private List<CodeTypeDeclaration> _eventArgsList = new List<CodeTypeDeclaration>(); 215List<CodeMemberEvent> receivedEvents = new List<CodeMemberEvent>();
CodeDomFixup\CodeDomVisitors\EnsureAdditionalAssemblyReference.cs (1)
16private List<string> _alreadyAdded = new List<string>();
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
110List<string> namespaceToAdd = new List<string>();
CodeDomFixup\CodeDomVisitors\TypeNameFixer.cs (1)
14private readonly List<string> _reservedKeyword = new List<string>() { "file", "required", "scoped" };
CodeDomFixup\ConfigToCode.cs (4)
32List<string> endpointNames = new List<string>(); 113IList<CodeTypeMember> toRemoves = new List<CodeTypeMember>(); 180IList<CodeTypeMember> toRemoves = new List<CodeTypeMember>(); 308IList<CodeTypeMember> toRemoves = new List<CodeTypeMember>();
CodeDomFixup\EndpointSelector.cs (1)
18private static List<string> s_bindingValidationErrors = new List<string>();
CodeDomFixup\VisitorFixup.cs (2)
56List<CodeDomVisitor> list = new List<CodeDomVisitor>(visitors); 68List<CodeDomVisitor> list = new List<CodeDomVisitor>(visitors);
CommandLineParser.cs (1)
27private static List<CommandSwitch> s_allSwitches = new List<CommandSwitch>();
CommandProcessorOptions.cs (5)
62private static readonly List<string> s_cmdLineOverwriteSwitches = new List<string> { Switches.NoLogo.Name, Switches.Verbosity.Name, Switches.ToolContext.Name, Switches.ProjectFile.Name, Switches.AcceptCertificate.Name, Switches.ServiceContract.Name }; 104this.ReferencedTypes = new List<Type>(); 105this.ReferencedAssemblies = new List<Assembly>(); 106this.ReferencedCollectionTypes = new List<Type>(); 895List<Type> coreTypes = new List<Type>
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
3957List<String> lines = new List<String>();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEventCache.cs (1)
544_pages = new List<XmlEvent[]>();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriterSettings.cs (2)
69private List<XmlQualifiedName> _cdataSections = new List<XmlQualifiedName>(); 316clonedSettings._cdataSections = new List<XmlQualifiedName>(_cdataSections);
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXmlWriter.cs (1)
78_fragment = new List<XmlNode>();
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (1)
1830List<XmlElement> elements = new List<XmlElement>();
FrameworkFork\Microsoft.Xml\Xml\Dom\XPathNodeList.cs (1)
23_list = new List<XmlNode>();
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (1)
1962runningPositions = new List<RangePositionInfo>();
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (5)
383List<Type> uniqueTypes = new List<Type>(); 883_rules = new List<ConversionRule>(); 903List<Type> types = new List<Type>(); 916List<Type> types = new List<Type>(); 929List<ConversionRule> subset = new List<ConversionRule>();
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (1)
753List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
535List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaDeclBase.cs (1)
105values = new List<string>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (1)
199_defaultAttdefs = new List<IDtdDefaultAttributeInfo>();
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (2)
791builder._ElementDef._ElementDecl.Values = new List<string>((string[])obj); 1091builder._AttributeDef._AttDef.Values = new List<string>((string[])obj);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (1)
19private List<XmlSchemaObjectEntry> _entries = new List<XmlSchemaObjectEntry>();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (2)
1157newMembers = new List<XmlSchemaElement>(); 1479List<XmlSchema> reprocessList = new List<XmlSchema>();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (3)
3585List<T> listDst = new List<T>(); 3613List<object> listDst = new List<object>(); 3625return new List<string>(XmlConvert.SplitString(value));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMapping.cs (1)
126List<XmlRootAttribute> list = new List<XmlRootAttribute>(type.GetTypeInfo().GetCustomAttributes<XmlRootAttribute>());
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
517List<XmlSchemaProviderAttribute> attrs = new List<XmlSchemaProviderAttribute>(type.GetTypeInfo().GetCustomAttributes<XmlSchemaProviderAttribute>(false));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
1406if (IsCyclicReferencedType(itemElement, new List<string>(1) { identifier }))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
99List<Type> argTypes = new List<Type>(); 233List<Type> argTypes = new List<Type>(); 615List<Type> argTypes = new List<Type>(); 616List<string> argNames = new List<string>(); 634List<Label> caseLabels = new List<Label>(); 635List<string> retValues = new List<string>(); 775List<Type> argTypes = new List<Type>(); 956List<Type> argTypes = new List<Type>(5); 957List<string> argNames = new List<string>(5); 1394List<Type> argTypes = new List<Type>(); 2113List<Type> argTypes = new List<Type>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheAxisQuery.cs (2)
20this.outputBuffer = new List<XPathNavigator>(); 25this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheOutputQuery.cs (2)
23this.outputBuffer = new List<XPathNavigator>(); 29this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\followingsibling.cs (2)
23_parentStk = new List<XPathNavigator>(); 28_parentStk = new List<XPathNavigator>(other._parentStk);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingsibling.cs (1)
51List<XPathNavigator> parentStk = new List<XPathNavigator>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\querybuilder.cs (1)
445List<Query> argList = new List<Query>(numArgs);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\SortQuery.cs (2)
24_results = new List<SortKey>(); 31_results = new List<SortKey>(other._results);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (3)
788_members = new List<DataMember>(); 929List<DataMember> tempMembers = new List<DataMember>(); 1108List<Member> membersInHierarchy = new List<Member>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
917List<CodeTypeReference> knownTypeReferences = new List<CodeTypeReference>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
223_argList = new List<ArgBuilder>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (3)
1736List<int> nestedParamCounts = new List<int>(); 2433_nestedParamCounts = new List<int>(); 2440_paramGenericInfos = new List<GenericInfo>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (1)
112this.knownTypeList = new List<Type>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (1)
420List<Type> types = new List<Type>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (2)
276List<DataMember> tempMembers = new List<DataMember>(fields.Length); 277List<long> tempValues = new List<long>(fields.Length);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (3)
263tempMembers = new List<DataMember>(BaseContract.Members); //Don't set tempMembers = BaseContract.Members and then start adding, because this alters the base's reference. 267tempMembers = new List<DataMember>(); 307tempMembers = new List<DataMember>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ImportOptions.cs (2)
53_referencedTypes = new List<Type>(); 65_referencedCollectionTypes = new List<Type>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (7)
245List<XmlSchemaType> knownTypesForObject = new List<XmlSchemaType>(); 279baseTypeInfo.knownTypes = new List<XmlSchemaType>(); 284baseTypeInfo = new SchemaObjectInfo(null, null, null, new List<XmlSchemaType>()); 336List<XmlSchemaRedefine> list = new List<XmlSchemaRedefine>(); 687dataContract.Members = new List<DataMember>(); 1203dataContract.Values = new List<long>(); 1204dataContract.Members = new List<DataMember>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableServices.cs (1)
20List<XmlNode> nodeList = new List<XmlNode>();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (1)
1383List<int> list = new List<int>();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
279IList<Tuple<string, string>> exceptionInfo = new List<Tuple<string, string>>()
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
248List<Type> types = new List<Type>(typeNames.Length);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (1)
34_waiterList = new List<IQueueWaiter>();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InternalBufferManager.cs (1)
62List<BufferPool> bufferPoolList = new List<BufferPool>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimSet.cs (1)
27List<Claim> claims = new List<Claim>(2);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (3)
163List<Claim> claims = new List<Claim>(); 319List<string> dnsEntries = new List<string>(); 366List<Claim> claims = new List<Claim>(2);
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
63_claimSets = new List<ClaimSet>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\UnconditionalPolicy.cs (2)
167List<ClaimSet> issuances = new List<ClaimSet>(1); 235identities = new List<IIdentity>(1);
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (5)
126List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 280List<SecurityKey> temp = new List<SecurityKey>(1); 334List<IAuthorizationPolicy> ret = new List<IAuthorizationPolicy>(authorizationPolicies.Count); 394public static ReadOnlyCollection<T> Instance = new ReadOnlyCollection<T>(new List<T>()); 409List<IIdentity> identities = new List<IIdentity>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (4)
58_serializerEntries = new List<SecurityTokenSerializer.SerializerEntries>(); 86_tokenEntries = new List<TokenEntry>(); 87_keyIdentifierEntries = new List<SecurityTokenSerializer.KeyIdentifierEntry>(); 88_keyIdentifierClauseEntries = new List<SecurityTokenSerializer.KeyIdentifierClauseEntry>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (2)
21_clauses = new List<SecurityKeyIdentifierClause>(InitialSize); 30_clauses = new List<SecurityKeyIdentifierClause>(clauses.Length);
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
37List<StrEntry> strEntries = new List<StrEntry>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
40List<StrEntry> strEntries = new List<StrEntry>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (4)
17: base(new List<AddressHeader>()) 22: base(new List<AddressHeader>(addressHeaders)) 77List<AddressHeader> results = new List<AddressHeader>(); 179List<AddressHeader> headerList = new List<AddressHeader>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
919_newStrings = new List<XmlDictionaryString>(); 949_bytes = new List<byte>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChainedAsyncResult.cs (2)
143_collection = new List<ICommunicationObject>(); 178_collection = new List<ICommunicationObject>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (5)
85itemsToClose = new List<TItem>(); 101endpointKeysToRemove = new List<TKey>(); 236_busyConnections = new List<TItem>(); 370List<TItem> itemsToClose = new List<TItem>(); 443itemsToClose = new List<TItem>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
46registryEntry = new List<ConnectionPool>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
498List<XmlElement> httpAuthAssertions = new List<XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
217List<TItem> itemsToClose = new List<TItem>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (1)
640List<FaultReasonText> translations = new List<FaultReasonText>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (1)
758List<MessageHeaderInfo> understoodHeaders = new List<MessageHeaderInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (3)
166List<string> keys = new List<string>(); 226List<object> values = new List<object>(); 801List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(_propertyCount);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
212List<Wsrm11PolicyAlternative> wsrmAlternatives = new List<Wsrm11PolicyAlternative>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestChannel.cs (1)
16private List<IRequestBase> _outstandingRequests = new List<IRequestBase>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (2)
33_channelsList = new List<IChannel>(); 274objectList = new List<ICommunicationObject>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
1323bodyPartsFromBindings = new List<string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
613List<CodeTypeReference> wrapperKnownTypes = new List<CodeTypeReference>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (5)
376List<Type> types = new List<Type>(); 428List<Type> types = new List<Type>(); 461List<object> attrTypeAttributes = new List<object>(); 600List<Type> types = new List<Type>(GetInheritedContractTypes(interfaceType)); 629List<MethodInfo> methods = new List<MethodInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (5)
381List<Type> knownTypes = new List<Type>(); 766List<Type> inheritedCallbackTypes = new List<Type>(); 1291List<MemberInfo> contractMembers = new List<MemberInfo>(); 1352List<MessagePartDescription> bodyPartDescriptionList = new List<MessagePartDescription>(); 1353List<MessageHeaderDescription> headerPartDescriptionList = new List<MessageHeaderDescription>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (2)
2071List<XmlElement> embeddedPolicies = new List<XmlElement>(); 2115List<XmlElement> policyReferences = new List<XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
602private List<XmlMembersMapping> _mappings = new List<XmlMembersMapping>(); 648List<XmlMembersMapping> uniqueMappings = new List<XmlMembersMapping>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
423List<ICommunicationObject> list = new List<ICommunicationObject>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
84_knownTypes = new List<Type>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
158_requests = new List<IDuplexRequest>(); 172_timedOutRequests = new List<ICorrelatorKey>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
27List<Attr> attrSet = new List<Attr>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointDispatcherTable.cs (1)
34_cachedEndpoints = new List<EndpointDispatcher>(optimizationThreshold);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (3)
19List<FaultContractInfo> faultContractInfoList = new List<FaultContractInfo>(); 31faultContractInfoList = new List<FaultContractInfo>(faultContractInfoCollection); 96faultInfos = new List<FaultContractInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InvokerUtil.cs (1)
37var outputParamPositions = new List<int>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerFaultFormatter.cs (1)
74faultInfos = new List<XmlSerializerOperationBehavior.Reflector.XmlSerializerFaultContractInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
482_attributes[headerDescription.Index] = new List<MessageHeader<object>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\DXD.cs (4)
140public List<XmlDictionaryString> SecureConversationDictionaryStrings = new List<XmlDictionaryString>(); 205public List<XmlDictionaryString> SecurityAlgorithmDictionaryStrings = new List<XmlDictionaryString>(); 234public List<XmlDictionaryString> Feb2005DictionaryStrings = new List<XmlDictionaryString>(); 235public List<XmlDictionaryString> Dec2005DictionaryString = new List<XmlDictionaryString>();
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (1)
776List<AddressHeader> headerList = new List<AddressHeader>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\MessagePartSpecification.cs (4)
25_headerTypes = new List<XmlQualifiedName>(); 105_headerTypes = new List<XmlQualifiedName>(headerTypes.Count); 123List<XmlQualifiedName> noDuplicates = new List<XmlQualifiedName>(_headerTypes.Count); 173_headerTypes = new List<XmlQualifiedName>(headerTypes.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ReferenceList.cs (1)
21private List<string> _referredIds = new List<string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
144_channelSupportingTokenAuthenticatorSpecification = new Collection<SupportingTokenAuthenticatorSpecification>(new List<SupportingTokenAuthenticatorSpecification>(factory._channelSupportingTokenAuthenticatorSpecification));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (3)
525List<Claim> claims = new List<Claim>(2); 529List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 1053public static ReadOnlyCollection<T> Instance = new ReadOnlyCollection<T>(new List<T>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (1)
33_knownTypes = knownTypes ?? new List<Type>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
276List<SecurityKey> temp = new List<SecurityKey>(1);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSKeyInfoSerializer.cs (1)
20List<SecurityTokenSerializer.SerializerEntries> serializerEntries = new List<SecurityTokenSerializer.SerializerEntries>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecureConversationDec2005.cs (1)
49_knownClaimTypes = new List<Type>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecureConversationFeb2005.cs (1)
49_knownClaimTypes = new List<Type>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
3083_drivers = new List<WSSecurityPolicy>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (2)
101_serializerEntries = new List<SerializerEntries>(); 145_tokenEntries = new List<TokenEntry>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (2)
175_entropyAuthenticators = new List<SecurityTokenAuthenticator>(2); 238List<RequestSecurityTokenResponse> rstrCollection = new List<RequestSecurityTokenResponse>(2);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (4)
18_items = new List<T>(); 27_items = new List<T>(); 38_items = new List<T>(list); 49_items = new List<T>(list.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (5)
17_items = new List<T>(); 26_items = new List<T>(); 37_items = new List<T>(list); 48_items = new List<T>(list.Length); 63_items = new List<T>(list);
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlBuffer.cs (1)
66_sections = new List<Section>(1);
FrameworkFork\System.Web.Services\Configuration\WebServicesSection.cs (3)
58object[] attrs = new List<object>(extensionType.GetTypeInfo().GetCustomAttributes(typeof(XmlFormatExtensionAttribute), false)).ToArray(); 76attrs = new List<object>(extensionType.GetTypeInfo().GetCustomAttributes(typeof(XmlFormatExtensionPrefixAttribute), false)).ToArray(); 111object[] attrs = new List<object>(type.GetTypeInfo().GetCustomAttributes(typeof(XmlFormatExtensionPointAttribute), false)).ToArray();
Metadata\MetadataDocumentLoader.cs (5)
45private List<string> _processedUri = new List<string>(); 46private List<string> _updatedUri = new List<string>(); 57private List<Uri> metadataSourceFiles { get; set; } = new List<Uri>(); 63private readonly List<MetadataSection> _metadataSections = new List<MetadataSection>(); 69private readonly List<Exception> _documentLoadExceptions = new List<Exception>();
Metadata\MetadataDocumentSaver.cs (3)
41this.MetadataFiles = new List<MetadataFileInfo>(); 44this.UnresolvedReferences = new List<UnresolvedUri>(); 277var importedWsdl = new List<string>();
Metadata\MetadataFileNameManager.cs (1)
18private List<string> _files = new List<string>();
Metadata\ServiceDescriptor.cs (9)
65public IEnumerable<ServiceEndpoint> Endpoints { get; private set; } = new List<ServiceEndpoint>(); 67public IEnumerable<Binding> Bindings { get; private set; } = new List<Binding>(); 69public IEnumerable<ContractDescription> Contracts { get; private set; } = new List<ContractDescription>(); 73public IEnumerable<MetadataConversionError> MetadataConversionErrors { get; private set; } = new List<MetadataConversionError>(); 77public IEnumerable<ServiceInfo> Services { get; private set; } = new List<ServiceInfo>(); 185var orphanContracts = new List<ContractDescription>(this.Contracts); 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 (5)
FixupUtil.cs (2)
22_replacements = new List<ReplaceInfo> 99var replacements = new List<ReplaceInfo>(_replacements);
TestInit.cs (3)
468var fileLines1 = new List<string>(); 469var fileLines2 = new List<string>(); 470var exceptLines = new List<string>() { "<ImplicitUsings>enable</ImplicitUsings>", "<Nullable>enable</Nullable>", "<Content CopyToOutputDirectory" };
dotnet-user-jwts (15)
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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
dotnet-user-secrets (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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
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>
GenerateAnalyzerNuspec (2)
Program.cs (2)
109var allTargets = new List<string>(); 200var fileNamesToExclude = new List<string>() { "Humanizer.dll", "MessagePack.dll", "MessagePack.Annotations.dll" };
GenerateDocumentationAndConfigFiles (41)
Program.cs (3)
265var fileNamesWithValidationFailures = new List<string>(); 1768var compilerVisibleProperties = new List<string>(); 1806var compilerVisibleProperties = new List<string>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var 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)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
GetDocument.Insider (8)
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 (2)
16Values = new List<string>(); 105var parts = 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 (2)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
103var list = new List<Http2PeerSetting>(2);
IdeBenchmarks (1)
SQLitePersistentStorageBenchmark.cs (1)
98var tasks = new List<Task>(capacity);
IdeCoreBenchmarks (4)
NavigateToBenchmarks.cs (2)
108var roots = new List<SyntaxNode>(); 227var results = new List<INavigateToSearchResult>();
SegmentedListBenchmarks_InsertRange.cs (2)
32_values = new List<int>(Count); 33_valuesObject = new List<object?>(Count);
Identity.DefaultUI.WebSite (8)
Services\ContosoEmailSender.cs (1)
10public IList<IdentityEmail> SentEmails { get; set; } = new List<IdentityEmail>();
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (1)
419var updatedCodes = new List<string>(splitCodes.Where(s => s != code));
src\Identity\test\Shared\PocoModel\PocoRole.cs (1)
59public virtual ICollection<PocoRoleClaim<TKey>> Claims { get; private set; } = new List<PocoRoleClaim<TKey>>();
src\Identity\test\Shared\PocoModel\PocoUser.cs (5)
136public virtual ICollection<PocoUserRole<TKey>> Roles { get; private set; } = new List<PocoUserRole<TKey>>(); 140public virtual ICollection<PocoUserClaim<TKey>> Claims { get; private set; } = new List<PocoUserClaim<TKey>>(); 144public virtual ICollection<PocoUserLogin<TKey>> Logins { get; private set; } = new List<PocoUserLogin<TKey>>(); 148public virtual ICollection<PocoUserToken<TKey>> Tokens { get; private set; } = new List<PocoUserToken<TKey>>(); 152public virtual ICollection<PocoUserPasskey<TKey>> Passkeys { get; private set; } = new List<PocoUserPasskey<TKey>>();
IdentitySample.PasskeyConformance (6)
src\Identity\test\Shared\PocoModel\PocoRole.cs (1)
59public virtual ICollection<PocoRoleClaim<TKey>> Claims { get; private set; } = new List<PocoRoleClaim<TKey>>();
src\Identity\test\Shared\PocoModel\PocoUser.cs (5)
136public virtual ICollection<PocoUserRole<TKey>> Roles { get; private set; } = new List<PocoUserRole<TKey>>(); 140public virtual ICollection<PocoUserClaim<TKey>> Claims { get; private set; } = new List<PocoUserClaim<TKey>>(); 144public virtual ICollection<PocoUserLogin<TKey>> Logins { get; private set; } = new List<PocoUserLogin<TKey>>(); 148public virtual ICollection<PocoUserToken<TKey>> Tokens { get; private set; } = new List<PocoUserToken<TKey>>(); 152public virtual ICollection<PocoUserPasskey<TKey>> Passkeys { get; private set; } = new List<PocoUserPasskey<TKey>>();
IdentitySample.PasskeyUI (6)
src\Identity\test\Shared\PocoModel\PocoRole.cs (1)
59public virtual ICollection<PocoRoleClaim<TKey>> Claims { get; private set; } = new List<PocoRoleClaim<TKey>>();
src\Identity\test\Shared\PocoModel\PocoUser.cs (5)
136public virtual ICollection<PocoUserRole<TKey>> Roles { get; private set; } = new List<PocoUserRole<TKey>>(); 140public virtual ICollection<PocoUserClaim<TKey>> Claims { get; private set; } = new List<PocoUserClaim<TKey>>(); 144public virtual ICollection<PocoUserLogin<TKey>> Logins { get; private set; } = new List<PocoUserLogin<TKey>>(); 148public virtual ICollection<PocoUserToken<TKey>> Tokens { get; private set; } = new List<PocoUserToken<TKey>>(); 152public virtual ICollection<PocoUserPasskey<TKey>> Passkeys { get; private set; } = new List<PocoUserPasskey<TKey>>();
IIS.Common.TestLib (1)
TestConnections.cs (1)
192List<string> headers = new List<string>();
IIS.FunctionalTests (12)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
172exceptions = new List<Exception>(retries);
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (2)
45var messages = new List<string>(); 87var messages = new List<string>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (2)
42var list = new List<FrebLogItem>(); 146var 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)
256var messages = new List<string>(); 741List<Task> tasks = new List<Task>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
103var list = new List<Http2PeerSetting>(2);
IIS.LongTests (6)
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)
203var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
103var list = new List<Http2PeerSetting>(2);
IIS.NewHandler.FunctionalTests (6)
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)
203var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
103var list = new List<Http2PeerSetting>(2);
IIS.NewShim.FunctionalTests (6)
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)
203var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
103var list = new List<Http2PeerSetting>(2);
IIS.ShadowCopy.Tests (4)
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\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
103var list = new List<Http2PeerSetting>(2);
IIS.Tests (1)
Utilities\TestServer.cs (1)
212var exceptions = new List<Exception>();
IISExpress.FunctionalTests (15)
OutOfProcess\MultipleAppTests.cs (2)
31var deploymentResults = new List<DeploymentResult>(); 44var requestTasks = new List<Task<HttpResponseMessage>>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
172exceptions = new List<Exception>(retries);
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (2)
45var messages = new List<string>(); 87var messages = new List<string>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (2)
42var list = new List<FrebLogItem>(); 146var 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)
256var messages = new List<string>(); 741List<Task> tasks = new List<Task>();
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
203var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
103var list = new List<Http2PeerSetting>(2);
illink (77)
ILLink.RoslynAnalyzer (6)
DataFlow\DynamicallyAccessedMembersBinder.cs (3)
24var members = new List<ISymbol>(); 85var members = new List<ISymbol>(); 98var members = new List<ISymbol>();
DataFlow\InterproceduralState.cs (1)
55var methodsList = new List<MethodBodyValue>(Methods.GetKnownValues());
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
267(nestedNameLengths ??= new()).Add(length);
src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
135var args = new List<string>();
Infrastructure.Common (7)
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\ConditionAttribute.cs (1)
45List<string> falseConditions = new List<string>(conditionCount);
xunit\WcfTestCase.cs (1)
26static TestEventListener s_testListener = new TestEventListener(new List<string>() { "Microsoft-Windows-Application Server-Applications" }, EventLevel.Verbose);
xunit\WcfTestDiscoverer.cs (2)
36List<string> issueSkipList = new List<string>(); 63List<string> skipReasons = new List<string>(conditions.Length);
InMemory.FunctionalTests (43)
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 (5)
235await outboundcontrolStream.SendSettingsAsync(new List<Http3PeerSetting> 299await controlStream.SendSettingsAsync(new List<Http3PeerSetting>()); 325await controlStream.SendSettingsAsync(new List<Http3PeerSetting>()); 378await controlStream.SendSettingsAsync(new List<Http3PeerSetting>()); 409await outboundcontrolStream.SendSettingsAsync(new List<Http3PeerSetting>
Http3\Http3StreamTests.cs (7)
738var receivedData = new List<byte>(); 2394var headers = new List<KeyValuePair<string, string>>(); 2422var headers = new List<KeyValuePair<string, string>>(); 2776await outboundControlStream.SendSettingsAsync(new List<Http3PeerSetting>()); 2811await outboundcontrolStream.SendSettingsAsync(new List<Http3PeerSetting> 3040var settings = new List<Http3PeerSetting> 3228var settings = 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 (2)
84var bufferLengths = new List<int>(); 602var tasks = new List<Task>(iterations);
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
141_revocationList = new List<(byte[], DateTimeOffset)>();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
1040public ICollection<KeyValuePair<string, object>> Tags { get; } = new List<KeyValuePair<string, object>>(); 1282_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\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
108MaybeExtra = new List<KeyValuePair<Type, object>>(2);
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
InProcessWebSite (1)
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)
88var expectedOutput = new List<string>
Interop.FunctionalTests (19)
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)
781var connectionRequestTasks = new List<Task<int>>(); 801var requestTasks = new List<Task>(); 1043var requestHeaders = new List<Dictionary<string, StringValues>>(); 1676var contexts = new List<HttpContext>();
Http3\Http3TlsTests.cs (1)
309ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 }
HttpClientHttp2InteropTests.cs (5)
35var list = new List<object[]>() 129var requestTasks = new List<Task>(requestCount); 177var requestTasks = new List<Task>(requestCount); 1226var tasks = new List<Task<HttpResponseMessage>>(10); 1287var tasks = new List<Task<HttpResponseMessage>>(10);
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\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_blockAccessExceptions = new List<Exception>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public 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>()
Metrics (32)
Program.cs (1)
43var projectsOrSolutions = new List<string>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Metrics.Legacy (32)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Tools\Metrics\Program.cs (1)
43var projectsOrSolutions = new List<string>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
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 (2)
ApiLifecycle\AssemblyAnalysis.cs (1)
283var modifiers = new List<string>(6);
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 (10)
DiffUtil.cs (2)
79IList<T> expectedList = expected as IList<T> ?? new List<T>(expected); 80IList<T> actualList = actual as IList<T> ?? new List<T>(actual);
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)
20public 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 (3)
Internal\DefaultClaimUidExtractor.cs (3)
44identitiesList = new List<ClaimsIdentity>(claimsIdentities); 93var allClaims = new List<Claim>(); 110var identifierParameters = new List<string>(allClaims.Count * 3);
Microsoft.AspNetCore.Antiforgery.Test (2)
DefaultAntiforgeryTokenSerializerTest.cs (1)
158var input = new List<byte>(data);
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>() 172ListedTargetingPackAssemblies = 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 (2)
CertificateAuthenticationHandler.cs (2)
148var chainErrors = new List<string>(chain.ChainStatus.Length); 253var claims = new List<Claim>();
Microsoft.AspNetCore.Authentication.Cookies (4)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationSchemeProvider.cs (1)
36_requestHandlers = new List<AuthenticationScheme>();
Microsoft.AspNetCore.Authentication.Core.Test (8)
AuthenticationPropertiesTests.cs (1)
68["list"] = new List<string> { "a", "b", "c" },
TokenExtensionTests.cs (7)
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>(); 158var tokens = new List<AuthenticationToken> 173var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.JwtBearer (6)
JwtBearerHandler.cs (4)
116validationFailures ??= new List<Exception>(1); 122validationFailures ??= new List<Exception>(1); 140validationFailures ??= new List<Exception>(1); 381var messages = new List<string>(exceptions.Count);
JwtBearerOptions.cs (2)
32SecurityTokenValidators = new List<ISecurityTokenValidator> { _defaultHandler }; 34TokenHandlers = new List<TokenHandler> { _defaultTokenHandler };
Microsoft.AspNetCore.Authentication.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)
13public 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)
255var kvps = new List<KeyValuePair<string, string>>(); 304options.SecurityTokenHandlers = new List<ISecurityTokenValidator>() { new TestSecurityTokenValidator() };
WsFederation\WsFederationTest_Handler.cs (1)
246var kvps = new List<KeyValuePair<string, string>>();
Microsoft.AspNetCore.Authentication.WsFederation (3)
WsFederationHandler.cs (3)
263validationFailures ??= new List<Exception>(1); 271validationFailures ??= new List<Exception>(1); 291validationFailures ??= new List<Exception>(1);
Microsoft.AspNetCore.Authorization (5)
AuthorizationHandlerContext.cs (1)
104_failedReasons = new List<AuthorizationFailureReason>();
AuthorizationPolicy.cs (2)
38Requirements = new List<IAuthorizationRequirement>(requirements).AsReadOnly(); 39AuthenticationSchemes = new List<string>(authenticationSchemes).AsReadOnly();
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)
13public 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 (35)
CascadingParameterState.cs (2)
56resultStates ??= new List<CascadingParameterState>(infos.Length - infoIndex); 126result ??= new List<CascadingParameterInfo>();
CascadingValueSource.cs (2)
94var tasks = new List<Task>(); 169_subscribers?.GetOrAdd(dispatcher, _ => new()).Add(subscriber);
ComponentFactory.cs (1)
121injectables ??= new();
NavigationManager.cs (1)
34private readonly List<Func<LocationChangingContext, ValueTask>> _locationChangingHandlers = new();
PersistentState\ComponentStatePersistenceManager.cs (2)
14private readonly List<PersistComponentStateRegistration> _registeredCallbacks = new(); 15private readonly List<RestoreComponentStateRegistration> _registeredRestoringCallbacks = new();
PersistentState\PersistentServicesRegistry.cs (2)
58var subscriptions = new List<(PersistingComponentStateSubscription, RestoringComponentStateSubscription)>( 169var keys = new List<(string, Type)>();
Reflection\ComponentProperties.cs (1)
249var propertyNames = new List<string>();
Reflection\MemberAssignment.cs (1)
35many = new List<PropertyInfo> { single };
Rendering\ComponentState.cs (1)
211remainingCascadingParameters ??= new(_cascadingParameters.Count /* upper bound on capacity needed */);
RenderTree\Renderer.cs (7)
289_pendingTasks ??= new(); 451_pendingTasks ??= new(); 987batch = batch ?? new List<Task>(); 1046exceptions ??= new List<Exception>(); 1261asyncDisposables ??= new(); 1267exceptions ??= new List<Exception>(); 1294asyncExceptions ??= new List<Exception>();
RenderTree\RenderTreeDiffBuilder.cs (2)
769var frameTypes = new List<string>(); 780var componentPath = new List<string>();
Routing\RouteTableFactory.cs (2)
52var routeableComponents = new List<Type>(); 242unusedParameters ??= new();
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 (2)
482parameters = new List<RoutePatternParameterPart>(); 617parameterConstraints = new List<RoutePatternParameterPolicyReference>(parameter.ParameterPolicies.Count);
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)
49authorizeDatas ??= 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 (25)
Builder\RazorComponentEndpointDataSource.cs (1)
109var endpoints = new List<Endpoint>();
Builder\ResourcePreloadCollection.cs (1)
40groupHeaders = _storage[group] = new List<PreloadAsset>();
Discovery\IRazorComponentApplication.cs (2)
23var pages = new List<PageComponentBuilder>(); 24var components = new List<ComponentBuilder>();
Discovery\PageCollectionBuilder.cs (2)
58var list = new List<PageComponentInfo>(totalCount); 60var metadata = new List<object>();
FormMapping\Converters\CollectionAdapters\ReadOnlyCollectionBufferAdapter.cs (1)
10public static IList<TElement> CreateBuffer() => new List<TElement>();
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (6)
33var parameters = new List<ParameterExpression>() { readerParam, typeParam, optionsParam, resultParam, foundValueParam }; 40var variables = new List<ParameterExpression>() { propertyFoundValue, succeeded, localFoundValueVar, exceptionVar }; 42var propertyValueLocals = new List<ParameterExpression>(); 43var constructorParameterValueLocals = new List<ParameterExpression>(); 45var body = new List<Expression>() 190var assignments = new List<Expression>();
FormMapping\FormDataMapperOptions.cs (1)
15private readonly List<IFormDataConverterFactory> _factories = new();
FormMapping\Metadata\FormDataMetadataFactory.cs (1)
317public List<Type> CurrentTypes { get; set; } = new();
FormMapping\Metadata\FormDataTypeMetadata.cs (2)
22public IList<FormDataParameterMetadata> ConstructorParameters { get; set; } = new List<FormDataParameterMetadata>(); 24public IList<FormDataPropertyMetadata> Properties { get; set; } = new List<FormDataPropertyMetadata>();
Rendering\Buffering\TextChunkListBuilder.cs (1)
25_priorPages ??= new();
Rendering\EndpointHtmlRenderer.cs (2)
53private readonly List<Task> _nonStreamingPendingTasks = new(); 274var result = new List<StringValues>(form.Keys.Count);
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 (2)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>();
Microsoft.AspNetCore.Components.Endpoints.Tests (64)
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" }
FormMapping\BrowserFileFromFormFileTests.cs (1)
84var formFiles = new List<IFormFile> { mockFormFile1.Object, mockFormFile2.Object };
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)
110var results = new List<ValidationResult>(); 141var 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)
163_columns = new();
Microsoft.AspNetCore.Components.QuickGrid.Tests (4)
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.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)
124internal IList<string> JavaScriptInitializers { get; } = new List<string>();
Circuits\CircuitHost.cs (4)
270exceptions ??= new List<Exception>(); 301exceptions ??= new List<Exception>(); 337exceptions ??= new List<Exception>(); 365exceptions ??= 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 (21)
Circuits\CircuitActivitySourceTest.cs (1)
25_activities = new List<Activity>();
Circuits\CircuitHostTest.cs (3)
140var circuitUnhandledExceptions = new List<UnhandledExceptionEventArgs>(); 222var descriptors = new List<ComponentDescriptor>(); 253var reportedErrors = new List<UnhandledExceptionEventArgs>();
Circuits\CircuitPersistenceManagerTest.cs (1)
532var markers = new List<ComponentMarker>();
Circuits\DefaultInMemoryCircuitPersistenceProviderTest.cs (1)
114var evictedKeys = new List<string>();
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)
74descriptors ?? new List<ComponentDescriptor>(),
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
61var buildersAffected = new List<string>();
ProtectedBrowserStorageTest.cs (1)
297public List<string> ProtectorsCreated { get; } = new List<string>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Components.Tests (51)
ComponentsActivitySourceTest.cs (1)
16_activities = new List<Activity>();
NavigationManagerTest.cs (1)
921private 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>
PersistentState\ComponentStatePersistenceManagerTest.cs (3)
196var sequence = new List<int> { }; 226var sequence = new List<int> { }; 318var executionSequence = new List<int>();
PersistentState\PersistentComponentStateTest.cs (5)
196var callbacks = new List<RestoreComponentStateRegistration>(); 215var callbacks = new List<RestoreComponentStateRegistration>(); 234var callbacks = new List<RestoreComponentStateRegistration>(); 253var callbacks = new List<RestoreComponentStateRegistration>(); 272var callbacks = new List<RestoreComponentStateRegistration>();
PersistentStateValueProviderKeyResolverTests.cs (1)
336var result = new List<ComponentState>();
PersistentStateValueProviderTests.cs (2)
33new List<(ComponentState, string, string)> 129var result = new List<ComponentState>();
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[]>();
ResourceAssetCollectionTest.cs (1)
135var assets = new List<ResourceAsset> { originalAsset };
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>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
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 (9)
Hosting\WebAssemblyHost.cs (1)
173var pendingRenders = new List<Task>(count + initialOperationCount);
Hosting\WebAssemblyHostConfiguration.cs (4)
18private readonly List<IConfigurationProvider> _providers = new List<IConfigurationProvider>(); 19private readonly List<IConfigurationSource> _sources = new List<IConfigurationSource>(); 21private readonly List<IDisposable> _changeTokenRegistrations = new List<IDisposable>(); 95var result = new List<IConfigurationSection>();
Services\LazyAssemblyLoader.cs (2)
50var loadedAssemblies = new List<Assembly>(); 72var loadedAssemblies = new List<Assembly>();
src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
Microsoft.AspNetCore.Components.WebView (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
168patterns ??= new();
WebViewManager.cs (1)
230var pendingRenders = new List<Task>(_rootComponentsBySelector.Count);
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 (1)
ResponseCookiesWrapper.cs (1)
142var nonSuppressedValues = new List<KeyValuePair<string, string>>(keyValuePairs.Length);
Microsoft.AspNetCore.CookiePolicy.Test (4)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
Microsoft.AspNetCore.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)
129var certificates = new List<X509Certificate2>(); 690var extensions = new List<X509Extension>(); 933var 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)
714var nssDbs = new List<string>(); 734var nssDbs = new List<NssDb>(); 893var certs = new List<FileInfo>();
Microsoft.AspNetCore.Diagnostics (9)
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?>();
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
47_exceptionHandlers = exceptionHandlers as IExceptionHandler[] ?? new List<IExceptionHandler>(exceptionHandlers).ToArray();
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>();
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
39var frames = new List<StackFrameInfo>(stackFrames.Length);
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
DatabaseDeveloperPageExceptionFilter.cs (1)
65var contextDetails = new List<DatabaseContextDetails>();
src\Shared\Diagnostics\BaseView.cs (1)
100AttributeValues = new List<string>();
src\Shared\RazorViews\BaseView.cs (1)
140AttributeValues = new List<string>();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (31)
Buffering\TestConfiguration.cs (1)
25return new ConfigurationRoot(new List<IConfigurationProvider> { provider });
Latency\RequestLatencyTelemetryMiddlewareTests.cs (5)
33Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 }, 64new List<ILatencyDataExporter> { ex1, ex2 }); 92Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 }, 122new List<ILatencyDataExporter> { ex1, ex2 }, 173new List<ILatencyDataExporter> { ex1 },
Logging\HeaderReaderTests.cs (3)
21var listToFill = new List<KeyValuePair<string, object?>>(); 31var listToFill = new List<KeyValuePair<string, object?>>(); 56var listToFill = new List<KeyValuePair<string, object?>>();
Logging\HttpUtilityExtensionsTests.cs (2)
37var metadata = new List<object>(1); 68var metadata = new List<object>(1);
Logging\IncomingHttpRouteUtilityTests.cs (20)
31controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 41var metadata = new List<object> { controllerActionDescriptor }; 69controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 79var metadata = new List<object> { controllerActionDescriptor }; 109controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 119var metadata = new List<object> { controllerActionDescriptor }; 151controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 161var metadata = new List<object> { controllerActionDescriptor }; 193controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 203var metadata = new List<object> { controllerActionDescriptor }; 240controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 250var metadata = new List<object> { controllerActionDescriptor }; 281controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 291var metadata = new List<object> { controllerActionDescriptor }; 329controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 339var metadata = new List<object> { controllerActionDescriptor }; 374controllerActionDescriptor.Parameters = new List<ParameterDescriptor>(parametersInfo.Length); 384var metadata = new List<object> { controllerActionDescriptor }; 422var metadata = new List<object> { }; 451var metadata = new List<object> { };
Microsoft.AspNetCore.Diagnostics.Tests (22)
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 (8)
185var exceptionHandlers = new List<IExceptionHandler> 226var exceptionHandlers = new List<IExceptionHandler> 260var exceptionHandlers = new List<IExceptionHandler> 290var exceptionHandlers = new List<IExceptionHandler> 315var exceptionHandlers = new List<IExceptionHandler> { new TestExceptionHandler(true, "1") }; 338var exceptionHandlers = new List<IExceptionHandler> { new TestExceptionHandler(true, "1") }; 360var exceptionHandlers = new List<IExceptionHandler> { new TestExceptionHandler(true, "1") }; 669public List<KeyValuePair<string, object>> TagsList { get; } = new List<KeyValuePair<string, object>>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public 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)
117var 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 (11)
JsonTranscodingServiceMethodProviderTests.cs (1)
251DataSources = new List<EndpointDataSource>();
ServerStreamingServerCallHandlerTests.cs (5)
50var descriptorPath = new List<FieldDescriptor>(new[] { HelloRequest.Descriptor.FindFieldByNumber(HelloRequest.NameFieldNumber) }); 100["name"] = CreateRouteParameter(new List<FieldDescriptor>(new[] { HelloRequest.Descriptor.FindFieldByNumber(HelloRequest.NameFieldNumber) })) 142["name"] = CreateRouteParameter(new List<FieldDescriptor>(new[] { HelloRequest.Descriptor.FindFieldByNumber(HelloRequest.NameFieldNumber) })) 182["name"] = CreateRouteParameter(new List<FieldDescriptor>(new[] { HelloRequest.Descriptor.FindFieldByNumber(HelloRequest.NameFieldNumber) })) 231["name"] = CreateRouteParameter(new List<FieldDescriptor>(new[] { HelloRequest.Descriptor.FindFieldByNumber(HelloRequest.NameFieldNumber) }))
UnaryServerCallHandlerTests.cs (5)
57["name"] = CreateRouteParameter(new List<FieldDescriptor>(new[] { HelloRequest.Descriptor.FindFieldByNumber(HelloRequest.NameFieldNumber) })), 58["sub.subfield"] = CreateRouteParameter(new List<FieldDescriptor>(new[] 101["name"] = CreateRouteParameter(new List<FieldDescriptor>(new[] { HelloRequest.Descriptor.FindFieldByNumber(HelloRequest.NameFieldNumber) })) 135["name"] = CreateRouteParameter(new List<FieldDescriptor>(new[] { HelloRequest.Descriptor.FindFieldByNumber(HelloRequest.NameFieldNumber) })) 1406var 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 (9)
GenericHost\GenericWebHostBuilder.cs (1)
129var exceptions = new List<Exception>();
Internal\HttpMetricsTagsFeature.cs (1)
13public List<KeyValuePair<string, object?>> TagsList { get; } = new List<KeyValuePair<string, object?>>();
Server\Features\ServerAddressesFeature.cs (1)
14public ICollection<string> Addresses { get; } = new List<string>();
src\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\StackTrace\StackFrame\StackTraceHelper.cs (1)
39var frames = new List<StackFrameInfo>(stackFrames.Length);
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
168patterns ??= new();
WebHostBuilder.cs (1)
225var exceptions = new List<Exception>();
Microsoft.AspNetCore.Hosting.Tests (11)
GenericWebHostBuilderTests.cs (1)
222public ICollection<string> Addresses { get; } = new List<string>();
HostingApplicationDiagnosticsTests.cs (3)
1089var tags = new List<KeyValuePair<string, object>>(); 1131var tags = new List<KeyValuePair<string, object>>(); 1324public List<object> Scopes { get; set; } = new List<object>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public 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)
968var disposables = new List<DisposableService>(); 1611private readonly List<IServiceProvider> _serviceProviders = new List<IServiceProvider>();
WebHostTests.AsyncDisposable.cs (1)
48public List<AsyncDisposableServiceProvider> Providers { get; } = new List<AsyncDisposableServiceProvider>();
WebHostTests.cs (1)
1236public IList<StartInstance> StartInstances { get; } = new List<StartInstance>();
Microsoft.AspNetCore.Html.Abstractions (2)
HtmlContentBuilder.cs (2)
19: this(new List<object>()) 28: this(new List<object>(capacity))
Microsoft.AspNetCore.Html.Abstractions.Tests (1)
HtmlContentBuilderExtensionsTest.cs (1)
363public List<IHtmlContent> Entries { get; } = new List<IHtmlContent>();
Microsoft.AspNetCore.Http (8)
Builder\ApplicationBuilder.cs (3)
23private readonly List<Func<RequestDelegate, RequestDelegate>> _components = new(); 54_descriptions = new(); 67_descriptions = new();
Features\QueryFeature.cs (1)
167var list = new List<string>();
Features\RequestCookiesFeature.cs (1)
83var headers = new List<string>(_parsedValues.Count);
FormFileCollection.cs (1)
31var files = new List<IFormFile>();
Internal\ResponseCookies.cs (1)
149var newValues = new List<string>();
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
Microsoft.AspNetCore.Http.Abstractions (8)
CookieBuilder.cs (1)
89get => _extensions ??= new List<string>();
Extensions\EndpointBuilder.cs (2)
18public IList<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>> FilterFactories => _filterFactories ??= new(); 33public IList<object> Metadata { get; } = new List<object>();
Extensions\UseMiddlewareExtensions.cs (1)
248var parameterTypeExpression = new List<Expression>() { providerArg };
Routing\EndpointMetadataCollection.cs (1)
119matches ??= new List<T>();
src\Shared\PropertyHelper\PropertyHelper.cs (2)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>();
WebSocketManager.cs (1)
63public IList<string> WebSocketRequestedProtocols => new List<string>(_manager.WebSocketRequestedProtocols);
Microsoft.AspNetCore.Http.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 (10)
ConnectionEndpointRouteBuilderExtensions.cs (1)
95var 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>();
Internal\HttpConnectionManager.cs (1)
190var tasks = new List<Task>(_connections.Count);
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 (7)
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\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
src\Shared\Metrics\TestMeterFactory.cs (1)
13public 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 (25)
QueryBuilder.cs (2)
25_params = new List<KeyValuePair<string, string>>(); 34_params = new List<KeyValuePair<string, string>>(parameters);
RequestDelegateFactory.cs (3)
311return new List<object>(metadata); 659factoryContext.Parameters = new List<ParameterInfo>(parameters); 1614var bindings = new List<MemberBinding>(properties.Length);
RequestDelegateFactoryContext.cs (4)
39public List<ParameterExpression> ExtraLocals { get; } = new(); 40public List<Expression> ParamCheckExpressions { get; } = new(); 41public List<Func<HttpContext, ValueTask<object?>>> ParameterBinders { get; } = new(); 62public List<ParameterInfo> Parameters { get; set; } = new();
src\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>();
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\Shared\PropertyAsParameterInfo.cs (2)
91List<ParameterInfo> list = new(parameters.Length); 180var attributes = new List<CustomAttributeData>(
TagsAttribute.cs (1)
28Tags = new List<string>(tags);
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>>() 1351return new List<object[]> 1472return new List<object[]> 1526return new List<object[]> 1563return new List<object?[]> 1744return new List<object?[]> 1915return new List<object?[]> 2196EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2239EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2311EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2406EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2440EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2525EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 2588var options = new RequestDelegateFactoryOptions { EndpointBuilder = CreateEndpointBuilder(new List<object> { customMetadata }) }; 2703EndpointBuilder = CreateEndpointBuilder(new List<object> 2726EndpointBuilder = CreateEndpointBuilder(new List<object> 2749EndpointBuilder = CreateEndpointBuilder(new List<object> 2772EndpointBuilder = CreateEndpointBuilder(new List<object> 2795EndpointBuilder = CreateEndpointBuilder(new List<object> 2816EndpointBuilder = CreateEndpointBuilder(new List<object> 2837EndpointBuilder = CreateEndpointBuilder(new List<object> 2902var metadataResult = new RequestDelegateMetadataResult { EndpointMetadata = new List<object>() }; 3082EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>() 3125EndpointBuilder = 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 (2)
CookieOptions.cs (2)
48_extensions = new List<string>(options._extensions); 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)
493var propertiesWithParameterInfo = new List<ConstructorParameter>();
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (1)
300var potentialImplicitBodyParameters = new List<EndpointParameter>();
Microsoft.AspNetCore.Http.Results.Tests (46)
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>();
JsonResultTests.cs (1)
323var 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 (5)
ForwardedHeadersMiddleware.cs (1)
77var allowedHosts = new List<StringSegment>();
ForwardedHeadersOptions.cs (4)
83public IList<IPAddress> KnownProxies { get; } = new List<IPAddress>() { IPAddress.IPv6Loopback }; 90public IList<AspNetIPNetwork> KnownNetworks { get; } = new List<AspNetIPNetwork>() { new(IPAddress.Loopback, 8) }; 95public IList<IPNetwork> KnownIPNetworks { get; } = new List<IPNetwork>() { new(IPAddress.Loopback, 8) }; 111public 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)
210claims = new List<Claim>(); 249additionalClaims = new List<Claim>(); 839var claims = new List<Claim>
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
UserStore.cs (1)
666return new List<TUser>();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (10)
src\Identity\test\Shared\MockHelpers.cs (4)
43var roles = new List<IRoleValidator<TRole>>(); 56var userValidators = new List<IUserValidator<TUser>>(); 59var pwdValidators = new List<PasswordValidator<TUser>>(); 80var roles = new List<IRoleValidator<TRole>>();
src\Identity\test\Shared\PocoModel\PocoRole.cs (1)
59public virtual ICollection<PocoRoleClaim<TKey>> Claims { get; private set; } = new List<PocoRoleClaim<TKey>>();
src\Identity\test\Shared\PocoModel\PocoUser.cs (5)
136public virtual ICollection<PocoUserRole<TKey>> Roles { get; private set; } = new List<PocoUserRole<TKey>>(); 140public virtual ICollection<PocoUserClaim<TKey>> Claims { get; private set; } = new List<PocoUserClaim<TKey>>(); 144public virtual ICollection<PocoUserLogin<TKey>> Logins { get; private set; } = new List<PocoUserLogin<TKey>>(); 148public virtual ICollection<PocoUserToken<TKey>> Tokens { get; private set; } = new List<PocoUserToken<TKey>>(); 152public virtual ICollection<PocoUserPasskey<TKey>> Passkeys { get; private set; } = new List<PocoUserPasskey<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 (13)
InMemoryStore.cs (2)
42IList<string> roles = new List<string>(); 65return Task.FromResult<IList<TUser>>(new List<TUser>());
InMemoryUserStore.cs (1)
419var updatedCodes = new List<string>(splitCodes.Where(s => s != code));
src\Identity\test\Shared\MockHelpers.cs (4)
43var roles = new List<IRoleValidator<TRole>>(); 56var userValidators = new List<IUserValidator<TUser>>(); 59var pwdValidators = new List<PasswordValidator<TUser>>(); 80var roles = new List<IRoleValidator<TRole>>();
src\Identity\test\Shared\PocoModel\PocoRole.cs (1)
59public virtual ICollection<PocoRoleClaim<TKey>> Claims { get; private set; } = new List<PocoRoleClaim<TKey>>();
src\Identity\test\Shared\PocoModel\PocoUser.cs (5)
136public virtual ICollection<PocoUserRole<TKey>> Roles { get; private set; } = new List<PocoUserRole<TKey>>(); 140public virtual ICollection<PocoUserClaim<TKey>> Claims { get; private set; } = new List<PocoUserClaim<TKey>>(); 144public virtual ICollection<PocoUserLogin<TKey>> Logins { get; private set; } = new List<PocoUserLogin<TKey>>(); 148public virtual ICollection<PocoUserToken<TKey>> Tokens { get; private set; } = new List<PocoUserToken<TKey>>(); 152public virtual ICollection<PocoUserPasskey<TKey>> Passkeys { get; private set; } = new List<PocoUserPasskey<TKey>>();
Microsoft.AspNetCore.Identity.Specification.Tests (4)
IdentitySpecificationTestBase.cs (2)
571var roleNameList = new List<string>(); 600var roles = new List<TRole>(count);
TestLogger.cs (1)
28public IList<string> LogMessages { get; } = new List<string>();
UserManagerSpecificationTests.cs (1)
1944var users = new List<TUser>(count);
Microsoft.AspNetCore.Identity.Test (22)
IdentityUIScriptsTest.cs (2)
108var scriptTags = new List<ScriptTag>(); 134var scriptTags = new List<ScriptTag>();
PasswordValidatorTest.cs (1)
147var errors = new List<string>();
SignInManagerTest.cs (3)
320IList<string> providers = new List<string>(); 362IList<string> providers = new List<string>(); 1118IList<string> providers = new List<string>();
src\Identity\test\Shared\MockHelpers.cs (4)
43var roles = new List<IRoleValidator<TRole>>(); 56var userValidators = new List<IUserValidator<TUser>>(); 59var pwdValidators = new List<PasswordValidator<TUser>>(); 80var roles = new List<IRoleValidator<TRole>>();
src\Identity\test\Shared\PocoModel\PocoRole.cs (1)
59public virtual ICollection<PocoRoleClaim<TKey>> Claims { get; private set; } = new List<PocoRoleClaim<TKey>>();
src\Identity\test\Shared\PocoModel\PocoUser.cs (5)
136public virtual ICollection<PocoUserRole<TKey>> Roles { get; private set; } = new List<PocoUserRole<TKey>>(); 140public virtual ICollection<PocoUserClaim<TKey>> Claims { get; private set; } = new List<PocoUserClaim<TKey>>(); 144public virtual ICollection<PocoUserLogin<TKey>> Logins { get; private set; } = new List<PocoUserLogin<TKey>>(); 148public virtual ICollection<PocoUserToken<TKey>> Tokens { get; private set; } = new List<PocoUserToken<TKey>>(); 152public virtual ICollection<PocoUserPasskey<TKey>> Passkeys { get; private set; } = new List<PocoUserPasskey<TKey>>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
UserManagerTest.cs (5)
1570return Task.FromResult<IList<Claim>>(new List<Claim>()); 1660return Task.FromResult<IList<UserLoginInfo>>(new List<UserLoginInfo>()); 1749return Task.FromResult<IList<string>>(new List<string>()); 1799return Task.FromResult<IList<PocoUser>>(new List<PocoUser>()); 1804return 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)
212var allOps = new List<Operation>(Operations?.Count ?? 0);
JsonPatchDocumentOfT.cs (2)
648var allOps = new List<Operation>(Operations?.Count ?? 0); 699var listOfSegments = new List<string>();
Microsoft.AspNetCore.JsonPatch.SystemTextJson (4)
Internal\ParsedPath.cs (1)
39var strings = new List<string>();
JsonPatchDocument.cs (1)
205var allOps = new List<Operation>(Operations?.Count ?? 0);
JsonPatchDocumentOfT.cs (2)
641var allOps = new List<Operation>(Operations?.Count ?? 0); 690var listOfSegments = new List<string>();
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (78)
Adapters\AdapterFactoryTests.cs (1)
21IAdapter adapter = factory.Create(new List<string>());
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)
299var value = new List<object>()
Internal\ListAdapterTest.cs (44)
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 } 309var targetObject = new List<int>(input); 328var targetObject = new List<int>(input); 337Assert.Equal(new List<int>(input), targetObject); 348var targetObject = new List<int>(input); 367var targetObject = new List<int>(input); 375Assert.Equal(new List<int>(expected), targetObject); 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 }; 454var targetObject = new List<int>() { 10, 20 }; 470var targetObject = new List<int>() { 10, 20 }; 487var 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>();
JsonPatchDocumentTest.cs (2)
88public List<Employee> Employees { get; } = new(); 219var getTestObject = () => new SimpleObject() { SimpleObjectList = new() };
TestObjectModels\SimpleObjectWithNestedObject.cs (1)
27SimpleObjectList = new List<SimpleObject>();
Microsoft.AspNetCore.JsonPatch.Tests (81)
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 (44)
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 } 309var targetObject = new List<int>(input); 328var targetObject = new List<int>(input); 337Assert.Equal(new List<int>(input), targetObject); 348var targetObject = new List<int>(input); 367var targetObject = new List<int>(input); 375Assert.Equal(new List<int>(expected), targetObject); 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 (9)
ProviderCultureResult.cs (4)
19: this(new List<StringSegment> { culture }, new List<StringSegment> { culture }) 30: this(new List<StringSegment> { culture }, new List<StringSegment> { uiCulture })
RequestLocalizationOptions.cs (5)
22RequestCultureProviders = new List<IRequestCultureProvider> 97public IList<CultureInfo>? SupportedCultures { get; set; } = new List<CultureInfo> { CultureInfo.CurrentCulture }; 104public IList<CultureInfo>? SupportedUICultures { get; set; } = new List<CultureInfo> { CultureInfo.CurrentUICulture }; 125var supportedCultures = new List<CultureInfo>(cultures.Length); 144var supportedUICultures = new List<CultureInfo>(uiCultures.Length);
Microsoft.AspNetCore.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 (10)
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 (2)
904ChildNodes = new List<ModelStateNode>(1); 1053_nodes = new List<ModelStateNode> { _rootNode };
ModelBinding\ValueProviderFactoryContext.cs (1)
32public IList<IValueProvider> ValueProviders { get; } = new List<IValueProvider>();
Microsoft.AspNetCore.Mvc.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 (10)
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>(); 358var constraints = new List<IRouteConstraint>(); 404var segments = new List<string>(); 439var results = new List<ApiRequestFormat>();
EndpointMetadataApiDescriptionProvider.cs (2)
226var constraints = new List<IRouteConstraint>(); 519actionDescriptor.EndpointMetadata = new List<object>(endpointMetadata);
src\Shared\PropertyAsParameterInfo.cs (2)
91List<ParameterInfo> list = new(parameters.Length); 180var attributes = new List<CustomAttributeData>(
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (29)
ApiResponseTypeProviderTest.cs (1)
867FilterDescriptors = new List<FilterDescriptor>(),
DefaultApiDescriptionProviderTest.cs (24)
125action.EndpointMetadata = new List<object>() { new EndpointGroupNameAttribute("Customers") }; 140action.EndpointMetadata = new List<object>() { new EndpointGroupNameAttribute("Customers") }; 170action.ActionConstraints = new List<IActionConstraintMetadata>() 558action.EndpointMetadata = new List<object>() { new ProducesResponseTypeMetadata(200, typeof(Product)) }; 577action.EndpointMetadata = new List<object>() { new ProducesResponseTypeMetadata(200, typeof(Product)) }; 578action.FilterDescriptors = new List<FilterDescriptor>{ 669var filterDescriptors = new List<FilterDescriptor>() 766var filterDescriptors = new List<FilterDescriptor>() 873action.FilterDescriptors = new List<FilterDescriptor>() 943action.FilterDescriptors = new List<FilterDescriptor>() 1013action.FilterDescriptors = new List<FilterDescriptor>() 1104action.FilterDescriptors = new List<FilterDescriptor> 1143action.FilterDescriptors = new List<FilterDescriptor> 1187action.FilterDescriptors = new List<FilterDescriptor> 1211action.FilterDescriptors = new List<FilterDescriptor> 1276action.FilterDescriptors = new List<FilterDescriptor> 1297action.EndpointMetadata = new List<object>() { new XmlOnlyMetadata() }; 1316action.FilterDescriptors = new List<FilterDescriptor> 2305var formatters = new List<MockInputFormatter>() 2323var formatters = new List<MockOutputFormatter>() 2350action.BoundProperties = new List<ParameterDescriptor>(); 2373action.Parameters = new List<ParameterDescriptor>(); 2856public List<Type> SupportedTypes { get; } = new List<Type>(); 2884public List<Type> SupportedTypes { get; } = new List<Type>();
EndpointMetadataApiDescriptionProviderTest.cs (4)
378() => new List<TimeSpan> { new() }); 397() => TypedResults.Ok(new List<TimeSpan> { new() })); 1794var metadataItems = new List<object>(requestDelegateResult.EndpointMetadata) { methodInfo, httpMethodMetadata }; 1863DataSources = new List<EndpointDataSource>();
Microsoft.AspNetCore.Mvc.Core (123)
ActionConstraints\ActionConstraintCache.cs (2)
59var items = new List<ActionConstraintItem>(action.ActionConstraints.Count); 102var items = new List<ActionConstraintItem>(entry.Items!.Count);
ActionConstraints\HttpMethodActionConstraint.cs (1)
35var methods = new List<string>();
ApplicationModels\ActionAttributeRouteModel.cs (1)
54var actionConstraints = new List<IActionConstraintMetadata>();
ApplicationModels\ActionModel.cs (8)
35Attributes = new List<object>(attributes); 36Filters = new List<IFilterMetadata>(); 37Parameters = new List<ParameterModel>(); 40Selectors = new List<SelectorModel>(); 59Attributes = new List<object>(other.Attributes); 60Filters = new List<IFilterMetadata>(other.Filters); 66Parameters = new List<ParameterModel>(other.Parameters.Select(p => new ParameterModel(p) { Action = this })); 67Selectors = new List<SelectorModel>(other.Selectors.Select(s => new SelectorModel(s)));
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
23ActionModelConventions = new List<IActionModelConvention>()
ApplicationModels\ApplicationModel.cs (2)
21Controllers = new List<ControllerModel>(); 22Filters = new List<IFilterMetadata>();
ApplicationModels\ApplicationModelFactory.cs (6)
58var results = new List<TResult>(); 63var routeTemplateErrors = new List<string>(); 180actions = new List<(ActionModel, SelectorModel)>(); 200actions = new List<(ActionModel, SelectorModel)>(); 221var namedRouteErrors = new List<string>(); 297var actionDescriptions = new List<string>(actions.Count);
ApplicationModels\ControllerActionDescriptorBuilder.cs (3)
64var parameterDescriptors = new List<ParameterDescriptor>(action.Parameters.Count); 185actionDescriptor.ActionConstraints = new List<IActionConstraintMetadata>(selectorModel.ActionConstraints); 193actionDescriptor.EndpointMetadata = new List<object>(selectorModel.EndpointMetadata);
ApplicationModels\ControllerModel.cs (10)
33Actions = new List<ActionModel>(); 35Attributes = new List<object>(attributes); 36ControllerProperties = new List<PropertyModel>(); 37Filters = new List<IFilterMetadata>(); 40Selectors = new List<SelectorModel>(); 58Attributes = new List<object>(other.Attributes); 59Filters = new List<IFilterMetadata>(other.Filters); 64Actions = new List<ActionModel>(other.Actions.Select(a => new ActionModel(a) { Controller = this })); 67new List<PropertyModel>(other.ControllerProperties.Select(p => new PropertyModel(p) { Controller = this })); 68Selectors = new List<SelectorModel>(other.Selectors.Select(s => new SelectorModel(s)));
ApplicationModels\DefaultApplicationModelProvider.cs (6)
143var filteredAttributes = new List<object>(); 337var applicableAttributes = new List<object>(routeAttributes.Length); 531var routeProviders = new List<IRouteTemplateProvider>(); 576var selectorModels = new List<SelectorModel>(); 588var filteredAttributes = new List<object>(); 624var filteredAttributes = new List<object>();
ApplicationModels\ParameterModelBase.cs (2)
26Attributes = new List<object>(attributes ?? throw new ArgumentNullException(nameof(attributes))); 40Attributes = new List<object>(other.Attributes);
ApplicationModels\SelectorModel.cs (4)
18ActionConstraints = new List<IActionConstraintMetadata>(); 19EndpointMetadata = new List<object>(); 30ActionConstraints = new List<IActionConstraintMetadata>(other.ActionConstraints); 31EndpointMetadata = new List<object>(other.EndpointMetadata);
ApplicationParts\ApplicationPartManager.cs (2)
18new List<IApplicationFeatureProvider>(); 29public IList<ApplicationPart> ApplicationParts { get; } = new List<ApplicationPart>();
ApplicationParts\RelatedAssemblyAttribute.cs (1)
79var relatedAssemblies = new List<Assembly>();
BindAttribute.cs (1)
26var items = new List<string>(include.Length);
Builder\MvcApplicationBuilderExtensions.cs (1)
96Routes = new List<IRouter>();
ConsumesAttribute.cs (3)
99readonly List<string> _contentTypes = new(); 238var completeArgs = new List<string>(args.Length + 1); 260var allContentTypes = new List<string>()
ControllerContext.cs (1)
78_valueProviderFactories = new List<IValueProviderFactory>();
Controllers\ControllerFeature.cs (1)
21public IList<TypeInfo> Controllers { get; } = new List<TypeInfo>();
Filters\FilterFactory.cs (2)
32var allFilterItems = new List<FilterItem>(staticFilterItems); 76var filterItems = new List<FilterItem>(cachedFilterItems.Length);
Formatters\AcceptHeaderParser.cs (1)
13var parsedValues = new List<MediaTypeSegmentWithQuality>();
Formatters\InputFormatter.cs (1)
156mediaTypes = new List<string>(SupportedMediaTypes.Count);
Formatters\OutputFormatter.cs (2)
67mediaTypes = new List<string>(SupportedMediaTypes.Count); 81mediaTypes = new List<string>(SupportedMediaTypes.Count);
Formatters\TextInputFormatter.cs (1)
32public IList<Encoding> SupportedEncodings { get; } = new List<Encoding>();
Formatters\TextOutputFormatter.cs (2)
25SupportedEncodings = new List<Encoding>(); 242var sorted = new List<StringWithQualityHeaderValue>();
Infrastructure\ActionSelectionTable.cs (1)
141entries = new List<T>();
Infrastructure\ActionSelector.cs (4)
116var candidates = new List<ActionSelectorCandidate>(actionsCount); 132results = new List<ActionDescriptor>(matchesCount); 179var actionsWithConstraint = new List<ActionSelectorCandidate>(); 180var actionsWithoutConstraint = new List<ActionSelectorCandidate>();
Infrastructure\AsyncEnumerableReader.cs (1)
82var result = new List<T>();
Infrastructure\CopyOnWriteList.cs (1)
30_copy = new List<T>(_source);
Infrastructure\DefaultOutputFormatterSelector.cs (1)
151var result = new List<MediaTypeSegmentWithQuality>();
Infrastructure\ObjectResultExecutor.cs (1)
164var considered = new List<string?>(contentTypes);
ModelBinding\Binders\CollectionModelBinder.cs (3)
237return new List<TElement?>(); 267var boundCollection = new List<TElement?>(); 344var boundCollection = new List<TElement?>();
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
64public ICollection<string> Keys => new List<string>();
ModelBinding\Binders\FormFileModelBinder.cs (2)
50postedFiles = new List<IFormFile>(); 195var files = new List<IFormFile>();
ModelBinding\CompositeValueProvider.cs (2)
182var filteredValueProviders = new List<IValueProvider>(); 229var filteredValueProviders = new List<IValueProvider>();
ModelBinding\EmptyModelMetadataProvider.cs (1)
21new DefaultCompositeMetadataDetailsProvider(new List<IMetadataDetailsProvider>()),
ModelBinding\FormFileValueProvider.cs (1)
43var fileNames = new List<string>();
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
337var propertyEntries = new List<DefaultMetadataDetails>(propertyHelpers.Length);
ModelBinding\Metadata\ValidationMetadata.cs (1)
44public IList<object> ValidatorMetadata { get; } = new List<object>();
ModelBinding\ModelBindingHelper.cs (2)
583return capacity.HasValue ? new List<T>(capacity.Value) : new List<T>();
ModelBinding\Validation\ClientValidatorCache.cs (2)
41var items = new List<ClientValidatorItem>(metadata.ValidatorMetadata.Count); 85var items = new List<ClientValidatorItem>(entry.Items.Count);
ModelBinding\Validation\CompositeClientModelValidatorProvider.cs (1)
23ValidatorProviders = new List<IClientModelValidatorProvider>(providers);
ModelBinding\Validation\ValidationStack.cs (1)
20internal List<object> List { get; } = new List<object>();
ModelBinding\Validation\ValidationVisitor.cs (1)
223var results = new List<ModelValidationResult>();
ModelBinding\Validation\ValidatorCache.cs (2)
31var items = new List<ValidatorItem>(metadata.ValidatorMetadata.Count); 75var items = new List<ValidatorItem>(entry.Items.Count);
MvcCoreLoggerExtensions.cs (1)
265var filterList = new List<string>();
MvcOptions.cs (5)
41Conventions = new List<IApplicationModelConvention>(); 46ModelBinderProviders = new List<IModelBinderProvider>(); 48ModelMetadataDetailsProviders = new List<IMetadataDetailsProvider>(); 49ModelValidatorProviders = new List<IModelValidatorProvider>(); 50ValueProviderFactories = new List<IValueProviderFactory>();
ProducesAttribute.cs (1)
109var completeArgs = new List<string>(args.Length + 1);
ProducesResponseTypeAttribute.cs (1)
110var completeContentTypes = new List<string>(additionalContentTypes.Length + 1);
Routing\ActionConstraintMatcherPolicy.cs (3)
106var items = new List<(int index, ActionSelectorCandidate candidate)>(); 191var endpointsWithConstraint = new List<(int index, ActionSelectorCandidate candidate)>(); 192var endpointsWithoutConstraint = new List<(int index, ActionSelectorCandidate candidate)>();
Routing\ActionEndpointDataSourceBase.cs (2)
37Conventions = new List<Action<EndpointBuilder>>(); 38FinallyConventions = new List<Action<EndpointBuilder>>();
Routing\AttributeRoute.cs (2)
137var routeInfos = new List<RouteInfo>(); 138var errors = new List<RouteInfo>();
Routing\ControllerActionEndpointDataSource.cs (4)
32_routes = new List<ConventionalRouteEntry>(); 58var conventions = new List<Action<EndpointBuilder>>(); 59var finallyConventions = new List<Action<EndpointBuilder>>(); 73var endpoints = new List<Endpoint>();
Routing\ViewEnginePath.cs (1)
77var pathSegments = new List<StringSegment>();
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\Shared\PropertyHelper\PropertyHelper.cs (2)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>();
Microsoft.AspNetCore.Mvc.Core.Test (299)
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)
1273var 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 (5)
19var context = CreateFilterContext(new List<FilterItem>() 50var context = CreateFilterContext(new List<FilterItem>() 83var context = CreateFilterContext(new List<FilterItem>() 114var context = CreateFilterContext(new List<FilterItem>() 142actionContext.ActionDescriptor.FilterDescriptors = new List<FilterDescriptor>(
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\ActionSelectionTableTest.cs (1)
555var metadata = new List<object>(a.EndpointMetadata ?? Array.Empty<object>());
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>() 1560FilterDescriptors = new List<FilterDescriptor>(), 1561Parameters = new List<ParameterDescriptor>(), 1562BoundProperties = new List<ParameterDescriptor>(), 1610FilterDescriptors = new List<FilterDescriptor>(), 1611Parameters = new List<ParameterDescriptor>(), 1612BoundProperties = new List<ParameterDescriptor>(), 1652FilterDescriptors = new List<FilterDescriptor>(), 1653Parameters = new List<ParameterDescriptor>(), 1654BoundProperties = new List<ParameterDescriptor>(), 1692valueProviderFactories = 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 (2)
78var formatterList = new List<IInputFormatter> { formatter }; 137new List<IInputFormatter>(formatters),
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 (3)
DataAnnotationsMetadataProvider.cs (2)
175var groupedDisplayNamesAndValues = new List<KeyValuePair<EnumGroupAndName, string>>(); 305var attributes = new List<object>(contextAttributesCount);
DataAnnotationsModelValidator.cs (1)
99var validationResults = new List<ModelValidationResult>();
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (16)
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>
DataAnnotationsModelValidatorProviderTest.cs (1)
162var items = new List<ValidatorItem>(metadata.ValidatorMetadata.Count);
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)
156public IList<string> ConfigureWebHostCalled { get; private set; } = new List<string>();
XmlDataContractSerializerInputFormatterTest.cs (1)
90var expectedErrorMessages = new List<string>();
Microsoft.AspNetCore.Mvc.IntegrationTests (37)
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" };
ModelBindingTestHelper.cs (1)
40ValueProviderFactories = new List<IValueProviderFactory>(options.Value.ValueProviderFactories),
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 (11)
Compilation\ViewsFeature.cs (1)
14public IList<CompiledViewDescriptor> ViewDescriptors { get; } = new List<CompiledViewDescriptor>();
RazorView.cs (1)
201var renderedLayouts = new List<IRazorPage>();
RazorViewEngine.cs (2)
352var searchedLocations = new List<string>(); 429var viewStartPages = new List<ViewLocationCacheItem>();
RazorViewEngineOptions.cs (5)
14public IList<IViewLocationExpander> ViewLocationExpanders { get; } = new List<IViewLocationExpander>(); 39public IList<string> ViewLocationFormats { get; } = new List<string>(); 69public IList<string> AreaViewLocationFormats { get; } = new List<string>(); 100public IList<string> PageViewLocationFormats { get; } = new List<string>(); 135public IList<string> AreaPageViewLocationFormats { get; } = new List<string>();
TagHelperComponentManager.cs (1)
22Components = new List<ITagHelperComponent>(tagHelperComponents);
TagHelpers\TagHelperFeature.cs (1)
21public IList<TypeInfo> TagHelpers { get; } = new List<TypeInfo>();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (7)
CompilationFailedExceptionFactory.cs (2)
31var failures = new List<CompilationFailure>(); 57var failures = new List<CompilationFailure>();
MvcRazorRuntimeCompilationOptions.cs (2)
23public IList<IFileProvider> FileProviders { get; } = new List<IFileProvider>(); 32public IList<string> AdditionalReferencePaths { get; } = new List<string>();
RazorReferenceManager.cs (1)
58var referencePaths = new List<string>(_options.AdditionalReferencePaths.Count);
RuntimeViewCompiler.cs (2)
238IList<IChangeToken> expirationTokens = new List<IChangeToken> 283var expirationTokens = new List<IChangeToken>(checksums.Count);
Microsoft.AspNetCore.Mvc.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 (22)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
121var results = new List<PageBoundPropertyDescriptor>();
ApplicationModels\PageApplicationModel.cs (8)
41Filters = new List<IFilterMetadata>(); 45HandlerMethods = new List<PageHandlerModel>(); 46HandlerProperties = new List<PagePropertyModel>(); 48EndpointMetadata = new List<object>(ActionDescriptor.EndpointMetadata ?? Array.Empty<object>()); 64Filters = new List<IFilterMetadata>(other.Filters); 67HandlerMethods = new List<PageHandlerModel>(other.HandlerMethods.Select(m => new PageHandlerModel(m))); 68HandlerProperties = new List<PagePropertyModel>(other.HandlerProperties.Select(p => new PagePropertyModel(p))); 70EndpointMetadata = new List<object>(other.EndpointMetadata);
ApplicationModels\PageHandlerModel.cs (3)
28Parameters = new List<PageParameterModel>(); 48Attributes = new List<object>(other.Attributes); 52Parameters = new List<PageParameterModel>(other.Parameters.Select(p => new PageParameterModel(p) { Handler = this }));
ApplicationModels\PageRouteModel.cs (2)
38Selectors = new List<SelectorModel>(); 56Selectors = new List<SelectorModel>(other.Selectors.Select(m => new SelectorModel(m)));
ApplicationModels\PageRouteModelProviderContext.cs (1)
14public IList<PageRouteModel> RouteModels { get; } = new List<PageRouteModel>();
Infrastructure\DefaultPageHandlerMethodSelector.cs (2)
39ambiguousMatches = new List<HandlerMethodDescriptor> 67var candidates = new List<HandlerMethodDescriptor>();
Infrastructure\DefaultPageLoader.cs (1)
65var endpoints = new List<Endpoint>();
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
156var loadedEndpoints = new List<Endpoint>(endpoints);
Infrastructure\PageActionEndpointDataSource.cs (1)
52var endpoints = new List<Endpoint>();
Infrastructure\PageActionInvokerCache.cs (1)
115var viewStartFactories = new List<Func<IRazorPage>>();
PageContext.cs (1)
82_valueProviderFactories = new List<IValueProviderFactory>();
Microsoft.AspNetCore.Mvc.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>>(), 1588BoundProperties = new List<ParameterDescriptor>(), 1596Parameters = new List<HandlerParameterDescriptor>(), 1602Parameters = new List<HandlerParameterDescriptor>(), 1616BoundProperties = new List<ParameterDescriptor>(), 1624Parameters = new List<HandlerParameterDescriptor>(), 1630Parameters = new List<HandlerParameterDescriptor>(), 1644BoundProperties = new List<ParameterDescriptor>(), 1652Parameters = new List<HandlerParameterDescriptor>(), 1658Parameters = 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 (5)
Cache\CacheTagKey.cs (1)
277var result = new List<KeyValuePair<string, string>>();
GlobbingUrlBuilder.cs (4)
83var urls = new List<string>(1 + globbedUrls.Count) 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)
42private readonly List<HttpClient> _clients = new(); 43private readonly List<WebApplicationFactory<TEntryPoint>> _derivedFactories = new(); 498var testAssemblies = new List<Assembly>();
Microsoft.AspNetCore.Mvc.ViewFeatures (29)
AttributeDictionary.cs (2)
87_items = new List<KeyValuePair<string, string?>>(); 100_items = new List<KeyValuePair<string, string?>>();
Buffers\MemoryPoolViewBufferScope.cs (2)
43_leased = new List<ViewBufferValue[]>(1); 79_available = new List<ViewBufferValue[]>();
Buffers\PagedCharBuffer.cs (1)
21public List<char[]> Pages { get; } = new List<char[]>();
Buffers\ViewBuffer.cs (1)
161_multiplePages = new List<ViewBufferPage>(2);
DefaultDisplayTemplates.cs (1)
64return new List<SelectListItem>
Filters\SaveTempDataPropertyFilterBase.cs (2)
87var errorMessages = new List<string>(); 99results = new List<LifecycleProperty>();
Filters\ViewDataAttributePropertyProvider.cs (1)
26results = new List<LifecycleProperty>();
FormContext.cs (1)
78_endOfFormContent = new List<IHtmlContent>();
HtmlHelper.cs (1)
1381var selectList = new List<SelectListItem>();
Infrastructure\DefaultTempDataSerializer.cs (2)
93var array = new List<string>(arrayLength); 104var array = new List<int>(arrayLength);
MemberExpressionCacheKey.cs (1)
30var members = new List<MemberInfo>();
MvcViewOptions.cs (2)
39public IList<IViewEngine> ViewEngines { get; } = new List<IViewEngine>(); 45new List<IClientModelValidatorProvider>();
PartialViewResultExecutor.cs (1)
86var locations = new List<string>(originalResult.SearchedLocations);
Rendering\MultiSelectList.cs (3)
101_groups = new List<SelectListGroup>(); 160var listItems = new List<SelectListItem>(); 186var listItems = new List<SelectListItem>();
src\Shared\Components\ResourceCollectionResolver.cs (1)
34var resources = new List<ResourceAsset>();
ValidationHelpers.cs (1)
61var entries = new List<ModelStateEntry>();
ViewComponents\DefaultViewComponentSelector.cs (1)
92var matchedTypes = new List<string>();
ViewComponents\ViewComponentDescriptorCollection.cs (1)
20Items = new List<ViewComponentDescriptor>(items);
ViewComponents\ViewComponentFeature.cs (1)
21public IList<TypeInfo> ViewComponents { get; } = new List<TypeInfo>();
ViewEngines\CompositeViewEngine.cs (2)
66searchedList = new List<string>(searchedLocations); 111searchedList = new List<string>(searchedLocations);
ViewResultExecutor.cs (1)
87var locations = new List<string>(originalResult.SearchedLocations);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (90)
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 (4)
100selectList: new List<SelectListItem>(), 127selectList: new List<SelectListItem>(), 775metadataProvider.GetModelExplorerForType(typeof(List<string>), new List<string>(rawValue)); 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 (8)
Schemas\OpenApiJsonSchema.Helpers.cs (1)
31var values = new List<T>();
Services\OpenApiGenerator.cs (1)
367var openApiParameters = new List<IOpenApiParameter>();
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\Shared\PropertyAsParameterInfo.cs (2)
91List<ParameterInfo> list = new(parameters.Length); 180var attributes = new List<CustomAttributeData>(
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
177_completedSegments = new List<CompletedBuffer>(); 331_completedSegments ??= new List<CompletedBuffer>();
Microsoft.AspNetCore.OpenApi.SourceGenerators (6)
XmlCommentGenerator.Parser.cs (3)
61var comments = new List<(string, string)>(); 78var comments = new List<(string, string)>(); 118var comments = new List<(string, XmlComment?)>();
XmlComments\XmlComment.InheritDoc.cs (1)
97var result = new List<XNode>();
XmlComments\XmlParameterComment.cs (1)
19var result = new List<XmlParameterComment>();
XmlComments\XmlResponseComment.cs (1)
19var result = new List<XmlResponseComment>();
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (2)
SnapshotTestHelper.cs (2)
56var additionalTexts = new List<AdditionalText>(); 120var embeddedTexts = new List<EmbeddedText>();
Microsoft.AspNetCore.OpenApi.Tests (12)
Extensions\ApiDescriptionExtensionsTests.cs (1)
36public static IEnumerable<object[]> TestCases => new List<object[]>
Services\OpenApiDocumentServiceTestsBase.cs (2)
183DataSources = new List<EndpointDataSource>(); 207action.BoundProperties = new List<ParameterDescriptor>();
Services\OpenApiGeneratorTests.cs (1)
1037var metadataItems = new List<object>(attributes) { methodInfo, httpMethodMetadata };
Transformers\DocumentTransformerTests.cs (1)
287var transformerOrder = new List<int>();
Transformers\OperationTransformerTests.cs (1)
618var transformerOrder = new List<int>();
Transformers\SchemaTransformerTests.cs (6)
449builder.MapGet("/list", () => new List<int> { 1, 2, 3, 4 }); 527builder.MapGet("/list-of-todo", () => new List<Todo> { new Todo(1, "Item1", false, DateTime.Now) }); 528builder.MapGet("/list-of-int", () => new List<int> { 1, 2, 3, 4 }); 563builder.MapGet("/list", () => new List<Shape> { new Triangle { Hypotenuse = 12, Color = "blue", Sides = 3 }, new Square { Area = 24, Color = "red ", Sides = 4 } }); 647builder.MapGet("/list", () => new List<PolymorphicContainer>()); 903var transformerOrder = new List<int>();
Microsoft.AspNetCore.OutputCaching (9)
OutputCacheEntryFormatter.cs (1)
510var pairs = new List<KeyValuePair<string, int>>(arr.Length);
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 (8)
CachedResponseBodyTests.cs (7)
18var segments = new List<byte[]>(); 28var segments = new List<byte[]>(); 29var receivedSegments = new List<byte[]>(); 48var segments = new List<byte[]> 52var receivedSegments = new List<byte[]>(); 72var segments = new List<byte[]> 77var receivedSegments = new List<byte[]>();
TestUtils.cs (1)
174outputCachingOptions.BasePolicies = new();
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 (2)
DefaultCombinedLease.cs (2)
73exceptions ??= new List<Exception>(); 83exceptions ??= new List<Exception>(1);
Microsoft.AspNetCore.RateLimiting.Tests (5)
src\Shared\Metrics\TestMeterFactory.cs (1)
13public 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 (4)
TagHelpers\DefaultTagHelperContent.cs (1)
29_buffer = new List<object>();
TagHelpers\ReadOnlyTagHelperAttributeList.cs (2)
18: base(new List<TagHelperAttribute>()) 130matchedAttributes = new List<TagHelperAttribute>();
TagHelpers\TagHelperAttributeList.cs (1)
25: base(new List<TagHelperAttribute>(attributes))
Microsoft.AspNetCore.Razor.Runtime (3)
Hosting\RazorCompiledItemLoader.cs (1)
38var items = new List<RazorCompiledItem>();
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
63_tagHelpers = new List<ITagHelper>();
Runtime\TagHelpers\TagHelperScopeManager.cs (1)
112_executionContexts = new List<TagHelperExecutionContext>();
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Runtime\TagHelpers\TagHelperRunnerTest.cs (1)
93var processOrder = new List<int>();
Microsoft.AspNetCore.Razor.Test (5)
TagHelpers\DefaultTagHelperContentTest.cs (4)
108var items = new List<object>(); 134var items = new List<object>(); 157var items = new List<object>(); 184var items = new List<object>();
TagHelpers\ReadOnlyTagHelperAttributeListTest.cs (1)
729: base(new List<TagHelperAttribute>(attributes))
Microsoft.AspNetCore.ResponseCaching (1)
src\Shared\SegmentWriteStream.cs (1)
8private readonly List<byte[]> _segments = new();
Microsoft.AspNetCore.ResponseCaching.Tests (12)
CachedResponseBodyTests.cs (8)
18var segments = new List<byte[]>(); 27var segments = new List<byte[]>(); 36var segments = new List<byte[]>(); 37var receivedSegments = new List<byte[]>(); 54var segments = new List<byte[]> 58var receivedSegments = new List<byte[]>(); 77var segments = new List<byte[]> 82var receivedSegments = new List<byte[]>();
ResponseCachingMiddlewareTests.cs (4)
64Body = new CachedResponseBody(new List<byte[]>(0), 0) 92Body = new CachedResponseBody(new List<byte[]>(0), 0) 141Body = new CachedResponseBody(new List<byte[]>(0), 0) 165Body = new CachedResponseBody(new List<byte[]>(0), 0)
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 (83)
Builder\EndpointRouteBuilderExtensions.cs (1)
214new List<object>(options.EndpointBuilder.Metadata) :
CompositeEndpointDataSource.cs (6)
41_dataSources = new List<EndpointDataSource>(); 89var groupedEndpoints = new List<Endpoint>(); 121disposables ??= new List<IDisposable>(); 128disposables ??= new List<IDisposable>(); 249_changeTokenRegistrations = new(); 265var endpoints = new List<Endpoint>();
Constraints\HttpMethodRouteConstraint.cs (1)
24AllowedMethods = new List<string>(allowedMethods);
DecisionTree\DecisionTreeBuilder.cs (4)
76var itemDescriptors = new List<ItemDescriptor<TItem>>(itemCount); 107var matches = new List<TItem>(); 134branch = new List<ItemDescriptor<TItem>>(); 150var reducedCriteria = new List<DecisionCriterion<TItem>>();
DefaultEndpointDataSource.cs (1)
38_endpoints = new List<Endpoint>(endpoints);
DefaultEndpointRouteBuilder.cs (1)
13DataSources = new List<EndpointDataSource>();
DefaultLinkParser.cs (1)
94var constraintsForParameter = new List<IRouteConstraint>();
InlineRouteParameterParser.cs (1)
100var inlineConstraints = new List<InlineConstraint>();
Matching\AcceptsMatcherPolicy.cs (2)
166edges.Add(contentType, new List<Endpoint>()); 224edges.Add(AnyContentType, new List<Endpoint>()
Matching\CandidateSet.cs (1)
339var duplicates = new List<Endpoint>();
Matching\DefaultEndpointSelector.cs (1)
111var matches = new List<Endpoint>();
Matching\DfaMatcherBuilder.cs (15)
18private readonly List<RouteEndpoint> _endpoints = new List<RouteEndpoint>(); 53_slots = new List<KeyValuePair<string, object>>(); 54_captures = new List<(string parameterName, int segmentIndex, int slotIndex)>(); 55_complexSegments = new List<(RoutePatternPathSegment pathSegment, int segmentIndex)>(); 56_constraints = new List<KeyValuePair<string, IRouteConstraint>>(); 72var work = new List<DfaBuilderWorkerWorkItem>(_endpoints.Count); 83work.Add(new DfaBuilderWorkerWorkItem(endpoint, precedenceDigit, new List<DfaNode>() { root, })); 177_previousWork = new List<DfaBuilderWorkerWorkItem>(); 223nextParents = new List<DfaNode>(); 659endpointSelectorPolicies = new List<IEndpointSelectorPolicy>(); 889var work = new List<DfaNode>() { node, }; 899nextWork = new List<DfaNode>(); 955var nodeBuilderPolicies = new List<INodeBuilderPolicy>(); 956var endpointComparerPolicies = new List<IEndpointComparerPolicy>(); 957var endpointSelectorPolicies = new List<IEndpointSelectorPolicy>();
Matching\DfaNode.cs (2)
62Matches = new List<Endpoint>(); 72Matches = new List<Endpoint>(endpoints);
Matching\HostMatcherPolicy.cs (2)
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\DefaultRoutePatternTransformer.cs (3)
174updatedSegments = new List<RoutePatternPathSegment>(original.PathSegments); 175updatedParameters = new List<RoutePatternParameterPart>(original.Parameters); 230var updatedParts = new List<RoutePatternPart>(segment.Parts);
Patterns\RoutePatternFactory.cs (3)
482parameters = new List<RoutePatternParameterPart>(); 617parameterConstraints = new List<RoutePatternParameterPolicyReference>(parameter.ParameterPolicies.Count); 657var policyReferences = new List<RoutePatternParameterPolicyReference>();
Patterns\RoutePatternParser.cs (2)
32var segments = new List<RoutePatternPathSegment>(); 76var parts = new List<RoutePatternPart>();
RouteBuilder.cs (1)
47Routes = new List<IRouter>();
RouteCollection.cs (2)
19private readonly List<IRouter> _routes = new List<IRouter>(); 20private readonly List<IRouter> _unnamedRoutes = new List<IRouter>();
RouteConstraintBuilder.cs (1)
171list = new List<IRouteConstraint>();
RouteEndpointDataSource.cs (1)
23private readonly List<RouteEntry> _routeEntries = new();
RouteGroupBuilder.cs (4)
23private readonly List<EndpointDataSource> _dataSources = new(); 24private readonly List<Action<EndpointBuilder>> _conventions = new(); 25private readonly List<Action<EndpointBuilder>> _finallyConventions = new(); 109var groupedEndpoints = new List<Endpoint>();
RouteValuesAddressScheme.cs (2)
72var matchesWithRequiredValues = new List<OutboundMatch>(); 134matchResults = new List<OutboundMatchResult>();
src\Shared\PropertyHelper\PropertyHelper.cs (2)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>();
Template\DefaultTemplateBinderFactory.cs (1)
39var policies = new List<(string parameterName, IParameterPolicy policy)>();
Template\RouteTemplate.cs (3)
32Segments = new List<TemplateSegment>(other.PathSegments.Count); 38Parameters = new List<TemplatePart>(); 67Parameters = new List<TemplatePart>();
Template\TemplateBinder.cs (2)
141(constraintList ??= new()).Add((p.parameterName, routeConstraint)); 145(parameterTransformerList ??= new()).Add((p.parameterName, transformer));
Template\TemplateSegment.cs (2)
21Parts = new List<TemplatePart>(); 33Parts = new List<TemplatePart>(partCount);
Tree\LinkGenerationDecisionTree.cs (3)
31var attributedEntries = new List<OutboundMatch>(); 32_conventionalEntries = new List<OutboundMatch>(); 72var results = new List<OutboundMatchResult>();
Tree\TreeRouteBuilder.cs (2)
236public IList<InboundRouteEntry> InboundEntries { get; } = new List<InboundRouteEntry>(); 242public IList<OutboundRouteEntry> OutboundEntries { get; } = new List<OutboundRouteEntry>();
Tree\TreeRouter.cs (1)
90var outboundMatches = new List<OutboundMatch>();
Tree\UrlMatchingNode.cs (1)
30Matches = new List<InboundMatch>();
UriBuildingContext.cs (1)
32_buffer = new List<BufferValue>();
Microsoft.AspNetCore.Routing.Abstractions (5)
RouteData.cs (3)
40_routers = new List<IRouter>(other.Routers); 90_routers = new List<IRouter>(); 148routers = new List<IRouter>(count.Value);
src\Shared\PropertyHelper\PropertyHelper.cs (2)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 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 (12)
EndpointRoutingBenchmarkBase.cs (1)
112var endpointMetadata = new List<object>(metadata ?? Array.Empty<object>());
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)
13public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Routing.Tests (125)
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)
13public 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>();
Tree\TreeRouterTest.cs (3)
1748nestedRouters = new List<IRouter>(c.RouteData.Routers); 1785nestedRouters = new List<IRouter>(c.RouteData.Routers); 1829nestedRouters = new List<IRouter>(c.RouteData.Routers);
Microsoft.AspNetCore.Server.HttpSys (5)
AuthenticationManager.cs (1)
150IList<string> challenges = new List<string>();
RequestProcessing\RequestContext.FeatureCollection.cs (2)
72private List<Tuple<Func<object, Task>, object>>? _onStartingActions = new List<Tuple<Func<object, Task>, object>>(); 73private List<Tuple<Func<object, Task>, object>>? _onCompletedActions = new List<Tuple<Func<object, Task>, object>>();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_blockAccessExceptions = new List<Exception>();
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
ServerTests.cs (1)
264List<Task> requestTasks = new List<Task>();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
100ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http2 },
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
103var list = new List<Http2PeerSetting>(2);
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
RequestHeaderBenchmarks.cs (1)
125var result = new List<(string, string)>();
Microsoft.AspNetCore.Server.IIS (7)
Core\IISHttpContext.FeatureCollection.cs (1)
94MaybeExtra = new List<KeyValuePair<Type, object>>(2);
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_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>();
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
39var frames = new List<StackFrameInfo>(stackFrames.Length);
Microsoft.AspNetCore.Server.IntegrationTesting (7)
TestMatrix.cs (7)
11public IList<ServerType> Servers { get; set; } = new List<ServerType>(); 12public IList<string> Tfms { get; set; } = new List<string>(); 13public IList<ApplicationType> ApplicationTypes { get; set; } = new List<ApplicationType>(); 14public IList<RuntimeArchitecture> Architectures { get; set; } = new List<RuntimeArchitecture>(); 17public IList<HostingModel> HostingModels { get; set; } = new List<HostingModel>(); 19private IList<Tuple<Func<TestVariant, bool>, string>> Skips { get; } = new List<Tuple<Func<TestVariant, bool>, string>>(); 117var variants = new List<TestVariant>();
Microsoft.AspNetCore.Server.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 (41)
HttpsConfigurationService.cs (2)
153ApplicationProtocols = sslServerAuthenticationOptions.ApplicationProtocols ?? new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 }, 162ApplicationProtocols = new List<SslApplicationProtocol> { SslApplicationProtocol.Http3 },
Internal\ConfigurationReader.cs (1)
70var endpoints = new List<EndpointConfig>();
Internal\Http\Http1OutputProducer.cs (1)
743_completedSegments = new List<CompletedBuffer>();
Internal\Http\HttpProtocol.Generated.cs (1)
169MaybeExtra = new List<KeyValuePair<Type, object>>(2);
Internal\Http3\Http3PeerSettings.cs (1)
24var list = new List<Http3PeerSetting>(1);
Internal\Infrastructure\KestrelConnection.cs (1)
68_heartbeatHandlers = new List<(Action<object> handler, object state)>();
Internal\Infrastructure\KestrelConnectionOfT.cs (1)
105public List<KeyValuePair<string, object?>> TagsList { get; } = new List<KeyValuePair<string, object?>>();
Internal\Infrastructure\KestrelEventSource.cs (1)
41private readonly List<WeakReference<KestrelServerOptions>> _options = new();
Internal\Infrastructure\TransportConnectionManager.cs (2)
57var closeTasks = new List<Task>(); 74var abortTasks = new List<Task>();
Internal\Infrastructure\TransportManager.cs (2)
108var transportsToStop = new List<ActiveTransport>(); 121return StopTransportsAsync(new List<ActiveTransport>(_transports), cancellationToken);
Internal\KestrelServerImpl.cs (1)
366var configsToStop = new List<EndpointConfig>(endpointsToStop.Count);
Internal\ServerAddressesCollection.cs (2)
15private readonly List<string> _addresses = new List<string>(); 91return new List<string>(_addresses).GetEnumerator();
KestrelConfigurationLoader.cs (6)
75private IList<Action> EndpointsToAdd { get; } = new List<Action>(); 343var endpointsToStart = new List<ListenOptions>(); 344var endpointsToReuse = new List<ListenOptions>(); 394var matchingBoundEndpoints = new List<ListenOptions>(); 441var certificateConfigsToRemove = new List<CertificateConfig>(); 442var certificateConfigsToAdd = new List<CertificateConfig>();
KestrelServerOptions.cs (3)
74internal List<ListenOptions> CodeBackedListenOptions { get; } = new List<ListenOptions>(); 75internal List<ListenOptions> ConfigurationBackedListenOptions { get; } = new List<ListenOptions>(); 92internal List<ListenOptions> OptionsInUse { get; } = new List<ListenOptions>();
ListenOptions.cs (2)
21private readonly List<Func<ConnectionDelegate, ConnectionDelegate>> _middleware = new List<Func<ConnectionDelegate, ConnectionDelegate>>(); 22private readonly List<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>> _multiplexedMiddleware = new List<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>>();
LocalhostListenOptions.cs (1)
40var exceptions = new List<Exception>();
Middleware\HttpsConnectionMiddleware.cs (2)
372serverOptions.ApplicationProtocols = new List<SslApplicationProtocol>(); 558ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http3 },
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_blockAccessExceptions = new List<Exception>();
src\Shared\CertificateGeneration\CertificateManager.cs (3)
129var certificates = new List<X509Certificate2>(); 690var extensions = new List<X509Extension>(); 933var 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)
714var nssDbs = new List<string>(); 734var nssDbs = new List<NssDb>(); 893var certs = new List<FileInfo>();
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
103var list = new List<Http2PeerSetting>(2);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (55)
AddressBinderTests.cs (1)
324var 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)
33var 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)
966var segments = new List<byte[]>();
KestrelServerTests.cs (20)
323new List<IConnectionListenerFactory>(), 334new List<IConnectionListenerFactory>() { new ThrowingTransportFactory(), new MockTransportFactory() }, 348new List<IConnectionListenerFactory> { new NonBindableTransportFactory() }, 368new List<IConnectionListenerFactory> { transportFactory, new NonBindableTransportFactory() }, 389new List<IConnectionListenerFactory>(), 390new List<IMultiplexedConnectionListenerFactory> { new NonBindableMultiplexedTransportFactory() }); 413new List<IConnectionListenerFactory>(), 414new List<IMultiplexedConnectionListenerFactory> { transportFactory, new NonBindableMultiplexedTransportFactory() }); 439new List<IConnectionListenerFactory>() { mockTransportFactory }, 440new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 466new List<IConnectionListenerFactory>() { mockTransportFactory }, 467new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 497new List<IConnectionListenerFactory>() { mockTransportFactory }, 498new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 525new List<IConnectionListenerFactory>() { mockTransportFactory }, 526new List<IMultiplexedConnectionListenerFactory>() { mockMultiplexedTransportFactory }); 804var mockTransports = new List<Mock<IConnectionListener>>(); 942var mockTransports = new List<Mock<IConnectionListener>>(); 991public List<BindDetail> BoundEndPoints { get; } = new List<BindDetail>(); 1043public List<BindDetail> BoundEndPoints { get; } = new List<BindDetail>();
PinnedBlockMemoryPoolFactoryTests.cs (1)
73var blocks = new List<IMemoryOwner<byte>>();
PinnedBlockMemoryPoolTests.cs (5)
56var blocks = new List<IMemoryOwner<byte>>(); 102var blocks = new List<IMemoryOwner<byte>>(); 136var blocks = new List<IMemoryOwner<byte>>(); 180var blocks = new List<IMemoryOwner<byte>>(); 349var blocks = new List<IMemoryOwner<byte>>();
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.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
src\Shared\test\Shared.Tests\runtime\Http2\DynamicTableTest.cs (1)
181List<HeaderField> headers = new List<HeaderField>();
TlsListenerTests.cs (4)
273var clientHelloSegments = new List<byte[]> 291var clientHelloSegments = new List<byte[]>(); 610private static List<byte[]> _validCollection = new List<byte[]>() 617private static List<byte[]> _invalidCollection = new List<byte[]>()
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (5)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
1040public ICollection<KeyValuePair<string, object>> Tags { get; } = new List<KeyValuePair<string, object>>(); 1282_onClosed = new List<CloseAction>();
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
23public List<Type> IgnoredExceptions { get; } = new List<Type>();
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
108MaybeExtra = new List<KeyValuePair<Type, object>>(2);
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
108MaybeExtra = new List<KeyValuePair<Type, object>>(2);
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_blockAccessExceptions = new List<Exception>();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Internal\QuicStreamContext.FeatureCollection.cs (1)
111_onClosedRegistrations = new List<OnCloseRegistration>();
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
108MaybeExtra = new List<KeyValuePair<Type, object>>(2);
src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (1)
95MaybeExtra = new List<KeyValuePair<Type, object>>(2);
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
43_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\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
108MaybeExtra = new List<KeyValuePair<Type, object>>(2);
Microsoft.AspNetCore.Session (1)
DistributedSession.cs (1)
430public IEnumerable<string> Keys => new List<string>(_session.Keys);
Microsoft.AspNetCore.Shared.Tests (23)
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)
181List<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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\Shared\PropertyHelper\PropertyHelper.cs (2)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>();
src\Shared\SegmentWriteStream.cs (1)
8private readonly List<byte[]> _segments = new();
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (1)
103var list = new List<Http2PeerSetting>(2);
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
39var frames = new List<StackFrameInfo>(stackFrames.Length);
StackTraceHelperTest.cs (1)
156var expectedCallStack = new List<string>()
UrlDecoderTests.cs (1)
167return new List<object[]>()
Microsoft.AspNetCore.SignalR.Client.Core (4)
HubConnection.cs (2)
790streamIds = new List<string>(); 2050_invocationHandlers = new List<InvocationHandler>() { handler };
Internal\SerializedHubMessage.cs (2)
87var list = new List<SerializedMessage>(2); 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 (5)
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>>();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
Microsoft.AspNetCore.SignalR.Core (15)
DefaultHubLifetimeManager.cs (2)
123tasks = new List<Task>(); 168tasks = new List<Task>();
HubConnectionHandler.cs (2)
80hubFilters = new List<IHubFilter>(_hubOptions.HubFilters); 93hubFilters = new List<IHubFilter>(_globalHubOptions.HubFilters);
HubOptionsExtensions.cs (1)
26options.HubFilters = new List<IHubFilter>();
HubOptionsSetup.cs (2)
25private readonly List<string> _defaultProtocols = new List<string>(); 68options.SupportedProtocols = new List<string>(_defaultProtocols.Count);
HubOptionsSetup`T.cs (2)
32options.SupportedProtocols = new List<string>(_hubOptions.SupportedProtocols ?? Array.Empty<string>()); 46options.HubFilters = new List<IHubFilter>(_hubOptions.HubFilters);
Internal\HubMethodDescriptor.cs (2)
73StreamingParameters = new List<Type>(); 100KeyedServiceKeys ??= new List<(int, object?)>();
SerializedHubMessage.cs (2)
85var list = new List<SerializedMessage>(2); 120_cachedItems = new List<SerializedMessage>();
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
Microsoft.AspNetCore.SignalR.Microbenchmarks (15)
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>>();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
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 (11)
Internal\DefaultHubMessageSerializer.cs (2)
16_hubProtocols = new List<IHubProtocol>(supportedProtocols.Count); 29var list = new List<SerializedMessage>(_hubProtocols.Count);
RedisHubLifetimeManager.cs (7)
124var tasks = new List<Task>(); 245var publishTasks = new List<Task>(connectionIds.Count); 260var publishTasks = new List<Task>(groupNames.Count); 280var publishTasks = new List<Task>(userIds.Count); 461var tasks = new List<Task>(_connections.Count); 597var tasks = new List<Task>(subscriptions.Count); 623var tasks = new List<Task>(groupConnections.Count);
src\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>(); 5458var result = new List<T>(); 5472var 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)
618var 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 (3)
Development\StaticAssetDevelopmentRuntimeHandler.cs (2)
306var responseHeaders = new List<StaticAssetResponseHeader>(descriptor.ResponseHeaders); 334var propertiesList = new List<StaticAssetProperty>(descriptor.Properties);
StaticAssetEndpointDataSource.cs (1)
103var endpoints = new List<Endpoint>();
Microsoft.AspNetCore.StaticFiles (1)
DefaultFilesOptions.cs (1)
29DefaultFileNames = new List<string>
Microsoft.AspNetCore.TestHost (1)
WebSocketClient.cs (1)
33SubProtocols = new List<string>();
Microsoft.AspNetCore.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 (2)
KeyValueAccumulator.cs (1)
53var list = new List<string>(8);
PagedByteBuffer.cs (1)
19Pages = new List<byte[]>();
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
Microsoft.AspNetCore.WebUtilities.Tests (2)
HttpRequestStreamReaderTest.cs (1)
430var data = new List<byte>();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
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.Framework (26)
BinaryTranslator.cs (3)
335list = new List<string>(count); 352Translate(ref listAsInterface, objectTranslator, count => new List<T>(count)); 360Translate(ref listAsInterface, objectTranslator, valueFactory, count => new List<T>(count));
BuildCheck\BuildCheckEventArgs.cs (1)
83List<BuildCheckRuleTelemetryData> tracingData = new List<BuildCheckRuleTelemetryData>(count);
BuildEngineResult.cs (1)
38this.targetOutputsPerProject = new List<IDictionary<string, ITaskItem[]>>();
FileClassifier.cs (1)
244_knownImmutableDirectoriesSnapshot = new List<string>(_knownImmutableDirectories.Values);
NativeMethods.cs (1)
1447List<KeyValuePair<int, SafeProcessHandle>> myChildren = new List<KeyValuePair<int, SafeProcessHandle>>();
TaskParameterEventArgs.cs (1)
238reusableMetadataList = new List<KeyValuePair<string, string>>();
Telemetry\BuildTelemetry.cs (1)
177List<TelemetryItem> telemetryItems = new(8);
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.Tasks.CodeAnalysis (9)
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (1)
155var argumentList = new List<string>();
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (1)
91var mappedSourceRoots = new List<ITaskItem>();
src\Compilers\Core\MSBuildTask\Vbc.cs (2)
568var references = new List<ITaskItem>(this.References.Length); 569var links = new List<ITaskItem>(this.References.Length);
src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (1)
56var list = new List<string>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (9)
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (1)
155var argumentList = new List<string>();
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (1)
91var mappedSourceRoots = new List<ITaskItem>();
src\Compilers\Core\MSBuildTask\Vbc.cs (2)
568var references = new List<ITaskItem>(this.References.Length); 569var links = new List<ITaskItem>(this.References.Length);
src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (1)
56var list = new List<string>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
DotNetSdkTests.cs (1)
572List<string> foundConfigs = new List<string>();
TestUtilities\MockEngine.cs (1)
19public List<BuildMessageEventArgs> BuildMessages = new List<BuildMessageEventArgs>();
Microsoft.Cci.Extensions (16)
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 (5)
498List<string> contractSet = new List<string>(GetFilePathsAndAddResolvedDirectoriesToLibPaths(SplitPaths(unsplitContractSet))); 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.Properties.cs (1)
180var parameters = new List<IParameterDefinition>(accessor.Parameters);
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 (51)
AdditionalTextFile.cs (1)
39var diagnostics = new List<DiagnosticInfo>();
CodeGen\SwitchStringJumpTableEmitter.cs (1)
208bucket = new HashBucket();
CommandLine\AnalyzerConfigSet.cs (1)
60private readonly ObjectPool<List<Section>> _sectionKeyPool = new ObjectPool<List<Section>>(() => new List<Section>());
CommandLine\CommandLineArguments.cs (1)
405var resolved = new List<MetadataReference>();
CommandLine\CommandLineParser.cs (3)
593var splitList = new List<string>(); 674var arguments = new List<string>(); 721var newArgs = new List<string>();
CommandLine\CommonCompiler.cs (2)
234List<MetadataReference> resolved = new List<MetadataReference>(); 945var diagnosticInfos = new List<DiagnosticInfo>();
CommandLine\SarifV1ErrorLogger.cs (1)
288var list = new List<KeyValuePair<string, DiagnosticDescriptor>>(Count);
CommandLine\SarifV2ErrorLogger.cs (1)
500var list = new List<(int Index, DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)>(Count);
Compilation\Compilation.cs (1)
2062var 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 (2)
25: base(() => new List<T>(10), 10) 1028typeArguments = new List<ITypeSymbol>();
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
55private readonly List<(EntityHandle parentHandle, IEnumerator<ICustomAttribute> attributeEnumerator)> _deferredCustomAttributes = new(); 98_changedTypeDefs = new List<ITypeDefinition>(); 1502this.rows = new List<T>();
InternalUtilities\CommandLineUtilities.cs (1)
56var list = new List<string>();
InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
MetadataReader\MetadataHelpers.cs (3)
787var nestedTypes = new List<IGrouping<string, TypeDefinitionHandle>>(); 794var nestedNamespaces = new List<KeyValuePair<string, IEnumerable<IGrouping<string, TypeDefinitionHandle>>>>(); 870typesInLastChildNamespace = new List<IGrouping<string, TypeDefinitionHandle>>();
MetadataReader\PEAssembly.cs (1)
147keys = new List<ImmutableArray<byte>>();
MetadataReader\PEModule.cs (1)
2520result = new List<AttributeInfo>();
PEWriter\MetadataWriter.cs (4)
441private readonly List<IFileReference> _fileRefList = new List<IFileReference>(32); 448protected readonly List<MethodImplementation> methodImplList = new List<MethodImplementation>(); 563result = new List<IGenericTypeParameter>(); 4228_rows = new List<T>();
PEWriter\MetadataWriter.DynamicAnalysis.cs (2)
57_documentTable = new List<DocumentRow>(documentCountEstimate); 59_methodTable = new List<MethodRow>(methodCountEstimate);
PEWriter\NativeResourceWriter.cs (2)
129this.Entries = new List<object>(); 282byte[] data = new List<byte>(r.Data).ToArray();
ReferenceManager\CommonReferenceManager.Binding.cs (1)
724private static readonly ObjectPool<List<TAssemblySymbol?>> s_candidateReferencedSymbolsPool = new ObjectPool<List<TAssemblySymbol?>>(() => new List<TAssemblySymbol?>(capacity: 1024));
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
678referencesBySimpleName.Add(identity.Name, new List<ReferencedAssemblyIdentity> { referencedAssembly });
RuleSet\RuleSetProcessor.cs (1)
154var rules = new List<KeyValuePair<string, ReportDiagnostic>>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
Syntax\InternalSyntax\ChildSyntaxList.Reversed.cs (1)
35var result = new List<GreenNode>();
Syntax\InternalSyntax\SyntaxListPool.cs (1)
18private readonly List<SyntaxListBuilder> _allocated = new List<SyntaxListBuilder>();
Syntax\SeparatedSyntaxList.cs (1)
424var nodesToInsertWithSeparators = new List<SyntaxNodeOrToken>();
Syntax\SyntaxDiffer.cs (3)
22private readonly List<ChangeRecord> _changes = new List<ChangeRecord>(); 106var newSpans = new List<TextSpan>(); 741var textChanges = new List<ChangeRangeWithText>(changeRecords.Count);
Syntax\SyntaxNodeExtensions_Tracking.cs (1)
212list = new List<SyntaxNode>();
Text\ChangedText.cs (1)
225var list = new List<ImmutableArray<TextChangeRange>>();
Text\SourceText.cs (1)
909var textChanges = new List<TextChange>(ranges.Count);
Microsoft.CodeAnalysis.Analyzers (43)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (1)
181var diagnostics = new List<Diagnostic>();
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (2)
28var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>(); 92var updatedUnshippedText = new List<(DocumentId, SourceText)>();
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (1)
200var conditionalAccessMembers = new List<SyntaxNode>();
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
41var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var 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)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
Microsoft.CodeAnalysis.AnalyzerUtilities (31)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Microsoft.CodeAnalysis.BannedApiAnalyzers (39)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var 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)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
SymbolIsBannedAnalyzer.cs (1)
81var errors = new List<Diagnostic>();
Microsoft.CodeAnalysis.CodeStyle (29)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
63var removedNodes = new List<SyntaxNode> { paramNode };
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
105var removalList = new List<int>();
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
43var declarators = new List<TSymbolSyntax>();
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
172var 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)
299var 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)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
Microsoft.CodeAnalysis.Collections.Package (1)
Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
Microsoft.CodeAnalysis.CSharp (33)
Binder\Binder.cs (1)
925var 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)
56List<Diagnostic> diagnostics = new List<Diagnostic>(); 58List<string>? scriptArgs = IsScriptCommandLineParser ? new List<string>() : null; 59List<string>? responsePaths = IsScriptCommandLineParser ? new List<string>() : null; 103List<CommandLineResource> managedResources = new List<CommandLineResource>(); 104List<CommandLineSourceFile> sourceFiles = new List<CommandLineSourceFile>(); 105List<CommandLineSourceFile> additionalFiles = new List<CommandLineSourceFile>(); 107List<CommandLineSourceFile> embeddedFiles = new List<CommandLineSourceFile>(); 114List<CommandLineReference> metadataReferences = new List<CommandLineReference>(); 115List<CommandLineAnalyzerReference> analyzers = new List<CommandLineAnalyzerReference>(); 116List<string> libPaths = new List<string>(); 117List<string> sourcePaths = new List<string>(); 118List<string> keyFileSearchPaths = new List<string>(); 119List<string> usings = new List<string>(); 129List<string> features = new List<string>();
CommandLine\CSharpCompiler.cs (2)
98var diagnostics = new List<DiagnosticInfo>(); 181var fileDiagnostics = new List<DiagnosticInfo>();
FlowAnalysis\AlwaysAssignedWalker.cs (1)
51List<Symbol> result = new List<Symbol>();
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (3)
1043this.proxiedLabels = proxiedLabels = new List<LabelSymbol>(); 1121this.handlers = new List<BoundBlock>(); 1124_orderedHoistedLocals = new List<LocalSymbol>();
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
237_dispatches.Add(resumeLabel, new List<StateMachineState> { stateNumber }); 901oldDispatches.Add(dispatchLabel, new List<StateMachineState>(from kv in _dispatches.Values from n in kv orderby n select n));
Parser\AbstractLexer.cs (1)
110_errors = new List<SyntaxDiagnosticInfo>(8);
Symbols\ReferenceManager.cs (1)
421var newSymbols = new List<int>();
Symbols\Source\SourceNamedTypeSymbol.cs (2)
151var parameterBuilders1 = new List<List<TypeParameterBuilder>>(); 184var parameterBuilder = new List<TypeParameterBuilder>();
Symbols\SubstitutedNamedTypeSymbol.cs (1)
197return new List<string>(GetTypeMembersUnordered().Select(s => s.Name).Distinct());
Syntax\DirectiveTriviaSyntax.cs (1)
133var list = new List<DirectiveTriviaSyntax>();
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
181var list = new List<DirectiveTriviaSyntax>(32);
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
117var partsList = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
599var result = new List<IList<TSyntaxNode>>(); 601var currentGroup = new List<TSyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1001var 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\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
58var nodesFromDiagnostics = new List<( 70var references = new List<ExpressionSyntax>(diagnostic.AdditionalLocations.Count - 2);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
25var 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)
320var 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\QueryExpressionSyntaxExtensions.cs (2)
15var result = new List<SyntaxNode> 26var result = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
24var indices = new List<bool>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (7)
CommandLineTests.cs (6)
918var diags = new List<Diagnostic>(); 6487var diagnostics = new List<Diagnostic>(); 9498var args = new List<string>() { "/reportanalyzer", "/t:library", "/a:" + typeof(DoNothingGenerator).Assembly.Location, srcFile.Path }; 12421var list = new List<Tuple<string, DebugInformationFormat>>() 12446var list = new List<Tuple<string, OutputKind>>() 12466var list = new List<Tuple<string, Platform>>()
TouchedFileLoggingTests.cs (1)
220var writes = new List<string>();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (180)
Classification\SyntacticTaggerTests.cs (2)
55var callstacks = new List<string>(); 109var callstacks = new List<string>();
CodeActions\ApplyChangesOperationTests.cs (1)
233var refactorings = new List<CodeAction>();
CodeActions\InlineMethod\CSharpInlineMethodTests.cs (3)
1920var diagnostic = new List<DiagnosticResult>() 3562var diagnostic = new List<DiagnosticResult>() 3630var diagnostic = new List<DiagnosticResult>()
CodeActions\PreviewExceptionTests.cs (1)
92var codeActions = new List<CodeAction>();
CodeActions\PreviewTests.cs (1)
96var refactorings = new List<CodeAction>();
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
110var results = new List<Tuple<Solution, Solution>>();
CodeActions\SyncNamespace\SyncNamespaceTests_MoveFile.cs (10)
25var expectedFolders = new List<string[]>(); 51var expectedFolders = new List<string[]>(); 78var expectedFolders = new List<string[]> 109var expectedFolders = new List<string[]> 148var expectedFolders = new List<string[]> 182var expectedFolders = new List<string[]> 226var expectedFolders = new List<string[]> 274var expectedFolders = new List<string[]> 312var expectedFolders = new List<string[]> 349var 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 }; 501}).Select(tuple => new List<object>() { tuple })); 541=> CombineWithReferenceTypeData((new[] { "class", "interface", "abstract class" }).Select(kind => new List<object>() { kind })); 590}).Select(tuple => new List<object>() { tuple })); 637}).Select(tuple => new List<object>() { tuple })); 882var predefinedTypes = new List<(string vbType, string csType)> 2035var expectedFilters = new List<CompletionFilter>()
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (1)
1282var triggerInfos = new List<CompletionTrigger>
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (3)
146var exceptions = new List<Exception>(); 754var vsixAnalyzerReferences = new List<DiagnosticAnalyzer>(vsixAnalyzers.CastArray<DiagnosticAnalyzer>()); 764var nugetAnalyzerReferences = new List<DiagnosticAnalyzer>();
Intents\IntentTestsBase.cs (1)
66var actualDocumentTexts = new List<string>();
Interactive\NavigateTo\InteractiveNavigateToTests.cs (8)
145var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 383var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 411var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 502var expecteditems = new List<NavigateToItem> 571var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2, expecteditem3 }; 587var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2 }; 601var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2 }; 633var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2 };
SignatureHelp\AttributeSignatureHelpProviderTests.cs (34)
29var expectedOrderedItems = new List<SignatureHelpTestItem> 49var expectedOrderedItems = new List<SignatureHelpTestItem> 71var expectedOrderedItems = new List<SignatureHelpTestItem> 92var expectedOrderedItems = new List<SignatureHelpTestItem> 113var expectedOrderedItems = new List<SignatureHelpTestItem> 134var expectedOrderedItems = new List<SignatureHelpTestItem> 160var expectedOrderedItems = new List<SignatureHelpTestItem> 181var expectedOrderedItems = new List<SignatureHelpTestItem> 207var expectedOrderedItems = new List<SignatureHelpTestItem> 298var expectedOrderedItems = new List<SignatureHelpTestItem> 319var expectedOrderedItems = new List<SignatureHelpTestItem> 340var expectedOrderedItems = new List<SignatureHelpTestItem> 361var expectedOrderedItems = new List<SignatureHelpTestItem> 387var expectedOrderedItems = new List<SignatureHelpTestItem> 409var expectedOrderedItems = new List<SignatureHelpTestItem> 430var expectedOrderedItems = new List<SignatureHelpTestItem> 451var expectedOrderedItems = new List<SignatureHelpTestItem> 472var expectedOrderedItems = new List<SignatureHelpTestItem> 493var expectedOrderedItems = new List<SignatureHelpTestItem> 515var expectedOrderedItems = new List<SignatureHelpTestItem> 549var expectedOrderedItems = new List<SignatureHelpTestItem> 576var expectedOrderedItems = new List<SignatureHelpTestItem> 603var expectedOrderedItems = new List<SignatureHelpTestItem> 630var expectedOrderedItems = new List<SignatureHelpTestItem> 655var expectedOrderedItems = new List<SignatureHelpTestItem> 683var expectedOrderedItems = new List<SignatureHelpTestItem> 706var expectedOrderedItems = new List<SignatureHelpTestItem> 729var expectedOrderedItems = new List<SignatureHelpTestItem>(); 777var expectedOrderedItems = new List<SignatureHelpTestItem> 810var expectedOrderedItems = new List<SignatureHelpTestItem> 843var expectedOrderedItems = new List<SignatureHelpTestItem> 890var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 895var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 1000var expectedOrderedItems = new List<SignatureHelpTestItem>();
SignatureHelp\ConstructorInitializerSignatureHelpProviderTests.cs (29)
29var expectedOrderedItems = new List<SignatureHelpTestItem> 51var expectedOrderedItems = new List<SignatureHelpTestItem> 74var expectedOrderedItems = new List<SignatureHelpTestItem> 96var expectedOrderedItems = new List<SignatureHelpTestItem> 121var expectedOrderedItems = new List<SignatureHelpTestItem> 147var expectedOrderedItems = new List<SignatureHelpTestItem> 172var expectedOrderedItems = new List<SignatureHelpTestItem> 189var expectedOrderedItems = new List<SignatureHelpTestItem> 206var expectedOrderedItems = new List<SignatureHelpTestItem> 223var expectedOrderedItems = new List<SignatureHelpTestItem> 240var expectedOrderedItems = new List<SignatureHelpTestItem> 261var expectedOrderedItems = new List<SignatureHelpTestItem> 300var expectedOrderedItems = new List<SignatureHelpTestItem> 317var expectedOrderedItems = new List<SignatureHelpTestItem> 334var expectedOrderedItems = new List<SignatureHelpTestItem> 351var expectedOrderedItems = new List<SignatureHelpTestItem> 368var expectedOrderedItems = new List<SignatureHelpTestItem>(); 408var expectedOrderedItems = new List<SignatureHelpTestItem> 439var expectedOrderedItems = new List<SignatureHelpTestItem> 470var expectedOrderedItems = new List<SignatureHelpTestItem> 514var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 519var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 630var expectedOrderedItems = new List<SignatureHelpTestItem>(); 648var expectedOrderedItems = new List<SignatureHelpTestItem> 666var expectedOrderedItems = new List<SignatureHelpTestItem> 683var expectedOrderedItems = new List<SignatureHelpTestItem> 701var expectedOrderedItems = new List<SignatureHelpTestItem> 726var expectedOrderedItems = new List<SignatureHelpTestItem> 760var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\ElementAccessExpressionSignatureHelpProviderTests.cs (24)
29var expectedOrderedItems = new List<SignatureHelpTestItem> 58var expectedOrderedItems = new List<SignatureHelpTestItem> 81var expectedOrderedItems = new List<SignatureHelpTestItem> 104var expectedOrderedItems = new List<SignatureHelpTestItem> 133var expectedOrderedItems = new List<SignatureHelpTestItem> 166var expectedOrderedItems = new List<SignatureHelpTestItem> 195var expectedOrderedItems = new List<SignatureHelpTestItem> 229var expectedOrderedItems = new List<SignatureHelpTestItem> 258var expectedOrderedItems = new List<SignatureHelpTestItem> 317var expectedOrderedItems = new List<SignatureHelpTestItem> 346var expectedOrderedItems = new List<SignatureHelpTestItem> 375var expectedOrderedItems = new List<SignatureHelpTestItem>(); 434var expectedOrderedItems = new List<SignatureHelpTestItem> 471var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 508var expectedOrderedItems = new List<SignatureHelpTestItem> 561var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 566var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 604var expectedOrderedItems = new List<SignatureHelpTestItem> 641var expectedOrderedItems = new List<SignatureHelpTestItem> 679var expectedOrderedItems = new List<SignatureHelpTestItem> 740var metadataItems = new List<SignatureHelpTestItem> 745var projectReferenceItems = new List<SignatureHelpTestItem> 857var expectedOrderedItems = new List<SignatureHelpTestItem> 886var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\GenericNamePartiallyWrittenSignatureHelpProviderTests.cs (14)
28var expectedOrderedItems = new List<SignatureHelpTestItem> 49var expectedOrderedItems = new List<SignatureHelpTestItem> 72var expectedOrderedItems = new List<SignatureHelpTestItem> 95var expectedOrderedItems = new List<SignatureHelpTestItem> 116var expectedOrderedItems = new List<SignatureHelpTestItem> 160var expectedOrderedItems = new List<SignatureHelpTestItem> 195var expectedOrderedItems = new List<SignatureHelpTestItem> 230var expectedOrderedItems = new List<SignatureHelpTestItem> 277var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 282var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 299var expectedOrderedItems = new List<SignatureHelpTestItem> 331var expectedOrderedItems = new List<SignatureHelpTestItem> 357var expectedOrderedItems = new List<SignatureHelpTestItem> 378var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (30)
32var expectedOrderedItems = new List<SignatureHelpTestItem> 53var expectedOrderedItems = new List<SignatureHelpTestItem> 74var expectedOrderedItems = new List<SignatureHelpTestItem> 95var expectedOrderedItems = new List<SignatureHelpTestItem> 116var expectedOrderedItems = new List<SignatureHelpTestItem> 145var expectedOrderedItems = new List<SignatureHelpTestItem> 175var expectedOrderedItems = new List<SignatureHelpTestItem> 197var expectedOrderedItems = new List<SignatureHelpTestItem> 219var expectedOrderedItems = new List<SignatureHelpTestItem> 241var expectedOrderedItems = new List<SignatureHelpTestItem> 265var expectedOrderedItems = new List<SignatureHelpTestItem> 289var expectedOrderedItems = new List<SignatureHelpTestItem> 313var expectedOrderedItems = new List<SignatureHelpTestItem> 337var expectedOrderedItems = new List<SignatureHelpTestItem> 359var expectedOrderedItems = new List<SignatureHelpTestItem> 392var expectedOrderedItems = new List<SignatureHelpTestItem> 425var expectedOrderedItems = new List<SignatureHelpTestItem> 451var expectedOrderedItems = new List<SignatureHelpTestItem> 472var expectedOrderedItems = new List<SignatureHelpTestItem> 501var expectedOrderedItems = new List<SignatureHelpTestItem> 522var expectedOrderedItems = new List<SignatureHelpTestItem> 548var expectedOrderedItems = new List<SignatureHelpTestItem> 574var expectedOrderedItems = new List<SignatureHelpTestItem> 607var expectedOrderedItems = new List<SignatureHelpTestItem> 639var expectedOrderedItems = new List<SignatureHelpTestItem> 808var expectedOrderedItems = new List<SignatureHelpTestItem> 841var expectedOrderedItems = new List<SignatureHelpTestItem> 874var expectedOrderedItems = new List<SignatureHelpTestItem> 900var expectedOrderedItems = new List<SignatureHelpTestItem>(); 917var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\InvocationExpressionSignatureHelpProviderTests.cs (2)
1102var expectedOrderedItems = new List<SignatureHelpTestItem> 2254var expectedItems = new List<SignatureHelpTestItem>();
SignatureHelp\ObjectCreationExpressionSignatureHelpProviderTests.cs (2)
378var expectedOrderedItems = new List<SignatureHelpTestItem> 446var 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)
1424var eventArgs = new List<WorkspaceChangeEventArgs>();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenCapturing.cs (9)
27public readonly List<IList<string>> VariablesByScope = new List<IList<string>>(); 48VariablesByScope.Insert(depth, new List<string>() { varName }); 64.Select(list => list == null ? null : new List<string>(list))); 74var varNames = new List<string>(); 82variablesByScope.Add(new List<string>()); 272LocalFuncs = new List<IList<string>>(); 291: (IList<string>)new List<string>(x)).ToList(), 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>(); 150var updatedMethods = new List<MethodDefinitionHandle>();
Emit\EditAndContinue\EditAndContinueTests.cs (7)
3628var readers = new List<MetadataReader> { reader0, reader1 }; 3816var readers = new List<MetadataReader>() { reader0, reader1 }; 4151var readers = new List<MetadataReader> { reader0, reader1 }; 6003var readers = new List<MetadataReader> { reader0, reader1 }; 7765var readers = new List<MetadataReader> { reader0, reader1 }; 10913var readers = new List<MetadataReader> { reader0, reader1 }; 13010var readers = new List<MetadataReader> { reader0, reader1 };
Emit\EditAndContinue\SymbolMatcherTests.cs (1)
81var 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 (38)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
258var typeParameters = new List<ITypeParameterSymbol>();
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
128var directives = new List<NullableDirectiveTriviaSyntax>();
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
141var items = new List<CompletionItem>();
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (1)
195var droppedTrivia = new List<SyntaxTrivia>();
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (2)
396var list = new List<StatementSyntax>(); 810var statements = new List<StatementSyntax>();
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
90var list = new List<string> 296var result = new List<SyntaxToken>();
DocumentationComments\DocCommentConverter.cs (1)
50var newLeadingTrivia = new List<SyntaxTrivia>();
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2588var result = new List<SyntaxNode>();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (4)
59var list = new List<VariableDeclaratorSyntax>(); 60var triviaList = new List<SyntaxTrivia>(); 294var newList = new List<TSyntax>(list); 322var newMembers = new List<MemberDeclarationSyntax>(members);
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
136var variables = new List<VariableDeclaratorSyntax>();
GenerateType\CSharpGenerateTypeService.cs (2)
550var containerList = new List<string>(containers); 590var namespaceContainers = new List<string>();
Organizing\Organizers\MemberDeclarationsOrganizer.cs (1)
114var initialList = new List<MemberDeclarationSyntax>(members);
Organizing\Organizers\ModifiersOrganizer.cs (1)
21var initialList = new List<SyntaxToken>(modifiers);
SignatureHelp\AbstractOrdinaryMethodSignatureHelpProvider.cs (1)
52var result = new List<SymbolDisplayPart>();
SignatureHelp\AttributeSignatureHelpProvider.cs (2)
163var result = new List<SignatureHelpSymbolParameter>(); 177var displayParts = new List<SymbolDisplayPart>
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
242var result = new List<SymbolDisplayPart>();
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
229var 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)
142var result = new List<SymbolDisplayPart>();
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
181var result = new List<SignatureHelpParameter>();
SplitStringLiteral\InterpolatedStringSplitter.cs (2)
40var beforeSplitContents = new List<InterpolatedStringContentSyntax>(); 41var afterSplitContents = new List<InterpolatedStringContentSyntax>();
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
58var nodesFromDiagnostics = new List<( 70var references = new List<ExpressionSyntax>(diagnostic.AdditionalLocations.Count - 2);
Structure\Providers\CompilationUnitStructureProvider.cs (1)
27var externsAndUsings = new List<SyntaxNode>();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (3)
89var unhandledKinds = new List<SyntaxKind>(); 672var result = new List<DocumentAnalysisResults>(); 718var result = new List<DocumentAnalysisResults>();
EditAndContinue\TopLevelEditingTests.cs (1)
3855var expectedEdits = new List<SemanticEditDescription>();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
ObjectFormatterTests.cs (1)
611var obj = new List<object> { 1, 2, 'c' };
ScriptTests.cs (1)
619Assert.Equal(new List<int> { 1, 2, 3 }, result);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (88)
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\InheritanceBindingTests.cs (1)
8237var refs = new List<MetadataReference>(baseCompilations.Select(c => new CSharpCompilationReference(c)));
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 (2)
274var originalInputs = new List<InMemoryAdditionalText>(originalInputsLength); 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>(); 3363List<string?> referenceList = new List<string?>();
SourceGeneration\StateTableTests.cs (1)
947List<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 (108)
Compilation\CompilationAPITests.cs (5)
337var listSyntaxTree = new List<SyntaxTree>(); 338var listRef = new List<MetadataReference>(); 932var listSyntaxTree = new List<SyntaxTree>(); 965var listRef = new List<MetadataReference>(); 1420var listRef = new List<MetadataReference> { ref1, ref2, ref3, ref4 };
Compilation\ReferenceManagerTests.cs (1)
843List<string> newParts = new List<string>(parts);
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)
759var comp2 = CreateCompilationWithMscorlib461(new string[] { text1 }, new List<MetadataReference>() { compRef1 }, assemblyName: "Test2"); 765var comp = CreateCompilationWithMscorlib461(new string[] { text2 }, new List<MetadataReference>() { compRef1, compRef2 }, assemblyName: "Test3"); 973var list = new List<Symbol>(); 1048var comp2 = CreateCompilation(new string[] { text1 }, new List<MetadataReference>() { compRef1 }, assemblyName: "Test2"); 1054var comp = CreateCompilation(new string[] { text2 }, new List<MetadataReference>() { compRef1, compRef2 }, assemblyName: "Test3"); 1082var 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>() 14902new List<MetadataReference> { reference }, 17701var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 }); 17739var comp = CreateCompilation(new[] { text }, new List<MetadataReference> { ref1 }); 17982var 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 (34)
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 (5)
255var annotations = new List<SyntaxAnnotation>(Enumerable.Range(0, 3).Select(_ => new SyntaxAnnotation())); 385var annotations = new List<SyntaxAnnotation>(Enumerable.Range(0, 10).Select(_ => new SyntaxAnnotation())); 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 (14)
1007var list = new List<SyntaxToken>(); 1037var list = new List<SyntaxToken>(tokens.Count); 1062var list = new List<SyntaxToken>(tokens.Count); 1084List<SyntaxToken> list = new List<SyntaxToken>(); 1106var list = new List<SyntaxToken>(); 1137var list = new List<SyntaxToken>(tokens.Count); 1166var list = new List<SyntaxToken>(tokens.Count); 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 (19)
CSharpTestBase.cs (13)
2075synList = new List<SyntaxNode>(); 2202var nodeList = new List<TNode>(); 2825references: new List<MetadataReference>() { NetFramework.mscorlib, NetFramework.SystemCore, NetFramework.MicrosoftCSharp }, 2832references: new List<MetadataReference>() { NetFramework.mscorlib, NetFramework.SystemCore, NetFramework.MicrosoftCSharp, reference.EmitToImageReference() }, 2844references: new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef }, 2859references: new List<MetadataReference>() { reference.EmitToImageReference() }, 2870references: new List<MetadataReference>() { reference.EmitToImageReference() }, 2881references: new List<MetadataReference>() { reference.EmitToImageReference() }, 2898references: new List<MetadataReference>() { reference.EmitToImageReference() }, 2916references: new List<MetadataReference>() { reference.EmitToImageReference() }, 3146return new List<object[]>() 3158return new List<object[]>() 3170return new List<object[]>()
DiagnosticTestUtilities.cs (1)
58return VerifyErrorsAndGetCompilationWithMscorlib(new List<string> { text }, refs, expectedErrorDesp);
EmitMetadataTestBase.cs (1)
102var actualEntries = new List<DeclSecurityEntry>(expectedEntries.Length);
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)
159var list = new List<KeyValuePair<string, string>>();
Microsoft.CodeAnalysis.CSharp.Workspaces (33)
CodeGeneration\CSharpSyntaxGenerator.cs (5)
407var accessors = new List<AccessorDeclarationSyntax>(); 478var accessors = new List<AccessorDeclarationSyntax>(); 561var accessors = new List<AccessorDeclarationSyntax>(); 2996var newNodes = new List<SyntaxNode>(); 3102var newNodes = new List<SyntaxNode>
Rename\CSharpRenameRewriterLanguageService.cs (1)
849var 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)
117var partsList = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
599var result = new List<IList<TSyntaxNode>>(); 601var currentGroup = new List<TSyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1001var 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)
25var 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)
320var 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\QueryExpressionSyntaxExtensions.cs (2)
15var result = new List<SyntaxNode> 26var result = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
24var indices = new List<bool>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingMultipleSpanTests.cs (1)
171var spans = new List<TextSpan>();
Microsoft.CodeAnalysis.EditorFeatures (24)
CommentSelection\AbstractToggleBlockCommentBase.cs (1)
404var uncommentedSpans = new List<TextSpan>();
CommentSelection\ToggleLineCommentCommandHandler.cs (1)
158var lines = new List<ITextSnapshotLine>();
DocumentationComments\CopilotGenerateDocumentationCommentProvider.cs (1)
187var list = new List<ProposedEdit>();
IntelliSense\AsyncCompletion\FilterSet.cs (1)
160var result = new List<CompletionFilter>();
NavigateTo\NavigateToItemDisplay.cs (2)
63return new List<DescriptionItem>().AsReadOnly(); 66var items = new List<DescriptionItem>
Preview\AbstractPreviewFactoryService.cs (4)
77var previewItems = new List<SolutionPreviewItem>(); 689var result = new List<LineSpan>(); 765var lineSpans = new List<Span>(); 780var lineSpans = new List<Span>();
Preview\SolutionPreviewResult.cs (1)
55var 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)
18var list = new List<SnapshotSpan>();
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>
Structure\AbstractStructureTaggerProvider.cs (1)
337var sourceSpans = new List<object>()
Suggestions\SuggestedActions\SuggestedAction.CaretPositionRestorer.cs (1)
45var result = new List<Tuple<ITextView, IMappingPoint>>();
WpfClassificationExtensions.cs (1)
40var inlines = new List<Inline>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (5)
Classification\AbstractClassifierTests.cs (1)
290var allClassifications = new List<ClassifiedSpan>(semanticClassifications);
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (1)
61var highlightSpans = new List<TextSpan>();
Rename\RenamerTests.cs (2)
45var documentIdToDocumentInfoMap = new List<(DocumentId, DocumentWithInfo)>(); 180var documentIdToDocumentInfoMap = new List<(DocumentId, DocumentWithInfo)>();
Workspaces\EditorTestWorkspace.cs (1)
346var projectionBufferSpanStartingPositions = new List<int>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
CodeGeneration\CodeGenerationTests.cs (1)
615var allMembers = new List<ISymbol>();
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (1)
745var spans = new List<Span>();
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (3)
28var diagnosticIdAndOptions = new List<(string diagnosticId, ImmutableHashSet<IOption2> options)>(); 715var baseline = new List<(string diagnosticId, string optionName, string optionValue)>(); 741var extraEntitiesBuilder = new List<(string diagnosticId, string optionName, string optionValue)>();
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
96var references = new List<MetadataReference>();
RenameTracking\RenameTrackingTestState.cs (1)
171var 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)
491var flattened = new List<TextSpan>();
Microsoft.CodeAnalysis.Extensions.Package (3)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Testing\RazorTestLanguageServerFactory.cs (1)
57folders ??= 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)
447var refLocationsInCurrentDocument = new List<LocationForAffectedSymbol>(); 448var refLocationsInOtherDocuments = new List<LocationForAffectedSymbol>();
Completion\CommonCompletionUtilities.cs (1)
99var textContentBuilder = new List<TaggedText>();
Completion\CompletionService_GetCompletions.cs (1)
406_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)
495var list = new List<UnitTestingWorkItem>();
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
230var remainingResults = new List<ExtractClassMemberAnalysisResult>(memberAnalysisResults);
ExtractMethod\AbstractSyntaxTriviaService.cs (2)
125var triviaLeftAtCallSite = new List<SyntaxTrivia>(); 126var triviaMovedToDefinition = new List<SyntaxTrivia>();
ExtractMethod\MethodExtractor.Analyzer.cs (1)
757var typeParametersInConstraint = new List<ITypeParameterSymbol>();
ExtractMethod\MethodExtractor.TriviaResult.cs (2)
71var currentLine = new List<SyntaxTrivia>(); 72var result = new List<SyntaxTrivia>();
ExtractMethod\SelectionValidator.cs (1)
151var spine = new List<TStatementSyntax>();
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
492var containerList = new List<string>();
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
78var listOfParametersOrdinals = new List<int>();
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
372var nodesToTrack = new List<SyntaxNode> { constructorDeclaration };
InlineHints\InlineHintHelpers.cs (1)
31var parts = new List<TaggedText>();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
313var requiredArguments = new List<SyntaxNode>();
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (3)
291var parts = new List<SymbolDisplayPart>(); 335var parts = new List<SymbolDisplayPart>(); 453var finalParts = new List<SymbolDisplayPart>();
PdbSourceDocument\SourceLinkMap.cs (1)
70var list = new List<Entry>();
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
92var 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>();
Shared\Utilities\SupportedPlatformData.cs (1)
27var builder = new List<SymbolDisplayPart>();
SignatureHelp\AbstractSignatureHelpProvider.cs (3)
200var structuralTypeParts = new List<SymbolDisplayPart> 263var finalItems = new List<SignatureHelpItem>(); 329var startingNewLine = new List<TaggedText>();
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
63var removedNodes = new List<SyntaxNode> { paramNode };
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
105var removalList = new List<int>();
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
43var declarators = new List<TSymbolSyntax>();
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
172var 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)
155var allEdits = new List<SemanticEditInfo>();
EditAndContinue\SourceMarkers.cs (4)
100var result = new List<(int id, TextSpan span)>(); 121var result = new List<List<TextSpan>>(); 146var result = new List<List<TextSpan>>(); 163var result = new List<TextSpan>();
RelatedDocuments\AbstractRelatedDocumentsTests.cs (1)
35var results = new List<DocumentId>();
Microsoft.CodeAnalysis.Features.UnitTests (1)
FindUsages\DefinitionItemFactoryTests.cs (1)
94var failures = new List<Exception>();
Microsoft.CodeAnalysis.InteractiveHost (4)
Interactive\Core\InteractiveHost.Service.cs (3)
550var metadataReferences = new List<PortableExecutableReference>(); 623var attempts = new List<string>(); 777var displayedDiagnostics = new List<Diagnostic>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\Highlights\DocumentHighlightHandler.cs (1)
80var keywordSpans = new List<TextSpan>();
Handler\ProjectContext\GetTextDocumentWithContextHandler.cs (1)
43var contexts = new List<VSProjectContext>();
Protocol\Converters\NaturalObjectConverter.cs (1)
58var list = new List<object?>();
Protocol\Converters\SumConverter.cs (1)
47var allUnionTypeInfosSet = new List<UnionTypeInfo>();
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
CodeActions\CodeActionResolveTests.cs (1)
201edit: GenerateRenameFileEdit(new List<(DocumentUri, DocumentUri)> { (documentUriBefore, documentUriAfter) }));
Ordering\RequestOrderingTests.cs (1)
298var waitables = new List<Task<TestResponse?>>();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (38)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var 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)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
Microsoft.CodeAnalysis.PublicApiAnalyzers (33)
DeclarePublicApiAnalyzer.cs (1)
115var errors = new List<Diagnostic>();
DeclarePublicApiAnalyzer.Impl.cs (1)
511var nestedNamespaceOrTypesApiNames = new List<string>(nestedNamespaceOrTypeMembers.Length);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (8)
AnnotatePublicApiFix.cs (2)
119var updatedPublicSurfaceAreaText = new List<(DocumentId, SourceText)>(); 203var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>();
DeclarePublicApiFix.cs (4)
186var lines = new List<string>(); 241var updatedPublicSurfaceAreaText = new List<KeyValuePair<DocumentId, SourceText>>(); 242var addedPublicSurfaceAreaText = new List<KeyValuePair<ProjectId, SourceText>>(); 354var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>();
NullableEnablePublicApiFix.cs (2)
87var updatedSurfaceAreaText = new List<(DocumentId, SourceText)>(); 123var projectsToFix = new List<Project>();
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
451List<(string, string)> options = new List<(string, string)>();
Microsoft.CodeAnalysis.Rebuild.UnitTests (6)
BasicDeterministicKeyBuilderTests.cs (1)
194var args = new List<string>(new[] { filePath, "/nostdlib", "/vbruntime-", "/langversion:15" });
CSharpDeterministicKeyBuilderTests.cs (1)
370var args = new List<string>(new[] { filePath, "/nostdlib", "/langversion:9", "/checksumalgorithm:sha256" });
RebuildCommandLineTests.cs (4)
212var list = new List<object?[]>(); 334var args = new List<string>(commandLine.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)); 406var list = new List<object?[]>(); 499var args = new List<string>(commandLine.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries));
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.ResxSourceGenerator (32)
AbstractResxGenerator.cs (1)
503var getResourceStringAttributes = new List<string>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
Microsoft.CodeAnalysis.Scripting (9)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (2)
205_loadedAssembliesBySimpleName.Add(identity.Name, new List<LoadedAssemblyInfo> { info }); 218_dependenciesWithLocationBySimpleName.Add(simpleName, new List<AssemblyIdentityAndLocation> { dependency });
Hosting\CommandLine\CommandLineRunner.cs (2)
110var diagnosticsInfos = new List<DiagnosticInfo>(); 157var resolvedReferences = new List<MetadataReference>();
Hosting\CommandLine\CommandLineScriptGlobals.cs (1)
59Args = new List<string>();
Hosting\InteractiveScriptGlobals.cs (1)
64Args = new List<string>();
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (2)
287var members = new List<FormattedMember>(); 329var members = new List<MemberInfo>();
Hosting\SynchronizedList.cs (1)
15private readonly List<T> _list = new List<T>();
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ScriptTestBase.cs (1)
14private readonly List<MetadataImageReference> _referenceList = new List<MetadataImageReference>();
Microsoft.CodeAnalysis.Test.Utilities (51)
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));
Assert\DiffUtil.cs (2)
82IList<T> expectedList = expected as IList<T> ?? new List<T>(expected); 83IList<T> actualList = actual as IList<T> ?? new List<T>(actual);
CommonTestBase.cs (5)
370var references = new List<MetadataReference>(); 457var references = new List<MetadataReference>(); 720return new List<object[]>() 728return new List<object[]>() 737new List<object[]>(ExternalPdbFormats)
Compilation\CompilationDifference.cs (1)
144var actual = new List<string>();
CompilationVerifier.cs (3)
584var dependencyList = new List<ModuleData>(); 989var list = new List<Compilation>(); 1013var list = new List<Compilation>();
Diagnostics\CommonDiagnosticAnalyzers.cs (16)
2118IList<ISymbol> containersToVerify = new List<ISymbol>(); 2985public readonly List<SyntaxTree> AnalyzedTrees = new(); 2986public readonly List<SemanticModel> AnalyzedSemanticModels = new(); 2987public readonly List<ISymbol> AnalyzedSymbols = new(); 2988public readonly List<ISymbol> AnalyzedSymbolStartSymbols = new(); 2989public readonly List<ISymbol> AnalyzedSymbolEndSymbols = new(); 2990public readonly List<IOperation> AnalyzedOperations = new(); 2991public readonly List<ISymbol> AnalyzedOperationBlockSymbols = new(); 2992public readonly List<IOperation> AnalyzedOperationsInsideOperationBlock = new(); 2993public readonly List<ISymbol> AnalyzedOperationBlockStartSymbols = new(); 2994public readonly List<ISymbol> AnalyzedOperationBlockEndSymbols = new(); 2995public readonly List<SyntaxNode> AnalyzedSyntaxNodes = new(); 2996public readonly List<ISymbol> AnalyzedCodeBlockSymbols = new(); 2997public readonly List<SyntaxNode> AnalyzedSyntaxNodesInsideCodeBlock = new(); 2998public readonly List<ISymbol> AnalyzedCodeBlockStartSymbols = new(); 2999public 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\ILValidation.cs (1)
329var rvasAndNames = new List<(int rva, string name)>();
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\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.Threading.Package (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
Microsoft.CodeAnalysis.UnitTests (37)
AnalyzerAssemblyLoaderTests.cs (1)
1168var 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\Extensions\EnumerableExtensionsTests.cs (2)
101var result = new List<int>(); 146var seq = new List<int>() { 1, 2, 3 };
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (3)
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) }; 505IEnumerator valuesListEnum = new List<T>(set).GetEnumerator();
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 (3)
450var basis = new List<int>(Enumerable.Range(1, 50).Select(n => n * 2)); 492var basis = new List<int>(inputData); 561IList bclList = new List<T> { item };
Collections\ImmutableSegmentedListTest.cs (3)
42var expected = new List<int>(); 221var list = new List<int>(); 448var expectedList = new List<string>(new[] { "Microsoft", "Windows", "Bing", "Visual Studio", "Comics", "Computers", "Laptops" });
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\List\TestBase.Generic.cs (1)
185List<T> list = new List<T>(count);
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>();
MetadataReferences\AssemblyMetadataTests.cs (1)
37Assert.Throws<ArgumentException>(() => AssemblyMetadata.Create(new List<ModuleMetadata>(new ModuleMetadata[] { m1.Copy(), m2.Copy(), m3.Copy() })));
Text\SourceTextTests.cs (1)
256var allSourceTexts = new List<SourceText>();
Microsoft.CodeAnalysis.VisualBasic (2)
Analysis\FlowAnalysis\AlwaysAssignedWalker.vb (1)
40Dim result As New List(Of Symbol)
OptionsValidator.vb (1)
33Dim parsedImportList As New List(Of GlobalImport)
Microsoft.CodeAnalysis.Workspaces (55)
Classification\Classifier.cs (1)
103var allClassifications = new List<ClassifiedSpan>(semanticClassifications.Where(s => s.TextSpan.OverlapsWith(textSpan)));
CodeCleanup\AbstractCodeCleanerService.cs (2)
277var annotations = new List<(SyntaxAnnotation previous, SyntaxAnnotation next)>(); 327var tokenSpans = new List<TextSpan>();
Differencing\EditScript.cs (1)
22var edits = new List<Edit<TNode>>();
FindSymbols\SymbolFinder_Callers.cs (1)
51var results = new List<SymbolCallerInfo>();
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (2)
33var partitionedChanges = new List<List<TextChange>>(); 34var currentPartition = new List<TextChange>
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
277var ignoreErrorCodes = new List<string> 684var possibleNameConflictsList = new List<string>();
Rename\ConflictEngine\RenamedSpansTracker.cs (1)
197var modifiedSubSpans = new List<(TextSpan oldSpan, TextSpan newSpan)>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
262var results = new List<RenameLocation>();
Serialization\AbstractOptionsSerializationService.cs (2)
138specificDiagnosticOptionsList = new List<KeyValuePair<string, ReportDiagnostic>>(count); 224featuresList = new List<KeyValuePair<string, string>>(count);
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
24var result = new List<string>();
Shared\Extensions\ISymbolExtensions.cs (1)
335var result = new List<XNode>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var 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)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
Workspace\CommandLineProject.cs (1)
147var documents = new List<DocumentInfo>();
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
714var projectReferencesCreated = new List<ProjectReference>();
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
493var newReferences = new List<MetadataReference>();
Workspace\Workspace.cs (1)
1291var updatedDocumentIds = new List<DocumentId>();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
225var idsAndFileInfos = new List<(ProjectId id, ProjectFileInfo fileInfo)>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
Build\ProjectBuildManager.cs (1)
302var targets = new List<string>(requiredTargets);
Rpc\RpcServer.cs (1)
97var remainingTasks = new List<Task>(capacity: runningTasks.Count);
src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (1)
56var list = new List<string>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
SolutionGeneration.cs (1)
66var list = new List<(string, object)>();
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
97var remainingTasks = new List<Task>(capacity: runningTasks.Count);
VisualStudioMSBuildWorkspaceTests.cs (2)
1849var defines = new List<KeyValuePair<string, object>>(options.PreprocessorSymbols); 2463var 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)
165var documents = new List<TDocument>(); 204var additionalDocuments = new List<TDocument>(); 219var analyzerConfigDocuments = new List<TDocument>(); 413var globalImports = new List<GlobalImport>(); 822var analyzers = new List<AnalyzerReference>(); 837var references = new List<MetadataReference>();
Workspaces\TestWorkspace_XmlCreation.cs (1)
30var documentElements = new List<XElement>();
Workspaces\TestWorkspace`1.cs (2)
711var submissions = new List<TProject>(); 730var documents = new List<TDocument> { document };
Microsoft.CodeAnalysis.Workspaces.UnitTests (22)
BatchFixAllProviderTests.cs (1)
89var 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)
54var interfaces = new List<Type>(); 296var errors = new List<string>();
SymbolKeyTests.cs (3)
1495var list = new List<ISymbol>(); 1530var list = new List<ISymbol>(); 1550var results = new List<ISymbol>();
UtilityTest\WeakEventTests.cs (1)
19var target = new List<int>();
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
172var events = new List<OptionChangedEventArgs>();
WorkspaceServiceTests\TemporaryStorageServiceTests.cs (1)
162var storageHandles = new List<TemporaryStorageStreamHandle>(fileCount);
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
HandlerProviderTests.cs (1)
100var services = new List<(Type, object)>
Microsoft.CSharp (33)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
356List<string> argNames = new List<string>();
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (3)
45var v = new List<DynamicMetaObject> { self }; 455List<string> names = new List<string>(mo.GetDynamicMemberNames()); 458var result = new List<KeyValuePair<string, object>>();
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
891List<Expression> expressions = new List<Expression>();
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
564List<CType> callingTypes = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (2)
713List<UdConvInfo> prguci = new List<UdConvInfo>(); 1541List<T> newList = new List<T>(array);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (2)
575List<CandidateFunctionMember> methFirstList = new List<CandidateFunctionMember>(); 1340argInfo.prgexpr = new List<Expr>();
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (2)
78_methList = new List<CandidateFunctionMember>(); 84_HiddenTypes = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (3)
273_prgtype = new List<AggregateType>(); 494_methPropWithTypeList = new List<MethPropWithType>(); 495_rgtypeStart = new List<AggregateType>();
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (6)
133_pLowerBounds[iBound] = new List<CType>(); 134_pUpperBounds[iBound] = new List<CType>(); 135_pExactBounds[iBound] = new List<CType>(); 1606List<CType> initialCandidates = new List<CType>(); 1646List<CType> removeList = new List<CType>(); 1664List<CType> removeList = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (3)
513List<BinOpFullSig> binopSignatures = new List<BinOpFullSig>(); 1208List<UnaOpFullSig> pSignatures = new List<UnaOpFullSig>(); 2589List<CandidateFunctionMember> methFirst = new List<CandidateFunctionMember>();
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodOrPropertySymbol.cs (1)
85ParameterNames = new List<Name>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
191List<CType> typeList = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
29prgptvs = new List<TypeParameterType>();
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (6)
221(events ??= new List<EventInfo>()).Add(e); 247list = new List<Type>(ifaces.Length + 2) 263list = new List<Type> { type }; 341List<CType> ctypes = new List<CType>(); 686List<CType> types = new List<CType>(); 755List<object> callChain = new List<object>();
Microsoft.Data.Analysis (48)
DataFrame.Arrow.cs (1)
186List<Apache.Arrow.Array> arrays = new List<Apache.Arrow.Array>();
DataFrame.cs (4)
200List<DataFrameColumn> newColumns = new List<DataFrameColumn>(Columns.Count); 543List<object> cachedObjectConversions = new List<object>(); 624List<object> cachedObjectConversions = new List<object>(); 683List<DataFrameColumn> newColumns = new List<DataFrameColumn>(Columns.Count);
DataFrame.IO.cs (3)
124var columns = new List<DataFrameColumn>(columnsCount); 379var linesForGuessType = new List<(long LineNumber, string[] Line)>(); 441columns = new List<DataFrameColumn>(numberOfColumns);
DataFrameColumn.cs (2)
90private readonly List<DataFrameColumnCollection> _ownerColumnCollections = new(); 511heapOfValueAndListOfTupleOfSortAndBufferIndex.Add(nextValue, new List<ValueTuple<int, int>>() { (nextValueAndBufferSortIndex.bufferSortIndex, bufferIndex) });
DataFrameColumnCollection.cs (1)
33var ret = new List<string>(Count);
DataFrameColumns\ArrowStringDataFrameColumn.cs (9)
33_dataBuffers = new List<ReadOnlyDataFrameBuffer<byte>>(); 34_offsetsBuffers = new List<ReadOnlyDataFrameBuffer<int>>(); 35_nullBitMapBuffers = new List<ReadOnlyDataFrameBuffer<byte>>(); 56_dataBuffers = new List<ReadOnlyDataFrameBuffer<byte>>(); 57_offsetsBuffers = new List<ReadOnlyDataFrameBuffer<int>>(); 58_nullBitMapBuffers = new List<ReadOnlyDataFrameBuffer<byte>>(); 269var ret = new List<object>(); 302var ret = new List<string>(); 507multimap.Add(str, new List<long>() { i });
DataFrameColumns\StringDataFrameColumn.cs (10)
23private readonly List<List<string>> _stringBuffers = new List<List<string>>(); // To store more than intMax number of strings 31List<string> buffer = new List<string>((int)Math.Min(MaxCapacity, bufferLen)); 46_stringBuffers.Add(new List<string>()); 73lastBuffer = new List<string>(); 120var ret = new List<object>(); 167var ret = new List<string>(); 209List<int[]> bufferSortIndices = new List<int[]>(_stringBuffers.Count); 257heapOfValueAndListOfTupleOfSortAndBufferIndex.Add(valueAndBufferSortIndex.Item1, new List<ValueTuple<int, int>>() { (valueAndBufferSortIndex.Item2, i) }); 393return new DataFrame(new List<DataFrameColumn> { keys, counts }); 426multimap.Add(str, new List<long>() { i });
DataFrameColumns\VBufferDataFrameColumn.cs (5)
22private readonly List<List<VBuffer<T>>> _vBuffers = new List<List<VBuffer<T>>>(); // To store more than intMax number of vbuffers 35List<VBuffer<T>> buffer = new List<VBuffer<T>>(bufferLen); 49_vBuffers.Add(new List<VBuffer<T>>()); 75lastBuffer = new List<VBuffer<T>>(); 105var ret = new List<object>();
IDataView.Extension.cs (2)
48List<DataFrameColumn> dataFrameColumns = new List<DataFrameColumn>(schema.Count); 57List<DataViewSchema.Column> activeDataViewColumns = new List<DataViewSchema.Column>();
PrimitiveColumnContainer.cs (4)
22public IList<ReadOnlyDataFrameBuffer<T>> Buffers = new List<ReadOnlyDataFrameBuffer<T>>(); 26public IList<ReadOnlyDataFrameBuffer<byte>> NullBitMapBuffers = new List<ReadOnlyDataFrameBuffer<byte>>(); 372var ret = new List<T?>(length); 451List<ReadOnlyDataFrameBuffer<byte>> ret = new List<ReadOnlyDataFrameBuffer<byte>>();
PrimitiveDataFrameColumn.cs (3)
214var ret = new List<object>(length); 391return new DataFrame(new List<DataFrameColumn> { keys, counts }); 637multimap.Add(readOnlySpan[i], new List<long>() { currentLength });
PrimitiveDataFrameColumn.Sort.cs (3)
25List<List<int>> bufferSortIndices = new List<List<int>>(_columnContainer.Buffers.Count); 40List<int> nonNullSortIndices = new List<int>(); 98heapOfValueAndListOfTupleOfSortAndBufferIndex.Add(valueAndBufferIndex.Item1, new List<ValueTuple<int, int>>() { (valueAndBufferIndex.Item2, i) });
TextFieldParser.cs (1)
780List<string> Fields = new List<string>();
Microsoft.Data.Analysis.Interactive (6)
DataFrameKernelExtension.cs (6)
44var header = new List<IHtmlContent> 57var rows = new List<List<IHtmlContent>>(); 60var cells = new List<IHtmlContent> 72var footer = new List<IHtmlContent>(); 110var rows = new List<List<IHtmlContent>>(); 113var cells = new List<IHtmlContent>
Microsoft.Data.Analysis.Interactive.Tests (1)
DataFrameInteractiveTests.cs (1)
76var data = new List<IDictionary<string, object>>();
Microsoft.Data.Analysis.Tests (22)
ArrowIntegrationTests.cs (1)
146DataFrame df = new DataFrame(new List<DataFrameColumn>() { ageColumn, lengthColumn, stringColumn });
DataFrame.IOTests.cs (1)
1666List<Type> typesToRemove = new List<Type>(possibleTypes.Count);
DataFrameTests.BinaryOperations.cs (2)
27IReadOnlyList<int> listOfInts = new List<int>() { 5, 5 }; 184IReadOnlyList<bool> listOfBools = new List<bool>() { true, false };
DataFrameTests.cs (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.Build.Manifest (4)
ArtifactSet.cs (3)
13public List<PackageArtifactModel> Packages { get; set; } = new List<PackageArtifactModel>(); 15public List<BlobArtifactModel> Blobs { get; set; } = new List<BlobArtifactModel>(); 17public List<PdbArtifactModel> Pdbs { get; set; } = new List<PdbArtifactModel>();
BuildModelFactory.cs (1)
271List<string> differences = new List<string>();
Microsoft.DotNet.Build.Manifest.Tests (25)
BuildModelFactoryTests.cs (24)
737var result = _buildModelFactory.CreateMergedModel(new List<BuildModel>(), ArtifactVisibility.All); 751var result = _buildModelFactory.CreateMergedModel(new List<BuildModel> { buildModel }, ArtifactVisibility.All); 784var result = _buildModelFactory.CreateMergedModel(new List<BuildModel> { buildModel1, buildModel2 }, ArtifactVisibility.All); 824Blobs = new List<BlobArtifactModel> { new BlobArtifactModel() }, 825Packages = new List<PackageArtifactModel> { new PackageArtifactModel() }, 826Pdbs = new List<PdbArtifactModel> { new PdbArtifactModel() } 833Blobs = new List<BlobArtifactModel> { new BlobArtifactModel() }, 834Packages = new List<PackageArtifactModel> { new PackageArtifactModel() }, 835Pdbs = new List<PdbArtifactModel> { new PdbArtifactModel() } 840var result = _buildModelFactory.CreateMergedModel(new List<BuildModel> { buildModel1, buildModel2 }, ArtifactVisibility.All); 948Blobs = new List<BlobArtifactModel> { blobArtifactA }, 949Packages = new List<PackageArtifactModel> { packageArtifactA }, 950Pdbs = new List<PdbArtifactModel> { pdbArtifactA } 958Blobs = new List<BlobArtifactModel> { blobArtifactB }, 959Packages = new List<PackageArtifactModel> { packageArtifactB }, 960Pdbs = new List<PdbArtifactModel> { pdbArtifactB } 965var result = _buildModelFactory.CreateMergedModel(new List<BuildModel> { buildModel1, buildModel2 }, ArtifactVisibility.All); 1124Blobs = new List<BlobArtifactModel> { blobArtifactA }, 1125Packages = new List<PackageArtifactModel> { packageArtifactA }, 1126Pdbs = new List<PdbArtifactModel> { pdbArtifactA } 1134Blobs = new List<BlobArtifactModel> { blobArtifactB }, 1135Packages = new List<PackageArtifactModel> { packageArtifactB }, 1136Pdbs = new List<PdbArtifactModel> { pdbArtifactB } 1141var result = _buildModelFactory.CreateMergedModel(new List<BuildModel> { buildModel1, buildModel2 }, ArtifactVisibility.External);
VersionIdentiferTests.cs (1)
66List<VersionIdentifierTestAsset> testAssets = new List<VersionIdentifierTestAsset>();
Microsoft.DotNet.Build.Tasks.Feed (14)
src\AzureDevOpsArtifactFeed.cs (1)
41Permissions = new List<AzureDevOpsFeedPermission>
src\common\LatestLinksManager.cs (1)
83List<AkaMSLink> newLinks = new List<AkaMSLink>();
src\common\UploadToAzure.cs (1)
84List<Task> uploadTasks = new List<Task>();
src\ProductionChannelValidator.cs (1)
411Tags = buildResponse?.Tags ?? new List<string>()
src\PublishArtifactsInManifestBase.cs (2)
867List<Task> publishTasks = new List<Task>(); 1087List<Task> publishTasks = new List<Task>();
src\PublishArtifactsInManifestV3.cs (2)
63List<int> targetChannelsIds = new List<int>(); 137List<string> shortLinkUrls = new List<string>();
src\PublishArtifactsInManifestV4.cs (2)
59List<int> targetChannelsIds = new List<int>(); 133List<string> shortLinkUrls = new List<string>();
src\PublishBuildToMaestro.cs (4)
307List<Asset> matchingAssetsFromSameSha = new List<Asset>(); 366var assets = new List<AssetData>(); 381Assets = new List<AssetData>(), 506: new List<AssetLocationData>() { new AssetLocationData(locationType) { Location = location } },
Microsoft.DotNet.Build.Tasks.Feed.Tests (36)
LatestLinksManagerTests.cs (3)
112links.Should().BeEquivalentTo(new List<AkaMSLink> 179links.Should().BeEquivalentTo(new List<AkaMSLink> 216links.Should().BeEquivalentTo(new List<AkaMSLink>
ProductionChannelValidatorTests.cs (23)
64channels: channels ?? new List<ProductConstructionService.Client.Models.Channel>(), 65assets: assets ?? new List<ProductConstructionService.Client.Models.Asset>(), 66dependencies: dependencies ?? new List<ProductConstructionService.Client.Models.BuildRef>(), 67incoherencies: incoherencies ?? new List<ProductConstructionService.Client.Models.BuildIncoherence>() 160Tags = new List<string> { "1ES.PT.Official", "other-tag" } 168BranchClassifications = new List<BranchClassification> 200Tags = new List<string> { "other-tag", "another-tag" } 228Tags = new List<string> { "1ES.PT.Official" } 236BranchClassifications = new List<BranchClassification> 271Tags = new List<string> { "1ES.PT.Official" } 338Tags = new List<string> { "1ES.PT.Official" } 346BranchClassifications = new List<BranchClassification> 396Tags = new List<string> { "1ES.PT.Official" } 426Tags = new List<string> { "1ES.PT.Official" } 477Tags = new List<string> { "1ES.PT.Official" } 485BranchClassifications = new List<BranchClassification> 517Tags = new List<string> { "1ES.PT.Official" } 525BranchClassifications = new List<BranchClassification> 556Tags = new List<string> { "1ES.PT.Official" } 564BranchClassifications = new List<BranchClassification>() 590Tags = new List<string> { "1ES.PT.Official" } 660Tags = new List<string> { "1ES.PT.Official" } 668BranchClassifications = new List<BranchClassification>
PublishArtifactsInManifestTests.cs (4)
110channels: channels ?? new List<ProductConstructionService.Client.Models.Channel>(), 111assets: assets ?? new List<ProductConstructionService.Client.Models.Asset>(), 112dependencies: dependencies ?? new List<ProductConstructionService.Client.Models.BuildRef>(), 113incoherencies: incoherencies ?? new List<ProductConstructionService.Client.Models.BuildIncoherence>()
SetupTargetFeedConfigV3Tests.cs (3)
76var expectedFeeds = new List<TargetFeedConfig>(); 195var expectedFeeds = new List<TargetFeedConfig>(); 308var expectedFeeds = new List<TargetFeedConfig>();
SetupTargetFeedConfigV4Tests.cs (3)
78var expectedFeeds = new List<TargetFeedConfig>(); 189var expectedFeeds = new List<TargetFeedConfig>(); 281var expectedFeeds = new List<TargetFeedConfig>();
Microsoft.DotNet.Build.Tasks.Installers (3)
src\CreateWixBuildWixpack.cs (3)
300var commandLineArgs = new List<string>(); 775var blocks = new List<(string condition, string content)>(); 788var blockBoundaries = new List<(int start, int end, string condition, bool isElse)>();
Microsoft.DotNet.Build.Tasks.Packaging (39)
ApplyBaseLine.cs (2)
72List<ITaskItem> baseLinedDependencies = new List<ITaskItem>(); 107List<ITaskItem> baseLinedDependencies = new List<ITaskItem>();
ApplyMetaPackages.cs (1)
56List<ITaskItem> updatedDependencies = new List<ITaskItem>();
ApplyPreReleaseSuffix.cs (1)
73List<ITaskItem> updatedPackages = new List<ITaskItem>();
CreateTrimDependencyGroups.cs (1)
125List<ITaskItem> trimmedDependencies = new List<ITaskItem>();
Extensions.cs (1)
181var list = (List<TItem>)property.GetValue(target) ?? new List<TItem>();
FrameworkUtilities.cs (1)
71List<string> nearestFrameworks = new List<string>();
GenerateNuSpec.cs (1)
352var listOfPackageTypes = new List<PackageType>();
GeneratePackageReport.cs (1)
306packageItems[packageId] = new List<PackageItem>();
GenerateRuntimeDependencies.cs (3)
91List<RuntimeDescription> runtimes = new List<RuntimeDescription>(); 108List<RuntimeDependencySet> runtimeDependencySets = new List<RuntimeDependencySet>(); 114List<RuntimePackageDependency> runtimePackageDependencies = new List<RuntimePackageDependency>();
GetApplicableAssetsFromPackageReports.cs (4)
66var compileAssets = new List<ITaskItem>(); 67var runtimeAssets = new List<ITaskItem>(); 68var nativeAssets = new List<ITaskItem>(); 69var buildProjects = new List<BuildProject>();
GetApplicableAssetsFromPackages.cs (2)
92var buildProjects = new List<BuildProject>(); 163_packageToPackageItems[packageItem.Package] = new List<PackageItem>();
GetAssemblyReferences.cs (2)
43List<ITaskItem> references = new List<ITaskItem>(); 44List<ITaskItem> nativeLibs = new List<ITaskItem>();
GetLastStablePackage.cs (1)
132List<ITaskItem> lastStablePackages = new List<ITaskItem>();
GetLayoutFiles.cs (1)
54var layoutFiles = new List<ITaskItem>();
GetPackageDestination.cs (1)
69private List<ITaskItem> _packageDestinations = new List<ITaskItem>();
GetPackageFromModule.cs (1)
58List<ITaskItem> packagesReferenced = new List<ITaskItem>();
GetRuntimeJsonValues.cs (1)
33List<string> items = new List<string>();
GetRuntimeTargets.cs (1)
37List<string> items = new List<string>();
GetSupportedPackagesFromPackageReports.cs (1)
24var supportedPackages = new List<ITaskItem>();
HarvestPackage.cs (4)
158List<ITaskItem> supportedFrameworks = new List<ITaskItem>(); 289var harvestedFiles = new List<ITaskItem>(); 290var removeFiles = new List<ITaskItem>(); 330List<string> targetPaths = new List<string>() { harvestPackagePath };
NuGetAssetResolver.cs (1)
280var contentItemGroups = new List<ContentItemGroup>();
NuGetPack.cs (3)
339List<PackageDependencyGroup> packedPackageDependencyGroups = new List<PackageDependencyGroup>(); 342List<NuGet.Packaging.Core.PackageDependency> packages = new List<NuGet.Packaging.Core.PackageDependency>(); 354List<ManifestFile> manifestFiles = new List<ManifestFile>();
NuGetUtility.cs (1)
24List<Version> result = new List<Version>();
PackageIndex.cs (1)
513List<Version> redundantMappings = new List<Version>();
PromoteDependencies.cs (1)
40List<ITaskItem> promotedDependencies = new List<ITaskItem>();
SplitDependenciesBySupport.cs (1)
32List<ITaskItem> splitDependencies = new List<ITaskItem>(dependencies.Where(d => d.TargetFramework != null && d.TargetFramework.Framework != FrameworkConstants.FrameworkIdentifiers.NetStandard).Select(d => d.OriginalItem));
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
ChooseBestP2PTargetFrameworkTask.cs (1)
63List<ITaskItem> assignedProjects = new(AnnotatedProjectReferences.Length);
ChooseBestTargetFrameworksTask.cs (1)
31List<ITaskItem> bestTargetFrameworkList = new(BuildTargetFrameworks!.Length);
Microsoft.DotNet.Build.Tasks.Workloads (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 (3)
Microsoft.DotNet.GenFacades (3)
GenPartialFacadeSourceGenerator.cs (1)
164assemblyListForTypes = new List<string>(1);
SourceGenerator.cs (1)
47List<string> externAliases = new List<string>();
TypeParser.cs (1)
136List<SyntaxTree> result = new List<SyntaxTree>();
Microsoft.DotNet.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 (4)
FindDotNetCliPackageTests.cs (4)
23List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>() 71List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>(GetDefaultRequestResponseHelpers()); 121List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>(GetDefaultRequestResponseHelpers()); 174List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>()
Microsoft.DotNet.NuGetRepack.Tasks (3)
src\NuGetVersionUpdater.cs (2)
285var errors = new List<Exception>(); 362var errors = new List<Exception>();
src\UpdatePackageVersionTask.cs (1)
73var preReleaseDependencies = new List<string>();
Microsoft.DotNet.NuGetRepack.Tests (7)
TestHelpers\DiffUtil.cs (2)
79IList<T> expectedList = expected as IList<T> ?? new List<T>(expected); 80IList<T> actualList = actual as IList<T> ?? new List<T>(actual);
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.SignCheckLibrary (11)
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)
30_loggers = new List<ILogger>();
Verification\AuthentiCode.cs (2)
188var timestamps = new List<Timestamp>(); 251var timestamps = new List<Timestamp>();
Verification\Exclusions.cs (1)
20private List<Exclusion> _exclusions = new List<Exclusion>();
Verification\Jar\JarError.cs (1)
11private static List<string> _errors = new List<string>();
Verification\NupkgVerifier.cs (1)
30List<ISignatureVerificationProvider> providers = new()
Verification\SignatureVerificationManager.cs (1)
48_results = new List<SignatureVerificationResult>();
Verification\SignatureVerificationResult.cs (2)
152_nestedResults = new List<SignatureVerificationResult>(); 172_timestamps = new List<Timestamp>();
Microsoft.DotNet.SignCheckTask (5)
src\SignCheck.cs (3)
193var inputFiles = new List<string>(); 194var downloadFiles = new List<Uri>(); 229var _matchedFiles = new List<string>();
src\SignCheckTask.cs (1)
140List<string> inputFiles = new List<string>();
src\Utils.cs (1)
21var directories = new List<string>();
Microsoft.DotNet.SignTool (9)
src\BatchSignUtil.cs (3)
242var largeRepackList = new List<FileSignInfo>(); 243var smallRepackList = new List<FileSignInfo>(); 319var list = new List<FileSignInfo>();
src\Configuration.cs (3)
137_filesToSign = new List<FileSignInfo>(); 138_wixPacks = new List<WixPackInfo>(); 139_filesToCopy = new List<KeyValuePair<string, string>>();
src\SignToolTask.cs (3)
392additionalCertificateInformation = new List<AdditionalCertificateInformation>(); 500map.Add(extension, new List<SignInfo> { signInfo }); 556map.Add(publicKeyToken, new List<SignInfo> { signInfo });
Microsoft.DotNet.SignTool.Tests (147)
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 (142)
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{".jar", new List<SignInfo>{ new SignInfo("JARCertificate", collisionPriorityId: "123") } }, 56{ ".ps1", new List<SignInfo>{ new SignInfo("PSCertificate", collisionPriorityId: "123") } }, 57{ ".psd1", new List<SignInfo>{ new SignInfo("PSDCertificate", collisionPriorityId: "123") } }, 58{ ".psm1", new List<SignInfo>{ new SignInfo("PSMCertificate", collisionPriorityId: "123") } }, 59{ ".psc1", new List<SignInfo>{ new SignInfo("PSCCertificate", collisionPriorityId: "123") } }, 60{ ".dylib", new List<SignInfo>{ new SignInfo("DylibCertificate", collisionPriorityId: "123") } }, 61{ ".deb", new List<SignInfo>{ new SignInfo("LinuxSign", collisionPriorityId: "123") } }, 62{ ".dll", new List<SignInfo> 68{ ".exe", new List<SignInfo>{ new SignInfo("Microsoft400", collisionPriorityId: "123") } }, // lgtm [cs/common-default-passwords] Safe, these are certificate names 69{ ".msi", new List<SignInfo>{ new SignInfo("Microsoft400", collisionPriorityId: "123") } }, // lgtm [cs/common-default-passwords] Safe, these are certificate names 70{ ".vsix", new List<SignInfo>{ new SignInfo("VsixSHA2", collisionPriorityId: "123") } }, 71{ ".zip", new List<SignInfo>{ SignInfo.Ignore } }, 72{ ".tgz", new List<SignInfo>{ SignInfo.Ignore } }, 73{ ".pkg", new List<SignInfo>{ new SignInfo("Microsoft400", collisionPriorityId: "123") } }, 74{ ".app", new List<SignInfo>{ new SignInfo("Microsoft400", collisionPriorityId: "123") } }, 75{ ".nupkg", new List<SignInfo>{ new SignInfo("NuGet", collisionPriorityId: "123") } }, 76{ ".symbols.nupkg", new List<SignInfo>{ SignInfo.Ignore } }, 548var itemsToSign = new List<ItemToSign>(); 622var itemsToSign = new List<ItemToSign>() 630{ "581d91ccdfc4ea9c", new List<SignInfo> {new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 657var itemsToSign = new List<ItemToSign>() 665{ "581d91ccdfc4ea9c", new List<SignInfo> {new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 689var itemsToSign = new List<ItemToSign>() 698{ "31bf3856ad364e35", new List<SignInfo> {new SignInfo(certificate: "FooCert", strongName: "Blah.snk") } } 711var itemsToSign = new List<ItemToSign>() 719{ "b03f5f7f11d50a3a", new List<SignInfo> {new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 735var itemsToSign = new List<ItemToSign>() 743{ "b03f5f7f11d50a3a", new List<SignInfo> {new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 759var itemsToSign = new List<ItemToSign>() 767{ "cc7b13ffcd2ddd51", new List<SignInfo> {new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 787var itemsToSign = new List<ItemToSign>() 795{ pktToTest, new List<SignInfo> { new SignInfo(certificateToTest, collisionPriorityId: "123") } } 820var itemsToSign = new List<ItemToSign>() 828{ "581d91ccdfc4ea9c", new List<SignInfo> { new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 862var itemsToSign = new List<ItemToSign>() 870{ "581d91ccdfc4ea9c", new List<SignInfo> { new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 902var itemsToSign = new List<ItemToSign>() 910{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo("ArcadeCertTest", "ArcadeStrongTest") } } 929var itemsToSign = new List<ItemToSign>() 938{ "7cec85d7bea7798e", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } }, 939{ "adb9793829ddae60", new List<SignInfo>{ new SignInfo(certificate: "Microsoft400", strongName: "AspNetCore", collisionPriorityId: "123") } } // lgtm [cs/common-default-passwords] Safe, these are certificate names 969var itemsToSign = new List<ItemToSign>() 976{ "", new List<SignInfo>{ new SignInfo("3PartySHA2", collisionPriorityId: "123") } } 991var itemsToSign = new List<ItemToSign>() 998{ "", new List<SignInfo>{ new SignInfo("DefaultCertificate", collisionPriorityId: "123") } } 1016var itemsToSign = new List<ItemToSign>() 1038var itemsToSign = new List<ItemToSign>() 1058var itemsToSign = new List<ItemToSign>() 1067{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo("3PartySHA2", "ArcadeStrongTest", "123") } } 1110var itemsToSign = new List<ItemToSign>() 1118{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 1188var itemsToSign = new List<ItemToSign>() 1196{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 1271var itemsToSign = new List<ItemToSign>() 1279{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1327var itemsToSign = new List<ItemToSign>() 1335{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1361var itemsToSign = new List<ItemToSign>() 1369{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1418var itemsToSign = new List<ItemToSign>() 1426{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1433new List<AdditionalCertificateInformation>() { 1494var itemsToSign = new List<ItemToSign>() 1502{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1546var itemsToSign = new List<ItemToSign>() 1554{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1592var itemsToSign = new List<ItemToSign>() 1600{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1644var itemsToSign = new List<ItemToSign>() 1652{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1696var itemsToSign = new List<ItemToSign>() 1704{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 1750var itemsToSign = new List<ItemToSign> 1794var itemsToSign = new List<ItemToSign> 1822var itemsToSign = new List<ItemToSign> 1864var itemsToSign = new List<ItemToSign> 1876var expectedFilesToBeSigned = new List<string> 1895var itemsToSign = new List<ItemToSign> 1907var expectedFilesToBeSigned = new List<string> 1927var itemsToSign = new List<ItemToSign>() 1995var itemsToSign = new List<ItemToSign>() 2004{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 2043var itemsToSign = new List<ItemToSign>() 2053{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 2096var itemsToSign = new List<ItemToSign>() 2105{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 2165var itemsToSign = new List<ItemToSign>() 2173{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2") } } 2199var itemsToSign = new List<ItemToSign>() 2208{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 2260var itemsToSign = new List<ItemToSign>() 2269{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 2321var itemsToSign = new List<ItemToSign>() 2330{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 2378var itemsToSign = new List<ItemToSign>() 2388{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 2440var itemsToSign = new List<ItemToSign>() 2448{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "3PartySHA2", strongName: "ArcadeStrongTest") } } 2479var itemsToSign = new List<ItemToSign>() 2497var itemsToSign = new List<ItemToSign>() 2527var fileExtensionSignInfo = new List<ITaskItem>(); 2546var fileExtensionSignInfo = new List<ITaskItem>(); 2569var fileExtensionSignInfo = new List<ITaskItem>(); 2591var itemsToSign = new List<ItemToSign>() 2739var itemsToSign = new List<ItemToSign>() 2747{dualCertName, new List<AdditionalCertificateInformation>(){new AdditionalCertificateInformation() { DualSigningAllowed = true } } }, 2752{ "31bf3856ad364e35", new List<SignInfo>{ new SignInfo(certificate: dualCertName, strongName: null) } } 2768var itemsToSign = new List<ItemToSign>() 2776{ dualCertName, new List<AdditionalCertificateInformation>(){new AdditionalCertificateInformation() 2785{ "31bf3856ad364e35", new List<SignInfo>{ new SignInfo(certificate: dualCertName, strongName: null) } } 2797var itemsToSign = new List<ItemToSign>() 2805{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest", collisionPriorityId: "123") } } 2829var itemsToSign = new List<ItemToSign>() 2837{ "581d91ccdfc4ea9c", new List<SignInfo>{ new SignInfo(certificate: "ArcadeCertTest", strongName: "ArcadeStrongTest") } } 2864var itemsToSign = new List<ItemToSign>() 2888{ "581d91ccdfc4ea9c", new List<SignInfo> {new SignInfo(certificate: "ArcadeCertTest", strongName: "StrongNameValue", collisionPriorityId: "123") } }, 2918new List<AdditionalCertificateInformation>() { 2965var itemsToSign = new List<ItemToSign>() 3051var itemsToSign = new List<ItemToSign>() 3093var itemsToSign = new List<ItemToSign>() 3100{ extension, new List<SignInfo> { SignInfo.Ignore } } 3105extensionSignInfo.Add(additionalExtension, new List<SignInfo> { SignInfo.Ignore }); 3128var 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.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 (152)
AsyncCollectionAssertsTests.cs (40)
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(); 739 var actual = actualArray is null ? null : new List<int>(actualArray).ToAsyncEnumerable(); 837 List<EnumerableItem> actual = new List<EnumerableItem> { new(0), new(2) }; 838 List<EnumerableItem> expected = new List<EnumerableItem> { new(1), new(3) }; 957 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }).ToAsyncEnumerable(); 986 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }).ToAsyncEnumerable(); 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(); 1133 var actual = new List<int>(expected).ToAsyncEnumerable(); 1160 var actual = new List<int>(new[] { 1, 2, 3, 4, 0, 6, 7, 8, 9, 10 }).ToAsyncEnumerable(); 1173 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }).ToAsyncEnumerable(); 1183 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }).ToAsyncEnumerable(); 1314 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }).ToAsyncEnumerable(); 1324 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }).ToAsyncEnumerable();
CollectionAssertsTests.cs (67)
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 }; 955 var actual = new List<int>(expected); 1010 var actual = actualArray is null ? null : new List<int>(actualArray); 1036 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }); 1055 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }); 1078 List<EnumerableItem> actual = new List<EnumerableItem> { new(0), new(2) }; 1079 List<EnumerableItem> expected = new List<EnumerableItem> { new(1), new(3) }; 1180 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }); 1199 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }); 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 }; 1739 var actual = new List<int>(expected); 1756 var actual = new List<int>(new[] { 1, 2, 3, 4, 0, 6, 7, 8, 9, 10 }); 1768 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }); 1777 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }); 1878 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }); 1887 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }); 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 (5)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
41List<string> falseConditions = new List<string>(conditionMemberNames.Count());
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTheoryDiscoverer.cs (1)
85List<IXunitTestCase> skippedTestCase = new List<IXunitTestCase>();
src\Microsoft.DotNet.XUnitExtensions.Shared\XunitParallelTheoryTestCaseRunner.cs (3)
26private readonly List<XunitTestRunner> _testRunners = new(); 27private readonly List<IDisposable> _toDispose = new(); 135var runningTests = new List<Task<RunSummary>>(_testRunners.Count);
Microsoft.DotNet.XUnitV3Extensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
41List<string> falseConditions = new List<string>(conditionMemberNames.Count());
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (1)
791var contents = new List<AIContent>(results.Length);
ChatReduction\SummarizingChatReducer.cs (1)
95var unsummarizedMessages = new List<ChatMessage>();
Microsoft.Extensions.AI.Abstractions (17)
ChatCompletion\ChatOptions.cs (2)
171options.StopSequences = new List<string>(StopSequences); 176options.Tools = new List<AITool>(Tools);
ChatCompletion\ChatResponse.cs (1)
51get => _messages ??= new List<ChatMessage>(1);
Embeddings\GeneratedEmbeddings.cs (2)
30_embeddings = new List<TEmbedding>(Throw.IfLessThan(capacity, 0)); 39_embeddings = new List<TEmbedding>(Throw.IfNull(embeddings));
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (12)
142List<JsonSchema>? anyOf = new(derivedTypes.Count); 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 }; 489private readonly List<string> _currentPath = new(); 670AnyOf = new()
Microsoft.Extensions.AI.Abstractions.Tests (5)
ChatCompletion\DelegatingChatClientTests.cs (2)
24var expectedChatContents = new List<ChatMessage>(); 56var expectedChatContents = new List<ChatMessage>();
Embeddings\DelegatingEmbeddingGeneratorTests.cs (1)
24var expectedInput = new List<string>();
SpeechToText\SpeechToTextResponseUpdateTests.cs (2)
41List<AIContent> newList = new(); 92Contents = new List<AIContent>
Microsoft.Extensions.AI.Evaluation (2)
CompositeEvaluator.cs (1)
109var metrics = new List<EvaluationMetric>();
EvaluationMetricExtensions.cs (1)
88metric.Diagnostics ??= new List<EvaluationDiagnostic>();
Microsoft.Extensions.AI.Evaluation.Integration.Tests (7)
QualityEvaluatorTests.cs (4)
91var messages = new List<ChatMessage>(); 131var messages = new List<ChatMessage>(); 168var messages = new List<ChatMessage>(); 203var messages = new List<ChatMessage>();
SafetyEvaluatorTests.cs (3)
184var messages = new List<ChatMessage>(); 262var messages = new List<ChatMessage>(); 590var messages = new List<ChatMessage>();
Microsoft.Extensions.AI.Evaluation.Quality (1)
Utilities\JsonOutputFixer.cs (1)
65var messages = new List<ChatMessage>
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (2)
SerializationChainingTests.cs (2)
27Messages = new List<ChatMessage> 32Contents = new List<AIContent>
Microsoft.Extensions.AI.Integration.Tests (9)
ChatClientIntegrationTests.cs (7)
219var activities = new List<Activity>(); 286var activities = new List<Activity>(); 318var activities = new List<Activity>(); 350var activities = new List<Activity>(); 407var activities = new List<Activity>(); 931var activities = new List<Activity>(); 1087var capturedOptions = new List<ChatOptions?>();
EmbeddingGeneratorIntegrationTests.cs (1)
111var activities = new List<Activity>();
VerbatimMultiPartHttpHandler.cs (1)
123parameters.Add(name, new List<JsonElement> { ParseContentToJsonElement(rawValue) });
Microsoft.Extensions.AI.OpenAI (1)
OpenAIImageGenerator.cs (1)
157List<AIContent> contents = new();
Microsoft.Extensions.AI.OpenAI.Tests (14)
OpenAIConversionTests.cs (14)
550var updates = new List<ChatResponseUpdate>(); 551var result = new List<StreamingChatCompletionUpdate>(); 577var result = new List<StreamingChatCompletionUpdate>(); 599var result = new List<StreamingChatCompletionUpdate>(); 633var result = new List<StreamingChatCompletionUpdate>(); 663var result = new List<StreamingChatCompletionUpdate>(); 698var result = new List<StreamingChatCompletionUpdate>(); 732var result = new List<StreamingChatCompletionUpdate>(); 771var result = new List<StreamingChatCompletionUpdate>(); 800var result = new List<StreamingChatCompletionUpdate>(); 831var result = new List<StreamingChatCompletionUpdate>(); 959var messages = new List<ChatMessage> 996var messages = new List<ChatMessage> 1031var messages = new List<ChatMessage>
Microsoft.Extensions.AI.Tests (24)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (9)
81var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 142var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 251var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 270var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 289var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 317var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 345var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 413var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 441var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
ChatCompletion\DistributedCachingChatClientTest.cs (1)
766var result = new List<T>();
ChatCompletion\FunctionInvokingChatClientTests.cs (4)
687var activities = new List<Activity>(); 726var messages = new List<ChatMessage> 784var messages = new List<ChatMessage> 819var invocationContexts = new List<FunctionInvocationContext>();
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
27var activities = new List<Activity>();
ChatCompletion\ReducingChatClientTests.cs (5)
34var originalMessages = new List<ChatMessage> 42var reducedMessages = new List<ChatMessage> 72var updates = new List<ChatResponseUpdate>(); 97var reducedMessages = new List<ChatMessage> { new(ChatRole.User, "Reduced message") }; 118await client.GetResponseAsync(new List<ChatMessage> { new(ChatRole.User, "Original message") });
ChatReduction\MessageCountingChatReducerTests.cs (1)
164var messages = new List<ChatMessage>();
ChatReduction\SummarizingChatReducerTests.cs (1)
121var messages = new List<ChatMessage>();
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
25var activities = new List<Activity>();
Functions\AIFunctionFactoryTest.cs (1)
36Assert.Throws<ArgumentException>("method", () => AIFunctionFactory.Create(typeof(List<>).GetMethod("Add")!, new List<int>()));
Microsoft.Extensions.ApiDescription.Client (1)
GetOpenApiReferenceMetadata.cs (1)
52var outputs = new List<ITaskItem>(Inputs.Length);
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 (1)
src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Microsoft.Extensions.AsyncState.Tests (3)
AsyncStateTests.cs (3)
218var l = new List<object?>(); 226var l = new List<object?>(new object?[5]); 234var l = new List<object?>(new object?[5]);
Microsoft.Extensions.Caching.Memory (8)
CacheEntry.CacheEntryTokens.cs (3)
24internal List<IChangeToken> ExpirationTokens => _expirationTokens ??= new List<IChangeToken>(); 25internal List<PostEvictionCallbackRegistration> PostEvictionCallbacks => _postEvictionCallbacks ??= new List<PostEvictionCallbackRegistration>(); 39_expirationTokenRegistrations ??= new List<IDisposable>(1);
MemoryCache.cs (5)
62_allStats = new List<WeakReference<Stats>>(); 584var entriesToRemove = new List<CacheEntry>(); 586var lowPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>(); 587var normalPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>(); 588var highPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>();
Microsoft.Extensions.Compliance.Abstractions (1)
src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Classification\DataClassificationSetTests.cs (2)
17var dc3 = new DataClassificationSet(new List<DataClassification> { FakeTaxonomy.PublicData }); 39var dc3 = new DataClassificationSet(new List<DataClassification> { FakeTaxonomy.PublicData });
Microsoft.Extensions.Configuration (11)
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>();
ConfigurationRoot.cs (1)
32_changeTokenRegistrations = new List<IDisposable>(providers.Count);
ConfigurationSectionDebugView.cs (1)
45var data = new List<ConfigurationSectionDebugView>();
ReferenceCountedProvidersManager.cs (2)
15private ReferenceCountedProviders _refCountedProviders = ReferenceCountedProviders.Create(new List<IConfigurationProvider>()); 71_refCountedProviders.Providers = new List<IConfigurationProvider>(_refCountedProviders.Providers)
Microsoft.Extensions.Configuration.Binder (4)
ConfigurationBinder.cs (4)
234(missingPropertyNames ??= new()).Add($"'{cs.Key}'"); 629List<string> missingParameters = new(); 859var list = new List<object?>(); 1102var allProperties = new List<PropertyInfo>();
Microsoft.Extensions.Configuration.KeyPerFile.Tests (3)
ConfigurationProviderCommandLineTest.cs (1)
17var testFiles = new List<IFileInfo>();
ConfigurationProviderTestBase.cs (1)
343var values = new List<KeyValuePair<string, string>>();
KeyPerFileTests.cs (1)
492_list = new List<IFileInfo>(files);
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 (12)
DependencyInjectionEventSource.cs (1)
28private readonly List<WeakReference<ServiceProvider>> _providers = new();
ServiceLookup\CallSiteChain.cs (1)
51var ordered = new List<KeyValuePair<ServiceIdentifier, ChainItemInfo>>(_callSiteChain);
ServiceLookup\CallSiteFactory.cs (2)
316List<KeyValuePair<int, ServiceCallSite>> callSitesByIndex = new(); 897newCacheItem._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 (3)
94_disposables ??= new List<object>(); 255public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.RootProvider.CallSiteFactory.Descriptors); 256public List<object> Disposables => new List<object>(_serviceProvider.Disposables);
ServiceProvider.cs (3)
84exceptions ??= new List<Exception>(); 315public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.Root.RootProvider.CallSiteFactory.Descriptors); 316public List<object> Disposables => new List<object>(_serviceProvider.Root.Disposables);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
18private readonly List<ServiceDescriptor> _descriptors = new List<ServiceDescriptor>();
Microsoft.Extensions.DependencyModel (15)
CompilationLibrary.cs (2)
51var assemblies = new List<string>(); 58var assemblies = new List<string>();
DependencyContextJsonReader.cs (10)
351var targets = new List<Target>(); 374var libraries = new List<TargetLibrary>(); 453var dependencies = new List<Dependency>(); 478var runtimes = new List<string>(); 502var runtimeFiles = new List<RuntimeFile>(); 549var runtimeTargets = new List<RuntimeTargetEntryStub>(); 603var resources = new List<ResourceAssembly>(); 728var runtimeFallbacks = new List<RuntimeFallbacks>(); 793var runtimeAssemblyGroups = new List<RuntimeAssetGroup>(); 794var nativeLibraryGroups = new List<RuntimeAssetGroup>();
Resolution\AppBaseCompilationAssemblyResolver.cs (2)
70var directories = new List<string>() 95var paths = new List<string>();
Utf8JsonReaderExtensions.cs (1)
74var items = new List<string?>();
Microsoft.Extensions.Diagnostics (1)
Metrics\DefaultMeterFactory.cs (1)
49meterList = new List<FactoryMeter>();
Microsoft.Extensions.Diagnostics.Abstractions (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 (2)
HealthCheckPublisherHostedService.cs (1)
114var timers = new List<Timer>(delayPeriodGroups.Count);
HealthCheckServiceOptions.cs (1)
16public ICollection<HealthCheckRegistration> Registrations { get; } = new List<HealthCheckRegistration>();
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (8)
ApplicationLifecycleHealthChecksExtensionsTests.cs (1)
41serviceCollection.AddHealthChecks().AddApplicationLifecycleHealthCheck(new List<string> { "test1", "test2" });
ManualHealthCheckExtensionsTests.cs (1)
36serviceCollection.AddHealthChecks().AddManualHealthCheck(new List<string> { "test1", "test2" });
TelemetryHealthChecksPublisherTests.cs (6)
26new List<HealthStatus> { HealthStatus.Healthy }, 34new List<HealthStatus> { HealthStatus.Degraded }, 42new List<HealthStatus> { HealthStatus.Unhealthy }, 50new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Healthy }, 58new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Unhealthy }, 66new List<HealthStatus> { HealthStatus.Healthy, HealthStatus.Degraded, HealthStatus.Unhealthy },
Microsoft.Extensions.Diagnostics.HealthChecks.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 (2)
src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Windows\Network\WindowsNetworkMetrics.cs (1)
48List<Measurement<long>> measurements = new(24);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (24)
Helpers\TestMeterFactory.cs (1)
12public List<Meter> Meters { get; } = new List<Meter>();
Linux\LinuxCountersTests.cs (1)
103var samples = new List<(Instrument instrument, long value)>();
Linux\LinuxUtilizationProviderTests.cs (5)
66var samples = new List<(Instrument instrument, double value)>(); 146var samples = new List<(Instrument instrument, double value)>(); 261var samples = new List<(Instrument instrument, double value)>(); 332var samples = new List<(Instrument instrument, double value)>(); 398var samples = new List<(Instrument instrument, double value)>();
ResourceMonitoringServiceTests.cs (15)
42var publishersList = new List<IResourceUtilizationPublisher> 99var publishersList = new List<IResourceUtilizationPublisher> 131var publishersList = new List<IResourceUtilizationPublisher> 173new List<IResourceUtilizationPublisher> 206new List<IResourceUtilizationPublisher> 247new List<IResourceUtilizationPublisher> 279new List<IResourceUtilizationPublisher> 321new List<IResourceUtilizationPublisher> 446new List<IResourceUtilizationPublisher> 555new List<IResourceUtilizationPublisher> 595new List<IResourceUtilizationPublisher> 617new List<IResourceUtilizationPublisher> 657new List<IResourceUtilizationPublisher> 681new List<IResourceUtilizationPublisher> 704new 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)
76var l = new List<object?>(); 144var l = new List<KeyValuePair<string, string?>>();
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Logging\FakeLoggerTests.cs (2)
74var l = new List<KeyValuePair<string, object?>> 130var l = new List<KeyValuePair<string, object?>>
Microsoft.Extensions.FileProviders.Composite (3)
CompositeDirectoryContents.cs (2)
42_directories = new List<IDirectoryContents>(); 62_files = new List<IFileInfo>();
CompositeFileProvider.cs (1)
79var changeTokens = new List<IChangeToken>();
Microsoft.Extensions.FileProviders.Embedded (5)
EmbeddedFileProvider.cs (1)
151var entries = new List<IFileInfo>();
Manifest\ManifestDirectory.cs (1)
89var list = new List<ManifestEntry>(Children.Count);
Manifest\ManifestDirectoryInfo.cs (1)
60var entries = new List<IFileInfo>();
Manifest\ManifestParser.cs (2)
50var entriesList = new List<ManifestEntry>(); 100var children = new List<ManifestEntry>();
Microsoft.Extensions.FileSystemGlobbing (18)
InMemoryDirectoryInfo.cs (3)
38files ??= new List<string>(); 48var fileList = new List<string>(files.Count()); 105dict[name] = new List<string> { file };
Internal\MatcherContext.cs (2)
74var entities = new List<FileSystemInfoBase?>(); 98var subDirectories = new List<DirectoryInfoBase>();
Internal\PathSegments\WildcardPathSegment.cs (1)
14string.Empty, new List<string>(), string.Empty, StringComparison.OrdinalIgnoreCase);
Internal\PatternContexts\PatternContextLinear.cs (1)
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 (6)
41var allSegments = new List<IPathSegment>(); 114var contains = new List<string>(); 175segmentsPatternStartsWith = new List<IPathSegment>(allSegments); 176segmentsPatternEndsWith = new List<IPathSegment>(); 177segmentsPatternContains = new List<IList<IPathSegment>>(); 182segmentsPatternEndsWith = new List<IPathSegment>();
MatcherExtensions.cs (4)
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 (16)
HostApplicationBuilder.cs (7)
148optionList ??= new List<KeyValuePair<string, string?>>(); 153optionList ??= new List<KeyValuePair<string, string?>>(); 158optionList ??= new List<KeyValuePair<string, string?>>(); 260private readonly List<Action<IConfigurationBuilder>> _configureHostConfigActions = new(); 261private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppConfigActions = new(); 262private readonly List<IConfigureContainerAdapter> _configureContainerActions = new(); 263private 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 (5)
87List<Exception> exceptions = new(); 230List<Exception> exceptions = new(); 349tasks ??= new(); 403_result ??= new List<IHostedLifecycleService>(); 459public List<IHostedService> HostedServices => new List<IHostedService>(host._hostedServices ??= host.Services.GetRequiredService<IEnumerable<IHostedService>>());
Microsoft.Extensions.Hosting.Testing.Tests (2)
HostingFakesExtensionsTests.cs (2)
314var firstCallbackTarget = new List<string>(); 315var secondCallbackTarget = new List<string>();
Microsoft.Extensions.Http (5)
DefaultHttpMessageHandlerBuilder.cs (1)
40public override IList<DelegatingHandler> AdditionalHandlers { get; } = new List<DelegatingHandler>();
HttpClientFactoryOptions.cs (3)
28public IList<Action<HttpMessageHandlerBuilder>> HttpMessageHandlerBuilderActions { get; } = new List<Action<HttpMessageHandlerBuilder>>(); 33public IList<Action<HttpClient>> HttpClientActions { get; } = new List<Action<HttpClient>>(); 106internal List<Action<HttpMessageHandlerBuilder>> LoggingBuilderActions { get; } = new List<Action<HttpMessageHandlerBuilder>>();
Logging\HttpHeadersLogValue.cs (1)
39var values = new List<KeyValuePair<string, object>>();
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
Benchmarks\HeadersReaderBenchmark.cs (1)
34_outputBuffer = new(capacity: 10240);
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 }, 327new List<IHttpClientLogEnricher> { testEnricher }, 434new List<IHttpClientLogEnricher> { testEnricher }, 550new List<IHttpClientLogEnricher> { testEnricher }, 644new List<IHttpClientLogEnricher> { testEnricher }, 688new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }, 731new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }, 766var enrichers = new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }; 813new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }, 915new List<IHttpClientLogEnricher> { testEnricher },
Logging\HttpClientLoggingExtensionsTest.cs (2)
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 (4)
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>();
src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Microsoft.Extensions.Http.Resilience.Tests (14)
Hedging\StandardHedgingTests.cs (1)
240var requests = new List<HttpRequestMessage>();
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
228var requests = new List<HttpRequestMessage>();
Resilience\HttpResilienceMetricsEnricherTests.cs (3)
19var tags = new List<KeyValuePair<string, object?>>(); 32var tags = new List<KeyValuePair<string, object?>>(); 45var tags = new List<KeyValuePair<string, object?>>();
Routing\OrderedRoutingStrategyTest.cs (1)
60var groups = new List<UriEndpointGroup>(options.Groups)
Routing\RoutingHelperTest.cs (2)
23var result = new List<int> { 1, 2, 3, 4 }.SelectByWeight(v => v, randomizer.Object); 34Assert.Throws<InvalidOperationException>(() => new List<int> { 1, 2, 3, 4 }.SelectByWeight(v => v, randomizer.Object));
Routing\WeightedRoutingStrategyTest.cs (6)
81var groups = new List<WeightedUriEndpointGroup>(options.Groups) 112var groups = new List<WeightedUriEndpointGroup>(options.Groups) 124var groups = new List<WeightedUriEndpointGroup>(options.Groups) 136var groups = new List<WeightedUriEndpointGroup>(options.Groups) 148var groups = new List<WeightedUriEndpointGroup>(options.Groups) 157var groups = new List<WeightedUriEndpointGroup>(options.Groups)
Microsoft.Extensions.Identity.Core (23)
IdentityResult.cs (1)
16private readonly List<IdentityError> _errors = new List<IdentityError>();
PasswordValidator.cs (6)
48errors ??= new List<IdentityError>(); 53errors ??= new List<IdentityError>(); 58errors ??= new List<IdentityError>(); 63errors ??= new List<IdentityError>(); 68errors ??= new List<IdentityError>(); 73errors ??= new List<IdentityError>();
RoleManager.cs (2)
77public IList<IRoleValidator<TRole>> RoleValidators { get; } = new List<IRoleValidator<TRole>>(); 405errors ??= new List<IdentityError>();
RoleValidator.cs (2)
52errors ??= new List<IdentityError>(); 61errors ??= new List<IdentityError>();
UserManager.cs (6)
159public IList<IUserValidator<TUser>> UserValidators { get; } = new List<IUserValidator<TUser>>(); 164public IList<IPasswordValidator<TUser>> PasswordValidators { get; } = new List<IPasswordValidator<TUser>>(); 1957var results = new List<string>(); 2452var newCodes = new List<string>(number); 2905errors ??= new List<IdentityError>(); 2938errors ??= new List<IdentityError>();
UserValidator.cs (6)
58errors ??= new List<IdentityError>(); 64errors ??= new List<IdentityError>(); 73errors ??= new List<IdentityError>(); 87errors ??= new List<IdentityError>(); 93errors ??= new List<IdentityError>(); 101errors ??= new List<IdentityError>();
Microsoft.Extensions.Identity.Stores (1)
UserStoreBase.cs (1)
978var updatedCodes = new List<string>(splitCodes.Where(s => s != code));
Microsoft.Extensions.Localization (1)
Internal\ResourceManagerStringProvider.cs (1)
76var names = new List<string>();
Microsoft.Extensions.Logging (10)
Logger.cs (5)
60exceptions ??= new List<Exception>(); 108exceptions ??= new List<Exception>(); 142exceptions ??= new List<Exception>(); 176List<LoggerProviderDebugView> providers = new List<LoggerProviderDebugView>(); 219List<object?> scopes = new List<object?>();
LoggerFactory.cs (4)
24private readonly List<ProviderRegistration> _providerRegistrations = new List<ProviderRegistration>(); 215var loggers = new List<LoggerInformation>(_providerRegistrations.Count); 232var messageLoggers = new List<MessageLogger>(); 233List<ScopeLogger>? scopeLoggers = _filterOptions.CaptureScopes ? new List<ScopeLogger>() : null;
LoggerFilterOptions.cs (1)
39internal List<LoggerFilterRule> RulesInternal { get; } = new List<LoggerFilterRule>();
Microsoft.Extensions.Logging.Abstractions (1)
LogValuesFormatter.cs (1)
19private readonly List<string> _valueNames = new List<string>();
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLoggerProvider.cs (1)
18private readonly List<LogMessage> _currentBatch = new List<LogMessage>();
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
424var rules = new List<LoggerFilterRule>();
Microsoft.Extensions.Logging.Generators (6)
LoggerMessageGenerator.Emitter.cs (1)
97var 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.ObjectPool.Tests (2)
DefaultObjectPoolTest.cs (1)
104return new List<int>(17);
DisposableObjectPoolTest.cs (1)
129return new List<int>(17);
Microsoft.Extensions.Options (8)
OptionsFactory.cs (4)
43_setups = setups as IConfigureOptions<TOptions>[] ?? new List<IConfigureOptions<TOptions>>(setups).ToArray(); 44_postConfigures = postConfigures as IPostConfigureOptions<TOptions>[] ?? new List<IPostConfigureOptions<TOptions>>(postConfigures).ToArray(); 45_validations = validations as IValidateOptions<TOptions>[] ?? new List<IValidateOptions<TOptions>>(validations).ToArray(); 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 (11)
Emitter.cs (1)
763var attrInstantiationStatementLines = new List<string>();
Model\ValidationAttributeInfo.cs (1)
10public List<string> ConstructorArguments { get; } = new();
Parser.cs (8)
48var results = new List<ValidatorType>(); 78var modelsValidatorTypeValidates = new List<ValidatedModel>(modelTypes.Count); 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 (12)
DnsServiceEndpointProvider.cs (1)
31var endpoints = new List<ServiceEndpoint>();
DnsSrvServiceEndpointProvider.cs (1)
34var endpoints = new List<ServiceEndpoint>();
FallbackDnsResolver.cs (1)
59addresses = new List<AddressResult>();
Resolver\DnsPrimitives.cs (1)
258List<ReadOnlyMemory<byte>> labels = new List<ReadOnlyMemory<byte>>();
Resolver\DnsResolver.cs (6)
72var results = new List<ServiceResult>(response.Answers.Count); 83List<AddressResult> addresses = new List<AddressResult>(); 178List<AddressResult> results = new List<AddressResult>(response.Answers.Count); 269addressList = new List<AddressResult>(); 591records = new(Math.Min(count, 32)); 904List<ReadOnlyMemory<byte>> labels = new();
Resolver\NetworkInfo.cs (1)
14List<IPEndPoint> servers = new List<IPEndPoint>();
Resolver\ResolvConf.cs (1)
20List<IPEndPoint> serverList = new();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (4)
Resolver\LoopbackDnsServer.cs (4)
144public List<(string, QueryType, QueryClass)> Questions { get; } = new List<(string, QueryType, QueryClass)>(); 145public List<DnsResourceRecord> Answers { get; } = new List<DnsResourceRecord>(); 146public List<DnsResourceRecord> Authorities { get; } = new List<DnsResourceRecord>(); 147public List<DnsResourceRecord> Additionals { get; } = new List<DnsResourceRecord>();
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ExtensionsServicePublicApiTests.cs (1)
150new List<IServiceEndpointProviderFactory>(),
Microsoft.Extensions.ServiceDiscovery.Yarp (3)
ServiceDiscoveryDestinationResolver.cs (3)
27var tasks = new List<Task<(List<(string Name, DestinationConfig Config)>, IChangeToken ChangeToken)>>(destinations.Count); 34var changeTokens = new List<IChangeToken>(); 61var results = new List<(string Name, DestinationConfig Config)>(result.Endpoints.Count);
Microsoft.Extensions.Telemetry (8)
Enrichment\ApplicationLogEnricher.cs (1)
36var l = new List<KeyValuePair<string, object>>();
Http\HttpRouteParser.cs (1)
104var segments = new List<Segment>();
Logging\ExtendedLogger.LegacyTagJoiner.cs (1)
22private readonly List<KeyValuePair<string, object?>> _extraTags = new(TagCapacity);
Logging\ExtendedLogger.ModernTagJoiner.cs (1)
23private readonly List<KeyValuePair<string, object?>> _extraTags = new(TagCapacity);
Logging\ExtendedLoggerFactory.cs (3)
103var tags = new List<KeyValuePair<string, object?>>(); 227var loggers = new List<LoggerInformation>(_providerRegistrations.Count); 245var messageLoggers = new List<MessageLogger>();
src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Microsoft.Extensions.Telemetry.Abstractions (4)
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>();
src\Shared\Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Logging\LoggerMessageHelperTests.cs (1)
41var d2 = new List<KeyValuePair<string?, string?>>
Microsoft.Extensions.Telemetry.Tests (13)
Enrichment\ProcessLogEnricherTests.cs (1)
53var enrichedProperties = new TestLogEnrichmentTagCollector(new List<KeyValuePair<string, object>>());
Logging\ExtendedLoggerTests.cs (2)
655var store = new List<string>(); 895new List<KeyValuePair<string, object?>>
Logging\TestConfiguration.cs (1)
25return new ConfigurationRoot(new List<IConfigurationProvider> { provider });
Sampling\LogSamplingRuleSelectorTests.cs (8)
20var rules = new List<RandomProbabilisticSamplerFilterRule> 51var rules = new List<RandomProbabilisticSamplerFilterRule> 75var rules = new List<RandomProbabilisticSamplerFilterRule> 93var rules = new List<RandomProbabilisticSamplerFilterRule> 111var rules = new List<RandomProbabilisticSamplerFilterRule> 129var rules = new List<RandomProbabilisticSamplerFilterRule> 147var rules = new List<RandomProbabilisticSamplerFilterRule> 164var rules = new List<RandomProbabilisticSamplerFilterRule>
Sampling\SamplingLoggerBuilderExtensionsTests.cs (1)
194configBuilder.AddInMemoryCollection(new List<KeyValuePair<string, string?>>
Microsoft.Extensions.TimeProvider.Testing.Tests (4)
FakeTimeProviderTests.cs (1)
504var calls = new List<object?>();
TimerTests.cs (3)
273var callbackTimes = new List<DateTimeOffset>(); 298var callbacks = new List<(int timerId, TimeSpan callbackTime)>(); 334var timers = new List<ITimer>();
Microsoft.Extensions.Validation (1)
TypeExtensions.cs (1)
96var implementedTypes = new List<Type>();
Microsoft.Extensions.Validation.GeneratorTests (1)
ValidationsGeneratorTestBase.cs (1)
132var embeddedTexts = new List<EmbeddedText>();
Microsoft.Extensions.Validation.Tests (2)
ValidatableParameterInfoTests.cs (1)
197var people = new List<Person>
ValidatableTypeInfoTests.cs (1)
121var validationErrors = new List<ValidationErrorContext>();
Microsoft.Extensions.Validation.ValidationsGenerator (3)
Parsers\ValidationsGenerator.TypesParser.cs (2)
127var members = new List<ValidatableProperty>(); 128var resolvedRecordProperty = new List<IPropertySymbol>();
src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
21private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
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 (7)
src\Generators\Microsoft.Gen.ComplianceReports\Parser.cs (1)
32var result = new List<ClassifiedType>();
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 (8)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
34List<Func<ITypeSymbol, bool>> sourceGeneratedComRecognizers = new();
ComClassGenerator.cs (1)
96List<StatementSyntax> vtableInitializationBlock = new()
ComInterfaceGenerator.cs (1)
817System.Collections.Generic.List<StatementSyntax> statements = new();
ComMethodContext.cs (2)
179var accumulator = new List<(ComInterfaceContext OwningInterface, Builder Method)>(); 201List<Builder> methods = new();
VirtualMethodPointerStubGenerator.cs (3)
46var setupStatements = new List<StatementSyntax> 239List<StatementSyntax> statements = new(); 271List<FunctionPointerParameterSyntax> functionPointerParameters = new();
Microsoft.Interop.JavaScript.JSImportGenerator (5)
JSExportGenerator.cs (3)
227var registerStatements = new List<StatementSyntax>(); 230var attributes = new List<AttributeListSyntax>(); 441var signatureArgs = new List<ArgumentSyntax>
JSGeneratorFactory.cs (1)
300var argsMarshalers = new List<MarshalerType>();
JSMarshalAsAttributeInfoParser.cs (1)
25List<JSTypeFlags> jsTypeArguments = new List<JSTypeFlags>();
Microsoft.Interop.LibraryImportGenerator (12)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
32List<Diagnostic> fixedDiagnostics = new(context.Diagnostics.Where(IsRequiresDiableRuntimeMarshallingDiagnostic));
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 (9)
DiagnosticExtensions.cs (2)
82(additionalLocations ??= new()).Add(location); 186(additionalLocations ??= new()).Add(location);
GeneratorDiagnosticsBag.cs (1)
22private readonly List<DiagnosticInfo> _diagnostics = new();
Marshalling\ElementsMarshalling.cs (1)
264var statements = new List<StatementSyntax>()
Marshalling\MarshallerHelpers.cs (3)
125List<T> nodeIdToElement = new(elements.Count); 151List<T> L = new(elements.Count); 153List<T> S = new(elements.Count);
Marshalling\MarshallingGeneratorExtensions.cs (1)
110List<AttributeSyntax> rehydratedAttributes = new();
SyntaxExtensions.cs (1)
86List<SyntaxToken> strippedTokens = new();
Microsoft.Maui (27)
Animations\Animation.cs (1)
71 protected List<Animation> childrenAnimations = new();
Animations\AnimationManager.cs (3)
9 readonly List<Animation> _animations = new(); 87 var animations = new List<Animation>(_animations); 132 var animations = new List<Animation>(_animations);
Animations\Lerp.cs (1)
180 var types = new List<Type> { type };
Core\Extensions\IPickerExtension.cs (1)
19 var returnValue = new List<string>(picker.GetCount());
Core\Extensions\VisualTreeElementExtensions.cs (3)
66 elements = new List<IVisualTreeElement>(); 212 var platformParentPath = new List<PlatformView>(); 311 var elements = new List<IVisualTreeElement>();
Extensions\EnumerableExtensions.cs (1)
45 result.Add(group, new List<TSource> { item });
Hosting\EssentialsMauiAppBuilderExtensions.cs (1)
192 _appActions ??= new List<AppAction>();
Hosting\Internal\FontCollection.cs (1)
8 readonly List<FontDescriptor> _descriptors = new List<FontDescriptor>();
Hosting\Internal\MauiServiceCollection.cs (1)
11 readonly List<ServiceDescriptor> _descriptors = new List<ServiceDescriptor>();
LifecycleEvents\LifecycleEventService.cs (1)
26 _mapper[eventName] = delegates = new List<Delegate>();
Platform\WindowExtensions.cs (2)
22 return new List<IWindow>(); 25 return new List<IWindow>();
PropertyMapper.cs (1)
180 var updatePropertiesMappers = new List<Action<IElementHandler, IElement>>(updatePropertiesKeys.Count);
ViewExtensions.cs (1)
39 List<IView> _flatList = new List<IView>();
VisualDiagnostics\AdornerModel.cs (1)
13 List<Rect> marginZones = new List<Rect>();
VisualDiagnostics\VisualDiagnosticsOverlay.cs (2)
192 return new List<IScrollView>(); 195 return new List<IScrollView>();
WeakEventManager.cs (3)
42 var toRaise = new List<(object? subscriber, MethodInfo handler)>(); 43 var toRemove = new List<Subscription>(); 109 targets = new List<Subscription>();
WeakList.cs (1)
14 readonly List<WeakReference<T>> _list = new();
WindowOverlay\WindowOverlay.cs (2)
134 var elements = new List<IVisualTreeElement>(); 135 var windowElements = new List<IWindowOverlayElement>();
Microsoft.Maui.Controls (159)
Accelerator.cs (1)
40 var modifiers = new List<string>();
Application\Application.cs (2)
351 var changedResources = new List<KeyValuePair<string, object>>(); 417 readonly List<Window> _windows = new();
BindingExpression.cs (2)
24 readonly List<BindingExpressionPart> _parts = new List<BindingExpressionPart>(); 457 _ancestryChain = new List<WeakReference<Element>>();
Brush\BrushTypeConverter.cs (1)
415 var offsets = new List<float>();
Cells\Cell.cs (2)
266 _currentContextActions = new List<MenuItem>(_contextActions); 323 var children = new List<Maui.IVisualTreeElement>(LogicalChildrenInternal);
ContentPage\HideSoftInputOnTappedChanged\HideSoftInputOnTappedChangedManager.cs (1)
8 List<ContentPage> _contentPages = new List<ContentPage>();
DefinitionCollection.cs (2)
13 internal DefinitionCollection() => _internalList = new List<T>(); 15 internal DefinitionCollection(params T[] items) => _internalList = new List<T>(items);
DependencyService.cs (1)
19 static readonly List<DependencyType> DependencyTypes = new List<DependencyType>();
Element\Element.cs (4)
175 _internalChildren ??= new List<Element>(); 374 _changeHandlers ??= new List<Action<object, ResourcesChangedEventArgs>>(2); 758 _bindableResources = new List<BindableObject>(); 770 changedResources = changedResources ?? new List<(BindableProperty, SetterSpecificity)>();
Element\Element_StyleSheets.cs (3)
29 var list = new List<string>(); 48 var sheets = new List<StyleSheet>(); 78 mergedSheets = new List<StyleSheet>(childSheets);
ElementTemplate.cs (1)
42 _changeHandlers = _changeHandlers ?? new List<Action<object, ResourcesChangedEventArgs>>(1);
EnumerableExtensions.cs (1)
56 foreach (IGestureRecognizer item in new List<IGestureRecognizer>(gestures))
FontAttributes.cs (1)
72 var parts = new List<string>();
FormattedString.cs (1)
86 var removed = new List<Span>(this);
GestureElement.cs (1)
72 List<IGestureRecognizer> removed = new List<IGestureRecognizer>(this);
Interactivity\EventTrigger.cs (1)
16 readonly List<WeakReference<BindableObject>> _associatedObjects = new List<WeakReference<BindableObject>>();
Interactivity\TriggerBase.cs (1)
139 _actual = new List<T>();
Internals\ProfilePage.cs (1)
35 public static List<ProfileDatum> Data = new List<ProfileDatum>();
Items\MarshalingObservableCollection.cs (1)
56 var items = new List<object>();
Items\SelectableItemsView.cs (4)
39 static readonly IList<object> s_empty = new List<object>(0); 88 var oldSelection = new List<object>(SelectedItems); 186 IList<object> previousSelection = new List<object>(); 187 IList<object> newSelection = new List<object>();
Items\SelectionChangedEventArgs.cs (5)
15 static readonly IReadOnlyList<object> s_empty = new List<object>(0); 19 PreviousSelection = previousSelection != null ? new List<object>(1) { previousSelection } : s_empty; 20 CurrentSelection = currentSelection != null ? new List<object>(1) { currentSelection } : s_empty; 25 PreviousSelection = new List<object>(previousSelection ?? throw new ArgumentNullException(nameof(previousSelection))); 26 CurrentSelection = new List<object>(currentSelection ?? throw new ArgumentNullException(nameof(currentSelection)));
Items\SelectionList.cs (3)
12 static readonly IList<object> s_empty = new List<object>(0); 21 _internal = items ?? new List<object>(); 118 var items = new List<object>();
Label\Label.cs (1)
397 var spans = new List<GestureElement>();
Layout\Layout.cs (1)
38 readonly private protected List<IView> _children = new();
LegacyLayouts\GridCalc.cs (4)
95 List<ColumnDefinition> _columns = new List<ColumnDefinition>(); 96 List<RowDefinition> _rows = new List<RowDefinition>(); 493 _columns = grid.ColumnDefinitions == null ? new List<ColumnDefinition>() : grid.ColumnDefinitions.ToList(); 494 _rows = grid.RowDefinitions == null ? new List<RowDefinition>() : grid.RowDefinitions.ToList();
LegacyLayouts\RelativeLayout.cs (4)
69 var result = new List<View>(); 245 var parents = new List<View>(); 277 var parents = new List<View>(); 377 var parents = new List<View>();
ListView\ListView.cs (1)
24 readonly List<Element> _visualChildren = new List<Element>();
Menu\MenuBarItem.cs (1)
43 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuFlyout.cs (1)
12 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuFlyoutItem.cs (1)
29 IReadOnlyList<IKeyboardAccelerator>? IMenuFlyoutItem.KeyboardAccelerators => new List<IKeyboardAccelerator>(KeyboardAccelerators);
Menu\MenuFlyoutSubItem.cs (1)
9 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuItemTracker.cs (2)
16 List<WeakReference<Page>> _additionalTargets = new(); 103 var result = new List<TMenuItem>();
MergedStyle.cs (3)
15 static readonly IList<Type> s_stopAtTypes = new List<Type> { typeof(View), 23 readonly List<BindableProperty> _implicitStyles = new List<BindableProperty>(); 70 _classStyleProperties = new List<BindableProperty>();
MessagingCenter.cs (1)
238 var list = new List<Subscription> { value };
MultiBinding.cs (2)
48 get => _bindings ?? (_bindings = new List<BindingBase>()); 58 var bindingsclone = new List<BindingBase>(Bindings.Count);
NavigationModel.cs (4)
10 readonly List<Page> _modalStack = new List<Page>(); 11 readonly List<List<Page>> _navTree = new List<List<Page>>(); 172 _navTree.Add(new List<Page> { page }); 194 _navTree.Add(new List<Page> { page });
NavigationPage\NavigationPage.cs (2)
657 var immutableNavigationStack = new List<IView>(NavigationStack); 815 List<Page> pagesToRemove = new List<Page>();
NavigationPage\NavigationPageToolbar.cs (1)
22 List<NavigationPage> _navigationPagesStack = new List<NavigationPage>();
NavigationProxy.cs (2)
27 Lazy<List<Page>> _pushStack = new Lazy<List<Page>>(() => new List<Page>()); 43 _pushStack = new Lazy<List<Page>>(() => new List<Page>());
NavigationStepRequest.cs (2)
24 List<NavigationStepRequest> _innerList = new List<NavigationStepRequest>(); 25 List<Page> _pages = new List<Page>();
ObservableList.cs (1)
51 var items = new List<T>(count);
OnPlatform.cs (1)
13 Platforms = new List<On>();
OrderedDictionary.cs (1)
65 _keyOrder = new List<TKey>(capacity);
Page\Page.cs (2)
81 List<Action> _pendingActions = new List<Action>(); 585 var startingLayout = new List<Rect>(logicalChildren.Count);
Platform\ModalNavigationManager\ModalNavigationManager.cs (1)
16 List<Page> _platformModalPages = new List<Page>();
PlatformBindingHelpers.cs (2)
191 public IList<KeyValuePair<BindableProperty, BindingBase>> BindingsBackpack { get; } = new List<KeyValuePair<BindableProperty, BindingBase>>(); 192 public IList<KeyValuePair<BindableProperty, object>> ValuesBackpack { get; } = new List<KeyValuePair<BindableProperty, object>>();
Profiler.cs (1)
50 Data = new List<Datum>(Capacity);
Region.cs (1)
39 var positions = new List<Rect>();
Registrar.cs (1)
371 properties[attribute.CssPropertyName] = new List<StylePropertyAttribute> { attribute };
RelativeBindingSource.cs (1)
104 chain: new List<Element> { relativeSourceTarget },
ResourceDictionary.cs (3)
114 _collectionTrack = _collectionTrack ?? new List<ResourceDictionary>(); 352 classes = new List<Style>(); 367 StyleSheets = StyleSheets ?? new List<StyleSheets.StyleSheet>(2);
ResourcesExtensions.cs (2)
27 var mergedClassStyles = new List<Style>(resources[res.Key] as List<Style>); 42 var mergedClassStyles = new List<Style>(resources[res.Key] as List<Style>);
Shapes\GeometryHelper.cs (1)
27 var points = new List<Point>();
Shapes\PathGeometry.cs (1)
99 List<Point> points = new List<Point>();
Shell\BaseShellItem.cs (1)
316 List<string> bindableObjectStyle = new List<string>() {
Shell\RequestDefinition.cs (1)
18 List<String> builder = new List<string>();
Shell\RouteRequestBuilder.cs (5)
13 readonly List<string> _globalRouteMatches = new List<string>(); 14 readonly List<string> _matchedSegments = new List<string>(); 15 readonly List<string> _fullSegments = new List<string>(); 182 List<string> matches = new List<string>(); 183 List<string> currentSet = new List<string>(_matchedSegments);
Shell\Shell.cs (3)
632 List<(IAppearanceObserver Observer, Element Pivot)> _appearanceObservers = new List<(IAppearanceObserver Observer, Element Pivot)>(); 633 List<IFlyoutBehaviorObserver> _flyoutBehaviorObservers = new List<IFlyoutBehaviorObserver>(); 851 var requestBuilder = new RouteRequestBuilder(new List<string>()
Shell\ShellElementCollection.cs (1)
29 _notifyCollectionChangedEventArgs = new List<NotifyCollectionChangedEventArgs>();
Shell\ShellFlyoutItemsManager.cs (3)
101 var result = new List<List<Element>>(); 103 var currentGroup = new List<Element>(); 230 currentGroup = new List<Element>();
Shell\ShellNavigationManager.cs (1)
519 List<string> routeStack = new List<string>();
Shell\ShellNavigationState.cs (1)
75 List<string> toKeep = new List<string>();
Shell\ShellSection.cs (9)
41 new List<(object Observer, Action<Page> Callback)>(); 42 readonly List<IShellContentInsetObserver> _observers = new List<IShellContentInsetObserver>(); 137 _navStack = new List<Page> { null }; 214 List<Page> _navStack = new List<Page> { null }; 332 var navStackCopy = new List<Page>(_navStack); 353 List<Page> pagesToInsert = new List<Page>(); 525 List<Page> modalPageStacks = new List<Page>(); 526 List<Page> nonModalPageStacks = new List<Page>(); 837 _navStack = new List<Page> { null };
Shell\ShellUriHandler.cs (19)
27 List<string> restOfPath = new List<string>(); 44 List<string> buildUpPages = new List<string>(); 149 var segments = new List<string>(RetrievePaths(pathAndQuery[0])); 235 List<RouteRequestBuilder> possibleRoutePaths = new List<RouteRequestBuilder>(); 246 var segments = new List<string>(RetrievePaths(localPath)); 320 var builder = new RouteRequestBuilder(routeKey, routeKey, null, new List<string>(1) { routeKey }); 321 return new List<RouteRequestBuilder> { builder }; 357 var pureRoutesMatch = new List<RouteRequestBuilder>(); 358 var pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 407 return new List<RouteRequestBuilder> { new RouteRequestBuilder(searchPath, searchPath, null, segments) }; 423 return new List<RouteRequestBuilder> { builder }; 425 return new List<RouteRequestBuilder>(); 434 List<RouteRequestBuilder> pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 438 List<string> fullRouteWithNewSegments = new List<string>(currentSegments); 458 ExpandOutGlobalRoutes(new List<RouteRequestBuilder> { routeRequestBuilder }, routeKeys); 618 List<RouteRequestBuilder> pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 642 List<RouteRequestBuilder> bestMatches = new List<RouteRequestBuilder>(); 678 List<RouteRequestBuilder> betterMatches = new List<RouteRequestBuilder>(); 783 List<string> paths = new List<string>();
Style.cs (1)
33 Setters = new List<Setter>();
SwipeView\SwipeView.cs (2)
16 readonly List<ISwipeItem> _swipeItems = new List<ISwipeItem>(); 101 List<Maui.IVisualTreeElement> elements = new List<IVisualTreeElement>();
SynchronizedList.cs (1)
11 readonly List<T> _list = new List<T>();
TableView\TableView.cs (1)
171 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren() => new List<Maui.IVisualTreeElement>() { this.Root };
TemplatedItemsList.cs (8)
45 readonly List<TItem> _templatedObjects = new List<TItem>(); 684 var contentItems = new List<TItem>(items.Count); 807 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count); 827 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 847 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 848 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count); 890 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 1304 var newList = new List<string>(list.Count);
TitleBar\TitleBar.cs (1)
253 PassthroughElements = new List<IView>();
TypedBinding.cs (1)
352 _ancestryChain = new List<WeakReference<Element>>();
ViewExtensions.cs (1)
380 var result = new List<Page>();
VisualElement\VisualElement.cs (2)
1551 var changedResources = new List<KeyValuePair<string, object>>(); 1560 var mergedClassStyles = new List<Style>(Resources[value.Key] as List<Style>);
VisualStateManager.cs (2)
449 var conflicts = new List<StateTriggerBase>(); 733 _internalList = new List<T>();
WebView\WebView.cs (1)
304 var uniqueMatches = new List<string>();
Window\Window.cs (1)
88 _visualChildren = new List<IVisualTreeElement>();
Microsoft.Maui.Controls.BindingSourceGen (7)
BindingCodeWriter.cs (2)
55 var propertyAccessors = new List<string> 134 var unsafeAccessorsStrings = new List<string>();
BindingTransformer.cs (1)
19 var newPath = new List<IPathPart>();
PathParser.cs (3)
22 IdentifierNameSyntax _ => Result<List<IPathPart>>.Success(new List<IPathPart>()), 113 return Result<List<IPathPart>>.Success(new List<IPathPart>([part])); 194 return Result<List<IPathPart>>.Success(new List<IPathPart>([part]));
Setter.cs (1)
13 List<string> patternMatchingExpressions = new();
Microsoft.Maui.Controls.Build.Tasks (23)
BindablePropertyReferenceExtensions.cs (1)
45 var attributes = new List<CustomAttribute>();
CompiledMarkupExtensions\DataTemplateExtension.cs (1)
29 return new List<Instruction> {
CompiledMarkupExtensions\TypeExtension.cs (1)
35 return new List<Instruction> {
CreateObjectVisitor.cs (1)
329 var arguments = new List<INode>();
ExpandMarkupsVisitor.cs (2)
11 readonly IList<XmlName> _skips = new List<XmlName> 139 var childnodes = new List<(XmlName, INode)>();
MethodBodyExtensions.cs (1)
67 var ldlocUsed = new List<VariableDefinition>();
MethodDefinitionExtensions.cs (1)
14 var arguments = new List<INode>();
NodeILExtensions.cs (2)
471 var nodes = new List<IElementNode>(); 581 var scopes = new List<VariableDefinition>();
PerformanceProvider.cs (1)
15 public readonly List<Tuple<string, long>> StartTimes = new List<Tuple<string, long>>();
SetNamescopesAndRegisterNamesVisitor.cs (2)
52 namesInNamescope = new List<string>(); 80 IList<string> namesInNamescope = new List<string>();
SetPropertiesVisitor.cs (3)
681 var properties = new List<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)>(); 1057 var partGetters = new List<MethodDefinition>(); 1136 var handlers = new List<(MethodDefinition PartGetter, string PropertyName)>();
TypeReferenceExtensions.cs (1)
411 List<TypeReference> args = new List<TypeReference>();
XamlCTask.cs (5)
101 LoggedErrors ??= new(); 233 var resourcesToPrune = new List<EmbeddedResource>(); 312 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(e); 332 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(error); 406 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(e);
XmlTypeExtensions.cs (1)
15 var xmlnsDefinitions = new List<XmlnsDefinitionAttribute>();
Microsoft.Maui.Controls.Foldable (1)
TwoPaneViewLayoutGuide.cs (1)
41 List<string> _pendingPropertyChanges = new List<string>();
Microsoft.Maui.Controls.SourceGen (9)
CodeBehindGenerator.cs (2)
197 var xmlnsDefinitions = new List<XmlnsDefinitionAttribute>(); 198 var internalsVisible = new List<IAssemblySymbol>();
src\Controls\src\Xaml\TypeArgumentsParser.cs (1)
12 var typeList = new List<XmlType>();
src\Controls\src\Xaml\XamlNode.cs (3)
162 SkipProperties = new List<XmlName>(); 163 CollectionItems = new List<INode>(); 273 var items = new List<INode>();
src\Controls\src\Xaml\XmlTypeXamlExtensions.cs (3)
44 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 64 var lookupNames = new List<string>(capacity: 2); 80 var potentialTypes = new List<(string typeName, string clrNamespace, string assemblyName)>();
Microsoft.Maui.Controls.Xaml (19)
ApplyPropertiesVisitor.cs (1)
24 public static readonly IList<XmlName> Skips = new List<XmlName> {
ExpandMarkupsVisitor.cs (2)
17 public static readonly IList<XmlName> Skips = new List<XmlName> 137 var childnodes = new List<(XmlName, INode)>();
MarkupExtensions\ArrayExtension.cs (1)
17 Items = new List<object>();
PruneIgnoredNodesVisitor.cs (1)
36 (parentNode.IgnorablePrefixes ?? (parentNode.IgnorablePrefixes = new List<string>())).AddRange(prefixes);
TypeArgumentsParser.cs (1)
12 var typeList = new List<XmlType>();
XamlNode.cs (3)
162 SkipProperties = new List<XmlName>(); 163 CollectionItems = new List<INode>(); 273 var items = new List<INode>();
XamlParser.cs (7)
47 (rootNode.IgnorablePrefixes ?? (rootNode.IgnorablePrefixes = new List<string>())).AddRange(prefixes); 141 var nodes = new List<INode>(); 172 (node.IgnorablePrefixes ?? (node.IgnorablePrefixes = new List<string>())).AddRange(prefixes); 207 var attributes = new List<KeyValuePair<XmlName, INode>>(); 208 xmlns = new List<KeyValuePair<string, string>>(); 289 var prefixes = new List<string>(); 339 s_xmlnsDefinitions = new List<XmlnsDefinitionAttribute>();
XmlTypeXamlExtensions.cs (3)
44 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 64 var lookupNames = new List<string>(capacity: 2); 80 var potentialTypes = new List<(string typeName, string clrNamespace, string assemblyName)>();
Microsoft.Maui.Essentials (15)
Connectivity\Connectivity.shared.cs (1)
106 currentProfiles = new List<ConnectionProfile>(ConnectionProfiles);
Email\Email.shared.cs (5)
152 To = to?.ToList() ?? new List<string>(); 174 public List<string>? To { get; set; } = new List<string>(); 179 public List<string>? Cc { get; set; } = new List<string>(); 184 public List<string>? Bcc { get; set; } = new List<string>(); 189 public List<EmailAttachment>? Attachments { get; set; } = new List<EmailAttachment>();
Share\Share.shared.cs (2)
343 public List<ShareFile>? Files { get; set; } = new List<ShareFile>(); 353 Files = new List<ShareFile> { request.File! },
Sms\Sms.shared.cs (2)
73 message.Recipients ??= new List<string>(); 126 public List<string> Recipients { get; set; } = new List<string>();
TextToSpeech\TextToSpeech.shared.cs (1)
76 var parts = new List<string>();
Types\Contact.shared.cs (2)
97 public List<ContactPhone> Phones { get; set; } = new List<ContactPhone>(); 102 public List<ContactEmail> Emails { get; set; } = new List<ContactEmail>();
VersionTracking\VersionTracking.shared.cs (2)
243 { versionsKey, new List<string>() }, 244 { buildsKey, new List<string>() }
Microsoft.Maui.Graphics (25)
PathF.cs (16)
29 _subPathsClosed = new List<bool>(); 50 _points = new List<PointF>(path._points); 56 _subPathsClosed = new List<bool>(path._subPathsClosed); 72 _arcAngles = new List<float>(); 73 _arcClockwise = new List<bool>(); 74 _points = new List<PointF>(); 75 _operations = new List<PathOperation>(); 76 _subPathsClosed = new List<bool>(); 941 var paths = new List<PathF>(); 989 var points = new List<PointF>(_points); 992 var arcSizes = new List<float>(_arcAngles); 995 var arcClockwise = new List<bool>(_arcClockwise); 998 var operations = new List<PathOperation>(_operations); 1475 flattenedPoints ??= new List<PointF>(); 1477 curvePoints ??= new List<PointF>(); 1486 flattenedPoints ??= new List<PointF>();
PictureCanvas.cs (1)
24 _commands = new List<DrawingCommand>();
Text\AttributedTextExtensions.cs (5)
23 var runs = new List<IAttributedTextRun>(); 48 var runs = new List<IAttributedTextRun>(); 58 List<IAttributedText> paragraphs = new List<IAttributedText>(); 70 var runs = new List<IAttributedTextRun>(); 159 var blocks = new List<AttributedTextBlock>();
Text\AttributedTextRunExtensions.cs (1)
70 List<IAttributedTextRun> intersections = new List<IAttributedTextRun>();
Text\MutableAttributedText.cs (1)
22 _runs = new List<IAttributedTextRun> { run };
Text\XmlAttributedTextReader.cs (1)
17 private readonly List<IAttributedTextRun> _runs = new List<IAttributedTextRun>();
Microsoft.Maui.Graphics.Skia (1)
SkiaTextLayout.cs (1)
215 var lines = new List<TextLine>();
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\AttributedTextRenderer.cs (1)
10 private List<IAttributedTextRun> _runs = new List<IAttributedTextRun>();
Microsoft.Maui.Maps (1)
Primitives\GeographyUtils.cs (1)
18 var positions = new List<Location>();
Microsoft.Maui.Resizetizer (7)
AndroidAdaptiveIconGenerator.cs (1)
39 var results = new List<ResizedImageInfo>();
AppleIconAssetsGenerator.cs (3)
45 return new List<ResizedImageInfo> { 50 var appIconImagesJson = new List<string>(); 90 return new List<ResizedImageInfo> {
ResizeImageInfo.cs (1)
61 var r = new List<ResizeImageInfo>();
ResizetizeImages.cs (1)
103 var copiedResources = new List<TaskItem>();
TizenSplashUpdater.cs (1)
27 var orientations = new List<string>() { "portrait", "landscape" };
Microsoft.ML.AutoML (63)
API\AutoCatalog.cs (3)
356var res = new List<SweepableEstimator>(); 460var res = new List<SweepableEstimator>(); 571var res = new List<SweepableEstimator>();
AutoMLExperiment\IMonitor.cs (2)
37_completedTrials = new List<TrialResult>(); 77this.RunDetails = new List<TrialResult<TMetrics>>();
AutoMLExperiment\ITrialResultManager.cs (1)
147var res = new List<TrialResult>();
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (2)
44var metrics = new List<double>(); 45var models = new List<ITransformer>();
AutoMlUtils.cs (1)
39var res = new List<InputOutputColumnPair>();
ColumnInference\ColumnGroupingInference.cs (2)
58var result = new List<GroupingColumn>(); 134var allRanges = new List<Range>();
ColumnInference\ColumnInformationUtil.cs (1)
130var columnNames = new List<string>();
ColumnInference\ColumnTypeInference.cs (2)
274var data = new List<ReadOnlyMemory<char>[]>(); 406var loaderColumns = new List<TextLoader.Column>();
ColumnInference\PurposeInference.cs (3)
88var results = new List<ReadOnlyMemory<char>>(); 245var allColumns = new List<IntermediateColumn>(); 246var columnsToInfer = new List<IntermediateColumn>();
ColumnInference\TextFileContents.cs (1)
95var columnCounts = new List<int>();
ColumnInference\TextFileSample.cs (1)
135var chunks = new List<byte[]>();
Experiment\Experiment.cs (2)
52_history = new List<SuggestedPipelineRunDetail>(); 117var iterationResults = new List<TRunDetail>();
Experiment\RecipeInference.cs (1)
20var trainers = new List<SuggestedTrainer>();
Experiment\Runners\CrossValRunner.cs (1)
51var trainResults = new List<SuggestedPipelineTrainResult<TMetrics>>();
Experiment\Runners\CrossValSummaryRunner.cs (1)
56var trainResults = new List<(ModelContainer model, TMetrics metrics, Exception exception, double score)>();
Experiment\SuggestedPipeline.cs (3)
62var pipelineElements = new List<PipelineNode>(); 77var transforms = new List<SuggestedTransform>(); 78var transformsPostTrainer = new List<SuggestedTransform>();
SweepableEstimator\SweepableEstimatorPipeline.cs (1)
20_estimators = new List<SweepableEstimator>();
Sweepers\Parameters.cs (2)
246var result = new List<IParameterValue>(); 372var result = new List<IParameterValue>();
Sweepers\SmacSweeper.cs (5)
93List<IRunResult> viableRuns = new List<IRunResult>(); 261List<ParameterSet> neighbors = new List<ParameterSet>(); 327List<double[]> datasetLeafValues = new List<double[]>(); 330List<double> leafValues = new List<double>(); 405List<ParameterSet> outSet = new List<ParameterSet>();
Sweepers\SweeperBase.cs (1)
51var prevParamSets = new HashSet<ParameterSet>(previousRuns?.Select(r => r.ParameterSet).ToList() ?? new List<ParameterSet>());
Sweepers\SweeperProbabilityUtils.cs (3)
33List<double> rvs = new List<double>(); 69var result = new List<float>(); 129List<IParameterValue> parameters = new List<IParameterValue>();
TrainerExtensions\MultiTrainerExtensions.cs (1)
236public IEnumerable<SweepableParam> GetHyperparamSweepRanges() => new List<SweepableParam>();
TrainerExtensions\SweepableParams.cs (2)
45return BuildTreeArgsParams().Concat(new List<SweepableParam>() 201var sweepableParams = new List<SweepableParam>();
TrainerExtensions\TrainerExtensionCatalog.cs (1)
80return new List<ITrainerExtension>() { new ImageClassificationExtension() };
TrainerExtensions\TrainerExtensionUtil.cs (1)
225parameters = new List<IParameterValue>();
TransformInference\TransformInference.cs (9)
248var catColumnsNew = new List<string>(); 249var catHashColumnsNew = new List<string>(); 282var transformedColumns = new List<string>(); 296var newColumns = new List<string>(); 324var featureCols = new List<string>(); 350var columnsWithMissing = new List<string>(); 401var suggestedTransforms = new List<SuggestedTransform>(); 428var concatColNames = new List<string>(); 477var newColNames = new List<string>();
TransformInference\TransformPostTrainerInference.cs (2)
15var suggestedTransforms = new List<SuggestedTransform>(); 23var inferredTransforms = new List<SuggestedTransform>();
Tuner\AutoZeroTuner.cs (1)
20private readonly List<Config> _configs = new List<Config>();
Tuner\SmacTuner.cs (3)
75_histories = new List<TrialResult>(); 260var neighborhood = new List<Parameter>(); 321List<double> leafValues = new List<double>();
Utils\Entity.cs (1)
87return new List<ValueEntity>();
Utils\SplitUtil.cs (2)
18var trainDatasets = new List<IDataView>(); 19var validationDatasets = new List<IDataView>();
Utils\UserInputValidationUtil.cs (1)
133var allColumns = new List<string>();
Microsoft.ML.AutoML.Interactive (5)
AutoMLMonitorKernelExtension.cs (3)
48var summary = new List<IHtmlContent>(); 82var chartHeader = new List<IHtmlContent>(); 98var tableHeader = new List<IHtmlContent>();
NotebookMonitor.cs (2)
29CompletedTrials = new List<TrialResult>(); 49TrialData.Append(new List<KeyValuePair<string, object>>()
Microsoft.ML.AutoML.SourceGenerator (5)
Template\EstimatorType.cs (1)
119this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Template\SearchSpace.cs (1)
136this.indentLengthsField = new global::System.Collections.Generic.List<int>();
Template\SweepableEstimator.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 (37)
CommandLine\CmdParser.cs (6)
467var args = new List<Argument>(); 953List<ArgumentHelpStrings> strings = new List<ArgumentHelpStrings>(); 1081List<string> args = new List<string>(); 1568var comList = new List<KeyValuePair<string, IComponentFactory>>(); 1605var comList = new List<IComponentFactory>(); 1699val.Values = new List<KeyValuePair<string, object>>();
ComponentModel\ComponentCatalog.cs (4)
78_classes = new List<LoadableClassInfo>(); 81_entryPoints = new List<EntryPointInfo>(); 84_components = new List<ComponentInfo>(); 271List<object> prefix = new List<object>();
Data\AnnotationUtils.cs (2)
427var cols = new List<SchemaShape.Column>(); 443var cols = new List<SchemaShape.Column>();
Data\IEstimator.cs (2)
181var cols = new List<Column>(); 188var mCols = new List<Column>();
Data\IFileHandle.cs (1)
85_streams = new List<Stream>();
Data\ProgressReporter.cs (7)
171var hProgress = new List<string>(); 172var hMetrics = new List<string>(); 173var progress = new List<double?>(); 174var progressLim = new List<double?>(); 175var metrics = new List<double?>(); 370_infos = new List<CalculationInfo>(); 437var list = new List<ProgressEvent>();
Data\Repository.cs (1)
114_open = new List<Entry>();
Data\RoleMappedSchema.cs (1)
208list = new List<DataViewSchema.Column>();
EntryPoints\ModuleArgs.cs (1)
265var pieces = new List<string>();
Environment\HostEnvironmentBase.cs (2)
382_children = new List<WeakReference<IHost>>(); 406_children = new List<WeakReference<IHost>>();
Utilities\BinFinder.cs (1)
24_counts = new List<int>();
Utilities\Heap.cs (4)
31_rgv = new List<T>(); 49_rgv = new List<T>(capacity); 231_rgv = new List<T>(); 249_rgv = new List<T>(capacity);
Utilities\MathUtils.cs (1)
357_logFactorialCache = new List<double>(LogFactorialCacheSize);
Utilities\Utils.cs (4)
145list = new List<T>(); 773List<int> mapList = new List<int>(); 807List<int> mapList = new List<int>(); 843List<int> mapList = new List<int>();
Microsoft.ML.Core.Tests (11)
UnitTests\TestCustomTypeRegister.cs (1)
181var tribe = new List<AlienHero>() { new AlienHero("ML.NET", 2, 1000, 2000, 3000, 4000, 5000, 6000, 7000) };
UnitTests\TestEntryPoints.cs (3)
1805data = new TextFeaturizingEstimator(Env, "Features", new List<string> { "Text" }, 3354inputBindingMap.Add("Data", new List<ParameterBinding>() { parameterBinding }); 3406inputBindingMap.Add("TrainingData", new List<ParameterBinding>() { parameterBinding });
UnitTests\TestHosts.cs (2)
50children[randHostTuple.Item1] = new List<IHost>(); 125var messages = new List<string>();
UnitTests\TestVBuffer.cs (5)
471List<int> indices = new List<int>(a.GetIndices().Length); 850var minSlots = new List<int>(); 851var maxSlots = new List<int>(); 903var expectedIndices = new List<int>(); 904var expectedValues = new List<float>();
Microsoft.ML.Data (258)
Commands\CrossValidationCommand.cs (1)
316overallList = new List<IDataView>();
Commands\SaveDataCommand.cs (2)
145var cols = new List<int>(); 207var cols = new List<int>();
Commands\ScoreCommand.cs (1)
183var cols = new List<int>();
Commands\TrainCommand.cs (1)
425var transforms = new List<IDataTransform>();
DataDebuggerPreview.cs (2)
39var rows = new List<RowInfo>(); 42columns[i] = new List<object>();
DataLoadSave\Binary\BinaryLoader.cs (4)
328var mtocEntries = new List<MetadataTableOfContentsEntry>(); 329var deadMtocEntries = new List<MetadataTableOfContentsEntry>(); 1098List<TableOfContentsEntry> aliveList = new List<TableOfContentsEntry>(); 1099List<TableOfContentsEntry> deadList = new List<TableOfContentsEntry>();
DataLoadSave\Binary\BinarySaver.cs (3)
272List<long> offsets = new List<long>(); 274var metadataInfos = new List<Tuple<string, IValueCodec, CompressionKind>>(); 413blockLookups[c] = new List<BlockLookup>();
DataLoadSave\Binary\Codecs.cs (6)
322_boundaries = new List<int>(); 673_offsets = new List<short>(); 674_ticks = new List<long>(); 843_lengths = FixedLength ? null : new List<int>(); 844_counts = new List<int>(); 845_indices = new List<int>();
DataLoadSave\Database\DatabaseLoader.cs (1)
118var columns = new List<Column>();
DataLoadSave\Database\LoadColumnNameAttribute.cs (2)
23var sources = new List<string>(1); 34Sources = new List<string>(fieldNames);
DataLoadSave\DataOperationsCatalog.cs (1)
464var result = new List<TrainTestData>();
DataLoadSave\LegacyCompositeDataLoader.cs (4)
199var exes = new List<TransformEx>(); 216var newlyCreated = new List<TransformEx>(); 470var tagData = new List<KeyValuePair<string, string>>(); 471var acceptedIds = new List<int>();
DataLoadSave\MultiFileSource.cs (1)
47List<string> concatenated = new List<string>();
DataLoadSave\Text\LoadColumnAttribute.cs (3)
23Sources = new List<TextLoader.Range>(); 34Sources = new List<TextLoader.Range>(); 44Sources = new List<TextLoader.Range>();
DataLoadSave\Text\TextLoader.cs (3)
848var segsAll = new List<Segment>(); 858var segsNew = new List<Segment>(); 1586var columns = new List<Column>();
DataLoadSave\Text\TextSaver.cs (1)
398var activeCols = new List<DataViewSchema.Column>();
DataLoadSave\TransformerChain.cs (2)
167var xfs = new List<ITransformer>(); 168var scopes = new List<TransformerScope>();
DataLoadSave\Transpose\TransposeSaver.cs (1)
121List<long> offsets = new List<long>();
DataView\ArrayDataViewBuilder.cs (2)
41_columns = new List<Column>(); 42_names = new List<string>();
DataView\Transposer.cs (1)
150List<int> toSave = new List<int>();
DataView\TypedCursor.cs (2)
99var acceptedCols = new List<InternalSchemaDefinition.Column>(); 100var indices = new List<int>();
Deprecated\Instances\HeaderSchema.cs (2)
48var nameList = new List<ReadOnlyMemory<char>>(); 49var indexList = new List<int>();
Dirty\PredictionUtils.cs (2)
83res = new List<string>(args.Take(i)); 115List<char> sepChars = new List<char>();
EntryPoints\EntryPointNode.cs (6)
608inputBindingMap.Add(kvp.Key, new List<ParameterBinding>() { paramBinding }); 636_inputBindingMap[inputName] = new List<ParameterBinding>(); 660_inputBindingMap[inputName] = new List<ParameterBinding>(); 705var toModify = new List<ParameterBinding>(); 888var result = new List<EntryPointNode>(nodes.Count); 964InputBindingMap.Add(uniqueName, new List<ParameterBinding> { paramBinding });
EntryPoints\InputBuilder.cs (5)
65var fields = new List<FieldInfo>(); 66var attrs = new List<Attributes>(); 152var missing = new List<string>(); 674var fields = new List<FieldInfo>(); 675var attrs = new List<TlcModule.OutputAttribute>();
EntryPoints\TransformModelImpl.cs (2)
255var mappers = new List<IRowToRowMapper>(); 256var actives = new List<IEnumerable<DataViewSchema.Column>>();
Evaluators\AnomalyDetectionEvaluator.cs (17)
131var stratCol = new List<uint>(); 132var stratVal = new List<ReadOnlyMemory<char>>(); 133var auc = new List<Double>(); 134var drAtK = new List<Double>(); 135var drAtP = new List<Double>(); 136var drAtNumAnomalies = new List<Double>(); 137var thresholdAtK = new List<Single>(); 138var thresholdAtP = new List<Single>(); 139var thresholdAtNumAnomalies = new List<Single>(); 140var numAnoms = new List<long>(); 142var scores = new List<Single>(); 143var labels = new List<Single>(); 144var names = new List<ReadOnlyMemory<char>>(); 145var topKStratCol = new List<uint>(); 146var topKStratVal = new List<ReadOnlyMemory<char>>(); 316_examples = new List<Info>(); 763var colsToKeep = new List<string>();
Evaluators\AucAggregator.cs (2)
57_posExamples = new List<T>(); 58_negExamples = new List<T>();
Evaluators\BinaryClassifierEvaluator.cs (38)
220var stratCol = new List<uint>(); 221var stratVal = new List<ReadOnlyMemory<char>>(); 222var isWeighted = new List<bool>(); 223var auc = new List<Double>(); 224var accuracy = new List<Double>(); 225var posPrec = new List<Double>(); 226var posRecall = new List<Double>(); 227var negPrec = new List<Double>(); 228var negRecall = new List<Double>(); 229var logLoss = new List<Double>(); 230var logLossRed = new List<Double>(); 231var entropy = new List<Double>(); 232var f1 = new List<Double>(); 233var auprc = new List<Double>(); 235var counts = new List<Double[]>(); 236var weights = new List<Double[]>(); 237var confStratCol = new List<uint>(); 238var confStratVal = new List<ReadOnlyMemory<char>>(); 240var scores = new List<Single>(); 241var precision = new List<Double>(); 242var recall = new List<Double>(); 243var fpr = new List<Double>(); 244var weightedPrecision = new List<Double>(); 245var weightedRecall = new List<Double>(); 246var weightedFpr = new List<Double>(); 247var prStratCol = new List<uint>(); 248var prStratVal = new List<ReadOnlyMemory<char>>(); 607Precision = new List<Double>(); 608Recall = new List<Double>(); 609FalsePositiveRate = new List<Double>(); 610Scores = new List<Single>(); 613WeightedPrecision = new List<Double>(); 614WeightedRecall = new List<Double>(); 615WeightedFalsePositiveRate = new List<Double>(); 878var prCurveResult = new List<BinaryPrecisionRecallDataPoint>(); 1004var prCurveResult = new List<BinaryPrecisionRecallDataPoint>(); 1374var colsToKeep = new List<string>(); 1453var prList = new List<IDataView>();
Evaluators\ClusteringEvaluator.cs (9)
70var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>(); 162var stratCol = new List<uint>(); 163var stratVal = new List<ReadOnlyMemory<char>>(); 164var isWeighted = new List<bool>(); 165var nmi = new List<Double>(); 166var avgMinScores = new List<Double>(); 167var dbi = new List<Double>(); 325_numInstancesOfClass = new List<Double>(); 326_confusionMatrix = new List<Double[]>();
Evaluators\EvaluatorBase.cs (2)
112var list = new List<AggregatorDictionaryBase>(); 318var warnings = new List<string>();
Evaluators\EvaluatorUtils.cs (12)
527var naIndices = new List<int>(); 795var overallList = new List<IDataView>(); 816var firstDvKeyWithNamesColumns = new List<string>(); 818var firstDvVectorKeyColumns = new List<string>(); 819var variableSizeVectorColumnNamesList = new List<string>(); 820var list = new List<IDataView>(); 824var hidden = new List<int>(); 1003var metricNames = new List<string>(); 1056var nonAveragedCols = new List<string>(); 1060var idvList = new List<IDataView>() { avgMetrics }; 1450List<ReadOnlyMemory<char>> result = new List<ReadOnlyMemory<char>>(); 1703var nonAveragedCols = new List<string>();
Evaluators\MamlEvaluator.cs (2)
233var cols = new List<(string name, string source)>(); 234var colsToKeep = new List<string>();
Evaluators\Metrics\ConfusionMatrix.cs (1)
88List<IReadOnlyList<double>> counts = new List<IReadOnlyList<double>>(NumberOfClasses);
Evaluators\MulticlassClassificationEvaluator.cs (15)
143var stratCol = new List<uint>(); 144var stratVal = new List<ReadOnlyMemory<char>>(); 145var isWeighted = new List<bool>(); 146var microAcc = new List<double>(); 147var macroAcc = new List<double>(); 148var logLoss = new List<double>(); 149var logLossRed = new List<double>(); 150var topKAcc = new List<double>(); 151var allTopK = new List<double[]>(); 152var perClassLogLoss = new List<double[]>(); 153var counts = new List<double[]>(); 154var weights = new List<double[]>(); 155var confStratCol = new List<uint>(); 156var confStratVal = new List<ReadOnlyMemory<char>>(); 954var overallList = new List<IDataView>();
Evaluators\MultiOutputRegressionEvaluator.cs (10)
98var stratCol = new List<uint>(); 99var stratVal = new List<ReadOnlyMemory<char>>(); 100var isWeighted = new List<bool>(); 101var l1 = new List<Double>(); 102var l2 = new List<Double>(); 103var dist = new List<Double>(); 104var perLabelL1 = new List<Double[]>(); 105var perLabelL2 = new List<Double[]>(); 106var perLabelRms = new List<Double[]>(); 107var perLabelLoss = new List<Double[]>();
Evaluators\RankingEvaluator.cs (21)
84var labelGains = new List<Double>(); 161var stratCol = new List<uint>(); 162var stratVal = new List<ReadOnlyMemory<char>>(); 163var isWeighted = new List<bool>(); 164var ndcg = new List<Double[]>(); 165var dcg = new List<Double[]>(); 167var groupName = new List<ReadOnlyMemory<char>>(); 168var groupNdcg = new List<Double[]>(); 169var groupDcg = new List<Double[]>(); 170var groupMaxDcg = new List<Double[]>(); 171var groupStratCol = new List<uint>(); 172var groupStratVal = new List<ReadOnlyMemory<char>>(); 369_groupNdcg = new List<Double[]>(); 370_groupDcg = new List<Double[]>(); 371_groupMaxDcg = new List<Double[]>(); 374_queryLabels = new List<short>(); 375_queryOutputs = new List<Single>(); 449GroupId = new List<ReadOnlyMemory<char>>(); 841QueryLabels = new List<short>(); 842QueryOutputs = new List<Single>(); 926var gsList = new List<IDataView>();
Evaluators\RegressionEvaluatorBase.cs (8)
53var stratCol = new List<uint>(); 54var stratVal = new List<ReadOnlyMemory<char>>(); 55var isWeighted = new List<bool>(); 56var l1 = new List<TMetrics>(); 57var l2 = new List<TMetrics>(); 58var rms = new List<TMetrics>(); 59var loss = new List<TMetrics>(); 60var rSquared = new List<TMetrics>();
Model\Pfa\PfaContext.cs (5)
103_cellBlocks = new List<CellBlock>(); 104_letSetBlocks = new List<VariableBlock>(); 105_funcBlocks = new List<FuncBlock>(); 158var sets = new List<KeyValuePair<string, JToken>>(); 171var lets = new List<KeyValuePair<string, JToken>>(locals.Length - sets.Count);
Model\Pfa\SavePfaCommand.cs (1)
187var toExport = new List<string>();
Prediction\Calibrator.cs (2)
1096_cMargins = new List<float>(); 1097_ncMargins = new List<float>();
Prediction\CalibratorCatalog.cs (1)
107var annotations = new List<SchemaShape.Column>();
Training\TrainerUtils.cs (2)
230new List<DataViewSchema.Column>() : 428var nameMap = new List<(string outName, string inName)>();
Transforms\ColumnBindingsBase.cs (1)
687var indices = new List<int>();
Transforms\ColumnConcatenatingEstimator.cs (1)
130List<SchemaShape.Column> meta = new List<SchemaShape.Column>();
Transforms\ColumnConcatenatingTransformer.cs (4)
594List<int> allValues = new List<int>(); 885var toHide = new List<string>(); 886var toDeclare = new List<KeyValuePair<string, JToken>>(); 921List<KeyValuePair<string, long>> inputList = new List<KeyValuePair<string, long>>();
Transforms\ColumnSelecting.cs (2)
554var outputToInputMapping = new List<int>(); 577columnList = new List<int>();
Transforms\FeatureContributionCalculationTransformer.cs (1)
352var featContributionMetadata = new List<SchemaShape.Column>();
Transforms\Hashing.cs (2)
199var sourceColumnsForInvertHash = new List<DataViewSchema.Column>(); 1963var metadata = new List<SchemaShape.Column>();
Transforms\KeyToValue.cs (2)
187var toHide = new List<string>(); 188var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\KeyToVector.cs (3)
635var toHide = new List<string>(); 636var toDeclare = new List<KeyValuePair<string, JToken>>(); 829var metadata = new List<SchemaShape.Column>();
Transforms\NormalizeColumn.cs (3)
805Labels = new List<int>(); 887ColValues = new List<TFloat>(); 922ColValues[i] = new List<TFloat>();
Transforms\NormalizeColumnDbl.cs (4)
1615var nz = new List<int>(); 1785var nz = new List<int>(); 1864_values = new List<TFloat>(); 1912_values[i] = new List<TFloat>();
Transforms\NormalizeColumnSng.cs (5)
546Elements = new List<TType>(startingSize); 1778var nz = new List<int>(); 1948var nz = new List<int>(); 2027_values = new List<TFloat>(); 2075_values[i] = new List<TFloat>();
Transforms\Normalizer.cs (4)
361var newMetadataKinds = new List<SchemaShape.Column> { isNormalizedMeta }; 537var activeCols = new List<DataViewSchema.Column>(); 788var toHide = new List<string>(); 789var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\NormalizeUtils.cs (2)
146var columnsToNormalize = new List<NormalizeTransform.AffineColumn>(); 155var entryPoints = new List<EntryPointNode>();
Transforms\SlotsDroppingTransformer.cs (1)
585List<int> newCategoricalSlotRanges = new List<int>();
Transforms\TransformBase.cs (2)
578var toHide = new List<string>(); 579var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\TypeConverting.cs (1)
634var metadata = new List<SchemaShape.Column>();
Transforms\ValueMapping.cs (4)
241var convertedValues = new List<ReadOnlyMemory<char>[]>(); 557List<TKey> keys = new List<TKey>(); 558List<TValue> values = new List<TValue>(); 997var cols = new List<(string outputColumnName, string inputColumnName)>()
Transforms\ValueToKeyMappingTransformer.cs (2)
928var toHide = new List<string>(); 929var toDeclare = new List<KeyValuePair<string, JToken>>();
Utilities\ApplyTransformUtils.cs (1)
83var transforms = new List<IDataTransform>();
Utilities\ModelFileUtils.cs (3)
241List<string> rolesList = new List<string>(); 242List<string> columnNamesList = new List<string>(); 287var list = new List<KeyValuePair<string, string>>();
Utilities\StreamUtils.cs (1)
71var matchList = new List<string>();
Microsoft.ML.DataView (3)
DataViewSchema.cs (2)
262_items = new List<(string Name, DataViewType Type, Delegate Getter, Annotations Annotations)>(); 387_items = new List<(string Name, DataViewType Type, Annotations Annotations)>();
SchemaDebuggerProxy.cs (1)
41var result = new List<KeyValuePair<string, object>>();
Microsoft.ML.Ensemble (4)
PipelineEnsemble.cs (1)
705var list = new List<KeyValuePair<string, object>>();
Selector\DiversityMeasure\BaseDisagreementDiversityMeasure.cs (1)
20var diversityValues = new List<ModelDiversityMetric<TOutput>>();
Selector\SubModelSelector\BaseDiverseSelector.cs (1)
87var selectedModels = new List<FeatureSubsetModel<TOutput>>();
Trainer\EnsembleTrainerBase.cs (1)
137var models = new List<FeatureSubsetModel<TOutput>>();
Microsoft.ML.EntryPoints (37)
CrossValidationMacro.cs (12)
168var subGraphNodes = new List<EntryPointNode>(); 183inputBindingMap.Add(nameof(splitArgs.Data), new List<ParameterBinding>() { paramBinding }); 242inputBindingMap.Add(nameof(args.TrainingData), new List<ParameterBinding> { trainingData }); 245inputBindingMap.Add(nameof(args.TestingData), new List<ParameterBinding> { testingData }); 261inputBindingMap.Add(nameof(combineModelsArgs.TransformModel), new List<ParameterBinding>() { paramBinding }); 264inputBindingMap.Add(nameof(combineModelsArgs.PredictorModel), new List<ParameterBinding>() { paramBinding }); 322combineInputBindingMap.Add(nameof(combineArgs.Warnings), new List<ParameterBinding> { warningsArray }); 325combineInputBindingMap.Add(nameof(combineArgs.OverallMetrics), new List<ParameterBinding> { overallArray }); 328combineInputBindingMap.Add(nameof(combineArgs.PerInstanceMetrics), new List<ParameterBinding> { combinePerInstArray }); 333combineInputBindingMap.Add(nameof(combineArgs.ConfusionMatrix), new List<ParameterBinding> { combineConfArray }); 372var warnings = input.Warnings != null ? new List<IDataView>(input.Warnings) : new List<IDataView>();
FeatureCombiner.cs (1)
60var concatNames = new List<KeyValuePair<string, string>>();
JsonUtils\JsonManifestUtils.cs (3)
51var kinds = new List<Type>(); 157var inputs = new List<KeyValuePair<Double, JObject>>(); 285var outputs = new List<KeyValuePair<Double, JObject>>();
MacroUtils.cs (2)
128inputBindingMap.Add(argName, new List<ParameterBinding>()); 151inputBindingMap.Add(argName, new List<ParameterBinding>());
OneVersusAllMacro.cs (4)
63inputBindingMap.Add(nameof(labelIndicatorArgs.Data), new List<ParameterBinding>() { paramBinding }); 152var macroNodes = new List<EntryPointNode>(); 176inputBindingMap.Add(nameof(combineArgs.ModelArray), new List<ParameterBinding>() { paramBinding }); 179inputBindingMap.Add(nameof(combineArgs.TrainingData), new List<ParameterBinding>() { paramBinding });
PermutationFeatureImportance.cs (5)
108List<BinaryMetrics> metrics = new List<BinaryMetrics>(); 165List<MulticlassMetrics> metrics = new List<MulticlassMetrics>(); 224List<RegressionMetrics> metrics = new List<RegressionMetrics>(); 278List<RankingMetrics> metrics = new List<RankingMetrics>(); 313List<string> slotNames = new List<string>();
ScoreColumnSelector.cs (2)
31List<int> indices = new List<int>(); 84var copyCols = new List<(string name, string source)>();
TrainTestMacro.cs (8)
174inputBindingMap.Add(nameof(combineArgs.TransformModel), new List<ParameterBinding>() { paramBinding }); 177inputBindingMap.Add(nameof(combineArgs.PredictorModel), new List<ParameterBinding>() { paramBinding }); 194inputBindingMap.Add(nameof(args.Data), new List<ParameterBinding>() { paramBinding }); 198inputBindingMap.Add(nameof(args.PredictorModel), new List<ParameterBinding>() { paramBinding }); 228inputBindingMap.Add(nameof(args.Data), new List<ParameterBinding>() { paramBinding }); 232inputBindingMap.Add(nameof(args.PredictorModel), new List<ParameterBinding>() { paramBinding }); 252inputBindingMap.Add(nameof(evalTrainingArgs.Data), new List<ParameterBinding>() { paramBinding }); 274inputBindingMap.Add(nameof(evalArgs.Data), new List<ParameterBinding>() { paramBinding });
Microsoft.ML.FastTree (97)
Dataset\Dataset.cs (1)
621List<int>[] listQueries = Enumerable.Range(0, numParts).Select(x => new List<int>()).ToArray(numParts);
Dataset\FeatureFlock.cs (6)
538List<VirtualBin> virtualBins = new List<VirtualBin>(); 539List<int> lowPopulationFeatures = new List<int>(); 668List<int> catFeatureIndices = new List<int>(); 734List<VirtualBin> virtualBins = new List<VirtualBin>(); 735List<int> lowPopulationFeatures = new List<int>(); 890List<int> catFeatureIndices = new List<int>();
Dataset\RepeatIntArray.cs (2)
29List<int> tempValueList = new List<int>(); 30List<byte> tempDeltaList = new List<byte>();
Dataset\SparseIntArray.cs (4)
50List<int> tempValueList = new List<int>(); 51List<byte> tempDeltaList = new List<byte>(); 126List<int> tempValueList = new List<int>(); 127List<byte> tempDeltaList = new List<byte>();
FastTree.cs (36)
183Tests = new List<Test>(); 1012var result = new List<KeyValuePair<int, int>>(); 1363var toTranspose = new List<int>(); 1461List<FeatureFlockBase> flocks = new List<FeatureFlockBase>(); 1480List<int> pending = new List<int>(); 1691List<int> minSlots = new List<int>(); 1692List<int> maxSlots = new List<int>(); 1715List<ulong> qids = new List<ulong>(); 1716List<int> boundaries = new List<int>(); 1769_targetsList = new List<short>(); 1770_actualTargets = new List<double>(); 1771_weights = data.Schema.Weight != null ? new List<double>() : null; 1772_boundaries = new List<int>(); 1914List<int> trivialFeatures = new List<int>(); 1956var delta = new List<byte>(); 1957var values = new List<int>(); 2090List<int> pending = new List<int>(); 2192List<int> pending = new List<int>(); 2381_dense = new List<double>(); 2417_sparse = new List<KeyValuePair<int, double>>(_nonZeroElements); 3047var nodesTreeids = new List<long>(); 3048var nodesIds = new List<long>(); 3049var nodesFeatureIds = new List<long>(); 3050var nodeModes = new List<string>(); 3051var nodesValues = new List<double>(); 3052var nodeHitrates = new List<long>(); 3053var missingValueTracksTrue = new List<bool>(); 3054var nodesTrueNodeIds = new List<long>(); 3055var nodesFalseNodeIds = new List<long>(); 3056var nodesBaseValues = new List<float>(); 3059var classTreeIds = new List<long>(); 3060var classNodeIds = new List<long>(); 3061var classIds = new List<long>(); 3062var classWeights = new List<double>(); 3112node.AddAttribute("base_values", new List<float>() { 0 }); 3167List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
GamModelParameters.cs (6)
483var internalNodeIndices = new List<int>(); 484var lteChild = new List<int>(); 485var gtChild = new List<int>(); 649binDocList[e] = new List<int>(); 652var labels = new List<float>(); 653var scores = new List<float>();
GamTrainer.cs (2)
545var newBinEffects = new List<double>(); 546var newBinBoundaries = new List<double>();
RandomForestClassification.cs (2)
271List<float> featuresList = new List<float>(); 272List<float> labelsList = new List<float>();
RandomForestRegression.cs (2)
404List<float> featuresList = new List<float>(); 405List<float> labelsList = new List<float>();
RegressionTree.cs (2)
112return new List<int>(); // Zero-length vector. 129return new List<int>(); // Zero-length vector.
Training\DocumentPartitioning.cs (1)
85.Select(x => new List<int>(innerLoopSize / tree.NumLeaves))
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (1)
95List<KeyValuePair<short, int>> labelFreqList = new List<KeyValuePair<short, int>>();
Training\OptimizationAlgorithms\GradientDescent.cs (1)
29_treeScores = new List<double[]>();
Training\OptimizationAlgorithms\OptimizationAlgorithm.cs (1)
44TrackedScores = new List<ScoreTracker>();
Training\Test.cs (7)
213History = new List<TestResult[]>(); 355IList<TestResult> result = new List<TestResult>(); 409List<TestResult> result = new List<TestResult>() 452List<TestResult> result = new List<TestResult>() 483IList<TestResult> result = new List<TestResult>() 567List<TestResult> result = new List<TestResult>(); 705List<TestResult> result = new List<TestResult>()
TreeEnsemble\InternalRegressionTree.cs (3)
379List<int> categoricalNodeIndices = new List<int>(); 813path = new List<int>(); 1502List<int> path = new List<int>();
TreeEnsemble\InternalTreeEnsemble.cs (2)
36_trees = new List<InternalRegressionTree>(); 50_trees = new List<InternalRegressionTree>();
TreeEnsembleFeaturizationTransformer.cs (1)
64var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
TreeEnsembleFeaturizer.cs (2)
187var delegates = new List<Delegate>(); 262_pathIds[i] = new List<int>();
Utils\BufferPoolManager.cs (1)
97buffers = new List<Array>();
Utils\RegressionTreeBaseUtils.cs (14)
28var treeWeightsList = new List<double>(); 29var treeId = new List<int>(); 30var isLeaf = new List<ReadOnlyMemory<char>>(); 31var leftChild = new List<int>(); 32var rightChild = new List<int>(); 33var numericalSplitFeatureIndexes = new List<int>(); 34var numericalSplitThresholds = new List<float>(); 35var categoricalSplitFlags = new List<bool>(); 36var leafValues = new List<double>(); 37var splitGains = new List<double>(); 38var categoricalSplitFeatures = new List<VBuffer<int>>(); 39var categoricalCategoricalSplitFeatureRange = new List<VBuffer<int>>(); 118var leafSamples = new List<VBuffer<double>>(); 121var leafSampleWeights = new List<VBuffer<double>>();
Microsoft.ML.GenAI.Core (3)
Pipeline\CausalLMPipeline.cs (1)
228var chunks = new List<string>();
Trainer\CausalLMDataset.cs (1)
23_data = new List<CausalLMModelInput>(data);
Trainer\CausalLMSupervisedFineTuningTrainer.cs (1)
43var losses = new List<float>();
Microsoft.ML.GenAI.Core.Tests (3)
CausalLMDatasetTest.cs (3)
82var inputs = new List<List<ChatMessage>> 84new List<ChatMessage> 91var outputs = new List<ChatMessage>
Microsoft.ML.GenAI.LLaMA (4)
Llama3CausalLMChatClient.cs (1)
40options.StopSequences = new List<string> { _eotToken };
LlamaTextCompletionService.cs (1)
65var stopTokenSequence = executionSettings?.ExtensionData?["stop_token_sequence"] as List<string> ?? new List<string>();
Module\LlamaModel.cs (2)
120var allHiddenStates = new List<Tensor>(); 121var allAttentions = new List<Tensor>();
Microsoft.ML.GenAI.LLaMA.Tests (1)
LLaMA3_1Tests.cs (1)
98var chatHistory = new List<IMessage>
Microsoft.ML.GenAI.Mistral (3)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
170var requiredParameterNames = new List<string>();
MistralModel.cs (2)
114var allHiddenStates = new List<Tensor>(); 115var allAttentions = new List<Tensor>();
Microsoft.ML.GenAI.Mistral.Tests (2)
Mistral_7B_Instruct_V0_3Tests.cs (2)
44var chatHistory = new List<IMessage> 83var chatHistory = new List<IMessage>
Microsoft.ML.GenAI.Phi (3)
Module\Phi3Model.cs (2)
116var allHiddenStates = new List<Tensor>(); 117var allAttentions = new List<Tensor>();
Phi3\Phi3CausalLMTextGenerationService.cs (1)
35var stopTokenSequence = executionSettings?.ExtensionData?["stop_token_sequence"] as List<string> ?? new List<string>();
Microsoft.ML.GenAI.Samples (2)
Llama\SFT_Llama_3_2_1B.cs (2)
36var dataset = new List<Data> 105var trainChatHistory = new List<ChatMessage>
Microsoft.ML.IntegrationTests (1)
Prediction.cs (1)
62var transformers = new List<ITransformer>();
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
44var list = new List<string> { AttributeName, "Microsoft.ML.Internal.CpuMath.Core.BestFriendAttribute" };
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
324var tensorC = new List<float>();
Microsoft.ML.LightGbm (11)
LightGbmTrainerBase.cs (6)
566List<int> catBoundaries = new List<int> { 0 }; 605List<string> catIndices = new List<string>(); 770List<float> labelList = new List<float>(); 778List<float> weightList = hasWeights ? new List<float>() : null; 779List<ulong> cursorGroups = hasGroup ? new List<ulong>() : null; 808List<int> groupList = new List<int>();
WrappedLightGbmBooster.cs (2)
100var values = new List<double>(); 175List<int> cats = new List<int>();
WrappedLightGbmInterface.cs (1)
254List<string> res = new List<string>();
WrappedLightGbmTraining.cs (2)
42var metrics = new List<string>() { "Iteration" }; 43var units = new List<string>() { "iterations" };
Microsoft.ML.Maml (3)
HelpCommand.cs (3)
147var components = new List<Component>(); 198var components = new List<Component>(); 284var components = new List<Component>();
Microsoft.ML.Mkl.Components (2)
SymSgdClassificationTrainer.cs (2)
381_storage = new List<VeryLongArray>(); 558_instanceProperties = new List<InstanceProperties>();
Microsoft.ML.OnnxConverter (7)
OnnxContextImpl.cs (5)
47_nodes = new List<OnnxCSharpToProtoWrapper.NodeProto>(); 48_intermediateValues = new List<OnnxUtils.ModelArgs>(); 49_inputs = new List<OnnxUtils.ModelArgs>(); 50_initializers = new List<OnnxCSharpToProtoWrapper.TensorProto>(); 51_outputs = new List<OnnxUtils.ModelArgs>();
OnnxUtils.cs (2)
362dimsLocal = new List<long>(); 367dimsParamLocal = new List<bool>() { false, true }; //false for batch size, true for dims.
Microsoft.ML.OnnxTransformer (4)
OnnxTransform.cs (2)
689var inputNameOnnxValues = new List<NamedOnnxValue>(); 879_tensorShape = new OnnxShape(tensorShape);
OnnxTypeParser.cs (1)
198List<int> dims = new List<int>();
OnnxUtils.cs (1)
301var onnxVariableInfos = new List<OnnxVariableInfo>();
Microsoft.ML.OnnxTransformerTest (6)
DnnImageFeaturizerTest.cs (3)
75var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 76var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 77var sizeData = new List<TestDataSize> { new TestDataSize() { data_0 = new float[2] } };
OnnxTransformTests.cs (3)
143var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 144var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 145var sizeData = new List<TestDataSize> { new TestDataSize() { data_0 = new float[2] } };
Microsoft.ML.Parquet (3)
ParquetLoader.cs (1)
261List<Column> columnsLoaded = new List<Column>();
PartitionedPathParser.cs (2)
342names = new List<string>(dirs.Count()); 343values = new List<string>(dirs.Count());
Microsoft.ML.PerformanceTests (5)
FeaturizeTextBench.cs (3)
33var columns = new List<TextLoader.Column>(); 53var textColumns = new List<string>(); 59var featurizers = new List<TextFeaturizingEstimator>();
TextLoaderBench.cs (2)
36_columns = new List<TextLoader.Column>(); 60var getters = new List<ValueGetter<ReadOnlyMemory<char>>>();
Microsoft.ML.Predictor.Tests (17)
ResultProcessor\TestResultProcessor.cs (6)
39List<string> result = new List<string>(); 61List<string> testFiles = new List<string>(); 78List<string> testFiles = new List<string>(); 95List<string> testFiles = new List<string>(); 112List<string> testFiles = new List<string>(); 129List<string> testFiles = new List<string>();
TestPredictors.cs (10)
463var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 479var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 516var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 527var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 980var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.adultOnlyCat, TestDatasets.adult }; 999var regressionDatasets = new List<TestDataset> { TestDatasets.autosSample }; 1019var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerGroupId }; 1037var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 1588new List<PredictorAndArgs>() { TestLearners.multiclassLogisticRegressionRegularized }, 1589new List<TestDataset>() { TestDatasets.reutersMaxDim });
TestTransposer.cs (1)
124List<int> indices = new List<int>();
Microsoft.ML.Recommender (3)
MatrixFactorizationPredictor.cs (1)
471var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
MatrixFactorizationTrainer.cs (1)
529var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
SafeTrainingAndModelBuffer.cs (1)
267List<MFNode> nodes = new List<MFNode>();
Microsoft.ML.ResultProcessor (15)
ResultProcessor.cs (15)
293List<string> settings = new List<string>(); 712lines = new List<string>(); 751fileResults = new List<string>(); 752fileTimeMemoryResult = new List<string>(); 847List<ExperimentItemResult?> results = new List<ExperimentItemResult?>(); 865tempPredictorList = new List<PredictorResult>(); 908var foldLines = new List<string>(lines.Where((s, i1) => i1 >= startLineIdx && i1 < endLineIdx)); 928List<int> allFoldIndices = new List<int>(foldResults.Keys); 949AllValues = new List<float>(from kvp in metricValues.Value 1040List<PredictorResult> predictorResultsList = new List<PredictorResult>(); 1060List<string> m = new List<string>(); 1067List<KeyValuePair<string, string>> srcFiles = new List<KeyValuePair<string, string>>(); 1100predictorItem.PredictorList = new List<ExperimentItemResult>(); 1158+ string.Join(cmd.PerFoldResultSeparator, new List<string>(new List<float>(kvp.Value.AllValues).Select(d => "" + d))));
Microsoft.ML.Samples (81)
Dynamic\DataOperations\FilterRowsByKeyColumnFraction.cs (1)
20var samples = new List<DataPoint>()
Dynamic\DataOperations\FilterRowsByMissingValues.cs (1)
20var samples = new List<DataPoint>()
Dynamic\DataOperations\LoadingText.cs (1)
16var dataFiles = new List<string>();
Dynamic\DataOperations\SaveAndLoadFromBinary.cs (1)
19var dataPoints = new List<DataPoint>()
Dynamic\DataOperations\SaveAndLoadFromText.cs (1)
19var dataPoints = new List<DataPoint>()
Dynamic\ModelOperations\SaveLoadModel.cs (1)
17var data = new List<Data>()
Dynamic\ModelOperations\SaveLoadModelFile.cs (1)
17var data = new List<Data>()
Dynamic\NgramExtraction.cs (1)
17var data = new List<SampleSentimentData>() {
Dynamic\TextTransform.cs (1)
19var data = new List<SampleSentimentData>() {
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSample.cs (1)
20var samples = new List<DataPoint>()
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSampleWithOptions.cs (1)
20var samples = new List<DataPoint>()
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachine.cs (1)
146var data = new List<DataPoint>();
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachineWithOptions.cs (1)
157var data = new List<DataPoint>();
Dynamic\Trainers\Recommendation\MatrixFactorization.cs (1)
92var dataMatrix = new List<MatrixElement>();
Dynamic\Trainers\Recommendation\MatrixFactorizationWithOptions.cs (1)
116var dataMatrix = new List<MatrixElement>();
Dynamic\Trainers\Recommendation\OneClassMatrixFactorizationWithOptions.cs (2)
171observedMatrix = new List<MatrixElement>(); 172fullMatrix = new List<MatrixElement>();
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\Concatenate.cs (1)
17var samples = new List<InputData>()
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (1)
90var examples = new List<DataPoint>();
Dynamic\Transforms\CopyColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\CustomMapping.cs (1)
20var samples = new List<InputData>
Dynamic\Transforms\CustomMappingSaveAndLoad.cs (1)
23var samples = new List<InputData>
Dynamic\Transforms\CustomMappingWithInMemoryCustomType.cs (1)
25var tribe = new List<AlienHero>() { new AlienHero("ML.NET", 2, 1000,
Dynamic\Transforms\DropColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\Expression.cs (1)
17var samples = new List<InputData>()
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCount.cs (1)
83var data = new List<InputData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCountMultiColumn.cs (1)
83var data = new List<InputData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformation.cs (1)
77var data = new List<NumericData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformationMultiColumn.cs (1)
86var data = new List<NumericData>
Dynamic\Transforms\IndicateMissingValues.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\IndicateMissingValuesMultiColumn.cs (1)
17var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeBinning.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeGlobalContrast.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLogMeanVariance.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLpNorm.cs (1)
17var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMeanVariance.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMinMax.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeSupervisedBinning.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
84var data = new List<SampleVectorOfNumbersData>();
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
83var data = new List<SampleVectorOfNumbersData>();
Dynamic\Transforms\ReplaceMissingValues.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\ReplaceMissingValuesMultiColumn.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\SelectColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\StatefulCustomMapping.cs (1)
16var samples = new List<InputData>
Dynamic\Transforms\Text\ApplyCustomWordEmbedding.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\ApplyWordEmbedding.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\FeaturizeText.cs (1)
16var samples = new List<TextData>()
Dynamic\Transforms\Text\FeaturizeTextWithOptions.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\LatentDirichletAllocation.cs (1)
16var samples = new List<TextData>()
Dynamic\Transforms\Text\NormalizeText.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
18var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
18var samples = new List<TextData>()
Dynamic\Transforms\Text\RemoveDefaultStopWords.cs (1)
21var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\RemoveStopWords.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\TokenizeIntoCharactersAsKeys.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\TokenizeIntoWords.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnn.cs (1)
22var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnnBatchPrediction.cs (1)
18var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectChangePointBySsa.cs (1)
28var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaStream.cs (1)
28var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectEntireAnomalyBySrCnn.cs (1)
19var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectIidChangePoint.cs (1)
27var data = new List<TimeSeriesData>(Size)
Dynamic\Transforms\TimeSeries\DetectIidChangePointBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>(Size)
Dynamic\Transforms\TimeSeries\DetectIidSpike.cs (1)
23var data = new List<TimeSeriesData>(Size + 1)
Dynamic\Transforms\TimeSeries\DetectIidSpikeBatchPrediction.cs (1)
21var data = new List<TimeSeriesData>(Size + 1)
Dynamic\Transforms\TimeSeries\DetectSpikeBySsa.cs (1)
26var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectSpikeBySsaBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\Forecasting.cs (1)
20var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\ForecastingWithConfidenceInterval.cs (1)
20var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (2)
20var data = new RootCauseLocalizationInput(timestamp, GetAnomalyDimension(), new List<MetricSlice>() { new MetricSlice(timestamp, GetPoints()) }, AggregateType.Sum, AGG_SYMBOL); 40List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (2)
21var data = new RootCauseLocalizationInput(timestamp, GetAnomalyDimension(), new List<MetricSlice>() { new MetricSlice(timestamp, GetTimeSeriesPoints()) }, AggregateType.Sum, AGG_SYMBOL); 46List<TimeSeriesPoint> TimeSeriesPoints = new List<TimeSeriesPoint>();
Dynamic\WithOnFitDelegate.cs (1)
19var samples = new List<DataPoint>()
Microsoft.ML.Samples.OneDal (3)
Program.cs (3)
18List<IDataView> dataList = new List<IDataView>(); 23List<TextLoader.Column> columns = new List<TextLoader.Column>(); 51List<string> featuresList = new List<string>();
Microsoft.ML.SamplesUtils (4)
SamplesDatasetUtils.cs (4)
247var data = new List<BinaryLabelFloatFeatureVectorFloatWeightSample>(); 294var data = new List<FloatLabelFloatFeatureVectorUlongGroupIdSample>(); 310var data = new List<FloatLabelFloatFeatureVectorSample>(); 364var examples = new List<MulticlassClassificationExample>();
Microsoft.ML.SearchSpace (3)
Converter\ParameterConverter.cs (1)
42var list = new List<object>();
Option\NestOption.cs (1)
67var res = new List<double>();
SearchSpace.cs (1)
135var res = new List<double>();
Microsoft.ML.StandardTrainers (20)
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\DifferentiableFunction.cs (2)
204List<int> indices = new List<int>(dirCount); 205List<float> values = new List<float>(dirCount);
Optimizer\LearningRateScheduler.cs (1)
78List<LearningRateSchedulerItem> lrs = new List<LearningRateSchedulerItem>();
Optimizer\Optimizer.cs (1)
222_roList = new List<float>();
Standard\LinearModelParameters.cs (2)
541List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>(); 686List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
Standard\LinearPredictorUtils.cs (2)
196List<KeyValuePair<string, object>> weightValues = new List<KeyValuePair<string, object>>(); 214var list = new List<KeyValuePair<string, Single>>() { new KeyValuePair<string, Single>("(Bias)", bias) };
Standard\LogisticRegression\LbfgsPredictorBase.cs (3)
492var labelsList = new List<int>(); 493var featuresList = new List<float>(); 494var weightsList = new List<float>();
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
836List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
Standard\ModelStatistics.cs (2)
413List<CoefficientStatistics> result = new List<CoefficientStatistics>(ParametersCount - 1); 440var featureNames = new List<string>();
Standard\SdcaBinary.cs (1)
1779var outCols = new List<SchemaShape.Column>()
Microsoft.ML.Sweeper (28)
Algorithms\Grid.cs (3)
70var prevParamSets = previousRuns?.Select(r => r.ParameterSet).ToList() ?? new List<ParameterSet>(); 162: new List<ParameterSet>(); 191var pset = new List<IParameterValue>();
Algorithms\KdoSweeper.cs (4)
106_randomParamSets = new List<ParameterSet>(); 180List<ParameterSet> children = new List<ParameterSet>(); 205List<int> numericParamIndices = new List<int>(); 206List<double> numericParamValues = new List<double>();
Algorithms\NelderMead.cs (5)
100_sweepParameters = new List<IValueGenerator>(); 121_pendingSweeps = new List<KeyValuePair<ParameterSet, float[]>>(); 363var result = new List<KeyValuePair<IRunResult, float[]>>(); 435var result = new List<float>(); 449var parameters = new List<IParameterValue>();
Algorithms\SmacSweeper.cs (6)
98List<IRunResult> viableRuns = new List<IRunResult>(); 270List<ParameterSet> neighbors = new List<ParameterSet>(); 336List<double[]> datasetLeafValues = new List<double[]>(); 340List<double> leafValues = new List<double>(); 396List<ParameterSet> outSet = new List<ParameterSet>(); 423List<IParameterValue> parameters = new List<IParameterValue>();
Algorithms\SweeperProbabilityUtils.cs (3)
63List<double> rvs = new List<double>(); 164var result = new List<float>(); 216List<IParameterValue> parameters = new List<IParameterValue>();
AsyncSweeper.cs (2)
88_results = new List<IRunResult>(); 209_results = new List<IRunResult>();
ConfigRunner.cs (1)
77RunNums = new List<int>();
Parameters.cs (2)
254var result = new List<IParameterValue>(); 386var result = new List<IParameterValue>();
SweepCommand.cs (1)
84var runs = new List<IRunResult>();
SynthConfigRunner.cs (1)
44List<IRunResult> results = new List<IRunResult>();
Microsoft.ML.Sweeper.Tests (13)
TestSweeper.cs (13)
105var initialList = sweeper.ProposeSweeps(5, new List<RunResult>()); 145var paramSets = new List<ParameterSet>(); 203var tasks = new List<Task<ParameterSetWithId>>(); 254var paramSets = new List<ParameterSet>(); 272var results = new List<KeyValuePair<int, IRunResult>>(); 304var paramSets = new List<ParameterSet>(); 356var paramSets = new List<ParameterSet>(); 442var initialList = sweeper.ProposeSweeps(5, new List<RunResult>()); 560var sweeps = sweeper.ProposeSweeps(5, new List<RunResult>()); 563var results = new List<IRunResult>(); 608var sweeps = sweeper.ProposeSweeps(5, new List<RunResult>()); 611var results = new List<IRunResult>(); 659var results = new List<IRunResult>();
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
470var modelFilePaths = new List<string>
Microsoft.ML.TensorFlow.Tests (9)
TensorFlowEstimatorTests.cs (5)
65new List<TestData>(new TestData[] { 78var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[4], B = new float[4] } }; 79var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { a = new string[4], b = new string[4] } }; 80var sizeData = new List<TestDataSize> { new TestDataSize() { a = new float[2], b = new float[2] } }; 106new List<TestData>(new TestData[] {
TensorflowTests.cs (4)
190new List<TestData>(new TestData[] { 262return new List<ShapeData>(new ShapeData[] { 381var data = new List<TypesData>( 1001List<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 (88)
AnomalyDetectionTests.cs (3)
138var samples = new List<DataPoint>() 182var samples = new List<DataPoint>() 267var samples = new List<DataPoint>()
CollectionsDataViewTest.cs (8)
109var data = new List<ConversionSimpleClass> 227var data = new List<ClassWithConstField>() 253var data = new List<ClassWithMixOfFieldsAndProperties>() 307var data = new List<ClassWithPrivateFieldsAndProperties>() 337var data = new List<ClassWithInheritedProperties>() 372var data = new List<ClassWithArrays> 424var data = new List<ClassWithArrayProperties> 475var data = new List<ClassWithGetter>()
ImagesTests.cs (2)
233var images = new List<ImageDataPoint>() { new ImageDataPoint(10, 10, red: 0, green: 0, blue: 255), new ImageDataPoint(10, 10, red: 255, green: 0, blue: 0) }; 1128var inMemoryImages = new List<InMemoryImage>();
OnnxConversionTest.cs (19)
185List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 223List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 281List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 415var samples = new List<DataPoint>() 506ctx.AddInitializer(new List<float> { 9.4f, 1.7f, 3.6f }, new List<long> { 1, 3 }, "floats"); 507ctx.AddInitializer(new List<long> { 94L, 17L, 36L }, new List<long> { 1, 3 }, "int64s"); 508ctx.AddInitializer(new List<string> { "94", "17", "36" }, new List<long> { 1, 3 }, "strings"); 1154var samples = new List<DataPoint>() 1243List<IEstimator<ITransformer>> pipelines = new List<IEstimator<ITransformer>>(); 1439var samples = new List<TextData>() 1466var samples = new List<TextData>() 1546var samples = new List<TextData>() 1570var samples = new List<TextData>() 1649List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 1934List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 1976List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
OnnxSequenceTypeWithAttributesTest.cs (3)
44var dataView = ctx.Data.LoadFromEnumerable(new List<FloatInput>()); 66var keys = new List<string>(onnxOut.Keys); 83var dataView = ctx.Data.LoadFromEnumerable(new List<FloatInput>());
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
77var samples = new List<DataPoint>()
Scenarios\WordBagTest.cs (2)
17var samples = new List<TextData>() 54var samples = new List<TextData>()
TextLoaderTests.cs (3)
1315var ids = new List<string>(); 1316var descriptions = new List<string>(); 1317var animals = new List<string>();
TrainerEstimators\FAFMEstimator.cs (1)
125var data = new List<FfmExample>();
TrainerEstimators\MatrixFactorizationTests.cs (13)
206var dataMatrix = new List<MatrixElement>(); 254var testMatrix = new List<MatrixElementForScore>() { 317var dataMatrix = new List<MatrixElementZeroBased>(); 370var invalidTestMatrix = new List<MatrixElementZeroBasedForScore>() 437var dataMatrix = new List<OneClassMatrixElementZeroBased>(); 481var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 553var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 582var dataMatrix = new List<OneClassMatrixElementZeroBased>(); 622var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 739observedMatrix = new List<OneClassMatrixElement>(); 740fullMatrix = new List<OneClassMatrixElement>(); 764var dataMatrix = new List<MatrixElementZeroBased256By256>(); 803var testMatrix = new List<MatrixElementZeroBasedForScore256By256>();
TrainerEstimators\TreeEstimators.cs (1)
446var dataList = new List<GbmExample>();
Transformers\GroupUngroup.cs (2)
44var data = new List<GroupExample> { 83var data = new List<UngroupExample> {
Transformers\NormalizerTests.cs (3)
897var samples = new List<DataPointOne>() 938var samples = new List<DataPointVec>() 1113var list = new List<float>(num);
Transformers\ValueMappingTests.cs (23)
55var keys = new List<string>() { "foo", "bar", "test", "wahoo" }; 56var values = new List<int>() { 1, 2, 3, 4 }; 93var keys = new List<ReadOnlyMemory<char>>() { "foo".AsMemory(), "bar".AsMemory(), "test".AsMemory(), "wahoo".AsMemory() }; 94var values = new List<int>() { 1, 2, 3, 4 }; 139var keyValuePairs = new List<KeyValuePair<string, string>>() { 174IEnumerable<string> keys = new List<string>() { "foo", "bar", "test" }; 175List<int[]> values = new List<int[]>() { 263IEnumerable<string> keys = new List<string>() { "foo", "bar", "test" }; 264List<string[]> values = new List<string[]>() { 307var keys = new List<string>() { "foo", "bar", "test", "wahoo" }; 308var values = new List<int>() { 1, 2, 3, 4 }; 345var keys = new List<string>() { "foo", "foo" }; 346var values = new List<int>() { 1, 2 }; 364var keyValuePairs = new List<KeyValuePair<string, int>>() { 396var keyValuePairs = new List<KeyValuePair<string, string>>() { 430var keyValuePairs = new List<KeyValuePair<string, uint>>() { 471var keyValuePairs = new List<KeyValuePair<string, ulong>>() { 512var keyValuePairs = new List<KeyValuePair<string, string>>() { 552var keyValuePairs = new List<KeyValuePair<string, string>>() { 594var keyValuePairs = new List<KeyValuePair<string, int>>() { 613var keyValuePairs = new List<KeyValuePair<string, int[]>>() { 633var keyValuePairs = new List<KeyValuePair<ReadOnlyMemory<char>, int>>() { 687var keyValuePairs = new List<KeyValuePair<string, int>>() {
Transformers\WordBagTransformerTests.cs (4)
29var samples = new List<TextData>() 58var samples = new List<TextData>() 87var samplesDefault = new List<TextData>() 96var samplesNonDefault = new List<TextData>()
Microsoft.ML.TimeSeries (47)
AdaptiveSingularSpectrumSequenceModeler.cs (2)
868var sortedComponents = new List<SignalComponent>(); 869var trendComponents = new List<int>();
Deseasonality.cs (1)
76_subSeries[i] = new List<double>();
IidChangePointDetector.cs (1)
270var metadata = new List<SchemaShape.Column>() {
IidSpikeDetector.cs (1)
246var metadata = new List<SchemaShape.Column>() {
PolynomialUtils.cs (2)
168Coefficients = new List<decimal>(coefficients); 288var factors = new List<PolynomialFactor>();
PredictionEngine.cs (1)
220List<StatefulRow> rows = new List<StatefulRow>();
RootCauseAnalyzer.cs (12)
28_preparedCauses = new List<RootCause>(); 56_preparedCauses.Add(new RootCause() { Items = new List<RootCauseItem>() }); 149_preparedCauses.Add(new RootCause { Items = new List<RootCauseItem>() { new RootCauseItem(anomalyDimension) } }); 155RootCause rootCause = new RootCause { Items = new List<RootCauseItem>() }; 182new RootCauseItem(UpdateDimensionValue(anomalyDimension, dimension.DimensionKey, anomaly.Dimension[dimension.DimensionKey]), new List<string>() { dimension.DimensionKey }))); 222List<TimeSeriesPoint> causeList = new List<TimeSeriesPoint>(); 356List<RootCauseScore> scoreList = new List<RootCauseScore>(); 467tree.ChildrenNodes.Add(nextDim, new List<TimeSeriesPoint>()); 481List<BestDimension> ordered = new List<BestDimension>(); 748DetailDims = new List<string>(); 749AggDims = new List<string>(); 761Leaves = new List<TimeSeriesPoint>();
RootCauseLocalizationType.cs (2)
30Items = new List<RootCauseItem>(); 144Path = new List<string>();
SeasonalityDetector.cs (3)
66var rowCursor = input.GetRowCursor(new List<DataViewSchema.Column>() { column.Value }); 71var valueCache = seasonalityWindowSize == -1 ? new List<double>() : new List<double>(seasonalityWindowSize);
SrCnnAnomalyDetectionBase.cs (6)
184List<Single> magList = new List<Single>(); 193List<Single> spectralList = new List<Single>(); 221List<Single> ifftMagList = new List<Single>(); 244List<Single> predictArray = new List<Single>(); 250List<Single> backAddArray = new List<Single>(); 274List<Single> cumSumShift = new List<Single>(cumSumList);
SRCNNAnomalyDetector.cs (1)
278var metadata = new List<SchemaShape.Column>() {
SrCnnEntireAnomalyDetector.cs (8)
281_previousBatch = new List<double>(); 282_batch = new List<double>(); 286_previousBatch = new List<double>(batchSize); 287_batch = new List<double>(batchSize); 753List<Tuple<int, int>> segments = new List<Tuple<int, int>>(); 782List<int> anomalyIndex = new List<int>(); 887List<int> anomalyIdxList = new List<int>(); 908List<Tuple<int, double>> fitValues = new List<Tuple<int, double>>();
SsaChangePointDetector.cs (1)
306var metadata = new List<SchemaShape.Column>() {
SsaSpikeDetector.cs (1)
285var metadata = new List<SchemaShape.Column>() {
STL\FastLoess.cs (1)
44Y = new List<double>();
STL\InnerStl.cs (4)
189_cycleSubSeries[i] = new List<double>(); 190_smoothedSubseries[i] = new List<double>(); 301var newXValues = new List<double>(length); 313List<double> results = new List<double>(s.Count);
Microsoft.ML.TimeSeries.Tests (43)
TimeSeriesDirectApi.cs (20)
112List<Data> data = new List<Data>(size); 134List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08, 157List<Data> data = new List<Data>(); 187List<double> expectedValues = new List<double>() { 0, -3.31410551071167, 0.5, 5.12000000000001E-08, 0, 1.570083498954773, 5.2001145245395008E-07, 213List<Data> data = new List<Data>(); 289List<Data> data = new List<Data>(); 359List<Data> data = new List<Data>(); 394List<float> expectedForecast = new List<float>() { 0.191492021f, 2.53994060f, 5.26454258f, 7.37313938f }; 395List<float> minCnf = new List<float>() { -3.9741986f, -2.36872721f, 0.09407699f, 2.18899393f }; 396List<float> maxCnf = new List<float>() { 4.3571825f, 7.4486084f, 10.435008f, 12.5572853f }; 422List<Data> data = new List<Data>(); 546var data = new List<TimeSeriesData>(); 602data = new List<TimeSeriesDataDouble>(); 958var rootCauseLocalizationInput = new RootCauseLocalizationInput(GetRootCauseTimestamp(), GetRootCauseAnomalyDimension("UK", _rootCauseAggSymbol), new List<MetricSlice>() { new MetricSlice(GetRootCauseTimestamp(), GetRootCauseLocalizationPoints(_rootCauseAggSymbol)) }, AggregateType.Sum, _rootCauseAggSymbol); 985var rootCauseLocalizationInput = new RootCauseLocalizationInput(GetRootCauseTimestamp(), GetRootCauseAnomalyDimension("UK", _rootCauseAggSymbol), new List<MetricSlice>() { new MetricSlice(GetRootCauseTimestamp(), GetRootCauseLocalizationPoints(_rootCauseAggSymbol)) }, AggregateType.Sum, _rootCauseAggSymbol); 1031List<MetricSlice> slice = new List<MetricSlice> 1085List<TimeSeriesPoint> points = new List<TimeSeriesPoint>(); 1181List<MetricSlice> slice = new List<MetricSlice> 1215List<MetricSlice> slice = new List<MetricSlice> 1229List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
TimeSeriesEstimatorTests.cs (15)
53List<Data> data = new List<Data>(); 66var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 67var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 85List<Data> data = new List<Data>(); 102var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 103var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 123List<Data> data = new List<Data>(); 136var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 137var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 154List<Data> data = new List<Data>(); 163var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 164var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 181List<Data> data = new List<Data>(); 190var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 191var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } };
TimeSeriesSimpleApiTests.cs (8)
43var data = new List<Data>(size); 62List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08, 85var data = new List<Data>(); 105List<double> expectedValues = new List<double>() { 0, -3.31410598754883, 0.5, 5.12000000000001E-08, 0, 1.5700820684432983, 5.2001145245395008E-07, 128List<Data> data = new List<Data>(size); 145var expectedValues = new List<double[]>() { 180List<Data> data = new List<Data>(size); 197var expectedValues = new List<double[]>() {
Microsoft.ML.Tokenizers (36)
Model\BertTokenizer.cs (8)
247list = new List<int>(ids); 269list = new List<int>(ids); 308ids = new(capacity) { ClassificationTokenId }; 313ids = new List<int>(10) { ClassificationTokenId }; 419mask = new List<int>(capacity); 423mask = new List<int>(10); 575typeIds = new List<int>(capacity); 579typeIds = new List<int>(10);
Model\BPETokenizer.cs (2)
449List<EncodedToken> tokens = new(); 508List<int> ids = new();
Model\CodeGenTokenizer.cs (4)
379List<EncodedToken> tokens = new(); 618List<int> ids = new(); 1610return new List<EncodedToken> { new EncodedToken(_vocab[new StringSpanOrdinalKey(tokenValue)].Id, tokenValue, new Range(mapping[0], mapping[0] + 1)) }; 1659List<EncodedToken> result = new List<EncodedToken>(text.Length);
Model\EnglishRobertaTokenizer.cs (11)
334List<EncodedToken> tokens = new(); 433List<int> ids = new(); 836List<int> list = new List<int>(ids.Count); 858List<int> list = new List<int>(ids.Count); 880List<int> list = new List<int>(ranks.Count); 921List<EncodedToken> list = new List<EncodedToken>(tokens.Count); 961return new List<EncodedToken> { new EncodedToken(_vocab[new StringSpanOrdinalKey(tokenValue)], tokenValue, new Range(indexMapping[0], indexMapping[0] + 1)) }; 964List<string> word = new(token.Length); 975var newWord = new List<string>(); 1045var tokens = new List<EncodedToken>(word.Count); 1114_symbols = new List<(int, int)>();
Model\SentencePieceBpeModel.cs (2)
91List<EncodedToken> tokens = new(); 343List<int> ids = new();
Model\SentencePieceUnigramModel.cs (2)
109List<EncodedToken> tokens = new(); 570List<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();
PreTokenizer\CompositePreTokenizer.cs (1)
54var list = new List<PreTokenizer>(specialTokens.Count + 1);
Utils\DoubleArrayTrie.cs (1)
26private readonly List<uint> _units = new();
Utils\PriorityQueue.cs (1)
17_data = new List<T>(capacity);
Microsoft.ML.Tokenizers.Data.Tests (2)
src\Common\tests\RetryHelper.cs (2)
39var exceptions = new List<Exception>(); 89var exceptions = new List<Exception>();
Microsoft.ML.Tokenizers.Tests (36)
BpeTests.cs (1)
958List<PreTokenizer> preTokenizers = new List<PreTokenizer>();
CodeGenTests.cs (12)
552var idList = new List<int>(expectedIds); 554var tokensList = new List<string>(expectedTokens); 575idList = new List<int>(expectedIdsWithSpace); 577tokensList = new List<string>(expectedTokensWithSpace); 685idList = new List<int>(expectedIds); 687tokensList = new List<string>(expectedTokens); 708idList = new List<int>(expectedIdsWithSpace); 710tokensList = new List<string>(expectedTokensWithSpace); 818idList = new List<int>(expectedIds); 821tokensList = new List<string>(expectedTokens); 847idList = new List<int>(expectedIdsWithSpace); 850tokensList = new List<string>(expectedTokensWithSpace);
NormalizerTests.cs (1)
96List<int> mapping = new List<int>();
PreTokenizerTests.cs (1)
85List<(int Offset, int Length)> splits = new();
src\Common\tests\RetryHelper.cs (2)
39var exceptions = new List<Exception>(); 89var exceptions = new List<Exception>();
src\Microsoft.ML.Tokenizers\Utils\DoubleArrayTrie.cs (1)
26private readonly List<uint> _units = new();
TiktokenTests.cs (13)
144Assert.Equal(new List<int>() { 9906, 4435 }, encoded); 156Assert.Equal(new List<Range> { new Range(0, 5), new Range(5, 11) }, offsets); 197Assert.Equal(new List<int>() { 100264, 9906, 4435, 100265 }, encoded); 210Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 6), (23, 10) }, offsets); 240Assert.Equal(new List<int>() { 100264, 9906, 100265, 4435 }, encoded); 253Assert.Equal(new List<(int, int)> { (0, 12), (12, 5), (17, 10), (27, 6) }, offsets); 275Assert.Equal(new List<int>() { 100264, 9906, 2928, 99834, 4435, 100265 }, encoded); 283Assert.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()); 311Assert.Equal(new List<int>() { 199999, 13225, 161181, 5922, 200018 }, encoded); 320Assert.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()); 783Assert.Equal(new List<int>() { 100264, 9906, 100266, 4435, 100265, 100349 }, encoded); 821new List<int> { 199998, 200006, 200008, 13225, 5922, 200007, 199999 }, 828Assert.Equal(new List<(int, int)> { (0, 15), (15, 24), (24, 35), (35, 40), (40, 46), (46, 53), (53, 66) },
TokenizerTests.cs (1)
107var tokens = new List<EncodedToken>();
UnigramTests.cs (4)
500IReadOnlyList<int> ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>(); 506ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index).AsSpan(), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>(); 512ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>(); 518ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index).AsSpan(), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>();
Microsoft.ML.TorchSharp (79)
AutoFormerV2\Anchors.cs (2)
76allAnchors = torch.cat(new List<Tensor>() { allAnchors, shiftedAnchors }, dim: 0); 141List<Tensor> tensors = new List<Tensor> { shiftXExpand, shiftYExpand, shiftXExpand, shiftYExpand };
AutoFormerV2\Attention.cs (4)
49windowResolution ??= new List<int>() { 14, 14 }; 63var points = new List<List<int>>(); 68points.Add(new List<int>() { i, j }); 74var idxs = new List<int>();
AutoFormerV2\AutoformerV2.cs (1)
43this.neck = new FPN(inChannels: new List<int>() { embedChannels[1], embedChannels[2], embedChannels[3] });
AutoFormerV2\AutoFormerV2Backbone.cs (7)
60embedChannels ??= new List<int>() { 96, 192, 384, 576 }; 61depths ??= new List<int>() { 2, 2, 6, 2 }; 62numHeads ??= new List<int>() { 3, 6, 12, 18 }; 63windowSizes ??= new List<int>() { 7, 7, 14, 7 }; 64outIndices ??= new List<int>() { 1, 2, 3 }; 72var dpr = new List<double>(); 121var outs = new List<Tensor>();
AutoFormerV2\AutoFormerV2Block.cs (1)
57List<int> windowResolution = new List<int>() { windowSize, windowSize };
AutoFormerV2\BasicLayer.cs (2)
69List<int> hSlicesStartAndEnd = new List<int>() { 0, hp - this.windowSize, hp - this.windowSize, hp - this.shiftSize, hp - this.shiftSize, hp }; 70List<int> wSlicesStartAndEnd = new List<int>() { 0, wp - this.windowSize, wp - this.windowSize, wp - this.shiftSize, wp - this.shiftSize, wp };
AutoFormerV2\FPN.cs (3)
35inChannels ??= new List<int>() { 192, 384, 576 }; 71var laterals = new List<Tensor>(); 83var outs = new List<Tensor>();
AutoFormerV2\ObjectDetectionMetrics.cs (7)
64List<List<ObjectLabel>> objectLabelListOut = new(); 103iouDic.Add(label, new List<Tuple<float, float>>()); 182List<Tuple<int, int, float>> tupleList = new(); // annotaIndex, detectIndex, iouScore 299var data = new List<List<ObjectLabel>>(); 316var l = new List<ObjectLabel>(); 344var data = new List<List<ObjectLabel>>(); 358var l = new List<ObjectLabel>();
AutoFormerV2\ObjectDetectionTrainer.cs (12)
84public List<int> Steps = new List<int> { 6 }; 218embedChannels: new List<int>() { 64, 128, 256, 448 }, 219depths: new List<int>() { 2, 2, 6, 2 }, 220numHeads: new List<int>() { 2, 4, 8, 14 }, 377List<Tensor> part = new List<Tensor>(); 446var metadata = new List<SchemaShape.Column>(); 450var scoreMetadata = new List<SchemaShape.Column>(); 551var scoreMetadata = new List<SchemaShape.Column>(); 689embedChannels: new List<int>() { 64, 128, 256, 448 }, 690depths: new List<int>() { 2, 2, 6, 2 }, 691numHeads: new List<int>() { 2, 4, 8, 14 }, 911var part = new List<Tensor>();
AutoFormerV2\RetinaHead.cs (2)
69var clsOutputs = new List<Tensor>(); 70var regOutputs = new List<Tensor>();
Loss\FocalLoss.cs (3)
40var classificationLosses = new List<Tensor>(); 41var regressionLosses = new List<Tensor>(); 143targets = torch.stack(new List<Tensor> { targetsDx, targetsDy, targetsDw, targetsDh });
NasBert\Models\NasBertEncoder.cs (1)
256var hiddenSizePerBlock = new List<int>();
NasBert\Modules\Embedding\SinusoidalPositionalEmbedding.cs (2)
45var embedding = torch.cat(new List<torch.Tensor> { sinEmbed, cosEmbed }, 1); 51embedding = torch.cat(new List<torch.Tensor> { embedding, zeroPad }, 1);
NasBert\Modules\MultiHeadAttention.cs (7)
206k = torch.cat(new List<torch.Tensor> { k, kRepeat }, dim: 0); 207v = torch.cat(new List<torch.Tensor> { v, vRepeat }, dim: 0); 224: torch.cat(new List<torch.Tensor> { prevKey, k }, dim: 1); 232: torch.cat(new List<torch.Tensor> { prevValue, v }, dim: 1); 258k = torch.cat(new List<torch.Tensor> { k, kZeros }, dim: 1); 259v = torch.cat(new List<torch.Tensor> { v, vZeros }, dim: 1); 310return torch.cat(new List<torch.Tensor> { tensor, zeros }, dim: 1);
NasBert\NasBertTrainer.cs (5)
92public IReadOnlyList<double> AdamBetas = new List<double> { .9, .999 }; 113public List<double> LearningRate = new List<double> { 1e-4 }; 328var metadata = new List<SchemaShape.Column>(); 343var metadata = new List<SchemaShape.Column>(); 587List<int> newList = new List<int>(tokenizer.EncodeToConverted(sentence1.ToString()));
NasBert\NerTrainer.cs (1)
71LearningRate = new List<double>() { 2e-4 };
NasBert\SentenceSimilarityTrainer.cs (2)
70LearningRate = new List<double>() { .0002 }; 97LearningRate = new List<double>() { .0002 },
Roberta\QATrainer.cs (6)
82LearningRate = new List<double>() { .000001 }; 282List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 283List<Tensor> targetTensors = new List<Tensor>(Parent.Option.BatchSize); 420var targetList = new List<int> { mapping[answerIndex] + 2 + questionTokenId.Count, mapping[answerEnd] + 2 + questionTokenId.Count }; 510var scoreMetadata = new List<SchemaShape.Column>(); 596var scoreMetadata = new List<SchemaShape.Column>
TorchSharpBaseTrainer.cs (4)
206List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 207List<TTargetsCol> targets = new List<TTargetsCol>(Parent.Option.BatchSize); 278List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 279List<TTargetsCol> targets = new List<TTargetsCol>(Parent.Option.BatchSize);
Utils\ImageUtils.cs (6)
49var finalResult = new[] { new List<Tensor>(), new List<Tensor>(), new List<Tensor>() }; 119var keep = new List<long>(); 191new List<Tensor> { predBoxesX1, predBoxesY1, predBoxesX2, predBoxesY2 }, 220new List<Tensor> { clippedBoxesX0, clippedBoxesY0, clippedBoxesX1, clippedBoxesY1 },
Utils\MetricUtils.cs (1)
36var topK = new List<(int start, int end, float score)>();
Microsoft.ML.TorchSharp.Tests (9)
NerTests.cs (2)
47new List<TestSingleSentenceData>(new TestSingleSentenceData[] { 126new List<TestSingleSentenceData>(new TestSingleSentenceData[] {
ObjectDetectionTests.cs (1)
71var logs = new List<LoggingEventArgs>();
QATests.cs (1)
33new List<TestSingleSentenceData>(new TestSingleSentenceData[] {
TextClassificationTests.cs (5)
55new List<TestSingleSentenceData>(new TestSingleSentenceData[] { 118new List<TestSingleSentenceDataNoLabel>(new TestSingleSentenceDataNoLabel[] { 192new List<TestSingleSentenceData>(new TestSingleSentenceData[] { 265new List<TestDoubleSentenceData>(new TestDoubleSentenceData[] { 348new List<TestSentenceSimilarityData>(new TestSentenceSimilarityData[] {
Microsoft.ML.Transforms (82)
CountFeatureSelection.cs (5)
176var metadata = new List<SchemaShape.Column>(); 250var dropSlotsCols = new List<SlotsDroppingTransformer.ColumnOptions>(); 251var copyCols = new List<(string outputColumnName, string inputColumnName)>(); 254var slots = new List<(int min, int? max)>(); 301var activeCols = new List<DataViewSchema.Column>();
Dracula\CountTableTransformer.cs (2)
160var cols = new List<DataViewSchema.Column>(); 339var newMetadataKinds = new List<SchemaShape.Column>();
Expression\CodeGen.cs (1)
145_cacheWith = new List<CachedWithLocal>();
Expression\LambdaBinder.cs (2)
38_rgwith = new List<WithNode>(); 1305var candidates = new List<Candidate>();
Expression\LambdaParser.cs (6)
170_lineMap = new List<int>(); 203_errors = new List<Error>(); 367var items = new List<ParamNode>(); 631List<Node> list = new List<Node>(); 632List<Token> ops = new List<Token>(); 719List<Node> list = new List<Node>();
Expression\MethodGenerator.cs (1)
180locals = new List<LocalBuilder>(4);
ExpressionTransformer.cs (1)
191var metadata = new List<SchemaShape.Column>();
GcnTransform.cs (1)
920var metadata = new List<SchemaShape.Column>();
KeyToVectorMapping.cs (1)
478var metadata = new List<SchemaShape.Column>();
LearnerFeatureSelection.cs (1)
144var slots = new List<(int min, int? max)>();
MissingValueHandlingTransformer.cs (5)
141var replaceCols = new List<MissingValueReplacingEstimator.ColumnOptions>(); 142var naIndicatorCols = new List<MissingValueIndicatorTransformer.Column>(); 143var naConvCols = new List<TypeConvertingEstimator.ColumnOptions>(); 144var concatCols = new List<ColumnConcatenatingTransformer.TaggedColumn>(); 145var dropCols = new List<string>();
MissingValueIndicatorTransformer.cs (2)
281var indices = new List<int>(); 542var metadata = new List<SchemaShape.Column>();
MissingValueReplacing.cs (2)
288var sourceColumns = new List<DataViewSchema.Column>(); 1045var metadata = new List<SchemaShape.Column>();
MutualInformationFeatureSelection.cs (6)
243var metadata = new List<SchemaShape.Column>(); 330var dropCols = new List<SlotsDroppingTransformer.ColumnOptions>(); 331var copyCols = new List<(string outputColumnName, string inputColumnName)>(); 335var slots = new List<(int min, int? max)>(); 432_singles = new List<float>(); 433_doubles = new List<double>();
OneHotEncoding.cs (3)
102var columns = new List<OneHotEncodingEstimator.ColumnOptions>(); 283var binaryCols = new List<(string outputColumnName, string inputColumnName)>(); 284var cols = new List<(string outputColumnName, string inputColumnName, bool bag)>();
OneHotHashEncoding.cs (3)
151var columns = new List<OneHotHashEncodingEstimator.ColumnOptions>(); 331var binaryCols = new List<(string outputColumnName, string inputColumnName)>(); 332var cols = new List<(string outputColumnName, string inputColumnName, bool bag)>();
PermutationFeatureImportance.cs (2)
43var metricsDelta = new List<TResult>(); 137List<float> initialfeatureValuesList = new List<float>();
RandomFourierFeaturizing.cs (1)
283var activeColumns = new List<DataViewSchema.Column>();
SvmLight\SvmLightLoader.cs (2)
185var keys = new List<ReadOnlyMemory<char>>(); 186var values = new List<float>();
SvmLight\SvmLightSaver.cs (1)
122var columns = new List<DataViewSchema.Column>() { labelCol.Value, featureCol.Value };
Text\LdaSingleBox.cs (3)
228var topicRet = new List<KeyValuePair<int, float>>(); 286var topicRet = new List<KeyValuePair<int, float>>(); 319var topicRet = new List<KeyValuePair<int, float>>();
Text\LdaTransform.cs (4)
344var itemScores = new List<ModelParameters.ItemScore>(); 361var wordScores = new List<ModelParameters.WordItemScore>(); 829var activeColumns = new List<DataViewSchema.Column>(); 833var columnMappings = new List<VBuffer<ReadOnlyMemory<char>>>();
Text\NgramHashingTransformer.cs (2)
200var sourceColumnsForInvertHash = new List<DataViewSchema.Column>(); 1225var metadata = new List<SchemaShape.Column>();
Text\NgramTransform.cs (4)
231var activeCols = new List<DataViewSchema.Column>(); 585ngramIds[i] = new List<long>(); 586ngramIndexes[i] = new List<long>(); 1087var metadata = new List<SchemaShape.Column>();
Text\SentimentAnalyzingTransform.cs (1)
121var toHide = new List<string>(colNames.Length);
Text\StopWordsRemovingTransformer.cs (2)
414var list = new List<ReadOnlyMemory<char>>(); 1105var list = new List<ReadOnlyMemory<char>>();
Text\TextFeaturizingEstimator.cs (4)
452List<string> tempCols = new List<string>(); 562var xfCols = new List<LpNormNormalizingEstimator.ColumnOptions>(2); 585var srcTaggedCols = new List<KeyValuePair<string, string>>(2); 651var metadata = new List<SchemaShape.Column>(2);
Text\TextNormalizing.cs (1)
364var list = new List<ReadOnlyMemory<char>>();
Text\TokenizingByCharacters.cs (1)
692var metadata = new List<SchemaShape.Column>();
Text\WordBagTransform.cs (2)
466var termCols = new List<Column>(); 490var columnOptions = new List<ValueToKeyMappingEstimator.ColumnOptionsBase>();
Text\WordEmbeddingsExtractor.cs (2)
139var labels = new List<string>(); 424var tensorD = new List<float>();
Text\WordHashBagProducingTransform.cs (3)
105var tokenizeColumns = new List<WordTokenizingEstimator.ColumnOptions>(); 108List<string> tmpColNames = new List<string>(); 335var hashColumns = new List<HashingEstimator.ColumnOptions>();
Text\WordTokenizing.cs (4)
254var terms = new List<ReadOnlyMemory<char>>(); 283var terms = new List<ReadOnlyMemory<char>>(); 337var toHide = new List<string>(); 338var toDeclare = new List<KeyValuePair<string, JToken>>();
UngroupTransform.cs (1)
489var needed = new List<Func<int>>();
Microsoft.ML.Vision (4)
ImageClassificationTrainer.cs (4)
636var metadata = new List<SchemaShape.Column>(); 815List<(long, float[])> featurizedImages = new List<(long, float[])>(); 928List<string> runnerInputTensorNames = new List<string>(); 929List<string> runnerOutputTensorNames = new List<string>();
Microsoft.Net.Http.Headers (6)
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 (2)
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)
297Assert.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 (1)
SpanBasedStringBuilder.cs (1)
109_spans = new List<ReadOnlyMemory<char>>(capacity);
Microsoft.NET.StringTools.net35 (1)
WeakStringCache.Locking.cs (1)
95keysToRemove ??= new List<int>();
Microsoft.VisualBasic.Core (18)
Microsoft\VisualBasic\Collection.vb (1)
345m_Iterators = New List(Of Object)
Microsoft\VisualBasic\CompilerServices\ConversionResolution.vb (7)
756Dim operatorChoices As List(Of Method) = New List(Of Method)(operatorSet.Count) 757Dim candidates As List(Of Method) = New List(Of Method)(operatorSet.Count) 759Dim sourceBases As List(Of Type) = New List(Of Type)(operatorSet.Count) 760Dim targetDeriveds As List(Of Type) = New List(Of Type)(operatorSet.Count) 765sourceDeriveds = New List(Of Type)(operatorSet.Count) 766targetBases = New List(Of Type)(operatorSet.Count) 855Return New List(Of Method)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (1)
1307Dim writeback As New List(Of Expression)
Microsoft\VisualBasic\CompilerServices\LikeOperator.vb (1)
1066Dim RangeList As New List(Of Range)
Microsoft\VisualBasic\CompilerServices\NewLateBinding.vb (2)
1379Dim errors As New List(Of String) 1447Dim errors As New List(Of String)
Microsoft\VisualBasic\CompilerServices\Operators.Resolution.vb (2)
56result = New List(Of Method) 204Dim errors As New List(Of String)
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (2)
735Dim candidates As List(Of Method) = New List(Of Method)(members.Length) 2524Dim errors As New List(Of String)
Microsoft\VisualBasic\CompilerServices\Symbols.vb (2)
940Dim result As New List(Of MemberInfo) 1001Dim result As New List(Of MemberInfo)
Microsoft.VisualStudio.LanguageServices (50)
CallHierarchy\CallHierarchyProvider.cs (1)
105var finders = new List<AbstractCallFinder>
CallHierarchy\Finders\AbstractCallFinder.cs (1)
152var initializerLocations = new List<CallHierarchyDetail>();
CallHierarchy\Finders\CallToOverrideFinder.cs (1)
26var callsToOverrides = new List<SymbolCallerInfo>();
ChangeSignature\ChangeSignatureDialogViewModel.cs (3)
148var list = new List<ParameterViewModel>(); 347var displayParts = new List<SymbolDisplayPart>(); 387var list = new List<ParameterViewModel>();
EditorConfigSettings\SettingsEditorPane.SearchFilter.cs (1)
25var newVisibleColumns = new List<ITableColumnDefinition>();
ErrorReporting\VisualStudioErrorReportingService.cs (1)
68var 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)
51new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.A, ModifierKeys.Alt) })), 58new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.K, ModifierKeys.Alt) })), 65new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.P, ModifierKeys.Alt) })), 72new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.C, ModifierKeys.Alt) })), 79new InputGestureCollection(new List<InputGesture> { new KeyGesture(Key.X, ModifierKeys.Alt) })),
GenerateType\GenerateTypeDialogViewModel.cs (1)
688var 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)
101var spanChanges = new List<SpanChange>();
Preview\PreviewEngine.cs (1)
119var allDocumentsWithChanges = new List<DocumentId>();
ProjectSystem\VisualStudioProjectManagementService.cs (1)
60var 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)
21{ FunctionId.NavigateTo_Search, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 27{ FunctionId.Rename_InlineSession, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 32{ FunctionId.Rename_FindLinkedSpans, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 37{ FunctionId.WinformDesigner_GenerateXML, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 42{ FunctionId.BackgroundCompiler_BuildCompilationsAsync, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 48{ FunctionId.FindReference, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 53{ FunctionId.SmartTags_SmartTagInitializeFixes, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 58{ FunctionId.SmartTags_ApplyQuickFix, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 64{ FunctionId.LineCommit_CommitRegion, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 69{ FunctionId.Tagger_Outlining_TagProducer_ProduceTags, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 74{ FunctionId.Tagger_LineSeparator_TagProducer_ProduceTags, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 79{ FunctionId.NavigationBar_ComputeModelAsync, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 84{ FunctionId.Completion_ModelComputer_DoInBackground, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 90{ FunctionId.SignatureHelp_ModelComputation_UpdateModelInBackground, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 95{ FunctionId.Formatting_Format, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 100{ FunctionId.Formatting_ApplyResultToBuffer, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 105{ FunctionId.SmartTags_RefreshSession, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 116{ FunctionId.Rename_InlineSession, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBRenameSymbolEnd } }, 117{ FunctionId.BackgroundCompiler_BuildCompilationsAsync, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBCompilerReachedBoundState, CodeMarkerEvent.perfVBCompilerReachedCompiledState } }, 118{ FunctionId.Completion_ModelComputer_DoInBackground, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBIntelliXMLIndexingEnd } }, 119{ FunctionId.WorkCoordinator_AsyncWorkItemQueue_FirstItem, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBCompilerRegisterDesignViewAttributeBegin, CodeMarkerEvent.perfVBCompilerCommitBegin } }, 120{ FunctionId.WorkCoordinator_AsyncWorkItemQueue_LastItem, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBCompilerRegisterDesignViewAttributeEnd, CodeMarkerEvent.perfVBCompilerCommitEnd } }, 121{ FunctionId.Snippet_OnAfterInsertion, new List<CodeMarkerId>() { CodeMarkerEvent.perfVBInsertSnippetEnd } }
Watson\FaultReporter.cs (1)
307var paths = new List<string>();
Microsoft.VisualStudio.LanguageServices.CSharp (16)
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)
2228var usingDirectivePlacementPreferences = new List<CodeStylePreference> 2234var qualifyMemberAccessPreferences = new List<CodeStylePreference> 2240var predefinedTypesPreferences = new List<CodeStylePreference> 2246var typeStylePreferences = new List<CodeStylePreference> 2371var bracesPreferences = new List<CodeStylePreference> 2390var preferences = new List<CodeStylePreference> 2408var expressionBodyPreferences = new List<CodeStylePreference> 2476var unusedValuePreferences = new List<CodeStylePreference>
ProjectSystemShim\TempPECompilerService.cs (2)
39var trees = new List<SyntaxTree>(capacity: sourceCount); 73var arguments = new List<string>();
Snippets\CSharpSnippetExpansionLanguageHelper.cs (1)
113var newUsings = new List<UsingDirectiveSyntax>();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
Interactive\Commands\InteractiveCommandHandlerTests.cs (1)
200var submissions = new List<string>();
Interactive\Commands\ResetInteractiveTests.cs (3)
63var expectedUsings = new List<string> { @"using ""System"";", @"using ""ResetInteractiveTestsDocument"";" }; 81var executedSubmissionCalls = new List<string>(); 122var expectedSubmissions = new List<string>();
PersistentStorage\AbstractPersistentStorageTests.cs (2)
912var exceptions = new List<Exception>(); 944var exceptions = new List<Exception>();
Microsoft.VisualStudio.LanguageServices.Implementation (9)
CodeModel\CodeModelProjectCache.cs (1)
157var result = new List<ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>>();
CodeModel\FileCodeModel.cs (1)
791var currentNodeKeys = new List<GlobalNodeKey>();
CodeModel\FileCodeModel_CodeGen.cs (1)
104var result = new List<object>();
Options\AbstractOptionPreviewViewModel.cs (4)
176var lineSpans = new List<LineSpan>(); 216var preferences = new List<ParenthesesPreference>(); 217var codeStylePreferences = new List<CodeStylePreference>(); 235var unusedParameterPreferences = new List<CodeStylePreference>
Options\Style\NamingPreferences\NamingStyleOptionPageViewModel.cs (1)
40var viewModels = new List<NamingRuleViewModel>();
ProjectSystem\CPS\TempPECompiler.cs (1)
47var syntaxTrees = new List<SyntaxTree>(capacity: filesToInclude.Count);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\Projects\RemoteProjectInfoProvider.cs (1)
32var projectInfos = new List<ProjectInfo>();
Microsoft.VisualStudio.LanguageServices.Xaml (3)
Features\InlineRename\XamlEditorInlineRenameService.cs (1)
79var references = new List<InlineRenameLocation>();
Implementation\LanguageServer\Extensions\SymbolExtensions.cs (1)
56var builder = new List<TaggedText>();
Implementation\LanguageServer\Handler\Hover\HoverHandler.cs (1)
65var descriptionBuilder = new List<TaggedText>(info.Description);
MilvusPlayground.ApiService (4)
Program.cs (4)
46List<long> bookIds = new(); 47List<long> wordCounts = new(); 48List<ReadOnlyMemory<float>> bookIntros = new(); 49List<string> bookNames = new();
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 (26)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (4)
69var mainEmbeddedList = new List<ITaskItem>(); 70var satelliteEmbeddedList = new List<ITaskItem>(); 71var clrEmbeddedResourceList = new List<ITaskItem>(); 72var clrSatelliteEmbeddedResourceList = new List<ITaskItem>();
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (1)
271var properties = new List<(string PropertyName, string PropertyValue)>
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
652_uids = new List<Uid>(32); 653_namespacePrefixes = new List<string>(2);
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1297var paths = new List<string>(ReferenceAssemblyList?.Count ?? 0);
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (2)
180List<FileUnit> modifiedXamlFiles = new List<FileUnit>(); 360List<FileUnit> recompiledXaml = new List<FileUnit>();
src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\Internal\Media\XamlSerializationHelper.cs (2)
372List<ThreeDoublesMarkup> resource = new List<ThreeDoublesMarkup>( source.Length/ 8 ) ; // SWAG the length of the collection. 398List<Point> resource = new List<Point>(source.Length/ 8 ); // SWAG the length of the collection.
src\Microsoft.DotNet.Wpf\src\PresentationFramework\MS\Internal\Globalization\LocalizationComments.cs (1)
81List<PropertyComment> tokens = new List<PropertyComment>(8);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (4)
1815private readonly List<BamlAssemblyInfoRecord> _assemblyIdToInfo = new(); 1819private readonly List<BamlTypeInfoRecord> _typeIdToInfo = new(); 1823private readonly List<BamlAttributeInfoRecord> _attributeIdToInfo = new(10); 1827private readonly List<BamlStringInfoRecord> _stringIdToInfo = new();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (3)
301_staticResourceRecordList = new List<ValueDeferRecord>(5); 1160_staticResourceRecordList = new List<ValueDeferRecord>(1); 1784_staticResourceRecordList = new List<List<ValueDeferRecord>>(1);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (1)
218List<IntegerMarkup> resource = new List<IntegerMarkup>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
3256namespaceAssemblyPair = new List<ClrNamespaceAssemblyPair>(1);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (3)
84List<Assembly> interestingAssemblies = new List<Assembly>(); 215List<CustomAttributeData> foundAttributes = new List<CustomAttributeData>(); 318_cacheTable[xmlns] = new List<ClrNamespaceAssemblyPair>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
130List<string> keysToUpdate = new List<string>();
PresentationCore (351)
MS\Internal\FontCache\FamilyCollection.cs (1)
49List<CompositeFontFamily> compositeFonts = new List<CompositeFontFamily>();
MS\Internal\FontCache\FontResourceCache.cs (2)
137folderResourceMap[folderName] = new List<string>(1); 141folderResourceMap[resourceFullName] = new List<string>(1);
MS\Internal\FontCache\FontSourceCollection.cs (4)
55_fontSources = new List<Text.TextInterface.IFontSource>(1); 107fontSources = new List<Text.TextInterface.IFontSource>(files.Count); 130fontSources = new List<Text.TextInterface.IFontSource>(0); 136fontSources = new List<Text.TextInterface.IFontSource>(resourceEntries.Count);
MS\Internal\IListConverters.cs (4)
98List<double> list = new List<double>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 141List<ushort> list = new List<ushort>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 182List<bool> list = new List<bool>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 224List<Point> list = new List<Point>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1));
MS\Internal\Ink\Bezier.cs (2)
48List<Point> points = new List<Point>(); 579private List<Point> _bezierControlPoints = new List<Point>();
MS\Internal\Ink\CuspData.cs (3)
32_points = new List<CDataPoint>(stylusPoints.Count); 33_nodes = new List<double>(stylusPoints.Count); 532private List<int> _cusps = new List<int>();
MS\Internal\Ink\ErasingStroke.cs (3)
60_erasingStrokeNodes = new List<StrokeNode>(points.Length); 139List<StrokeFIndices> eraseAt = new List<StrokeFIndices>(); 261List<Point> newPath = new List<Point>();
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
356private List<ExtendedProperty> _extendedProperties = new List<ExtendedProperty>();
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (3)
213List<ApplicationGesture> gestures = new List<ApplicationGesture>(); 601List<GestureRecognitionResult> resultList = new List<GestureRecognitionResult>(); 669List<GestureRecognitionResult> resultList = new List<GestureRecognitionResult>();
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (2)
71List<byte> compressedData = new List<byte>(); 249List<byte> compressedData = new List<byte>(input.Length + 1); //reasonable default based on profiling.
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (1)
626List<byte> output = new List<byte>((bitsToWrite / 8) * unitsToDecode);
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (1)
13private readonly System.Collections.Generic.List<Guid> _customGuids = new System.Collections.Generic.List<Guid>();
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
103private List<HuffCodec> _huffCodecs = new List<HuffCodec>();
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (11)
93List<char> charData = new List<char>((int)inkData.Length); 316_strokeDescriptorTable = new System.Collections.Generic.List<StrokeDescriptor>(); 317_drawingAttributesTable = new System.Collections.Generic.List<DrawingAttributes>(); 318_transformTable = new System.Collections.Generic.List<TransformDescriptor>(); 319_metricTable = new System.Collections.Generic.List<MetricBlock>(); 1567tags = new System.Collections.Generic.List<KnownTagCache.KnownTagIndex>(); 1614List<StylusPointPropertyInfo> stylusPointPropertyInfos = new List<StylusPointPropertyInfo>(); 1684_strokeDescriptorTable = new List<StrokeDescriptor>(_coreStrokes.Count); 1685_drawingAttributesTable = new List<DrawingAttributes>(); 1686_metricTable = new List<MetricBlock>(); 1687_transformTable = new List<TransformDescriptor>();
MS\Internal\Ink\InkSerializedFormat\LZCodec.cs (1)
32List<byte> output = new List<byte>();
MS\Internal\Ink\InkSerializedFormat\StrokeDescriptor.cs (1)
11private System.Collections.Generic.List<KnownTagCache.KnownTagIndex> _strokeDescriptor = new System.Collections.Generic.List<KnownTagCache.KnownTagIndex>();
MS\Internal\Ink\Lasso.cs (4)
25_points = new List<Point>(); 219List<LassoCrossing> crossingList = new List<LassoCrossing>(); 315List<StrokeIntersection> strokeIntersectionList = new List<StrokeIntersection>(); 330List<LassoCrossing> mergedList = new List<LassoCrossing>();
MS\Internal\Ink\Renderer.cs (1)
296_attachedVisuals = new List<Visual>();
MS\Internal\Ink\StrokeIntersection.cs (2)
187List<StrokeFIndices> inFIndices = new List<StrokeFIndices>(intersections.Length); 219List<StrokeFIndices> hitFIndices = new List<StrokeFIndices>(intersections.Length);
MS\Internal\Ink\StrokeRenderer.cs (5)
49List<Point> connectingQuadPoints = new List<Point>(iterator.Count * 4); 61List<Point> strokeNodePoints = new List<Point>(); 259List<Point> pathFigureABSide = new List<Point>();//don't prealloc. It causes Gen2 collections to rise and doesn't help execution time 260List<Point> pathFigureDCSide = new List<Point>(); 261List<Point> polyLinePoints = new List<Point>(4);
MS\Internal\Media\ParserStreamGeometryContext.cs (1)
542points = new List<Point>(count);
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (8)
249List<HitTestEdge> hitTestEdgeList = new List<HitTestEdge>(); 260return new List<HitTestEdge>(); 272return new List<HitTestEdge>(); 406hitTestEdgeList = new List<HitTestEdge>(); 472List<Point3D> pointList = new List<Point3D>(); 473List<Point> uvList = new List<Point>(); 902List<Point3D> pointList = new List<Point3D>(); 903List<Point> uvList = new List<Point>();
MS\Internal\Shaping\TypefaceMap.cs (1)
37private IList<ScaledShapeTypeface> _cachedScaledTypefaces = new List<ScaledShapeTypeface>(InitialScaledGlyphableTypefaceCount);
MS\Internal\TextFormatting\FullTextLine.cs (2)
1981IList<TextRunBounds> boundsList = new List<TextRunBounds>(2); 2062List<TextSpan<TextRun>> lsrunList = new List<TextSpan<TextRun>>(2);
MS\Internal\TextFormatting\LineServicesCallbacks.cs (4)
3097glyphAdvances = new List<double>(glyphCount); 3103glyphOffsets = new List<Point>(glyphCount); 3234charWidths = new List<double>(cchText); 3496_indexedGlyphRuns = new List<IndexedGlyphRun>(8);
MS\Internal\TextFormatting\LineServicesRun.cs (1)
641List<DWriteFontFeature> fontFeatures = new List<DWriteFontFeature>((int)CustomOpenTypeFeatures.Count);
MS\Internal\TextFormatting\SimpleTextLine.cs (4)
826boundsList = new List<TextRunBounds>(2); 898List<IndexedGlyphRun> indexedGlyphRuns = new List<IndexedGlyphRun>(_runs.Length); 921displayGlyphAdvances = new List<double>(run.NominalAdvances.Length); 1767displayGlyphAdvances = new List<double>(NominalAdvances.Length);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
1101_others = new List<Entry>(2); // by default we have two entries in the extra storage. 1334List<Entry> others = new List<Entry>(2); // by default we have two entries in the extra storage.
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
188keysToRemove = new List<object>();
System\Windows\Automation\Peers\AutomationPeer.cs (1)
1924if(addedChildren == null) addedChildren = new List<AutomationPeer>();
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
67children = new List<AutomationPeer>();
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
65children = new List<AutomationPeer>();
System\Windows\FreezableCollection.cs (5)
41_collection = new List<T>(); 50_collection = new List<T>(capacity); 70_collection = new List<T>(count); 74_collection = new List<T>(); 795_collection = new List<T>(count);
System\Windows\Ink\IncrementalHitTester.cs (4)
121_strokeInfos = new List<StrokeInfo>(strokes.Count); 226List<StrokeInfo> newStrokeInfos = new List<StrokeInfo>(_strokes.Count); 526List<StrokeIntersection> eraseAt = new List<StrokeIntersection>(); 546strokeHitEventArgCollection = new List<StrokeHitEventArgs>();
System\Windows\Ink\Stroke2.cs (1)
571List<StrokeIntersection> intersections = new List<StrokeIntersection>();
System\Windows\Ink\StrokeCollection2.cs (3)
334List<StrokeIntersection> intersections = new List<StrokeIntersection>(); 352List<Stroke> solidStrokes = new List<Stroke>(); 366strokes = new List<Stroke>();
System\Windows\Input\AccessKeyManager.cs (2)
377List<IInputElement> finalTargets = new List<IInputElement>(1); 589List<IInputElement> copy = new List<IInputElement>(elements.Count);
System\Windows\Input\Command\CanExecuteChangedEventManager.cs (3)
105toRemove = new List<HandlerSink>(); 191list = new List<HandlerSink>(); 266list = new List<Delegate>();
System\Windows\Input\Command\CommandBindingCollection.cs (3)
159_innerCBList ??= new Collections.Generic.List<CommandBinding>(1); 181_innerCBList ??= new System.Collections.Generic.List<CommandBinding>(collection.Count); 336System.Collections.Generic.List<CommandBinding> list = new System.Collections.Generic.List<CommandBinding>(0);
System\Windows\Input\Command\CommandManager.cs (1)
579list ??= new List<ValueTuple<Type, CommandBinding>>(8)
System\Windows\Input\Command\InputBindingCollection.cs (4)
199_innerBindingList = new System.Collections.Generic.List<InputBinding>(1); 248_innerBindingList = new System.Collections.Generic.List<InputBinding>(collection.Count); 359List<InputBinding> oldInputBindings = new List<InputBinding>(_innerBindingList); 379System.Collections.Generic.List<InputBinding> list = new System.Collections.Generic.List<InputBinding>(0);
System\Windows\Input\Command\InputGestureCollection.cs (3)
158List<InputGesture> list = new List<InputGesture>(0); 275_innerGestureList = new System.Collections.Generic.List<InputGesture>(collection.Count); 399_innerGestureList = new List<InputGesture>(1);
System\Windows\Input\InputScope.cs (2)
89private IList<InputScopeName> _scopeNames = new List<InputScopeName>(); 90private IList<InputScopePhrase> _phraseList = new List<InputScopePhrase>();
System\Windows\Input\ManipulationDevice.cs (3)
151_manipulators = new List<IManipulator>(2); 449List<IManipulator> manipulators = new List<IManipulator>(_manipulators); 465List<IManipulator> manipulators = new List<IManipulator>(_manipulators);
System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (1)
198_inertiaParameters = new List<InertiaParameters2D>();
System\Windows\Input\ManipulationStartingEventArgs.cs (1)
128_parameters = new List<ManipulationParameters2D>(1);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (2)
207private List<StrokeInfo> _strokeInfoList = new List<StrokeInfo>(); 1172private List<StrokeInfo> _strokeInfoList = new List<StrokeInfo>();
System\Windows\Input\Stylus\Common\StylusButtonCollection.cs (1)
18: base(new List<StylusButton>(buttons))
System\Windows\Input\Stylus\Common\StylusDeviceCollection.cs (1)
22: base(new List<StylusDevice>())
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (2)
85List<StylusPoint> points = new List<StylusPoint>(stylusPoints); 112List<StylusPoint> stylusPoints = new List<StylusPoint>();
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (3)
48new List<StylusPointPropertyInfo>(stylusPointPropertyInfos); 61List<Guid> seenIds = new List<Guid>(); 350List<StylusPointPropertyInfo> commonProperties = new List<StylusPointPropertyInfo>();
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (1)
259List<StylusPointPropertyInfo> propertyInfos = new List<StylusPointPropertyInfo>();
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
119internal List<TabletDevice> TabletDevices { get; set; } = new List<TabletDevice>();
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (1)
36new List<UnsafeNativeMethods.INTERACTION_CONTEXT_CONFIGURATION>()
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
121List<StylusButton> buttons = new List<StylusButton>();
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
648private List<StylusPlugInCollection> _plugInCollectionList = new List<StylusPlugInCollection>();
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
95List<PointerStylusDevice> pointerStylusDevices = new List<PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceInfo.cs (4)
188List<StylusPointProperty> properties = new List<StylusPointProperty>() 195List<StylusPointProperty> buttonProperties = new List<StylusPointProperty>(); 198List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY> supportedProperties = new List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY>() 204List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY> supportedButtonProperties = new List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY>();
System\Windows\Input\Stylus\Wisp\PenContext.cs (2)
109List<StylusPointPropertyInfo> propertyInfos = new List<StylusPointPropertyInfo>(cProps + cButtons + 3); 330_stylusDevicesInRange = new List<int>(); // create it as needed.
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
544private List<StylusPlugInCollection> _plugInCollectionList = new List<StylusPlugInCollection>();
System\Windows\Input\Stylus\Wisp\PenThreadPool.cs (2)
60_penThreadWeakRefList = new List<WeakReference<PenThread>>(); 83List<PenThread> ignoredThreads = new List<PenThread>();
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (4)
42private List <WorkerOperation> _workerOperation = new List<WorkerOperation>(); 904List<StylusPointProperty> properties = new List<StylusPointProperty>(cProps + cButtons + 3); 997List <PenContext> penContextRefs = new List<PenContext>(); // keep them alive while processing! 1056List <PenContext> penContextRefs = new List<PenContext>(); // keep them alive while processing!
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (5)
385TabletDevices = new List<TabletDevice>(_tablets); 551TabletDevices = new List<TabletDevice>(_tablets); 572TabletDevices = new List<TabletDevice>(_tablets); 636List<TabletDevice> tabletTemp = new List<TabletDevice>(); 699private List<TabletDevice> _deferredTablets = new List<TabletDevice>();
System\Windows\Input\TouchDevice.cs (3)
431others = new List<DependencyObject>(count); 1126_activeDevices = new List<TouchDevice>(2); 1214List<TouchDevice> touches = new List<TouchDevice>();
System\Windows\InterOp\HwndSource.cs (1)
1919_keyboardInputSinkChildren = new List<HwndSourceKeyboardInputSite>();
System\Windows\Media\Animation\AnimationLayer.cs (1)
198animationClockList = new List<AnimationClock>(oldClocksCount + newClocksCount);
System\Windows\Media\Animation\ClockGroup.cs (2)
104_children = new List<Clock>(); 413_rootChildren = new List<WeakReference>();
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (6)
37_keyFrames = new List< BooleanKeyFrame>(2); 55_keyFrames = new List<BooleanKeyFrame>(0) 98_keyFrames = new List< BooleanKeyFrame>(count); 119_keyFrames = new List< BooleanKeyFrame>(count); 140_keyFrames = new List< BooleanKeyFrame>(count); 161_keyFrames = new List< BooleanKeyFrame>(count);
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (6)
37_keyFrames = new List< ByteKeyFrame>(2); 55_keyFrames = new List<ByteKeyFrame>(0) 98_keyFrames = new List< ByteKeyFrame>(count); 119_keyFrames = new List< ByteKeyFrame>(count); 140_keyFrames = new List< ByteKeyFrame>(count); 161_keyFrames = new List< ByteKeyFrame>(count);
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (6)
37_keyFrames = new List< CharKeyFrame>(2); 55_keyFrames = new List<CharKeyFrame>(0) 98_keyFrames = new List< CharKeyFrame>(count); 119_keyFrames = new List< CharKeyFrame>(count); 140_keyFrames = new List< CharKeyFrame>(count); 161_keyFrames = new List< CharKeyFrame>(count);
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (6)
37_keyFrames = new List< ColorKeyFrame>(2); 55_keyFrames = new List<ColorKeyFrame>(0) 98_keyFrames = new List< ColorKeyFrame>(count); 119_keyFrames = new List< ColorKeyFrame>(count); 140_keyFrames = new List< ColorKeyFrame>(count); 161_keyFrames = new List< ColorKeyFrame>(count);
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (6)
37_keyFrames = new List< DecimalKeyFrame>(2); 55_keyFrames = new List<DecimalKeyFrame>(0) 98_keyFrames = new List< DecimalKeyFrame>(count); 119_keyFrames = new List< DecimalKeyFrame>(count); 140_keyFrames = new List< DecimalKeyFrame>(count); 161_keyFrames = new List< DecimalKeyFrame>(count);
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (6)
37_keyFrames = new List< DoubleKeyFrame>(2); 55_keyFrames = new List<DoubleKeyFrame>(0) 98_keyFrames = new List< DoubleKeyFrame>(count); 119_keyFrames = new List< DoubleKeyFrame>(count); 140_keyFrames = new List< DoubleKeyFrame>(count); 161_keyFrames = new List< DoubleKeyFrame>(count);
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (6)
37_keyFrames = new List< Int16KeyFrame>(2); 55_keyFrames = new List<Int16KeyFrame>(0) 98_keyFrames = new List< Int16KeyFrame>(count); 119_keyFrames = new List< Int16KeyFrame>(count); 140_keyFrames = new List< Int16KeyFrame>(count); 161_keyFrames = new List< Int16KeyFrame>(count);
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (6)
37_keyFrames = new List< Int32KeyFrame>(2); 55_keyFrames = new List<Int32KeyFrame>(0) 98_keyFrames = new List< Int32KeyFrame>(count); 119_keyFrames = new List< Int32KeyFrame>(count); 140_keyFrames = new List< Int32KeyFrame>(count); 161_keyFrames = new List< Int32KeyFrame>(count);
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (6)
37_keyFrames = new List< Int64KeyFrame>(2); 55_keyFrames = new List<Int64KeyFrame>(0) 98_keyFrames = new List< Int64KeyFrame>(count); 119_keyFrames = new List< Int64KeyFrame>(count); 140_keyFrames = new List< Int64KeyFrame>(count); 161_keyFrames = new List< Int64KeyFrame>(count);
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (6)
37_keyFrames = new List< MatrixKeyFrame>(2); 55_keyFrames = new List<MatrixKeyFrame>(0) 98_keyFrames = new List< MatrixKeyFrame>(count); 119_keyFrames = new List< MatrixKeyFrame>(count); 140_keyFrames = new List< MatrixKeyFrame>(count); 161_keyFrames = new List< MatrixKeyFrame>(count);
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (6)
37_keyFrames = new List< ObjectKeyFrame>(2); 55_keyFrames = new List<ObjectKeyFrame>(0) 98_keyFrames = new List< ObjectKeyFrame>(count); 119_keyFrames = new List< ObjectKeyFrame>(count); 140_keyFrames = new List< ObjectKeyFrame>(count); 161_keyFrames = new List< ObjectKeyFrame>(count);
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (6)
37_keyFrames = new List< Point3DKeyFrame>(2); 55_keyFrames = new List<Point3DKeyFrame>(0) 98_keyFrames = new List< Point3DKeyFrame>(count); 119_keyFrames = new List< Point3DKeyFrame>(count); 140_keyFrames = new List< Point3DKeyFrame>(count); 161_keyFrames = new List< Point3DKeyFrame>(count);
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (6)
37_keyFrames = new List< PointKeyFrame>(2); 55_keyFrames = new List<PointKeyFrame>(0) 98_keyFrames = new List< PointKeyFrame>(count); 119_keyFrames = new List< PointKeyFrame>(count); 140_keyFrames = new List< PointKeyFrame>(count); 161_keyFrames = new List< PointKeyFrame>(count);
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (6)
37_keyFrames = new List< QuaternionKeyFrame>(2); 55_keyFrames = new List<QuaternionKeyFrame>(0) 98_keyFrames = new List< QuaternionKeyFrame>(count); 119_keyFrames = new List< QuaternionKeyFrame>(count); 140_keyFrames = new List< QuaternionKeyFrame>(count); 161_keyFrames = new List< QuaternionKeyFrame>(count);
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (6)
37_keyFrames = new List< RectKeyFrame>(2); 55_keyFrames = new List<RectKeyFrame>(0) 98_keyFrames = new List< RectKeyFrame>(count); 119_keyFrames = new List< RectKeyFrame>(count); 140_keyFrames = new List< RectKeyFrame>(count); 161_keyFrames = new List< RectKeyFrame>(count);
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (6)
37_keyFrames = new List< Rotation3DKeyFrame>(2); 55_keyFrames = new List<Rotation3DKeyFrame>(0) 98_keyFrames = new List< Rotation3DKeyFrame>(count); 119_keyFrames = new List< Rotation3DKeyFrame>(count); 140_keyFrames = new List< Rotation3DKeyFrame>(count); 161_keyFrames = new List< Rotation3DKeyFrame>(count);
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (6)
37_keyFrames = new List< SingleKeyFrame>(2); 55_keyFrames = new List<SingleKeyFrame>(0) 98_keyFrames = new List< SingleKeyFrame>(count); 119_keyFrames = new List< SingleKeyFrame>(count); 140_keyFrames = new List< SingleKeyFrame>(count); 161_keyFrames = new List< SingleKeyFrame>(count);
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (6)
37_keyFrames = new List< SizeKeyFrame>(2); 55_keyFrames = new List<SizeKeyFrame>(0) 98_keyFrames = new List< SizeKeyFrame>(count); 119_keyFrames = new List< SizeKeyFrame>(count); 140_keyFrames = new List< SizeKeyFrame>(count); 161_keyFrames = new List< SizeKeyFrame>(count);
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (6)
37_keyFrames = new List< StringKeyFrame>(2); 55_keyFrames = new List<StringKeyFrame>(0) 98_keyFrames = new List< StringKeyFrame>(count); 119_keyFrames = new List< StringKeyFrame>(count); 140_keyFrames = new List< StringKeyFrame>(count); 161_keyFrames = new List< StringKeyFrame>(count);
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (6)
37_keyFrames = new List< Vector3DKeyFrame>(2); 55_keyFrames = new List<Vector3DKeyFrame>(0) 98_keyFrames = new List< Vector3DKeyFrame>(count); 119_keyFrames = new List< Vector3DKeyFrame>(count); 140_keyFrames = new List< Vector3DKeyFrame>(count); 161_keyFrames = new List< Vector3DKeyFrame>(count);
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (6)
37_keyFrames = new List< VectorKeyFrame>(2); 55_keyFrames = new List<VectorKeyFrame>(0) 98_keyFrames = new List< VectorKeyFrame>(count); 119_keyFrames = new List< VectorKeyFrame>(count); 140_keyFrames = new List< VectorKeyFrame>(count); 161_keyFrames = new List< VectorKeyFrame>(count);
System\Windows\Media\ColorContext.cs (1)
377colorContextsList = new List<ColorContext>((int)numContexts);
System\Windows\Media\Effects\ShaderEffect.cs (4)
470list = new List<T?>(maxIndex); 497_samplerData = new List<SamplerData?>(maxIndex); 1056_floatRegisters = new List<MilColorF?>(effect._floatRegisters); 1060_samplerData = new List<SamplerData?>(effect._samplerData);
System\Windows\Media\FamilyMap.cs (1)
226List<Range> ranges = new List<Range>(3);
System\Windows\Media\GlyphRun.cs (2)
2325(_advanceWidths == null ? null : ((_textFormattingMode != TextFormattingMode.Ideal) ? (IList<double>)(new List<double>()) : (IList<double>)(new ThousandthOfEmRealDoubles(_renderingEmSize, _advanceWidths)))), 2326(_glyphOffsets == null ? null : ((_textFormattingMode != TextFormattingMode.Ideal) ? (IList<Point>)(new List<Point>()) : (IList<Point>)(new ThousandthOfEmRealPoints(_renderingEmSize, _glyphOffsets)))),
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1428_frames = new List<BitmapFrame>((int)numFrames);
System\Windows\Media\Imaging\BitmapDownload.cs (1)
103decoders = new List<WeakReference>()
System\Windows\Media\Imaging\BitmapEncoder.cs (3)
290_frames = new List<BitmapFrame>(0); 834private IList<SafeMILHandle> _frameHandles = new List<SafeMILHandle>(0); 835private IList<SafeMILHandle> _writeSourceHandles = new List<SafeMILHandle>(0);
System\Windows\Media\Imaging\BitmapMetadata.cs (3)
131_metadataBlocks = new List<SafeMILHandle>(); 140_metadataBlocks = new List<SafeMILHandle>(); 256List<SafeMILHandle> metadataBlocks = new();
System\Windows\Media\Imaging\BitmapPalette.cs (1)
302List<Color> colors = new List<Color>();
System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (1)
169_frames = new List<BitmapFrame>((int)1);
System\Windows\Media\PathGeometry.cs (1)
242List<Point> points = new List<Point>((int)pSegmentPoly->Count);
System\Windows\Media\SolidColorBrush.cs (1)
289keys = new List<TKey>();
System\Windows\Media\textformatting\TextCharacters.cs (1)
246IList<TextShapeableSymbols> shapeables = new List<TextShapeableSymbols>(2);
System\Windows\Media3D\Matrix3DStack.cs (1)
102private readonly List<Matrix3D> _stack = new List<Matrix3D>();
System\Windows\Media3D\RayHitTestParameters.cs (1)
211private readonly List<RayHitTestResult> results = new List<RayHitTestResult>();
System\Windows\Nrbf\SerializationRecordExtensions.cs (2)
366return new List<T>(new ArraySegment<T>(array, 0, count)); 370List<T> list = new(readOnlyList);
System\Windows\UIElement.cs (2)
4647internal static List<double> DpiScaleXValues = new List<double>(3); 4648internal static List<double> DpiScaleYValues = new List<double>(3);
PresentationCore.Tests (1)
System\Windows\TextDecorationCollectionConverter.Tests.cs (1)
233new List<TextDecoration> { TextDecorations.Underline[0], TextDecorations.OverLine[0], TextDecorations.Baseline[0] }, typeof(InstanceDescriptor) };
PresentationFramework (546)
Microsoft\Win32\CommonItemDialog.cs (1)
550CustomPlaces = new List<FileDialogCustomPlace>();
Microsoft\Win32\FileDialog.cs (1)
676List<string> extensions = new();
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
88IList<DependencyObject> pageEl = new List<DependencyObject>(); 229List<ContentLocatorPart> res = new List<ContentLocatorPart>(1); 658private IList<PointSegment> _segments = new List<PointSegment>(1);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (7)
263IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(); 364returnLocators = new List<ContentLocatorBase>(0); 636List<ContentLocatorBase> locatorsToReturn = new List<ContentLocatorBase>(); 716List<ContentLocatorBase> tempLocators = new List<ContentLocatorBase>(locatorsToReturn.Count * locatorParts.Count); 918locators = new List<ContentLocator>(1); 1209List<ContentLocatorBase> res = new List<ContentLocatorBase>(1); 1298private List<IAttachedAnnotation> _attachedAnnotations = new List<IAttachedAnnotation>();
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (5)
113IList<DependencyObject> list = new List<DependencyObject>(); 433res = new List<ITextView>(1); 447res = new List<ITextView>(0); 486res = new List<ITextView>(1); 523res = new List<ITextView>(endPageNumber - startPageNumber + 1);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
163List<ContentLocatorPart> res = new List<ContentLocatorPart>(1);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
130res = new List<ContentLocatorPart>(1);
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (1)
142return new List<ContentLocatorPart>(0);
MS\Internal\Annotations\AnnotationMap.cs (3)
26list = new List<IAttachedAnnotation>(1); 87List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(_annotationIdToAttachedAnnotations.Keys.Count); 108private static readonly List<IAttachedAnnotation> _emptyList = new List<IAttachedAnnotation>(0);
MS\Internal\Annotations\AnnotationResourceCollection.cs (1)
73List<AnnotationResource> list = new List<AnnotationResource>(this);
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
391List<AnnotationAdorner> res = new List<AnnotationAdorner>();
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
273currentList = new List<IAnnotationComponent>();
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (8)
36_segments = new List<HighlightSegment>(); 605List<IHighlightRange> list = new List<IHighlightRange>(1); 622_owners = new List<IHighlightRange>(owners.Count); 767res = new List<HighlightSegment>(1); 773res = new List<HighlightSegment>(2); 793IList<HighlightSegment> res = new List<HighlightSegment>(); 1195private List<TextSegment> _contentSegments = new List<TextSegment>(1); 1197private List<IHighlightRange> _activeOwners = new List<IHighlightRange>();
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
995_components = new List<MarkedHighlightComponent>();
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (1)
199List<Annotation> annotations = new List<Annotation>();
MS\Internal\Annotations\TextAnchor.cs (2)
593List<TextSegment> orderedList = new List<TextSegment>(textSegments.Count); 746private List<TextSegment> _segments = new List<TextSegment>(1);
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
88_elementsBounds = new List<Rect>();
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
842_toRemove = new List<CollectionViewGroupInternal>();
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
334List<GroupTreeNode> list = new List<GroupTreeNode>(parentGroups.Count + 1);
MS\Internal\Data\CommitManager.cs (5)
57list = new List<BindingGroup>(); 83list = new List<BindingExpressionBase>(); 143private static readonly List<BindingGroup> EmptyBindingGroupList = new List<BindingGroup>(); 144private static readonly List<BindingExpressionBase> EmptyBindingList = new List<BindingExpressionBase>(); 182return new List<T>(Keys);
MS\Internal\Data\LiveShapingBlock.cs (2)
274List<LiveShapingBlock> list = new List<LiveShapingBlock>(); // subtrees to explore 355List<LiveShapingBlock> list = new List<LiveShapingBlock>(); // subtrees to explore
MS\Internal\Data\LiveShapingItem.cs (1)
188list = new List<CollectionViewGroupInternal>(2);
MS\Internal\Data\LiveShapingList.cs (5)
87_sortDirtyItems = new List<LiveShapingItem>(); 88_filterDirtyItems = new List<LiveShapingItem>(); 89_groupDirtyItems = new List<LiveShapingItem>(); 687_unusedKeys = new List<string>(this.Keys); 793private static List<DependencyProperty> s_dpList = new List<DependencyProperty>();
MS\Internal\Data\PathParser.cs (1)
382private readonly List<SourceValueInfo> _sourceValueInfos = new();
MS\Internal\Data\PropertyPathWorker.cs (1)
1313List<MemberInfo> list = new List<MemberInfo>();
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
569private List<String> _toRemove = new List<String>();
MS\Internal\Data\ValueChangedEventManager.cs (1)
384private List<PropertyDescriptor> _toRemove = new List<PropertyDescriptor>();
MS\Internal\Data\ValueTable.cs (1)
243List<PropertyDescriptor> result = new List<PropertyDescriptor>();
MS\Internal\Documents\ContentHostHelper.cs (1)
107pageViews = new List<DocumentPageView>();
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
919private List<AsyncRequest> _asyncRequests = new List<AsyncRequest>(0);
MS\Internal\Documents\MultiPageTextView.cs (2)
42_pageTextViews = new List<DocumentPageTextView>(); 684List<TextSegment> textSegments = new List<TextSegment>();
MS\Internal\Documents\PageCache.cs (6)
38_cache = new List<PageCacheEntry>(_defaultCacheSize); 367List<PageCacheChange> changes = new List<PageCacheChange>(2); 530List<PageCacheChange> changes = new List<PageCacheChange>(1); 617List<PageCacheChange> changes = new List<PageCacheChange>(2); 705List<PageCacheChange> changes = new List<PageCacheChange>(PageCount); 845List<PageCacheChange> changes = new List<PageCacheChange>(1);
MS\Internal\Documents\RowCache.cs (5)
30_rowCache = new List<RowInfo>(_defaultRowCacheSize); 477List<RowCacheChange> changes = new List<RowCacheChange>(1); 570List<RowCacheChange> changes = new List<RowCacheChange>(1); 672List<RowInfo> tempRows = new List<RowInfo>(pivotPage / columns); 1200List<RowCacheChange> changes = new List<RowCacheChange>(args.Changes.Count);
MS\Internal\Documents\TextBoxLine.cs (1)
253List<Rect> rectangles = new List<Rect>();
MS\Internal\Documents\TextBoxView.cs (4)
367_lineMetrics = new List<LineRecord>(1); 1255List<TextSegment> segments = new List<TextSegment>(1); 1782_visualChildren = new List<TextBoxLineDrawingVisual>(1); 2638_viewportLineVisuals = new List<TextBoxLineDrawingVisual>(count);
MS\Internal\Documents\TextContainerHelper.cs (8)
83segments = new List<TextSegment>(); 89segments = new List<TextSegment>(1); 97segments = new List<TextSegment>(_size); 312List<AutomationPeer> peers = new List<AutomationPeer>(); 437ancestorsStart = new List<object>(); 438positionsStart = new List<ITextPointer>(); 453ancestorsEnd = new List<object>(); 454positionsEnd = new List<ITextPointer>();
MS\Internal\Documents\TextDocumentView.cs (2)
355List<GlyphRun> glyphRuns = new List<GlyphRun>(); 3245List<TextSegment> segments = new List<TextSegment>(1);
MS\Internal\Documents\TextParagraphView.cs (1)
478List<TextSegment> segments = new List<TextSegment>(1);
MS\Internal\Documents\UIElementIsland.cs (1)
207List<IInputElement> hostedElements = new List<IInputElement>();
MS\Internal\Documents\UndoManager.cs (3)
67_undoStack = new List<IUndoUnit>(4); 696List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoCount); 748List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoLimit);
MS\Internal\Globalization\BamlResourceContent.cs (1)
188List<BamlStringToken> tokens = new(8);
MS\Internal\Globalization\BamlTreeNode.cs (4)
42_nodeList = new List<BamlTreeNode>(size); 70List<BamlTreeNode> newNodeList = new List<BamlTreeNode>(Size); 104parent.Children = new List<BamlTreeNode>(children.Count); 192_children = new List<BamlTreeNode>();
MS\Internal\Globalization\BamlTreeUpdater.cs (3)
45List<KeyValuePair<BamlLocalizableResourceKey, BamlLocalizableResource>> deferredResources = new(); 409IList<BamlTreeNode> list = new List<BamlTreeNode>(4); 565List<BamlTreeNode> list = new();
MS\Internal\Globalization\LocalizationComments.cs (1)
81List<PropertyComment> tokens = new List<PropertyComment>(8);
MS\Internal\Helper.cs (2)
850itemValues = new List<KeyValuePair<int, object>>(3); // So far the only use of this is to store three values. 879List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item) ?? new List<KeyValuePair<int, object>>();
MS\Internal\Ink\ClipboardProcessor.cs (2)
135List<UIElement> elements = new List<UIElement>(inkCanvasSelection.SelectedElements); 376List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.Count);
MS\Internal\Ink\ElementsClipboardData.cs (2)
34ElementList = new List<UIElement>(elements); 59return new List<UIElement>();
MS\Internal\Ink\HighContrastHelper.cs (1)
61__highContrastCallbackList = new List<WeakReference>();
MS\Internal\Ink\InkCanvasSelection.cs (3)
82_selectedElements = new List<UIElement>(); 228_selectedElements = new List<UIElement>(elements); 829List<Rect> rects = new List<Rect>();
MS\Internal\Ink\LassoHelper.cs (2)
72List<Point> justAdded = new List<Point>(); 308_lasso = new List<Point>(100);
MS\Internal\Ink\LassoSelectionBehavior.cs (6)
127List<Point> points = new List<Point>(); 179List<Point> points = new List<Point>(); 195List<Point> points = new List<Point>(); 237List<UIElement> elementsToSelect = new List<UIElement>(); 337List<UIElement> elementsToSelect = new List<UIElement>(); 429List<Point> pointArray = new(4);
MS\Internal\Ink\TextClipboardData.cs (1)
69ElementList = new List<UIElement>();
MS\Internal\Ink\XamlClipboardData.cs (1)
88ElementList = new List<UIElement>();
MS\Internal\LayoutDump.cs (1)
356List<UIElement> uiElements = new List<UIElement>();
MS\Internal\PtsHost\BaseParaClient.cs (2)
127return new List<Rect>(); 137rectangles = new List<Rect>();
MS\Internal\PtsHost\BreakRecordTable.cs (1)
37_breakRecords = new List<BreakRecordTableEntry>();
MS\Internal\PtsHost\ContainerParaClient.cs (3)
129List<Rect> rectangles = new List<Rect>(); 158rectangles = new List<Rect>(); 339List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length);
MS\Internal\PtsHost\FigureParaClient.cs (7)
281List<Rect> rectangles = new List<Rect>(); 578paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 618paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 643List<ColumnResult> columnResults = new List<ColumnResult>(0); 665columnResults = new List<ColumnResult>(1); 685columnResults = new List<ColumnResult>(1); 772List<ParagraphResult> floatingElements = new List<ParagraphResult>(0);
MS\Internal\PtsHost\FloaterParaClient.cs (7)
286List<Rect> rectangles = new List<Rect>(); 587paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 627paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 652List<ColumnResult> columnResults = new List<ColumnResult>(0); 674columnResults = new List<ColumnResult>(1); 694columnResults = new List<ColumnResult>(1); 781List<ParagraphResult> floatingElements = new List<ParagraphResult>(0);
MS\Internal\PtsHost\FlowDocumentPage.cs (7)
312List<Rect> rectangles = new List<Rect>(); 334List<Rect> transformedRectangles = new List<Rect>(rectangles.Count); 379List<ParagraphResult> floatingElements = new List<ParagraphResult>(0); 413List<ColumnResult> columnResults = new List<ColumnResult>(0); 443columnResults = new List<ColumnResult>(1); 485columnResults = new List<ColumnResult>(sectionDetails.u.withpagenotes.cBasicColumns); 580List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length);
MS\Internal\PtsHost\Line.cs (3)
283List<InlineObject> inlineObjects = new List<InlineObject>(1); 488List<Rect> rectangles = new List<Rect>(); 675List<GlyphRun> glyphRunsCollection = new(4);
MS\Internal\PtsHost\PtsCache.cs (2)
145_contextPool = new List<ContextDesc>(1); 235_releaseQueue = new List<PtsContext>();
MS\Internal\PtsHost\PtsHelper.cs (3)
446List<Rect> rectangles = new List<Rect>(); 485List<Rect> rectangles = new List<Rect>(); 514List<Rect> offsetRectangles = new List<Rect>(rectangleList.Count);
MS\Internal\PtsHost\PtsPage.cs (5)
226List<Rect> rectangles = new List<Rect>(); 1249List<Rect> rectangles = new List<Rect>(); 1298rectangles = new List<Rect>(); 1377List<Rect> rectangles = new List<Rect>(); 1543_floatingElementList = new List<BaseParaClient>();
MS\Internal\PtsHost\SubpageParaClient.cs (6)
220List<Rect> rectangles = new List<Rect>(); 538List<ColumnResult> columnResults = new List<ColumnResult>(0); 560columnResults = new List<ColumnResult>(1); 579columnResults = new List<ColumnResult>(subpageDetails.u.complex.cBasicColumns); 619List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 691List<ParagraphResult> floatingElements = new List<ParagraphResult>(0);
MS\Internal\PtsHost\TableParaClient.cs (6)
433List<Rect> rectangles = new List<Rect>(); 447rectangles = new List<Rect>(); 690List<ParagraphResult> rowParagraphResults = new List<ParagraphResult>(0); 733List<ParagraphResult> cellParagraphResults = new List<ParagraphResult>(0); 783List<ParagraphResult> listResults = new List<ParagraphResult>(0); 804List<ParagraphResult> listResults = new List<ParagraphResult>(0);
MS\Internal\PtsHost\TextParaClient.cs (11)
249List<Rect> rectangles = new List<Rect>(); 396floaters = new List<ParagraphResult>(arrayAttachedObjectDesc.Length); 433figures = new List<ParagraphResult>(arrayAttachedObjectDesc.Length); 1525List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 1577List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 2095rectangles = new List<Rect>(1); 2206rectangles = new List<Rect>(1); 3863List<Rect> rectangles = new List<Rect>(); 3905List<Rect> rectangles = new List<Rect>(); 4043List<Rect> rectangles = new List<Rect>(); 4085List<Rect> rectangles = new List<Rect>();
MS\Internal\PtsHost\TextParagraph.cs (4)
883List<TextElement> attachedElements = new List<TextElement>(); 938List<AttachedObject> attachedObjects = new List<AttachedObject>(); 1057objects = new List<InlineObject>(_inlineObjects.Count); 1533objectsCached = new List<T>(objectsNew.Count);
MS\Internal\PtsHost\UIElementParaClient.cs (1)
85List<Rect> rectangles = new List<Rect>();
MS\Internal\Text\Line.cs (1)
154List<Rect> rectangles = new List<Rect>();
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (1)
102var entries = new List<ComInterfaceEntry>();
MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
85private static List<string> ScriptCodesRequiringDedicatedSegmenter { get; } = new List<string>
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
366IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>();
System\Windows\Annotations\AnnotationHelper.cs (2)
723List<Annotation> annotations = new List<Annotation>(); 776List<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(annotations.Count);
System\Windows\Annotations\AnnotationService.cs (9)
800List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 861List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 915List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 959IList<IAttachedAnnotation> dirtyAnnotations = new List<IAttachedAnnotation>(); 987IList<UIElement> processedElements = new List<UIElement>(); 1167List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(); 1280List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(annotation.Anchors.Count); 1312List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(list.Length); 1477list = new List<IAttachedAnnotation>(1);
System\Windows\Annotations\LocatorGroup.cs (1)
217List<ContentLocatorBase> tempList = new List<ContentLocatorBase>(locatorGroup.Locators.Count * (this.Locators.Count - 1));
System\Windows\Annotations\LocatorPartList.cs (2)
354results = new List<ContentLocatorBase>(1); 359results = new List<ContentLocatorBase>(additionalLocatorParts.Count);
System\Windows\Annotations\Storage\XmlStreamStore.cs (6)
560retObj = new List<Guid>(iterator.Count); 583retObj = new List<Guid>(0); 648List<Annotation> annotations = new List<Annotation>((IEnumerable<Annotation>)mapAnnotations.Values); 769IList<Uri> allNamespaces = new List<Uri>(); 820IList<string> supportedNamespaces = new List<string>(); 1033private List<Uri> _ignoredNamespaces = new List<Uri>();
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
109List<AutomationPeer> peers = new List<AutomationPeer>(); 456List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 603List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>();
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
77children = new List<AutomationPeer>();
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (4)
55children = new List<AutomationPeer>(1); 173List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(); 238List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 272List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>();
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (2)
567List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(1); 589List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(1);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
83children = new List<AutomationPeer>(childItems.Count);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
373List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(); 434children = new List<AutomationPeer>(childItems.Count);
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (1)
57List<AutomationPeer> children = new List<AutomationPeer>(3);
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (1)
77children = new List<AutomationPeer>();
System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (1)
72children = new List<AutomationPeer>();
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (1)
102children = new List<AutomationPeer>();
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
75children = new List<AutomationPeer>(); 132List<IRawElementProviderSimple> array = new List<IRawElementProviderSimple>(_owner.HeaderRowPresenter.ActualColumnHeaders.Count);
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
146children = new List<AutomationPeer>();
System\Windows\Automation\Peers\GridViewHeaderRowPresenterAutomationPeer.cs (1)
43newList = new List<AutomationPeer>(list.Count);
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
51List<AutomationPeer> list = new List<AutomationPeer>();
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
120List<AutomationPeer> children = new List<AutomationPeer>();
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (5)
76children = new List<AutomationPeer>(childItems.Count); 140children = new List<AutomationPeer>(childItems.Count); 506_recentlyRealizedPeers = new List<ItemAutomationPeer>(); 615_list = new List<KeyValuePair<object, T>>(); 661List<object> cleanUpItemsCollection = new List<object>();
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
171children = new List<AutomationPeer>(items.Count);
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (1)
154return new List<AutomationPeer>();
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
91List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(count);
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (2)
34List<AutomationPeer> list = new List<AutomationPeer>(); 92children = new List<AutomationPeer>();
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (1)
125return new List<AutomationPeer>();
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
69children = new List<AutomationPeer>(items.Count);
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (1)
63children = new List<AutomationPeer>();
System\Windows\BroadcastEventHelper.cs (1)
255List<DependencyObject> eventRoute = new List<DependencyObject>();
System\Windows\Controls\AlternationConverter.cs (1)
56private List<object> _values = new List<object>();
System\Windows\Controls\CustomDictionarySources.cs (1)
41_uriList = new List<Uri>();
System\Windows\Controls\DataGrid.cs (6)
4658_pendingInfos = new List<ItemInfo>(); 5336ranges = new List<Tuple<int, int>>(); 7350GroupingSortDescriptionIndices = new List<int>(); 7603List<Tuple<int, int>> ranges = new List<Tuple<int, int>>(); 7682List<ItemInfo> list = new List<ItemInfo>(); 7702List<ItemInfo> list = new List<ItemInfo>();
System\Windows\Controls\DataGridCellsPanel.cs (5)
219List<int> realizedColumnIndices = new List<int>(); 220List<int> realizedColumnDisplayIndices = new List<int>(); 460List<RealizedColumnsBlock> resultList = new List<RealizedColumnsBlock>(); 1563List<int> additionalChildIndices = new List<int>(); 1942_realizedChildren = new List<UIElement>(children.Count);
System\Windows\Controls\DataGridColumnCollection.cs (3)
22DisplayIndexMap = new List<int>(5); 900List<DataGridColumn> unResolvedColumns = new List<DataGridColumn>(); 901List<DataGridColumn> partialResolvedColumns = new List<DataGridColumn>();
System\Windows\Controls\DataGridRowClipboardEventArgs.cs (1)
52_clipboardRowContent = new List<DataGridClipboardCellContent>();
System\Windows\Controls\DefinitionBase.cs (1)
736_registry = new List<DefinitionBase>();
System\Windows\Controls\Frame.cs (1)
1371_commandBindings = new List<CommandBinding>(6);
System\Windows\Controls\GridViewColumnCollection.cs (2)
458private List<GridViewColumn> _columns = new List<GridViewColumn>(); 462private List<int> _actualIndices = new List<int>();
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1595_gvHeaders = new List<GridViewColumnHeader>(); 1626_headersPositionList = new List<Rect>();
System\Windows\Controls\GridViewRowPresenter.cs (1)
404List<UIElement> list = new List<UIElement>();
System\Windows\Controls\InkCanvas.cs (3)
2098List<UIElement> newElements = new List<UIElement>(); 2515List<UIElement> elements = new List<UIElement>(); 2675removeSelectedElements ? new List<UIElement>() : elements,
System\Windows\Controls\ItemContainerGenerator.cs (3)
999List<string> errors = new List<string>(); 1060List<string> sources = new List<string>(); 2054_emptyGroupItems = new List<EmptyGroupItem>();
System\Windows\Controls\ItemsControl.cs (1)
3621List<DependencyObject> claimedContainers = new List<DependencyObject>();
System\Windows\Controls\Panel.cs (1)
1001stableKeyValues = new System.Collections.Generic.List<Int64>(count);
System\Windows\Controls\PopupControlService.cs (1)
847List<NativeMethods.RECT> rects = new List<NativeMethods.RECT>();
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
426pageViewList = new List<DocumentPageView>(1/* simplest case has just one element */);
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
189DesiredWidthList = new List<double>(count);
System\Windows\Controls\Primitives\Popup.cs (1)
188registeredPopups = new List<Popup>()
System\Windows\Controls\Primitives\Selector.cs (6)
1959List<int> knownIndices = new List<int>(_selectedItems.Count); 2286List<ItemInfo> unselected = new List<ItemInfo>(); 2287List<ItemInfo> selected = new List<ItemInfo>(); 2407? new List<ItemInfo>() : null; 2668_list = new List<ItemInfo>(capacity); 2676_list = new List<ItemInfo>(collection._list);
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
348_generatedItemsCollection = new List<UIElement>(children.Count);
System\Windows\Controls\TextAdaptor.cs (2)
131List<Rect> rectangles = new List<Rect>(); 511List<TextSegment> visibleTextSegments = new List<TextSegment>();
System\Windows\Controls\TextBlock.cs (9)
1290_subsequentLines = new List<LineMetrics>(subsequentLinesInitialSize); 1731return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1741return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1748return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1764return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1784List<Rect> rectangles = new List<Rect>(); 1852return new HostedElements(new ReadOnlyCollection<TextSegment>(new List<TextSegment>(0))); 1856System.Collections.Generic.List<TextSegment> textSegmentsList = new System.Collections.Generic.List<TextSegment>(1); 2036List<LineResult> lines = new List<LineResult>(lineCount);
System\Windows\Controls\TextSearch.cs (1)
675_charsEntered = new List<string>(10);
System\Windows\Controls\ToolBarTray.cs (2)
955private List<ToolBar> _band = new List<ToolBar>(); 965private List<BandInfo> _bands = new List<BandInfo>(0);
System\Windows\Controls\VirtualizedCellInfoCollection.cs (10)
28_regions = new List<CellRegion>(); 41_regions = (regions != null) ? new List<CellRegion>(regions) : new List<CellRegion>(); 201List<DataGridCellInfo> list = new List<DataGridCellInfo>(); 235_regions = new List<CellRegion>(regions); 713remainder = new List<CellRegion>(); 832List<CellRegion> addList = new List<CellRegion>(); 917removeList = new List<CellRegion>(); 1409List<CellRegion> removeList = new List<CellRegion>(); 1540columnIndexRanges = new List<int>();
System\Windows\Controls\VirtualizingStackPanel.cs (8)
9173_realizedChildren = new List<UIElement>(children.Count); 9441List<String> list = new List<String>(count); 9461List<String> list = new List<String>(count); 10923previouslyMeasuredOffsets = new List<double>(); 11965OffsetList = new List<double>(2); 12471= new List<Tuple<WeakReference<ItemsControl>,TraceList>>(); 12570private List<ScrollTraceRecord> _traceList = new List<ScrollTraceRecord>(); 12996List<ChildInfo> list = new List<ChildInfo>();
System\Windows\Data\BindingExpression.cs (1)
2338result = new List<object>();
System\Windows\Data\BindingExpressionBase.cs (7)
289list = new List<ValidationError>(); 293list = new List<ValidationError>(NotifyDataErrors); 2295notifyDataErrors = new List<ValidationError>(); 2333toRemove = new List<ValidationError>(previousErrors); 2337toAdd = new List<object>(); 2338toRemove = new List<ValidationError>(previousErrors); 2434var tempList = new List<WeakDependencySource>();
System\Windows\Data\BindingGroup.cs (3)
259List<ValidationError> errors = new List<ValidationError>(); 1103itemErrors = new List<ValidationError>(); 1630List<BindingExpressionBase> result = new List<BindingExpressionBase>();
System\Windows\Data\BindingListCollectionView.cs (2)
2386List<AbandonedGroupItem> deleteList = new List<AbandonedGroupItem>(); 2477_deferredActions = new List<Action>();
System\Windows\Data\BindingOperations.cs (1)
592private List<Exception> _log = new List<Exception>();
System\Windows\Data\CollectionView.cs (4)
1476List<ItemPropertyInfo> list = new List<ItemPropertyInfo>(); 1928_changeLog = new List<NotifyCollectionChangedEventArgs>(); 2127private List<NotifyCollectionChangedEventArgs> _changeLog = new(); 2147private static readonly List<NotifyCollectionChangedEventArgs> s_emptyList = new();
System\Windows\Data\ListCollectionView.cs (2)
3206List<AbandonedGroupItem> deleteList = new List<AbandonedGroupItem>(); 3277_deferredActions = new List<Action>();
System\Windows\Diagnostics\BindingDiagnostics.cs (1)
37s_pendingEvents = new List<BindingFailedEventArgs>();
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (8)
158List<ResourceDictionary> result = new List<ResourceDictionary>(list.Count); 173toRemove = new List<WeakReference<ResourceDictionary>>(); 211list = new List<WeakReference<ResourceDictionary>>(1); 237List<WeakReference<ResourceDictionary>> toRemove = new List<WeakReference<ResourceDictionary>>(); 300List<T> result = new List<T>(list.Count); 513toRemove = new List<WeakReferenceKey<StaticResourceExtension>>(); 528private static List<object> IgnorableProperties = new List<object>(); 552= new List<ResourceDictionaryInfo>().AsReadOnly();
System\Windows\Documents\DocumentReferenceCollection.cs (1)
141_internalList = new List<DocumentReference>();
System\Windows\Documents\DocumentSequence.cs (1)
655_pendingPages = new List<RequestedPage>();
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
713List<TextSegment> rangeArray = new List<TextSegment>(4);
System\Windows\Documents\DocumentSequenceTextView.cs (1)
548List<TextSegment> parentSegments = new List<TextSegment>(childSegments.Count);
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (1)
24_elementList = new List<BlockElement>();
System\Windows\Documents\DocumentStructures\StoryFragments.cs (2)
25_elementList = new List<StoryFragment>(); 83_elementList = new List<BlockElement>();
System\Windows\Documents\FixedDocument.cs (3)
830_pendingPages = new List<PageContent>(); 1058List<FixedPage> oldHighlightPages = new List<FixedPage>(); 1134List<int> dirtyPages = new List<int>();
System\Windows\Documents\FixedElement.cs (1)
134_children = new List<FixedElement>();
System\Windows\Documents\FixedFlowMap.cs (2)
340_flowOrder = new List<FlowNode>(); 388entry = new List<FixedSOMElement>();
System\Windows\Documents\FixedPage.cs (1)
1007List<int> childPath = new List<int>();
System\Windows\Documents\FixedPageStructure.cs (1)
811List<FlowNode> nodes = new List<FlowNode>();
System\Windows\Documents\FixedSOMContainer.cs (2)
22_semanticBoxes = new List<FixedSOMSemanticBox>(); 208_fixedNodes = new List<FixedNode>();
System\Windows\Documents\FixedSOMLineCollection.cs (2)
28_verticals = new List<FixedSOMLineRanges>(); 29_horizontals = new List<FixedSOMLineRanges>();
System\Windows\Documents\FixedSOMLineRanges.cs (2)
87_start = new List<double>(); 99_end = new List<double>();
System\Windows\Documents\FixedSOMPageConstructor.cs (4)
228_fixedNodes = new List<FixedNode>(); 758List<FixedSOMTableRow> tableRows = new List<FixedSOMTableRow>(); 1020List<FixedSOMTable> tables = new List<FixedSOMTable>(); 1129List<FixedSOMSemanticBox> groups = new List<FixedSOMSemanticBox>();
System\Windows\Documents\FixedTextBuilder.cs (8)
743_pageStructures = new List<FixedPageStructure>(); 881List<FixedNode> fixedNodes = new List<FixedNode>(); 1244_hyperlinks = new List<LogicalHyperlink>(); 1366_textRuns = new List<FixedSOMTextRun>(); 1367_flowNodes = new List<FlowNode>(); 1368_fixedNodes = new List<FixedNode>(); 1369_nodesInLine = new List<FixedNode>(); 1370_lineResults = new List<FixedLineResult>();
System\Windows\Documents\FixedTextView.cs (1)
717List<TextSegment> list = new List<TextSegment>(1);
System\Windows\Documents\Glyphs.cs (1)
521parsedGlyphs = new List<ParsedGlyphData>(estimatedNumberOfGlyphs);
System\Windows\Documents\Highlights.cs (1)
346ranges = new List<TextSegment>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\OptionDescription.cs (1)
51_labels = labels ?? new List<string>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (3)
450hasErrorsCache = new List<HasErrorsResult>(HasErrorsCacheCapacity); 642{false, new List<Type>{ /*empty*/ }}, 643{true, new List<Type> { typeof(COMException), typeof(UnauthorizedAccessException)}}
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellingError.cs (1)
89_suggestions = new List<string>();
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (2)
54{false, new List<Type> { /* empty */ } }, 55{true, new List<Type> { typeof(COMException), typeof(UnauthorizedAccessException)} }
System\Windows\Documents\MsSpellCheckLib\Utils\Extensions.cs (2)
31var result = new List<string>(); 79var result = new List<SpellingError>();
System\Windows\Documents\NLGSpellerInterop.cs (3)
571List<string> suggestions = new List<string>(); 623List<ISpellerSegment> subSegments = new List<ISpellerSegment>(); 831List<ISpellerSegment> segments = new List<ISpellerSegment>();
System\Windows\Documents\PageContentCollection.cs (1)
29_internalList = new List<PageContent>();
System\Windows\Documents\Serialization\SerializerProvider.cs (1)
34List<SerializerDescriptor> installedSerializers = new List<SerializerDescriptor>();
System\Windows\Documents\Speller.cs (2)
181List<string> suggestions = new(4); 209_ignoredWordsList = new List<string>(1);
System\Windows\Documents\SpellerHighlightLayer.cs (1)
204list = new List<TextSegment>(1);
System\Windows\Documents\TextEffectResolver.cs (1)
50List<TextEffectTarget> list = new List<TextEffectTarget>();
System\Windows\Documents\TextRangeBase.cs (1)
1777thisRange._TextSegments = new List<TextSegment>(1);
System\Windows\Documents\TextRangeEditTables.cs (2)
338List<TextSegment> cellRange = new List<TextSegment>(lastRowIndex - firstRowIndex + 1); 374List<TextSegment> textSegments = new List<TextSegment>(1);
System\Windows\Documents\TextRangeSerialization.cs (2)
84List<int> ignoreList = new List<int>(); 343List<int> ignoreList = new List<int>();
System\windows\Documents\TextSelectionHighlightLayer.cs (3)
334rangeArray = new List<TextSegment>(1); 339rangeArray = new List<TextSegment>(1); 344rangeArray = new List<TextSegment>(2);
System\Windows\Documents\TextStore.cs (3)
4136_compositionEventList = new List<CompositionEventRecord>(); 4946= new List<Tuple<WeakReference<FrameworkElement>,TraceList>>(); 5045private List<IMECompositionTraceRecord> _traceList = new List<IMECompositionTraceRecord>();
System\Windows\Documents\WinRTSpellerInterop.cs (3)
466_customDictionaryFiles[ietfLanguageTag] = new List<string>(); 904_empty = new List<ISpellerSegment>().AsReadOnly(); 913List<string> result = new List<string>();
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (1)
65var allTokens = new List<SpellerSegment>();
System\Windows\Documents\WpfPayload.cs (1)
494_images = new List<Image>();
System\Windows\Documents\XPSS0ValidatingLoader.cs (1)
53List<Type> safeTypes = new List<Type> { typeof(System.Windows.ResourceDictionary) };
System\Windows\FrameworkContextData.cs (1)
93private List<WalkerEntry> _currentWalkers = new List<WalkerEntry>(4);
System\Windows\FrameworkElementFactory.cs (2)
744noChildIndexChildren = new List<DependencyObject>(4); 1025noChildIndexChildren = new List<DependencyObject>(4);
System\Windows\FrameworkTemplate.cs (1)
1517private List<String> _childNames = new List<string>();
System\Windows\Ink\Events.cs (3)
130new List<UIElement>(selectedElements); 168new List<UIElement>(selectedElements); 309new List<GestureRecognitionResult>(gestureRecognitionResults);
System\Windows\Input\KeyboardNavigation.cs (1)
3595private List<WeakReference> _list = new List<WeakReference>(1);
System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (1)
50_resources = new List<Object>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
249_context.KeyList = new List<KeyRecord>(); 934_context.KeyList = new List<KeyRecord>();
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (4)
654private readonly List<BamlAssembly> _bamlAssembly = new List<BamlAssembly>(); 655private readonly List<object> _bamlType = new List<object>(); 656private readonly List<Object> _bamlProperty = new List<Object>(); 657private readonly List<string> _bamlString = new List<string>();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (14)
1795new List<Type>() { typeof(System.Type) }, 1885new List<Type>() { typeof(System.String) }, 2828new List<Type>() { typeof(System.Object) }, 2974new List<Type>() { typeof(System.Type), typeof(System.Object) }, 3356new List<Type>() { typeof(System.Object) }, 4352new List<Type>() { typeof(System.Object) }, 9167new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode) }, 9174new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode), typeof(System.Type), typeof(System.Int32) }, 10451new List<Type>() { typeof(System.String) }, 10472new List<Type>() { typeof(System.Object) }, 10956new List<Type>() { typeof(System.Windows.DependencyProperty) }, 11196new List<Type>() { typeof(System.String) }, 11828new List<Type>() { typeof(System.Type) }, 13165new List<Type>() { typeof(System.Object) },
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
335xTypes = new List<XamlType>();
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
343_themeHelpers = new List<ThemeKnownTypeHelper>();
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
178List<XamlMember> members = new List<XamlMember>();
System\Windows\Markup\BamlMapTable.cs (8)
1682AssemblyIdMap = new List<BamlAssemblyInfoRecord>(_assemblyIdToInfo), 1683TypeIdMap = new List<BamlTypeInfoRecord>(_typeIdToInfo), 1684AttributeIdMap = new List<BamlAttributeInfoRecord>(_attributeIdToInfo), 1685StringIdMap = new List<BamlStringInfoRecord>(_stringIdToInfo) 1815private readonly List<BamlAssemblyInfoRecord> _assemblyIdToInfo = new(); 1819private readonly List<BamlTypeInfoRecord> _typeIdToInfo = new(); 1823private readonly List<BamlAttributeInfoRecord> _attributeIdToInfo = new(10); 1827private readonly List<BamlStringInfoRecord> _stringIdToInfo = new();
System\Windows\Markup\BamlReader.cs (4)
1222_deferKeys = new List<BamlKeyInfo>(); 1364List<BamlRecord> srRecords = new List<BamlRecord>(); 2683list = new List<String>(); 3040_staticResources = new List<List<BamlRecord>>();
System\Windows\Markup\BamlRecordReader.cs (2)
1734staticResourceValuesList = new List<object[]>(defKeyList.Capacity); 5625private static List<ReaderContextStackData> _stackDataFactoryCache = new List<ReaderContextStackData>();
System\Windows\Markup\BamlRecordWriter.cs (3)
301_staticResourceRecordList = new List<ValueDeferRecord>(5); 1160_staticResourceRecordList = new List<ValueDeferRecord>(1); 1784_staticResourceRecordList = new List<List<ValueDeferRecord>>(1);
System\Windows\Markup\DependencyPropertyConverter.cs (1)
188List<XamlType> ceilingTypes = new List<XamlType>();
System\Windows\Markup\ParserContext.cs (1)
607_staticResourcesStack = new List<object[]>();
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
616private static readonly List<Type> EmptyTypes = new List<Type>();
System\Windows\Markup\Primitives\MarkupWriter.cs (5)
324keyEntry.Predecessors = new List<int>(); 429private List<Entry> _entries = new List<Entry>(); 611argumentCompositeIndexes = new List<int>(); 617composites = new List<MarkupProperty>(); 1088List<Type> wrapperTypes = new List<Type>();
System\Windows\Markup\RoutedEventConverter.cs (1)
88List<XamlType> ceilingTypes = new List<XamlType>();
System\Windows\Markup\XamlTypeMapper.cs (1)
3256namespaceAssemblyPair = new List<ClrNamespaceAssemblyPair>(1);
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (2)
78List<string> resultList = new List<string>(_sharedSchemaContext.GetAllXamlNamespaces()); 402list = new List<V>();
System\Windows\Markup\XmlnsCache.cs (1)
335List<ClrNamespaceAssemblyPair> pairList = new List<ClrNamespaceAssemblyPair>();
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (6)
37_keyFrames = new List< ThicknessKeyFrame>(2); 55_keyFrames = new List<ThicknessKeyFrame>(0) 98_keyFrames = new List< ThicknessKeyFrame>(count); 119_keyFrames = new List< ThicknessKeyFrame>(count); 140_keyFrames = new List< ThicknessKeyFrame>(count); 161_keyFrames = new List< ThicknessKeyFrame>(count);
System\Windows\Media\Animation\Storyboard.cs (2)
585List<AnimationClock> clockList = new List<AnimationClock>(); 620clockList = new List<AnimationClock>(1);
System\Windows\Navigation\Journal.cs (1)
654private List<JournalEntry> _journalEntryList = new List<JournalEntry>();
System\Windows\ResourceDictionary.cs (3)
1158_deferredLocationList = new List<KeyRecord>(); 1905oldDictionaries = new List<ResourceDictionary>(e.OldItems.Count); 1923newDictionaries = new List<ResourceDictionary>(e.NewItems.Count);
System\Windows\ResourcesChangeInfo.cs (2)
45_oldDictionaries = new List<ResourceDictionary>(1); 52_newDictionaries = new List<ResourceDictionary>(1);
System\Windows\Shell\JumpList.cs (19)
69RejectedItems = new List<JumpItem>(rejectedItems).AsReadOnly(); 70RejectionReasons = new List<JumpItemRejectionReason>(reasons).AsReadOnly(); 74RejectedItems = new List<JumpItem>().AsReadOnly(); 75RejectionReasons = new List<JumpItemRejectionReason>().AsReadOnly(); 96RemovedItems = new List<JumpItem>(removedItems).AsReadOnly(); 100RemovedItems = new List<JumpItem>().AsReadOnly(); 275_jumpItems = new List<JumpItem>(items); 279_jumpItems = new List<JumpItem>(); 493successList = new List<JumpItem>(JumpItems.Count); 496rejectedList = new List<_RejectedJumpItemPair>(JumpItems.Count); 500categories = new List<List<_ShellObjectPair>>() { new List<_ShellObjectPair>() }; 554categories.Add(new List<_ShellObjectPair>() { shellMap }); 643var items = new List<JumpItem>(rejectedList.Count); 644var reasons = new List<JumpItemRejectionReason>(rejectedList.Count); 657var items = new List<JumpItem>(removedList.Count); 759var retList = new List<_ShellObjectPair>(); 835var linksOnlyList = new List<_ShellObjectPair>(); 1101var reasons = new List<JumpItemRejectionReason>(_jumpItems.Count);
System\Windows\Shell\WindowChrome.cs (1)
311private static readonly List<_SystemParameterBoundProperty> _BoundProperties = new List<_SystemParameterBoundProperty>
System\Windows\Shell\WindowChromeWorker.cs (1)
60_messageTable = new List<HANDLE_MESSAGE>
System\Windows\StyleHelper.cs (8)
1108actionsList = new List<TriggerAction>(); 1784List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex); 1843List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex); 3544dictionaries = new List<ResourceDictionary>(1); 3570List<ResourceDictionary> table = new List<ResourceDictionary>(1); 4776actionList = new List<DeferredAction>(); 5042List<TriggerBase> newList = new List<TriggerBase>(); 5088List<TriggerBase> newList = new List<TriggerBase>();
System\Windows\SystemResources.cs (4)
197List<ResourceDictionaryInfo> dictionaries = new List<ResourceDictionaryInfo>(); 228List<ResourceDictionaryInfo> dictionaries = new List<ResourceDictionaryInfo>(); 1029_dpiAwarenessContextAndDpis = new List<DpiUtil.HwndDpiInfo>(); 1206List<SystemResourceKey> keys = new List<SystemResourceKey>();
System\Windows\TemplateContent.cs (1)
240List<PropertyValue> sharedProperties = new List<PropertyValue>();
System\Windows\ThemeDictionaryExtension.cs (1)
192_themeDictionaryInfos = new List<ThemeDictionaryInfo>();
System\Windows\ThemeManager.cs (1)
437List<int> indices = new List<int>();
System\Windows\TriggerActionCollection.cs (2)
30_rawList = new List<TriggerAction>(); 38_rawList = new List<TriggerAction>(initialSize);
System\Windows\Window.cs (2)
344_threadWindowHandles = new List<IntPtr>(); 6715var nativeIcons = new List<NativeMethods.IconHandle>();
PresentationFramework.Aero (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationFramework.Aero2 (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationFramework.Fluent.Tests (4)
ResourceTests\FluentResourceDictionaryTests.cs (4)
85stringResourceKeys = new List<string>(); 86objectResourceKeys = new List<object>(); 123= new List<object[]> 132= new List<string>
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
320_freezableCache = new List<Freezable>(size);
PresentationUI (24)
MS\Internal\Documents\Application\ChainOfResponsibility.cs (1)
42_members = new List<T>(members);
MS\Internal\Documents\Application\CommandEnforcer.cs (1)
65_bindings = new List<PolicyBinding>(_initialBindCount);
MS\Internal\Documents\Application\DocumentManager.cs (1)
535new List<IDocumentController>();
MS\Internal\Documents\Application\TransactionalPackage.cs (2)
434List<PackagePart> _proxiedParts = new List<PackagePart>(); 584private List<Package> _trashCan = new List<Package>();
MS\Internal\Documents\DigitalSignatureProvider.cs (3)
313List<X509Certificate2> certificateList = new List<X509Certificate2>(); 385IList<DigitalSignature> signatureList = new List<DigitalSignature>(); 397new List<XpsSignatureDefinition>();
MS\Internal\Documents\DocumentSignatureManager.cs (2)
40_changeLog = new List<ChangeLogEntity>(); 525IList<SignatureResources> signResourcesList = new List<SignatureResources>();
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
228List<String> addresses = new List<String>(paths.Length);
MS\Internal\Documents\RightsManagementManager.cs (1)
651IList<string> accountList = new List<string>();
MS\Internal\Documents\RightsManagementProvider.cs (7)
369new List<RightsManagementUser>(users.Count); 516grantDictionary[user] = new List<ContentGrant>(); 532grantDictionary[owner] = new List<ContentGrant>(1); 717IList<ContentGrant> grantList = new List<ContentGrant>(); 840List<ContentGrant> grantList = new List<ContentGrant>(); 1017IList<CryptoProvider> cryptoProviders = new List<CryptoProvider>(); 1176List<ContentGrant> grants = new List<ContentGrant>();
MS\Internal\Documents\RMPermissions.cs (1)
95IList<string> rightsStrings = new List<string>();
MS\Internal\Documents\RMPublishingDialog.cs (4)
84_rmLicenses = new List<RightsManagementLicense>(grantDictionary.Values); 239new List<RightsManagementLicense>(); 372List<Uri> templateList = new List<Uri>(); 1011List<ServerSideTemplate> templates = new List<ServerSideTemplate>();
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 (38)
AlphaFlattener\Flattener.cs (1)
792oldUnderlay[i] = new List<int>(l.Count);
AlphaFlattener\Optimizer.cs (2)
32m_primitives = new List<int>(); 142List<Cluster> transparentCluster = new List<Cluster>();
AlphaFlattener\PrimitiveList.cs (3)
244_commands = new List<PrimitiveInfo>(); 341pi.overlap = new List<int>(); 357qi.underlay = new List<int>();
AlphaFlattener\SegmentTree.cs (1)
93_sList = new List<int>();
packaging\XpsDigitalSignature.cs (1)
68new List<PackageRelationshipSelector>();
Packaging\XpsDocument.cs (2)
304List<PackagePart> xmlPartList = new List<PackagePart>(); 849new List<PackageRelationshipSelector>();
Packaging\XpsFixedDocumentReaderWriter.cs (2)
271_pageCache = new List<IXpsFixedPageReader>(); 422_linkTargetStream = new List<String>();
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
203_documentCache = new List<IXpsFixedDocumentReader>();
Packaging\XpsFixedPageReaderWriter.cs (1)
475_currentChildren = new List<INode>();
Packaging\XpsInterleavingPolicy.cs (2)
420List<InterleavingNode> removeList = new List<InterleavingNode>(); 555private List<InterleavingNode> _interleavingNodes = new List<InterleavingNode>();
PrintConfig\PrtCap_Public_Simple.cs (17)
218List<Collation> valueSet = new List<Collation>(); 251List<DeviceFontSubstitution> valueSet = new List<DeviceFontSubstitution>(); 284List<Duplexing> valueSet = new List<Duplexing>(); 321List<InputBin> valueSet = new List<InputBin>(); 435List<OutputColor> valueSet = new List<OutputColor>(); 468List<OutputQuality> valueSet = new List<OutputQuality>(); 501List<PageBorderless> valueSet = new List<PageBorderless>(); 568List<PageMediaSize> mediaSet = new List<PageMediaSize>(); 608List<PageMediaType> valueSet = new List<PageMediaType>(); 641List<PageOrder> valueSet = new List<PageOrder>(); 674List<PageOrientation> valueSet = new List<PageOrientation>(); 707List<PageResolution> resSet = new List<PageResolution>(); 816List<int> valueSet = new List<int>(); 850List<PagesPerSheetDirection> valueSet = new List<PagesPerSheetDirection>(); 885List<PhotoPrintingIntent> valueSet = new List<PhotoPrintingIntent>(); 917List<Stapling> valueSet = new List<Stapling>(); 950List<TrueTypeFontMode> valueSet = new List<TrueTypeFontMode>();
Serialization\DrawingContextFlattener.cs (2)
43private List<Matrix> _fullTransform = new List<Matrix>(); 46private List<Geometry> _fullClip = new List<Geometry>();
Serialization\Manager\NullPackagingPolicy.cs (1)
212_linkTargetStream = new List <String>();
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
256_currentFixedPageLinkTargetStream = new List<String>();
Serialization\VisualSerializer.cs (1)
1609filteredCharacters = new List<char>(glyphRun.Characters);
Replay (5)
Replay.cs (2)
137return BinaryLogUtil.ReadAllCompilerCalls(stream, new List<string>()); 148var tasks = new List<Task<BuildData>>(capacity: maxParallel);
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
Roslyn.Diagnostics.Analyzers (39)
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (1)
56var exportAttributes = new List<INamedTypeSymbol>() { mefV1ExportAttribute, mefV2ExportAttribute };
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var 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)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
Roslyn.Diagnostics.CSharp.Analyzers (17)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
117var partsList = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
599var result = new List<IList<TSyntaxNode>>(); 601var currentGroup = new List<TSyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1001var 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)
25var 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)
320var 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\QueryExpressionSyntaxExtensions.cs (2)
15var result = new List<SyntaxNode> 26var result = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
24var indices = new List<bool>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
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.DiagnosticsWindow (2)
VenusMargin\ProjectionBufferMargin.xaml.cs (2)
32TextView.Properties[ProjectionSpanTaggerProvider.PropertyName] = new List<Span>(e.AddedItems.Cast<SnapshotSpan>().Select(ss => ss.Span).Where(ss => !ss.IsEmpty)); 52view.Properties[ProjectionSpanTaggerProvider.PropertyName] = new List<Span>(spansFromBuffer);
Roslyn.VisualStudio.Next.UnitTests (4)
Options\VisualStudioSettingsOptionPersisterTests.cs (1)
112var refreshedOptions = new List<(OptionKey2, object?)>();
Services\AssetProviderTests.cs (1)
57var stored2 = new List<(Checksum, object)>();
Services\PerformanceTrackerServiceTests.cs (1)
167var analyzerInfos = new List<AnalyzerInfoForPerformanceReporting>();
Services\ServiceHubServicesTests.cs (1)
1749var 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)
13private static readonly List<string> s_lines = new List<string>();
Options.cs (4)
52public List<string> IncludeFilter { get; set; } = new List<string>(); 54public List<string> ExcludeFilter { get; set; } = new List<string>(); 144var includeFilter = new List<string>(); 145var 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)
47var list = new List<Process>(); 71var list = new List<Process>();
Program.cs (1)
290var list = new List<AssemblyInfo>();
TestHistoryManager.cs (2)
196return testResults ?? new List<TestCaseResult>(); 202return new List<TestCaseResult>();
TestRunner.cs (3)
61var workItems = new List<WorkItemInfo>(); 80var running = new List<Task<TestResult>>(); 81var completed = new List<TestResult>();
SampleStartups (1)
StartupExternallyControlled.cs (1)
16private readonly List<string> _urls = new List<string>();
SemanticSearch.BuildTask (9)
GenerateFilteredReferenceAssembliesTask.cs (9)
107var errors = new List<(string message, int line)>(); 108var patterns = new List<ApiPattern>(); 144var types = new List<INamedTypeSymbol>(); 145var methods = new List<IMethodSymbol>(); 146var fields = new List<IFieldSymbol>(); 150var apis = new List<string>(); 371var types = new List<INamedTypeSymbol>(); 372var methods = new List<IMethodSymbol>(); 373var 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 (1)
Pools\PooledListWithCapacityPolicy.cs (1)
23public override List<T> Create() => new(_listCapacity);
Shared.Tests (15)
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>();
JsonSchemaExporter\JsonSchemaExporterTests.cs (1)
95List<(Type? parentType, string? propertyName, Type type)> visitedNodes = new();
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>();
SignalRSamples (1)
ConnectionHandlers\MessagesConnectionHandler.cs (1)
65var tasks = new List<Task>(Connections.Count);
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)
25_pools = new List<DiagnosticMemoryPool>();
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
273var errors = new List<Exception>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public 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)
25_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)
13public 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)
169IReadOnlyList<KeyValuePair<string, object?>> eventData = new List<KeyValuePair<string, object?>>()
TestMetrics.cs (1)
34var uploadSpeed = new List<double>();
TraceCreator.cs (1)
17private readonly List<Activity> _allActivities = new List<Activity>();
Stress.AppHost (3)
InteractionCommands.cs (2)
133var inputs = new List<InteractionInput> 217var inputs = new List<InteractionInput>();
Program.cs (1)
162var commandTasks = new List<Task>();
Stress.TelemetryService (1)
GaugeMetrics.cs (1)
22var measurements = new List<Measurement<long>>();
Swaggatherer (12)
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 (2)
16Values = new List<string>(); 105var parts = 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)
167var typeArgumentList = new List<CodeTypeReference>();
System\CodeDom\Compiler\CodeDomProvider.cs (1)
18private static readonly List<CompilerInfo> s_allCompilerInfo = new List<CompilerInfo>();
System.Collections (4)
System\Collections\Generic\PriorityQueueDebugView.cs (1)
31var list = new List<(TElement Element, TPriority Priority)>(_queue.UnorderedItems);
System\Collections\Generic\SortedSet.cs (2)
1052List<T> toSave = new List<T>(Count); 1432List<T> matches = new List<T>(this.Count);
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
99List<T> toRemove = new List<T>();
System.Collections.Concurrent (3)
System\Collections\Concurrent\BlockingCollection.cs (2)
1051List<WaitHandle> handlesList = new List<WaitHandle>(collections.Length + 1); // + 1 for the external token handle to be added 1052List<CancellationToken> tokensList = new List<CancellationToken>(collections.Length + 1); // + 1 for the external token
System\Collections\Concurrent\ConcurrentStack.cs (1)
703List<T> list = new List<T>();
System.Collections.Immutable (7)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
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\Collections\Immutable\ImmutableSortedSet_1.cs (4)
1130list = new List<T>(addedItems); 1141list = new List<T>(this); 1184list = new List<T>(addedItems.Length); 1191list = new List<T>(this.Count + addedItems.Length);
System.ComponentModel.Annotations (5)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
53List<PropertyDescriptor> tempPropertyDescriptors = new List<PropertyDescriptor>();
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
238List<Attribute> attributes = new List<Attribute>(propertyDescriptorAttributes.Count);
System\ComponentModel\DataAnnotations\Validator.cs (3)
465var errors = new List<ValidationError>(); 520var items = new List<KeyValuePair<ValidationContext, object?>>(properties.Count); 557var errors = new List<ValidationError>();
System.ComponentModel.Composition (58)
Microsoft\Internal\Collections\CollectionServices.cs (2)
93List<T> result = new List<T>(source); 134source ??= new List<T>();
Microsoft\Internal\Collections\WeakReferenceCollection.cs (2)
11private readonly List<WeakReference> _items = new List<WeakReference>(); 66List<T> aliveItems = new List<T>();
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (2)
257List<ExportDefinition> exports = new List<ExportDefinition>(); 419List<ImportDefinition> imports = new List<ImportDefinition>();
System\ComponentModel\Composition\CompositionException.cs (2)
138var errors = new List<Exception>(); 264List<Stack<CompositionError>> paths = new List<Stack<CompositionError>>();
System\ComponentModel\Composition\CompositionExceptionDebuggerProxy.cs (1)
27var errors = new List<Exception>();
System\ComponentModel\Composition\Hosting\AggregateCatalog.cs (1)
145aggregateResult = new List<Tuple<ComposablePartDefinition, ExportDefinition>>(result);
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (1)
162var exports = new List<Export>();
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
80var catalogs = new List<ComposablePartCatalog>();
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (4)
96_completeActionList ??= new List<Action>(); 108_revertActionList ??= new List<Action>(); 172exceptions ??= new List<Exception>(); 207exceptions ??= new List<Exception>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogChangeProxy.cs (2)
24_addedParts = new List<ComposablePartDefinition>(addedParts); 42var addedExports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (4)
329List<Export> exports = new List<Export>(); 367List<ExportDefinition> exports = new List<ExportDefinition>(); 610partList = new List<ComposablePart>(); 811var resurrectedExports = new List<ExportDefinition>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (1)
27List<Export> exports = new List<Export>();
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (5)
25private List<ComposablePartCatalog> _catalogs = new List<ComposablePartCatalog>(); 36_catalogs = new List<ComposablePartCatalog>(catalogs); 59_catalogs = new List<ComposablePartCatalog>(_catalogs); 113_catalogs = new List<ComposablePartCatalog>(); 196_catalogs = new List<ComposablePartCatalog>(_catalogs);
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (3)
17private List<ComposablePart> _parts = new List<ComposablePart>(); 217List<Export> exports = new List<Export>(); 339partsToRemove ??= new List<ComposablePart>();
System\ComponentModel\Composition\Hosting\CompositionBatch.cs (4)
37_partsToAdd = new List<ComposablePart>(); 51_partsToRemove = new List<ComposablePart>(); 116_partsToAdd = new List<ComposablePart>(_partsToAdd); 140_partsToRemove = new List<ComposablePart>(_partsToRemove);
System\ComponentModel\Composition\Hosting\CompositionScopeDefinition.cs (1)
191var exports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (2)
697catalogsToAdd = new List<Tuple<string, AssemblyCatalog>>(); 698catalogsToRemove = new List<Tuple<string, AssemblyCatalog>>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.cs (1)
154var exports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependenciesTraversal.cs (2)
50parts = new List<ComposablePartDefinition>(); 78reachablePartList ??= new List<ComposablePartDefinition>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependentsTraversal.cs (2)
59parts = new List<ComposablePartDefinition>(); 85reachablePartList ??= new List<ComposablePartDefinition>();
System\ComponentModel\Composition\Hosting\ImportEngine.EngineContext.cs (2)
18private readonly List<PartManager> _addedPartManagers = new List<PartManager>(); 19private readonly List<PartManager> _removedPartManagers = new List<PartManager>();
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (1)
146disposableExports ??= new List<IDisposable>();
System\ComponentModel\Composition\Hosting\ImportEngine.RecompositionManager.cs (1)
38List<PartManager> parts = new List<PartManager>();
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (3)
176var typesList = new List<Type>(); 266var collection = new List<ComposablePartDefinition>(); 327contractParts = new List<ComposablePartDefinition>();
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (1)
27internal static readonly List<Tuple<ComposablePartDefinition, ExportDefinition>> _EmptyExportsList = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Primitives\ComposablePartDefinition.cs (1)
126multipleExports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (1)
20List<Type> pureGenericParameters = new List<Type>();
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (4)
258List<ImportDefinition> imports = new List<ImportDefinition>(); 375List<ExportDefinition> exports = new List<ExportDefinition>(); 470List<LazyMemberInfo> members = new List<LazyMemberInfo>(); 471List<Lazy<ParameterInfo>> parameters = new List<Lazy<ParameterInfo>>();
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (1)
240multipleExports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System.ComponentModel.Composition.Registration (18)
System\ComponentModel\Composition\Registration\ExportBuilder.cs (3)
43_metadataItems ??= new List<Tuple<string, object>>(); 51_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 59attributes ??= new List<Attribute>();
System\ComponentModel\Composition\Registration\ImportBuilder.cs (1)
97attributes ??= new List<Attribute>();
System\ComponentModel\Composition\Registration\PartBuilder.cs (10)
13private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() }; 39_typeExportBuilders = new List<ExportBuilder>(); 40_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>>(); 41_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>>(); 42_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>>(); 188_metadataItems ??= new List<Tuple<string, object>>(); 196_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 225var attributes = new List<Attribute>(); 388configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 503configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (4)
21private static readonly List<object> s_emptyList = new List<object>(); 24private readonly List<PartBuilder> _conventions = new List<PartBuilder>(); 91List<Attribute> attributes = new List<Attribute>(); 93var configuredMembers = new List<Tuple<object, List<Attribute>>>();
System.ComponentModel.TypeConverter (17)
System\ComponentModel\Design\Serialization\ContextStack.cs (2)
100_contextStack ??= new List<object>(); 129_contextStack ??= new List<object>();
System\ComponentModel\EnumConverter.cs (1)
179List<Enum> flagValues = new List<Enum>();
System\ComponentModel\EventDescriptorCollection.cs (1)
314List<EventDescriptor?> eventList = new List<EventDescriptor?>(_events);
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
28List<Attribute> attrList = new List<Attribute>(AttributeArray!)
System\ComponentModel\MaskedTextProvider.cs (2)
290_stringDescriptor = new List<CharDescriptor>(); 535List<int> editPositions = new List<int>();
System\ComponentModel\MemberDescriptor.cs (3)
95List<Attribute> newList = new List<Attribute>(); 331list = new List<Attribute>(); 342list = new List<Attribute>(_attributes!);
System\ComponentModel\PropertyDescriptorCollection.cs (1)
332List<PropertyDescriptor?> propList = new List<PropertyDescriptor?>(_properties);
System\ComponentModel\ReferenceConverter.cs (1)
130components = new List<object?> { null };
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
605propertyList ??= new List<PropertyDescriptor>(propertyArray.Length * extenders.Length); 863List<Type> typeList = new List<Type>(); 1269List<ReflectPropertyDescriptor> extendedList = new List<ReflectPropertyDescriptor>(attributes.Count);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
89var attributes = new List<Attribute>(ReflectGetAttributes(_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>(); 116List<Attribute> attributes = new List<Attribute>(); 117var configuredMembers = new List<Tuple<object, List<Attribute>>>();
System\Composition\Convention\ExportConventionBuilder.cs (3)
94_metadataItems ??= new List<Tuple<string, object>>(); 115_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 122attributes ??= new List<Attribute>();
System\Composition\Convention\ImportConventionBuilder.cs (3)
102_metadataConstraintItems ??= new List<Tuple<string, object>>(); 123_metadataConstraintItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 148attributes ??= new List<Attribute>();
System\Composition\Convention\PartConventionBuilder.cs (12)
18private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() }; 43_typeExportBuilders = new List<ExportConventionBuilder>(); 44_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>>(); 45_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>>(); 46_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>>(); 47_methodImportsSatisfiedNotifications = new List<Predicate<MethodInfo>>(); 373_metadataItems ??= new List<Tuple<string, object>>(); 394_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 422var attributes = new List<Attribute>(); 579configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 646var onImportsSatisfiedAttributeList = new List<Attribute> 748configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.Composition.Hosting (5)
System\Composition\Hosting\Core\CompositionOperation.cs (2)
53_nonPrerequisiteActions ??= new List<Action>(); 67_postCompositionActions ??= new List<Action>();
System\Composition\Hosting\Core\LifetimeContext.cs (1)
38private List<IDisposable> _boundPartInstances = new List<IDisposable>(0);
System\Composition\Hosting\Core\UpdateResult.cs (1)
17private readonly List<ExportDescriptorPromise> _providedDescriptors = new List<ExportDescriptorPromise>();
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (1)
49var blockExprs = new List<Expression>();
System.Composition.TypedParts (9)
System\Composition\Debugging\ContainerConfigurationDebuggerProxy.cs (2)
59var discovered = new List<DiscoveredPart>(); 60var ignored = new List<Type>();
System\Composition\Hosting\ContainerConfiguration.cs (2)
23private readonly List<ExportDescriptorProvider> _addedSources = new List<ExportDescriptorProvider>(); 24private readonly List<Tuple<IEnumerable<Type>, AttributedModelProvider>> _types = new List<Tuple<IEnumerable<Type>, AttributedModelProvider>>();
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (2)
40var result = new List<CompositionDependency>(); 79var statements = new List<Expression>();
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (2)
24private readonly List<DiscoveredExport> _exports = new List<DiscoveredExport>(); 30private readonly List<Type[]> _appliedArguments = new List<Type[]>();
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (1)
48forKey = new List<DiscoveredExport>();
System.Configuration.ConfigurationManager (7)
System\Configuration\ApplicationSettingsBase.cs (1)
715var settingProps = new List<PropertyInfo>();
System\Configuration\BaseConfigurationRecord.cs (2)
422indirectLocationInputs.Add(configKey, new List<SectionInput>(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\Configuration\SectionRecord.cs (1)
220inputs = new List<SectionInput>(1);
System\Diagnostics\ListenerElementsCollection.cs (1)
27List<TraceListener> listeners = new();
System.Console (2)
System\TermInfo.Database.cs (2)
224var values = new List<string>(extendedStringCount); 244var names = new List<string>(extendedBoolCount + extendedNumberCount + extendedStringCount);
System.Data.Common (53)
System\Data\Common\DataColumnMappingCollection.cs (1)
193_items = new List<DataColumnMapping>();
System\Data\Common\DataTableMappingCollection.cs (1)
148private List<DataTableMapping> ArrayList() => _items ??= new List<DataTableMapping>();
System\Data\Common\DbDataAdapter.cs (1)
1414rows = new List<DataRow>();
System\Data\Common\DbDataReaderExtensions.cs (1)
73var columnSchema = new List<DbColumn>();
System\Data\DataColumn.cs (1)
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 (19)
148internal readonly List<DataView> _delayedViews = new List<DataView>(); 149private readonly List<DataViewListener> _dataViewListeners = new List<DataViewListener>(); 175_indexes = new List<Index>(); 373List<DataTable> list = new List<DataTable>(); 1595nestedParents = new List<DataRelation>(); 1903get { return _tableNamespace ?? GetInheritedNamespace(new List<DataTable>()); } 1913string realNamespace = value ?? GetInheritedNamespace(new List<DataTable>()); 1964rel.ChildTable.CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this); 1972CheckNamespaceValidityForNestedParentRelations(GetInheritedNamespace(new List<DataTable>()), this); 3160List<DataRow> errorList = new List<DataRow>(); 4356cachedRows = new List<DataRow>(); 4584_shadowIndexes = new List<Index>(_indexes); 5526List<DataTable> tableList = new List<DataTable>(); 6382List<DataTable> tableList = new List<DataTable>(); 6541List<DataTable> tableList = new List<DataTable>(); 6544List<DataRelation> relationList = new List<DataRelation>(); 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 (4)
83_listOfPredicates = new List<Func<TRow, bool>>(); 94_listOfPredicates = new List<Func<TRow, bool>>(); 114_listOfPredicates = new List<Func<TRow, bool>>(source._listOfPredicates); 120_listOfPredicates = new List<Func<TRow, bool>>();
System\Data\Filter\AggregateNode.cs (1)
197List<int> recordList = new List<int>();
System\Data\Filter\DataExpression.cs (2)
95List<DataColumn> list = new List<DataColumn>(); 176List<int> recordList = new List<int>();
System\Data\LinqDataView.cs (3)
132List<object?> keyList = new List<object?>(); 168List<object?> keyList = new List<object?>(); 206new List<object?>(key));
System\Data\Merger.cs (1)
57existingColumns = new List<DataColumn>(); // need to cache existing columns
System\Data\ProviderBase\SchemaMapping.cs (1)
534items = new List<object>();
System\Data\RecordManager.cs (1)
16private readonly List<int> _freeRecordList = new List<int>();
System\Data\Select.cs (2)
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 (6)
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>(); 2719List<DataTable> _tableList = new List<DataTable>(_ds.Tables.Count); 2878_namespacesToIgnore = new List<string>(namespacesToIgnore);
System\Xml\XmlDataDocument.cs (2)
3059List<DataTable> tableList = new List<DataTable>(); 3099List<DataTable> tableList = new List<DataTable>();
System.Data.Odbc (12)
Common\System\Data\Common\DBConnectionString.cs (4)
402newlist = new List<string>(); 425newlist = new List<string>(); 447List<string> newlist = new List<string>(a.Length + b.Length); 467List<string> restrictionValues = new List<string>();
Common\System\Data\ProviderBase\DbConnectionPool.cs (2)
164_objectList = new List<DbConnectionInternal>(MaxPoolSize); 1059List<DbConnectionInternal> reclaimedObjects = new List<DbConnectionInternal>();
src\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 (19)
System\Diagnostics\ActivitySource.cs (1)
55var tagList = new List<KeyValuePair<string, object?>>(tags);
System\Diagnostics\ActivityTagsCollection.cs (3)
24private readonly List<KeyValuePair<string, object?>> _list = new List<KeyValuePair<string, object?>>(); 98List<string> list = new List<string>(_list.Count); 114List<object?> list = new List<object?>(_list.Count);
System\Diagnostics\DsesFilterAndTransform.cs (1)
435var outputArgs = new List<KeyValuePair<string, string?>>();
System\Diagnostics\LegacyPropagator.cs (1)
168baggageList ??= new List<KeyValuePair<string, string?>>();
System\Diagnostics\Metrics\AggregationManager.cs (1)
22private readonly List<Predicate<Instrument>> _instrumentConfigFuncs = new();
System\Diagnostics\Metrics\Instrument.cs (1)
75var tagList = new List<KeyValuePair<string, object?>>(tags);
System\Diagnostics\Metrics\InstrumentAdvice.cs (1)
43List<T> bucketBoundariesCopy = new List<T>(value);
System\Diagnostics\Metrics\Meter.cs (6)
18private static readonly List<Meter> s_allMeters = new List<Meter>(); 19private List<Instrument> _instruments = new List<Instrument>(); 81var tagList = new List<KeyValuePair<string, object?>>(tags); 511_instruments = new List<Instrument>(); 552instrumentList = new List<Instrument>(); 607instruments = new List<Instrument>();
System\Diagnostics\Metrics\MeterListener.cs (3)
21private static readonly List<MeterListener> s_allStartedListeners = new List<MeterListener>(); 230exceptionsList ??= new List<Exception>(); 295internal static List<MeterListener>? GetAllListeners() => s_allStartedListeners.Count == 0 ? null : new List<MeterListener>(s_allStartedListeners);
System\Diagnostics\W3CPropagator.cs (1)
113baggageList ??= new List<KeyValuePair<string, string?>>();
System.Diagnostics.Process (9)
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 (2)
34_threadInfoList = new List<ThreadInfo>(); 39_threadInfoList = new List<ThreadInfo>(threadsNumber);
System\Diagnostics\ProcessManager.Linux.cs (1)
15public static int[] GetProcessIds() => new List<int>(EnumerateProcessIds()).ToArray();
System\Diagnostics\ProcessStartInfo.cs (1)
68_argumentList = new Collection<string>(new List<string>(arguments));
System\Diagnostics\ProcessWaitState.Unix.cs (1)
652additionalToRemove ??= new List<ProcessWaitState>();
System.Diagnostics.TraceSource (7)
System\Diagnostics\CorrelationManager.cs (1)
128var results = new List<object?>();
System\Diagnostics\Switch.cs (2)
29private static readonly List<WeakReference<Switch>> s_switches = new List<WeakReference<Switch>>(); 67List<WeakReference<Switch>> buffer = new List<WeakReference<Switch>>(s_switches.Count);
System\Diagnostics\SwitchAttribute.cs (1)
53List<object> switchAttribs = new List<object>();
System\Diagnostics\TraceListeners.cs (1)
20_list = new List<TraceListener?>(1);
System\Diagnostics\TraceSource.cs (2)
15private static readonly List<WeakReference<TraceSource>> s_tracesources = new List<WeakReference<TraceSource>>(); 49List<WeakReference<TraceSource>> buffer = new List<WeakReference<TraceSource>>(s_tracesources.Count);
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.cs (1)
748List<(int, int)> positions = new List<(int, int)>();
System.Formats.Cbor (4)
System\Formats\Cbor\Reader\CborReader.String.cs (1)
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)
81_currentIndefiniteLengthStringRanges ??= new List<(int, int)>(); 175_currentIndefiniteLengthStringRanges ??= new List<(int, int)>();
System.Formats.Nrbf (3)
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (2)
220List<decimal> values = new(); 256List<T> values = new List<T>(Math.Min(count, 4));
System\Formats\Nrbf\RectangularArrayRecord.cs (1)
30_records = new List<SerializationRecord>(Math.Min(4, arrayInfo.GetSZArrayLength()));
System.Formats.Tar (1)
System\Formats\Tar\TarReader.cs (1)
606_dataStreamsToDispose ??= new List<Stream>();
System.IO.Compression (4)
System\IO\Compression\ZipArchive.Async.cs (1)
336entriesToWrite = new(_entries.Count);
System\IO\Compression\ZipArchive.cs (2)
188_entries = new List<ZipArchiveEntry>(); 783entriesToWrite = new(_entries.Count);
System\IO\Compression\ZipBlocks.cs (1)
72List<ZipGenericExtraField> extraFields = new List<ZipGenericExtraField>();
System.IO.FileSystem.DriveInfo (2)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (2)
46List<string> mountPoints = new(); 64context._results = new List<string>();
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
916internal List<WatchedDirectory> InitializedChildren => Children ??= new List<WatchedDirectory>();
System.IO.Packaging (10)
System\IO\Packaging\Package.cs (1)
418List<string> partIndex = new(parts.Length);
System\IO\Packaging\PackagePart.cs (1)
334_requestedStreams ??= new List<Stream>(); //Default capacity is 4
System\IO\Packaging\PackageRelationshipSelector.cs (1)
113List<PackageRelationship> relationships = new List<PackageRelationship>(0);
System\IO\Packaging\XmlCompatibilityReader.cs (1)
113List<string> keysToUpdate = new List<string>();
System\IO\Packaging\ZipPackage.cs (6)
176List<PackagePart> parts = new List<PackagePart>(InitialPartListSize); 580List<ZipPackagePartPiece> pieces = new List<ZipPackagePartPiece>(pieceSet); 1078partPieces = new List<ZipPackagePartPiece>(contentTypeStreamPieces.Keys); 1410zipFileInfoNameList = new List<string>(count); 1472_ignoredItemDictionary.Add(normalizedPrefixName, new List<string>(_listInitialSize)); 1487_extensionDictionary.Add(extension, new List<string>(_listInitialSize));
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 (24)
System\Linq\AppendPrepend.SpeedOpt.cs (3)
104return new List<TSource>(1) { _item }; 107List<TSource> list = count == -1 ? [] : new List<TSource>(count); 264List<TSource> list = count == -1 ? [] : new List<TSource>(count);
System\Linq\Cast.SpeedOpt.cs (1)
30List<TResult> list = new(_source.Count);
System\Linq\Concat.SpeedOpt.cs (2)
373var list = count != -1 ? new List<TSource>(count) : new List<TSource>();
System\Linq\Distinct.SpeedOpt.cs (1)
14public override List<TSource> ToList() => new List<TSource>(new HashSet<TSource>(_source, _comparer));
System\Linq\Lookup.cs (1)
156List<TResult> list = new List<TResult>(_count);
System\Linq\OrderedEnumerable.SpeedOpt.cs (2)
32List<TElement> list = new(buffer.Length); 104return new List<TElement>(1) { GetEnumerableSorter().ElementAt(buffer, buffer.Length, minIdx) };
System\Linq\Range.SpeedOpt.cs (1)
30List<T> list = new List<T>(count);
System\Linq\Repeat.SpeedOpt.cs (1)
26List<TResult> list = new List<TResult>(_count);
System\Linq\SegmentedArrayBuilder.cs (1)
263result = new List<T>(count);
System\Linq\Select.SizeOpt.cs (1)
88List<TResult> list = new List<TResult>(_source.Count);
System\Linq\Select.SpeedOpt.cs (6)
158var results = new List<TResult>(source.Length); 301var results = new List<TResult>(count); 414var results = new List<TResult>(source.Length); 532var results = new List<TResult>(count); 798list = new List<TResult>(count); 975List<TResult> list = new List<TResult>(count);
System\Linq\Shuffle.SpeedOpt.cs (2)
211reservoir = new(takeCount); 239reservoir = new List<TSource>(Math.Min(takeCount, 4)) { e.Current };
System\Linq\ToCollection.cs (1)
70return new List<TSource>(source);
System\Linq\Union.SpeedOpt.cs (1)
29public override List<TSource> ToList() => new List<TSource>(FillSet());
System.Linq.Expressions (33)
System\Dynamic\BindingRestrictions.cs (1)
359var restrictions = new List<BindingRestrictions>();
System\Dynamic\ExpandoClass.cs (1)
96_transitions[hashCode] = infos = new List<WeakReference>();
System\Linq\Expressions\Compiler\BoundConstants.cs (1)
55private readonly List<object> _values = new List<object>();
System\Linq\Expressions\Compiler\LabelInfo.cs (1)
41private readonly List<LabelScopeInfo> _references = new List<LabelScopeInfo>();
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
532writeBacks ??= new List<WriteBack>();
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (4)
338buckets.Add(new List<SwitchLabel> { key }); 396var keys = new List<SwitchLabel>(); 420var buckets = new List<List<SwitchLabel>>(); 666var initializers = new List<ElementInit>(tests);
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (1)
205List<Expression> comma = new List<Expression>(count + 1);
System\Linq\Expressions\Compiler\StackSpiller.Temps.cs (2)
98internal List<ParameterExpression> Temps { get; } = new List<ParameterExpression>(); 162_freeTemps ??= new List<ParameterExpression>();
System\Linq\Expressions\Interpreter\BranchLabel.cs (1)
75_forwardBranchFixups ??= new List<int>();
System\Linq\Expressions\Interpreter\CallInstruction.cs (1)
212List<Type> types = new List<Type>();
System\Linq\Expressions\Interpreter\InstructionList.cs (5)
69private readonly List<Instruction> _instructions = new List<Instruction>(); 114var result = new List<InstructionView>(); 237_debugCookies ??= new List<KeyValuePair<int, object?>>(); 374_objects = new List<object>(); 938_labels ??= new List<BranchLabel>();
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (2)
145exception.Data[typeof(InterpretedFrameInfo)] ??= new List<InterpretedFrameInfo>(GetStackTraceDebugInfo()).ToArray(); 158var trace = new List<string>();
System\Linq\Expressions\Interpreter\LabelInfo.cs (1)
29private readonly List<LabelScopeInfo> _references = new List<LabelScopeInfo>();
System\Linq\Expressions\Interpreter\LightCompiler.cs (6)
284private readonly List<DebugInfo> _debugInfos = new List<DebugInfo>(); 2006exHandlers = new List<ExceptionHandler>(); 2150updaters = new List<ByRefUpdater>() { updater }; 2167updaters ??= new List<ByRefUpdater>(); 2404updaters ??= new List<ByRefUpdater>(); 2834var parameterList = new List<ParameterExpression>(count);
System\Linq\Expressions\Interpreter\LocalVariables.cs (1)
82existing.ChildScopes ??= new List<VariableScope>();
System\Linq\Expressions\Interpreter\TypeOperations.cs (2)
578var boxes = new List<IStrongBox>(); 579var vars = new List<ParameterExpression>();
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (2)
133var boxes = new List<IStrongBox>(); 134var vars = new List<ParameterExpression>();
System.Linq.Parallel (7)
System\Linq\Parallel\Merging\DefaultMergeHelper.cs (1)
163List<TInputOutput> output = new List<TInputOutput>();
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (1)
134_buffer = new List<Pair<TSource, TKey>>();
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (1)
201List<Pair<TResult, TKey>> buffer = new List<Pair<TResult, TKey>>();
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (1)
258List<Pair<TResult, TKey>> buffer = new List<Pair<TResult, TKey>>();
System\Linq\Parallel\Utils\Sorting.cs (1)
222values = new List<TInputOutput>();
System\Linq\ParallelEnumerable.cs (2)
4853List<TSource> list = new List<TSource>(); 4868return new List<TSource>(ToArray<TSource>(source));
System.Linq.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
76newArgs = new List<Expression>(argList.Count); 109List<Expression> exprs = new List<Expression>(na.Expressions.Count);
System.Memory (2)
System\Text\EncodingExtensions.cs (2)
166List<(byte[], int)> listOfSegments = new List<(byte[], int)>(); 353List<(char[], int)> listOfSegments = new List<(char[], int)>();
System.Net.Http (22)
src\libraries\Common\src\System\Net\Security\SslClientAuthenticationOptionsExtensions.cs (1)
22ApplicationProtocols = options.ApplicationProtocols != null ? new List<SslApplicationProtocol>(options.ApplicationProtocols) : null,
System\Net\Http\DiagnosticsHandler.cs (1)
38var fieldDescriptors = new List<HeaderDescriptor>(fields.Count);
System\Net\Http\Headers\CacheControlHeaderValue.cs (1)
363List<NameValueHeaderValue> nameValueList = new List<NameValueHeaderValue>();
System\Net\Http\Headers\HttpHeaders.cs (5)
226info.RawValue = rawValues = new List<string>(); 739return new List<object>(sourceValues); 947List<object> parsedValues = new List<object>(); 1028storeValues = new List<T>(2); 1112List<object> parsedValues = new List<object>();
System\Net\Http\MultipartContent.cs (1)
61_nestedContent = new List<HttpContent>();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (4)
31private static readonly List<SslApplicationProtocol> s_http3ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http3 }; 32private static readonly List<SslApplicationProtocol> s_http2ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http2, SslApplicationProtocol.Http11 }; 33private static readonly List<SslApplicationProtocol> s_http2OnlyApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http2 }; 922toDispose ??= 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)
427_availableHttp3Connections ??= new List<Http3Connection>(); 576toDispose ??= new List<HttpConnectionBase>();
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
1091List<Http2Stream> streamsToAbort = new List<Http2Stream>(); 1822List<Http2Stream> streamsToAbort = new List<Http2Stream>();
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
418var streamsToGoAway = new List<Http3RequestStream>();
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
635_trailingHeaders = new List<(HeaderDescriptor name, string value)>();
System.Net.HttpListener (17)
System\Net\HttpListenerRequest.cs (1)
368List<string> values = new List<string>();
System\Net\HttpListenerRequestUriBuilder.cs (1)
139_rawOctets = new List<byte>();
System\Net\Managed\ChunkStream.cs (2)
88_chunks = new List<Chunk>(); 111var chunksForRemoving = new List<Chunk>(count);
System\Net\Managed\HttpEndPointListener.cs (9)
312var connections = new List<HttpConnection>(_unregisteredConnections); 329future = current != null ? new List<ListenerPrefix>(current) : new List<ListenerPrefix>(); 341future = current != null ? new List<ListenerPrefix>(current) : new List<ListenerPrefix>(); 370future = current != null ? new List<ListenerPrefix>(current) : new List<ListenerPrefix>(); 384future = current != null ? new List<ListenerPrefix>(current) : new List<ListenerPrefix>();
System\Net\Managed\HttpEndPointManager.cs (1)
48List<string> added = new List<string>();
System\Net\Managed\HttpListener.Managed.cs (2)
16private readonly List<HttpListenerContext> _contextQueue = new List<HttpListenerContext>(); 17private readonly List<ListenerAsyncResult> _asyncWaitQueue = new List<ListenerAsyncResult>();
System\Net\ServiceNameStore.cs (1)
21_serviceNames = new List<string>();
System.Net.Mail (4)
System\Net\Mail\MailAddressParser.cs (1)
39List<MailAddress> results = new List<MailAddress>();
System\Net\Mail\SmtpAuthenticationManager.cs (1)
10private static readonly List<ISmtpAuthenticationModule> s_modules = new List<ISmtpAuthenticationModule>();
System\Net\Mail\SmtpReplyReaderFactory.cs (1)
270var lines = new List<LineInfo>();
System\Net\Mail\SmtpTransport.cs (1)
127(failedRecipientExceptions ??= new()).Add(
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 (2)
System\Net\CookieContainer.cs (2)
469var removePathList = new List<object>(); 470var removeDomainList = new List<string>();
System.Net.Quic (1)
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (1)
68ApplicationProtocols = new List<SslApplicationProtocol>(alpnProtocols);
System.Net.Requests (4)
System\Net\FtpControlStream.cs (1)
487var commandList = new List<PipelineEntry>();
System\Net\TimerThread.cs (1)
135var garbage = new List<object>();
System\Net\WebRequest.cs (2)
248List<WebRequestPrefixElement> prefixList = new List<WebRequestPrefixElement>(PrefixList); 357var prefixList = new List<WebRequestPrefixElement>(Count)
System.Net.Security (3)
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (1)
19private readonly List<TlsCipherSuite> _tlsCipherSuites = new List<TlsCipherSuite>();
System\Net\Security\SslStream.Protocol.cs (1)
668private static List<T> EnsureInitialized<T>(ref List<T>? list) => list ??= new List<T>();
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
236(_ocspUrls ??= new List<string>()).Add(entry);
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
169_bufferListInternal = new List<ArraySegment<byte>>(bufferCount);
System.Net.WebHeaderCollection (2)
System\Net\HeaderInfoTable.cs (1)
24var tempStringCollection = new List<string>();
System\Net\WebHeaderCollection.cs (1)
238valueList = new List<string>(values);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\ClientWebSocketOptions.cs (1)
85internal List<string> RequestedSubProtocols => _requestedSubProtocols ??= new List<string>();
System.ObjectModel (3)
System\Collections\ObjectModel\KeyedCollection.cs (1)
32: base(new List<TItem>()) // Be explicit about the use of List<T> so we can foreach over
System\Collections\ObjectModel\ObservableCollection.cs (2)
47public ObservableCollection(IEnumerable<T> collection) : base(new List<T>(collection ?? throw new ArgumentNullException(nameof(collection)))) 61public ObservableCollection(List<T> list) : base(new List<T>(list ?? throw new ArgumentNullException(nameof(list))))
System.Private.CoreLib (120)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (2)
46List<string> mountPoints = new(); 64context._results = new List<string>();
src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (4)
103: this(message, new List<Exception>(innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions))).ToArray(), cloneExceptions: false) 273unhandledExceptions ??= new List<Exception>(); 301List<Exception> flattenedExceptions = new List<Exception>(); 304var exceptionsToFlatten = new List<AggregateException> { this };
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1551List<T> list = new List<T>();
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (3)
371List<TOutput> list = new List<TOutput>(_size); 532List<T> list = new List<T>(); 690List<T> list = new List<T>(count);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
20items = new List<T>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
142List<StackFrame> frameList = new List<StackFrame>(frames);
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 (10)
472var ret = new List<EventSource>(); 3913private static List<Func<EventSource?>> s_preregisteredEventSourceFactories = new List<Func<EventSource?>>(); 4384List<EventSource> sourcesToDispose = new List<EventSource>(); 4575Interlocked.CompareExchange(ref s_EventSources, new List<WeakReference<EventSource>>(2), null); 5340errors = new List<string>(); 5524byteArrArgIndices ??= new List<int>(4); 5647var sortedChannels = new List<KeyValuePair<int, ChannelInfo>>(); 5685var sortedTasks = new List<int>(taskTab.Keys); 5762var sortedOpcodes = new List<int>(opcodeTab.Keys); 5777var sortedKeywords = new List<ulong>(keywordTab.Keys);
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\TraceLoggingEventSource.cs (1)
745List<byte> traitMetaData = new List<byte>(100);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTypes.cs (2)
178var recursionCheck = new List<Type>(paramInfos.Length); 193var recursionCheck = new List<Type>(types.Length);
src\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)
566List<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\DateTimeFormat.cs (1)
1775List<string> results = new List<string>(DEFAULT_ALL_DATETIMES_SIZE);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
1291List<string> results = new List<string>(DEFAULT_ALL_DATETIMES_SIZE);
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\Directory.cs (3)
174=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Files, enumerationOptions)).ToArray(); 184=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Directories, enumerationOptions)).ToArray(); 194=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Both, enumerationOptions)).ToArray();
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (3)
118=> new List<FileInfo>((IEnumerable<FileInfo>)InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Files, enumerationOptions)).ToArray(); 133=> new List<FileSystemInfo>(InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Both, enumerationOptions)).ToArray(); 146=> new List<DirectoryInfo>((IEnumerable<DirectoryInfo>)InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Directories, enumerationOptions)).ToArray();
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
871List<string> lines = new List<string>(); 1312List<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\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (1)
41s_registrations[signo] = tokens = new List<Token>();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TrackerObjectManager.cs (1)
64List<object> objects = new List<object>();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TypeMapLazyDictionary.cs (1)
362Others ??= new List<SourceProxyPair>();
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
609results ??= new List<MethodInfo>(semiFinalists.Length) { finalist }; 661results ??= new List<MethodInfo>(semiFinalists.Length) { finalist };
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\ConcurrentExclusiveSchedulerPair.cs (1)
237cs.m_exceptions ??= new List<Exception>(faultedException.InnerExceptionCount);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (12)
2166Interlocked.CompareExchange(ref props.m_exceptionalChildren, new List<Task>(), null); 4552list = new List<object?>(); 4646continuationsLocalRef = Interlocked.CompareExchange(ref m_continuationObject, new List<object?>(), continuationObject); 4942CollectionsMarshal.AsSpan(new List<Task>(tasks)); 5073list ??= new List<T>(initSize); 5163exceptions ??= new List<Exception>(ex.InnerExceptionCount); 6133failedOrCanceled = Interlocked.CompareExchange(ref m_stateObject, new List<Task> { first, completedTask }, first); 6175(observedExceptions ??= new()).AddRange(task.GetExceptionDispatchInfos()); 6288List<Task<TResult>> taskList = new List<Task<TResult>>(); 6452observedExceptions ??= new List<ExceptionDispatchInfo>(); 6775var taskList = new List<TTask>(); 7108List<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\TaskExceptionHolder.cs (1)
148List<ExceptionDispatchInfo>? exceptions = m_faultExceptions ??= new List<ExceptionDispatchInfo>(1);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (2)
461activeTasksArray = (new List<Task>(activeTasksSource)).ToArray(); 490List<TaskScheduler> schedulers = new List<TaskScheduler>();
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadInt64PersistentCounter.cs (1)
53List<ThreadLocalNodeFinalizationHelper>? nodeFinalizationHelpers = t_nodeFinalizationHelpers ??= new List<ThreadLocalNodeFinalizationHelper>(1);
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)
106public TimerQueueTimer[] Items => new List<TimerQueueTimer>(_queue.GetTimersForDebugger()).ToArray();
src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Portable.cs (2)
33var timers = new List<TimerQueue>(Instances.Length); 34s_scheduledTimersToFire ??= new List<TimerQueue>(Instances.Length);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
2014value._equivalentZones = new List<TimeZoneInfo>();
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
375List<AdjustmentRule> rules = new List<AdjustmentRule>(1);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
155List<AdjustmentRule> rulesList = new List<AdjustmentRule>(_adjustmentRules.Length); 501List<AdjustmentRule> rulesList = new List<AdjustmentRule>();
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
184List<string> timeZoneIds = new List<string>();
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (1)
123genericArgs = new List<TypeName>(2);
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
267(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)
591private static readonly List<MemoryLoadChangeNotification> s_notifications = new List<MemoryLoadChangeNotification>();
src\System\Reflection\Associates.cs (1)
192otherList ??= new List<MethodInfo>(cAssociates);
src\System\Reflection\Emit\DynamicILGenerator.cs (1)
972internal 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)
732List<Type> types = new List<Type>(); 733List<Exception> exceptions = new List<Exception>();
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
74return new List<CustomAttributeData>();
src\System\Reflection\RuntimeEventInfo.cs (1)
138List<MethodInfo> ret = new List<MethodInfo>();
src\System\Reflection\RuntimePropertyInfo.cs (1)
230List<MethodInfo> accessorList = new List<MethodInfo>();
src\System\RuntimeType.CoreCLR.cs (1)
1329cache = new List<RuntimePropertyInfo>(1);
System.Private.CoreLib.Generators (2)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
620List<int> includedClauses = new List<int>();
NativeRuntimeEventSourceGenerator.cs (1)
322var paramList = new List<string>();
System.Private.DataContractSerialization (38)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
167var typeArgumentList = new List<CodeTypeReference>();
System\Runtime\Serialization\ClassDataContract.cs (5)
623_members = new List<DataMember>(); 801List<DataMember> tempMembers = new List<DataMember>(); 977List<Member> membersInHierarchy = new List<Member>(); 1371boundClassContract.Members = new List<DataMember>(Members.Count); 1420List<DataMember> dataContractMembersList = new List<DataMember>();
System\Runtime\Serialization\CodeGenerator.cs (1)
145_argList = new List<ArgBuilder>();
System\Runtime\Serialization\DataContract.cs (4)
1151List<Type> itemTypeClosure = new List<Type>(); 1553List<int> nestedParamCounts = new List<int>(); 2386_nestedParamCounts = new List<int>(); 2405_paramGenericInfos ??= new List<GenericInfo>();
System\Runtime\Serialization\DataContractSerializer.cs (1)
130_knownTypeList = new List<Type>();
System\Runtime\Serialization\DataContractSet.cs (3)
29_referencedTypes = referencedTypes != null ? new List<Type>(referencedTypes) : null; 30_referencedCollectionTypes = referencedCollectionTypes != null ? new List<Type>(referencedCollectionTypes) : null; 387List<Type> types = new List<Type>();
System\Runtime\Serialization\EnumDataContract.cs (2)
220List<DataMember> tempMembers = new List<DataMember>(fields.Length); 221List<long> tempValues = new List<long>(fields.Length);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
600this.knownTypeList = new List<Type>();
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (2)
64List<Type> knownTypesList = new List<Type>(); 67List<XmlQualifiedName> xmlNames = new List<XmlQualifiedName>();
System\Runtime\Serialization\SchemaImporter.cs (8)
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)
280extensionData.Members ??= new List<ExtensionDataMember>(); 796dataNode.Members ??= new List<ExtensionDataMember>(); 826dataNode.Items ??= new List<IDataNode?>(); 886dataNode.Members ??= new List<ISerializableDataMember>(); 915xmlAttributes ??= new List<XmlAttribute>(); 927xmlChildNodes ??= new List<XmlNode>(); 950var xmlChildNodes = new List<XmlNode>(); 954xmlAttributes = 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 (2)
System\Collections\Generic\CollectionExtensions.cs (1)
24return new List<T>(new ArraySegment<T>(array, 0, count));
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
270new List<object?>
System.Private.Windows.Core.Tests (23)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (21)
67new List<bool> { false, true }, 68new List<char> { char.MinValue, char.MaxValue }, 69new List<byte> { byte.MinValue, byte.MaxValue }, 70new List<sbyte> { sbyte.MinValue, sbyte.MaxValue }, 71new List<short> { short.MinValue, short.MaxValue }, 72new List<ushort> { ushort.MinValue, ushort.MaxValue }, 73new List<int> { int.MinValue, int.MaxValue }, 74new List<uint> { uint.MinValue, uint.MaxValue }, 75new List<long> { long.MinValue, long.MaxValue }, 76new List<ulong> { ulong.MinValue, ulong.MaxValue }, 77new List<float> { float.MinValue, float.MaxValue }, 78new List<double> { double.MinValue, double.MaxValue }, 79new List<decimal> { decimal.MinValue, decimal.MaxValue }, 80new List<DateTime> { DateTime.MinValue, DateTime.MaxValue }, 81new List<TimeSpan> { TimeSpan.MinValue, TimeSpan.MaxValue }, 82new List<string> { "a", "b", "c" } 156new List<object>(), 157new List<nint>(), 158new List<(int, int)>(), 159new List<nint> { nint.MinValue, nint.MaxValue }, 160new List<nuint> { nuint.MinValue, nuint.MaxValue }
System\TypeExtensionsTests.cs (2)
91{ new List<int>(), ["System.Collections.Generic.List`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"] }, 93new List<MyClass>(),
System.Private.Xml (169)
System\Xml\Core\XmlEventCache.cs (1)
537_pages = new List<XmlEvent[]>();
System\Xml\Core\XmlWriterSettings.cs (3)
243clonedSettings.CDataSectionElements = new List<XmlQualifiedName>(CDataSectionElements); 250internal List<XmlQualifiedName> CDataSectionElements { get; private set; } = new(); 677CDataSectionElements = new List<XmlQualifiedName>(length);
System\Xml\Dom\DocumentXmlWriter.cs (1)
75_fragment = new List<XmlNode>();
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1802List<XmlElement> elements = new List<XmlElement>();
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (4)
63List<object> temp = new List<object>(); 80list = new List<object>(); 122list = new List<object>(); 129list = new List<object>();
System\Xml\Dom\XPathNodeList.cs (1)
20_list = new List<XmlNode?>();
System\Xml\Schema\ContentValidator.cs (2)
1442List<int[]> transitionTable = new(); 1857runningPositions = new List<RangePositionInfo>();
System\Xml\Schema\Preprocessor.cs (1)
727List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
System\Xml\Schema\SchemaCollectionCompiler.cs (1)
633var memberTypeDefinitions = new List<XmlSchemaSimpleType>();
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
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\XdrBuilder.cs (2)
783builder._ElementDef._ElementDecl!.Values = new List<string>((string[])obj); 1081builder._AttributeDef._AttDef!.Values = new List<string>((string[])obj);
System\Xml\Schema\XmlSchemaObjectTable.cs (1)
13private readonly List<XmlSchemaObjectEntry> _entries = new List<XmlSchemaObjectEntry>();
System\Xml\Schema\XmlSchemaSet.cs (2)
991newMembers ??= new List<XmlSchemaElement>(); 1299List<XmlSchema> reprocessList = new List<XmlSchema>();
System\Xml\Schema\XmlValueConverter.cs (3)
3053List<T> listDst = new List<T>(); 3081List<object> listDst = new List<object>(); 3093return new List<string>(XmlConvert.SplitString(value));
System\Xml\Schema\XsdBuilder.cs (2)
674private readonly List<XmlAttribute> _unhandledAttributes = new List<XmlAttribute>(); 753_namespaces ??= new List<XmlQualifiedName>();
System\Xml\Serialization\Models.cs (1)
430var list = new List<ConstantModel>();
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (7)
139var membersList = new List<Member>(); 140var textOrArrayMembersList = new List<Member>(); 141var attributeMembersList = new List<Member>(); 382checkTypeHrefSource = new List<CheckTypeSource>(); 1485var listOfItems = new List<object?>(); 1592var allMembersList = new List<Member>(mappings.Length); 1880var attributes = new List<AttributeAccessor>();
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
202var 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>(); 1059var list = new List<MemberMapping>();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
846var members = new List<MemberMapping>(); 1218var constants = new List<ConstantMapping>();
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1303if (IsCyclicReferencedType(itemElement, new List<string>(1) { identifier }))
System\Xml\Serialization\XmlSerializationReader.cs (7)
1874var xmlNodeList = new List<XmlNode>(); 2501var membersList = new List<Member>(); 2502var textOrArrayMembersList = new List<Member>(); 2503var attributeMembersList = new List<Member>(); 3308var arraysToDeclareList = new List<Member>(mappings.Length); 3309var arraysToSetList = new List<Member>(mappings.Length); 3310var allMembersList = new List<Member>(mappings.Length);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (17)
308List<Type> argTypes = new List<Type>(); 428var membersList = new List<Member>(); 429var textOrArrayMembersList = new List<Member>(); 430var attributeMembersList = new List<Member>(); 1023List<Type> argTypes = new List<Type>(); 1024List<string> argNames = new List<string>(); 1066List<Label> caseLabels = new List<Label>(); 1067List<object> retValues = new List<object>(); 1144List<Type> argTypes = new List<Type>(); 1329List<Type> argTypes = new List<Type>(); 1330List<string> argNames = new List<string>(); 1532var arraysToDeclareList = new List<Member>(mappings.Length); 1533var arraysToSetList = new List<Member>(mappings.Length); 1534var allMembersList = new List<Member>(mappings.Length); 1804var attributes = new List<AttributeAccessor>(); 1991List<Type> argTypes = new List<Type>(); 3151List<Type> argTypes = new List<Type>();
System\Xml\Serialization\XmlSerializationWriterILGen.cs (12)
101List<Type> argTypes = new List<Type>(); 230List<Type> argTypes = new List<Type>(); 600List<Type> argTypes = new List<Type>(); 601List<string> argNames = new List<string>(); 619List<Label> caseLabels = new List<Label>(); 620List<string> retValues = new List<string>(); 751List<Type> argTypes = new List<Type>(); 915List<Type> argTypes = new List<Type>(5); 916List<string> argNames = new List<string>(5); 1315List<Type> argTypes = new List<Type>(); 1585var namedAnys = new List<ElementAccessor>(); 1996List<Type> argTypes = new List<Type>();
System\Xml\XPath\Internal\CacheAxisQuery.cs (2)
17this.outputBuffer = new List<XPathNavigator>(); 22this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
System\Xml\XPath\Internal\CacheOutputQuery.cs (2)
21this.outputBuffer = new List<XPathNavigator>(); 27this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
System\Xml\XPath\Internal\FollSiblingQuery.cs (2)
19_parentStk = new List<XPathNavigator>(); 24_parentStk = new List<XPathNavigator>(other._parentStk);
System\Xml\XPath\Internal\Function.cs (3)
53_argumentList = new List<AstNode>(argumentList); 61_argumentList = new List<AstNode>(argumentList); 67_argumentList = new List<AstNode>();
System\Xml\XPath\Internal\PreSiblingQuery.cs (1)
48List<XPathNavigator> parentStk = new List<XPathNavigator>();
System\Xml\XPath\Internal\QueryBuilder.cs (1)
443List<Query> argList = new List<Query>(numArgs);
System\Xml\XPath\Internal\SortQuery.cs (2)
23_results = new List<SortKey>(); 30_results = new List<SortKey>(other._results);
System\Xml\XPath\Internal\XPathParser.cs (2)
504List<AstNode> argList = new List<AstNode>(); 656List<AstNode> argList = new List<AstNode>();
System\Xml\Xsl\IlGen\StaticDataManager.cs (3)
21private readonly List<T> _list = new List<T>(); 126_prefixMappingsList ??= new List<StringPair[]>(); 147_globalNames ??= new List<string>();
System\Xml\Xsl\QIL\QilExpression.cs (2)
42_wsRules = factory.LiteralObject(new List<WhitespaceRule>()); 45_earlBnd = factory.LiteralObject(new List<EarlyBoundInfo>());
System\Xml\Xsl\QIL\QilXmlWriter.cs (2)
317private readonly List<QilNode> _fwdrefs = new List<QilNode>(); 318private readonly List<QilNode> _backrefs = new List<QilNode>();
System\Xml\Xsl\Runtime\DocumentOrderComparer.cs (2)
38_roots ??= new List<XPathNavigator>(); 56_roots ??= new List<XPathNavigator>();
System\Xml\Xsl\Runtime\DodSequenceMerge.cs (1)
52_sequencesToMerge = new List<IEnumerator<XPathNavigator>>();
System\Xml\Xsl\Runtime\StringConcat.cs (1)
94List<string?> strList = _strList = new List<string?>(capacity);
System\Xml\Xsl\Runtime\XslNumber.cs (1)
141_tokens = new List<TokenInfo?>();
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
188_decimalFormatters ??= new List<DecimalFormatter>();
System\Xml\Xsl\XmlQueryTypeFactory.cs (6)
81return SequenceType.Create(ChoiceType.Create(PrimeChoice(new List<XmlQueryType>(left), right)), left.Cardinality | right.Cardinality); 97List<XmlQueryType> list = new List<XmlQueryType>(types[0]); 127return SequenceType.Create(ChoiceType.Create(PrimeChoice(new List<XmlQueryType>(left), right)), left.Cardinality + right.Cardinality); 690public static readonly XmlQueryType None = new ChoiceType(new List<XmlQueryType>()); 711members = new List<XmlQueryType>(); 826List<XmlQueryType> members = new List<XmlQueryType>(length);
System\Xml\Xsl\XPath\XPathParser.cs (1)
551List<Node> argList = new List<Node>();
System\Xml\Xsl\Xslt\Compiler.cs (4)
48public List<VarPar> ExternalPars = new List<VarPar>(); 49public List<VarPar> GlobalVars = new List<VarPar>(); 50public List<WhitespaceRule> WhitespaceRules = new List<WhitespaceRule>(); 53public List<ProtoTemplate> AllTemplates = new List<ProtoTemplate>();
System\Xml\Xsl\Xslt\MatcherBuilder.cs (8)
262public List<QilName> FixedNamePatternsNames = new List<QilName>(); // Needed only to guarantee a stable order 263public List<Pattern> NonFixedNamePatterns = new List<Pattern>(); 286list = FixedNamePatterns[qname] = new List<Pattern>(); 312private readonly List<Pattern> _textPatterns = new List<Pattern>(); 313private readonly List<Pattern> _documentPatterns = new List<Pattern>(); 314private readonly List<Pattern> _commentPatterns = new List<Pattern>(); 316private readonly List<Pattern> _heterogenousPatterns = new List<Pattern>(); 318private readonly List<List<TemplateMatch>> _allMatches = new List<List<TemplateMatch>>();
System\Xml\Xsl\Xslt\QilGenerator.cs (4)
201List<EarlyBoundInfo> ebTypes = new List<EarlyBoundInfo>(scriptClasses.Count); 578paramWithCalls = new List<VarPar>(); 2556args = new List<XslNode>(3); 2645functionsForMode = sheet.ApplyFunctions[mode] = new List<QilFunction>();
System\Xml\Xsl\Xslt\Stylesheet.cs (7)
29public List<Uri> ImportHrefs = new List<Uri>(); 30public List<XslNode>? GlobalVarPars = new List<XslNode>(); 45public List<Template> Templates = new List<Template>(); // Templates defined on this level. Empty for RootLevel. 54matchesForMode = TemplateMatches[template.Mode] = new List<TemplateMatch>(); 72WhitespaceRules![0] = new List<WhitespaceRule>(); 73WhitespaceRules![1] = new List<WhitespaceRule>(); 74WhitespaceRules![2] = new List<WhitespaceRule>();
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
237List<QilNode> convertedPredicates = new List<QilNode>(predicates.Count);
System\Xml\Xsl\Xslt\XPathPatternParser.cs (2)
127List<QilNode> args = new List<QilNode>(2); 235List<QilNode> predicates = new List<QilNode>();
System\Xml\Xsl\Xslt\XslAst.cs (3)
105private static readonly IList<XslNode> s_emptyList = new List<XslNode>().AsReadOnly(); 120_content ??= new List<XslNode>(); 128_content = new List<XslNode>(collection);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (5)
26private readonly List<VarPar> _allVarPars = new List<VarPar>(); 57private static readonly IList<V> s_empty = (new List<V>()).AsReadOnly(); 80adjList = this[v1] = new List<V>(); 757templates = new List<ProtoTemplate>(); 1430newtemplate.SetContent(new List<XslNode>(content.Count - split + 8));
System\Xml\Xsl\Xslt\XsltLoader.cs (15)
336List<XslNode> content = new List<XslNode>(); 619List<XmlQualifiedName> list = new List<XmlQualifiedName>(); 902List<Key> defList = new List<Key>(); 1083List<XslNode> content = new List<XslNode>(); 1347return LoadInstructions(new List<XslNode>(), InstructionFlags.None); 1352return LoadInstructions(new List<XslNode>(), flags); 1471List<XslNode> content = new List<XslNode>(); 1606List<XslNode> content = new List<XslNode>(); 1662List<XslNode> content = new List<XslNode>(); 2020List<XslNode> content = new List<XslNode>(); 2072List<XslNode> content = new List<XslNode>(); 2495List<XslNode> content = new List<XslNode>(); 2577List<XslNode> fallbacksArray = new List<XslNode>(); 2666List<QilName> modes = new List<QilName>(list.Length); 2909List<QilName> useCharacterMaps = new List<QilName>();
System\Xml\Xsl\XsltOld\ActionFrame.cs (1)
153List<SortKey> results = new List<SortKey>();
System\Xml\Xsl\XsltOld\Compiler.cs (1)
179_queryStore = new List<TheQuery>();
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
690List<FormatInfo?> tokens = new List<FormatInfo?>();
System\Xml\Xsl\XsltOld\RootAction.cs (1)
99_keyList ??= new List<Key>();
System.Private.Xml.Linq (4)
System\Xml\Linq\XContainer.cs (1)
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 (8)
System\Reflection\Context\CollectionServices.cs (1)
54List<object> list = new List<object>(enumerable);
System\Reflection\Context\Custom\AttributeUtils.cs (2)
33List<object> results = new List<object>(attributes); 73List<object> results = new List<object>(attributes);
System\Reflection\Context\Custom\CustomType.cs (4)
58List<PropertyInfo> results = new List<PropertyInfo>(properties); 102List<PropertyInfo> matchingProperties = new List<PropertyInfo>(); 153List<MethodInfo> results = new List<MethodInfo>(methods); 218List<MethodInfo> matchingMethods = new List<MethodInfo>();
System\Reflection\Context\Projection\ProjectingType.cs (1)
113List<MemberInfo> matchingMembers = new List<MemberInfo>();
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
270_fields = new List<FieldBuilder>(); 273_methodInfos = new List<MethodInfo>();
System.Reflection.Emit (43)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
20private readonly List<int> _stack = new List<int>(); 274var nestings = new List<Type>();
System\Reflection\Emit\EventBuilderImpl.cs (1)
62_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\FieldBuilderImpl.cs (1)
76_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (3)
46_interfaces ??= new List<Type>(); 53_customAttributes ??= new List<CustomAttributeWrapper>(); 64_interfaces ??= new List<Type>(interfaceConstraints.Length);
System\Reflection\Emit\ILGeneratorImpl.cs (8)
32private List<KeyValuePair<object, BlobWriter>> _memberReferences = new(); 33private List<ExceptionBlock> _exceptionStack = new(); // tracks the exception nesting 34private List<ExceptionHandlerInfo> _exceptionBlocks = new(); // keeps all ExceptionHandler blocks 237_currentScope._children ??= new List<Scope>(); 247_currentScope._locals ??= new List<LocalBuilder>(); 837sequencePoints = new List<SequencePoint> { new SequencePoint(_il.Offset, startLine, startColumn, endLine, endColumn) }; 851_currentScope._importNamespaces ??= new List<string>(); 933List<LocalBuilder> locals = new List<LocalBuilder>();
System\Reflection\Emit\MethodBuilderImpl.cs (1)
202_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\ModuleBuilderImpl.cs (4)
25private readonly List<TypeBuilderImpl> _typeDefinitions = new(); 138List<GenericTypeParameterBuilderImpl> genericParams = new(); 1342_customAttributes ??= new List<CustomAttributeWrapper>(); 1394List<TypeBuilderImpl> nestedTypes = new List<TypeBuilderImpl>();
System\Reflection\Emit\ParameterBuilderImpl.cs (1)
63_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\PersistedAssemblyBuilder.cs (1)
196_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\PropertyBuilderImpl.cs (1)
73_customAttributes ??= new List<CustomAttributeWrapper>();
System\Reflection\Emit\TypeBuilderImpl.cs (20)
34internal readonly List<MethodBuilderImpl> _methodDefinitions = new(); 35internal readonly List<FieldBuilderImpl> _fieldDefinitions = new(); 36internal readonly List<ConstructorBuilderImpl> _constructorDefinitions = new(); 38internal readonly List<PropertyBuilderImpl> _propertyDefinitions = new(); 39internal readonly List<EventBuilderImpl> _eventDefinitions = new(); 74_interfaces = new List<Type>(interfaces.Length); 93_interfaces ??= new List<Type>(); 324im = new List<(MethodInfo ifaceMethod, MethodInfo targetMethod)>(); 487_customAttributes ??= new List<CustomAttributeWrapper>(); 734List<ConstructorInfo> constructors = new List<ConstructorInfo>(); 752List<ConstructorInfo> ctors = new(); 777List<MethodInfo> methods = new List<MethodInfo>(); 794List<MethodInfo> methods = new List<MethodInfo>(); 894List<FieldInfo> fields = new List<FieldInfo>(); 912List<FieldInfo> fields = new List<FieldInfo>(_fieldDefinitions.Count); 1003List<PropertyInfo> properties = new List<PropertyInfo>(); 1020List<PropertyInfo> candidates = new List<PropertyInfo>(_propertyDefinitions.Count); 1080List<PropertyInfo> candidates = new List<PropertyInfo>(properties.Length); 1108List<Type> nestedTypes = new List<Type>(); 1126List<Type> nestedTypes = new List<Type>();
System.Reflection.Metadata (50)
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (3)
95_branches = new List<BranchInfo>(); 96_labels = new List<int>(); 247_lazyExceptionHandlers ??= new List<ExceptionHandlerInfo>();
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
540var sorted = new List<KeyValuePair<string, StringHandle>>(strings);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (42)
67private readonly List<ClassLayoutRow> _classLayoutTable = new List<ClassLayoutRow>(); 69private readonly List<ConstantRow> _constantTable = new List<ConstantRow>(); 73private readonly List<CustomAttributeRow> _customAttributeTable = new List<CustomAttributeRow>(); 77private readonly List<DeclSecurityRow> _declSecurityTable = new List<DeclSecurityRow>(); 81private readonly List<EncLogRow> _encLogTable = new List<EncLogRow>(); 82private readonly List<EncMapRow> _encMapTable = new List<EncMapRow>(); 83private readonly List<EventRow> _eventTable = new List<EventRow>(); 84private readonly List<EventMapRow> _eventMapTable = new List<EventMapRow>(); 85private readonly List<ExportedTypeRow> _exportedTypeTable = new List<ExportedTypeRow>(); 86private readonly List<FieldLayoutRow> _fieldLayoutTable = new List<FieldLayoutRow>(); 88private readonly List<FieldMarshalRow> _fieldMarshalTable = new List<FieldMarshalRow>(); 92private readonly List<FieldRvaRow> _fieldRvaTable = new List<FieldRvaRow>(); 93private readonly List<FieldDefRow> _fieldTable = new List<FieldDefRow>(); 94private readonly List<FileTableRow> _fileTable = new List<FileTableRow>(); 95private readonly List<GenericParamConstraintRow> _genericParamConstraintTable = new List<GenericParamConstraintRow>(); 96private readonly List<GenericParamRow> _genericParamTable = new List<GenericParamRow>(); 97private readonly List<ImplMapRow> _implMapTable = new List<ImplMapRow>(); 98private readonly List<InterfaceImplRow> _interfaceImplTable = new List<InterfaceImplRow>(); 99private readonly List<ManifestResourceRow> _manifestResourceTable = new List<ManifestResourceRow>(); 100private readonly List<MemberRefRow> _memberRefTable = new List<MemberRefRow>(); 101private readonly List<MethodImplRow> _methodImplTable = new List<MethodImplRow>(); 103private readonly List<MethodSemanticsRow> _methodSemanticsTable = new List<MethodSemanticsRow>(); 107private readonly List<MethodSpecRow> _methodSpecTable = new List<MethodSpecRow>(); 108private readonly List<MethodRow> _methodDefTable = new List<MethodRow>(); 109private readonly List<ModuleRefRow> _moduleRefTable = new List<ModuleRefRow>(); 110private readonly List<NestedClassRow> _nestedClassTable = new List<NestedClassRow>(); 111private readonly List<ParamRow> _paramTable = new List<ParamRow>(); 112private readonly List<PropertyMapRow> _propertyMapTable = new List<PropertyMapRow>(); 113private readonly List<PropertyRow> _propertyTable = new List<PropertyRow>(); 114private readonly List<TypeDefRow> _typeDefTable = new List<TypeDefRow>(); 115private readonly List<TypeRefRow> _typeRefTable = new List<TypeRefRow>(); 116private readonly List<TypeSpecRow> _typeSpecTable = new List<TypeSpecRow>(); 117private readonly List<AssemblyRefTableRow> _assemblyRefTable = new List<AssemblyRefTableRow>(); 118private readonly List<StandaloneSigRow> _standAloneSigTable = new List<StandaloneSigRow>(); 121private readonly List<DocumentRow> _documentTable = new List<DocumentRow>(); 122private readonly List<MethodDebugInformationRow> _methodDebugInformationTable = new List<MethodDebugInformationRow>(); 123private readonly List<LocalScopeRow> _localScopeTable = new List<LocalScopeRow>(); 124private readonly List<LocalVariableRow> _localVariableTable = new List<LocalVariableRow>(); 125private readonly List<LocalConstantRow> _localConstantTable = new List<LocalConstantRow>(); 126private readonly List<ImportScopeRow> _importScopeTable = new List<ImportScopeRow>(); 127private readonly List<StateMachineMethodRow> _stateMachineMethodTable = new List<StateMachineMethodRow>(); 128private readonly List<CustomDebugInformationRow> _customDebugInformationTable = new List<CustomDebugInformationRow>();
System\Reflection\Metadata\Internal\NamespaceCache.cs (2)
181remaps ??= new List<KeyValuePair<NamespaceDefinitionHandle, NamespaceDataBuilder>>(); 295virtualNamespaces = new List<NamespaceDataBuilder>();
System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
267(nestedNameLengths ??= new()).Add(length);
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (1)
25_entries = new List<Entry>(3);
System.Reflection.MetadataLoadContext (12)
System\Reflection\PathAssemblyResolver.cs (1)
48_fileToPaths.Add(file, paths = new List<string>());
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
82List<Type> list = new List<Type>(ExportedTypes);
System\Reflection\TypeLoading\Assemblies\RoAssembly.GetForwardedTypes.cs (2)
16List<Type> types = new List<Type>(); 47exceptions ??= new List<Exception>();
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (2)
47List<Module> modules = new List<Module>(_loadedModules.Length + 1) 89List<RoModule> modules = new List<RoModule>(_loadedModules.Length + 1);
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (1)
113List<CustomAttributeNamedArgument> cans = new List<CustomAttributeNamedArgument>();
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (1)
68List<MethodInfo> results = new List<MethodInfo>(capacity: count);
System\Reflection\TypeLoading\General\Helpers.cs (1)
60List<T> list = new List<T>(enumeration);
System\Reflection\TypeLoading\Types\RoModifiedFunctionPointerType.cs (1)
53List<Type> builder = new(returnTypeOptionalModifiers.Length + 1);
System\Reflection\TypeLoading\Types\RoModifiedType.cs (2)
61_requiredModifiersBuilder ??= new List<Type>(); 68_optionalModifiersBuilder ??= new List<Type>();
System.Resources.Extensions (1)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
249List<string> typeNames = new List<string>();
System.Resources.Writer (1)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
249List<string> typeNames = new List<string>();
System.Runtime.Caching (3)
System\Runtime\Caching\HostFileChangeMonitor.cs (1)
177List<string> newList = new List<string>(filePaths.Count);
System\Runtime\Caching\MemoryCache.cs (1)
418List<string> keysClone = new List<string>(keys);
System\Runtime\Caching\MemoryCacheEntryChangeMonitor.cs (1)
35_dependencies = new List<MemoryCacheEntry>(_keys.Count);
System.Runtime.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)
61public ICollection<Type> ReferencedCollectionTypes => field ??= new List<Type>(); 66public ICollection<Type> ReferencedTypes => field ??= new List<Type>();
System.Security.Claims (4)
System\Security\Claims\ClaimsIdentity.cs (2)
38private readonly List<Claim> _instanceClaims = new List<Claim>(); 407internal List<List<Claim>> ExternalClaims => _externalClaims ??= new List<List<Claim>>();
System\Security\Claims\ClaimsPrincipal.cs (1)
27private readonly List<ClaimsIdentity> _identities = new List<ClaimsIdentity>();
System\Security\Claims\GenericPrincipal.cs (1)
49List<Claim> roleClaims = new List<Claim>(roles.Length);
System.Security.Cryptography (46)
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\Pkcs7\SignedDataAsn.xml.cs (4)
142var tmpList = new List<System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn>(); 162var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 183var tmpList = new List<ReadOnlyMemory<byte>>(); 202var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.SignerInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
155var 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)
60_contents ??= new List<ContentInfoAsn>(); 104_contents ??= new List<ContentInfoAsn>(); 121_contents ??= new List<ContentInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
107List<ContentInfoAsn> authSafeData = new List<ContentInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
70_bags ??= new List<Pkcs12SafeBag>(); 282List<SafeBagAsn> serializedBags = new List<SafeBagAsn>(); 298return new List<Pkcs12SafeBag>(0); 306List<Pkcs12SafeBag> bags = new List<Pkcs12SafeBag>(serializedBags.Count);
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
15_list = new List<AsnEncodedData>();
System\Security\Cryptography\CryptoConfig.cs (1)
449List<MethodBase> candidates = new List<MethodBase>();
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (1)
119var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
System\Security\Cryptography\X509Certificates\Asn1\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\CertificateRequest.cs (1)
1061List<X509ExtensionAsn> extensionAsns = new List<X509ExtensionAsn>(CertificateExtensions.Count);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
26_revoked = new List<RevokedCertificate>();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
88List<RevokedCertificate> list = new();
System\Security\Cryptography\X509Certificates\OpenSslPkcsFormatReader.cs (1)
203List<ICertificatePal>? readPals = single ? null : new List<ICertificatePal>();
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (6)
265downloadedCerts ??= new List<X509Certificate2>(); 863statusBuilder ??= new List<X509ChainStatus>(); 864overallStatus ??= new List<X509ChainStatus>(); 906List<X509Certificate2> certsToRead = new List<X509Certificate2>(); 935overallStatus ??= new List<X509ChainStatus>(); 947var elementStatus = new List<X509ChainStatus>(overallStatus.Count);
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.cs (1)
203List<byte[]> encodedSets = new List<byte[]>(InitalRdnSize);
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 (2)
24_decoded = new List<GeneralNameAsn>(0); 114List<GeneralNameAsn> decoded = new List<GeneralNameAsn>();
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseMessage.cs (1)
336List<CoseSignature> signatures = new List<CoseSignature>(signaturesLength.GetValueOrDefault());
System.Security.Cryptography.Pkcs (39)
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\Pkcs7\SignedDataAsn.xml.cs (4)
142var tmpList = new List<System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn>(); 162var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 183var tmpList = new List<ReadOnlyMemory<byte>>(); 202var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.SignerInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
155var 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)
60_contents ??= new List<ContentInfoAsn>(); 104_contents ??= new List<ContentInfoAsn>(); 121_contents ??= new List<ContentInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
107List<ContentInfoAsn> authSafeData = new List<ContentInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
70_bags ??= new List<Pkcs12SafeBag>(); 282List<SafeBagAsn> serializedBags = new List<SafeBagAsn>(); 298return new List<Pkcs12SafeBag>(0); 306List<Pkcs12SafeBag> bags = new List<Pkcs12SafeBag>(serializedBags.Count);
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (1)
90var tmpList = new List<System.Security.Cryptography.Asn1.GeneralNameAsn>();
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (2)
125var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.RecipientInfoAsn>(); 145var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (1)
135var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.RecipientEncryptedKeyAsn>();
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (2)
117var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 138var tmpList = new List<ReadOnlyMemory<byte>>();
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (1)
103var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyQualifierInfo>();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (1)
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\SigningCertificateAsn.xml.cs (2)
99var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.EssCertId>(); 118var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyInformation>();
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (2)
99var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.EssCertIdV2>(); 118var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyInformation>();
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (3)
16_recipients = new List<CmsRecipient>(); 21_recipients = new List<CmsRecipient>(1); 30_recipients = new List<CmsRecipient>(certificates.Count);
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
260List<SignerInfo> signerInfos = new List<SignerInfo>();
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\SignedXml.cs (2)
736List<string> safeAlgorithms = new List<string>(); 757List<string> safeAlgorithms = new List<string>();
System.Security.Permissions (1)
System\Security\Permissions\PrincipalPermission.cs (1)
164idroles ??= new List<IDRole>();
System.ServiceModel.Federation (2)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
174List<ClaimType> claimTypes = new List<ClaimType>();
System\ServiceModel\Federation\WsTrustTokenParameters.cs (1)
76List<ClaimType> claimTypes = new List<ClaimType>();
System.ServiceModel.Federation.Tests (1)
WSTrustChannelSecurityTokenProviderTest.cs (1)
27var claims = new Claims("dialect", new List<ClaimType>() { new ClaimType() { Uri = claimUri, IsOptional = false, Value = claimValue } });
System.ServiceModel.NetFramingBase (8)
System\ServiceModel\Channels\ConnectionPool.cs (6)
82itemsToClose = new List<TItem>(); 98endpointKeysToRemove = new List<TKey>(); 235_busyConnections = new List<TItem>(); 332var closeTasks = new List<Task>(itemsToClose.Count); 373List<TItem> itemsToClose = new List<TItem>(); 450itemsToClose = new List<TItem>();
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
46registryEntry = new List<ConnectionPool>();
System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
200List<TItem> itemsToClose = new List<TItem>();
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\NamedPipeTransportBindingElement.cs (1)
14private readonly List<SecurityIdentifier> _allowedUsers = new List<SecurityIdentifier>();
System.ServiceModel.Primitives (117)
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
75IList<Tuple<string, string>> exceptionInfo = new List<Tuple<string, string>>()
Internals\System\Runtime\Fx.cs (1)
250List<Type> types = new List<Type>(typeNames.Length);
Internals\System\Runtime\InputQueue.cs (1)
30_waiterList = new List<IQueueWaiter>();
Internals\System\Runtime\InternalBufferManager.cs (1)
60List<BufferPool> bufferPoolList = new List<BufferPool>();
Internals\System\Xml\XmlMtomWriter.cs (5)
280_binaryDataChunks = new List<MtomBinaryData>(); 298_binaryDataChunks = new List<MtomBinaryData>(); 326_binaryDataChunks = new List<MtomBinaryData>(); 428_mimeParts = new List<MimePart>(); 471_mimeParts = new List<MimePart>();
System\IdentityModel\Claims\ClaimSet.cs (1)
26List<Claim> claims = new List<Claim>(2);
System\IdentityModel\Claims\X509CertificateClaimSet.cs (3)
177List<Claim> claims = new List<Claim>(); 339List<string> dnsEntries = new List<string>(); 386List<Claim> claims = new List<Claim>(2);
System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
66_claimSets = new List<ClaimSet>();
System\IdentityModel\Policy\UnconditionalPolicy.cs (2)
160List<ClaimSet> issuances = new List<ClaimSet>(1); 217identities = new List<IIdentity>(1);
System\IdentityModel\SecurityUtils.cs (4)
129List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 264List<IAuthorizationPolicy> ret = new List<IAuthorizationPolicy>(authorizationPolicies.Count); 320public static ReadOnlyCollection<T> Instance = new ReadOnlyCollection<T>(new List<T>()); 335List<IIdentity> identities = new List<IIdentity>();
System\IdentityModel\Tokens\AggregateTokenResolver.cs (1)
18private List<SecurityTokenResolver> _tokenResolvers = new List<SecurityTokenResolver>();
System\IdentityModel\Tokens\KeyInfoSerializer.cs (4)
52_serializerEntries = new List<SerializerEntries>(); 79_tokenEntries = new List<TokenEntry>(); 80_keyIdentifierEntries = new List<KeyIdentifierEntry>(); 81_keyIdentifierClauseEntries = new List<KeyIdentifierClauseEntry>();
System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (2)
21_clauses = new List<SecurityKeyIdentifierClause>(InitialSize); 30_clauses = new List<SecurityKeyIdentifierClause>(clauses.Length);
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
30List<StrEntry> strEntries = new List<StrEntry>();
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
34List<StrEntry> strEntries = new List<StrEntry>();
System\IdentityModel\Tokens\X509SecurityToken.cs (1)
75List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Channels\AddressHeaderCollection.cs (4)
16: base(new List<AddressHeader>()) 21: base(new List<AddressHeader>(addressHeaders)) 87List<AddressHeader> results = new List<AddressHeader>(); 203List<AddressHeader> headerList = new List<AddressHeader>();
System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
917_newStrings = new List<XmlDictionaryString>(); 947_bytes = new List<byte>();
System\ServiceModel\Channels\MessageFault.cs (1)
727List<FaultReasonText> translations = new List<FaultReasonText>();
System\ServiceModel\Channels\MessageHeaders.cs (1)
870List<MessageHeaderInfo> understoodHeaders = new List<MessageHeaderInfo>();
System\ServiceModel\Channels\MessageProperties.cs (3)
199List<string> keys = new List<string>(); 268List<object> values = new List<object>(); 924List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(_propertyCount);
System\ServiceModel\Channels\RequestChannel.cs (1)
15private List<IRequestBase> _outstandingRequests = new List<IRequestBase>();
System\ServiceModel\Channels\ServiceChannelFactory.cs (2)
26_channelsList = new List<IChannel>(); 267objectList = new List<ICommunicationObject>();
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
55private readonly List<long> _retransmissionWindow = new List<long>();
System\ServiceModel\Description\ServiceReflector.cs (5)
413List<Type> types = new List<Type>(); 465List<Type> types = new List<Type>(); 498List<object> attrTypeAttributes = new List<object>(); 637List<Type> types = new List<Type>(GetInheritedContractTypes(interfaceType)); 666List<MethodInfo> methods = new List<MethodInfo>();
System\ServiceModel\Description\TypeLoader.cs (5)
391List<Type> knownTypes = new List<Type>(); 779List<Type> inheritedCallbackTypes = new List<Type>(); 1323List<MemberInfo> contractMembers = new List<MemberInfo>(); 1390List<MessagePartDescription> bodyPartDescriptionList = new List<MessagePartDescription>(); 1391List<MessageHeaderDescription> headerPartDescriptionList = new List<MessageHeaderDescription>();
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
845private List<XmlMembersMapping> _mappings = new List<XmlMembersMapping>(); 891List<XmlMembersMapping> uniqueMappings = new List<XmlMembersMapping>();
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
404List<ICommunicationObject> list = new List<ICommunicationObject>();
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
88_knownTypes = new List<Type>();
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
146_requests = new List<IDuplexRequest>(); 162_timedOutRequests = new List<ICorrelatorKey>();
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
25List<Attr> attrSet = new List<Attr>();
System\ServiceModel\Dispatcher\EndpointDispatcherTable.cs (1)
31_cachedEndpoints = new List<EndpointDispatcher>(optimizationThreshold);
System\ServiceModel\Dispatcher\FaultFormatter.cs (3)
23List<FaultContractInfo> faultContractInfoList = new List<FaultContractInfo>(); 38faultContractInfoList = new List<FaultContractInfo>(faultContractInfoCollection); 109faultInfos = new List<FaultContractInfo>();
System\ServiceModel\Dispatcher\InvokerUtil.cs (5)
55var outputParamPositions = new List<int>(); 118List<ParameterExpression> variables = new(); 122List<(Type ParameterType, ParameterExpression OutputExpression)> outputVariables = new(); 123List<ParameterExpression> invocationParameters = new(); 124List<Expression> expressions = new();
System\ServiceModel\Dispatcher\XmlSerializerFaultFormatter.cs (1)
70faultInfos = new List<XmlSerializerOperationBehavior.Reflector.XmlSerializerFaultContractInfo>();
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
583_attributes[headerDescription.Index] = new List<MessageHeader<object>>();
System\ServiceModel\DXD.cs (4)
121public List<XmlDictionaryString> SecureConversationDictionaryStrings = new List<XmlDictionaryString>(); 186public List<XmlDictionaryString> SecurityAlgorithmDictionaryStrings = new List<XmlDictionaryString>(); 215public List<XmlDictionaryString> Feb2005DictionaryStrings = new List<XmlDictionaryString>(); 216public List<XmlDictionaryString> Dec2005DictionaryString = new List<XmlDictionaryString>();
System\ServiceModel\EndpointAddress.cs (1)
702List<AddressHeader> headerList = new List<AddressHeader>();
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (1)
89_incomingSessionTokens = new List<SecurityToken>(tokens);
System\ServiceModel\Security\MessagePartSpecification.cs (4)
25_headerTypes = new List<XmlQualifiedName>(); 111_headerTypes = new List<XmlQualifiedName>(headerTypes.Count); 131List<XmlQualifiedName> noDuplicates = new List<XmlQualifiedName>(_headerTypes.Count); 183_headerTypes = new List<XmlQualifiedName>(headerTypes.Length);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (2)
393_allowedAuthenticators = new List<SecurityTokenAuthenticator>(); 406_supportingTokenTrackers = new List<TokenTracker>(_supportingTokenAuthenticators.Count);
System\ServiceModel\Security\SecurityProtocol.cs (1)
60s_emptyTokenProviders = new ReadOnlyCollection<SupportingTokenProviderSpecification>(new List<SupportingTokenProviderSpecification>());
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
118_channelSupportingTokenAuthenticatorSpecification = new Collection<SupportingTokenAuthenticatorSpecification>(new List<SupportingTokenAuthenticatorSpecification>(factory._channelSupportingTokenAuthenticatorSpecification));
System\ServiceModel\Security\SecuritySessionClientSettings.cs (4)
404List<SecurityToken> incomingSessionTokens = new List<SecurityToken>(1); 813List<RequestSecurityTokenResponse> rstrList = new List<RequestSecurityTokenResponse>(); 950List<SecurityToken> incomingTokens = new List<SecurityToken>(1); 992List<SecurityToken> incomingTokens = new List<SecurityToken>(2);
System\ServiceModel\Security\SecurityUtils.cs (4)
437List<Claim> claims = new List<Claim>(2); 441List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 821List<SecurityKey> temp = new List<SecurityKey>(1); 1086public static ReadOnlyCollection<T> Instance = new ReadOnlyCollection<T>(new List<T>());
System\ServiceModel\Security\SendSecurityHeader.cs (1)
228list = new List<SecurityTokenParameters>();
System\ServiceModel\Security\SendSecurityHeaderElementContainer.cs (1)
38list = new List<T>();
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
207List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
162List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\WSKeyInfoSerializer.cs (1)
20List<SerializerEntries> serializerEntries = new List<SerializerEntries>();
System\ServiceModel\Security\WSSecureConversationDec2005.cs (1)
33_knownClaimTypes = new List<Type>();
System\ServiceModel\Security\WSSecureConversationFeb2005.cs (1)
26_knownClaimTypes = new List<Type>();
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (3)
25private readonly List<TokenEntry> _tokenEntries = new List<TokenEntry>(); 93_serializerEntries = new List<SerializerEntries>(); 137_tokenEntries = new List<TokenEntry>();
System\ServiceModel\Security\WSTrust.cs (2)
170_entropyAuthenticators = new List<SecurityTokenAuthenticator>(2); 396List<RequestSecurityTokenResponse> rstrCollection = new List<RequestSecurityTokenResponse>(2);
System\ServiceModel\SynchronizedCollection.cs (4)
18Items = new List<T>(); 24Items = new List<T>(); 35Items = new List<T>(list); 46Items = new List<T>(list.Length);
System\ServiceModel\SynchronizedReadOnlyCollection.cs (5)
17Items = new List<T>(); 23Items = new List<T>(); 34Items = new List<T>(list); 45Items = new List<T>(list.Length); 63Items = new List<T>(list);
System\ServiceModel\XmlBuffer.cs (1)
61_sections = new List<Section>(1);
System.ServiceModel.Primitives.Tests (26)
Channels\CommunicationObjectTest.cs (9)
20List<string> openMethodsCalled = new List<string>(); 21List<string> closeMethodsCalled = new List<string>(); 51List<string> openMethodsCalled = new List<string>(); 52List<string> closeMethodsCalled = new List<string>(); 86List<string> closeMethodsCalled = new List<string>(); 112List<string> openEventsFired = new List<string>(); 113List<string> closeEventsFired = new List<string>(); 142List<string> openEventsFired = new List<string>(); 143List<string> closeEventsFired = new List<string>();
Channels\CustomChannelTest.cs (12)
24List<string> channelOpenMethodsCalled = new List<string>(); 25List<string> channelCloseMethodsCalled = new List<string>(); 26List<string> factoryOpenMethodsCalled = new List<string>(); 27List<string> factoryCloseMethodsCalled = new List<string>(); 114List<string> channelOpenMethodsCalled = new List<string>(); 115List<string> channelCloseMethodsCalled = new List<string>(); 116List<string> factoryOpenMethodsCalled = new List<string>(); 117List<string> factoryCloseMethodsCalled = new List<string>(); 316List<string> channelOpenMethodsCalled = new List<string>(); 317List<string> channelCloseMethodsCalled = new List<string>(); 318List<string> factoryOpenMethodsCalled = new List<string>(); 319List<string> factoryCloseMethodsCalled = new List<string>();
Description\OperationBehaviorTest.cs (1)
101DataContractSerializer dcs = (DataContractSerializer)behavior.CreateSerializer(typeof(SurrogateTestType), nameof(SurrogateTestType), "ns", new List<Type>());
IdentityModel\SecurityTokenSerializerTest.cs (1)
36SecurityToken token = sts.ReadToken(xmlReader, SecurityTokenResolver.CreateDefaultSecurityTokenResolver(new ReadOnlyCollection<SecurityToken>(new List<SecurityToken>() { dummyToken}), false));
ServiceModel\MessageContractTest.4.4.0.cs (1)
171values = new List<string>();
ServiceModel\SynchronizedCollection.cs (2)
30SynchronizedCollection<int> coll2 = new SynchronizedCollection<int>(new object(), new List<int>(coll)); 88new SynchronizedCollection<int>(null, new List<int>());
System.ServiceModel.Syndication (2)
System\ServiceModel\Syndication\ResourceCollectionInfo.cs (1)
122s_singleEmptyAccept ??= new List<string>(1) { string.Empty }.AsReadOnly();
System\ServiceModel\XmlBuffer.cs (1)
50_sections = new List<Section>(1);
System.Text.Json (29)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (2)
113var nodes = new List<T> { entryNode }; // the integer-to-node mapping 115var adjacency = new List<bool[]?>(); // the growable adjacency matrix
src\libraries\System.Text.Json\Common\ReflectionExtensions.cs (1)
330var results = new List<Type>();
System\Text\Json\Nodes\JsonArray.cs (5)
87_list = new List<JsonNode?>(list.Count) 151var list = new List<JsonNode?>(items); 163List<JsonNode?> list = new(items.Length); 305list = new List<JsonNode?>(jElement.GetArrayLength()); 316list = new();
System\Text\Json\Schema\JsonSchemaExporter.cs (2)
92List<JsonDerivedType> derivedTypes = new(polyOptions.DerivedTypes); 103List<JsonSchema>? anyOf = new(derivedTypes.Count);
System\Text\Json\Serialization\ConfigurationList.cs (2)
21_list = source is null ? new List<TItem>() : new List<TItem>(source);
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (1)
24state.Current.ReturnValue = new List<TElement>();
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (1)
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)
35state.Current.ReturnValue = new List<Tuple<TKey, TValue>>();
System\Text\Json\Serialization\Converters\FSharp\FSharpSetConverter.cs (1)
31state.Current.ReturnValue = new List<TElement>();
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (1)
173CreateObject = static () => new List<T?>(),
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
1076List<JsonPropertyInfo> propertyCache = new(properties.Count); 1190List<JsonParameterInfo> parameterCache = new(ParameterCount);
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); 311converters = new List<TypeRef>(); 924List<PropertyGenerationSpec> properties = new(); 1034public readonly List<int> Properties = new(); 1557(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)
113var nodes = new List<T> { entryNode }; // the integer-to-node mapping 115var adjacency = new List<bool[]?>(); // the growable adjacency matrix
System.Text.RegularExpressions (27)
System\Text\RegularExpressions\MatchCollection.cs (1)
36_matches = new List<Match>();
System\Text\RegularExpressions\Regex.Cache.cs (1)
55private static readonly List<Node> s_cacheList = new List<Node>(DefaultMaxCacheSize);
System\Text\RegularExpressions\Regex.Split.cs (1)
89var state = (results: new List<string>(), prevat: 0, input, count);
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (1)
39_assembly = new PersistedAssemblyBuilder(an, typeof(object).Assembly, attribs is not null ? new List<CustomAttributeBuilder>(attribs) : null) ??
System\Text\RegularExpressions\RegexCharClass.cs (3)
422_rangelist ??= new List<(char First, char Last)>(6); 1636ranges = new List<(char First, char Last)>(setLength); 1995var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
System\Text\RegularExpressions\RegexCompiler.cs (1)
6197List<object> list = _searchValues ??= new();
System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
150FixedDistanceSets = new List<FixedDistanceSet>()
System\Text\RegularExpressions\RegexNode.cs (2)
3039Children = new List<RegexNode>() { currentChild, newChild }; 3159var 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 (13)
RegexGenerator.Emitter.cs (2)
611var excludedAsciiChars = new List<char>(); 670var lines = new List<string>();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (3)
422_rangelist ??= new List<(char First, char Last)>(6); 1636ranges = new List<(char First, char Last)>(setLength); 1995var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
150FixedDistanceSets = new List<FixedDistanceSet>()
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (2)
3039Children = new List<RegexNode>() { currentChild, newChild }; 3159var 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)
src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
System.Threading.RateLimiting (7)
System\Threading\RateLimiting\CombinedRateLimitLease.cs (1)
85exceptions ??= 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 (13)
Base\DataflowBlock.cs (1)
2427_tempSendAsyncTaskList ??= new List<Task<bool>>();
Blocks\BatchBlock.cs (2)
293ReservedSourcesTemp = new List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>>(batchSize); 1101exceptions ??= new List<Exception>(1);
Blocks\BatchedJoinBlock.cs (2)
534private List<T> _messages = new List<T>(); 559_messages = new List<T>();
Blocks\TransformManyBlock.netstandard21.cs (1)
156itemCopy = new List<TOutput>();
Blocks\WriteOnceBlock.cs (1)
247exceptions = new List<Exception>();
Internal\Common.cs (1)
318list ??= new List<Exception>();
Internal\QueuedMap.cs (2)
58_storage = new List<KeyValuePair<int, T>>(); 65_storage = new List<KeyValuePair<int, T>>(capacity);
Internal\SourceCore.cs (1)
337var tmpList = new List<TOutput>();
Internal\SpscTargetCore.cs (1)
312lock (LazyInitializer.EnsureInitialized(ref _exceptions, static () => new List<Exception>()))
src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.ForEachAsync.cs (1)
619(_exceptions ??= new List<Exception>()).Add(e);
System.Windows.Controls.Ribbon (26)
Microsoft\Windows\Automation\Peers\RibbonApplicationMenuAutomationPeer.cs (2)
56children = new List<AutomationPeer>(); 66children = new List<AutomationPeer>();
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (1)
83List<AutomationPeer> children = new List<AutomationPeer>();
Microsoft\Windows\Automation\Peers\RibbonComboBoxAutomationPeer.cs (1)
66children = new List<AutomationPeer>(1);
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (2)
128children = new List<AutomationPeer>(1); 165List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>();
Microsoft\Windows\Automation\Peers\RibbonGroupAutomationPeer.cs (1)
43children = new List<AutomationPeer>(1);
Microsoft\Windows\Automation\Peers\RibbonMenuButtonAutomationPeer.cs (1)
56children = new List<AutomationPeer>(1);
Microsoft\Windows\Automation\Peers\RibbonQuickAccessToolBarAutomationPeer.cs (1)
48children = new List<AutomationPeer>();
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (1)
48children = new List<AutomationPeer>(1);
Microsoft\Windows\Controls\KeyTipService.cs (5)
892activeKeyTipElements = new List<DependencyObject>(); 1531current._cachedKeyTipControls = new List<KeyTipControl>(); 1621handlerList = new List<WeakReference>(1); 1730private List<AdornerLayer> _placementProcessingAdornerLayers = new List<AdornerLayer>(); 1740private List<DependencyObject> _currentActiveKeyTipElements = new List<DependencyObject>(); // List of elements whose keytips are active.
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (3)
197List<int> starChildIndices = new List<int>(); 408list = new List<T>(); 464private List<StarLayoutInfo> _starLayoutCombinations = new List<StarLayoutInfo>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
368List<StarLayoutInfo> starInfoList = new List<StarLayoutInfo>(2); 369List<IProvideStarLayoutInfo> starLayoutInfoProviders = new List<IProvideStarLayoutInfo>(2);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
155List<IProvideStarLayoutInfoBase> InvalidateRegisteredLayoutProvidersList = new List<IProvideStarLayoutInfoBase>(); ;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
128_generatedChildren = new List<UIElement>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
487List<double> elementSizes = new List<double>(); 540List<double> desiredPaddings = new List<double>(); 682contextualTabHeaders[contextualTabGroupHeader] = new List<RibbonTabHeaderAndIndex>();
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
708_charsEntered = new List<string>(10);
System.Windows.Forms (30)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
112List<AssemblyName> assemblyList = new(_names.Length);
System\Windows\Forms\Application.ThreadWindows.cs (1)
23_windows = new List<HWND>(16);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
204newAttributes = new(AttributeArray) 221newAttributes = new(AttributeArray)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
104List<nint> handles = new((int)count);
System\Windows\Forms\Control.cs (2)
5502List<ControlTabOrderHolder> holders = new(Controls.Count); 12863List<Rectangle> neighboringControlsRectangles = new(4);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
936List<DataGridViewColumn> cols = new(_props.Count);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
911autoFillColumns ??= new(Columns.Count);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (2)
193List<DataGridViewColumn> initialColumns = new(dataGridViewColumns.Length); 194List<DataGridViewColumn> sortedColumns = new(dataGridViewColumns.Length);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
39private readonly List<Link> _links = new(2); 629List<CharacterRange> ranges = new(Links.Count + 1);
System\Windows\Forms\Controls\ListView\ListView.cs (4)
461_savedCheckedItems = new List<ListViewItem>(CheckedItems.Count); 506_savedCheckedItems = new List<ListViewItem>(CheckedItems.Count); 2365Properties.AddValue(s_propDelayedUpdateItems, new List<ListViewItem>()); 4727_savedSelectedItems = new List<ListViewItem>(lviArr.Length);
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
117List<ListViewGroup?> list = new();
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
187_subItems = new List<ListViewSubItem>(items.Length);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
3853List<ToolStripItem> buttonList = fullRebuild ? new() : new(_toolStrip.Items.OfType<ToolStripItem>());
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
161internal List<ToolStripDropDown> ActiveDropDowns { get; } = new(1);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3556List<Rectangle> neighbors = new(3);
System\Windows\Forms\DataBinding\BindingSource.cs (1)
81_innerList = new List<object>();
System\Windows\Forms\Input\KeysConverter.cs (1)
37List<string> localizedOrder = new(34);
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
18private ArrangedElementCollection(int size) => InnerList = new List<IArrangedElement>(size);
System\Windows\Forms\Layout\TableLayout.cs (2)
1394List<LayoutInfo> childrenInfo = new(children.Count); 1455List<LayoutInfo> layoutInfos = new(container.Children.Count);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (1)
497List<ControlInformation> controlsInfo = new(Owner!.Children.Count);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
88List<ControlInformation> listOfControlInfo = new(_controlsInfo.Count);
System.Windows.Forms.Design (32)
System\ComponentModel\Design\DesignerHost.cs (3)
1065errorCollection = new List<object>() 1136List<IComponent> selectedComponents = new(_savedSelection.Count); 1170List<string> list = new(ss.SelectionCount);
System\ComponentModel\Design\EventBindingService.cs (1)
176List<PropertyDescriptor> props = new(events.Count);
System\ComponentModel\Design\ExtenderProviderService.cs (1)
32_providers ??= new(4);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
81List<Attribute> attributes = new(AttributeArray!) 99List<Attribute> attributes = new(AttributeArray!)
System\ComponentModel\Design\ReferenceService.cs (2)
84_references = new(container.Components.Count); 287List<object> results = new(_references.Count);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (2)
588defaultPropList ??= new(data.Members.Count); 628defaultPropList ??= new(data.Members.Count);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
101List<MemberAttributes> list = new(values.Count);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
566List<CodeExpression> arrayList = new(valuesToSerialize.Count);
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
472List<IComponent> list = new(_lastSelection.Count);
System\Drawing\Design\ToolboxItem.cs (1)
709List<string> propertyNames = new(Properties.Count);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
160List<SnapLine> lines = new(2);
System\Windows\Forms\Design\CommandSet.cs (2)
458List<IComponent> list = new(components.Length); 3158List<string?> names = new(objects.Count);
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
34suspendedComponents = new(container.Components.Count);
System\Windows\Forms\Design\ControlCommandSet.cs (1)
461List<SnapLine> lines = new(2);
System\Windows\Forms\Design\ControlDesigner.cs (1)
347List<SnapLine> snapLines = new(8);
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
622columnsToBeAdded = new List<DataGridViewColumn>(backEndProps!.Count);
System\Windows\Forms\Design\DesignerFrame.cs (1)
318List<ThemedScrollbarWindow> windows = new(Controls.Count);
System\Windows\Forms\Design\DesignerUtils.cs (2)
708List<Type> final = new(types.Count); 765List<IComponent> newObjects = new(objects.Count);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
806_suspendedComponents = new(container.Components.Count + 1);
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
194snapLines = new List<SnapLine>(4);
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (2)
97selectedComponents = new List<object>(components); 249List<object> topComponents = new(_components.Length);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
301=> AddPaddingSnapLinesCommon(snapLines ??= new List<SnapLine>(4)); 340snapLines = new List<SnapLine>(4);
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
260List<Type> creatableTypes = new(itemTypes.Count);
System.Windows.Forms.Design.Tests (17)
System\ComponentModel\Design\CollectionFormTests.cs (6)
90EditValue = new List<int> { 1, 2 }, 201EditValue = new List<int> { 1, 2 }, 260EditValue = new List<int> { 1, 2 }, 319EditValue = new List<int> { 1, 2 }, 380EditValue = new List<int> { 1, 2 }, 435EditValue = new List<int> { 1, 2 },
System\Windows\Forms\Design\DesignerUtilsTests.cs (2)
465ICollection types = new List<Type> 477result.Should().BeEquivalentTo(new List<Type> { typeof(int), typeof(string) });
System\Windows\Forms\Design\EditorServiceContextTests.cs (4)
46List<string> oldValue = new() { "Old" }; 47List<string> newValue = new() { "New" }; 74List<string> list = new() { "Same" }; 187public List<string> Items { get; set; } = new();
System\Windows\Forms\Design\ListControlStringCollectionEditorTests.cs (1)
57using ListBox listControl = new() { DataSource = new List<string> { "item1", "item2", "item3" } };
System\Windows\Forms\Design\MaskDesignerDialogTests.cs (2)
48List<MaskDescriptor> descriptors = new(); 76List<Type> types = new(){ descriptorType };
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (1)
268List<Control> controls = new();
System\Windows\Forms\Design\TabOrderTests.cs (1)
124List<Control> tabControls = new() { ControlMock.Object };
System.Windows.Forms.Primitives.Tests (2)
System\Windows\Forms\SinglyLinkedListTests.cs (2)
177List<T> list = new(linkedList.Count); 190List<T> list = new(linkedList.Count);
System.Windows.Forms.Tests (67)
System\Resources\ResxDataNodeTests.cs (2)
91new List<string> { "Jack", "Queen", "King" }, 92new List<int> { 4, 3, 2, 1 },
System\Windows\Forms\BindingSourceTests.cs (1)
362.Returns(new List<int>().GetEnumerator());
System\Windows\Forms\ComboBoxTests.cs (1)
621yield return new object[] { new List<int>() };
System\Windows\Forms\DataGridViewComboBoxCellTests.cs (2)
61_dataGridViewComboBoxCell.DataSource = new List<string> { "a" }; 153_dataGridViewComboBoxCell.DataSource = new List<string> { "a", "b" };
System\Windows\Forms\DataGridViewComboBoxColumnTests.cs (1)
327var actions = new List<Action>
System\Windows\Forms\ListBindingHelperTests.cs (13)
50yield return new object[] { new ListDataClass { ListProperty = [] }, "ListProperty", new List<DataClass>() }; 66BindingSource validSource = new(new List<CustomCurrencyManagerProvider> { new() { Property = 1 } }, null); 127yield return new object[] { new List<int> { 1 }, typeof(int) }; 249yield return new object[] { new List<DataClass>(), new string[] { "Property" } }; 252yield return new object[] { new List<ICustomTypeDescriptor>(), Array.Empty<string>() }; 367yield return new object[] { new List<EnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 375yield return new object[] { new List<NonEnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() }; 386yield return new object[] { new List<ITypedListDataClass> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 387yield return new object[] { new List<ITypedListDataClass> { typedListDataClass }, TypeDescriptor.GetProperties(typeof(ITypedListDataClass)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 399yield return new object[] { new List<ITypedListParent> { new() }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "OtherProperty" } }; 400yield return new object[] { new List<ITypedListParent> { typedListParent }, TypeDescriptor.GetProperties(typeof(ITypedListParent)).Cast<PropertyDescriptor>().ToArray(), new string[] { "Property" } }; 483yield return new object[] { new List<int>(), null, "Int32" }; 485yield return new object[] { new List<object>(), null, "List`1" };
System\Windows\Forms\ListBoxTests.cs (1)
785yield return new object[] { new List<int>() };
System\Windows\Forms\ListControlTests.cs (16)
414control.DataSource = new List<DataClass>(); 441control.DataSource = new List<DataClass>(); 542control.DataSource = new List<DataClass>(); 552yield return new object[] { new List<int>() }; 589DataSource = new List<int>() 899DataSource = new List<int>() 1942yield return new object[] { new List<DataClass>(), "selected" }; 1943yield return new object[] { new List<DataClass> { new() { Value = "NoSuchValue" } }, string.Empty }; 1944yield return new object[] { new List<DataClass> { new() { Value = "NoSuchValue" } }, "selected" }; 1945yield return new object[] { new List<DataClass> { new() { Value = "NoSuchValue" } }, "nosuchvalue" }; 2013control.DataSource = new List<int>(); 2480DataSource = new List<CustomTypeConverterDataClass> { item }, 2497DataSource = new List<CustomTypeConverterDataClass> { item }, 2513DataSource = new List<CustomTypeConverterDataClass> { item }, 2530DataSource = new List<NonCriticalThrowingTypeConverterDataClass> { item }, 2547DataSource = new List<CriticalThrowingTypeConverterDataClass> { item },
System\Windows\Forms\ScrollBarTests.cs (30)
2231yield return new object[] { RightToLeft.No, 10, -119, new List<ScrollEventArgs>(), 10 }; 2232yield return new object[] { RightToLeft.No, 10, 0, new List<ScrollEventArgs>(), 10 }; 2233yield return new object[] { RightToLeft.No, 10, 119, new List<ScrollEventArgs>(), 10 }; 2234yield return new object[] { RightToLeft.Yes, 10, -119, new List<ScrollEventArgs>(), 10 }; 2235yield return new object[] { RightToLeft.Yes, 10, 0, new List<ScrollEventArgs>(), 10 }; 2236yield return new object[] { RightToLeft.Yes, 10, 119, new List<ScrollEventArgs>(), 10 }; 2242new List<ScrollEventArgs> 2251new List<ScrollEventArgs> 2260new List<ScrollEventArgs> 2270new List<ScrollEventArgs> 2279new List<ScrollEventArgs> 2289new List<ScrollEventArgs> 2300new List<ScrollEventArgs> 2309new List<ScrollEventArgs> 2318new List<ScrollEventArgs> 2328new List<ScrollEventArgs> 2337new List<ScrollEventArgs> 2347new List<ScrollEventArgs> 2359new List<ScrollEventArgs> 2368new List<ScrollEventArgs> 2377new List<ScrollEventArgs> 2387new List<ScrollEventArgs> 2396new List<ScrollEventArgs> 2405new List<ScrollEventArgs> 2416new List<ScrollEventArgs> 2425new List<ScrollEventArgs> 2434new List<ScrollEventArgs> 2444new List<ScrollEventArgs> 2453new List<ScrollEventArgs> 2462new List<ScrollEventArgs>
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenRecordService.cs (1)
242List<(TimeSpan elapsed, Bitmap image, Size offset)> resultFrames = new(frames.Length);
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
319addedManipulatorList = new List<ManipulatorState>(20);
System.Xaml (87)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
188keysToRemove = 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)
24public IList<Attribute> Attributes => _attributes ??= new List<Attribute>();
System\Xaml\Context\NameFixupGraph.cs (5)
266List<string> names = new List<string>(_dependenciesByName.Keys); 296List<object> parentObjs = new List<object>(_dependenciesByParentObject.Keys); 350List<NameFixupToken> markupExtensionTokens = new List<NameFixupToken>(); 366List<NameFixupToken> dependencies = new List<NameFixupToken>(); 405List<NameFixupToken> dependencies = new List<NameFixupToken>();
System\Xaml\Context\NameFixupToken.cs (2)
107_names = new List<string>(); 108_nameScopeDictionaryList = new List<XAML3.INameScopeDictionary>();
System\Xaml\Context\ObjectWriterContext.cs (7)
321List<XamlType> ceilingTypes = ceilingTypesEnumerable is not null ? new List<XamlType>(ceilingTypesEnumerable) : null; 323List<AmbientPropertyValue> retList = new List<AmbientPropertyValue>(); 436List<object> retList = new List<object>(); 990List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>(); 1016_nameScopeInitializationCompleteSubscribers = new List<NameScopeInitializationCompleteSubscriber>(); 1049private List<XAML3.INameScopeDictionary> _nameScopeDictionaryList = new List<XAML3.INameScopeDictionary>(); 1129List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>();
System\Xaml\Context\XamlCommonFrame.cs (1)
79List<NamespaceDeclaration> _namespaceDeclarations = new List<NamespaceDeclaration>();
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
637_context.CurrentCollection = new List<PositionalParameterDescriptor>(); 1953pendingCollection = new List<PendingCollectionAdd>(); 2264List<string> names = new List<string>(); 2315unresolvedRefs = new List<NameFixupToken>();
System\Xaml\MS\Impl\XmlNsInfo.cs (3)
155IList<XmlNsDefinition> result = new List<XmlNsDefinition>(); 220xmlNamespaceList = new List<string>(); 246var result = new List<AssemblyName>();
System\Xaml\NameScope.cs (2)
229var list = new List<string>(_nameMap.Keys.Count); 248var list = new List<object>(_nameMap.Values.Count);
System\Xaml\Parser\GenericTypeNameParser.cs (1)
335_typeArgs = new List<XamlTypeName>();
System\Xaml\Parser\NamespacePrefixLookup.cs (1)
16newNamespaces = _newNamespaces = new List<NamespaceDeclaration>();
System\Xaml\Parser\NodeStreamSorter.cs (2)
31private List<SeenCtorDirectiveFlags> _seenStack = new List<SeenCtorDirectiveFlags>(); 418_moveList = new List<int>();
System\Xaml\Parser\XamlPullParser.cs (2)
484savedPrefixDefinitions = new List<XamlNode>(); 695_savedPrefixDefinitions = new List<XamlNode>();
System\Xaml\Parser\XamlScanner.cs (5)
559List<XamlAttribute> list = new List<XamlAttribute>(); 672ctorDirectivesList = new List<XamlAttribute>(); 687otherDirectivesList = new List<XamlAttribute>(); 696otherPropertiesList = new List<XamlAttribute>(); 704_attributes = new List<XamlAttribute>();
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
355result = new List<object>();
System\Xaml\Schema\Reflector.cs (4)
308List<T> result = new List<T>(); 336List<CustomAttributeData> cads = new List<CustomAttributeData>(); 343List<T> types = new List<T>(); 424IList<CustomAttributeData> attrDataList = new List<CustomAttributeData>();
System\Xaml\Schema\TypeReflector.cs (10)
472knownMembers = new List<XamlMember>(propList.Length + eventList.Length); 536List<PropertyInfo> filteredResult = new List<PropertyInfo>(result.Count); 590List<EventInfo> filteredResult = new List<EventInfo>(result.Count); 645new List<KeyValuePair<MethodInfo, MethodInfo>>(); 818preferredAccessors = new List<MethodInfo>(); 827otherAccessors = new List<MethodInfo>(); 842preferredAccessors = new List<MethodInfo>(); 903list = new List<MethodInfo>(); 989List<XamlMember> result = new List<XamlMember>(); 1196listOfNulls = new List<K>();
System\Xaml\Schema\XamlDirective.cs (1)
39List<string> nsList = new List<string>(xamlNamespaces);
System\Xaml\Schema\XamlNamespace.cs (1)
206List<XamlType> xamlTypeList = new List<XamlType>();
System\Xaml\XamlMember.cs (1)
578List<XamlMember> result = new List<XamlMember>();
System\Xaml\XamlNodeList.cs (2)
37_nodeList = new List<XamlNode>(); 41_nodeList = new List<XamlNode>(size);
System\Xaml\XamlObjectReader.cs (10)
251private List<MarkupInfo> children = new List<MarkupInfo>(); 991private List<MarkupInfo> properties = new List<MarkupInfo>(); 1123removedProperties = new List<MarkupInfo>(propertiesWithDO); 1622var ctorArgProps = new List<XamlMember>(); 1649IList constructorArguments = new List<object>(constructorParameters.Length); 2329List<XamlMember> propertyList = new List<XamlMember>(); 2546List<KeyValuePair<string, string>> namespaceMapList = new List<KeyValuePair<string, string>>(); 2878private List<MarkupInfo> nodes = new List<MarkupInfo>(); 3106keyEntry.Predecessors = new List<int>(); 3213private List<Entry> _entries = new List<Entry>();
System\Xaml\XamlSchemaContext.cs (5)
57List<Assembly> listOfAssemblies = new List<Assembly>(referenceAssemblies); 113result = new List<string>(); 934List<string> combinedList = new List<string>(); 1047List<string> list = new List<string>(); 1086_unexaminedAssemblies = new List<Assembly>(ReferenceAssemblies);
System\Xaml\XamlType.cs (5)
671ctorArray = new List<ConstructorInfo>(ctors).ToArray(); 728List<XamlType> result = new List<XamlType>(contentWrappers.Count + 1); 828contentWrappers = new List<XamlType>(wrapperTypes.Count); 1591return new List<XamlType>(typeArguments).AsReadOnly(); 1663List<XamlMember> result = new List<XamlMember>(excludedMembers.Count);
System\Xaml\XamlTypeName.cs (2)
34List<XamlTypeName> typeArgList = new List<XamlTypeName>(typeArguments); 59_typeArguments = new List<XamlTypeName>();
System\Xaml\XamlXmlWriter.cs (7)
763List<KeyValuePair<string, string>> prefixMapList = new List<KeyValuePair<string, string>>(); 1615writer.meNodesStack.Push(new List<XamlNode>()); 2000var ctorArgProps = new List<XamlMember>(); 2054writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2091writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2120writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2174NodesList = new List<List<XamlNode>>();
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 (18)
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)
129var certificates = new List<X509Certificate2>(); 690var extensions = new List<X509Extension>(); 933var 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)
714var nssDbs = new List<string>(); 734var nssDbs = new List<NssDb>(); 893var 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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
Templates.Blazor.WebAssembly.Auth.Tests (17)
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)
129var certificates = new List<X509Certificate2>(); 690var extensions = new List<X509Extension>(); 933var 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)
714var nssDbs = new List<string>(); 734var nssDbs = new List<NssDb>(); 893var 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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
Templates.Blazor.WebAssembly.Tests (17)
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)
129var certificates = new List<X509Certificate2>(); 690var extensions = new List<X509Extension>(); 933var 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)
714var nssDbs = new List<string>(); 734var nssDbs = new List<NssDb>(); 893var 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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
Templates.Mvc.Tests (23)
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)
129var certificates = new List<X509Certificate2>(); 690var extensions = new List<X509Extension>(); 933var 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)
714var nssDbs = new List<string>(); 734var nssDbs = new List<NssDb>(); 893var 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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
Templates.Tests (17)
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)
129var certificates = new List<X509Certificate2>(); 690var extensions = new List<X509Extension>(); 933var 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)
714var nssDbs = new List<string>(); 734var nssDbs = new List<NssDb>(); 893var 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 (2)
16Values = new List<string>(); 105var parts = new List<string>();
Test.Utilities (31)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
TestPassApp (1)
DataBindingExample.cs (1)
40dataGridView1.DataSource = new List<Student>
Text.Analyzers (39)
CodeAnalysisDictionary.cs (1)
86var recognizedWords = new List<string>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
20return new List<string>(capacity: 0);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
35_keys = new List<K>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
592var sorted = new List<TextSpan>(spans); 601IList<TextSpan> normalized = new List<TextSpan>(sorted.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
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.cs (1)
146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
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)
315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (2)
15var result = new List<T>(); 63return new List<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (1)
36var result = new List<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
299var 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)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
510List<WinEventTracker.EvtIdProperty> automationEvents = new(16);
MS\Internal\AutomationProxies\ProxySimple.cs (2)
587List<ClickablePoint.CPRect> listIn = new(100); 588List<ClickablePoint.CPRect> listOut = new(100);
MS\Internal\AutomationProxies\WinEventTracker.cs (1)
394hookParams._hWndList = new List<EventCreateParams>(16);
UnitTests.Common (1)
MemberDataSet.cs (1)
37private readonly List<object[]> _data = new List<object[]>();
vbc (3)
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
VBCSCompiler (10)
src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (4)
66errorMessages ??= new List<string>(); 84var resolvedPaths = new List<string>(); 109var loadedAssemblies = new List<Assembly>(); 134errorMessages ??= new List<string>();
src\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>();
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
VBCSCompiler.UnitTests (11)
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> { }));
CompilerServerTests.cs (1)
185var arguments = new List<string>(argumentsSingle.Split(' '));
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 (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 (2)
16Values = new List<string>(); 105var parts = 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 (81)
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 (28)
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>(); 2098var expectedHandlers = new List<Delegate>(handlers); 2504var listeners = new List<CustomWeakEventListener>(); 2523var expectedListeners = new List<CustomWeakEventListener>(listeners); 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>(); 5357var expectedListeners = new List<CustomWeakEventListener>(listeners); 5601var handlers = new List<Delegate>(); 5616var expectedHandlers = new List<Delegate>(handlers); 5807var events = new List<string>(); 5842var events = new List<string>(); 5886var events = new List<string>();
WindowsFormsIntegration (2)
System\Windows\Integration\ApplicationInterop.cs (2)
313_internalList = new List<WeakReference>(); 336List<T> targets = new List<T>();
WinFormsControlsTest (1)
UserControls\UserControlWithObjectCollectionEditor.cs (1)
26get { return new List<int>(new int[] { 1, 2, 3 }); }
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)
48 var results = new List<string>();
xunit.console (21)
CommandLine.cs (3)
14readonly List<string> unknownOptions = new List<string>(); 119var args = new List<string>(capacity: rspLines.Length); 209var assemblies = new List<Tuple<string, string>>();
common\AssemblyResolution\DependencyContextAssemblyCache.cs (3)
95var result = new List<string>(GetFallbacks(dependencyContext.RuntimeGraph).Fallbacks); 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>();
20180 references to List
Analyzer.Utilities.UnitTests (4)
FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysisTests.cs (4)
1295protected static List<SyntaxNode> GetSyntaxNodeList(SyntaxTree syntaxTree) 1300protected static List<SyntaxNode> GetSyntaxNodeList(SyntaxNode node, List<SyntaxNode>? synList) 1322protected static TNode? GetSyntaxNodeOfTypeForBinding<TNode>(List<SyntaxNode> synList) where TNode : SyntaxNode
AnalyzerRunner (5)
CodeRefactoringRunner.cs (2)
89var codeActions = new List<CodeAction>(); 202var assemblies = new List<Assembly>(MefHostServices.DefaultAssemblies);
DiagnosticAnalyzerRunner.cs (1)
324var projectDiagnosticTasks = new List<KeyValuePair<ProjectId, Task<AnalysisResult>>>();
Program.cs (2)
145var projects = solution.Projects.Where(project => project.Language is LanguageNames.CSharp or LanguageNames.VisualBasic).ToList(); 176var projects = solution.Projects.Where(project => project.Language is LanguageNames.CSharp or LanguageNames.VisualBasic).ToList();
ApiExplorerWebSite (4)
ApiExplorerDataFilter.cs (4)
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>();
ApplicationModelWebSite (2)
Conventions\CloneActionConvention.cs (1)
12var actionModels = new List<ActionModel>();
Conventions\MultipleAreasControllerConvention.cs (1)
13var controllerModels = new List<ControllerModel>();
aspire (54)
Backchannel\BackchannelJsonSerializerContext.cs (2)
31[JsonSerializable(typeof(List<EnvVar>))] 32[JsonSerializable(typeof(List<string>))]
Backchannel\ExtensionBackchannel.cs (5)
41Task LaunchAppHostAsync(string projectFile, List<string> arguments, List<EnvVar> environment, bool debug, CancellationToken cancellationToken); 402var choicesList = choices.ToList(); 522public async Task LaunchAppHostAsync(string projectFile, List<string> arguments, List<EnvVar> environment, bool debug, CancellationToken cancellationToken)
Commands\AddCommand.cs (3)
92var packagesWithChannels = await _interactionService.ShowStatusAsync( 99var packages = new List<(NuGetPackage Package, PackageChannel Channel)>(); 312var rootChoices = new List<(string Label, Func<CancellationToken, Task<(string FriendlyName, NuGetPackage Package, PackageChannel Channel)>> Action)>();
Commands\ExecCommand.cs (3)
303var allTokens = parseResult.UnmatchedTokens.ToList(); 305List<string> arbitraryFlags = new(); 306List<string> commandTokens = new();
Commands\ExtensionInternalCommand.cs (1)
46var files = await _projectLocator.FindAppHostProjectFilesAsync(parseResult.GetValue<string?>("--directory") ?? Environment.CurrentDirectory, cancellationToken);
Commands\NewCommand.cs (1)
203var rootChoices = new List<(string Label, Func<CancellationToken, Task<(NuGetPackage, PackageChannel)>> Action)>();
Commands\PublishCommandBase.cs (1)
648List<IRenderable> items =
Configuration\ConfigurationService.cs (1)
180var objectPath = new List<(JsonObject obj, string key)>();
DotNet\DotNetCliRunner.cs (6)
276List<string> cliArgs = ["new", "install", $"{packageName}@{version}"]; 683var cliArgsList = new List<string> 731List<string> cliArgs = [ 799var foundPackages = PackageUpdateHelpers.ParsePackageSearchResults(stdout); 817var stdoutLines = new List<string>(); 824var stderrLines = new List<string>();
Interaction\ExtensionInteractionService.cs (4)
18Task LaunchAppHostAsync(string projectFile, List<string> arguments, List<EnvVar> environment, bool debug); 259public Task LaunchAppHostAsync(string projectFile, List<string> arguments, List<EnvVar> environment, bool debug)
NuGet\NuGetPackageCache.cs (1)
83var collectedPackages = new List<NuGetPackage>();
Packaging\NuGetConfigMerger.cs (2)
120var patternsToAdd = new List<(string pattern, string newSource)>(); 132var elementsToRemove = new List<XElement>();
Packaging\PackageChannel.cs (3)
19var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 54var tasks = new List<Task<IEnumerable<NuGetPackage>>>(); 89var tasks = new List<Task<IEnumerable<NuGetPackage>>>();
Packaging\PackagingService.cs (2)
31var prPackageChannels = new List<PackageChannel>(); 53var channels = new List<PackageChannel>([defaultChannel, stableChannel, dailyChannel, ..prPackageChannels]);
Projects\ProjectLocator.cs (6)
19Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken); 24public async Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken) 30private async Task<(List<FileInfo> BuildableAppHost, List<FileInfo> UnbuildableSuspectedAppHostProjects)> FindAppHostProjectFilesAsync(DirectoryInfo searchDirectory, CancellationToken cancellationToken) 36var appHostProjects = new List<FileInfo>(); 37var unbuildableSuspectedAppHostProjects = new List<FileInfo>();
Projects\ProjectUpdater.cs (1)
41var updateStepsByProject = updateSteps
src\Shared\CircularBuffer.cs (2)
19internal readonly List<T> _buffer; 29internal CircularBuffer(List<T> buffer, int capacity, int start, int end)
src\Shared\PackageUpdateHelpers.cs (2)
116public static List<NuGetPackage> ParsePackageSearchResults(string stdout, string? packageId = null) 118var foundPackages = new List<NuGetPackage>();
Templating\DotNetTemplateFactory.cs (7)
102var extraArgs = new List<string>(); 112var extraArgs = new List<string>(); 119private async Task PromptForRedisCacheOptionAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken) 139private async Task PromptForTestFrameworkOptionsAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken) 180private async Task PromptForXUnitVersionOptionsAsync(ParseResult result, List<string> extraArgs, CancellationToken cancellationToken) 359var packagesFromChannels = await interactionService.ShowStatusAsync(TemplatingStrings.SearchingForAvailableTemplateVersions, async () => 361var results = new List<(NuGetPackage Package, PackageChannel Channel)>();
Utils\MarkdownToSpectreConverter.cs (1)
203var spectreMarkups = new List<string>();
Aspire.Azure.AI.Inference (1)
ChatCompletionsClientSettings.cs (1)
109var deploymentKeys = new List<string>();
Aspire.Azure.Messaging.EventHubs (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Messaging.EventHubs.Tests (10)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (10)
17public List<MockRequest> Requests { get; } = new List<MockRequest>(); 78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 90if (!_headers.TryGetValue(header.Name, out var values)) 100if (_headers.TryGetValue(name, out var values)) 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 174if (!_headers.TryGetValue(header.Name, out var values)) 185if (_headers.TryGetValue(name, out var values)) 197var result = _headers.TryGetValue(name, out var valuesList);
Aspire.Azure.Messaging.ServiceBus (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Messaging.WebPubSub (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
tests\Aspire.Azure.Npgsql.Tests\FakeTokenCredential.cs (1)
42public List<string> RequestedScopes { get; } = [];
Aspire.Azure.Npgsql.Tests (1)
FakeTokenCredential.cs (1)
42public List<string> RequestedScopes { get; } = [];
Aspire.Azure.Security.KeyVault.Tests (10)
MockTransport.cs (10)
17public List<MockRequest> Requests { get; } = new List<MockRequest>(); 78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 90if (!_headers.TryGetValue(header.Name, out var values)) 100if (_headers.TryGetValue(name, out var values)) 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 174if (!_headers.TryGetValue(header.Name, out var values)) 185if (_headers.TryGetValue(name, out var values)) 197var result = _headers.TryGetValue(name, out var valuesList);
Aspire.Azure.Storage.Queues (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Cli.Tests (44)
Commands\ExecCommandTests.cs (3)
174public Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken) 187public Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken) 204public Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken)
Commands\PublishCommandPromptingIntegrationTests.cs (12)
123var options = new List<KeyValuePair<string, string>> 465var promptCalls = consoleService.StringPromptCalls; 519var promptCalls = consoleService.StringPromptCalls; 561var promptCalls = consoleService.StringPromptCalls; 599private readonly List<PromptData> _promptsToSend = []; 603public List<PromptData> ReceivedPrompts { get; } = []; 604public List<PromptCompletion> CompletedPrompts { get; } = []; 627var inputs = prompt.Inputs.Select(input => new PublishingPromptInput 717public List<StringPromptCall> StringPromptCalls { get; } = []; 718public List<object> SelectionPromptCalls { get; } = []; // Using object to handle generic types 719public List<BooleanPromptCall> BooleanPromptCalls { get; } = []; 720public List<string> DisplayedErrors { get; } = [];
Commands\RunCommandTests.cs (4)
93public Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken) 146public Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken) 159public Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken) 314var errorMessages = new List<string>();
Commands\UpdateCommandTests.cs (2)
42public Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken) 44return Task.FromResult<List<FileInfo>>([_projectFile]);
NuGet\NuGetPackageCacheTests.cs (4)
76var packageIds = packages.Select(p => p.Id).ToList(); 114var packageIds = packages.Select(p => p.Id).ToList(); 157var packageIds = packages.Select(p => p.Id).ToList(); 192var packageIds = packages.Select(p => p.Id).ToList();
Projects\ProjectUpdaterTests.cs (9)
53var packages = new List<NuGetPackageCli>(); 155var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource)>(); 164var packages = new List<NuGetPackageCli>(); 299var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource)>(); 308var packages = new List<NuGetPackageCli>(); 465var packagesAddsExecuted = new List<(FileInfo ProjectFile, string PackageId, string PackageVersion, string? PackageSource)>(); 474var packages = new List<NuGetPackageCli>(); 560var sharedProjectUpdates = packagesAddsExecuted.Where(p => p.ProjectFile.FullName == sharedProjectFile.FullName).ToList(); 568var appHostUpdates = packagesAddsExecuted.Where(p => p.ProjectFile.FullName == appHostProjectFile.FullName).ToList();
TestServices\NoProjectFileProjectLocator.cs (1)
15public Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken)
TestServices\TestExtensionBackchannel.cs (4)
66public Func<string, List<string>, List<EnvVar>, bool, Task>? LaunchAppHostAsyncCallback { get; set; } 197public Task LaunchAppHostAsync(string projectPath, List<string> arguments, List<EnvVar> envVars, bool debug, CancellationToken cancellationToken)
TestServices\TestExtensionInteractionService.cs (2)
141public Task LaunchAppHostAsync(string projectFile, List<string> arguments, List<EnvVar> environment, bool debug)
TestServices\TestProjectLocator.cs (2)
12public Func<string, CancellationToken, Task<List<FileInfo>>>? FindAppHostProjectFilesAsyncCallback { get; set; } 31public Task<List<FileInfo>> FindAppHostProjectFilesAsync(string searchDirectory, CancellationToken cancellationToken)
Utils\CliTestHelper.cs (1)
310public List<string> Logs { get; } = new List<string>();
Aspire.Components.Common.TestUtilities (4)
ActivityNotifier.cs (2)
18public async Task<List<Activity>> TakeAsync(int count, TimeSpan timeout) 20var activityList = new List<Activity>();
ConformanceTests.cs (2)
134List<string> registeredNames = new(); 442List<Activity> exportedActivities = new();
Aspire.Confluent.Kafka (6)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumer.cs (6)
28public List<TopicPartition> Assignment => this.consumer.Assignment; 30public List<string> Subscription => this.consumer.Subscription; 197public List<TopicPartitionOffset> Commit() 227public List<TopicPartitionOffset> Committed(TimeSpan timeout) 232public List<TopicPartitionOffset> Committed(IEnumerable<TopicPartition> partitions, TimeSpan timeout) 242public List<TopicPartitionOffset> OffsetsForTimes(IEnumerable<TopicPartitionTimestamp> timestampsToSearch, TimeSpan timeout)
Aspire.Confluent.Kafka.Tests (5)
Aspire8MetricsTests.cs (3)
21var statistics = variation.Statistics; 136var statistics = variation.Statistics; 339public required List<string> Statistics { get; set; }
OtelMetricsTests.cs (1)
32List<Metric> metrics = new();
OtelTracesTests.cs (1)
34List<Activity> activities = new();
Aspire.Dashboard (324)
Authentication\Connection\ConnectionTypeMiddleware.cs (2)
15private readonly List<ConnectionType> _connectionTypes; 32public required List<ConnectionType> ConnectionTypes { get; init; }
Authentication\Connection\IConnectionTypeFeature.cs (1)
11List<ConnectionType> ConnectionTypes { get; }
Components\Controls\Chart\ChartBase.cs (27)
29private List<KeyValuePair<string, string>[]>? _renderedDimensionAttributes; 59public required List<OtlpResource> Resources { get; set; } 93var dimensionAttributes = InstrumentViewModel.MatchedDimensions.Select(d => d.Attributes).ToList(); 124private (List<ChartTrace> Y, List<DateTimeOffset> X, List<ChartExemplar> Exemplars) CalculateHistogramValues(List<DimensionScope> dimensions, int pointCount, bool tickUpdate, DateTimeOffset inProgressDataTime, string yLabel) 133var xValues = new List<DateTimeOffset>(); 134var exemplars = new List<ChartExemplar>(); 216internal bool TryCalculateHistogramPoints(List<DimensionScope> dimensions, DateTimeOffset start, DateTimeOffset end, Dictionary<int, ChartTrace> traces, List<ChartExemplar> exemplars) 286private void AddExemplars(List<ChartExemplar> exemplars, MetricValueBase metric) 377private (List<ChartTrace> Y, List<DateTimeOffset> X, List<ChartExemplar> Exemplars) CalculateChartValues(List<DimensionScope> dimensions, int pointCount, bool tickUpdate, DateTimeOffset inProgressDataTime, string yLabel) 380var yValues = new List<double?>(); 381var xValues = new List<DateTimeOffset>(); 382var exemplars = new List<ChartExemplar>(); 437private bool TryCalculatePoint(List<DimensionScope> dimensions, DateTimeOffset start, DateTimeOffset end, List<ChartExemplar> exemplars, out double pointValue) 497List<ChartTrace> traces; 498List<DateTimeOffset> xValues; 499List<ChartExemplar> exemplars; 529protected abstract Task OnChartUpdatedAsync(List<ChartTrace> traces, List<DateTimeOffset> xValues, List<ChartExemplar> exemplars, bool tickUpdate, DateTimeOffset inProgressDataTime, CancellationToken cancellationToken);
Components\Controls\Chart\ChartContainer.razor.cs (4)
44public required List<OtlpResource> Resources { get; set; } 127var matchedDimensions = instrument.Dimensions.Where(MatchDimension).ToList(); 212private List<DimensionFilterViewModel> CreateUpdatedFilters(bool hasInstrumentChanged) 214var 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\MetricTable.razor.cs (12)
22private List<ChartExemplar> _exemplars = []; 40protected override async Task OnChartUpdatedAsync(List<ChartTrace> traces, List<DateTimeOffset> xValues, List<ChartExemplar> exemplars, bool tickUpdate, DateTimeOffset inProgressDataTime, CancellationToken cancellationToken) 72var metricView = _metricsView.ToList(); 73List<int> indices = []; 114private SortedList<DateTimeOffset, MetricViewBase> UpdateMetrics(out ISet<DateTimeOffset> addedXValues, List<ChartTrace> traces, List<DateTimeOffset> xValues, List<ChartExemplar> exemplars) 129var valueDiffs = traceValuesByPercentile.Select(kvp => 209var currentExemplars = exemplars.Where(e => (e.Start >= startTime || startTime == null) && (e.Start < endTime || endTime == null)).ToList(); 283public required List<ChartExemplar> Exemplars { get; set; }
Components\Controls\Chart\PlotlyChart.razor.cs (8)
55protected override async Task OnChartUpdatedAsync(List<ChartTrace> traces, List<DateTimeOffset> xValues, List<ChartExemplar> exemplars, bool tickUpdate, DateTimeOffset inProgressDataTime, CancellationToken cancellationToken) 107private PlotlyTrace CalculateExemplarsTrace(List<DateTimeOffset> xValues, List<ChartExemplar> exemplars) 117var exemplarGroups = new Dictionary<ExemplarGroupKey, List<ChartExemplar>>(); 124var groupExemplars = exemplars.Where(e => (e.Start >= g.Start || g.Start == null) && (e.Start < g.End || g.End == null)).ToList(); 131var sampledList = new List<ChartExemplar>(MaxExemplarsPerTick);
Components\Controls\ClearSignalsButton.razor.cs (1)
30private readonly List<MenuButtonItem> _clearMenuItems = new();
Components\Controls\LogLevelSelect.razor.cs (1)
12public required List<SelectViewModel<LogLevel?>> LogLevels { get; set; }
Components\Controls\ResourceActions.razor.cs (2)
60private readonly List<CommandViewModel> _highlightedCommands = new(); 61private readonly List<MenuButtonItem> _menuItems = new();
Components\Controls\ResourceDetails.razor.cs (6)
54private readonly List<DisplayedResourcePropertyViewModel> _displayedResourcePropertyViewModels = new(); 200var items = new List<ResourceDetailRelationshipViewModel>(); 204var matches = ResourceByName.Values 225var items = new List<ResourceDetailRelationshipViewModel>(); 245private List<DisplayedUrl> GetUrls() 275var valueMaskedValues = SensitiveGridItems.Select(i => i.IsValueMasked).Distinct().ToList();
Components\Controls\SpanActions.razor.cs (1)
33private readonly List<MenuButtonItem> _menuItems = new();
Components\Controls\SpanDetails.razor.cs (1)
66private List<TelemetryPropertyViewModel> _contextAttributes = null!;
Components\Controls\StructuredLogActions.razor.cs (1)
42private readonly List<MenuButtonItem> _menuItems = new();
Components\Controls\StructuredLogDetails.razor.cs (6)
49private List<TelemetryPropertyViewModel> _logEntryAttributes = null!; 50private List<TelemetryPropertyViewModel> _contextAttributes = null!; 51private List<TelemetryPropertyViewModel> _exceptionAttributes = null!; 72var attributes = _viewModel.LogEntry.Attributes 139private static void MoveAttributes(List<TelemetryPropertyViewModel> source, List<TelemetryPropertyViewModel> destination, Func<TelemetryPropertyViewModel, bool> predicate)
Components\Controls\TraceActions.razor.cs (1)
30private readonly List<MenuButtonItem> _menuItems = new();
Components\Dialogs\FilterDialog.razor.cs (6)
15private List<SelectViewModel<FilterCondition>> _filterConditions = null!; 30private List<SelectViewModel<string>> _parameters = default!; 31private List<SelectViewModel<FieldValue>> _filteredValues = default!; 32private List<SelectViewModel<FieldValue>>? _allValues; 54var knownFields = Content.KnownKeys.Select(p => new SelectViewModel<string> { Id = p, Name = TelemetryFilter.ResolveFieldName(p) }).ToList(); 55var customFields = Content.PropertyKeys.Select(p => new SelectViewModel<string> { Id = p, Name = TelemetryFilter.ResolveFieldName(p) }).ToList();
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
23private List<InputViewModel> _inputDialogInputViewModels = default!;
Components\Dialogs\KeyboardShortcut.cs (1)
6public record KeyboardShortcutCategory(string Category, List<KeyboardShortcut> Shortcuts);
Components\Dialogs\SettingsDialog.razor.cs (1)
17private List<CultureInfo> _languageOptions = null!;
Components\Dialogs\TextVisualizerDialog.razor.cs (2)
30private List<SelectViewModel<string>> _options = null!; 148var lines = FormattedText.Split(["\r\n", "\r", "\n"], StringSplitOptions.None).ToList();
Components\Pages\ConsoleLogs.razor.cs (6)
139private readonly List<CommandViewModel> _highlightedCommands = new(); 140private readonly List<MenuButtonItem> _logsMenuItems = new(); 141private readonly List<MenuButtonItem> _resourceMenuItems = new(); 507var subscriptionsToCancel = _consoleLogsSubscriptions.Values.ToList(); 529var availableResources = _resourceByName.Values 1010var actualResources = _resourceByName.Values.Where(r => !r.IsResourceHidden(showHiddenResources: _showHiddenResources)).ToList();
Components\Pages\Metrics.razor.cs (7)
22private List<SelectViewModel<TimeSpan>> _durations = null!; 28private List<OtlpResource> _resources = default!; 29private List<SelectViewModel<ResourceTypeDetails>> _resourceViewModels = default!; 171var apps = _resourceViewModels.Where(e => e != _selectResource).ToList(); 223private bool ShouldClearSelectedMetrics(List<OtlpInstrumentSummary> instruments) 262public List<OtlpInstrumentSummary>? Instruments { get; set; } 333var instruments = TelemetryRepository.GetInstrumentsSummaries(selectedResourceKey.Value);
Components\Pages\Resources.razor.cs (11)
108private readonly List<MenuButtonItem> _resourcesMenuItems = new(); 118private readonly List<MenuButtonItem> _contextMenuItems = new(); 214var collapsedResult = await SessionStorage.GetAsync<List<string>>(BrowserStorageKeys.ResourcesCollapsedResourceNames); 364var activeResources = _resourceByName.Values.Where(Filter).OrderBy(e => e.ResourceType).ThenBy(e => e.Name).ToList(); 415var orderedResources = ResourceGridViewModel.OrderNestedResources(filteredResources.ToList(), r => _collapsedResourceNames.Contains(r.Name)) 420var query = orderedResources 701var displayedUrls = GetDisplayedUrls(resource); 746var resourcesWithChildren = _resourceByName.Values 779private static List<DisplayedUrl> GetDisplayedUrls(ResourceViewModel resource) 868var escapedFilters = filters.Where(kvp => !kvp.Value).Select(kvp => StringUtils.Escape(kvp.Key)).ToList(); 912var properties = new List<ComponentTelemetryProperty>
Components\Pages\StructuredLogs.razor.cs (5)
36private List<OtlpResource> _resources = default!; 37private List<SelectViewModel<ResourceTypeDetails>> _resourceViewModels = default!; 38private List<SelectViewModel<LogLevel?>> _logLevels = default!; 369private List<MenuButtonItem> GetFilterMenuItems() 458var filters = TelemetryFilterFormatter.DeserializeFiltersFromString(SerializedFilters);
Components\Pages\TraceDetail.razor.cs (8)
31private readonly List<IDisposable> _peerChangesSubscriptions = new(); 34private List<SpanWaterfallViewModel>? _spanWaterfallViewModels; 37private List<OtlpResource> _resources = default!; 38private readonly List<string> _collapsedSpanIds = []; 44private readonly List<MenuButtonItem> _traceActionsMenuItems = []; 379var entryProperties = viewModel.Span.AllProperties() 385var links = viewModel.Span.Links.Select(l => CreateLinkViewModel(l.TraceId, l.SpanId, l.Attributes, traceCache)).ToList(); 386var backlinks = viewModel.Span.BackLinks.Select(l => CreateLinkViewModel(l.SourceTraceId, l.SourceSpanId, l.Attributes, traceCache)).ToList();
Components\Pages\Traces.razor.cs (4)
35private List<OtlpResource> _resources = default!; 36private List<SelectViewModel<ResourceTypeDetails>> _resourceViewModels = default!; 281var filters = TelemetryFilterFormatter.DeserializeFiltersFromString(SerializedFilters); 373private List<MenuButtonItem> GetFilterMenuItems()
Components\ResourcesGridColumns\UnreadLogErrorsBadge.razor.cs (1)
48var resources = TelemetryRepository.GetResources();
Configuration\DashboardOptions.cs (4)
86public List<AllowedCertificateRule> AllowedCertificates { get; set; } = new(); 154private List<BindingAddress>? _parsedEndpointAddresses; 190var addresses = new List<BindingAddress>(parts.Length); 282List<string>? messages = null;
Configuration\ValidateDashboardOptions.cs (1)
27var errorMessages = new List<string>();
ConsoleLogs\AnsiParser.cs (3)
305List<int> ret = new(2); 453var classes = new List<string>(2); 454var styles = new List<string>(2);
DashboardEndpointsBuilder.cs (1)
61if (!GlobalizationHelpers.ExpandedLocalizedCultures.TryGetValue(newLanguage.Name, out var availableCultures))
DashboardWebApplication.cs (5)
54private readonly List<Func<EndpointInfo>> _frontendEndPointAccessor = new(); 58public List<Func<EndpointInfo>> FrontendEndPointsAccessor 528var browserEndpointNames = new List<string>(capacity: frontendAddresses.Count); 605var connectionTypes = new List<ConnectionType> { ConnectionType.Otlp }; 637var connectionTypes = new List<ConnectionType> { ConnectionType.Otlp };
Extensions\TelemetryFilterFormatter.cs (1)
83public static List<TelemetryFilter> DeserializeFiltersFromString(string filtersString)
Model\CommonMenuItems.cs (1)
15List<MenuButtonItem> menuItems,
Model\ConsoleLogsManager.cs (2)
13private readonly List<ModelSubscription> _subscriptions = new List<ModelSubscription>(); 73internal List<ModelSubscription> GetSubscriptions()
Model\DimensionFilterViewModel.cs (1)
15public List<DimensionValueViewModel> Values { get; } = new();
Model\EnvironmentVariablesDialogViewModel.cs (1)
8public required List<EnvironmentVariableViewModel> EnvironmentVariables { get; init; }
Model\ExemplarsDialogViewModel.cs (2)
11public required List<ChartExemplar> Exemplars { get; init; } 12public required List<OtlpResource> Resources { get; init; }
Model\FilterDialogViewModel.cs (2)
11public required List<string> KnownKeys { get; init; } 12public required List<string> PropertyKeys { get; init; }
Model\InputViewModel.cs (2)
24var optionsVM = input.Options 33public List<SelectViewModel<string>> SelectOptions { get; } = [];
Model\InstrumentViewModel.cs (3)
12public List<DimensionScope>? MatchedDimensions { get; private set; } 14public List<Func<Task>> DataUpdateSubscriptions { get; } = []; 18public async Task UpdateDataAsync(OtlpInstrumentSummary instrument, List<DimensionScope> matchedDimensions)
Model\InteractionsInputsDialogViewModel.cs (1)
20public List<InteractionInput> Inputs => Interaction.InputsDialog!.InputItems.ToList();
Model\KnownPropertyLookup.cs (6)
15private readonly List<KnownProperty> _resourceProperties; 16private readonly List<KnownProperty> _projectProperties; 17private readonly List<KnownProperty> _executableProperties; 18private readonly List<KnownProperty> _containerProperties; 19private readonly List<KnownProperty> _parameterProperties; 70var knownProperties = resourceType switch
Model\MenuButtonItem.cs (1)
11public List<MenuButtonItem>? NestedMenuItems { get; set; }
Model\Otlp\KnownStructuredLogFields.cs (1)
16public static readonly List<string> AllFields = [
Model\Otlp\KnownTraceFields.cs (1)
18public static readonly List<string> AllFields = [
Model\Otlp\ResourcesSelectHelpers.cs (8)
17var allowedMatches = resources.Where(e => SupportType(e.Id?.Type, canSelectGrouping)).ToList(); 20var instanceIdMatches = allowedMatches.Where(e => string.Equals(name, e.Id?.InstanceId, StringComparisons.ResourceName)).ToList(); 28var replicaSetMatches = allowedMatches.Where(e => e.Id?.Type != OtlpResourceType.Instance && string.Equals(name, e.Id?.ReplicaSetName, StringComparisons.ResourceName)).ToList(); 49static SelectViewModel<ResourceTypeDetails> MultipleMatches(ICollection<SelectViewModel<ResourceTypeDetails>> resources, ILogger logger, string name, List<SelectViewModel<ResourceTypeDetails>> matches) 66public static List<SelectViewModel<ResourceTypeDetails>> CreateResources(List<OtlpResource> resources) 70var selectViewModels = new List<SelectViewModel<ResourceTypeDetails>>(); 103var sortedVMs = selectViewModels.OrderBy(vm => vm.Name, StringComparers.ResourceName).ToList();
Model\Otlp\SpanWaterfallViewModel.cs (11)
13public required List<SpanWaterfallViewModel> Children { get; init; } 20public required List<SpanLogEntryViewModel> SpanLogs { get; init; } 36public string GetTooltip(List<OtlpResource> allResources) 113public sealed record TraceDetailState(IOutgoingPeerResolver[] OutgoingPeerResolvers, List<string> CollapsedSpanIds); 115public static string GetTitle(OtlpSpan span, List<OtlpResource> allResources) 120public static List<SpanWaterfallViewModel> Create(OtlpTrace trace, List<OtlpLogEntry> logs, TraceDetailState state) 122var orderedSpans = new List<SpanWaterfallViewModel>(); 128groupedLogs.TryGetValue(span.SpanId, out var spanLogs); 139static SpanWaterfallViewModel CreateViewModel(OtlpSpan span, int depth, bool hidden, TraceDetailState state, List<OtlpLogEntry>? spanLogs, ref int currentSpanLogIndex) 157var spanLogVms = new List<SpanLogEntryViewModel>();
Model\PlotlyTrace.cs (5)
9public required List<DateTimeOffset> X { get; init; } 10public required List<double?> Y { get; init; } 11public required List<string?> Tooltips { get; init; } 12public required List<object?> TraceData { get; init; } 18public required List<string> Periods { get; init; }
Model\ResourceDetailRelationshipViewModel.cs (1)
10public required List<string> Types { get; set; }
Model\ResourceGraph\ResourceGraphMapper.cs (2)
18var resolvedNames = new List<string>(); 25var matches = resourcesByName.Values
Model\ResourceGridViewModel.cs (4)
13public List<ResourceGridViewModel> Children { get; } = []; 36public static List<ResourceGridViewModel> OrderNestedResources(List<ResourceGridViewModel> initialGridVMs, Func<ResourceViewModel, bool> isCollapsed) 42var gridViewModels = new List<ResourceGridViewModel>();
Model\ResourceMenuItems.cs (10)
26List<MenuButtonItem> menuItems, 71private static void AddUrlMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, IStringLocalizer<Resources.Resources> loc) 73var urls = ResourceUrlHelpers.GetUrls(resource, includeInternalUrls: false, includeNonEndpointUrls: true) 86var urlItems = new List<MenuButtonItem>(); 128private static void AddTelemetryMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, NavigationManager navigationManager, TelemetryRepository telemetryRepository, Func<ResourceViewModel, string> getResourceName, IStringLocalizer<Resources.Resources> loc) 180private static void AddCommandMenuItems(List<MenuButtonItem> menuItems, ResourceViewModel resource, IStringLocalizer<Resources.Resources> loc, IStringLocalizer<Commands> commandsLoc, EventCallback<CommandViewModel> commandSelected, Func<ResourceViewModel, CommandViewModel, bool> isCommandExecuting) 182var menuCommands = resource.Commands 191var highlightedMenuCommands = menuCommands.Where(c => c.IsHighlighted).ToList(); 192var otherMenuCommands = menuCommands.Where(c => !c.IsHighlighted).ToList(); 206var commands = new List<MenuButtonItem>();
Model\ResourceOutgoingPeerResolver.cs (2)
17private readonly List<ModelSubscription> _subscriptions = []; 226private static readonly List<Func<string, string>> s_addressTransformers = [
Model\ResourceSourceViewModel.cs (5)
8public class ResourceSourceViewModel(string value, List<LaunchArgument>? contentAfterValue, string valueToVisualize, string tooltip) 11public List<LaunchArgument>? ContentAfterValue { get; } = contentAfterValue; 56var arguments = launchArguments 73var arguments = executableArguments.IsDefaultOrEmpty ? [] : executableArguments.Select(arg => new LaunchArgument(arg, true)).ToList(); 90private record CommandLineInfo(List<LaunchArgument> Arguments, string ArgumentsString, string TooltipString);
Model\ResourceUrlHelpers.cs (3)
11public static List<DisplayedUrl> GetUrls(ResourceViewModel resource, bool includeInternalUrls = false, bool includeNonEndpointUrls = false) 13var urls = new List<DisplayedUrl>(resource.Urls.Length); 51var orderedUrls = urls
Model\ResourceViewModel.cs (2)
57var addresses = new List<string>(); 188var resourcesWithDisplayName = resourceByName.Values.Where(r => string.Equals(resourceName, r.DisplayName, StringComparisons.ResourceName)).ToList();
Model\SpanDetailsViewModel.cs (4)
11public required List<TelemetryPropertyViewModel> Properties { get; init; } 12public required List<SpanLinkViewModel> Links { get; init; } 13public required List<SpanLinkViewModel> Backlinks { get; init; } 15public required List<OtlpResource> Resources { get; init; }
Model\StructuredLogsViewModel.cs (2)
13private readonly List<TelemetryFilter> _filters = new(); 82var filters = Filters.ToList();
Model\ThemeManager.cs (1)
51private readonly List<ModelSubscription> _subscriptions = new List<ModelSubscription>();
Model\TracesViewModel.cs (2)
13private readonly List<TelemetryFilter> _filters = new(); 80var filters = Filters.ToList();
Otlp\Model\ColorGenerator.cs (1)
28private readonly List<GeneratedColor> _colors;
Otlp\Model\DurationFormatter.cs (1)
19private static readonly List<UnitStep> s_unitSteps = new List<UnitStep>
Otlp\Model\MetricValues\MetricValueBase.cs (2)
11private List<MetricsExemplar>? _exemplars; 13public List<MetricsExemplar> Exemplars => _exemplars ??= new List<MetricsExemplar>();
Otlp\Model\OtlpHelpers.cs (3)
211List<KeyValuePair<string, string>>? values = null; 247static int GetIndex(List<KeyValuePair<string, string>> values, string name) 415List<TResult> items;
Otlp\Model\OtlpInstrument.cs (5)
28public required List<DimensionScope> Dimensions { get; init; } 29public required Dictionary<string, List<string?>> KnownAttributeValues { get; init; } 40public Dictionary<string, List<string?>> KnownAttributeValues { get; } = new(); 80ref var values = ref CollectionsMarshal.GetValueRefOrAddDefault(KnownAttributeValues, key, out _); 99static void TryAddValue(List<string?> values, string? value)
Otlp\Model\OtlpResource.cs (6)
231public List<OtlpInstrumentSummary> GetInstrumentsSummary() 237var instruments = new List<OtlpInstrumentSummary>(_instruments.Count); 250public static Dictionary<string, List<OtlpResource>> GetReplicasByResourceName(IEnumerable<OtlpResource> allResources) 257public static string GetResourceName(OtlpResourceView resource, List<OtlpResource> allResources) => 260public static string GetResourceName(OtlpResource resource, List<OtlpResource> allResources) 292internal List<OtlpResourceView> GetViews() => _resourceViews.Values.ToList();
Otlp\Model\OtlpResourceView.cs (2)
42public List<OtlpDisplayField> AllProperties() 44var props = new List<OtlpDisplayField>
Otlp\Model\OtlpSpan.cs (5)
38public required List<OtlpSpanEvent> Events { get; init; } 39public required List<OtlpSpanLink> Links { get; init; } 40public required List<OtlpSpanLink> BackLinks { get; init; } 101public List<OtlpDisplayField> AllProperties() 103var props = new List<OtlpDisplayField>
Otlp\Model\OtlpSpanCollection.cs (2)
22public new List<OtlpSpan>.Enumerator GetEnumerator() 25return ((List<OtlpSpan>)this.Items).GetEnumerator();
Otlp\Storage\GetLogsContext.cs (1)
13public required List<TelemetryFilter> Filters { get; init; }
Otlp\Storage\GetTracesRequest.cs (1)
14public required List<TelemetryFilter> Filters { get; init; }
Otlp\Storage\PagedResult.cs (1)
16public required List<T> Items { get; init; }
Otlp\Storage\TelemetryRepository.cs (39)
35private readonly List<Subscription> _resourceSubscriptions = new(); 36private readonly List<Subscription> _logSubscriptions = new(); 37private readonly List<Subscription> _metricsSubscriptions = new(); 38private readonly List<Subscription> _tracesSubscriptions = new(); 52private readonly List<OtlpSpanLink> _spanLinks = new(); 53private readonly List<IDisposable> _peerResolverSubscriptions = new(); 63internal List<OtlpSpanLink> SpanLinks => _spanLinks; 64internal List<Subscription> TracesSubscriptions => _tracesSubscriptions; 98public List<OtlpResource> GetResources(bool includeUninstrumentedPeers = false) 103public List<OtlpResource> GetResourcesByName(string name, bool includeUninstrumentedPeers = false) 108private List<OtlpResource> GetResourcesCore(bool includeUninstrumentedPeers, string? name) 120var resources = results.OrderBy(a => a.ResourceKey).ToList(); 148public List<OtlpResource> GetResources(ResourceKey key, bool includeUninstrumentedPeers = false) 194var resources = GetResources(key.Value); 273private Subscription AddSubscription(string name, ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback, List<Subscription> subscriptions) 292private void RaiseSubscriptionChanged(List<Subscription> subscriptions) 403List<OtlpResource>? resources = null; 437public List<string> GetLogPropertyKeys(ResourceKey? resourceKey) 439List<OtlpResource>? resources = null; 464public List<string> GetTracePropertyKeys(ResourceKey? resourceKey) 466List<OtlpResource>? resources = null; 493List<OtlpResource>? resources = null; 525var filters = context.Filters.GetEnabledFilters().ToList(); 572private static bool MatchResources(ResourceKey resourceKey, List<OtlpResource> resources) 585private static bool MatchResources(OtlpTrace t, List<OtlpResource> resources) 613List<OtlpResource>? resources = null; 650List<OtlpResource>? resources = null; 687List<OtlpResource> resources; 1167var currentSpanLinks = _spanLinks.ToList(); 1207var events = new List<OtlpSpanEvent>(); 1209var links = new List<OtlpSpanLink>(); 1258public List<OtlpInstrumentSummary> GetInstrumentsSummaries(ResourceKey key) 1260var resources = GetResources(key); 1271var allResourceSummaries = resources 1283var resources = GetResources(request.ResourceKey); 1284var instruments = resources 1306var allDimensions = new List<DimensionScope>(); 1307var allKnownAttributes = new Dictionary<string, List<string?>>(); 1316ref var values = ref CollectionsMarshal.GetValueRefOrAddDefault(allKnownAttributes, knownAttributeValues.Key, out _);
ServiceClient\DashboardClient.cs (2)
352List<ResourceViewModelChange>? changes = null; 630async IAsyncEnumerable<WatchInteractionsResponseUpdate> StreamUpdatesAsync(List<WatchInteractionsResponseUpdate> pendingInteractions, [EnumeratorCancellation] CancellationToken enumeratorCancellationToken = default)
src\Shared\ChannelExtensions.cs (1)
34List<T>? batch = null;
src\Shared\CircularBuffer.cs (2)
19internal readonly List<T> _buffer; 29internal CircularBuffer(List<T> buffer, int capacity, int start, int end)
src\Shared\ConsoleLogs\LogEntries.cs (2)
18private readonly List<LogPauseViewModel> _pauseViewModels = []; 43var pauseEntries = _logEntries.Where(e => e.Type == LogEntryType.Pause && _pauseViewModels.Contains(e.Pause!)).ToList();
Telemetry\DashboardTelemetryService.cs (1)
339public void PostCommandLineFlags(List<string> flagPrefixes, Dictionary<string, AspireTelemetryProperty> additionalProperties)
Telemetry\TelemetryRequests.cs (1)
18public record PostCommandLineFlagsRequest(List<string> FlagPrefixes, Dictionary<string, AspireTelemetryProperty> AdditionalProperties);
Utils\FilterHelpers.cs (2)
21public static List<MenuButtonItem> GetFilterMenuItems<TView, TR>( 30var filterMenuItems = new List<MenuButtonItem>();
Utils\GlobalizationHelpers.cs (13)
17public static List<CultureInfo> OrderedLocalizedCultures { get; } 19public static List<CultureInfo> AllCultures { get; } 21public static Dictionary<string, List<CultureInfo>> ExpandedLocalizedCultures { get; } 25var localizedCultureInfos = LocaleHelpers.SupportedLocales.Select(CultureInfo.GetCultureInfo).ToList(); 35private static Dictionary<string, List<CultureInfo>> GetExpandedLocalizedCultures(List<CultureInfo> localizedCultures, List<CultureInfo> allCultures) 37var dict = new Dictionary<string, List<CultureInfo>>(StringComparers.CultureName); 40var selfAndChildren = new List<CultureInfo>(); 70private static List<CultureInfo> GetAllCultures() 72var allCultures = CultureInfo.GetCultures(CultureTypes.AllCultures).ToList(); 93public static bool TryGetKnownParentCulture(List<CultureInfo> knownCultures, CultureInfo culture, [NotNullWhen(true)] out CultureInfo? matchedCulture) 131internal static async Task<RequestCulture?> ResolveSetCultureToAcceptedCultureAsync(string acceptLanguage, List<CultureInfo> availableCultures)
Aspire.Dashboard.Components.Tests (12)
Pages\ConsoleLogsTests.cs (3)
223var optionValues = selectOptions.Select(opt => opt.GetAttribute("value")).ToList(); 246var updatedOptionValues = updatedOptions.Select(opt => opt.GetAttribute("value")).ToList(); 274var finalOptionValues = finalOptions.Select(opt => opt.GetAttribute("value")).ToList();
Pages\ResourcesTests.cs (6)
28var initialResources = new List<ResourceViewModel> 117var initialResources = new List<ResourceViewModel> 179var initialResources = new List<ResourceViewModel> 216var initialResources = new List<ResourceViewModel> 313var initialResources = new List<ResourceViewModel> 350var filteredResources = cut.Instance.GetFilteredResources().ToList();
Pages\TraceDetailsTests.cs (1)
533var expandContainers = cut
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
156public static Span CreateSpan(string traceId, string spanId, DateTime startTime, DateTime endTime, string? parentSpanId = null, List<Span.Types.Event>? events = null, List<Span.Types.Link>? links = null, IEnumerable<KeyValuePair<string, string>>? attributes = null, Span.Types.SpanKind? kind = null)
Aspire.Dashboard.Tests (100)
AssemblyExtensionsTests.cs (1)
77private readonly List<Attribute> _customAttributes = [];
BrowserSecurityHeadersMiddlewareTests.cs (1)
82public required List<ConnectionType> ConnectionTypes { get; init; }
CircularBufferTests.cs (1)
641var values = new List<string>
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (3)
19var resources = new List<ResourceViewModel> 51var resources = new List<ResourceViewModel> 141var resources = new List<ResourceViewModel>
GlobalizationHelpersTests.cs (3)
16var supportedCultures = GlobalizationHelpers.ExpandedLocalizedCultures 45var cultureOptions = new List<CultureInfo> 77var englishCultures = GlobalizationHelpers.ExpandedLocalizedCultures[requestedLanguage];
Integration\FrontendBrowserTokenAuthTests.cs (3)
170var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList(); 231var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList(); 258var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList();
Integration\ServerRetryHelper.cs (4)
26public static async Task BindPortsWithRetry(Func<List<int>, Task> retryFunc, ILogger logger, int portCount) 36var ports = new List<int>(portCount); 70var unavailableEndpoints = new List<IPEndPoint>(); 101static void AddEndpoints(int startingPort, List<IPEndPoint> endpoints, IEnumerable<IPEndPoint> activeEndpoints)
Integration\StartupTests.cs (3)
599var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList(); 679var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName).ToList(); 842var loggerProviderTypes = loggerProviders.Select(p => p.GetType()).ToList();
Model\ApplicationsSelectHelpersTests.cs (5)
23var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 68var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 112var appVMs = new List<SelectViewModel<ResourceTypeDetails>> 134var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource> 171var appVMs = ResourcesSelectHelpers.CreateResources(new List<OtlpResource>
Model\ResourceMenuItemsTests.cs (3)
29var menuItems = new List<MenuButtonItem>(); 80var menuItems = new List<MenuButtonItem>(); 131var menuItems = new List<MenuButtonItem>();
Model\ResourceUrlHelpersTests.cs (11)
12public static List<DisplayedUrl> GetUrls(ResourceViewModel resource, bool includeInternalUrls = false) 20var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [])); 28var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [new("Test", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)])); 44var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 71var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 98var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 125var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 144var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 163var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 191var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [ 210var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [
Model\SpanWaterfallViewModelTests.cs (5)
31var vm = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([], [])); 62var vm = SpanWaterfallViewModel.Create(trace, [log], new SpanWaterfallViewModel.TraceDetailState([], [])); 91var vm = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([new BrowserLinkOutgoingPeerResolver()], [])); 166var vms = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([], [])); 188var vms = SpanWaterfallViewModel.Create(trace, [], new SpanWaterfallViewModel.TraceDetailState([], []));
TelemetryFilterFormatterTests.cs (3)
24var filters = TelemetryFilterFormatter.DeserializeFiltersFromString(serializedFilters); 44var filters = TelemetryFilterFormatter.DeserializeFiltersFromString(serializedFilters); 65var filters = TelemetryFilterFormatter.DeserializeFiltersFromString(serializedFilters);
TelemetryRepositoryTests\LogTests.cs (8)
57var resources = repository.GetResources(); 88var propertyKeys = repository.GetLogPropertyKeys(resources[0].ResourceKey)!; 439var propertyKeys = repository.GetLogPropertyKeys(new ResourceKey("TestService", "UnknownResource")); 480var resources = repository.GetResources(); 621var attributes = new List<KeyValuePair<string, string>> 652var resources = repository.GetResources(); 864var resources = repository.GetResources(); 1007var propertyKeys = repository.GetLogPropertyKeys(resourceKey)!;
TelemetryRepositoryTests\MetricsTests.cs (20)
63var resources = repository.GetResources(); 71var instruments = repository.GetInstrumentsSummaries(resources[0].ResourceKey); 109var metricAttributes = new List<KeyValuePair<string, string>>(); 110var meterAttributes = new List<KeyValuePair<string, string>>(); 143var resources = repository.GetResources(); 223var metricAttributes = new List<KeyValuePair<string, string>>(); 224var meterAttributes = new List<KeyValuePair<string, string>> 259var resources = repository.GetResources(); 357var resources = repository.GetResources(); 464var resources = repository.GetResources(); 573var instruments = repository.GetInstrumentsSummaries(resourceKey); 694var resource1Instruments = repository.GetInstrumentsSummaries(resource1Key); 698var resource2Instruments = repository.GetInstrumentsSummaries(resource2Key); 769var resource1Instruments = repository.GetInstrumentsSummaries(resource1Key); 812var resource2Instruments = repository.GetInstrumentsSummaries(resource2Key); 927var resource1Instruments = repository.GetInstrumentsSummaries(resource1Key); 953var resource2Instruments = repository.GetInstrumentsSummaries(resource2Key); 1034var resource1Instruments = repository.GetInstrumentsSummaries(resource1Key); 1225var resources = repository.GetResources(); 1233var instruments = repository.GetInstrumentsSummaries(resources[0].ResourceKey);
TelemetryRepositoryTests\OtlpSpanTests.cs (1)
29var properties = span.AllProperties();
TelemetryRepositoryTests\ResourceTests.cs (5)
25var resources = repository.GetResources(); 68var resources1 = repository.GetResources(new ResourceKey("app1", InstanceId: null)); 84var resources2 = repository.GetResources(new ResourceKey("app2", InstanceId: null)); 106var resources = repository.GetResources(); 139var resources = repository.GetResources();
TelemetryRepositoryTests\TestOutgoingPeerResolver.cs (1)
12private readonly List<Func<Task>> _callbacks;
TelemetryRepositoryTests\TraceTests.cs (17)
70var resources = repository.GetResources(); 130var resources = repository.GetResources(); 185var resources = repository.GetResources(); 240var resources = repository.GetResources(); 311var resources = repository.GetResources(); 388var resources = repository.GetResources(); 768var attributes = new List<KeyValuePair<string, string>>(); 775var events = new List<Span.Types.Event>(); 805var resources = repository.GetResources(); 929var resources = repository.GetResources(); 953var actualOrder = traces.PagedResult.Items.Select(t => t.TraceId).ToList(); 954var expectedOrder = traces.PagedResult.Items.OrderBy(t => t.FirstSpan.StartTime).Select(t => t.TraceId).ToList(); 1132var propertyKeys = repository.GetTracePropertyKeys(resourceKey)!; 1486var views = resource.GetViews().OrderBy(v => v.Properties.Length).ToList(); 1963var resources = repository.GetResources(includeUninstrumentedPeers: true); 2050var resources = repository.GetResources(includeUninstrumentedPeers: true); 2153var resources = repository.GetResources(includeUninstrumentedPeers: true);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
156public static Span CreateSpan(string traceId, string spanId, DateTime startTime, DateTime endTime, string? parentSpanId = null, List<Span.Types.Event>? events = null, List<Span.Types.Link>? links = null, IEnumerable<KeyValuePair<string, string>>? attributes = null, Span.Types.SpanKind? kind = null)
Aspire.EndToEnd.Tests (2)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
268var tasksToWaitFor = new List<Task> { appRunning.Task, projectsParsed.Task };
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
Aspire.Hosting (163)
ApplicationModel\ReferenceExpression.cs (4)
99private readonly List<IValueProvider> _valueProviders = new(formattedCount); 100private readonly List<string> _manifestExpressions = new(formattedCount); 206private readonly List<IValueProvider> _valueProviders = new(); 207private readonly List<string> _manifestExpressions = new();
ApplicationModel\ResourceCollection.cs (1)
13private readonly List<IResource> _resources = [];
ApplicationModel\ResourceCommandService.cs (3)
72var tasks = new List<Task<ExecuteCommandResult>>(); 80var failures = new List<(string resourceId, ExecuteCommandResult result)>(); 81var cancellations = new List<(string resourceId, ExecuteCommandResult result)>();
ApplicationModel\ResourceExtensions.cs (4)
81List<T>? annotations = null; 242var args = new List<string>(); 284var args = new List<object>(); 400var args = new List<object>();
ApplicationModel\ResourceLoggerService.cs (7)
55var loggers = new List<ILogger>(); 69private sealed class CompositeLogger(List<ILogger> innerLoggers) : ILogger 71private readonly List<ILogger> _innerLoggers = innerLoggers; 75var scopes = new List<IDisposable>(); 98private sealed class CompositeDisposable(List<IDisposable> disposables) : IDisposable 100private readonly List<IDisposable> _disposables = disposables; 395List<LogEntry> inMemoryEntries;
ApplicationModel\ResourceNotificationService.cs (1)
394var pendingDependencies = new List<Task>();
ApplicationModel\ResourceUrlsCallbackContext.cs (2)
16public class ResourceUrlsCallbackContext(DistributedApplicationExecutionContext executionContext, IResource resource, List<ResourceUrlAnnotation>? urls = null, CancellationToken cancellationToken = default) 39public List<ResourceUrlAnnotation> Urls { get; } = urls ?? [];
ConnectionStringBuilderExtensions.cs (1)
48var tasks = new List<Task>();
Dashboard\DashboardLifecycleHook.cs (2)
395var endpointAnnotations = dashboardResource.Annotations.OfType<EndpointAnnotation>().ToList(); 642var allResourceEndpoints = model.Resources
Dashboard\DashboardService.cs (1)
118var inputInstances = inputs.Inputs.Select(input =>
Dashboard\ResourceServiceOptions.cs (1)
46List<string>? errorMessages = null;
Dcp\AppResource.cs (4)
16public virtual List<ServiceAppResource> ServicesProduced { get; } = []; 17public virtual List<ServiceAppResource> ServicesConsumed { get; } = []; 31public override List<ServiceAppResource> ServicesProduced 35public override List<ServiceAppResource> ServicesConsumed
Dcp\DcpExecutor.cs (32)
71private readonly List<AppResource> _appResources = []; 182var tasks = new List<Task>(); 537var logs = new List<LogEntry>(); 722var needAddressAllocated = _appResources.OfType<ServiceAppResource>() 1027var projectArgs = new List<string>(); 1183var tasks = new List<Task>(); 1232if (er.DcpResource.TryGetAnnotationAsObjectList<string>(CustomResource.ResourceProjectArgsAnnotation, out var projectArgs) && projectArgs.Count > 0) 1239(var appHostArgs, var failedToApplyArgs) = await BuildArgsAsync(resourceLogger, er.ModelResource, cancellationToken).ConfigureAwait(false); 1241var launchArgs = BuildLaunchArgs(er, spec, appHostArgs); 1243var executableArgs = launchArgs.Where(a => !a.AnnotationOnly).Select(a => a.Value).ToList(); 1271private static List<(string Value, bool IsSensitive, bool AnnotationOnly)> BuildLaunchArgs(AppResource er, ExecutableSpec spec, List<(string Value, bool IsSensitive)> appHostArgs) 1277var launchArgs = new List<(string Value, bool IsSensitive, bool AnnotationOnly)>(); 1291var launchProfileArgs = GetLaunchProfileArgs(project.GetEffectiveLaunchProfile()?.LaunchProfile); 1308private static List<string> GetLaunchProfileArgs(LaunchProfile? launchProfile) 1424var tasks = new List<Task>(); 1500(var args, var failedToApplyArgs) = await BuildArgsAsync(resourceLogger, modelContainerResource, cancellationToken).ConfigureAwait(false); 1528var dcpBuildArgs = new List<EnvVar>(); 1558var dcpBuildSecrets = new List<BuildContextSecret>(); 1909private async Task<(List<(string Value, bool IsSensitive)>, bool)> BuildArgsAsync(ILogger resourceLogger, IResource modelResource, CancellationToken cancellationToken) 1912var args = new List<(string Value, bool IsSensitive)>(); 1937private async Task<List<ContainerCreateFileSystem>> BuildCreateFilesAsync(IResource modelResource, CancellationToken cancellationToken) 1939var createFiles = new List<ContainerCreateFileSystem>(); 1967private async Task<(List<EnvVar>, bool)> BuildEnvVarsAsync(ILogger resourceLogger, IResource modelResource, CancellationToken cancellationToken) 1970var env = new List<EnvVar>(); 1994private async Task<(List<string>, bool)> BuildRunArgsAsync(ILogger resourceLogger, IResource modelResource, CancellationToken cancellationToken) 1997var runArgs = new List<string>(); 2023private List<string>? GetDebugSupportedResourceTypes() 2030private static List<ContainerPortSpec> BuildContainerPorts(AppResource cr) 2032var ports = new List<ContainerPortSpec>(); 2069private static List<VolumeMount> BuildContainerMounts(IResource container) 2071var volumeMounts = new List<VolumeMount>();
Dcp\DcpHost.cs (1)
248List<Task> outputLoggers = [];
Dcp\DcpKubernetesClient.cs (1)
153private readonly List<string> _parameters = new List<string>();
Dcp\DcpResourceState.cs (3)
10internal sealed class DcpResourceState(Dictionary<string, IResource> applicationModel, List<AppResource> appResources) 17public readonly ConcurrentDictionary<(string, string), List<string>> ResourceAssociatedServicesMap = []; 20public List<AppResource> AppResources { get; } = appResources;
Dcp\KubernetesService.cs (3)
43Task<List<T>> ListAsync<T>(string? namespaceParameter = null, CancellationToken cancellationToken = default) 193public Task<List<T>> ListAsync<T>(string? namespaceParameter = null, CancellationToken cancellationToken = default) 313List<(string name, string value)> queryParams = [
Dcp\Model\Container.cs (21)
27public List<VolumeMount>? VolumeMounts { get; set; } 31public List<ContainerPortSpec>? Ports { get; set; } 35public List<EnvVar>? Env { get; set; } 39public List<string>? EnvFiles { get; set; } 51public List<string>? Args { get; set; } 55public List<ContainerLabel>? Labels { get; set; } 59public List<string>? RunArgs { get; set; } 66public List<ContainerNetworkConnection>? Networks { get; set; } 93public List<ContainerCreateFileSystem>? CreateFiles { get; set; } 108public List<EnvVar>? Args { get; set; } 112public List<BuildContextSecret>? Secrets { get; set; } 120public List<string>? Tags { get; set; } 124public List<ContainerLabel>? Labels { get; set; } 177public List<HealthProbe>? HealthProbes { get; set; } 190 public List<string>? Aliases { get; set; } 319public List<ContainerFileSystemEntry>? Entries { get; set; } 407public List<ContainerFileSystemEntry>? Entries { get; set; } 463public List<EnvVar>? EffectiveEnv { get; set; } 467public List<string>? EffectiveArgs { get; set; } 471public List<string>? Networks { get; set; } 483public List<HealthProbeResult>? HealthProbeResults { get; set;}
Dcp\Model\ContainerExec.cs (6)
29public List<EnvVar>? Env { get; set; } 35public List<string>? EnvFiles { get; set; } 47public List<string>? Args { get; set; } 93public List<EnvVar>? EffectiveEnv { get; set; } 99public List<string>? EffectiveArgs { get; set; } 123public static ContainerExec Create(string name, string containerName, string command, List<string>? args = null, string? workingDirectory = null)
Dcp\Model\Executable.cs (8)
28public List<string>? Args { get; set; } 34public List<EnvVar>? Env { get; set; } 40public List<string>? EnvFiles { get; set; } 52public List<HealthProbe>? HealthProbes { get; set; } 162public List<EnvVar>? EffectiveEnv { get; set; } 168public List<string>? EffectiveArgs { get; set; } 180public List<HealthProbeResult>? HealthProbeResults { get; set; } 260if (this.TryGetAnnotationAsObjectList(LaunchConfigurationsAnnotation, out List<ProjectLaunchConfiguration>? launchConfigurations))
Dcp\Model\ExecutableReplicaSet.cs (1)
44public bool TryGetAnnotationAsObjectList<TValue>(string annotationName, [NotNullWhen(true)] out List<TValue>? list)
Dcp\Model\ModelCommon.cs (9)
67Metadata.Annotations[annotationName] = JsonSerializer.Serialize<List<TValue>>(list.ToList()); 70public bool TryGetAnnotationAsObjectList<TValue>(string annotationName, [NotNullWhen(true)] out List<TValue>? list) 75internal static bool TryGetAnnotationAsObjectList<TValue>(IDictionary<string, string>? annotations, string annotationName, [NotNullWhen(true)] out List<TValue>? list) 93list = JsonSerializer.Deserialize<List<TValue>>(annotationValue); 105List<TValue> values; 110values = JsonSerializer.Deserialize<List<TValue>>(annotationVal) ?? new(); 127var newAnnotationVal = JsonSerializer.Serialize<List<TValue>>(values); 153public required List<T> Items { get; set; } 331public List<HttpProbeHeader>? Headers { get; set; }
Dcp\Model\Network.cs (3)
48public List<string>? Subnets { get; set; } 52public List<string>? Gateways { get; set; } 56public List<string>? ContainerIDs { get; set; }
Dcp\ResourceLogSource.cs (1)
35var streamTasks = new List<Task>();
Dcp\ResourceSnapshotBuilder.cs (7)
208if (!resource.TryGetAnnotationAsObjectList(CustomResource.ResourceAppArgsAnnotation, out List<AppLaunchArgumentAnnotation>? launchArgumentAnnotations)) 240var endpointUrls = resourceUrls.Where(u => u.Endpoint is not null).ToList(); 241var nonEndpointUrls = resourceUrls.Where(u => u.Endpoint is null).ToList(); 243var resourceServices = _resourceState.AppResources.OfType<ServiceAppResource>().Where(r => r.Service.AppModelResourceName == resource.AppModelResourceName).Select(s => s.Service).ToList(); 251var urlsForEndpoint = endpointUrls.Where(u => string.Equals(endpointName, u.Endpoint?.EndpointName, StringComparisons.EndpointAnnotationName)).ToList(); 283private static ImmutableArray<EnvironmentVariableSnapshot> GetEnvironmentVariables(List<EnvVar>? effectiveSource, List<EnvVar>? specSource)
Devcontainers\DevcontainerSettingsWriter.cs (1)
30private readonly List<(string Url, string Port, string Protocol, string Label, bool OpenBrowser)> _pendingPorts = [];
Eventing\DistributedApplicationEventing.cs (5)
12private readonly ConcurrentDictionary<Type, List<DistributedApplicationEventSubscription>> _eventSubscriptionListLookup = new(); 26if (_eventSubscriptionListLookup.TryGetValue(typeof(T), out var subscriptions)) 30var pendingSubscriptionCallbacks = new List<Task>(subscriptions.Count); 85if (_eventSubscriptionListLookup.TryGetValue(typeof(T), out var subscriptions)) 124if (_eventSubscriptionListLookup.TryGetValue(eventType, out var subscriptions))
IInteractionService.cs (1)
173internal List<string> ValidationErrors { get; } = [];
InteractionService.cs (2)
135internal List<Interaction> GetCurrentInteractions() 325List<Interaction> pendingInteractions;
Orchestrator\ApplicationOrchestrator.cs (1)
202var urls = new List<ResourceUrlAnnotation>();
Orchestrator\ParameterProcessor.cs (2)
24private readonly List<ParameterResource> _unresolvedParameters = []; 143var resourceInputs = new List<(ParameterResource ParameterResource, InteractionInput Input)>();
Publishing\ManifestPublishingContext.cs (3)
531var args = new List<(object, string)>(); 569var bindMounts = mounts.Where(mounts => mounts.Type == ContainerMountType.BindMount).ToList(); 595var volumes = mounts.Where(mounts => mounts.Type == ContainerMountType.Volume).ToList();
Publishing\Publisher.cs (2)
43var publishingResources = new List<IResource>(); 44var deployingResources = new List<IResource>();
Publishing\PublishingActivityReporter.cs (2)
286var promptInputs = inputsInfo.Inputs.Select(input => new PublishingPromptInput 313var promptInputs = new List<PublishingPromptInput>
ResourceLoggerForwarderService.cs (1)
40var logWatchTasks = new List<Task>();
src\Shared\ChannelExtensions.cs (1)
34List<T>? batch = null;
src\Shared\CircularBuffer.cs (2)
19internal readonly List<T> _buffer; 29internal CircularBuffer(List<T> buffer, int capacity, int start, int end)
src\Shared\CommandLineArgsParser.cs (4)
13var result = new List<string>(); 21public static List<string> Parse(string arguments) 23var result = new List<string>(); 36private static void ParseArgumentsIntoList(string arguments, List<string> results)
src\Shared\ConsoleLogs\LogEntries.cs (2)
18private readonly List<LogPauseViewModel> _pauseViewModels = []; 43var pauseEntries = _logEntries.Where(e => e.Type == LogEntryType.Pause && _pauseViewModels.Contains(e.Pause!)).ToList();
src\Shared\CustomResourceSnapshotExtensions.cs (2)
36var existingProperties = new List<ResourcePropertySnapshot>(properties); 37var propertiesToAdd = new List<ResourcePropertySnapshot>();
src\Shared\PackageUpdateHelpers.cs (2)
116public static List<NuGetPackage> ParsePackageSearchResults(string stdout, string? packageId = null) 118var foundPackages = new List<NuGetPackage>();
VersionChecking\IPackageFetcher.cs (1)
10Task<List<NuGetPackage>> TryFetchPackagesAsync(string appHostDirectory, CancellationToken cancellationToken);
VersionChecking\PackageFetcher.cs (1)
26public async Task<List<NuGetPackage>> TryFetchPackagesAsync(string appHostDirectory, CancellationToken cancellationToken)
VersionChecking\VersionCheckService.cs (1)
96List<NuGetPackage>? packages = null;
Aspire.Hosting.Analyzers (1)
Infrastructure\BoundedCacheWithFactory.cs (1)
18private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Aspire.Hosting.Azure (30)
AzureDeployingContext.cs (6)
34var bicepResources = model.Resources.OfType<AzureBicepResource>() 63private async Task<bool> TryProvisionAzureBicepResources(List<AzureBicepResource> bicepResources, ProvisioningContext provisioningContext, CancellationToken cancellationToken) 111var resourcesByRegistry = new Dictionary<IContainerRegistry, List<IResource>>(); 117if (!resourcesByRegistry.TryGetValue(registry, out var resourceList)) 138var computeResources = model.GetComputeResources().ToList(); 220private async Task ProcessResourcesForRegistry(IContainerRegistry registry, List<IResource> resources, CancellationToken cancellationToken)
AzurePublishingContext.cs (2)
126var bicepResourcesToPublish = model.Resources.OfType<AzureBicepResource>() 225var computeEnvironments = new List<IAzureComputeEnvironmentResource>();
AzureResourcePreparer.cs (8)
25var azureResources = GetAzureResourcesFromAppModel(appModel); 51internal static List<(IResource Resource, IAzureResource AzureResource)> GetAzureResourcesFromAppModel(DistributedApplicationModel appModel) 58var azureResources = new List<(IResource, IAzureResource)>(); 104private async Task BuildRoleAssignmentAnnotations(DistributedApplicationModel appModel, List<(IResource Resource, IAzureResource AzureResource)> azureResources, AzureProvisioningOptions options, CancellationToken cancellationToken) 257private static (AzureUserAssignedIdentityResource IdentityResource, List<AzureBicepResource> RoleAssignmentResources) CreateIdentityAndRoleAssignmentResources( 285var roleAssignmentResources = CreateRoleAssignmentsResources(provisioningOptions, resource, roleAssignments, identityResource, executionContext); 289private static List<AzureBicepResource> CreateRoleAssignmentsResources( 296var roleAssignmentResources = new List<AzureBicepResource>();
Provisioning\Internal\DefaultArmClientProvider.cs (2)
55var subscriptions = new List<ISubscriptionResource>(); 68var locations = new List<(string Name, string DisplayName)>();
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (5)
107var subscriptionList = availableSubscriptions.ToList(); 112var subscriptionOptions = subscriptionList 191var locationList = availableLocations.ToList(); 196var locationOptions = locationList 250var locations = typeof(AzureLocation).GetProperties(BindingFlags.Public | BindingFlags.Static)
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
103var locations = typeof(AzureLocation).GetProperties(BindingFlags.Public | BindingFlags.Static)
Provisioning\Provisioners\AzureProvisioner.cs (3)
39var azureResources = AzureResourcePreparer.GetAzureResourcesFromAppModel(appModel); 64var childResources = _parentChildLookup[resource.Resource].ToList(); 177var tasks = new List<Task>();
Provisioning\Provisioners\BicepProvisioner.cs (1)
71var portalUrls = new List<UrlSnapshot>();
src\Shared\CustomResourceSnapshotExtensions.cs (2)
36var existingProperties = new List<ResourcePropertySnapshot>(properties); 37var propertiesToAdd = new List<ResourcePropertySnapshot>();
Aspire.Hosting.Azure.AIFoundry (2)
AzureAIFoundryResource.cs (1)
20private readonly List<AzureAIFoundryDeploymentResource> _deployments = [];
LocalModelHealthCheck.cs (1)
18var loadedModels = await manager.ListLoadedModelsAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.AppContainers (3)
ContainerAppContext.cs (3)
33private readonly List<int> _additionalPorts = []; 39public List<object> Args { get; } = []; 314var endpointsByTargetPort = endpoints.GroupBy(e => e.TargetPort)
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceWebsiteContext.cs (2)
29public List<object> Args { get; } = []; 266var args = new List<BicepValue<string>>();
Aspire.Hosting.Azure.CognitiveServices (2)
AzureOpenAIResource.cs (2)
19private readonly List<AzureOpenAIDeployment> _deployments = []; 20private readonly List<AzureOpenAIDeploymentResource> _deploymentResources = [];
Aspire.Hosting.Azure.CosmosDB (5)
AzureCosmosDBDatabaseResource.cs (1)
27internal List<AzureCosmosDBContainerResource> Containers { get; } = [];
AzureCosmosDBResource.cs (1)
23internal List<AzureCosmosDBDatabaseResource> Databases { get; } = [];
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubResource.cs (1)
46internal List<AzureEventHubConsumerGroupResource> ConsumerGroups { get; } = [];
AzureEventHubsResource.cs (1)
29internal List<AzureEventHubResource> Hubs { get; } = [];
Aspire.Hosting.Azure.Functions (5)
AzureFunctionsProjectResourceExtensions.cs (1)
156var commandLineArgs = CommandLineArgsParser.Parse(launchProfile.LaunchProfile.CommandLineArgs ?? string.Empty);
src\Shared\CommandLineArgsParser.cs (4)
13var result = new List<string>(); 21public static List<string> Parse(string arguments) 23var result = new List<string>(); 36private static void ParseArgumentsIntoList(string arguments, List<string> results)
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultResource.cs (1)
21internal List<AzureKeyVaultSecretResource> Secrets { get; } = [];
Aspire.Hosting.Azure.ServiceBus (4)
AzureServiceBusResource.cs (2)
18internal List<AzureServiceBusQueueResource> Queues { get; } = []; 19internal List<AzureServiceBusTopicResource> Topics { get; } = [];
AzureServiceBusSubscriptionResource.cs (1)
90public List<AzureServiceBusRule> Rules { get; } = [];
AzureServiceBusTopicResource.cs (1)
66internal List<AzureServiceBusSubscriptionResource> Subscriptions { get; } = [];
Aspire.Hosting.Azure.SignalR (1)
AzureSignalRExtensions.cs (1)
96List<SignalRBuiltInRole> defaultRoles = [SignalRBuiltInRole.SignalRAppServer];
Aspire.Hosting.Azure.Storage (2)
AzureStorageResource.cs (2)
30internal List<AzureBlobStorageContainerResource> BlobContainers { get; } = []; 32internal List<AzureQueueStorageQueueResource> Queues { get; } = [];
Aspire.Hosting.Azure.Tests (11)
AzureEventHubsExtensionsTests.cs (1)
242var endpoints = eventHubs.Resource.Annotations.OfType<EndpointAnnotation>().ToList();
AzureFunctionsTests.cs (3)
58var args = await ArgumentEvaluator.GetArgumentListAsync(functionsResource); 85var args = await ArgumentEvaluator.GetArgumentListAsync(functionsResource); 265var args = await ArgumentEvaluator.GetArgumentListAsync(functionsResource);
AzureStorageExtensionsTests.cs (2)
146var args = await ArgumentEvaluator.GetArgumentListAsync(storage.Resource); 166var args = await ArgumentEvaluator.GetArgumentListAsync(storage.Resource);
ProvisioningTestHelpers.cs (5)
215var subscriptions = new List<ISubscriptionResource> 224var locations = new List<(string Name, string DisplayName)> 612public List<ExecutedCommand> ExecutedCommands { get; } = []; 662public List<ApplicationModel.IResource> BuildImageResources { get; } = []; 663public List<ContainerBuildOptions?> BuildImageOptions { get; } = [];
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubHubResource.cs (1)
43internal List<(ReferenceExpression url, string userEvents, string[]? systemEvents, UpstreamAuthSettings? auth)> EventHandlers { get; } = new();
Aspire.Hosting.Containers.Tests (5)
ContainerResourceTests.cs (1)
121var args = await ArgumentEvaluator.GetArgumentListAsync(c2.Resource);
WithDockerfileTests.cs (4)
189var containers = await kubernetes.ListAsync<Container>(); 221var containers = await kubernetes.ListAsync<Container>(); 449var containers = await kubernetes.ListAsync<Container>(); 519var containers = await kubernetes.ListAsync<Container>();
Aspire.Hosting.Docker (31)
DockerComposeEnvironmentContext.cs (1)
132var keysToRemove = environmentVariables
DockerComposePublishingContext.cs (1)
79var containerImagesToBuild = new List<IResource>();
DockerComposeServiceResource.cs (3)
57internal List<object> Args { get; } = []; 62internal List<Volume> Volumes { get; } = []; 180var args = new List<string>();
EnvFile.cs (1)
8private readonly List<string> _lines = [];
Resources\ComposeNodes\Service.cs (20)
59public List<string> Command { get; set; } = []; 67public List<string> Entrypoint { get; set; } = []; 86public List<string> EnvFile { get; set; } = []; 101public List<string> Ports { get; set; } = []; 110public List<string> Expose { get; set; } = []; 122public List<Volume> Volumes { get; set; } = []; 153public List<string> Networks { get; set; } = []; 253public List<string> CapAdd { get; set; } = []; 261public List<string> CapDrop { get; set; } = []; 275public List<string> Devices { get; set; } = []; 281public List<string> Dns { get; set; } = []; 290public List<string> DnsSearch { get; set; } = []; 306public List<string> GroupAdd { get; set; } = []; 320public List<string> Links { get; set; } = []; 328public List<string> ExternalLinks { get; set; } = []; 348public List<string> Profiles { get; set; } = []; 364public List<string> SecurityOpt { get; set; } = []; 374public List<SecretReference> Secrets { get; set; } = []; 382public List<ConfigReference> Configs { get; set; } = []; 420public List<string> Tmpfs { get; set; } = [];
Resources\ServiceNodes\Build.cs (1)
56public List<string> CacheFrom { get; set; } = [];
Resources\ServiceNodes\Healthcheck.cs (1)
21public List<string> Test { get; set; } = [];
Resources\ServiceNodes\Ipam.cs (1)
33public List<Dictionary<string, string>> Config { get; set; } = [];
Resources\ServiceNodes\Swarm\Placement.cs (2)
21public List<string>? Constraints { get; set; } 31public List<Dictionary<string, string>>? Preferences { get; set; }
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
141var garnetCommand = new List<string>
Aspire.Hosting.Garnet.Tests (1)
AddGarnetTests.cs (1)
286var args = await ArgumentEvaluator.GetArgumentListAsync(builder.Resource);
Aspire.Hosting.GitHub.Models.Tests (1)
GitHubModelsExtensionTests.cs (1)
287var healthCheckAnnotations = github.Resource.Annotations.OfType<HealthCheckAnnotation>().ToList();
Aspire.Hosting.Kubernetes (99)
KubernetesResource.cs (5)
25internal List<string> Commands { get; } = []; 26internal List<VolumeMountV1> Volumes { get; } = []; 27internal List<PersistentVolume> PersistentVolumes { get; } = []; 28internal List<PersistentVolumeClaim> PersistentVolumeClaims { get; } = []; 52public List<BaseKubernetesResource> AdditionalResources { get; } = [];
Resources\AggregationRuleV1.cs (1)
22public List<LabelSelectorV1> ClusterRoleSelectors { get; } = [];
Resources\CapabilitiesV1.cs (2)
24public List<string> Add { get; } = []; 31public List<string> Drop { get; } = [];
Resources\ClusterRoleBindingV1.cs (1)
39public List<SubjectV1> Subjects { get; } = [];
Resources\ClusterRoleV1.cs (1)
42public List<PolicyRuleV1> Rules { get; } = [];
Resources\ConfigMapVolumeSourceV1.cs (1)
51public List<KeyToPathV1> Items { get; } = [];
Resources\ContainerV1.cs (8)
26public List<string> Command { get; } = []; 98public List<EnvFromSourceV1> EnvFrom { get; } = []; 124public List<string> Args { get; } = []; 134public List<ContainerPortV1> Ports { get; } = []; 147public List<VolumeDeviceV1> VolumeDevices { get; } = []; 154public List<VolumeMountV1> VolumeMounts { get; } = []; 172public List<EnvVarV1> Env { get; } = []; 192public List<ContainerResizePolicyV1> ResizePolicy { get; } = [];
Resources\EphemeralContainerV1.cs (8)
21public List<string> Command { get; } = []; 105public List<EnvFromSourceV1> EnvFrom { get; } = []; 128public List<string> Args { get; } = []; 136public List<ContainerPortV1> Ports { get; } = []; 150public List<VolumeDeviceV1> VolumeDevices { get; } = []; 157public List<VolumeMountV1> VolumeMounts { get; } = []; 180public List<EnvVarV1> Env { get; } = []; 203public List<ContainerResizePolicyV1> ResizePolicy { get; } = [];
Resources\ExecActionV1.cs (1)
25public List<string> Command { get; } = [];
Resources\FieldSelectorAttributesV1.cs (1)
30public List<FieldSelectorRequirementV1> Requirements { get; } = [];
Resources\FieldSelectorRequirementV1.cs (1)
35public List<string> Values { get; } = [];
Resources\FsGroupStrategyOptionsV1Beta1.cs (1)
30public List<IdRangeV1Beta1> Ranges { get; } = [];
Resources\HelmChart.cs (4)
70public List<string> Keywords { get; set; } = []; 89public List<string> Sources { get; set; } = []; 96public List<HelmChartDependency> Dependencies { get; set; } = []; 106public List<HelmChartMaintainer> Maintainers { get; set; } = [];
Resources\HelmChartDependency.cs (2)
53public List<string> Tags { get; set; } = []; 60public List<string> ImportValues { get; set; } = [];
Resources\HorizontalPodAutoscalerSpecV2.cs (1)
55public List<MetricSpecV2> Metrics { get; } = [];
Resources\HostAliasV1.cs (1)
29public List<string> Hostnames { get; } = [];
Resources\HPAScalingRulesV2.cs (1)
29public List<HpaScalingPolicyV2> Policies { get; } = [];
Resources\HTTPGetActionV1.cs (1)
43public List<HttpHeaderV1> HttpHeaders { get; } = [];
Resources\HTTPIngressRuleValueV1.cs (1)
28public List<HttpIngressPathV1> Paths { get; } = [];
Resources\IngressSpecV1.cs (2)
48public List<IngressRuleV1> Rules { get; } = []; 58public List<IngressTLSV1> Tls { get; } = [];
Resources\IngressTLSV1.cs (1)
37public List<string> Hosts { get; } = [];
Resources\LabelSelectorAttributesV1.cs (1)
28public List<LabelSelectorRequirementV1> Requirements { get; } = [];
Resources\LabelSelectorRequirementV1.cs (1)
31public List<string> Values { get; } = [];
Resources\LabelSelectorV1.cs (1)
26public List<LabelSelectorRequirementV1> MatchExpressions { get; set; } = [];
Resources\NamespaceSpecV1.cs (1)
26public List<string> Finalizers { get; } = [];
Resources\NodeAffinityV1.cs (1)
33public List<PreferredSchedulingTermV1> PreferredDuringSchedulingIgnoredDuringExecution { get; } = [];
Resources\NodeSelectorRequirementV1.cs (1)
31public List<string> Values { get; } = [];
Resources\NodeSelectorTermV1.cs (2)
29public List<NodeSelectorRequirementV1> MatchExpressions { get; } = []; 41public List<NodeSelectorRequirementV1> MatchFields { get; } = [];
Resources\NodeSelectorV1.cs (1)
22public List<NodeSelectorTermV1> NodeSelectorTerms { get; } = [];
Resources\ObjectMetaV1.cs (3)
158public List<string> Finalizers { get; } = []; 181public List<ManagedFieldsEntryV1> ManagedFields { get; } = []; 192public List<OwnerReferenceV1> OwnerReferences { get; } = [];
Resources\PersistentVolumeClaimSpecV1.cs (1)
116public List<string> AccessModes { get; } = [];
Resources\PersistentVolumeSpecV1.cs (2)
77public List<string> AccessModes { get; } = []; 85public List<string> MountOptions { get; } = [];
Resources\PodAffinityTermV1.cs (3)
52public List<string> MatchLabelKeys { get; } = []; 66public List<string> MismatchLabelKeys { get; } = []; 80public List<string> Namespaces { get; } = [];
Resources\PodAffinityV1.cs (2)
33public List<WeightedPodAffinityTermV1> PreferredDuringSchedulingIgnoredDuringExecution { get; } = []; 45public List<PodAffinityTermV1> RequiredDuringSchedulingIgnoredDuringExecution { get; } = [];
Resources\PodAntiAffinityV1.cs (2)
32public List<WeightedPodAffinityTermV1> PreferredDuringSchedulingIgnoredDuringExecution { get; } = []; 42public List<PodAffinityTermV1> RequiredDuringSchedulingIgnoredDuringExecution { get; } = [];
Resources\PodDNSConfigV1.cs (3)
27public List<string> Nameservers { get; } = []; 38public List<PodDnsConfigOptionV1> Options { get; } = []; 50public List<string> Searches { get; } = [];
Resources\PodSecurityContextV1.cs (2)
85public List<long> SupplementalGroups { get; } = []; 93public List<SysctlV1> Sysctls { get; } = [];
Resources\PodSpecV1.cs (11)
173public List<ContainerV1> Containers { get; } = []; 189public List<EphemeralContainerV1> EphemeralContainers { get; } = []; 197public List<HostAliasV1> HostAliases { get; } = []; 216public List<LocalObjectReferenceV1> ImagePullSecrets { get; } = []; 226public List<ContainerV1> InitContainers { get; } = []; 242public List<PodReadinessGateV1> ReadinessGates { get; } = []; 250public List<PodResourceClaimV1> ResourceClaims { get; } = []; 258public List<PodSchedulingGateV1> SchedulingGates { get; } = []; 276public List<TolerationV1> Tolerations { get; } = []; 284public List<TopologySpreadConstraintV1> TopologySpreadConstraints { get; } = []; 292public List<VolumeV1> Volumes { get; } = [];
Resources\PolicyRuleV1.cs (5)
26public List<string> ApiGroups { get; } = []; 35public List<string> NonResourceUrLs { get; } = []; 43public List<string> ResourceNames { get; } = []; 51public List<string> Resources { get; } = []; 59public List<string> Verbs { get; } = [];
Resources\ResourceRequirementsV1.cs (1)
23public List<ResourceClaimV1> Claims { get; } = [];
Resources\RoleBindingV1.cs (1)
40public List<SubjectV1> Subjects { get; } = [];
Resources\RoleV1.cs (1)
32public List<PolicyRuleV1> Rules { get; } = [];
Resources\SecretVolumeSourceV1.cs (1)
69public List<KeyToPathV1> Items { get; } = [];
Resources\ServiceSpecV1.cs (5)
115public List<string> ClusterIPs { get; } = []; 125public List<string> ExternalIPs { get; } = []; 137public List<string> IpFamilies { get; } = []; 162public List<string> LoadBalancerSourceRanges { get; } = []; 173public List<ServicePortV1> Ports { get; } = [];
Resources\StatefulSetSpecV1.cs (1)
90public List<PersistentVolumeClaim> VolumeClaimTemplates { get; } = [];
Resources\TopologySpreadConstraintV1.cs (1)
67public List<string> MatchLabelKeys { get; } = [];
Aspire.Hosting.MongoDB.Tests (4)
MongoDbFunctionalTests.cs (4)
207var results = await collection.Find(new BsonDocument()).ToListAsync(token); 321var results = await collection.Find(new BsonDocument()).ToListAsync(token); 412var results = await collection.Find(new BsonDocument()).ToListAsync(token); 441var results = await collection.Find(new BsonDocument()).ToListAsync(token);
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
14private readonly List<MySqlDatabaseResource> _databaseResources = [];
Aspire.Hosting.MySql.Tests (1)
MySqlFunctionalTests.cs (1)
529var cars = await dbContext.Cars.ToListAsync(token);
Aspire.Hosting.Nats (1)
NatsBuilderExtensions.cs (1)
117var args = new List<string> { "-js" };
Aspire.Hosting.Nats.Tests (3)
AddNatsTests.cs (2)
118var args = await ArgumentEvaluator.GetArgumentListAsync(containerResource); 164var args = await ArgumentEvaluator.GetArgumentListAsync(containerResource);
NatsFunctionalTests.cs (1)
287var events = new List<AppEvent>();
Aspire.Hosting.OpenAI.Tests (1)
OpenAIExtensionTests.cs (1)
232var healthCheckAnnotations = openai.Resource.Annotations.OfType<HealthCheckAnnotation>().ToList();
Aspire.Hosting.Oracle.Tests (4)
OracleFunctionalTests.cs (4)
64var cars = await dbContext.Cars.ToListAsync(cts.Token); 205var brands = await dbContext.Cars.ToListAsync(cancellationToken: cts.Token); 320var brands = await dbContext.Cars.ToListAsync(cancellationToken: cts.Token); 417var brands = await dbContext.Cars.ToListAsync(cancellationToken: cts.Token);
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
493var bookmarkFiles = new List<ContainerFileSystemItem>();
Aspire.Hosting.Python.Tests (3)
AddPythonAppTests.cs (3)
161var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance); 184var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance); 236var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(pythonProjectResource, TestServiceProvider.Instance);
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
155var containerAnnotations = builder.Resource.Annotations.OfType<ContainerImageAnnotation>().ToList();
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
103var redisCommand = new List<string>
Aspire.Hosting.Redis.Tests (3)
AddRedisTests.cs (1)
667var args = await ArgumentEvaluator.GetArgumentListAsync(builder.Resource);
RedisFunctionalTests.cs (2)
155var databases = await response.Content.ReadFromJsonAsync<List<RedisInsightDatabaseModel>>(cts.Token);
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
72private readonly List<SqlServerDatabaseResource> _databaseResources = [];
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
112var cars = await dbContext.Cars.ToListAsync(cts.Token);
Aspire.Hosting.Testing.Tests (7)
TestingBuilderTests.cs (3)
25var realBuilderProperties = typeof(IDistributedApplicationBuilder).GetProperties().Select(p => p.Name).ToList(); 26var testBuilderProperties = typeof(IDistributedApplicationTestingBuilder).GetProperties().Select(p => p.Name).ToList(); 27var missingProperties = realBuilderProperties.Except(testBuilderProperties).ToList();
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (2)
99var table = logTexts.ToList(); 128var logWatchTasks = new List<Task>();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
18var logs = new List<LogLine>(); 35var logs = new List<LogLine>();
Aspire.Hosting.Tests (136)
Backchannel\Exec\ContainerResourceExecTests.cs (2)
32var logs = await ExecWithLogCollectionAsync(app); 56var logs = await ExecWithLogCollectionAsync(app);
Backchannel\Exec\ExecTestsBase.cs (3)
22internal async Task<List<CommandOutput>> ExecWithLogCollectionAsync( 31var logs = new List<CommandOutput>(); 46internal static void AssertLogsContain(List<CommandOutput> logs, params string[] expectedLogMessages)
Backchannel\Exec\ProjectResourceExecTests.cs (5)
29var logs = await ExecWithLogCollectionAsync(app); 52var logs = await ExecWithLogCollectionAsync(app); 73var logs = await ExecWithLogCollectionAsync(app); 94var logs = await ExecWithLogCollectionAsync(app); 117var logs = await ExecWithLogCollectionAsync(app);
Dashboard\DashboardLifecycleHookTests.cs (4)
242var args = new List<object>(); 327var args = new List<object>(); 399var args = new List<object>(); 469var args = new List<object>();
Dashboard\DashboardResourceTests.cs (3)
50var args = await ArgumentEvaluator.GetArgumentListAsync(dashboard).DefaultTimeout(); 114var config = (await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout()) 184var args = await ArgumentEvaluator.GetArgumentListAsync(dashboard).DefaultTimeout();
Dcp\DcpExecutorTests.cs (33)
66var startingEvents = new List<OnResourceStartingContext>(); 88var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 156var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 161var callArgs = executionType == ExecutionType.IDE ? exe.Spec.Args : exe.Spec.Args![^(expectedArgs?.Length ?? 0)..]; 164Assert.True(exe.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations)); 199var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 207Assert.True(exe1.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations1)); 225Assert.True(exe2.TryGetAnnotationAsObjectList<AppLaunchArgumentAnnotation>(CustomResource.ResourceAppArgsAnnotation, out var argAnnotations2)); 244Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 276Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 308Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 341Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 398Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 432Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 466Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 552var executables = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 791var exes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 796Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 836var exes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 841Assert.True(dcpExe.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 874Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 909Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 990Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 1026Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 1063Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 1100Assert.True(dcpCtr.TryGetAnnotationAsObjectList<ServiceProducerAnnotation>(CustomResource.ServiceProducerAnnotation, out var spAnnList)); 1269var serviceProducers = JsonSerializer.Deserialize<List<ServiceProducerAnnotation>>(annotations[CustomResource.ServiceProducerAnnotation]); 1310var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 1315Assert.True(debuggableExe.TryGetAnnotationAsObjectList<ProjectLaunchConfiguration>(Executable.LaunchConfigurationsAnnotation, out var launchConfigs1)); 1356var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 1393var dcpExes = kubernetesService.CreatedResources.OfType<Executable>().ToList(); 1411var commandAnnotations = resource.Annotations.OfType<ResourceCommandAnnotation>().ToList();
Dcp\TestKubernetesService.cs (2)
27private readonly List<Channel<(WatchEventType, CustomResource)>> _watchChannels = []; 124public Task<List<T>> ListAsync<T>(string? namespaceParameter = null, CancellationToken cancellationToken = default) where T : CustomResource
DistributedApplicationModelExtensionsTests.cs (1)
28var result = appModel.GetComputeResources().ToList();
DistributedApplicationTests.cs (9)
529var list = await s.ListAsync<Container>().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 551var createFileEntries = new List<ContainerFileSystemItem> 582var list = await s.ListAsync<Container>().DefaultTimeout(TestConstants.DefaultOrchestratorTestLongTimeout); 1177var exeList = await s.ListAsync<Executable>().DefaultTimeout(); 1185var list = await s.ListAsync<Container>().DefaultTimeout(); 1232var serviceList = await s.ListAsync<Service>().DefaultTimeout(); 1235var exeList = await s.ListAsync<Executable>().DefaultTimeout(); 1243var list = await s.ListAsync<Container>().DefaultTimeout(); 1298var networks = await s.ListAsync<ContainerNetwork>().DefaultTimeout();
ExecutableResourceTests.cs (1)
44var args = await ArgumentEvaluator.GetArgumentListAsync(exe2.Resource).DefaultTimeout();
InteractionServiceTests.cs (10)
415var inputs = new List<InteractionInput> 455var inputs = new List<InteractionInput> 489var inputs = new List<InteractionInput> 512var inputs = new List<InteractionInput> 527var inputs = new List<InteractionInput> 542var inputs = new List<InteractionInput> 575var inputs = new List<InteractionInput> 612var inputs = new List<InteractionInput> 628var inputs = new List<InteractionInput> 667var inputs = new List<InteractionInput>
ManifestGenerationTests.cs (1)
157var verify = new List<Action<JsonElement>>();
Orchestrator\ParameterProcessorTests.cs (4)
77var updates = new List<(IResource Resource, CustomResourceSnapshot Snapshot)>(); 177List<ParameterResource> parameters = [param1, param2, secretParam]; 411List<ParameterResource> parameters = [param1, param2]; 455List<ParameterResource> parameters = [secretParam];
ProjectResourceTests.cs (2)
597var args = await ArgumentEvaluator.GetArgumentListAsync(project.Resource).DefaultTimeout(); 656var resolvedArgs = new List<string>();
PublishingTests.cs (2)
121var callOrder = new List<string>(); 151var deployingCallbacks = new List<string>();
ResourceCommandServiceTests.cs (2)
104var resolvedResourceNames = custom.Resource.GetResolvedResourceNames().ToList(); 141var resolvedResourceNames = resourceBuilder.Resource.GetResolvedResourceNames().ToList();
ResourceLoggerServiceTests.cs (4)
241var sortedLogs = allLogs.OrderBy(l => l.LineNumber).ToList(); 289var allLogs = new List<LogLine>(); 295var sortedLogs = allLogs.OrderBy(l => l.LineNumber).ToList(); 303var consoleLogsSourceLogs = sortedLogs.Slice(4, 2).ToList();
ResourceNotificationTests.cs (9)
50async Task<List<ResourceEvent>> GetValuesAsync(CancellationToken cancellationToken) 52var values = new List<ResourceEvent>(); 74var values = await enumerableTask.DefaultTimeout(); 103async Task<List<ResourceEvent>> GetValuesAsync(CancellationToken cancellation) 105var values = new List<ResourceEvent>(); 129var values = await enumerableTask.DefaultTimeout(); 444async Task<List<ResourceEvent>> GetValuesAsync(CancellationToken cancellationToken) 446var values = new List<ResourceEvent>(); 477var values = await enumerableTask.DefaultTimeout();
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
StableConnectionStringBuilderTests.cs (2)
215var actual = builder.ToList(); 295var keys = builder.ToList();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
18var logs = new List<LogLine>(); 35var logs = new List<LogLine>();
Utils\ArgumentEvaluator.cs (2)
11public static async ValueTask<List<string>> GetArgumentListAsync(IResource resource, IServiceProvider? serviceProvider = null) 13var args = new List<string>();
Utils\CommandLineArgsParserTests.cs (1)
25var actualParsed = Parse(commandLine);
Utils\Grpc\TestServerCallContext.cs (1)
24_authContext = new AuthContext(string.Empty, new Dictionary<string, List<AuthProperty>>());
Utils\LoggerNotificationExtensions.cs (2)
99var table = logTexts.ToList(); 128var logWatchTasks = new List<Task>();
Utils\ManifestUtils.cs (1)
45var results = new List<JsonNode>();
Utils\StringComparersTests.cs (8)
16var comparers = typeof(StringComparers).GetProperties(flags).OrderBy(c => c.Name, StringComparer.Ordinal).ToList(); 17var comparisons = typeof(StringComparisons).GetProperties(flags).OrderBy(c => c.Name, StringComparer.Ordinal).ToList(); 47var comparerNames = comparers.Select(c => c.Name).ToList(); 48var comparisonNames = comparisons.Select(c => c.Name).ToList(); 52var extraComparers = comparerNames.Except(comparisonNames, StringComparer.Ordinal).ToList(); 53var extraComparisons = comparisonNames.Except(comparerNames, StringComparer.Ordinal).ToList(); 67var comparerValues = comparers.Select(c => (c.Name, Value: (StringComparer)c.GetValue(null)!)).ToList(); 68var comparisonValues = comparisons.Select(c => (c.Name, Value: (StringComparison)c.GetValue(null)!)).ToList();
VersionChecking\PackageUpdateHelpersTests.cs (5)
52var packages = PackageUpdateHelpers.ParsePackageSearchResults(json, "Aspire.Hosting.AppHost"); 100var packages = PackageUpdateHelpers.ParsePackageSearchResults(json, "Aspire.Hosting.AppHost"); 148var packages = PackageUpdateHelpers.ParsePackageSearchResults(json, "Aspire.Hosting.AppHost"); 162var packages = PackageUpdateHelpers.ParsePackageSearchResults(json, "Aspire.Hosting.AppHost"); 210var packages = PackageUpdateHelpers.ParsePackageSearchResults(json, "Aspire.Hosting.AppHost");
VersionChecking\VersionCheckServiceTests.cs (10)
24var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 81var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 117var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 157var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 191var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 227var packagesTcs = new TaskCompletionSource<List<NuGetPackage>>(); 294private readonly Task<List<NuGetPackage>> _versionTask; 298public TestPackageFetcher(Task<List<NuGetPackage>>? versionTask = null) 300_versionTask = versionTask ?? Task.FromResult<List<NuGetPackage>>([]); 303public Task<List<NuGetPackage>> TryFetchPackagesAsync(string appHostDirectory, CancellationToken cancellationToken)
WithHttpCommandTests.cs (1)
151var commands = resourceBuilder.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToList();
WithIconNameTests.cs (1)
90var iconAnnotations = container.Resource.Annotations.OfType<ResourceIconAnnotation>().ToList();
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
155var valkeyCommand = new List<string>
Aspire.Hosting.Valkey.Tests (1)
AddValkeyTests.cs (1)
345var args = await ArgumentEvaluator.GetArgumentListAsync(builder.Resource);
Aspire.Hosting.Yarp (7)
ConfigurationBuilder\YarpRoute.cs (1)
152List<IReadOnlyDictionary<string, string>> transforms;
YarpEnvConfigGenerator.cs (2)
15public static void PopulateEnvVariables(Dictionary<string, object> environmentVariables, List<YarpRoute> routes, List<YarpCluster> clusters)
YarpJsonConfigGeneratorBuilder.cs (2)
15private readonly List<ClusterConfig> _clusterConfigs = new List<ClusterConfig>(); 16private readonly List<RouteConfig> _routeConfigs = new List<RouteConfig>();
YarpResource.cs (2)
14internal List<YarpRoute> Routes { get; } = new (); 16internal List<YarpCluster> Clusters { get; } = new ();
Aspire.Hosting.Yarp.Tests (2)
YarpConfigGeneratorTests.cs (2)
18private readonly List<RouteConfig> _validRoutes = 115private readonly List<ClusterConfig> _validClusters =
Aspire.Microsoft.Azure.Cosmos (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (1)
13private readonly List<IDisposable> listenerSubscriptions;
Aspire.Microsoft.EntityFrameworkCore.Cosmos (3)
src\Shared\StableConnectionStringBuilder.cs (3)
22private readonly List<ConnectionStringSegment> _segments; 169private static List<ConnectionStringSegment> ParseSegments(string connectionString) 176var segments = new List<ConnectionStringSegment>();
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\DiagnosticSourceSubscriber.cs (1)
13private readonly List<IDisposable> listenerSubscriptions;
Aspire.NATS.Net.Tests (1)
AspireNatsClientExtensionsTests.cs (1)
227var activityList = await notifier.TakeAsync(1, TimeSpan.FromSeconds(10));
Aspire.Oracle.EntityFrameworkCore.Tests (1)
ConformanceTests.cs (1)
150List<Activity> exportedActivities = new();
Aspire.Playground.Tests (13)
AppHostTests.cs (6)
86var endpoints = resourceEndpoints[resource]; 281Dictionary<string, List<string>> resourceEndpoints, 282List<ReadyStateText>? waitForTexts = null) 291public List<ResourceWait>? WaitForResources { get; set; } 293public List<ReadyStateText>? WaitForTexts { get; set; } 295public Dictionary<string, List<string>>? ResourceEndpoints { get; set; }
Infrastructure\DistributedApplicationExtensions.cs (5)
28var parameters = builder.Resources.OfType<ParameterResource>().Where(p => !p.IsConnectionString).ToList(); 52var allResourceNamedVolumes = builder.Resources.SelectMany(r => r.Annotations 117var appHostLogs = logs.Where(l => l.Category?.StartsWith($"{environment.ApplicationName}.Resources") == false).ToList(); 118var resourceLogs = logs.Where(l => l.Category?.StartsWith($"{environment.ApplicationName}.Resources") == true).ToList(); 134var assertableResourceLogNames = applicationModel.Resources.Where(ShouldAssertErrorsForResource).Select(r => $"{environment.ApplicationName}.Resources.{r.Name}").ToList();
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (2)
99var table = logTexts.ToList(); 128var 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.StackExchange.Redis.DistributedCaching.Tests (1)
DistributedCacheConformanceTests.cs (1)
67var activityList = await notifier.TakeAsync(3, TimeSpan.FromSeconds(10));
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
OutputCacheConformanceTests.cs (1)
67var activityList = await notifier.TakeAsync(3, TimeSpan.FromSeconds(10));
Aspire.StackExchange.Redis.Tests (1)
AspireRedisExtensionsTests.cs (1)
291var activityList = await notifier.TakeAsync(1, TimeSpan.FromSeconds(10));
Aspire.Templates.Tests (7)
StarterTemplateRunTestsBase.cs (4)
122static async Task<List<string[]>> GetAndValidateCellTexts(ILocator tableLoc) 124List<string[]> cellTexts = []; 148public static List<ResourceRow> GetExpectedResources(AspireProject project, bool hasRedisCache) 150var expectedResources = new List<ResourceRow>
TemplateTestsBase.cs (1)
184List<ResourceRow> foundRows = [];
tests\Shared\TemplatesTesting\AspireProject.cs (1)
268var tasksToWaitFor = new List<Task> { appRunning.Task, projectsParsed.Task };
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
111var outputLines = new List<string>();
Aspire.TestUtilities (1)
TestLoggerFactory.cs (1)
12public List<ILoggerProvider> LoggerProviders { get; } = new();
AzureAppService.ApiService (1)
Program.cs (1)
44var blobNames = new List<string>();
AzureContainerApps.ApiService (1)
Program.cs (1)
49var blobNames = new List<string>();
AzureSearch.ApiService (2)
Program.cs (2)
149var hotels = await JsonSerializer.DeserializeAsync<List<Hotel>>(openStream, cancellationToken: cancellationToken);
AzureStorageEndToEnd.ApiService (2)
Program.cs (2)
23var blobNames = new List<string>(); 41static async Task ReadBlobsAsync(BlobContainerClient containerClient, List<string> output)
BasicTestApp (9)
AuthTest\ClientSideAuthenticationStateData.cs (1)
13public List<ExposedClaim> ExposedClaims { get; set; }
InteropTest\JavaScriptInterop.cs (8)
97List<double> parameter7) 110List<double> parameter7, 184List<double> parameter7) 197List<double> parameter7, 280List<double> parameter7) 294List<double> parameter7, 370List<double> parameter7) 383List<double> parameter7,
BasicWebSite (2)
ContactsRepository.cs (1)
10private readonly List<Contact> _contacts = new List<Contact>();
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 (8)
Program.cs (8)
38var entries = await context.Entries.ToListAsync(); 57var entries = await context.Entries.ToListAsync(); 75var entries = new List<Entry>(); 106var entries = new List<Entry>(); 130var entries = new List<Entry>(); 157var entries = new List<Entry>(); 177var entries = new List<Entry>(); 196var entries = new List<Entry>();
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormattedTypes.cs (1)
37typeof(List<string>),
BoundTreeGenerator (5)
BoundNodeClassWriter.cs (1)
1526var allSpecifiableFields = AllSpecifiableFields(node).ToList();
Model.cs (4)
23public List<TreeType> Types; 45public List<Field> Fields; 64public List<Kind> Kinds; 106public List<EnumField> Fields;
BuildActionTelemetryTable (1)
Program.cs (1)
144var missingDescriptions = new List<string>();
BuildBoss (15)
CompilerNuGetCheckerUtil.cs (4)
236var partList = GetPackagePartDataList(package); 307private static List<PackagePartData> GetPackagePartDataList(Package package) 309var list = new List<PackagePartData>(); 344var list = GetPackagePartDataList(package);
Program.cs (2)
39List<string> solutionFiles; 96private static bool Go(string repositoryDirectory, string configuration, string primarySolution, List<string> solutionFileNames)
ProjectCheckerUtil.cs (3)
97var declaredEntryList = _projectUtil.GetDeclaredProjectReferences(); 98var declaredList = declaredEntryList.Select(x => x.ProjectKey).ToList(); 106private bool CheckNoGuidsOnProjectReferences(TextWriter textWriter, List<ProjectReferenceEntry> entryList)
ProjectUtil.cs (4)
109internal List<ProjectReferenceEntry> GetDeclaredProjectReferences() 112var list = new List<ProjectReferenceEntry>(); 142internal List<InternalsVisibleTo> GetInternalsVisibleTo() 144var list = new List<InternalsVisibleTo>();
SolutionUtil.cs (2)
15internal static List<ProjectEntry> ParseProjects(string solutionPath) 19var list = new List<ProjectEntry>();
BuildValidator (11)
LocalReferenceResolver.cs (9)
32private readonly Dictionary<string, List<string>> _nameToLocationsMap = new(); 39private readonly Dictionary<string, List<AssemblyInfo>> _nameMap = new(FileNameEqualityComparer.StringComparer); 43private LocalReferenceResolver(Dictionary<string, List<string>> nameToLocationsMap, ILogger logger) 52var directories = new List<DirectoryInfo>(); 65var nameToLocationsMap = new Dictionary<string, List<string>>(); 75if (!nameToLocationsMap.TryGetValue(fileInfo.Name, out var locations)) 96public IEnumerable<AssemblyInfo> GetCachedAssemblyInfos(string fileName) => _nameMap.TryGetValue(fileName, out var list) 147if (!_nameToLocationsMap.TryGetValue(fileName, out var locations)) 155var assemblyInfoList = new List<AssemblyInfo>();
Program.cs (2)
108var excludes = new List<string>(exclude ?? Array.Empty<string>()); 240var assembliesCompiled = new List<CompilationDiff>();
CatalogDb (9)
CatalogDbInitializer.cs (6)
38static List<CatalogBrand> GetPreconfiguredCatalogBrands() 49static List<CatalogType> GetPreconfiguredCatalogTypes() 59static List<CatalogItem> GetPreconfiguredItems(DbSet<CatalogBrand> catalogBrands, DbSet<CatalogType> catalogTypes) 86var brands = GetPreconfiguredCatalogBrands(); 96var types = GetPreconfiguredCatalogTypes(); 106var items = GetPreconfiguredItems(dbContext.CatalogBrands, dbContext.CatalogTypes);
Model.cs (3)
21public Task<List<CatalogItem>> GetCatalogItemsCompiledAsync(int? catalogBrandId, int? before, int? after, int pageSize) 97private static async Task<List<T>> ToListAsync<T>(IAsyncEnumerable<T> asyncEnumerable) 99var results = new List<T>();
CatalogModel (3)
Model.cs (3)
24public Task<List<CatalogItem>> GetCatalogItemsCompiledAsync(int? catalogBrandId, int? before, int? after, int pageSize) 100private static async Task<List<T>> ToListAsync<T>(IAsyncEnumerable<T> asyncEnumerable) 102var results = new List<T>();
CatalogService (1)
CatalogApi.cs (1)
15var itemsOnPage = await catalogContext.GetCatalogItemsCompiledAsync(catalogBrandId, before, after, pageSize);
CdkSample.ApiService (9)
Program.cs (9)
69var entries = new List<Entry>(); 87static async Task<List<string>> TestBlobStorageAsync(BlobServiceClient bsc) 97var blobNames = new List<string>(); 116static async Task<List<Entry>> TestSqlServerAsync(SqlContext context) 124var entries = await context.Entries.ToListAsync(); 128static async Task<List<Entry>> TestNpgsqlAsync(NpgsqlContext context) 136var entries = await context.Entries.ToListAsync(); 140static async Task<List<Entry>> TestCosmosAsync(CosmosContext context) 148var entries = await context.Entries.ToListAsync();
ClaimsTransformation (1)
Controllers\AccountController.cs (1)
36var claims = new List<Claim>
Client.ClientBase.IntegrationTests (14)
ChannelBaseTests.4.0.0.cs (6)
60List<string> eventsCalled = new List<string>(4); 61List<string> proxyEventsCalled = new List<string>(4); 112List<string> eventsCalled = new List<string>(4); 113List<string> proxyEventsCalled = new List<string>(4); 167List<string> eventsCalled = new List<string>(4); 168List<string> proxyEventsCalled = new List<string>(4);
ClientBaseTestHelpers.cs (1)
31public static void RegisterForEvents(ICommunicationObject co, List<string> eventsCalled, bool deregister = false)
ClientBaseTests.4.0.0.cs (6)
536List<string> eventsCalled = new List<string>(4); 537List<string> proxyEventsCalled = new List<string>(4); 587List<string> eventsCalled = new List<string>(4); 588List<string> proxyEventsCalled = new List<string>(4); 640List<string> eventsCalled = new List<string>(4); 641List<string> proxyEventsCalled = new List<string>(4);
SessionTests.cs (1)
485private List<ICommunicationObject> _objectsToClose = new List<ICommunicationObject>();
ClientSample (12)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
Tcp\SocketSender.cs (2)
21private List<ArraySegment<byte>> _bufferList; 80private List<ArraySegment<byte>> GetBufferList(in ReadOnlySequence<byte> buffer)
CodeGenerator (11)
HttpUtilities\HttpUtilities.cs (7)
36var methodsInfo = httpMethods.Select(GetMethodStringAndUlongAndMaskLength).ToList(); 38var methodsInfoWithoutGet = methodsInfo.Where(m => m.HttpMethod != "Get").ToList(); 100private static string GetMethodsSection(List<MethodInfo> methodsInfo) 120private static string GetMasksSection(List<MethodInfo> methodsInfo) 122var distinctLengths = methodsInfo.Select(m => m.MaskLength).Distinct().ToList(); 147private static string GetSetKnownMethodSection(List<MethodInfo> methodsInfo) 172private static string GetMethodNamesSection(List<MethodInfo> methodsInfo)
HttpUtilities\HttpUtilitiesGeneratorHelpers.cs (1)
20var shifts = new List<ShiftInfo<ulong>>();
src\Servers\Kestrel\shared\KnownHeaders.cs (3)
446var groups = values.GroupBy(header => header.EqualIgnoreCaseBytesFirstTerm()) 1503var groupedHeaders = staticHeaders.GroupBy(h => Encoding.ASCII.GetString(h.HeaderField.Name)).Select(g => 1524var groupedHeaders = staticHeaders.GroupBy(h => Encoding.ASCII.GetString(h.HeaderField.Name)).Select(g =>
ConfigurationSchemaGenerator (30)
ConfigSchemaEmitter.cs (2)
53var categories = spec.LogCategories; 703private static string[] CreateExclusionPaths(List<string>? exclusionPaths)
ConfigSchemaGenerator.cs (8)
55List<INamedTypeSymbol>? types = null; 56List<string>? configurationPaths = null; 57List<string>? exclusionPaths = null; 58List<string>? logCategories = null; 108internal sealed record ConfigSchemaAttributeInfo(List<INamedTypeSymbol>? Types, List<string>? ConfigurationPaths, List<string>? ExclusionPaths, List<string>? LogCategories);
ConfigurationBindingGenerator.ForSchemaGeneration.cs (1)
42var types = new List<TypeSpec>();
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (6)
24private readonly List<TypeParseInfo> _invocationTypeParseInfo = new(); 33public List<DiagnosticInfo>? Diagnostics { get; private set; } 688List<ParameterSpec>? ctorParams = null; 693List<string>? missingParameters = null; 694List<string>? invalidParameters = null; 736static string FormatParams(List<string> names) => string.Join(",", names);
RuntimeSource\Configuration.Binder\Parser\Extensions.cs (1)
112if (namedType.GetAllTypeArgumentsInScope() is List<ITypeSymbol> typeArgsInScope)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
109List = compilation.GetBestTypeByMetadataName(typeof(List<>));
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (5)
57private List<InvocationLocationInfo>? _interceptors_configBinder; 58private List<InvocationLocationInfo>? _interceptors_OptionsBuilderExt; 59private List<InvocationLocationInfo>? _interceptors_serviceCollectionExt; 109void RegisterInterceptor(ref List<InvocationLocationInfo>? infoList) 156private readonly List<InvocationLocationInfo> _infoList = new();
RuntimeSource\SourceGenerators\TypeModelHelper.cs (2)
13public static List<ITypeSymbol>? GetAllTypeArgumentsInScope(this INamedTypeSymbol type) 20List<ITypeSymbol>? args = null;
SchemaGenerationSpec.cs (4)
11public required List<TypeSpec> ConfigurationTypes { get; init; } 12public required List<string>? ConfigurationPaths { get; init; } 13public required List<string>? ExclusionPaths { get; init; } 14public required List<string>? LogCategories { get; init; }
Contract.Data.IntegrationTests (1)
DataContractTests.4.1.1.cs (1)
39var results = client.GetAllEmployees();
Cookies (1)
Controllers\AccountController.cs (1)
35var claims = new List<Claim>
CookieSessionSample (1)
Startup.cs (1)
35var claims = new List<Claim>(1001);
CosmosEndToEnd.ApiService (1)
Program.cs (1)
28var entries = new List<T>();
Crossgen2Tasks (12)
PrepareForReadyToRunCompilation.cs (12)
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>(); 98List<ITaskItem> imageCompilationList, 99List<ITaskItem> symbolsCompilationList, 100List<ITaskItem> r2rFilesPublishList, 101List<ITaskItem> r2rReferenceList, 102List<ITaskItem> r2rCompositeReferenceList, 103List<ITaskItem> r2rCompositeInputList,
csc (6)
src\Compilers\Shared\BuildClient.cs (2)
131List<string>? parsedArgs; 211private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive)
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
src\Compilers\Shared\BuildServerConnection.cs (1)
64List<string> arguments,
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 (62)
AbstractFileWriter.cs (1)
375protected List<Kind> GetKindsOfFieldOrNearestParent(TreeType nd, Field field)
Grammar\GrammarGenerator.cs (9)
22public static string Run(List<TreeType> types) 27if (type.Base != null && rules.TryGetValue(type.Base, out var productions)) 44var originalFirstFieldKinds = firstField.Kinds.ToList(); 47var originalLastFieldKinds = lastField.Kinds.ToList(); 76.Where(r => !rules.TryGetValue(r, out var productions) || productions.Count == 0).ToArray(); 83List<string> majorRules = [ 122private static void AddLexicalRules(Dictionary<string, List<Production>> rules) 151var keywords = JoinWords(GetMembers<SyntaxKind>().Where(k => SyntaxFacts.IsReservedKeyword(k)).Select(SyntaxFacts.GetText).Where(t => !modifierWords.Contains(t))); 299private static List<Production> JoinWords(IEnumerable<string> strings)
Model\AbstractNode.cs (1)
13public readonly List<Field> Fields = new List<Field>();
Model\Field.cs (3)
22public List<TreeTypeChild> Children; 34public List<TreeTypeChild> Children; 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\Tree.cs (1)
21public List<TreeType> Types;
Model\TreeType.cs (1)
32public List<TreeTypeChild> Children = new List<TreeTypeChild>();
SignatureWriter.cs (4)
51var nodes = _tree.Types.Where(n => n is not PredefinedNode).ToList(); 85var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 86var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 104private void WriteKinds(List<Kind> kinds)
SourceWriter.cs (37)
76var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 114var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 115var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 153var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 154var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 279private void WriteGreenNodeConstructorArgs(List<Field> nodeFields, List<Field> valueFields) 292private void WriteCtorBody(Node node, List<Field> valueFields, List<Field> nodeFields) 366var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 434var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 442var nodeFields = node.Fields.Where(nd => IsNodeOrNodeList(nd.Type)).ToList(); 477var nodes = Tree.Types.Where(n => n is not PredefinedNode and not AbstractNode).ToList(); 494var nodes = Tree.Types.Where(n => n is not PredefinedNode and not AbstractNode).ToList(); 502private void WriteGreenFactories(List<TreeType> nodes, bool withSyntaxFactoryContext = false) 513var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 514var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 526var kinds = nd.Kinds.Distinct().ToList(); 561var kinds = field.Kinds.Distinct().ToList(); 668private void WriteCtorArgList(Node nd, bool withSyntaxFactoryContext, List<Field> valueFields, List<Field> nodeFields) 683var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 691private List<Field> GetNodeOrNodeListFields(TreeType node) 712var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 713var nodeFields = GetNodeOrNodeListFields(nd); 765var baseNodeFields = GetNodeOrNodeListFields(baseType); 824var valueFields = nd.Fields.Where(n => !IsNodeOrNodeList(n.Type)).ToList(); 825var nodeFields = nd.Fields.Where(n => IsNodeOrNodeList(n.Type)).ToList(); 1061var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 1163var fields = GetNodeOrNodeListFields(current); 1286var nodes = Tree.Types.Where(n => n is not PredefinedNode).ToList(); 1332var nodes = Tree.Types.Where(n => n is not PredefinedNode and not AbstractNode).OfType<Node>().ToList(); 1419var valueFields = nd.Fields.Where(n => IsValueField(n)).ToList(); 1420var nodeFields = nd.Fields.Where(n => !IsValueField(n)).ToList(); 1435var kinds = nd.Kinds.Distinct().ToList(); 1451var fieldKinds = GetKindsOfFieldOrNearestParent(nd, field); 1454var kinds = fieldKinds.ToList();
TestWriter.cs (1)
390var fieldKinds = GetKindsOfFieldOrNearestParent(nd, field);
TreeFlattening.cs (2)
29List<TreeTypeChild> fieldsAndChoices, List<Field> fields, bool makeOptional)
CustomPolicyProvider (1)
Controllers\AccountController.cs (1)
29var claims = new List<Claim>();
DatabaseMigration.ApiService (1)
Program.cs (1)
40var entries = await context.Entries.ToListAsync();
DemoConsole (1)
MainForm.cs (1)
12private readonly List<IDesignSurfaceExtended> _listOfDesignSurface = [];
Diagnostics.EFCore.FunctionalTests (1)
Helpers\TestLoggerProvider.cs (1)
28private readonly List<string> _messages = new List<string>();
dotnet-dev-certs (33)
Program.cs (7)
56var newArgs = new List<string>(args); 304var validCertificates = new List<X509Certificate2>(); 329var trustedCertificates = certificates.Where(cert => certificateManager.GetTrustLevel(cert) == CertificateManager.TrustLevel.Full).ToList(); 366var certReports = availableCertificates.Select(CertificateReport.FromX509Certificate2).ToList(); 497public List<string> X509SubjectAlternativeNameExtension { get; init; } 532static List<string> GetSanExtension(X509Certificate2 cert) 534var dnsNames = new List<string>();
src\Shared\CertificateGeneration\CertificateManager.cs (5)
129var certificates = new List<X509Certificate2>(); 217protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 690var extensions = new List<X509Extension>(); 891var list = certificates.ToList(); 933var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
131var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 298var nssDbs = GetNssDbs(homeDirectory); 434var nssDbs = GetNssDbs(homeDirectory); 714var nssDbs = new List<string>(); 732private static List<NssDb> GetNssDbs(string homeDirectory) 734var nssDbs = new List<NssDb>(); 893var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
dotnet-getdocument (11)
Commands\InvokeCommand.cs (1)
54var args = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
dotnet-openapi (10)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
dotnet-razorpagegenerator (1)
Program.cs (1)
94var results = new List<RazorPageGeneratorResult>();
dotnet-sql-cache (10)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
dotnet-svcutil (1)
GlobalTool.cs (1)
18var arguments = new List<string>(args);
dotnet-svcutil.xmlserializer (17)
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (1)
31private readonly List<Type> _types = new List<Type>();
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (2)
21private List<Assembly> _assemblies; 25internal List<Assembly> Assemblies
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (6)
31private List<string> _inputParameters; 32private List<Type> _referencedTypes; 33private List<Assembly> _referencedAssemblies; 43internal List<string> InputParameters { get { return _inputParameters; } } 44internal List<Type> ReferencedTypes { get { return _referencedTypes; } } 45internal List<Assembly> ReferencedAssemblies { get { return _referencedAssemblies; } }
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
124private static readonly List<string> s_existingFileNames = new List<string>();
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (1)
181var options = new List<ArgumentInfo>();
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (6)
31internal void GenerateCode(List<Assembly> assemblies) 47List<XmlMapping> mappings = new List<XmlMapping>(); 48List<Type> types = CollectXmlSerializerTypes(assembly, mappings); 117private List<Type> CollectXmlSerializerTypes(Assembly assembly, List<XmlMapping> mappings) 119List<Type> types = new List<Type>();
dotnet-svcutil-lib (294)
CmdCredentialsProvider.cs (1)
149var candidateCerts = new List<X509Certificate2>();
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
21private List<string> _addedToCodeCompileUnit = new List<string>(); 22private List<string> _needToAdd = new List<string>();
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (3)
18private List<CodeTypeDeclaration> _eventArgsList = new List<CodeTypeDeclaration>(); 212private static Dictionary<string, string> GenerateEventAsyncMethods(CodeTypeNameScope nameScope, CodeTypeDeclaration parent, CodeTypeDeclaration callbackInterface, List<CodeTypeDeclaration> eventArgsList) 215List<CodeMemberEvent> receivedEvents = new List<CodeMemberEvent>();
CodeDomFixup\CodeDomVisitors\EnsureAdditionalAssemblyReference.cs (1)
16private List<string> _alreadyAdded = new List<string>();
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
110List<string> namespaceToAdd = new List<string>();
CodeDomFixup\CodeDomVisitors\TypeNameFixer.cs (1)
14private readonly List<string> _reservedKeyword = new List<string>() { "file", "required", "scoped" };
CodeDomFixup\ConfigToCode.cs (5)
32List<string> endpointNames = new List<string>(); 68private static void AddConfigEndpoint(CodeConstructor ctor, List<string> endpointNames) 99private void FixupConstructors(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, CodeNamespace namespaceDecl, List<string> endpointNames) 178private static void FixupConstructorsNonDuplex(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, List<string> endpointNames) 304private void FixupConstructorsDuplex(CodeTypeDeclaration clientType, bool shouldRemoveDefault, bool endpointConfigurationExists, CodeNamespace namespaceDecl, List<string> endpointNames)
CodeDomFixup\EndpointSelector.cs (1)
18private static List<string> s_bindingValidationErrors = new List<string>();
CodeDomFixup\MethodCreationHelper.cs (3)
66public void AddConfigurationEnum(List<string> endpointNames) 78public void AddMethods(List<string> endpointNames, bool isVB) 2170private void CreateDefaultEndpointMethods(string clientTypeName, List<string> endpointNames)
CodeDomFixup\VisitorFixup.cs (2)
56List<CodeDomVisitor> list = new List<CodeDomVisitor>(visitors); 68List<CodeDomVisitor> list = new List<CodeDomVisitor>(visitors);
CommandLineParser.cs (1)
27private static List<CommandSwitch> s_allSwitches = new List<CommandSwitch>();
CommandProcessorOptions.cs (7)
42public List<Type> ReferencedTypes { get; private set; } 43public List<Assembly> ReferencedAssemblies { get; private set; } 44public List<Type> ReferencedCollectionTypes { get; private set; } 62private static readonly List<string> s_cmdLineOverwriteSwitches = new List<string> { Switches.NoLogo.Name, Switches.Verbosity.Name, Switches.ToolContext.Name, Switches.ProjectFile.Name, Switches.AcceptCertificate.Name, Switches.ServiceContract.Name }; 152var options = cmdOptions.GetOptions().ToList(); 252var userOptions = this.GetOptions().ToList(); 895List<Type> coreTypes = new List<Type>
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
3957List<String> lines = new List<String>();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEventCache.cs (1)
20private List<XmlEvent[]> _pages; // All event pages
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriterSettings.cs (2)
69private List<XmlQualifiedName> _cdataSections = new List<XmlQualifiedName>(); 326internal List<XmlQualifiedName> CDataSectionElements
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXmlWriter.cs (1)
66private List<XmlNode> _fragment; // top level node cache
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (1)
1830List<XmlElement> elements = new List<XmlElement>();
FrameworkFork\Microsoft.Xml\Xml\Dom\XPathNodeList.cs (1)
16private List<XmlNode> _list;
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (4)
1954List<RangePositionInfo> runningPositions = context.RunningPositions; 1979List<RangePositionInfo> runningPositions = context.RunningPositions; 2180List<RangePositionInfo> runningPositions = context.RunningPositions; 2225List<RangePositionInfo> runningPositions = context.RunningPositions;
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (5)
383List<Type> uniqueTypes = new List<Type>(); 878private List<ConversionRule> _rules; 903List<Type> types = new List<Type>(); 916List<Type> types = new List<Type>(); 929List<ConversionRule> subset = new List<ConversionRule>();
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (1)
753List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
535List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaDeclBase.cs (2)
39protected List<string> values; // array of values for enumerated and notation types 110internal List<string> Values
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (1)
15private List<IDtdDefaultAttributeInfo> _defaultAttdefs;
FrameworkFork\Microsoft.Xml\Xml\schema\validationstate.cs (1)
49public List<RangePositionInfo> RunningPositions;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (8)
19private List<XmlSchemaObjectEntry> _entries = new List<XmlSchemaObjectEntry>(); 185private List<XmlSchemaObjectEntry> _entries; 188internal NamesCollection(List<XmlSchemaObjectEntry> entries, int size) 240private List<XmlSchemaObjectEntry> _entries; 243internal ValuesCollection(List<XmlSchemaObjectEntry> entries, int size) 294private List<XmlSchemaObjectEntry> _entries; 303internal XSOEnumerator(List<XmlSchemaObjectEntry> entries, int size, EnumeratorType enumType) 365internal XSODictionaryEnumerator(List<XmlSchemaObjectEntry> entries, int size, EnumeratorType enumType) : base(entries, size, enumType)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (2)
1135List<XmlSchemaElement> newMembers = null; 1479List<XmlSchema> reprocessList = new List<XmlSchema>();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (3)
3585List<T> listDst = new List<T>(); 3613List<object> listDst = new List<object>(); 3623private List<string> StringAsList(string value)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMapping.cs (1)
126List<XmlRootAttribute> list = new List<XmlRootAttribute>(type.GetTypeInfo().GetCustomAttributes<XmlRootAttribute>());
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
517List<XmlSchemaProviderAttribute> attrs = new List<XmlSchemaProviderAttribute>(type.GetTypeInfo().GetCustomAttributes<XmlSchemaProviderAttribute>(false));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
1434private bool IsCyclicReferencedType(XmlSchemaElement element, List<string> identifiers)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
99List<Type> argTypes = new List<Type>(); 233List<Type> argTypes = new List<Type>(); 615List<Type> argTypes = new List<Type>(); 616List<string> argNames = new List<string>(); 634List<Label> caseLabels = new List<Label>(); 635List<string> retValues = new List<string>(); 775List<Type> argTypes = new List<Type>(); 956List<Type> argTypes = new List<Type>(5); 957List<string> argNames = new List<string>(5); 1394List<Type> argTypes = new List<Type>(); 2113List<Type> argTypes = new List<Type>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheAxisQuery.cs (1)
16protected List<XPathNavigator> outputBuffer;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheOutputQuery.cs (1)
18protected List<XPathNavigator> outputBuffer;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\followingsibling.cs (1)
17private List<XPathNavigator> _parentStk;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\FunctionQuery.cs (1)
20public FunctionQuery(string prefix, string name, List<Query> args) : base(prefix, name)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingsibling.cs (2)
31private bool NotVisited(XPathNavigator nav, List<XPathNavigator> parentStk) 51List<XPathNavigator> parentStk = new List<XPathNavigator>();
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Query.cs (2)
111public bool Insert(List<XPathNavigator> buffer, XPathNavigator nav) 185private void AssertDOD(List<XPathNavigator> buffer, XPathNavigator nav, int pos)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\querybuilder.cs (2)
442private List<Query> ProcessArguments(ArrayList args, out Props props) 445List<Query> argList = new List<Query>(numArgs);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\SortQuery.cs (1)
17private List<SortKey> _results;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (7)
119internal List<DataMember> Members 365internal static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable) 748private List<DataMember> _members; 929List<DataMember> tempMembers = new List<DataMember>(); 1102private void SetIfMembersHaveConflict(List<DataMember> members) 1108List<Member> membersInHierarchy = new List<Member>(); 1260internal List<DataMember> Members
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
917List<CodeTypeReference> knownTypeReferences = new List<CodeTypeReference>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
160private List<ArgBuilder> _argList;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (3)
1736List<int> nestedParamCounts = new List<int>(); 2426private List<GenericInfo> _paramGenericInfos; 2427private List<int> _nestedParamCounts;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (5)
420List<Type> types = new List<Type>(); 428List<Type> types = (List<Type>)value; 460List<Type> types = (List<Type>)value;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (8)
75public List<DataMember> Members 87public List<long> Values 151private List<DataMember> _members; 152private List<long> _values; 236internal List<DataMember> Members 242internal List<long> Values 276List<DataMember> tempMembers = new List<DataMember>(fields.Length); 277List<long> tempValues = new List<long>(fields.Length);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (6)
61public List<DataMember> Members 111private List<DataMember> _members; 220public List<DataMember> Members 260List<DataMember> tempMembers; 306List<DataMember> tempMembers; 448private static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
899s_typeOfListGeneric = typeof(List<>);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaHelper.cs (2)
19internal List<XmlSchemaType> knownTypes; 21internal SchemaObjectInfo(XmlSchemaType type, XmlSchemaElement element, XmlSchema schema, List<XmlSchemaType> knownTypes)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (7)
29private List<XmlSchemaRedefine> _redefineList; 162private List<XmlSchemaRedefine> RedefineList 177List<XmlSchemaType> knownTypes = schemaObjectInfo.knownTypes; 221List<XmlSchemaType> knownTypes = schemaObjectInfo.knownTypes; 245List<XmlSchemaType> knownTypesForObject = new List<XmlSchemaType>(); 334private List<XmlSchemaRedefine> CreateRedefineList() 336List<XmlSchemaRedefine> list = new List<XmlSchemaRedefine>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
370List<DataMember> members = contract.Members;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
706List<DataMember> members = currentContract.Members;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableServices.cs (1)
20List<XmlNode> nodeList = new List<XmlNode>();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (1)
1383List<int> list = new List<int>();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
248List<Type> types = new List<Type>(typeNames.Length);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (1)
28private List<IQueueWaiter> _waiterList;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InternalBufferManager.cs (1)
62List<BufferPool> bufferPoolList = new List<BufferPool>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimSet.cs (1)
27List<Claim> claims = new List<Claim>(2);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (3)
163List<Claim> claims = new List<Claim>(); 319List<string> dnsEntries = new List<string>(); 366List<Claim> claims = new List<Claim>(2);
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
15private List<ClaimSet> _claimSets;
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
167List<ClaimSet> issuances = new List<ClaimSet>(1);
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (4)
126List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 280List<SecurityKey> temp = new List<SecurityKey>(1); 334List<IAuthorizationPolicy> ret = new List<IAuthorizationPolicy>(authorizationPolicies.Count); 409List<IIdentity> identities = new List<IIdentity>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (4)
20private readonly List<SecurityTokenSerializer.KeyIdentifierEntry> _keyIdentifierEntries; 21private readonly List<SecurityTokenSerializer.KeyIdentifierClauseEntry> _keyIdentifierClauseEntries; 22private readonly List<SecurityTokenSerializer.SerializerEntries> _serializerEntries; 23private readonly List<TokenEntry> _tokenEntries;
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (1)
16private readonly List<SecurityKeyIdentifierClause> _clauses;
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
37List<StrEntry> strEntries = new List<StrEntry>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
40List<StrEntry> strEntries = new List<StrEntry>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (2)
77List<AddressHeader> results = new List<AddressHeader>(); 179List<AddressHeader> headerList = new List<AddressHeader>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
885private List<XmlDictionaryString> _newStrings; 945private List<byte> _bytes;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (12)
78private List<TItem> PruneIfNecessary() 80List<TItem> itemsToClose = null; 94List<TKey> endpointKeysToRemove = null; 123List<TItem> itemsToClose = null; 227private List<TItem> _busyConnections; 312List<TItem> idleItemsToClose = null; 327List<TItem> itemsToClose = null; 353private void AbortConnections(List<TItem> idleItemsToClose) 368private List<TItem> SnapshotIdleConnections() 370List<TItem> itemsToClose = new List<TItem>(); 413public virtual void Prune(List<TItem> itemsToClose) 420List<TItem> itemsToClose = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolRegistry.cs (4)
11private Dictionary<string, List<ConnectionPool>> _registry; 15_registry = new Dictionary<string, List<ConnectionPool>>(); 31List<ConnectionPool> registryEntry = null; 68List<ConnectionPool> registryEntry = _registry[pool.Name];
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
498List<XmlElement> httpAuthAssertions = new List<XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (3)
89public override void Prune(List<TItem> itemsToClose) 217List<TItem> itemsToClose = new List<TItem>(); 243public void Prune(List<TItem> itemsToClose, bool calledFromTimer)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (1)
640List<FaultReasonText> translations = new List<FaultReasonText>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (1)
758List<MessageHeaderInfo> understoodHeaders = new List<MessageHeaderInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (3)
166List<string> keys = new List<string>(); 226List<object> values = new List<object>(); 801List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(_propertyCount);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
212List<Wsrm11PolicyAlternative> wsrmAlternatives = new List<Wsrm11PolicyAlternative>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestChannel.cs (1)
16private List<IRequestBase> _outstandingRequests = new List<IRequestBase>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (2)
18private List<IChannel> _channelsList; 271List<ICommunicationObject> objectList;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
613List<CodeTypeReference> wrapperKnownTypes = new List<CodeTypeReference>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (8)
374static internal List<Type> GetInterfaces(Type service) 376List<Type> types = new List<Type>(); 426static internal List<Type> GetInheritedContractTypes(Type service) 428List<Type> types = new List<Type>(); 461List<object> attrTypeAttributes = new List<object>(); 600List<Type> types = new List<Type>(GetInheritedContractTypes(interfaceType)); 627private static List<MethodInfo> GetMethodsInternal(Type interfaceType) 629List<MethodInfo> methods = new List<MethodInfo>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (8)
381List<Type> knownTypes = new List<Type>(); 714List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType); 765List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType); 766List<Type> inheritedCallbackTypes = new List<Type>(); 1291List<MemberInfo> contractMembers = new List<MemberInfo>(); 1352List<MessagePartDescription> bodyPartDescriptionList = new List<MessagePartDescription>(); 1353List<MessageHeaderDescription> headerPartDescriptionList = new List<MessageHeaderDescription>(); 1540private void AddSortedParts<T>(List<T> partDescriptionList, KeyedCollection<XmlQualifiedName, T> partDescriptionCollection)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (2)
2071List<XmlElement> embeddedPolicies = new List<XmlElement>(); 2115List<XmlElement> policyReferences = new List<XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
602private List<XmlMembersMapping> _mappings = new List<XmlMembersMapping>(); 648List<XmlMembersMapping> uniqueMappings = new List<XmlMembersMapping>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
423List<ICommunicationObject> list = new List<ICommunicationObject>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (4)
27private List<IDuplexRequest> _requests; 28private List<ICorrelatorKey> _timedOutRequests; 151private List<IDuplexRequest> Requests 164private List<ICorrelatorKey> TimedOutRequests
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
27List<Attr> attrSet = new List<Attr>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointDispatcherTable.cs (1)
14private List<EndpointDispatcher> _cachedEndpoints;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (4)
19List<FaultContractInfo> faultContractInfoList = new List<FaultContractInfo>(); 28List<FaultContractInfo> faultContractInfoList; 166private static FaultContractInfo[] GetSortedArray(List<FaultContractInfo> faultContractInfoList) 176private static void AddInfrastructureFaults(List<FaultContractInfo> faultContractInfos)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InvokerUtil.cs (1)
37var outputParamPositions = new List<int>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SynchronizedChannelCollection.cs (1)
49List<TChannel> items = this.Items;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
483((List<MessageHeader<object>>)_attributes[headerDescription.Index]).Add(new MessageHeader<object>(null, mustUnderstand, actor, relay));
FrameworkFork\System.ServiceModel\System\ServiceModel\DXD.cs (4)
140public List<XmlDictionaryString> SecureConversationDictionaryStrings = new List<XmlDictionaryString>(); 205public List<XmlDictionaryString> SecurityAlgorithmDictionaryStrings = new List<XmlDictionaryString>(); 234public List<XmlDictionaryString> Feb2005DictionaryStrings = new List<XmlDictionaryString>(); 235public List<XmlDictionaryString> Dec2005DictionaryString = new List<XmlDictionaryString>();
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (1)
776List<AddressHeader> headerList = new List<AddressHeader>();
FrameworkFork\System.ServiceModel\System\ServiceModel\ExtensionCollection.cs (2)
56List<IExtension<T>> items = this.Items; 74List<IExtension<T>> items = this.Items;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\MessagePartSpecification.cs (3)
14private List<XmlQualifiedName> _headerTypes; 100List<XmlQualifiedName> headerTypes = specification._headerTypes; 123List<XmlQualifiedName> noDuplicates = new List<XmlQualifiedName>(_headerTypes.Count);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ReferenceList.cs (1)
21private List<string> _referredIds = new List<string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (4)
525List<Claim> claims = new List<Claim>(2); 529List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 573List<IIdentity> identities = null; 577identities = obj as List<IIdentity>;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
276List<SecurityKey> temp = new List<SecurityKey>(1);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSKeyInfoSerializer.cs (1)
20List<SecurityTokenSerializer.SerializerEntries> serializerEntries = new List<SecurityTokenSerializer.SerializerEntries>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
3079private List<WSSecurityPolicy> _drivers;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
26private readonly List<SerializerEntries> _serializerEntries; 28private readonly List<TokenEntry> _tokenEntries; 531private List<XmlDictionaryString> _dictionaryStrings; 533public CollectionDictionary(List<XmlDictionaryString> dictionaryStrings)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (2)
170private List<SecurityTokenAuthenticator> _entropyAuthenticators; 238List<RequestSecurityTokenResponse> rstrCollection = new List<RequestSecurityTokenResponse>(2);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (2)
13private List<T> _items; 61protected List<T> Items
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
55internal SynchronizedReadOnlyCollection(object syncRoot, List<T> list, bool makeCopy)
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlBuffer.cs (1)
14private List<Section> _sections;
Metadata\MetadataDocumentLoader.cs (6)
45private List<string> _processedUri = new List<string>(); 46private List<string> _updatedUri = new List<string>(); 57private List<Uri> metadataSourceFiles { get; set; } = new List<Uri>(); 63private readonly List<MetadataSection> _metadataSections = new List<MetadataSection>(); 69private readonly List<Exception> _documentLoadExceptions = new List<Exception>(); 449private bool CollectionContainsOrAdd(List<string> uriCollection, string uri)
Metadata\MetadataDocumentSaver.cs (5)
33private List<MetadataFileInfo> MetadataFiles { get; set; } 36private List<UnresolvedUri> UnresolvedReferences { get; set; } 227var unresolvedRefs = UnresolvedReferences.Where(u => MetadataFileNameManager.UriEqual(u.WsdlImport?.Location, sourceUrl)).ToList(); 249var unresolvedRefs = UnresolvedReferences.Where(u => 277var importedWsdl = new List<string>();
Metadata\MetadataFileNameManager.cs (1)
18private List<string> _files = new List<string>();
Metadata\ServiceDescriptor.cs (5)
43List<string> metadataFiles, 140(this.metadataDocumentLoader.MetadataSections as List<MetadataSection>).AddRange(newSet.MetadataSections); 185var orphanContracts = new List<ContractDescription>(this.Contracts); 186var services = new List<ServiceInfo>(); 191List<ContractDescription> contracts = new List<ContractDescription>();
Metadata\ServiceDescriptorFactory.cs (1)
100var removeKeys = _cache.Keys.Where((k) => !_cache[k].MetadataImported).ToList();
Shared\MSBuildProj.cs (8)
45private List<string> _targetFrameworks = new List<string>(); 46private List<string> _endOfLifeTargetFrameworks = new List<string>(); 767var packageReferences = await ResolvePackageReferencesAsync(logger, cancellationToken).ConfigureAwait(false); 768var assemblyReferences = await ResolveAssemblyReferencesAsync(logger, cancellationToken).ConfigureAwait(false); 783private async Task<List<ProjectDependency>> ResolvePackageReferencesAsync(ILogger logger, CancellationToken cancellationToken) 789var packageDependencies = new List<ProjectDependency>(); 861private async Task<List<ProjectDependency>> ResolveAssemblyReferencesAsync(ILogger logger, CancellationToken cancellationToken) 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\OptionBase.cs (1)
53public List<string> Aliases { get; private set; }
Shared\Options\OptionValueParser.cs (2)
139var list = new List<object>(); 171if (newValue is List<object> list)
Shared\Options\WCFCSUpdateOptions.cs (1)
32private List<string> _deserializedCollectionAssemblies = new List<string>();
Shared\ProjectDependency.cs (1)
416internal static List<ProjectDependency> IgnorableDependencies = new List<ProjectDependency>
Shared\TargetFrameworkHelper.cs (5)
16internal static readonly List<string> s_currentSupportedVersions = new List<string>() { "8.0", "9.0" }; 21internal static SortedDictionary<string, List<ProjectDependency>> NetCoreVersionReferenceTable = new SortedDictionary<string, List<ProjectDependency>> 37internal static List<ProjectDependency> FullFrameworkReferences = new List<ProjectDependency>() 42internal static List<ProjectDependency> ServiceModelPackages = new List<ProjectDependency>()
Tool.cs (1)
107var earlyWarnings = options.Warnings.ToList();
TypeLoader.cs (5)
16private static List<string> s_loadTypesWarnings = new List<string>(); 40List<Type> listType = new List<Type>(); 94static private List<Type> GetUnAvailableTypes(List<Type> types) 96List<Type> unavailableTypes = new List<Type>();
dotnet-svcutil-lib.Tests (12)
FixupUtil.cs (3)
17private List<ReplaceInfo> _replacements; 99var replacements = new List<ReplaceInfo>(_replacements); 118public string ReplaceText(string originalText, List<ReplaceInfo> replacements = null)
TestInit.cs (9)
362var baselineFiles = Directory.GetFiles(this_TestCaseBaselinesDir, "*", SearchOption.AllDirectories) 365var nonRefbaselineFiles = baselineFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList(); 371var generatedFiles = Directory.GetFiles(this_TestCaseOutputDir, "*.*", SearchOption.AllDirectories) 377var nonRefGeneratedFiles = generatedFiles.Where(f => f.EndsWith(".cs") && !f.EndsWith(Path.DirectorySeparatorChar + "reference.cs", StringComparison.OrdinalIgnoreCase)).ToList(); 387protected bool ValidateFiles(string outputDir, string baselineDir, string bootstrapDir, List<string> generatedFiles, List<string> baselineFiles, out string failureMessage) 468var fileLines1 = new List<string>(); 469var fileLines2 = new List<string>(); 470var exceptLines = new List<string>() { "<ImplicitUsings>enable</ImplicitUsings>", "<Nullable>enable</Nullable>", "<Content CopyToOutputDirectory" };
dotnet-user-jwts (27)
Commands\CreateCommand.cs (3)
141var audience = audienceOption.HasValue() ? audienceOption.Values : DevJwtCliHelpers.GetAudienceCandidatesFromLaunchSettings(project); 202var roles = rolesOption.HasValue() ? rolesOption.Values : new List<string>(); 205var scopes = scopesOption.HasValue() ? scopesOption.Values : new List<string>();
Helpers\ConsoleTable.cs (5)
14private readonly List<string> _columns = new(); 15private readonly List<string[]> _rows = new(); 50var maxColumnLengths = _columns 101void WriteTableContent(List<string[]> rows, List<int> columnLengths, string divider, StringBuilder stringBuilder)
Helpers\DevJwtCliHelpers.cs (4)
68public static List<string> GetAudienceCandidatesFromLaunchSettings(string project) 105static List<string> ExtractIISExpressUrlFromProfile(JsonElement rootElement) 111List<string> iisUrls = new(); 216public static bool TryParseClaims(List<string> input, out Dictionary<string, string> claims)
Helpers\JwtAuthenticationSchemeSettings.cs (1)
11internal sealed record JwtAuthenticationSchemeSettings(string SchemeName, List<string> Audiences, string ClaimsIssuer)
Helpers\JwtCreatorOptions.cs (3)
9List<string> Audiences, 13List<string> Roles, 14List<string> Scopes,
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
30var projects = Directory.EnumerateFileSystemEntries(projectPath, "*.*proj", SearchOption.TopDirectoryOnly)
dotnet-user-secrets (11)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
30var projects = Directory.EnumerateFileSystemEntries(projectPath, "*.*proj", SearchOption.TopDirectoryOnly)
FilesWebSite (1)
Controllers\UploadFilesController.cs (1)
32var files = new Dictionary<string, List<string>>();
FormatterWebSite (2)
Models\ErrorInfo.cs (1)
14public List<string> Errors { get; set; }
Models\Product.cs (1)
10public List<Review> Reviews { get; set; } = new List<Review>();
GenerateAnalyzerNuspec (2)
Program.cs (2)
109var allTargets = new List<string>(); 200var fileNamesToExclude = new List<string>() { "Humanizer.dll", "MessagePack.dll", "MessagePack.Annotations.dll" };
GenerateDocumentationAndConfigFiles (146)
Program.cs (7)
43List<string> AssemblyList, 215var assemblyList = assembliesString.Split([';'], StringSplitOptions.RemoveEmptyEntries).ToList(); 265var fileNamesWithValidationFailures = new List<string>(); 1361private static void Validate(string fileWithPath, string fileContents, List<string> fileNamesWithValidationFailures) 1768var compilerVisibleProperties = new List<string>(); 1778static void AddItemGroupForCompilerVisibleProperties(List<string> compilerVisibleProperties, StringBuilder builder) 1806var compilerVisibleProperties = new List<string>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
40List<SyntaxNode> statements = []; 353List<SyntaxNode> statements = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
64var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 67var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 74List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 75List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 153private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 169List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
164public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 186public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
67List<Exception>? exceptions = null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
GetDocument.Insider (11)
Commands\GetDocumentCommandWorker.cs (1)
285var filePathList = new List<string>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
HeaderPropagationSample (1)
Startup.cs (1)
110var values = new List<string>();
HtmlGenerationWebSite (4)
Controllers\Catalog_CacheTagHelperController.cs (1)
79[FromBody] List<Product> products)
Controllers\HtmlGeneration_HomeController.cs (3)
12private readonly List<Product> _products = new List<Product> 113var model = new List<Product> 123var employees = new List<Employee>
http2cat (4)
src\Shared\Http2cat\Http2Utilities.cs (2)
415var settings = _clientSettings.GetNonProtocolDefaults(); 449var settings = _clientSettings.GetNonProtocolDefaults();
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
99internal List<Http2PeerSetting> GetNonProtocolDefaults() 103var list = new List<Http2PeerSetting>(2);
IdeBenchmarks (1)
SQLitePersistentStorageBenchmark.cs (1)
98var tasks = new List<Task>(capacity);
IdeCoreBenchmarks (8)
FindReferencesBenchmarks.cs (2)
110var refList = references.ToList(); 112var locations = refList.SelectMany(r => r.Locations).ToList();
NavigateToBenchmarks.cs (4)
108var roots = new List<SyntaxNode>(); 164var tasks = project.Documents.Select(d => Task.Run( 189var tasks = _workspace.CurrentSolution.Projects.SelectMany(p => p.Documents).Select(d => Task.Run( 227var results = new List<INavigateToSearchResult>();
SegmentedListBenchmarks_InsertRange.cs (2)
14private List<int> _values = null!; 17private List<object?> _valuesObject = null!;
Identity.DefaultUI.WebSite (3)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (3)
35var claims = user.Claims.Select(c => new Claim(c.ClaimType, c.ClaimValue)).ToList(); 50var matchedClaims = user.Claims.Where(uc => uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToList(); 419var updatedCodes = new List<string>(splitCodes.Where(s => s != code));
Identity.ExternalClaims (1)
Startup.cs (1)
53List<AuthenticationToken> tokens = ctx.Properties.GetTokens().ToList();
IdentitySample.Mvc (2)
Controllers\AccountController.cs (1)
355var factorOptions = userFactors.Select(purpose => new SelectListItem { Text = purpose, Value = purpose }).ToList();
Controllers\ManageController.cs (1)
308var otherLogins = schemes.Where(auth => userLogins.All(ul => auth.Name != ul.LoginProvider)).ToList();
IIS.Common.TestLib (1)
TestConnections.cs (1)
192List<string> headers = new List<string>();
IIS.FunctionalTests (22)
Http2TrailersResetTests.cs (4)
485private static List<KeyValuePair<string, string>> GetHeaders(string path) 487var headers = Headers.ToList(); 494private static List<KeyValuePair<string, string>> GetPostHeaders(string path) 496var headers = PostRequestHeaders.ToList();
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
154List<Exception> exceptions = null;
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (2)
45var messages = new List<string>(); 87var messages = new List<string>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (3)
42var list = new List<FrebLogItem>(); 145var xmlFiles = Directory.GetFiles(folderPath).Where(f => f.EndsWith("xml", StringComparison.Ordinal)).ToList(); 146var frebEvents = new List<FrebLogItem>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (2)
379private static List<KeyValuePair<string, string>> GetHeaders(string path) 381var headers = Headers.ToList();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
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)
256var messages = new List<string>(); 741List<Task> tasks = new List<Task>();
src\Shared\Http2cat\Http2Utilities.cs (2)
415var settings = _clientSettings.GetNonProtocolDefaults(); 449var settings = _clientSettings.GetNonProtocolDefaults();
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
99internal List<Http2PeerSetting> GetNonProtocolDefaults() 103var list = new List<Http2PeerSetting>(2);
IIS.LongTests (9)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
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)
203var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2Utilities.cs (2)
415var settings = _clientSettings.GetNonProtocolDefaults(); 449var settings = _clientSettings.GetNonProtocolDefaults();
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
99internal List<Http2PeerSetting> GetNonProtocolDefaults() 103var list = new List<Http2PeerSetting>(2);
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
IIS.NewHandler.FunctionalTests (9)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
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)
203var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2Utilities.cs (2)
415var settings = _clientSettings.GetNonProtocolDefaults(); 449var settings = _clientSettings.GetNonProtocolDefaults();
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
99internal List<Http2PeerSetting> GetNonProtocolDefaults() 103var list = new List<Http2PeerSetting>(2);
IIS.NewShim.FunctionalTests (9)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
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)
203var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2Utilities.cs (2)
415var settings = _clientSettings.GetNonProtocolDefaults(); 449var settings = _clientSettings.GetNonProtocolDefaults();
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
99internal List<Http2PeerSetting> GetNonProtocolDefaults() 103var list = new List<Http2PeerSetting>(2);
IIS.ShadowCopy.Tests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
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\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
99internal List<Http2PeerSetting> GetNonProtocolDefaults() 103var list = new List<Http2PeerSetting>(2);
IIS.Tests (1)
Utilities\TestServer.cs (1)
212var exceptions = new List<Exception>();
IISExpress.FunctionalTests (21)
OutOfProcess\MultipleAppTests.cs (2)
31var deploymentResults = new List<DeploymentResult>(); 44var requestTasks = new List<Task<HttpResponseMessage>>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
154List<Exception> exceptions = null;
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (2)
45var messages = new List<string>(); 87var messages = new List<string>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (3)
42var list = new List<FrebLogItem>(); 145var xmlFiles = Directory.GetFiles(folderPath).Where(f => f.EndsWith("xml", StringComparison.Ordinal)).ToList(); 146var frebEvents = new List<FrebLogItem>();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (2)
379private static List<KeyValuePair<string, string>> GetHeaders(string path) 381var headers = Headers.ToList();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
41var entries = GetEntries(deploymentResult).ToList();
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)
256var messages = new List<string>(); 741List<Task> tasks = new List<Task>();
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
203var connectionList = new List<TestConnection>();
src\Shared\Http2cat\Http2Utilities.cs (2)
415var settings = _clientSettings.GetNonProtocolDefaults(); 449var settings = _clientSettings.GetNonProtocolDefaults();
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
99internal List<Http2PeerSetting> GetNonProtocolDefaults() 103var list = new List<Http2PeerSetting>(2);
illink (187)
ILLink.RoslynAnalyzer (12)
DataFlow\DynamicallyAccessedMembersBinder.cs (5)
24var members = new List<ISymbol>(); 85var members = new List<ISymbol>(); 98var members = new List<ISymbol>(); 415public static void GetAllOnType(this ITypeSymbol type, bool declaredOnly, List<ISymbol> members) => GetAllOnType(type, declaredOnly, members, new HashSet<ITypeSymbol>(SymbolEqualityComparer.Default)); 418private static void GetAllOnType(ITypeSymbol type, bool declaredOnly, List<ISymbol> members, HashSet<ITypeSymbol> types)
DataFlow\InterproceduralState.cs (1)
55var methodsList = new List<MethodBodyValue>(Methods.GetKnownValues());
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (2)
77List<int>? nestedNameLengths = null; 262private static TypeName? GetDeclaringType(string fullTypeName, List<int>? nestedNameLengths, AssemblyNameInfo? assemblyName)
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
234ref List<int>? nestedNameLengths, ref int recursiveDepth, out int totalLength)
src\tools\illink\src\ILLink.Shared\Annotations.cs (2)
59var memberTypesList = AllDynamicallyAccessedMemberTypes 135var args = new List<string>();
TrimAnalysis\TrimDataFlowAnalysis.cs (1)
90var blocks = cfg.Blocks.ToList();
Infrastructure.Common (9)
OSHelper.cs (2)
29private static List<Tuple<string, OSID>> _runtimeToOSID = new List<Tuple<string, OSID>> 50private static List<Tuple<string, OSID>> _descriptionToOSID = new List<Tuple<string, OSID>>
TestEventListener.cs (4)
19private List<EventSource> _tmpEventSourceList = new List<EventSource>(); 21public TestEventListener(List<string> targetSourceNames, EventLevel level) 50List<EventSource> sources; 64List<EventSource> tmp = _tmpEventSourceList;
xunit\ConditionAttribute.cs (1)
45List<string> falseConditions = new List<string>(conditionCount);
xunit\WcfTestDiscoverer.cs (2)
36List<string> issueSkipList = new List<string>(); 63List<string> skipReasons = new List<string>(conditions.Length);
InMemory.FunctionalTests (40)
ConnectionLimitTests.cs (1)
155var connectionErrors = measurements
EventSourceTests.cs (4)
79var events = _listener.EventData.Where(e => e != null && GetProperty(e, "connectionId") == connectionId).ToList(); 204var events = _listener.EventData.Where(e => e != null && GetProperty(e, "connectionId") == connectionId).ToList(); 308var events = _listener.EventData.Where(e => e != null && GetProperty(e, "connectionId") == connectionId).ToList(); 389var events = _listener.EventData.Where(e => e != null && GetProperty(e, "connectionId") == connectionId).ToList();
Http2\Http2ConnectionTests.cs (5)
852var dataFrames = new List<Http2FrameWithPayload>(); 1085var dataFrames = new List<Http2FrameWithPayload>(); 1439var dataFrames = new List<Http2FrameWithPayload>(); 2446var l = values.ToList(); 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>(); 817var settings = _clientSettings.GetNonProtocolDefaults();
Http3\Http3StreamTests.cs (5)
738var receivedData = new List<byte>(); 2394var headers = new List<KeyValuePair<string, string>>(); 2422var headers = new List<KeyValuePair<string, string>>(); 3040var settings = new List<Http3PeerSetting> 3228var settings = new List<Http3PeerSetting>
Http3\WebTransport\WebTransportHandshakeTests.cs (1)
132var headersConnectFrame = new List<KeyValuePair<string, string>>();
HttpsConnectionMiddlewareTests.cs (1)
806var streams = new List<SslStream>();
HttpsTests.cs (2)
847public List<string> ErrorMessages => new List<string>(); 848public List<Exception> ErrorExceptions { get; } = new List<Exception>();
RequestTests.cs (2)
84var bufferLengths = new List<int>(); 602var tasks = new List<Task>(iterations);
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
84private List<(byte[], DateTimeOffset)> _revocationList;
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (4)
891internal async Task SendSettingsAsync(List<Http3PeerSetting> settings, bool endStream = false) 900internal static int CalculateSettingsSize(List<Http3PeerSetting> settings) 911internal static void WriteSettings(List<Http3PeerSetting> settings, Span<byte> destination) 1115private List<CloseAction> _onClosed;
src\Servers\Kestrel\shared\test\MockLogger.cs (1)
13private readonly List<string> _messages = new List<string>();
src\Servers\Kestrel\shared\test\PipeWriterHttp2FrameExtensions.cs (1)
23var settings = clientSettings.GetNonProtocolDefaults();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
25private readonly List<(string, CertificateAuthority)> _ocspAuthorities =
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (2)
55var unavailableEndpoints = new List<IPEndPoint>(); 86static void AddEndpoints(int startingPort, List<IPEndPoint> endpoints, IEnumerable<IPEndPoint> activeEndpoints)
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\TestApplicationErrorLoggerLoggedTest.cs (1)
32public List<Type> IgnoredCriticalLogExceptions => TestApplicationErrorLogger.IgnoredExceptions;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
42private List<KeyValuePair<Type, object>>? MaybeExtra;
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
InProcessWebSite (1)
Startup.WebSockets.cs (1)
78var messages = new List<string>();
installer.tasks (2)
GenerateTestSharedFrameworkDepsFile.cs (2)
53List<RuntimeFile> runtimeFiles = []; 54List<RuntimeFile> nativeFiles = [];
IntegrationTestsWebsite (1)
Infrastructure\DynamicEndpointDataSource.cs (1)
14private readonly List<Endpoint> _endpoints = new List<Endpoint>();
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
88var expectedOutput = new List<string>
Interop.FunctionalTests (19)
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)
781var connectionRequestTasks = new List<Task<int>>(); 801var requestTasks = new List<Task>(); 1043var requestHeaders = new List<Dictionary<string, StringValues>>(); 1676var contexts = new List<HttpContext>();
HttpClientHttp2InteropTests.cs (5)
35var list = new List<object[]>() 129var requestTasks = new List<Task>(requestCount); 177var requestTasks = new List<Task>(requestCount); 1226var tasks = new List<Task<HttpResponseMessage>>(10); 1287var tasks = new List<Task<HttpResponseMessage>>(10);
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (2)
55var unavailableEndpoints = new List<IPEndPoint>(); 86static void AddEndpoints(int startingPort, List<IPEndPoint> endpoints, IEnumerable<IPEndPoint> activeEndpoints)
src\Servers\Kestrel\shared\test\StreamExtensions.cs (2)
52var data = new List<byte>(); 79var data = new List<byte>();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
24private readonly List<Exception> _blockAccessExceptions;
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
InteropClient (7)
AsyncStreamExtensions.cs (2)
43public static async Task<List<T>> ToListAsync<T>(this IAsyncStreamReader<T> streamReader) 46var result = new List<T>();
InteropClient.cs (5)
327var bodySizes = new List<int> { 31415, 9, 2653, 58979 }; 336var responseList = await call.ResponseStream.ToListAsync(); 398var responseList = await call.ResponseStream.ToListAsync(); 823var bodySizes = new List<int> { 31415, 92653 }; 833var responseList = await call.ResponseStream.ToListAsync();
InteropWebsite (2)
TestServiceImpl.cs (2)
101var echoInitialList = context.RequestHeaders.Where((entry) => entry.Key == "x-grpc-test-echo-initial").ToList(); 115var echoTrailingList = context.RequestHeaders.Where((entry) => entry.Key == "x-grpc-test-echo-trailing-bin").ToList();
IOperationGenerator (23)
IOperationClassWriter.cs (17)
323List<AbstractNode> elementsToKind = _tree.Types.OfType<AbstractNode>() 330var unusedKinds = _tree.UnusedOperationKinds.Entries?.Select(e => e.Value).ToList() ?? new List<int>(); 405var allProps = GetAllProperties(type); 407var ioperationProperties = allProps.Where(p => IsIOperationType(p.Type)).ToList(); 408var publicIOperationProps = ioperationProperties.Where(p => !p.IsInternal).ToList(); 551List<Property> propsToInitialize = type.Properties.Where(p => !p.SkipGeneration && !p.MakeAbstract).ToList(); 664void writeCountProperty(List<Property> publicIOperationProps) 702void writeEnumeratorMethods(AbstractNode type, List<Property> publicIOperationProps, Node node) 706var orderedProperties = new List<Property>(); 715var childrenOrdered = GetPropertyOrder(node); 735void writeGetCurrent(List<Property> orderedProperties) 770void writeMoveNext(List<Property> orderedProperties) 846void writeMoveNextReversed(List<Property> orderedProperties) 1074private List<Property> GetAllProperties(AbstractNode node, bool includeSkipGenerationProperties = false) 1076var properties = node.Properties.Where(p => !p.SkipGeneration || includeSkipGenerationProperties).ToList(); 1091private List<Property> GetAllGeneratedIOperationProperties(AbstractNode node) 1120private static List<string> GetPropertyOrder(Node node) => node.ChildrenOrder?.Split(",", StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()).ToList() ?? new List<string>();
IOperationClassWriter.Verifier.cs (3)
86var properties = GetAllGeneratedIOperationProperties(node).Where(p => !p.IsInternal).Select(p => p.Name).ToList(); 92var splitOrder = GetPropertyOrder(node); 111var childrenOrdered = GetPropertyOrder(node);
Model.cs (3)
25public List<TreeType> Types; 52public List<Property> Properties; 146public List<OperationKindEntry> Entries;
Keycloak.Web (1)
WeatherApiClient.cs (1)
7List<WeatherForecast>? forecasts = null;
KeyManagementSimulator (1)
Program.cs (1)
523private readonly List<XElement> _elements = new();
LocalizationWebsite (1)
StartupResourcesInClassLibrary.cs (1)
23var supportedCultures = new List<CultureInfo>()
Metrics (119)
Program.cs (2)
43var projectsOrSolutions = new List<string>(); 265private static async Task<(ImmutableArray<(string, CodeAnalysisMetricData)>, ErrorCode)> GetMetricDatasAsync(List<string> projectsOrSolutions, bool quiet, CancellationToken cancellationToken)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
40List<SyntaxNode> statements = []; 353List<SyntaxNode> statements = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
Metrics.Legacy (119)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\RoslynAnalyzers\Tools\Metrics\Program.cs (2)
43var projectsOrSolutions = new List<string>(); 265private static async Task<(ImmutableArray<(string, CodeAnalysisMetricData)>, ErrorCode)> GetMetricDatasAsync(List<string> projectsOrSolutions, bool quiet, CancellationToken cancellationToken)
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
40List<SyntaxNode> statements = []; 353List<SyntaxNode> statements = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
Microsoft.Analyzers.Extra (28)
CallAnalysis\CallAnalyzer.Handlers.cs (5)
28if (_state.Methods.TryGetValue(target.OriginalDefinition, out var handlers)) 44if (_state.Interfaces.TryGetValue(type, out var l)) 62if (_state.Interfaces.TryGetValue(iface, out var l)) 87if (_state.Ctors.TryGetValue(op.Constructor.OriginalDefinition, out var handlers)) 103if (_state.Props.TryGetValue(op.Property, out var handlers))
CallAnalysis\CallAnalyzer.Registrar.cs (5)
35if (!_state.Methods.TryGetValue(method, out var l)) 89if (!_state.Ctors.TryGetValue(ctor, out var l)) 129if (!_state.Props.TryGetValue(prop, out var l)) 167if (!_state.Interfaces.TryGetValue(method.ContainingType, out var handlers)) 228if (!_state.ExceptionTypes.TryGetValue(type, out var l))
CallAnalysis\CallAnalyzer.State.cs (6)
16public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IInvocationOperation>>> Methods = new(SymbolEqualityComparer.Default); 17public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IObjectCreationOperation>>> Ctors = new(SymbolEqualityComparer.Default); 18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default); 19public readonly Dictionary<ITypeSymbol, List<Action<OperationAnalysisContext, IThrowOperation>>> ExceptionTypes = new(SymbolEqualityComparer.Default); 20public readonly Dictionary<ITypeSymbol, List<MethodHandlers>> Interfaces = new(SymbolEqualityComparer.Default); 32public List<Action<OperationAnalysisContext, IInvocationOperation>> Actions { get; } = [];
CallAnalysis\Fixers\LegacyLoggingFixer.cs (6)
154var invocationArgList = MakeArgumentList(details, invocationOp); 361private static List<SyntaxNode> MakeParameterList( 379var parameters = new List<SyntaxNode> 427private static List<ITypeSymbol> MakeArgumentList(FixDetails details, IInvocationOperation invocationOp) 429var args = new List<ITypeSymbol> 476var argList = new List<SyntaxNode>();
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (4)
54var interpolationArgs = new List<IOperation>(); 55var messageArgs = new List<string>(); 261private static List<string> ExtractTemplateArgs(string message) 263var args = new List<string>();
CallAnalysis\LegacyLogging.cs (1)
21var legacyMethods = new List<IMethodSymbol>();
MakeExeTypesInternalAnalyzer.cs (1)
79var disqualifyingBaseClasses = new List<ITypeSymbol>();
Microsoft.Analyzers.Extra.Tests (10)
Resources\RoslynTestUtils.cs (9)
38var refs = new List<MetadataReference>(); 155var filtered = new List<Diagnostic>(); 303var l = sourceNames.ToList(); 342var actions = new List<CodeAction>(); 372var results = new List<string>(); 376var l = sourceNames.ToList(); 418var l = sourceNames.ToList(); 463var results = new List<string>(); 467var l = sourceNames.ToList();
SyntaxNodeExtensionsTests.cs (1)
22var emptyList = new List<string>();
Microsoft.Analyzers.Local (27)
ApiLifecycle\ApiLifecycleAnalyzer.cs (2)
123if (assemblyAnalysis.MissingConstraints.TryGetValue(symbol, out var missingContraintsForSymbol)) 131if (assemblyAnalysis.MissingBaseTypes.TryGetValue(symbol, out var missingBaseForSymbol))
ApiLifecycle\AssemblyAnalysis.cs (5)
17public Dictionary<ISymbol, List<string>> MissingConstraints { get; } = new(SymbolEqualityComparer.Default); 18public Dictionary<ISymbol, List<string>> MissingBaseTypes { get; } = new(SymbolEqualityComparer.Default); 165if (MissingBaseTypes.TryGetValue(type, out var collection)) 181if (MissingConstraints.TryGetValue(type, out var collection)) 283var modifiers = new List<string>(6);
ApiLifecycle\Json\JsonArray.cs (1)
20private readonly List<JsonValue> _items = [];
ApiLifecycle\Utils.cs (2)
50var result = new List<string>(); 71private static void GetBaseTypesImpl(List<string> results, string baseTypesString)
CallAnalysis\CallAnalyzer.Handlers.cs (6)
28if (_state.Methods.TryGetValue(target.OriginalDefinition, out var handlers)) 44if (_state.Interfaces.TryGetValue(type, out var l)) 62if (_state.Interfaces.TryGetValue(iface, out var l)) 87if (_state.Ctors.TryGetValue(op.Constructor.OriginalDefinition, out var handlers)) 103if (_state.Props.TryGetValue(op.Property, out var handlers)) 122if (_state.ExceptionTypes.TryGetValue(creationOp.Type, out var handlers))
CallAnalysis\CallAnalyzer.Registrar.cs (5)
35if (!_state.Methods.TryGetValue(method, out var l)) 89if (!_state.Ctors.TryGetValue(ctor, out var l)) 129if (!_state.Props.TryGetValue(prop, out var l)) 167if (!_state.Interfaces.TryGetValue(method.ContainingType, out var handlers)) 228if (!_state.ExceptionTypes.TryGetValue(type, out var l))
CallAnalysis\CallAnalyzer.State.cs (6)
16public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IInvocationOperation>>> Methods = new(SymbolEqualityComparer.Default); 17public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IObjectCreationOperation>>> Ctors = new(SymbolEqualityComparer.Default); 18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default); 19public readonly Dictionary<ITypeSymbol, List<Action<OperationAnalysisContext, IThrowOperation>>> ExceptionTypes = new(SymbolEqualityComparer.Default); 20public readonly Dictionary<ITypeSymbol, List<MethodHandlers>> Interfaces = new(SymbolEqualityComparer.Default); 32public List<Action<OperationAnalysisContext, IInvocationOperation>> Actions { get; } = [];
Microsoft.Analyzers.Local.Tests (10)
InternalReferencedInPublicDocAnalyzerTests.cs (1)
461var detected = result.Where(IsInternalReferencedInPublicDocDiagnostic).ToList();
Resources\RoslynTestUtils.cs (9)
38var refs = new List<MetadataReference>(); 155var filtered = new List<Diagnostic>(); 304var l = sourceNames.ToList(); 343var actions = new List<CodeAction>(); 373var results = new List<string>(); 377var l = sourceNames.ToList(); 419var l = sourceNames.ToList(); 464var results = new List<string>(); 468var l = sourceNames.ToList();
Microsoft.Arcade.Test.Common (5)
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>();
MockFileSystem.cs (1)
20public List<string> RemovedFiles { get; } = new();
Microsoft.AspNetCore (7)
BootstrapHostBuilder.cs (3)
16private readonly List<Action<IConfigurationBuilder>> _configureHostActions = new(); 17private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppActions = new(); 18private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new();
ConfigureHostBuilder.cs (1)
22private readonly List<Action<HostBuilderContext, object>> _configureContainerActions = new();
WebApplication.cs (1)
30private readonly List<EndpointDataSource> _dataSources = new();
WebApplicationBuilder.cs (2)
502sourceValue is List<string> sourceDescriptions && 503destinationValue is List<string> destinationDescriptions)
Microsoft.AspNetCore.Analyzer.Testing (4)
CodeFixRunner.cs (1)
28var actions = new List<CodeAction>();
DiagnosticAnalyzerRunner.cs (1)
59var diagnostics = new List<Diagnostic>();
DiagnosticVerifier.cs (2)
79var diagnostics = new List<Diagnostic>(); 190public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string> assemblies)
Microsoft.AspNetCore.Analyzers (6)
CompilationFeatureDetector.cs (1)
30var configureMethods = ConfigureMethodVisitor.FindConfigureMethods(symbols, compilation.Assembly);
ConfigureMethodVisitor.cs (2)
11public static List<IMethodSymbol> FindConfigureMethods(StartupSymbols symbols, IAssemblySymbol assembly) 19private readonly List<IMethodSymbol> _methods;
StartupAnalysisBuilder.cs (3)
12private readonly Dictionary<INamedTypeSymbol, List<object>> _analysesByType; 22_analysesByType = new Dictionary<INamedTypeSymbol, List<object>>(SymbolEqualityComparer.Default); 63if (!_analysesByType.TryGetValue(type, out var list))
Microsoft.AspNetCore.Analyzers.Test (1)
ConfigureMethodVisitorTest.cs (1)
82var results = ConfigureMethodVisitor.FindConfigureMethods(symbols, compilation.Assembly);
Microsoft.AspNetCore.Antiforgery (6)
Internal\DefaultAntiforgeryTokenGenerator.cs (2)
202var identitiesList = claimsPrincipal.Identities as List<ClaimsIdentity>;
Internal\DefaultClaimUidExtractor.cs (4)
41var identitiesList = claimsIdentities as List<ClaimsIdentity>; 93var allClaims = new List<Claim>(); 110var identifierParameters = new List<string>(allClaims.Count * 3);
Microsoft.AspNetCore.Antiforgery.Test (2)
DefaultAntiforgeryTokenSerializerTest.cs (1)
158var input = new List<byte>(data);
DefaultClaimUidExtractorTest.cs (1)
66var claims = claimsIdentity.Claims.ToList();
Microsoft.AspNetCore.App.Analyzers (20)
Infrastructure\AmbiguousRoutePatternComparer.cs (2)
103var xParameterPolicies = x.ParameterParts.Where(p => p.Kind == RoutePatternKind.ParameterPolicy).OfType<RoutePatternPolicyParameterPartNode>().ToList(); 104var yParameterPolicies = y.ParameterParts.Where(p => p.Kind == RoutePatternKind.ParameterPolicy).OfType<RoutePatternPolicyParameterPartNode>().ToList();
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (7)
267var charResults = new List<(char ch, TextSpan span)>(); 304string tokenText, int offset, int startIndexInclusive, int endIndexExclusive, List<(char ch, TextSpan span)> charResults) 314private static void ConvertCharactersToRunes(List<(char ch, TextSpan span)> charResults, ImmutableList<VirtualChar>.Builder runeResults) 348List<(char ch, TextSpan span)> result, string tokenText, int offset, int index) 361List<(char ch, TextSpan span)> result, string tokenText, int offset, int index) 394List<(char ch, TextSpan span)> result, string tokenText, int offset, int index) 413List<(char ch, TextSpan span)> result, string tokenText, int offset, int index, char character)
Mvc\DetectAmbiguousActionRoutes.cs (1)
21private static void DetectAmbiguousActionRoutes(SymbolAnalysisContext context, WellKnownTypes wellKnownTypes, RoutePatternTree? controllerRoutePattern, List<ActionRoute> actionRoutes)
Mvc\DetectOverriddenAuthorizeAttribute.cs (4)
27INamedTypeSymbol controllerSymbol, List<AttributeInfo> authorizeAttributes, out string? allowAnonClass) 57IMethodSymbol actionSymbol, List<AttributeInfo> authorizeAttributes, string? allowAnonClass) 153List<AttributeInfo> authorizeAttributes, out bool foundAllowAnonymous) 156List<AttributeData>? localAuthorizeAttributeOverflow = null;
Mvc\MvcAnalyzer.cs (3)
40var concurrentQueue = new ConcurrentQueue<(List<ActionRoute> ActionRoutes, List<AttributeInfo> AuthorizeAttributes)>(); 91private static void PopulateActionRoutes(SymbolAnalysisContext context, WellKnownTypes wellKnownTypes, RouteUsageCache routeUsageCache, List<ActionRoute> actionRoutes, IMethodSymbol methodSymbol)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
486public readonly List<RoutePatternItem> Items = new();
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
335public readonly List<RoutePatternItem> Items = new();
src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
21private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Microsoft.AspNetCore.App.Analyzers.Test (13)
Http\HeaderDictionaryIndexerAnalyzerTests.cs (1)
163var headerDictionaryPropertyNames = typeof(IHeaderDictionary)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (7)
53string input, out string output, out int? position, out IDictionary<string, List<TextSpan>> spans) 56var tempSpans = new Dictionary<string, List<TextSpan>>(); 70var matches = new List<(int matchIndex, string name)>(); 88var orderedMatches = matches.OrderBy(t => t, Comparer<(int matchIndex, string name)>.Create((t1, t2) => t1.matchIndex - t2.matchIndex)).ToList(); 191IDictionary<string, List<TextSpan>> spans, 200private static void AddMatch(string input, string value, int currentIndex, List<(int, string)> matches) 214var builder = GetOrAdd(dictionary, string.Empty, _ => new List<TextSpan>());
RouteEmbeddedLanguage\RoutePatternClassifierTests.cs (1)
32var actualOrdered = actual.OrderBy(t1 => t1.TextSpan.Start).ToList();
RouteEmbeddedLanguage\RoutePatternHighlighterTests.cs (2)
457var tempSpans = spans.ToList(); 458var highlightSpans = await Runner.GetHighlightingAsync(cursorPosition, output);
TestDiagnosticAnalyzer.cs (2)
98public async Task<List<AspNetCoreHighlightSpan>> GetHighlightingAsync(int caretPosition, params string[] sources) 123var assemblies = MefHostServices.DefaultAssemblies.ToList();
Microsoft.AspNetCore.App.UnitTests (2)
TestData.cs (2)
12public static List<string> ListedSharedFxAssemblies; 14public static List<string> ListedTargetingPackAssemblies;
Microsoft.AspNetCore.Authentication.Abstractions (2)
TokenExtensions.cs (2)
34var tokenNames = new List<string>(); 99var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.Certificate (2)
CertificateAuthenticationHandler.cs (2)
148var chainErrors = new List<string>(chain.ChainStatus.Length); 253var claims = new List<Claim>();
Microsoft.AspNetCore.Authentication.Cookies (4)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationSchemeProvider.cs (1)
49private readonly List<AuthenticationScheme> _requestHandlers;
Microsoft.AspNetCore.Authentication.Core.Test (7)
TokenExtensionTests.cs (7)
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>(); 158var tokens = new List<AuthenticationToken> 173var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.JwtBearer (6)
JwtBearerConfigureOptions.cs (3)
45var issuers = configSection.GetSection(nameof(TokenValidationParameters.ValidIssuers)).GetChildren().Select(iss => iss.Value).ToList(); 48var audiences = configSection.GetSection(nameof(TokenValidationParameters.ValidAudiences)).GetChildren().Select(aud => aud.Value).ToList(); 79private static IEnumerable<SecurityKey> GetIssuerSigningKeys(IConfiguration configuration, List<string?> issuers)
JwtBearerHandler.cs (3)
97List<Exception>? validationFailures = null; 222private void RecordTokenValidationError(Exception exception, List<Exception> exceptions) 381var messages = new List<string>(exceptions.Count);
Microsoft.AspNetCore.Authentication.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)
27var itemsToRemove = Actions.Where(map => string.Equals(claimType, map.ClaimType, StringComparison.OrdinalIgnoreCase)).ToList();
OAuthHandler.cs (1)
150var authTokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1112var tokens = new List<AuthenticationToken>();
Microsoft.AspNetCore.Authentication.Test (13)
ClaimActionTests.cs (2)
36var roleClaims = identity.FindAll("role").ToList(); 68var roleClaims = identity.FindAll("role").ToList();
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)
13public 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 (1)
255var kvps = new List<KeyValuePair<string, string>>();
WsFederation\WsFederationTest_Handler.cs (1)
246var kvps = new List<KeyValuePair<string, string>>();
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterErrorResponse.cs (1)
8public List<TwitterError>? Errors { get; set; }
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationHandler.cs (1)
179List<Exception>? validationFailures = null;
Microsoft.AspNetCore.Authorization (1)
AuthorizationHandlerContext.cs (1)
18private List<AuthorizationFailureReason>? _failedReasons;
Microsoft.AspNetCore.Authorization.Test (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
13public 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 (81)
CascadingParameterState.cs (2)
46List<CascadingParameterState>? resultStates = null; 118List<CascadingParameterInfo>? result = null;
CascadingValueSource.cs (3)
19private readonly ConcurrentDictionary<Dispatcher, List<ComponentState>>? _subscribers; 94var tasks = new List<Task>(); 177if (_subscribers?.TryGetValue(dispatcher, out var subscribersForDispatcher) == true)
ComponentFactory.cs (1)
112List<(string name, Type propertyType, PropertySetter setter, object? serviceKey)>? injectables = null;
NavigationManager.cs (1)
34private readonly List<Func<LocationChangingContext, ValueTask>> _locationChangingHandlers = new();
PersistentComponentState.cs (4)
19private readonly List<PersistComponentStateRegistration> _registeredCallbacks; 20private readonly List<RestoreComponentStateRegistration> _registeredRestoringCallbacks; 24List<PersistComponentStateRegistration> pauseCallbacks, 25List<RestoreComponentStateRegistration> restoringCallbacks)
PersistentState\ComponentStatePersistenceManager.cs (5)
14private readonly List<PersistComponentStateRegistration> _registeredCallbacks = new(); 15private readonly List<RestoreComponentStateRegistration> _registeredRestoringCallbacks = new(); 47internal List<PersistComponentStateRegistration> RegisteredCallbacks => _registeredCallbacks; 208List<Task<bool>>? pendingCallbackTasks = null; 288static async Task<bool> AnyTaskFailed(List<Task<bool>> pendingCallbackTasks)
PersistentState\PersistentServicesRegistry.cs (3)
25private List<(PersistingComponentStateSubscription, RestoringComponentStateSubscription)> _subscriptions = []; 58var subscriptions = new List<(PersistingComponentStateSubscription, RestoringComponentStateSubscription)>( 169var keys = new List<(string, Type)>();
PersistentState\PersistingComponentStateSubscription.cs (2)
14private readonly List<PersistComponentStateRegistration>? _callbacks; 17internal PersistingComponentStateSubscription(List<PersistComponentStateRegistration> callbacks, PersistComponentStateRegistration callback)
PersistentState\RestoringComponentStateSubscription.cs (2)
11private readonly List<RestoreComponentStateRegistration> _registeredRestoringCallbacks; 15List<RestoreComponentStateRegistration> registeredRestoringCallbacks,
Reflection\ComponentProperties.cs (1)
249var propertyNames = new List<string>();
Reflection\MemberAssignment.cs (6)
32List<PropertyInfo> many; 40many = (List<PropertyInfo>)others; 57var list = (List<PropertyInfo>)item.Value; 73var many = (List<PropertyInfo>)others;
Rendering\ComponentState.cs (1)
206List<CascadingParameterState>? remainingCascadingParameters = null;
RenderTree\Renderer.cs (10)
52private List<Task>? _pendingTasks; 905List<Task> batch = null; 940List<Task> batch = null; 958private void NotifyRenderCompleted(ComponentState state, ref List<Task> batch) 1009List<Exception> exceptions = null; 1244List<Exception> exceptions = null; 1245List<Task> asyncDisposables = null; 1283async Task HandleAsyncExceptions(List<Task> tasks) 1285List<Exception> asyncExceptions = null; 1302void NotifyExceptions(List<Exception> exceptions)
RenderTree\RenderTreeDiffBuilder.cs (2)
769var frameTypes = new List<string>(); 780var componentPath = new List<string>();
Routing\RouteTableFactory.cs (8)
41var componentTypes = GetRouteableComponents(routeKey); 50private static List<Type> GetRouteableComponents(RouteKey routeKey) 52var routeableComponents = new List<Type>(); 72static void GetRouteableComponents(List<Type> routeableComponents, Assembly assembly) 86internal static RouteTable Create(List<Type> componentTypes, IServiceProvider serviceProvider) 136var unusedRouteParameterNames = GetUnusedParameterNames(allRouteParameterNames!, routeParameterNames!); 235private static List<string>? GetUnusedParameterNames(HashSet<string> allRouteParameterNames, HashSet<string> routeParameterNames) 237List<string>? unusedParameters = null;
Routing\StringSegmentAccumulator.cs (1)
13private List<ReadOnlyMemory<char>>? _multiple;
Sections\SectionRegistry.cs (6)
9private readonly Dictionary<object, List<SectionContent>> _providersByIdentifier = new(); 13if (!_providersByIdentifier.TryGetValue(identifier, out var providers)) 31if (!_providersByIdentifier.TryGetValue(identifier, out var providers)) 78if (!_providersByIdentifier.TryGetValue(identifier, out var providers)) 91private static SectionContent? GetCurrentProviderContentOrDefault(List<SectionContent> providers) 97=> _providersByIdentifier.TryGetValue(identifier, out var existingList)
src\Components\Shared\src\ArrayBuilder.cs (1)
23/// This differs from a <see cref="System.Collections.Generic.List{T}"/> in that
src\Http\Routing\src\ParameterPolicyActivator.cs (4)
119var matchingConstructors = GetMatchingConstructors(constructors, serviceProvider, arguments.Length); 146private static List<ConstructorInfo> GetMatchingConstructors(ConstructorInfo[] constructors, IServiceProvider? serviceProvider, int argumentsLength) 148var result = new List<ConstructorInfo>(); 159private static ConstructorInfo GetLongestConstructor(List<ConstructorInfo> constructors, Type parameterPolicyType)
src\Http\Routing\src\Patterns\RouteParameterParser.cs (1)
103var constraints = new List<RoutePatternParameterPolicyReference>();
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (4)
443Dictionary<string, List<RoutePatternParameterPolicyReference>>? parameterPolicyReferences, 469List<RoutePatternParameterPart>? parameters = null; 608List<RoutePatternParameterPolicyReference>? parameterConstraints = null; 614parameterPolicyReferences = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(StringComparer.OrdinalIgnoreCase);
src\Http\Routing\src\Patterns\RoutePatternParser.cs (7)
32var segments = new List<RoutePatternPathSegment>(); 71private static bool ParseSegment(Context context, List<RoutePatternPathSegment> segments) 76var parts = new List<RoutePatternPart>(); 143private static bool ParseParameter(Context context, List<RoutePatternPart> parts) 245private static bool ParseLiteral(Context context, List<RoutePatternPart> parts) 316private static bool IsAllValid(Context context, List<RoutePatternPathSegment> segments) 338private static bool IsSegmentValid(Context context, List<RoutePatternPart> parts)
src\Http\Routing\src\RouteConstraintBuilder.cs (3)
27private readonly Dictionary<string, List<IRouteConstraint>> _constraints; 44_constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 169if (!_constraints.TryGetValue(key, out var list))
src\Http\Routing\src\Tree\InboundRouteEntry.cs (1)
76public List<string> UnusedRouteParameterNames { get; set; }
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
88List<string> unusedParameterNames)
src\Http\Routing\src\Tree\UrlMatchingNode.cs (1)
50public List<InboundMatch> Matches { get; }
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)
39List<IAuthorizeData>? authorizeDatas = null;
Microsoft.AspNetCore.Components.Authorization.Tests (6)
src\Components\Shared\test\CapturedBatch.cs (2)
10public IDictionary<int, List<RenderTreeDiff>> DiffsByComponentId { get; } 11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestRenderer.cs (2)
41public List<CapturedBatch> Batches { get; } 44public List<Exception> HandledExceptions { get; } = new List<Exception>();
TestAsyncAuthorizationService.cs (1)
14public List<(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements)> AuthorizeCalls { get; }
TestAuthorizationService.cs (1)
14public List<(ClaimsPrincipal user, object resource, IEnumerable<IAuthorizationRequirement> requirements)> AuthorizeCalls { get; }
Microsoft.AspNetCore.Components.Endpoints (73)
Assets\ResourcePreloader.cs (2)
15private List<PreloadAsset>? assets; 32private void PreloadAssets(List<PreloadAsset> assets)
Builder\RazorComponentEndpointDataSource.cs (7)
21private readonly List<Action<EndpointBuilder>> _conventions = []; 22private readonly List<Action<EndpointBuilder>> _finallyConventions = []; 30private List<Endpoint>? _endpoints; 39internal List<Action<EndpointBuilder>> Conventions => _conventions; 109var endpoints = new List<Endpoint>(); 177private void AddBlazorWebEndpoints(List<Endpoint> endpoints) 179List<EndpointBuilder> blazorWebEndpoints = [
Builder\RazorComponentEndpointFactory.cs (1)
23List<Endpoint> endpoints,
Builder\RazorComponentsEndpointConventionBuilder.cs (6)
19private readonly List<Action<EndpointBuilder>> _conventions; 20private readonly List<Action<EndpointBuilder>> _finallyConventions; 27List<Action<EndpointBuilder>> conventions, 28List<Action<EndpointBuilder>> finallyConventions) 85List<Endpoint> endpoints, 88public List<Endpoint> Endpoints { get; } = endpoints;
Builder\RenderModeEndpointProvider.cs (3)
35List<Endpoint> endpoints, 39List<Action<EndpointBuilder>> conventions, 40List<Action<EndpointBuilder>> finallyConventions)
Builder\ResourceCollectionUrlEndpoint.cs (1)
22List<Endpoint> endpoints,
Builder\ResourcePreloadCollection.cs (3)
10private readonly Dictionary<string, List<PreloadAsset>> _storage = new(); 38if (!_storage.TryGetValue(group, out var groupHeaders)) 99public bool TryGetAssets(string group, [MaybeNullWhen(false)] out List<PreloadAsset> assets)
Builder\ResourcePreloadService.cs (3)
8private Action<List<PreloadAsset>>? handler; 10public void SetPreloadingHandler(Action<List<PreloadAsset>> handler) 13public void Preload(List<PreloadAsset> assets)
Discovery\IRazorComponentApplication.cs (2)
23var pages = new List<PageComponentBuilder>(); 24var components = new List<ComponentBuilder>();
Discovery\PageCollectionBuilder.cs (3)
58var list = new List<PageComponentInfo>(totalCount); 60var metadata = new List<object>(); 78private static void ResolveMetadata(Type componentType, List<object> result)
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (5)
190CreateConverter<IReadOnlyList<TElement>, List<TElement>>(elementTypeConverter), 192CreateConverter<IReadOnlyCollection<TElement>, List<TElement>>(elementTypeConverter), 196CreateConverter<IList<TElement>, List<TElement>>(elementTypeConverter), 198CreateConverter<ICollection<TElement>, List<TElement>>(elementTypeConverter), 202CreateConverter<IEnumerable<TElement>, List<TElement>>(elementTypeConverter),
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (20)
33var parameters = new List<ParameterExpression>() { readerParam, typeParam, optionsParam, resultParam, foundValueParam }; 40var variables = new List<ParameterExpression>() { propertyFoundValue, succeeded, localFoundValueVar, exceptionVar }; 42var propertyValueLocals = new List<ParameterExpression>(); 43var constructorParameterValueLocals = new List<ParameterExpression>(); 45var body = new List<Expression>() 112List<ParameterExpression> constructorParameterValueLocals, 114List<ParameterExpression> propsLocals, 115List<ParameterExpression> variables, 190var assignments = new List<Expression>(); 226List<ParameterExpression> constructorParameters, 228List<ParameterExpression> properties, 329List<ParameterExpression> variables, 330List<ParameterExpression> propertyValueLocals, 331List<Expression> body) 428List<ParameterExpression> variables, 429List<ParameterExpression> constructorParameterValueLocals, 430List<Expression> body) 560List<ParameterExpression> parameters, 561List<ParameterExpression> variables, 562List<Expression> body)
FormMapping\FormDataMapperOptions.cs (2)
15private readonly List<IFormDataConverterFactory> _factories = new(); 39internal List<IFormDataConverterFactory> Factories => _factories;
FormMapping\Metadata\FormDataMetadataFactory.cs (2)
14internal partial class FormDataMetadataFactory(List<IFormDataConverterFactory> factories, ILoggerFactory loggerFactory) 317public List<Type> CurrentTypes { get; set; } = new();
Rendering\Buffering\TextChunkListBuilder.cs (1)
14private List<TextChunkPage>? _priorPages;
Rendering\EndpointHtmlRenderer.cs (4)
53private readonly List<Task> _nonStreamingPendingTasks = new(); 259private List<StringValues>? _values; 272private static List<StringValues> MaterializeValues(IFormCollection form) 274var result = new List<StringValues>(form.Keys.Count);
Rendering\SSRRenderModeBoundary.cs (1)
128if (preloads != null && preloads.TryGetAssets("webassembly", out var preloadAssets))
src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
src\Shared\Components\ResourceCollectionResolver.cs (2)
34var resources = new List<ResourceAsset>(); 136List<ResourceAsset> resources,
src\Shared\PropertyHelper\PropertyHelper.cs (3)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,
Microsoft.AspNetCore.Components.Endpoints.Tests (90)
Binding\FormDataMapperTests.cs (62)
100var errors = new List<FormDataMappingError>(); 138var errors = new List<FormDataMappingError>(); 296var result = FormDataMapper.Map<List<int>>(reader, options); 311var result = FormDataMapper.Map<List<int>>(reader, options); 328var result = FormDataMapper.Map<List<int>>(reader, options); 346var result = FormDataMapper.Map<List<Colors>>(reader, options); 364var result = FormDataMapper.Map<List<Colors?>>(reader, options); 379var errors = new List<FormDataMappingError>(); 388var result = FormDataMapper.Map<List<int>>(reader, options); 404var errors = new List<FormDataMappingError>(); 413var result = FormDataMapper.Map<List<int>>(reader, options); 443var result = FormDataMapper.Map<List<int>>(reader, options); 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>(); 587var result = FormDataMapper.Map<List<int>>(reader, options); 608var expected = new List<int> { 0, 11, 12, 13, 0, 15, 16, 17, 18, 19 }; 624var errors = new List<FormDataMappingError>(); 632var result = FormDataMapper.Map<List<int>>(reader, options); 635var list = Assert.IsType<List<int>>(result); 665var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 666CanDeserialize_Collection<IReadOnlyList<int>, List<int>, int>(expected); 673var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 674CanDeserialize_Collection<IReadOnlyCollection<int>, List<int>, int>(expected); 689var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 690CanDeserialize_Collection<IList<int>, List<int>, int>(expected); 697var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 698CanDeserialize_Collection<ICollection<int>, List<int>, int>(expected); 705var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 706CanDeserialize_Collection<IEnumerable<int>, List<int>, int>(expected); 753var expected = new List<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; 754CanDeserialize_Collection<List<int>, List<int>, int>(expected); 1072var errors = new List<FormDataMappingError>(); 1133var errors = new List<FormDataMappingError>(); 1192var errors = new List<FormDataMappingError>(); 1432var errors = new List<FormDataMappingError>(); 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(); 2440public List<RecursiveTree> Children { get; set; }
Binding\FormDataMetadataFactoryTests.cs (5)
221Assert.Equal(typeof(List<CustomerWithOrders.Order>), property.PropertyMetadata.Type); 437Assert.Equal(typeof(List<Tree<string>>), property.PropertyMetadata.Type); 598var logMessages = new List<LogMessage>(); 667public List<Order> Orders { get; set; } 708public List<Tree<T>> Children { get; set; }
FormMapping\BrowserFileFromFormFileTests.cs (1)
84var formFiles = new List<IFormFile> { mockFormFile1.Object, mockFormFile2.Object };
HotReloadServiceTests.cs (5)
67var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 95var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 145var pageEndpoints = endpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 146var compositePageEndpoints = compositeEndpointDataSource.Endpoints.Where(e => e.Metadata.GetMetadata<RootComponentMetadata>() != null).ToList(); 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 (7)
EditContextDataAnnotationsExtensions.cs (2)
110var results = new List<ValidationResult>(); 141var validationResults = new List<ValidationResult>();
ValidationMessageStore.cs (5)
14private readonly Dictionary<FieldIdentifier, List<string>> _messages = new Dictionary<FieldIdentifier, List<string>>(); 65=> _messages.TryGetValue(fieldIdentifier, out var messages) ? messages : Array.Empty<string>(); 107private List<string> GetOrCreateMessagesListForField(in FieldIdentifier fieldIdentifier) 109if (!_messages.TryGetValue(fieldIdentifier, out var messagesForField))
Microsoft.AspNetCore.Components.Forms.Tests (5)
FieldIdentifierTest.cs (1)
210var models = new List<TestModel>() { null, new TestModel() };
src\Components\Shared\test\CapturedBatch.cs (2)
10public IDictionary<int, List<RenderTreeDiff>> DiffsByComponentId { get; } 11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestRenderer.cs (2)
41public List<CapturedBatch> Batches { get; } 44public List<Exception> HandledExceptions { get; } = new List<Exception>();
Microsoft.AspNetCore.Components.Performance (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Components.QuickGrid (5)
Columns\GridSort.cs (4)
18private List<Func<IOrderedQueryable<TGridItem>, bool, IOrderedQueryable<TGridItem>>>? _then; 21private List<(LambdaExpression, bool)>? _thenExpressions; 117private List<SortedProperty> BuildPropertyList(bool ascending) 119var result = new List<SortedProperty>
QuickGrid.razor.cs (1)
127private readonly List<ColumnBase<TGridItem>> _columns;
Microsoft.AspNetCore.Components.QuickGrid.Tests (5)
GridRaceConditionTest.cs (1)
109private readonly List<Person> _people = [
src\Components\Shared\test\CapturedBatch.cs (2)
10public IDictionary<int, List<RenderTreeDiff>> DiffsByComponentId { get; } 11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestRenderer.cs (2)
41public List<CapturedBatch> Batches { get; } 44public List<Exception> HandledExceptions { get; } = new List<Exception>();
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 (14)
Circuits\CircuitHost.cs (4)
258List<Exception> exceptions = null; 289List<Exception> exceptions = null; 325List<Exception> exceptions = null; 353List<Exception> exceptions = null;
Circuits\IServerComponentDeserializer.cs (1)
12out List<ComponentDescriptor> descriptors);
Circuits\ServerComponentDeserializer.cs (1)
94public bool TryDeserializeComponentDescriptorCollection(string serializedComponentRecords, out List<ComponentDescriptor> descriptors)
ComponentHub.cs (1)
116if (!_serverComponentSerializer.TryDeserializeComponentDescriptorCollection(serializedComponentRecords, out var components))
src\Components\Shared\src\ArrayBuilder.cs (1)
23/// This differs from a <see cref="System.Collections.Generic.List{T}"/> in that
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)
269List<string>? streams = null;
src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.Components.Server.Tests (39)
Circuits\CircuitActivitySourceTest.cs (1)
21private readonly List<Activity> _activities;
Circuits\CircuitHostTest.cs (4)
140var circuitUnhandledExceptions = new List<UnhandledExceptionEventArgs>(); 222var descriptors = new List<ComponentDescriptor>(); 253var reportedErrors = new List<UnhandledExceptionEventArgs>(); 1046public bool TryDeserializeComponentDescriptorCollection(string serializedComponentRecords, out List<ComponentDescriptor> descriptors)
Circuits\CircuitPersistenceManagerTest.cs (1)
532var markers = new List<ComponentMarker>();
Circuits\ComponentHubTest.cs (1)
370public bool TryDeserializeComponentDescriptorCollection(string serializedComponentRecords, out List<ComponentDescriptor> descriptors)
Circuits\DefaultInMemoryCircuitPersistenceProviderTest.cs (1)
114var evictedKeys = new List<string>();
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)
242public List<(AuthenticationState AuthenticationState, CancellationToken CancellationToken)> RevalidationCallLog { get; }
Circuits\ServerComponentDeserializerTest.cs (16)
33Assert.True(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 48Assert.True(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 67Assert.True(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 86Assert.True(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 108Assert.True(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 138Assert.True(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 163Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 177Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 189Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 205Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 220Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 235Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 252Assert.True(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 270Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 287Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors)); 302Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors));
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
61var buildersAffected = new List<string>();
ProtectedBrowserStorageTest.cs (2)
297public List<string> ProtectorsCreated { get; } = new List<string>(); 355public List<(string Identifier, object[] Args, JSCallType CallType)> Invocations { get; } = [];
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Components.Tests (53)
ComponentFactoryTest.cs (1)
33var componentType = typeof(List<string>);
ComponentsActivitySourceTest.cs (1)
12private readonly List<Activity> _activities;
NavigationManagerTest.cs (1)
921private 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>();
PersistentState\ComponentStatePersistenceManagerTest.cs (3)
196var sequence = new List<int> { }; 226var sequence = new List<int> { }; 318var executionSequence = new List<int>();
PersistentState\PersistentComponentStateTest.cs (5)
196var callbacks = new List<RestoreComponentStateRegistration>(); 215var callbacks = new List<RestoreComponentStateRegistration>(); 234var callbacks = new List<RestoreComponentStateRegistration>(); 253var callbacks = new List<RestoreComponentStateRegistration>(); 272var callbacks = new List<RestoreComponentStateRegistration>();
PersistentState\PersistentServicesRegistryTest.cs (1)
560public List<Address> Addresses { get; set; }
PersistentStateValueProviderKeyResolverTests.cs (13)
66var componentStates = CreateComponentState(renderer, [(component1, "key1"), (component2, "key2")], parentComponent); 121var componentStates = CreateComponentState(renderer, [(component1, componentKey1), (component2, componentKey2)], parentComponent); 172var componentStates = CreateComponentState(renderer, [(component1, null), (component2, null)], null); 193var messages = sink.Writes.Where(x => x.LogLevel >= LogLevel.Warning).ToList(); 224var componentStates = CreateComponentState(renderer, [(component1, null), (component2, null)], parentComponent); 239var messages = sink.Writes.Where(x => x.LogLevel >= LogLevel.Warning).ToList(); 262var componentStates = CreateComponentState(renderer, [(component1, "key1"), (component2, "key1")], parentComponent); 277var messages = sink.Writes.Where(x => x.LogLevel >= LogLevel.Warning).ToList(); 301var componentStates = CreateComponentState(renderer, [(component1, componentKeyType1), (component2, componentKeyType2)], parentComponent); 316var messages = sink.Writes.Where(x => x.LogLevel >= LogLevel.Warning).ToList(); 328private static List<ComponentState> CreateComponentState( 330List<(IComponent, object)> components, 336var result = new List<ComponentState>();
PersistentStateValueProviderTests.cs (7)
28var componentStates = CreateComponentState(renderer, [(component, null)], null); 61var componentStates = CreateComponentState(renderer, [(component, null)], null); 88var componentStates = CreateComponentState(renderer, [(component, null)], null); 102private static void InitializeState(PersistentComponentState state, List<(ComponentState componentState, string propertyName, string value)> items) 121private static List<ComponentState> CreateComponentState( 123List<(IComponent, object)> components, 129var result = new List<ComponentState>();
RendererTest.cs (6)
2239var childComponentIds = rootComponentDiff 3308var onAfterRenderCallCountLog = new List<int>(); 3338var onAfterRenderCallCountLog = new List<int>(); 3367var onAfterRenderCallCountLog = new List<int>(); 5156public List<Type> RequestedComponentTypes { get; } = new List<Type>(); 5449private readonly List<RenderHandle> _renderHandles
Rendering\RenderTreeBuilderTest.cs (1)
382var attributes = new List<KeyValuePair<string, object>>()
Rendering\TestArrayPool.cs (1)
15public List<T[]> ReturnedBuffers = new List<T[]>();
ResourceAssetCollectionTest.cs (1)
135var assets = new List<ResourceAsset> { originalAsset };
Routing\RouteTableFactoryTests.cs (5)
72var routes = GetRoutes(routeTable); 85var routes = GetRoutes(routeTable); 98var routes = GetRoutes(routeTable); 115var routes = GetRoutes(routeTable); 124private List<InboundRouteEntry> GetRoutes(RouteTable routeTable)
src\Components\Shared\test\CapturedBatch.cs (2)
10public IDictionary<int, List<RenderTreeDiff>> DiffsByComponentId { get; } 11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestRenderer.cs (2)
41public List<CapturedBatch> Batches { get; } 44public List<Exception> HandledExceptions { get; } = new List<Exception>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Components.Web (7)
Forms\Mapping\FormMappingContext.cs (2)
14private List<KeyValuePair<string, FormMappingError>>? _pendingErrors; 101private static void AddErrorCore(Dictionary<string, FormMappingError> errors, string key, FormattableString error, string? attemptedValue, ref List<KeyValuePair<string, FormMappingError>>? pendingErrors)
Forms\Mapping\FormMappingError.cs (2)
12private readonly List<FormattableString> _errorMessages; 20internal FormMappingError(string path, List<FormattableString> errorMessages, string? attemptedValue)
JSComponents\JSComponentConfigurationStore.cs (2)
26internal Dictionary<string, List<string>> JSComponentIdentifiersByInitializer { get; } = new(StringComparer.Ordinal); 62if (!JSComponentIdentifiersByInitializer.TryGetValue(javaScriptInitializer, out var identifiersForInitializer))
WebRenderer.cs (1)
189[JsonSerializable(typeof(Dictionary<string, List<string>>))]
Microsoft.AspNetCore.Components.Web.Tests (8)
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)
10public IDictionary<int, List<RenderTreeDiff>> DiffsByComponentId { get; } 11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestRenderer.cs (2)
41public List<CapturedBatch> Batches { get; } 44public List<Exception> HandledExceptions { get; } = new List<Exception>();
Microsoft.AspNetCore.Components.WebAssembly (12)
Hosting\WebAssemblyHost.cs (2)
173var pendingRenders = new List<Task>(count + initialOperationCount); 207private static void AddWebRootComponents(WebAssemblyRenderer renderer, RootComponentOperationBatch operationBatch, List<Task> pendingRenders)
Hosting\WebAssemblyHostConfiguration.cs (4)
18private readonly List<IConfigurationProvider> _providers = new List<IConfigurationProvider>(); 19private readonly List<IConfigurationSource> _sources = new List<IConfigurationSource>(); 21private readonly List<IDisposable> _changeTokenRegistrations = new List<IDisposable>(); 95var result = new List<IConfigurationSection>();
Services\LazyAssemblyLoader.cs (4)
50var loadedAssemblies = new List<Assembly>(); 71var newAssembliesToLoad = assembliesToLoad.ToList(); 72var loadedAssemblies = new List<Assembly>(); 78List<Assembly>? allAssemblies = null;
src\Shared\Components\ComponentParameter.cs (2)
16var parameterDefinitions = new List<ComponentParameter>(); 17var parameterValues = new List<object?>();
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
DebugProxyLauncher.cs (1)
111var keysToRemove = environment.Keys.Where(key => key.StartsWith("ASPNETCORE_", StringComparison.Ordinal)).ToList();
TargetPickerUi.cs (1)
303var matchingTabs = string.IsNullOrEmpty(targetApplicationUrl)
Microsoft.AspNetCore.Components.WebAssembly.Tests (2)
Hosting\WebAssemblyHostBuilderTest.cs (2)
80builder.ServiceCollection.AddScoped<List<string>>(); 89Assert.NotNull(host.Services.GetRequiredService<List<string>>());
Microsoft.AspNetCore.Components.WebView (3)
src\Components\Shared\src\ArrayBuilder.cs (1)
23/// This differs from a <see cref="System.Collections.Generic.List{T}"/> in that
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
160List<StaticWebAssetPattern>? patterns = null;
WebViewManager.cs (1)
230var pendingRenders = new List<Task>(_rootComponentsBySelector.Count);
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.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Connections.Abstractions (1)
TlsConnectionCallbackOptions.cs (1)
31public List<SslApplicationProtocol> ApplicationProtocols { get; set; } = default!;
Microsoft.AspNetCore.CookiePolicy (1)
ResponseCookiesWrapper.cs (1)
142var nonSuppressedValues = new List<KeyValuePair<string, string>>(keyValuePairs.Length);
Microsoft.AspNetCore.CookiePolicy.Test (4)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
Microsoft.AspNetCore.DataProtection (16)
AuthenticatedEncryption\ConfigurationModel\ManagedAlgorithmHelpers.cs (1)
14private static readonly List<Type> KnownAlgorithmTypes = new List<Type>
KeyManagement\DefaultKeyResolver.cs (1)
95List<Exception>? exceptions = null;
KeyManagement\KeyEscrowServiceProviderExtensions.cs (3)
20var escrowSinks = services?.GetService<IEnumerable<IKeyEscrowSink>>()?.ToList(); 26private readonly List<IKeyEscrowSink> _sinks; 28public AggregateKeyEscrowSink(List<IKeyEscrowSink> sinks)
RegistryPolicyResolver.cs (3)
40private static List<string> ReadKeyEscrowSinks(RegistryKey key) 42var sinks = new List<string>(); 102var escrowSinks = ReadKeyEscrowSinks(policyRegKey);
Repositories\EphemeralXmlRepository.cs (2)
19private readonly List<XElement> _storedElements = new List<XElement>(); 63var deletableElements = new List<DeletableElement>();
Repositories\FileSystemXmlRepository.cs (1)
184var deletableElements = new List<DeletableElement>();
Repositories\RegistryXmlRepository.cs (1)
164var deletableElements = new List<DeletableElement>();
XmlEncryption\XmlKeyDecryptionOptions.cs (4)
16private readonly Dictionary<string, List<X509Certificate2>> _certs = new Dictionary<string, List<X509Certificate2>>(StringComparer.Ordinal); 23var retVal = _certs.TryGetValue(key, out var keyDecryptionCertsRetVal); 31if (!_certs.TryGetValue(key, out var certificates))
Microsoft.AspNetCore.DataProtection.Tests (21)
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>();
TypeForwardingActivatorTests.cs (2)
50[InlineData(typeof(List<ClassWithParameterlessCtor>))] 90[InlineData(typeof(List<string>))]
XmlAssert.cs (4)
57List<XNode> filteredExpected = expected.Where(ShouldIncludeNodeDuringComparison).ToList(); 58List<XNode> filteredActual = actual.Where(ShouldIncludeNodeDuringComparison).ToList(); 85List<XAttribute> orderedExpected = expected 90List<XAttribute> orderedActual = actual
Microsoft.AspNetCore.DeveloperCertificates.XPlat (16)
src\Shared\CertificateGeneration\CertificateManager.cs (5)
129var certificates = new List<X509Certificate2>(); 217protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 690var extensions = new List<X509Extension>(); 891var list = certificates.ToList(); 933var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
131var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 298var nssDbs = GetNssDbs(homeDirectory); 434var nssDbs = GetNssDbs(homeDirectory); 714var nssDbs = new List<string>(); 732private static List<NssDb> GetNssDbs(string homeDirectory) 734var nssDbs = new List<NssDb>(); 893var certs = new List<FileInfo>();
Microsoft.AspNetCore.Diagnostics (9)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
294var stackFrames = new List<StackFrameSourceCodeInfo>();
src\Shared\Diagnostics\BaseView.cs (1)
94private List<string>? AttributeValues { get; set; }
src\Shared\Metrics\MetricsExtensions.cs (2)
37if (tags is List<KeyValuePair<string, object?>> list) 66if (tags is List<KeyValuePair<string, object?>> list)
src\Shared\RazorViews\BaseView.cs (1)
134private List<string>? AttributeValues { get; set; }
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
62var typeLoadExceptions = new List<Exception>(); 72var list = new List<Exception>();
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
39var frames = new List<StackFrameInfo>(stackFrames.Length); 41List<Exception>? exceptions = null;
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
DatabaseDeveloperPageExceptionFilter.cs (1)
65var contextDetails = new List<DatabaseContextDetails>();
src\Shared\Diagnostics\BaseView.cs (1)
94private List<string>? AttributeValues { get; set; }
src\Shared\RazorViews\BaseView.cs (1)
134private List<string>? AttributeValues { get; set; }
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
HealthCheckOptions.cs (1)
52var missingHealthStatus = Enum.GetValues<HealthStatus>().Except(mapping.Keys).ToList();
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Latency\RequestLatencyTelemetryMiddleware.cs (2)
27private static readonly ObjectPool<List<Task>> _exporterTaskPool = PoolFactory.CreateListPool<Task>(); 90List<Task> exports = _exporterTaskPool.Get();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (16)
Logging\HeaderReaderTests.cs (3)
21var listToFill = new List<KeyValuePair<string, object?>>(); 31var listToFill = new List<KeyValuePair<string, object?>>(); 56var listToFill = new List<KeyValuePair<string, object?>>();
Logging\HttpUtilityExtensionsTests.cs (2)
37var metadata = new List<object>(1); 68var metadata = new List<object>(1);
Logging\IncomingHttpRouteUtilityTests.cs (11)
41var metadata = new List<object> { controllerActionDescriptor }; 79var metadata = new List<object> { controllerActionDescriptor }; 119var metadata = new List<object> { controllerActionDescriptor }; 161var metadata = new List<object> { controllerActionDescriptor }; 203var metadata = new List<object> { controllerActionDescriptor }; 250var metadata = new List<object> { controllerActionDescriptor }; 291var metadata = new List<object> { controllerActionDescriptor }; 339var metadata = new List<object> { controllerActionDescriptor }; 384var metadata = new List<object> { controllerActionDescriptor }; 422var metadata = new List<object> { }; 451var metadata = new List<object> { };
Microsoft.AspNetCore.Diagnostics.Tests (14)
DeveloperExceptionPageMiddlewareTest.cs (5)
480public static TheoryData<List<CompilationFailure>> CompilationExceptionData 484var variations = new TheoryData<List<CompilationFailure>>(); 485var failures = new List<CompilationFailure>(); 486var diagnosticMessages = new List<DiagnosticMessage>(); 537List<CompilationFailure> failures)
ExceptionHandlerMiddlewareTest.cs (8)
185var exceptionHandlers = new List<IExceptionHandler> 226var exceptionHandlers = new List<IExceptionHandler> 260var exceptionHandlers = new List<IExceptionHandler> 290var exceptionHandlers = new List<IExceptionHandler> 315var exceptionHandlers = new List<IExceptionHandler> { new TestExceptionHandler(true, "1") }; 338var exceptionHandlers = new List<IExceptionHandler> { new TestExceptionHandler(true, "1") }; 360var exceptionHandlers = new List<IExceptionHandler> { new TestExceptionHandler(true, "1") }; 669public List<KeyValuePair<string, object>> TagsList { get; } = new List<KeyValuePair<string, object>>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Grpc.JsonTranscoding (46)
Internal\Binding\IServiceInvokerResolver.cs (1)
14(TDelegate invoker, List<object> metadata) CreateModelCore<TDelegate>(
Internal\Binding\JsonTranscodingProviderServiceBinder.cs (3)
22private delegate (RequestDelegate RequestDelegate, List<object> Metadata) CreateRequestDelegate<TRequest, TResponse>( 151private (RequestDelegate RequestDelegate, List<object> Metadata) CreateUnaryRequestDelegate<TRequest, TResponse>( 178private (RequestDelegate RequestDelegate, List<object> Metadata) CreateServerStreamingRequestDelegate<TRequest, TResponse>(
Internal\Binding\ReflectionServiceInvokerResolver.cs (2)
21public (TDelegate invoker, List<object> metadata) CreateModelCore<TDelegate>( 37var metadata = new List<object>();
Internal\CallHandlers\CallHandlerDescriptorInfo.cs (2)
27PathDescriptorsCache = new ConcurrentDictionary<string, List<FieldDescriptor>?>(); 37public ConcurrentDictionary<string, List<FieldDescriptor>?> PathDescriptorsCache { get; }
Internal\Json\EnumNameHelpers.cs (1)
59var nameMappings = enumType.GetTypeInfo().DeclaredFields
Internal\Json\JsonConverterHelper.cs (1)
153var repeatedFieldType = typeof(List<>).MakeGenericType(itemType);
Internal\JsonRequestHelpers.cs (4)
228type = typeof(List<>).MakeGenericType(args[0]); 293var pathDescriptors = GetPathDescriptors(serverCallContext, requestMessage, item.Key); 362private static List<FieldDescriptor>? GetPathDescriptors(JsonTranscodingServerCallContext serverCallContext, IMessage requestMessage, string path) 366ServiceDescriptorHelpers.TryResolveDescriptors(requestMessage.Descriptor, p.Split('.'), allowJsonName: true, out var pathDescriptors);
Internal\JsonTranscodingRouteAdapter.cs (7)
45public List<Action<HttpContext>> RewriteVariableActions { get; } 47private JsonTranscodingRouteAdapter(HttpRoutePattern httpRoutePattern, string resolvedRoutePattern, List<Action<HttpContext>> rewriteVariableActions) 56var rewriteActions = new List<Action<HttpContext>>(); 58var tempSegments = pattern.Segments.ToList(); 88var routeParameterParts = new List<string>(); 89var routeValueFormatTemplateParts = new List<string>(); 90var variableParts = new List<string>();
Internal\JsonTranscodingServerCallContext.cs (1)
21private static readonly AuthContext UnauthenticatedContext = new AuthContext(null, new Dictionary<string, List<AuthProperty>>());
src\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (3)
32var properties = new Dictionary<string, List<AuthProperty>>(StringComparer.Ordinal); 59static void AddProperty(Dictionary<string, List<AuthProperty>> properties, string name, string value) 61if (!properties.TryGetValue(name, out var values))
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePattern.cs (5)
8public List<string> Segments { get; } 10public List<HttpRouteVariable> Variables { get; } 12private HttpRoutePattern(List<string> segments, string? verb, List<HttpRouteVariable> variables) 32public List<string> FieldPath { get; } = new List<string>();
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (4)
28private readonly List<string> _segments; 30private readonly List<HttpRouteVariable> _variables; 33public List<string> Segments => _segments; 35public List<HttpRouteVariable> Variables => _variables;
src\Grpc\JsonTranscoding\src\Shared\Server\MethodOptions.cs (1)
117var tempInterceptors = new List<InterceptorRegistration>();
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (10)
66public static bool TryResolveDescriptors(MessageDescriptor messageDescriptor, IList<string> path, bool allowJsonName, [NotNullWhen(true)]out List<FieldDescriptor>? fieldDescriptors) 224public static void RecursiveSetValue(IMessage currentValue, List<FieldDescriptor> pathDescriptors, object? values) 388List<HttpRouteVariable> variables, 394var path = variable.FieldPath; 395if (!TryResolveDescriptors(messageDescriptor, path, allowJsonName: false, out var fieldDescriptors)) 480var existingParameters = new List<FieldDescriptor>(); 508static void RecursiveVisitMessages(Dictionary<string, FieldDescriptor> queryParameters, List<FieldDescriptor> existingParameters, MessageDescriptor messageDescriptor, List<FieldDescriptor> path) 671public List<FieldDescriptor> DescriptorsPath { get; } 678List<FieldDescriptor> descriptorsPath,
src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (1)
53List<string> dnsEntries = new List<string>();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (15)
ConverterTests\JsonElementComparer.cs (2)
70var xPropertiesUnsorted = x.EnumerateObject().ToList(); 71var yPropertiesUnsorted = y.EnumerateObject().ToList();
JsonTranscodingServiceMethodProviderTests.cs (4)
55var matchedEndpoints = FindGrpcEndpoints(endpoints, nameof(JsonTranscodingGreeterService.AdditionalBindings)); 154var matchedEndpoints = FindGrpcEndpoints(endpoints, nameof(JsonTranscodingStreamingService.GetServerStreaming)); 234private static List<RouteEndpoint> FindGrpcEndpoints(IReadOnlyList<Endpoint> endpoints, string methodName) 236var e = endpoints
ServerStreamingServerCallHandlerTests.cs (4)
50var descriptorPath = new List<FieldDescriptor>(new[] { HelloRequest.Descriptor.FindFieldByNumber(HelloRequest.NameFieldNumber) }); 81private static RouteParameter CreateRouteParameter(List<FieldDescriptor> descriptorPath) 307List<(Type Type, object[] Args)>? interceptors = null, 324List<(Type Type, object[] Args)>? interceptors = null,
UnaryServerCallHandlerTests.cs (5)
39private static RouteParameter CreateRouteParameter(List<FieldDescriptor> descriptorPath) 768ServiceDescriptorHelpers.TryResolveDescriptors(HelloRequest.Descriptor, new[] { "repeated_strings" }, allowJsonName: false, out var bodyFieldDescriptors); 1406var interceptors = new List<(Type Type, object[] Args)>(); 1810List<(Type Type, object[] Args)>? interceptors = null, 1827List<(Type Type, object[] Args)>? interceptors = null,
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Grpc.Swagger (21)
Internal\GrpcDataContractResolver.cs (2)
84var anyProperties = new List<DataProperty> 104var properties = new List<DataProperty>();
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePattern.cs (5)
8public List<string> Segments { get; } 10public List<HttpRouteVariable> Variables { get; } 12private HttpRoutePattern(List<string> segments, string? verb, List<HttpRouteVariable> variables) 32public List<string> FieldPath { get; } = new List<string>();
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (4)
28private readonly List<string> _segments; 30private readonly List<HttpRouteVariable> _variables; 33public List<string> Segments => _segments; 35public List<HttpRouteVariable> Variables => _variables;
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (10)
66public static bool TryResolveDescriptors(MessageDescriptor messageDescriptor, IList<string> path, bool allowJsonName, [NotNullWhen(true)]out List<FieldDescriptor>? fieldDescriptors) 224public static void RecursiveSetValue(IMessage currentValue, List<FieldDescriptor> pathDescriptors, object? values) 388List<HttpRouteVariable> variables, 394var path = variable.FieldPath; 395if (!TryResolveDescriptors(messageDescriptor, path, allowJsonName: false, out var fieldDescriptors)) 480var existingParameters = new List<FieldDescriptor>(); 508static void RecursiveVisitMessages(Dictionary<string, FieldDescriptor> queryParameters, List<FieldDescriptor> existingParameters, MessageDescriptor messageDescriptor, List<FieldDescriptor> path) 671public List<FieldDescriptor> DescriptorsPath { get; } 678List<FieldDescriptor> descriptorsPath,
Microsoft.AspNetCore.Grpc.Swagger.Tests (3)
Binding\ResponseBodyTests.cs (1)
67var enumValues = enumSchema.Enum.Select(e => ((OpenApiString)e).Value).OrderBy(s => s).ToList();
SchemaGeneratorIntegrationTests.cs (2)
47var enumValues = enumSchema.Enum.Select(e => ((OpenApiString)e).Value).OrderBy(s => s).ToList(); 67var enumValues = schema.Enum.Select(e => ((OpenApiString)e).Value).OrderBy(s => s).ToList();
Microsoft.AspNetCore.HeaderParsing (1)
Parsers\IPAddressListParser.cs (1)
18var list = new List<IPAddress>();
Microsoft.AspNetCore.HostFiltering (2)
MiddlewareConfigurationManager.cs (2)
40var allowedHosts = new List<StringSegment>(); 62private static bool TryProcessHosts(IEnumerable<string> incoming, List<StringSegment> results)
Microsoft.AspNetCore.Hosting (15)
GenericHost\GenericWebHostBuilder.cs (1)
129var exceptions = new List<Exception>();
Internal\HostedServiceExecutor.cs (1)
27List<Exception>? exceptions = null;
Internal\HostingMetrics.cs (1)
44public void RequestEnd(string protocol, string scheme, string method, string? route, int statusCode, bool unhandledRequest, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp, bool disableHttpRequestDurationMetric)
Internal\HttpMetricsTagsFeature.cs (1)
13public List<KeyValuePair<string, object?>> TagsList { get; } = new List<KeyValuePair<string, object?>>();
Internal\StartupLoader.cs (2)
269var definedTypes = assembly.DefinedTypes.ToList(); 324var selectedMethods = methods.Where(method => method.Name.Equals(methodNameWithEnv, StringComparison.OrdinalIgnoreCase)).ToList();
src\Shared\Metrics\MetricsExtensions.cs (2)
37if (tags is List<KeyValuePair<string, object?>> list) 66if (tags is List<KeyValuePair<string, object?>> list)
src\Shared\RazorViews\BaseView.cs (1)
134private List<string>? AttributeValues { get; set; }
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
62var typeLoadExceptions = new List<Exception>(); 72var list = new List<Exception>();
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
39var frames = new List<StackFrameInfo>(stackFrames.Length); 41List<Exception>? exceptions = null;
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
160List<StaticWebAssetPattern>? patterns = null;
WebHostBuilder.cs (1)
225var exceptions = new List<Exception>();
Microsoft.AspNetCore.Hosting.Tests (9)
HostingApplicationDiagnosticsTests.cs (3)
1089var tags = new List<KeyValuePair<string, object>>(); 1131var tags = new List<KeyValuePair<string, object>>(); 1324public List<object> Scopes { get; set; } = new List<object>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
StartupManagerTests.cs (1)
428var diagnosticMessages = new List<string>();
WebHostBuilderTests.cs (3)
968var disposables = new List<DisposableService>(); 1611private readonly List<IServiceProvider> _serviceProviders = new List<IServiceProvider>(); 1613public List<IServiceProvider> ServiceProviders => _serviceProviders;
WebHostTests.AsyncDisposable.cs (1)
48public List<AsyncDisposableServiceProvider> Providers { get; } = new List<AsyncDisposableServiceProvider>();
Microsoft.AspNetCore.Html.Abstractions.Tests (1)
HtmlContentBuilderExtensionsTest.cs (1)
363public List<IHtmlContent> Entries { get; } = new List<IHtmlContent>();
Microsoft.AspNetCore.Http (9)
Builder\ApplicationBuilder.cs (2)
23private readonly List<Func<RequestDelegate, RequestDelegate>> _components = new(); 24private readonly List<string>? _descriptions;
Features\QueryFeature.cs (3)
123private AdaptiveCapacityDictionary<string, List<string>> _expandingAccumulator; 163_expandingAccumulator = new AdaptiveCapacityDictionary<string, List<string>>(capacity: 5, StringComparer.OrdinalIgnoreCase); 167var list = new List<string>();
Features\RequestCookiesFeature.cs (1)
83var headers = new List<string>(_parsedValues.Count);
FormFileCollection.cs (1)
31var files = new List<IFormFile>();
Internal\ResponseCookies.cs (1)
149var newValues = new List<string>();
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
Microsoft.AspNetCore.Http.Abstractions (7)
CookieBuilder.cs (1)
14private List<string>? _extensions;
Extensions\EndpointBuilder.cs (1)
13private List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>? _filterFactories;
Extensions\UseMiddlewareExtensions.cs (1)
248var parameterTypeExpression = new List<Expression>() { providerArg };
Routing\EndpointMetadataCollection.cs (1)
112List<T>? matches = null;
src\Shared\PropertyHelper\PropertyHelper.cs (3)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
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 (8)
ConnectionEndpointRouteBuilderExtensions.cs (3)
95var conventionBuilders = new List<IEndpointConventionBuilder>(); 139private readonly List<IEndpointConventionBuilder> _endpointConventionBuilders; 141public CompositeEndpointConventionBuilder(List<IEndpointConventionBuilder> endpointConventionBuilders)
Internal\HttpConnectionContext.cs (1)
43private List<(Action<object> handler, object state)>? _heartbeatHandlers;
Internal\HttpConnectionManager.cs (1)
190var tasks = new List<Task>(_connections.Count);
src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnection.cs (1)
310var transportExceptions = new List<Exception>();
Microsoft.AspNetCore.Http.Connections.Common (1)
NegotiateProtocol.cs (1)
159List<AvailableTransport>? availableTransports = null;
Microsoft.AspNetCore.Http.Connections.Tests (6)
HttpConnectionDispatcherTests.cs (1)
3304var claims = new List<Claim>
NegotiateProtocolTests.cs (1)
43var responseTransports = response.AvailableTransports.Select(t => t.Transport).ToList();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
src\Shared\Metrics\TestMeterFactory.cs (1)
13public 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 (40)
RequestDelegateFactory.cs (1)
1614var bindings = new List<MemberBinding>(properties.Length);
RequestDelegateFactoryContext.cs (4)
39public List<ParameterExpression> ExtraLocals { get; } = new(); 40public List<Expression> ParamCheckExpressions { get; } = new(); 41public List<Func<HttpContext, ValueTask<object?>>> ParameterBinders { get; } = new(); 62public List<ParameterInfo> Parameters { get; set; } = new();
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (5)
190CreateConverter<IReadOnlyList<TElement>, List<TElement>>(elementTypeConverter), 192CreateConverter<IReadOnlyCollection<TElement>, List<TElement>>(elementTypeConverter), 196CreateConverter<IList<TElement>, List<TElement>>(elementTypeConverter), 198CreateConverter<ICollection<TElement>, List<TElement>>(elementTypeConverter), 202CreateConverter<IEnumerable<TElement>, List<TElement>>(elementTypeConverter),
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (20)
33var parameters = new List<ParameterExpression>() { readerParam, typeParam, optionsParam, resultParam, foundValueParam }; 40var variables = new List<ParameterExpression>() { propertyFoundValue, succeeded, localFoundValueVar, exceptionVar }; 42var propertyValueLocals = new List<ParameterExpression>(); 43var constructorParameterValueLocals = new List<ParameterExpression>(); 45var body = new List<Expression>() 112List<ParameterExpression> constructorParameterValueLocals, 114List<ParameterExpression> propsLocals, 115List<ParameterExpression> variables, 190var assignments = new List<Expression>(); 226List<ParameterExpression> constructorParameters, 228List<ParameterExpression> properties, 329List<ParameterExpression> variables, 330List<ParameterExpression> propertyValueLocals, 331List<Expression> body) 428List<ParameterExpression> variables, 429List<ParameterExpression> constructorParameterValueLocals, 430List<Expression> body) 560List<ParameterExpression> parameters, 561List<ParameterExpression> variables, 562List<Expression> body)
src\Components\Endpoints\src\FormMapping\FormDataMapperOptions.cs (2)
15private readonly List<IFormDataConverterFactory> _factories = new(); 39internal List<IFormDataConverterFactory> Factories => _factories;
src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (2)
14internal partial class FormDataMetadataFactory(List<IFormDataConverterFactory> factories, ILoggerFactory loggerFactory) 317public List<Type> CurrentTypes { get; set; } = new();
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\Shared\PropertyAsParameterInfo.cs (4)
74List<ParameterInfo>? flattenedParameters = null; 88static List<ParameterInfo> InitializeList(ParameterInfo[] parameters, int i) 91List<ParameterInfo> list = new(parameters.Length); 180var attributes = new List<CustomAttributeData>(
Microsoft.AspNetCore.Http.Extensions.Tests (28)
HeaderDictionaryTypeExtensionsTest.cs (6)
172var expected = new[] { 209List<StringWithQualityHeaderValue> expected = [new("plain", 0.5), new("html", 0.8)]; 221List<CookieHeaderValue> expected = [new("cookie1", "a"), new("cookie2", "b")]; 233List<EntityTagHeaderValue> expected = [new("\"123\"", false), new("\"456\"", false)]; 245List<SetCookieHeaderValue> expected = [new("cookie1", "a"), new("cookie2", "b")]; 303var results = new List<TestHeaderValue>();
HttpRequestJsonExtensionsTests.cs (14)
91var result = await context.Request.ReadFromJsonAsync<List<int>>(options); 109var result = await context.Request.ReadFromJsonAsync<List<int>>(); 144var readTask = context.Request.ReadFromJsonAsync<List<int>>(cts.Token); 223var result = (List<int>?)await context.Request.ReadFromJsonAsync(typeof(List<int>), options); 245var result = (List<int>?)await context.Request.ReadFromJsonAsync(options.GetTypeInfo(typeof(List<int>))); 267var typeInfo = (JsonTypeInfo<List<int>>)options.GetTypeInfo(typeof(List<int>)); 268var result = await context.Request.ReadFromJsonAsync(typeInfo);
RequestDelegateFactoryTests.cs (2)
3357((List<object>)builder.Metadata).AddRange(metadata); 3365((List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>)builder.FilterFactories).AddRange(filterFactories);
RequestDelegateGenerator\CompileTimeCreationTests.AsParameters.cs (2)
63new object[] { "List<string>", DiagnosticDescriptors.InvalidAsParametersEnumerableType.Id, GetEnumerableTypeError(typeof(List<string>)) }, 64new object[] { "List<IFormFile>", DiagnosticDescriptors.InvalidAsParametersEnumerableType.Id, GetEnumerableTypeError(typeof(List<IFormFile>)) },
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
131var embeddedTexts = new List<EmbeddedText>(); 418public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string> assemblies)
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (2)
215await VerifyResponseJsonBodyAsync<List<int>>(httpContext, (elements) => 252await VerifyResponseJsonBodyAsync<List<int>>(httpContext, (elements) =>
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
20private List<string>? _extensions;
Microsoft.AspNetCore.Http.Microbenchmarks (8)
AdaptiveCapacityDictionaryBenchmark.cs (1)
18private List<KeyValuePair<string, string>> _tenValues;
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
131var embeddedTexts = new List<EmbeddedText>(); 418public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string> assemblies)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
ValidatableTypesBenchmark.cs (4)
196public List<string> Items { get; set; } 220public List<SimpleModel> Siblings { get; set; } 301CreatePropertyInfo(typeof(ComplexModel), "Items", typeof(List<string>)), 325CreatePropertyInfo(typeof(HierarchicalModel), "Siblings", typeof(List<SimpleModel>))
Microsoft.AspNetCore.Http.RequestDelegateGenerator (6)
src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
21private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
StaticRouteHandlerModel\Emitters\DiagnosticEmitter.cs (2)
12public static void EmitRequiredDiagnostics(this EndpointResponse response, List<Diagnostic> diagnostics, Location location) 30public static void EmitRequiredDiagnostics(this IParameterSymbol parameterSymbol, List<Diagnostic> diagnostics, Location location)
StaticRouteHandlerModel\Endpoint.cs (1)
102public List<Diagnostic> Diagnostics { get; } = new List<Diagnostic>();
StaticRouteHandlerModel\EndpointParameter.cs (1)
493var propertiesWithParameterInfo = new List<ConstructorParameter>();
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (1)
300var potentialImplicitBodyParameters = new List<EndpointParameter>();
Microsoft.AspNetCore.Http.Results.Tests (28)
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>();
JsonResultTests.cs (1)
323var 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 (3)
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") };
TypedResultsTests.cs (3)
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 (10)
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 (2)
8List<Tuple<Func<object, Task>, object>> _onCompletedCallbacks = new List<Tuple<Func<object, Task>, object>>(); 17var callbacks = _onCompletedCallbacks;
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 (10)
FileLoggerProcessor.cs (2)
30private readonly List<string> _currentBatch = new List<string>(); 155private async Task WriteMessagesAsync(List<string> messages, CancellationToken cancellationToken)
HttpLog.cs (2)
11private readonly List<KeyValuePair<string, object?>> _keyValues; 17public HttpLog(List<KeyValuePair<string, object?>> keyValues, string title)
HttpLoggingInterceptorContext.cs (1)
71internal List<KeyValuePair<string, object?>> InternalParameters { get; set; } = new();
MediaTypeHelpers.cs (2)
13private static readonly List<Encoding> SupportedEncodings = new List<Encoding>() 22public static bool TryGetEncodingForMediaType(string? contentType, List<MediaTypeState> mediaTypeList, [NotNullWhen(true)] out Encoding? encoding)
MediaTypeOptions.cs (2)
14private readonly List<MediaTypeState> _mediaTypeStates = new(); 20internal List<MediaTypeState> MediaTypeStates => _mediaTypeStates;
W3CLoggingMiddleware.cs (1)
180var additionalRequestHeaders = _additionalRequestHeaders.ToList();
Microsoft.AspNetCore.HttpLogging.Tests (12)
HttpLoggingOptionsTests.cs (3)
12var defaultMediaTypes = options.MediaTypeOptions.MediaTypeStates; 28var defaultMediaTypes = options.MediaTypeOptions.MediaTypeStates; 40var defaultMediaTypes = options.MediaTypeOptions.MediaTypeStates;
TestW3CLoggerProcessor.cs (1)
23public List<string> Lines { get; }
W3CLoggerTests.cs (2)
36var lines = logger.Processor.Lines; 81var lines = logger.Processor.Lines;
W3CLoggingMiddlewareTests.cs (6)
90var lines = logger.Processor.Lines; 135var lines = logger.Processor.Lines; 176var lines = logger.Processor.Lines; 208var lines = logger.Processor.Lines; 255var lines = logger.Processor.Lines; 293var lines = logger.Processor.Lines;
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersMiddleware.cs (1)
77var allowedHosts = new List<StringSegment>();
Microsoft.AspNetCore.HttpsPolicy.Tests (12)
HstsMiddlewareTests.cs (5)
210var logMessages = sink.Writes.ToList(); 265var logMessages = sink.Writes.ToList(); 320var logMessages = sink.Writes.ToList(); 367var logMessages = sink.Writes.ToList(); 413var logMessages = sink.Writes.ToList();
HttpsRedirectionMiddlewareTests.cs (7)
57var logMessages = sink.Writes.ToList(); 113var logMessages = sink.Writes.ToList(); 169var logMessages = sink.Writes.ToList(); 270var logMessages = sink.Writes.ToList(); 358var logMessages = sink.Writes.ToList(); 404var logMessages = sink.Writes.ToList(); 448var logMessages = sink.Writes.ToList();
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
839var claims = new List<Claim>
Microsoft.AspNetCore.Identity.EntityFrameworkCore (7)
RoleStore.cs (1)
373var claims = await RoleClaims.Where(rc => rc.RoleId.Equals(role.Id) && rc.ClaimValue == claim.Value && rc.ClaimType == claim.Type).ToListAsync(cancellationToken);
UserOnlyStore.cs (3)
376var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 398var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 656var passkeys = await UserPasskeys
UserStore.cs (3)
493var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 515var matchedClaims = await UserClaims.Where(uc => uc.UserId.Equals(user.Id) && uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToListAsync(cancellationToken); 800var passkeys = await UserPasskeys
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (11)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (3)
13var nonVirtualMethods 37var asyncMethods 45var missingSuffixMethods
src\Identity\test\Shared\MetricsHelpers.cs (2)
8public static void AssertHasDurationAndContainsTags(double duration, IReadOnlyDictionary<string, object> tags, List<KeyValuePair<string, object>> expectedTags) 14public static void AssertContainsTags(IReadOnlyDictionary<string, object> tags, List<KeyValuePair<string, object>> expectedTags)
src\Identity\test\Shared\MockHelpers.cs (4)
43var roles = new List<IRoleValidator<TRole>>(); 56var userValidators = new List<IUserValidator<TUser>>(); 59var pwdValidators = new List<PasswordValidator<TUser>>(); 80var roles = new List<IRoleValidator<TRole>>();
src\Identity\test\Shared\PriorityOrderer.cs (2)
46var sortedMethods = new SortedDictionary<int, List<XunitTestCase>>(); 60foreach (var list in sortedMethods.Keys.Select(priority => sortedMethods[priority]))
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 (15)
InMemoryStore.cs (1)
128var claims = role.Claims.Select(c => new Claim(c.ClaimType, c.ClaimValue)).ToList();
InMemoryUserStore.cs (3)
35var claims = user.Claims.Select(c => new Claim(c.ClaimType, c.ClaimValue)).ToList(); 50var matchedClaims = user.Claims.Where(uc => uc.ClaimValue == claim.Value && uc.ClaimType == claim.Type).ToList(); 419var updatedCodes = new List<string>(splitCodes.Where(s => s != code));
src\Identity\test\Shared\ApiConsistencyTestBase.cs (3)
13var nonVirtualMethods 37var asyncMethods 45var missingSuffixMethods
src\Identity\test\Shared\MetricsHelpers.cs (2)
8public static void AssertHasDurationAndContainsTags(double duration, IReadOnlyDictionary<string, object> tags, List<KeyValuePair<string, object>> expectedTags) 14public static void AssertContainsTags(IReadOnlyDictionary<string, object> tags, List<KeyValuePair<string, object>> expectedTags)
src\Identity\test\Shared\MockHelpers.cs (4)
43var roles = new List<IRoleValidator<TRole>>(); 56var userValidators = new List<IUserValidator<TUser>>(); 59var pwdValidators = new List<PasswordValidator<TUser>>(); 80var roles = new List<IRoleValidator<TRole>>();
src\Identity\test\Shared\PriorityOrderer.cs (2)
46var sortedMethods = new SortedDictionary<int, List<XunitTestCase>>(); 60foreach (var list in sortedMethods.Keys.Select(priority => sortedMethods[priority]))
Microsoft.AspNetCore.Identity.Specification.Tests (12)
IdentitySpecificationTestBase.cs (9)
325var roles = GenerateRoles("CanQueryableRolesTest", 4); 390var users = GenerateUsers("CanGetRolesForUser", 4); 391var roles = GenerateRoles("CanGetRolesForUserRole", 4); 430var roles = GenerateRoles("RemoveUserFromRoleWithMultipleRoles", 4); 451var users = GenerateUsers("CanRemoveUsersFromRole", 4); 570var roles = GenerateRoles("UsersInRole", 4); 571var roleNameList = new List<string>(); 598private List<TRole> GenerateRoles(string namePrefix, int count) 600var roles = new List<TRole>(count);
UserManagerSpecificationTests.cs (3)
936var users = GenerateUsers("CanFindUsersViaUserQueryable", 4); 1942protected List<TUser> GenerateUsers(string userNamePrefix, int count) 1944var users = new List<TUser>(count);
Microsoft.AspNetCore.Identity.Test (19)
IdentityUIScriptsTest.cs (5)
106private static List<ScriptTag> GetScriptTags() 108var scriptTags = new List<ScriptTag>(); 114var tags = GetScriptTags(cshtmlFile); 125private static List<ScriptTag> GetScriptTags(string cshtmlFile) 134var scriptTags = new List<ScriptTag>();
PasswordValidatorTest.cs (1)
147var errors = new List<string>();
src\Identity\test\Shared\ApiConsistencyTestBase.cs (3)
13var nonVirtualMethods 37var asyncMethods 45var missingSuffixMethods
src\Identity\test\Shared\MetricsHelpers.cs (2)
8public static void AssertHasDurationAndContainsTags(double duration, IReadOnlyDictionary<string, object> tags, List<KeyValuePair<string, object>> expectedTags) 14public static void AssertContainsTags(IReadOnlyDictionary<string, object> tags, List<KeyValuePair<string, object>> expectedTags)
src\Identity\test\Shared\MockHelpers.cs (4)
43var roles = new List<IRoleValidator<TRole>>(); 56var userValidators = new List<IUserValidator<TUser>>(); 59var pwdValidators = new List<PasswordValidator<TUser>>(); 80var roles = new List<IRoleValidator<TRole>>();
src\Identity\test\Shared\PriorityOrderer.cs (2)
46var sortedMethods = new SortedDictionary<int, List<XunitTestCase>>(); 60foreach (var list in sortedMethods.Keys.Select(priority => sortedMethods[priority]))
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
UserClaimsPrincipalFactoryTest.cs (1)
94var claims = identity.Claims.ToList();
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
113var viewsToRemove = new List<CompiledViewDescriptor>();
Microsoft.AspNetCore.InternalTesting (2)
xunit\AspNetTestAssemblyRunner.cs (1)
41var fixturesAttributes = assembly
xunit\AspNetTestRunner.cs (1)
79List<string> messages = new();
Microsoft.AspNetCore.InternalTesting.Tests (1)
AlphabeticalOrderer.cs (1)
17var result = testCases.ToList();
Microsoft.AspNetCore.JsonPatch (12)
Converters\JsonPatchDocumentConverter.cs (1)
41var targetOperations = new List<Operation>();
Converters\TypedJsonPatchDocumentConverter.cs (1)
36var genericList = typeof(List<>);
Internal\ParsedPath.cs (1)
44var strings = new List<string>();
JsonPatchDocument.cs (3)
33public List<Operation> Operations { get; private set; } 44public JsonPatchDocument(List<Operation> operations, IContractResolver contractResolver) 212var allOps = new List<Operation>(Operations?.Count ?? 0);
JsonPatchDocumentOfT.cs (6)
37public List<Operation<TModel>> Operations { get; private set; } 49public JsonPatchDocument(List<Operation<TModel>> operations, IContractResolver contractResolver) 648var allOps = new List<Operation>(Operations?.Count ?? 0); 683var segments = GetPathSegments(expr.Body); 697private List<string> GetPathSegments(Expression expr) 699var listOfSegments = new List<string>();
Microsoft.AspNetCore.JsonPatch.SystemTextJson (12)
Converters\JsonConverterForJsonPatchDocumentOfT.cs (1)
35List<Operation<T>> ops = [];
Converters\JsonPatchDocumentConverter.cs (1)
34List<Operation> ops = [];
Internal\ParsedPath.cs (1)
39var strings = new List<string>();
JsonPatchDocument.cs (3)
26public List<Operation> Operations { get; private set; } 37public JsonPatchDocument(List<Operation> operations, JsonSerializerOptions serializerOptions) 205var allOps = new List<Operation>(Operations?.Count ?? 0);
JsonPatchDocumentOfT.cs (6)
30public List<Operation<TModel>> Operations { get; private set; } 42public JsonPatchDocument(List<Operation<TModel>> operations, JsonSerializerOptions serializerOptions) 641var allOps = new List<Operation>(Operations?.Count ?? 0); 674var segments = GetPathSegments(expr.Body); 688private List<string> GetPathSegments(Expression expr) 690var listOfSegments = new List<string>();
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (34)
IntegrationTests\ListIntegrationTest.cs (1)
66patchDocument.Add(o => (List<int>)o.SimpleObject.IntegerIList, 4, 0);
Internal\DictionaryAdapterTest.cs (3)
298var dictionary = new Dictionary<string, List<object>>(); 299var value = new List<object>() 306var dictionaryAdapter = new DictionaryAdapter<string, List<object>>();
Internal\ListAdapterTest.cs (25)
53var targetObject = new List<string>() { "James", "Mike" }; 75var targetObject = new List<string>() { "James", "Mike" }; 93var targetObject = new List<string>() { "James", "Mike" }; 104public static TheoryData<List<int>, List<int>> AppendAtEndOfListData 108return new TheoryData<List<int>, List<int>>() 124public void Add_Appends_AtTheEnd(List<int> targetObject, List<int> expected) 146var targetObject = new List<string>() { "James", "Mike" }; 165var targetObject = new List<SimpleObject>() { sDto }; 183var targetObject = new List<int>() { 10, 20 }; 309var targetObject = new List<int>(input); 328var targetObject = new List<int>(input); 348var targetObject = new List<int>(input); 367var targetObject = new List<int>(input); 383var targetObject = new List<int>() { 10, 20 }; 399var targetObject = new List<int>() { 10, 20 }; 411public static TheoryData<string, List<int>> ReplacesValuesAtPositionData 415return new TheoryData<string, List<int>>() 431public void Replace_ReplacesValue_AtGivenPosition(string position, List<int> expected) 435var targetObject = new List<int>() { 10, 20 }; 454var targetObject = new List<int>() { 10, 20 }; 470var targetObject = new List<int>() { 10, 20 }; 487var targetObject = new List<int>() { 10, 20 };
Internal\ObjectVisitorTest.cs (1)
23public List<Class1> Customers { get; set; } = new List<Class1>();
JsonPatchDocumentTest.cs (1)
88public List<Employee> Employees { get; } = new();
TestObjectModels\SimpleObject.cs (2)
11public List<SimpleObject> SimpleObjectList { get; set; } 12public List<int> IntegerList { get; set; }
TestObjectModels\SimpleObjectWithNestedObject.cs (1)
18public List<SimpleObject> SimpleObjectList { get; set; }
Microsoft.AspNetCore.JsonPatch.Tests (35)
IntegrationTests\ListIntegrationTest.cs (1)
66patchDocument.Add(o => (List<int>)o.SimpleObject.IntegerIList, 4, 0);
Internal\DictionaryAdapterTest.cs (3)
300var dictionary = new Dictionary<string, List<object>>(); 301var value = new List<object>() 308var dictionaryAdapter = new DictionaryAdapter<string, List<object>>();
Internal\DynamicObjectAdapterTest.cs (2)
37var value = new List<string>() { "stringValue1", "stringValue2" }; 257var value = new List<object>()
Internal\ListAdapterTest.cs (25)
53var targetObject = new List<string>() { "James", "Mike" }; 75var targetObject = new List<string>() { "James", "Mike" }; 93var targetObject = new List<string>() { "James", "Mike" }; 104public static TheoryData<List<int>, List<int>> AppendAtEndOfListData 108return new TheoryData<List<int>, List<int>>() 124public void Add_Appends_AtTheEnd(List<int> targetObject, List<int> expected) 146var targetObject = new List<string>() { "James", "Mike" }; 165var targetObject = new List<SimpleObject>() { sDto }; 183var targetObject = new List<int>() { 10, 20 }; 309var targetObject = new List<int>(input); 328var targetObject = new List<int>(input); 348var targetObject = new List<int>(input); 367var targetObject = new List<int>(input); 383var targetObject = new List<int>() { 10, 20 }; 399var targetObject = new List<int>() { 10, 20 }; 411public static TheoryData<string, List<int>> ReplacesValuesAtPositionData 415return new TheoryData<string, List<int>>() 431public void Replace_ReplacesValue_AtGivenPosition(string position, List<int> expected) 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 (1)
23public List<Class1> Customers { get; set; } = new List<Class1>();
TestObjectModels\SimpleObject.cs (2)
11public List<SimpleObject> SimpleObjectList { get; set; } 12public List<int> IntegerList { get; set; }
TestObjectModels\SimpleObjectWithNestedObject.cs (1)
18public List<SimpleObject> SimpleObjectList { get; set; }
Microsoft.AspNetCore.Localization (3)
AcceptLanguageHeaderRequestCultureProvider.cs (1)
43var orderedLanguages = languages.OrderByDescending(h => h, StringWithQualityHeaderValueComparer.QualityComparer)
RequestLocalizationOptions.cs (2)
125var supportedCultures = new List<CultureInfo>(cultures.Length); 144var supportedUICultures = new List<CultureInfo>(uiCultures.Length);
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelMetadata.cs (1)
141var boundProperties = new List<ModelMetadata>();
ModelBinding\ModelStateDictionary.cs (2)
837public List<ModelStateNode>? ChildNodes { get; set; } 1007private List<ModelStateNode>? _nodes;
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
ModelBinding\ModelMetadataTest.cs (2)
86typeof(List<string>), 223[InlineData(typeof(List<string>), typeof(string))]
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 (12)
ApiResponseTypeProvider.cs (3)
38var responseMetadataAttributes = GetResponseMetadataAttributes(action); 53var producesResponseMetadata = action.EndpointMetadata.OfType<IProducesResponseTypeMetadata>().ToList(); 58private static List<IApiResponseMetadataProvider> GetResponseMetadataAttributes(ControllerActionDescriptor action)
DefaultApiDescriptionProvider.cs (4)
109var templateParameters = parsedTemplate?.Parameters?.ToList() ?? new List<TemplatePart>(); 358var constraints = new List<IRouteConstraint>(); 404var segments = new List<string>(); 439var results = new List<ApiRequestFormat>();
EndpointMetadataApiDescriptionProvider.cs (1)
226var constraints = new List<IRouteConstraint>();
src\Shared\PropertyAsParameterInfo.cs (4)
74List<ParameterInfo>? flattenedParameters = null; 88static List<ParameterInfo> InitializeList(ParameterInfo[] parameters, int i) 91List<ParameterInfo> list = new(parameters.Length); 180var attributes = new List<CustomAttributeData>(
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (24)
DefaultApiDescriptionProviderTest.cs (18)
665public static TheoryData<Type, string, List<FilterDescriptor>> ReturnsActionResultWithProducesAndProducesContentTypeData 669var filterDescriptors = new List<FilterDescriptor>() 685return new TheoryData<Type, string, List<FilterDescriptor>> 716List<FilterDescriptor> filterDescriptors) 762public static TheoryData<Type, string, List<FilterDescriptor>> ReturnsVoidOrTaskWithProducesContentTypeData 766var filterDescriptors = new List<FilterDescriptor>() 785return new TheoryData<Type, string, List<FilterDescriptor>> 826List<FilterDescriptor> filterDescriptors) 1216var formatters = CreateOutputFormatters(); 1321var formatters = CreateInputFormatters(); 2264List<MockInputFormatter> inputFormatters = null, 2265List<MockOutputFormatter> outputFormatters = null, 2302private List<MockInputFormatter> CreateInputFormatters() 2305var formatters = new List<MockInputFormatter>() 2320private List<MockOutputFormatter> CreateOutputFormatters() 2323var formatters = new List<MockOutputFormatter>() 2856public List<Type> SupportedTypes { get; } = new List<Type>(); 2884public List<Type> SupportedTypes { get; } = new List<Type>();
EndpointMetadataApiDescriptionProviderTest.cs (6)
383Assert.Equal(typeof(List<TimeSpan>), okResponseType.Type); // We use List as the inferred type has higher priority than those set by metadata (attributes) 384Assert.Equal(typeof(List<TimeSpan>), okResponseType.ModelMetadata?.ModelType); 402Assert.Equal(typeof(List<TimeSpan>), okResponseType.Type); // We use List as the inferred type has higher priority than those set by metadata (attributes) 403Assert.Equal(typeof(List<TimeSpan>), okResponseType.ModelMetadata?.ModelType); 1303builder.MapGet("/api/todos", [ProducesResponseType(typeof(List<string>), StatusCodes.Status200OK)] () => "") 1794var metadataItems = new List<object>(requestDelegateResult.EndpointMetadata) { methodInfo, httpMethodMetadata };
Microsoft.AspNetCore.Mvc.Core (151)
AcceptVerbsAttribute.cs (1)
16private readonly List<string> _httpMethods;
ActionConstraints\ActionConstraintCache.cs (6)
59var items = new List<ActionConstraintItem>(action.ActionConstraints.Count); 102var items = new List<ActionConstraintItem>(entry.Items!.Count); 121private void ExecuteProviders(HttpContext httpContext, ActionDescriptor action, List<ActionConstraintItem> items) 136private static IReadOnlyList<IActionConstraint>? ExtractActionConstraints(List<ActionConstraintItem> items) 189public CacheEntry(List<ActionConstraintItem> items) 197public List<ActionConstraintItem>? Items { get; }
ActionConstraints\HttpMethodActionConstraint.cs (1)
35var methods = new List<string>();
ApplicationModels\ActionAttributeRouteModel.cs (3)
16var controllerSelectors = actionModel.Controller.Selectors 54var actionConstraints = new List<IActionConstraintMetadata>(); 145var controllerAttributeRoutes = actionModel.Controller.Selectors
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
63public List<IActionModelConvention> ActionModelConventions { get; }
ApplicationModels\ApplicationModelFactory.cs (19)
54public static List<TResult> Flatten<TResult>( 58var results = new List<TResult>(); 60var actionsByMethod = new Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>>(); 61var actionsByRouteName = new Dictionary<string, List<(ActionModel, SelectorModel)>>(StringComparer.OrdinalIgnoreCase); 63var routeTemplateErrors = new List<string>(); 102var namedRoutedErrors = ValidateNamedAttributeRoutedActions(actionsByRouteName); 122List<string> errors) 174Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>> actionsByMethod, 178if (!actionsByMethod.TryGetValue(action.ActionMethod, out var actions)) 188Dictionary<string, List<(ActionModel action, SelectorModel selector)>> actionsByRouteName, 198if (!actionsByRouteName.TryGetValue(routeName, out var actions)) 207private static List<string> AddErrorNumbers(IEnumerable<string> namedRoutedErrors) 218private static List<string> ValidateNamedAttributeRoutedActions( 219Dictionary<string, List<(ActionModel action, SelectorModel selector)>> actionsByRouteName) 221var namedRouteErrors = new List<string>(); 257List<(ActionModel action, SelectorModel selector)> actions, 292List<(ActionModel action, SelectorModel selector)> actions) 297var actionDescriptions = new List<string>(actions.Count); 339var errorMessages = AddErrorNumbers(individualErrors);
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
64var parameterDescriptors = new List<ParameterDescriptor>(action.Parameters.Count);
ApplicationModels\DefaultApplicationModelProvider.cs (7)
143var filteredAttributes = new List<object>(); 337var applicableAttributes = new List<object>(routeAttributes.Length); 531var routeProviders = new List<IRouteTemplateProvider>(); 576var selectorModels = new List<SelectorModel>(); 588var filteredAttributes = new List<object>(); 624var filteredAttributes = new List<object>(); 640private static bool InRouteProviders(List<IRouteTemplateProvider> routeProviders, object attribute)
ApplicationModels\InferParameterBindingInfoConvention.cs (1)
92var fromBodyParameters = action.Parameters.Where(p => p.BindingInfo!.BindingSource == BindingSource.Body).ToList();
ApplicationParts\RelatedAssemblyAttribute.cs (1)
79var relatedAssemblies = new List<Assembly>();
BindAttribute.cs (1)
26var items = new List<string>(include.Length);
Builder\ControllerActionEndpointConventionBuilder.cs (4)
16private readonly List<Action<EndpointBuilder>> _conventions; 17private readonly List<Action<EndpointBuilder>> _finallyConventions; 19internal ControllerActionEndpointConventionBuilder(object @lock, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions)
ConsumesAttribute.cs (4)
99readonly List<string> _contentTypes = new(); 238var completeArgs = new List<string>(args.Length + 1); 258private static List<string> GetAllContentTypes(string contentType, string[] additionalContentTypes) 260var allContentTypes = new List<string>()
Controllers\ControllerBinderDelegateProvider.cs (2)
40List<ParameterDescriptor> list => list.ToArray(), 46List<ParameterDescriptor> list => list.ToArray(),
Filters\FilterFactory.cs (4)
21var orderedFilters = actionDescriptor.FilterDescriptors 32var allFilterItems = new List<FilterItem>(staticFilterItems); 76var filterItems = new List<FilterItem>(cachedFilterItems.Length); 94List<FilterItem> filterItems)
Filters\MiddlewareFilterConfigurationProvider.cs (1)
44var selectedMethods = methods.Where(method => method.Name.Equals(methodName)).ToList();
Formatters\AcceptHeaderParser.cs (1)
13var parsedValues = new List<MediaTypeSegmentWithQuality>();
Formatters\InputFormatter.cs (1)
145List<string>? mediaTypes = null;
Formatters\OutputFormatter.cs (1)
50List<string>? mediaTypes = null;
Formatters\TextOutputFormatter.cs (1)
242var sorted = new List<StringWithQualityHeaderValue>();
Infrastructure\ActionSelectionTable.cs (8)
42Dictionary<string[], List<TItem>> ordinalEntries, 43Dictionary<string[], List<TItem>> ordinalIgnoreCaseEntries) 55private Dictionary<string[], List<TItem>> OrdinalEntries { get; } 57private Dictionary<string[], List<TItem>> OrdinalIgnoreCaseEntries { get; } 107var ordinalEntries = new Dictionary<string[], List<T>>(StringArrayComparer.Ordinal); 108var ordinalIgnoreCaseEntries = new Dictionary<string[], List<T>>(StringArrayComparer.OrdinalIgnoreCase); 139if (!ordinalIgnoreCaseEntries.TryGetValue(routeValues, out var entries)) 175if (OrdinalEntries.TryGetValue(routeValues, out var matches) ||
Infrastructure\ActionSelector.cs (4)
116var candidates = new List<ActionSelectorCandidate>(actionsCount); 128List<ActionDescriptor>? results = null; 179var actionsWithConstraint = new List<ActionSelectorCandidate>(); 180var actionsWithoutConstraint = new List<ActionSelectorCandidate>();
Infrastructure\AsyncEnumerableReader.cs (1)
82var result = new List<T>();
Infrastructure\CopyOnWriteList.cs (2)
15private List<T>? _copy; 24private List<T> Writable
Infrastructure\DefaultOutputFormatterSelector.cs (3)
73var acceptableMediaTypes = GetAcceptableMediaTypes(request); 149private List<MediaTypeSegmentWithQuality> GetAcceptableMediaTypes(HttpRequest request) 151var result = new List<MediaTypeSegmentWithQuality>();
Infrastructure\ObjectResultExecutor.cs (2)
164var considered = new List<string?>(contentTypes); 176private static partial void NoFormatter(ILogger logger, List<string?> contentTypes);
ModelBinding\Binders\CollectionModelBinder.cs (5)
193if (targetType.IsAssignableFrom(typeof(List<TElement?>))) 234if (targetType.IsAssignableFrom(typeof(List<TElement?>))) 267var boundCollection = new List<TElement?>(); 344var boundCollection = new List<TElement?>(); 447if (targetType.IsAssignableFrom(typeof(List<TElement?>)))
ModelBinding\Binders\CollectionModelBinderProvider.cs (1)
44var listType = typeof(List<>).MakeGenericType(enumerableType.GenericTypeArguments);
ModelBinding\Binders\FormFileModelBinder.cs (6)
105Debug.Assert(postedFiles is List<IFormFile>); 106value = ((List<IFormFile>)postedFiles).ToArray(); 110Debug.Assert(postedFiles is List<IFormFile>); 111value = new FileCollection((List<IFormFile>)postedFiles); 172public FileCollection(List<IFormFile> list) 195var files = new List<IFormFile>();
ModelBinding\CompositeValueProvider.cs (2)
182var filteredValueProviders = new List<IValueProvider>(); 229var filteredValueProviders = new List<IValueProvider>();
ModelBinding\FormFileValueProvider.cs (1)
43var fileNames = new List<string>();
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
337var propertyEntries = new List<DefaultMetadataDetails>(propertyHelpers.Length);
ModelBinding\ModelBindingHelper.cs (4)
492if (modelType.IsAssignableFrom(typeof(List<T>))) 528/// Capacity for use when creating a <see cref="List{T}"/> instance. Not used when creating another type. 573if (modelType.IsAssignableFrom(typeof(List<T>))) 581private static List<T> CreateList<T>(int? capacity)
ModelBinding\Validation\ClientValidatorCache.cs (6)
41var items = new List<ClientValidatorItem>(metadata.ValidatorMetadata.Count); 85var items = new List<ClientValidatorItem>(entry.Items.Count); 104private static void ExecuteProvider(IClientModelValidatorProvider validatorProvider, ModelMetadata metadata, List<ClientValidatorItem> items) 111private static IReadOnlyList<IClientModelValidator> ExtractValidators(List<ClientValidatorItem> items) 149public CacheEntry(List<ClientValidatorItem> items) 157public List<ClientValidatorItem>? Items { get; }
ModelBinding\Validation\ValidationStack.cs (1)
20internal List<object> List { get; } = new List<object>();
ModelBinding\Validation\ValidationVisitor.cs (1)
223var results = new List<ModelValidationResult>();
ModelBinding\Validation\ValidatorCache.cs (6)
31var items = new List<ValidatorItem>(metadata.ValidatorMetadata.Count); 75var items = new List<ValidatorItem>(entry.Items.Count); 94private static void ExecuteProvider(IModelValidatorProvider validatorProvider, ModelMetadata metadata, List<ValidatorItem> items) 100private static IReadOnlyList<IModelValidator> ExtractValidators(List<ValidatorItem> items) 139public CacheEntry(List<ValidatorItem> items) 147public List<ValidatorItem>? Items { get; }
MvcCoreLoggerExtensions.cs (1)
265var filterList = new List<string>();
ProducesAttribute.cs (1)
109var completeArgs = new List<string>(args.Length + 1);
ProducesResponseTypeAttribute.cs (1)
110var completeContentTypes = new List<string>(additionalContentTypes.Length + 1);
Routing\ActionConstraintMatcherPolicy.cs (3)
106var items = new List<(int index, ActionSelectorCandidate candidate)>(); 191var endpointsWithConstraint = new List<(int index, ActionSelectorCandidate candidate)>(); 192var endpointsWithoutConstraint = new List<(int index, ActionSelectorCandidate candidate)>();
Routing\ActionEndpointDataSourceBase.cs (5)
25protected readonly List<Action<EndpointBuilder>> Conventions; 26protected readonly List<Action<EndpointBuilder>> FinallyConventions; 28private List<Endpoint>? _endpoints; 64protected abstract List<Endpoint> CreateEndpoints( 120var endpoints = CreateEndpoints(
Routing\ActionEndpointFactory.cs (2)
39List<Endpoint> endpoints, 175List<Endpoint> endpoints,
Routing\AttributeRoute.cs (5)
70var routeInfos = GetRouteInfos(actions.Items); 128private static IEnumerable<IGrouping<RouteInfo, ActionDescriptor>> GetInboundRouteGroups(List<RouteInfo> routeInfos) 135private static List<RouteInfo> GetRouteInfos(IReadOnlyList<ActionDescriptor> actions) 137var routeInfos = new List<RouteInfo>(); 138var errors = new List<RouteInfo>();
Routing\ControllerActionEndpointDataSource.cs (5)
18private readonly List<ConventionalRouteEntry> _routes; 58var conventions = new List<Action<EndpointBuilder>>(); 59var finallyConventions = new List<Action<EndpointBuilder>>(); 65protected override List<Endpoint> CreateEndpoints( 73var endpoints = new List<Endpoint>();
Routing\ConventionalRouteEntry.cs (2)
27List<Action<EndpointBuilder>> conventions, 28List<Action<EndpointBuilder>> finallyConventions)
Routing\HttpMethodAttribute.cs (1)
15private readonly List<string> _httpMethods;
Routing\ViewEnginePath.cs (1)
77var pathSegments = new List<StringSegment>();
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
100var chunks = new List<string>(10); // The client may not have sent all of the chunks, don't allocate based on chunksCount. 231var keys = new List<string> 280var newValues = new List<string>(); 315var keyValuePairs = new List<KeyValuePair<string, string>>();
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\Shared\PropertyHelper\PropertyHelper.cs (3)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,
Microsoft.AspNetCore.Mvc.Core.Test (182)
ApplicationModels\DefaultApplicationModelProviderTest.cs (2)
1273var selectors = new List<SelectorModel> { selector }; 1836List<IFormFile> formFileList,
ApplicationModels\EndpointMetadataProviderTest.cs (8)
45var endpoints = GetEndpoints(typeof(TestController), nameof(TestController.MultipleSelectorsActionWithMetadataInActionResult)); 67var endpoints = GetEndpoints(typeof(TestController), nameof(TestController.MultipleSelectorsActionWithParameterMetadata)); 89var endpoints = GetEndpoints(typeof(TestController), nameof(TestController.MultipleSelectorsActionWithParameterMetadata)); 207var endpoints = GetEndpoints(typeof(TestController), nameof(TestController.MultipleSelectorsActionWithRoutePatternMetadata)); 216private List<Endpoint> GetEndpoints(Type controllerType, string actionName) => FilterEndpoints(GetEndpointDataSource(controllerType, actionName).Endpoints); 220private List<Endpoint> FilterEndpoints(IReadOnlyList<Endpoint> endpoints) 222var nonLinkGenerationEndpoints = new List<Endpoint>(); 253var descriptorsWithMatchingActionName = new List<ControllerActionDescriptor>();
ApplicationModels\InferParameterBindingInfoConventionTest.cs (2)
1173public List<int> TestProperty { get; set; } 1175public IActionResult SomeAction([FromQuery] List<int> test) => null;
Controllers\ControllerBinderDelegateProviderTest.cs (6)
670var expected = new List<string> { "Hello", "World", "!!" }; 993{ nameof(TestController.CollectionProperty), typeof(List<string>) }, 995{ nameof(TestController.NullCollectionProperty), typeof(List<string>) }, // Skipped 1072public static TheoryData<List<ParameterDescriptor>> MultipleActionParametersAndValidationData 1076return new TheoryData<List<ParameterDescriptor>> 1122public async Task MultipleActionParameter_ValidModelState(List<ParameterDescriptor> parameters)
Controllers\ControllerFeatureProviderTest.cs (2)
311var expected = new List<TypeInfo> 344var expected = new List<TypeInfo>
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>
DependencyInjection\MvcBuilderExtensionsTest.cs (2)
96var services = collection.ToList(); 127var collection = services.ToList();
Filters\FilterProviderTest.cs (1)
139private FilterProviderContext CreateFilterContext(List<FilterItem> items)
Filters\ResponseCacheFilterExecutorTest.cs (1)
533private ActionExecutingContext GetActionExecutingContext(List<IFilterMetadata> filters = null)
Formatters\AcceptHeaderParserTest.cs (5)
15var expected = new List<MediaTypeSegmentWithQuality> 32var expected = new List<MediaTypeSegmentWithQuality> 54var expectedMediaTypes = new List<MediaTypeSegmentWithQuality> 95var expectedMediaTypes = expected.Select(e => new MediaTypeSegmentWithQuality(new StringSegment(e), 1.0)).ToList(); 108var expected = new List<MediaTypeSegmentWithQuality>
Formatters\JsonInputFormatterTestBase.cs (2)
276public virtual Task ReadAsync_ReadsValidArray_AsListOfT() => ReadAsync_ReadsValidArray_AsList(typeof(List<int>)); 317var formatterContext = CreateInputFormatterContext(typeof(List<ComplexModel>), httpContext);
Formatters\OutputFormatterTests.cs (1)
189public List<Type> SupportedTypes { get; } = new List<Type>();
Formatters\SystemTextJsonInputFormatterTest.cs (1)
74var formatterContext = CreateInputFormatterContext(typeof(List<int>), httpContext);
Infrastructure\ActionSelectionTableTest.cs (1)
555var metadata = new List<object>(a.EndpointMetadata ?? Array.Empty<object>());
Infrastructure\ActionSelectorTest.cs (2)
997var controllerTypes = typeof(ActionSelectorTest) 1015private static ApplicationPartManager GetApplicationManager(List<TypeInfo> controllerTypes)
Infrastructure\AsyncEnumerableReaderTest.cs (1)
14[InlineData(typeof(List<int>))]
Infrastructure\ControllerActionInvokerTest.cs (3)
211var valueProviderFactories = new List<IValueProviderFactory>(); 242var valueProviderFactories = new List<IValueProviderFactory>(); 1576var messages = testSink.Writes.Select(write => write.State.ToString()).ToList();
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 (4)
568var inputFormatters = new List<IInputFormatter>() 595var inputFormatters = new List<IInputFormatter>() 610var writeList = sink.Writes.ToList(); 624var inputFormatters = new List<IInputFormatter>()
ModelBinding\Binders\CollectionModelBinderProviderTest.cs (2)
41[InlineData(typeof(List<int>))] 72var context = new TestModelBinderProviderContext(typeof(List<int>));
ModelBinding\Binders\CollectionModelBinderTest.cs (12)
107var list = new List<int>(); 159var list = new List<int>(); 190var model = Assert.IsType<List<int>>(bindingContext.Result.Model); 229private IActionResult ActionWithListParameter(List<string> parameter) => null; 230private IActionResult ActionWithListParameterDefaultValue(List<string> parameter = null) => null; 267Assert.Empty(Assert.IsType<List<string>>(bindingContext.Result.Model)); 301Assert.Empty(Assert.IsType<List<string>>(bindingContext.Result.Model)); 360var list = new List<string>(); 367bindingContext.ModelMetadata = metadataProvider.GetMetadataForType(typeof(List<string>)); 431{ typeof(List<int>), true }, 547public List<string> ListProperty { get; set; }
ModelBinding\Binders\ComplexObjectModelBinderProviderTest.cs (1)
13[InlineData(typeof(List<int>))]
ModelBinding\Binders\ComplexTypeModelBinderProviderTest.cs (1)
13[InlineData(typeof(List<int>))]
ModelBinding\Binders\FloatingPointTypeModelBinderProviderTest.cs (1)
14[InlineData(typeof(List<int>))]
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
252[InlineData(typeof(List<IFormFile>))]
ModelBinding\Binders\HeaderModelBinderProviderTest.cs (2)
95[InlineData(typeof(List<byte>))] 99[InlineData(typeof(List<double>))]
ModelBinding\Binders\HeaderModelBinderTests.cs (2)
64[InlineData(typeof(List<string>))] 197[InlineData(typeof(List<string>))]
ModelBinding\Binders\SimpleTypeModelBinderProviderTest.cs (1)
14[InlineData(typeof(List<int>))]
ModelBinding\Metadata\DefaultModelMetadataTest.cs (12)
250[InlineData(typeof(List<string>), typeof(string))] 541var expectedProperties = new List<DefaultModelMetadata>(); 646var expectedProperties = new List<DefaultModelMetadata>(); 717var SinglePropertiesEvaluation = metadata.Properties.ToList(); 718var secondPropertiesEvaluation = metadata.Properties.ToList(); 833[InlineData(typeof(List<decimal>))] 839[InlineData(typeof(List<TypeWithProperties>))] 1183var employeeEmployees = ModelMetadataIdentity.ForProperty(modelType.GetProperty(nameof(Employee.Employees)), typeof(List<Employee>), modelType); 1224var employeeEmployees = ModelMetadataIdentity.ForProperty(modelType.GetProperty(nameof(Employee.Employees)), typeof(List<Employee>), modelType); 1263var employeeEmployees = ModelMetadataIdentity.ForProperty(modelType.GetProperty(nameof(Employee.Employees)), typeof(List<Employee>), modelType); 1296var employeeEmployeesId = ModelMetadataIdentity.ForProperty(modelType.GetProperty(nameof(Employee.Employees)), typeof(List<Employee>), modelType); 1651public List<Employee> Employees { get; set; }
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 (16)
428Expression<Func<List<User>, object>> expression = m => m[0]; 697var modelMetadata = metadataProvider.GetMetadataForType(typeof(List<Product>)); 792public List<User> Colleagues { get; set; } 828public List<Order> Orders { get; set; } 1339[InlineData(typeof(List<int>))] 1363[InlineData(typeof(List<int>))] 1373Assert.IsType<List<int>>(result); 1402var list = Assert.IsType<List<int>>(result); 1455var list = Assert.IsType<List<int>>(result); 1471var list = Assert.IsType<List<int>>(result); 1477[InlineData(typeof(List<long>))] 1554public List<int> ListProperty { get; } 1556public List<int> ListPropertyWithValue { get; } = new List<int> { 23 };
ModelBinding\TestModelBinderProviderContext.cs (1)
19private readonly List<Func<ModelMetadata, IModelBinder>> _binderCreators =
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (5)
14var model = new List<int>() { 2, 3, 5 }; 16var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>)); 56var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>)); 141private List<ValidationEntry> BufferEntries(IEnumerator<ValidationEntry> enumerator) 143var entries = new List<ValidationEntry>();
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (2)
186private List<ValidationEntry> BufferEntries(IEnumerator<ValidationEntry> enumerator) 188var entries = new List<ValidationEntry>();
ModelBinding\Validation\DefaultObjectValidatorTests.cs (6)
1164var validator = CreateValidator(typeof(List<ValidatedModel>)); 1166var model = new List<ValidatedModel>() 1312var model = new List<ModelWithRequiredProperty> 1463var excludeFilters = new List<SuppressChildValidationMetadataProvider>(); 1513public List<Person> Members { get; set; } 1635public List<string> Items { get; set; } = new List<string> { "Joe", "Fred", "Joe", "Herman" };
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (9)
14var model = new List<int>() { 2, 3, 5 }; 16var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>)); 56var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>)); 124var model = new List<int>() { 2, 3, 5 }; 126var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>)); 154var model = new List<int>() { 2, 3, }; 156var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>)); 201private List<ValidationEntry> BufferEntries(IEnumerator<ValidationEntry> enumerator) 203var entries = new List<ValidationEntry>();
ModelBinding\Validation\ModelValidatorProviderExtensionsTest.cs (2)
12var list = new List<IModelValidatorProvider> 31var list = new List<IModelValidatorProvider>
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (5)
20var metadata = metadataProvider.GetMetadataForType(typeof(List<int>)); 68var metadata = metadataProvider.GetMetadataForType(typeof(List<int>)); 108var metadata = metadataProvider.GetMetadataForType(typeof(List<int>)); 138private List<ValidationEntry> BufferEntries(IEnumerator<ValidationEntry> enumerator) 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>
Routing\ActionEndpointFactoryTest.cs (6)
272var endpoints = new List<Endpoint>(); 378var endpoints = new List<Endpoint>(); 401var endpoints = new List<Endpoint>(); 427var endpoints = new List<Endpoint>(); 448List<Action<EndpointBuilder>> conventions = null, 449List<Action<EndpointBuilder>> finallyConventions = null)
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 (3)
133var endpoints = GetDefaultEndpoints(); 190private List<RouteEndpoint> GetDefaultEndpoints() 192var endpoints = new List<RouteEndpoint>();
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.DataAnnotations (3)
DataAnnotationsMetadataProvider.cs (2)
175var groupedDisplayNamesAndValues = new List<KeyValuePair<EnumGroupAndName, string>>(); 305var attributes = new List<object>(contextAttributesCount);
DataAnnotationsModelValidator.cs (1)
99var validationResults = new List<ModelValidationResult>();
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (4)
DataAnnotationsMetadataProviderTest.cs (3)
818var expectedKeyValuePairs = new List<KeyValuePair<EnumGroupAndName, string>> 998var expectedKeyValuePairs = new List<KeyValuePair<EnumGroupAndName, string>> 1463var expected = new List<object>
DataAnnotationsModelValidatorProviderTest.cs (1)
162var items = new List<ValidatorItem>(metadata.ValidatorMetadata.Count);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (8)
EnumerableWrapperProviderFactoryTest.cs (4)
128typeof(List<int>), 132typeof(List<Person>), 136typeof(List<SerializableError>), 167var wrapperProviderFactories = new List<IWrapperProviderFactory>();
EnumerableWrapperProviderTest.cs (3)
73[InlineData(typeof(List<int>))] 74[InlineData(typeof(List<Person>))] 75[InlineData(typeof(List<SerializableError>))]
XmlDataContractSerializerOutputFormatterTest.cs (1)
69public List<Child> Children { get; set; }
Microsoft.AspNetCore.Mvc.FunctionalTests (172)
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 (133)
47var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 60var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 73var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 86var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 99var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 113var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 127var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 141var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 155var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 169var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 183var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 206var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 229var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 251var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 280var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 316var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 351var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 375var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 393var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 407var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 428var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 451var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 470var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 490var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 514var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 534var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 557var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 579var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 600var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 624var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 656var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 688var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 720var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 750var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 787var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 822var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 852var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 878var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 902var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 931var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 957var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 975var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 979var parameters = description.ParameterDescriptions; 1000var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 1004var parameters = description.ParameterDescriptions; 1024var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 1028var parameters = description.ParameterDescriptions; 1048var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 1052var parameters = description.ParameterDescriptions; 1072var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 1076var parameters = description.ParameterDescriptions; 1116var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 1120var parameters = description.ParameterDescriptions; 1148var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 1152var parameters = description.ParameterDescriptions; 1183var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 1204result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 1217var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 1230var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 1246var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(body); 1274var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(response); 1308var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(response); 1335var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(responseBody); 1366var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(responseBody); 1401var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(responseBody); 1436var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(responseBody); 1476var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(responseBody); 1517var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(responseBody); 1546var result = JsonConvert.DeserializeObject<List<ApiExplorerData>>(responseBody); 1607public List<ApiExplorerParameterData> ParameterDescriptions { get; } = new List<ApiExplorerParameterData>(); 1611public List<ApiExplorerResponseType> SupportedResponseTypes { get; } = new List<ApiExplorerResponseType>(); 1613public List<ApiExplorerRequestFormat> SupportedRequestFormats { get; } = new List<ApiExplorerRequestFormat>();
AsyncEnumerableTestBase.cs (2)
50var projects = JsonSerializer.Deserialize<List<Project>>(content, TestJsonSerializerOptionsProvider.Options);
FormFileUploadTest.cs (1)
97public Dictionary<string, List<string>> Specs { get; set; }
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 (3)
37var tempDataSerializers = _serviceCollection.Where(f => f.ServiceType == typeof(TempDataSerializer)).ToList(); 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>>
XmlDataContractSerializerInputFormatterTest.cs (1)
90var expectedErrorMessages = new List<string>();
Microsoft.AspNetCore.Mvc.IntegrationTests (158)
ActionParametersIntegrationTest.cs (1)
30public List<Address> Address { get; }
CollectionModelBinderIntegrationTest.cs (54)
27ParameterType = typeof(List<int>) 43var model = Assert.IsType<List<int>>(modelBindingResult.Model); 75ParameterType = typeof(List<int>) 91var model = Assert.IsType<List<int>>(modelBindingResult.Model); 127var model = Assert.IsType<List<int>>(modelBindingResult.Model); 143ParameterType = typeof(List<int>) 158Assert.Empty(Assert.IsType<List<int>>(modelBindingResult.Model)); 183ParameterType = typeof(List<Person>) 199var model = Assert.IsType<List<Person>>(modelBindingResult.Model); 223ParameterType = typeof(List<Person>) 239var model = Assert.IsType<List<Person>>(modelBindingResult.Model); 256ParameterType = typeof(List<Person>) 271Assert.Empty(Assert.IsType<List<Person>>(modelBindingResult.Model)); 294ParameterType = typeof(List<Person2>) 310var model = Assert.IsType<List<Person2>>(modelBindingResult.Model); 353ParameterType = typeof(List<Person2>) 369var model = Assert.IsType<List<Person2>>(modelBindingResult.Model); 420var model = Assert.IsType<List<Person2>>(modelBindingResult.Model); 455ParameterType = typeof(List<int>) 472var model = Assert.IsType<List<int>>(modelBindingResult.Model); 515var model = Assert.IsType<List<Person2>>(modelBindingResult.Model); 550ParameterType = typeof(List<Person2>) 565Assert.Empty(Assert.IsType<List<Person2>>(modelBindingResult.Model)); 712var model = Assert.IsType<List<Address5>>(modelBindingResult.Model); 737typeof(List<string>) 747typeof(List<string>) 757typeof(List<string>) 766typeof(List<string>) 775typeof(List<string>) 778typeof(List<string>), 785typeof(List<string>) 850typeof(List<string>) 858typeof(List<string>) 866typeof(List<string>) 869typeof(List<string>), 874typeof(List<string>) 936var expectedCollection = new List<string> { "hello", "world" }; 1032var locations = Assert.IsType<List<SuccessfulModel>>(result.Model); 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 (4)
959private record Order6(string Name, List<int> ProductIds); 2372private record Order13([BindRequired] List<int> OrderIds); 3002var model = Assert.IsType<List<Person5>>(modelBindingResult.Model);
ComplexTypeIntegrationTestBase.cs (4)
971public List<int> ProductIds { get; set; } 2541public List<int> OrderIds { get; set; } 3210var model = Assert.IsType<List<Person5>>(modelBindingResult.Model);
FormFileModelBindingIntegrationTest.cs (3)
468public List<IFormFile> ListProperty { get; set; } 552public List<IFormFile> ListProperty { get; } = new List<IFormFile> 751public List<Car1> Cars { get; set; }
GenericModelBinderIntegrationTest.cs (21)
28ParameterType = typeof(List<IFormCollection>) 45var model = Assert.IsType<List<IFormCollection>>(modelBindingResult.Model); 67ParameterType = typeof(List<IFormCollection>) 83var model = Assert.IsType<List<IFormCollection>>(modelBindingResult.Model); 105ParameterType = typeof(List<IFormCollection>) 122var model = Assert.IsType<List<IFormCollection>>(modelBindingResult.Model); 407var model = Assert.IsType<List<KeyValuePair<string, int>>>(modelBindingResult.Model); 451var model = Assert.IsType<List<KeyValuePair<string, int>>>(modelBindingResult.Model); 495var model = Assert.IsType<List<KeyValuePair<string, int>>>(modelBindingResult.Model); 514ParameterType = typeof(Dictionary<string, List<int>>) 531var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model); 563ParameterType = typeof(Dictionary<string, List<int>>) 579var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model); 611ParameterType = typeof(Dictionary<string, List<int>>) 627var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model);
HeaderModelBinderIntegrationTest.cs (4)
154public List<string> ListProperty { get; set; } 201public List<string> ListProperty { get; } = new List<string> { "One", "Two", "Three" }; 471public List<CarType> ListOfEnum { get; set; } 474public List<OrderWithTypeConverter> ListOfOrderWithTypeConverterProperty { get; set; }
JQueryFormatModelBindingIntegrationTest.cs (1)
95public List<Address> Address { get; set; }
TryUpdateModelIntegrationTest.cs (7)
115var model = new List<Person1> 206public List<Address> Address { get; set; } 259var collection = model.Address; 293public List<Address> Address { get; } 715var model = new List<Person1> 854var collection = model.Address; 1053var model = new List<IFormFile>
TryValidateModelIntegrationTest.cs (1)
82var model = new List<ProductViewModel>();
ValidationIntegrationTests.cs (30)
34public static TheoryData<List<ParameterDescriptor>> MultipleActionParametersAndValidationData 38return new TheoryData<List<ParameterDescriptor>> 84public async Task ValidationIsTriggered_OnFromBodyModels(List<ParameterDescriptor> parameters) 123public async Task MultipleActionParameter_ValidModelState(List<ParameterDescriptor> parameters) 426public List<Item4> Items { get; set; } 529ParameterType = typeof(List<Order5>) 545var model = Assert.IsType<List<Order5>>(modelBindingResult.Model); 566ParameterType = typeof(List<Order5>) 583var model = Assert.IsType<List<Order5>>(modelBindingResult.Model); 986public List<Product9> Products { get; set; } 998if (((List<Product9>)value)[0].Name == "bill") 1105ParameterType = typeof(List<Order10>) 1121var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 1142ParameterType = typeof(List<Order10>) 1158var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 1182ParameterType = typeof(List<Order10>) 1198var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 2047var model = Assert.IsType<List<int>>(modelBindingResult.Model); 2066private static void Validation_ListOfType_NoValidatorOnParameterTestMethod(List<int> parameter) { } 2099var model = Assert.IsType<List<int>>(modelBindingResult.Model); 2121private static void Validation_ListOfType_ValidatorOnParameterTestMethod([ConsistentMinLength(3)] List<int> parameter) { } 2549var visited = validator.ValidationVisitor.Visited; 2599public List<ModelMetadata> Visited = new();
ValidationWithRecordIntegrationTests.cs (28)
26public static TheoryData<List<ParameterDescriptor>> MultipleActionParametersAndValidationData 30return new TheoryData<List<ParameterDescriptor>> 76public async Task ValidationIsTriggered_OnFromBodyModels(List<ParameterDescriptor> parameters) 115public async Task MultipleActionParameter_ValidModelState(List<ParameterDescriptor> parameters) 395private record Order4([Required] List<Item4> Items); 488ParameterType = typeof(List<Order5>) 504var model = Assert.IsType<List<Order5>>(modelBindingResult.Model); 525ParameterType = typeof(List<Order5>) 542var model = Assert.IsType<List<Order5>>(modelBindingResult.Model); 852private record Order9([ValidateProducts9] List<Product9> Products); 860if (((List<Product9>)value)[0].Name == "bill") 963ParameterType = typeof(List<Order10>) 979var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 1000ParameterType = typeof(List<Order10>) 1016var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 1040ParameterType = typeof(List<Order10>) 1056var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 1838var model = Assert.IsType<List<int>>(modelBindingResult.Model); 1857private static void Validation_ListOfType_NoValidatorOnParameterTestMethod(List<int> parameter) { } 1890var model = Assert.IsType<List<int>>(modelBindingResult.Model); 1912private static void Validation_ListOfType_ValidatorOnParameterTestMethod([ConsistentMinLength(3)] List<int> parameter) { }
Microsoft.AspNetCore.Mvc.Localization.Test (5)
HtmlLocalizerTest.cs (2)
225var allLocalizedStrings = htmlLocalizer.GetAllStrings(includeParentCultures: false).ToList(); 241var allLocalizedStrings = htmlLocalizer.GetAllStrings().ToList();
TestStringLocalizer.cs (1)
58var allStrings = new List<LocalizedString>();
ViewLocalizerTest.cs (2)
132var allLocalizedStrings = viewLocalizer.GetAllStrings(includeParentCultures: false).ToList(); 157var allLocalizedStrings = viewLocalizer.GetAllStrings(includeParentCultures: true).ToList();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\Mvc\Mvc.Core\src\Infrastructure\AsyncEnumerableReader.cs (1)
82var result = new List<T>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (7)
BsonTempDataSerializerTest.cs (1)
233var value = new List<DateTime>
JsonPatchOperationsArrayProviderTests.cs (1)
34var actionDescriptorList = new List<ActionDescriptor>();
NewtonsoftJsonInputFormatterTest.cs (1)
265var formatterContext = CreateInputFormatterContext(typeof(List<int>), httpContext);
src\Mvc\Mvc.Core\test\Formatters\JsonInputFormatterTestBase.cs (2)
276public virtual Task ReadAsync_ReadsValidArray_AsListOfT() => ReadAsync_ReadsValidArray_AsList(typeof(List<int>)); 317var formatterContext = CreateInputFormatterContext(typeof(List<ComplexModel>), httpContext);
src\Mvc\Mvc.Core\test\Infrastructure\AsyncEnumerableReaderTest.cs (1)
14[InlineData(typeof(List<int>))]
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (1)
288var value = new List<string> { "Hello", "world" };
Microsoft.AspNetCore.Mvc.Razor (3)
RazorView.cs (1)
201var renderedLayouts = new List<IRazorPage>();
RazorViewEngine.cs (2)
352var searchedLocations = new List<string>(); 429var viewStartPages = new List<ViewLocationCacheItem>();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (4)
CompilationFailedExceptionFactory.cs (2)
31var failures = new List<CompilationFailure>(); 57var failures = new List<CompilationFailure>();
RazorReferenceManager.cs (1)
58var referencePaths = new List<string>(_options.AdditionalReferencePaths.Count);
RuntimeViewCompiler.cs (1)
283var expirationTokens = new List<IChangeToken>(checksums.Count);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (6)
AssemblyPartExtensionTest.cs (3)
19var references = part.GetReferencePaths().ToList(); 37var references = part.GetReferencePaths().ToList(); 55var references = part.GetReferencePaths().ToList();
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 (4)
Compilation\DefaultViewCompilerTest.cs (1)
95var compiledViews = new List<CompiledViewDescriptor>
DependencyInjection\MvcRazorMvcBuilderExtensionsTest.cs (1)
51var collection = services.ToList();
DependencyInjection\MvcRazorMvcCoreBuilderExtensionsTest.cs (1)
91var collection = services.ToList();
RazorViewTest.cs (1)
149var paths = new List<string>();
Microsoft.AspNetCore.Mvc.RazorPages (16)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
121var results = new List<PageBoundPropertyDescriptor>();
Builder\PageActionEndpointConventionBuilder.cs (4)
16private readonly List<Action<EndpointBuilder>> _conventions; 17private readonly List<Action<EndpointBuilder>> _finallyConventions; 19internal PageActionEndpointConventionBuilder(object @lock, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions)
Infrastructure\DefaultPageHandlerMethodSelector.cs (4)
16var handlers = SelectHandlers(context); 22List<HandlerMethodDescriptor>? ambiguousMatches = null; 64private static List<HandlerMethodDescriptor> SelectHandlers(PageContext context) 67var candidates = new List<HandlerMethodDescriptor>();
Infrastructure\DefaultPageLoader.cs (1)
65var endpoints = new List<Endpoint>();
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
156var loadedEndpoints = new List<Endpoint>(endpoints);
Infrastructure\PageActionEndpointDataSource.cs (2)
44protected override List<Endpoint> CreateEndpoints( 52var endpoints = new List<Endpoint>();
Infrastructure\PageActionInvokerCache.cs (3)
93var viewStartFactories = GetViewStartFactories(compiledActionDescriptor); 113internal List<Func<IRazorPage>> GetViewStartFactories(CompiledPageActionDescriptor descriptor) 115var viewStartFactories = new List<Func<IRazorPage>>();
Microsoft.AspNetCore.Mvc.RazorPages.Test (13)
ApplicationModels\CompiledPageRouteModelProviderTest.cs (1)
499public List<CompiledViewDescriptor> Descriptors { get; } = new List<CompiledViewDescriptor>();
Infrastructure\PageActionEndpointDataSourceTest.cs (6)
21var actions = new List<ActionDescriptor> 53var actions = new List<ActionDescriptor> 97var actions = new List<ActionDescriptor> 138var groupConventions = new List<Action<EndpointBuilder>>() 175var actions = new List<ActionDescriptor> 217var actions = new List<ActionDescriptor>
Infrastructure\PageActionInvokerProviderTest.cs (2)
410var factories = invokerProvider.Cache.GetViewStartFactories(compiledPageDescriptor); 457var factories = invokerProvider.Cache.GetViewStartFactories(compiledDescriptor).ToList();
Infrastructure\PageActionInvokerTest.cs (4)
97var valueProviderFactories = new List<IValueProviderFactory> 130var valueProviderFactories = new List<IValueProviderFactory> 1408var messages = testSink.Writes.Select(write => write.State.ToString()).ToList(); 1454var handlers = new List<PageHandlerExecutorDelegate>();
Microsoft.AspNetCore.Mvc.TagHelpers (8)
Cache\CacheTagKey.cs (1)
277var result = new List<KeyValuePair<string, string>>();
GlobbingUrlBuilder.cs (6)
83var urls = new List<string>(1 + globbedUrls.Count) 107if (Cache.TryGetValue(cacheKey, out List<string> files)) 120var trimmedIncludePatterns = new List<string>(); 133var trimmedExcludePatterns = new List<string>(); 150private (List<string> matchedUrls, long sizeInBytes) FindFiles(Matcher matcher) 153var matchedUrls = new List<string>();
TagHelperOutputExtensions.cs (1)
235var listOfClasses = currentClassValue.Split(SpaceChars, StringSplitOptions.RemoveEmptyEntries)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (31)
GlobbingUrlBuilderTest.cs (8)
250var expected = new List<string> { "/blank.css", "/site.css" }; 365var includePatterns = new List<string>(); 366var excludePatterns = new List<string>(); 393var includePatterns = new List<string>(); 394var excludePatterns = new List<string>(); 474var children = new List<IFileInfo>(); 527private static Matcher MakeMatcher(List<string> includePatterns, List<string> excludePatterns)
InputTagHelperTest.cs (1)
581var models = new List<Model>
LabelTagHelperTest.cs (1)
34var models = new List<Model>
RenderAtEndOfFormTagHelperTest.cs (4)
12public static TheoryData<List<TagBuilder>, string> RenderAtEndOfFormTagHelperData 17return new TheoryData<List<TagBuilder>, string> 42List<TagBuilder> tagBuilderList, 83List<TagBuilder> tagBuilderList,
SelectTagHelperTest.cs (13)
39var models = new List<Model> 96var listItems = new List<SelectListItem>(); 155{ typeof(List<int>), null, true }, 320var savedDisabled = items.Select(item => item.Disabled).ToList(); 321var savedGroup = items.Select(item => item.Group).ToList(); 322var savedSelected = items.Select(item => item.Selected).ToList(); 323var savedText = items.Select(item => item.Text).ToList(); 324var savedValue = items.Select(item => item.Value).ToList(); 501var savedDisabled = items.Select(item => item.Disabled).ToList(); 502var savedGroup = items.Select(item => item.Group).ToList(); 503var savedSelected = items.Select(item => item.Selected).ToList(); 504var savedText = items.Select(item => item.Text).ToList(); 505var savedValue = items.Select(item => item.Value).ToList();
TagHelperLogger.cs (1)
10public List<LoggerData> Logged { get; } = new List<LoggerData>();
TagHelperOutputExtensionsTest.cs (1)
568var attributes = tagHelperOutput.Attributes
TextAreaTagHelperTest.cs (1)
35var models = new List<Model>
ValidationSummaryTagHelperTest.cs (1)
692private readonly List<Model> _fields = new List<Model>();
Microsoft.AspNetCore.Mvc.Test (2)
MvcServiceCollectionExtensionsTest.cs (1)
646var implementations = new List<Type>();
Routing\ActionConstraintMatcherPolicyTest.cs (1)
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)
42private readonly List<HttpClient> _clients = new(); 43private readonly List<WebApplicationFactory<TEntryPoint>> _derivedFactories = new(); 498var testAssemblies = new List<Assembly>();
Microsoft.AspNetCore.Mvc.ViewFeatures (29)
AttributeDictionary.cs (1)
19private List<KeyValuePair<string, string?>>? _items;
Buffers\MemoryPoolViewBufferScope.cs (2)
16private List<ViewBufferValue[]> _available; 17private List<ViewBufferValue[]> _leased;
Buffers\PagedBufferedTextWriter.cs (1)
52var pages = _charBuffer.Pages;
Buffers\PagedCharBuffer.cs (4)
21public List<char[]> Pages { get; } = new List<char[]>(); 28var pages = Pages; 104var pages = Pages; 153var pages = Pages;
Buffers\ViewBuffer.cs (1)
26private List<ViewBufferPage> _multiplePages; // Allocated only if necessary
DefaultDisplayTemplates.cs (1)
62internal static List<SelectListItem> TriStateValues(bool? value)
Filters\SaveTempDataPropertyFilterBase.cs (3)
86List<LifecycleProperty> results = null; 87var errorMessages = new List<string>(); 120private static bool ValidateProperty(TempDataSerializer tempDataSerializer, List<string> errorMessages, PropertyInfo property)
Filters\ViewDataAttributePropertyProvider.cs (1)
13List<LifecycleProperty> results = null;
HtmlHelper.cs (1)
1381var selectList = new List<SelectListItem>();
Infrastructure\DefaultTempDataSerializer.cs (2)
93var array = new List<string>(arrayLength); 104var array = new List<int>(arrayLength);
MemberExpressionCacheKey.cs (1)
30var members = new List<MemberInfo>();
PartialViewResultExecutor.cs (1)
86var locations = new List<string>(originalResult.SearchedLocations);
Rendering\MultiSelectList.cs (2)
160var listItems = new List<SelectListItem>(); 186var listItems = new List<SelectListItem>();
src\Shared\Components\ResourceCollectionResolver.cs (2)
34var resources = new List<ResourceAsset>(); 136List<ResourceAsset> resources,
ValidationHelpers.cs (2)
61var entries = new List<ModelStateEntry>(); 85List<ModelStateEntry> orderedModelStateEntries)
ViewComponents\DefaultViewComponentSelector.cs (1)
92var matchedTypes = new List<string>();
ViewEngines\CompositeViewEngine.cs (2)
43List<string>? searchedList = null; 92List<string>? searchedList = null;
ViewResultExecutor.cs (1)
87var locations = new List<string>(originalResult.SearchedLocations);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (123)
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 (2)
775metadataProvider.GetModelExplorerForType(typeof(List<string>), new List<string>(rawValue)); 1096public List<string> Collection { get; } = new List<string>();
DependencyInjection\MvcViewFeaturesMvcBuilderExtensionsTest.cs (1)
142var collection = services.ToList();
ExpressionHelperTest.cs (5)
20var myModels = new List<TestModel>(); 21var models = new List<TestModel>(); 207var myModels = new List<TestModel>(); 439var collection = new List<TestModel>(); 448(Expression<Func<List<TestModel>, int>>)(m => collection[i].SelectedCategory.CategoryId),
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> 227var selectList = new List<SelectListItem> 250public List<string> Property3 { get; set; }
Rendering\HtmlHelperHiddenTest.cs (1)
995public List<string> Property6 { get; } = new List<string>();
Rendering\HtmlHelperListBoxExtensionsTest.cs (6)
12private static readonly List<SelectListItem> BasicSelectList = new List<SelectListItem> 51var selectList = new List<SelectListItem> 76var selectList = new List<SelectListItem> 123var selectList = new List<SelectListItem> 148var selectList = new List<SelectListItem> 171public List<string> Property3 { get; set; }
Rendering\HtmlHelperNameExtensionsTest.cs (14)
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[]>(); 26private static List<string> StaticCollection { get; } 30private List<string> Collection { get; } 34private List<string[]> NestedCollection { get; } 248public static TheoryData<Expression<Func<List<OuterClass>, string>>, string, string> StaticExpressionNamesData 259private TheoryData<Expression<Func<List<OuterClass>, string>>, string, string> ExpressionNamesData 263var collection = new List<string>(); 264var nestedCollection = new List<string[]>(); 269return new TheoryData<Expression<Func<List<OuterClass>, string>>, string, string> 307Expression<Func<List<OuterClass>, string>> expression, 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 (56)
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> 327var savedDisabled = selectList.Select(item => item.Disabled).ToList(); 328var savedGroup = selectList.Select(item => item.Group).ToList(); 329var savedSelected = selectList.Select(item => item.Selected).ToList(); 330var savedText = selectList.Select(item => item.Text).ToList(); 331var savedValue = selectList.Select(item => item.Value).ToList(); 355var savedSelected = selectList.Select(item => item.Selected).ToList(); 395var savedSelected = selectList.Select(item => item.Selected).ToList(); 600var savedSelected = selectList.Select(item => item.Selected).ToList(); 624var savedSelected = selectList.Select(item => item.Selected).ToList(); 648var savedSelected = selectList.Select(item => item.Selected).ToList(); 673var savedSelected = selectList.Select(item => item.Selected).ToList(); 693var selectList = SomeDisabledOneSelectedSelectList; 694var savedSelected = selectList.Select(item => item.Selected).ToList(); 721var selectList = SomeDisabledOneSelectedSelectList; 722var savedSelected = selectList.Select(item => item.Selected).ToList(); 748var savedDisabled = selectList.Select(item => item.Disabled).ToList(); 749var savedGroup = selectList.Select(item => item.Group).ToList(); 750var savedSelected = selectList.Select(item => item.Selected).ToList(); 751var savedText = selectList.Select(item => item.Text).ToList(); 752var savedValue = selectList.Select(item => item.Value).ToList(); 777var savedSelected = selectList.Select(item => item.Selected).ToList(); 798var savedSelected = selectList.Select(item => item.Selected).ToList(); 1004var savedSelected = selectList.Select(item => item.Selected).ToList(); 1025var savedSelected = selectList.Select(item => item.Selected).ToList(); 1041var selectList = SomeDisabledOneSelectedSelectList; 1042var savedSelected = selectList.Select(item => item.Selected).ToList(); 1070var savedSelected = selectList.Select(item => item.Selected).ToList(); 1090var savedDisabled = selectList.Select(item => item.Disabled).ToList(); 1091var savedGroup = selectList.Select(item => item.Group).ToList(); 1092var savedSelected = selectList.Select(item => item.Selected).ToList(); 1093var savedText = selectList.Select(item => item.Text).ToList(); 1094var savedValue = selectList.Select(item => item.Value).ToList(); 1122var savedSelected = selectList.Select(item => item.Selected).ToList(); 1146var savedSelected = selectList.Select(item => item.Selected).ToList(); 1166var savedSelected = selectList.Select(item => item.Selected).ToList(); 1185var helper = DefaultTemplatesUtilities.GetHtmlHelper<List<string>>(model: null); 1187var savedDisabled = selectList.Select(item => item.Disabled).ToList(); 1188var savedGroup = selectList.Select(item => item.Group).ToList(); 1189var savedSelected = selectList.Select(item => item.Selected).ToList(); 1190var savedText = selectList.Select(item => item.Text).ToList(); 1191var savedValue = selectList.Select(item => item.Value).ToList(); 1214var model = new List<string> { "2" }; 1217var savedSelected = selectList.Select(item => item.Selected).ToList(); 1236var helper = DefaultTemplatesUtilities.GetHtmlHelper<List<string>>(model: null); 1238var savedSelected = selectList.Select(item => item.Selected).ToList(); 1257var model = new List<string> { "2" }; 1260var savedSelected = selectList.Select(item => item.Selected).ToList(); 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>();
Rendering\HtmlHelperValidationSummaryTest.cs (1)
748public List<OrderedModel> Property2 { get; set; }
TemplateRendererTest.cs (1)
34{ typeof(FormFileCollection), new string[] { "FormFileCollection", typeof(List<IFormFile>).Name,
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 (6)
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>() }, 271[InlineData(typeof(List<string>), new object[] { 1, 2, 3 }, typeof(object[]))]
Microsoft.AspNetCore.OpenApi (25)
Schemas\OpenApiJsonSchema.Helpers.cs (6)
22public static List<T>? ReadList<T>(ref Utf8JsonReader reader) 31var values = new List<T>(); 189var types = ReadList<string>(ref reader); 211var enumValues = ReadList<JsonNode>(ref reader); 301var anyOfSchemas = ReadList<OpenApiJsonSchema>(ref reader); 307var oneOfSchemas = ReadList<OpenApiJsonSchema>(ref reader);
Services\OpenApiConstants.cs (1)
38internal static readonly List<Type> PrimitiveTypes =
Services\OpenApiDocumentService.cs (4)
207internal List<OpenApiServer> GetOpenApiServers(HttpRequest? httpRequest = null) 219private List<OpenApiServer> GetDevelopmentOpenApiServers() 451private async Task<List<IOpenApiParameter>?> GetParametersAsync( 458List<IOpenApiParameter>? parameters = null;
Services\OpenApiGenerator.cs (2)
364private List<IOpenApiParameter> GetOpenApiParameters(MethodInfo methodInfo, RoutePattern pattern, bool disableInferredBody) 367var openApiParameters = new List<IOpenApiParameter>();
Services\OpenApiOptions.cs (3)
15internal readonly List<IOpenApiDocumentTransformer> DocumentTransformers = []; 16internal readonly List<IOpenApiOperationTransformer> OperationTransformers = []; 17internal readonly List<IOpenApiSchemaTransformer> SchemaTransformers = [];
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\Shared\PropertyAsParameterInfo.cs (4)
74List<ParameterInfo>? flattenedParameters = null; 88static List<ParameterInfo> InitializeList(ParameterInfo[] parameters, int i) 91List<ParameterInfo> list = new(parameters.Length); 180var attributes = new List<CustomAttributeData>(
src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.OpenApi.SourceGenerators (16)
Helpers\StringExtensions.cs (1)
26var lines = text.ReadLines().ToList();
XmlCommentGenerator.Parser.cs (6)
44internal static List<(string, string)> ParseXmlFile(AdditionalText additionalText, CancellationToken cancellationToken) 61var comments = new List<(string, string)>(); 73internal static List<(string, string)> ParseCompilation(Compilation compilation, CancellationToken cancellationToken) 78var comments = new List<(string, string)>(); 114(List<(string, string)> RawComments, Compilation Compilation) input, 118var comments = new List<(string, XmlComment?)>();
XmlComments\XmlComment.cs (4)
22public List<string?>? Examples { get; internal set; } 23public List<XmlParameterComment> Parameters { get; internal set; } = []; 24public List<XmlResponseComment> Responses { get; internal set; } = []; 89var bulletPoints = items
XmlComments\XmlComment.InheritDoc.cs (1)
97var result = new List<XNode>();
XmlComments\XmlParameterComment.cs (2)
16public static List<XmlParameterComment> GetXmlParameterListComment(XPathNavigator navigator, string xpath) 19var result = new List<XmlParameterComment>();
XmlComments\XmlResponseComment.cs (2)
16public static List<XmlResponseComment> GetXmlResponseCommentList(XPathNavigator navigator, string xpath) 19var result = new List<XmlResponseComment>();
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (10)
AdditionalTextsTests.Schemas.cs (2)
187var references = new Dictionary<string, List<string>> 193await SnapshotTestHelper.Verify(source, generator, references, out var compilation, out var additionalAssemblies);
SnapshotTestHelper.cs (6)
34public static Task Verify(string source, IIncrementalGenerator generator, Dictionary<string, List<string>> classLibrarySources, out Compilation compilation, out List<byte[]> generatedAssemblies) 36var references = AppDomain.CurrentDomain.GetAssemblies() 56var additionalTexts = new List<AdditionalText>(); 107public static async Task VerifyOpenApi(Compilation compilation, List<byte[]> generatedAssemblies, Action<OpenApiDocument> verifyFunc) 120var embeddedTexts = new List<EmbeddedText>();
XmlCommentDocumentationIdTests.cs (2)
55var references = new Dictionary<string, List<string>> 61await SnapshotTestHelper.Verify(source, generator, references, out var compilation, out var additionalAssemblies);
Microsoft.AspNetCore.OpenApi.Tests (31)
Extensions\JsonTypeInfoExtensionsTests.cs (5)
55[typeof(List<Todo>), null], 71[typeof(List<int>), null], 72[typeof(List<List<int>>), null], 77[typeof(Dictionary<string, List<string[]>>), null],
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Servers.cs (5)
46var servers = docService.GetOpenApiServers(httpContext.Request); 70var servers = docService.GetOpenApiServers(); 94var servers = docService.GetOpenApiServers(); 119var servers = docService.GetOpenApiServers(); 143var servers = docService.GetOpenApiServers();
Services\OpenApiGeneratorTests.cs (1)
1037var metadataItems = new List<object>(attributes) { methodInfo, httpMethodMetadata };
Services\OpenApiSchemaService\OpenApiSchemaService.PropertySchemas.cs (1)
433public List<Todo>? NullableTodoList { get; set; }
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (2)
574builder.MapPost("/api/nullable-list", (List<Todo>? todoList) => { }); 864builder.MapPost("/api/nullable-list", (List<Todo>? todos) => { });
Services\OpenApiSchemaService\OpenApiSchemaService.ResponseSchemas.cs (2)
439static List<Todo>? GetNullableTodos() => Random.Shared.Next() < 0.5 ? 781builder.MapGet("/", () => TypedResults.Ok<List<Todo>>([new Todo(1, "Test Title", true, DateTime.Now), new Todo(2, "Test Title 2", false, DateTime.Now)]));
Transformers\CustomSchemaTransformerTests.cs (2)
502public List<NestedItem> Items { get; set; } = []; 531public List<string> Tags { get; set; } = [];
Transformers\DocumentTransformerTests.cs (1)
287var transformerOrder = new List<int>();
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (10)
629builder.MapPost("/list", (List<LocationContainer> items) => { }); 762builder.MapPost("/list", (List<ParentObject> item) => { }); 823public List<List<string>> Seq1 { get; set; } = []; 824public List<List<string>> Seq2 { get; set; } = []; 859public List<ChildObject> Children { get; set; } = []; 1010public List<ConfigItem> Items1 { get; set; } = []; 1011public List<ConfigItem> Items2 { get; set; } = []; 1019public List<string>? Break { get; set; }
Transformers\OperationTransformerTests.cs (1)
618var transformerOrder = new List<int>();
Transformers\SchemaTransformerTests.cs (1)
903var transformerOrder = new List<int>();
Microsoft.AspNetCore.OutputCaching (5)
OutputCacheEntryFormatter.cs (1)
510var pairs = new List<KeyValuePair<string, int>>(arr.Length);
OutputCacheMiddleware.cs (1)
218List<IOutputCachePolicy>? result = null;
OutputCacheOptions.cs (1)
41internal List<IOutputCachePolicy>? BasePolicies { get; set; }
OutputCachePolicyBuilder.cs (2)
19private readonly List<IOutputCachePolicy> _policies = new(); 20private List<Func<OutputCacheContext, CancellationToken, ValueTask<bool>>>? _requirements;
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.OutputCaching.Tests (9)
CachedResponseBodyTests.cs (8)
18var segments = new List<byte[]>(); 28var segments = new List<byte[]>(); 29var receivedSegments = new List<byte[]>(); 48var segments = new List<byte[]> 52var receivedSegments = new List<byte[]>(); 72var segments = new List<byte[]> 77var receivedSegments = new List<byte[]>(); 99static async Task ReceiveDataAsync(PipeReader reader, List<byte[]> receivedSegments, CancellationToken cancellationToken)
TestUtils.cs (1)
259var messageList = messages.ToList();
Microsoft.AspNetCore.Owin.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Owin.Tests (4)
OwinEnvironmentTests.cs (1)
159var orderedEnvironment = owinEnvironment.OrderBy(kv => kv.Key).ToList();
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)
62List<Exception>? exceptions = null;
Microsoft.AspNetCore.RateLimiting.Tests (7)
RateLimitingMiddlewareTests.cs (1)
157var logMessages = sink.Writes.ToList();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
TestPartitionedRateLimiter.cs (3)
15private readonly List<RateLimiter> _limiters = new List<RateLimiter>(); 40var leases = new List<RateLimitLease>(); 66var leases = new List<RateLimitLease>();
TestRateLimitLease.cs (2)
10internal List<RateLimitLease> _leases; 12public TestRateLimitLease(bool isAcquired, List<RateLimitLease> leases)
Microsoft.AspNetCore.Razor (4)
TagHelpers\DefaultTagHelperContent.cs (2)
21private List<object> _buffer; 23private List<object> Buffer
TagHelpers\ReadOnlyTagHelperAttributeList.cs (1)
119List<TagHelperAttribute> matchedAttributes = null;
TagHelpers\TagHelperAttributeList.cs (1)
35public TagHelperAttributeList(List<TagHelperAttribute> attributes)
Microsoft.AspNetCore.Razor.Runtime (5)
Hosting\RazorCompiledItemLoader.cs (1)
38var items = new List<RazorCompiledItem>();
Runtime\TagHelpers\TagHelperExecutionContext.cs (2)
15private readonly List<ITagHelper> _tagHelpers; 93internal List<ITagHelper> TagHelperList => _tagHelpers;
Runtime\TagHelpers\TagHelperRunner.cs (1)
52var tagHelpers = executionContext.TagHelperList;
Runtime\TagHelpers\TagHelperScopeManager.cs (1)
105private readonly List<TagHelperExecutionContext> _executionContexts;
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Runtime\TagHelpers\TagHelperRunnerTest.cs (1)
93var processOrder = new List<int>();
Microsoft.AspNetCore.Razor.Test (6)
TagHelpers\DefaultTagHelperContentTest.cs (4)
108var items = new List<object>(); 134var items = new List<object>(); 157var items = new List<object>(); 184var items = new List<object>();
TagHelpers\ReadOnlyTagHelperAttributeListTest.cs (2)
733public List<TagHelperAttribute> PublicAttributes 737return (List<TagHelperAttribute>)Items;
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.RequestDecompression.Tests (12)
DefaultRequestDecompressionProviderTests.cs (4)
43var logMessages = sink.Writes.ToList(); 68var logMessages = sink.Writes.ToList(); 95var logMessages = sink.Writes.ToList(); 123var logMessages = sink.Writes.ToList();
RequestDecompressionMiddlewareTests.cs (8)
247var logMessages = sink.Writes.ToList(); 318var logMessages = sink.Writes.ToList(); 394var logMessages = sink.Writes.ToList(); 496var logMessages = sink.Writes.ToList(); 580var logMessages = sink.Writes.ToList(); 666private static void AssertDecompressedWithLog(List<WriteContext> logMessages, string encoding) 672private static void AssertNoDecompressionProviderLog(List<WriteContext> logMessages) 678private static async Task<(List<WriteContext>, byte[])> InvokeMiddleware(
Microsoft.AspNetCore.ResponseCaching (4)
CacheEntry\CachedResponseBody.cs (2)
10public CachedResponseBody(List<byte[]> segments, long length) 16public List<byte[]> Segments { get; }
src\Shared\SegmentWriteStream.cs (2)
8private readonly List<byte[]> _segments = new(); 26internal List<byte[]> GetSegments()
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.ResponseCaching.Tests (10)
CachedResponseBodyTests.cs (9)
18var segments = new List<byte[]>(); 27var segments = new List<byte[]>(); 36var segments = new List<byte[]>(); 37var receivedSegments = new List<byte[]>(); 54var segments = new List<byte[]> 58var receivedSegments = new List<byte[]>(); 77var segments = new List<byte[]> 82var receivedSegments = new List<byte[]>(); 103static async Task ReceiveDataAsync(PipeReader reader, List<byte[]> receivedSegments, CancellationToken cancellationToken)
TestUtils.cs (1)
245var messageList = messages.ToList();
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.ResponseCompression.Tests (5)
ResponseCompressionMiddlewareTest.cs (5)
481var logMessages = sink.Writes.ToList(); 544var logMessages = sink.Writes.ToList(); 607var logMessages = sink.Writes.ToList(); 1230private static async Task<(HttpResponseMessage, List<WriteContext>)> InvokeMiddleware( 1336private void AssertCompressedWithLog(List<WriteContext> logMessages, string provider)
Microsoft.AspNetCore.Rewrite (7)
ApacheModRewrite\FileParser.cs (1)
11var rules = new List<IRule>();
ApacheModRewrite\TestStringParser.cs (1)
39var results = new List<PatternSegment>();
ApacheModRewrite\Tokenizer.cs (1)
34var tokens = new List<string>();
BackReferenceCollection.cs (1)
10private readonly List<string> _backReferences = new List<string>();
IISUrlRewrite\ConditionCollection.cs (1)
10private readonly List<Condition> _conditions = new List<Condition>();
IISUrlRewrite\InputParser.cs (1)
58var results = new List<PatternSegment>();
IISUrlRewrite\UrlRewriteFileParser.cs (1)
33var result = new List<IISUrlRewriteRule>();
Microsoft.AspNetCore.Rewrite.Tests (16)
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\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>();
Microsoft.AspNetCore.Routing (137)
CompositeEndpointDataSource.cs (6)
22private List<Endpoint>? _endpoints; 25private List<IDisposable>? _changeTokenRegistrations; 89var groupedEndpoints = new List<Endpoint>(); 106List<IDisposable>? disposables = null; 193List<IDisposable>? oldChangeTokenRegistrations = null; 265var endpoints = new List<Endpoint>();
DecisionTree\DecisionTreeBuilder.cs (6)
76var itemDescriptors = new List<ItemDescriptor<TItem>>(itemCount); 98List<ItemDescriptor<TItem>> items) 107var matches = new List<TItem>(); 132if (!criterion.TryGetValue(kvp.Value, out var branch)) 150var reducedCriteria = new List<DecisionCriterion<TItem>>(); 216private sealed class Criterion : Dictionary<DecisionCriterionValue, List<ItemDescriptor<TItem>>>
DefaultLinkGenerator.cs (8)
80var endpoints = GetEndpoints(address); 103var endpoints = GetEndpoints(address); 132var endpoints = GetEndpoints(address); 165var endpoints = GetEndpoints(address); 182private List<RouteEndpoint> GetEndpoints<TAddress>(TAddress address) 185var endpoints = addressingScheme.FindEndpoints(address).OfType<RouteEndpoint>().ToList(); 201List<RouteEndpoint> endpoints, 235List<RouteEndpoint> endpoints,
DefaultLinkParser.cs (8)
50var endpoints = GetEndpoints(address); 70private List<RouteEndpoint> GetEndpoints<TAddress>(TAddress address) 73var endpoints = addressingScheme.FindEndpoints(address).OfType<RouteEndpoint>().ToList(); 89var constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 94var constraintsForParameter = new List<IRouteConstraint>(); 155public readonly Dictionary<string, List<IRouteConstraint>> Constraints; 157public MatcherState(RoutePatternMatcher matcher, Dictionary<string, List<IRouteConstraint>> constraints) 163public void Deconstruct(out RoutePatternMatcher matcher, out Dictionary<string, List<IRouteConstraint>> constraints)
InlineRouteParameterParser.cs (1)
100var inlineConstraints = new List<InlineConstraint>();
Matching\AcceptsMatcherPolicy.cs (2)
150var edges = new Dictionary<string, List<Endpoint>>(StringComparer.OrdinalIgnoreCase); 222if (!edges.TryGetValue(AnyContentType, out var anyEndpoints))
Matching\CandidateSet.cs (1)
339var duplicates = new List<Endpoint>();
Matching\DefaultEndpointSelector.cs (1)
111var matches = new List<Endpoint>();
Matching\DfaMatcherBuilder.cs (27)
18private readonly List<RouteEndpoint> _endpoints = new List<RouteEndpoint>(); 29private readonly List<KeyValuePair<string, object>> _slots; 30private readonly List<(string parameterName, int segmentIndex, int slotIndex)> _captures; 31private readonly List<(RoutePatternPathSegment pathSegment, int segmentIndex)> _complexSegments; 32private readonly List<KeyValuePair<string, IRouteConstraint>> _constraints; 72var work = new List<DfaBuilderWorkerWorkItem>(_endpoints.Count); 163private List<DfaBuilderWorkerWorkItem> _previousWork; 164private List<DfaBuilderWorkerWorkItem> _work; 171List<DfaBuilderWorkerWorkItem> work, 192var nextWork = _previousWork; 212List<DfaNode> nextParents; 253List<DfaNode> parents, 254List<DfaNode> nextParents, 372private void AddParentsMatchingComplexSegment(RouteEndpoint endpoint, List<DfaNode> nextParents, RoutePatternPathSegment segment, DfaNode parent, RoutePatternParameterPart parameterPart) 425private void AddParentsWithMatchingLiteralConstraints(List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, IReadOnlyList<RoutePatternParameterPolicyReference> parameterPolicyReferences) 473private void AddRequiredLiteralValue(RouteEndpoint endpoint, List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, object requiredValue) 495private static void AddLiteralNode(bool includeLabel, List<DfaNode> nextParents, DfaNode parent, string literal) 649List<IEndpointSelectorPolicy> endpointSelectorPolicies = null; 889var work = new List<DfaNode>() { node, }; 890List<DfaNode> previousWork = null; 896List<DfaNode> nextWork; 955var nodeBuilderPolicies = new List<INodeBuilderPolicy>(); 956var endpointComparerPolicies = new List<IEndpointComparerPolicy>(); 957var endpointSelectorPolicies = new List<IEndpointSelectorPolicy>(); 996public List<DfaNode> Parents { get; } 998public DfaBuilderWorkerWorkItem(RouteEndpoint endpoint, int precedenceDigit, List<DfaNode> parents) 1005public void Deconstruct(out RouteEndpoint endpoint, out int precedenceDigit, out List<DfaNode> parents)
Matching\DfaNode.cs (1)
26public List<Endpoint> Matches { get; private set; }
Matching\HostMatcherPolicy.cs (2)
198var edges = new Dictionary<EdgeKey, List<Endpoint>>(); 274List<EdgeKey>? result = null;
Matching\HttpMethodDestinationsLookup.cs (1)
23public HttpMethodDestinationsLookup(List<KeyValuePair<string, int>> destinations, int exitDestination)
Matching\HttpMethodMatcherPolicy.cs (7)
174var allHttpMethods = new List<string>(); 175var edges = new Dictionary<EdgeKey, List<Endpoint>>(); 285var matches = new List<Endpoint>() { endpoint, }; 313List<KeyValuePair<string, int>>? destinations = null; 314List<KeyValuePair<string, int>>? corsPreflightDestinations = null; 364static void ProcessEdge(string httpMethod, int destination, ref int exitDestination, ref List<KeyValuePair<string, int>>? destinations) 396private static bool ContainsHttpMethod(List<string> httpMethods, string httpMethod)
Matching\NegotiationMatcherPolicy.cs (5)
233var edges = new Dictionary<string, List<Endpoint>>(StringComparer.OrdinalIgnoreCase); 238if (!edges.TryGetValue(metadata, out var _)) 261var endpointsForType = edges[metadata]; 268if (!edges.TryGetValue(DefaultNegotiationValue, out var anyEndpoints)) 296private double[] CalculateEndpointQualities(List<Endpoint> values)
ParameterPolicyActivator.cs (4)
119var matchingConstructors = GetMatchingConstructors(constructors, serviceProvider, arguments.Length); 146private static List<ConstructorInfo> GetMatchingConstructors(ConstructorInfo[] constructors, IServiceProvider? serviceProvider, int argumentsLength) 148var result = new List<ConstructorInfo>(); 159private static ConstructorInfo GetLongestConstructor(List<ConstructorInfo> constructors, Type parameterPolicyType)
Patterns\DefaultRoutePatternTransformer.cs (5)
150List<RoutePatternParameterPart> updatedParameters = null; 151List<RoutePatternPathSegment> updatedSegments = null; 217private static void RemoveParameterDefault(List<RoutePatternPathSegment> segments, List<RoutePatternParameterPart> parameters, RoutePatternParameterPart parameter) 230var updatedParts = new List<RoutePatternPart>(segment.Parts);
Patterns\RoutePatternFactory.cs (8)
443Dictionary<string, List<RoutePatternParameterPolicyReference>>? parameterPolicyReferences, 469List<RoutePatternParameterPart>? parameters = null; 608List<RoutePatternParameterPolicyReference>? parameterConstraints = null; 614parameterPolicyReferences = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(StringComparer.OrdinalIgnoreCase); 648private static Dictionary<string, List<RoutePatternParameterPolicyReference>>? CreateRoutePatternPolicyReferences(RouteValueDictionary? parameterPolicies) 650Dictionary<string, List<RoutePatternParameterPolicyReference>>? updatedParameterPolicies = null; 653updatedParameterPolicies = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(parameterPolicies.Count, StringComparer.OrdinalIgnoreCase); 657var policyReferences = new List<RoutePatternParameterPolicyReference>();
Patterns\RoutePatternParser.cs (7)
32var segments = new List<RoutePatternPathSegment>(); 71private static bool ParseSegment(Context context, List<RoutePatternPathSegment> segments) 76var parts = new List<RoutePatternPart>(); 143private static bool ParseParameter(Context context, List<RoutePatternPart> parts) 245private static bool ParseLiteral(Context context, List<RoutePatternPart> parts) 316private static bool IsAllValid(Context context, List<RoutePatternPathSegment> segments) 338private static bool IsSegmentValid(Context context, List<RoutePatternPart> parts)
RouteCollection.cs (3)
19private readonly List<IRouter> _routes = new List<IRouter>(); 20private readonly List<IRouter> _unnamedRoutes = new List<IRouter>(); 127private static VirtualPathData? GetVirtualPath(VirtualPathContext context, List<IRouter> routes)
RouteConstraintBuilder.cs (3)
27private readonly Dictionary<string, List<IRouteConstraint>> _constraints; 44_constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 169if (!_constraints.TryGetValue(key, out var list))
RouteEndpointDataSource.cs (1)
23private readonly List<RouteEntry> _routeEntries = new();
RouteGroupBuilder.cs (4)
23private readonly List<EndpointDataSource> _dataSources = new(); 24private readonly List<Action<EndpointBuilder>> _conventions = new(); 25private readonly List<Action<EndpointBuilder>> _finallyConventions = new(); 109var groupedEndpoints = new List<Endpoint>();
RouteValuesAddressScheme.cs (8)
36else if (state.NamedMatches.TryGetValue(address.RouteName, out var namedMatchResults)) 72var matchesWithRequiredValues = new List<OutboundMatch>(); 73var namedOutboundMatchResults = new Dictionary<string, List<OutboundMatchResult>>(StringComparer.OrdinalIgnoreCase); 132if (!namedOutboundMatchResults.TryGetValue(entry.RouteName, out var matchResults)) 173public readonly List<OutboundMatch> MatchesWithRequiredValues; 175public readonly FrozenDictionary<string, List<OutboundMatchResult>> NamedMatches; 178List<OutboundMatch> matchesWithRequiredValues, 180FrozenDictionary<string, List<OutboundMatchResult>> namedMatches)
src\Shared\PropertyHelper\PropertyHelper.cs (3)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,
Template\DefaultTemplateBinderFactory.cs (1)
39var policies = new List<(string parameterName, IParameterPolicy policy)>();
Template\RouteTemplate.cs (1)
59public RouteTemplate(string template, List<TemplateSegment> segments)
Template\TemplateBinder.cs (2)
132List<(string parameterName, IRouteConstraint constraint)>? constraintList = null; 133List<(string parameterName, IOutboundParameterTransformer transformer)>? parameterTransformerList = null;
Template\TemplateSegment.cs (1)
48public List<TemplatePart> Parts { get; }
Tree\LinkGenerationDecisionTree.cs (5)
24private readonly List<OutboundMatch> _conventionalEntries; 31var attributedEntries = new List<OutboundMatch>(); 72var results = new List<OutboundMatchResult>(); 108List<OutboundMatchResult> results, 162private void ProcessConventionalEntries(List<OutboundMatchResult> results)
Tree\TreeRouter.cs (1)
90var outboundMatches = new List<OutboundMatch>();
Tree\UrlMatchingNode.cs (1)
50public List<InboundMatch> Matches { get; }
UriBuildingContext.cs (2)
21private readonly List<BufferValue> _buffer; 87var buffer = _buffer;
ValidationEndpointFilterFactory.cs (1)
35List<ValidatableParameterEntry>? validatableParameters = null;
Microsoft.AspNetCore.Routing.Abstractions (7)
RouteData.cs (4)
18private List<IRouter>? _routers; 142List<IRouter>? routers = null; 258var routers = _routeData._routers!; 271var routers = _routeData._routers!;
src\Shared\PropertyHelper\PropertyHelper.cs (3)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,
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 (12)
EndpointRoutingBenchmarkBase.cs (1)
112var endpointMetadata = new List<object>(metadata ?? Array.Empty<object>());
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)
17private List<MatcherPolicy> _policies;
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)
15private readonly List<RouteEndpoint> _endpoints;
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
17private readonly List<RouteEndpoint> _endpoints;
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Routing.Tests (108)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (2)
175var matcherEndpointDataSources = new List<EndpointDataSource>(); 236var matcherEndpointDataSources = new List<EndpointDataSource>();
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (2)
1110var contentTypes = new List<string>() 1131List<string> _contentTypes = new();
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (6)
191var metadata = endpoint.Metadata.OfType<string>().ToList(); 282private List<Action<EndpointBuilder>> _conventions; 283private List<Action<EndpointBuilder>> _finallyConventions; 294var conventions = _conventions; 312var conventions = Interlocked.Exchange(ref _conventions, null); 322var finallyConventions = Interlocked.Exchange(ref _finallyConventions, null);
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 (1)
75var endpoints = new List<Endpoint> { endpoint1, endpoint2 };
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\DfaMatcherBuilderTest.cs (1)
3671var edges = endpoints
Matching\DfaMatcherTest.cs (2)
441var endpoints = new List<Endpoint> 546var endpoints = 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 (2)
216var data = edges.OrderBy(e => e.State).ToList(); 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)
15private readonly List<RouteEndpoint> _endpoints;
Matching\TreeRouterMatcherBuilder.cs (1)
17private readonly List<RouteEndpoint> _endpoints;
Patterns\RoutePatternFactoryTest.cs (1)
660var policies = routePatternParameterPart.ParameterPolicies.ToList();
RouteValuesAddressSchemeTest.cs (14)
23var allMatches = GetMatchesWithRequiredValuesPlusNamedMatches(addressScheme); 25Assert.True(addressScheme.State.NamedMatches.TryGetValue("named", out var namedMatches)); 43var allMatches = GetMatchesWithRequiredValuesPlusNamedMatches(addressScheme); 45Assert.True(addressScheme.State.NamedMatches.TryGetValue("named", out var namedMatches)); 63var allMatches = GetMatchesWithRequiredValuesPlusNamedMatches(addressScheme); 65Assert.True(addressScheme.State.NamedMatches.TryGetValue("named", out var namedMatches)); 83var allMatches = GetMatchesWithRequiredValuesPlusNamedMatches(addressScheme); 248var foundEndpoints = addressScheme.FindEndpoints( 352var namedMatches = Assert.Single(addressScheme.State.NamedMatches).Value; 375var namedMatches = Assert.Single(addressScheme.State.NamedMatches).Value; 395var allMatches = GetMatchesWithRequiredValuesPlusNamedMatches(addressScheme); 411var allMatches = GetMatchesWithRequiredValuesPlusNamedMatches(addressScheme); 435var metadata = new List<object>(); 451private static List<Tree.OutboundMatch> GetMatchesWithRequiredValuesPlusNamedMatches(RouteValuesAddressScheme routeValuesAddressScheme)
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
TestObjects\DynamicEndpointDataSource.cs (1)
11private readonly List<Endpoint> _endpoints;
TestObjects\TestMatcherFactory.cs (1)
63var metadataList = new List<object>
Tree\LinkGenerationDecisionTreeTest.cs (48)
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>(); 229var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 239var entries = new List<OutboundMatch>(); 253var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 264var entries = new List<OutboundMatch>(); 280var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 291var entries = new List<OutboundMatch>(); 306var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 317var entries = new List<OutboundMatch>(); 332var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 342var entries = new List<OutboundMatch>(); 357var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 370var entries = new List<OutboundMatch>(); 385var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 398var entries = new List<OutboundMatch>(); 413var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 426var entries = new List<OutboundMatch>(); 441var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 453var entries = new List<OutboundMatch>(); 468var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 481var entries = new List<OutboundMatch>(); 496var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 509var entries = new List<OutboundMatch>(); 524var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 536var entries = new List<OutboundMatch>(); 551var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 563var entries = new List<OutboundMatch>(); 578var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 588var entries = new List<OutboundMatch>(); 603var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 613var entries = new List<OutboundMatch>(); 628var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 640var entries = new List<OutboundMatch>(); 655var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 667var entries = new List<OutboundMatch>(); 682var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 692var entries = new List<OutboundMatch>(); 707var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); 717var entries = new List<OutboundMatch>();
Tree\TreeRouterTest.cs (3)
1740List<IRouter> nestedRouters = null; 1777List<IRouter> nestedRouters = null; 1821List<IRouter> nestedRouters = null;
Microsoft.AspNetCore.Security.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Server.HttpSys (7)
MessagePump.cs (1)
70var serverAddressCopy = _serverAddresses.Addresses.ToList();
RequestProcessing\RequestContext.FeatureCollection.cs (4)
72private List<Tuple<Func<object, Task>, object>>? _onStartingActions = new List<Tuple<Func<object, Task>, object>>(); 73private List<Tuple<Func<object, Task>, object>>? _onCompletedActions = new List<Tuple<Func<object, Task>, object>>(); 637var actions = _onStartingActions; 728var actions = _onCompletedActions;
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
24private readonly List<Exception> _blockAccessExceptions;
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
ServerTests.cs (1)
264List<Task> requestTasks = new List<Task>();
src\Shared\Http2cat\Http2Utilities.cs (2)
415var settings = _clientSettings.GetNonProtocolDefaults(); 449var settings = _clientSettings.GetNonProtocolDefaults();
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
99internal List<Http2PeerSetting> GetNonProtocolDefaults() 103var list = new List<Http2PeerSetting>(2);
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (3)
RequestHeaderBenchmarks.cs (2)
123private static List<(string, string)> GenerateUnknownHeaders(int count) 125var result = new List<(string, string)>();
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.Server.IIS (8)
Core\IISHttpContext.FeatureCollection.cs (1)
47private List<KeyValuePair<Type, object>>? MaybeExtra;
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
24private readonly List<Exception> _blockAccessExceptions;
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
src\Shared\RazorViews\BaseView.cs (1)
134private List<string>? AttributeValues { get; set; }
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
62var typeLoadExceptions = new List<Exception>(); 72var list = new List<Exception>();
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
39var frames = new List<StackFrameInfo>(stackFrames.Length); 41List<Exception>? exceptions = null;
Microsoft.AspNetCore.Server.IntegrationTesting (6)
TestMatrix.cs (6)
117var variants = new List<TestVariant>(); 133private void VaryByServer(List<TestVariant> variants) 166private void VaryByTfm(List<TestVariant> variants, ServerType server, string skip) 198private void VaryByApplicationType(List<TestVariant> variants, ServerType server, string tfm, string skip) 220private void VaryByArchitecture(List<TestVariant> variants, ServerType server, string tfm, string skip, ApplicationType type) 298private void CheckForSkips(List<TestVariant> variants)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
IISDeployer.cs (2)
164var debugLogLocations = new List<string>(); 471List<Exception> exceptions = null;
Microsoft.AspNetCore.Server.Kestrel.Core (67)
Internal\CertificatePathWatcher.cs (2)
73public void UpdateWatches(List<CertificateConfig> certificateConfigsToRemove, List<CertificateConfig> certificateConfigsToAdd)
Internal\ConfigurationReader.cs (1)
70var endpoints = new List<EndpointConfig>();
Internal\Http\Http1OutputProducer.cs (1)
64private List<CompletedBuffer>? _completedSegments;
Internal\Http\HttpProtocol.Generated.cs (1)
81private List<KeyValuePair<Type, object>>? MaybeExtra;
Internal\Http2\Http2FrameWriter.cs (2)
902public ValueTask<FlushResult> WriteSettingsAsync(List<Http2PeerSetting> settings) 924internal static void WriteSettings(List<Http2PeerSetting> settings, Span<byte> destination)
Internal\Http3\Http3FrameWriter.cs (3)
94internal Task WriteSettingsAsync(List<Http3PeerSetting> settings) 130internal static int CalculateSettingsSize(List<Http3PeerSetting> settings) 141internal static void WriteSettings(List<Http3PeerSetting> settings, Span<byte> destination)
Internal\Http3\Http3PeerSettings.cs (2)
20internal List<Http3PeerSetting> GetNonProtocolDefaults() 24var list = new List<Http3PeerSetting>(1);
Internal\Infrastructure\KestrelConnection.cs (1)
12private List<(Action<object> handler, object state)>? _heartbeatHandlers;
Internal\Infrastructure\KestrelConnectionOfT.cs (1)
105public List<KeyValuePair<string, object?>> TagsList { get; } = new List<KeyValuePair<string, object?>>();
Internal\Infrastructure\KestrelEventSource.cs (1)
41private readonly List<WeakReference<KestrelServerOptions>> _options = new();
Internal\Infrastructure\KestrelMetrics.cs (2)
101public void ConnectionStop(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp) 110private void ConnectionStopCore(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp)
Internal\Infrastructure\TransportConnectionManager.cs (2)
57var closeTasks = new List<Task>(); 74var abortTasks = new List<Task>();
Internal\Infrastructure\TransportManager.cs (8)
14private readonly List<ActiveTransport> _transports = []; 16private readonly List<IConnectionListenerFactory> _transportFactories; 17private readonly List<IMultiplexedConnectionListenerFactory> _multiplexedTransportFactories; 22List<IConnectionListenerFactory> transportFactories, 23List<IMultiplexedConnectionListenerFactory> multiplexedTransportFactories, 106public Task StopEndpointsAsync(List<EndpointConfig> endpointsToStop, CancellationToken cancellationToken) 108var transportsToStop = new List<ActiveTransport>(); 124private async Task StopTransportsAsync(List<ActiveTransport> transportsToStop, CancellationToken cancellationToken)
Internal\KestrelServerImpl.cs (3)
24private readonly List<IConnectionListenerFactory> _transportFactories; 25private readonly List<IMultiplexedConnectionListenerFactory> _multiplexedTransportFactories; 366var configsToStop = new List<EndpointConfig>(endpointsToStop.Count);
Internal\ServerAddressesCollection.cs (1)
15private readonly List<string> _addresses = new List<string>();
KestrelConfigurationLoader.cs (8)
335internal (List<ListenOptions>, List<ListenOptions>) Reload() 342var endpointsToStop = Options.ConfigurationBackedListenOptions.ToList(); 343var endpointsToStart = new List<ListenOptions>(); 344var endpointsToReuse = new List<ListenOptions>(); 394var matchingBoundEndpoints = new List<ListenOptions>(); 441var certificateConfigsToRemove = new List<CertificateConfig>(); 442var certificateConfigsToAdd = new List<CertificateConfig>();
KestrelServerOptions.cs (3)
74internal List<ListenOptions> CodeBackedListenOptions { get; } = new List<ListenOptions>(); 75internal List<ListenOptions> ConfigurationBackedListenOptions { get; } = new List<ListenOptions>(); 92internal List<ListenOptions> OptionsInUse { get; } = new List<ListenOptions>();
ListenOptions.cs (2)
21private readonly List<Func<ConnectionDelegate, ConnectionDelegate>> _middleware = new List<Func<ConnectionDelegate, ConnectionDelegate>>(); 22private readonly List<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>> _multiplexedMiddleware = new List<Func<MultiplexedConnectionDelegate, MultiplexedConnectionDelegate>>();
LocalhostListenOptions.cs (1)
40var exceptions = new List<Exception>();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
24private readonly List<Exception> _blockAccessExceptions;
src\Shared\CertificateGeneration\CertificateManager.cs (5)
129var certificates = new List<X509Certificate2>(); 217protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 690var extensions = new List<X509Extension>(); 891var list = certificates.ToList(); 933var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
131var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 298var nssDbs = GetNssDbs(homeDirectory); 434var nssDbs = GetNssDbs(homeDirectory); 714var nssDbs = new List<string>(); 732private static List<NssDb> GetNssDbs(string homeDirectory) 734var nssDbs = new List<NssDb>(); 893var certs = new List<FileInfo>();
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
src\Shared\Metrics\MetricsExtensions.cs (2)
37if (tags is List<KeyValuePair<string, object?>> list) 66if (tags is List<KeyValuePair<string, object?>> list)
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
99internal List<Http2PeerSetting> GetNonProtocolDefaults() 103var list = new List<Http2PeerSetting>(2);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (46)
AddressBinderTests.cs (1)
324var endpoints = new List<ListenOptions>();
ConnectionDispatcherTests.cs (1)
42var scopeObjects = testLogger.Scopes.OfType<IReadOnlyList<KeyValuePair<string, object>>>().ToList();
HeartbeatTests.cs (1)
33var splits = new List<TimeSpan>();
Http1\Http1HttpProtocolFeatureCollectionTests.cs (1)
204var matches = _collection.Where(kv => ReferenceEquals(kv.Value, item.Value)).ToList();
Http2\Http2HeadersEnumeratorTests.cs (1)
143var headers = new List<(int HPackStaticTableId, string Name, string Value)>();
Http2\Http2HPackEncoderTests.cs (4)
87var entries = GetHeaderEntries(hpackEncoder); 231var entries = GetHeaderEntries(hpackEncoder); 681private List<EncoderHeaderEntry> GetHeaderEntries(DynamicHPackEncoder encoder) 683var headers = new List<EncoderHeaderEntry>();
Http3\Http3HeadersEnumeratorTests.cs (1)
150var headers = new List<(int HPackStaticTableId, string Name, string Value)>();
HttpParserTests.cs (1)
966var segments = new List<byte[]>();
KestrelServerTests.cs (4)
804var mockTransports = new List<Mock<IConnectionListener>>(); 942var mockTransports = new List<Mock<IConnectionListener>>(); 991public List<BindDetail> BoundEndPoints { get; } = new List<BindDetail>(); 1043public List<BindDetail> BoundEndPoints { get; } = new List<BindDetail>();
PinnedBlockMemoryPoolFactoryTests.cs (1)
73var blocks = new List<IMemoryOwner<byte>>();
PinnedBlockMemoryPoolTests.cs (5)
56var blocks = new List<IMemoryOwner<byte>>(); 102var blocks = new List<IMemoryOwner<byte>>(); 136var blocks = new List<IMemoryOwner<byte>>(); 180var blocks = new List<IMemoryOwner<byte>>(); 349var blocks = new List<IMemoryOwner<byte>>();
SniOptionsSelectorTests.cs (2)
634var alpnList = options.ApplicationProtocols; 809var propertyNames = typeof(SslServerAuthenticationOptions).GetProperties().Select(property => property.Name).ToList();
src\Servers\Kestrel\shared\KnownHeaders.cs (3)
446var groups = values.GroupBy(header => header.EqualIgnoreCaseBytesFirstTerm()) 1503var groupedHeaders = staticHeaders.GroupBy(h => Encoding.ASCII.GetString(h.HeaderField.Name)).Select(g => 1524var groupedHeaders = staticHeaders.GroupBy(h => Encoding.ASCII.GetString(h.HeaderField.Name)).Select(g =>
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
84private List<(byte[], DateTimeOffset)> _revocationList;
src\Servers\Kestrel\shared\test\MockLogger.cs (1)
13private readonly List<string> _messages = new List<string>();
src\Servers\Kestrel\shared\test\PipeWriterHttp2FrameExtensions.cs (1)
23var settings = clientSettings.GetNonProtocolDefaults();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (1)
25private readonly List<(string, CertificateAuthority)> _ocspAuthorities =
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (2)
55var unavailableEndpoints = new List<IPEndPoint>(); 86static void AddEndpoints(int startingPort, List<IPEndPoint> endpoints, IEnumerable<IPEndPoint> activeEndpoints)
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\TestApplicationErrorLoggerLoggedTest.cs (1)
32public List<Type> IgnoredCriticalLogExceptions => TestApplicationErrorLogger.IgnoredExceptions;
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
src\Shared\test\Shared.Tests\runtime\Http2\DynamicTableTest.cs (1)
181List<HeaderField> headers = new List<HeaderField>();
TlsListenerTests.cs (7)
47public Task OnTlsClientHelloAsync_ValidData_MultipleSegments(int id, List<byte[]> packets) 52public Task OnTlsClientHelloAsync_InvalidData_MultipleSegments(int id, List<byte[]> packets) 163List<byte[]> packets, 273var clientHelloSegments = new List<byte[]> 291var clientHelloSegments = new List<byte[]>(); 610private static List<byte[]> _validCollection = new List<byte[]>() 617private static List<byte[]> _invalidCollection = new List<byte[]>()
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (9)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (4)
891internal async Task SendSettingsAsync(List<Http3PeerSetting> settings, bool endStream = false) 900internal static int CalculateSettingsSize(List<Http3PeerSetting> settings) 911internal static void WriteSettings(List<Http3PeerSetting> settings, Span<byte> destination) 1115private List<CloseAction> _onClosed;
src\Servers\Kestrel\shared\test\PipeWriterHttp2FrameExtensions.cs (1)
23var settings = clientSettings.GetNonProtocolDefaults();
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
23public List<Type> IgnoredExceptions { get; } = new List<Type>();
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
42private List<KeyValuePair<Type, object>>? MaybeExtra;
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
KestrelConfigurationLoaderTests.cs (1)
733List<string> algorithms = [
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
42private List<KeyValuePair<Type, object>>? MaybeExtra;
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
24private readonly List<Exception> _blockAccessExceptions;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (5)
Internal\QuicStreamContext.cs (1)
334var onClosed = _onClosedRegistrations;
Internal\QuicStreamContext.FeatureCollection.cs (1)
33private List<OnCloseRegistration>? _onClosedRegistrations;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
42private List<KeyValuePair<Type, object>>? MaybeExtra;
src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (1)
35private List<KeyValuePair<Type, object>>? MaybeExtra;
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
24private readonly List<Exception> _blockAccessExceptions;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (9)
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)>();
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (2)
55var unavailableEndpoints = new List<IPEndPoint>(); 86static void AddEndpoints(int startingPort, List<IPEndPoint> endpoints, IEnumerable<IPEndPoint> activeEndpoints)
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\TestApplicationErrorLoggerLoggedTest.cs (1)
32public List<Type> IgnoredCriticalLogExceptions => TestApplicationErrorLogger.IgnoredExceptions;
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Internal\SocketSender.cs (1)
14private List<ArraySegment<byte>>? _bufferList;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
42private List<KeyValuePair<Type, object>>? MaybeExtra;
Microsoft.AspNetCore.Session.Tests (6)
SessionTests.cs (6)
366var sessionLogMessages = sink.Writes.ToList(); 431var sessionLogMessages = sink.Writes.ToList(); 942var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList(); 950var sessionMiddlewareLogs = sink.Writes.Where(message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)).ToList(); 1009var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList(); 1073var sessionLogMessages = sink.Writes.Where(message => message.LoggerName.Equals(typeof(DistributedSession).FullName, StringComparison.Ordinal)).ToList();
Microsoft.AspNetCore.Shared.Tests (47)
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)
181List<HeaderField> headers = new List<HeaderField>();
SegmentWriteStreamTests.cs (2)
53var segments = stream.GetSegments(); 86var segments = stream.GetSegments();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
25var keyValuePairs = new List<DictionaryItemDebugView<string, string>>();
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
src\Shared\PropertyHelper\PropertyHelper.cs (3)
441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,
src\Shared\SegmentWriteStream.cs (2)
8private readonly List<byte[]> _segments = new(); 26internal List<byte[]> GetSegments()
src\Shared\ServerInfrastructure\Http2\Http2PeerSettings.cs (2)
99internal List<Http2PeerSetting> GetNonProtocolDefaults() 103var list = new List<Http2PeerSetting>(2);
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
39var frames = new List<StackFrameInfo>(stackFrames.Length); 41List<Exception>? exceptions = null;
StackTraceHelperTest.cs (1)
156var expectedCallStack = new List<string>()
TypeNameHelperTest.cs (16)
15[InlineData(typeof(List<int>), "System.Collections.Generic.List<int>")] 17[InlineData(typeof(Dictionary<int, List<string>>), "System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<string>>")] 18[InlineData(typeof(List<List<string>>), "System.Collections.Generic.List<System.Collections.Generic.List<string>>")] 63[InlineData(typeof(List<int>), "List<int>")] 65[InlineData(typeof(Dictionary<int, List<string>>), "Dictionary<int, List<string>>")] 66[InlineData(typeof(List<List<string>>), "List<List<string>>")] 113[InlineData(typeof(List<int[,][,,]>), true, "System.Collections.Generic.List<int[,][,,]>")] 114[InlineData(typeof(List<int[,,][,]>[,][,,]), false, "List<int[,,][,]>[,][,,]")] 139{ typeof(List<>), false, "List<>" }, 141{ typeof(List<>), true , "System.Collections.Generic.List<>" }, 227{ typeof(List<int>), "System.Collections.Generic.List" }, 229{ typeof(Dictionary<int, List<string>>), "System.Collections.Generic.Dictionary" }, 230{ typeof(List<List<string>>), "System.Collections.Generic.List" },
Microsoft.AspNetCore.SignalR.Client.Core (7)
HubConnection.cs (5)
746readers = PackageStreamingParams(connectionState, ref args, out var streamIds); 767private Dictionary<string, object>? PackageStreamingParams(ConnectionState connectionState, ref object?[] args, out List<string>? streamIds) 1092readers = PackageStreamingParams(connectionState, ref args, out var streamIds); 1240readers = PackageStreamingParams(connectionState, ref args, out var streamIds); 2043private readonly List<InvocationHandler> _invocationHandlers;
Internal\SerializedHubMessage.cs (2)
20private List<SerializedMessage>? _cachedItems; 87var list = new List<SerializedMessage>(2);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (15)
HubConnectionTests.cs (7)
612var results = new List<int>(); 770var results = await channel.ReadAndCollectAllAsync().DefaultTimeout(); 808var results = await channel.ReadAndCollectAllAsync().DefaultTimeout(); 855var results = await channel.ReadAndCollectAllAsync().DefaultTimeout(); 891var results = new List<int>(); 936var results = new List<int>(); 986var results = await channel.ReadAndCollectAllAsync(suppressExceptions: true).DefaultTimeout();
HubConnectionTests.Tracing.cs (7)
138var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 4).DefaultTimeout(); 310var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 3).DefaultTimeout(); 405var results = new List<int>(); 439var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 3).DefaultTimeout(); 536var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 3).DefaultTimeout(); 631var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 3).DefaultTimeout(); 730var serverActivities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 3).DefaultTimeout();
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
11 private readonly List<XElement> _storedElements = new List<XElement>();
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (7)
HubClientProxyGenerator.Parser.cs (1)
284var members = providerSymbol.GetMembers()
HubClientProxyGenerator.SourceGenerationSpec.cs (3)
21public List<TypeSpec> Types = new(); 27public List<MethodSpec> Methods = new(); 35public List<ArgumentSpec> Arguments = new();
HubServerProxyGenerator.SourceGenerationSpec.cs (3)
21public List<ClassSpec> Classes = new(); 28public List<MethodSpec> Methods = new(); 36public List<ArgumentSpec> Arguments = new();
Microsoft.AspNetCore.SignalR.Client.Tests (33)
HttpConnectionTests.cs (1)
159var writeList = testSink.Writes.ToList();
HubClientProxyGeneratorTests.cs (2)
42public List<int> CallsOfSingleArg = new(); 48public List<(int, float, int?)> CallsOfManyArgs = new();
HubConnectionTests.Protocol.cs (2)
401var notifications = await channel.ReadAndCollectAllAsync().DefaultTimeout(); 431var notifications = await channel.ReadAndCollectAllAsync().DefaultTimeout();
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 (9)
33Task<List<int>> GetCollection(); 35Task<List<int>> SetCollection(List<int> a); 104typeof(List<int>), 112var result = await myHub.GetCollection(); 149var arg = new List<int>() { 20 }; 154typeof(List<int>), 155It.Is<object[]>(y => ((object[])y).Any(z => (List<int>)z == arg)), 162var result = await myHub.SetCollection(arg);
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 (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
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 (3)
src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.SignalR.Common.Tests (4)
Internal\Formatters\BinaryMessageParserTests.cs (1)
99var messages = new List<byte[]>();
Internal\Protocol\Utf8BufferTextWriterTests.cs (2)
347private readonly List<Memory<byte>> _completedSegments = new List<Memory<byte>>(); 416var list = new List<Memory<byte>>();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
Microsoft.AspNetCore.SignalR.Core (16)
DefaultHubLifetimeManager.cs (5)
101List<Task>? tasks = null; 147private static void SendToGroupConnections(string methodName, object?[] args, ConcurrentDictionary<string, HubConnectionContext> connections, Func<HubConnectionContext, object?, bool>? include, object? state, ref List<Task>? tasks, ref SerializedHubMessage? message, CancellationToken cancellationToken) 211List<Task>? tasks = null; 228List<Task>? tasks = null; 261List<Task>? tasks = null;
HubConnectionHandler.cs (1)
69List<IHubFilter>? hubFilters = null;
HubOptions.cs (1)
57internal List<IHubFilter>? HubFilters { get; set; }
HubOptionsSetup.cs (1)
25private readonly List<string> _defaultProtocols = new List<string>();
Internal\DefaultHubDispatcher.cs (1)
43bool disableImplicitFromServiceParameters, ILogger<DefaultHubDispatcher<THub>> logger, List<IHubFilter>? hubFilters, HubLifetimeManager<THub> lifetimeManager)
Internal\DefaultHubProtocolResolver.cs (1)
14private readonly List<IHubProtocol> _hubProtocols;
Internal\HubMethodDescriptor.cs (2)
159public List<Type>? StreamingParameters { get; private set; } 161public List<(int, object?)>? KeyedServiceKeys { get; private set; }
SerializedHubMessage.cs (2)
16private List<SerializedMessage>? _cachedItems; 85var list = new List<SerializedMessage>(2);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
205var parameters = new List<Expression>(paramInfos.Length); 257var parameters = new List<Expression>(paramInfos.Length);
Microsoft.AspNetCore.SignalR.Microbenchmarks (13)
DefaultHubLifetimeManagerBenchmark.cs (5)
14private List<string> _connectionIds; 15private List<string> _subsetConnectionIds; 16private List<string> _groupNames; 17private List<string> _userIdentifiers; 64private void AddUnique(List<string> list, string connectionId)
HubConnectionContextBenchmark.cs (1)
21private List<string> _supportedProtocols;
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>();
Shared\TestPipeReader.cs (1)
10public List<ValueTask<ReadResult>> ReadResults { get; }
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
181List<string>? newStreamIds = null;
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (4)
Protocol\MessagePackHubProtocolWorker.cs (1)
269List<string>? streams = null;
src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (4)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
181List<string>? newStreamIds = null;
src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.SignalR.Specification.Tests (6)
src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (3)
26private List<(Action<object> handler, object state)> _heartbeatHandlers; 53var claims = new List<Claim> { new Claim(ClaimTypes.Name, claimValue) }; 110var result = new List<HubMessage>();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (13)
Internal\DefaultHubMessageSerializer.cs (2)
11private readonly List<IHubProtocol> _hubProtocols; 29var list = new List<SerializedMessage>(_hubProtocols.Count);
RedisHubLifetimeManager.cs (8)
82var supportedProtocols = hubProtocolResolver.AllProtocols.Select(p => p.Name).ToList(); 124var tasks = new List<Task>(); 245var publishTasks = new List<Task>(connectionIds.Count); 260var publishTasks = new List<Task>(groupNames.Count); 280var publishTasks = new List<Task>(userIds.Count); 461var tasks = new List<Task>(_connections.Count); 597var tasks = new List<Task>(subscriptions.Count); 623var tasks = new List<Task>(groupConnections.Count);
src\SignalR\common\Shared\MemoryBufferWriter.cs (3)
29private List<CompletedBuffer>? _completedSegments; 362public readonly List<CompletedBuffer> Segments; 365public WrittenBuffers(List<CompletedBuffer> segments, int bytesWritten)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (10)
DefaultHubMessageSerializerTests.cs (5)
25var protocolNames = testData.SupportedHubProtocols.ConvertAll(p => p.Name); 29var allBytes = new List<byte>(); 62private IHubProtocolResolver CreateHubProtocolResolver(List<IHubProtocol> hubProtocols) 123public List<IHubProtocol> SupportedHubProtocols { get; } 125public ProtocolTestData(string name, List<IHubProtocol> supportedHubProtocols, int serializedCount, params byte[] encoded)
RedisProtocolTests.cs (1)
295private DefaultHubMessageSerializer CreateHubMessageSerializer(List<IHubProtocol> protocols)
TestConnectionMultiplexer.cs (4)
239private readonly ConcurrentDictionary<RedisChannel, List<(int, Action<RedisChannel, RedisValue>)>> _subscriptions = 240new ConcurrentDictionary<RedisChannel, List<(int, Action<RedisChannel, RedisValue>)>>(); 246if (_subscriptions.TryGetValue(channel, out var handlers)) 286if (_subscriptions.TryGetValue(channel, out var list))
Microsoft.AspNetCore.SignalR.Tests (21)
HubConnectionHandlerTests.Activity.cs (3)
381var activities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 2); 431var activities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 2); 482var activities = await serverChannel.Reader.ReadAtLeastAsync(minimumCount: 2);
HubConnectionHandlerTests.cs (4)
1757var excludedConnectionIds = new List<string> { firstClient.Connection.ConnectionId }; 1853var groupNames = new List<string> { "GroupA", "GroupB" }; 5458var result = new List<T>(); 5472var result = new List<T>();
HubConnectionHandlerTestUtils\Hubs.cs (6)
226public async Task<List<object>> UploadArray(ChannelReader<object> source) 228var results = new List<object>(); 242public async Task<List<object>> UploadArrayAuth(ChannelReader<object> source) 244var results = new List<object>(); 425public Task SendToMultipleUsers(List<string> userIds, string message) 505public Task SendToMultipleUsers(List<string> userIds, string message)
Internal\DefaultHubProtocolResolverTests.cs (2)
35List<string> supportedProtocols = null; 48var supportedProtocols = new List<string> { protocol.Name };
Internal\MessageBufferTests.cs (1)
618var list = new List<Type>
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 (10)
ChannelExtensions.cs (4)
10public static async Task<List<T>> ReadAndCollectAllAsync<T>(this ChannelReader<T> channel, bool suppressExceptions = false) 12var list = new List<T>(); 37public static async Task<List<T>> ReadAtLeastAsync<T>(this ChannelReader<T> reader, int minimumCount, CancellationToken cancellationToken = default) 44var items = new List<T>();
DummyHubProtocol.cs (1)
14private readonly List<HubMessage> _writtenMessages = new List<HubMessage>();
HubProtocolHelpers.cs (1)
14public static readonly List<string> AllProtocolNames = new List<string>
src\Shared\SignalR\VerifyNoErrorScope.cs (1)
36var results = _sink.GetLogs().Where(w => w.Write.LogLevel >= LogLevel.Error).ToList();
TestClient.cs (3)
26private List<(Action<object> handler, object state)> _heartbeatHandlers; 53var claims = new List<Claim> { new Claim(ClaimTypes.Name, claimValue) }; 110var result = new List<HubMessage>();
Microsoft.AspNetCore.SpaServices.Extensions.Tests (2)
ListLoggerFactory.cs (2)
28public List<(LogLevel Level, EventId Id, string Message, object State, Exception Exception)> Log => Logger.LoggedEvents; 68public List<(LogLevel, EventId, string, object, Exception)> LoggedEvents { get; }
Microsoft.AspNetCore.StaticAssets (23)
Development\StaticAssetDevelopmentRuntimeHandler.cs (5)
32public StaticAssetDevelopmentRuntimeHandler(List<StaticAssetDescriptor> descriptors) 103private void CreateDescriptorMap(List<StaticAssetDescriptor> descriptors) 219List<StaticAssetDescriptor> descriptors) 306var responseHeaders = new List<StaticAssetResponseHeader>(descriptor.ResponseHeaders); 334var propertiesList = new List<StaticAssetProperty>(descriptor.Properties);
StaticAssetEndpointDataSource.cs (6)
19private readonly List<StaticAssetDescriptor> _descriptors; 21private readonly List<Action<EndpointBuilder>> _conventions = []; 22private readonly List<Action<EndpointBuilder>> _finallyConventions = []; 23private List<Endpoint> _endpoints = null!; 32List<StaticAssetDescriptor> descriptors) 103var endpoints = new List<Endpoint>();
StaticAssetEndpointFactory.cs (2)
19public Endpoint Create(StaticAssetDescriptor resource, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions)
StaticAssetsEndpointConventionBuilder.cs (7)
15private readonly List<StaticAssetDescriptor> _descriptors; 16private readonly List<Action<EndpointBuilder>> _conventions; 17private readonly List<Action<EndpointBuilder>> _finallyConventions; 19internal StaticAssetsEndpointConventionBuilder(object lck, bool isBuildManifest, List<StaticAssetDescriptor> descriptors, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions) 28internal List<StaticAssetDescriptor> Descriptors => _descriptors;
StaticAssetsInvoker.cs (1)
28private readonly List<StaticAssetResponseHeader> _remainingHeaders;
StaticAssetsManifest.cs (2)
38internal static StaticAssetsEndpointDataSource CreateDataSource(IEndpointRouteBuilder endpoints, string manifestName, List<StaticAssetDescriptor> descriptors, bool isBuildManifest) 54public List<StaticAssetDescriptor> Endpoints { get; set; } = [];
Microsoft.AspNetCore.StaticAssets.Tests (2)
StaticAssetsIntegrationTests.cs (2)
207var descriptors = builder.Descriptors; 264var descriptors = builder.Descriptors;
Microsoft.AspNetCore.Tests (10)
WebApplicationTests.cs (10)
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>(); 306private readonly List<object> _startOrder; 308public HostedService(List<object> startOrder) 324private readonly List<object> _startOrder; 326public MockServer(List<object> startOrder)
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
27private readonly List<string> _allowedOrigins;
Microsoft.AspNetCore.WebSockets.ConformanceTests (3)
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.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.AspNetCore.WebUtilities (4)
KeyValueAccumulator.cs (3)
15private Dictionary<string, List<string>> _expandingAccumulator; 49_expandingAccumulator = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 53var list = new List<string>(8);
PagedByteBuffer.cs (1)
26internal List<byte[]> Pages { get; }
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
Microsoft.AspNetCore.WebUtilities.Tests (2)
HttpRequestStreamReaderTest.cs (1)
430var data = new List<byte>();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
94var segments = new List<byte[]>((data.Length * 2) + 1);
Microsoft.Build.Framework (39)
BinaryTranslator.cs (8)
327public void Translate(ref List<string> list) 349public void Translate<T>(ref List<T> list, ObjectTranslator<T> objectTranslator) 353list = (List<T>)listAsInterface; 357public void Translate<T>(ref List<T> list, ObjectTranslatorWithValueFactory<T> objectTranslator, NodePacketValueFactory<T> valueFactory) 361list = (List<T>)listAsInterface; 1130public void Translate(ref List<string> list) 1169public void Translate<T>(ref List<T> list, ObjectTranslator<T> objectTranslator) 1187public void Translate<T>(ref List<T> list, ObjectTranslatorWithValueFactory<T> objectTranslator, NodePacketValueFactory<T> valueFactory)
BuildCheck\BuildCheckEventArgs.cs (1)
83List<BuildCheckRuleTelemetryData> tracingData = new List<BuildCheckRuleTelemetryData>(count);
BuildEngineResult.cs (2)
27private List<IDictionary<string, ITaskItem[]>> targetOutputsPerProject; 32public BuildEngineResult(bool result, List<IDictionary<string, ITaskItem[]>> targetOutputsPerProject)
InterningReadTranslator.cs (1)
21private List<string> _strings = [];
InterningWriteTranslator.cs (1)
38private List<string> _strings = [];
ITranslator.cs (3)
192void Translate(ref List<string> list); 206void Translate<T>(ref List<T> list, ObjectTranslator<T> objectTranslator); 215void Translate<T>(ref List<T> list, ObjectTranslatorWithValueFactory<T> objectTranslator, NodePacketValueFactory<T> valueFactory);
NativeMethods.cs (3)
1351List<KeyValuePair<int, SafeProcessHandle>> children = GetChildProcessIds(processIdToKill, myStartTime); 1445internal static List<KeyValuePair<int, SafeProcessHandle>> GetChildProcessIds(int parentProcessId, DateTime parentStartTime) 1447List<KeyValuePair<int, SafeProcessHandle>> myChildren = new List<KeyValuePair<int, SafeProcessHandle>>();
TaskParameterEventArgs.cs (1)
232private static List<KeyValuePair<string, string>> reusableMetadataList;
Telemetry\BuildTelemetry.cs (1)
177List<TelemetryItem> telemetryItems = new(8);
VisualStudioLocationHelper.cs (1)
33var validInstances = new List<VisualStudioInstance>();
XamlTypes\BaseProperty.cs (3)
362public List<NameValuePair> Metadata 375public List<Argument> Arguments 388public List<ValueEditor> ValueEditors
XamlTypes\ContentType.cs (1)
88public List<NameValuePair> Metadata
XamlTypes\DynamicEnumProperty.cs (1)
44public List<NameValuePair> ProviderSettings { get; set; }
XamlTypes\EnumProperty.cs (1)
39public List<EnumValue> AdmissibleValues
XamlTypes\EnumValue.cs (2)
157public List<NameValuePair> Metadata 170public List<Argument> Arguments
XamlTypes\ProjectSchemaDefinitions.cs (1)
32public List<IProjectSchemaNode> Nodes
XamlTypes\Rule.cs (6)
333public List<BaseProperty> Properties 350public List<Category> Categories 398private List<Category> _evaluatedCategories; 420public List<Category> EvaluatedCategories 607List<BaseProperty> propertiesInTheSameCategory = _categoryNamePropertyListMap[property.Category] as List<BaseProperty>;
XamlTypes\RuleBag.cs (1)
45public List<Rule> Rules
XamlTypes\ValueEditor.cs (1)
74public List<NameValuePair> Metadata
Microsoft.Build.Tasks.CodeAnalysis (15)
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (3)
153protected List<string> GenerateCommandLineArgsList(string responseFileCommands) 155var argumentList = new List<string>(); 172protected static ITaskItem[] GenerateCommandLineArgsTaskItems(List<string> commandLineArgs)
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (1)
91var mappedSourceRoots = new List<ITaskItem>();
src\Compilers\Core\MSBuildTask\Vbc.cs (2)
568var references = new List<ITaskItem>(this.References.Length); 569var links = new List<ITaskItem>(this.References.Length);
src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (4)
49public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments) 54public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments, out char? illegalChar) 56var list = new List<string>(); 61public static void SplitCommandLineIntoArguments(ReadOnlySpan<char> commandLine, bool removeHashComments, StringBuilder builder, List<string> list, out char? illegalChar)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
src\Compilers\Shared\BuildServerConnection.cs (1)
64List<string> arguments,
Microsoft.Build.Tasks.CodeAnalysis.Sdk (15)
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (3)
153protected List<string> GenerateCommandLineArgsList(string responseFileCommands) 155var argumentList = new List<string>(); 172protected static ITaskItem[] GenerateCommandLineArgsTaskItems(List<string> commandLineArgs)
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (1)
91var mappedSourceRoots = new List<ITaskItem>();
src\Compilers\Core\MSBuildTask\Vbc.cs (2)
568var references = new List<ITaskItem>(this.References.Length); 569var links = new List<ITaskItem>(this.References.Length);
src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (4)
49public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments) 54public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments, out char? illegalChar) 56var list = new List<string>(); 61public static void SplitCommandLineIntoArguments(ReadOnlySpan<char> commandLine, bool removeHashComments, StringBuilder builder, List<string> list, out char? illegalChar)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
src\Compilers\Shared\BuildServerConnection.cs (1)
64List<string> arguments,
Microsoft.Build.Tasks.CodeAnalysis.Sdk.UnitTests (1)
src\Compilers\Core\MSBuildTaskTests\TestUtilities\IntegrationTestBase.cs (1)
50var list = vars.ToList();
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
DotNetSdkTests.cs (1)
572List<string> foundConfigs = new List<string>();
TestUtilities\MockEngine.cs (1)
19public List<BuildMessageEventArgs> BuildMessages = new List<BuildMessageEventArgs>();
Microsoft.Cci.Extensions (13)
Differs\ElementDiffer.cs (1)
16private List<Difference> _differences;
Differs\ListMerger.cs (3)
22public static List<Tuple<DifferenceType, T>> Merge<T>(T[] list0, T[] list1) where T : class 27public static List<Tuple<DifferenceType, T>> Merge<T>(T[] list0, int list0Start, int list0End, T[] list1, int list1Start, int list1End) where T : class 29List<Tuple<DifferenceType, T>> list = new List<Tuple<DifferenceType, T>>();
Filters\IntersectionFilter.cs (1)
17var filterList = new List<ICciFilter>();
HostEnvironment.cs (3)
498List<string> contractSet = new List<string>(GetFilePathsAndAddResolvedDirectoriesToLibPaths(SplitPaths(unsplitContractSet))); 576List<IAssembly> assemblySet = new List<IAssembly>(); 626List<IAssembly> matchingAssemblies = new List<IAssembly>();
Writers\CSharp\CSDeclarationWriter.Enums.cs (1)
44List<IFieldDefinition> candidateFlagFields = new List<IFieldDefinition>();
Writers\CSharp\CSDeclarationWriter.Properties.cs (1)
180var parameters = new List<IParameterDefinition>(accessor.Parameters);
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 (190)
AdditionalTextFile.cs (1)
39var diagnostics = new List<DiagnosticInfo>();
CodeGen\SwitchStringJumpTableEmitter.cs (7)
16using HashBucket = List<KeyValuePair<ConstantValue, object>>; 115Dictionary<uint, HashBucket> stringHashMap = ComputeStringHashMap( 131HashBucket hashBucket = kvPair.Value; 137private Dictionary<uint, object> EmitHashBucketJumpTable(Dictionary<uint, HashBucket> stringHashMap) 191private static Dictionary<uint, HashBucket> ComputeStringHashMap( 196var stringHashMap = new Dictionary<uint, HashBucket>(caseLabels.Length); 205HashBucket? bucket;
CommandLine\AnalyzerConfigSet.cs (11)
51private readonly ConcurrentCache<List<Section>, AnalyzerConfigOptionsResult> _optionsCache = 52new ConcurrentCache<List<Section>, AnalyzerConfigOptionsResult>(50, SequenceEqualComparer.Instance); // arbitrary size 60private readonly ObjectPool<List<Section>> _sectionKeyPool = new ObjectPool<List<Section>>(() => new List<Section>()); 64private sealed class SequenceEqualComparer : IEqualityComparer<List<Section>> 68public bool Equals(List<Section>? x, List<Section>? y) 91public int GetHashCode(List<Section> obj) => Hash.CombineValues(obj); 184var sectionKey = _sectionKeyPool.Allocate(); 324static void freeKey(List<Section> sectionKey, ObjectPool<List<Section>> pool)
CommandLine\CommandLineArguments.cs (6)
401internal IEnumerable<MetadataReference> ResolveMetadataReferences(MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt) 405var resolved = new List<MetadataReference>(); 411internal virtual bool ResolveMetadataReferences(MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt, List<MetadataReference> resolved) 436internal static ImmutableArray<PortableExecutableReference> ResolveMetadataReference(CommandLineReference cmdReference, MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt) 483List<DiagnosticInfo> diagnostics,
CommandLine\CommandLineParser.cs (7)
504List<string>? scriptArgsOpt, 506List<string>? responsePaths = null) 593var splitList = new List<string>(); 674var arguments = new List<string>(); 710[NotNullWhen(true)] out List<string>? parsedArgs, 721var newArgs = new List<string>(); 1425internal static ImmutableDictionary<string, string> ParseFeatures(List<string> features)
CommandLine\CommonCompiler.cs (7)
118List<DiagnosticInfo> diagnostics, 227internal List<MetadataReference> ResolveMetadataReferences( 228List<DiagnosticInfo> diagnostics, 234List<MetadataReference> resolved = new List<MetadataReference>(); 945var diagnosticInfos = new List<DiagnosticInfo>(); 1154var generatedSyntaxTrees = compilation.SyntaxTrees.Skip(Arguments.SourceFiles.Length).ToList(); 1598protected virtual ImmutableArray<AdditionalTextFile> ResolveAdditionalFilesFromArguments(List<DiagnosticInfo> diagnostics, CommonMessageProvider messageProvider, TouchedFileLogger? touchedFilesLogger)
CommandLine\SarifV1ErrorLogger.cs (2)
284public List<KeyValuePair<string, DiagnosticDescriptor>> ToSortedList() 288var list = new List<KeyValuePair<string, DiagnosticDescriptor>>(Count);
CommandLine\SarifV2ErrorLogger.cs (2)
496public List<(int Index, DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)> ToSortedList() 500var list = new List<(int Index, DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)>(Count);
Compilation\Compilation.cs (3)
2039internal List<Win32Resource>? MakeWin32ResourceList(Stream? win32Resources, DiagnosticBag diagnostics) 2045List<RESOURCE> resources; 2062var resourceList = new List<Win32Resource>();
CvtRes.cs (2)
52internal static List<RESOURCE> ReadResFile(Stream stream) 55var resourceNames = new List<RESOURCE>();
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (4)
48private sealed class FrameworkRetargetingDictionary : Dictionary<FrameworkRetargetingDictionary.Key, List<FrameworkRetargetingDictionary.Value>> 119List<Value>? values; 139List<Value>? values; 151List<Value>? values;
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
348List<string> originalPaths;
DiaSymReader\Utilities\ComMemoryStream.cs (1)
31private readonly List<byte[]> _chunks = new List<byte[]>();
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (1)
28private readonly List<ISymUnmanagedDocumentWriter> _documentWriters;
DocumentationCommentId.cs (44)
22private class ListPool<T> : ObjectPool<List<T>> 28public void ClearAndFree(List<T> list) 35public new void Free(List<T> list) 110var results = s_symbolListPool.Allocate(); 126private static bool TryGetSymbolsForDeclarationId(string id, Compilation compilation, List<ISymbol> results) 161var results = s_symbolListPool.Allocate(); 188var results = s_symbolListPool.Allocate(); 204private static bool TryGetSymbolsForReferenceId(string id, Compilation compilation, List<ISymbol> results) 249var results = s_symbolListPool.Allocate(); 701public static bool ParseDeclaredSymbolId(string id, Compilation compilation, List<ISymbol> results) 720public static bool ParseReferencedSymbolId(string id, Compilation compilation, List<ISymbol> results) 733private static void ParseDeclaredId(string id, ref int index, Compilation compilation, List<ISymbol> results) 769var containers = s_namespaceOrTypeListPool.Allocate(); 866var results = s_symbolListPool.Allocate(); 885private static void ParseTypeSymbol(string id, ref int index, Compilation compilation, ISymbol? typeParameterContext, List<ISymbol> results) 893var contexts = s_symbolListPool.Allocate(); 973private static void ParseTypeParameterSymbol(string id, ref int index, ISymbol? typeParameterContext, List<ISymbol> results) 1010private static void ParseNamedTypeSymbol(string id, ref int index, Compilation compilation, ISymbol? typeParameterContext, List<ISymbol> results) 1012var containers = s_namespaceOrTypeListPool.Allocate(); 1022List<ITypeSymbol>? typeArguments = null; 1121private static bool ParseTypeArguments(string id, ref int index, Compilation compilation, ISymbol? typeParameterContext, List<ITypeSymbol> typeArguments) 1155private static void GetMatchingTypes(List<INamespaceOrTypeSymbol> containers, string memberName, int arity, List<ISymbol> results) 1163private static void GetMatchingTypes(INamespaceOrTypeSymbol container, string memberName, int arity, List<ISymbol> results) 1180private static void GetMatchingNamespaceOrTypes(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results) 1188private static void GetMatchingNamespaceOrTypes(INamespaceOrTypeSymbol container, string memberName, List<ISymbol> results) 1201private static void GetMatchingNamespaces(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results) 1209private static void GetMatchingNamespaces(INamespaceOrTypeSymbol container, string memberName, List<ISymbol> results) 1222private static void GetMatchingMethods(string id, ref int index, List<INamespaceOrTypeSymbol> containers, string memberName, int arity, Compilation compilation, List<ISymbol> results) 1224var parameters = s_parameterListPool.Allocate(); 1289private static void GetMatchingProperties(string id, ref int index, List<INamespaceOrTypeSymbol> containers, string memberName, Compilation compilation, List<ISymbol> results) 1294List<ParameterInfo>? parameters = null; 1347private static void GetMatchingFields(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results) 1363private static void GetMatchingEvents(List<INamespaceOrTypeSymbol> containers, string memberName, List<ISymbol> results) 1379private static bool AllParametersMatch(ImmutableArray<IParameterSymbol> symbolParameters, List<ParameterInfo> expectedParameters) 1453private static bool ParseParameterList(string id, ref int index, Compilation compilation, ISymbol typeParameterContext, List<ParameterInfo> parameters) 1565private static void CopyTo<TSource, TDestination>(List<TSource> source, List<TDestination> destination)
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
33private readonly List<ITypeDefinition> _changedTypeDefs; 55private readonly List<(EntityHandle parentHandle, IEnumerator<ICustomAttribute> attributeEnumerator)> _deferredCustomAttributes = new(); 1495protected readonly List<T> rows; // Rows in this generation, containing adds and updates.
InternalUtilities\CommandLineUtilities.cs (4)
49public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments) 54public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments, out char? illegalChar) 56var list = new List<string>(); 61public static void SplitCommandLineIntoArguments(ReadOnlySpan<char> commandLine, bool removeHashComments, StringBuilder builder, List<string> list, out char? illegalChar)
InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
MetadataReader\MetadataHelpers.cs (3)
787var nestedTypes = new List<IGrouping<string, TypeDefinitionHandle>>(); 794var nestedNamespaces = new List<KeyValuePair<string, IEnumerable<IGrouping<string, TypeDefinitionHandle>>>>(); 810List<IGrouping<string, TypeDefinitionHandle>>? typesInLastChildNamespace = null;
MetadataReader\PEAssembly.cs (5)
57private Dictionary<string, List<ImmutableArray<byte>>> _lazyInternalsVisibleToMap; 134private Dictionary<string, List<ImmutableArray<byte>>> BuildInternalsVisibleToMap() 136var ivtMap = new Dictionary<string, List<ImmutableArray<byte>>>(StringComparer.OrdinalIgnoreCase); 142List<ImmutableArray<byte>> keys; 168List<ImmutableArray<byte>> result;
MetadataReader\PEModule.cs (9)
1369List<AttributeInfo>? infos = FindTargetAttributes(token, AttributeDescription.CompilerFeatureRequiredAttribute); 1512var attributeInfos = FindTargetAttributes(token, AttributeDescription.NotNullIfNotNullAttribute); 1658List<AttributeInfo> attrInfos = FindTargetAttributes(token, AttributeDescription.InternalsVisibleToAttribute); 1665List<AttributeInfo> attrInfos = FindTargetAttributes(token, AttributeDescription.ConditionalAttribute); 1675List<AttributeInfo> attrInfos = FindTargetAttributes(token, AttributeDescription.MemberNotNullAttribute); 1715List<AttributeInfo> attrInfos = FindTargetAttributes(token, AttributeDescription.MemberNotNullWhenAttribute); 1754private ArrayBuilder<string> ExtractStringValuesFromAttributes(List<AttributeInfo> attrInfos) 2507internal List<AttributeInfo>? FindTargetAttributes(EntityHandle hasAttribute, AttributeDescription description) 2509List<AttributeInfo>? result = null;
PEWriter\MetadataWriter.cs (5)
441private readonly List<IFileReference> _fileRefList = new List<IFileReference>(32); 448protected readonly List<MethodImplementation> methodImplList = new List<MethodImplementation>(); 549List<IGenericTypeParameter> getConsolidatedTypeParameters(ITypeDefinition typeDef, ITypeDefinition owner) 551List<IGenericTypeParameter> result = null; 4222private readonly List<T> _rows;
PEWriter\MetadataWriter.DynamicAnalysis.cs (2)
41private readonly List<DocumentRow> _documentTable; 42private readonly List<MethodRow> _methodTable;
PEWriter\NativeResourceWriter.cs (1)
123internal readonly List<object> Entries;
ReferenceManager\CommonReferenceManager.Binding.cs (8)
101[In, Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, 218[In, Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, 724private static readonly ObjectPool<List<TAssemblySymbol?>> s_candidateReferencedSymbolsPool = new ObjectPool<List<TAssemblySymbol?>>(() => new List<TAssemblySymbol?>(capacity: 1024)); 733List<TAssemblySymbol?> candidateReferencedSymbols = s_candidateReferencedSymbolsPool.Allocate(); 985private static bool IsSuperseded(AssemblyIdentity identity, IReadOnlyDictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName) 992private static int IndexOfCorLibrary(ImmutableArray<AssemblyData> assemblies, IReadOnlyDictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, bool supersedeLowerVersions) 1079protected abstract void GetActualBoundReferencesUsedBy(TAssemblySymbol assemblySymbol, List<TAssemblySymbol?> referencedAssemblySymbols);
ReferenceManager\CommonReferenceManager.Resolution.cs (3)
213[Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, 670Dictionary<string, List<ReferencedAssemblyIdentity>> referencesBySimpleName, 675List<ReferencedAssemblyIdentity>? sameSimpleNameIdentities;
ReferenceManager\CommonReferenceManager.State.cs (1)
465IReadOnlyDictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName,
RuleSet\RuleSetProcessor.cs (4)
81List<XElement> nodeList = ruleSetDocument.Elements(RuleSetNodeName).ToList(); 110var rules = ReadRules(childNode); 149private static List<KeyValuePair<string, ReportDiagnostic>> ReadRules(XElement rulesNode) 154var rules = new List<KeyValuePair<string, ReportDiagnostic>>();
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
Syntax\GreenNode.cs (2)
907List<TFrom> l => CreateList(l, select), 912public static GreenNode? CreateList<TFrom>(List<TFrom> list, Func<TFrom, GreenNode> select)
Syntax\InternalSyntax\ChildSyntaxList.Reversed.cs (1)
35var result = new List<GreenNode>();
Syntax\InternalSyntax\SyntaxListPool.cs (1)
18private readonly List<SyntaxListBuilder> _allocated = new List<SyntaxListBuilder>();
Syntax\SeparatedSyntaxList.cs (2)
424var nodesToInsertWithSeparators = new List<SyntaxNodeOrToken>(); 545var newNodeList = newNodes.ToList();
Syntax\SyntaxDiffer.cs (7)
22private readonly List<ChangeRecord> _changes = new List<ChangeRecord>(); 67var reducedChanges = this.ReduceChanges(_changes); 103var reducedChanges = ReduceChanges(_changes); 106var newSpans = new List<TextSpan>(); 739private List<ChangeRangeWithText> ReduceChanges(List<ChangeRecord> changeRecords) 741var textChanges = new List<ChangeRangeWithText>(changeRecords.Count);
Syntax\SyntaxList`1.cs (3)
267var list = this.ToList(); 333var list = this.ToList(); 344private static SyntaxList<TNode> CreateList(List<TNode> items)
Syntax\SyntaxNodeExtensions_Tracking.cs (2)
202var map = new SegmentedDictionary<SyntaxAnnotation, List<SyntaxNode>>(); 209List<SyntaxNode>? list;
Syntax\SyntaxNodeOrToken.cs (3)
852List<TDirective>? buffer = null; 869private static void GetDirectives<TDirective>(SyntaxNode node, Func<TDirective, bool>? filter, ref List<TDirective>? directives) 878private static void GetDirectivesInTrivia<TDirective>(in SyntaxTrivia trivia, Func<TDirective, bool>? filter, ref List<TDirective>? directives)
Syntax\SyntaxNodeOrTokenList.cs (4)
341var nodes = this.ToList(); 346private static SyntaxNodeOrTokenList CreateList(List<SyntaxNodeOrToken> items) 376var nodes = this.ToList(); 421var nodes = this.ToList();
Syntax\SyntaxTokenList.cs (4)
361var items = tokens.ToList(); 367var list = this.ToList(); 389var list = this.ToList(); 434var list = this.ToList();
Syntax\SyntaxTriviaList.cs (2)
371var list = this.ToList(); 416var list = this.ToList();
Text\ChangedText.cs (1)
225var list = new List<ImmutableArray<TextChangeRange>>();
Text\SourceText.cs (2)
908var ranges = this.GetChangeRanges(oldText).ToList(); 909var textChanges = new List<TextChange>(ranges.Count);
TreeDumper.cs (1)
93var children = node.Children.Where(c => !skip(c)).ToList();
Microsoft.CodeAnalysis.Analyzers (163)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (2)
226out List<Diagnostic>? invalidFileDiagnostics); 234out List<Diagnostic>? invalidReleaseFileEntryDiagnostics);
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_IdRangeAndCategoryValidation.cs (2)
199out List<Diagnostic>? invalidFileDiagnostics) 232out List<Diagnostic>? invalidFileDiagnostics)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ReleaseTracking.cs (3)
170out List<Diagnostic>? invalidFileDiagnostics) 181var diagnostics = new List<Diagnostic>(); 396List<Diagnostic>? invalidReleaseTrackingDiagnostics,
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (4)
28var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>(); 76private readonly List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> _diagnosticsToFix; 79public FixAllAdditionalDocumentChangeAction(FixAllScope fixAllScope, Solution solution, List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> diagnosticsToFix, string? equivalenceKey) 92var updatedUnshippedText = new List<(DocumentId, SourceText)>();
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (3)
129var syntaxArguments = arguments.Skip(extensionMethodShift).Select(x => x.Syntax).ToList(); 200var conditionalAccessMembers = new List<SyntaxNode>(); 218List<SyntaxNode> conditionalAccessMembers)
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (6)
41var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>(); 83private readonly List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> _diagnosticsToFix; 86public FixAllAdditionalDocumentChangeAction(FixAllScope fixAllScope, Solution solution, List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> diagnosticsToFix, string equivalenceKey) 100var fixInfoMap = new Dictionary<TextDocument, List<FixInfo>>(); 114if (!fixInfoMap.TryGetValue(additionalDocument, out var fixInfos)) 129var fixInfos = kvp.Value;
MetaAnalyzers\RegisterActionAnalyzer.cs (3)
199private Dictionary<IParameterSymbol, List<NodeAndSymbol>>? _nestedActionsMap; 483if (!_nestedActionsMap.TryGetValue(contextParameter, out List<NodeAndSymbol> registerInvocations)) 511if (_nestedActionsMap != null && _nestedActionsMap.TryGetValue(contextParameter, out List<NodeAndSymbol> registeredActions))
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (2)
95var result = new Dictionary<(string ContainerName, string SymbolName), List<BanFileEntry>>(); 106if (!result.TryGetValue(parsed.Value, out var existing))
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
40List<SyntaxNode> statements = []; 353List<SyntaxNode> statements = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
64var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 67var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 74List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 75List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 153private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 169List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
164public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 186public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
67List<Exception>? exceptions = null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Microsoft.CodeAnalysis.AnalyzerUtilities (124)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\RoslynAnalyzers\Utilities\FlowAnalysis\Extensions\ListExtensions.cs (1)
24public static ImmutableArray<T> ExtractAll<T, TArg>(this List<T> list, Func<T, TArg, bool> predicate, TArg argument)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysis.CorePointsToAnalysisDataDomain.cs (1)
64List<AnalysisEntity> keysInMap1 = forwardEdgeAnalysisData.CoreAnalysisData.Keys.ToList();
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
184List<TaintedDataAbstractValue>? taintedValues = null;
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysis.CoreAnalysisDataDomain.cs (1)
39var keysInMap1 = forwardEdgeAnalysisData.Keys.ToList();
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysis.cs (4)
66using var _2 = PooledDictionary<int, List<BranchWithInfo>>.GetInstance(out var finallyBlockSuccessorsMap); 190PooledDictionary<int, List<BranchWithInfo>> finallyBlockSuccessorsMap, 626if (finallyBlockSuccessorsMap.TryGetValue(basicBlock.Ordinal, out var finallySuccessors)) 731if (!finallyBlockSuccessorsMap.TryGetValue(finallyRegion.LastBlockOrdinal, out var lastBlockSuccessors))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
50private readonly List<IArgumentOperation> _pendingArgumentsToPostProcess;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
Microsoft.CodeAnalysis.BannedApiAnalyzers (141)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
64var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 67var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 74List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 75List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 153private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 169List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
164public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 186public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
67List<Exception>? exceptions = null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
SymbolIsBannedAnalyzer.cs (5)
76var entries = query.ToList(); 81var errors = new List<Diagnostic>(); 89var groupList = group.ToList(); 112var result = new Dictionary<(string ContainerName, string SymbolName), List<BanFileEntry>>(); 120if (!result.TryGetValue(parsed.Value, out var existing))
Microsoft.CodeAnalysis.CodeStyle (127)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (14)
157using var _1 = PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>>.GetInstance(out var idToPragmasMap); 166using var _5 = PooledDictionary<string, List<SyntaxNode>>.GetInstance(out var idToSuppressMessageAttributesMap); 200if (idToPragmasMap.TryGetValue(id, out var pragmas)) 208if (idToSuppressMessageAttributesMap.TryGetValue(id, out var attributeNodes)) 228PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 268if (!idToPragmasMap.TryGetValue(id, out var pragmasForIdInReverseOrder)) 510PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 512PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 546PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 549if (!idToPragmasMap.TryGetValue(diagnostic.Id, out var pragmasForIdInReverseOrder)) 586PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 591!idToSuppressMessageAttributesMap.TryGetValue(diagnostic.Id, out var suppressMessageAttributesForId)) 736PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 813if (!idToSuppressMessageAttributesMap.TryGetValue(id, out var nodesForId))
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
29(nameof(List<>.AddRange), isLinq: false),
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
Microsoft.CodeAnalysis.CodeStyle.Fixes (44)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (8)
50protected abstract List<TXmlNameAttributeSyntax> GetNameAttributes(TXmlElementSyntax node); 68var paramNodes = GetElementNodes(newDocComment, NodeName); 74var paramsBeforeCurrentParam = parameterNames.TakeWhile(t => t != parameterName).ToList(); 75var paramsAfterCurrentParam = parameterNames.Except(paramsBeforeCurrentParam).ToList(); 105var paramNodeSiblings = nodeAfterNewParamNode.GetRequiredParent().ChildNodes().ToList(); 124private List<TXmlElementSyntax> GetElementNodes(SyntaxNode docComment, string nodeName) 126var nodes = docComment.ChildNodes().OfType<TXmlElementSyntax>() 155var paramNameAttributesForNode = GetNameAttributes(paramNode);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (3)
63var removedNodes = new List<SyntaxNode> { paramNode }; 64var paramNodeSiblings = paramNode.GetRequiredParent().ChildNodes().ToList(); 85private bool ShouldRemovePreviousSibling(List<SyntaxNode> paramNodeSiblings, int paramNodeIndex)
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
105var removalList = new List<int>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (5)
58var constraints = typeParameter.ConstraintTypes.Where(ts => !ts.IsUnexpressibleTypeParameterConstraint()).ToList(); 59var classTypes = constraints.Where(ts => ts.TypeKind == TypeKind.Class).ToList(); 60var nonClassTypes = constraints.Where(ts => ts.TypeKind != TypeKind.Class).ToList(); 81private List<ITypeSymbol> MergeClassTypes(List<ITypeSymbol> classTypes)
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
43var declarators = new List<TSymbolSyntax>(); 56Document document, SyntaxEditor editor, List<TSymbolSyntax> declarators, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (2)
45protected abstract TSwitchSyntax InsertSwitchArms(SyntaxGenerator generator, TSwitchSyntax switchNode, int insertLocation, List<TSwitchArmSyntax> newArms); 172var newArms = new List<TSwitchArmSyntax>();
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
68protected sealed override TSwitchSyntax InsertSwitchArms(SyntaxGenerator generator, TSwitchSyntax switchNode, int insertLocation, List<TSwitchArmSyntax> newArms)
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (1)
47var result = new List<CodeAction>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
64var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 67var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 74List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 75List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 153private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 169List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
164public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 186public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
67List<Exception>? exceptions = null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Microsoft.CodeAnalysis.Collections.Package (6)
Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
Segmented\SegmentedDictionary`2.cs (2)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder.cs (1)
925var 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 (24)
56List<Diagnostic> diagnostics = new List<Diagnostic>(); 58List<string>? scriptArgs = IsScriptCommandLineParser ? new List<string>() : null; 59List<string>? responsePaths = IsScriptCommandLineParser ? new List<string>() : null; 103List<CommandLineResource> managedResources = new List<CommandLineResource>(); 104List<CommandLineSourceFile> sourceFiles = new List<CommandLineSourceFile>(); 105List<CommandLineSourceFile> additionalFiles = new List<CommandLineSourceFile>(); 107List<CommandLineSourceFile> embeddedFiles = new List<CommandLineSourceFile>(); 114List<CommandLineReference> metadataReferences = new List<CommandLineReference>(); 115List<CommandLineAnalyzerReference> analyzers = new List<CommandLineAnalyzerReference>(); 116List<string> libPaths = new List<string>(); 117List<string> sourcePaths = new List<string>(); 118List<string> keyFileSearchPaths = new List<string>(); 119List<string> usings = new List<string>(); 129List<string> features = new List<string>(); 1633private static void ParseAndResolveReferencePaths(string? switchName, ReadOnlyMemory<char>? switchValue, string? baseDirectory, List<string> builder, MessageID origin, List<Diagnostic> diagnostics) 1660private static string? GetWin32Setting(string arg, string? value, List<Diagnostic> diagnostics) 1683List<Diagnostic> diagnostics, 1685List<CommandLineSourceFile> sourceFiles, 1753private ImmutableArray<string> BuildSearchPaths(string? sdkDirectoryOpt, List<string> libPaths, List<string>? responsePathsOpt) 1902private static void ParseAnalyzers(string arg, ReadOnlyMemory<char>? valueMemory, List<CommandLineAnalyzerReference> analyzerReferences, List<Diagnostic> diagnostics) 1929private static void ParseAssemblyReferences(string arg, ReadOnlyMemory<char>? valueMemory, IList<Diagnostic> diagnostics, bool embedInteropTypes, List<CommandLineReference> commandLineReferences)
CommandLine\CSharpCompiler.cs (4)
98var diagnostics = new List<DiagnosticInfo>(); 151var resolvedReferences = ResolveMetadataReferences(diagnostics, touchedFilesLogger, out referenceDirectiveResolver); 181var fileDiagnostics = new List<DiagnosticInfo>(); 334List<DiagnosticInfo> diagnostics,
FlowAnalysis\AlwaysAssignedWalker.cs (3)
39var result = walker.Analyze(ref badRegion); 48private List<Symbol> Analyze(ref bool badRegion) 51List<Symbol> result = new List<Symbol>();
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (7)
291var proxiedLabels = frame.proxiedLabels; 340var proxiedLabels = frame.proxiedLabels; 540var handlersList = currentAwaitCatchFrame.handlers; 1001public List<LabelSymbol> proxiedLabels; 1039var proxiedLabels = this.proxiedLabels; 1103public readonly List<BoundBlock> handlers; 1114private readonly List<LocalSymbol> _orderedHoistedLocals;
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (4)
64private Dictionary<LabelSymbol, List<StateMachineState>> _dispatches = new Dictionary<LabelSymbol, List<StateMachineState>>(); 234_dispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>(); 900oldDispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>();
Parser\AbstractLexer.cs (1)
19private List<SyntaxDiagnosticInfo>? _errors;
Symbols\ReferenceManager.cs (5)
124protected override void GetActualBoundReferencesUsedBy(AssemblySymbol assemblySymbol, List<AssemblySymbol?> referencedAssemblySymbols) 345var assemblyReferencesBySimpleName = PooledDictionary<string, List<ReferencedAssemblyIdentity>>.GetInstance(); 421var newSymbols = new List<int>(); 537List<int> newSymbols, 618private static void UpdateSymbolCacheNoLock(List<int> newSymbols, ImmutableArray<AssemblyData> assemblies, BoundInputAssembly[] bindingResult)
Symbols\Source\SourceNamedTypeSymbol.cs (3)
151var parameterBuilders1 = new List<List<TypeParameterBuilder>>(); 184var parameterBuilder = new List<TypeParameterBuilder>();
Syntax\DirectiveTriviaSyntax.cs (3)
131public List<DirectiveTriviaSyntax> GetRelatedDirectives() 133var list = new List<DirectiveTriviaSyntax>(); 138private void GetRelatedDirectives(List<DirectiveTriviaSyntax> list)
Syntax\InternalSyntax\CSharpSyntaxNode.cs (2)
181var list = new List<DirectiveTriviaSyntax>(32); 189private static void GetDirectives(GreenNode node, List<DirectiveTriviaSyntax> directives)
Microsoft.CodeAnalysis.CSharp.CodeStyle (47)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
46nameof(System.Collections.Generic.List<>),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
117var partsList = new List<string>(); 128public static bool TryGetNameParts(this ExpressionSyntax expression, List<string> parts) 158private static bool AddSimpleName(SimpleNameSyntax simpleName, List<string> parts)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (3)
16private readonly Dictionary<string, List<SyntaxToken>> _map = []; 23public static Dictionary<string, List<SyntaxToken>> GetAllDeclarations(SyntaxNode syntax) 35if (!_map.TryGetValue(identifier, out var list))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (3)
599var result = new List<IList<TSyntaxNode>>(); 601var currentGroup = new List<TSyntaxNode>(); 898var finalTrivia = from.GetLeadingTrivia().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\DefaultOperationProvider.cs (3)
27public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 35public override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (2)
15public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 89private static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxNode node)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (9)
18List<IndentBlockOperation> list, 33List<IndentBlockOperation> list, 58List<IndentBlockOperation> list, 72List<IndentBlockOperation> list, 86List<IndentBlockOperation> list, 101List<IndentBlockOperation> list, 111List<IndentBlockOperation> list, 136protected static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxToken anchorToken, SyntaxToken endToken) 146protected static void AddAlignIndentationOfTokensToBaseTokenOperation(List<AlignTokensOperation> list, SyntaxNode containingNode, SyntaxToken baseNode, IEnumerable<SyntaxToken> tokens, AlignTokensOption option = AlignTokensOption.AlignIndentationOfTokensToBaseToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (11)
46public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private static void AddTypeParameterConstraintClauseOperation(List<IndentBlockOperation> list, SyntaxNode node) 74private void AddSwitchIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 134private void AddLabelIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 150private static void AddAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode node) 205private static void SetAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode baseNode, SyntaxNode body) 216private void AddBlockIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 253private static void AddBracketIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 288private static void AddAlignmentBlockOperationRelativeToFirstTokenOnBaseTokenLine(List<IndentBlockOperation> list, (SyntaxToken openBrace, SyntaxToken closeBrace) bracePair) 294private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 356private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, StatementSyntax statement)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentUserSettingsFormattingRule.cs (1)
37public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (3)
52private static void AddIndentBlockOperationsForFromClause(List<IndentBlockOperation> list, FromClauseSyntax fromClause) 82public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 110public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1001var constructors = new List<SyntaxNode>(); 1006private static void AppendConstructors(SyntaxList<MemberDeclarationSyntax> members, List<SyntaxNode> constructors, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (2)
77var result = new List<SimpleNameSyntax>(); 82private static void DecomposeNameParts(NameSyntax name, List<SimpleNameSyntax> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
197List<string> paramNames;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (2)
117var initialList = usingList.Cast<SyntaxNode>() 131var finalList = initialList.OrderBy(comparer).ToList();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (32)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
104var finalLeadingTrivia = node.GetLeadingTrivia().ToList();
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
222var switchArms = node.Sections
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
34protected override List<XmlNameAttributeSyntax> GetNameAttributes(XmlElementSyntax node)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
289var seenUsings = existingUsings.ToList();
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
39protected override SwitchExpressionSyntax InsertSwitchArms(SyntaxGenerator generator, SwitchExpressionSyntax switchNode, int insertLocation, List<SwitchExpressionArmSyntax> newArms)
src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\MultiLineConditionalExpressionFormattingRule.cs (1)
49List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (3)
58var nodesFromDiagnostics = new List<( 61List<ExpressionSyntax> references)>(diagnostics.Length); 70var references = new List<ExpressionSyntax>(diagnostic.AdditionalLocations.Count - 2);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
27var attributeNodes = 39var attributeDeclarations =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
25var 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)
320var types = new List<BaseTypeSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
141var usingDirectives =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
22var newUsings = new List<UsingDirectiveSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (3)
111var usings = AddUsingDirectives(root, usingDirectives); 140private static List<UsingDirectiveSyntax> AddUsingDirectives( 144var usings = new List<UsingDirectiveSyntax>();
src\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)
24var indices = new List<bool>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\UsingDirectiveSyntaxExtensions.cs (1)
15this List<UsingDirectiveSyntax> usingDirectives,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (3)
116public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 172private static void ReplaceCaseIndentationRules(List<IndentBlockOperation> list, SyntaxNode node) 191private static void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
599var invocationTypes = this.InferTypes(parentInvocationExpressionToTypeInfer).Select(t => t.InferredType).ToList(); 600var instantiatedMethods = methods.Select(m => Instantiate(m, invocationTypes)).ToList(); 605var filteredMethods = instantiatedMethods.Where(m =>
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (19)
CommandLineTests.cs (6)
918var diags = new List<Diagnostic>(); 6487var diagnostics = new List<Diagnostic>(); 9498var args = new List<string>() { "/reportanalyzer", "/t:library", "/a:" + typeof(DoNothingGenerator).Assembly.Location, srcFile.Path }; 12421var list = new List<Tuple<string, DebugInformationFormat>>() 12446var list = new List<Tuple<string, OutputKind>>() 12466var list = new List<Tuple<string, Platform>>()
TouchedFileLoggingTests.cs (13)
46List<string> expectedReads; 47List<string> expectedWrites; 91List<string> expectedReads; 92List<string> expectedWrites; 124List<string> expectedReads; 125List<string> expectedWrites; 166List<string> expectedReads; 167List<string> expectedWrites; 209out List<string> expectedReads, 210out List<string> expectedWrites) 220var writes = new List<string>(); 227List<string> expectedReads, 228List<string> expectedWrites,
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (230)
Classification\SyntacticTaggerTests.cs (2)
55var callstacks = new List<string>(); 109var callstacks = new List<string>();
CodeActions\ApplyChangesOperationTests.cs (1)
233var refactorings = new List<CodeAction>();
CodeActions\InlineMethod\CSharpInlineMethodTests.cs (9)
31List<DiagnosticResult> diagnosticResults = null, 64List<DiagnosticResult> diagnosticResults = null, 91List<DiagnosticResult> diagnosticResultsWhenKeepInlinedMethod = null, 92List<DiagnosticResult> diagnosticResultsWhenRemoveInlinedMethod = null) 125List<DiagnosticResult> diagnosticResultsWhenKeepInlinedMethod = null, 126List<DiagnosticResult> diagnosticResultsWhenRemoveInlinedMethod = null) 1920var diagnostic = new List<DiagnosticResult>() 3562var diagnostic = new List<DiagnosticResult>() 3630var diagnostic = new List<DiagnosticResult>()
CodeActions\PreviewExceptionTests.cs (2)
92var codeActions = new List<CodeAction>(); 102EditorTestWorkspace workspace, CodeRefactoringProvider provider, List<CodeAction> codeActions,
CodeActions\PreviewTests.cs (1)
96var refactorings = new List<CodeAction>();
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (5)
59protected async Task TestMoveFileToMatchNamespace(string initialMarkup, List<string[]> expectedFolders = null) 73var allResults = await TestOperationAsync(testOptions, workspace, expectedText); 105async Task<List<Tuple<Solution, Solution>>> TestOperationAsync( 110var results = new List<Tuple<Solution, Solution>>(); 146var references = dependentProject.ProjectReferences.ToList();
CodeActions\SyncNamespace\SyncNamespaceTests_MoveFile.cs (10)
25var expectedFolders = new List<string[]>(); 51var expectedFolders = new List<string[]>(); 78var expectedFolders = new List<string[]> 109var expectedFolders = new List<string[]> 148var expectedFolders = new List<string[]> 182var expectedFolders = new List<string[]> 226var expectedFolders = new List<string[]> 274var expectedFolders = new List<string[]> 312var expectedFolders = new List<string[]> 349var expectedFolders = new List<string[]>
Completion\CompletionProviders\AbstractCSharpCompletionProviderTests.cs (6)
59List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null, 72List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options, bool skipSpeculation = false) 85bool? isComplexTextEdit = null, List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null, 110string displayTextPrefix, string inlineDescription, bool? isComplexTextEdit, List<CompletionFilter> matchingFilters, 130List<CompletionFilter> matchingFilters, CompletionOptions options, bool skipSpeculation = false) 143List<CompletionFilter> matchingFilters, CompletionOptions options, bool skipSpeculation = false)
Completion\CompletionProviders\CrefCompletionProviderTests.cs (1)
32List<CompletionFilter>? matchingFilters = null, CompletionItemFlags? flags = null,
Completion\CompletionProviders\ExtensionMethodImportCompletionProviderTests.cs (7)
42private static IEnumerable<object[]> CombineWithReferenceTypeData(IEnumerable<List<object>> data) 46foreach (var d in data) 60private static IEnumerable<List<object>> BuiltInTypes 64var predefinedTypes = new List<string>() { "string", "String", "System.String" }; 98[StringSyntax(PredefinedEmbeddedLanguageNames.CSharpTest)] string markup, string expectedItem, string inlineDescription, Glyph? glyph = null, string displayTextSuffix = null, string expectedDescriptionOrNull = null, List<CompletionFilter> expectedFilters = null) 882var predefinedTypes = new List<(string vbType, string csType)> 2035var expectedFilters = new List<CompletionFilter>()
Completion\CompletionProviders\LoadDirectiveCompletionProviderTests.cs (1)
36List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null, CompletionOptions options = null, bool skipSpeculation = false)
Completion\CompletionProviders\ReferenceDirectiveCompletionProviderTests.cs (1)
39List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null, CompletionOptions options = null, bool skipSpeculation = false)
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (1)
1282var triggerInfos = new List<CompletionTrigger>
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
35List<CompletionFilter> matchingFilters, CompletionItemFlags? flags = null, CompletionOptions options = null, bool skipSpeculation = false)
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (1)
1483private static void AssertRelativeOrder(List<string> expectedTypesInRelativeOrder, ImmutableArray<CompletionItem> allCompletionItems)
Completion\CompletionProviders\XmlDocumentationCommentCompletionProviderTests.cs (1)
47List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null, CompletionOptions options = null, bool skipSpeculation = false)
Completion\CompletionServiceTests.cs (1)
179var completionListManuallySorted = completionList.ItemsList.ToList();
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (3)
146var exceptions = new List<Exception>(); 754var vsixAnalyzerReferences = new List<DiagnosticAnalyzer>(vsixAnalyzers.CastArray<DiagnosticAnalyzer>()); 764var nugetAnalyzerReferences = new List<DiagnosticAnalyzer>();
Intents\IntentTestsBase.cs (1)
66var actualDocumentTexts = new List<string>();
Interactive\NavigateTo\InteractiveNavigateToTests.cs (9)
145var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 383var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 411var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem1 }; 502var expecteditems = new List<NavigateToItem> 510var items = (await _aggregator.GetItemsAsync("C")).ToList(); 571var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2, expecteditem3 }; 587var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2 }; 601var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2 }; 633var expecteditems = new List<NavigateToItem> { expecteditem1, expecteditem2 };
NavigateTo\NavigateToTests.cs (1)
860var items = (await _aggregator.GetItemsAsync("C")).ToList();
SignatureHelp\AttributeSignatureHelpProviderTests.cs (34)
29var expectedOrderedItems = new List<SignatureHelpTestItem> 49var expectedOrderedItems = new List<SignatureHelpTestItem> 71var expectedOrderedItems = new List<SignatureHelpTestItem> 92var expectedOrderedItems = new List<SignatureHelpTestItem> 113var expectedOrderedItems = new List<SignatureHelpTestItem> 134var expectedOrderedItems = new List<SignatureHelpTestItem> 160var expectedOrderedItems = new List<SignatureHelpTestItem> 181var expectedOrderedItems = new List<SignatureHelpTestItem> 207var expectedOrderedItems = new List<SignatureHelpTestItem> 298var expectedOrderedItems = new List<SignatureHelpTestItem> 319var expectedOrderedItems = new List<SignatureHelpTestItem> 340var expectedOrderedItems = new List<SignatureHelpTestItem> 361var expectedOrderedItems = new List<SignatureHelpTestItem> 387var expectedOrderedItems = new List<SignatureHelpTestItem> 409var expectedOrderedItems = new List<SignatureHelpTestItem> 430var expectedOrderedItems = new List<SignatureHelpTestItem> 451var expectedOrderedItems = new List<SignatureHelpTestItem> 472var expectedOrderedItems = new List<SignatureHelpTestItem> 493var expectedOrderedItems = new List<SignatureHelpTestItem> 515var expectedOrderedItems = new List<SignatureHelpTestItem> 549var expectedOrderedItems = new List<SignatureHelpTestItem> 576var expectedOrderedItems = new List<SignatureHelpTestItem> 603var expectedOrderedItems = new List<SignatureHelpTestItem> 630var expectedOrderedItems = new List<SignatureHelpTestItem> 655var expectedOrderedItems = new List<SignatureHelpTestItem> 683var expectedOrderedItems = new List<SignatureHelpTestItem> 706var expectedOrderedItems = new List<SignatureHelpTestItem> 729var expectedOrderedItems = new List<SignatureHelpTestItem>(); 777var expectedOrderedItems = new List<SignatureHelpTestItem> 810var expectedOrderedItems = new List<SignatureHelpTestItem> 843var expectedOrderedItems = new List<SignatureHelpTestItem> 890var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 895var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 1000var expectedOrderedItems = new List<SignatureHelpTestItem>();
SignatureHelp\ConstructorInitializerSignatureHelpProviderTests.cs (29)
29var expectedOrderedItems = new List<SignatureHelpTestItem> 51var expectedOrderedItems = new List<SignatureHelpTestItem> 74var expectedOrderedItems = new List<SignatureHelpTestItem> 96var expectedOrderedItems = new List<SignatureHelpTestItem> 121var expectedOrderedItems = new List<SignatureHelpTestItem> 147var expectedOrderedItems = new List<SignatureHelpTestItem> 172var expectedOrderedItems = new List<SignatureHelpTestItem> 189var expectedOrderedItems = new List<SignatureHelpTestItem> 206var expectedOrderedItems = new List<SignatureHelpTestItem> 223var expectedOrderedItems = new List<SignatureHelpTestItem> 240var expectedOrderedItems = new List<SignatureHelpTestItem> 261var expectedOrderedItems = new List<SignatureHelpTestItem> 300var expectedOrderedItems = new List<SignatureHelpTestItem> 317var expectedOrderedItems = new List<SignatureHelpTestItem> 334var expectedOrderedItems = new List<SignatureHelpTestItem> 351var expectedOrderedItems = new List<SignatureHelpTestItem> 368var expectedOrderedItems = new List<SignatureHelpTestItem>(); 408var expectedOrderedItems = new List<SignatureHelpTestItem> 439var expectedOrderedItems = new List<SignatureHelpTestItem> 470var expectedOrderedItems = new List<SignatureHelpTestItem> 514var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 519var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 630var expectedOrderedItems = new List<SignatureHelpTestItem>(); 648var expectedOrderedItems = new List<SignatureHelpTestItem> 666var expectedOrderedItems = new List<SignatureHelpTestItem> 683var expectedOrderedItems = new List<SignatureHelpTestItem> 701var expectedOrderedItems = new List<SignatureHelpTestItem> 726var expectedOrderedItems = new List<SignatureHelpTestItem> 760var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\ElementAccessExpressionSignatureHelpProviderTests.cs (24)
29var expectedOrderedItems = new List<SignatureHelpTestItem> 58var expectedOrderedItems = new List<SignatureHelpTestItem> 81var expectedOrderedItems = new List<SignatureHelpTestItem> 104var expectedOrderedItems = new List<SignatureHelpTestItem> 133var expectedOrderedItems = new List<SignatureHelpTestItem> 166var expectedOrderedItems = new List<SignatureHelpTestItem> 195var expectedOrderedItems = new List<SignatureHelpTestItem> 229var expectedOrderedItems = new List<SignatureHelpTestItem> 258var expectedOrderedItems = new List<SignatureHelpTestItem> 317var expectedOrderedItems = new List<SignatureHelpTestItem> 346var expectedOrderedItems = new List<SignatureHelpTestItem> 375var expectedOrderedItems = new List<SignatureHelpTestItem>(); 434var expectedOrderedItems = new List<SignatureHelpTestItem> 471var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 508var expectedOrderedItems = new List<SignatureHelpTestItem> 561var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 566var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 604var expectedOrderedItems = new List<SignatureHelpTestItem> 641var expectedOrderedItems = new List<SignatureHelpTestItem> 679var expectedOrderedItems = new List<SignatureHelpTestItem> 740var metadataItems = new List<SignatureHelpTestItem> 745var projectReferenceItems = new List<SignatureHelpTestItem> 857var expectedOrderedItems = new List<SignatureHelpTestItem> 886var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\GenericNamePartiallyWrittenSignatureHelpProviderTests.cs (14)
28var expectedOrderedItems = new List<SignatureHelpTestItem> 49var expectedOrderedItems = new List<SignatureHelpTestItem> 72var expectedOrderedItems = new List<SignatureHelpTestItem> 95var expectedOrderedItems = new List<SignatureHelpTestItem> 116var expectedOrderedItems = new List<SignatureHelpTestItem> 160var expectedOrderedItems = new List<SignatureHelpTestItem> 195var expectedOrderedItems = new List<SignatureHelpTestItem> 230var expectedOrderedItems = new List<SignatureHelpTestItem> 277var expectedOrderedItemsMetadataReference = new List<SignatureHelpTestItem> 282var expectedOrderedItemsSameSolution = new List<SignatureHelpTestItem> 299var expectedOrderedItems = new List<SignatureHelpTestItem> 331var expectedOrderedItems = new List<SignatureHelpTestItem> 357var expectedOrderedItems = new List<SignatureHelpTestItem> 378var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (30)
32var expectedOrderedItems = new List<SignatureHelpTestItem> 53var expectedOrderedItems = new List<SignatureHelpTestItem> 74var expectedOrderedItems = new List<SignatureHelpTestItem> 95var expectedOrderedItems = new List<SignatureHelpTestItem> 116var expectedOrderedItems = new List<SignatureHelpTestItem> 145var expectedOrderedItems = new List<SignatureHelpTestItem> 175var expectedOrderedItems = new List<SignatureHelpTestItem> 197var expectedOrderedItems = new List<SignatureHelpTestItem> 219var expectedOrderedItems = new List<SignatureHelpTestItem> 241var expectedOrderedItems = new List<SignatureHelpTestItem> 265var expectedOrderedItems = new List<SignatureHelpTestItem> 289var expectedOrderedItems = new List<SignatureHelpTestItem> 313var expectedOrderedItems = new List<SignatureHelpTestItem> 337var expectedOrderedItems = new List<SignatureHelpTestItem> 359var expectedOrderedItems = new List<SignatureHelpTestItem> 392var expectedOrderedItems = new List<SignatureHelpTestItem> 425var expectedOrderedItems = new List<SignatureHelpTestItem> 451var expectedOrderedItems = new List<SignatureHelpTestItem> 472var expectedOrderedItems = new List<SignatureHelpTestItem> 501var expectedOrderedItems = new List<SignatureHelpTestItem> 522var expectedOrderedItems = new List<SignatureHelpTestItem> 548var expectedOrderedItems = new List<SignatureHelpTestItem> 574var expectedOrderedItems = new List<SignatureHelpTestItem> 607var expectedOrderedItems = new List<SignatureHelpTestItem> 639var expectedOrderedItems = new List<SignatureHelpTestItem> 808var expectedOrderedItems = new List<SignatureHelpTestItem> 841var expectedOrderedItems = new List<SignatureHelpTestItem> 874var expectedOrderedItems = new List<SignatureHelpTestItem> 900var expectedOrderedItems = new List<SignatureHelpTestItem>(); 917var expectedOrderedItems = new List<SignatureHelpTestItem>
SignatureHelp\InvocationExpressionSignatureHelpProviderTests.cs (8)
838List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)]; 903List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void Goo.Bar()", string.Empty, null, currentParameterIndex: 0)]; 1028List<SignatureHelpTestItem> expectedOrderedItems = 1063List<SignatureHelpTestItem> expectedOrderedItems = [new SignatureHelpTestItem("void C.Goo()", string.Empty, null, currentParameterIndex: 0)]; 1102var expectedOrderedItems = new List<SignatureHelpTestItem> 1167List<SignatureHelpTestItem> expectedOrderedItems = 1300List<SignatureHelpTestItem> expectedOrderedItems = 2254var expectedItems = new List<SignatureHelpTestItem>();
SignatureHelp\ObjectCreationExpressionSignatureHelpProviderTests.cs (2)
378var expectedOrderedItems = new List<SignatureHelpTestItem> 446var expectedOrderedItems = new List<SignatureHelpTestItem>
SymbolKey\SymbolKeyCompilationsTests.cs (4)
315var symbols1 = GetSourceSymbols(comp1, includeLocal: true).ToList(); 316var symbols2 = GetSourceSymbols(comp1, includeLocal: true).ToList(); 325var members1 = symbols1.OfType<INamespaceOrTypeSymbol>().SelectMany(n => n.GetMembers()).ToList(); 326var members2 = symbols2.OfType<INamespaceOrTypeSymbol>().SelectMany(n => n.GetMembers()).ToList();
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (5)
66var originalSymbols = GetSourceSymbols(comp1, SymbolCategory.DeclaredType).OrderBy(s => s.Name).ToList(); 152var originalSymbols = GetSourceSymbols(comp1, SymbolCategory.NonTypeMember | SymbolCategory.Parameter).ToList(); 256var list = GetBlockSyntaxList(mem40); 340var originalSymbols = originals.Where(s => !s.IsAccessor() && s.Kind != SymbolKind.Parameter).OrderBy(s => s.Name).ToList(); 424var originalSymbols = originals.Where(s => !s.IsAccessor() && s.Kind != SymbolKind.Parameter).OrderBy(s => s.Name).ToList();
SymbolKey\SymbolKeyTestBase.cs (14)
43var newlist = newSymbols.OrderBy(s => s.Name).ToList(); 44var origlist = originalSymbols.OrderBy(s => s.Name).ToList(); 124internal static List<BlockSyntax> GetBlockSyntaxList(IMethodSymbol symbol) 126var list = new List<BlockSyntax>(); 154var kinds = new List<SymbolKind>(); 200var list = new List<ISymbol>(); 218private static void GetSourceMemberSymbols(INamespaceOrTypeSymbol symbol, List<ISymbol> list, LocalSymbolDumper localDumper) 248private static void GetSourceAliasSymbols(CSharpCompilation comp, List<ISymbol> list) 277public void GetLocalSymbols(FieldSymbol symbol, List<ISymbol> list) 294public void GetLocalSymbols(MethodSymbol symbol, List<ISymbol> list) 336private static void GetLocalAndType(DataFlowAnalysis df, List<ISymbol> list) 348private static void GetLabelSymbols(BlockSyntax body, SemanticModel model, List<ISymbol> list) 370private static void GetAnonymousTypeOrFuncSymbols(BlockSyntax body, SemanticModel model, List<ISymbol> list) 387private static void GetAnonymousExprSymbols(ExpressionSyntax expr, SemanticModel model, List<ISymbol> list)
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1424var eventArgs = new List<WorkspaceChangeEventArgs>();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (18)
CodeGen\CodeGenCapturing.cs (10)
27public readonly List<IList<string>> VariablesByScope = new List<IList<string>>(); 74var varNames = new List<string>(); 77var variablesByScope = ctx.VariablesByScope; 206void VerifyContext(IList<IEnumerable<string>> expectedCtx, List<IList<string>> actualCtx) 278public List<IList<string>> LocalFuncs { get; private set; } 307var methods = new List<MethodInfo>(); 325copy.LocalFuncs.AddRange(Enumerable.Repeat<List<string>>(null, depth - copy.LocalFuncs.Count)); 367var localFuncs = methodInfo.LocalFuncs; 376var captureVars = methodInfo.CaptureContext.VariablesByScope; 430var methods = MakeAllMethods().ToList();
CodeGen\CodeGenFieldInitTests.cs (1)
650var trees = new List<SyntaxTree>();
CodeGen\CodeGenFunctionPointersTests.cs (1)
10595List<DiagnosticDescription> diagnostics = new()
CodeGen\CodeGenLocalFunctionTests.cs (1)
5897var localFunctions = syntaxTree.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().ToList();
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 };
CodeGen\IndexAndRangeTests.cs (1)
28private static (SemanticModel model, List<ElementAccessExpressionSyntax> accesses) GetModelAndAccesses(CSharpCompilation comp)
Emit\EmitMetadataTests.cs (1)
852var memberNames = members.Select(member => member.Name).Distinct().ToList();
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>(); 150var updatedMethods = new List<MethodDefinitionHandle>();
Emit\EditAndContinue\EditAndContinueTests.cs (7)
3628var readers = new List<MetadataReader> { reader0, reader1 }; 3816var readers = new List<MetadataReader>() { reader0, reader1 }; 4151var readers = new List<MetadataReader> { reader0, reader1 }; 6003var readers = new List<MetadataReader> { reader0, reader1 }; 7765var readers = new List<MetadataReader> { reader0, reader1 }; 10913var readers = new List<MetadataReader> { reader0, reader1 }; 13010var readers = new List<MetadataReader> { reader0, reader1 };
Emit\EditAndContinue\SymbolMatcherTests.cs (1)
81var builder = new List<Symbol>();
PDB\TypeDefinitionDocumentTests.cs (1)
492var result = new List<string>();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (18)
Attributes\AttributeTests_Conditional.cs (1)
139var attributesArrayBuilder = new List<ImmutableArray<CSharpAttributeData>>();
Attributes\AttributeTests_Embedded.cs (2)
388List<DiagnosticDescription> diagnostics = [ 640List<DiagnosticDescription> diagnostics = [];
Attributes\AttributeTests_Tuples.cs (2)
258var srcMembers = srcType.GetMembers() 262var peMembers = peType.GetMembers()
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
1542var attrInfos = metadata.Module.FindTargetAttributes(token, expectedModuleAttr);
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>();
Diagnostics\GetDiagnosticsTests.cs (1)
1784foreach (var actualBlockSymbolCallbacks in actualBlockSymbolCallbacksArray)
FlowAnalysis\IterationJumpYieldStatementTests.cs (2)
1229var ctrlFlowAnalysis = analysis.Item1.ToList(); 1319var ctrlFlowAnalysis = analysis.Item1.ToList();
Semantics\ExtensionTests.cs (1)
15392private readonly List<object[]> _data = [
Semantics\OutVarTests.cs (1)
32739var names = model.LookupNames(decl.SpanStart);
Semantics\PatternMatchingTestBase.cs (1)
250var names = model.LookupNames(designation.SpanStart);
Microsoft.CodeAnalysis.CSharp.Features (124)
BraceCompletion\BracketBraceCompletionService.cs (1)
59public override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
BraceCompletion\CurlyBraceCompletionService.cs (1)
244public override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
ChangeSignature\ChangeSignatureFormattingRule.cs (2)
28public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 38private static void AddChangeSignatureIndentOperation(List<IndentBlockOperation> list, SyntaxNode node)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (2)
258var typeParameters = new List<ITypeParameterSymbol>(); 265var unusedTypeParameters = typeParameters.ToList();
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
128var directives = new List<NullableDirectiveTriviaSyntax>();
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
355var annotatedNodesOrTokens = node.GetAnnotatedNodesAndTokens(DefinitionAnnotation).ToList();
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (2)
141var items = new List<CompletionItem>(); 195private void AddXmlElementItems(List<CompletionItem> items, XmlElementStartTagSyntax startTag)
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (1)
195var droppedTrivia = new List<SyntaxTrivia>();
ConvertLinq\ConvertForEachToLinqQuery\ToToListConverter.cs (1)
52SyntaxFactory.IdentifierName(nameof(List<>.AddRange))),
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (4)
63private readonly List<string> _introducedLocalNames = []; 371=> Equals(typeSymbol.OriginalDefinition, _semanticModel.Compilation.GetTypeByMetadataName(typeof(List<>).FullName)); 396var list = new List<StatementSyntax>(); 810var statements = new List<StatementSyntax>();
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
26private readonly List<string> _expressions = []; 49var result = _expressions.Distinct().Where(e => e.Length > 0).ToList();
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (3)
88protected override List<string> GetDocumentationCommentStubLines(MemberDeclarationSyntax member, string existingCommentText) 90var list = new List<string> 296var result = new List<SyntaxToken>();
DocumentationComments\DocCommentConverter.cs (1)
50var newLeadingTrivia = new List<SyntaxTrivia>();
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
890List<SyntaxToken>? oldTokens = null; 891List<SyntaxToken>? newTokens = null; 2586protected override List<SyntaxNode> GetExceptionHandlingAncestors(SyntaxNode node, SyntaxNode root, bool isNonLeaf) 2588var result = new List<SyntaxNode>();
EditAndContinue\SyntaxComparer.cs (12)
1165List<SyntaxToken>? leftLocals = null; 1166List<SyntaxToken>? rightLocals = null; 1245List<SyntaxToken>? leftLocals = null; 1246List<SyntaxToken>? rightLocals = null; 1270List<SyntaxToken>? leftLocals = null; 1271List<SyntaxToken>? rightLocals = null; 1288private static void GetLocalNames(BlockSyntax block, ref List<SyntaxToken>? result) 1301private static void GetLocalNames(VariableDeclarationSyntax localDeclaration, ref List<SyntaxToken>? result) 1309internal static void GetLocalNames(CommonForEachStatementSyntax commonForEach, ref List<SyntaxToken>? result) 1327private static void GetLocalNames(ExpressionSyntax expression, ref List<SyntaxToken>? result) 1352private static void GetLocalNames(VariableDesignationSyntax designation, ref List<SyntaxToken>? result) 1377private static void GetLocalNames(SyntaxToken syntaxToken, [NotNull] ref List<SyntaxToken>? result)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (4)
59var list = new List<VariableDeclaratorSyntax>(); 60var triviaList = new List<SyntaxTrivia>(); 294var newList = new List<TSyntax>(list); 322var newMembers = new List<MemberDeclarationSyntax>(members);
ExtractMethod\CSharpMethodExtractor.FormattingProvider.cs (1)
60public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (4)
96var map = new Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>>(); 118Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>> map) 129Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>> map) 136var variables = new List<VariableDeclaratorSyntax>();
Formatting\CSharpNamespaceDeclarationNewDocumentFormattingProvider.cs (1)
37var namespaces = GetNamespacesToReplace(document, root, formattingOptions.NamespaceDeclarations).ToList();
GenerateType\CSharpGenerateTypeService.cs (7)
550var containerList = new List<string>(containers); 570private BaseNamespaceDeclarationSyntax FindNamespaceInMemberDeclarations(SyntaxList<MemberDeclarationSyntax> members, int indexDone, List<string> containers) 585private BaseNamespaceDeclarationSyntax FindNamespaceInNamespace(BaseNamespaceDeclarationSyntax namespaceDecl, int indexDone, List<string> containers) 590var namespaceContainers = new List<string>(); 606private static bool IdentifierMatches(int indexDone, List<string> namespaceContainers, List<string> containers) 619private static void GetNamespaceContainers(NameSyntax name, List<string> namespaceContainers)
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (4)
36protected override void AddHighlightsForNode(SyntaxNode node, List<TextSpan> highlights, CancellationToken cancellationToken) 70private static bool HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans) 84private static bool TryAddAsyncModifier(SyntaxTokenList modifiers, List<TextSpan> spans) 97private static bool TryAddAsyncOrAwaitKeyword(SyntaxToken mod, List<TextSpan> spans)
Highlighting\KeywordHighlighters\CheckedExpressionHighlighter.cs (1)
27protected override void AddHighlights(CheckedExpressionSyntax checkedExpressionSyntax, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\CheckedStatementHighlighter.cs (1)
27protected override void AddHighlights(CheckedStatementSyntax checkedStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\ConditionalPreprocessorHighlighter.cs (1)
23DirectiveTriviaSyntax directive, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\IfStatementHighlighter.cs (2)
32IfStatementSyntax ifStatement, List<TextSpan> highlights, CancellationToken cancellationToken) 41IfStatementSyntax ifStatement, List<TextSpan> highlights)
Highlighting\KeywordHighlighters\LockStatementHighlighter.cs (1)
27protected override void AddHighlights(LockStatementSyntax lockStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\LoopHighlighter.cs (6)
39SyntaxNode node, List<TextSpan> spans, CancellationToken cancellationToken) 60private static void HighlightDoStatement(DoStatementSyntax statement, List<TextSpan> spans) 67private static void HighlightForStatement(ForStatementSyntax statement, List<TextSpan> spans) 70private static void HighlightForEachStatement(CommonForEachStatementSyntax statement, List<TextSpan> spans) 73private static void HighlightWhileStatement(WhileStatementSyntax statement, List<TextSpan> spans) 79private static void HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans,
Highlighting\KeywordHighlighters\RegionHighlighter.cs (1)
29DirectiveTriviaSyntax directive, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\ReturnStatementHighlighter.cs (2)
31ReturnStatementSyntax returnStatement, List<TextSpan> spans, CancellationToken cancellationToken) 48private static void HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans)
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (2)
37SwitchStatementSyntax switchStatement, List<TextSpan> spans, CancellationToken cancellationToken) 57private static void HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans,
Highlighting\KeywordHighlighters\TryStatementHighlighter.cs (1)
28TryStatementSyntax tryStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\UnsafeStatementHighlighter.cs (1)
27protected override void AddHighlights(UnsafeStatementSyntax unsafeStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\UsingStatementHighlighter.cs (1)
27protected override void AddHighlights(UsingStatementSyntax usingStatement, List<TextSpan> highlights, CancellationToken cancellationToken)
Highlighting\KeywordHighlighters\YieldStatementHighlighter.cs (2)
31YieldStatementSyntax yieldStatement, List<TextSpan> spans, CancellationToken cancellationToken) 48private static void HighlightRelatedKeywords(SyntaxNode node, List<TextSpan> spans)
IntroduceVariable\CSharpIntroduceVariableService_IntroduceQueryLocal.cs (2)
65var finalClauses = newClauses.Take(firstClauseAffectedIndex) 103var newClauses = oldClauses.Take(oldClauseIndex)
MetadataAsSource\FormattingRule.cs (1)
60public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
Organizing\Organizers\MemberDeclarationsOrganizer.cs (3)
30var sortedGroups = groups.Select(OrganizeMemberGroup).Flatten().ToList(); 114var initialList = new List<MemberDeclarationSyntax>(members); 116var finalList = initialList.OrderBy(new Comparer()).ToList();
Organizing\Organizers\ModifiersOrganizer.cs (2)
21var initialList = new List<SyntaxToken>(modifiers); 25var finalList = initialList.OrderBy(new Comparer()).ToList();
SignatureHelp\AbstractOrdinaryMethodSignatureHelpProvider.cs (1)
52var result = new List<SymbolDisplayPart>();
SignatureHelp\AttributeSignatureHelpProvider.cs (4)
136var namedParameters = constructor.ContainingType.GetAttributeNamedParameters(semanticModel.Compilation, within) 163var result = new List<SignatureHelpSymbolParameter>(); 177var displayParts = new List<SymbolDisplayPart> 199private static List<SymbolDisplayPart>? GetParameterPrefixDisplayParts(int i)
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
242var result = new List<SymbolDisplayPart>();
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
229var 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)
142var result = new List<SymbolDisplayPart>();
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (4)
136var tupleTypes = inferredTypes.Where(t => t.IsTupleType).OfType<INamedTypeSymbol>().ToList(); 156var items = tupleTypes.Select(tupleType => Convert( 181var result = new List<SignatureHelpParameter>(); 188var typeParts = element.Type.ToMinimalDisplayParts(semanticModel, position).ToList();
SplitStringLiteral\InterpolatedStringSplitter.cs (3)
38var contents = _interpolatedStringExpression.Contents.ToList(); 40var beforeSplitContents = new List<InterpolatedStringContentSyntax>(); 41var afterSplitContents = new List<InterpolatedStringContentSyntax>();
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
46nameof(System.Collections.Generic.List<>),
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
104var finalLeadingTrivia = node.GetLeadingTrivia().ToList();
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
222var switchArms = node.Sections
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
34protected override List<XmlNameAttributeSyntax> GetNameAttributes(XmlElementSyntax node)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
289var seenUsings = existingUsings.ToList();
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
39protected override SwitchExpressionSyntax InsertSwitchArms(SyntaxGenerator generator, SwitchExpressionSyntax switchNode, int insertLocation, List<SwitchExpressionArmSyntax> newArms)
src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\MultiLineConditionalExpressionFormattingRule.cs (1)
49List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (3)
58var nodesFromDiagnostics = new List<( 61List<ExpressionSyntax> references)>(diagnostics.Length); 70var references = new List<ExpressionSyntax>(diagnostic.AdditionalLocations.Count - 2);
Structure\Providers\CompilationUnitStructureProvider.cs (1)
27var externsAndUsings = new List<SyntaxNode>();
Structure\Providers\IfDirectiveTriviaStructureProvider.cs (1)
26var allRelatedDirectives = node.GetRelatedDirectives();
Structure\Providers\NamespaceDeclarationStructureProvider.cs (1)
38var externsAndUsings = Enumerable.Union<SyntaxNode>(namespaceDeclaration.Externs, namespaceDeclaration.Usings)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (5)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (3)
89var unhandledKinds = new List<SyntaxKind>(); 672var result = new List<DocumentAnalysisResults>(); 718var result = new List<DocumentAnalysisResults>();
EditAndContinue\TopLevelEditingTests.cs (1)
3855var expectedEdits = new List<SemanticEditDescription>();
Testing\CSharpTestMethodFinderTests.cs (1)
486List<string> unmatchedTestNames = [];
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
104Assert.IsType<List<Version>>(s.Result.ReturnValue);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (10)
InteractiveSessionTests.cs (9)
889var result = CSharpScript.EvaluateAsync<List<string>>(@" 932var result = CSharpScript.EvaluateAsync<List<int>>(@" 956var result = CSharpScript.EvaluateAsync<List<int>>(@" 983var result = CSharpScript.RunAsync(@" 990ContinueWith<List<int>>("result").Result.ReturnValue; 1385Assert.IsType<List<int>>(s2.Result.ReturnValue);
ObjectFormatterTests.cs (1)
611var obj = new List<object> { 1, 2, 'c' };
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (175)
Semantics\AmbiguousOverrideTests.cs (2)
132var ref1 = new List<MetadataReference>() { comp1ref }; 137var ref2 = new List<MetadataReference>() { comp1ref, comp2ref };
Semantics\BindingTests.cs (1)
3383var names = model.LookupNames(node1.SpanStart);
Semantics\ConstantTests.cs (1)
4231private readonly List<BoundNode> _list;
Semantics\FunctionPointerTests.cs (15)
351var conversions = tree.GetRoot().DescendantNodes().OfType<CastExpressionSyntax>().ToList(); 402var conversions = tree.GetRoot().DescendantNodes().OfType<CastExpressionSyntax>().ToList(); 454var conversions = tree.GetRoot().DescendantNodes().OfType<CastExpressionSyntax>().ToList(); 502var conversions = tree.GetRoot().DescendantNodes().OfType<CastExpressionSyntax>().ToList(); 600var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Select(d => d.Initializer!.Value).ToList(); 839var decls = tree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Select(d => d.Initializer!.Value).ToList(); 2225var invocationTypes = tree.GetRoot() 2282var invocationTypes = tree.GetRoot() 2355var invocationTypes = tree.GetRoot() 2429var invocationTypes = tree.GetRoot() 2497var invocationTypes = tree.GetRoot() 2594var invocationTypes = tree.GetRoot() 2667var invocationTypes = tree.GetRoot() 3178var invocations = tree.GetRoot().DescendantNodes().OfType<ConditionalAccessExpressionSyntax>().ToList(); 3297var invocations = tree.GetRoot().DescendantNodes().OfType<ConditionalAccessExpressionSyntax>().ToList();
Semantics\InheritanceBindingTests.cs (1)
8237var refs = new List<MetadataReference>(baseCompilations.Select(c => new CSharpCompilationReference(c)));
Semantics\InteractiveSemanticModelTests.cs (4)
273private List<ExpressionSyntax> GetExprSyntaxList(SyntaxTree syntaxTree) 278private List<ExpressionSyntax> GetExprSyntaxList(SyntaxNode node, List<ExpressionSyntax> exprSynList) 297private ExpressionSyntax GetExprSyntaxForBinding(List<ExpressionSyntax> exprSynList)
Semantics\LambdaTests.cs (2)
8222var names = model.LookupNames(GetPositionForBinding(source)); 8623var diagnostics = new List<DiagnosticDescription>();
Semantics\LocalFunctionTests.cs (1)
1022var attributeSyntaxes = tree.GetRoot().DescendantNodes().OfType<AttributeSyntax>().ToList();
Semantics\LockTests.cs (3)
489var lockStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<LockStatementSyntax>().ToList(); 575var lockStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<LockStatementSyntax>().ToList(); 699var lockStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<LockStatementSyntax>().ToList();
Semantics\LookupTests.cs (108)
24internal List<string> GetLookupNames(string testSrc) 34internal List<ISymbol> GetLookupSymbols(string testSrc, NamespaceOrTypeSymbol container = null, string name = null, int? arity = null, bool isScript = false, IEnumerable<string> globalUsings = null) 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> 179var actual_lookupNames = GetLookupNames(testSrc); 182var actual_lookupSymbols = GetLookupSymbols(testSrc); 203List<string> expected_in_lookupNames = new List<string> 209List<string> expected_in_lookupSymbols = new List<string> 216var actual_lookupNames = GetLookupNames(testSrc); 219var actual_lookupSymbols = GetLookupSymbols(testSrc); 245var actual_lookupSymbols = GetLookupSymbols(testSrc, name: "i", arity: 1); 306List<string> expected_in_lookupNames = new List<string> 312List<string> expected_in_lookupSymbols = new List<string> 319var actual_lookupNames = GetLookupNames(testSrc); 322var actual_lookupSymbols = GetLookupSymbols(testSrc); 357List<string> expected_in_lookupNames = new List<string> 364List<string> expected_in_lookupSymbols = new List<string> 373var actual_lookupNames = GetLookupNames(testSrc); 376var actual_lookupSymbols = GetLookupSymbols(testSrc); 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> 521var actual_lookupNames = GetLookupNames(testSrc); 524var actual_lookupSymbols = GetLookupSymbols(testSrc, name: "F", arity: 0); 566List<string> expected_in_lookupNames = new List<string> 571List<string> expected_in_lookupSymbols = new List<string> 594var actual_lookupNames = model.LookupNames(position); 624List<string> not_expected_in_lookup = new List<string> 631var actual_lookupNames = model.LookupNames(GetPositionForBinding(tree), null).ToList(); 632var actual_lookupNames_ignoreAcc = model.LookupNames(GetPositionForBinding(tree), null).ToList(); 697var names = model.LookupNames(baseExprLocation, useBaseReferenceAccessibility: true); 712List<string> expected_in_lookupNames = new List<string> 719List<string> expected_in_lookupSymbols = new List<string> 727var actual_lookupNames = GetLookupNames(testSrc); 730var actual_lookupSymbols = GetLookupSymbols(testSrc); 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> 778var actual_lookupNames = GetLookupNames(testSrc); 781var actual_lookupSymbols = GetLookupSymbols(testSrc); 814List<string> expected_in_lookupNames = new List<string> 821List<string> expected_in_lookupSymbols = new List<string> 829var actual_lookupNames = GetLookupNames(testSrc); 832var actual_lookupSymbols = GetLookupSymbols(testSrc); 859List<string> not_expected_in_lookupNames = new List<string> 864List<string> not_expected_in_lookupSymbols = new List<string> 870var actual_lookupNames = GetLookupNames(testSrc); 873var actual_lookupSymbols = GetLookupSymbols(testSrc); 898List<string> not_expected_in_lookupNames = new List<string> 903List<string> not_expected_in_lookupSymbols = new List<string> 909var actual_lookupNames = GetLookupNames(testSrc); 912var actual_lookupSymbols = GetLookupSymbols(testSrc); 933List<string> expected_in_lookupNames = new List<string> 939List<string> expected_in_lookupSymbols = new List<string> 946var actual_lookupNames = GetLookupNames(testSrc); 949var actual_lookupSymbols = GetLookupSymbols(testSrc); 975List<string> expected_in_lookupNames = new List<string> 980List<string> expected_in_lookupSymbols = new List<string> 986var actual_lookupNames = GetLookupNames(testSrc); 989var actual_lookupSymbols = GetLookupSymbols(testSrc); 1015List<string> expected_in_lookupNames = new List<string> 1020List<string> expected_in_lookupSymbols = new List<string> 1026var actual_lookupNames = GetLookupNames(testSrc); 1029var actual_lookupSymbols = GetLookupSymbols(testSrc); 1058var lookupNames = GetLookupNames(testSrc); 1059var lookupSymbols = GetLookupSymbols(testSrc).Select(e => e.ToTestDisplayString()).ToList(); 1088var lookupNames = GetLookupNames(testSrc); 1089var lookupSymbols = GetLookupSymbols(testSrc).Select(e => e.ToTestDisplayString()).ToList(); 1117var lookupNames = GetLookupNames(testSrc); 1118var lookupSymbols = GetLookupSymbols(testSrc).Select(e => e.ToTestDisplayString()).ToList(); 1141List<string> expected_in_lookupNames = new List<string> 1146List<string> expected_in_lookupSymbols = new List<string> 1152var actual_lookupNames = GetLookupNames(testSrc); 1155var actual_lookupSymbols = GetLookupSymbols(testSrc); 1179List<string> expected_in_lookupNames = new List<string> 1184List<string> expected_in_lookupSymbols = new List<string> 1190var actual_lookupNames = GetLookupNames(testSrc); 1193var actual_lookupSymbols = GetLookupSymbols(testSrc); 1214List<string> expected_in_lookupNames = new List<string> 1219List<string> expected_in_lookupSymbols = new List<string> 1225var actual_lookupNames = GetLookupNames(testSrc); 1228var actual_lookupSymbols = GetLookupSymbols(testSrc); 1242var actual_lookupNames = GetLookupNames(testSrc); 1245var actual_lookupSymbols = GetLookupSymbols(testSrc); 1271var actual_lookupNames = GetLookupNames(testSrc); 1274var actual_lookupSymbols = GetLookupSymbols(testSrc); 1338List<string> expected_in_lookupNames = new List<string> 1343List<string> expected_in_lookupSymbols = new List<string> 1349var actual_lookupNames = GetLookupNames(testSrc); 1352var actual_lookupSymbols = GetLookupSymbols(testSrc); 1353var actual_lookupSymbols_as_string = actual_lookupSymbols.Select(e => e.ToString()).ToList(); 1391var actual_lookupSymbols = GetLookupSymbols(source); 1442var actual_lookupSymbols = GetLookupSymbols(usings + source, isScript: false); 1522private void TestLookupSymbolsNestedNamespaces(List<ISymbol> actual_lookupSymbols) 1563var exprs = GetExprSyntaxList(tree); 1595var exprs = GetExprSyntaxList(tree); 1842var symbols = GetLookupSymbols(source); 1864var symbols = GetLookupSymbols(source); 1886var symbols = GetLookupSymbols(source); 1909var symbols = GetLookupSymbols(source); 1931var symbols = GetLookupSymbols(source); 1954var symbols = GetLookupSymbols(source); 2137var names = GetLookupNames(source);
Semantics\NullableTests.cs (1)
1262List<Tuple<string, string[,]>> items = new List<Tuple<string, string[,]>>()
Semantics\RefFieldTests.cs (1)
2331var actualFields = type.GetMembers().OfType<FieldSymbol>().Select(f => f.ToTestDisplayString()).ToList();
Semantics\StackAllocSpanExpressionsTests.cs (1)
779var references = new List<MetadataReference>() { MscorlibRef_v4_0_30316_17626, SystemCoreRef, CSharpRef };
Semantics\TopLevelStatementsTests.cs (15)
1689var names = model1.LookupNames(localDecl.SpanStart); 1762var names = model.LookupNames(nameRef.SpanStart); 1862var names = model1.LookupNames(localDecl.SpanStart); 1930var names = model2.LookupNames(nameRef.SpanStart); 2088var names = model1.LookupNames(localDecl.SpanStart); 2143var names = model2.LookupNames(nameRef.SpanStart); 2252var names = model1.LookupNames(localDecl.SpanStart); 2309var names = model2.LookupNames(nameRef.SpanStart); 2431var names = model1.LookupNames(labelDecl.SpanStart); 2506var names = model2.LookupNames(nameRef.SpanStart); 3948var names = model.LookupNames(nameRef.SpanStart); 4002var names = model.LookupNames(nameRef.SpanStart); 4097var names = model.LookupNames(nameRef.SpanStart); 4132var names = model.LookupNames(nameRef.SpanStart); 6141var localFunctions = syntaxTree.GetRoot().DescendantNodes().OfType<LocalFunctionStatementSyntax>().ToList();
Semantics\UsingStatementTests.cs (3)
1865var usingStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<UsingStatementSyntax>().ToList(); 1881var usingStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<UsingStatementSyntax>().ToList(); 1894var usingStatements = tree.GetCompilationUnitRoot().DescendantNodes().OfType<UsingStatementSyntax>().ToList();
SourceGeneration\GeneratorDriverFuzzTests.cs (2)
274var originalInputs = new List<InMemoryAdditionalText>(originalInputsLength); 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>(); 3363List<string?> referenceList = new List<string?>();
SourceGeneration\StateTableTests.cs (1)
947List<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 (82)
Compilation\CompilationAPITests.cs (9)
337var listSyntaxTree = new List<SyntaxTree>(); 338var listRef = new List<MetadataReference>(); 932var listSyntaxTree = new List<SyntaxTree>(); 965var listRef = new List<MetadataReference>(); 1420var listRef = new List<MetadataReference> { ref1, ref2, ref3, ref4 }; 1886var list = comp.MakeWin32ResourceList(res, new DiagnosticBag()); 2394var genericParameter = typeof(List<>).GetGenericArguments()[0]; 2411var s0 = CSharpCompilation.CreateScriptCompilation("a0", globalsType: typeof(List<int>)); 2412Assert.Throws<ArgumentException>(() => CSharpCompilation.CreateScriptCompilation("a1", previousScriptCompilation: s0, globalsType: typeof(List<bool>)));
Compilation\GetSemanticInfoTests.cs (1)
1046var exprSyntaxList = GetExprSyntaxList(tree);
Compilation\IndexedProperties_BindingTests.cs (1)
159var actual_lookupNames = model.LookupNames(position);
Compilation\ReferenceManagerTests.cs (1)
843List<string> newParts = new List<string>(parts);
Compilation\SemanticModelAPITests.cs (4)
46var accesses = m.DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToList(); 138var accesses = root.DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToList(); 4803var exprSynList = new List<ExpressionSyntax>(); 4816private static void GetExpressionSyntax(SyntaxNode node, List<ExpressionSyntax> exprSynList)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (7)
1215var namesInC = model.LookupNames(positionInC, namespacesAndTypesOnly: true); 1224var namesInM = model.LookupNames(methodM.Body.SpanStart); 1250var namesInA = model.LookupNames(someMemberInA.SpanStart); 1284var namesInC = model.LookupNames(someMemberInC.SpanStart); 1335var names = model.LookupNames(methodDecl.SpanStart, paramSymbol.Type); 1386var test = symbolsInC.Where(s => s.ContainingAssembly == null).ToList(); 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 (6)
2035public List<SyntaxNode> Nodes; 2041var intervals = ExtractTextIntervals(ref source); 2049var nodes = new List<SyntaxNode>(); 2088private static List<TextSpan> ExtractTextIntervals(ref string source) 2093List<TextSpan> intervals = new List<TextSpan>(); 2095var all = (from s in FindAll(source, startTag)
Symbols\AnonymousTypesSymbolTests.cs (1)
253var attrs = field.CustomAttributes.ToList();
Symbols\ExtensionMethodTests.cs (1)
3139var nodes = tree.GetCompilationUnitRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().ToList();
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\LoadingAttributes.cs (1)
1060var attrs = (from a in foo.GetAttributes()
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (2)
76var types = new List<NamedTypeSymbol>(); 77var namespaces = new List<NamespaceSymbol>();
Symbols\OverriddenOrHiddenMembersTests.cs (1)
736var refs = new System.Collections.Generic.List<MetadataReference>() { comp1ref };
Symbols\Source\EnumTests.cs (3)
990private List<Symbol> VerifyEnumsValue(string text, string enumName, params object[] expectedEnumValues) 1003private List<Symbol> VerifyEnumsValue(CSharpCompilation comp, string enumName, SpecialType underlyingType, params object[] expectedEnumValues) 1013var fields = symEnum.GetMembers().OfType<FieldSymbol>().Cast<Symbol>().ToList();
Symbols\Source\MethodTests.cs (2)
973var list = new List<Symbol>(); 1082var list = new List<Symbol>();
Symbols\Source\NullablePublicAPITests.cs (28)
55var arrayAccesses = root.DescendantNodes().OfType<ElementAccessExpressionSyntax>().ToList(); 56var arrayTypes = arrayAccesses.Select(arr => model.GetTypeInfoAndVerifyIOperation(arr.Expression).Type).Cast<IArrayTypeSymbol>().ToList(); 89var invocations = root.DescendantNodes().OfType<InvocationExpressionSyntax>().ToList(); 90var expressionTypes = invocations.Select(inv => model.GetTypeInfoAndVerifyIOperation(inv).Type).Cast<INamedTypeSymbol>().ToList(); 1939var declarations = root.DescendantNodes().OfType<VariableDeclaratorSyntax>().ToList(); 1986var declarations = root.DescendantNodes().OfType<VariableDeclaratorSyntax>().ToList(); 2047var declarations = root.DescendantNodes().OfType<AssignmentExpressionSyntax>().ToList(); 2056var symbols = variable.DescendantNodes().OfType<SingleVariableDesignationSyntax>().Select(s => model.GetDeclaredSymbol(s)).Cast<ILocalSymbol>().ToList(); 2090var declarations = root.DescendantNodes().OfType<AssignmentExpressionSyntax>().ToList(); 2099var symbols = variable.DescendantNodes().OfType<SingleVariableDesignationSyntax>().Select(s => model.GetDeclaredSymbol(s)).Cast<ILocalSymbol>().ToList(); 2176var declarations = root.DescendantNodes().OfType<VariableDeclaratorSyntax>().ToList(); 2248var declarations = root.DescendantNodes().OfType<VariableDeclaratorSyntax>().ToList(); 2283var declarations = root.DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToList(); 2327var declarations = root.DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToList(); 2368var declarations = root.DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToList(); 2413var declarations = root.DescendantNodes().OfType<VariableDeclaratorSyntax>().ToList(); 2453var declarations = root.DescendantNodes().OfType<ForEachStatementSyntax>().ToList(); 2501var declarations = root.DescendantNodes().OfType<ForEachStatementSyntax>().ToList(); 2546var declarations = root.DescendantNodes().OfType<SingleVariableDesignationSyntax>().ToList(); 2595var declarations = root.DescendantNodes().OfType<ForEachStatementSyntax>().ToList(); 2737var memberAccess = root.DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToList(); 2783var memberAccess = root.DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToList(); 2826var memberAccess = root.DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToList(); 2875var memberAccess = root.DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToList(); 2916var memberAccess = root.DescendantNodes().OfType<MemberAccessExpressionSyntax>().ToList(); 3405var operators = root.DescendantNodes().OfType<PrefixUnaryExpressionSyntax>().ToList(); 3450var operators = root.DescendantNodes().OfType<BinaryExpressionSyntax>().ToList(); 4727var suppressions = tree.GetRoot().DescendantNodes().OfType<PostfixUnaryExpressionSyntax>().Where(p => p.IsKind(SyntaxKind.SuppressNullableWarningExpression)).ToList();
Symbols\Source\UsingAliasTests.cs (2)
448var names = model.LookupNames(root.Members[0].SpanStart); 467var names = model.LookupNames(root.Members[0].SpanStart);
Symbols\SymbolEqualityTests.cs (4)
41var invocations = root.DescendantNodes().OfType<BinaryExpressionSyntax>().ToList(); 84var invocations = root.DescendantNodes().OfType<InvocationExpressionSyntax>().ToList(); 124var invocations = root.DescendantNodes().OfType<InvocationExpressionSyntax>().ToList(); 165var invocations = root.DescendantNodes().OfType<InvocationExpressionSyntax>().ToList();
Symbols\TypeResolutionTests.cs (1)
133var arraySym = c.Assembly.GetTypeByReflectionType(typeof(List<int>[][,,]));
Symbols\TypeTests.cs (2)
673var fields = v.GetMembers().OfType<FieldSymbol>().ToList(); 1772var nodes = GetBindingNodes<SyntaxNode>(comp).ToList();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (108)
Diagnostics\LocationsTests.cs (2)
564var diagnostics = tree.GetDiagnostics().ToList(); 592var diagnostics = tree.GetDiagnostics().ToList();
LexicalAndXml\LexicalErrorTests.cs (1)
826var descriptions = new List<DiagnosticDescription>
LexicalAndXml\LexicalTests.cs (6)
471var tokens = Lex(text).ToList(); 509var tokens = Lex(text).ToList(); 1666var trivia = token.GetTrailingTrivia().ToList(); 1682var trivia = token.GetTrailingTrivia().ToList(); 1698var trivia = token.GetTrailingTrivia().ToList(); 3445var results = this.Blend("T.X.Y").ToList();
LexicalAndXml\PreprocessorTests.cs (3)
129List<SyntaxKind> actual = new List<SyntaxKind>(); 148List<SyntaxKind> actual = new List<SyntaxKind>(); 389var actual = node.ErrorsAndWarnings().Select(e => e.Code).ToList();
LexicalAndXml\XmlDocCommentTests.cs (5)
3295private void VerifyDiagnostics(CSharpSyntaxNode node, List<TestError> errors) 3300private void VerifyDiagnostics(SyntaxTrivia trivia, List<TestError> errors) 3305private void VerifyDiagnostics(IEnumerable<DiagnosticInfo> actual, List<TestError> expected) 3309var actualErrors = (from e in actual 3312var expectedErrors = (from e in expected
Parsing\RoundTrippingTests.cs (1)
59var nodes = tree.GetCompilationUnitRoot().DescendantTokens(tk => tk.FullWidth > 0).ToList();
Syntax\SyntaxAnnotationTests.cs (15)
255var annotations = new List<SyntaxAnnotation>(Enumerable.Range(0, 3).Select(_ => new SyntaxAnnotation())); 346private void TestMultipleAnnotationsInTree(SyntaxNode oldRoot, SyntaxNode newRoot, List<SyntaxAnnotation> annotations) 351var annotatedNodesOrTokens = newRoot.GetAnnotatedNodesAndTokens(annotation).OrderBy(t => t.SpanStart).ToList(); 352var actualNodesOrTokens = GetAllNodesAndTokens(oldRoot).OrderBy(t => t.SpanStart).ToList(); 385var annotations = new List<SyntaxAnnotation>(Enumerable.Range(0, 10).Select(_ => new SyntaxAnnotation())); 471var annotations = new List<Tuple<SyntaxAnnotation, SyntaxNodeOrToken>>(); 507var candidatePool = GetAllNodesAndTokens(syntaxTree.GetCompilationUnitRoot()); 550private void TestAnnotations(List<Tuple<SyntaxAnnotation, SyntaxNodeOrToken>> annotations, SyntaxNode currentRoot) 580var allNodesAndTokens = GetAllNodesAndTokens(syntaxTree.GetCompilationUnitRoot()); 656private List<SyntaxTrivia> GetAllTrivia(SyntaxNode root) 664private List<SyntaxNodeOrToken> GetAllNodesAndTokens(SyntaxNode root) 671public List<SyntaxNodeOrToken> NodeOrTokens { get; } 672public List<SyntaxTrivia> Trivia { get; } 760private readonly List<SyntaxAnnotation> _annotations; 763public InjectRandomAnnotationsRewriter(List<SyntaxAnnotation> annotations) :
Syntax\SyntaxFactoryTests.cs (3)
278var builder = new System.Collections.Generic.List<ArgumentSyntax>(); 420var tokens = SyntaxFactory.ParseTokens("1l").ToList(); 434var tokens = SyntaxFactory.ParseTokens("1L").ToList();
Syntax\SyntaxNodeTests.cs (69)
74var nodes = expression.ChildNodes().ToList(); 87var nodes = e.Ancestors().ToList(); 105var nodes = e.AncestorsAndSelf().ToList(); 135var nodes = statement.DescendantNodes().ToList(); 181var nodes = statement.DescendantNodesAndSelf().ToList(); 235var nodesAndTokens = statement.DescendantNodesAndTokens().ToList(); 270var nodesAndTokens = statement.DescendantNodesAndTokensAndSelf().ToList(); 307var nodesAndTokens = cu.DescendantNodesAndTokensAndSelf().ToList(); 319var nodesAndTokens = expr.DescendantNodesAndTokensAndSelf(descendIntoTrivia: true).ToList(); 337var descendantDirectives = expr.DescendantNodesAndSelf(n => n.ContainsDirectives, descendIntoTrivia: true).OfType<DirectiveTriviaSyntax>().ToList(); 516var identifierNodes = expr.DescendantNodes().OfType<IdentifierNameSyntax>().ToList(); 519var nodesWithMyAnnotations = exprWithAnnotations.DescendantNodesAndSelf(n => n.ContainsAnnotations).Where(n => n.HasAnnotation(myAnnotation)).ToList(); 535var tokens = t1.GetCompilationUnitRoot().DescendantTokens().ToList(); 548var tokens = t1.GetCompilationUnitRoot().DescendantTokens().ToList(); 561var tokens = t1.GetCompilationUnitRoot().DescendantTokens().ToList(); 578var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(0, 16)).ToList(); 590var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(1, 14)).ToList(); 602var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(7, 17)).ToList(); 615var tokens = t1.GetCompilationUnitRoot().DescendantTokens(new TextSpan(8, 15)).ToList(); 629var list = expr.DescendantTrivia().ToList(); 646var list = expr.DescendantTrivia(descendIntoTrivia: true).ToList(); 991var list1 = children.AsEnumerable().Reverse().ToList(); 992var list2 = children.Reverse().ToList(); 1005var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1007var list = new List<SyntaxToken>(); 1033var tokens = tree.GetCompilationUnitRoot().DescendantTokens(descendIntoTrivia: true).Where(SyntaxToken.NonZeroWidth).ToList(); 1037var list = new List<SyntaxToken>(tokens.Count); 1059var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1062var list = new List<SyntaxToken>(tokens.Count); 1082List<SyntaxToken> tokens = syntaxTree.GetRoot().DescendantTokens().ToList(); 1084List<SyntaxToken> list = new List<SyntaxToken>(); 1104var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1106var list = new List<SyntaxToken>(); 1133var tokens = tree.GetCompilationUnitRoot().DescendantTokens(descendIntoTrivia: true).Where(SyntaxToken.NonZeroWidth).ToList(); 1137var list = new List<SyntaxToken>(tokens.Count); 1163var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1166var list = new List<SyntaxToken>(tokens.Count); 1187List<SyntaxToken> tokens = syntaxTree.GetRoot().DescendantTokens().ToList(); 1189List<SyntaxToken> list = new List<SyntaxToken>(); 1211var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1213var list = new List<SyntaxToken>(); 1232List<SyntaxToken> tokens = syntaxTree.GetRoot().DescendantTokens().ToList(); 1234List<SyntaxToken> list = new List<SyntaxToken>(); 1253var tokens = tree.GetCompilationUnitRoot().DescendantTokens().ToList(); 1255var list = new List<SyntaxToken>(); 1277List<SyntaxToken> tokens = syntaxTree.GetRoot().DescendantTokens().ToList(); 1279List<SyntaxToken> list = new List<SyntaxToken>(); 1300var children = tree.GetCompilationUnitRoot().Members[0].ChildNodesAndTokens().ToList(); 1301var list = new List<SyntaxNodeOrToken>(); 1318var children = tree.GetCompilationUnitRoot().Members[0].ChildNodesAndTokens().ToList(); 1319var reversed = children.AsEnumerable().Reverse().ToList(); 1320var list = new List<SyntaxNodeOrToken>(); 1523var related = d.GetRelatedDirectives(); 1554var related = d.GetRelatedDirectives(); 1564var related2 = related[1].GetRelatedDirectives(); 1568var related3 = related[3].GetRelatedDirectives(); 1590var related = d.GetRelatedDirectives(); 1624var related = d.GetRelatedDirectives(); 1658var related = d.GetRelatedDirectives(); 1689var related = d.GetRelatedDirectives(); 1719var related = d.GetRelatedDirectives(); 1742var related = d.GetRelatedDirectives(); 1763var related = d.GetRelatedDirectives(); 2264var tokens = expr.DescendantTokens().Where(t => t.IsKind(SyntaxKind.IdentifierToken)).ToList(); 2354var tokens = expr.DescendantTokens(descendIntoTrivia: true).ToList(); 2382var deepTrivia = expr.GetDirectives().SelectMany(d => d.DescendantTrivia().Where(tr => tr.Kind() == SyntaxKind.WhitespaceTrivia)).ToList(); 2406var trivia = expr.DescendantTrivia().Where(tr => tr.IsKind(SyntaxKind.WhitespaceTrivia)).ToList(); 3392var diag = syntaxTree.GetDiagnostics(token).ToList(); 3442var diag = syntaxTree.GetDiagnostics(token).ToList();
Syntax\TrackNodeTests.cs (3)
139var nodes = replacedExpr.GetCurrentNodes(originalA).ToList(); 149var ids = expr.DescendantNodes().OfType<IdentifierNameSyntax>().ToList(); 167var ids = expr.DescendantNodes().OfType<IdentifierNameSyntax>().ToList();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (25)
CompilationTestUtils.cs (1)
341public static List<string> LookupNames(this SemanticModel model, int position, INamespaceOrTypeSymbol container = null, bool namespacesAndTypesOnly = false, bool useBaseReferenceAccessibility = false)
CSharpTestBase.cs (6)
2067protected static List<SyntaxNode> GetSyntaxNodeList(SyntaxTree syntaxTree) 2072protected static List<SyntaxNode> GetSyntaxNodeList(SyntaxNode node, List<SyntaxNode>? synList) 2088protected static SyntaxNode? GetSyntaxNodeForBinding(List<SyntaxNode> synList) 2096protected static TNode? GetSyntaxNodeOfTypeForBinding<TNode>(List<SyntaxNode> synList) where TNode : SyntaxNode 2202var nodeList = new List<TNode>();
CSharpTestSource.cs (1)
84public static implicit operator CSharpTestSource(List<SyntaxTree> source) => new CSharpTestSource(source.ToArray());
DiagnosticTestUtilities.cs (5)
64protected internal static CSharpCompilation VerifyErrorsAndGetCompilationWithMscorlib(List<string> srcs, IEnumerable<MetadataReference> refs, params ErrorDescription[] expectedErrorDesp) 113var actualSortedDesp = (from ae in 128var expectedSortedDesp = (from ee in expectedErrorDesp 181var expectedCodes = (from e in expectedErrorDesp 185var actualCodes = (from e in actualErrors
EmitMetadataTestBase.cs (1)
102var actualEntries = new List<DeclSecurityEntry>(expectedEntries.Length);
MetadataTestHelpers.cs (1)
48var refs = new List<MetadataReference>();
MockCSharpCompiler.cs (2)
43List<DiagnosticInfo> diagnostics, 63out List<DiagnosticInfo> diagnostics,
SemanticModelTestBase.cs (4)
33protected List<ExpressionSyntax> GetExprSyntaxList(SyntaxTree syntaxTree) 38private List<ExpressionSyntax> GetExprSyntaxList(SyntaxNode node, List<ExpressionSyntax> exprSynList) 57protected ExpressionSyntax GetExprSyntaxForBinding(List<ExpressionSyntax> exprSynList, int index = 0)
SymbolUtilities.cs (3)
68public static string ListToSortedString(this List<string> list) 80public static string ListToSortedString<TSymbol>(this List<TSymbol> listOfSymbols) where TSymbol : ISymbol 83List<string> listOfSymbolString = listOfSymbols.Select(e => e.ToTestDisplayString()).ToList();
TestOptions.cs (1)
159var list = new List<KeyValuePair<string, string>>();
Microsoft.CodeAnalysis.CSharp.Workspaces (95)
CodeGeneration\CSharpSyntaxGenerator.cs (9)
407var accessors = new List<AccessorDeclarationSyntax>(); 478var accessors = new List<AccessorDeclarationSyntax>(); 561var accessors = new List<AccessorDeclarationSyntax>(); 765var itypes = interfaceTypes?.Select(i => (BaseTypeSyntax)SyntaxFactory.SimpleBaseType((TypeSyntax)i)).ToList(); 786var itypes = interfaceTypes?.Select(i => (BaseTypeSyntax)SyntaxFactory.SimpleBaseType((TypeSyntax)i)).ToList(); 2996var newNodes = new List<SyntaxNode>(); 3102var newNodes = new List<SyntaxNode> 3268var falseArray = falseStatements.ToList(); 3661var parameters = parameterDeclarations?.Cast<ParameterSyntax>().ToList();
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (4)
75var aliasMaps = AllocateAliasMapList(); 94private static void AddAliasMaps(SyntaxNode node, List<Dictionary<string, string>> aliasMaps) 109private static void ProcessUsings(List<Dictionary<string, string>> aliasMaps, SyntaxList<UsingDirectiveSyntax> usings) 138List<Dictionary<string, string>> aliasMaps)
Rename\CSharpRenameRewriterLanguageService.cs (2)
103private List<(TextSpan oldSpan, TextSpan newSpan)>? _modifiedSubSpans; 849var 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>();
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (1)
20private readonly List<NodeOrTokenToReduce> _nodesAndTokensToReduce = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
117var partsList = new List<string>(); 128public static bool TryGetNameParts(this ExpressionSyntax expression, List<string> parts) 158private static bool AddSimpleName(SimpleNameSyntax simpleName, List<string> parts)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (3)
16private readonly Dictionary<string, List<SyntaxToken>> _map = []; 23public static Dictionary<string, List<SyntaxToken>> GetAllDeclarations(SyntaxNode syntax) 35if (!_map.TryGetValue(identifier, out var list))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (3)
599var result = new List<IList<TSyntaxNode>>(); 601var currentGroup = new List<TSyntaxNode>(); 898var finalTrivia = from.GetLeadingTrivia().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\DefaultOperationProvider.cs (3)
27public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 35public override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (2)
15public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 89private static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxNode node)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (9)
18List<IndentBlockOperation> list, 33List<IndentBlockOperation> list, 58List<IndentBlockOperation> list, 72List<IndentBlockOperation> list, 86List<IndentBlockOperation> list, 101List<IndentBlockOperation> list, 111List<IndentBlockOperation> list, 136protected static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxToken anchorToken, SyntaxToken endToken) 146protected static void AddAlignIndentationOfTokensToBaseTokenOperation(List<AlignTokensOperation> list, SyntaxNode containingNode, SyntaxToken baseNode, IEnumerable<SyntaxToken> tokens, AlignTokensOption option = AlignTokensOption.AlignIndentationOfTokensToBaseToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (11)
46public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private static void AddTypeParameterConstraintClauseOperation(List<IndentBlockOperation> list, SyntaxNode node) 74private void AddSwitchIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 134private void AddLabelIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 150private static void AddAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode node) 205private static void SetAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode baseNode, SyntaxNode body) 216private void AddBlockIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 253private static void AddBracketIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 288private static void AddAlignmentBlockOperationRelativeToFirstTokenOnBaseTokenLine(List<IndentBlockOperation> list, (SyntaxToken openBrace, SyntaxToken closeBrace) bracePair) 294private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 356private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, StatementSyntax statement)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentUserSettingsFormattingRule.cs (1)
37public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (3)
52private static void AddIndentBlockOperationsForFromClause(List<IndentBlockOperation> list, FromClauseSyntax fromClause) 82public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 110public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1001var constructors = new List<SyntaxNode>(); 1006private static void AppendConstructors(SyntaxList<MemberDeclarationSyntax> members, List<SyntaxNode> constructors, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (2)
77var result = new List<SimpleNameSyntax>(); 82private static void DecomposeNameParts(NameSyntax name, List<SimpleNameSyntax> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
197List<string> paramNames;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (2)
117var initialList = usingList.Cast<SyntaxNode>() 131var finalList = initialList.OrderBy(comparer).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
27var attributeNodes = 39var attributeDeclarations =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
25var 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)
320var types = new List<BaseTypeSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
141var usingDirectives =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
22var newUsings = new List<UsingDirectiveSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (3)
111var usings = AddUsingDirectives(root, usingDirectives); 140private static List<UsingDirectiveSyntax> AddUsingDirectives( 144var usings = new List<UsingDirectiveSyntax>();
src\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)
24var indices = new List<bool>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\UsingDirectiveSyntaxExtensions.cs (1)
15this List<UsingDirectiveSyntax> usingDirectives,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (3)
116public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 172private static void ReplaceCaseIndentationRules(List<IndentBlockOperation> list, SyntaxNode node) 191private static void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
599var invocationTypes = this.InferTypes(parentInvocationExpressionToTypeInfer).Select(t => t.InferredType).ToList(); 600var instantiatedMethods = methods.Select(m => Instantiate(m, invocationTypes)).ToList(); 605var filteredMethods = instantiatedMethods.Where(m =>
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (7)
CodeGeneration\SymbolEditorTests.cs (3)
36var docs = sources.Select((s, i) => 237var docs = editor.GetChangedDocuments().ToList(); 315var docs = editor.GetChangedDocuments().ToList();
CodeGeneration\SyntaxGeneratorTests.cs (2)
873var parameters = parameterTypes.Select((t, i) => Generator.ParameterDeclaration("p" + i, Generator.TypeExpression(t))).ToList(); 1004var parameters = parameterTypes.Select((t, i) => Generator.ParameterDeclaration("p" + i, Generator.TypeExpression(t))).ToList();
Formatting\FormattingMultipleSpanTests.cs (2)
168private static Tuple<string, List<TextSpan>> PreprocessMarkers(string codeWithMarker) 171var spans = new List<TextSpan>();
Microsoft.CodeAnalysis.EditorFeatures (62)
Adornments\AbstractAdornmentManager.cs (3)
36private List<IMappingSpan> _invalidatedSpans; 119List<IMappingSpan> invalidated; 207List<IMappingSpan> invalidated;
CommentSelection\AbstractToggleBlockCommentBase.cs (1)
404var uncommentedSpans = new List<TextSpan>();
CommentSelection\ToggleLineCommentCommandHandler.cs (2)
156private static List<ITextSnapshotLine> GetLinesFromSelectedSpan(SnapshotSpan span) 158var lines = new List<ITextSnapshotLine>();
DocumentationComments\CopilotGenerateDocumentationCommentProvider.cs (1)
187var list = new List<ProposedEdit>();
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
35private readonly List<TData> _snapshot = [];
EditorConfigSettings\Updater\SettingsUpdaterBase.cs (1)
18private readonly List<(TOption option, TValue value)> _queue = [];
ExtractMethod\ExtractMethodCommandHandler.cs (1)
95var spans = view.Selection.GetSnapshotSpansOnBuffer(textBuffer).Where(s => s.Length > 0).ToList();
InlineRename\InlineRenameSession.cs (1)
623var replacementKinds = result.GetAllReplacementKinds().ToList();
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (2)
49private readonly List<RenameTrackingSpan> _conflictResolutionRenameTrackingSpans = []; 563var textChanges = newText.GetTextChanges(oldText).ToList();
IntelliSense\AsyncCompletion\FilterSet.cs (2)
158internal static List<CompletionFilter> GetFilters(RoslynCompletionItem item) 160var result = new List<CompletionFilter>();
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (2)
70private static readonly ObjectPool<List<MatchResult>> s_listOfMatchResultPool = new(factory: () => []); 241private async Task AddCompletionItemsAsync(List<MatchResult> list, ThreadLocal<PatternMatchHelper> threadLocalPatternMatchHelper, CancellationToken cancellationToken)
IntelliSense\AsyncCompletion\ItemManager.cs (2)
25private static readonly ObjectPool<List<VSCompletionItem>> s_sortListPool = new(factory: () => [], size: 5); 79private static void SortCompletionItems(List<VSCompletionItem> list, AsyncCompletionSessionInitialDataSnapshot data, CancellationToken cancellationToken)
Interactive\InteractiveEvaluator.cs (1)
53private readonly List<ITextBuffer> _submittedBuffers = [];
Interactive\InteractiveSession.cs (1)
71private readonly List<(ITextBuffer buffer, string name)> _pendingBuffers = [];
KeywordHighlighting\HighlighterViewTaggerProvider.cs (1)
39private static readonly PooledObjects.ObjectPool<List<TextSpan>> s_listPool = new(() => []);
NavigateTo\NavigateToItemDisplay.cs (1)
66var items = new List<DescriptionItem>
Navigation\AbstractDefinitionLocationService.cs (1)
220var referenceItems = new List<SourceReferenceItem>(capacity: documentSpans.Count);
Peek\DefinitionPeekableItem.cs (1)
83var sourceLocations = symbol.Locations.Where(l => l.IsInSource).ToList();
Preview\AbstractPreviewFactoryService.cs (15)
77var previewItems = new List<SolutionPreviewItem>(); 431var conflictSpans = conflictNodes.Select(n => n.Span.ToSpan()).ToList(); 437var warningSpans = warningNodes.Select(n => n.Span.ToSpan()).ToList(); 443var suppressDiagnosticsSpans = suppressDiagnosticsNodes.Select(n => n.Span.ToSpan()).ToList(); 456var originalLineSpans = CreateLineSpans(oldBuffer.CurrentSnapshot, originalSpans, cancellationToken); 457var changedLineSpans = CreateLineSpans(newBuffer.CurrentSnapshot, allSpans, cancellationToken); 513var originalLineSpans = CreateLineSpans(oldBuffer.CurrentSnapshot, originalSpans, cancellationToken); 514var changedLineSpans = CreateLineSpans(newBuffer.CurrentSnapshot, changedSpans, cancellationToken); 542List<LineSpan> originalSpans, List<LineSpan> changedSpans, ReferenceCountedDisposable<PreviewWorkspace> leftWorkspace, ReferenceCountedDisposable<PreviewWorkspace> rightWorkspace, 685private static List<LineSpan> CreateLineSpans(ITextSnapshot textSnapshot, NormalizedSpanCollection allSpans, CancellationToken cancellationToken) 689var result = new List<LineSpan>(); 727private static void MergeLineSpans(List<LineSpan> lineSpans, LineSpan nextLineSpan) 765var lineSpans = new List<Span>(); 780var lineSpans = new List<Span>();
Preview\SolutionPreviewResult.cs (1)
55var result = new List<object>();
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
50private readonly List<ClassifiedTextRun> quotaExceededContent;
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)
18var list = new List<SnapshotSpan>();
Shared\Utilities\LinkedEditsTracker.cs (3)
23private readonly List<ITrackingSpan> _trackingSpans = []; 66var trackingSpansAfterEdit = GetActiveSpansForSnapshot(args.After).Select(ss => (Span)ss).ToList(); 92var trackingSpansThatIntersect = query.ToList();
SignatureHelp\Presentation\Signature.cs (7)
106var parts = new List<TaggedText>(); 107var prettyPrintedParts = new List<TaggedText>(); 109var parameters = new List<IParameter>(); 185var documentation = _signatureHelpItem.DocumentationFactory(CancellationToken.None).ToList(); 202private static void AddRange(IList<TaggedText> values, List<TaggedText> parts, List<TaggedText> prettyPrintedParts) 218var result = new List<TaggedText>
Structure\AbstractStructureTaggerProvider.cs (1)
337var sourceSpans = new List<object>()
Suggestions\SuggestedActions\SuggestedAction.CaretPositionRestorer.cs (1)
45var result = new List<Tuple<ITextView, IMappingPoint>>();
Suggestions\SuggestedActionsSource.cs (1)
110var selectedSpans = state.Target.TextView.Selection.SelectedSpans
WpfClassificationExtensions.cs (1)
40var inlines = new List<Inline>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (47)
BraceHighlighting\AbstractBraceHighlightingTests.cs (2)
51var expectedHighlights = expectedSpans.Select(ts => ts.ToSpan()).OrderBy(s => s.Start).ToList(); 52var actualHighlights = context.TagSpans.Select(ts => ts.Span.Span).OrderBy(s => s.Start).ToList();
Classification\AbstractClassifierTests.cs (1)
290var allClassifications = new List<ClassifiedSpan>(semanticClassifications);
Classification\ClassificationTestHelper.cs (2)
34var expectedClassificationList = expectedClassifications.ToList(); 35var actualClassificationList = actualClassifications.ToList();
Completion\AbstractCompletionProviderTests.cs (26)
125List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options, 131List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options, bool skipSpeculation = false); 149List<CompletionFilter> matchingFilters, 172List<CompletionFilter> matchingFilters, 303private static bool FiltersMatch(List<CompletionFilter> expectedMatchingFilters, RoslynCompletion.CompletionItem item) 305var matchingFilters = FilterSet.GetFilters(item); 317List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options, bool skipSpeculation = false) 343List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options, bool skipSpeculation = false) 435bool? isComplexTextEdit = null, List<CompletionFilter> matchingFilters = null, 450bool? isComplexTextEdit = null, List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null, 502List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, 533List<CompletionFilter> matchingFilters, 567List<CompletionFilter> matchingFilters, 1071List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options, bool skipSpeculation = false) 1084List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options, bool skipSpeculation = false) 1092List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options, bool skipSpeculation = false) 1103bool? isComplexTextEdit = null, List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null, CompletionOptions options = null, bool skipSpeculation = false) 1121List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null, CompletionOptions options = null, bool skipSpeculation = false) 1134List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null, 1146List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options, bool skipSpeculation = false) 1165List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options, bool skipSpeculation = false) 1173List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options) 1184List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null, 1209List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null, 1219List<CompletionFilter> matchingFilters, CompletionItemFlags? flags, CompletionOptions options) 1231List<CompletionFilter> matchingFilters = null, CompletionItemFlags? flags = null,
Diagnostics\GenerateType\GenerateTypeTestState.cs (1)
18public static List<string> FixIds = ["CS0246", "CS0234", "CS0103", "BC30002", "BC30451", "BC30456"];
FindUsages\FindUsagesTestContext.cs (2)
17public readonly List<DefinitionItem> Definitions = []; 18public readonly List<SourceReferenceItem> References = [];
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (3)
45var expectedHighlightSpans = testDocument.SelectedSpans.ToList(); 61var highlightSpans = new List<TextSpan>(); 68private static void CheckSpans(SyntaxTree tree, IList<TextSpan> expectedHighlightSpans, List<TextSpan> highlightSpans)
NavigateTo\AbstractNavigateToTests.cs (1)
163List<NavigateToItem> expecteditems, IEnumerable<NavigateToItem> items)
NavigateTo\NavigateToTestAggregator.Callback.cs (1)
19private readonly List<NavigateToItem> _itemsReceived = [];
Rename\RenamerTests.cs (2)
45var documentIdToDocumentInfoMap = new List<(DocumentId, DocumentWithInfo)>(); 180var documentIdToDocumentInfoMap = new List<(DocumentId, DocumentWithInfo)>();
SignatureHelp\AbstractSignatureHelpProviderTests.cs (1)
249var classifiedSpans = actualSignatureHelpItem.DocumentationFactory(CancellationToken.None).ToClassifiedSpans().ToList();
Threading\WpfTestSharedData.cs (1)
22private readonly List<string> _recentTestCases = [];
Workspaces\EditorTestWorkspace.cs (2)
38public List<string> ChangedSourceGeneratedDocumentFileNames { get; } = []; 346var projectionBufferSpanStartingPositions = new List<int>();
Workspaces\TestWorkspaceFixture.cs (2)
120var existingProperties = (List<VisualStudio.Text.Formatting.TextFormattingRunProperties>)existingPropertiesField.GetValue(null);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (37)
CodeFixes\CodeFixServiceTests.cs (1)
801var fixes = (await GetAddedFixesAsync(fixer, analyzer)).SelectMany(fixCollection => fixCollection.Fixes).ToList();
CodeGeneration\CodeGenerationTests.cs (1)
615var allMembers = new List<ISymbol>();
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (2)
719var trackingSpans = edits.TrackingSpans 745var spans = new List<Span>();
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (3)
28var diagnosticIdAndOptions = new List<(string diagnosticId, ImmutableHashSet<IOption2> options)>(); 715var baseline = new List<(string diagnosticId, string optionName, string optionValue)>(); 741var extraEntitiesBuilder = new List<(string diagnosticId, string optionName, string optionValue)>();
Diagnostics\IDEDiagnosticIDUniquenessTest.cs (1)
20var listOfIDEDiagnosticIds = type.GetFields().Select(x => x.GetValue(null).ToString()).ToList();
EmbeddedLanguages\StackFrame\StackFrameParserTests.Utilities.cs (1)
97List<VirtualChar> enumeratedParsedCharacters = [];
Extensions\IProjectionBufferFactoryServiceExtensionsTests.cs (2)
76var lines = projectionSnapshot.Lines.ToList(); 108var lines = projectionSnapshot.Lines.ToList();
FindReferences\FindReferencesCommandHandlerTests.cs (2)
31public readonly List<DefinitionItem> Result = []; 87List<DefinitionItem> result,
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
96var references = new List<MetadataReference>();
Options\GlobalOptionsTests.cs (1)
41public readonly List<OptionKey2> AccessedOptionKeys = [];
RenameTracking\RenameTrackingTestState.cs (1)
171var actions = new List<CodeAction>();
Structure\StructureTaggerTests.cs (9)
65var tags = await GetTagsFromWorkspaceAsync(workspace); 131var tags = await GetTagsFromWorkspaceAsync(workspace); 177var tags = await GetTagsFromWorkspaceAsync(workspace); 221var tags = await GetTagsFromWorkspaceAsync(workspace); 275var tags = await GetTagsFromWorkspaceAsync(workspace); 329var tags = await GetTagsFromWorkspaceAsync(workspace); 352var tags = await GetTagsFromWorkspaceAsync(workspace); 384var tags = await GetTagsFromWorkspaceAsync(workspace); 404private static async Task<List<IContainerStructureTag>> GetTagsFromWorkspaceAsync(EditorTestWorkspace workspace)
TextEditor\OpenDocumentTests.cs (1)
38var documentIds = new List<DocumentId>();
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (5)
18var allReferences = new List<ReferenceInfo>(); 35private static void FlattenReferences(ImmutableArray<ReferenceInfo> references, List<ReferenceInfo> allReferences) 41private static void FlattenReference(ReferenceInfo reference, List<ReferenceInfo> allReferences) 47private static Dictionary<string, ProjectAssetsLibrary> BuildLibraries(List<ReferenceInfo> references) 59private static Dictionary<string, Dictionary<string, ProjectAssetsTargetLibrary>> BuildTargets(string targetFramework, List<ReferenceInfo> references)
UnusedReferences\UnusedReferencesRemoverTests.cs (1)
208private readonly List<ReferenceUpdate> _appliedUpdates = [];
Utilities\AsynchronousOperationListenerTests.cs (1)
27private readonly List<Task> _tasks = [];
Utilities\BloomFilterTests.cs (2)
209var allHashSets = new List<HashSet<string>> 275private static HashSet<long> CreateLongs(List<int> ints)
Utilities\PatternMatcherTests.cs (2)
491var flattened = new List<TextSpan>(); 495var actualSpans = flattened.OrderBy(s => s.Start).ToList();
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (5)
Process.cs (1)
15private readonly List<Module> _modules;
Request.cs (1)
31private readonly List<Address> _resolvedAddresses;
Resolver.cs (3)
19private readonly Dictionary<Process, List<Request>> _requests; 35List<Request> requests; 70List<Request> requests;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ArrayBuilder.cs (1)
21private readonly List<T> _items;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ArrayBuilder.cs (1)
21private readonly List<T> _items;
Microsoft.CodeAnalysis.Extensions.Package (13)
Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
Microsoft.CodeAnalysis.ExternalAccess.FSharp (9)
Classification\IFSharpClassificationService.cs (3)
28void AddLexicalClassifications(SourceText text, TextSpan textSpan, List<ClassifiedSpan> result, CancellationToken cancellationToken); 36Task AddSyntacticClassificationsAsync(Document document, TextSpan textSpan, List<ClassifiedSpan> result, CancellationToken cancellationToken); 44Task AddSemanticClassificationsAsync(Document document, TextSpan textSpan, List<ClassifiedSpan> result, CancellationToken cancellationToken);
Internal\Classification\FSharpClassificationService.cs (4)
26private readonly ObjectPool<List<ClassifiedSpan>> s_listPool = new(() => []); 37using var _ = s_listPool.GetPooledObject(out var list); 46using var _ = s_listPool.GetPooledObject(out var list); 56using var _ = s_listPool.GetPooledObject(out var list);
LanguageServices\FSharpVisualStudioWorkspaceExtensions.cs (1)
24var projects = workspace.CurrentSolution.Projects.Where(p => string.Equals(p.OutputFilePath, filePath, StringComparison.OrdinalIgnoreCase)).ToList();
SignatureHelp\FSharpSignatureHelpItems.cs (1)
82var distinctItems = items.Distinct().ToList();
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
ExtractInterface\IOmniSharpExtractInterfaceOptionsService.cs (1)
14List<ISymbol> extractableMembers,
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
ILanguageServerTelemetryReporterWrapper.cs (1)
11void ReportEvent(string name, List<KeyValuePair<string, object?>> properties);
RazorTelemetryReporter.cs (1)
18public void ReportEvent(string name, List<KeyValuePair<string, object?>> properties)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Internal\DescriptionService.cs (1)
69var builder = new List<TaggedText>();
Microsoft.CodeAnalysis.Features (236)
AddPackage\InstallPackageDirectlyCodeActionOperation.cs (2)
29private readonly List<string> _projectsWithMatchingVersion = []; 51var otherProjects = installerService.GetProjectsWithInstalledPackage(
BraceMatching\AbstractBraceMatcher.cs (1)
31var braceTokens = (from child in parent.ChildNodesAndTokens()
ChangeSignature\AbstractChangeSignatureService.cs (4)
254var nodesToUpdate = new Dictionary<DocumentId, List<SyntaxNode>>(); 387var nodes = nodesToUpdate[docId]; 445private static void AddUpdatableNodeToDictionaries(Dictionary<DocumentId, List<SyntaxNode>> nodesToUpdate, DocumentId documentId, SyntaxNode nodeToUpdate, Dictionary<SyntaxNode, ISymbol> definitionToUse, ISymbol symbolWithSemanticParameters) 479var argumentsToPermute = arguments.Take(declarationParametersToPermute.Length).ToList();
ChangeSignature\ParameterConfiguration.cs (1)
26var parametersList = parameters.ToList();
CodeFixes\Service\CodeFixService.cs (14)
128var spanToErrorDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>>(); 129var spanToOtherDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>>(); 155SortedDictionary<TextSpan, List<DiagnosticData>> spanToDiagnostics, 263private static SortedDictionary<TextSpan, List<DiagnosticData>> ConvertToMap( 270var spanToDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>>(); 314var spanToDiagnostics = new SortedDictionary<TextSpan, List<DiagnosticData>> 444SortedDictionary<TextSpan, List<DiagnosticData>> spanToDiagnostics, 463using var _1 = PooledDictionary<CodeFixProvider, List<(TextSpan range, List<DiagnosticData> diagnostics)>>.GetInstance(out var fixerToRangesAndDiagnostics); 592List<DiagnosticData> diagnostics, 594PooledDictionary<CodeFixProvider, List<(TextSpan range, List<DiagnosticData> diagnostics)>> fixerToRangesAndDiagnostics) 708List<DiagnosticData> diagnostics, 743List<DiagnosticData> diagnosticsWithSameSpan,
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (2)
259var getChangedDocumentsTasks = new List<Task>(); 284var getFinalDocumentTasks = new List<Task>();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (7)
154var diagnosticsMapBuilder = ImmutableDictionary.CreateBuilder<ISymbol, List<Diagnostic>>(); 175var diagnosticsMapBuilder = ImmutableDictionary.CreateBuilder<ISymbol, List<Diagnostic>>(); 190private static void AddDiagnosticForSymbolIfNeeded(ISymbol targetSymbol, Diagnostic diagnostic, ImmutableDictionary<ISymbol, List<Diagnostic>>.Builder diagnosticsMapBuilder) 197if (!diagnosticsMapBuilder.TryGetValue(targetSymbol, out var diagnosticsForSymbol)) 206private static IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>> CreateDiagnosticsBySymbol(ImmutableDictionary<ISymbol, List<Diagnostic>>.Builder diagnosticsMapBuilder) 211var builder = new List<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>>(); 218private static ImmutableArray<Diagnostic> GetUniqueDiagnostics(List<Diagnostic> diagnostics)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (2)
118var attributeRemoveFixes = new List<AttributeRemoveAction>(); 119var newBatchOfFixes = new List<(Diagnostic diagnostic, CodeAction action)>();
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
447var refLocationsInCurrentDocument = new List<LocationForAffectedSymbol>(); 448var refLocationsInOtherDocuments = new List<LocationForAffectedSymbol>();
Completion\CommonCompletionUtilities.cs (3)
99var textContentBuilder = new List<TaggedText>(); 160private static void AddOverloadPart(List<TaggedText> textContentBuilder, int overloadCount, bool isGeneric) 174List<TaggedText> textContentBuilder, ISymbol symbol, SemanticModel semanticModel, int position, IDocumentationCommentFormattingService formatter, CancellationToken cancellationToken)
Completion\CompletionService.cs (2)
270private static readonly ObjectPool<List<MatchResult>> s_listOfMatchResultPool = new(factory: () => []); 289var builder = s_listOfMatchResultPool.Allocate();
Completion\CompletionService.ProviderManager.cs (1)
73var providers = ExtensionOrderer.Order(
Completion\CompletionService_GetCompletions.cs (4)
346private static readonly ObjectPool<List<CompletionItem>> s_sortListPool = new(factory: () => [], size: 5); 361var list = s_sortListPool.Allocate(); 408else if (value is List<CompletionItem> sameNamedItems) 433else if (value is List<CompletionItem> sameNamedItems)
Completion\Providers\RecommendedKeyword.cs (1)
34var textContentBuilder = new System.Collections.Generic.List<SymbolDisplayPart>();
Completion\Providers\Scripting\GlobalAssemblyCacheCompletionHelper.cs (1)
18private static readonly Lazy<List<string>> s_lazyAssemblySimpleNames =
Completion\Providers\SymbolCompletionItem.cs (2)
135var idList = symbolIds.Split(s_symbolSplitters, StringSplitOptions.RemoveEmptyEntries).ToList(); 162private static void DecodeSymbols(List<string> ids, Compilation compilation, ArrayBuilder<ISymbol> symbols)
Diagnostics\IPerformanceTrackerService.cs (1)
14void GenerateReport(List<AnalyzerInfoForPerformanceReporting> analyzerInfos, bool forSpanAnalysis);
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (1)
59private readonly List<(DocumentationCommentListType type, int index, bool renderedItem)> _listStack = [];
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (11)
25protected abstract List<string> GetDocumentationCommentStubLines(TMemberNode member, string existingCommentText); 89var lines = addIndentation 110private List<string>? GetDocumentationCommentLines(SyntaxToken token, SourceText text, in DocumentationCommentOptions options, out string? indentText, out int caretOffset, out int spanToReplaceLength) 114var lines = GetDocumentationStubLines(token, text, options, out caretOffset, out spanToReplaceLength, out var existingCommentText); 141private List<string>? GetDocumentationCommentLinesNoIndentation(SyntaxToken token, SourceText text, in DocumentationCommentOptions options, out int caretOffset, out int spanToReplaceLength, out string? indentText) 144var lines = GetDocumentationStubLines(token, text, options, out caretOffset, out spanToReplaceLength, out var existingCommentText); 158private List<string>? GetDocumentationStubLines(SyntaxToken token, SourceText text, in DocumentationCommentOptions options, out int caretOffset, out int spanToReplaceLength, out string? existingCommentText) 185var lines = GetDocumentationCommentStubLines(targetMember, existingCommentText); 251private static void IndentLines(List<string> lines, string? indentText) 296var lines = GetDocumentationCommentLines(token, text, options, out var indentText, out _, out _); 343var lines = GetDocumentationCommentStubLines(targetMember, string.Empty);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (20)
394protected abstract List<SyntaxNode> GetExceptionHandlingAncestors(SyntaxNode node, SyntaxNode root, bool isNonLeaf); 1033var ancestors = GetExceptionHandlingAncestors(newStatement, newBody.EncompassingAncestor, oldActiveStatements[i].Statement.IsNonLeaf); 1075public readonly List<int>? ActiveNodeIndices; 1081public LambdaInfo(List<int> activeNodeIndices) 1086private LambdaInfo(List<int>? activeNodeIndices, DeclarationBodyMap bodyMap, LambdaBody? newLambdaBody) 1553var oldAncestors = GetExceptionHandlingAncestors(oldStatementSyntax, oldEncompassingAncestor, isNonLeaf); 1554var newAncestors = GetExceptionHandlingAncestors(newStatementSyntax, newEncompassingAncestor, isNonLeaf); 1735private static List<KeyValuePair<SyntaxNode, SyntaxNode>>? GetMatchingActiveNodes(IEnumerable<ActiveNode> activeNodes) 1738List<KeyValuePair<SyntaxNode, SyntaxNode>>? lazyKnownMatches = null; 1757var ancestors = GetExceptionHandlingAncestors(node, root, isNonLeaf); 1761private ActiveStatementExceptionRegions GetExceptionRegions(List<SyntaxNode> exceptionHandlingAncestors, SyntaxTree tree, CancellationToken cancellationToken) 2014var newNodes = GetAncestors(newEncompassingAncestor, newActiveStatement, nodeSelector); 2020var oldNodes = GetAncestors(oldEncompassingAncestor, oldActiveStatement, nodeSelector); 2044private void ReportRudeEditsAndInserts(List<SyntaxNode?>? oldNodes, List<SyntaxNode?> newNodes, RudeEditDiagnosticsBuilder diagnostics) 2070List<SyntaxNode?> oldNodes, 2072List<SyntaxNode?> newNodes, 2167private static int IndexOfEquivalent<TSyntaxNode>(SyntaxNode newNode, List<SyntaxNode?> oldNodes, int startIndex, Func<TSyntaxNode, TSyntaxNode, bool> comparer) 2182private static List<SyntaxNode?>? GetAncestors(SyntaxNode? root, SyntaxNode node, Func<SyntaxNode, bool> nodeSelector) 2184List<SyntaxNode?>? list = null;
EditAndContinue\DebuggingSessionTelemetry.cs (1)
26private readonly List<EditSessionTelemetry.Data> _editSessionData = [];
EditAndContinue\EditAndContinueService.cs (1)
58private readonly List<DebuggingSession> _debuggingSessions = [];
EmbeddedLanguages\RegularExpressions\LanguageServices\EmbeddedCompletionContext.cs (1)
26public readonly List<RegexItem> Items = [];
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (2)
195var statMap = new Dictionary<string, List<int>>(); 204var list = statMap.GetOrAdd(propertyNameAndId.Item1, _ => []);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
495var list = new List<UnitTestingWorkItem>();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (5)
124List<CancellationTokenSource>? cancellations; 136List<CancellationTokenSource>? cancellations; 152private static void RaiseCancellation_NoLock(List<CancellationTokenSource>? cancellations) 163private List<CancellationTokenSource>? CancelAll_NoLock() 172var cancellations = _cancellationMap.Values.ToList();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (2)
269internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<UnitTestingWorkItem> items) 286private readonly List<Lazy<IUnitTestingIncrementalAnalyzerProvider, UnitTestingIncrementalAnalyzerProviderMetadata>> _analyzerProviders = [.. analyzerProviders];
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (1)
194internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<UnitTestingWorkItem> items)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (1)
376internal void WaitUntilCompletion(ImmutableArray<IUnitTestingIncrementalAnalyzer> analyzers, List<UnitTestingWorkItem> items)
ExternalAccess\VSTypeScript\Api\IVSTypeScriptClassificationService.cs (1)
16Task AddSemanticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, List<ClassifiedSpan> result, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\VSTypeScriptClassificationService.cs (2)
54using var _ = SharedPools.BigDefault<List<ClassifiedSpan>>().GetPooledObject(out var list);
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
230var remainingResults = new List<ExtractClassMemberAnalysisResult>(memberAnalysisResults);
ExtractMethod\AbstractSyntaxTriviaService.cs (4)
120private static (List<SyntaxTrivia>, List<SyntaxTrivia>) SplitTrivia( 125var triviaLeftAtCallSite = new List<SyntaxTrivia>(); 126var triviaMovedToDefinition = new List<SyntaxTrivia>();
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (3)
75var list = trivia.ToList(); 87private int GetFirstEndOfLineIndex(List<SyntaxTrivia> list) 244List<SyntaxTrivia> list,
ExtractMethod\MethodExtractor.Analyzer.cs (4)
81bestEffort: false, dataFlowAnalysisData, symbolMap, isInPrimaryConstructorBaseType, out var variableInfoMap, out var failedVariables); 89bestEffort: true, dataFlowAnalysisData, symbolMap, isInPrimaryConstructorBaseType, out variableInfoMap, out var unused); 407out List<ISymbol> failedVariables) 757var typeParametersInConstraint = new List<ITypeParameterSymbol>();
ExtractMethod\MethodExtractor.TriviaResult.cs (2)
71var currentLine = new List<SyntaxTrivia>(); 72var result = new List<SyntaxTrivia>();
ExtractMethod\MethodExtractor.TypeParameterCollector.cs (1)
20private readonly List<ITypeParameterSymbol> _typeParameters = [];
ExtractMethod\SelectionValidator.cs (1)
151var spine = new List<TStatementSyntax>();
FindUsages\AbstractFindUsagesService.DefinitionTrackingContext.cs (1)
28private readonly List<DefinitionItem> _definitions = [];
GenerateEqualsAndGetHashCodeFromMembers\FormatLargeBinaryExpressionRule.cs (1)
44List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
GenerateType\AbstractGenerateTypeService.cs (1)
186var arguments = typeArguments.ToList();
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
249private static void AddFoldersToNamespaceContainers(List<string> container, IList<string> folders) 492var containerList = new List<string>();
GenerateType\AbstractGenerateTypeService.State.cs (2)
63public List<TSimpleNameSyntax> PropertiesToGenerate { get; private set; } = null!; 422public List<TSimpleNameSyntax> PropertiesToGenerate { get; }
Highlighting\HighlightingService.cs (4)
22private readonly List<Lazy<IHighlighter, LanguageMetadata>> _highlighters = [.. highlighters]; 23private static readonly PooledObjects.ObjectPool<List<TextSpan>> s_listPool = new(() => []); 26SyntaxNode root, int position, List<TextSpan> highlights, CancellationToken cancellationToken) 28using (s_listPool.GetPooledObject(out var tempHighlights))
Highlighting\IHighlighter.cs (1)
13void AddHighlights(SyntaxNode root, int position, List<TextSpan> highlights, CancellationToken cancellationToken);
Highlighting\IHighlightingService.cs (1)
19void AddHighlights(SyntaxNode root, int position, List<TextSpan> highlights, CancellationToken cancellationToken);
Highlighting\Keywords\AbstractKeywordHighlighter.cs (7)
21protected sealed override void AddHighlightsForNode(SyntaxNode node, List<TextSpan> highlights, CancellationToken cancellationToken) 24protected abstract void AddHighlights(TNode node, List<TextSpan> highlights, CancellationToken cancellationToken); 31private static readonly ObjectPool<List<TextSpan>> s_textSpanListPool = new(() => []); 39SyntaxNode root, int position, List<TextSpan> highlights, CancellationToken cancellationToken) 47using var _2 = s_textSpanListPool.GetPooledObject(out var highlightsBuffer); 67private static bool AnyIntersects(int position, List<TextSpan> highlights) 78protected abstract void AddHighlightsForNode(SyntaxNode node, List<TextSpan> highlights, CancellationToken cancellationToken);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
78var listOfParametersOrdinals = new List<int>(); 176List<int> listOfParametersOrdinals,
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
372var nodesToTrack = new List<SyntaxNode> { constructorDeclaration };
InlineHints\InlineHintHelpers.cs (1)
31var parts = new List<TaggedText>();
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (4)
242IMethodSymbol methodSymbol, SyntaxNode containingMethod, Dictionary<Document, List<TExpressionSyntax>> methodCallSites, bool allOccurrences, IntroduceParameterCodeActionKind selectedCodeAction, 274protected static async Task<Dictionary<Document, List<TExpressionSyntax>>> FindCallSitesAsync( 277var methodCallSites = new Dictionary<Document, List<TExpressionSyntax>>(); 310if (!methodCallSites.TryGetValue(refLocation.Document, out var list))
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (5)
43public async Task<SyntaxNode> RewriteDocumentAsync(Compilation compilation, Document document, List<TExpressionSyntax> invocations, CancellationToken cancellationToken) 220List<TExpressionSyntax> invocations, int insertionIndex, CancellationToken cancellationToken) 313var requiredArguments = new List<SyntaxNode>(); 351private SyntaxNode GenerateNewMethodInvocation(SyntaxNode invocation, List<SyntaxNode> arguments, string newMethodIdentifier) 482List<TExpressionSyntax> invocations, CancellationToken cancellationToken)
LanguageServices\AnonymousTypeDisplayService\StructuralTypeDisplayInfo.cs (2)
33while (ReplaceStructuralTypes(parts, structuralTypeToName, semanticModel, position, out var newParts)) 44out List<SymbolDisplayPart> newParts)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (5)
291var parts = new List<SymbolDisplayPart>(); 335var parts = new List<SymbolDisplayPart>(); 453var finalParts = new List<SymbolDisplayPart>(); 732var parts = ToMinimalDisplayParts(symbol, MinimallyQualifiedFormat).ToList(); 836var partsList = partsArray.Flatten().ToList();
MetadataAsSource\AbstractMetadataAsSourceService+CompatAbstractMetadataFormattingRule.cs (6)
30public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 38public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 46public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 83public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 89public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 95public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
MetadataAsSource\DocumentationCommentUtilities.cs (2)
14private static readonly ObjectPool<List<string>> s_pool = SharedPools.Default<List<string>>();
PdbSourceDocument\SourceLinkMap.cs (1)
70var list = new List<Entry>();
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
92var candidateResults = new List<(DocumentId docId, TokenInformation tokenInformation)>
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
66var actionsToPerform = new List<(int, Action)>();
ReplaceMethodWithProperty\AbstractReplaceMethodWithPropertyService.cs (2)
49var finalLeadingTrivia = getAndSetMethods.GetMethodDeclaration.GetLeadingTrivia().ToList(); 75private static void AddParamListTriviaIfNeeded(ISyntaxFacts syntaxFacts, SyntaxNode methodDeclaration, List<SyntaxTrivia> finalLeadingTrivia)
RQName\Nodes\RQConstructedType.cs (1)
19var typeArgumentNodes = TypeArguments.Select(node => node.ToSimpleTree()).ToList();
RQName\Nodes\RQMember.cs (1)
16protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQMemberParameterIndex.cs (1)
22protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQMemberParameterIndexFromPartialImplementation.cs (1)
14protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQMemberParameterIndexFromPartialSignature.cs (1)
14protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQMemberVariable.cs (1)
24protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQMethodOrProperty.cs (2)
21protected override void AppendChildren(List<SimpleTreeNode> childList) 25var paramNodes = Parameters.Select(param => param.ToSimpleTree()).ToList();
RQName\Nodes\RQMethodPropertyOrEvent.cs (1)
19protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQNode.cs (2)
14protected abstract void AppendChildren(List<SimpleTreeNode> childList); 18var childList = new List<SimpleTreeNode>();
RQName\Nodes\RQTypeOrNamespace.cs (1)
19protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\Nodes\RQUnconstructedType.cs (1)
21protected override void AppendChildren(List<SimpleTreeNode> childList)
RQName\RQNodeBuilder.cs (5)
36var parts = new List<string>(); 77var typeInfos = new List<RQUnconstructedTypeInfo>(); 141var parameterList = new List<RQParameter>(); 308var typeChain = new List<INamedTypeSymbol>(); 320var typeArgumentList = new List<RQType>();
Shared\Utilities\AnnotatedSymbolMapping.cs (2)
55using var _2 = PooledDictionary<DocumentId, List<ISymbol>>.GetInstance(out var documentIdToSymbolsMap); 89var symbolsInDocument = documentIdToSymbolsMap[id];
Shared\Utilities\SupportedPlatformData.cs (1)
27var builder = new List<SymbolDisplayPart>();
SignatureHelp\AbstractSignatureHelpProvider.cs (4)
102var filteredList = items.Where(i => Include(i, parameterNames)).ToList(); 200var structuralTypeParts = new List<SymbolDisplayPart> 263var finalItems = new List<SignatureHelpItem>(); 329var startingNewLine = new List<TaggedText>();
SignatureHelp\SignatureHelpItems.cs (1)
77var distinctItems = items.Distinct().ToList();
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
127var allTokens = node.DescendantTokens(descendIntoTrivia: true).ToList();
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (14)
157using var _1 = PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>>.GetInstance(out var idToPragmasMap); 166using var _5 = PooledDictionary<string, List<SyntaxNode>>.GetInstance(out var idToSuppressMessageAttributesMap); 200if (idToPragmasMap.TryGetValue(id, out var pragmas)) 208if (idToSuppressMessageAttributesMap.TryGetValue(id, out var attributeNodes)) 228PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 268if (!idToPragmasMap.TryGetValue(id, out var pragmasForIdInReverseOrder)) 510PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 512PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 546PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>> idToPragmasMap, 549if (!idToPragmasMap.TryGetValue(diagnostic.Id, out var pragmasForIdInReverseOrder)) 586PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 591!idToSuppressMessageAttributesMap.TryGetValue(diagnostic.Id, out var suppressMessageAttributesForId)) 736PooledDictionary<string, List<SyntaxNode>> idToSuppressMessageAttributesMap, 813if (!idToSuppressMessageAttributesMap.TryGetValue(id, out var nodesForId))
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
29(nameof(List<>.AddRange), isLinq: false),
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (8)
50protected abstract List<TXmlNameAttributeSyntax> GetNameAttributes(TXmlElementSyntax node); 68var paramNodes = GetElementNodes(newDocComment, NodeName); 74var paramsBeforeCurrentParam = parameterNames.TakeWhile(t => t != parameterName).ToList(); 75var paramsAfterCurrentParam = parameterNames.Except(paramsBeforeCurrentParam).ToList(); 105var paramNodeSiblings = nodeAfterNewParamNode.GetRequiredParent().ChildNodes().ToList(); 124private List<TXmlElementSyntax> GetElementNodes(SyntaxNode docComment, string nodeName) 126var nodes = docComment.ChildNodes().OfType<TXmlElementSyntax>() 155var paramNameAttributesForNode = GetNameAttributes(paramNode);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (3)
63var removedNodes = new List<SyntaxNode> { paramNode }; 64var paramNodeSiblings = paramNode.GetRequiredParent().ChildNodes().ToList(); 85private bool ShouldRemovePreviousSibling(List<SyntaxNode> paramNodeSiblings, int paramNodeIndex)
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
105var removalList = new List<int>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (5)
58var constraints = typeParameter.ConstraintTypes.Where(ts => !ts.IsUnexpressibleTypeParameterConstraint()).ToList(); 59var classTypes = constraints.Where(ts => ts.TypeKind == TypeKind.Class).ToList(); 60var nonClassTypes = constraints.Where(ts => ts.TypeKind != TypeKind.Class).ToList(); 81private List<ITypeSymbol> MergeClassTypes(List<ITypeSymbol> classTypes)
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
43var declarators = new List<TSymbolSyntax>(); 56Document document, SyntaxEditor editor, List<TSymbolSyntax> declarators, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (2)
45protected abstract TSwitchSyntax InsertSwitchArms(SyntaxGenerator generator, TSwitchSyntax switchNode, int insertLocation, List<TSwitchArmSyntax> newArms); 172var newArms = new List<TSwitchArmSyntax>();
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
68protected sealed override TSwitchSyntax InsertSwitchArms(SyntaxGenerator generator, TSwitchSyntax switchNode, int insertLocation, List<TSwitchArmSyntax> newArms)
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (1)
47var result = new List<CodeAction>();
UnusedReferences\ProjectAssets\ProjectAssetsModel.cs (1)
18public Dictionary<string, List<string>>? ProjectFileDependencyGroups { get; set; }
Wrapping\AbstractCodeActionComputer.cs (1)
62private readonly List<SyntaxNode> _seenDocumentRoots = [];
Microsoft.CodeAnalysis.Features.Test.Utilities (17)
EditAndContinue\ActiveStatementsDescription.cs (4)
44var oldDocumentMap = new Dictionary<string, List<ActiveStatement>>(); 97Dictionary<string, List<ActiveStatement>> documentMap) 108var documentActiveStatements = documentMap.GetOrAdd(mappedSpan.Path, path => []); 138var map = new Dictionary<string, List<ActiveStatement>>();
EditAndContinue\EditAndContinueTestVerifier.cs (1)
155var allEdits = new List<SemanticEditInfo>();
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
46private protected readonly List<string> _telemetryLog = [];
EditAndContinue\MatchingPair.cs (1)
38public readonly List<MatchingPair> Pairs;
EditAndContinue\SourceMarkers.cs (9)
100var result = new List<(int id, TextSpan span)>(); 121var result = new List<List<TextSpan>>(); 146var result = new List<List<TextSpan>>(); 163var result = new List<TextSpan>(); 201public static List<T> SetListItem<T>(List<T> list, int i, T item) 208public static void EnsureSlot<T>(List<T> list, int i)
RelatedDocuments\AbstractRelatedDocumentsTests.cs (1)
35var results = new List<DocumentId>();
Microsoft.CodeAnalysis.Features.UnitTests (1)
FindUsages\DefinitionItemFactoryTests.cs (1)
94var failures = new List<Exception>();
Microsoft.CodeAnalysis.InteractiveHost (9)
Interactive\Core\InteractiveHost.Service.cs (4)
550var metadataReferences = new List<PortableExecutableReference>(); 623var attempts = new List<string>(); 731private static void DisplaySearchPaths(TextWriter writer, List<string> attemptedFilePaths) 777var displayedDiagnostics = new List<Diagnostic>();
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
Microsoft.CodeAnalysis.LanguageServer (7)
Contracts\ITelemetryReporter.cs (2)
10void Log(string name, List<KeyValuePair<string, object?>> properties); 12void LogBlockEnd(int blockId, List<KeyValuePair<string, object?>> properties, CancellationToken cancellationToken);
HostWorkspace\Razor\TelemetryReporterWrapper.cs (1)
12public void ReportEvent(string name, List<KeyValuePair<string, object?>> properties)
Logging\RoslynLogger.cs (4)
24private static readonly ObjectPool<List<KeyValuePair<string, object?>>> s_propertyPool = new(() => []); 107var properties = pooledObject.Object; 148var properties = pooledObject.Object; 241private static void AddProperties(List<KeyValuePair<string, object?>> properties, FunctionId id, LogMessage logMessage, int? delta)
Microsoft.CodeAnalysis.LanguageServer.Protocol (15)
Features\DecompiledSource\AssemblyResolver.cs (3)
26private readonly Dictionary<string, List<IAssemblySymbol>> _cache = []; 40if (!_cache.TryGetValue(reference.Identity.Name, out var list)) 78if (!_cache.TryGetValue(name.Name, out var assemblies))
Handler\Highlights\DocumentHighlightHandler.cs (1)
80var keywordSpans = new List<TextSpan>();
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
127private readonly List<ExpansionField> _tokens = [];
Handler\ProjectContext\GetTextDocumentWithContextHandler.cs (1)
43var contexts = new List<VSProjectContext>();
Handler\ResolveCache.cs (2)
45private readonly List<(long ResultId, TCacheEntry CacheEntry)> _resultIdToCachedItem = []; 115public List<(long ResultId, TCacheEntry CacheEntry)> GetCacheContents()
Protocol\Converters\NaturalObjectConverter.cs (1)
58var list = new List<object?>();
Protocol\Converters\SumConverter.cs (4)
47var allUnionTypeInfosSet = new List<UnionTypeInfo>(); 48List<UnionTypeInfo>? primitiveUnionTypeInfosSet = null; 49List<UnionTypeInfo>? arrayUnionTypeInfosSet = null; 50List<UnionTypeInfo>? objectUnionTypeInfosSet = null;
Protocol\Internal\Converters\ClassifiedTextElementConverter.cs (1)
19List<ClassifiedTextRun> objects = [];
Protocol\Internal\Converters\ContainerElementConverter.cs (1)
24List<object> objects = [];
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (14)
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (4)
160private static void VerifyValuesInServer(LspTestWorkspace workspace, List<string> expectedValues) 191public List<ConfigurationItem> ReceivedConfigurationItems { get; } = []; 192public List<string> MockClientSideValues { get; } = []; 209public List<string> WorkspaceConfigurationName(ConfigurationParams configurationParams, CancellationToken _)
Diagnostics\DiagnosticRegistrationTests.cs (1)
113private readonly List<Registration> _registrations = [];
Diagnostics\NonLocalDiagnosticTests.cs (1)
48var orderedDiagnostics = results[0].Diagnostics!.OrderBy(d => d.Code!.Value.Value).ToList();
Ordering\RequestOrderingTests.cs (6)
117var waitables = StartTestRun(testLspServer, requests); 143var waitables = StartTestRun(testLspServer, requests, cts.Token); 172var waitables = StartTestRun(testLspServer, requests); 284var waitables = StartTestRun(testLspServer, requests); 296private static List<Task<TestResponse?>> StartTestRun(TestLspServer testLspServer, TestRequest[] requests, CancellationToken cancellationToken = default) 298var waitables = new List<Task<TestResponse?>>();
References\FindAllReferencesHandlerTests.cs (1)
438.SelectMany(r => (List<object>)r).Select(r => JsonSerializer.Deserialize<T>((JsonElement)r, ProtocolConversions.LspJsonSerializerOptions))];
Symbols\DocumentSymbolsTests.cs (1)
267var children = parent.Children?.ToList() ?? [];
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (136)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
64var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 67var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 74List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 75List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 153private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 169List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
164public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 186public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
67List<Exception>? exceptions = null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Microsoft.CodeAnalysis.PublicApiAnalyzers (122)
DeclarePublicApiAnalyzer.cs (5)
115var errors = new List<Diagnostic>(); 135bool TryGetAndValidateApiFiles(CompilationStartAnalysisContext context, bool isPublic, List<Diagnostic> errors, [NotNullWhen(true)] out ImmutableDictionary<AdditionalText, SourceText>? additionalFiles, [NotNullWhen(true)] out ApiData? shippedData, [NotNullWhen(true)] out ApiData? unshippedData) 198private static bool TryGetApiData(CompilationStartAnalysisContext context, bool isPublic, List<Diagnostic> errors, [NotNullWhen(true)] out ImmutableDictionary<AdditionalText, SourceText>? additionalFiles, [NotNullWhen(true)] out ApiData? shippedData, [NotNullWhen(true)] out ApiData? unshippedData) 381private static bool ValidateApiFiles(ImmutableDictionary<AdditionalText, SourceText> additionalFiles, ApiData shippedData, ApiData unshippedData, bool isPublic, List<Diagnostic> errors) 409private static void ValidateApiList(ImmutableDictionary<AdditionalText, SourceText> additionalFiles, Dictionary<string, ApiLine> publicApiMap, ImmutableArray<ApiLine> apiList, bool isPublic, List<Diagnostic> errors)
DeclarePublicApiAnalyzer.Impl.cs (2)
237List<Location> locationsToReport = []; 511var nestedNamespaceOrTypesApiNames = new List<string>(nestedNamespaceOrTypeMembers.Length);
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (21)
AnnotatePublicApiFix.cs (5)
87List<string> lines = DeclarePublicApiFix.GetLinesFromSourceText(sourceText); 105private readonly List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> _diagnosticsToFix; 108public FixAllAdditionalDocumentChangeAction(string title, Solution solution, List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> diagnosticsToFix) 119var updatedPublicSurfaceAreaText = new List<(DocumentId, SourceText)>(); 203var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>();
DeclarePublicApiFix.cs (10)
136List<string> lines = GetLinesFromSourceText(sourceText); 149static void insertInList(List<string> list, string name) 171List<string> lines = GetLinesFromSourceText(sourceText); 179internal static List<string> GetLinesFromSourceText(SourceText? sourceText) 186var lines = new List<string>(); 223private readonly List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> _diagnosticsToFix; 228public FixAllAdditionalDocumentChangeAction(string title, DocumentId? apiDocId, Solution solution, List<KeyValuePair<Project, ImmutableArray<Diagnostic>>> diagnosticsToFix, bool isPublic) 241var updatedPublicSurfaceAreaText = new List<KeyValuePair<DocumentId, SourceText>>(); 242var addedPublicSurfaceAreaText = new List<KeyValuePair<ProjectId, SourceText>>(); 354var diagnosticsToFix = new List<KeyValuePair<Project, ImmutableArray<Diagnostic>>>();
NullableEnablePublicApiFix.cs (4)
73private readonly List<Project> _projectsToFix; 76public FixAllAdditionalDocumentChangeAction(string title, Solution solution, List<Project> projectsToFix) 87var updatedSurfaceAreaText = new List<(DocumentId, SourceText)>(); 123var projectsToFix = new List<Project>();
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
40List<SyntaxNode> statements = []; 353List<SyntaxNode> statements = [];
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
451List<(string, string)> options = new List<(string, string)>();
Microsoft.CodeAnalysis.Rebuild.UnitTests (6)
BasicDeterministicKeyBuilderTests.cs (1)
194var args = new List<string>(new[] { filePath, "/nostdlib", "/vbruntime-", "/langversion:15" });
CSharpDeterministicKeyBuilderTests.cs (1)
370var args = new List<string>(new[] { filePath, "/nostdlib", "/langversion:9", "/checksumalgorithm:sha256" });
RebuildCommandLineTests.cs (4)
212var list = new List<object?[]>(); 334var args = new List<string>(commandLine.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)); 406var list = new List<object?[]>(); 499var args = new List<string>(commandLine.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries));
Microsoft.CodeAnalysis.Remote.ServiceHub (21)
Host\TestUtils.cs (9)
55var mismatch1 = assetMapFromNewSolution.Where(p => !allChecksumsFromRequest.Contains(p.Key)).ToList(); 59var mismatch2 = assetMapFromIncrementalSolution.Where(p => !allChecksumsFromRequest.Contains(p.Key)).ToList(); 63var mismatch3 = assetMapFromNewSolution.Where(p => !assetMapFromIncrementalSolution.ContainsKey(p.Key)).ToList(); 66var mismatch4 = assetMapFromIncrementalSolution.Where(p => !assetMapFromNewSolution.ContainsKey(p.Key)).ToList(); 70var mismatch5 = await GetAssetFromAssetServiceAsync(allChecksumsFromRequest.Except(assetMapFromNewSolution.Keys)).ConfigureAwait(false); 73var mismatch6 = await GetAssetFromAssetServiceAsync(allChecksumsFromRequest.Except(assetMapFromIncrementalSolution.Keys)).ConfigureAwait(false); 85static void AppendMismatch(List<KeyValuePair<Checksum, object>> items, string title, StringBuilder stringBuilder) 101async Task<List<KeyValuePair<Checksum, object>>> GetAssetFromAssetServiceAsync(IEnumerable<Checksum> checksums) 103var items = new List<KeyValuePair<Checksum, object>>();
Services\DiagnosticAnalyzer\PerformanceQueue.cs (4)
58public void GetPerformanceData(List<(string analyzerId, double average, double stddev)> aggregatedPerformanceDataPerAnalyzer) 70using var pooledList = SharedPools.Default<List<double>>().GetPooledObject(); 83var list = pooledList.Object; 116private static (double average, double stddev) GetAverageAndAdjustedStandardDeviation(List<double> data)
Services\DiagnosticAnalyzer\PerformanceTrackerService.cs (3)
105public void GenerateReport(List<AnalyzerInfoForPerformanceReporting> analyzerInfos, bool forSpanAnalysis) 107using var pooledRaw = SharedPools.Default<List<(string analyzerId, double average, double stddev)>>().GetPooledObject(); 109var rawPerformanceData = pooledRaw.Object;
Services\ProcessTelemetry\RemoteProcessTelemetryService.PerformanceReporter.cs (1)
55using var pooledObject = SharedPools.Default<List<AnalyzerInfoForPerformanceReporting>>().GetPooledObject();
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (4)
272var logs = CollectFilePaths(logPath, "*.svclog", shouldExcludeLogFile: (name) => !name.Contains("Roslyn") && !name.Contains("LSPClient")); 291var logs = CollectFilePaths(logPath, "*.log", shouldExcludeLogFile: (name) => !name.Contains("-" + ServiceDescriptor.ServiceNameTopLevelPrefix) && 305private static List<string> CollectFilePaths(string logDirectoryPath, string logFileExtension, Func<string, bool> shouldExcludeLogFile) 307var paths = new List<string>();
Microsoft.CodeAnalysis.ResxSourceGenerator (116)
AbstractResxGenerator.cs (1)
503var getResourceStringAttributes = new List<string>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
Microsoft.CodeAnalysis.Scripting (17)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (9)
52private readonly Dictionary<string, List<LoadedAssemblyInfo>> _loadedAssembliesBySimpleName; 55private readonly Dictionary<string, List<AssemblyIdentityAndLocation>> _dependenciesWithLocationBySimpleName; 90_loadedAssembliesBySimpleName = new Dictionary<string, List<LoadedAssemblyInfo>>(AssemblyIdentityComparer.SimpleNameComparer); 91_dependenciesWithLocationBySimpleName = new Dictionary<string, List<AssemblyIdentityAndLocation>>(); 199if (_loadedAssembliesBySimpleName.TryGetValue(identity.Name, out var existingInfos)) 212if (_dependenciesWithLocationBySimpleName.TryGetValue(simpleName, out var sameSimpleNameAssemblyIdentities)) 265if (_loadedAssembliesBySimpleName.TryGetValue(identity.Name, out var loadedInfos)) 389if (_loadedAssembliesBySimpleName.TryGetValue(identity.Name, out var infos)) 399if (_dependenciesWithLocationBySimpleName.TryGetValue(identity.Name, out var sameSimpleNameIdentities))
Hosting\CommandLine\CommandLineRunner.cs (3)
110var diagnosticsInfos = new List<DiagnosticInfo>(); 150private ScriptOptions? GetScriptOptions(CommandLineArguments arguments, string? scriptPathOpt, CommonMessageProvider messageProvider, List<DiagnosticInfo> diagnostics, bool emitDebugInformation) 157var resolvedReferences = new List<MetadataReference>();
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (4)
287var members = new List<FormattedMember>(); 325private void FormatObjectMembersRecursive(List<FormattedMember> result, object obj, bool includeNonPublic, ref int lengthLimit) 329var members = new List<MemberInfo>(); 490private bool AddMember(List<FormattedMember> members, FormattedMember member, ref int remainingLength)
Hosting\SynchronizedList.cs (1)
15private readonly List<T> _list = new List<T>();
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ScriptTestBase.cs (1)
14private readonly List<MetadataImageReference> _referenceList = new List<MetadataImageReference>();
Microsoft.CodeAnalysis.Test.Utilities (70)
Assert\ArtifactUploadUtil.cs (2)
28private readonly List<string> _filePaths = new List<string>(); 29private readonly List<string> _directoryPaths = new List<string>();
Assert\AssertEx.cs (2)
873var list = items.ToList(); 971List<(int, Exception)> exceptions = null;
CommonTestBase.cs (3)
370var references = new List<MetadataReference>(); 457var references = new List<MetadataReference>(); 483private void AddReferencedCompilations(IEnumerable<Compilation>? referencedCompilations, List<MetadataReference> references)
Compilation\CompilationDifference.cs (1)
144var actual = new List<string>();
CompilationVerifier.cs (10)
79List<ImmutableArray<byte>> images = 584var dependencyList = new List<ModuleData>(); 873var members = testData.Module.GetAllSynthesizedMembers() 886internal static void EmitReferences(Compilation compilation, HashSet<string> fullNameSet, List<ModuleData> dependencies, AssemblyIdentity corLibIdentity) 948List<ModuleData> dependencies, 958var referencedCompilations = findReferencedCompilations(compilation); 987static List<Compilation> findReferencedCompilations(Compilation original) 989var list = new List<Compilation>(); 1011static List<Compilation> findDirectReferencedCompilations(Compilation compilation) 1013var list = new List<Compilation>();
Diagnostics\CommonDiagnosticAnalyzers.cs (15)
2985public readonly List<SyntaxTree> AnalyzedTrees = new(); 2986public readonly List<SemanticModel> AnalyzedSemanticModels = new(); 2987public readonly List<ISymbol> AnalyzedSymbols = new(); 2988public readonly List<ISymbol> AnalyzedSymbolStartSymbols = new(); 2989public readonly List<ISymbol> AnalyzedSymbolEndSymbols = new(); 2990public readonly List<IOperation> AnalyzedOperations = new(); 2991public readonly List<ISymbol> AnalyzedOperationBlockSymbols = new(); 2992public readonly List<IOperation> AnalyzedOperationsInsideOperationBlock = new(); 2993public readonly List<ISymbol> AnalyzedOperationBlockStartSymbols = new(); 2994public readonly List<ISymbol> AnalyzedOperationBlockEndSymbols = new(); 2995public readonly List<SyntaxNode> AnalyzedSyntaxNodes = new(); 2996public readonly List<ISymbol> AnalyzedCodeBlockSymbols = new(); 2997public readonly List<SyntaxNode> AnalyzedSyntaxNodesInsideCodeBlock = new(); 2998public readonly List<ISymbol> AnalyzedCodeBlockStartSymbols = new(); 2999public readonly List<ISymbol> AnalyzedCodeBlockEndSymbols = new();
Diagnostics\DiagnosticExtensions.cs (2)
75var unmatchedActualDescription = actual.Select(d => new DiagnosticDescription(d, errorCodeOnly, includeDefaultSeverity, includeEffectiveSeverity)) 77var unmatchedActualIndex = actual.Select((_, i) => i).ToList();
Diagnostics\OperationTestAnalyzer.cs (6)
1693var nullList = new List<IOperation>(); 1694var paramsList = new List<IOperation>(); 1718private readonly List<IOperation> _nullList; 1719private readonly List<IOperation> _paramsList; 1721public Walker(List<IOperation> nullList, List<IOperation> paramsList)
Diagnostics\ThrowingDiagnosticAnalyzer.cs (1)
43private readonly List<string> _throwOnList = new List<string>();
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
173var missingElements = expectedSubset.GroupJoin(actualSuperset, e => e, a => a, (e, a) => new { Element = e, IsMissing = !a.Any() })
FX\DirectoryHelper.cs (1)
36var files = new List<string>();
InstrumentationChecker.cs (1)
363private readonly List<string> _snippetExpectations;
MarkedSource\MarkupTestFile.cs (3)
70var matches = new List<(int matchIndex, string name)>(); 90var orderedMatches = matches.OrderBy((t1, t2) => t1.matchIndex - t2.matchIndex).ToList(); 202private static void AddMatch(string input, string value, int currentIndex, List<(int, string)> matches)
MarkedSource\SourceWithMarkedNodes.cs (1)
133public static Func<SyntaxNode, SyntaxNode> GetSyntaxMap(SourceWithMarkedNodes source0, SourceWithMarkedNodes source1, List<SyntaxNode> unmappedNodes = null)
Metadata\ILBuilderVisualizer.cs (2)
75private static List<HandlerSpan>? GetHandlerSpans(ImmutableArray<Cci.ExceptionHandlerRegion> regions) 82var spans = new List<HandlerSpan>();
Metadata\ILValidation.cs (1)
329var rvasAndNames = new List<(int rva, string name)>();
Metadata\MetadataSignatureUnitTestHelper.cs (6)
29var expected = new List<string>(); 30var actual = new List<string>(); 38ref expectedSignature, out var actualSignatures)) 76ref string expectedSignature, out List<string> actualSignatures) 141private static void TriggerSignatureMismatchFailure(List<string> expectedSignatures, List<string> actualSignatures)
Mocks\TestMissingMetadataReferenceResolver.cs (1)
35public readonly List<ReferenceAndIdentity> ResolutionAttempts = new List<ReferenceAndIdentity>();
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 (4)
24public List<byte> Contents => TestableFile.Contents; 120var args = new List<string>(); 167var args = new List<string>(); 212private static void AppendNetCoreApp(TestableFileSystem fileSystem, string sdkPath, List<string> commandLineArgs, bool includeVisualBasicRuntime)
TestableFile.cs (1)
61public List<byte> Contents { get; } = new List<byte>();
Win32Res.cs (1)
140var result = new List<Tuple<string, string>>();
Microsoft.CodeAnalysis.Threading.Package (6)
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
Microsoft.CodeAnalysis.UnitTests (84)
AnalyzerAssemblyLoaderTests.cs (3)
1168var analyzerFilePaths = new List<string>(); 1830public List<string> CalledFor { get; } = []; 1849public List<AssemblyName> CalledFor { get; } = [];
Analyzers\AnalyzerFileReferenceTests.cs (9)
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>(); 447var errors = buildAndLoadGeneratorAndReturnAnyErrors(".NETCoreApp,Version=v5.0"); 463List<AnalyzerLoadFailureEventArgs> buildAndLoadGeneratorAndReturnAnyErrors(string? targetFramework) 494List<AnalyzerLoadFailureEventArgs> errors = new List<AnalyzerLoadFailureEventArgs>();
AsyncQueueTests.cs (2)
77var list = new List<Task<int>>(); 118var list = new List<Task<int>>();
CachingLookupTests.cs (2)
88List<T> l1 = e1.ToList(); 89List<T> l2 = e2.ToList();
Collections\Extensions\EnumerableExtensionsTests.cs (2)
101var result = new List<int>(); 146var seq = new List<int>() { 1, 2, 3 };
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (5)
110List<T> sourceElements = source.ToList(); 199List<T> expected = set.ToList(); 213List<T> expected = set.ToList(); 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 (4)
200var list = new List<KeyValuePair<int, int>> { new KeyValuePair<int, int>(3, 5), new KeyValuePair<int, int>(8, 10) }; 245var list = map.ToList(); 270private static List<T> ToListNonGeneric<T>(IEnumerable sequence) 274var list = new List<T>();
Collections\ImmutableListTestBase.cs (16)
147var expected = list.ToList().FindAll(n => n % 2 == 1); 176var bclList = list.ToList(); 230var bclList = list.ToList(); 335var expected = list.ToList().Select(x => converter(x)).ToList(); 345var bclList = list.ToList(); 351var expected = bclList.GetRange(index, count); 410var expected = scenario.ToList(); 412var actual = this.SortTestHelper(scenario); 450var basis = new List<int>(Enumerable.Range(1, 50).Select(n => n * 2)); 492var basis = new List<int>(inputData); 531private protected abstract List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list); 533private protected abstract List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, Comparison<T> comparison); 535private protected abstract List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, IComparer<T>? comparer); 537private protected abstract List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, int index, int count, IComparer<T>? comparer); 547/// implementation of <see cref="IList"/> behave the same way <see cref="List{T}"/> does. 571var bclList = list.ToList();
Collections\ImmutableSegmentedListBuilderTest.cs (6)
434var bcl = list.ToList(); 444var expected = list.ToList(); 518private protected override List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list) 525private protected override List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, Comparison<T> comparison) 532private protected override List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, IComparer<T>? comparer) 539private protected override List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, int index, int count, IComparer<T>? comparer)
Collections\ImmutableSegmentedListTest.cs (9)
42var expected = new List<int>(); 221var list = new List<int>(); 448var expectedList = new List<string>(new[] { "Microsoft", "Windows", "Bing", "Visual Studio", "Comics", "Computers", "Laptops" }); 842var expected = list.ToList(); 850var expected = list.ToList(); 856private protected override List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list) 861private protected override List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, Comparison<T> comparison) 866private protected override List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, IComparer<T>? comparer) 871private protected override List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, int index, int count, IComparer<T>? comparer)
Collections\ImmutableSetTest.cs (5)
234internal static List<T> ToListNonGeneric<T>(System.Collections.IEnumerable sequence) 238var list = new List<T>(); 327var results = new List<SetTriad> 444var nonGenericEnumerableList = ToListNonGeneric<T>(set); 447var list = set.ToList();
Collections\ImmutablesTestBase.nonnetstandard.cs (1)
42var equivalentSequence = objectUnderTest.ToList();
Collections\IndexOfTests.cs (2)
51var bclList = list.ToList(); 119var bclList = list.ToList();
Collections\List\ICollection.Generic.Tests.cs (2)
245List<T> items = collection.ToList(); 269List<T> itemsToRemove = collection.ToList();
Collections\List\IList.Generic.Tests.cs (1)
386List<T> expectedList = list.ToList();
Collections\List\TestBase.Generic.cs (4)
139List<T>? match = null; 185List<T> list = new List<T>(count); 188List<T>? match = null; 278List<T>? match = null;
Collections\TemporaryArrayTests.cs (2)
239static List<ImmutableArray<T>> permute<T>(T[] values) 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>();
Text\TextChangeTests.cs (1)
266var result = newText.GetTextChanges(text).ToList();
Win32Res.cs (3)
27var list = CvtResFile.ReadResFile(new System.IO.MemoryStream((byte[])res)); 36var list = CvtResFile.ReadResFile(new System.IO.MemoryStream((byte[])res)); 138var resources = CvtResFile.ReadResFile(strm);
Microsoft.CodeAnalysis.VisualBasic (3)
CommandLine\VisualBasicCommandLineArguments.vb (2)
66diagnostics As List(Of DiagnosticInfo), 68resolved As List(Of MetadataReference)
Lowering\SyntheticBoundNodeFactory.vb (1)
730Public Function SwitchSection(values As List(Of Integer), ParamArray statements As BoundStatement()) As BoundCaseBlock
Microsoft.CodeAnalysis.Workspaces (279)
Classification\AbstractClassificationService.cs (1)
220protected static void AddRange(ArrayBuilder<ClassifiedSpan> temp, List<ClassifiedSpan> result)
Classification\Classifier.cs (1)
103var allClassifications = new List<ClassifiedSpan>(semanticClassifications.Where(s => s.TextSpan.OverlapsWith(textSpan)));
CodeCleanup\AbstractCodeCleanerService.cs (7)
116List<(SyntaxAnnotation previousAnnotation, SyntaxAnnotation nextAnnotation)> annotations, 269private static (SyntaxNode newNode, List<(SyntaxAnnotation previous, SyntaxAnnotation next)> annotations) AnnotateNodeForTextSpans( 276var tokenAnnotationMap = new Dictionary<SyntaxToken, List<SyntaxAnnotation>>(); 277var annotations = new List<(SyntaxAnnotation previous, SyntaxAnnotation next)>(); 327var tokenSpans = new List<TextSpan>(); 431private static bool CleanupWholeNode(List<(SyntaxAnnotation previous, SyntaxAnnotation next)> annotations) 593private static SyntaxNode InjectAnnotations(SyntaxNode node, Dictionary<SyntaxToken, List<SyntaxAnnotation>> map)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (10)
23private Dictionary<DocumentId, List<DiagnosticData>>? _lazySyntaxLocals = null; 24private Dictionary<DocumentId, List<DiagnosticData>>? _lazySemanticLocals = null; 25private Dictionary<DocumentId, List<DiagnosticData>>? _lazyNonLocals = null; 27private List<DiagnosticData>? _lazyOthers = null; 48ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, DocumentId documentId, ImmutableArray<Diagnostic> diagnostics) 93private static void AddDocumentDiagnostic(ref Dictionary<DocumentId, List<DiagnosticData>>? map, TextDocument document, Diagnostic diagnostic) 119Dictionary<DocumentId, List<DiagnosticData>>? dummy = null; 127ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, Diagnostic diagnostic) 180ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, ImmutableArray<Diagnostic> diagnostics) 186private static ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> Convert(Dictionary<DocumentId, List<DiagnosticData>>? map)
Differencing\EditScript.cs (7)
22var edits = new List<Edit<TNode>>(); 39private void AddUpdatesInsertsMoves(List<Edit<TNode>> edits) 70private void ProcessNode(List<Edit<TNode>> edits, TNode x) 140private void AddDeletes(List<Edit<TNode>> edits) 161private void AlignChildren(List<Edit<TNode>> edits, TNode w, TNode x) 180List<TNode> s1 = null; 191List<TNode> s2 = null;
Differencing\Match.cs (9)
70out List<TNode>[] nodes, 73nodes = new List<TNode>[labelCount]; 88var list = nodes[label]; 102private void ComputeMatch(List<TNode>[] nodes1, List<TNode>[] nodes2) 146private void ComputeMatchForLabel(int label, List<TNode> s1, List<TNode> s2) 157private void ComputeMatchForLabel(List<TNode> s1, List<TNode> s2, int tiedToAncestor, double maxAcceptableDistance)
Editing\SymbolEditor.cs (2)
154var symbols = DocumentationCommentId.GetSymbolsForDeclarationId(symbolId, comp).ToList(); 408var memberDecls = this.GetDeclarations(currentMember).ToList();
Editing\SyntaxEditor.cs (2)
57private readonly List<Change> _changes = []; 312private readonly List<SyntaxNode> _newNodes = [.. newNodes];
FindSymbols\FindReferences\DependentProjectsFinder.cs (2)
198using var _1 = PooledDictionary<ProjectId, List<ProjectId>>.GetInstance(out var projectIdsToReferencingSubmissionIds); 233if (projectIdsToReferencingSubmissionIds.TryGetValue(toProcess, out var submissionIds))
FindSymbols\ReferenceLocationExtensions.cs (4)
16public static async Task<Dictionary<ISymbol, List<Location>>> FindReferencingSymbolsAsync( 22var result = new Dictionary<ISymbol, List<Location>>(); 51Dictionary<ISymbol, List<Location>> result) 63if (!result.TryGetValue(containingSymbol, out var locations))
FindSymbols\StreamingProgressCollector.cs (1)
27private readonly Dictionary<ISymbol, List<ReferenceLocation>> _symbolToLocations = [];
FindSymbols\SymbolFinder_Callers.cs (1)
51var results = new List<SymbolCallerInfo>();
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
443var orderedKeys1 = _inheritanceMap.Keys.Order().ToList();
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (10)
254private static readonly ObjectPool<List<string>> s_stringListPool = SharedPools.Default<List<string>>(); 260private readonly List<MetadataDefinition> _allTypeDefinitions = []; 558var baseTypeNameParts = s_stringListPool.Allocate(); 587List<string> simpleNames) 603List<string> simpleNames) 626List<string> simpleNames) 660List<string> simpleNames) 675List<string> simpleNames) 699private readonly void EnsureParentsAndChildren(List<string> simpleNames)
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (4)
36private static readonly ObjectPool<List<Dictionary<string, string>>> s_aliasMapListPool 37= SharedPools.Default<List<Dictionary<string, string>>>(); 88protected static List<Dictionary<string, string>> AllocateAliasMapList() 120protected static void FreeAliasMapList(List<Dictionary<string, string>> list)
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (6)
22var partitionedChanges = PartitionChangesForDocument(documentWithChanges.UnmergedChanges, originalSourceText); 31private static List<List<TextChange>> PartitionChangesForDocument(IEnumerable<TextChange> changes, SourceText originalSourceText) 33var partitionedChanges = new List<List<TextChange>>(); 34var currentPartition = new List<TextChange>
Log\StatisticResult.cs (1)
14public static StatisticResult FromList(List<int> values)
Rename\ConflictEngine\ConflictingIdentifierTracker.cs (4)
16private readonly Dictionary<string, List<SyntaxToken>> _currentIdentifiersInScope = new Dictionary<string, List<SyntaxToken>>(identifierComparer); 30if (_currentIdentifiersInScope.TryGetValue(name, out var conflictingTokens)) 73var currentIdentifiers = _currentIdentifiersInScope[name];
Rename\ConflictEngine\ConflictResolver.Session.cs (3)
97var topologicallySortedProjects = dependencyGraph.GetTopologicallySortedProjects(_cancellationToken).ToList(); 277var ignoreErrorCodes = new List<string> 684var possibleNameConflictsList = new List<string>();
Rename\ConflictEngine\MutableConflictResolution.cs (1)
28public readonly List<RelatedLocation> RelatedLocations = [];
Rename\ConflictEngine\RenamedSpansTracker.cs (12)
25private readonly Dictionary<DocumentId, List<(TextSpan oldSpan, TextSpan newSpan)>> _documentToModifiedSpansMap = []; 26private readonly Dictionary<DocumentId, List<MutableComplexifiedSpan>> _documentToComplexifiedSpansMap = []; 33if (!_documentToModifiedSpansMap.TryGetValue(documentId, out var spans)) 42internal void AddComplexifiedSpan(DocumentId documentId, TextSpan oldSpan, TextSpan newSpan, List<(TextSpan oldSpan, TextSpan newSpan)> modifiedSubSpans) 44if (!_documentToComplexifiedSpansMap.TryGetValue(documentId, out var spans)) 56var documentReplacementSpans = _documentToModifiedSpansMap.TryGetValue(documentId, out var modifiedSpans) 66var documentComplexifiedSpans = _documentToComplexifiedSpansMap.TryGetValue(documentId, out var complexifiedSpans) 122TextSpan originalSpan, TextSpan newSpan, List<(TextSpan oldSpan, TextSpan newSpan)> modifiedSubSpans) 126public List<(TextSpan oldSpan, TextSpan newSpan)> ModifiedSubSpans = modifiedSubSpans; 172if (_documentToModifiedSpansMap.TryGetValue(documentId, out var modifiedSpans)) 177if (_documentToComplexifiedSpansMap.TryGetValue(documentId, out var complexifiedSpans)) 197var modifiedSubSpans = new List<(TextSpan oldSpan, TextSpan newSpan)>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
262var results = new List<RenameLocation>();
Serialization\AbstractOptionsSerializationService.cs (4)
134List<KeyValuePair<string, ReportDiagnostic>> specificDiagnosticOptionsList = null; 149var specificDiagnosticOptions = specificDiagnosticOptionsList ?? []; 220List<KeyValuePair<string, string>> featuresList = null; 235var features = featuresList ?? [];
Shared\Extensions\INamespaceSymbolExtensions.cs (6)
17private static readonly ConditionalWeakTable<INamespaceSymbol, List<string>> s_namespaceToNameMap = new(); 22private static List<string> GetNameParts(INamespaceSymbol? namespaceSymbol) 24var result = new List<string>(); 29private static void GetNameParts(INamespaceSymbol? namespaceSymbol, List<string> result) 42var names1 = s_namespaceToNameMap.GetValue(n1, GetNameParts); 43var names2 = s_namespaceToNameMap.GetValue(n2, GetNameParts);
Shared\Extensions\ISymbolExtensions.cs (1)
335var result = new List<XNode>();
Shared\TestHooks\AsynchronousOperationListener.cs (1)
23private List<DiagnosticAsyncToken> _diagnosticTokenList = [];
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (2)
126List<Task>? tasks = null; 197public List<AsynchronousOperationListener.DiagnosticAsyncToken> GetTokens()
Shared\Utilities\ExtensionOrderer.cs (1)
25var list = extensions.ToList();
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
348List<string> originalPaths;
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
64var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 67var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 74List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 75List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 153private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 169List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
164public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 186public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
67List<Exception>? exceptions = null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Workspace\CommandLineProject.cs (3)
65var boundMetadataReferences = commandLineArguments.ResolveMetadataReferences(commandLineMetadataReferenceResolver).Distinct().ToList(); 78var boundAnalyzerReferences = commandLineArguments.ResolveAnalyzerReferences(analyzerLoader).Distinct().ToList(); 147var documents = new List<DocumentInfo>();
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
59private readonly List<DocumentId> _documentsRemovedInBatch = [];
Workspace\ProjectSystem\ProjectSystemProject.cs (18)
52private readonly List<(string path, MetadataReferenceProperties properties)> _metadataReferencesAddedInBatch = []; 53private readonly List<(string path, MetadataReferenceProperties properties)> _metadataReferencesRemovedInBatch = []; 54private readonly List<ProjectReference> _projectReferencesAddedInBatch = []; 55private readonly List<ProjectReference> _projectReferencesRemovedInBatch = []; 70private readonly List<string> _analyzersAddedInBatch = []; 75private readonly List<string> _analyzersRemovedInBatch = []; 77private readonly List<Func<SolutionChangeAccumulator, ProjectUpdateState, ProjectUpdateState>> _projectPropertyModificationsInBatch = []; 676List<(string path, MetadataReferenceProperties properties)> metadataReferencesRemovedInBatch, 677List<(string path, MetadataReferenceProperties properties)> metadataReferencesAddedInBatch) 714var projectReferencesCreated = new List<ProjectReference>(); 748List<ProjectReference> projectReferencesRemovedInBatch, 749List<ProjectReference> projectReferencesAddedInBatch) 767List<string> analyzersRemovedInBatch, 768List<string> analyzersAddedInBatch) 787List<string> analyzersRemoved, 788List<string> analyzersAdded) 1337var newList = projectReferencesInWorkspace.ToList(); 1430private static void ClearAndZeroCapacity<T>(List<T> list)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
506var distinctProjectsForOutputPath = projectsForOutputPath.Distinct().ToList();
Workspace\ProjectSystem\ProjectSystemProjectFactory.ProjectUpdateState.cs (2)
133public ProjectUpdateState WithIncrementalAnalyzerReferencesRemoved(List<string> references) 139public ProjectUpdateState WithIncrementalAnalyzerReferencesAdded(List<string> references)
Workspace\ProjectSystem\SolutionChangeAccumulator.cs (1)
21private readonly List<DocumentId> _documentIdsRemoved = [];
Workspace\Solution\ProjectDependencyGraph.cs (5)
390using var resultList = SharedPools.Default<List<ProjectId>>().GetPooledObject(); 399List<ProjectId> resultList, 442using var results = SharedPools.Default<List<IEnumerable<ProjectId>>>().GetPooledObject(); 450private void ComputeDependencySets(HashSet<ProjectId> seenProjects, List<IEnumerable<ProjectId>> results, CancellationToken cancellationToken) 466using var sortedProjects = SharedPools.Default<List<ProjectId>>().GetPooledObject();
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (1)
25var referencedProjectIds = projectReferences
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
493var newReferences = new List<MetadataReference>();
Workspace\Solution\TextDocumentStates.cs (2)
145using var pooledIds = SharedPools.Default<List<DocumentId>>().GetPooledObject(); 146var ids = pooledIds.Object;
Workspace\Workspace.cs (2)
1291var updatedDocumentIds = new List<DocumentId>(); 1297var updatedDocumentIds = data.updatedDocumentIds;
Workspace\Workspace_Editor.cs (2)
54List<DocumentId> docIds; 77var copyOfOpenDocs = openDocs.ToList();
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
MSBuild\BuildHostProcessManager.cs (1)
208List<BuildHostProcess> processesToDispose;
MSBuild\MSBuildProjectLoader.Worker.cs (2)
65private readonly Dictionary<ProjectId, List<ProjectReference>> _projectIdToProjectReferencesMap; 225var idsAndFileInfos = new List<(ProjectId id, ProjectFileInfo fileInfo)>();
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
378=> _projectIdToProjectReferencesMap.TryGetValue(from, out var references)
Rpc\RpcClient.cs (4)
121public Task InvokeAsync(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken) 127public async Task<T?> InvokeNullableAsync<T>(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken) where T : class 133public async Task<T> InvokeAsync<T>(int targetObject, string methodName, List<object?> parameters, CancellationToken cancellationToken) where T : notnull 140private async Task<object?> InvokeCoreAsync(int targetObject, string methodName, List<object?> parameters, Type? expectedReturnType, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (41)
Build\ProjectBuildManager.cs (1)
302var targets = new List<string>(requiredTargets);
MSBuild\Logging\DiagnosticLog.cs (1)
13private readonly List<DiagnosticLogItem> _items = [];
MSBuild\ProjectFile\ProjectFile.cs (1)
459var items = references.Where(it => it.EvaluatedInclude.StartsWith(partialName, StringComparison.OrdinalIgnoreCase)).ToList();
Rpc\RpcServer.cs (1)
97var remainingTasks = new List<Task>(capacity: runningTasks.Count);
src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (4)
49public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments) 54public static List<string> SplitCommandLineIntoArguments(string commandLine, bool removeHashComments, out char? illegalChar) 56var list = new List<string>(); 61public static void SplitCommandLineIntoArguments(ReadOnlySpan<char> commandLine, bool removeHashComments, StringBuilder builder, List<string> list, out char? illegalChar)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (24)
RpcTests.cs (1)
249private readonly List<TaskCompletionSource<object?>> _completionSources = [];
SolutionGeneration.cs (3)
66var list = new List<(string, object)>(); 120var documents = inputs.OfType<DocumentBuilder>().ToList(); 122var properties = inputs.OfType<PropertyBuilder>().ToList();
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
97var remainingTasks = new List<Task>(capacity: runningTasks.Count);
VisualStudioMSBuildWorkspaceTests.cs (19)
84var references = vbProject.MetadataReferences.ToList(); 94var compReferences = compilation.References.ToList(); 769var documents = project.Documents.ToList(); 797var refs = project.MetadataReferences.ToList(); 851var documents = project.Documents.Where(d => d.Name == "CSharpClass.cs").ToList(); 1331var metaRefs = project.MetadataReferences.ToList(); 1388var projRefs = project.ProjectReferences.ToList(); 1389var metaRefs = project.MetadataReferences.ToList(); 1406var projRefs = project.ProjectReferences.ToList(); 1407var metaRefs = project.MetadataReferences.ToList(); 1849var defines = new List<KeyValuePair<string, object>>(options.PreprocessorSymbols); 1977var documents = project.Documents.ToList(); 2005var documents = project2.Documents.ToList(); 2024var documentsB = projectB.Documents.ToList(); 2048var documents = project2.Documents.ToList(); 2099var documents = solution.GetProjectsByName("CSharpProject").FirstOrDefault().Documents.ToList(); 2126var documents = solution.GetProjectsByName("CSharpProject").FirstOrDefault().AdditionalDocuments.ToList(); 2463var result = new List<(string, object)>(); 2980var docs = proj.Documents.ToList();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (21)
Logging\TestTelemetryLogger.cs (1)
34public List<TelemetryEvent> PostedEvents = [];
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 (10)
165var documents = new List<TDocument>(); 166var documentElements = projectElement.Elements(DocumentElementName).ToList(); 204var additionalDocuments = new List<TDocument>(); 205var additionalDocumentElements = projectElement.Elements(AdditionalDocumentElementName).ToList(); 219var analyzerConfigDocuments = new List<TDocument>(); 220var analyzerConfigElements = projectElement.Elements(AnalyzerConfigDocumentElementName).ToList(); 413var globalImports = new List<GlobalImport>(); 769var documentElements = referencedSource.Elements(DocumentElementName).ToList(); 822var analyzers = new List<AnalyzerReference>(); 837var references = new List<MetadataReference>();
Workspaces\TestWorkspace_XmlCreation.cs (1)
30var documentElements = new List<XElement>();
Workspaces\TestWorkspace`1.cs (2)
711var submissions = new List<TProject>(); 730var documents = new List<TDocument> { document };
Microsoft.CodeAnalysis.Workspaces.UnitTests (76)
BatchFixAllProviderTests.cs (1)
89var fixes = new List<CodeAction>();
CodeCleanup\CodeCleanupTests.cs (2)
412var sortedSpans = spanCodeCleanup.ExpectedResult.ToList(); 413var expectedSpans = transformer.ExpectedResult.ToList();
CodeCleanup\Extensions.cs (2)
55var members = ((IEnumerable<M>)d.Members).ToList(); 66var members = ((IEnumerable<M>)d.Members).ToList();
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 };
FindReferencesTests.cs (12)
108var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 135var result = (await SymbolFinder.FindReferencesAsync(symbol.Type, solution)).ToList(); 296var methodlist = tree.GetRoot().DescendantNodes().OfType<Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax>().ToList(); 341var result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 409var references = (await SymbolFinder.FindReferencesAsync(interfaceMethod, solution)).ToList(); 574var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 609var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 653var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 703var innerCReferences = (await SymbolFinder.FindReferencesAsync(innerCSymbol, solution)).ToList(); 706var innerCLocations = innerCReferences[0].Locations.Where(loc => !loc.IsImplicit).ToList(); 722var fieldReferences = (await SymbolFinder.FindReferencesAsync(fieldSymbol, solution)).ToList(); 725var fieldLocations = fieldReferences[0].Locations.Where(loc => !loc.IsImplicit).ToList();
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (2)
17private static void TestLinkedFileSet(string startText, List<string> updatedTexts, string expectedMergedText, string languageName) 22var documentIds = new List<DocumentId>();
Remote\ServiceDescriptorTests.cs (2)
54var interfaces = new List<Type>(); 296var errors = new List<string>();
SolutionTests\ProjectDependencyGraphTests.cs (2)
718var referencesByTargetProject = new Dictionary<string, List<ProjectReference>>(); 721var references = referencesByTargetProject.GetOrAdd(targetProject, _ => []);
SolutionTests\SolutionTests.cs (2)
2905var docs = project.Documents.ToList(); 2906var trees = compilation.SyntaxTrees.ToList();
SolutionTests\SolutionWithSourceGeneratorTests.cs (2)
168var generatedDocuments = (await project.GetSourceGeneratedDocumentsAsync()).ToList(); 390var projectIds = solutionWithProjects.ProjectIds.ToList();
SymbolKeyTests.cs (30)
146var symbols = GetDeclaredSymbols(compilation); 161var symbols = GetDeclaredSymbols(compilation); 176var symbols = GetDeclaredSymbols(compilation); 190var symbols = GetDeclaredSymbols(compilation); 204var symbols = GetDeclaredSymbols(compilation); 218var symbols = GetDeclaredSymbols(compilation); 232var symbols = GetDeclaredSymbols(compilation); 246var symbols = GetDeclaredSymbols(compilation); 260var symbols = GetDeclaredSymbols(compilation); 275var symbols = GetDeclaredSymbols(compilation); 290var symbols = GetDeclaredSymbols(compilation); 318var symbols = GetDeclaredSymbols(compilation); 528var symbols = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => GetInteriorSymbols(ms, compilation).OfType<ILocalSymbol>()).ToList(); 550var symbols = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => GetInteriorSymbols(ms, compilation).OfType<ILabelSymbol>()).ToList(); 577var symbols = GetDeclaredSymbols(compilation).OfType<IMethodSymbol>().SelectMany(ms => GetInteriorSymbols(ms, compilation).OfType<IRangeVariableSymbol>()).ToList(); 606var symbols = tree.GetRoot().DescendantNodes().OfType<CSharp.Syntax.InvocationExpressionSyntax>().Select(s => model.GetSymbolInfo(s).Symbol).ToList(); 642var symbols = tree.GetRoot().DescendantNodes().OfType<CSharp.Syntax.InvocationExpressionSyntax>().Select(s => model.GetSymbolInfo(s).GetAnySymbol()).ToList(); 665var symbols = tree.GetRoot().DescendantNodes().OfType<CSharp.Syntax.UsingDirectiveSyntax>().Select(s => model.GetDeclaredSymbol(s)).ToList(); 671var refSymbols = GetDeclaredSymbols(compilation).OfType<IFieldSymbol>().Select(f => f.Type).ToList(); 690var symbols = GetDeclaredSymbols(compilation).OfType<IFieldSymbol>().Select(f => f.Type).ToList(); 969var symbols = GetAllSymbols( 1403var symbols = methods.SelectMany(ms => GetInteriorSymbols(ms, compilation)).Where(s => SymbolKey.IsBodyLevelSymbol(s)).ToList(); 1492private static List<ISymbol> GetAllSymbols( 1495var list = new List<ISymbol>(); 1502List<ISymbol> list, Func<SyntaxNode, bool> predicate) 1528private static List<ISymbol> GetDeclaredSymbols(Compilation compilation) 1530var list = new List<ISymbol>(); 1535private static void GetDeclaredSymbols(INamespaceOrTypeSymbol container, List<ISymbol> symbols) 1550var results = new List<ISymbol>(); 1568private static void GetInteriorSymbols(SemanticModel model, SyntaxNode root, List<ISymbol> symbols)
SyntaxNodeTests.cs (1)
49var nodes = root.DescendantNodes().Where(n => n is VariableDeclaratorSyntax or ClassDeclarationSyntax).ToList();
UtilityTest\WeakEventTests.cs (4)
19var target = new List<int>(); 20var handler1 = new WeakEventHandler<int>((sender, target, arg) => Assert.IsType<List<int>>(target).Add(arg * 10)); 21var handler2 = new WeakEventHandler<int>((sender, target, arg) => Assert.IsType<List<int>>(target).Add(arg * 20)); 22var handler3 = new WeakEventHandler<int>((sender, target, arg) => Assert.IsType<List<int>>(target).Add(arg * 30));
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
172var events = new List<OptionChangedEventArgs>();
WorkspaceServiceTests\TemporaryStorageServiceTests.cs (1)
162var storageHandles = new List<TemporaryStorageStreamHandle>(fileCount);
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
HandlerProviderTests.cs (1)
100var services = new List<(Type, object)>
Microsoft.CSharp (66)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
356List<string> argNames = new List<string>();
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (3)
45var v = new List<DynamicMetaObject> { self }; 455List<string> names = new List<string>(mo.GetDynamicMemberNames()); 458var result = new List<KeyValuePair<string, object>>();
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
891List<Expression> expressions = new List<Expression>();
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
564List<CType> callingTypes = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (3)
183private static int FindName(List<Name> names, Name name) 231var prgexpr = args.prgexpr; 488List<CandidateFunctionMember> list,
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (7)
713List<UdConvInfo> prguci = new List<UdConvInfo>(); 1083private static RuntimeBinderException HandleAmbiguity(CType typeSrc, CType typeDst, List<UdConvInfo> prguci, int iuciBestSrc, int iuciBestDst) 1529public static bool IsEmpty<T>(this List<T> list) 1533public static T Head<T>(this List<T> list) 1537public static List<T> Tail<T>(this List<T> list) 1541List<T> newList = new List<T>(array);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (3)
36public List<Expr> prgexpr; 575List<CandidateFunctionMember> methFirstList = new List<CandidateFunctionMember>(); 1415private static bool IsConvInTable(List<UdConvInfo> convTable, MethodSymbol meth, AggregateType ats, bool fSrc, bool fDst)
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (5)
44private readonly List<CandidateFunctionMember> _methList; 57private readonly List<CType> _HiddenTypes; 721List<Expr> prgexpr = pArguments.prgexpr; 743List<Name> currentPosition = methprop.ParameterNames; 1114List<Name> paramNames = FindMostDerivedMethod(_misnamed.MethProp(), _pGroup.OptionalObject).ParameterNames;
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (3)
49private readonly List<AggregateType> _rgtypeStart; 52private List<AggregateType> _prgtype; 55private readonly List<MethPropWithType> _methPropWithTypeList; // When we look up methods, we want to keep the list of all candidate methods given a particular name.
Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs (2)
103List<Name> paramNames = ExpressionBinder.GroupToArgsBinder 107List<Expr> argExpressions = args.prgexpr;
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (9)
36private readonly List<CType>[] _pExactBounds; 37private readonly List<CType>[] _pUpperBounds; 38private readonly List<CType>[] _pLowerBounds; 128_pLowerBounds = new List<CType>[pMethodTypeParameters.Count]; 129_pUpperBounds = new List<CType>[pMethodTypeParameters.Count]; 130_pExactBounds = new List<CType>[pMethodTypeParameters.Count]; 1606List<CType> initialCandidates = new List<CType>(); 1646List<CType> removeList = new List<CType>(); 1664List<CType> removeList = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (15)
185private bool GetSpecialBinopSignatures(List<BinOpFullSig> prgbofs, BinOpArgInfo info) 202private bool GetStandardAndLiftedBinopSignatures(List<BinOpFullSig> rgbofs, BinOpArgInfo info) 408List<BinOpFullSig> binopSignatures, 513List<BinOpFullSig> binopSignatures = new List<BinOpFullSig>(); 710private bool GetDelBinOpSigs(List<BinOpFullSig> prgbofs, BinOpArgInfo info) 824private static void RecordBinOpSigFromArgs(List<BinOpFullSig> prgbofs, BinOpArgInfo info) 861private bool GetEnumBinOpSigs(List<BinOpFullSig> prgbofs, BinOpArgInfo info) 934private bool GetRefEqualSigs(List<BinOpFullSig> prgbofs, BinOpArgInfo info) 1208List<UnaOpFullSig> pSignatures = new List<UnaOpFullSig>(); 1322private UnaryOperatorSignatureFindResult PopulateSignatureList(Expr pArgument, UnaOpKind unaryOpKind, UnaOpMask unaryOpMask, ExpressionKind exprKind, EXPRFLAG flags, List<UnaOpFullSig> pSignatures, out Expr ppResult) 1417List<UnaOpFullSig> pSignatures) 2510private bool UserDefinedBinaryOperatorIsApplicable(List<CandidateFunctionMember> candidateList, 2550List<CandidateFunctionMember> candidateList, ExpressionKind ek, AggregateType type, 2571List<CandidateFunctionMember> candidateList, ExpressionKind ek, AggregateType type, 2589List<CandidateFunctionMember> methFirst = new List<CandidateFunctionMember>();
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodOrPropertySymbol.cs (1)
35public List<Name> ParameterNames { get; private set; }
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
191List<CType> typeList = new List<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
25private readonly List<TypeParameterType> prgptvs;
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (10)
147List<Type> inheritance = CreateInheritanceHierarchyList(key.Type); 157private static void AddNamesInInheritanceHierarchy(string name, List<Type> inheritance) 178List<EventInfo> events = null; 240private static List<Type> CreateInheritanceHierarchyList(Type type) 242List<Type> list; 341List<CType> ctypes = new List<CType>(); 595List<object> declarationChain = BuildDeclarationChain(type); 686List<CType> types = new List<CType>(); 736private static List<object> BuildDeclarationChain(Type callingType) 755List<object> callChain = new List<object>();
Microsoft.Data.Analysis (53)
DataFrame.Arrow.cs (1)
186List<Apache.Arrow.Array> arrays = new List<Apache.Arrow.Array>();
DataFrame.cs (4)
200List<DataFrameColumn> newColumns = new List<DataFrameColumn>(Columns.Count); 543List<object> cachedObjectConversions = new List<object>(); 624List<object> cachedObjectConversions = new List<object>(); 683List<DataFrameColumn> newColumns = new List<DataFrameColumn>(Columns.Count);
DataFrame.IO.cs (4)
61private static Type GuessKind(int col, List<(long LineNumber, string[] Line)> read, Func<IEnumerable<string>, Type> guessTypeFunction) 124var columns = new List<DataFrameColumn>(columnsCount); 372List<DataFrameColumn> columns; 379var linesForGuessType = new List<(long LineNumber, string[] Line)>();
DataFrameColumn.cs (4)
90private readonly List<DataFrameColumnCollection> _ownerColumnCollections = new(); 469protected static void PopulateColumnSortIndicesWithHeap<T>(SortedDictionary<T, List<ValueTuple<int, int>>> heapOfValueAndListOfTupleOfSortAndBufferIndex, 485KeyValuePair<T, List<ValueTuple<int, int>>> minElement = heapOfValueAndListOfTupleOfSortAndBufferIndex.ElementAt(0); 486List<ValueTuple<int, int>> tuplesOfSortAndBufferIndex = minElement.Value;
DataFrameColumnCollection.cs (1)
33var ret = new List<string>(Count);
DataFrameColumns\ArrowStringDataFrameColumn.cs (3)
269var ret = new List<object>(); 298public new List<string> this[long startIndex, int length] 302var ret = new List<string>();
DataFrameColumns\StringDataFrameColumn.cs (16)
23private readonly List<List<string>> _stringBuffers = new List<List<string>>(); // To store more than intMax number of strings 31List<string> buffer = new List<string>((int)Math.Min(MaxCapacity, bufferLen)); 70List<string> lastBuffer = _stringBuffers[_stringBuffers.Count - 1]; 120var ret = new List<object>(); 163public new List<string> this[long startIndex, int length] 167var ret = new List<string>(); 185foreach (List<string> buffer in _stringBuffers) 209List<int[]> bufferSortIndices = new List<int[]>(_stringBuffers.Count); 212foreach (List<string> buffer in _stringBuffers) 240SortedDictionary<string, List<ValueTuple<int, int>>> heapOfValueAndListOfTupleOfSortAndBufferIndex = new SortedDictionary<string, List<ValueTuple<int, int>>>(comparer); 241List<List<string>> buffers = _stringBuffers; 244List<string> buffer = buffers[i];
DataFrameColumns\VBufferDataFrameColumn.cs (7)
22private readonly List<List<VBuffer<T>>> _vBuffers = new List<List<VBuffer<T>>>(); // To store more than intMax number of vbuffers 35List<VBuffer<T>> buffer = new List<VBuffer<T>>(bufferLen); 72List<VBuffer<T>> lastBuffer = _vBuffers[_vBuffers.Count - 1]; 105var ret = new List<object>(); 153foreach (List<VBuffer<T>> buffer in _vBuffers)
IDataView.Extension.cs (2)
48List<DataFrameColumn> dataFrameColumns = new List<DataFrameColumn>(schema.Count); 57List<DataViewSchema.Column> activeDataViewColumns = new List<DataViewSchema.Column>();
PrimitiveColumnContainer.cs (3)
372var ret = new List<T?>(length); 449private List<ReadOnlyDataFrameBuffer<byte>> CloneNullBitMapBuffers() 451List<ReadOnlyDataFrameBuffer<byte>> ret = new List<ReadOnlyDataFrameBuffer<byte>>();
PrimitiveDataFrameColumn.cs (1)
214var ret = new List<object>(length);
PrimitiveDataFrameColumn.Sort.cs (6)
25List<List<int>> bufferSortIndices = new List<List<int>>(_columnContainer.Buffers.Count); 40List<int> nonNullSortIndices = new List<int>(); 81SortedDictionary<T, List<ValueTuple<int, int>>> heapOfValueAndListOfTupleOfSortAndBufferIndex = new SortedDictionary<T, List<ValueTuple<int, int>>>(comparer);
TextFieldParser.cs (1)
780List<string> Fields = new List<string>();
Microsoft.Data.Analysis.Interactive (8)
DataFrameKernelExtension.cs (8)
44var header = new List<IHtmlContent> 57var rows = new List<List<IHtmlContent>>(); 60var cells = new List<IHtmlContent> 72var footer = new List<IHtmlContent>(); 110var rows = new List<List<IHtmlContent>>(); 113var cells = new List<IHtmlContent>
Microsoft.Data.Analysis.Interactive.Tests (1)
DataFrameInteractiveTests.cs (1)
76var data = new List<IDictionary<string, object>>();
Microsoft.Data.Analysis.Tests (10)
ArrowStringColumnTests.cs (1)
53List<string> ret = stringColumn[0, 4];
DataFrame.IOTests.cs (2)
1643List<Type> types = [ 1666List<Type> typesToRemove = new List<Type>(possibleTypes.Count);
DataFrameGroupByTests.cs (1)
81var rows = groupings[i];
DataFrameTests.cs (3)
327List<int> verify = new List<int>() { 0, 3, 1, 4, 2, 5 }; 349List<int> originalColumnVerify = new List<int>() { 6, 8, 7, 9 }; 350List<int> tailColumnVerity = new List<int>() { 1, 2, 4, 5 };
DataFrameTests.Filter.cs (1)
33List<int> verify = new List<int> { 0, 2, 4, 6, 8 };
DataFrameTests.Utils.cs (1)
175var columnsList = new List<DataFrameColumn>
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
780List<string> Fields = new List<string>();
Microsoft.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.ArcadeAzureIntegration (1)
DefaultIdentityTokenCredential.cs (1)
61List<TokenCredential> tokenCredentials = [];
Microsoft.DotNet.Baselines.Tasks (15)
PRCreator.cs (15)
44List<string> updatedFiles, 57List<NewTreeItem> originalTreeItems = await FetchOriginalTreeItemsAsync(originalTreeResponse, targetBranch, targetDirectory); 70private async Task<List<NewTreeItem>> FetchOriginalTreeItemsAsync( 84List<NewTreeItem> items = treeItems.ToList(); 136private Dictionary<string, HashSet<string>> ParseAndGroupUpdatedFiles(List<string> updatedFiles) => 151private async Task<List<NewTreeItem>> UpdateAllFilesAsync( 153List<NewTreeItem> tree, 171private async Task<List<NewTreeItem>> UpdateExclusionFileAsync( 174List<NewTreeItem> tree, 237private async Task<List<NewTreeItem>> UpdateRegularFilesAsync( 239List<NewTreeItem> tree, 255private async Task<List<NewTreeItem>> UpdateFileAsync( 256List<NewTreeItem> tree, 316private async Task<TreeResponse> CreateTreeFromItemsAsync(List<NewTreeItem> items, string path = "") 318List<NewTreeItem> newTreeItems = [];
Microsoft.DotNet.Build.Manifest (6)
ArtifactSet.cs (3)
13public List<PackageArtifactModel> Packages { get; set; } = new List<PackageArtifactModel>(); 15public List<BlobArtifactModel> Blobs { get; set; } = new List<BlobArtifactModel>(); 17public List<PdbArtifactModel> Pdbs { get; set; } = new List<PdbArtifactModel>();
BuildModelFactory.cs (3)
33BuildModel CreateMergedModel(List<BuildModel> models, ArtifactVisibility artifactVisibilitiesToInclude); 249public BuildModel CreateMergedModel(List<BuildModel> models, ArtifactVisibility artifactVisibilitiesToInclude) 271List<string> differences = new List<string>();
Microsoft.DotNet.Build.Manifest.Tests (3)
VersionIdentiferTests.cs (3)
49List<VersionIdentifierTestAsset> testAssets = GetTestAssets(); 64private List<VersionIdentifierTestAsset> GetTestAssets() 66List<VersionIdentifierTestAsset> testAssets = new List<VersionIdentifierTestAsset>();
Microsoft.DotNet.Build.Tasks.Feed (24)
src\AzureDevOpsArtifactFeed.cs (1)
67public List<AzureDevOpsFeedPermission> Permissions { get; private set; }
src\common\LatestLinksManager.cs (1)
83List<AkaMSLink> newLinks = new List<AkaMSLink>();
src\common\UploadToAzure.cs (1)
84List<Task> uploadTasks = new List<Task>();
src\model\PublishingConstants.cs (1)
368public static readonly List<TargetChannelConfig> ChannelInfos = [
src\model\SetupTargetFeedConfigBase.cs (1)
55public abstract List<TargetFeedConfig> Setup();
src\model\SetupTargetFeedConfigV3.cs (1)
93public override List<TargetFeedConfig> Setup()
src\model\SetupTargetFeedConfigV4.cs (1)
92public override List<TargetFeedConfig> Setup()
src\ProductionChannelValidator.cs (1)
425public List<string> Tags { get; set; }
src\PublishArtifactsInManifestBase.cs (3)
391var updates = NewAssetLocations.Keys.Select(nal => new AssetAndLocation(nal.AssetId, (LocationType)nal.LocationType) 867List<Task> publishTasks = new List<Task>(); 1087List<Task> publishTasks = new List<Task>();
src\PublishArtifactsInManifestV3.cs (3)
63List<int> targetChannelsIds = new List<int>(); 137List<string> shortLinkUrls = new List<string>(); 165var targetFeedConfigs = targetFeedsSetup.Setup();
src\PublishArtifactsInManifestV4.cs (3)
59List<int> targetChannelsIds = new List<int>(); 133List<string> shortLinkUrls = new List<string>(); 160var targetFeedConfigs = targetFeedsSetup.Setup();
src\PublishBuildToMaestro.cs (7)
126List<BuildModel> parsedManifests = LoadBuildModels(ManifestsPath, cancellationToken); 166var deps = await GetBuildDependenciesAsync(client, cancellationToken); 255private async Task<List<BuildRef>> GetBuildDependenciesAsync( 307List<Asset> matchingAssetsFromSameSha = new List<Asset>(); 349internal List<BuildModel> LoadBuildModels( 366var assets = new List<AssetData>(); 499internal static void AddAsset(List<AssetData> assets, string assetName, string version, string location,
Microsoft.DotNet.Build.Tasks.Feed.Tests (24)
ProductionChannelValidatorTests.cs (4)
52List<ProductConstructionService.Client.Models.Channel> channels = null, 53List<ProductConstructionService.Client.Models.Asset> assets = null, 54List<ProductConstructionService.Client.Models.BuildRef> dependencies = null, 55List<ProductConstructionService.Client.Models.BuildIncoherence> incoherencies = null)
PublishArtifactsInManifestTests.cs (4)
98List<ProductConstructionService.Client.Models.Channel> channels = null, 99List<ProductConstructionService.Client.Models.Asset> assets = null, 100List<ProductConstructionService.Client.Models.BuildRef> dependencies = null, 101List<ProductConstructionService.Client.Models.BuildIncoherence> incoherencies = null)
SetupTargetFeedConfigV3Tests.cs (8)
76var expectedFeeds = new List<TargetFeedConfig>(); 185var actualFeeds = config.Setup(); 195var expectedFeeds = new List<TargetFeedConfig>(); 298var actualFeeds = config.Setup(); 308var expectedFeeds = new List<TargetFeedConfig>(); 412var actualFeeds = config.Setup(); 417private bool AreEquivalent(List<TargetFeedConfig> expectedItems, List<TargetFeedConfig> actualItems)
SetupTargetFeedConfigV4Tests.cs (8)
78var expectedFeeds = new List<TargetFeedConfig>(); 179var actualFeeds = config.Setup(); 189var expectedFeeds = new List<TargetFeedConfig>(); 270var actualFeeds = config.Setup(); 281var expectedFeeds = new List<TargetFeedConfig>(); 364var actualFeeds = config.Setup(); 369private bool AreEquivalent(List<TargetFeedConfig> expectedItems, List<TargetFeedConfig> actualItems)
Microsoft.DotNet.Build.Tasks.Installers (33)
src\CreateControlFile.cs (1)
52List<string> dependencyItems = [];
src\CreateWixBuildWixpack.cs (3)
300var commandLineArgs = new List<string>(); 775var blocks = new List<(string condition, string content)>(); 788var blockBoundaries = new List<(int start, int end, string condition, bool isElse)>();
src\RpmBuilder.cs (26)
20private readonly List<(string capability, string version)> _provides = []; 21private readonly List<string> _conflicts = []; 23private readonly List<(string name, string text)> _changelogLines = []; 25private readonly List<(string name, int flags, string version)> _requires = [ 41private List<RpmHeader<RpmHeaderTag>.Entry> PackageEntries { get; } = [ 159private readonly List<(CpioEntry file, string fileKind)> _files = []; 187List<RpmHeader<RpmHeaderTag>.Entry> entries = [..PackageEntries]; 232List<string> fileDigests = []; 233List<string> baseNames = []; 234List<int> directoryNameIndices = []; 235List<string> directories = []; 236List<int> fileClassIndices = []; 237List<string> fileClassDictionary = []; 238List<int> inodes = []; 239List<int> fileSizes = []; 240List<string> fileUserAndGroupNames = []; 241List<short> fileModes = []; 242List<short> deviceFileIds = []; 243List<int> fileTimestamps = []; 244List<int> fileVerifyFlags = []; 245List<int> fileDevices = []; 246List<string> fileLangs = []; 247List<int> fileColors = []; 248List<int> fileFlags = []; 249List<string> fileLinkTos = []; 400List<RpmHeader<RpmSignatureTag>.Entry> signatureEntries = [
src\RpmHeader.cs (3)
17public sealed partial class RpmHeader<TEntryTag>(List<RpmHeader<TEntryTag>.Entry> entries) 42public List<Entry> Entries { get; } = entries; 127List<Entry> entries = [];
Microsoft.DotNet.Build.Tasks.Packaging (47)
ApplyBaseLine.cs (2)
72List<ITaskItem> baseLinedDependencies = new List<ITaskItem>(); 107List<ITaskItem> baseLinedDependencies = new List<ITaskItem>();
ApplyMetaPackages.cs (1)
56List<ITaskItem> updatedDependencies = new List<ITaskItem>();
ApplyPreReleaseSuffix.cs (1)
73List<ITaskItem> updatedPackages = new List<ITaskItem>();
CreateTrimDependencyGroups.cs (1)
125List<ITaskItem> trimmedDependencies = new List<ITaskItem>();
Extensions.cs (2)
181var list = (List<TItem>)property.GetValue(target) ?? new List<TItem>();
FrameworkUtilities.cs (2)
71List<string> nearestFrameworks = new List<string>(); 85var _frameworks = frameworks.Select(s => NuGetFramework.Parse(s)).ToList();
GenerateNuSpec.cs (5)
253private List<ManifestFile> GetManifestFiles() 271private List<FrameworkAssemblyReference> GetFrameworkAssemblies() 296private List<PackageDependencyGroup> GetDependencySets() 350private List<PackageType> GetPackageTypes() 352var listOfPackageTypes = new List<PackageType>();
GeneratePackageReport.cs (1)
285var packageItems = new Dictionary<string, List<PackageItem>>();
GenerateRuntimeDependencies.cs (3)
91List<RuntimeDescription> runtimes = new List<RuntimeDescription>(); 108List<RuntimeDependencySet> runtimeDependencySets = new List<RuntimeDependencySet>(); 114List<RuntimePackageDependency> runtimePackageDependencies = new List<RuntimePackageDependency>();
GetApplicableAssetsFromPackageReports.cs (4)
66var compileAssets = new List<ITaskItem>(); 67var runtimeAssets = new List<ITaskItem>(); 68var nativeAssets = new List<ITaskItem>(); 69var buildProjects = new List<BuildProject>();
GetApplicableAssetsFromPackages.cs (3)
18private Dictionary<string, List<PackageItem>> _packageToPackageItems; 92var buildProjects = new List<BuildProject>(); 149_packageToPackageItems = new Dictionary<string, List<PackageItem>>();
GetAssemblyReferences.cs (2)
43List<ITaskItem> references = new List<ITaskItem>(); 44List<ITaskItem> nativeLibs = new List<ITaskItem>();
GetLastStablePackage.cs (1)
132List<ITaskItem> lastStablePackages = new List<ITaskItem>();
GetLayoutFiles.cs (1)
54var layoutFiles = new List<ITaskItem>();
GetPackageDestination.cs (1)
69private List<ITaskItem> _packageDestinations = new List<ITaskItem>();
GetPackageFromModule.cs (1)
58List<ITaskItem> packagesReferenced = new List<ITaskItem>();
GetRuntimeJsonValues.cs (1)
33List<string> items = new List<string>();
GetRuntimeTargets.cs (1)
37List<string> items = new List<string>();
GetSupportedPackagesFromPackageReports.cs (1)
24var supportedPackages = new List<ITaskItem>();
HarvestPackage.cs (4)
158List<ITaskItem> supportedFrameworks = new List<ITaskItem>(); 289var harvestedFiles = new List<ITaskItem>(); 290var removeFiles = new List<ITaskItem>(); 330List<string> targetPaths = new List<string>() { harvestPackagePath };
NuGetAssetResolver.cs (1)
280var contentItemGroups = new List<ContentItemGroup>();
NuGetPack.cs (3)
339List<PackageDependencyGroup> packedPackageDependencyGroups = new List<PackageDependencyGroup>(); 342List<NuGet.Packaging.Core.PackageDependency> packages = new List<NuGet.Packaging.Core.PackageDependency>(); 354List<ManifestFile> manifestFiles = new List<ManifestFile>();
NuGetUtility.cs (1)
24List<Version> result = new List<Version>();
PackageIndex.cs (1)
513List<Version> redundantMappings = new List<Version>();
PackageMetadata.cs (1)
20return JsonConvert.DeserializeObject<List<PackageMetadata>>(packageMetadata);
PromoteDependencies.cs (1)
40List<ITaskItem> promotedDependencies = new List<ITaskItem>();
SplitDependenciesBySupport.cs (1)
32List<ITaskItem> splitDependencies = new List<ITaskItem>(dependencies.Where(d => d.TargetFramework != null && d.TargetFramework.Framework != FrameworkConstants.FrameworkIdentifiers.NetStandard).Select(d => d.OriginalItem));
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
ChooseBestP2PTargetFrameworkTask.cs (1)
63List<ITaskItem> assignedProjects = new(AnnotatedProjectReferences.Length);
ChooseBestTargetFrameworksTask.cs (1)
31List<ITaskItem> bestTargetFrameworkList = new(BuildTargetFrameworks!.Length);
Microsoft.DotNet.Build.Tasks.Workloads (20)
CreateVisualStudioWorkload.wix.cs (6)
136List<WorkloadManifestPackage> manifestPackages = new(); 137List<WorkloadManifestMsi> manifestMsisToBuild = new(); 198List<WorkloadPackGroupJson> packGroupJsonList = new(); 204Dictionary<string, List<WorkloadPackPackage>> packsInWorkloadByPlatform = 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>();
Wix\CompilerToolTask.cs (1)
16private List<string> _sourceFiles = new();
Wix\WixToolTaskBase.cs (1)
17private List<string> _preprocessorDefinitions = new();
WorkloadPackGroupPackage.wix.cs (2)
15public List<WorkloadPackPackage> Packs { get; set; } = new(); 17public Dictionary<string, List<WorkloadManifestPackage>> ManifestsPerPlatform { get; } = new();
Microsoft.DotNet.Deployment.Tasks.Links (3)
Microsoft.DotNet.GenFacades (2)
SourceGenerator.cs (1)
47List<string> externAliases = new List<string>();
TypeParser.cs (1)
136List<SyntaxTree> result = new List<SyntaxTree>();
Microsoft.DotNet.Git.IssueManager (1)
Models\AzureDevOpsCommit.cs (1)
11public List<Value> Value { get; set; }
Microsoft.DotNet.Helix.Client (3)
generated-code\PagedResponse.cs (3)
15public static async Task<List<T>> ToListAsync<T>(this IAsyncEnumerable<T> that, CancellationToken cancellationToken) 17var results = new List<T>(); 67var links = ParseLinkHeader(header).ToList();
Microsoft.DotNet.Helix.JobSender (2)
JobDefinition.cs (2)
25private readonly List<WorkItemDefinition> _workItems; 178var jobList = new List<JobListEntry>();
Microsoft.DotNet.Helix.Sdk (5)
FindDotNetCliPackage.cs (1)
83var feeds = new List<ITaskItem>();
GetHelixWorkItems.cs (1)
53var workItems = new List<ITaskItem>();
InstallDotNetTool.cs (1)
124var args = new List<string>()
SendHelixJob.cs (1)
332var commands = GetCommands(workItem, command).ToList();
WaitForHelixJobCompletion.cs (1)
30List<(string jobName, string queueName, string jobCancellationToken)> jobNames = Jobs.Select(j => (j.GetMetadata("Identity"), j.GetMetadata("HelixTargetQueue"), j.GetMetadata("HelixJobCancellationToken"))).ToList();
Microsoft.DotNet.Helix.Sdk.Tests (4)
FindDotNetCliPackageTests.cs (4)
23List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>() 71List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>(GetDefaultRequestResponseHelpers()); 121List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>(GetDefaultRequestResponseHelpers()); 174List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>()
Microsoft.DotNet.MacOsPkg.Core (1)
Package.cs (1)
57List<XElement> componentPackages = xml.Elements("pkg-ref").Where(e => e.Value.Trim() != "").ToList();
Microsoft.DotNet.MacOsPkg.Tests (1)
UnpackPackTests.cs (1)
169private static void ExecuteWithCleanup(Action action, List<string> cleanupPaths)
Microsoft.DotNet.NuGetRepack.Tasks (3)
src\NuGetVersionUpdater.cs (2)
285var errors = new List<Exception>(); 362var 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>(); 17public List<BuildMessageEventArgs> LogMessageEvents = 20public List<CustomBuildEventArgs> LogCustomEvents = 23public List<BuildWarningEventArgs> LogWarningEvents = 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 (7)
GetCompatiblePackageTargetFrameworks.cs (5)
16private static List<NuGetFramework> allTargetFrameworks = new(); 30List<ITaskItem> testProjects = new(); 61List<NuGetFramework> frameworksToTest= new(); 108private static List<ITaskItem> CreateItemFromTestFramework(string packageId, string version, IEnumerable<NuGetFramework> testFrameworks) 110List<ITaskItem> testprojects = new();
Package.cs (1)
30List<NuGetFramework> FrameworksInPackageList = CompileAssets.Select(t => (NuGetFramework)t.Properties["tfm"]).ToList();
VerifyTypes.cs (1)
176var types = new List<string>();
Microsoft.DotNet.PackageTesting.Tests (2)
GetCompatibilePackageTargetFrameworksTests.cs (2)
137public void GetCompatibleFrameworks(List<string> filePaths, List<NuGetFramework> expectedTestFrameworks)
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.SignCheckLibrary (13)
Interop\PortableExecutable\ImageSectionHeader.cs (2)
62public static List<IMAGE_SECTION_HEADER> Read(BinaryReader reader, ushort numberOfSections, uint firstSectionHeaderOffset) 69var sectionHeaders = new List<IMAGE_SECTION_HEADER>();
Interop\PortableExecutable\PortableExecutableHeader.cs (1)
18private List<IMAGE_SECTION_HEADER> _imageSectionHeaders;
Logging\Log.cs (1)
12private List<ILogger> _loggers;
Verification\AuthentiCode.cs (2)
188var timestamps = new List<Timestamp>(); 251var timestamps = new List<Timestamp>();
Verification\Exclusions.cs (1)
20private List<Exclusion> _exclusions = new List<Exclusion>();
Verification\Jar\JarError.cs (1)
11private static List<string> _errors = new List<string>();
Verification\NupkgVerifier.cs (1)
30List<ISignatureVerificationProvider> providers = new()
Verification\SignatureVerificationManager.cs (2)
19private List<SignatureVerificationResult> _results; 42public List<SignatureVerificationResult> Results
Verification\SignatureVerificationResult.cs (2)
15private List<SignatureVerificationResult> _nestedResults; 17private List<Timestamp> _timestamps;
Microsoft.DotNet.SignCheckTask (7)
src\SignCheck.cs (5)
23internal List<string> _inputFiles; 191private List<string> GetInputFilesFromOptions() 193var inputFiles = new List<string>(); 194var downloadFiles = new List<Uri>(); 229var _matchedFiles = new List<string>();
src\SignCheckTask.cs (1)
140List<string> inputFiles = new List<string>();
src\Utils.cs (1)
21var directories = new List<string>();
Microsoft.DotNet.SignTool (30)
src\BatchSignUtil.cs (7)
118var toProcessList = _batchData.FilesToSign.ToList(); 225var repackList = files.Where(w => toRepackSet.Contains(w.FullPath)).ToList(); 242var largeRepackList = new List<FileSignInfo>(); 243var smallRepackList = new List<FileSignInfo>(); 317List<FileSignInfo> identifyNextGroup() 319var list = new List<FileSignInfo>(); 353var trackList = identifyNextGroup();
src\Configuration.cs (14)
23private readonly List<ItemToSign> _itemsToSign; 46private readonly Dictionary<string, List<SignInfo>> _strongNameInfo; 52private readonly List<FileSignInfo> _filesToSign; 54private List<WixPackInfo> _wixPacks; 61private readonly Dictionary<string, List<SignInfo>> _fileExtensionSignInfo; 79private readonly Dictionary<string, List<AdditionalCertificateInformation>> _additionalCertificateInformation; 91internal List<KeyValuePair<string, string>> _filesToCopy; 112List<ItemToSign> itemsToSign, 113Dictionary<string, List<SignInfo>> strongNameInfo, 115Dictionary<string, List<SignInfo>> extensionSignInfo, 116Dictionary<string, List<AdditionalCertificateInformation>> additionalCertificateInformation, 364bool hasSignInfos = _fileExtensionSignInfo.TryGetValue(extension, out var signInfos); 389if (peInfo.IsManaged && _strongNameInfo.TryGetValue(peInfo.PublicKeyToken, out var pktBasedSignInfos)) 496if (signInfo.Certificate != null && _additionalCertificateInformation.TryGetValue(signInfo.Certificate, out var additionalInfo))
src\SignToolTask.cs (8)
289var itemsToSign = ItemsToSign.Select(i => new ItemToSign(i.ItemSpec, i.GetMetadata(SignToolConstants.CollisionPriorityId))).OrderBy(i => i.CollisionPriorityId).ToList(); 350private Dictionary<string, List<AdditionalCertificateInformation>> ParseAdditionalCertificateInformation() 361var map = new Dictionary<string, List<AdditionalCertificateInformation>>(StringComparer.OrdinalIgnoreCase); 390if (!map.TryGetValue(certificateName, out var additionalCertificateInformation)) 461private Dictionary<string, List<SignInfo>> ParseFileExtensionSignInfo() 463var map = new Dictionary<string, List<SignInfo>>(StringComparer.OrdinalIgnoreCase); 508private Dictionary<string, List<SignInfo>> ParseStrongNameSignInfo() 510var map = new Dictionary<string, List<SignInfo>>(StringComparer.OrdinalIgnoreCase);
src\ZipData.cs (1)
726List<ITaskItem> scripts = [];
Microsoft.DotNet.SignTool.Tests (143)
FakeBuildEngine.cs (5)
17public List<BuildErrorEventArgs> LogErrorEvents = new List<BuildErrorEventArgs>(); 19public List<BuildMessageEventArgs> LogMessageEvents = 22public List<CustomBuildEventArgs> LogCustomEvents = 25public List<BuildWarningEventArgs> LogWarningEvents = 28public readonly List<ImmutableArray<XElement>> FilesToSign = new List<ImmutableArray<XElement>>();
SignToolTests.cs (138)
29private static readonly Dictionary<string, List<SignInfo>> s_fileExtensionSignInfo = new Dictionary<string, List<SignInfo>>() 52private static readonly Dictionary<string, List<SignInfo>> s_fileExtensionSignInfoWithCollisionId = 53new Dictionary<string, List<SignInfo>>() 314List<ItemToSign> itemsToSign, 315Dictionary<string, List<SignInfo>> strongNameSignInfo, 317Dictionary<string, List<SignInfo>> extensionsSignInfo, 319Dictionary<string, List<AdditionalCertificateInformation>> additionalCertificateInfo = null, 394List<ItemToSign> itemsToSign, 395Dictionary<string, List<SignInfo>> strongNameSignInfo, 397Dictionary<string, List<SignInfo>> extensionsSignInfo, 400Dictionary<string, List<AdditionalCertificateInformation>> additionalCertificateInfo = null, 548var itemsToSign = new List<ItemToSign>(); 550var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 622var itemsToSign = new List<ItemToSign>() 628var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 657var itemsToSign = new List<ItemToSign>() 663var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 689var itemsToSign = new List<ItemToSign>() 696var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 711var itemsToSign = new List<ItemToSign>() 717var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 735var itemsToSign = new List<ItemToSign>() 741var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 759var itemsToSign = new List<ItemToSign>() 765var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 787var itemsToSign = new List<ItemToSign>() 793var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 801ValidateFileSignInfos(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 806ValidateGeneratedProject(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 820var itemsToSign = new List<ItemToSign>() 826var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 862var itemsToSign = new List<ItemToSign>() 868var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 902var itemsToSign = new List<ItemToSign>() 908var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 929var itemsToSign = new List<ItemToSign>() 936var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 948ValidateFileSignInfos(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 954ValidateGeneratedProject(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 969var itemsToSign = new List<ItemToSign>() 974var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 991var itemsToSign = new List<ItemToSign>() 996var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1016var itemsToSign = new List<ItemToSign>() 1021var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() { }; 1038var itemsToSign = new List<ItemToSign>() 1043var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() { }; 1058var itemsToSign = new List<ItemToSign>() 1065var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1110var itemsToSign = new List<ItemToSign>() 1116var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1188var itemsToSign = new List<ItemToSign>() 1194var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1271var itemsToSign = new List<ItemToSign>() 1277var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1327var itemsToSign = new List<ItemToSign>() 1333var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1361var itemsToSign = new List<ItemToSign>() 1367var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1418var itemsToSign = new List<ItemToSign>() 1424var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1430var additionalCertificateInfo = new Dictionary<string, List<AdditionalCertificateInformation>>() 1494var itemsToSign = new List<ItemToSign>() 1500var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1546var itemsToSign = new List<ItemToSign>() 1552var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1592var itemsToSign = new List<ItemToSign>() 1598var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1644var itemsToSign = new List<ItemToSign>() 1650var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1696var itemsToSign = new List<ItemToSign>() 1702var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1750var itemsToSign = new List<ItemToSign> 1756var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1794var itemsToSign = new List<ItemToSign> 1800var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1822var itemsToSign = new List<ItemToSign> 1828var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1864var itemsToSign = new List<ItemToSign> 1871var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1876var expectedFilesToBeSigned = new List<string> 1895var itemsToSign = new List<ItemToSign> 1902var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1907var expectedFilesToBeSigned = new List<string> 1927var itemsToSign = new List<ItemToSign>() 1934var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1995var itemsToSign = new List<ItemToSign>() 2002var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2043var itemsToSign = new List<ItemToSign>() 2051var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2096var itemsToSign = new List<ItemToSign>() 2103var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2165var itemsToSign = new List<ItemToSign>() 2171var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2199var itemsToSign = new List<ItemToSign>() 2206var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2260var itemsToSign = new List<ItemToSign>() 2267var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2321var itemsToSign = new List<ItemToSign>() 2328var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2378var itemsToSign = new List<ItemToSign>() 2386var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2440var itemsToSign = new List<ItemToSign>() 2446var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2479var itemsToSign = new List<ItemToSign>() 2484var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 2497var itemsToSign = new List<ItemToSign>() 2508var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 2527var fileExtensionSignInfo = new List<ITaskItem>(); 2546var fileExtensionSignInfo = new List<ITaskItem>(); 2569var fileExtensionSignInfo = new List<ITaskItem>(); 2591var itemsToSign = new List<ItemToSign>() 2597ValidateFileSignInfos(itemsToSign, new Dictionary<string, List<SignInfo>>(), new Dictionary<ExplicitCertificateKey, string>(), s_fileExtensionSignInfoWithCollisionId, new[] 2739var itemsToSign = new List<ItemToSign>() 2745var additionalCertInfo = new Dictionary<string, List<AdditionalCertificateInformation>>() 2750var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2768var itemsToSign = new List<ItemToSign>() 2774var additionalCertInfo = new Dictionary<string, List<AdditionalCertificateInformation>>() 2783var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2797var itemsToSign = new List<ItemToSign>() 2803var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2829var itemsToSign = new List<ItemToSign>() 2835var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2864var itemsToSign = new List<ItemToSign>() 2886var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2915var certificatesSignInfo = new Dictionary<string, List<AdditionalCertificateInformation>>() 2965var itemsToSign = new List<ItemToSign>() 2972var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 3051var itemsToSign = new List<ItemToSign>() 3058new Dictionary<string, List<SignInfo>>(), 3060new Dictionary<string, List<SignInfo>>(), 3093var itemsToSign = new List<ItemToSign>() 3098var extensionSignInfo = new Dictionary<string, List<SignInfo>>() 3110new Dictionary<string, List<SignInfo>>(), 3128var itemsToSign = new List<ItemToSign>() 3135new Dictionary<string, List<SignInfo>>(), 3143new Dictionary<string, List<SignInfo>>(),
Microsoft.DotNet.StrongName (1)
Utils.cs (1)
285var segment = blob.GetBytes().ToList();
Microsoft.DotNet.SwaggerGenerator.CmdLine (2)
Program.cs (2)
56List<string> arguments = options.Parse(args); 100List<CodeFile> code = codeFactory.GenerateCode(model, generatorOptions);
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (9)
HelperFactory.cs (7)
33var helpers = CreateHelpersForType(type, instance); 40var blockHelpers = CreateBlockHelpersForType(type, instance); 48private static List<(string name, HandlebarsBlockHelper helper)> CreateBlockHelpersForType(Type type, object instance) 50var helpers = new List<(string name, HandlebarsBlockHelper helper)>(); 74private static List<(string name, HandlebarsHelper helper)> CreateHelpersForType(Type type, object instance) 76var helpers = new List<(string name, HandlebarsHelper helper)>(); 247private static IEnumerable<Expression> GetParameterExpressions(MethodInfo method, ParameterExpression argumentsParameter, List<ProvidedParameter> providedParameters)
Modeler\ServiceClientModelFactory.cs (1)
141var methods = new List<MethodModel>();
ServiceClientCodeFactory.cs (1)
64public List<CodeFile> GenerateCode(ServiceClientModel model, GeneratorOptions options)
Microsoft.DotNet.SwaggerGenerator.MSBuild (2)
GenerateSwaggerCode.cs (2)
76List<CodeFile> code = codeFactory.GenerateCode(model, options); 82var generatedFiles = new List<ITaskItem>();
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 (5)
XlfDocumentTests.cs (5)
568List<XmlSchemaException> validationErrors = GetValidationErrors(document); 578List<XmlSchemaException> validationErrors = GetValidationErrors(document); 600List<XmlSchemaException> validationErrors = GetValidationErrors(document); 609private static List<XmlSchemaException> GetValidationErrors(XlfDocument document) 611List<XmlSchemaException> validationErrors = new();
Microsoft.DotNet.XUnitAssert.Tests (77)
AsyncCollectionAssertsTests.cs (5)
60 var indices = new List<int>(); 112 var indices = new List<int>(); 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) };
CollectionAssertsTests.cs (43)
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 }; 955 var actual = new List<int>(expected); 1010 var actual = actualArray is null ? null : new List<int>(actualArray); 1036 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }); 1055 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }); 1078 List<EnumerableItem> actual = new List<EnumerableItem> { new(0), new(2) }; 1079 List<EnumerableItem> expected = new List<EnumerableItem> { new(1), new(3) }; 1180 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }); 1199 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }); 1208 List<EnumerableItem> actual = new List<EnumerableItem> { new(0), new(2) }; 1209 List<EnumerableItem> expected = new List<EnumerableItem> { new(1), new(3) }; 1614 var list = new List<int>(); 1628 var list = new List<int> { 42 }; 1739 var actual = new List<int>(expected); 1756 var actual = new List<int>(new[] { 1, 2, 3, 4, 0, 6, 7, 8, 9, 10 }); 1768 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }); 1777 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 }); 1878 var actual = new List<int>(new int[] { 1, 2, 3, 4, 5 }); 1887 var actual = new List<int>(new int[] { 0, 0, 0, 0, 0 });
EqualityAssertsTests.cs (10)
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(); 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();
EquivalenceAssertsTests.cs (14)
979 var expected = new[] { new { Foo = "Bar" } }.ToList(); 980 var actual = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList(); 997 var expected = new[] { new { Foo = "Biff" } }.ToList(); 998 var actual = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList(); 1034 var expected = new[] { new { Foo = "Bar" }, new { Foo = "Baz" } }.ToList(); 1035 var actual = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList(); 1052 var expected = new[] { new { Foo = "Biff" } }.ToList(); 1053 var actual = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList(); 1069 var expected = new[] { new { Foo = "Bar" } }.ToList(); 1070 var actual = new[] { new { Foo = "Baz" }, new { Foo = "Bar" } }.ToList(); 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 (5)
293 var kvp = new KeyValuePair<object, List<object>>(42, new() { 21.12M, "2600" }); 329 var value = new Dictionary<object, List<object>> 518 { typeof(List<int>), "typeof(System.Collections.Generic.List<int>)" }, 520 { typeof(List<>), "typeof(System.Collections.Generic.List<>)" }, 534 var genericTypeParameters = typeof(List<>).GetGenericArguments();
Microsoft.DotNet.XUnitExtensions (6)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
41List<string> falseConditions = new List<string>(conditionMemberNames.Count());
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTheoryDiscoverer.cs (1)
85List<IXunitTestCase> skippedTestCase = new List<IXunitTestCase>();
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\TestCategoryDiscoverer.cs (1)
27var ctorArgs = traitAttribute.GetConstructorArguments().ToList();
src\Microsoft.DotNet.XUnitExtensions.Shared\XunitParallelTheoryTestCaseRunner.cs (3)
26private readonly List<XunitTestRunner> _testRunners = new(); 27private readonly List<IDisposable> _toDispose = new(); 135var runningTests = new List<Task<RunSummary>>(_testRunners.Count);
Microsoft.DotNet.XUnitExtensions.Tests (1)
AlphabeticalOrderer.cs (1)
18List<TTestCase> result = testCases.ToList();
Microsoft.DotNet.XUnitV3Extensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
41List<string> falseConditions = new List<string>(conditionMemberNames.Count());
Microsoft.Extensions.AI (29)
ChatCompletion\CachingChatClient.cs (2)
108List<ChatResponseUpdate> capturedItems = []; 135List<ChatResponseUpdate> capturedItems = [];
ChatCompletion\ChatClientBuilder.cs (1)
18private List<Func<IChatClient, IServiceProvider, IChatClient>>? _clientFactories;
ChatCompletion\FunctionInvokingChatClient.cs (19)
239List<ChatMessage> originalMessages = [.. messages]; 242List<ChatMessage>? augmentedHistory = null; // the actual history of messages sent on turns other than the first 244List<ChatMessage>? responseMessages = null; // tracked list of messages, across multiple turns, to be used for the final response 246List<FunctionCallContent>? functionCallContents = null; // function call contents that need responding to in the current turn 335List<ChatMessage> originalMessages = [.. messages]; 338List<ChatMessage>? augmentedHistory = null; // the actual history of messages sent on turns other than the first 339List<FunctionCallContent>? functionCallContents = null; // function call contents that need responding to in the current turn 340List<ChatMessage>? responseMessages = null; // tracked list of messages, across multiple turns, to be used in fallback cases to reconstitute history 342List<ChatResponseUpdate> updates = []; // updates from the current response 464[NotNull] ref List<ChatMessage>? augmentedHistory, 466List<ChatMessage> allTurnsResponseMessages, 518IList<ChatMessage> messages, [NotNullWhen(true)] ref List<FunctionCallContent>? functionCalls) 532IList<AIContent> content, [NotNullWhen(true)] ref List<FunctionCallContent>? functionCalls) 586List<ChatMessage> messages, ChatOptions? options, List<FunctionCallContent> functionCallContents, int iteration, int consecutiveErrorCount, 612List<FunctionInvocationResult> results = []; 715List<ChatMessage> messages, ChatOptions? options, List<FunctionCallContent> callContents, 791var contents = new List<AIContent>(results.Length);
ChatCompletion\OpenTelemetryChatClient.cs (1)
187List<ChatResponseUpdate> trackedUpdates = [];
ChatReduction\SummarizingChatReducer.cs (2)
95var unsummarizedMessages = new List<ChatMessage>(); 138var newUnsummarizedMessages = unsummarizedMessages.Skip(messagesToResummarize).ToList();
Embeddings\CachingEmbeddingGenerator.cs (1)
72List<(int Index, string CacheKey, TInput Input)>? uncached = null;
Embeddings\EmbeddingGeneratorBuilder.cs (1)
21private List<Func<IEmbeddingGenerator<TInput, TEmbedding>, IServiceProvider, IEmbeddingGenerator<TInput, TEmbedding>>>? _generatorFactories;
Image\ImageGeneratorBuilder.cs (1)
18private List<Func<IImageGenerator, IServiceProvider, IImageGenerator>>? _generatorFactories;
SpeechToText\SpeechToTextClientBuilder.cs (1)
18private List<Func<ISpeechToTextClient, IServiceProvider, ISpeechToTextClient>>? _clientFactories;
Microsoft.Extensions.AI.Abstractions (22)
ChatCompletion\ChatResponseExtensions.cs (3)
34if (list is List<ChatMessage> listConcrete) 264if (contents is List<AIContent> contentsList) 296CoalesceTextContent((List<AIContent>)response.Messages[i].Contents);
Embeddings\GeneratedEmbeddings.cs (1)
18private List<TEmbedding> _embeddings;
SpeechToText\SpeechToTextResponseUpdateExtensions.cs (2)
35ChatResponseExtensions.CoalesceTextContent((List<AIContent>)response.Contents); 61ChatResponseExtensions.CoalesceTextContent((List<AIContent>)response.Contents);
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (7)
131List<JsonDerivedType> derivedTypes = polyOptions.DerivedTypes.ToList(); 142List<JsonSchema>? anyOf = new(derivedTypes.Count); 240List<KeyValuePair<string, JsonSchema>>? properties = null; 241List<string>? required = null; 400List<KeyValuePair<string, JsonSchema>>? dictProps = null; 401List<string>? dictRequired = null; 489private readonly List<string> _currentPath = new();
src\Shared\JsonSchemaExporter\JsonSchemaExporter.JsonSchema.cs (6)
144public List<KeyValuePair<string, JsonSchema>>? Properties 154private List<KeyValuePair<string, JsonSchema>>? _properties; 156public List<string>? Required 166private List<string>? _required; 216public List<JsonSchema>? AnyOf 226private List<JsonSchema>? _anyOf;
UsageDetails.cs (1)
66List<string> parts = [];
Utilities\AIJsonUtilities.Schema.Transform.cs (2)
39List<string>? path = transformOptions.TransformSchemaNode is not null ? [] : null; 43private static JsonNode TransformSchemaCore(JsonNode? schema, AIJsonSchemaTransformOptions transformOptions, List<string>? path)
Microsoft.Extensions.AI.Abstractions.Tests (31)
ChatCompletion\ChatMessageTests.cs (3)
88List<AIContent> content = []; 171Assert.IsType<List<AIContent>>(new ChatMessage().Contents); 180List<AIContent> contents = [];
ChatCompletion\ChatOptionsTests.cs (3)
60List<string> stopSequences = 66List<AITool> tools = 139List<string> stopSequences =
ChatCompletion\ChatResponseTests.cs (1)
37List<ChatMessage> messages = [];
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (3)
21Assert.Throws<ArgumentNullException>("updates", () => ((List<ChatResponseUpdate>)null!).ToChatResponse()); 151List<ChatResponseUpdate> updates = []; 153List<string> expected = [];
ChatCompletion\DelegatingChatClientTests.cs (2)
24var expectedChatContents = new List<ChatMessage>(); 56var expectedChatContents = new List<ChatMessage>();
Contents\AIAnnotationTests.cs (1)
33List<AnnotatedRegion> regions = [new TextSpanAnnotatedRegion { StartIndex = 10, EndIndex = 42 }];
Contents\CitationAnnotationTests.cs (1)
42List<AnnotatedRegion> regions = [new TextSpanAnnotatedRegion { StartIndex = 10, EndIndex = 42 }];
Embeddings\DelegatingEmbeddingGeneratorTests.cs (1)
24var expectedInput = new List<string>();
Embeddings\GeneratedEmbeddingsTests.cs (1)
58List<Embedding<float>> embeddings =
Image\ImageGenerationResponseTests.cs (4)
30List<AIContent> content = []; 72List<AIContent> contents = [ 98List<AIContent> contents = [ 136List<AIContent> contents = [
SpeechToText\SpeechToTextClientTests.cs (1)
59List<SpeechToTextResponseUpdate> updates = [];
SpeechToText\SpeechToTextResponseTests.cs (2)
73List<AIContent> content = []; 133List<AIContent> newContents = [new TextContent("text1"), new TextContent("text2")];
SpeechToText\SpeechToTextResponseUpdateExtensionsTests.cs (3)
38Assert.Throws<ArgumentNullException>("updates", () => ((List<SpeechToTextResponseUpdate>)null!).ToSpeechToTextResponse()); 81List<SpeechToTextResponseUpdate> updates = []; 83List<string> expected = [];
SpeechToText\SpeechToTextResponseUpdateTests.cs (1)
41List<AIContent> newList = new();
test\Shared\JsonSchemaExporter\TestTypes.cs (3)
815yield return new TestData<List<bool>>([false, true, false], """{"type":["array","null"],"items":{"type":"boolean"}}"""); 954public List<SimpleRecord>? ListValue { get; set; } 1298[JsonSerializable(typeof(List<bool>))]
Utilities\AIJsonUtilitiesTests.cs (1)
1082List<string?> names = [];
Microsoft.Extensions.AI.AzureAIInference (3)
AzureAIChatToolJson.cs (1)
17public List<string> Required { get; set; } = [];
AzureAIInferenceChatClient.cs (2)
510private static List<ChatMessageContentItem> GetContentParts(IList<AIContent> contents) 514List<ChatMessageContentItem> parts = [];
Microsoft.Extensions.AI.AzureAIInference.Tests (7)
AzureAIInferenceChatClientTests.cs (7)
144List<ChatMessage> messages = multiContent ? 217List<ChatMessage> messages = multiContent ? 221List<ChatResponseUpdate> updates = []; 639public List<string> Required { get; set; } = []; 984List<ChatMessage> messages = 1130List<ChatMessage> messages = 1335List<ChatResponseUpdate> updates = [];
Microsoft.Extensions.AI.Evaluation (2)
ChatMessageExtensions.cs (1)
73List<ChatMessage> conversationHistory = [.. messages];
CompositeEvaluator.cs (1)
109var metrics = new List<EvaluationMetric>();
Microsoft.Extensions.AI.Evaluation.Console (1)
Commands\ReportCommand.cs (1)
52List<ScenarioRunResult> results = [];
Microsoft.Extensions.AI.Evaluation.Integration.Tests (9)
AgentQualityEvaluatorTests.cs (2)
207List<ChatMessage> messages = 220List<ChatMessage> messages =
QualityEvaluatorTests.cs (4)
91var messages = new List<ChatMessage>(); 131var messages = new List<ChatMessage>(); 168var messages = new List<ChatMessage>(); 203var messages = new List<ChatMessage>();
SafetyEvaluatorTests.cs (3)
184var messages = new List<ChatMessage>(); 262var messages = new List<ChatMessage>(); 590var messages = new List<ChatMessage>();
Microsoft.Extensions.AI.Evaluation.NLP (9)
Common\BLEUAlgorithm.cs (2)
70List<NGram<string>> hypGrams = hypothesis.CreateNGrams(n); 77List<NGram<string>> refGrams = rf.CreateNGrams(n);
Common\GLEUAlgorithm.cs (1)
31List<(int, int)> hypCounts = [];
Common\NGramExtensions.cs (6)
16internal static List<NGram<T>> CreateNGrams<T>(this T[] input, int n) 25internal static List<NGram<T>> CreateNGrams<T>(this ReadOnlySpan<T> input, int n) 33List<NGram<T>> nGrams = []; 48internal static List<NGram<T>> CreateAllNGrams<T>(this T[] input, int minN, int maxN = -1) 58internal static List<NGram<T>> CreateAllNGrams<T>(this ReadOnlySpan<T> input, int minN, int maxN = -1) 72List<NGram<T>> nGrams = [];
Microsoft.Extensions.AI.Evaluation.Quality (33)
CoherenceEvaluator.cs (3)
91List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(userRequest, modelResponse); 105private static List<ChatMessage> GetEvaluationInstructions(ChatMessage? userRequest, ChatResponse modelResponse) 119List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
CompletenessEvaluator.cs (3)
96List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(modelResponse, context); 111private static List<ChatMessage> GetEvaluationInstructions( 127List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
EquivalenceEvaluator.cs (3)
97List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(userRequest, modelResponse, context); 112private static List<ChatMessage> GetEvaluationInstructions( 124List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
FluencyEvaluator.cs (3)
83List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(modelResponse); 97private static List<ChatMessage> GetEvaluationInstructions(ChatResponse modelResponse) 111List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
GroundednessEvaluator.cs (3)
96List<ChatMessage> evaluationInstructions = 112private static List<ChatMessage> GetEvaluationInstructions( 129List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
IntentResolutionEvaluator.cs (3)
141List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(messages, modelResponse, context); 165private static List<ChatMessage> GetEvaluationInstructions( 173List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
RelevanceEvaluator.cs (3)
96List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(userRequest, modelResponse); 110private static List<ChatMessage> GetEvaluationInstructions(ChatMessage userRequest, ChatResponse modelResponse) 124List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
RelevanceTruthAndCompletenessEvaluator.cs (2)
117List<ChatMessage> evaluationInstructions = 137private static List<ChatMessage> GetEvaluationInstructions(
RetrievalEvaluator.cs (3)
112List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(userRequest, context); 127private static List<ChatMessage> GetEvaluationInstructions( 143List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
TaskAdherenceEvaluator.cs (3)
140List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(messages, modelResponse, context); 160private static List<ChatMessage> GetEvaluationInstructions( 266List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, systemPrompt)];
ToolCallAccuracyEvaluator.cs (3)
140List<ChatMessage> evaluationInstructions = GetEvaluationInstructions(messages, modelResponse, context); 155private static List<ChatMessage> GetEvaluationInstructions( 172List<ChatMessage> evaluationInstructions = [new ChatMessage(ChatRole.System, SystemPrompt)];
Utilities\JsonOutputFixer.cs (1)
65var messages = new List<ChatMessage>
Microsoft.Extensions.AI.Evaluation.Reporting (1)
SimpleChatClient.cs (1)
63List<ChatResponseUpdate>? updates = null;
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Storage\AzureStorageResultStore.cs (1)
45List<PathItem> paths = [];
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (3)
DiskBased\DiskBasedResponseCacheTests.cs (1)
15private readonly List<string> _tempStorage = [];
DiskBased\DiskBasedResultStoreTests.cs (1)
14private readonly List<string> _tempStorage = [];
ResultStoreTester.cs (1)
45List<(string executionName, string scenarioName, string iterationName)> results = [];
Microsoft.Extensions.AI.Evaluation.Safety (17)
ContentSafetyServicePayloadUtilities.cs (17)
92List<Dictionary<string, ChatMessage>> turns; 93List<string?>? normalizedPerTurnContext; 94List<EvaluationDiagnostic>? diagnostics; 104IEnumerable<List<XElement>> userTextListItems = 110List<XElement> item = []; 186List<Dictionary<string, ChatMessage>> turns; 187List<string?>? normalizedPerTurnContext; 188List<EvaluationDiagnostic>? diagnostics; 264List<Dictionary<string, ChatMessage>> turns; 265List<string?>? normalizedPerTurnContext; 266List<EvaluationDiagnostic>? diagnostics; 388(List<Dictionary<string, ChatMessage>> turns, 389List<string?>? normalizedPerTurnContext, 390List<EvaluationDiagnostic>? diagnostics, 399List<Dictionary<string, ChatMessage>> turns = []; 401List<string?>? normalizedPerTurnContext = 490List<EvaluationDiagnostic>? diagnostics = null;
Microsoft.Extensions.AI.Integration.Tests (27)
ChatClientIntegrationTests.cs (21)
142List<ChatResponseUpdate> chunks = []; 161List<ChatMessage> history = [new(ChatRole.User, "Explain in 100 words how AI works")]; 219var activities = new List<Activity>(); 230List<ChatMessage> messages = 286var activities = new List<Activity>(); 297List<ChatMessage> messages = 318var activities = new List<Activity>(); 329List<ChatMessage> messages = 350var activities = new List<Activity>(); 359List<ChatMessage> messages = 365List<string> shoppingCart = []; 377private static void AssertUsageAgainstActivities(ChatResponse response, List<Activity> activities) 407var activities = new List<Activity>(); 468AIFunctionFactory.Create((List<int> list) => list, createOptions()), 931var activities = new List<Activity>(); 1087var capturedOptions = new List<ChatOptions?>(); 1135List<ChatMessage> messages = 1176List<ChatMessage> messages = 1237List<ChatMessage> messages = 1271List<ChatMessage> messages = 1317List<ChatMessage> messages =
EmbeddingGeneratorIntegrationTests.cs (1)
111var activities = new List<Activity>();
PromptBasedFunctionCallingChatClient.cs (1)
49List<ChatMessage> chatMessagesList = [CreateToolPrompt(options.Tools), .. chatMessages.Select(m => m.Clone())];
ReducingChatClientTests.cs (2)
44List<ChatMessage> messages = 76List<ChatMessage> list = messages.ToList();
VerbatimMultiPartHttpHandler.cs (2)
119((List<JsonElement>)parameters[name]).Add(ParseContentToJsonElement(rawValue)); 132if (parameters[key] is List<JsonElement> list && list.Count == 1)
Microsoft.Extensions.AI.OpenAI (19)
MicrosoftExtensionsAIChatExtensions.cs (1)
141var toolCallUpdates = update.Contents.OfType<FunctionCallContent>().Select((fcc, index) =>
OpenAIAssistantsChatClient.cs (7)
94(RunCreationOptions runOptions, ToolResources? toolResources, List<FunctionResultContent>? toolResults) = await CreateRunOptionsAsync(messages, options, cancellationToken).ConfigureAwait(false); 126ConvertFunctionResultsToToolOutput(toolResults, out List<ToolOutput>? toolOutputs) is { } toolRunId && 307private async ValueTask<(RunCreationOptions RunOptions, ToolResources? Resources, List<FunctionResultContent>? ToolResults)> CreateRunOptionsAsync( 466List<FunctionResultContent>? functionResults = null; 469List<MessageContent> messageContents = []; 528private static string? ConvertFunctionResultsToToolOutput(List<FunctionResultContent>? toolResults, out List<ToolOutput>? toolOutputs)
OpenAIChatClient.cs (5)
140var parts = ToOpenAIChatContent(input.Contents); 171List<ChatMessageContentPart>? contentParts = null; 172List<ChatToolCall>? toolCalls = null; 226internal static List<ChatMessageContentPart> ToOpenAIChatContent(IEnumerable<AIContent> contents) 228List<ChatMessageContentPart> parts = [];
OpenAIImageGenerator.cs (1)
157List<AIContent> contents = new();
OpenAIResponsesChatClient.cs (5)
148((List<AIContent>)message.Contents).AddRange(ToAIContents(messageItem.Content)); 620private static List<AIContent> ToAIContents(IEnumerable<ResponseContentPart> contents) 622List<AIContent> results = []; 691private static List<ResponseContentPart> ToResponseContentParts(IList<AIContent> contents) 693List<ResponseContentPart> parts = [];
Microsoft.Extensions.AI.OpenAI.Tests (29)
OpenAIChatClientTests.cs (6)
233List<ChatResponseUpdate> updates = []; 802List<ChatMessage> messages = 909List<ChatMessage> messages = 1005List<ChatMessage> messages = 1307List<ChatResponseUpdate> updates = []; 1447List<ChatMessage> messages =
OpenAIConversionTests.cs (20)
88List<ChatMessage> messages = 154List<ChatMessage> messages = 242List<ChatResponseUpdate> updates = []; 306List<OpenAI.Chat.ChatMessage> openAIMessages = 333List<ChatMessage> inputMessages = 359List<ChatMessage> inputMessages = 550var updates = new List<ChatResponseUpdate>(); 551var result = new List<StreamingChatCompletionUpdate>(); 577var result = new List<StreamingChatCompletionUpdate>(); 599var result = new List<StreamingChatCompletionUpdate>(); 633var result = new List<StreamingChatCompletionUpdate>(); 663var result = new List<StreamingChatCompletionUpdate>(); 698var result = new List<StreamingChatCompletionUpdate>(); 732var result = new List<StreamingChatCompletionUpdate>(); 771var result = new List<StreamingChatCompletionUpdate>(); 800var result = new List<StreamingChatCompletionUpdate>(); 831var result = new List<StreamingChatCompletionUpdate>(); 959var messages = new List<ChatMessage> 996var messages = new List<ChatMessage> 1031var messages = new List<ChatMessage>
OpenAIResponseClientIntegrationTests.cs (2)
40var regions = Assert.IsType<List<AnnotatedRegion>>(ca.AnnotatedRegions);
OpenAIResponseClientTests.cs (1)
249List<ChatResponseUpdate> updates = [];
Microsoft.Extensions.AI.Templates.Tests (1)
Infrastructure\TestCommand.cs (1)
22public List<string> Arguments { get; } = [];
Microsoft.Extensions.AI.Tests (86)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (9)
81var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 142var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 251var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 270var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 289var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 317var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 345var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 413var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") }; 441var chatHistory = new List<ChatMessage> { new(ChatRole.User, "Hello") };
ChatCompletion\DistributedCachingChatClientTest.cs (9)
247List<ChatResponseUpdate> actualUpdate = 260List<ChatResponseUpdate> expectedCachedResponse = 311List<ChatResponseUpdate> expectedResponse = 366List<ChatResponseUpdate> expectedResponse = 415var items = await ToListAsync(result2); 434List<ChatResponseUpdate> expectedResponse = 542var result2 = await ToListAsync(outer.GetStreamingResponseAsync([input])); 764private static async Task<List<T>> ToListAsync<T>(IAsyncEnumerable<T> values) 766var result = new List<T>();
ChatCompletion\FunctionInvocationContextTests.cs (1)
47List<ChatMessage> messages = [];
ChatCompletion\FunctionInvokingChatClientTests.cs (36)
91List<ChatMessage> plan = 125List<ChatMessage> plan = 158List<ChatMessage> plan = 189List<ChatMessage> plan = 249List<ChatMessage> plan = 293List<ChatMessage> plan = 327List<ChatMessage> plan = 376List<ChatMessage> plan = 425List<ChatMessage> plan = 503List<ChatMessage> plan = 550List<ChatMessage> plan = 567static void Validate(List<ChatMessage> finalChat) 587List<ChatMessage> plan = 609List<ChatMessage> plan = 665List<ChatMessage> plan = 687var activities = new List<Activity>(); 726var messages = new List<ChatMessage> 737List<ChatResponseUpdate> updates; 784var messages = new List<ChatMessage> 819var invocationContexts = new List<FunctionInvocationContext>(); 842List<ChatMessage> planBeforeTermination = 852List<ChatMessage> plan = 867async Task InvokeAsync(Func<Task<List<ChatMessage>>> work) 871var messages = await work(); 928List<ChatMessage> messages = [new(ChatRole.User, "hello")]; 936var frcs = lastMessage.Contents.OfType<FunctionResultContent>().ToList(); 998List<ChatMessage> plan = 1027List<ChatMessage> plan = 1077private static async Task<List<ChatMessage>> InvokeAndAssertAsync( 1079List<ChatMessage> plan, 1080List<ChatMessage>? expected = null, 1089List<ChatMessage> chat = [plan[0]]; 1177private static async Task<List<ChatMessage>> InvokeAndAssertStreamingAsync( 1179List<ChatMessage> plan, 1180List<ChatMessage>? expected = null, 1189List<ChatMessage> chat = [plan[0]];
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
27var activities = new List<Activity>(); 108List<ChatMessage> messages =
ChatCompletion\ReducingChatClientTests.cs (4)
34var originalMessages = new List<ChatMessage> 42var reducedMessages = new List<ChatMessage> 72var updates = new List<ChatResponseUpdate>(); 97var reducedMessages = new List<ChatMessage> { new(ChatRole.User, "Reduced message") };
ChatReduction\MessageCountingChatReducerTests.cs (13)
51List<ChatMessage> messages = 61var resultList = result.ToList(); 86List<ChatMessage> messages = 97var resultList = result.ToList(); 125List<ChatMessage> messages = 136var resultList = result.ToList(); 164var messages = new List<ChatMessage>(); 171var resultList = result.ToList(); 200List<ChatMessage> messages = 206var resultList = result.ToList(); 221List<ChatMessage> messages = 239List<ChatMessage> messages = 249var resultList = result.ToList();
ChatReduction\SummarizingChatReducerTests.cs (10)
67List<ChatMessage> messages = 80var resultList = result.ToList(); 92List<ChatMessage> messages = 104var resultList = result.ToList(); 121var messages = new List<ChatMessage>(); 140var resultList = result.ToList(); 156List<ChatMessage> messages = 182List<ChatMessage> messages = 196var resultList = result.ToList(); 210List<ChatMessage> messages =
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
25var activities = new List<Activity>();
Functions\AIFunctionFactoryTest.cs (1)
36Assert.Throws<ArgumentException>("method", () => AIFunctionFactory.Create(typeof(List<>).GetMethod("Add")!, new List<int>()));
Microsoft.Extensions.ApiDescription.Client (1)
GetOpenApiReferenceMetadata.cs (1)
52var outputs = new List<ITaskItem>(Inputs.Length);
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 (6)
GetDocumentTests.cs (1)
122var documentNames = Directory.GetFiles(outputPath.FullName).Where(documentName => documentName.EndsWith(".json", StringComparison.Ordinal)).ToList();
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 (17)
AsyncState.cs (3)
16private static readonly ObjectPool<List<object?>> _featuresPool = PoolFactory.CreatePool(new FeaturesPooledPolicy()); 94internal static void EnsureCount(List<object?> features, int count) 113public List<object?>? Features { get; set; }
FeaturesPooledPolicy.cs (3)
9internal sealed class FeaturesPooledPolicy : IPooledObjectPolicy<List<object?>> 12public List<object?> Create() 18public bool Return(List<object?> obj)
src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.AsyncState.Tests (4)
AsyncStateTests.cs (3)
218var l = new List<object?>(); 226var l = new List<object?>(new object?[5]); 234var l = new List<object?>(new object?[5]);
FeaturesPooledPolicyTests.cs (1)
24var list = policy.Create();
Microsoft.Extensions.Caching.Abstractions (4)
MemoryCacheEntryOptions.cs (4)
19private List<IChangeToken>? _expirationTokens; 20private List<PostEvictionCallbackRegistration>? _postEvictionCallbacks; 88internal List<IChangeToken>? ExpirationTokensDirect => _expirationTokens; 95internal List<PostEvictionCallbackRegistration>? PostEvictionCallbacksDirect => _postEvictionCallbacks;
Microsoft.Extensions.Caching.Hybrid.Tests (6)
LogCollector.cs (1)
12private readonly List<(string categoryName, LogLevel logLevel, EventId eventId, Exception? exception, string message)> _items = [];
SerializerTests.cs (4)
109List<(int, string)> source = [(1, "a"), (2, "b")]; 110var clone = RoundTrip(source, """[{"Item1":1,"Item2":"a"},{"Item1":2,"Item2":"b"}]"""u8, JsonSerializer.FieldEnabled); 125List<Tuple<int, string>> source = [Tuple.Create(1, "a"), Tuple.Create(2, "b")]; 126var clone = RoundTrip(source, """[{"Item1":1,"Item2":"a"},{"Item1":2,"Item2":"b"}]"""u8, JsonSerializer.Default);
TestEventListener.cs (1)
20private readonly List<(int id, string name, EventLevel level)> _events = [];
Microsoft.Extensions.Caching.Memory (17)
CacheEntry.CacheEntryTokens.cs (9)
20private List<IChangeToken>? _expirationTokens; 21private List<IDisposable>? _expirationTokenRegistrations; 22private List<PostEvictionCallbackRegistration>? _postEvictionCallbacks; // this is not really related to tokens, but was moved here to shrink typical CacheEntry size 24internal List<IChangeToken> ExpirationTokens => _expirationTokens ??= new List<IChangeToken>(); 25internal List<PostEvictionCallbackRegistration> PostEvictionCallbacks => _postEvictionCallbacks ??= new List<PostEvictionCallbackRegistration>(); 29List<IChangeToken>? expirationTokens = _expirationTokens; 50List<IChangeToken>? expirationTokens = _expirationTokens; 91List<IDisposable>? registrations = _expirationTokenRegistrations; 117List<PostEvictionCallbackRegistration>? callbackRegistrations = Interlocked.Exchange(ref entry._tokens._postEvictionCallbacks, null);
MemoryCache.cs (8)
30private readonly List<WeakReference<Stats>>? _allStats; 446List<WeakReference<Stats>> all = _allStats; 584var entriesToRemove = new List<CacheEntry>(); 586var lowPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>(); 587var normalPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>(); 588var highPriEntries = new List<(CacheEntry entry, DateTime lastAccessed)>(); 635static void ExpirePriorityBucket(ref long removedSize, long removalSizeTarget, Func<CacheEntry, long> computeEntrySize, List<CacheEntry> entriesToRemove, List<(CacheEntry Entry, DateTime LastAccessed)> priorityEntries)
Microsoft.Extensions.Compliance.Abstractions (11)
src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Compliance.Testing (2)
FakeRedactionCollector.cs (2)
15private readonly List<RedactorRequested> _redactorRequestedLog = []; 16private readonly List<RedactedData> _dataRedactedLog = [];
Microsoft.Extensions.Configuration (24)
ChainedConfigurationProvider.cs (1)
78var keys = new List<string>();
ConfigurationBuilder.cs (2)
14private readonly List<IConfigurationSource> _sources = new(); 47var providers = new List<IConfigurationProvider>();
ConfigurationManager.cs (4)
37private readonly List<IDisposable> _changeTokenRegistrations = new(); 142var newProvidersList = new List<IConfigurationProvider>(); 188private readonly List<IConfigurationSource> _sources = new(); 232public List<IConfigurationSource>.Enumerator GetEnumerator() => _sources.GetEnumerator();
ConfigurationProvider.cs (1)
65var results = new List<string>();
ConfigurationRoot.cs (1)
20private readonly List<IDisposable> _changeTokenRegistrations;
ConfigurationSection.cs (1)
157public List<Configuration.ConfigurationSectionDebugView> Sections => Configuration.ConfigurationSectionDebugView.FromConfiguration(_current, _current._root);
ConfigurationSectionDebugView.cs (2)
43internal static List<ConfigurationSectionDebugView> FromConfiguration(IConfiguration current, IConfigurationRoot root) 45var data = new List<ConfigurationSectionDebugView>();
ReferenceCountedProviders.cs (11)
14public static ReferenceCountedProviders Create(List<IConfigurationProvider> providers) => new ActiveReferenceCountedProviders(providers); 19public static ReferenceCountedProviders CreateDisposed(List<IConfigurationProvider> providers) => new DisposedReferenceCountedProviders(providers); 21public abstract List<IConfigurationProvider> Providers { get; set; } 26public abstract List<IConfigurationProvider> NonReferenceCountedProviders { get; } 37private volatile List<IConfigurationProvider> _providers; 39public ActiveReferenceCountedProviders(List<IConfigurationProvider> providers) 44public override List<IConfigurationProvider> Providers 58public override List<IConfigurationProvider> NonReferenceCountedProviders => _providers; 81public DisposedReferenceCountedProviders(List<IConfigurationProvider> providers) 86public override List<IConfigurationProvider> Providers { get; set; } 87public override List<IConfigurationProvider> NonReferenceCountedProviders => Providers;
ReferenceCountedProvidersManager.cs (1)
41public void ReplaceProviders(List<IConfigurationProvider> providers)
Microsoft.Extensions.Configuration.Binder (9)
ConfigurationBinder.cs (9)
222List<PropertyInfo> modelProperties = GetAllProperties(instance.GetType()); 229List<string>? missingPropertyNames = null; 458Type genericType = typeof(List<>).MakeGenericType(type.GenericTypeArguments); 588List<PropertyInfo> properties = GetAllProperties(type); 621List<PropertyInfo> properties, out string missing) 629List<string> missingParameters = new(); 859var list = new List<object?>(); 1094private static List<PropertyInfo> GetAllProperties( 1102var allProperties = new List<PropertyInfo>();
Microsoft.Extensions.Configuration.KeyPerFile.Tests (5)
ConfigurationProviderCommandLineTest.cs (2)
17var testFiles = new List<IFileInfo>(); 30private void SectionToTestFiles(List<IFileInfo> testFiles, string sectionName, TestSection section)
ConfigurationProviderTestBase.cs (2)
253var sections = config.GetChildren().ToList(); 343var values = new List<KeyValuePair<string, string>>();
KeyPerFileTests.cs (1)
488List<IFileInfo> _list;
Microsoft.Extensions.Configuration.Xml (5)
XmlConfigurationElement.cs (2)
23public IDictionary<string, List<XmlConfigurationElement>>? ChildrenBySiblingName { get; set; } 32public List<XmlConfigurationElementAttributeValue>? Attributes { get; set; }
XmlStreamConfigurationProvider.cs (3)
77if (!parent.ChildrenBySiblingName.TryGetValue(element.SiblingName, out var siblings)) 94var children = new Dictionary<string, List<XmlConfigurationElement>>(StringComparer.OrdinalIgnoreCase); 332foreach (var childrenWithSameSiblingName in element.ChildrenBySiblingName.Values)
Microsoft.Extensions.DependencyInjection (16)
DependencyInjectionEventSource.cs (1)
28private readonly List<WeakReference<ServiceProvider>> _providers = new();
ServiceLookup\CallSiteChain.cs (1)
51var ordered = new List<KeyValuePair<ServiceIdentifier, ChainItemInfo>>(_callSiteChain);
ServiceLookup\CallSiteFactory.cs (2)
316List<KeyValuePair<int, ServiceCallSite>> callSitesByIndex = new(); 819private List<ServiceDescriptor>? _items;
ServiceLookup\ILEmit\ILEmitResolverBuilderContext.cs (2)
14public List<object?>? Constants { get; set; } 15public List<Func<IServiceProvider, object>>? Factories { get; set; }
ServiceLookup\ServiceProviderEngineScope.cs (7)
21private List<object>? _disposables; 122List<object>? toDispose = BeginDispose(); 142List<object>? toDispose = BeginDispose(); 177static async ValueTask Await(int i, ValueTask vt, List<object> toDispose) 199private List<object>? BeginDispose() 255public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.RootProvider.CallSiteFactory.Descriptors); 256public List<object> Disposables => new List<object>(_serviceProvider.Disposables);
ServiceProvider.cs (3)
75List<Exception>? exceptions = null; 315public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.Root.RootProvider.CallSiteFactory.Descriptors); 316public List<object> Disposables => new List<object>(_serviceProvider.Root.Disposables);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
18private readonly List<ServiceDescriptor> _descriptors = new List<ServiceDescriptor>();
Microsoft.Extensions.DependencyModel (43)
CompilationLibrary.cs (4)
51var assemblies = new List<string>(); 58var assemblies = new List<string>(); 74private List<string> ResolveReferencePaths(ICompilationAssemblyResolver resolver, List<string> assemblies)
DependencyContextJsonReader.cs (30)
139List<Target>? targets = null; 141List<RuntimeFallbacks>? runtimeFallbacks = null; 214private static Target? SelectRuntimeTarget([NotNull] List<Target>? targets, string? runtimeTargetName) 347private List<Target> ReadTargets(ref Utf8JsonReader reader) 351var targets = new List<Target>(); 374var libraries = new List<TargetLibrary>(); 396List<RuntimeFile>? runtimes = null; 397List<RuntimeFile>? natives = null; 398List<string>? compilations = null; 399List<RuntimeTargetEntryStub>? runtimeTargets = null; 400List<ResourceAssembly>? resources = null; 451private List<Dependency> ReadTargetLibraryDependencies(ref Utf8JsonReader reader) 453var dependencies = new List<Dependency>(); 476private static List<string> ReadPropertyNames(ref Utf8JsonReader reader) 478var runtimes = new List<string>(); 500private static List<RuntimeFile> ReadRuntimeFiles(ref Utf8JsonReader reader) 502var runtimeFiles = new List<RuntimeFile>(); 547private List<RuntimeTargetEntryStub> ReadTargetLibraryRuntimeTargets(ref Utf8JsonReader reader) 549var runtimeTargets = new List<RuntimeTargetEntryStub>(); 601private List<ResourceAssembly> ReadTargetLibraryResources(ref Utf8JsonReader reader) 603var resources = new List<ResourceAssembly>(); 726private static List<RuntimeFallbacks> ReadRuntimes(ref Utf8JsonReader reader) 728var runtimeFallbacks = new List<RuntimeFallbacks>(); 793var runtimeAssemblyGroups = new List<RuntimeAssetGroup>(); 794var nativeLibraryGroups = new List<RuntimeAssetGroup>(); 900public List<RuntimeFile>? Runtimes; 902public List<RuntimeFile>? Natives; 904public List<string>? Compilations; 906public List<RuntimeTargetEntryStub>? RuntimeTargets; 908public List<ResourceAssembly>? Resources;
Resolution\AppBaseCompilationAssemblyResolver.cs (3)
44public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string>? assemblies) 70var directories = new List<string>() 95var paths = new List<string>();
Resolution\CompositeCompilationAssemblyResolver.cs (1)
20public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string>? assemblies)
Resolution\ICompilationAssemblyResolver.cs (1)
10bool TryResolveAssemblyPaths(CompilationLibrary library, List<string>? assemblies);
Resolution\PackageCompilationAssemblyResolver.cs (2)
69public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string>? assemblies) 97List<string> paths = [];
Resolution\ReferenceAssemblyPathResolver.cs (1)
44public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string>? assemblies)
Utf8JsonReaderExtensions.cs (1)
74var items = new List<string?>();
Microsoft.Extensions.Diagnostics (4)
Metrics\DefaultMeterFactory.cs (3)
14private readonly Dictionary<string, List<FactoryMeter>> _cachedMeters = new(); 37if (_cachedMeters.TryGetValue(options.Name, out List<FactoryMeter>? meterList)) 74foreach (List<FactoryMeter> meterList in _cachedMeters.Values)
Metrics\MetricsSubscriptionManager.cs (1)
20var list = listeners.ToList();
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
HttpExceptionSummaryProvider.cs (1)
31var descriptions = new List<string>
Microsoft.Extensions.Diagnostics.HealthChecks (5)
DefaultHealthCheckService.cs (2)
274private readonly List<KeyValuePair<string, object>> _values; 320var values = _values;
HealthCheckPublisherHostedService.cs (3)
26private List<Timer>? _timers; 105private List<Timer> CreateTimers() 114var timers = new List<Timer>(delayPeriodGroups.Count);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (11)
src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherTests.cs (1)
23public static TheoryData<List<HealthStatus>, bool, int, string, LogLevel, string> PublishAsyncArgs => new()
Microsoft.Extensions.Diagnostics.HealthChecks.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 (18)
src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Windows\Disk\WindowsDiskIoRatePerfCounter.cs (1)
14private readonly List<IPerformanceCounter> _counters = [];
Windows\Disk\WindowsDiskIoTimePerfCounter.cs (1)
12private readonly List<IPerformanceCounter> _counters = [];
Windows\Disk\WindowsDiskMetrics.cs (4)
106List<string> diskIoRatePerfCounterNames = 136List<Measurement<long>> measurements = []; 161List<Measurement<long>> measurements = []; 186List<Measurement<double>> measurements = [];
Windows\Network\WindowsNetworkMetrics.cs (1)
48List<Measurement<long>> measurements = new(24);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (24)
CircularBufferTests.cs (4)
33var elementsToAdd = Enumerable.Range(1, BufferSize * 3).ToList(); 34var expectedBufferElements = elementsToAdd.Skip(Math.Max(0, elementsToAdd.Count - BufferSize)).ToList(); 51var bufferElements = Enumerable.Range(1, BufferSize).ToList(); 70var bufferElements = Enumerable.Range(1, BufferSize).ToList();
Helpers\TestMeterFactory.cs (1)
12public List<Meter> Meters { get; } = new List<Meter>();
Linux\Disk\FakeDiskStatsReader.cs (1)
10internal class FakeDiskStatsReader(Dictionary<string, List<DiskStats>> stats) : IDiskStatsReader
Linux\Disk\LinuxSystemDiskMetricsTests.cs (1)
52var diskStatsReader = new FakeDiskStatsReader(new Dictionary<string, List<DiskStats>>
Linux\LinuxCountersTests.cs (1)
103var samples = new List<(Instrument instrument, long value)>();
Linux\LinuxNetworkMetricsTests.cs (6)
56List<Measurement<long>> measurements = metrics.GetMeasurements().ToList(); 73List<Measurement<long>> measurements = metrics.GetMeasurements().ToList(); 86List<Measurement<long>> first = metrics.GetMeasurements().ToList(); 89List<Measurement<long>> second = metrics.GetMeasurements().ToList(); 104List<Measurement<long>> first = metrics.GetMeasurements().ToList(); 107List<Measurement<long>> second = metrics.GetMeasurements().ToList();
Linux\LinuxUtilizationProviderTests.cs (5)
66var samples = new List<(Instrument instrument, double value)>(); 146var samples = new List<(Instrument instrument, double value)>(); 261var samples = new List<(Instrument instrument, double value)>(); 332var samples = new List<(Instrument instrument, double value)>(); 398var samples = new List<(Instrument instrument, double value)>();
ResourceMonitoringServiceTests.cs (3)
42var publishersList = new List<IResourceUtilizationPublisher> 99var publishersList = new List<IResourceUtilizationPublisher> 131var publishersList = new List<IResourceUtilizationPublisher>
Windows\WindowsCountersTests.cs (2)
50var samples = new List<(Instrument instrument, long value)>(); 92var samples = new List<(Instrument instrument, long value)>();
Microsoft.Extensions.Diagnostics.Testing (6)
Logging\FakeLogCollector.cs (1)
19private readonly List<FakeLogRecord> _records = [];
Logging\FakeLogger.cs (2)
76var l = new List<object?>(); 144var l = new List<KeyValuePair<string, string?>>();
Metrics\MetricCollector.cs (3)
37private readonly List<CollectedMeasurement<T>> _measurements = []; 38private readonly List<Waiter> _waiters = []; 300List<Waiter>? toBeWoken = null;
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Logging\FakeLoggerTests.cs (2)
74var l = new List<KeyValuePair<string, object?>> 130var l = new List<KeyValuePair<string, object?>>
Metrics\MeasurementExtensionsTests.cs (4)
27var filtered = fullSnap.ContainsTags("A").ToList(); 52var filtered = fullSnap.ContainsTags(new KeyValuePair<string, object?>("A", "a")).ToList(); 77var filtered = fullSnap.MatchesTags("A", "B").ToList(); 105var filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a"), new("B", "b")).ToList();
Microsoft.Extensions.FileProviders.Composite (3)
CompositeDirectoryContents.cs (2)
19private List<IFileInfo>? _files; 21private List<IDirectoryContents>? _directories;
CompositeFileProvider.cs (1)
79var changeTokens = new List<IChangeToken>();
Microsoft.Extensions.FileProviders.Embedded (6)
EmbeddedFileProvider.cs (1)
151var entries = new List<IFileInfo>();
Manifest\ManifestDirectory.cs (1)
89var list = new List<ManifestEntry>(Children.Count);
Manifest\ManifestDirectoryInfo.cs (1)
60var entries = new List<IFileInfo>();
Manifest\ManifestParser.cs (3)
50var entriesList = new List<ManifestEntry>(); 64private static void ValidateEntries(List<ManifestEntry> entriesList) 100var children = new List<ManifestEntry>();
Microsoft.Extensions.FileSystemGlobbing (21)
InMemoryDirectoryInfo.cs (4)
48var fileList = new List<string>(files.Count()); 84var dict = new Dictionary<string, List<string>>(); 103if (!dict.TryGetValue(name, out List<string>? list)) 114foreach (KeyValuePair<string, List<string>> item in dict)
Internal\MatcherContext.cs (4)
22private readonly List<FilePatternMatch> _files; 42internal MatcherContext(List<IncludeOrExcludeValue<IPattern>> orderedPatterns, DirectoryInfoBase directoryInfo, StringComparison comparison) 74var entities = new List<FileSystemInfoBase?>(); 98var subDirectories = new List<DirectoryInfoBase>();
Internal\PathSegments\WildcardPathSegment.cs (2)
18public WildcardPathSegment(string beginsWith, List<string> contains, string endsWith, StringComparison comparisonType) 38public List<string> Contains { get; }
Internal\Patterns\PatternBuilder.cs (7)
41var allSegments = new List<IPathSegment>(); 44List<IPathSegment>? segmentsPatternStartsWith = null; 45List<IList<IPathSegment>>? segmentsPatternContains = null; 46List<IPathSegment>? segmentsPatternEndsWith = null; 114var contains = new List<string>(); 219public LinearPattern(List<IPathSegment> allSegments) 239public RaggedPattern(List<IPathSegment> allSegments, IList<IPathSegment> segmentsPatternStartsWith, IList<IPathSegment> segmentsPatternEndsWith, IList<IList<IPathSegment>> segmentsPatternContains)
Matcher.cs (3)
99private readonly List<IPattern>? _includePatterns; 100private readonly List<IPattern>? _excludePatterns; 101private readonly List<IncludeOrExcludeValue<IPattern>>? _includeOrExcludePatterns;
MatcherExtensions.cs (1)
61List<string> result = matches is ICollection matchCollection ? new(matchCollection.Count) : new();
Microsoft.Extensions.Hosting (16)
HostApplicationBuilder.cs (5)
145List<KeyValuePair<string, string?>>? optionList = null; 260private readonly List<Action<IConfigurationBuilder>> _configureHostConfigActions = new(); 261private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppConfigActions = new(); 262private readonly List<IConfigureContainerAdapter> _configureContainerActions = new(); 263private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new();
HostBuilder.cs (4)
28private readonly List<Action<IConfigurationBuilder>> _configureHostConfigActions = new List<Action<IConfigurationBuilder>>(); 29private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppConfigActions = new List<Action<HostBuilderContext, IConfigurationBuilder>>(); 30private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new List<Action<HostBuilderContext, IServiceCollection>>(); 31private readonly List<IConfigureContainerAdapter> _configureContainerActions = new List<IConfigureContainerAdapter>();
Internal\Host.cs (7)
87List<Exception> exceptions = new(); 230List<Exception> exceptions = new(); 312List<Exception> exceptions, 320List<Task>? tasks = null; 395private static List<IHostedLifecycleService>? GetHostLifecycles(IEnumerable<IHostedService> hostedServices) 397List<IHostedLifecycleService>? _result = null; 459public List<IHostedService> HostedServices => new List<IHostedService>(host._hostedServices ??= host.Services.GetRequiredService<IEnumerable<IHostedService>>());
Microsoft.Extensions.Hosting.Testing.Tests (2)
HostingFakesExtensionsTests.cs (2)
314var firstCallbackTarget = new List<string>(); 315var secondCallbackTarget = new List<string>();
Microsoft.Extensions.Http (4)
HttpClientFactoryOptions.cs (1)
106internal List<Action<HttpMessageHandlerBuilder>> LoggingBuilderActions { get; } = new List<Action<HttpMessageHandlerBuilder>>();
Logging\HttpHeadersLogValue.cs (3)
18private List<KeyValuePair<string, object>>? _values; 33private List<KeyValuePair<string, object>> Values 39var values = new List<KeyValuePair<string, object>>();
Microsoft.Extensions.Http.Diagnostics (17)
Logging\Internal\HttpClientLogger.cs (4)
25private readonly ObjectPool<List<KeyValuePair<string, string>>> _headersPool = 73List<KeyValuePair<string, string>>? requestHeadersBuffer = null; 172List<KeyValuePair<string, string>>? responseHeadersBuffer = null; 204var requestHeadersBuffer = logRecord.RequestHeaders; // Store the value first, and then return logRecord to the pool.
Logging\Internal\HttpHeadersReader.cs (3)
41public void ReadRequestHeaders(HttpRequestMessage request, List<KeyValuePair<string, string>>? destination) 55public void ReadResponseHeaders(HttpResponseMessage response, List<KeyValuePair<string, string>>? destination) 73private void ReadHeaders(HttpHeaders headers, FrozenDictionary<string, DataClassification> headersToLog, List<KeyValuePair<string, string>> destination)
Logging\Internal\HttpRequestReader.cs (2)
97List<KeyValuePair<string, string>>? requestHeadersBuffer, CancellationToken cancellationToken) 117List<KeyValuePair<string, string>>? responseHeadersBuffer,
Logging\Internal\IHttpHeadersReader.cs (2)
19void ReadRequestHeaders(HttpRequestMessage request, List<KeyValuePair<string, string>>? destination); 26void ReadResponseHeaders(HttpResponseMessage response, List<KeyValuePair<string, string>>? destination);
Logging\Internal\IHttpRequestReader.cs (2)
25List<KeyValuePair<string, string>>? responseHeadersBuffer, 37List<KeyValuePair<string, string>>? requestHeadersBuffer,
Logging\Internal\LoggerMessageStateExtensions.cs (2)
24public static void AddRequestHeaders(this LoggerMessageState state, List<KeyValuePair<string, string>> items, ref int index) 43public static void AddResponseHeaders(this LoggerMessageState state, List<KeyValuePair<string, string>> items, ref int index)
Logging\Internal\LogRecord.cs (2)
46public List<KeyValuePair<string, string>>? RequestHeaders { get; set; } 51public List<KeyValuePair<string, string>>? ResponseHeaders { get; set; }
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
Benchmarks\HeadersReaderBenchmark.cs (1)
16private List<KeyValuePair<string, string>> _outputBuffer = null!;
Microsoft.Extensions.Http.Diagnostics.Tests (37)
Logging\AcceptanceTests.cs (2)
50var enrichers = sp.GetServices<IHttpClientLogEnricher>().ToList(); 621var logRecords = collector.GetSnapshot().Where(l => l.Category == "System.Net.Http.HttpClient.normal.LogicalHandler").ToList();
Logging\HttpClientLoggerTest.cs (6)
132It.IsAny<List<KeyValuePair<string, string>>>(), 533It.IsAny<List<KeyValuePair<string, string>>>(), 535.Returns((LogRecord a, HttpRequestMessage b, List<KeyValuePair<string, string>> c, CancellationToken d) => 542It.IsAny<List<KeyValuePair<string, string>>>(), 766var enrichers = new List<IHttpClientLogEnricher> { enricher1.Object, enricher2.Object }; 984.Setup(r => r.ReadResponseAsync(It.IsAny<LogRecord>(), It.IsAny<HttpResponseMessage>(), It.IsAny<List<KeyValuePair<string, string>>?>(), It.IsAny<CancellationToken>()))
Logging\HttpHeadersReaderTest.cs (9)
28var buffer = new List<KeyValuePair<string, string>>(); 66var buffer = new List<KeyValuePair<string, string>>(); 82var requestBuffer = new List<KeyValuePair<string, string>>(); 83var responseBuffer = new List<KeyValuePair<string, string>>(); 149List<KeyValuePair<string, string>> expectedRequest = [new KeyValuePair<string, string>("Header1", "Value.1")]; 150List<KeyValuePair<string, string>> expectedResponse = [new KeyValuePair<string, string>("Header3", "Value.3")]; 160List<KeyValuePair<string, string>> requestBuffer = []; 164List<KeyValuePair<string, string>> responseBuffer = []; 175List<KeyValuePair<string, string>>? responseBuffer = null;
Logging\HttpRequestReaderTest.cs (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\MockedRequestReader.cs (2)
24List<KeyValuePair<string, string>>? buffer, 29List<KeyValuePair<string, string>>? buffer,
Logging\LoggerMessageStateExtensionsTests.cs (2)
37List<KeyValuePair<string, string>> headers = [new(Header1, "v1"), new(Header2, "v2")]; 52private delegate void AddHeadersDelegate(LoggerMessageState state, List<KeyValuePair<string, string>> items, ref int index);
Microsoft.Extensions.Http.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 (14)
Internal\RequestMessageSnapshot.cs (2)
17private readonly List<KeyValuePair<string, IEnumerable<string>>> _headers = []; 18private readonly List<KeyValuePair<string, object?>> _properties = [];
Routing\Internal\WeightedGroups\WeightedGroupsRoutingStrategy.cs (1)
15private readonly List<WeightedUriEndpointGroup> _groups;
src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Http.Resilience.Tests (14)
Hedging\HedgingTests.cs (2)
58public List<string> Requests { get; } = []; 60public List<ResilienceContext?> RequestContexts { get; } = [];
Hedging\StandardHedgingTests.cs (1)
240var requests = new List<HttpRequestMessage>();
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
228var requests = new List<HttpRequestMessage>();
Resilience\HttpResilienceMetricsEnricherTests.cs (3)
19var tags = new List<KeyValuePair<string, object?>>(); 32var tags = new List<KeyValuePair<string, object?>>(); 45var tags = new List<KeyValuePair<string, object?>>();
Routing\OrderedRoutingStrategyTest.cs (1)
60var groups = new List<UriEndpointGroup>(options.Groups)
Routing\WeightedRoutingStrategyTest.cs (6)
81var groups = new List<WeightedUriEndpointGroup>(options.Groups) 112var groups = new List<WeightedUriEndpointGroup>(options.Groups) 124var groups = new List<WeightedUriEndpointGroup>(options.Groups) 136var groups = new List<WeightedUriEndpointGroup>(options.Groups) 148var groups = new List<WeightedUriEndpointGroup>(options.Groups) 157var groups = new List<WeightedUriEndpointGroup>(options.Groups)
Microsoft.Extensions.Identity.Core (16)
IdentityResult.cs (2)
16private readonly List<IdentityError> _errors = new List<IdentityError>(); 52internal static IdentityResult Failed(List<IdentityError>? errors)
PasswordValidator.cs (1)
43List<IdentityError>? errors = null;
RoleManager.cs (1)
399List<IdentityError>? errors = null;
RoleValidator.cs (3)
38var errors = await ValidateRoleName(manager, role).ConfigureAwait(false); 46private async Task<List<IdentityError>?> ValidateRoleName(RoleManager<TRole> manager, TRole role) 48List<IdentityError>? errors = null;
UserManager.cs (4)
1957var results = new List<string>(); 2452var newCodes = new List<string>(number); 2899List<IdentityError>? errors = null; 2929List<IdentityError>? errors = null;
UserValidator.cs (5)
44var errors = await ValidateUserName(manager, user).ConfigureAwait(false); 52private async Task<List<IdentityError>?> ValidateUserName(UserManager<TUser> manager, TUser user) 54List<IdentityError>? errors = null; 82private async Task<List<IdentityError>?> ValidateEmail(UserManager<TUser> manager, TUser user, List<IdentityError>? errors)
Microsoft.Extensions.Identity.Stores (1)
UserStoreBase.cs (1)
978var updatedCodes = new List<string>(splitCodes.Where(s => s != code));
Microsoft.Extensions.Localization (1)
Internal\ResourceManagerStringProvider.cs (1)
76var names = new List<string>();
Microsoft.Extensions.Localization.Tests (1)
ResourceManagerStringLocalizerTest.cs (1)
165var strings = localizer.GetAllStrings(includeParentCultures).ToList();
Microsoft.Extensions.Logging (16)
Logger.cs (10)
35List<Exception>? exceptions = null; 52static void LoggerLog(LogLevel logLevel, EventId eventId, ILogger logger, Exception? exception, Func<TState, Exception?, string> formatter, ref List<Exception>? exceptions, in TState state) 74List<Exception>? exceptions = null; 97static bool LoggerIsEnabled(LogLevel logLevel, ILogger logger, ref List<Exception>? exceptions) 131List<Exception>? exceptions = null; 155private static void ThrowLoggingError(List<Exception> exceptions) 172public List<LoggerProviderDebugView> Providers 176List<LoggerProviderDebugView> providers = new List<LoggerProviderDebugView>(); 209public List<object?>? Scopes 219List<object?> scopes = new List<object?>();
LoggerFactory.cs (5)
24private readonly List<ProviderRegistration> _providerRegistrations = new List<ProviderRegistration>(); 215var loggers = new List<LoggerInformation>(_providerRegistrations.Count); 232var messageLoggers = new List<MessageLogger>(); 233List<ScopeLogger>? scopeLoggers = _filterOptions.CaptureScopes ? new List<ScopeLogger>() : null; 337public List<ILoggerProvider> Providers => loggerFactory._providerRegistrations.Select(r => r.Provider).ToList();
LoggerFilterOptions.cs (1)
39internal List<LoggerFilterRule> RulesInternal { get; } = new List<LoggerFilterRule>();
Microsoft.Extensions.Logging.Abstractions (2)
LogValuesFormatter.cs (2)
19private readonly List<string> _valueNames = new List<string>(); 86public List<string> ValueNames => _valueNames;
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLoggerProvider.cs (1)
18private readonly List<LogMessage> _currentBatch = new List<LogMessage>();
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
424var rules = new List<LoggerFilterRule>();
Microsoft.Extensions.Logging.Generators (7)
LoggerMessageGenerator.Emitter.cs (1)
97var parentClasses = new List<string>();
LoggerMessageGenerator.Parser.cs (6)
70var results = new List<LoggerClass>(); 738private static bool ExtractTemplates(string? message, Dictionary<string, string> templateMap, List<string> templateList) 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.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\Program.cs (1)
73var argsList = args.ToList();
Microsoft.Extensions.ObjectPool.Tests (20)
DefaultObjectPoolTest.cs (11)
31var pool = new DefaultObjectPool<List<int>>(new ListPolicy()); 33var list1 = pool.Get(); 37var list2 = pool.Get(); 47var pool = new DefaultObjectPool<List<int>>(new ListPolicy()); 50var list = pool.Get(); 60var pool = new DefaultObjectPool<List<int>>(new ListPolicy()); 61var list1 = pool.Get(); 66var list2 = pool.Get(); 100private class ListPolicy : IPooledObjectPolicy<List<int>> 102public List<int> Create() 107public bool Return(List<int> obj)
DisposableObjectPoolTest.cs (9)
32var pool = new DisposableObjectPool<List<int>>(new ListPolicy()); 34var list1 = pool.Get(); 38var list2 = pool.Get(); 48var pool = new DisposableObjectPool<List<int>>(new ListPolicy()); 49var list1 = pool.Get(); 54var list2 = pool.Get(); 125private class ListPolicy : IPooledObjectPolicy<List<int>> 127public List<int> Create() 132public bool Return(List<int> obj)
Microsoft.Extensions.Options (5)
OptionsFactory.cs (1)
76var failures = new List<string>();
OptionsMonitor.cs (1)
22private readonly List<IDisposable> _registrations = new List<IDisposable>();
ValidateOnStart.cs (1)
22List<Exception>? exceptions = null;
ValidateOptionsResultBuilder.cs (2)
20private List<string>? _errors; 118private List<string> Errors => _errors ??= new();
Microsoft.Extensions.Options.Contextual (2)
Internal\ContextualOptionsFactory.cs (2)
80List<Exception>? loadExceptions = null; 134var failures = new List<string>();
Microsoft.Extensions.Options.Contextual.Tests (81)
ContextualOptionsFactoryTests.cs (81)
23var sut = new ContextualOptionsFactory<List<string>>( 24Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 25Enumerable.Empty<IConfigureOptions<List<string>>>(), 26Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 27Enumerable.Empty<IValidateOptions<List<string>>>()); 29var result = await new ContextualOptions<List<string>, IOptionsContext>(sut).GetAsync(Mock.Of<IOptionsContext>(), default); 37var sut = new ContextualOptionsFactory<List<string>>( 38Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 39Enumerable.Empty<IConfigureOptions<List<string>>>(), 40Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 41new[] { new ValidateOptions<List<string>>(null, _ => false, "epic fail") }); 50var sut = new ContextualOptionsFactory<List<string>>( 51Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 52Enumerable.Empty<IConfigureOptions<List<string>>>(), 53Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 54new[] { new ValidateOptions<List<string>>("Foo", _ => false, "epic fail") }); 65new LoadContextualOptions<List<string>>( 67(context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("configure"), context))), 70var sut = new ContextualOptionsFactory<List<string>>( 72Enumerable.Empty<IConfigureOptions<List<string>>>(), 73new[] { new PostConfigureOptions<List<string>>(string.Empty, (list) => list.Add("post configure")) }, 74Enumerable.Empty<IValidateOptions<List<string>>>()); 86new LoadContextualOptions<List<string>>( 88(context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("configure"), context))) 91var sut = new ContextualOptions<List<string>, IOptionsContext>(new ContextualOptionsFactory<List<string>>( 93Enumerable.Empty<IConfigureOptions<List<string>>>(), 94Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 95Enumerable.Empty<IValidateOptions<List<string>>>())); 106new LoadContextualOptions<List<string>>( 108(context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("configure"), context))), 111var sut = new ContextualOptionsFactory<List<string>>( 113Enumerable.Empty<IConfigureOptions<List<string>>>(), 114Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 115Enumerable.Empty<IValidateOptions<List<string>>>()); 124var sut = new ContextualOptionsFactory<List<string>>( 125Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 126Enumerable.Empty<IConfigureOptions<List<string>>>(), 127new[] { new PostConfigureOptions<List<string>>(null, (list) => list.Add("post configure")) }, 128Enumerable.Empty<IValidateOptions<List<string>>>()); 137var sut = new ContextualOptionsFactory<List<string>>( 138Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 139Enumerable.Empty<IConfigureOptions<List<string>>>(), 140new[] { new PostConfigureOptions<List<string>>("Foo", (list) => list.Add("post configure")) }, 141Enumerable.Empty<IValidateOptions<List<string>>>()); 150var sut = new ContextualOptionsFactory<List<string>>( 151Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 152new[] { new ConfigureOptions<List<string>>((list) => list.Add("pre configure")) }, 153Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 154Enumerable.Empty<IValidateOptions<List<string>>>()); 170var loaders = new LoadContextualOptions<List<string>>[] 175return new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("1"), context)); 180return new ConfigureContextualOptions<List<string>>((_, list) => list.Add("2"), context); 185return new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("3"), context)); 190return new ValueTask<IConfigureContextualOptions<List<string>>>(new ConfigureContextualOptions<List<string>>((_, list) => list.Add("4"), context)); 194var sut = new ContextualOptionsFactory<List<string>>( 196Enumerable.Empty<IConfigureOptions<List<string>>>(), 197Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 198Enumerable.Empty<IValidateOptions<List<string>>>()); 210var loaders = new LoadContextualOptions<List<string>>[] 212new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))), 216var sut = new ContextualOptionsFactory<List<string>>( 218Enumerable.Empty<IConfigureOptions<List<string>>>(), 219Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 220Enumerable.Empty<IValidateOptions<List<string>>>()); 233var disposeMock = new Mock<IConfigureContextualOptions<List<string>>>(); 235var loaders = new LoadContextualOptions<List<string>>[] 237new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(Mock.Of<IConfigureContextualOptions<List<string>>>(MockBehavior.Strict))), 238new(string.Empty, (context, _) => new ValueTask<IConfigureContextualOptions<List<string>>>(disposeMock.Object)), 241var sut = new ContextualOptionsFactory<List<string>>( 243Enumerable.Empty<IConfigureOptions<List<string>>>(), 244Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 245Enumerable.Empty<IValidateOptions<List<string>>>());
Microsoft.Extensions.Options.DataAnnotations (4)
DataAnnotationValidateOptions.cs (4)
58var validationResults = new List<ValidationResult>(); 60List<string>? errors = null; 74private static bool TryValidateOptions(object options, string qualifiedName, List<ValidationResult> results, ref List<string>? errors, ref HashSet<object>? visited)
Microsoft.Extensions.Options.SourceGeneration (19)
Emitter.cs (1)
763var attrInstantiationStatementLines = new List<string>();
Model\ValidatedMember.cs (1)
10List<ValidationAttributeInfo> ValidationAttributes,
Model\ValidatedModel.cs (1)
12List<ValidatedMember> MembersToValidate);
Model\ValidationAttributeInfo.cs (1)
10public List<string> ConstructorArguments { get; } = new();
Model\ValidatorType.cs (1)
13List<string> ParentTypes,
Parser.cs (14)
48var results = new List<ValidatorType>(); 70var modelTypes = GetModelTypes(validatorType); 78var modelsValidatorTypeValidates = new List<ValidatedModel>(modelTypes.Count); 105var membersToValidate = GetMembersToValidate(modelType, true, lowerLocationInCompilation, validatorType); 125var parents = new List<string>(); 266private List<ValidatedMember> GetMembersToValidate(ITypeSymbol modelType, bool speculate, Location lowerLocationInCompilation, ITypeSymbol validatorType) 276var members = modelType.GetMembers().ToList(); 292var membersToValidate = new List<ValidatedMember>(); 341var validationAttrs = new List<ValidationAttributeInfo>(); 554var membersToValidate = GetMembersToValidate(memberType, false, location, validatorType); 570var membersToValidate = GetMembersToValidate(enumeratedType, false, location, validatorType); 699var membersToValidate = GetMembersToValidate(mt, true, location, validatorType); 747private List<ITypeSymbol> GetModelTypes(ITypeSymbol validatorType) 749var result = new List<ITypeSymbol>();
Microsoft.Extensions.Primitives (2)
CompositeChangeToken.cs (2)
21private List<IDisposable>? _disposables; 148List<IDisposable>? disposables = compositeChangeTokenState._disposables;
Microsoft.Extensions.Resilience.Tests (1)
Resilience\ResilienceMetricsEnricherTests.cs (1)
24private List<KeyValuePair<string, object?>> _tags = [];
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 (9)
Configuration\ConfigurationServiceEndpointProvider.cs (2)
107List<ServiceEndpoint> resolved = []; 191private void AddEndpoint(List<ServiceEndpoint> endpoints, IConfigurationSection section, string endpointName)
Http\HttpServiceEndpointResolver.cs (1)
138List<Task>? cleanupTasks = null;
ServiceDiscoveryOptions.cs (1)
47List<string> result = [];
ServiceEndpointBuilder.cs (2)
14private readonly List<ServiceEndpoint> _endpoints = new(); 15private readonly List<IChangeToken> _changeTokens = new();
ServiceEndpointResolver.cs (1)
147List<Task>? cleanupTasks = null;
ServiceEndpointWatcherFactory.cs (1)
38List<IServiceEndpointProvider>? providers = null;
ServiceEndpointWatcherFactory.Log.cs (1)
15public static void CreatingResolver(ILogger logger, string serviceName, List<IServiceEndpointProvider> providers)
Microsoft.Extensions.ServiceDiscovery.Abstractions (2)
ServiceEndpointSource.cs (2)
17private readonly List<ServiceEndpoint>? _endpoints; 25public ServiceEndpointSource(List<ServiceEndpoint>? endpoints, IChangeToken changeToken, IFeatureCollection features)
Microsoft.Extensions.ServiceDiscovery.Dns (33)
DnsServiceEndpointProvider.cs (1)
31var endpoints = new List<ServiceEndpoint>();
DnsServiceEndpointProviderBase.cs (2)
23private List<ServiceEndpoint>? _lastEndpointCollection; 105protected void SetResult(List<ServiceEndpoint> endpoints, TimeSpan validityPeriod)
DnsSrvServiceEndpointProvider.cs (1)
34var endpoints = new List<ServiceEndpoint>();
FallbackDnsResolver.cs (4)
54var lookupMapping = new Dictionary<string, List<AddressResult>>(); 57if (!lookupMapping.TryGetValue(record.DomainName, out var addresses)) 70var srvRecords = queryResult.Answers.OfType<SrvRecord>().ToList(); 84Addresses = lookupMapping.TryGetValue(record.Target, out var addresses)
Resolver\DnsPrimitives.cs (2)
161private static bool TryReadQNameCore(List<ReadOnlyMemory<byte>> labels, int totalLength, ReadOnlyMemory<byte> messageBuffer, int offset, out int bytesRead, bool canStartWithPointer = true) 258List<ReadOnlyMemory<byte>> labels = new List<ReadOnlyMemory<byte>>();
Resolver\DnsResolver.cs (14)
72var results = new List<ServiceResult>(response.Answers.Count); 83List<AddressResult> addresses = new List<AddressResult>(); 178List<AddressResult> results = new List<AddressResult>(response.Answers.Count); 242Dictionary<EncodedDomainName, List<AddressResult>> aRecordMap = new(); 267if (!aRecordMap.TryGetValue(answer.Name, out List<AddressResult>? addressList)) 300aRecordMap.TryGetValue(currentAlias, out List<AddressResult>? finalAddressList); 559if (!TryReadRecords(header.AnswerCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? answers) || 560!TryReadRecords(header.AuthorityCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? authorities) || 561!TryReadRecords(header.AdditionalRecordCount, ref ttl, ref responseReader, out List<DnsResourceRecord>? additionals)) 586static bool TryReadRecords(int count, ref int ttl, ref DnsDataReader reader, out List<DnsResourceRecord> records) 608internal static bool GetNegativeCacheExpiration(DateTime createdAt, List<DnsResourceRecord> authorities, out DateTime expiration) 635internal static SendQueryError ValidateResponse(QueryResponseCode responseCode, DateTime createdAt, List<DnsResourceRecord> answers, List<DnsResourceRecord> authorities, ref DateTime expiration) 904List<ReadOnlyMemory<byte>> labels = new();
Resolver\DnsResponse.cs (6)
11public List<DnsResourceRecord> Answers { get; } 12public List<DnsResourceRecord> Authorities { get; } 13public List<DnsResourceRecord> Additionals { get; } 18public DnsResponse(ArraySegment<byte> rawData, DnsMessageHeader header, DateTime createdAt, DateTime expiration, List<DnsResourceRecord> answers, List<DnsResourceRecord> authorities, List<DnsResourceRecord> additionals)
Resolver\EncodedDomainName.cs (1)
14public EncodedDomainName(List<ReadOnlyMemory<byte>> labels, byte[]? pooledBuffer = null)
Resolver\NetworkInfo.cs (1)
14List<IPEndPoint> servers = new List<IPEndPoint>();
Resolver\ResolvConf.cs (1)
20List<IPEndPoint> serverList = new();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (13)
Resolver\LoopbackDnsServer.cs (13)
144public List<(string, QueryType, QueryClass)> Questions { get; } = new List<(string, QueryType, QueryClass)>(); 145public List<DnsResourceRecord> Answers { get; } = new List<DnsResourceRecord>(); 146public List<DnsResourceRecord> Authorities { get; } = new List<DnsResourceRecord>(); 147public List<DnsResourceRecord> Additionals { get; } = new List<DnsResourceRecord>(); 228var encodedLabels = name.Split('.', StringSplitOptions.RemoveEmptyEntries).Select(label => (ReadOnlyMemory<byte>)Encoding.UTF8.GetBytes(s_idnMapping.GetAscii(label))) 234public static List<DnsResourceRecord> AddAddress(this List<DnsResourceRecord> records, string name, int ttl, IPAddress address) 241public static List<DnsResourceRecord> AddCname(this List<DnsResourceRecord> records, string name, int ttl, string alias) 253public static List<DnsResourceRecord> AddService(this List<DnsResourceRecord> records, string name, int ttl, ushort priority, ushort weight, ushort port, string target) 272public static List<DnsResourceRecord> AddStartOfAuthority(this List<DnsResourceRecord> records, string name, int ttl, string mname, string rname, uint serial, uint refresh, uint retry, uint expire, uint minimum)
Microsoft.Extensions.ServiceDiscovery.Tests (3)
ExtensionsServicePublicApiTests.cs (2)
198List<ServiceEndpoint>? endpoints = null; 211List<ServiceEndpoint>? endpoints = null;
ServiceEndpointResolverTests.cs (1)
130var endpoints = resolverResult.EndpointSource.Endpoints.Select(ep => ep.EndPoint).OfType<IPEndPoint>().ToList();
Microsoft.Extensions.ServiceDiscovery.Yarp (5)
ServiceDiscoveryDestinationResolver.cs (5)
27var tasks = new List<Task<(List<(string Name, DestinationConfig Config)>, IChangeToken ChangeToken)>>(destinations.Count); 34var changeTokens = new List<IChangeToken>(); 52private async Task<(List<(string Name, DestinationConfig Config)>, IChangeToken ChangeToken)> ResolveHostAsync( 61var results = new List<(string Name, DestinationConfig Config)>(result.Endpoints.Count);
Microsoft.Extensions.Telemetry (29)
Enrichment\ApplicationLogEnricher.cs (1)
36var l = new List<KeyValuePair<string, object>>();
Http\HttpRouteParser.cs (1)
104var segments = new List<Segment>();
Logging\ExtendedLogger.cs (4)
84List<Exception>? exceptions = null; 109List<Exception>? exceptions = null; 256List<Exception>? exceptions = null; 378List<Exception>? exceptions = null;
Logging\ExtendedLogger.EnrichmentTagCollector.cs (1)
14internal sealed class EnrichmentTagCollector(List<KeyValuePair<string, object?>> extraTags) : IEnrichmentTagCollector
Logging\ExtendedLogger.LegacyTagJoiner.cs (1)
22private readonly List<KeyValuePair<string, object?>> _extraTags = new(TagCapacity);
Logging\ExtendedLogger.ModernTagJoiner.cs (1)
23private readonly List<KeyValuePair<string, object?>> _extraTags = new(TagCapacity);
Logging\ExtendedLoggerFactory.cs (5)
23private readonly List<ProviderRegistration> _providerRegistrations = []; 103var tags = new List<KeyValuePair<string, object?>>(); 227var loggers = new List<LoggerInformation>(_providerRegistrations.Count); 245var messageLoggers = new List<MessageLogger>(); 246List<ScopeLogger>? scopeLoggers = _filterOptions.CaptureScopes ? [] : null;
src\Shared\LogBuffering\SerializedLogRecord.cs (2)
34List<KeyValuePair<string, object?>> attributes, 66public List<KeyValuePair<string, object?>> Attributes { get; }
src\Shared\LogBuffering\SerializedLogRecordFactory.cs (2)
15private static readonly ObjectPool<List<KeyValuePair<string, object?>>> _attributesPool = 29List<KeyValuePair<string, object?>> serializedAttributes = _attributesPool.Get();
src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Telemetry.Abstractions (12)
Latency\Registration\LatencyContextRegistrationOptions.cs (1)
38if (list is List<string> l)
src\Shared\Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
src\Shared\Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
src\Shared\Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Logging\LoggerMessageHelperTests.cs (1)
41var d2 = new List<KeyValuePair<string?, string?>>
Microsoft.Extensions.Telemetry.Tests (21)
Logging\ExtendedLoggerFactoryTests.cs (2)
557public List<string> LogText { get; set; } = []; 596public List<string> LogText { get; set; } = [];
Logging\ExtendedLoggerTests.cs (7)
452List<Exception> exceptions = []; 655var store = new List<string>(); 885List<KeyValuePair<string, object?>> list = 1032private readonly List<string> _store; 1034public CustomLoggerProvider(string providerName, ThrowExceptionAt throwExceptionAt, List<string> store) 1056private readonly List<string> _store; 1058public CustomLogger(string name, ThrowExceptionAt throwExceptionAt, List<string> store)
Sampling\LogSamplingRuleSelectorTests.cs (8)
20var rules = new List<RandomProbabilisticSamplerFilterRule> 51var rules = new List<RandomProbabilisticSamplerFilterRule> 75var rules = new List<RandomProbabilisticSamplerFilterRule> 93var rules = new List<RandomProbabilisticSamplerFilterRule> 111var rules = new List<RandomProbabilisticSamplerFilterRule> 129var rules = new List<RandomProbabilisticSamplerFilterRule> 147var rules = new List<RandomProbabilisticSamplerFilterRule> 164var rules = new List<RandomProbabilisticSamplerFilterRule>
Sampling\SamplingLoggerBuilderExtensionsTests.cs (4)
55List<RandomProbabilisticSamplerFilterRule> expectedData = 79List<RandomProbabilisticSamplerFilterRule> initialData = 85List<RandomProbabilisticSamplerFilterRule> updatedData = 212List<RandomProbabilisticSamplerFilterRule> expectedData =
Microsoft.Extensions.TimeProvider.Testing.Tests (4)
FakeTimeProviderTests.cs (1)
504var calls = new List<object?>();
TimerTests.cs (3)
273var callbackTimes = new List<DateTimeOffset>(); 298var callbacks = new List<(int timerId, TimeSpan callbackTime)>(); 334var timers = new List<ITimer>();
Microsoft.Extensions.Validation (4)
TypeExtensions.cs (3)
23type.GetGenericTypeDefinition() == typeof(List<>) || 92public static List<Type> GetAllImplementedTypes([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] this Type type) 96var implementedTypes = new List<Type>();
ValidatableTypeInfo.cs (1)
17private readonly List<Type> _superTypes;
Microsoft.Extensions.Validation.GeneratorTests (7)
ValidationsGenerator.SkipValidation.cs (2)
176var listInstance = Activator.CreateInstance(typeof(List<>).MakeGenericType(type.Assembly.GetType("NestedType")!)); 204var listInstance = Activator.CreateInstance(typeof(List<>).MakeGenericType(type.Assembly.GetType("NestedType")!));
ValidationsGenerator.ValidatableType.cs (4)
220var subTypeList = Activator.CreateInstance(typeof(List<>).MakeGenericType(type.Assembly.GetType("SubType")!)); 362var emptyList = Activator.CreateInstance(typeof(List<>).MakeGenericType(type.Assembly.GetType("SubType")!)); 589var subTypeList = Activator.CreateInstance(typeof(List<>).MakeGenericType(type.Assembly.GetType("SubType")!)); 731var emptyList = Activator.CreateInstance(typeof(List<>).MakeGenericType(type.Assembly.GetType("SubType")!));
ValidationsGeneratorTestBase.cs (1)
132var embeddedTexts = new List<EmbeddedText>();
Microsoft.Extensions.Validation.Tests (7)
ValidatableParameterInfoTests.cs (1)
197var people = new List<Person>
ValidatableTypeInfoTests.cs (6)
18List<ValidationErrorContext> validationErrors = []; 121var validationErrors = new List<ValidationErrorContext>(); 242CreatePropertyInfo(typeof(Order), typeof(List<OrderItem>), "Items", "Items", 335CreatePropertyInfo(typeof(TreeNode), typeof(List<TreeNode>), "Children", "Children", 771public List<OrderItem> Items { get; set; } = []; 784public List<TreeNode> Children { get; set; } = [];
Microsoft.Extensions.Validation.ValidationsGenerator (8)
Models\ValidationAttribute.cs (1)
11List<string> Arguments,
Parsers\ValidationsGenerator.AttributeParser.cs (1)
22List<ITypeSymbol> visitedTypes = [];
Parsers\ValidationsGenerator.TypesParser.cs (5)
38List<ITypeSymbol> visitedTypes = []; 59internal bool TryExtractValidatableType(ITypeSymbol incomingTypeSymbol, WellKnownTypes wellKnownTypes, ref HashSet<ValidatableType> validatableTypes, ref List<ITypeSymbol> visitedTypes) 125internal ImmutableArray<ValidatableProperty> ExtractValidatableMembers(ITypeSymbol typeSymbol, WellKnownTypes wellKnownTypes, ref HashSet<ValidatableType> validatableTypes, ref List<ITypeSymbol> visitedTypes) 127var members = new List<ValidatableProperty>(); 128var resolvedRecordProperty = new List<IPropertySymbol>();
src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (1)
21private readonly List<WeakReference<Entry?>> _weakReferencedEntries = new()
Microsoft.Gen.ComplianceReports (8)
Model\ClassifiedItem.cs (1)
18public List<Classification> Classifications = [];
Model\ClassifiedLogMethod.cs (1)
15public List<ClassifiedItem> Parameters = [];
Model\ClassifiedType.cs (2)
14public List<ClassifiedItem>? Members; 15public List<ClassifiedLogMethod>? LogMethods;
Parser.cs (4)
32var result = new List<ClassifiedType>(); 74var classifiedLogMethods = GetClassifiedLogMethods(typeSymbol); 199private List<ClassifiedLogMethod>? GetClassifiedLogMethods(ITypeSymbol typeSymbol) 201List<ClassifiedLogMethod>? classifiedLogMethods = null;
Microsoft.Gen.ComplianceReports.Unit.Tests (7)
test\Generators\Shared\RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Gen.ContextualOptions (7)
ContextReceiver.cs (3)
24private readonly List<TypeDeclarationSyntax> _typeDeclarations = []; 37public bool TryGetTypeDeclarations(Compilation compilation, out Dictionary<INamedTypeSymbol, List<TypeDeclarationSyntax>>? typeDeclarations) 51.ToDictionary<IGrouping<ISymbol?, TypeDeclarationSyntax>, INamedTypeSymbol, List<TypeDeclarationSyntax>>(
ContextualOptionsGenerator.cs (2)
43.ToDictionary<IGrouping<ISymbol?, TypeDeclarationSyntax>, INamedTypeSymbol, List<TypeDeclarationSyntax>>( 46var list = new List<OptionsContextType>();
Model\OptionsContextType.cs (1)
13public readonly List<Diagnostic> Diagnostics = [];
Parser.cs (1)
16public static IEnumerable<OptionsContextType> GetContextualOptionTypes(Dictionary<INamedTypeSymbol, List<TypeDeclarationSyntax>> types) =>
Microsoft.Gen.ContextualOptions.Generated.Tests (1)
ContextualOptionsTests.cs (1)
18public List<(string key, object? value)> Received { get; } = [];
Microsoft.Gen.ContextualOptions.Unit.Tests (9)
ContextualOptionsTests.cs (1)
18public List<(string key, object? value)> Received { get; } = [];
EmitterTests.cs (1)
130var sources = new List<string>();
test\Generators\Shared\RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Gen.Logging (24)
Emission\Emitter.cs (1)
42var parentTypes = new List<string>();
Emission\Emitter.Method.cs (2)
531var templates = lm.GetTemplatesForParameter(p); 560var templates = lm.GetTemplatesForParameter(p);
Model\LoggingMethod.cs (4)
17public readonly List<LoggingMethodParameter> Parameters = []; 18public readonly List<string> Templates = []; 45public List<string> GetTemplatesForParameter(LoggingMethodParameter lp) 59public List<string> GetTemplatesForParameter(string parameterName)
Model\LoggingMethodParameter.cs (1)
35public List<LoggingProperty> Properties = [];
Model\LoggingProperty.cs (1)
24public List<LoggingProperty> Properties = [];
Model\LoggingType.cs (2)
15public readonly List<LoggingMethod> Methods = []; 16public readonly List<string> AllMembers = [];
Parsing\Parser.cs (2)
47var results = new List<LoggingType>(); 470private static List<INamedTypeSymbol> GetDataClassificationAttributes(ISymbol symbol, SymbolHolder symbols)
Parsing\Parser.LogProperties.cs (7)
55var props = GetTypePropertiesToLog(paramTypeSymbol, typesChain, symbols, transitive, ref foundDataClassificationAttributes); 84List<LoggingProperty>? GetTypePropertiesToLog( 91var result = new List<LoggingProperty>(); 105var sensitivePropsFromCtor = new Dictionary<string, List<INamedTypeSymbol>>(); 114var maybeDataClasses = GetDataClassificationAttributes(parameter, symbols); 173if (sensitivePropsFromCtor.TryGetValue(property.Name, out var dataClassesFromCtor)) 280var props = GetTypePropertiesToLog(extractedType, typesChain, symbols, transitive, ref foundDataClassificationAttributes);
Parsing\Parser.Records.cs (3)
41var recordDataClassAttributes = GetDataClassificationAttributes(namedType, symbols); 82var parameterDataClassAttributes = GetDataClassificationAttributes(param, symbols); 139var propertyDataClassAttributes = GetDataClassificationAttributes(m, symbols);
Parsing\TemplateProcessor.cs (1)
21internal static bool ExtractTemplates(string? message, List<string> templates)
Microsoft.Gen.Logging.Generated.Tests (3)
test\Generators\Microsoft.Gen.Logging\TestClasses\EnumerableTestExtensions.cs (1)
62private static readonly List<int> _numbers = [1, 2, 3];
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesNullHandlingExtensions.cs (1)
35public List<int>? P10 { get; set; }
test\Generators\Microsoft.Gen.Logging\TestClasses\TransitiveTestExtensions.cs (1)
25public List<string> P3 { get; set; } = [];
Microsoft.Gen.Logging.Unit.Tests (9)
CompilationHelper.cs (1)
28var refs = new List<MetadataReference>();
EmitterTests.cs (1)
25var sources = new List<string>();
test\Generators\Shared\RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Gen.MetadataExtractor (20)
src\Generators\Microsoft.Gen.ComplianceReports\Model\ClassifiedItem.cs (1)
18public List<Classification> Classifications = [];
src\Generators\Microsoft.Gen.ComplianceReports\Model\ClassifiedLogMethod.cs (1)
15public List<ClassifiedItem> Parameters = [];
src\Generators\Microsoft.Gen.ComplianceReports\Model\ClassifiedType.cs (2)
14public List<ClassifiedItem>? Members; 15public List<ClassifiedLogMethod>? LogMethods;
src\Generators\Microsoft.Gen.ComplianceReports\Parser.cs (4)
32var result = new List<ClassifiedType>(); 74var classifiedLogMethods = GetClassifiedLogMethods(typeSymbol); 199private List<ClassifiedLogMethod>? GetClassifiedLogMethods(ITypeSymbol typeSymbol) 201List<ClassifiedLogMethod>? classifiedLogMethods = null;
src\Generators\Microsoft.Gen.Metrics\Model\MetricMethod.cs (2)
10public readonly List<MetricParameter> AllParameters = []; 22public List<StrongTypeConfig> StrongTypeConfigs = []; // Used for strong type creation only
src\Generators\Microsoft.Gen.Metrics\Model\MetricType.cs (1)
10public readonly List<MetricMethod> Methods = [];
src\Generators\Microsoft.Gen.Metrics\Parser.cs (8)
65var results = new List<MetricType>(); 638var tagConfigs = BuildTagConfigs(member, typesChain, strongTypeAttributeParameters.TagHashSet, 675private List<StrongTypeConfig> BuildTagConfigs( 683var tagConfigs = new List<StrongTypeConfig>(); 851private List<StrongTypeConfig> WalkObjectModel( 862var tagConfigs = new List<StrongTypeConfig>(); 893private List<StrongTypeConfig> GetParentTagConfigs( 899var tagConfigs = new List<StrongTypeConfig>();
src\Generators\Microsoft.Gen.Metrics\StrongTypeAttributeParameters.cs (1)
14public List<StrongTypeConfig> StrongTypeConfigs = [];
Microsoft.Gen.MetadataExtractor.Unit.Tests (7)
test\Generators\Shared\RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Gen.Metrics (17)
Emitter.cs (3)
23Dictionary<string, List<MetricType>> metricClassesDict = []; 26if (!metricClassesDict.TryGetValue(cl.Namespace, out var list)) 104var parentTypes = new List<string>();
MetricFactoryEmitter.cs (2)
19Dictionary<string, List<MetricType>> metricClassesDict = []; 22if (!metricClassesDict.TryGetValue(cl.Namespace, out var list))
Model\MetricMethod.cs (2)
10public readonly List<MetricParameter> AllParameters = []; 22public List<StrongTypeConfig> StrongTypeConfigs = []; // Used for strong type creation only
Model\MetricType.cs (1)
10public readonly List<MetricMethod> Methods = [];
Parser.cs (8)
65var results = new List<MetricType>(); 638var tagConfigs = BuildTagConfigs(member, typesChain, strongTypeAttributeParameters.TagHashSet, 675private List<StrongTypeConfig> BuildTagConfigs( 683var tagConfigs = new List<StrongTypeConfig>(); 851private List<StrongTypeConfig> WalkObjectModel( 862var tagConfigs = new List<StrongTypeConfig>(); 893private List<StrongTypeConfig> GetParentTagConfigs( 899var tagConfigs = new List<StrongTypeConfig>();
StrongTypeAttributeParameters.cs (1)
14public List<StrongTypeConfig> StrongTypeConfigs = [];
Microsoft.Gen.Metrics.Unit.Tests (8)
EmitterTests.cs (1)
23var sources = new List<string>();
test\Generators\Shared\RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Gen.MetricsReports (12)
src\Generators\Microsoft.Gen.Metrics\Model\MetricMethod.cs (2)
10public readonly List<MetricParameter> AllParameters = []; 22public List<StrongTypeConfig> StrongTypeConfigs = []; // Used for strong type creation only
src\Generators\Microsoft.Gen.Metrics\Model\MetricType.cs (1)
10public readonly List<MetricMethod> Methods = [];
src\Generators\Microsoft.Gen.Metrics\Parser.cs (8)
65var results = new List<MetricType>(); 638var tagConfigs = BuildTagConfigs(member, typesChain, strongTypeAttributeParameters.TagHashSet, 675private List<StrongTypeConfig> BuildTagConfigs( 683var tagConfigs = new List<StrongTypeConfig>(); 851private List<StrongTypeConfig> WalkObjectModel( 862var tagConfigs = new List<StrongTypeConfig>(); 893private List<StrongTypeConfig> GetParentTagConfigs( 899var tagConfigs = new List<StrongTypeConfig>();
src\Generators\Microsoft.Gen.Metrics\StrongTypeAttributeParameters.cs (1)
14public List<StrongTypeConfig> StrongTypeConfigs = [];
Microsoft.Gen.MetricsReports.Unit.Tests (7)
test\Generators\Shared\RoslynTestUtils.cs (7)
61var refs = new List<MetadataReference>(); 186var filtered = new List<Diagnostic>(); 204var filtered = new List<Diagnostic>(); 448var l = sourceNames.ToList(); 481var actions = new List<CodeAction>(); 505var results = new List<string>(); 509var l = sourceNames.ToList();
Microsoft.Interop.ComInterfaceGenerator (10)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
34List<Func<ITypeSymbol, bool>> sourceGeneratedComRecognizers = new();
ComClassGenerator.cs (1)
96List<StatementSyntax> vtableInitializationBlock = new()
ComInterfaceGenerator.cs (1)
817System.Collections.Generic.List<StatementSyntax> statements = new();
ComMethodContext.cs (3)
171public static List<(ComInterfaceContext OwningInterface, Builder Method)> CalculateAllMethods(IEnumerable<(ComInterfaceContext, SequenceEqualImmutableArray<ComMethodInfo>)> ifaceAndDeclaredMethods, CancellationToken _) 179var accumulator = new List<(ComInterfaceContext OwningInterface, Builder Method)>(); 201List<Builder> methods = new();
VirtualMethodPointerStubGenerator.cs (4)
46var setupStatements = new List<StatementSyntax> 102List<FunctionPointerParameterSyntax> functionPointerParameters = []; 239List<StatementSyntax> statements = new(); 271List<FunctionPointerParameterSyntax> functionPointerParameters = new();
Microsoft.Interop.JavaScript.JSImportGenerator (10)
JSExportGenerator.cs (4)
227var registerStatements = new List<StatementSyntax>(); 230var attributes = new List<AttributeListSyntax>(); 390List<ArgumentSyntax> arguments = []; 441var signatureArgs = new List<ArgumentSyntax>
JSGeneratorFactory.cs (1)
300var argsMarshalers = new List<MarshalerType>();
JSImportGenerator.cs (1)
322List<StatementSyntax> statements = [];
JSMarshalAsAttributeInfoParser.cs (1)
25List<JSTypeFlags> jsTypeArguments = new List<JSTypeFlags>();
Marshaling\FuncJSGenerator.cs (2)
53List<ArgumentSyntax> arguments = [source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword))]; 74List<ArgumentSyntax> arguments = [source];
SignatureBindingHelpers.cs (1)
17List<CollectionElementSyntax> arguments = [];
Microsoft.Interop.LibraryImportGenerator (15)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
32List<Diagnostic> fixedDiagnostics = new(context.Diagnostics.Where(IsRequiresDiableRuntimeMarshallingDiagnostic));
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 (4)
130private static (HashSet<string> missingMembers, List<Diagnostic> fixedDiagnostics) GetRequiredShapeMissingMemberNames(IEnumerable<Diagnostic> diagnostics) 133List<Diagnostic> requiredShapeDiagnostics = new(); 217List<SyntaxNode> newMembers = new(); 413List<SyntaxNode> newMembers = new();
LibraryImportGenerator.cs (4)
112private static List<AttributeSyntax> GenerateSyntaxForForwardedAttributes(AttributeData? suppressGCTransitionAttribute, AttributeData? unmanagedCallConvAttribute, AttributeData? defaultDllImportSearchPathsAttribute, AttributeData? wasmImportLinkageAttribute) 116List<AttributeSyntax> attributes = new(); 312List<AttributeSyntax> additionalAttributes = GenerateSyntaxForForwardedAttributes(suppressGCTransitionAttribute, unmanagedCallConvAttribute, defaultDllImportSearchPathsAttribute, wasmImportLinkageAttribute); 482var newAttributeArgs = new List<AttributeArgumentSyntax>
Microsoft.Interop.LibraryImportGenerator.Downlevel (4)
DownlevelLibraryImportGenerator.cs (4)
88private static List<AttributeSyntax> GenerateSyntaxForForwardedAttributes(AttributeData? defaultDllImportSearchPathsAttribute) 91List<AttributeSyntax> attributes = []; 218List<AttributeSyntax> additionalAttributes = GenerateSyntaxForForwardedAttributes(defaultDllImportSearchPathsAttribute); 357var newAttributeArgs = new List<AttributeArgumentSyntax>
Microsoft.Interop.SourceGeneration (20)
DiagnosticExtensions.cs (2)
71List<Location> additionalLocations = null; 175List<Location> additionalLocations = null;
GeneratorDiagnosticsBag.cs (1)
22private readonly List<DiagnosticInfo> _diagnostics = new();
ManagedToNativeStubGenerator.cs (4)
115List<StatementSyntax> setupStatements = []; 135List<StatementSyntax> tryStatements = [.. statements.Marshal]; 164List<StatementSyntax> allStatements = setupStatements; 165List<StatementSyntax> finallyStatements = [];
Marshalling\DefaultMarshallingGeneratorResolver.cs (1)
28List<IMarshallingGeneratorResolver> coreResolvers = [
Marshalling\ElementsMarshalling.cs (4)
264var statements = new List<StatementSyntax>() 472private List<StatementSyntax> GenerateElementStages( 504List<StatementSyntax> elementStatements = []; 568var elementStatements = GenerateElementStages(context, elementMarshaller, out string indexer, stagesToGeneratePerElement);
Marshalling\MarshallerHelpers.cs (3)
125List<T> nodeIdToElement = new(elements.Count); 151List<T> L = new(elements.Count); 153List<T> S = new(elements.Count);
Marshalling\MarshallingGeneratorExtensions.cs (1)
110List<AttributeSyntax> rehydratedAttributes = new();
SyntaxExtensions.cs (1)
86List<SyntaxToken> strippedTokens = new();
UnmanagedToManagedStubGenerator.cs (3)
64List<StatementSyntax> setupStatements = 71List<StatementSyntax> tryStatements = 81List<StatementSyntax> allStatements = setupStatements;
Microsoft.JSInterop (1)
src\Components\Shared\src\ArrayBuilder.cs (1)
23/// This differs from a <see cref="System.Collections.Generic.List{T}"/> in that
Microsoft.JSInterop.Tests (3)
JSInProcessRuntimeTest.cs (1)
95public List<JSInvocationInfo> InvokeCalls { get; set; } = [];
JSRuntimeTest.cs (2)
448public List<JSInvocationInfo> BeginInvokeCalls = []; 449public List<EndInvokeDotNetArgs> EndInvokeDotNetCalls = [];
Microsoft.Maui (62)
Animations\Animation.cs (5)
43 /// <param name="animations">A <see cref="List{T}"/> that contains <see cref="Animation"/> objects that will be children of the newly instantiated animation.</param> 44 public Animation(List<Animation> animations) 71 protected List<Animation> childrenAnimations = new(); 265 var reversedChildren = childrenAnimations.ToList(); 291 var reversedChildren = childrenAnimations.ToList();
Animations\AnimationManager.cs (3)
9 readonly List<Animation> _animations = new(); 87 var animations = new List<Animation>(_animations); 132 var animations = new List<Animation>(_animations);
Animations\Lerp.cs (1)
180 var types = new List<Type> { type };
Animations\LerpingAnimation.cs (2)
34 /// <param name="animations">A <see cref="List{T}"/> that contains <see cref="Animation"/> objects that will be children of the newly instantiated animation.</param> 35 public LerpingAnimation(List<Animation> animations)
Core\Extensions\IPickerExtension.cs (2)
17 public static List<string> GetItemsAsList(this IPicker picker) 19 var returnValue = new List<string>(picker.GetCount());
Core\Extensions\VisualTreeElementExtensions.cs (7)
63 static List<IVisualTreeElement> GetVisualTreeDescendantsInternal(this IVisualTreeElement visualElement, List<IVisualTreeElement>? elements = null) 212 var platformParentPath = new List<PlatformView>(); 260 List<PlatformView> platformParentPath) 309 static List<IVisualTreeElement> GetVisualTreeElementsInternal(IVisualTreeElement visualElement, Predicate<Rect> intersectElementBounds) 311 var elements = new List<IVisualTreeElement>(); 318 static void Impl(IVisualTreeElement visualElement, Predicate<Rect> intersectElementBounds, List<IVisualTreeElement> elements)
Extensions\EnumerableExtensions.cs (4)
36 public static IDictionary<TKey, List<TSource>> GroupToDictionary<TSource, TKey>(this IEnumerable<TSource> enumeration, Func<TSource, TKey> func) 39 var result = new Dictionary<TKey, List<TSource>>(); 43 if (!result.TryGetValue(group, out List<TSource>? value)) 150 if (enumerable is List<T> list)
Hosting\EssentialsMauiAppBuilderExtensions.cs (3)
152 private static async void SetAppActions(IServiceProvider services, List<AppAction> appActions) 174 List<AppAction>? _appActions; 178 internal List<AppAction>? AppActions => _appActions;
Hosting\Internal\FontCollection.cs (1)
8 readonly List<FontDescriptor> _descriptors = new List<FontDescriptor>();
Hosting\Internal\MauiServiceCollection.cs (1)
11 readonly List<ServiceDescriptor> _descriptors = new List<ServiceDescriptor>();
HotReload\HotReloadExtensions.cs (2)
39 public static List<MethodInfo> GetOnHotReloadMethods(this Type type) 48 var foos = type.GetMethods(flags).Where(x => x.GetCustomAttributes(typeof(OnHotReloadAttribute), true).Length > 0).ToList();
HotReload\HotReloadHelper.cs (5)
119 static Dictionary<string, List<KeyValuePair<Type, Type>>> replacedHandlers = new(StringComparer.Ordinal); 148 var onHotReloadMethods = newViewType.GetOnHotReloadMethods(); 156 if (replacedHandlers.TryGetValue(oldViewType, out var vTypes)) 167 var views = HandlerService!.Where(x => x.ImplementationType == t).Select(x => new KeyValuePair<Type, Type>(x.ServiceType, x.ImplementationType!)).ToList(); 190 List<IHotReloadableView>? roots = null;
LifecycleEvents\LifecycleEventService.cs (4)
9 readonly Dictionary<string, List<Delegate>> _mapper = new(StringComparer.Ordinal); 25 if (!_mapper.TryGetValue(eventName, out var delegates) && delegates == null) 34 if (_mapper.TryGetValue(eventName, out var delegates) && delegates != null) 41 _mapper.TryGetValue(eventName, out var delegates) && delegates?.Count > 0;
PropertyMapper.cs (8)
23 List<string>? _updatePropertiesKeys; 24 List<Action<IElementHandler, IElement>>? _updatePropertiesMappers; 27 List<string> UpdatePropertiesKeys => _updatePropertiesKeys ?? SnapshotMappers().UpdatePropertiesKeys; 28 List<Action<IElementHandler, IElement>> UpdatePropertiesMappers => _updatePropertiesMappers ?? SnapshotMappers().UpdatePropertiesMappers; 177 private (List<string> UpdatePropertiesKeys, List<Action<IElementHandler, IElement>> UpdatePropertiesMappers, Dictionary<string, Action<IElementHandler, IElement>?> CachedMappers) SnapshotMappers() 179 var updatePropertiesKeys = GetKeys().Distinct().ToList(); 180 var updatePropertiesMappers = new List<Action<IElementHandler, IElement>>(updatePropertiesKeys.Count);
ViewExtensions.cs (2)
39 List<IView> _flatList = new List<IView>(); 47 void BuildFlatList(IView view, List<IView> flatList)
VisualDiagnostics\AdornerModel.cs (1)
13 List<Rect> marginZones = new List<Rect>();
VisualDiagnostics\VisualDiagnosticsOverlay.cs (2)
51 var scrollBars = GetScrollViews(); 189 List<IScrollView> GetScrollViews()
WeakEventManager.cs (6)
13 readonly Dictionary<string, List<Subscription>> _eventHandlers = new(StringComparer.Ordinal); 42 var toRaise = new List<(object? subscriber, MethodInfo handler)>(); 43 var toRemove = new List<Subscription>(); 45 if (_eventHandlers.TryGetValue(eventName, out List<Subscription>? target)) 107 if (!_eventHandlers.TryGetValue(eventName, out List<Subscription>? targets)) 125 if (!_eventHandlers.TryGetValue(eventName, out List<Subscription>? subscriptions))
WeakList.cs (1)
14 readonly List<WeakReference<T>> _list = new();
WindowOverlay\WindowOverlay.cs (2)
134 var elements = new List<IVisualTreeElement>(); 135 var windowElements = new List<IWindowOverlayElement>();
Microsoft.Maui.Controls (236)
Accelerator.cs (1)
40 var modifiers = new List<string>();
Application\Application.cs (2)
351 var changedResources = new List<KeyValuePair<string, object>>(); 417 readonly List<Window> _windows = new();
BindablePropertyConverter.cs (1)
129 var parents = parentValueProvider.ParentObjects.ToList();
BindingExpression.cs (3)
24 readonly List<BindingExpressionPart> _parts = new List<BindingExpressionPart>(); 29 List<WeakReference<Element>> _ancestryChain; 451 internal void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource)
Brush\BrushTypeConverter.cs (1)
415 var offsets = new List<float>();
Cells\Cell.cs (2)
22 List<MenuItem> _currentContextActions; 323 var children = new List<Maui.IVisualTreeElement>(LogicalChildrenInternal);
ContentPage\HideSoftInputOnTappedChanged\HideSoftInputOnTappedChangedManager.cs (1)
8 List<ContentPage> _contentPages = new List<ContentPage>();
DefinitionCollection.cs (1)
11 readonly List<T> _internalList;
DependencyService.cs (1)
19 static readonly List<DependencyType> DependencyTypes = new List<DependencyType>();
Element\Element.cs (2)
61 List<Action<object, ResourcesChangedEventArgs>> _changeHandlers; 761 List<(BindableProperty, SetterSpecificity)> changedResources = null;
Element\Element_StyleSheets.cs (4)
29 var list = new List<string>(); 48 var sheets = new List<StyleSheet>(); 62 void ApplyStyleSheets(List<StyleSheet> sheets, IVisualTreeElement element) 73 var mergedSheets = sheets;
ElementTemplate.cs (1)
12 List<Action<object, ResourcesChangedEventArgs>> _changeHandlers;
FontAttributes.cs (1)
72 var parts = new List<string>();
FormattedString.cs (1)
86 var removed = new List<Span>(this);
GestureElement.cs (1)
72 List<IGestureRecognizer> removed = new List<IGestureRecognizer>(this);
IExpressionSearch.cs (1)
11 List<T> FindObjects<T>(Expression expression) where T : class;
Interactivity\EventTrigger.cs (1)
16 readonly List<WeakReference<BindableObject>> _associatedObjects = new List<WeakReference<BindableObject>>();
Internals\ProfilePage.cs (1)
35 public static List<ProfileDatum> Data = new List<ProfileDatum>();
Items\MarshalingObservableCollection.cs (1)
56 var items = new List<object>();
Items\SelectableItemsView.cs (1)
88 var oldSelection = new List<object>(SelectedItems);
Items\SelectionList.cs (2)
116 List<object> Copy() 118 var items = new List<object>();
Label\Label.cs (1)
397 var spans = new List<GestureElement>();
Layout\Layout.cs (1)
38 readonly private protected List<IView> _children = new();
LegacyLayouts\Grid.cs (2)
188 List<RowDefinition> rowDefinitions = structure.Rows; 215 List<ColumnDefinition> columnDefinitions = structure.Columns;
LegacyLayouts\GridCalc.cs (4)
95 List<ColumnDefinition> _columns = new List<ColumnDefinition>(); 96 List<RowDefinition> _rows = new List<RowDefinition>(); 100 public List<ColumnDefinition> Columns => _columns; 101 public List<RowDefinition> Rows => _rows;
LegacyLayouts\RelativeLayout.cs (6)
69 var result = new List<View>(); 76 List<View> unsolvedChildren = Children.Cast<View>().ToList(); 79 List<View> copy = unsolvedChildren.ToList(); 245 var parents = new List<View>(); 277 var parents = new List<View>(); 377 var parents = new List<View>();
ListStringTypeConverter.cs (1)
31 if (value is not List<string> list)
ListView\ListView.cs (2)
24 readonly List<Element> _visualChildren = new List<Element>(); 559 var itemSource = ItemsSource?.Cast<object>().ToList();
Menu\MenuBarItem.cs (1)
43 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuFlyout.cs (1)
12 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuFlyoutSubItem.cs (1)
9 readonly List<IMenuElement> _menus = new List<IMenuElement>();
Menu\MenuItemTracker.cs (4)
16 List<WeakReference<Page>> _additionalTargets = new(); 83 List<TMenuItem> returnValue = GetCurrentToolbarItems(Target); 101 List<TMenuItem> GetCurrentToolbarItems(Page page) 103 var result = new List<TMenuItem>();
MergedStyle.cs (1)
23 readonly List<BindableProperty> _implicitStyles = new List<BindableProperty>();
MessagingCenter.cs (5)
107 readonly Dictionary<Sender, List<Subscription>> _subscriptions = 108 new Dictionary<Sender, List<Subscription>>(); 207 List<Subscription> subcriptions = _subscriptions[key]; 216 List<Subscription> subscriptionsCopy = subcriptions.ToList(); 238 var list = new List<Subscription> { value };
MultiBinding.cs (1)
58 var bindingsclone = new List<BindingBase>(Bindings.Count);
MultiPage.cs (1)
329 List<Element> snapshot = InternalChildren.ToList();
NavigationModel.cs (10)
10 readonly List<Page> _modalStack = new List<Page>(); 11 readonly List<List<Page>> _navTree = new List<List<Page>>(); 47 foreach (List<Page> list in _navTree) 70 List<Page> currentStack = _navTree.Last(); 83 foreach (List<Page> stack in _navTree) 151 foreach (List<Page> stack in _navTree) 178 foreach (List<Page> stack in _navTree) 214 List<Page> currentStack = _navTree.Last();
NavigationPage\NavigationPage.cs (3)
582 var parentPages = this.GetParentPages(); 657 var immutableNavigationStack = new List<IView>(NavigationStack); 815 List<Page> pagesToRemove = new List<Page>();
NavigationPage\NavigationPageToolbar.cs (2)
22 List<NavigationPage> _navigationPagesStack = new List<NavigationPage>(); 73 var pages = cp.GetParentPages();
NavigationProxy.cs (4)
27 Lazy<List<Page>> _pushStack = new Lazy<List<Page>>(() => new List<Page>()); 43 _pushStack = new Lazy<List<Page>>(() => new List<Page>()); 251 List<Page> list = _pushStack.Value;
NavigationStepRequest.cs (2)
24 List<NavigationStepRequest> _innerList = new List<NavigationStepRequest>(); 25 List<Page> _pages = new List<Page>();
ObservableList.cs (4)
20 List<T> items = range.ToList(); 37 List<T> items = range.ToList(); 51 var items = new List<T>(count); 86 List<T> items = range.ToList();
OrderedDictionary.cs (1)
43 readonly List<TKey> _keyOrder;
Page\Page.cs (3)
81 List<Action> _pendingActions = new List<Action>(); 386 var actionsToProcess = _pendingActions.ToList(); 585 var startingLayout = new List<Rect>(logicalChildren.Count);
Platform\ModalNavigationManager\ModalNavigationManager.cs (1)
16 List<Page> _platformModalPages = new List<Page>();
Profiler.cs (1)
28 public static List<Datum> Data;
Region.cs (2)
32 var list = rectangles.ToList(); 39 var positions = new List<Rect>();
RelativeBindingSource.cs (4)
119 List<Element> chain, 196 void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource); 212 public void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource) 229 public void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource)
ResourcesExtensions.cs (6)
27 var mergedClassStyles = new List<Style>(resources[res.Key] as List<Style>); 28 mergedClassStyles.AddRange(res.Value as List<Style>); 42 var mergedClassStyles = new List<Style>(resources[res.Key] as List<Style>); 43 mergedClassStyles.AddRange(res.Value as List<Style>);
Routing.cs (1)
192 public static string FormatRoute(List<string> segments)
Shapes\GeometryHelper.cs (4)
27 var points = new List<Point>(); 232 public static void FlattenCubicBezier(List<Point> points, Point ptStart, Point ptCtrl1, Point ptCtrl2, Point ptEnd, double tolerance) 255 public static void FlattenQuadraticBezier(List<Point> points, Point ptStart, Point ptCtrl, Point ptEnd, double tolerance) 277 public static void FlattenArc(List<Point> points, Point pt1, Point pt2, double radiusX, double radiusY, double angleRotation,
Shapes\PathGeometry.cs (1)
99 List<Point> points = new List<Point>();
Shell\BaseShellItem.cs (1)
316 List<string> bindableObjectStyle = new List<string>() {
Shell\IShellController.cs (2)
39 List<List<Element>> GenerateFlyoutGrouping();
Shell\RequestDefinition.cs (3)
18 List<String> builder = new List<string>(); 37 string MakeUriString(List<string> segments) 49 public List<string> GlobalRoutes { get; }
Shell\RouteRequestBuilder.cs (13)
13 readonly List<string> _globalRouteMatches = new List<string>(); 14 readonly List<string> _matchedSegments = new List<string>(); 15 readonly List<string> _fullSegments = new List<string>(); 16 readonly List<string> _allSegments = null; 26 public RouteRequestBuilder(List<string> allSegments) 32 public RouteRequestBuilder(string shellSegment, string userSegment, object node, List<string> allSegments) : this(allSegments) 166 var segmentsToMatch = ShellUriHandler.RetrievePaths(matchMe).ToList(); 182 List<string> matches = new List<string>(); 183 List<string> currentSet = new List<string>(_matchedSegments); 229 public List<string> RemainingSegments 241 string MakeUriString(List<string> segments) 270 public List<string> GlobalRouteMatches => _globalRouteMatches; 271 public List<string> SegmentsMatched => _matchedSegments;
Shell\Shell.cs (4)
632 List<(IAppearanceObserver Observer, Element Pivot)> _appearanceObservers = new List<(IAppearanceObserver Observer, Element Pivot)>(); 633 List<IFlyoutBehaviorObserver> _flyoutBehaviorObservers = new List<IFlyoutBehaviorObserver>(); 1508 List<List<Element>> IShellController.GenerateFlyoutGrouping() =>
Shell\ShellElementCollection.cs (3)
18 readonly List<NotifyCollectionChangedEventArgs> _notifyCollectionChangedEventArgs; 90 var pendingEvents = _notifyCollectionChangedEventArgs.OrderBy(x => x.NewItems != null ? 0 : 1).ToList(); 110 var list = Inner.Cast<BaseShellItem>().ToList();
Shell\ShellFlyoutItemsManager.cs (10)
12 List<List<Element>> _lastGeneratedFlyoutItems; 38 var source = _lastGeneratedFlyoutItems[i]; 83 public List<List<Element>> GenerateFlyoutGrouping() 101 var result = new List<List<Element>>(); 103 var currentGroup = new List<Element>(); 181 var topLevelNew = result[i]; 182 var topLevelPrevious = _lastGeneratedFlyoutItems[i];
Shell\ShellNavigationManager.cs (4)
519 List<string> routeStack = new List<string>(); 575 public static List<Page> BuildFlattenedNavigationStack(Shell shell) 581 public static List<Page> BuildFlattenedNavigationStack(IReadOnlyList<Page> startingList, IReadOnlyList<Page> modalStack) 583 var returnValue = startingList.ToList();
Shell\ShellNavigationState.cs (1)
75 List<string> toKeep = new List<string>();
Shell\ShellSection.cs (20)
40 readonly List<(object Observer, Action<Page> Callback)> _displayedPageObservers = 42 readonly List<IShellContentInsetObserver> _observers = new List<IShellContentInsetObserver>(); 136 var oldStack = _navStack; 214 List<Page> _navStack = new List<Page> { null }; 320 async Task PrepareCurrentStackForBeingReplaced(ShellNavigationRequest request, ShellRouteParameters queryData, IServiceProvider services, bool? animate, List<string> globalRoutes, bool isRelativePopping) 323 List<Page> navStack = null; 332 var navStackCopy = new List<Page>(_navStack); 353 List<Page> pagesToInsert = new List<Page>(); 512 List<string> globalRoutes = request.Request.GlobalRoutes; 525 List<Page> modalPageStacks = new List<Page>(); 526 List<Page> nonModalPageStacks = new List<Page>(); 527 var currentNavStack = ShellNavigationManager.BuildFlattenedNavigationStack(_navStack, Navigation?.ModalStack); 610 async Task PushStackOfPages(List<Page> pages, bool? animate) 745 var stack = _navStack.ToList(); 776 List<Page> stack = _navStack.ToList(); 836 var oldStack = _navStack; 856 List<Page> stack = _navStack.ToList(); 925 var stack = _navStack.ToList(); 1180 var stack = _owner.Stack.ToList(); 1205 var stack = _owner.Stack.ToList();
Shell\ShellUriHandler.cs (40)
25 var pages = ShellNavigationManager.BuildFlattenedNavigationStack(shell); 27 List<string> restOfPath = new List<string>(); 44 List<string> buildUpPages = new List<string>(); 149 var segments = new List<string>(RetrievePaths(pathAndQuery[0])); 185 var possibleRouteMatches = GenerateRoutePaths(shell, request, uri, enableRelativeShellRoutes); 222 internal static List<RouteRequestBuilder> GenerateRoutePaths(Shell shell, Uri request) 228 internal static List<RouteRequestBuilder> GenerateRoutePaths(Shell shell, Uri request, Uri originalRequest, bool enableRelativeShellRoutes) 235 List<RouteRequestBuilder> possibleRoutePaths = new List<RouteRequestBuilder>(); 246 var segments = new List<string>(RetrievePaths(localPath)); 262 var result = ProcessRelativeRoute(shell, routeKeys, segments, enableRelativeShellRoutes, originalRequest); 270 var bestMatches = GetBestMatches(possibleRoutePaths); 288 var globalRouteMatches = 345 static List<RouteRequestBuilder> ProcessRelativeRoute( 348 List<string> segments, 357 var pureRoutesMatch = new List<RouteRequestBuilder>(); 358 var pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 377 var matches = SearchForGlobalRoutes(segments, shell.CurrentState.FullLocation, currentLocation, routeKeys); 428 static List<RouteRequestBuilder> SearchForGlobalRoutes( 429 List<string> segments, 434 List<RouteRequestBuilder> pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 437 var newSegments = CollapsePath(newPath, currentSegments, true); 438 List<string> fullRouteWithNewSegments = new List<string>(currentSegments); 457 var existingGlobalRoutes = routeRequestBuilder.GlobalRouteMatches.ToList(); 463 var additionalRouteMatches = routeRequestBuilder.GlobalRouteMatches; 480 internal static List<string> CollapsePath( 486 internal static List<string> CollapsePath( 491 var localRouteStack = currentRouteStack.ToList(); 502 var paths = myRoute.ToList(); 535 var collapsedRoutes = CollapsePath(routeKey, possibleRoutePath.SegmentsMatched, true); 607 internal static void ExpandOutGlobalRoutes(List<RouteRequestBuilder> possibleRoutePaths, HashSet<string> routeKeys) 618 List<RouteRequestBuilder> pureGlobalRoutesMatch = new List<RouteRequestBuilder>(); 640 internal static List<RouteRequestBuilder> GetBestMatches(List<RouteRequestBuilder> possibleRoutePaths) 642 List<RouteRequestBuilder> bestMatches = new List<RouteRequestBuilder>(); 678 List<RouteRequestBuilder> betterMatches = new List<RouteRequestBuilder>(); 783 List<string> paths = new List<string>(); 856 List<string> segments, 857 List<RouteRequestBuilder> possibleRoutePaths, 1005 var segments = RetrievePaths(_path).ToList().Skip(1).ToList(); 1033 var segments = RetrievePaths(_path).ToList().Skip(1).ToList();
SwipeView\SwipeView.cs (2)
16 readonly List<ISwipeItem> _swipeItems = new List<ISwipeItem>(); 101 List<Maui.IVisualTreeElement> elements = new List<IVisualTreeElement>();
SynchronizedList.cs (1)
11 readonly List<T> _list = new List<T>();
TemplatedItemsList.cs (5)
45 readonly List<TItem> _templatedObjects = new List<TItem>(); 684 var contentItems = new List<TItem>(items.Count); 796 List<TemplatedItemsList<TView, TItem>> newItems = null, oldItems = null; 1302 List<string> ConvertItems(IList list) 1304 var newList = new List<string>(list.Count);
TypedBinding.cs (3)
71 internal abstract void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource); 147 List<WeakReference<Element>> _ancestryChain; 346 internal override void SubscribeToAncestryChanges(List<Element> chain, bool includeBindingContext, bool rootIsSource)
ViewExtensions.cs (2)
378 internal static List<Page> GetParentPages(this Page target) 380 var result = new List<Page>();
VisualElement\VisualElement.cs (4)
1551 var changedResources = new List<KeyValuePair<string, object>>(); 1560 var mergedClassStyles = new List<Style>(Resources[value.Key] as List<Style>); 1561 mergedClassStyles.AddRange(value.Value as List<Style>);
VisualStateManager.cs (5)
449 var conflicts = new List<StateTriggerBase>(); 474 VisualState ResolveStateTriggersConflict(List<StateTriggerBase> conflicts) 727 readonly Action<List<T>> _onAdd; 728 readonly List<T> _internalList; 730 public WatchAddList(Action<List<T>> onAdd)
WebView\WebView.cs (1)
304 var uniqueMatches = new List<string>();
Window\Window.cs (1)
68 List<IVisualTreeElement> _visualChildren;
Microsoft.Maui.Controls.BindingSourceGen (29)
BindingCodeWriter.cs (2)
55 var propertyAccessors = new List<string> 134 var unsafeAccessorsStrings = new List<string>();
BindingTransformer.cs (1)
19 var newPath = new List<IPathPart>();
PathParser.cs (25)
18 internal Result<List<IPathPart>> ParsePath(CSharpSyntaxNode? expressionSyntax) 22 IdentifierNameSyntax _ => Result<List<IPathPart>>.Success(new List<IPathPart>()), 35 private Result<List<IPathPart>> HandleMemberAccessExpression(MemberAccessExpressionSyntax memberAccess) 49 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(memberAccess.GetLocation())); 62 return Result<List<IPathPart>>.Success(result.Value); 65 private Result<List<IPathPart>> HandleElementAccessExpression(ElementAccessExpressionSyntax elementAccess) 83 return Result<List<IPathPart>>.Success(result.Value); 86 private Result<List<IPathPart>> HandleConditionalAccessExpression(ConditionalAccessExpressionSyntax conditionalAccess) 102 return Result<List<IPathPart>>.Success(expressionResult.Value); 105 private Result<List<IPathPart>> HandleMemberBindingExpression(MemberBindingExpressionSyntax memberBinding) 113 return Result<List<IPathPart>>.Success(new List<IPathPart>([part])); 116 private Result<List<IPathPart>> HandleElementBindingExpression(ElementBindingExpressionSyntax elementBinding) 129 return Result<List<IPathPart>>.Success(elementAccessResult.Value); 132 private Result<List<IPathPart>> HandleBinaryExpression(BinaryExpressionSyntax asExpression) 144 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(castTo.GetLocation())); 149 return Result<List<IPathPart>>.Success(leftResult.Value); 152 private Result<List<IPathPart>> HandleCastExpression(CastExpressionSyntax castExpression) 163 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(castExpression.GetLocation())); 168 return Result<List<IPathPart>>.Success(result.Value); 171 private Result<List<IPathPart>> HandleDefaultCase() 173 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(_context.Node.GetLocation())); 176 private Result<List<IPathPart>> CreateIndexAccess(ISymbol? elementAccessSymbol, ITypeSymbol? typeSymbol, SeparatedSyntaxList<ArgumentSyntax> argumentList, Location location) 180 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(location)); 187 return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(indexExpression.GetLocation())); 194 return Result<List<IPathPart>>.Success(new List<IPathPart>([part]));
Setter.cs (1)
13 List<string> patternMatchingExpressions = new();
Microsoft.Maui.Controls.Build.Tasks (22)
BindablePropertyReferenceExtensions.cs (1)
45 var attributes = new List<CustomAttribute>();
CompiledConverters\ListStringTypeConverter.cs (1)
23 var parts = value.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()).ToList();
CompiledValueProviders\SetterValueProvider.cs (1)
51 var items = (node as IElementNode)?.CollectionItems;
CreateObjectVisitor.cs (2)
57 var children = node.Properties.Values.ToList(); 329 var arguments = new List<INode>();
ExpandMarkupsVisitor.cs (1)
139 var childnodes = new List<(XmlName, INode)>();
MethodBodyExtensions.cs (1)
67 var ldlocUsed = new List<VariableDefinition>();
MethodDefinitionExtensions.cs (1)
14 var arguments = new List<INode>();
NodeILExtensions.cs (3)
471 var nodes = new List<IElementNode>(); 581 var scopes = new List<VariableDefinition>(); 631 var pushParentIl = node.PushParentObjectsArray(context).ToList();
PerformanceProvider.cs (1)
15 public readonly List<Tuple<string, long>> StartTimes = new List<Tuple<string, long>>();
SetPropertiesVisitor.cs (4)
681 var properties = new List<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)>(); 1057 var partGetters = new List<MethodDefinition>(); 1136 var handlers = new List<(MethodDefinition PartGetter, string PropertyName)>(); 1946 var attributes = variableDefinition.VariableType.ResolveCached(Context.Cache)
TypeReferenceExtensions.cs (2)
317 var implicitOperators = implicitOperatorsOnFromType.Concat(implicitOperatorsOnToType).ToList(); 411 List<TypeReference> args = new List<TypeReference>();
XamlCTask.cs (3)
33 internal static List<BuildException> LoggedErrors { get; set; } 233 var resourcesToPrune = new List<EmbeddedResource>(); 327 if (LoggingHelperExtensions.LoggedErrors is List<BuildException> errors)
XmlTypeExtensions.cs (1)
15 var xmlnsDefinitions = new List<XmlnsDefinitionAttribute>();
Microsoft.Maui.Controls.Foldable (2)
TwoPaneViewLayoutGuide.cs (2)
41 List<string> _pendingPropertyChanges = new List<string>(); 296 var properties = _pendingPropertyChanges.ToList();
Microsoft.Maui.Controls.SourceGen (14)
CodeBehindGenerator.cs (2)
197 var xmlnsDefinitions = new List<XmlnsDefinitionAttribute>(); 198 var internalsVisible = new List<IAssemblySymbol>();
src\Controls\src\Xaml\TypeArgumentsParser.cs (1)
12 var typeList = new List<XmlType>();
src\Controls\src\Xaml\XamlNode.cs (8)
13 List<string> IgnorablePrefixes { get; set; } 28 List<XmlName> SkipProperties { get; } 36 List<INode> CollectionItems { get; } 99 public List<string> IgnorablePrefixes { get; set; } 169 public List<XmlName> SkipProperties { get; } 170 public List<INode> CollectionItems { get; } 259 public List<INode> CollectionItems { get; set; } 273 var items = new List<INode>();
src\Controls\src\Xaml\XmlTypeXamlExtensions.cs (3)
44 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 64 var lookupNames = new List<string>(capacity: 2); 80 var potentialTypes = new List<(string typeName, string clrNamespace, string assemblyName)>();
Microsoft.Maui.Controls.Xaml (18)
ExpandMarkupsVisitor.cs (1)
137 var childnodes = new List<(XmlName, INode)>();
PruneIgnoredNodesVisitor.cs (1)
28 var prefixes = propertyValue.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList();
RemoveDuplicateDesignNodes.cs (1)
26 var props = node.Properties.ToList();
TypeArgumentsParser.cs (1)
12 var typeList = new List<XmlType>();
XamlNode.cs (8)
13 List<string> IgnorablePrefixes { get; set; } 28 List<XmlName> SkipProperties { get; } 36 List<INode> CollectionItems { get; } 99 public List<string> IgnorablePrefixes { get; set; } 169 public List<XmlName> SkipProperties { get; } 170 public List<INode> CollectionItems { get; } 259 public List<INode> CollectionItems { get; set; } 273 var items = new List<INode>();
XamlParser.cs (3)
141 var nodes = new List<INode>(); 207 var attributes = new List<KeyValuePair<XmlName, INode>>(); 289 var prefixes = new List<string>();
XmlTypeXamlExtensions.cs (3)
44 var lookupAssemblies = new List<XmlnsDefinitionAttribute>(); 64 var lookupNames = new List<string>(capacity: 2); 80 var potentialTypes = new List<(string typeName, string clrNamespace, string assemblyName)>();
Microsoft.Maui.Essentials (13)
Connectivity\Connectivity.shared.cs (1)
82 List<ConnectionProfile> currentProfiles;
Email\Email.shared.cs (4)
174 public List<string>? To { get; set; } = new List<string>(); 179 public List<string>? Cc { get; set; } = new List<string>(); 184 public List<string>? Bcc { get; set; } = new List<string>(); 189 public List<EmailAttachment>? Attachments { get; set; } = new List<EmailAttachment>();
Share\Share.shared.cs (1)
343 public List<ShareFile>? Files { get; set; } = new List<ShareFile>();
Sms\Sms.shared.cs (1)
126 public List<string> Recipients { get; set; } = new List<string>();
TextToSpeech\TextToSpeech.shared.cs (2)
74 internal static List<string> SplitSpeak(string text, int max) 76 var parts = new List<string>();
Types\Contact.shared.cs (2)
97 public List<ContactPhone> Phones { get; set; } = new List<ContactPhone>(); 102 public List<ContactEmail> Emails { get; set; } = new List<ContactEmail>();
VersionTracking\VersionTracking.shared.cs (2)
208 Dictionary<string, List<string>> versionTrail = null!; 336 var trail = versionTrail[key];
Microsoft.Maui.Graphics (34)
PathF.cs (22)
12 private readonly List<float> _arcAngles; 13 private readonly List<bool> _arcClockwise; 14 private readonly List<PointF> _points; 15 private readonly List<PathOperation> _operations; 17 private readonly List<bool> _subPathsClosed; 22 private PathF(List<PointF> points, List<float> arcSizes, List<bool> arcClockwise, List<PathOperation> operations, int subPathCount) 939 public List<PathF> Separate() 941 var paths = new List<PathF>(); 989 var points = new List<PointF>(_points); 992 var arcSizes = new List<float>(_arcAngles); 995 var arcClockwise = new List<bool>(_arcClockwise); 998 var operations = new List<PathOperation>(_operations); 1456 List<PointF> flattenedPoints = null; 1457 List<PointF> curvePoints = null; 1525 private void QuadToCubic(int pointIndex, List<PointF> curvePoints) 1540 private void FlattenCubicSegment(int index, double flatness, List<PointF> curvePoints, List<PointF> flattenedPoints) 1591 private Vector2 DeCasteljau(List<PointF> curvePoints, int index, float t) 1604 private Vector2 GetPointAsVector(List<PointF> curvePoints, int index)
PictureCanvas.cs (1)
15 private readonly List<DrawingCommand> _commands;
Text\AttributedTextExtensions.cs (7)
23 var runs = new List<IAttributedTextRun>(); 28 internal static List<IAttributedTextRun> OptimizeRuns(this IAttributedText attributedText) 38 if (attributedText.Runs is List<IAttributedTextRun> list) 48 var runs = new List<IAttributedTextRun>(); 58 List<IAttributedText> paragraphs = new List<IAttributedText>(); 70 var runs = new List<IAttributedTextRun>(); 159 var blocks = new List<AttributedTextBlock>();
Text\AttributedTextRunExtensions.cs (2)
70 List<IAttributedTextRun> intersections = new List<IAttributedTextRun>(); 156 public static void Optimize(this List<IAttributedTextRun> runs, int textLength)
Text\MutableAttributedText.cs (1)
7 private List<IAttributedTextRun> _runs;
Text\XmlAttributedTextReader.cs (1)
17 private readonly List<IAttributedTextRun> _runs = new List<IAttributedTextRun>();
Microsoft.Maui.Graphics.Skia (6)
SkiaTextLayout.cs (6)
85 var lines = CreateLines(y, bottom, width); 101 List<TextLine> lines, 154 List<TextLine> lines, 187 List<TextLine> lines, 213 private List<TextLine> CreateLines(float y, float bottom, float width) 215 var lines = new List<TextLine>();
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\AttributedTextRenderer.cs (1)
10 private List<IAttributedTextRun> _runs = new List<IAttributedTextRun>();
Microsoft.Maui.Maps (2)
Primitives\GeographyUtils.cs (2)
16 public static List<Location> ToCircumferencePositions(this ICircleMapElement circle) 18 var positions = new List<Location>();
Microsoft.Maui.Resizetizer (10)
AndroidAdaptiveIconGenerator.cs (4)
39 var results = new List<ResizedImageInfo>(); 53 void ProcessBackground(List<ResizedImageInfo> results, DirectoryInfo fullIntermediateOutputPath) 97 void ProcessForeground(List<ResizedImageInfo> results, DirectoryInfo fullIntermediateOutputPath) 141 void ProcessAdaptiveIcon(List<ResizedImageInfo> results, DirectoryInfo fullIntermediateOutputPath)
AppleIconAssetsGenerator.cs (1)
50 var appIconImagesJson = new List<string>();
ResizeImageInfo.cs (2)
59 public static List<ResizeImageInfo> Parse(IEnumerable<ITaskItem> images) 61 var r = new List<ResizeImageInfo>();
ResizetizeImages.cs (2)
39 var inputImages = ResizeImageInfo.Parse(Images); 103 var copiedResources = new List<TaskItem>();
TizenSplashUpdater.cs (1)
27 var orientations = new List<string>() { "portrait", "landscape" };
Microsoft.ML.AutoML (72)
API\AutoCatalog.cs (3)
356var res = new List<SweepableEstimator>(); 460var res = new List<SweepableEstimator>(); 571var res = new List<SweepableEstimator>();
AutoMLExperiment\AutoMLExperiment.cs (1)
224var mostRecentAddedStopServices = stopServices.GroupBy(s => s.GetType()).Select(g => g.Last()).ToList();
AutoMLExperiment\IMonitor.cs (2)
31private readonly List<TrialResult> _completedTrials; 82public List<TrialResult<TMetrics>> RunDetails { get; }
AutoMLExperiment\IStopTrainingManager.cs (1)
117private readonly List<IStopTrainingManager> _managers;
AutoMLExperiment\ITrialResultManager.cs (1)
147var res = new List<TrialResult>();
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (2)
44var metrics = new List<double>(); 45var models = new List<ITransformer>();
AutoMlUtils.cs (1)
39var res = new List<InputOutputColumnPair>();
ColumnInference\ColumnGroupingInference.cs (4)
58var result = new List<GroupingColumn>(); 59var tuples = types.Zip(purposes, Tuple.Create).ToList(); 94private static string GetName(DataKind itemKind, ColumnPurpose purpose, List<GroupingColumn> previousColumns) 134var allRanges = new List<Range>();
ColumnInference\ColumnInformationUtil.cs (3)
130var columnNames = new List<string>(); 163private static void AddStringsToListIfNotNull(List<string> list, IEnumerable<string> strings) 171private static void AddStringToListIfNotNull(List<string> list, string str)
ColumnInference\ColumnTypeInference.cs (2)
274var data = new List<ReadOnlyMemory<char>[]>(); 406var loaderColumns = new List<TextLoader.Column>();
ColumnInference\PurposeInference.cs (3)
88var results = new List<ReadOnlyMemory<char>>(); 245var allColumns = new List<IntermediateColumn>(); 246var columnsToInfer = new List<IntermediateColumn>();
ColumnInference\TextFileContents.cs (1)
95var columnCounts = new List<int>();
ColumnInference\TextFileSample.cs (1)
135var chunks = new List<byte[]>();
Experiment\Experiment.cs (1)
117var iterationResults = new List<TRunDetail>();
Experiment\RecipeInference.cs (1)
20var trainers = new List<SuggestedTrainer>();
Experiment\Runners\CrossValRunner.cs (1)
51var trainResults = new List<SuggestedPipelineTrainResult<TMetrics>>();
Experiment\Runners\CrossValSummaryRunner.cs (1)
56var trainResults = new List<(ModelContainer model, TMetrics metrics, Exception exception, double score)>();
Experiment\SuggestedPipeline.cs (3)
62var pipelineElements = new List<PipelineNode>(); 77var transforms = new List<SuggestedTransform>(); 78var transformsPostTrainer = new List<SuggestedTransform>();
PipelineSuggesters\PipelineSuggester.cs (2)
40var transforms = TransformInferenceApi.InferTransforms(context, task, columns).ToList(); 41var transformsPostTrainer = TransformInferenceApi.InferTransformsPostTrainer(context, task, columns).ToList();
SweepableEstimator\SweepableEstimatorPipeline.cs (1)
16private readonly List<SweepableEstimator> _estimators;
Sweepers\ISweeper.cs (1)
91var parameterNames = _parameterValues.Keys.ToList();
Sweepers\Parameters.cs (2)
246var result = new List<IParameterValue>(); 372var result = new List<IParameterValue>();
Sweepers\SmacSweeper.cs (6)
93List<IRunResult> viableRuns = new List<IRunResult>(); 261List<ParameterSet> neighbors = new List<ParameterSet>(); 327List<double[]> datasetLeafValues = new List<double[]>(); 330List<double> leafValues = new List<double>(); 352List<int> path = null; 405List<ParameterSet> outSet = new List<ParameterSet>();
Sweepers\SweeperProbabilityUtils.cs (3)
33List<double> rvs = new List<double>(); 69var result = new List<float>(); 129List<IParameterValue> parameters = new List<IParameterValue>();
TrainerExtensions\SweepableParams.cs (1)
201var sweepableParams = new List<SweepableParam>();
TransformInference\TransformInference.cs (9)
248var catColumnsNew = new List<string>(); 249var catHashColumnsNew = new List<string>(); 282var transformedColumns = new List<string>(); 296var newColumns = new List<string>(); 324var featureCols = new List<string>(); 350var columnsWithMissing = new List<string>(); 401var suggestedTransforms = new List<SuggestedTransform>(); 428var concatColNames = new List<string>(); 477var newColNames = new List<string>();
TransformInference\TransformPostTrainerInference.cs (2)
15var suggestedTransforms = new List<SuggestedTransform>(); 23var inferredTransforms = new List<SuggestedTransform>();
Tuner\AutoZeroTuner.cs (5)
20private readonly List<Config> _configs = new List<Config>(); 39var trainerEstimators = _sweepablePipeline.Estimators.Where(e => e.Value.EstimatorType.IsTrainer()).Select(e => e.Value.EstimatorType.ToString()).ToList(); 64private List<Config> LoadConfigsFromJson() 73var res = JsonSerializer.Deserialize<List<Config>>(json);
Tuner\SmacTuner.cs (5)
27private readonly List<TrialResult> _histories; 118internal List<TrialResult> Histories => _histories; 260var neighborhood = new List<Parameter>(); 321List<double> leafValues = new List<double>(); 326List<int> path = null;
Utils\SplitUtil.cs (2)
18var trainDatasets = new List<IDataView>(); 19var validationDatasets = new List<IDataView>();
Utils\UserInputValidationUtil.cs (1)
133var allColumns = new List<string>();
Microsoft.ML.AutoML.Interactive (4)
AutoMLMonitorKernelExtension.cs (3)
48var summary = new List<IHtmlContent>(); 82var chartHeader = new List<IHtmlContent>(); 98var tableHeader = new List<IHtmlContent>();
NotebookMonitor.cs (1)
24public List<TrialResult> CompletedTrials { get; set; }
Microsoft.ML.AutoML.SourceGenerator (14)
EstimatorContract.cs (4)
18public List<string> EstimatorTypes { get; set; } 21public List<string> NugetDependencies { get; set; } 24public List<string> UsingStatements { get; set; } 27public List<Argument> ArgumentsList { get; set; }
Template\EstimatorType.cs (2)
72private global::System.Collections.Generic.List<int> indentLengthsField; 113private System.Collections.Generic.List<int> indentLengths
Template\SearchSpace.cs (2)
89private global::System.Collections.Generic.List<int> indentLengthsField; 130private System.Collections.Generic.List<int> indentLengths
Template\SweepableEstimator.cs (2)
91private global::System.Collections.Generic.List<int> indentLengthsField; 132private System.Collections.Generic.List<int> indentLengths
Template\SweepableEstimator_T_.cs (2)
96private global::System.Collections.Generic.List<int> indentLengthsField; 137private System.Collections.Generic.List<int> indentLengths
Template\SweepableEstimatorFactory.cs (2)
67private global::System.Collections.Generic.List<int> indentLengthsField; 108private System.Collections.Generic.List<int> indentLengths
Microsoft.ML.AutoML.Tests (13)
AutoFitTests.cs (1)
566var ignoredExceptions = new List<Exception>();
BestResultUtilTests.cs (2)
27var runResults = new List<RunDetail<RegressionMetrics>>() 43var runResults = new List<RunDetail<RegressionMetrics>>()
GetNextPipelineTests.cs (1)
56var history = new List<PipelineScore>();
GridSearchTunerTests.cs (1)
39var parameters = new List<Parameter>();
InferredPipelineTests.cs (2)
28var transforms1 = new List<SuggestedTransform>(); 29var transforms2 = new List<SuggestedTransform>();
MLContextManagerTests.cs (1)
52var messages = new List<LoggingEventArgs>();
SweeperTests.cs (3)
51List<RunResult> results = new List<RunResult>(); 99List<RunResult> results = new List<RunResult>(); 151List<RunResult> results = new List<RunResult>();
TunerTests.cs (1)
110var history = new List<TrialResult>();
Utils\TaskAgnosticAutoFit.cs (1)
70var iterationResults = classificationResult.RunDetails.Select(i => new TaskAgnosticIterationResult(i)).ToList();
Microsoft.ML.CodeGenerator (40)
CodeGenerator\CSharp\CodeGenerator.cs (8)
198internal (string Usings, string TrainerMethod, List<string> PreTrainerTransforms, List<string> PostTrainerTransforms) GenerateTransformsAndTrainers() 201var usings = new List<string>(); 221var preTrainerTransforms = preTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 222var postTrainerTransforms = postTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 242var results = new List<(string, string[])>(); 365List<string> preTrainerTransforms, 366List<string> postTrainerTransforms,
CodeGenerator\CSharp\PipelineExtension.cs (6)
16internal static (string Usings, string TrainerMethod, List<string> PreTrainerTransforms, List<string> PostTrainerTransforms) GenerateTransformsAndTrainers(this Pipeline pipeline) 19var usings = new List<string>(); 39var preTrainerTransforms = preTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 40var postTrainerTransforms = postTrainerTransformsAndUsings?.Select(t => t.Item1).ToList(); 60var results = new List<(string, string[])>();
Templates\Azure\Console\AzureModelBuilder.cs (2)
166private global::System.Collections.Generic.List<int> indentLengthsField; 207private System.Collections.Generic.List<int> indentLengths
Templates\Azure\Model\AzureImageModelOutputClass.cs (2)
107private global::System.Collections.Generic.List<int> indentLengthsField; 148private System.Collections.Generic.List<int> indentLengths
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (2)
107private global::System.Collections.Generic.List<int> indentLengthsField; 148private System.Collections.Generic.List<int> indentLengths
Templates\Console\ConsumeModel.cs (2)
118private global::System.Collections.Generic.List<int> indentLengthsField; 159private System.Collections.Generic.List<int> indentLengths
Templates\Console\ModelBuilder.cs (2)
483private global::System.Collections.Generic.List<int> indentLengthsField; 524private System.Collections.Generic.List<int> indentLengths
Templates\Console\ModelInputClass.cs (2)
81private global::System.Collections.Generic.List<int> indentLengthsField; 122private System.Collections.Generic.List<int> indentLengths
Templates\Console\ModelOutputClass.cs (2)
124private global::System.Collections.Generic.List<int> indentLengthsField; 165private System.Collections.Generic.List<int> indentLengths
Templates\Console\ModelProject.cs (2)
113private global::System.Collections.Generic.List<int> indentLengthsField; 154private System.Collections.Generic.List<int> indentLengths
Templates\Console\PredictProgram.cs (2)
140private global::System.Collections.Generic.List<int> indentLengthsField; 181private System.Collections.Generic.List<int> indentLengths
Templates\Console\PredictProject.cs (2)
118private global::System.Collections.Generic.List<int> indentLengthsField; 159private System.Collections.Generic.List<int> indentLengths
Utils.cs (6)
54var featureColumns = dataView.Schema.ToList().FindAll( 63List<string> normalizedColumnNames = GenerateColumnNames(featureColumns.Select(column => column.Name).ToList()); 264List<string> columnNames = new List<string>(); 307List<string> normalizedColumnNames = GenerateColumnNames(columnNames); 323internal static List<string> GenerateColumnNames(List<string> columnNames)
Microsoft.ML.CodeGenerator.Tests (7)
ApprovalTests\ConsoleCodeGeneratorTests.cs (3)
604var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") }; 641var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") }; 1099var transforms1 = new List<SuggestedTransform>() { ColumnConcatenatingExtension.CreateSuggestedTransform(context, new[] { "In" }, "Out") };
CodeGenTests.cs (4)
141public static List<TextLoader.Column[]> inputColumns = new List<TextLoader.Column[]> 184public static List<List<string>> expectedLabels = new List<List<string>>
Microsoft.ML.Core (49)
CommandLine\CmdParser.cs (7)
467var args = new List<Argument>(); 953List<ArgumentHelpStrings> strings = new List<ArgumentHelpStrings>(); 1081List<string> args = new List<string>(); 1175public List<KeyValuePair<string, object>> Values; // Key=tag. 1517var values = val.Values; 1568var comList = new List<KeyValuePair<string, IComponentFactory>>(); 1605var comList = new List<IComponentFactory>();
ComponentModel\ComponentCatalog.cs (4)
271List<object> prefix = new List<object>(); 447private readonly List<LoadableClassInfo> _classes; 450private readonly List<EntryPointInfo> _entryPoints; 453private readonly List<ComponentInfo> _components;
Data\AnnotationUtils.cs (2)
427var cols = new List<SchemaShape.Column>(); 443var cols = new List<SchemaShape.Column>();
Data\IEstimator.cs (2)
181var cols = new List<Column>(); 188var mCols = new List<Column>();
Data\IFileHandle.cs (1)
63private List<Stream> _streams;
Data\ProgressReporter.cs (8)
171var hProgress = new List<string>(); 172var hMetrics = new List<string>(); 173var progress = new List<double?>(); 174var progressLim = new List<double?>(); 175var metrics = new List<double?>(); 306private readonly List<CalculationInfo> _infos; 435public List<ProgressEvent> GetAllProgress() 437var list = new List<ProgressEvent>();
Data\Repository.cs (1)
82private readonly List<Entry> _open;
Data\RoleMappedSchema.cs (6)
196private RoleMappedSchema(DataViewSchema schema, Dictionary<string, List<DataViewSchema.Column>> map) 201private static void Add(Dictionary<string, List<DataViewSchema.Column>> map, ColumnRole role, DataViewSchema.Column column) 206if (!map.TryGetValue(role.Value, out var list)) 214private static Dictionary<string, List<DataViewSchema.Column>> MapFromNames(DataViewSchema schema, IEnumerable<KeyValuePair<ColumnRole, string>> roles, bool opt = false) 219var map = new Dictionary<string, List<DataViewSchema.Column>>(); 311private static Dictionary<string, IReadOnlyList<DataViewSchema.Column>> Copy(Dictionary<string, List<DataViewSchema.Column>> map)
EntryPoints\ModuleArgs.cs (1)
265var pieces = new List<string>();
Environment\ConsoleEnvironment.cs (1)
182var entries = progressTracker.GetAllProgress();
Environment\HostEnvironmentBase.cs (1)
366private readonly List<WeakReference<IHost>> _children;
Utilities\BinFinder.cs (4)
16private readonly List<int> _counts; // counts for each value 271protected abstract void FindBinsCore(List<int> counts, int[] path); 329protected override void FindBinsCore(List<int> counts, int[] path) 566protected override void FindBinsCore(List<int> counts, int[] path)
Utilities\Heap.cs (2)
19private readonly List<T> _rgv; // The heap elements. The 0th element is a dummy. 219private readonly List<T> _rgv; // The heap elements. The 0th element is a dummy.
Utilities\MathUtils.cs (1)
340private static List<double> _logFactorialCache;
Utilities\Utils.cs (7)
72public static int Size<T>(List<T> x) 133public static T[] ToArray<T>(List<T> list) 141public static void Add<T>(ref List<T> list, T item) 187public static void CopyTo<T>(this List<T> src, Span<T> dst, int? count = null) 773List<int> mapList = new List<int>(); 807List<int> mapList = new List<int>(); 843List<int> mapList = new List<int>();
Utilities\VBufferUtils.cs (1)
1351public static void Copy<T>(List<T> src, ref VBuffer<T> dst, int length)
Microsoft.ML.Core.Tests (15)
UnitTests\TestCustomTypeRegister.cs (2)
181var tribe = new List<AlienHero>() { new AlienHero("ML.NET", 2, 1000, 2000, 3000, 4000, 5000, 6000, 7000) }; 188var tribeEnumerable = ML.Data.CreateEnumerable<SuperAlienHero>(tribeTransformed, false).ToList();
UnitTests\TestEntryPoints.cs (2)
3350var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 3402var inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
UnitTests\TestHosts.cs (3)
31var children = new ConcurrentDictionary<IHost, List<IHost>>(); 94var children = new ConcurrentDictionary<IHost, List<IHost>>(); 125var messages = new List<string>();
UnitTests\TestUtilities.cs (3)
54List<float> x = Enumerable.Range(0, 1000000).Select(i => (float)i).ToList(); 79List<float> nullX = null; 113List<float> nullX = null;
UnitTests\TestVBuffer.cs (5)
471List<int> indices = new List<int>(a.GetIndices().Length); 850var minSlots = new List<int>(); 851var maxSlots = new List<int>(); 903var expectedIndices = new List<int>(); 904var expectedValues = new List<float>();
Microsoft.ML.Data (321)
Commands\CrossValidationCommand.cs (2)
216if (!TryGetOverallMetrics(tasks.Select(t => t.Result.Metrics).ToArray(), out var overallList)) 312private bool TryGetOverallMetrics(Dictionary<string, IDataView>[] metrics, out List<IDataView> overallList)
Commands\SaveDataCommand.cs (2)
145var cols = new List<int>(); 207var cols = new List<int>();
Commands\ScoreCommand.cs (1)
183var cols = new List<int>();
Commands\TrainCommand.cs (3)
395var xfs = BacktrackPipe(dataPipe, out pipeStart); 421private static List<IDataTransform> BacktrackPipe(IDataView dataPipe, out IDataView pipeStart) 425var transforms = new List<IDataTransform>();
Data\DataViewUtils.cs (1)
1328public static ValueGetter<ReadOnlyMemory<char>>[] PopulateGetterArray(DataViewRowCursor cursor, List<int> colIndices)
DataDebuggerPreview.cs (7)
19private static readonly FuncInstanceMethodInfo1<DataDebuggerPreview, DataViewRow, int, Action<RowInfo, List<object>>> _makeSetterMethodInfo 20= FuncInstanceMethodInfo1<DataDebuggerPreview, DataViewRow, int, Action<RowInfo, List<object>>>.Create(target => target.MakeSetter<int>); 39var rows = new List<RowInfo>(); 40var columns = new List<object>[n]; 46var setters = new Action<RowInfo, List<object>>[n]; 68private Action<RowInfo, List<object>> MakeSetter<T>(DataViewRow row, int col) 72Action<RowInfo, List<object>> result = (rowInfo, list) =>
DataLoadSave\Binary\BinaryLoader.cs (4)
328var mtocEntries = new List<MetadataTableOfContentsEntry>(); 329var deadMtocEntries = new List<MetadataTableOfContentsEntry>(); 1098List<TableOfContentsEntry> aliveList = new List<TableOfContentsEntry>(); 1099List<TableOfContentsEntry> deadList = new List<TableOfContentsEntry>();
DataLoadSave\Binary\BinarySaver.cs (4)
272List<long> offsets = new List<long>(); 274var metadataInfos = new List<Tuple<string, IValueCodec, CompressionKind>>(); 411var blockLookups = new List<BlockLookup>[activeColumns.Length]; 441var lookups = blockLookups[block.ColumnIndex];
DataLoadSave\Binary\Codecs.cs (6)
316private readonly List<int> _boundaries; 667private List<short> _offsets; 668private List<long> _ticks; 830private readonly List<int> _lengths; 831private readonly List<int> _counts; 832private readonly List<int> _indices;
DataLoadSave\Database\DatabaseLoader.cs (1)
118var columns = new List<Column>();
DataLoadSave\Database\LoadColumnNameAttribute.cs (1)
23var sources = new List<string>(1);
DataLoadSave\DataOperationsCatalog.cs (1)
464var result = new List<TrainTestData>();
DataLoadSave\LegacyCompositeDataLoader.cs (4)
199var exes = new List<TransformEx>(); 216var newlyCreated = new List<TransformEx>(); 470var tagData = new List<KeyValuePair<string, string>>(); 471var acceptedIds = new List<int>();
DataLoadSave\MultiFileSource.cs (1)
47List<string> concatenated = new List<string>();
DataLoadSave\Text\LoadColumnAttribute.cs (1)
49internal List<TextLoader.Range> Sources;
DataLoadSave\Text\TextLoader.cs (5)
242var sortedRanges = Source.OrderBy(x => x.Min).ToList(); 726List<ReadOnlyMemory<char>> lines = null; 848var segsAll = new List<Segment>(); 858var segsNew = new List<Segment>(); 1586var columns = new List<Column>();
DataLoadSave\Text\TextLoaderCursor.cs (1)
209public static void GetSomeLines(IMultiStreamSource source, int count, bool readMultilines, char[] separators, char escapeChar, ref List<ReadOnlyMemory<char>> lines)
DataLoadSave\Text\TextLoaderParser.cs (1)
734public static void GetInputSize(TextLoader parent, List<ReadOnlyMemory<char>> lines, out int minSize, out int maxSize)
DataLoadSave\Text\TextSaver.cs (1)
398var activeCols = new List<DataViewSchema.Column>();
DataLoadSave\TransformerChain.cs (2)
167var xfs = new List<ITransformer>(); 168var scopes = new List<TransformerScope>();
DataLoadSave\Transpose\TransposeSaver.cs (1)
121List<long> offsets = new List<long>();
DataView\ArrayDataViewBuilder.cs (2)
21private readonly List<Column> _columns; 22private readonly List<string> _names;
DataView\CacheDataView.cs (1)
114List<int> columnsToDrop = null;
DataView\Transposer.cs (1)
150List<int> toSave = new List<int>();
DataView\TypedCursor.cs (2)
99var acceptedCols = new List<InternalSchemaDefinition.Column>(); 100var indices = new List<int>();
Deprecated\Instances\HeaderSchema.cs (2)
48var nameList = new List<ReadOnlyMemory<char>>(); 49var indexList = new List<int>();
Dirty\PredictionUtils.cs (2)
69List<string> res = null; 115List<char> sepChars = new List<char>();
EntryPoints\EntryPointNode.cs (11)
418private readonly Dictionary<string, List<ParameterBinding>> _inputBindingMap; 488_inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 558Dictionary<string, List<ParameterBinding>> inputBindingMap, 603var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 705var toModify = new List<ParameterBinding>(); 844public Dictionary<string, List<ParameterBinding>> InputBindingMap => _inputBindingMap; 849private object BuildParameterValue(List<ParameterBinding> bindings) 881public static List<EntryPointNode> ValidateNodes(IHostEnvironment env, RunContext context, JArray nodes, 888var result = new List<EntryPointNode>(nodes.Count); 935List<ParameterBinding> parameterBindings; 987private readonly List<EntryPointNode> _nodes;
EntryPoints\InputBuilder.cs (8)
65var fields = new List<FieldInfo>(); 66var attrs = new List<Attributes>(); 152var missing = new List<string>(); 217public JObject GetJsonObject(object instance, Dictionary<string, List<ParameterBinding>> inputBindingMap, Dictionary<ParameterBinding, VariableBinding> inputMap) 231if (inputBindingMap.TryGetValue(field.Name, out List<ParameterBinding> bindings)) 382result.Add(attr.Input.Name ?? field.Name, builder.GetJsonObject(instanceVal, new Dictionary<string, List<ParameterBinding>>(), 674var fields = new List<FieldInfo>(); 675var attrs = new List<TlcModule.OutputAttribute>();
EntryPoints\TransformModelImpl.cs (2)
255var mappers = new List<IRowToRowMapper>(); 256var actives = new List<IEnumerable<DataViewSchema.Column>>();
Evaluators\AnomalyDetectionEvaluator.cs (17)
131var stratCol = new List<uint>(); 132var stratVal = new List<ReadOnlyMemory<char>>(); 133var auc = new List<Double>(); 134var drAtK = new List<Double>(); 135var drAtP = new List<Double>(); 136var drAtNumAnomalies = new List<Double>(); 137var thresholdAtK = new List<Single>(); 138var thresholdAtP = new List<Single>(); 139var thresholdAtNumAnomalies = new List<Single>(); 140var numAnoms = new List<long>(); 142var scores = new List<Single>(); 143var labels = new List<Single>(); 144var names = new List<ReadOnlyMemory<char>>(); 145var topKStratCol = new List<uint>(); 146var topKStratVal = new List<ReadOnlyMemory<char>>(); 309private readonly List<Info> _examples; 763var colsToKeep = new List<string>();
Evaluators\AucAggregator.cs (5)
39private readonly List<T> _posExamples; 40private readonly List<T> _negExamples; 82protected abstract void AddExample(List<T> examples); 209protected override void AddExample(List<Single> examples) 344protected override void AddExample(List<AucInfo> examples)
Evaluators\BinaryClassifierEvaluator.cs (40)
220var stratCol = new List<uint>(); 221var stratVal = new List<ReadOnlyMemory<char>>(); 222var isWeighted = new List<bool>(); 223var auc = new List<Double>(); 224var accuracy = new List<Double>(); 225var posPrec = new List<Double>(); 226var posRecall = new List<Double>(); 227var negPrec = new List<Double>(); 228var negRecall = new List<Double>(); 229var logLoss = new List<Double>(); 230var logLossRed = new List<Double>(); 231var entropy = new List<Double>(); 232var f1 = new List<Double>(); 233var auprc = new List<Double>(); 235var counts = new List<Double[]>(); 236var weights = new List<Double[]>(); 237var confStratCol = new List<uint>(); 238var confStratVal = new List<ReadOnlyMemory<char>>(); 240var scores = new List<Single>(); 241var precision = new List<Double>(); 242var recall = new List<Double>(); 243var fpr = new List<Double>(); 244var weightedPrecision = new List<Double>(); 245var weightedRecall = new List<Double>(); 246var weightedFpr = new List<Double>(); 247var prStratCol = new List<uint>(); 248var prStratVal = new List<ReadOnlyMemory<char>>(); 539public readonly List<Single> Scores; 540public readonly List<Double> Precision; 541public readonly List<Double> Recall; 542public readonly List<Double> FalsePositiveRate; 543public readonly List<Double> WeightedPrecision; 544public readonly List<Double> WeightedRecall; 545public readonly List<Double> WeightedFalsePositiveRate; 858out List<BinaryPrecisionRecallDataPoint> prCurve) 878var prCurveResult = new List<BinaryPrecisionRecallDataPoint>(); 985out List<BinaryPrecisionRecallDataPoint> prCurve) 1004var prCurveResult = new List<BinaryPrecisionRecallDataPoint>(); 1374var colsToKeep = new List<string>(); 1453var prList = new List<IDataView>();
Evaluators\ClusteringEvaluator.cs (9)
70var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>(); 162var stratCol = new List<uint>(); 163var stratVal = new List<ReadOnlyMemory<char>>(); 164var isWeighted = new List<bool>(); 165var nmi = new List<Double>(); 166var avgMinScores = new List<Double>(); 167var dbi = new List<Double>(); 233private readonly List<Double> _numInstancesOfClass; 235private readonly List<Double[]> _confusionMatrix;
Evaluators\EvaluatorBase.cs (4)
112var list = new List<AggregatorDictionaryBase>(); 306var warnings = GetWarningsCore(); 316protected virtual List<string> GetWarningsCore() 318var warnings = new List<string>();
Evaluators\EvaluatorUtils.cs (19)
527var naIndices = new List<int>(); 795var overallList = new List<IDataView>(); 816var firstDvKeyWithNamesColumns = new List<string>(); 818var firstDvVectorKeyColumns = new List<string>(); 819var variableSizeVectorColumnNamesList = new List<string>(); 820var list = new List<IDataView>(); 824var hidden = new List<int>(); 991private static List<string> GetMetricNames(IChannel ch, DataViewSchema schema, DataViewRow row, Func<int, bool> ignoreCol, 1003var metricNames = new List<string>(); 1056var nonAveragedCols = new List<string>(); 1060var idvList = new List<IDataView>() { avgMetrics }; 1123List<string> metricNames; 1175private static void UpdateSums(int isWeightedCol, int stratCol, int stratVal, AggregatedMetric[] aggregated, bool hasStdev, List<string> metricNames, bool hasWeighted, bool hasStrats, int colCount, ValueGetter<double>[] getters, ValueGetter<VBuffer<double>>[] vBufferGetters, ref double metricVal, ref VBuffer<double> metricVals) 1215int numFolds, int stratCol, int stratVal, int isWeightedCol, int foldCol, bool hasStdev, List<string> nonAveragedCols = null) 1442var predictedLabelNames = GetPredictedLabelNames(in labelNames, labelIndexToConfIndexMap); 1448private static List<ReadOnlyMemory<char>> GetPredictedLabelNames(in VBuffer<ReadOnlyMemory<char>> labelNames, int[] labelIndexToConfIndexMap) 1450List<ReadOnlyMemory<char>> result = new List<ReadOnlyMemory<char>>(); 1541private static string GetOverallMetricsAsString(double[] sumMetrics, double[] sumSqMetrics, int numFolds, bool weighted, bool average, List<string> metricNames) 1703var nonAveragedCols = new List<string>();
Evaluators\MamlEvaluator.cs (2)
233var cols = new List<(string name, string source)>(); 234var colsToKeep = new List<string>();
Evaluators\Metrics\ConfusionMatrix.cs (2)
66List<ReadOnlyMemory<char>> labelNames, bool isSampled, bool isBinary) 88List<IReadOnlyList<double>> counts = new List<IReadOnlyList<double>>(NumberOfClasses);
Evaluators\MulticlassClassificationEvaluator.cs (17)
143var stratCol = new List<uint>(); 144var stratVal = new List<ReadOnlyMemory<char>>(); 145var isWeighted = new List<bool>(); 146var microAcc = new List<double>(); 147var macroAcc = new List<double>(); 148var logLoss = new List<double>(); 149var logLossRed = new List<double>(); 150var topKAcc = new List<double>(); 151var allTopK = new List<double[]>(); 152var perClassLogLoss = new List<double[]>(); 153var counts = new List<double[]>(); 154var weights = new List<double[]>(); 155var confStratCol = new List<uint>(); 156var confStratVal = new List<ReadOnlyMemory<char>>(); 515protected override List<string> GetWarningsCore() 517var warnings = base.GetWarningsCore(); 954var overallList = new List<IDataView>();
Evaluators\MultiOutputRegressionEvaluator.cs (10)
98var stratCol = new List<uint>(); 99var stratVal = new List<ReadOnlyMemory<char>>(); 100var isWeighted = new List<bool>(); 101var l1 = new List<Double>(); 102var l2 = new List<Double>(); 103var dist = new List<Double>(); 104var perLabelL1 = new List<Double[]>(); 105var perLabelL2 = new List<Double[]>(); 106var perLabelRms = new List<Double[]>(); 107var perLabelLoss = new List<Double[]>();
Evaluators\RankingEvaluator.cs (27)
84var labelGains = new List<Double>(); 161var stratCol = new List<uint>(); 162var stratVal = new List<ReadOnlyMemory<char>>(); 163var isWeighted = new List<bool>(); 164var ndcg = new List<Double[]>(); 165var dcg = new List<Double[]>(); 167var groupName = new List<ReadOnlyMemory<char>>(); 168var groupNdcg = new List<Double[]>(); 169var groupDcg = new List<Double[]>(); 170var groupMaxDcg = new List<Double[]>(); 171var groupStratCol = new List<uint>(); 172var groupStratVal = new List<ReadOnlyMemory<char>>(); 285private readonly List<Double[]> _groupNdcg; 286private readonly List<Double[]> _groupDcg; 287private readonly List<Double[]> _groupMaxDcg; 295private readonly List<short> _queryLabels; 296private readonly List<Single> _queryOutputs; 433public readonly List<ReadOnlyMemory<char>> GroupId; 830public readonly List<short> QueryLabels; 831public readonly List<Single> QueryOutputs; 926var gsList = new List<IDataView>(); 997List<short> queryLabels, List<Single> queryOutputs, Double[] groupMaxDcgCur) 1036List<short> queryLabels, List<Single> queryOutputs, Double[] groupDcgCur) 1056private static Comparison<int> GetCompareItems(List<short> queryLabels, List<Single> queryOutputs)
Evaluators\RegressionEvaluatorBase.cs (8)
53var stratCol = new List<uint>(); 54var stratVal = new List<ReadOnlyMemory<char>>(); 55var isWeighted = new List<bool>(); 56var l1 = new List<TMetrics>(); 57var l2 = new List<TMetrics>(); 58var rms = new List<TMetrics>(); 59var loss = new List<TMetrics>(); 60var rSquared = new List<TMetrics>();
Model\Onnx\OnnxContext.cs (1)
137public abstract List<long> RetrieveShapeOrNull(string variableName);
Model\Pfa\PfaContext.cs (5)
23private readonly List<CellBlock> _cellBlocks; 24private readonly List<VariableBlock> _letSetBlocks; 25private readonly List<FuncBlock> _funcBlocks; 158var sets = new List<KeyValuePair<string, JToken>>(); 171var lets = new List<KeyValuePair<string, JToken>>(locals.Length - sets.Count);
Model\Pfa\SavePfaCommand.cs (1)
187var toExport = new List<string>();
Prediction\Calibrator.cs (2)
1072private readonly List<float> _cMargins; 1073private readonly List<float> _ncMargins;
Prediction\CalibratorCatalog.cs (1)
107var annotations = new List<SchemaShape.Column>();
Training\TrainerUtils.cs (1)
428var nameMap = new List<(string outName, string inName)>();
Transforms\ColumnBindingsBase.cs (1)
687var indices = new List<int>();
Transforms\ColumnConcatenatingEstimator.cs (1)
130List<SchemaShape.Column> meta = new List<SchemaShape.Column>();
Transforms\ColumnConcatenatingTransformer.cs (4)
594List<int> allValues = new List<int>(); 885var toHide = new List<string>(); 886var toDeclare = new List<KeyValuePair<string, JToken>>(); 921List<KeyValuePair<string, long>> inputList = new List<KeyValuePair<string, long>>();
Transforms\ColumnSelecting.cs (4)
554var outputToInputMapping = new List<int>(); 566var columnDict = new Dictionary<string, List<int>>(); 573if (columnDict.TryGetValue(columnName, out List<int> columnList)) 587if (columnDict.TryGetValue(columnName, out List<int> columnList))
Transforms\FeatureContributionCalculationTransformer.cs (1)
352var featContributionMetadata = new List<SchemaShape.Column>();
Transforms\Hashing.cs (4)
197List<int> invertIinfos = null; 198List<int> invertHashMaxCounts = null; 199var sourceColumnsForInvertHash = new List<DataViewSchema.Column>(); 1963var metadata = new List<SchemaShape.Column>();
Transforms\KeyToValue.cs (2)
187var toHide = new List<string>(); 188var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\KeyToVector.cs (3)
635var toHide = new List<string>(); 636var toDeclare = new List<KeyValuePair<string, JToken>>(); 829var metadata = new List<SchemaShape.Column>();
Transforms\MetadataDispatcher.cs (2)
383private List<GetterInfo> _getters; 450var getters = _getters;
Transforms\NormalizeColumn.cs (4)
795protected readonly List<int> Labels; 880protected readonly List<TFloat> ColValues; 908protected readonly List<TFloat>[] ColValues; 920ColValues = new List<TFloat>[ColumnSlotCount];
Transforms\NormalizeColumnDbl.cs (8)
88public static void LoadModel(ModelLoadContext ctx, ref List<int> indicesShift, 668List<int> nz = null; 733List<int> nz = null; 1615var nz = new List<int>(); 1785var nz = new List<int>(); 1857private readonly List<TFloat> _values; 1901private readonly List<TFloat>[] _values; 1909_values = new List<TFloat>[cv];
Transforms\NormalizeColumnSng.cs (9)
88public static void LoadModel(ModelLoadContext ctx, ref List<int> indicesShift, 542protected readonly List<TType> Elements; 826List<int> nz = null; 890List<int> nz = null; 1778var nz = new List<int>(); 1948var nz = new List<int>(); 2020private readonly List<TFloat> _values; 2064private readonly List<TFloat>[] _values; 2072_values = new List<TFloat>[cv];
Transforms\Normalizer.cs (4)
361var newMetadataKinds = new List<SchemaShape.Column> { isNormalizedMeta }; 537var activeCols = new List<DataViewSchema.Column>(); 788var toHide = new List<string>(); 789var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\NormalizeUtils.cs (2)
146var columnsToNormalize = new List<NormalizeTransform.AffineColumn>(); 155var entryPoints = new List<EntryPointNode>();
Transforms\RowShufflingTransformer.cs (1)
191List<int> columnsToDrop = null;
Transforms\SlotsDroppingTransformer.cs (1)
585List<int> newCategoricalSlotRanges = new List<int>();
Transforms\TransformBase.cs (2)
578var toHide = new List<string>(); 579var toDeclare = new List<KeyValuePair<string, JToken>>();
Transforms\TypeConverting.cs (1)
634var metadata = new List<SchemaShape.Column>();
Transforms\ValueMapping.cs (6)
241var convertedValues = new List<ReadOnlyMemory<char>[]>(); 557List<TKey> keys = new List<TKey>(); 558List<TValue> values = new List<TValue>(); 997var cols = new List<(string outputColumnName, string inputColumnName)>() 1087var srcShape = ctx.RetrieveShapeOrNull(srcVariableName); 1108var srcShape = ctx.RetrieveShapeOrNull(srcVariableName);
Transforms\ValueToKeyMappingTransformer.cs (4)
790var srcShape = ctx.RetrieveShapeOrNull(srcVariableName); 803var srcShape = ctx.RetrieveShapeOrNull(srcVariableName); 928var toHide = new List<string>(); 929var toDeclare = new List<KeyValuePair<string, JToken>>();
Utilities\ApplyTransformUtils.cs (1)
83var transforms = new List<IDataTransform>();
Utilities\ModelFileUtils.cs (3)
241List<string> rolesList = new List<string>(); 242List<string> columnNamesList = new List<string>(); 287var list = new List<KeyValuePair<string, string>>();
Utilities\StreamUtils.cs (1)
71var matchList = new List<string>();
Microsoft.ML.DataView (4)
DataViewSchema.cs (2)
258private readonly List<(string Name, DataViewType Type, Delegate Getter, Annotations Annotations)> _items; 380private readonly List<(string Name, DataViewType Type, Annotations Annotations)> _items;
SchemaDebuggerProxy.cs (2)
39private static List<KeyValuePair<string, object>> BuildValues(DataViewSchema.Annotations annotations) 41var result = new List<KeyValuePair<string, object>>();
Microsoft.ML.Ensemble (22)
OutputCombiners\BaseStacking.cs (3)
123public void Train(List<FeatureSubsetModel<TOutput>> models, RoleMappedData data, IHostEnvironment env) 153TOutput>[] maps, List<FeatureSubsetModel<TOutput>> models) 170List<FeatureSubsetModel<TOutput>> models, Func<float, T> labelConvert)
OutputCombiners\IOutputCombiner.cs (1)
34void Train(List<FeatureSubsetModel<TOutput>> models, RoleMappedData data, IHostEnvironment env);
PipelineEnsemble.cs (1)
705var list = new List<KeyValuePair<string, object>>();
Selector\DiversityMeasure\BaseDisagreementDiversityMeasure.cs (2)
14public List<ModelDiversityMetric<TOutput>> CalculateDiversityMeasure(IList<FeatureSubsetModel<TOutput>> models, 20var diversityValues = new List<ModelDiversityMetric<TOutput>>();
Selector\IDiversityMeasure.cs (1)
16List<ModelDiversityMetric<TOutput>> CalculateDiversityMeasure(IList<FeatureSubsetModel<TOutput>> models,
Selector\SubModelSelector\BaseDiverseSelector.cs (3)
75List<ModelDiversityMetric<TOutput>> diversityValues = CalculateDiversityMeasure(models, _predictions); 87var selectedModels = new List<FeatureSubsetModel<TOutput>>(); 115public abstract List<ModelDiversityMetric<TOutput>> CalculateDiversityMeasure(IList<FeatureSubsetModel<TOutput>> models,
Selector\SubModelSelector\BestDiverseSelectorBinary.cs (1)
41public override List<ModelDiversityMetric<Single>> CalculateDiversityMeasure(IList<FeatureSubsetModel<float>> models,
Selector\SubModelSelector\BestDiverseSelectorMulticlass.cs (1)
42public override List<ModelDiversityMetric<VBuffer<Single>>> CalculateDiversityMeasure(IList<FeatureSubsetModel<VBuffer<float>>> models,
Selector\SubModelSelector\BestDiverseSelectorRegression.cs (1)
39public override List<ModelDiversityMetric<Single>> CalculateDiversityMeasure(IList<FeatureSubsetModel<float>> models,
Trainer\Binary\EnsembleTrainer.cs (1)
83private protected override IPredictor CreatePredictor(List<FeatureSubsetModel<float>> models)
Trainer\EnsembleTrainerBase.cs (5)
137var models = new List<FeatureSubsetModel<TOutput>>(); 175var modelsList = batchModels.Where(m => m != null).ToList(); 193private protected abstract IPredictor CreatePredictor(List<FeatureSubsetModel<TOutput>> models); 208private protected virtual void PrintMetrics(IChannel ch, List<FeatureSubsetModel<TOutput>> models) 221private protected static FeatureSubsetModel<TOutput>[] CreateModels<T>(List<FeatureSubsetModel<TOutput>> models) where T : IPredictorProducing<TOutput>
Trainer\Multiclass\MulticlassDataPartitionEnsembleTrainer.cs (1)
90private protected override IPredictor CreatePredictor(List<FeatureSubsetModel<VBuffer<float>>> models)
Trainer\Regression\RegressionEnsembleTrainer.cs (1)
78private protected override IPredictor CreatePredictor(List<FeatureSubsetModel<float>> models)
Microsoft.ML.EntryPoints (42)
CrossValidationMacro.cs (7)
168var subGraphNodes = new List<EntryPointNode>(); 179var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 205var graph = EntryPointNode.ValidateNodes(env, context, input.Nodes); 239inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 255inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 318var combineInputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 372var warnings = input.Warnings != null ? new List<IDataView>(input.Warnings) : new List<IDataView>();
FeatureCombiner.cs (9)
60var concatNames = new List<KeyValuePair<string, string>>(); 61List<TypeConvertingEstimator.ColumnOptions> cvt; 63var ktv = ConvertFeatures(feats.ToArray(), featNames, concatNames, ch, out cvt, out errCount); 87private static IDataView ApplyKeyToVec(List<KeyToVectorMappingEstimator.ColumnOptions> ktv, IDataView viewTrain, IHost host) 142private static IDataView ApplyConvert(List<TypeConvertingEstimator.ColumnOptions> cvt, IDataView viewTrain, IHostEnvironment env) 152private static List<KeyToVectorMappingEstimator.ColumnOptions> ConvertFeatures(IEnumerable<DataViewSchema.Column> feats, HashSet<string> featNames, List<KeyValuePair<string, string>> concatNames, IChannel ch, 153out List<TypeConvertingEstimator.ColumnOptions> cvt, out int errCount) 159List<KeyToVectorMappingEstimator.ColumnOptions> ktv = null;
JsonUtils\JsonManifestUtils.cs (3)
51var kinds = new List<Type>(); 157var inputs = new List<KeyValuePair<Double, JObject>>(); 285var outputs = new List<KeyValuePair<Double, JObject>>();
MacroUtils.cs (4)
120internal static void ConvertIPredictorModelsToArray(IHostEnvironment env, RunContext context, List<EntryPointNode> subGraphNodes, 124var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 143internal static void ConvertIdataViewsToArray(IHostEnvironment env, RunContext context, List<EntryPointNode> subGraphNodes, 147var inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
OneVersusAllMacro.cs (5)
51private static Var<PredictorModel> ProcessClass(IHostEnvironment env, List<EntryPointNode> macroNodes, int k, string label, Arguments input, EntryPointNode node) 60var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 75var subGraphNodes = EntryPointNode.ValidateNodes(env, subGraphRunContext, input.Nodes); 152var macroNodes = new List<EntryPointNode>(); 172var inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
PermutationFeatureImportance.cs (5)
108List<BinaryMetrics> metrics = new List<BinaryMetrics>(); 165List<MulticlassMetrics> metrics = new List<MulticlassMetrics>(); 224List<RegressionMetrics> metrics = new List<RegressionMetrics>(); 278List<RankingMetrics> metrics = new List<RankingMetrics>(); 313List<string> slotNames = new List<string>();
ScoreColumnSelector.cs (2)
31List<int> indices = new List<int>(); 84var copyCols = new List<(string name, string source)>();
TrainTestMacro.cs (7)
119var subGraphNodes = EntryPointNode.ValidateNodes(env, subGraphRunContext, input.Nodes, label: input.LabelColumn, 159Dictionary<string, List<ParameterBinding>> inputBindingMap; 168inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 191inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 225inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 248inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 270inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
Microsoft.ML.FastTree (118)
Dataset\Dataset.cs (1)
621List<int>[] listQueries = Enumerable.Range(0, numParts).Select(x => new List<int>()).ToArray(numParts);
Dataset\FeatureFlock.cs (9)
340List<int> features = learner.GetActiveFeatures(featureMin, featureLim).ToList(); 520List<int> features = learner.GetActiveFeatures(featureMin, featureLim).ToList(); 538List<VirtualBin> virtualBins = new List<VirtualBin>(); 539List<int> lowPopulationFeatures = new List<int>(); 668List<int> catFeatureIndices = new List<int>(); 716List<int> features = learner.GetActiveFeatures(featureMin, featureLim).ToList(); 734List<VirtualBin> virtualBins = new List<VirtualBin>(); 735List<int> lowPopulationFeatures = new List<int>(); 890List<int> catFeatureIndices = new List<int>();
Dataset\RepeatIntArray.cs (2)
29List<int> tempValueList = new List<int>(); 30List<byte> tempDeltaList = new List<byte>();
Dataset\SparseIntArray.cs (4)
50List<int> tempValueList = new List<int>(); 51List<byte> tempDeltaList = new List<byte>(); 126List<int> tempValueList = new List<int>(); 127List<byte> tempDeltaList = new List<byte>();
FastTree.cs (41)
75private protected List<Test> Tests; 1012var result = new List<KeyValuePair<int, int>>(); 1023List<int> features, int[] binnedValues, int[] lastOn, ValuesList[] instanceList, 1108List<int> features, int[] binnedValues, int[] lastOn, bool categorical) 1287private static int AddColumnIfNeeded(DataViewSchema.Column? info, List<int> toTranspose) 1363var toTranspose = new List<int>(); 1461List<FeatureFlockBase> flocks = new List<FeatureFlockBase>(); 1480List<int> pending = new List<int>(); 1691List<int> minSlots = new List<int>(); 1692List<int> maxSlots = new List<int>(); 1715List<ulong> qids = new List<ulong>(); 1716List<int> boundaries = new List<int>(); 1745private readonly List<short> _targetsList; 1746private readonly List<double> _actualTargets; 1747private readonly List<double> _weights; 1748private readonly List<int> _boundaries; 1914List<int> trivialFeatures = new List<int>(); 1944private NHotFeatureFlock CreateNHotFlock(IChannel ch, List<int> features) 1956var delta = new List<byte>(); 1957var values = new List<int>(); 2090List<int> pending = new List<int>(); 2192List<int> pending = new List<int>(); 2375private List<double> _dense; 2377private List<KeyValuePair<int, double>> _sparse; 2657var sp = values._sparse; 3047var nodesTreeids = new List<long>(); 3048var nodesIds = new List<long>(); 3049var nodesFeatureIds = new List<long>(); 3050var nodeModes = new List<string>(); 3051var nodesValues = new List<double>(); 3052var nodeHitrates = new List<long>(); 3053var missingValueTracksTrue = new List<bool>(); 3054var nodesTrueNodeIds = new List<long>(); 3055var nodesFalseNodeIds = new List<long>(); 3056var nodesBaseValues = new List<float>(); 3059var classTreeIds = new List<long>(); 3060var classNodeIds = new List<long>(); 3061var classIds = new List<long>(); 3062var classWeights = new List<double>(); 3167List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>(); 3272internal int GetLeaf(int treeId, in VBuffer<float> features, ref List<int> path)
GamModelParameters.cs (11)
483var internalNodeIndices = new List<int>(); 484var lteChild = new List<int>(); 485var gtChild = new List<int>(); 501List<int> internalNodeIndices, List<int> lteChild, List<int> gtChild, ref int internalNodeId) 602private readonly List<int>[][] _binDocsList; 644_binDocsList = new List<int>[numFeatures][]; 647var binDocList = new List<int>[_pred._binEffects[f].Length]; 652var labels = new List<float>(); 653var scores = new List<float>();
GamTrainer.cs (2)
545var newBinEffects = new List<double>(); 546var newBinBoundaries = new List<double>();
RandomForestClassification.cs (2)
271List<float> featuresList = new List<float>(); 272List<float> labelsList = new List<float>();
RandomForestRegression.cs (2)
404List<float> featuresList = new List<float>(); 405List<float> labelsList = new List<float>();
Training\DocumentPartitioning.cs (2)
68var perChunkDocumentLists = new List<int>[numChunks][]; 84List<int>[] perLeafDocumentLists = Enumerable.Range(0, tree.NumLeaves)
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (1)
95List<KeyValuePair<short, int>> labelFreqList = new List<KeyValuePair<short, int>>();
Training\OptimizationAlgorithms\GradientDescent.cs (1)
21private readonly List<double[]> _treeScores;
Training\OptimizationAlgorithms\OptimizationAlgorithm.cs (1)
32public List<ScoreTracker> TrackedScores;
Training\Test.cs (4)
409List<TestResult> result = new List<TestResult>() 452List<TestResult> result = new List<TestResult>() 567List<TestResult> result = new List<TestResult>(); 705List<TestResult> result = new List<TestResult>()
TreeEnsemble\InternalRegressionTree.cs (6)
379List<int> categoricalNodeIndices = new List<int>(); 809public int GetLeaf(in VBuffer<float> feat, ref List<int> path) 838private int GetLeafCore(ReadOnlySpan<float> nonBinnedInstance, List<int> path = null, int root = 0) 916private int GetLeafCore(ReadOnlySpan<int> featIndices, ReadOnlySpan<float> featValues, List<int> path = null, int root = 0) 1502List<int> path = new List<int>(); 1509private bool PathToLeaf(int currentNodeIndex, int leafIndex, List<int> path)
TreeEnsemble\InternalTreeEnsemble.cs (1)
26private readonly List<InternalRegressionTree> _trees;
TreeEnsembleFeaturizationTransformer.cs (1)
64var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
TreeEnsembleFeaturizer.cs (4)
187var delegates = new List<Delegate>(); 236private readonly List<int>[] _pathIds; 260_pathIds = new List<int>[_numTrees]; 322var nodes = _pathIds[i];
Utils\BufferPoolManager.cs (9)
30private static readonly ConcurrentDictionary<Type, SortedList<int, List<Array>>> _bufferPools = new ConcurrentDictionary<Type, SortedList<int, List<Array>>>(); 41SortedList<int, List<Array>> availableBuffers = null; 53List<Array> buffers = availableBuffers.FirstOrDefault(x => x.Value.Count > 0 && x.Key >= size && (x.Key - size) < (size * 0.2)).Value as List<Array>; 83SortedList<int, List<Array>> availableBuffers = null; 84List<Array> buffers = null; 112SortedList<int, List<Array>> availableBuffers = null; 153_bufferPools[type] = new SortedList<int, List<Array>>();
Utils\RegressionTreeBaseUtils.cs (14)
28var treeWeightsList = new List<double>(); 29var treeId = new List<int>(); 30var isLeaf = new List<ReadOnlyMemory<char>>(); 31var leftChild = new List<int>(); 32var rightChild = new List<int>(); 33var numericalSplitFeatureIndexes = new List<int>(); 34var numericalSplitThresholds = new List<float>(); 35var categoricalSplitFlags = new List<bool>(); 36var leafValues = new List<double>(); 37var splitGains = new List<double>(); 38var categoricalSplitFeatures = new List<VBuffer<int>>(); 39var categoricalCategoricalSplitFeatureRange = new List<VBuffer<int>>(); 118var leafSamples = new List<VBuffer<double>>(); 121var leafSampleWeights = new List<VBuffer<double>>();
Microsoft.ML.GenAI.Core (6)
Extension\ModuleExtension.cs (2)
215var layerSizeMap = model.GetSizeForEachDynamicLayerInBytes() 224var topK = layerSizeMap.Take(count).ToList();
Pipeline\CausalLMPipeline.cs (2)
228var chunks = new List<string>(); 253List<int[]> stopTokenIds = [[]];
Trainer\CausalLMDataset.cs (1)
19private readonly List<CausalLMModelInput> _data;
Trainer\CausalLMSupervisedFineTuningTrainer.cs (1)
43var losses = new List<float>();
Microsoft.ML.GenAI.Core.Tests (3)
CausalLMDatasetTest.cs (3)
82var inputs = new List<List<ChatMessage>> 91var outputs = new List<ChatMessage>
Microsoft.ML.GenAI.LLaMA (4)
LlamaTextCompletionService.cs (2)
65var stopTokenSequence = executionSettings?.ExtensionData?["stop_token_sequence"] as List<string> ?? new List<string>();
Module\LlamaModel.cs (2)
120var allHiddenStates = new List<Tensor>(); 121var allAttentions = new List<Tensor>();
Microsoft.ML.GenAI.LLaMA.Tests (1)
LLaMA3_1Tests.cs (1)
98var chatHistory = new List<IMessage>
Microsoft.ML.GenAI.Mistral (5)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
170var requiredParameterNames = new List<string>();
MistralCausalLMAgent.cs (2)
149var mistralToolCalls = JsonSerializer.Deserialize<List<MistralToolCall>>(json) ?? throw new InvalidOperationException("Failed to deserialize tool calls.");
MistralModel.cs (2)
114var allHiddenStates = new List<Tensor>(); 115var allAttentions = new List<Tensor>();
Microsoft.ML.GenAI.Mistral.Tests (2)
Mistral_7B_Instruct_V0_3Tests.cs (2)
44var chatHistory = new List<IMessage> 83var chatHistory = new List<IMessage>
Microsoft.ML.GenAI.Phi (4)
Module\Phi3Model.cs (2)
116var allHiddenStates = new List<Tensor>(); 117var allAttentions = new List<Tensor>();
Phi3\Phi3CausalLMTextGenerationService.cs (2)
35var stopTokenSequence = executionSettings?.ExtensionData?["stop_token_sequence"] as List<string> ?? new List<string>();
Microsoft.ML.GenAI.Samples (2)
Llama\SFT_Llama_3_2_1B.cs (2)
36var dataset = new List<Data> 105var trainChatHistory = new List<ChatMessage>
Microsoft.ML.IntegrationTests (2)
IntrospectiveTraining.cs (1)
402var modelComponents = model.ToList();
Prediction.cs (1)
62var transformers = new List<ITransformer>();
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
44var list = new List<string> { AttributeName, "Microsoft.ML.Internal.CpuMath.Core.BestFriendAttribute" };
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
324var tensorC = new List<float>();
Microsoft.ML.LightGbm (15)
LightGbmTrainerBase.cs (10)
564private static List<int> GetCategoricalBoundires(int[] categoricalFeatures, int rawNumCol) 566List<int> catBoundaries = new List<int> { 0 }; 597private static List<string> ConstructCategoricalFeatureMetaData(int[] categoricalFeatures, int rawNumCol, ref CategoricalMetaData catMetaData) 599List<int> catBoundaries = GetCategoricalBoundires(categoricalFeatures, rawNumCol); 605List<string> catIndices = new List<string>(); 659var catIndices = ConstructCategoricalFeatureMetaData(categoricalFeatures, rawNumCol, ref catMetaData); 770List<float> labelList = new List<float>(); 778List<float> weightList = hasWeights ? new List<float>() : null; 779List<ulong> cursorGroups = hasGroup ? new List<ulong>() : null; 808List<int> groupList = new List<int>();
WrappedLightGbmBooster.cs (2)
100var values = new List<double>(); 175List<int> cats = new List<int>();
WrappedLightGbmInterface.cs (1)
254List<string> res = new List<string>();
WrappedLightGbmTraining.cs (2)
42var metrics = new List<string>() { "Iteration" }; 43var units = new List<string>() { "iterations" };
Microsoft.ML.Maml (5)
HelpCommand.cs (5)
147var components = new List<Component>(); 198var components = new List<Component>(); 284var components = new List<Component>(); 304private void Serialize(List<Component> components) 424private void GenerateModule(List<Component> components)
Microsoft.ML.Mkl.Components (2)
SymSgdClassificationTrainer.cs (2)
355private readonly List<VeryLongArray> _storage; 535private readonly List<InstanceProperties> _instanceProperties;
Microsoft.ML.OneDal (2)
OneDalUtils.cs (2)
44internal static long GetTrainData(IChannel channel, FloatLabelCursor.Factory cursorFactory, ref List<float> featuresList, ref List<float> labelsList, int numberOfFeatures)
Microsoft.ML.OnnxConverter (24)
OnnxContextImpl.cs (7)
19private readonly List<OnnxCSharpToProtoWrapper.NodeProto> _nodes; 20private readonly List<OnnxUtils.ModelArgs> _inputs; 22private readonly List<OnnxCSharpToProtoWrapper.TensorProto> _initializers; 23private readonly List<OnnxUtils.ModelArgs> _intermediateValues; 24private readonly List<OnnxUtils.ModelArgs> _outputs; 243public void AddOutputVariable(DataViewType type, string variableName, List<long> dim = null) 276public override List<long> RetrieveShapeOrNull(string variableName)
OnnxUtils.cs (17)
22List<long> dims, List<bool> dimsParam) 51List<long> dims, List<bool> dimsParam) 275public readonly List<long> Dims; 276public readonly List<bool> DimParams; 278public ModelArgs(string name, TensorProto.Types.DataType dataType, List<long> dims, List<bool> dimParams) 287public static ModelProto MakeModel(List<NodeProto> nodes, string producerName, string name, 288string domain, string producerVersion, long modelVersion, int opSetVersion, List<ModelArgs> inputs, 289List<ModelArgs> outputs, List<ModelArgs> intermediateValues, List<TensorProto> initializers) 340List<long> dims = null, List<bool> dimsParams = null) 353List<long> dimsLocal = null; 354List<bool> dimsParamLocal = null;
Microsoft.ML.OnnxTransformer (34)
OnnxTransform.cs (19)
19using OnnxShape = System.Collections.Generic.List<int>; 455private static IEnumerable<int> AdjustDimensions(OnnxShape shape) 500private readonly OnnxShape[] _inputTensorShapes; 512_inputTensorShapes = new OnnxShape[_parent.Inputs.Length]; 520var shape = inputNodeInfo.Shape; 685private void UpdateCacheIfNeeded(long position, INamedOnnxValueGetter[] srcNamedOnnxValueGetters, List<string> activeOutputColNames, OnnxRuntimeOutputCacher outputCache) 689var inputNameOnnxValues = new List<NamedOnnxValue>(); 712var listActiveOutputColumns = activeOutputColNames.ToList(); 731var listActiveOutputColumns = activeOutputColNames.ToList(); 755var listActiveOutputColumns = activeOutputColNames.ToList(); 776OnnxShape[] onnxInputShapes) 795private static INamedOnnxValueGetter CreateNamedOnnxValueGetter(DataViewRow input, Type onnxType, int colIndex, OnnxShape onnxShape) 807/// Function needed by reflection in <see cref="CreateNamedOnnxValueGetter(DataViewRow, Type, int, OnnxShape)"/>. 809private static INamedOnnxValueGetter CreateNamedOnnxValueGetterCore<T>(DataViewRow input, int colIndex, OnnxShape onnxShape) 818private static INamedOnnxValueGetter CreateNamedOnnxValueGetterVec(DataViewRow input, Type onnxType, int colIndex, OnnxShape onnxShape) 830/// Function needed by reflection in <see cref="CreateNamedOnnxValueGetterVec(DataViewRow, Type, int, OnnxShape)"/>. 832private static INamedOnnxValueGetter CreateNamedOnnxValueGetterVecCore<T>(DataViewRow input, int colIndex, OnnxShape onnxShape) 868private readonly OnnxShape _tensorShape; 876public NamedOnnxValueGetterVec(DataViewRow input, int colIndex, OnnxShape tensorShape)
OnnxTypeParser.cs (1)
198List<int> dims = new List<int>();
OnnxUtils.cs (14)
16using OnnxShape = System.Collections.Generic.List<int>; 37public List<string> InputNames { get; } 41public List<string> OutputNames { get; } 45public List<string> InitializerNames { get; } 116public OnnxShape Shape { get; } 132public OnnxVariableInfo(string name, OnnxShape shape, Type typeInOnnxRuntime, DataViewType mlnetType, Func<NamedOnnxValue, object> caster) 279var inputInfos = GetOnnxVariablesFromMetadata(_session.InputMetadata, shapeDictionary, inputTypePool, null); 280var outputInfos = GetOnnxVariablesFromMetadata(_session.OutputMetadata, shapeDictionary, outputTypePool, casterPool); 281var overrideableInitializers = GetOnnxVariablesFromMetadata(_session.OverridableInitializerMetadata, shapeDictionary, inputTypePool, null); 296private List<OnnxVariableInfo> GetOnnxVariablesFromMetadata(IReadOnlyDictionary<string, NodeMetadata> nodeMetadata, 301var onnxVariableInfos = new List<OnnxVariableInfo>(); 449public IDisposableReadOnlyCollection<DisposableNamedOnnxValue> Run(List<NamedOnnxValue> inputNamedOnnxValues, List<string> outputColumns) 554public static NamedOnnxValue CreateNamedOnnxValue<T>(string name, ReadOnlySpan<T> data, OnnxShape shape)
Microsoft.ML.OnnxTransformerTest (12)
DnnImageFeaturizerTest.cs (3)
75var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 76var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 77var sizeData = new List<TestDataSize> { new TestDataSize() { data_0 = new float[2] } };
OnnxTransformTests.cs (9)
143var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 144var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 145var sizeData = new List<TestDataSize> { new TestDataSize() { data_0 = new float[2] } }; 651var transformedDataPoints = ML.Data.CreateEnumerable<ImageDataPoint>(onnx, false).ToList(); 719var transformedDataPoints = ML.Data.CreateEnumerable<ZipMapInt64Output>(transformedDataView, false).ToList(); 772var transformedDataPoints = ML.Data.CreateEnumerable<ZipMapStringOutput>(transformedDataView, false).ToList(); 864var transformedDataPoints = ML.Data.CreateEnumerable<OnnxMapOutput>(transformedDataView, false).ToList(); 930var transformedDataPoints = ML.Data.CreateEnumerable<PredictionWithCustomShape>(transformedDataView, false).ToList(); 1094var transformedDataPoints = ML.Data.CreateEnumerable<PredictionWithCustomShape>(transformedDataView, false).ToList();
Microsoft.ML.Parquet (14)
ParquetLoader.cs (2)
261List<Column> columnsLoaded = new List<Column>(); 270private void FlattenFields(Field field, ref List<Column> cols, bool isRepeatable)
PartitionedFileLoader.cs (4)
465if (!TryGetNextPathAndValues(out string path, out string relativePath, out List<string> values)) 504private bool TryGetNextPathAndValues(out string path, out string relativePath, out List<string> values) 556private void UpdateColumnValues(string path, List<string> values) 722private bool TryParseValuesFromPath(string path, out List<string> results)
PartitionedPathParser.cs (8)
285if (!TryParseNames(path, out List<string> names)) 306if (!TryParseValues(path, out List<string> values)) 319public bool TryParseNames(string path, out List<string> names) 321return TryParseNamesAndValues(path, out names, out List<string> values); 324public bool TryParseValues(string path, out List<string> values) 326return TryParseNamesAndValues(path, out List<string> names, out values); 329public bool TryParseNamesAndValues(string path, out List<string> names, out List<string> values)
Microsoft.ML.PerformanceTests (5)
FeaturizeTextBench.cs (3)
33var columns = new List<TextLoader.Column>(); 53var textColumns = new List<string>(); 59var featurizers = new List<TextFeaturizingEstimator>();
TextLoaderBench.cs (2)
25private List<TextLoader.Column> _columns; 60var getters = new List<ValueGetter<ReadOnlyMemory<char>>>();
Microsoft.ML.Predictor.Tests (15)
ResultProcessor\TestResultProcessor.cs (6)
39List<string> result = new List<string>(); 61List<string> testFiles = new List<string>(); 78List<string> testFiles = new List<string>(); 95List<string> testFiles = new List<string>(); 112List<string> testFiles = new List<string>(); 129List<string> testFiles = new List<string>();
TestPredictors.cs (8)
463var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 479var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 516var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 527var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 980var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.adultOnlyCat, TestDatasets.adult }; 999var regressionDatasets = new List<TestDataset> { TestDatasets.autosSample }; 1019var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerGroupId }; 1037var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe };
TestTransposer.cs (1)
124List<int> indices = new List<int>();
Microsoft.ML.Recommender (3)
MatrixFactorizationPredictor.cs (1)
471var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
MatrixFactorizationTrainer.cs (1)
529var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
SafeTrainingAndModelBuffer.cs (1)
267List<MFNode> nodes = new List<MFNode>();
Microsoft.ML.ResultProcessor (29)
ResultProcessor.cs (29)
35public List<ExperimentItemResult> PredictorList; 291public List<string> GetSettings() 293List<string> settings = new List<string>(); 380private static bool ValidateMamlOutput(string filename, string[] rawLines, out List<string> lines) 401List<string> lines; 422List<string> fileTimeMemoryResults; 423List<string> fileResults; 566List<string> lines; 573List<string> fileTimeMemoryResults; 574List<string> fileResults; 595private static ExperimentItemResult? GetMetrics(string filename, ResultProcessorArguments cmd, List<string> lines, List<string> fileTimeMemoryResults, List<string> fileResults) 698List<string> lines; 702List<string> fileTimeMemoryResults; 703List<string> fileResults; 710private static bool TryParseFileToLines(string filename, out List<string> lines, string[] rawLines = null) 733private static bool TryParseMamlCommand(List<string> lines, out string commandline) 749private static bool TryParseLines(List<string> lines, ResultProcessorArguments cmd, out List<string> fileResults, out List<string> fileTimeMemoryResult) 788private static Dictionary<string, ResultMetric> ParseResultLines(List<string> fileResults, ResultProcessorArguments cmd, out Double metricValue, string metricName) 847List<ExperimentItemResult?> results = new List<ExperimentItemResult?>(); 862public static PredictorResult GetPredictorObject(List<PredictorResult> tempPredictorList, string learnerName, out bool newLearner) 908var foldLines = new List<string>(lines.Where((s, i1) => i1 >= startLineIdx && i1 < endLineIdx)); 928List<int> allFoldIndices = new List<int>(foldResults.Keys); 1040List<PredictorResult> predictorResultsList = new List<PredictorResult>(); 1060List<string> m = new List<string>(); 1067List<KeyValuePair<string, string>> srcFiles = new List<KeyValuePair<string, string>>();
Microsoft.ML.Samples (171)
Dynamic\DataOperations\FilterRowsByKeyColumnFraction.cs (1)
20var samples = new List<DataPoint>()
Dynamic\DataOperations\FilterRowsByMissingValues.cs (1)
20var samples = new List<DataPoint>()
Dynamic\DataOperations\LoadingText.cs (1)
16var dataFiles = new List<string>();
Dynamic\DataOperations\SaveAndLoadFromBinary.cs (1)
19var dataPoints = new List<DataPoint>()
Dynamic\DataOperations\SaveAndLoadFromText.cs (1)
19var dataPoints = new List<DataPoint>()
Dynamic\ModelOperations\SaveLoadModel.cs (1)
17var data = new List<Data>()
Dynamic\ModelOperations\SaveLoadModelFile.cs (1)
17var data = new List<Data>()
Dynamic\NgramExtraction.cs (1)
17var data = new List<SampleSentimentData>() {
Dynamic\TextTransform.cs (1)
19var data = new List<SampleSentimentData>() {
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSample.cs (2)
20var samples = new List<DataPoint>() 47var results = mlContext.Data.CreateEnumerable<Result>(transformed,
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSampleWithOptions.cs (2)
20var samples = new List<DataPoint>() 55var results = mlContext.Data.CreateEnumerable<Result>(transformed,
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (1)
53var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (1)
50var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FastForest.cs (1)
45var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (1)
57var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FastTree.cs (1)
45var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (1)
57var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachine.cs (1)
146var data = new List<DataPoint>();
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachineWithOptions.cs (1)
157var data = new List<DataPoint>();
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (1)
51var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LdSvm.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (1)
51var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LightGbm.cs (1)
45var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (1)
56var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (1)
51var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (1)
50var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (1)
62var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (1)
50var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (1)
64var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (1)
54var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (1)
42var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (1)
51var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (1)
45var predictions = mlContext.Data
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (1)
54var predictions = mlContext.Data
Dynamic\Trainers\Clustering\KMeans.cs (1)
42var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
50var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
47var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
55var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
50var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
60var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
53var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
48var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
48var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
55var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
64var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
55var predictions = mlContext.Data
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
64var predictions = mlContext.Data
Dynamic\Trainers\Ranking\FastTree.cs (1)
48var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (1)
62var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Ranking\LightGbm.cs (1)
48var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (1)
63var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Recommendation\MatrixFactorization.cs (4)
27var dataPoints = GenerateMatrix(); 46var predictions = mlContext.Data 90private static List<MatrixElement> GenerateMatrix() 92var dataMatrix = new List<MatrixElement>();
Dynamic\Trainers\Recommendation\MatrixFactorizationWithOptions.cs (4)
28var dataPoints = GenerateMatrix(); 70var predictions = mlContext.Data 114private static List<MatrixElement> GenerateMatrix() 116var dataMatrix = new List<MatrixElement>();
Dynamic\Trainers\Recommendation\OneClassMatrixFactorizationWithOptions.cs (5)
32GetOneClassMatrix(out List<MatrixElement> data, 33out List<MatrixElement> testData); 77var results = mlContext.Data.CreateEnumerable<MatrixElement>(prediction, 165out List<MatrixElement> observedMatrix, 166out List<MatrixElement> fullMatrix)
Dynamic\Trainers\Regression\FastForest.cs (1)
46var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
59var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTree.cs (1)
46var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
46var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
61var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
62var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\Gam.cs (1)
46var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
57var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
44var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
58var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LightGbm.cs (1)
47var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
66var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
43var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
58var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
43var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
55var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\Sdca.cs (1)
43var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
59var predictions = mlContext.Data.CreateEnumerable<Prediction>(
Dynamic\Transforms\ApplyONNXModelWithInMemoryImages.cs (1)
58var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\Concatenate.cs (1)
17var samples = new List<InputData>()
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (3)
23var examples = GenerateRandomDataPoints(1000, 10); 87private static List<DataPoint> GenerateRandomDataPoints(int count, 90var examples = new List<DataPoint>();
Dynamic\Transforms\CopyColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\CustomMapping.cs (1)
20var samples = new List<InputData>
Dynamic\Transforms\CustomMappingSaveAndLoad.cs (1)
23var samples = new List<InputData>
Dynamic\Transforms\CustomMappingWithInMemoryCustomType.cs (1)
25var tribe = new List<AlienHero>() { new AlienHero("ML.NET", 2, 1000,
Dynamic\Transforms\DropColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\Expression.cs (1)
17var samples = new List<InputData>()
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCount.cs (1)
83var data = new List<InputData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCountMultiColumn.cs (1)
83var data = new List<InputData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformation.cs (1)
77var data = new List<NumericData>
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformationMultiColumn.cs (1)
86var data = new List<NumericData>
Dynamic\Transforms\IndicateMissingValues.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\IndicateMissingValuesMultiColumn.cs (1)
17var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeBinning.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeGlobalContrast.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLogMeanVariance.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeLpNorm.cs (1)
17var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMeanVariance.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMinMax.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (1)
16var samples = new List<DataPoint>()
Dynamic\Transforms\NormalizeSupervisedBinning.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
84var data = new List<SampleVectorOfNumbersData>();
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
83var data = new List<SampleVectorOfNumbersData>();
Dynamic\Transforms\ReplaceMissingValues.cs (1)
19var samples = new List<DataPoint>()
Dynamic\Transforms\ReplaceMissingValuesMultiColumn.cs (1)
18var samples = new List<DataPoint>()
Dynamic\Transforms\SelectColumns.cs (1)
16var samples = new List<InputData>()
Dynamic\Transforms\StatefulCustomMapping.cs (1)
16var samples = new List<InputData>
Dynamic\Transforms\Text\ApplyCustomWordEmbedding.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\ApplyWordEmbedding.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\FeaturizeText.cs (1)
16var samples = new List<TextData>()
Dynamic\Transforms\Text\FeaturizeTextWithOptions.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\LatentDirichletAllocation.cs (1)
16var samples = new List<TextData>()
Dynamic\Transforms\Text\NormalizeText.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
17var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
18var samples = new List<TextData>()
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
18var samples = new List<TextData>()
Dynamic\Transforms\Text\RemoveDefaultStopWords.cs (1)
21var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\RemoveStopWords.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\TokenizeIntoCharactersAsKeys.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\Text\TokenizeIntoWords.cs (1)
20var emptySamples = new List<TextData>();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnn.cs (1)
22var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnnBatchPrediction.cs (1)
18var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectChangePointBySsa.cs (1)
28var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaStream.cs (1)
28var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectEntireAnomalyBySrCnn.cs (1)
19var data = new List<TimeSeriesData>();
Dynamic\Transforms\TimeSeries\DetectIidChangePoint.cs (1)
27var data = new List<TimeSeriesData>(Size)
Dynamic\Transforms\TimeSeries\DetectIidChangePointBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>(Size)
Dynamic\Transforms\TimeSeries\DetectIidSpike.cs (1)
23var data = new List<TimeSeriesData>(Size + 1)
Dynamic\Transforms\TimeSeries\DetectIidSpikeBatchPrediction.cs (1)
21var data = new List<TimeSeriesData>(Size + 1)
Dynamic\Transforms\TimeSeries\DetectSpikeBySsa.cs (1)
26var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\DetectSpikeBySsaBatchPrediction.cs (1)
25var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\Forecasting.cs (1)
20var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\ForecastingWithConfidenceInterval.cs (1)
20var data = new List<TimeSeriesData>()
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (2)
38private static List<TimeSeriesPoint> GetPoints() 40List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (3)
24List<RootCause> prediction = mlContext.AnomalyDetection.LocalizeRootCauses(data); 44private static List<TimeSeriesPoint> GetTimeSeriesPoints() 46List<TimeSeriesPoint> TimeSeriesPoints = new List<TimeSeriesPoint>();
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 82var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 83var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 84var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 80var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 83var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(100).ToList(); 83var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (2)
23var dataPoints = GenerateRandomDataPoints(dataPointCount).ToList(); 73var transformedDataPoints = mlContext.Data.CreateEnumerable<
Dynamic\WithOnFitDelegate.cs (1)
19var samples = new List<DataPoint>()
Microsoft.ML.Samples.OneDal (3)
Program.cs (3)
18List<IDataView> dataList = new List<IDataView>(); 23List<TextLoader.Column> columns = new List<TextLoader.Column>(); 51List<string> featuresList = new List<string>();
Microsoft.ML.SamplesUtils (6)
SamplesDatasetUtils.cs (6)
247var data = new List<BinaryLabelFloatFeatureVectorFloatWeightSample>(); 294var data = new List<FloatLabelFloatFeatureVectorUlongGroupIdSample>(); 296var intermediate = GenerateFloatLabelFloatFeatureVectorSamples(exampleCount, naRate).ToList(); 310var data = new List<FloatLabelFloatFeatureVectorSample>(); 362public static List<MulticlassClassificationExample> GenerateRandomMulticlassClassificationExamples(int count) 364var examples = new List<MulticlassClassificationExample>();
Microsoft.ML.SearchSpace (3)
Converter\ParameterConverter.cs (1)
42var list = new List<object>();
Option\NestOption.cs (1)
67var res = new List<double>();
SearchSpace.cs (1)
135var res = new List<double>();
Microsoft.ML.StandardTrainers (25)
FactorizationMachine\FactorizationMachineTrainer.cs (3)
372var columns = new List<DataViewSchema.Column>(featureColumns); 463var metricNames = new List<string>() { "Training-loss" }; 593var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (1)
423var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>();
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (1)
70private readonly List<int> _inputColumnIndexes;
LdSvm\LdSvmTrainer.cs (1)
511var examples = new List<LabelFeatures>();
Optimizer\DifferentiableFunction.cs (2)
204List<int> indices = new List<int>(dirCount); 205List<float> values = new List<float>(dirCount);
Optimizer\LearningRateScheduler.cs (1)
78List<LearningRateSchedulerItem> lrs = new List<LearningRateSchedulerItem>();
Optimizer\Optimizer.cs (1)
191private readonly List<float> _roList;
Standard\LinearModelParameters.cs (2)
541List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>(); 686List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
Standard\LinearPredictorUtils.cs (3)
196List<KeyValuePair<string, object>> weightValues = new List<KeyValuePair<string, object>>(); 214var list = new List<KeyValuePair<string, Single>>() { new KeyValuePair<string, Single>("(Bias)", bias) }; 229in VBuffer<float> weights, float bias, RoleMappedSchema schema, List<KeyValuePair<string, object>> results)
Standard\LogisticRegression\LbfgsPredictorBase.cs (3)
492var labelsList = new List<int>(); 493var featuresList = new List<float>(); 494var weightsList = new List<float>();
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
836List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
Standard\ModelStatistics.cs (5)
170internal virtual void SaveSummaryInKeyValuePairs(DataViewSchema.Column featureColumn, int paramCountCap, List<KeyValuePair<string, object>> resultCollection) 404private List<CoefficientStatistics> GetUnorderedCoefficientStatistics() 413List<CoefficientStatistics> result = new List<CoefficientStatistics>(ParametersCount - 1); 440var featureNames = new List<string>(); 531internal override void SaveSummaryInKeyValuePairs(DataViewSchema.Column featureColumn, int paramCountCap, List<KeyValuePair<string, object>> resultCollection)
Standard\SdcaBinary.cs (1)
1779var outCols = new List<SchemaShape.Column>()
Microsoft.ML.Sweeper (31)
Algorithms\Grid.cs (3)
70var prevParamSets = previousRuns?.Select(r => r.ParameterSet).ToList() ?? new List<ParameterSet>(); 160var prevParamSets = (previousRuns != null) 191var pset = new List<IParameterValue>();
Algorithms\KdoSweeper.cs (4)
86private readonly List<ParameterSet> _randomParamSets; 180List<ParameterSet> children = new List<ParameterSet>(); 205List<int> numericParamIndices = new List<int>(); 206List<double> numericParamValues = new List<double>();
Algorithms\NelderMead.cs (7)
75private readonly List<KeyValuePair<ParameterSet, float[]>> _pendingSweeps; 85private readonly List<IValueGenerator> _sweepParameters; 350var results = FindRunResult(previousRuns); 361private List<KeyValuePair<IRunResult, float[]>> FindRunResult(IEnumerable<IRunResult> previousRuns) 363var result = new List<KeyValuePair<IRunResult, float[]>>(); 435var result = new List<float>(); 449var parameters = new List<IParameterValue>();
Algorithms\SmacSweeper.cs (6)
98List<IRunResult> viableRuns = new List<IRunResult>(); 270List<ParameterSet> neighbors = new List<ParameterSet>(); 336List<double[]> datasetLeafValues = new List<double[]>(); 340List<double> leafValues = new List<double>(); 396List<ParameterSet> outSet = new List<ParameterSet>(); 423List<IParameterValue> parameters = new List<IParameterValue>();
Algorithms\SweeperProbabilityUtils.cs (3)
63List<double> rvs = new List<double>(); 164var result = new List<float>(); 216List<IParameterValue> parameters = new List<IParameterValue>();
AsyncSweeper.cs (2)
71private readonly List<IRunResult> _results; 182private readonly List<IRunResult> _results;
ConfigRunner.cs (1)
60protected readonly List<int> RunNums;
ISweeper.cs (1)
120var parameterNames = _parameterValues.Keys.ToList();
Parameters.cs (2)
254var result = new List<IParameterValue>(); 386var result = new List<IParameterValue>();
SweepCommand.cs (1)
84var runs = new List<IRunResult>();
SynthConfigRunner.cs (1)
44List<IRunResult> results = new List<IRunResult>();
Microsoft.ML.Sweeper.Tests (10)
TestSweeper.cs (10)
145var paramSets = new List<ParameterSet>(); 203var tasks = new List<Task<ParameterSetWithId>>(); 254var paramSets = new List<ParameterSet>(); 272var results = new List<KeyValuePair<int, IRunResult>>(); 304var paramSets = new List<ParameterSet>(); 356var paramSets = new List<ParameterSet>(); 403private void CheckAsyncSweeperResult(List<ParameterSet> paramSets) 563var results = new List<IRunResult>(); 611var results = new List<IRunResult>(); 659var results = new List<IRunResult>();
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
470var modelFilePaths = new List<string>
Microsoft.ML.TensorFlow.Tests (8)
TensorFlowEstimatorTests.cs (3)
78var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[4], B = new float[4] } }; 79var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { a = new string[4], b = new string[4] } }; 80var sizeData = new List<TestDataSize> { new TestDataSize() { a = new float[2], b = new float[2] } };
TensorflowTests.cs (5)
260private List<ShapeData> GetShapeData() 286var data = GetShapeData(); 381var data = new List<TypesData>( 1001List<string> logMessages = new List<string>(); 1114var dataObjects = InMemoryImage.LoadFromTsv(_mlContext, dataFile, imageFolder);
Microsoft.ML.TestFramework (15)
BaseTestBaseline.cs (3)
126var configurationDirs = new List<string>(); 448List<T> suffixList = new List<T>(); 449List<T> seqList = new List<T>();
BaseTestPredictorsMaml.cs (8)
98List<string> args = new List<string>(); 175List<string> files = new List<string>(); 227List<int> toRemove = new List<int>(); 290List<string> args = new List<string>(); 326List<string> settings = new List<string>(); 448private static void AddIfNotEmpty(List<string> list, OutputPath val, string name) 457private static void AddIfNotEmpty(List<string> list, object val, string name) 469List<string> optionsList = new List<string>();
DataPipe\TestDataPipeBase.cs (3)
383List<int> savable = new List<int>(); 530List<int> savable = new List<int>(); 576List<int> savable = new List<int>();
TestCommandBase.cs (1)
384List<string> args = new List<string>();
Microsoft.ML.TestFrameworkCommon (2)
Utility\PathResolver.cs (2)
70List<string> allRIDs = new List<string>(); 134private bool AddFallbacks(List<string> fallbacks, string rid, IReadOnlyList<RuntimeFallbacks> allFallbacks)
Microsoft.ML.Tests (140)
AnomalyDetectionTests.cs (5)
138var samples = new List<DataPoint>() 160var results = mlContext.Data.CreateEnumerable<Result>(transformed, reuseRowObject: false).ToList(); 182var samples = new List<DataPoint>() 206var results = mlContext.Data.CreateEnumerable<Result>(transformed, reuseRowObject: false).ToList(); 267var samples = new List<DataPoint>()
CollectionsDataViewTest.cs (8)
109var data = new List<ConversionSimpleClass> 227var data = new List<ClassWithConstField>() 253var data = new List<ClassWithMixOfFieldsAndProperties>() 307var data = new List<ClassWithPrivateFieldsAndProperties>() 337var data = new List<ClassWithInheritedProperties>() 372var data = new List<ClassWithArrays> 424var data = new List<ClassWithArrayProperties> 475var data = new List<ClassWithGetter>()
ExpressionLanguageTests\ExpressionLanguageTests.cs (4)
167List<Error> errors; 168List<int> lineMap; 399private void DumpErrors(IndentedTextWriter wrt, List<int> lineMap, int lineMin, 400string fileName, string phase, List<Error> errors)
ImagesTests.cs (4)
233var images = new List<ImageDataPoint>() { new ImageDataPoint(10, 10, red: 0, green: 0, blue: 255), new ImageDataPoint(10, 10, red: 255, green: 0, blue: 0) }; 1126public static List<InMemoryImage> LoadFromTsv(MLContext mlContext, string tsvPath, string imageFolder) 1128var inMemoryImages = new List<InMemoryImage>(); 1180var dataObjects = InMemoryImage.LoadFromTsv(mlContext, dataFile, imageFolder);
OnnxConversionTest.cs (16)
185List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 223List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 276private (IDataView, List<IEstimator<ITransformer>>, EstimatorChain<NormalizingTransformer>) GetEstimatorsForOnnxConversionTests() 281List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 415var samples = new List<DataPoint>() 1154var samples = new List<DataPoint>() 1243List<IEstimator<ITransformer>> pipelines = new List<IEstimator<ITransformer>>(); 1439var samples = new List<TextData>() 1466var samples = new List<TextData>() 1526var mlNetSlotNames = mlNetSlots.DenseValues().ToList(); 1527var onnxSlotNames = onnxSlots.DenseValues().ToList(); 1546var samples = new List<TextData>() 1570var samples = new List<TextData>() 1649List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 1934List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>() 1976List<IEstimator<ITransformer>> estimators = new List<IEstimator<ITransformer>>()
OnnxSequenceTypeWithAttributesTest.cs (1)
66var keys = new List<string>(onnxOut.Keys);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
77var samples = new List<DataPoint>()
Scenarios\Api\TestApi.cs (14)
152var data = ReadBreastCancerExamples(); 197var data = ReadBreastCancerExamples(); 266private List<BreastCancerExample> ReadBreastCancerExamples() 356Func<IDataView, List<string>> getWorkclass = (IDataView view) => 368var simpleTestWorkClass = getWorkclass(simpleSplit.TestSet); 370var simpleWithSeedTestWorkClass = getWorkclass(splitWithSeed.TestSet); 378var stratTrainWorkclass = getWorkclass(stratSplit.TrainSet); 379var stratTestWorkClass = getWorkclass(stratSplit.TestSet); 381var uniqueTrain = stratTrainWorkclass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList(); 383var uniqueTest = stratTestWorkClass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList(); 390var stratTrainWithSeedWorkclass = getWorkclass(stratSeed.TrainSet); 391var stratTestWithSeedWorkClass = getWorkclass(stratSeed.TestSet); 393var uniqueSeedTrain = stratTrainWithSeedWorkclass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList(); 395var uniqueSeedTest = stratTestWithSeedWorkClass.GroupBy(x => x.ToString()).Select(x => x.First()).ToList();
Scenarios\WordBagTest.cs (2)
17var samples = new List<TextData>() 54var samples = new List<TextData>()
TextLoaderTests.cs (3)
1315var ids = new List<string>(); 1316var descriptions = new List<string>(); 1317var animals = new List<string>();
TrainerEstimators\FAFMEstimator.cs (1)
125var data = new List<FfmExample>();
TrainerEstimators\MatrixFactorizationTests.cs (20)
206var dataMatrix = new List<MatrixElement>(); 254var testMatrix = new List<MatrixElementForScore>() { 317var dataMatrix = new List<MatrixElementZeroBased>(); 370var invalidTestMatrix = new List<MatrixElementZeroBasedForScore>() 437var dataMatrix = new List<OneClassMatrixElementZeroBased>(); 481var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 491var testResults = mlContext.Data.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList(); 553var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 563var testResults = mlContext.Data.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList(); 582var dataMatrix = new List<OneClassMatrixElementZeroBased>(); 622var testDataMatrix = new List<OneClassMatrixElementZeroBasedForScore>(); 633var testResults = mlContext.Data.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList(); 650GetOneClassMatrix(out List<OneClassMatrixElement> data, out List<OneClassMatrixElement> testData); 681var results = mlContext.Data.CreateEnumerable<OneClassMatrixElement>(prediction, false).ToList(); 735private static void GetOneClassMatrix(out List<OneClassMatrixElement> observedMatrix, out List<OneClassMatrixElement> fullMatrix) 764var dataMatrix = new List<MatrixElementZeroBased256By256>(); 803var testMatrix = new List<MatrixElementZeroBasedForScore256By256>(); 815var predictions = mlContext.Data.CreateEnumerable<MatrixElementZeroBasedForScore256By256>(transformedTestData, false).ToList();
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (18)
21var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(1000).ToList(); 128var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 162List<int> path = null; 180var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 213List<int> path = null; 234var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 277List<int> path = null; 302var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 353var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 392var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 431var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorSamples(dataPointCount).ToList(); 469var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorSamples(dataPointCount).ToList(); 507var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorSamples(dataPointCount).ToList(); 545var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorUlongGroupIdSamples(dataPointCount).ToList(); 583var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorSamples(dataPointCount).ToList(); 638var data = SamplesUtils.DatasetUtils.GenerateFloatLabelFloatFeatureVectorSamples(dataPointCount).ToList(); 712var data = SamplesUtils.DatasetUtils.GenerateBinaryLabelFloatFeatureVectorFloatWeightSamples(dataPointCount).ToList(); 770var data = SamplesUtils.DatasetUtils.GenerateRandomMulticlassClassificationExamples(dataPointCount).ToList();
TrainerEstimators\TreeEstimators.cs (8)
438private void LightGbmHelper(bool useSoftmax, double sigmoid, out string modelString, out List<GbmExample> mlnetPredictions, out double[] lgbmRawScores, out double[] lgbmProbabilities, bool unbalancedSets = false) 446var dataList = new List<GbmExample>(); 554LightGbmHelper(useSoftmax: false, sigmoid: sigmoidScale, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0); 589LightGbmHelper(useSoftmax: false, sigmoid: sigmoidScale, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0); 628LightGbmHelper(useSoftmax: false, sigmoid: firstSigmoidScale, out string firstModelString, out List<GbmExample> firstMlnetPredictions, out double[] firstNativeResult1, out double[] firstNativeResult0); 629LightGbmHelper(useSoftmax: false, sigmoid: secondSigmoidScale, out string secondModelString, out List<GbmExample> secondMlnetPredictions, out double[] secondNativeResult1, out double[] secondNativeResult0); 661LightGbmHelper(useSoftmax: true, sigmoid: .5, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0); 690LightGbmHelper(useSoftmax: true, sigmoid: .5, out string modelString, out List<GbmExample> mlnetPredictions, out double[] nativeResult1, out double[] nativeResult0, unbalancedSets: true);
Transformers\GroupUngroup.cs (4)
44var data = new List<GroupExample> { 52var grouped = ML.Data.CreateEnumerable<UngroupExample>(groupTransform, false).ToList(); 83var data = new List<UngroupExample> { 89var ungrouped = ML.Data.CreateEnumerable<GroupExample>(ungroupTransform, false).ToList();
Transformers\NormalizerTests.cs (5)
897var samples = new List<DataPointOne>() 938var samples = new List<DataPointVec>() 1074var numbers = GenerateRandomFloats(numberOfItems); 1109static List<float> GenerateRandomFloats(int num, int min = int.MinValue, int max = int.MaxValue, int seed = 0) 1113var list = new List<float>(num);
Transformers\ValueMappingTests.cs (22)
55var keys = new List<string>() { "foo", "bar", "test", "wahoo" }; 56var values = new List<int>() { 1, 2, 3, 4 }; 93var keys = new List<ReadOnlyMemory<char>>() { "foo".AsMemory(), "bar".AsMemory(), "test".AsMemory(), "wahoo".AsMemory() }; 94var values = new List<int>() { 1, 2, 3, 4 }; 139var keyValuePairs = new List<KeyValuePair<string, string>>() { 175List<int[]> values = new List<int[]>() { 264List<string[]> values = new List<string[]>() { 307var keys = new List<string>() { "foo", "bar", "test", "wahoo" }; 308var values = new List<int>() { 1, 2, 3, 4 }; 345var keys = new List<string>() { "foo", "foo" }; 346var values = new List<int>() { 1, 2 }; 364var keyValuePairs = new List<KeyValuePair<string, int>>() { 396var keyValuePairs = new List<KeyValuePair<string, string>>() { 430var keyValuePairs = new List<KeyValuePair<string, uint>>() { 471var keyValuePairs = new List<KeyValuePair<string, ulong>>() { 512var keyValuePairs = new List<KeyValuePair<string, string>>() { 552var keyValuePairs = new List<KeyValuePair<string, string>>() { 594var keyValuePairs = new List<KeyValuePair<string, int>>() { 613var keyValuePairs = new List<KeyValuePair<string, int[]>>() { 633var keyValuePairs = new List<KeyValuePair<ReadOnlyMemory<char>, int>>() { 687var keyValuePairs = new List<KeyValuePair<string, int>>() { 784var features = ML.Data.CreateEnumerable<TransformedData>(transformedData, reuseRowObject: false).ToList();
Transformers\WordBagTransformerTests.cs (4)
29var samples = new List<TextData>() 58var samples = new List<TextData>() 87var samplesDefault = new List<TextData>() 96var samplesNonDefault = new List<TextData>()
Microsoft.ML.TimeSeries (93)
AdaptiveSingularSpectrumSequenceModeler.cs (2)
868var sortedComponents = new List<SignalComponent>(); 869var trendComponents = new List<int>();
Deseasonality.cs (1)
64private List<double>[] _subSeries;
ExtensionsCatalog.cs (2)
338List<RootCause> causes = LocalizeRootCauses(catalog, src, beta, rootCauseThreshold); 365public static List<RootCause> LocalizeRootCauses(this AnomalyDetectionCatalog catalog, RootCauseLocalizationInput src, double beta = 0.5, double rootCauseThreshold = 0.95)
IidChangePointDetector.cs (1)
270var metadata = new List<SchemaShape.Column>() {
IidSpikeDetector.cs (1)
246var metadata = new List<SchemaShape.Column>() {
PolynomialUtils.cs (3)
147public List<decimal> Coefficients; 288var factors = new List<PolynomialFactor>(); 384var coeff = factors.ElementAt(0).Coefficients;
PredictionEngine.cs (3)
160internal DataViewRow GetStatefulRows(DataViewRow input, IRowToRowMapper mapper, IEnumerable<DataViewSchema.Column> activeColumns, List<StatefulRow> rows) 207internal Action<PingerArgument> CreatePinger(List<StatefulRow> rows) 220List<StatefulRow> rows = new List<StatefulRow>();
RootCauseAnalyzer.cs (28)
21private readonly List<RootCause> _preparedCauses; 36public List<RootCause> AnalyzePossibleCauses() 45private List<RootCause> AnalyzeOneLayer(RootCauseLocalizationInput src) 69protected List<TimeSeriesPoint> GetTotalPointsForAnomalyTimestamp(RootCauseLocalizationInput src) 101List<TimeSeriesPoint> totalPoints = GetTotalPointsForAnomalyTimestamp(src); 128protected Dictionary<string, Object> GetSubDim(Dictionary<string, Object> dimension, List<string> keyList) 133private void LocalizeRootCausesByDimension(PointTree anomalyTree, PointTree pointTree, Dictionary<string, Object> anomalyDimension, List<string> aggDims) 158List<TimeSeriesPoint> children = null; 200protected List<TimeSeriesPoint> GetTopAnomaly(List<TimeSeriesPoint> anomalyPoints, TimeSeriesPoint root, List<TimeSeriesPoint> totalPoints, string dimKey, bool isLeaveslevel = false) 222List<TimeSeriesPoint> causeList = new List<TimeSeriesPoint>(); 247protected IEnumerable<BestDimension> SelectOrderedDimension(List<TimeSeriesPoint> totalPoints, List<TimeSeriesPoint> anomalyPoints, List<string> aggDim) 290private IEnumerable<BestDimension> SelectOrderedDimensions(Dictionary<string, List<TimeSeriesPoint>> pointChildren, Dictionary<string, List<TimeSeriesPoint>> anomalyChildren, List<string> aggDim) 356List<RootCauseScore> scoreList = new List<RootCauseScore>(); 442private void BuildTree(PointTree tree, List<string> aggDims, TimeSeriesPoint point, Object aggSymbol) 480List<KeyValuePair<BestDimension, double>> valueMapAsList = valueMap.ToList(); 481List<BestDimension> ordered = new List<BestDimension>(); 706private void UpdateDistribution(Dictionary<string, int> distribution, List<TimeSeriesPoint> points, string dimKey) 743internal List<string> DetailDims { get; set; } 744internal List<string> AggDims { get; set; } 756internal Dictionary<string, List<TimeSeriesPoint>> ChildrenNodes; 757internal List<TimeSeriesPoint> Leaves; 762ChildrenNodes = new Dictionary<string, List<TimeSeriesPoint>>();
RootCauseLocalizationType.cs (8)
16public List<RootCauseItem> Items { get; set; } 49public List<MetricSlice> Slices { get; set; } 61public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, AggregateType aggregateType, Object aggregateSymbol) 70public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, Object aggregateSymbol) 131public List<string> Path; 147public RootCauseItem(Dictionary<string, Object> rootCause, List<string> path) 178public List<TimeSeriesPoint> Points { get; set; } 180public MetricSlice(DateTime timeStamp, List<TimeSeriesPoint> points)
SeasonalityDetector.cs (1)
71var valueCache = seasonalityWindowSize == -1 ? new List<double>() : new List<double>(seasonalityWindowSize);
SrCnnAnomalyDetectionBase.cs (15)
175List<Single> backAddList = BackAdd(data); 184List<Single> magList = new List<Single>(); 191List<Single> magLogList = magList.Select(x => x != 0 ? MathUtils.Log(x) : 0).ToList(); 192List<Single> filteredLogList = AverageFilter(magLogList, Parent.AvergingWindowSize); 193List<Single> spectralList = new List<Single>(); 221List<Single> ifftMagList = new List<Single>(); 226List<Single> filteredIfftMagList = AverageFilter(ifftMagList, Parent.JudgementWindowSize); 242private List<Single> BackAdd(FixedSizeQueue<Single> data) 244List<Single> predictArray = new List<Single>(); 250List<Single> backAddArray = new List<Single>(); 259private Single PredictNext(List<Single> data) 270private List<Single> AverageFilter(List<Single> data, int n) 273List<Single> cumSumList = data.Select(x => cumsum += x).ToList(); 274List<Single> cumSumShift = new List<Single>(cumSumList);
SRCNNAnomalyDetector.cs (1)
278var metadata = new List<SchemaShape.Column>() {
SrCnnEntireAnomalyDetector.cs (8)
267private List<double> _previousBatch; 268private List<double> _batch; 330var tempBatch = _previousBatch; 753List<Tuple<int, int>> segments = new List<Tuple<int, int>>(); 782List<int> anomalyIndex = new List<int>(); 887List<int> anomalyIdxList = new List<int>(); 908List<Tuple<int, double>> fitValues = new List<Tuple<int, double>>(); 939private double CalculateInterpolate(List<Tuple<int, double>> values, int idx)
SsaChangePointDetector.cs (1)
306var metadata = new List<SchemaShape.Column>() {
SsaSpikeDetector.cs (1)
285var metadata = new List<SchemaShape.Column>() {
STL\FastLoess.cs (1)
82public List<double> Y { get; }
STL\InnerStl.cs (15)
19private List<double>[] _cycleSubSeries; 20private List<double>[] _smoothedSubseries; 203List<double> virtualXValues = VirtualXValuesProvider.GetXValues(_cycleSubSeries[i].Count); 238List<double> c1 = MovingAverage(c, np); 239List<double> c2 = MovingAverage(c1, np); 240List<double> c3 = MovingAverage(c2, 3); 241List<double> virtualC3XValues = VirtualXValuesProvider.GetXValues(c3.Count); 266List<double> virtualDeseasonSeries = VirtualXValuesProvider.GetXValues(deseasonSeries.Length); 281private static readonly Dictionary<int, List<double>> _xValuesPool; 285_xValuesPool = new Dictionary<int, List<double>>(); 293internal static List<double> GetXValues(int length) 297List<double> xValues; 301var newXValues = new List<double>(length); 311private static List<double> MovingAverage(IReadOnlyList<double> s, int length) 313List<double> results = new List<double>(s.Count);
STL\MathsTools.cs (1)
17public static double QuickMedian(List<double> values)
Microsoft.ML.TimeSeries.Tests (49)
TimeSeriesDirectApi.cs (26)
112List<Data> data = new List<Data>(size); 134List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08, 157List<Data> data = new List<Data>(); 187List<double> expectedValues = new List<double>() { 0, -3.31410551071167, 0.5, 5.12000000000001E-08, 0, 1.570083498954773, 5.2001145245395008E-07, 213List<Data> data = new List<Data>(); 289List<Data> data = new List<Data>(); 359List<Data> data = new List<Data>(); 394List<float> expectedForecast = new List<float>() { 0.191492021f, 2.53994060f, 5.26454258f, 7.37313938f }; 395List<float> minCnf = new List<float>() { -3.9741986f, -2.36872721f, 0.09407699f, 2.18899393f }; 396List<float> maxCnf = new List<float>() { 4.3571825f, 7.4486084f, 10.435008f, 12.5572853f }; 422List<Data> data = new List<Data>(); 546var data = new List<TimeSeriesData>(); 590List<TimeSeriesDataDouble> data; 680List<TimeSeriesDataDouble> data; 727List<TimeSeriesDataDouble> data; 782List<TimeSeriesDataDouble> data; 841List<TimeSeriesDataDouble> data; 898List<TimeSeriesDataDouble> data; 988List<RootCause> preparedCauses = ml.AnomalyDetection.LocalizeRootCauses(rootCauseLocalizationInput); 1031List<MetricSlice> slice = new List<MetricSlice> 1083private static List<TimeSeriesPoint> GetRootCauseLocalizationPoints(object aggSymbol) 1085List<TimeSeriesPoint> points = new List<TimeSeriesPoint>(); 1181List<MetricSlice> slice = new List<MetricSlice> 1215List<MetricSlice> slice = new List<MetricSlice> 1227private static List<TimeSeriesPoint> GetRootCauseLocalizationPointsForIntDimValue() 1229List<TimeSeriesPoint> points = new List<TimeSeriesPoint>();
TimeSeriesEstimatorTests.cs (15)
53List<Data> data = new List<Data>(); 66var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 67var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 85List<Data> data = new List<Data>(); 102var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 103var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 123List<Data> data = new List<Data>(); 136var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 137var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 154List<Data> data = new List<Data>(); 163var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 164var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } }; 181List<Data> data = new List<Data>(); 190var xyData = new List<TestDataXY> { new TestDataXY() { A = new float[InputSize] } }; 191var stringData = new List<TestDataDifferentType> { new TestDataDifferentType() { data_0 = new string[InputSize] } };
TimeSeriesSimpleApiTests.cs (8)
43var data = new List<Data>(size); 62List<double> expectedValues = new List<double>() { 0, 5, 0.5, 5.1200000000000114E-08, 0, 5, 0.4999999995, 5.1200000046080209E-08, 0, 5, 0.4999999995, 5.1200000092160303E-08, 85var data = new List<Data>(); 105List<double> expectedValues = new List<double>() { 0, -3.31410598754883, 0.5, 5.12000000000001E-08, 0, 1.5700820684432983, 5.2001145245395008E-07, 128List<Data> data = new List<Data>(size); 145var expectedValues = new List<double[]>() { 180List<Data> data = new List<Data>(size); 197var expectedValues = new List<double[]>() {
Microsoft.ML.Tokenizers (75)
Model\BertTokenizer.cs (5)
245if (ids is not List<int> list) 267if (ids is not List<int> list) 297List<int> ids; 409List<int> mask; 565List<int> typeIds;
Model\BPETokenizer.cs (5)
449List<EncodedToken> tokens = new(); 508List<int> ids = new(); 1301internal void WordToTokens(ref Word word, List<EncodedToken> tokens, int offset, ReadOnlySpan<int> mapping) => word.ToTokens(VocabReverse, tokens, offset, mapping); 1303internal void EncodeWithCache(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset, ref PriorityQueue<Merge>? priorityQueue) 1412private int EncodeToIdsWithCache(ReadOnlySpan<char> text, List<int>? accumulatedIds, int maxTokens, out int charsConsumed, ref PriorityQueue<Merge>? priorityQueue)
Model\CodeGenTokenizer.cs (16)
34private readonly StringSpanOrdinalKeyCache<List<EncodedToken>> _cache; 130_cache = new StringSpanOrdinalKeyCache<List<EncodedToken>>(); 379List<EncodedToken> tokens = new(); 425private void EncodeInternal(string? text, scoped ReadOnlySpan<char> textSpan, List<EncodedToken> tokens, bool addPrefixSpace, int offset, PriorityQueue<SymbolPair> agenda) 439if (_cache.TryGetValue(textSpan, out List<EncodedToken>? hit)) 464List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda); 618List<int> ids = new(); 1013private int EncodeToIdsResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int charsConsumed) 1069private int EncodeToIdsFromEndResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int textIndex) 1123if (_cache.TryGetValue(textSpan, out List<EncodedToken>? hit)) 1147List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda); 1187if (_cache.TryGetValue(textSpan, out List<EncodedToken>? hit)) 1211List<EncodedToken> result = EncodeToTokens(token.Slice(0, encodedLength), mapping.Slice(0, encodedLength), textSpan, agenda); 1571private static void AppendTokenWithOffsetAdjusting(IReadOnlyList<EncodedToken> tokensToAdd, List<EncodedToken> tokens, int offset, bool addPrefixSpace) 1598private List<EncodedToken> EncodeToTokens(Span<char> text, Span<int> mapping, ReadOnlySpan<char> originalText, PriorityQueue<SymbolPair> agenda) 1659List<EncodedToken> result = new List<EncodedToken>(text.Length);
Model\EnglishRobertaTokenizer.cs (22)
27private readonly StringSpanOrdinalKeyCache<List<EncodedToken>> _cache; 169_cache = new StringSpanOrdinalKeyCache<List<EncodedToken>>(); 334List<EncodedToken> tokens = new(); 386if (_cache.TryGetValue(text, out List<EncodedToken>? hit)) 393List<EncodedToken> result = EncodeToTokens(token.AsSpan().Slice(0, newTokenIndex), indexMapping); 433List<int> ids = new(); 588private int EncodeToIdsResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int charsConsumed) 625private int EncodeToIdsFromEndResult(List<EncodedToken> tokens, IList<int>? accumulatedIds, int maxTokens, int fullTextLength, out int textIndex) 670if (_cache.TryGetValue(text, out List<EncodedToken>? hit)) 699List<EncodedToken> result = EncodeToTokens(token.AsSpan().Slice(0, newTokenIndex), indexMapping); 715if (_cache.TryGetValue(text, out List<EncodedToken>? hit)) 744List<EncodedToken> result = EncodeToTokens(token.AsSpan().Slice(0, newTokenIndex), indexMapping); 836List<int> list = new List<int>(ids.Count); 858List<int> list = new List<int>(ids.Count); 880List<int> list = new List<int>(ranks.Count); 921List<EncodedToken> list = new List<EncodedToken>(tokens.Count); 948private List<EncodedToken> EncodeToTokens(Span<char> token, Span<int> indexMapping) 964List<string> word = new(token.Length); 975var newWord = new List<string>(); 1036List<string> temp = word; 1045var tokens = new List<EncodedToken>(word.Count); 1106private readonly List<(int Id, int OccurrenceScore)> _symbols;
Model\SentencePieceBpeModel.cs (4)
91List<EncodedToken> tokens = new(); 105private void EncodeWithSpecialTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, List<EncodedToken> tokens) 150private void EncodeInternal(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, List<EncodedToken> tokens) 343List<int> ids = new();
Model\SentencePieceUnigramModel.cs (10)
109List<EncodedToken> tokens = new(); 212List<EncodedToken> tokens, 264List<EncodedToken> tokens, 330List<EncodedToken> tokens, 412private void FallbackToByteEncoding(ReadOnlySpan<char> normalizationSpan, List<EncodedToken> tokens, int insertionStartPosition) 570List<int>? ids = new(); 635List<int> ids, 707List<int> ids, 726private void FallbackToByteEncoding(List<int> ids, ReadOnlySpan<byte> normalizationSpan, (int IdsIndex, int Utf8Index, int Utf8Length)[] unknownTokensTracking, int unknownTokensCount) 763List<int> ids,
Model\TiktokenTokenizer.cs (3)
276List<EncodedToken> tokens = new(); 299private void EncodeToTokens(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset) 386List<int> ids = new();
Model\Word.cs (1)
292public void ToTokens(SortedDictionary<int, string> vocabReverse, List<EncodedToken> tokens, int offset, ReadOnlySpan<int> mapping)
Model\WordPieceTokenizer.cs (4)
290List<EncodedToken> tokens = new(); 313private void EncodeToTokens(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset) 413List<int> ids = new(); 446private int EncodeToIds(ReadOnlySpan<char> text, List<int>? accumulatedIds, out int charsConsumed, int maxTokenCount = int.MaxValue)
PreTokenizer\CompositePreTokenizer.cs (1)
54var list = new List<PreTokenizer>(specialTokens.Count + 1);
Utils\DoubleArrayTrie.cs (1)
26private readonly List<uint> _units = new();
Utils\IListExtensions.cs (1)
13if (list is List<T> concreteList)
Utils\PriorityQueue.cs (1)
13private readonly List<T> _data;
Utils\TokenizerExtensions.cs (1)
18var keys = source.ToList(); // avoid enumerate twice
Microsoft.ML.Tokenizers.Data.Tests (2)
src\Common\tests\RetryHelper.cs (2)
39var exceptions = new List<Exception>(); 89var exceptions = new List<Exception>();
Microsoft.ML.Tokenizers.Tests (22)
BpeTests.cs (1)
958List<PreTokenizer> preTokenizers = new List<PreTokenizer>();
CodeGenTests.cs (2)
552var idList = new List<int>(expectedIds); 554var tokensList = new List<string>(expectedTokens);
NormalizerTests.cs (1)
96List<int> mapping = new List<int>();
PreTokenizerTests.cs (1)
85List<(int Offset, int Length)> splits = new();
src\Common\tests\RetryHelper.cs (2)
39var exceptions = new List<Exception>(); 89var exceptions = new List<Exception>();
src\Microsoft.ML.Tokenizers\Utils\DoubleArrayTrie.cs (1)
26private readonly List<uint> _units = new();
TokenizerTests.cs (1)
107var tokens = new List<EncodedToken>();
UnigramTests.cs (13)
289List<EncodedToken> writableTokens = tokens.ToList(); 388List<int> ints = result is List<int> list ? list : result.ToList(); 396ints = result is List<int> ? (List<int>)result : result.ToList(); 404ints = result is List<int> ? (List<int>)result : result.ToList(); 413ints = result is List<int> ? (List<int>)result : result.ToList(); 432ints = result is List<int> ? (List<int>)result : result.ToList(); 448ints = result is List<int> ? (List<int>)result : result.ToList();
Microsoft.ML.TorchSharp (119)
AutoFormerV2\Anchors.cs (1)
141List<Tensor> tensors = new List<Tensor> { shiftXExpand, shiftYExpand, shiftXExpand, shiftYExpand };
AutoFormerV2\Attention.cs (4)
46public Attention(int inChannels, int keyChannels, int numHeads = 8, int attnRatio = 4, List<int> windowResolution = null) 63var points = new List<List<int>>(); 74var idxs = new List<int>();
AutoFormerV2\AutoformerV2.cs (5)
37public AutoFormerV2(int numClasses, List<int> embedChannels, List<int> depths, List<int> numHeads, Device device = null) 80var xList = this.backbone.forward(imgBatch); 81var fpnOutput = this.neck.forward(xList);
AutoFormerV2\AutoFormerV2Backbone.cs (12)
17public class AutoFormerV2Backbone : Module<Tensor, List<Tensor>> 20private readonly List<int> outIndices; 21private readonly List<int> numFeatures; 47List<int> embedChannels = null, 48List<int> depths = null, 49List<int> numHeads = null, 50List<int> windowSizes = null, 54List<int> outIndices = null, 57List<int> outChannels = null) 72var dpr = new List<double>(); 112public override List<Tensor> forward(Tensor imgBatch) 121var outs = new List<Tensor>();
AutoFormerV2\AutoFormerV2Block.cs (1)
57List<int> windowResolution = new List<int>() { windowSize, windowSize };
AutoFormerV2\BasicLayer.cs (2)
69List<int> hSlicesStartAndEnd = new List<int>() { 0, hp - this.windowSize, hp - this.windowSize, hp - this.shiftSize, hp - this.shiftSize, hp }; 70List<int> wSlicesStartAndEnd = new List<int>() { 0, wp - this.windowSize, wp - this.windowSize, wp - this.shiftSize, wp - this.shiftSize, wp };
AutoFormerV2\FPN.cs (7)
17public class FPN : Module<List<Tensor>, List<Tensor>> 32public FPN(List<int> inChannels = null, int outChannel = 256, int numOuts = 5) 66public override List<Tensor> forward(List<Tensor> inputs) 71var laterals = new List<Tensor>(); 83var outs = new List<Tensor>();
AutoFormerV2\ObjectDetectionMetrics.cs (35)
60private static List<List<ObjectLabel>> ThresholdFilter(List<List<ObjectLabel>> objectLabelListIn, float scoreThreshold) 64List<List<ObjectLabel>> objectLabelListOut = new(); 92var labels = labelSet.ToList(); 94var expectedData = ActualIdvToObjLabl(dataView, labelCol, actualBoundingBoxColumn); 95var actualData = PredIdvToObjLabl(dataView, predictedLabelCol, predictedBoundingBoxColumn, scoreCol); 99Dictionary<string, List<Tuple<float, float>>> iouDic = new(); 118private static float AP50(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes, float threshold = 0.5f) 136private static float AP50_95(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes) 179private static void ImageIoU(List<ObjectLabel> objectLabel, List<ObjectLabel> annotation, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes) 182List<Tuple<int, int, float>> tupleList = new(); // annotaIndex, detectIndex, iouScore 230private static void GenerateIOUDic(List<List<ObjectLabel>> annotations, List<List<ObjectLabel>> objectLabelList, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes) 235var objectLabels = objectLabelList?[annoIndex]; 236var annotation = annotations[annoIndex]; 241foreach (var detectionList in iouDic.Values) 247private static float LabelAP(List<Tuple<float, float>> detectionList, int groundTruthBoxesNum, float threshold = 0.5f) 293private static List<List<ObjectLabel>> PredIdvToObjLabl( 299var data = new List<List<ObjectLabel>>(); 316var l = new List<ObjectLabel>(); 339private static List<List<ObjectLabel>> ActualIdvToObjLabl( 344var data = new List<List<ObjectLabel>>(); 358var l = new List<ObjectLabel>();
AutoFormerV2\ObjectDetectionTrainer.cs (6)
84public List<int> Steps = new List<int> { 6 }; 377List<Tensor> part = new List<Tensor>(); 446var metadata = new List<SchemaShape.Column>(); 450var scoreMetadata = new List<SchemaShape.Column>(); 551var scoreMetadata = new List<SchemaShape.Column>(); 911var part = new List<Tensor>();
AutoFormerV2\RetinaHead.cs (8)
16public class RetinaHead : Module<List<Tensor>, (List<Tensor>, List<Tensor>)> 65public override (List<Tensor>, List<Tensor>) forward(List<Tensor> inputs) 69var clsOutputs = new List<Tensor>(); 70var regOutputs = new List<Tensor>();
Loss\FocalLoss.cs (2)
40var classificationLosses = new List<Tensor>(); 41var regressionLosses = new List<Tensor>();
NasBert\Models\NasBertEncoder.cs (5)
25private readonly List<int> DiscreteArches; 26private readonly List<int> HiddenSizePerBlock; 123var hiddenSizePerBlockExtend = HiddenSizePerBlock.Append(HiddenSizePerBlock[^1]).ToList(); 254private List<int> CheckBlockHiddenSize(int blockPerLayer) 256var hiddenSizePerBlock = new List<int>();
NasBert\NasBertTrainer.cs (6)
113public List<double> LearningRate = new List<double> { 1e-4 }; 238private protected override torch.Tensor PrepareBatchTensor(ref List<Tensor> inputTensors, Device device) 268private protected override void RunModelAndBackPropagate(ref List<Tensor> inputTensors, ref Tensor targetsTensor) 328var metadata = new List<SchemaShape.Column>(); 343var metadata = new List<SchemaShape.Column>(); 587List<int> newList = new List<int>(tokenizer.EncodeToConverted(sentence1.ToString()));
NasBert\NerTrainer.cs (2)
129var tl = target.DenseValues().Select(item => (long)item).ToList(); 136private protected override torch.Tensor CreateTargetsTensor(ref List<TargetType> targets, torch.Device device)
NasBert\SentenceSimilarityTrainer.cs (1)
128private protected override torch.Tensor CreateTargetsTensor(ref List<float> targets, torch.Device device)
NasBert\TextClassificationTrainer.cs (1)
129private protected override torch.Tensor CreateTargetsTensor(ref List<long> targets, torch.Device device)
Roberta\QATrainer.cs (8)
282List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 283List<Tensor> targetTensors = new List<Tensor>(Parent.Option.BatchSize); 308ref List<Tensor> inputTensors, 309ref List<Tensor> targetTensors, 384private torch.Tensor PrepareBatchTensor(ref List<Tensor> inputTensors, Device device, int padIndex) 420var targetList = new List<int> { mapping[answerIndex] + 2 + questionTokenId.Count, mapping[answerEnd] + 2 + questionTokenId.Count }; 510var scoreMetadata = new List<SchemaShape.Column>(); 596var scoreMetadata = new List<SchemaShape.Column>
TorchSharpBaseTrainer.cs (11)
206List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 207List<TTargetsCol> targets = new List<TTargetsCol>(Parent.Option.BatchSize); 227ref List<Tensor> inputTensors, 228ref List<TTargetsCol> targets, 278List<Tensor> inputTensors = new List<Tensor>(Parent.Option.BatchSize); 279List<TTargetsCol> targets = new List<TTargetsCol>(Parent.Option.BatchSize); 302ref List<Tensor> inputTensors, 303ref List<TTargetsCol> targets) 345private protected abstract void RunModelAndBackPropagate(ref List<Tensor> inputTensorm, ref Tensor targetsTensor); 348private protected abstract torch.Tensor PrepareBatchTensor(ref List<Tensor> inputTensors, Device device); 354private protected abstract Tensor CreateTargetsTensor(ref List<TTargetsCol> targets, Device device);
Utils\ImageUtils.cs (1)
119var keep = new List<long>();
Utils\MetricUtils.cs (1)
36var topK = new List<(int start, int end, float score)>();
Microsoft.ML.TorchSharp.Tests (2)
ObjectDetectionTests.cs (1)
71var logs = new List<LoggingEventArgs>();
TextClassificationTests.cs (1)
160var a = predictedLabel.ToList();
Microsoft.ML.Transforms (122)
CountFeatureSelection.cs (5)
176var metadata = new List<SchemaShape.Column>(); 250var dropSlotsCols = new List<SlotsDroppingTransformer.ColumnOptions>(); 251var copyCols = new List<(string outputColumnName, string inputColumnName)>(); 254var slots = new List<(int min, int? max)>(); 301var activeCols = new List<DataViewSchema.Column>();
Dracula\CountTableTransformer.cs (3)
160var cols = new List<DataViewSchema.Column>(); 178private void TrainTables(IDataView trainingData, List<DataViewSchema.Column> cols, MultiCountTableBuilderBase builder, DataViewSchema.Column labelColumn) 339var newMetadataKinds = new List<SchemaShape.Column>();
Expression\CodeGen.cs (5)
29public static Delegate Compile(out List<Error> errors, LambdaNode node) 79private Delegate Do(out List<Error> errors) 107private List<Error> _errors; 138private readonly List<CachedWithLocal> _cacheWith; 148public List<Error> GetErrors()
Expression\LambdaBinder.cs (5)
26private readonly List<WithNode> _rgwith; 28private List<Error> _errors; 51public static void Run(IHostEnvironment env, ref List<Error> errors, LambdaNode node, Action<string> printError) 1305var candidates = new List<Candidate>(); 1550private Candidate GetBestOverload(CallNode node, List<Candidate> candidates)
Expression\LambdaParser.cs (13)
24public SourcePos(List<int> lineMap, TextSpan span, int lineMin = 1) 62private static int FindIndex(List<int> map, int value, int ivMin) 94private List<Error> _errors; 95private List<int> _lineMap; 152public static LambdaNode Parse(out List<Error> errors, out List<int> lineMap, CharCursor chars, int[] perm, params DataViewType[] types) 163private LambdaNode ParseCore(out List<Error> errors, out List<int> lineMap, CharCursor chars, int[] perm, DataViewType[] types) 367var items = new List<ParamNode>(); 631List<Node> list = new List<Node>(); 632List<Token> ops = new List<Token>(); 718List<Token> commas = null; 719List<Node> list = new List<Node>();
Expression\MethodGenerator.cs (4)
139private Dictionary<LocalKey, List<LocalBuilder>> _locals; 151List<LocalBuilder> locals; 170List<LocalBuilder> locals; 172_locals = new Dictionary<LocalKey, List<LocalBuilder>>();
ExpressionTransformer.cs (4)
102var node = LambdaParser.Parse(out List<Error> errors, out List<int> lineMap, chars, perm, inputTypes); 191var metadata = new List<SchemaShape.Column>(); 278Del = LambdaCompiler.Compile(out var errors, node);
GcnTransform.cs (1)
920var metadata = new List<SchemaShape.Column>();
KeyToVectorMapping.cs (1)
478var metadata = new List<SchemaShape.Column>();
LearnerFeatureSelection.cs (1)
144var slots = new List<(int min, int? max)>();
MissingValueHandlingTransformer.cs (5)
141var replaceCols = new List<MissingValueReplacingEstimator.ColumnOptions>(); 142var naIndicatorCols = new List<MissingValueIndicatorTransformer.Column>(); 143var naConvCols = new List<TypeConvertingEstimator.ColumnOptions>(); 144var concatCols = new List<ColumnConcatenatingTransformer.TaggedColumn>(); 145var dropCols = new List<string>();
MissingValueIndicatorTransformer.cs (4)
281var indices = new List<int>(); 299private void FindNAs<T>(in VBuffer<T> src, InPredicate<T> isNA, bool defaultIsNA, List<int> indices, out bool sense) 344private void FillValues(int srcLength, ref VBuffer<bool> dst, List<int> indices, bool sense) 542var metadata = new List<SchemaShape.Column>();
MissingValueReplacing.cs (3)
285List<int> columnsToImpute = null; 288var sourceColumns = new List<DataViewSchema.Column>(); 1045var metadata = new List<SchemaShape.Column>();
MutualInformationFeatureSelection.cs (6)
243var metadata = new List<SchemaShape.Column>(); 330var dropCols = new List<SlotsDroppingTransformer.ColumnOptions>(); 331var copyCols = new List<(string outputColumnName, string inputColumnName)>(); 335var slots = new List<(int min, int? max)>(); 423private readonly List<float> _singles; 424private readonly List<double> _doubles;
OneHotEncoding.cs (3)
102var columns = new List<OneHotEncodingEstimator.ColumnOptions>(); 283var binaryCols = new List<(string outputColumnName, string inputColumnName)>(); 284var cols = new List<(string outputColumnName, string inputColumnName, bool bag)>();
OneHotHashEncoding.cs (3)
151var columns = new List<OneHotHashEncodingEstimator.ColumnOptions>(); 331var binaryCols = new List<(string outputColumnName, string inputColumnName)>(); 332var cols = new List<(string outputColumnName, string inputColumnName, bool bag)>();
PermutationFeatureImportance.cs (3)
43var metricsDelta = new List<TResult>(); 63var workingFeatureIndices = Enumerable.Range(0, numSlots).ToList(); 137List<float> initialfeatureValuesList = new List<float>();
PermutationFeatureImportanceExtensions.cs (1)
706var featureColumnNames = nameBuffer.DenseValues().ToList();
RandomFourierFeaturizing.cs (1)
283var activeColumns = new List<DataViewSchema.Column>();
SvmLight\SvmLightLoader.cs (2)
185var keys = new List<ReadOnlyMemory<char>>(); 186var values = new List<float>();
SvmLight\SvmLightSaver.cs (1)
122var columns = new List<DataViewSchema.Column>() { labelCol.Value, featureCol.Value };
Text\LdaSingleBox.cs (6)
224public List<KeyValuePair<int, float>> GetDocTopicVector(int docID) 228var topicRet = new List<KeyValuePair<int, float>>(); 261public List<KeyValuePair<int, float>> TestDoc(ReadOnlySpan<int> termID, ReadOnlySpan<double> termVal, int termNum, int numBurninIter, bool reset) 286var topicRet = new List<KeyValuePair<int, float>>(); 292public List<KeyValuePair<int, float>> TestDocDense(ReadOnlySpan<double> termVal, int termNum, int numBurninIter, bool reset) 319var topicRet = new List<KeyValuePair<int, float>>();
Text\LdaTransform.cs (11)
340var itemScoresPerTopicBuilder = ImmutableArray.CreateBuilder<List<ModelParameters.ItemScore>>(); 344var itemScores = new List<ModelParameters.ItemScore>(); 357var wordScoresPerTopicBuilder = ImmutableArray.CreateBuilder<List<ModelParameters.WordItemScore>>(); 361var wordScores = new List<ModelParameters.WordItemScore>(); 518List<KeyValuePair<int, float>> retTopics; 637private readonly List<VBuffer<ReadOnlyMemory<char>>> _columnMappings; 660List<VBuffer<ReadOnlyMemory<char>>> columnMappings, 694List<VBuffer<ReadOnlyMemory<char>>> columnMappings; 822private static List<VBuffer<ReadOnlyMemory<char>>> Train(IHostEnvironment env, IChannel ch, IDataView inputData, LdaState[] states, params LatentDirichletAllocationEstimator.ColumnOptions[] columns) 829var activeColumns = new List<DataViewSchema.Column>(); 833var columnMappings = new List<VBuffer<ReadOnlyMemory<char>>>();
Text\NgramHashingTransformer.cs (2)
200var sourceColumnsForInvertHash = new List<DataViewSchema.Column>(); 1225var metadata = new List<SchemaShape.Column>();
Text\NgramTransform.cs (6)
231var activeCols = new List<DataViewSchema.Column>(); 557private IEnumerable<long> GetNgramData(int iinfo, out long[] ngramCounts, out double[] weights, out List<long> indexes) 581var ngramIds = new List<long>[maxNGramLength]; 582var ngramIndexes = new List<long>[maxNGramLength]; 821List<long> ngramIndexes; 1087var metadata = new List<SchemaShape.Column>();
Text\SentimentAnalyzingTransform.cs (1)
121var toHide = new List<string>(colNames.Length);
Text\StopWordsRemovingTransformer.cs (2)
414var list = new List<ReadOnlyMemory<char>>(); 1105var list = new List<ReadOnlyMemory<char>>();
Text\TextFeaturizingEstimator.cs (4)
452List<string> tempCols = new List<string>(); 562var xfCols = new List<LpNormNormalizingEstimator.ColumnOptions>(2); 585var srcTaggedCols = new List<KeyValuePair<string, string>>(2); 651var metadata = new List<SchemaShape.Column>(2);
Text\TextNormalizing.cs (1)
364var list = new List<ReadOnlyMemory<char>>();
Text\TokenizingByCharacters.cs (1)
692var metadata = new List<SchemaShape.Column>();
Text\WordBagTransform.cs (2)
466var termCols = new List<Column>(); 490var columnOptions = new List<ValueToKeyMappingEstimator.ColumnOptionsBase>();
Text\WordEmbeddingsExtractor.cs (3)
136public List<string> GetWordLabels() 139var labels = new List<string>(); 424var tensorD = new List<float>();
Text\WordHashBagProducingTransform.cs (3)
105var tokenizeColumns = new List<WordTokenizingEstimator.ColumnOptions>(); 108List<string> tmpColNames = new List<string>(); 335var hashColumns = new List<HashingEstimator.ColumnOptions>();
Text\WordTokenizing.cs (5)
254var terms = new List<ReadOnlyMemory<char>>(); 283var terms = new List<ReadOnlyMemory<char>>(); 303private void AddTerms(ReadOnlyMemory<char> txt, char[] separators, List<ReadOnlyMemory<char>> terms) 337var toHide = new List<string>(); 338var toDeclare = new List<KeyValuePair<string, JToken>>();
UngroupTransform.cs (1)
489var needed = new List<Func<int>>();
Microsoft.ML.Vision (4)
ImageClassificationTrainer.cs (4)
636var metadata = new List<SchemaShape.Column>(); 815List<(long, float[])> featurizedImages = new List<(long, float[])>(); 928List<string> runnerInputTensorNames = new List<string>(); 929List<string> runnerOutputTensorNames = new List<string>();
Microsoft.Net.Http.Headers (6)
CacheControlHeaderValue.cs (2)
532var nameValueList = new List<NameValueHeaderValue>(); 566List<NameValueHeaderValue> nameValueList)
HttpHeaderParser.cs (2)
63List<T>? results = null; 121var parsedValues = new List<T>();
ObjectCollection.cs (1)
24var list = other == null ? new List<T>() : new List<T>(other);
SetCookieHeaderValue.cs (1)
45private List<StringSegment>? _extensions;
Microsoft.Net.Http.Headers.Tests (29)
EntityTagHeaderValueTest.cs (6)
284var expectedResults = new[] 317var expectedResults = new[] 349var expectedResults = new[] 381var expectedResults = new[] 413var expectedResults = new[] 461var expectedResults = new[]
MediaTypeHeaderValueComparerTests.cs (1)
66var actualSorted = unsortedValues.OrderByDescending(m => m, MediaTypeHeaderValueComparer.QualityComparer).ToList();
MediaTypeHeaderValueTest.cs (9)
546var expectedResults = new[] 564var expectedResults = new[] 582var expectedResults = new[] 600var expectedResults = new[] 622var expectedResults = new[] 657var expectedResults = new[] 893public static TheoryData<string, List<StringSegment>> MediaTypesWithFacets => 894new TheoryData<string, List<StringSegment>> 908public void Facets_TestPositiveCases(string input, List<StringSegment> expected)
NameValueHeaderValueTest.cs (6)
346var expectedResults = new[] 379var expectedResults = new[] 412var expectedResults = new[] 445var expectedResults = new[] 478var expectedResults = new[] 532var expectedResults = new[]
StringWithQualityHeaderValueComparerTest.cs (1)
55var actualSorted = unsortedValues.OrderByDescending(k => k, StringWithQualityHeaderValueComparer.QualityComparer).ToList();
StringWithQualityHeaderValueTest.cs (6)
219var expectedResults = new[] 256var expectedResults = new[] 293var expectedResults = new[] 330var expectedResults = new[] 368var expectedResults = new[] 426var expectedResults = new[]
Microsoft.NET.StringTools (5)
InternableString.cs (1)
111private List<ReadOnlyMemory<char>>? _spans;
SpanBasedStringBuilder.cs (4)
28private readonly List<ReadOnlyMemory<char>> _spans; 40internal Enumerator(List<ReadOnlyMemory<char>> spans) 83private readonly List<ReadOnlyMemory<char>> _spans; 88internal List<ReadOnlyMemory<char>> Spans => _spans;
Microsoft.NET.StringTools.net35 (1)
WeakStringCache.Locking.cs (1)
89List<int>? keysToRemove = null;
Microsoft.VisualBasic.Core (59)
Microsoft\VisualBasic\Collection.vb (1)
21Private m_Iterators As List(Of Object) 'List of iterators currently iterating this collection
Microsoft\VisualBasic\CompilerServices\ConversionResolution.vb (18)
530ByRef foundSourceTypeOperators As Boolean) As List(Of Method) 540Dim result As List(Of Method) = 548Dim narrowingOperators As List(Of Method) = 585Private Shared Function MostEncompassing(ByVal types As List(Of System.Type)) As System.Type 611Private Shared Function MostEncompassed(ByVal types As List(Of System.Type)) As System.Type 640ByVal searchList As List(Of Method), 641ByVal resultList As List(Of Method), 662ByVal operatorList As List(Of Method), 700ByVal operatorSet As List(Of Method), 702ByRef resolutionIsAmbiguous As Boolean) As List(Of Method) 756Dim operatorChoices As List(Of Method) = New List(Of Method)(operatorSet.Count) 757Dim candidates As List(Of Method) = New List(Of Method)(operatorSet.Count) 759Dim sourceBases As List(Of Type) = New List(Of Type)(operatorSet.Count) 760Dim targetDeriveds As List(Of Type) = New List(Of Type)(operatorSet.Count) 761Dim sourceDeriveds As List(Of Type) = Nothing 762Dim targetBases As List(Of Type) = Nothing 949Dim operatorSet As List(Of Method) = 963Dim operatorChoices As List(Of Method) =
Microsoft\VisualBasic\CompilerServices\LikeOperator.vb (6)
559Optional ByVal RangeList As List(Of Range) = Nothing, 862ByRef RangeList As List(Of Range) 968Private m_RangeList As List(Of Range) 969Property RangeList() As List(Of Range) 974Set(ByVal Value As List(Of Range)) 1607Dim RangeList As List(Of Range) = PG.RangeList
Microsoft\VisualBasic\CompilerServices\Operators.Resolution.vb (4)
24ByRef foundType2Operators As Boolean) As List(Of Method) 33Dim result As List(Of Method) 71Dim secondResult As List(Of Method) 159Dim candidates As List(Of Method) =
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (26)
488ByVal candidates As List(Of Method), 723ByVal baseReference As Container) As List(Of Method) 735Dim candidates As List(Of Method) = New List(Of Method)(members.Length) 930ByVal errors As List(Of String), 1237ByVal errors As List(Of String), 1307ByVal errors As List(Of String)) As Boolean 1414ByVal errors As List(Of String)) As Boolean 1669ByVal errors As List(Of String)) As Boolean 1851ByVal errors As List(Of String)) As Boolean 2056ByVal candidates As List(Of Method), 2307ByVal candidates As List(Of Method), 2368ByVal candidates As List(Of Method), 2456ByVal errors As List(Of String), 2472ByVal errors As List(Of String), 2486ByVal errors As List(Of String), 2497Private Shared Sub ReportError(ByVal errors As List(Of String), ByVal resourceID As String) 2508ByVal errors As List(Of String)) As Boolean 2514ByVal candidates As List(Of Method), 2587ByVal errors As List(Of String)) As Boolean 2605ByVal candidates As List(Of Method), 2629ByVal errors As List(Of String)) As Boolean 2647ByVal candidates As List(Of Method), 2670ByVal errors As List(Of String)) As Boolean 2682ByVal candidates As List(Of Method), 2700ByVal candidates As List(Of Method), 2821Dim candidates As List(Of Method) =
Microsoft\VisualBasic\CompilerServices\Symbols.vb (4)
937Friend Function LookupWinRTCollectionInterfaceMembers(ByVal memberName As String) As List(Of MemberInfo) 976Dim collectionMethods As List(Of MemberInfo) = LookupWinRTCollectionInterfaceMembers(memberName) 998Private Function LookupWinRTCollectionDefaultMembers(ByRef defaultMemberName As String) As List(Of MemberInfo) 1066Dim collectionMethods As List(Of MemberInfo) = LookupWinRTCollectionDefaultMembers(memberName)
Microsoft.VisualBasic.Tests (6)
Microsoft\VisualBasic\ApplicationServices\ApplicationBaseTests.cs (1)
65List<(string, string)> pairs = [];
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (3)
17private List<string[]> _received = []; 26var received = _received; 78List<NamedPipeServerStream> pipeServers = [];
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (2)
316List<string> CreatedDirectories = []; 446List<string> TestFileList = [];
Microsoft.VisualStudio.LanguageServices (130)
CallHierarchy\CallHierarchyProvider.cs (1)
105var finders = new List<AbstractCallFinder>
CallHierarchy\Finders\AbstractCallFinder.cs (1)
152var initializerLocations = new List<CallHierarchyDetail>();
CallHierarchy\Finders\CallToOverrideFinder.cs (1)
26var callsToOverrides = new List<SymbolCallerInfo>();
ChangeSignature\ChangeSignatureDialogViewModel.cs (12)
33private readonly List<ParameterViewModel> _parametersWithoutDefaultValues; 34private readonly List<ParameterViewModel> _parametersWithDefaultValues; 109var parameterNameOverlapMap = new Dictionary<string, List<ParameterViewModel>>(); 126var matchingParameters = parameterNameOverlapMap[parameterName]; 146private List<ParameterViewModel> CreateParameterViewModels(ImmutableArray<Parameter> parameters, ref int initialIndex) 148var list = new List<ParameterViewModel>(); 320var displayParts = GetSignatureDisplayParts(); 345private List<SymbolDisplayPart> GetSignatureDisplayParts() 347var displayParts = new List<SymbolDisplayPart>(); 383public List<ParameterViewModel> AllParameters 387var list = new List<ParameterViewModel>(); 463private void Move(List<ParameterViewModel> list, int index, int delta)
EditorConfigSettings\Common\RemoveSinkWhenDisposed.cs (2)
13private readonly List<ITableDataSink> _tableSinks; 16public RemoveSinkWhenDisposed(List<ITableDataSink> tableSinks, ITableDataSink sink)
EditorConfigSettings\Common\SettingsViewModelBase.cs (1)
26private List<ITableDataSink> TableSinks { get; } = [];
EditorConfigSettings\SettingsEditorPane.SearchFilter.cs (1)
25var newVisibleColumns = new List<ITableColumnDefinition>();
ErrorReporting\VisualStudioErrorReportingService.cs (1)
68var 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\Contexts\AbstractTableDataSourceFindUsagesContext.cs (13)
93protected readonly List<DefinitionItem> Definitions = []; 113protected readonly (List<Entry> primary, List<Entry> nonPrimary) EntriesWhenNotGroupingByDefinition = ([], []); 114protected readonly (List<Entry> primary, List<Entry> nonPrimary) EntriesWhenGroupingByDefinition = ([], []); 186protected static void Add<T>((List<T> primary, List<T> nonPrimary) entries, T item, bool isPrimary) 188var list = isPrimary ? entries.primary : entries.nonPrimary; 192protected static void AddRange<T>((List<T> primary, List<T> nonPrimary) entries, ArrayBuilder<T> builder, bool isPrimary) 194var list = isPrimary ? entries.primary : entries.nonPrimary; 611private static ImmutableArray<Entry> ToImmutableArray((List<Entry> primary, List<Entry> nonPrimary) entries)
FindReferences\RoslynDefinitionBucket.cs (1)
116var inlines = new List<Inline> { new Run(" ") };
GenerateType\GenerateTypeDialogViewModel.cs (10)
36private List<string> _csharpAccessList; 37private List<string> _visualBasicAccessList; 38private List<string> _csharpTypeKindList; 39private List<string> _visualBasicTypeKindList; 55public List<string> AccessList { get; } 86public List<string> KindList 466public List<ProjectSelectItem> ProjectList { get; } 469private List<DocumentSelectItem> _previouslyPopulatedDocumentList = null; 556public List<string> Folders; 688var projectListing = new List<ProjectSelectItem>
Implementation\AbstractVsTextViewFilter.cs (1)
196var resultsInView = textView.GetSpanInView(matchingSpan.Value.ToSnapshotSpan(subjectBuffer.CurrentSnapshot)).ToList();
Implementation\VsRefactorNotifyService.cs (7)
42var itemIDs = hierarchyToItemIDsMap[hierarchy]; 79var itemIDs = hierarchyToItemIDsMap[hierarchy]; 112out Dictionary<IVsHierarchy, List<uint>> hierarchyToItemIDsMap, 131out Dictionary<IVsHierarchy, List<uint>> hierarchyToItemIDsMap, 167private Dictionary<IVsHierarchy, List<uint>> GetHierarchiesAndItemIDsFromDocumentIDs(VisualStudioWorkspace visualStudioWorkspace, IEnumerable<DocumentId> changedDocumentIDs) 171var hierarchyToItemIDsMap = new Dictionary<IVsHierarchy, List<uint>>(); 180if (!hierarchyToItemIDsMap.TryGetValue(hierarchy, out var itemIDsForCurrentHierarchy))
PickMembers\PickMembersDialogViewModel.cs (4)
20private readonly List<MemberSymbolViewModel> _allMembers; 22public List<MemberSymbolViewModel> MemberContainers { get; set; } 23public List<OptionViewModel> Options { get; set; } 166private void Move(List<MemberSymbolViewModel> list, int index, int delta)
Preview\FileChange.cs (1)
101var spanChanges = new List<SpanChange>();
Preview\PreviewEngine.cs (1)
119var allDocumentsWithChanges = new List<DocumentId>();
ProjectSystem\FileChangeWatcher.cs (6)
129private readonly List<uint> _cookies; 144private WatcherOperation(Kind kind, string directory, ImmutableArray<string> filters, IVsFreeThreadedFileChangeEvents2 sink, List<uint> cookies) 174private WatcherOperation(Kind kind, List<uint> cookies) 212public static WatcherOperation WatchDirectory(string directory, ImmutableArray<string> filters, IVsFreeThreadedFileChangeEvents2 sink, List<uint> cookies) 221public static WatcherOperation UnwatchDirectories(List<uint> cookies) 358private readonly List<uint> _directoryWatchCookies = [];
ProjectSystem\Legacy\AbstractLegacyProject.cs (3)
343using var pooledObject = SharedPools.Default<List<string>>().GetPooledObject(); 345var newFolderNames = pooledObject.Object; 376private static void ComputeFolderNames(uint folderItemID, List<string> names, IVsHierarchy hierarchy)
ProjectSystem\Legacy\SolutionEventsBatchScopeCreator.cs (1)
30private readonly List<(ProjectSystemProject project, IVsHierarchy hierarchy, ProjectSystemProject.BatchScope batchScope)> _fullSolutionLoadScopes = [];
ProjectSystem\VisualStudioProjectManagementService.cs (1)
60var folders = new List<string>();
ProjectSystem\VisualStudioWorkspaceImpl.cs (4)
93private readonly Dictionary<string, List<ProjectSystemProject>> _projectSystemNameToProjectsMap = []; 203if (_projectSystemNameToProjectsMap.TryGetValue(projectName, out var projects)) 268var projectChanges = newSolution.GetChanges(currentSolution).GetProjectChanges().ToList(); 271var changedDocs = projectChanges.SelectMany(pd => pd.GetChangedDocuments(onlyGetDocumentsWithTextChanges: true).Concat(pd.GetChangedAdditionalDocuments()))
Shared\VisualStudioImageIdService.cs (1)
49private readonly List<CompositeImage> _compositeImages = [];
Snippets\SnippetExpansionClient.cs (2)
642var declarations = new List<XElement>(); 1089var failedReferenceAdditions = new List<string>();
SymbolSearch\VisualStudioSymbolSearchService.cs (3)
166var packagesUsedInOtherProjects = new List<TPackageResult>(); 167var packagesNotUsedInOtherProjects = new List<TPackageResult>(); 171var resultList = _installerService.GetInstalledVersions(package.PackageName).Any()
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (2)
450var builder = ImmutableDictionary.CreateBuilder<DocumentId, List<DiagnosticData>>(); 455if (!builder.TryGetValue(diagnosticData.DocumentId, out var diagnosticsPerDocument))
Telemetry\CodeMarkerLogger.cs (6)
18private static readonly Dictionary<FunctionId, List<Tuple<CodeMarkerId, CodeMarkerId>>> s_blockMap 19= new Dictionary<FunctionId, List<Tuple<CodeMarkerId, CodeMarkerId>>>() 113private static readonly Dictionary<FunctionId, List<CodeMarkerId>> s_map 114= new Dictionary<FunctionId, List<CodeMarkerId>>() 150private static void FireCodeMarkers<T>(Dictionary<FunctionId, List<T>> map, FunctionId functionId, Func<T, int> getter) 152if (!map.TryGetValue(functionId, out var items))
Utilities\AutomationDelegatingListView.cs (2)
46protected override List<AutomationPeer>? GetChildrenCore() 48List<AutomationPeer>? results = null;
Venus\ContainedDocument.cs (33)
238var editorVisibleSpansInOriginal = SharedPools.Default<List<TextSpan>>().AllocateAndClear(); 245var newChanges = FilterTextChanges(originalText, editorVisibleSpansInOriginal, changes).ToList(); 257SharedPools.Default<List<TextSpan>>().ClearAndFree(editorVisibleSpansInOriginal); 261private IEnumerable<TextChange> FilterTextChanges(SourceText originalText, List<TextSpan> editorVisibleSpansInOriginal, IEnumerable<TextChange> changes) 270using var pooledObject = SharedPools.Default<List<TextChange>>().GetPooledObject(); 272var changeQueue = pooledObject.Object; 312var subChanges = GetSubTextChanges(originalText, change, visibleSpan).ToList(); 350using var changes = SharedPools.Default<List<TextChange>>().GetPooledObject(); 365SourceText originalText, TextSpan visibleSpanInOriginalText, string leftText, string rightText, int offsetInOriginalText, List<TextChange> changes) 368using var leftPool = SharedPools.Default<List<TextSpan>>().GetPooledObject(); 369using var rightPool = SharedPools.Default<List<TextSpan>>().GetPooledObject(); 371var spansInLeftText = leftPool.Object; 372var spansInRightText = rightPool.Object; 402using var leftPool = SharedPools.Default<List<ValueTuple<int, int>>>().GetPooledObject(); 403using var rightPool = SharedPools.Default<List<ValueTuple<int, int>>>().GetPooledObject(); 405var leftReplacementMap = leftPool.Object; 406var rightReplacementMap = rightPool.Object; 424private static bool TryGetWhitespaceOnlyChanges(string leftText, string rightText, List<TextSpan> spansInLeftText, List<TextSpan> spansInRightText) 427private static bool TryGetWhitespaceGroup(string text, List<TextSpan> groups) 612List<ValueTuple<int, int>> leftReplacementMap, List<ValueTuple<int, int>> rightReplacementMap, 642private static string GetTextWithReplacementMap(string text, string returnReplacement, string newLineReplacement, List<ValueTuple<int, int>> replacementMap) 673private static Span AdjustSpan(Span span, List<ValueTuple<int, int>> replacementMap) 775using var pooledObject = SharedPools.Default<List<TextSpan>>().GetPooledObject(); 777var spans = pooledObject.Object; 798using var rulePool = SharedPools.Default<List<AbstractFormattingRule>>().GetPooledObject(); 799using var spanPool = SharedPools.Default<List<TextSpan>>().GetPooledObject(); 801var venusFormattingRules = rulePool.Object; 802var visibleSpans = spanPool.Object; 824public BaseIndentationFormattingRule GetBaseIndentationRule(SyntaxNode root, SourceText text, List<TextSpan> spans, int spanIndex) 872private static void GetVisibleAndTextSpan(SourceText text, List<TextSpan> spans, int spanIndex, out TextSpan visibleSpan, out TextSpan visibleTextSpan)
Watson\FaultReporter.cs (4)
272var logs = CollectFilePaths(logPath, "*.svclog", shouldExcludeLogFile: (name) => !name.Contains("Roslyn") && !name.Contains("LSPClient")); 291var logs = CollectFilePaths(logPath, "*.log", shouldExcludeLogFile: (name) => !name.Contains("-" + ServiceDescriptor.ServiceNameTopLevelPrefix) && 305private static List<string> CollectFilePaths(string logDirectoryPath, string logFileExtension, Func<string, bool> shouldExcludeLogFile) 307var paths = new List<string>();
Workspace\VisualStudioFormattingRuleFactoryServiceFactory.cs (2)
50using var pooledObject = SharedPools.Default<List<TextSpan>>().GetPooledObject(); 51var spans = pooledObject.Object;
Microsoft.VisualStudio.LanguageServices.CodeLens (2)
ReferenceCodeLensProvider.cs (2)
156private static readonly List<CodeLensDetailHeaderDescriptor> s_header = 263var entries = referenceLocationDescriptors?.references.Select(referenceLocationDescriptor =>
Microsoft.VisualStudio.LanguageServices.CSharp (21)
ChangeSignature\CSharpChangeSignatureViewModelFactoryService.cs (1)
31var parts = new List<SymbolDisplayPart>();
CodeModel\CSharpCodeModelService.cs (5)
1222var commentList = new List<SyntaxTrivia>(); 1294var leadingTriviaList = memberDeclaration.GetLeadingTrivia().ToList(); 1427var leadingTriviaList = memberDeclaration.GetLeadingTrivia().ToList(); 2316var updatedAccessors = new List<AccessorDeclarationSyntax>(); 2356var updatedAccessors = new List<AccessorDeclarationSyntax>();
CodeModel\ModifierFlagsExtensions.cs (1)
111var newModifierList = new List<SyntaxToken>();
Options\Formatting\StyleViewModel.cs (8)
2228var usingDirectivePlacementPreferences = new List<CodeStylePreference> 2234var qualifyMemberAccessPreferences = new List<CodeStylePreference> 2240var predefinedTypesPreferences = new List<CodeStylePreference> 2246var typeStylePreferences = new List<CodeStylePreference> 2371var bracesPreferences = new List<CodeStylePreference> 2390var preferences = new List<CodeStylePreference> 2408var expressionBodyPreferences = new List<CodeStylePreference> 2476var unusedValuePreferences = new List<CodeStylePreference>
ProjectSystemShim\CSharpProjectShim.ICSharpVenusProjectSite.cs (1)
24var projectReferencesToRemove = ProjectSystemProject.GetProjectReferences().Where(p => p.ProjectId == projectSite.ProjectSystemProject.Id).ToList();
ProjectSystemShim\TempPECompilerService.cs (2)
39var trees = new List<SyntaxTree>(capacity: sourceCount); 73var arguments = new List<string>();
Snippets\CSharpSnippetExpansionLanguageHelper.cs (3)
85var newUsingDirectives = GetUsingDirectivesToAdd(contextLocation, snippetNode, importsNode); 108private static List<UsingDirectiveSyntax> GetUsingDirectivesToAdd( 113var newUsings = new List<UsingDirectiveSyntax>();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (10)
CodeModel\FileCodeClassTests.cs (1)
311var z = l.ToList<CodeProperty>();
Interactive\Commands\InteractiveCommandHandlerTests.cs (1)
200var submissions = new List<string>();
Interactive\Commands\ResetInteractiveTests.cs (6)
62var expectedReferences = replReferenceCommands.ToList(); 63var expectedUsings = new List<string> { @"using ""System"";", @"using ""ResetInteractiveTestsDocument"";" }; 74List<string> expectedReferences = null, 75List<string> expectedUsings = null) 81var executedSubmissionCalls = new List<string>(); 122var expectedSubmissions = new List<string>();
PersistentStorage\AbstractPersistentStorageTests.cs (2)
912var exceptions = new List<Exception>(); 944var exceptions = new List<Exception>();
Microsoft.VisualStudio.LanguageServices.DevKit (3)
Logging\VSCodeTelemetryLogger.cs (3)
61public void Log(string name, List<KeyValuePair<string, object?>> properties) 82public void LogBlockEnd(int blockId, List<KeyValuePair<string, object?>> properties, CancellationToken cancellationToken) 198private static void SetProperties(TelemetryEvent telemetryEvent, List<KeyValuePair<string, object?>> properties)
Microsoft.VisualStudio.LanguageServices.Implementation (37)
CodeModel\CodeModelProjectCache.cs (1)
157var result = new List<ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>>();
CodeModel\FileCodeModel.cs (5)
63private List<AbstractKeyedCodeElement>? _batchElements; 684List<ValueTuple<AbstractKeyedCodeElement, SyntaxPath>>? elementAndPaths = null; 789internal List<GlobalNodeKey> GetCurrentNodeKeys() 791var currentNodeKeys = new List<GlobalNodeKey>(); 811internal void ResetElementKeys(List<GlobalNodeKey> globalNodeKeys)
CodeModel\FileCodeModel_CodeGen.cs (1)
104var result = new List<object>();
CodeModel\NodeKeyValidation.cs (3)
14private readonly Dictionary<ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>, List<GlobalNodeKey>> _nodeKeysMap = []; 28var globalNodeKeys = fcm.Object.GetCurrentNodeKeys(); 38var globalNodeKeys = fileCodeModel.GetCurrentNodeKeys();
Options\AbstractOptionPageControl.cs (2)
24private readonly List<BindingExpressionBase> _bindingExpressions = []; 25private readonly List<OptionPageSearchHandler> _searchHandlers = [];
Options\AbstractOptionPreviewViewModel.cs (6)
47public List<object> Items { get; set; } 169private static List<LineSpan> GetExposedLineSpans(ITextSnapshot textSnapshot) 176var lineSpans = new List<LineSpan>(); 216var preferences = new List<ParenthesesPreference>(); 217var codeStylePreferences = new List<CodeStylePreference>(); 235var unusedParameterPreferences = new List<CodeStylePreference>
Options\Style\AbstractCodeStyleOptionViewModel.cs (6)
38public List<CodeStylePreference> Preferences { get; set; } 39public List<NotificationOptionViewModel> NotificationPreferences { get; set; } 55List<CodeStylePreference> preferences = null, 56List<NotificationOptionViewModel> notificationPreferences = null) 67private static List<NotificationOptionViewModel> GetDefaultNotifications() 78private static List<CodeStylePreference> GetDefaultPreferences()
Options\Style\BooleanCodeStyleOptionViewModel.cs (2)
34List<CodeStylePreference> preferences = null, 35List<NotificationOptionViewModel> notificationPreferences = null)
Options\Style\EnumCodeStyleOptionViewModel.cs (1)
45List<CodeStylePreference> preferences)
Options\Style\NamingPreferences\NamingStyleOptionPageViewModel.cs (1)
40var viewModels = new List<NamingRuleViewModel>();
Options\Style\NamingPreferences\NamingStyles\ManageNamingStylesDialogViewModel.cs (1)
26List<NamingStyleOptionPageViewModel.NamingRuleViewModel> namingRules,
Options\Style\NamingPreferences\SymbolSpecification\ManageSymbolSpecificationsDialogViewModel.cs (1)
27List<NamingStyleOptionPageViewModel.NamingRuleViewModel> namingRules,
Options\Style\NamingPreferences\SymbolSpecification\SymbolSpecificationViewModel.cs (3)
23public List<SymbolKindViewModel> SymbolKindList { get; set; } 24public List<AccessibilityViewModel> AccessibilityList { get; set; } 25public List<ModifierViewModel> ModifierList { get; set; }
ProjectSystem\CPS\TempPECompiler.cs (1)
47var syntaxTrees = new List<SyntaxTree>(capacity: filesToInclude.Count);
SolutionExplorer\RuleSetDocumentExtensions.cs (1)
34var allMatchingRules = ruleSet.Root
SolutionExplorer\SymbolTree\RootSymbolTreeItemSourceProvider.cs (2)
48private readonly Dictionary<string, List<RootSymbolTreeItemCollectionSource>> _filePathToCollectionSources = new( 121if (_filePathToCollectionSources.TryGetValue(filePath, out var pathSources))
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\Projects\RemoteProjectInfoProvider.cs (1)
32var projectInfos = new List<ProjectInfo>();
Microsoft.VisualStudio.LanguageServices.Xaml (3)
Features\InlineRename\XamlEditorInlineRenameService.cs (1)
79var references = new List<InlineRenameLocation>();
Implementation\LanguageServer\Extensions\SymbolExtensions.cs (1)
56var builder = new List<TaggedText>();
Implementation\LanguageServer\Handler\Hover\HoverHandler.cs (1)
65var descriptionBuilder = new List<TaggedText>(info.Description);
MilvusPlayground.ApiService (4)
Program.cs (4)
46List<long> bookIds = new(); 47List<long> wordCounts = new(); 48List<ReadOnlyMemory<float>> bookIntros = new(); 49List<string> bookNames = new();
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
102[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.List<>))]
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)
13public List<CodeFixWorksWhenMultipleIdenticalStatusCodesAreInErrorModel> Values { get; } =
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Output.cs (1)
14public List<CodeFixWorksWhenMultipleIdenticalStatusCodesAreInErrorModel> Values { get; } =
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>();
netstandard (1)
netstandard.cs (1)
128[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.List<>))]
OpenIdConnectSample (1)
Startup.cs (1)
367var oldClaims = identity.Claims.ToList();
OracleEndToEnd.ApiService (1)
Program.cs (1)
17var users = await dbContext.Users.ToListAsync();
OrderProcessor (2)
playground\TestShop\BasketService\Models\BasketItem.cs (1)
15var results = new List<ValidationResult>();
playground\TestShop\BasketService\Models\Order.cs (1)
8public List<BasketItem> Items { get; set; } = new();
ParameterEndToEnd.ApiService (1)
Program.cs (1)
31var entries = await context.Entries.ToListAsync();
PathSchemeSelection (1)
Controllers\AccountController.cs (1)
36var claims = new List<Claim>
PostgresEndToEnd.ApiService (1)
Program.cs (1)
30var entries = await db1Context.Entries.ToListAsync();
PrepareTests (6)
MinimizeUtil.cs (4)
46Dictionary<Guid, List<FilePathInfo>> initialWalk() 49List<string> directories = 126var fileList = new List<string>(); 146var rehydratedDirectories = new List<string>();
TestDiscovery.cs (2)
22var assemblies = GetAssemblies(binDirectory, isUnix); 105private static List<string> GetAssemblies(string binDirectory, bool isUnix)
PresentationBuildTasks (53)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (6)
69var mainEmbeddedList = new List<ITaskItem>(); 70var satelliteEmbeddedList = new List<ITaskItem>(); 71var clrEmbeddedResourceList = new List<ITaskItem>(); 72var clrSatelliteEmbeddedResourceList = new List<ITaskItem>(); 288private void Classify(IEnumerable<ITaskItem> inputItems, List<ITaskItem> mainList, List<ITaskItem> satelliteList)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
271var properties = new List<(string PropertyName, string PropertyValue)> 752private void AddNewProperties(XmlDocument xmlProjectDoc, List<(string PropertyName, string PropertyValue)> properties )
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
911private List<Uid> _uids; 915private List<string> _namespacePrefixes;
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1297var paths = new List<string>(ReferenceAssemblyList?.Count ?? 0);
MS\Internal\MarkupCompiler\ParserExtension.cs (1)
727List<ClrNamespaceAssemblyPair> cnap = XamlTypeMapper.GetClrNamespacePairFromCache(xamlXmlnsPropertyNode.XmlNamespace);
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (3)
180List<FileUnit> modifiedXamlFiles = new List<FileUnit>(); 358private void UpdateFileListForIncrementalBuild(List<FileUnit> modifiedXamlFiles) 360List<FileUnit> recompiledXaml = new List<FileUnit>();
src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\Internal\Media\XamlSerializationHelper.cs (7)
191List<ThreeDoublesMarkup> point3Ds = ParseThreeDoublesCollection(stringValues, TypeConverterHelper.InvariantEnglishUS); 223List<ThreeDoublesMarkup> points = ParseThreeDoublesCollection(stringValues, TypeConverterHelper.InvariantEnglishUS); 255List<Point> points = ParsePointCollection(stringValue, TypeConverterHelper.InvariantEnglishUS); 367private static List<ThreeDoublesMarkup> ParseThreeDoublesCollection(string source, IFormatProvider formatProvider) 372List<ThreeDoublesMarkup> resource = new List<ThreeDoublesMarkup>( source.Length/ 8 ) ; // SWAG the length of the collection. 394private static List<Point> ParsePointCollection(string source, IFormatProvider formatProvider) 398List<Point> resource = new List<Point>(source.Length/ 8 ); // SWAG the length of the collection.
src\Microsoft.DotNet.Wpf\src\PresentationFramework\MS\Internal\Globalization\LocalizationComments.cs (1)
81List<PropertyComment> tokens = new List<PropertyComment>(8);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (8)
1730private List<BamlAssemblyInfoRecord> AssemblyIdMap 1738private List<BamlTypeInfoRecord> TypeIdMap 1746private List<BamlAttributeInfoRecord> AttributeIdMap 1754private List<BamlStringInfoRecord> StringIdMap 1815private readonly List<BamlAssemblyInfoRecord> _assemblyIdToInfo = new(); 1819private readonly List<BamlTypeInfoRecord> _typeIdToInfo = new(); 1823private readonly List<BamlAttributeInfoRecord> _attributeIdToInfo = new(10); 1827private readonly List<BamlStringInfoRecord> _stringIdToInfo = new();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (9)
1584List<List<ValueDeferRecord>> staticResourceRecordList = keyRecord.StaticResourceRecordList; 1591List<ValueDeferRecord> srRecords = staticResourceRecordList[j]; 1778internal List<List<ValueDeferRecord>> StaticResourceRecordList 1784_staticResourceRecordList = new List<List<ValueDeferRecord>>(1); 1793private List<List<ValueDeferRecord>> _staticResourceRecordList; 1930private List<ValueDeferRecord> _staticResourceRecordList; // List of BamlRecords between the start and end of a StaticResource definition (both ends inclusive).
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (3)
83List<IntegerMarkup> ints = Parse( stringValue); 213public static List<IntegerMarkup> Parse(string source) 218List<IntegerMarkup> resource = new List<IntegerMarkup>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (3)
3251List<ClrNamespaceAssemblyPair> namespaceAssemblyPair; 3413internal static List<ClrNamespaceAssemblyPair> GetClrNamespacePairFromCache( 3416List<ClrNamespaceAssemblyPair> mappingArray = null;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (6)
84List<Assembly> interestingAssemblies = new List<Assembly>(); 141internal List<ClrNamespaceAssemblyPair> GetMappingArray(string xmlns) 143return _cacheTable[xmlns] as List<ClrNamespaceAssemblyPair>; 215List<CustomAttributeData> foundAttributes = new List<CustomAttributeData>(); 297List<ClrNamespaceAssemblyPair> pairList; 320pairList = (List<ClrNamespaceAssemblyPair>)_cacheTable[xmlns];
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
130List<string> keysToUpdate = new List<string>();
PresentationCore (362)
MS\Internal\FontCache\FamilyCollection.cs (3)
40private List<CompositeFontFamily> _userCompositeFonts; 47private static List<CompositeFontFamily> GetCompositeFontList(FontSourceCollection fontSourceCollection) 49List<CompositeFontFamily> compositeFonts = new List<CompositeFontFamily>();
MS\Internal\FontCache\FontResourceCache.cs (8)
24private static void ConstructFontResourceCache(Assembly entryAssembly, Dictionary<string, List<string>> folderResourceMap) 46internal static List<string> LookupFolder(Uri uri) 76Dictionary<string, List<string>> folderResourceMap; 82folderResourceMap = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 88List<string> ret; 108private static void AddResourceToFolderMap(Dictionary<string, List<string>> folderResourceMap, string resourceFullName) 145private static Dictionary<Assembly, Dictionary<string, List<string>>> _assemblyCaches 146= new Dictionary<Assembly, Dictionary<string, List<string>>>(1);
MS\Internal\FontCache\FontSourceCollection.cs (2)
85List<Text.TextInterface.IFontSource> fontSources; 127List<string> resourceEntries = FontResourceCache.LookupFolder(_uri);
MS\Internal\IListConverters.cs (4)
98List<double> list = new List<double>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 141List<ushort> list = new List<ushort>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 182List<bool> list = new List<bool>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 224List<Point> list = new List<Point>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1));
MS\Internal\Ink\Bezier.cs (4)
46internal List<Point> Flatten(double tolerance) 48List<Point> points = new List<Point>(); 493private void FlattenSegment(int iFirst, double tolerance, List<Point> points) 579private List<Point> _bezierControlPoints = new List<Point>();
MS\Internal\Ink\CuspData.cs (3)
529private List<CDataPoint> _points; 530private List<double> _nodes; 532private List<int> _cusps = new List<int>();
MS\Internal\Ink\ErasingStroke.cs (4)
133internal bool EraseTest(StrokeNodeIterator iterator, List<StrokeIntersection> intersections) 139List<StrokeFIndices> eraseAt = new List<StrokeFIndices>(); 261List<Point> newPath = new List<Point>(); 326private List<StrokeNode> _erasingStrokeNodes = null;
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
356private List<ExtendedProperty> _extendedProperties = new List<ExtendedProperty>();
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (3)
213List<ApplicationGesture> gestures = new List<ApplicationGesture>(); 601List<GestureRecognitionResult> resultList = new List<GestureRecognitionResult>(); 669List<GestureRecognitionResult> resultList = new List<GestureRecognitionResult>();
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (2)
71List<byte> compressedData = new List<byte>(); 249List<byte> compressedData = new List<byte>(input.Length + 1); //reasonable default based on profiling.
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (3)
358internal void Compress(int bitCount, int[] input, int startInputIndex, DeltaDelta dtxf, List<byte> compressedData) 406internal void Compress(int bitCount, BitStreamReader reader, GorillaEncodingType encodingType, int unitsToEncode, List<byte> compressedData) 626List<byte> output = new List<byte>((bitsToWrite / 8) * unitsToDecode);
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (1)
13private readonly System.Collections.Generic.List<Guid> _customGuids = new System.Collections.Generic.List<Guid>();
MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (1)
45internal void Compress(DataXform dataXf, int[] input, List<byte> compressedData)
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
103private List<HuffCodec> _huffCodecs = new List<HuffCodec>();
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (8)
51internal System.Collections.Generic.List<int> StrokeIds = null; 93List<char> charData = new List<char>((int)inkData.Length); 1562System.Collections.Generic.List<KnownTagCache.KnownTagIndex> tags = null; 1614List<StylusPointPropertyInfo> stylusPointPropertyInfos = new List<StylusPointPropertyInfo>(); 2676private System.Collections.Generic.List<StrokeDescriptor> _strokeDescriptorTable = null; 2677private System.Collections.Generic.List<TransformDescriptor> _transformTable = null; 2678private System.Collections.Generic.List<DrawingAttributes> _drawingAttributesTable = null; 2679private System.Collections.Generic.List<MetricBlock> _metricTable = null;
MS\Internal\Ink\InkSerializedFormat\LZCodec.cs (1)
32List<byte> output = new List<byte>();
MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (2)
23internal void Encode(uint data, List<byte> output) 41internal void SignEncode(int data, List<byte> output)
MS\Internal\Ink\InkSerializedFormat\StrokeDescriptor.cs (2)
11private System.Collections.Generic.List<KnownTagCache.KnownTagIndex> _strokeDescriptor = new System.Collections.Generic.List<KnownTagCache.KnownTagIndex>(); 24public System.Collections.Generic.List<KnownTagCache.KnownTagIndex> Template
MS\Internal\Ink\Lasso.cs (10)
219List<LassoCrossing> crossingList = new List<LassoCrossing>(); 315List<StrokeIntersection> strokeIntersectionList = new List<StrokeIntersection>(); 325private static void SortAndMerge(ref List<LassoCrossing> crossingList) 330List<LassoCrossing> mergedList = new List<LassoCrossing>(); 379List<LassoCrossing> crossingList, List<StrokeIntersection> strokeIntersections) 490protected List<Point> PointsList 532private List<Point> _points; 681List<Point> points = PointsList; 769List<Point> points = PointsList;
MS\Internal\Ink\Quad.cs (1)
69internal void GetPoints(List<Point> pointBuffer)
MS\Internal\Ink\Renderer.cs (1)
700private List<Visual> _attachedVisuals = null;
MS\Internal\Ink\StrokeIntersection.cs (2)
187List<StrokeFIndices> inFIndices = new List<StrokeFIndices>(intersections.Length); 219List<StrokeFIndices> hitFIndices = new List<StrokeFIndices>(intersections.Length);
MS\Internal\Ink\StrokeNode.cs (8)
110internal void GetContourPoints(List<Point> pointBuffer) 121internal void GetPreviousContourPoints(List<Point> pointBuffer) 185internal void GetPointsAtStartOfSegment(List<Point> abPoints, 186List<Point> dcPoints 310internal void GetPointsAtEndOfSegment( List<Point> abPoints, 311List<Point> dcPoints 416List<Point> abPoints, 417List<Point> dcPoints,
MS\Internal\Ink\StrokeNodeOperations.cs (1)
89internal void GetNodeContourPoints(in StrokeNodeData node, List<Point> pointBuffer)
MS\Internal\Ink\StrokeRenderer.cs (18)
49List<Point> connectingQuadPoints = new List<Point>(iterator.Count * 4); 61List<Point> strokeNodePoints = new List<Point>(); 259List<Point> pathFigureABSide = new List<Point>();//don't prealloc. It causes Gen2 collections to rise and doesn't help execution time 260List<Point> pathFigureDCSide = new List<Point>(); 261List<Point> polyLinePoints = new List<Point>(4); 743List<Point> pointBuffer1, 744List<Point> pointBuffer2, 745List<Point> pointBuffer3 798private static void ReverseDCPointsRenderAndClear(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints, List<Point> polyLinePoints, bool isEllipse, bool clear) 863private static void AddFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> points, bool isBezierFigure) 891private static void AddPolylineFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints) 913private static void AddArcToFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints, List<Point> polyLinePoints) 930List<Point> points = j == 0 ? abPoints : dcPoints;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (14)
246private List<HitTestEdge> GrabValidEdges(Point[] visualTexCoordBounds) 249List<HitTestEdge> hitTestEdgeList = new List<HitTestEdge>(); 426List<HitTestEdge> edgeList, 468List<HitTestEdge> edgeList) 472List<Point3D> pointList = new List<Point3D>(); 473List<Point> uvList = new List<Point>(); 587List<HitTestEdge> edgeList) 819List<HitTestEdge> edgeList, 900List<HitTestEdge> edgeList) 902List<Point3D> pointList = new List<Point3D>(); 903List<Point> uvList = new List<Point>(); 1020private bool FindClosestIntersection(Point mousePos, List<HitTestEdge> edges, out Point finalPoint) 1157List<HitTestEdge> edges = null; 1329private List<HitTestEdge> _validEdgesCache = null;
MS\Internal\TextFormatting\FullTextLine.cs (1)
2062List<TextSpan<TextRun>> lsrunList = new List<TextSpan<TextRun>>(2);
MS\Internal\TextFormatting\LineServicesRun.cs (1)
641List<DWriteFontFeature> fontFeatures = new List<DWriteFontFeature>((int)CustomOpenTypeFeatures.Count);
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
898List<IndexedGlyphRun> indexedGlyphRuns = new List<IndexedGlyphRun>(_runs.Length);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (11)
1021private List<Entry> _others; 1290List<Entry> others = (List<Entry>)(_head._key); 1334List<Entry> others = new List<Entry>(2); // by default we have two entries in the extra storage. 1348((List<Entry>)(_head._key)).Add(new Entry(key, value)); 1354((List<Entry>)(_head._key))[index] = new Entry(key, value); 1377List<Entry> others = (List<Entry>)_head._key; 1422value = ((List<Entry>)_head._key)[index]._value; 1447return ((List<Entry>)_head._key).Count; 1467return ((List<Entry>)_head._key)[index]._key;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (2)
355internal BitStreamWriter(List<byte> bufferToWriteTo) 483private List<byte> _targetBuffer = null;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
168List<object> keysToRemove = null;
System\Windows\Automation\Peers\AutomationPeer.cs (12)
267protected abstract List<AutomationPeer> GetChildrenCore(); 546List<AutomationPeer> children = parent.GetChildren(); 700protected virtual List<AutomationPeer> GetControlledPeersCore() 1225public List<AutomationPeer> GetControlledPeers() 1227List<AutomationPeer> result = null; 1252List<AutomationPeer> controlledPeers = GetControlledPeers(); 1428public List<AutomationPeer> GetChildren() 1760List<AutomationPeer> children = GetChildren(); 1888List<AutomationPeer> oldChildren = _children; 1889List<AutomationPeer> addedChildren = null; 2222internal List<AutomationPeer> Children 2507private List<AutomationPeer> _children;
System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (1)
62protected override List<AutomationPeer> GetChildrenCore()
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
59protected override List<AutomationPeer> GetChildrenCore() 61List<AutomationPeer> children = null;
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (2)
57protected override List<AutomationPeer> GetChildrenCore() 59List<AutomationPeer> children = null;
System\Windows\clipboard.cs (2)
357/// NRBF primitive types</see> are also handled, as well as <see cref="List{T}"/> or arrays of these type. Basic 467/// NRBF primitive types</see> are also handled, as well as <see cref="List{T}"/> or arrays of these type. Basic
System\Windows\FreezableCollection.cs (1)
947internal List<T> _collection;
System\Windows\Ink\IncrementalHitTester.cs (5)
144internal List<StrokeInfo> StrokeInfos { get { return _strokeInfos; } } 226List<StrokeInfo> newStrokeInfos = new List<StrokeInfo>(_strokes.Count); 276private List<StrokeInfo> _strokeInfos; 522List<StrokeHitEventArgs> strokeHitEventArgCollection = null; 526List<StrokeIntersection> eraseAt = new List<StrokeIntersection>();
System\Windows\Ink\Stroke.cs (2)
241List<Point> bezierPoints = bezier.Flatten(tolerance); 248private StylusPointCollection GetInterpolatedStylusPoints(List<Point> bezierPoints)
System\Windows\Ink\Stroke2.cs (1)
571List<StrokeIntersection> intersections = new List<StrokeIntersection>();
System\Windows\Ink\StrokeCollection.cs (13)
38List<Stroke> items = (List<Stroke>)this.Items; 279( (List<Stroke>)removed.Items ).Add(this[x]); 297( (List<Stroke>)removed.Items ).Add(removedStroke); 315( (List<Stroke>)addedStrokes.Items ).Add(stroke); 334( (List<Stroke>)removed.Items ).Add(removedStroke); 337( (List<Stroke>)added.Items ).Add(stroke); 397( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 434( (List<Stroke>)this.Items ).AddRange(strokes); 515( (List<Stroke>)this.Items ).RemoveAt(indexes[x]); 521( (List<Stroke>)this.Items ).InsertRange(indexes[0], strokesToReplaceWith); 534( (List<Stroke>)this.Items ).Add(stroke); 847( (List<Stroke>)this.Items ).AddRange(strokeCollection);
System\Windows\Ink\StrokeCollection2.cs (6)
334List<StrokeIntersection> intersections = new List<StrokeIntersection>(); 352List<Stroke> solidStrokes = new List<Stroke>(); 353Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>(); 358List<Stroke> strokes; 377foreach (List<Stroke> strokes in highLighters.Values)
System\Windows\Input\AccessKeyManager.cs (10)
89List<IInputElement> targets = akm.GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty); 215List<IInputElement> targets = GetTargetsForSender(inputElementSender, key); 223List<IInputElement> targets = GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty); 228private ProcessKeyResult ProcessKey(List<IInputElement> targets, string key, bool existsElsewhere, bool userInitiated) 333private List<IInputElement> GetTargetsForSender(IInputElement sender, string key) 341private List<IInputElement> GetTargetsForScope(object scope, string key, IInputElement sender, AccessKeyInformation senderInfo) 369List<IInputElement> possibleElements; 377List<IInputElement> finalTargets = new List<IInputElement>(1); 582private static List<IInputElement> CopyAndPurgeDead(ArrayList elements) 589List<IInputElement> copy = new List<IInputElement>(elements.Count);
System\Windows\Input\Command\CanExecuteChangedEventManager.cs (11)
90List<HandlerSink> list = data as List<HandlerSink>; 91List<HandlerSink> toRemove = null; 188List<HandlerSink> list = (List<HandlerSink>)this[source]; 206List<HandlerSink> list = (List<HandlerSink>)this[source]; 261List<Delegate> list = value as List<Delegate>; 288List<Delegate> list = value as List<Delegate>;
System\Windows\Input\Command\CommandBindingCollection.cs (2)
336System.Collections.Generic.List<CommandBinding> list = new System.Collections.Generic.List<CommandBinding>(0); 382private Collections.Generic.List<CommandBinding> _innerCBList;
System\Windows\Input\Command\CommandManager.cs (1)
554List<ValueTuple<Type, CommandBinding>> list = default; // more than one
System\Windows\Input\Command\InputBindingCollection.cs (3)
359List<InputBinding> oldInputBindings = new List<InputBinding>(_innerBindingList); 379System.Collections.Generic.List<InputBinding> list = new System.Collections.Generic.List<InputBinding>(0); 452private List<InputBinding> _innerBindingList;
System\Windows\Input\Command\InputGestureCollection.cs (2)
158List<InputGesture> list = new List<InputGesture>(0); 438private System.Collections.Generic.List<InputGesture> _innerGestureList;
System\Windows\Input\ManipulationDevice.cs (3)
449List<IManipulator> manipulators = new List<IManipulator>(_manipulators); 465List<IManipulator> manipulators = new List<IManipulator>(_manipulators); 505private List<IManipulator> _manipulators;
System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (1)
259private List<InertiaParameters2D> _inertiaParameters;
System\Windows\Input\ManipulationStartingEventArgs.cs (1)
139private List<ManipulationParameters2D> _parameters;
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (2)
207private List<StrokeInfo> _strokeInfoList = new List<StrokeInfo>(); 1172private List<StrokeInfo> _strokeInfoList = new List<StrokeInfo>();
System\Windows\Input\Stylus\Common\StylusButtonCollection.cs (1)
22internal StylusButtonCollection(List<StylusButton> buttons)
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (14)
47((List<StylusPoint>)this.Items).Capacity = initialCapacity; 72((List<StylusPoint>)this.Items).Capacity = initialCapacity; 85List<StylusPoint> points = new List<StylusPoint>(stylusPoints); 96((List<StylusPoint>)this.Items).Capacity = points.Count; 112List<StylusPoint> stylusPoints = new List<StylusPoint>(); 126((List<StylusPoint>)this.Items).Capacity = stylusPoints.Count; 127((List<StylusPoint>)this.Items).AddRange(stylusPoints); 149((List<StylusPoint>)this.Items).Capacity = logicalPointCount; 189((List<StylusPoint>)this.Items).Add(newPoint); 215((List<StylusPoint>)this.Items).Add(stylusPoint); 376((List<StylusPoint>)newCollection.Items).Add(this[x]); 387((List<StylusPoint>)newCollection.Items).Add(stylusPoint); 423((List<StylusPoint>)this.Items)[i] = stylusPoint; 505((List<StylusPoint>)newCollection.Items).Add(newStylusPoint);
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (3)
47List<StylusPointPropertyInfo> infos = 61List<Guid> seenIds = new List<Guid>(); 350List<StylusPointPropertyInfo> commonProperties = new List<StylusPointPropertyInfo>();
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (1)
259List<StylusPointPropertyInfo> propertyInfos = new List<StylusPointPropertyInfo>();
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
119internal List<TabletDevice> TabletDevices { get; set; } = new List<TabletDevice>();
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (2)
35private static List<UnsafeNativeMethods.INTERACTION_CONTEXT_CONFIGURATION> DefaultConfiguration = 149internal PointerInteractionEngine(PointerStylusDevice stylusDevice, List<UnsafeNativeMethods.INTERACTION_CONTEXT_CONFIGURATION> configuration = null)
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
121List<StylusButton> buttons = new List<StylusButton>();
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
648private List<StylusPlugInCollection> _plugInCollectionList = new List<StylusPlugInCollection>();
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
95List<PointerStylusDevice> pointerStylusDevices = new List<PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceInfo.cs (4)
188List<StylusPointProperty> properties = new List<StylusPointProperty>() 195List<StylusPointProperty> buttonProperties = new List<StylusPointProperty>(); 198List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY> supportedProperties = new List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY>() 204List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY> supportedButtonProperties = new List<UnsafeNativeMethods.POINTER_DEVICE_PROPERTY>();
System\Windows\Input\Stylus\Wisp\PenContext.cs (2)
109List<StylusPointPropertyInfo> propertyInfos = new List<StylusPointPropertyInfo>(cProps + cButtons + 3); 522private List<int> _stylusDevicesInRange;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
544private List<StylusPlugInCollection> _plugInCollectionList = new List<StylusPlugInCollection>();
System\Windows\Input\Stylus\Wisp\PenThreadPool.cs (2)
52private List<WeakReference<PenThread>> _penThreadWeakRefList; 83List<PenThread> ignoredThreads = new List<PenThread>();
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (4)
42private List <WorkerOperation> _workerOperation = new List<WorkerOperation>(); 904List<StylusPointProperty> properties = new List<StylusPointProperty>(cProps + cButtons + 3); 997List <PenContext> penContextRefs = new List<PenContext>(); // keep them alive while processing! 1056List <PenContext> penContextRefs = new List<PenContext>(); // keep them alive while processing!
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (3)
636List<TabletDevice> tabletTemp = new List<TabletDevice>(); 685internal List<TabletDevice> DeferredTablets 699private List<TabletDevice> _deferredTablets = new List<TabletDevice>();
System\Windows\Input\TouchDevice.cs (3)
427List<DependencyObject> others = null; 1214List<TouchDevice> touches = new List<TouchDevice>(); 1316private static List<TouchDevice> _activeDevices;
System\Windows\InterOp\HwndSource.cs (1)
2814private List<HwndSourceKeyboardInputSite> _keyboardInputSinkChildren;
System\Windows\Media\Animation\AnimationLayer.cs (2)
191List<AnimationClock> animationClockList = _animationClocks as List<AnimationClock>;
System\Windows\Media\Animation\Clock.cs (3)
1412List<Clock> parentChildren = _parent.InternalChildren; 4267List<Clock> children = thisGroup.InternalChildren; 4292List<WeakReference> children = ((ClockGroup) this).InternalRootChildren;
System\Windows\Media\Animation\ClockGroup.cs (5)
59internal List<Clock> InternalChildren 72internal List<WeakReference> InternalRootChildren 167List<Clock> children = _children; 610private List<Clock> _children; 611private List<WeakReference> _rootChildren;
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
24private List<BooleanKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
24private List<ByteKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
24private List<CharKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
24private List<ColorKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
24private List<DecimalKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
24private List<DoubleKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
24private List<Int16KeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
24private List<Int32KeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
24private List<Int64KeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
24private List<MatrixKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
24private List<ObjectKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
24private List<Point3DKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
24private List<PointKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
24private List<QuaternionKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
24private List<RectKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
24private List<Rotation3DKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
24private List<SingleKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
24private List<SizeKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
635List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 830List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
24private List<StringKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
24private List<Vector3DKeyFrame> _keyFrames;
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
24private List<VectorKeyFrame> _keyFrames;
System\Windows\Media\Animation\ParallelTimeline.cs (1)
91List<Clock> children = clockGroup.InternalChildren;
System\Windows\Media\Animation\TimelineClockCollection.cs (4)
31List<Clock> childList = clockGroup.InternalChildren; 123List<Clock> list = clockGroup.InternalChildren; 150List<Clock> list = null; 274List<Clock> list = null;
System\Windows\Media\Animation\WeakRefEnumerator.cs (2)
27internal WeakRefEnumerator(List<WeakReference> list) 174private List<WeakReference> _list;
System\Windows\Media\ColorContext.cs (1)
343List<ColorContext> colorContextsList = null;
System\Windows\Media\Effects\ShaderEffect.cs (6)
466private static void StashInPosition<T>(ref List<T?> list, int position, T value, int maxIndex, ref uint count) where T : struct 729private void AppendRegisters<T>(DUCE.Channel channel, List<T?> list) where T : struct 1081private List<MilColorF?> _floatRegisters = null; 1082private List<MilColorI?> _intRegisters = null; 1083private List<bool?> _boolRegisters = null; 1084private List<SamplerData?> _samplerData = null;
System\Windows\Media\FamilyMap.cs (1)
226List<Range> ranges = new List<Range>(3);
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1624internal List<BitmapFrame> _frames;
System\Windows\Media\Imaging\BitmapDownload.cs (1)
25internal List<WeakReference> decoders;
System\Windows\Media\Imaging\BitmapMetadata.cs (5)
142List<SafeMILHandle> metadataBlocks = blockWriter.MetadataBlocks; 256List<SafeMILHandle> metadataBlocks = new(); 424internal List<SafeMILHandle> MetadataBlocks 434private List<SafeMILHandle> _metadataBlocks; 570private readonly List<SafeMILHandle> _metadataBlocks;
System\Windows\Media\Imaging\BitmapPalette.cs (1)
302List<Color> colors = new List<Color>();
System\Windows\Media\PathGeometry.cs (1)
242List<Point> points = new List<Point>((int)pSegmentPoly->Count);
System\Windows\Media\SolidColorBrush.cs (4)
252revDictionary = new Dictionary<TValue, List<TKey>>(valueComparer); 260public bool TryGetKeys(TValue value, out List<TKey> keys) 286List<TKey> keys; 305private Dictionary<TValue, List<TKey>> revDictionary;
System\Windows\Media3D\Matrix3DStack.cs (1)
102private readonly List<Matrix3D> _stack = new List<Matrix3D>();
System\Windows\Media3D\RayHitTestParameters.cs (1)
211private readonly List<RayHitTestResult> results = new List<RayHitTestResult>();
System\Windows\Nrbf\SerializationRecordExtensions.cs (4)
114/// Trys to get this object as a <see cref="List{T}"/> of <see cref="PrimitiveType"/>. 129|| classInfo.TypeName.GetGenericTypeDefinition().Name != typeof(List<>).Name 358internal static List<T> CreateTrimmedList<T>(this IReadOnlyList<T> readOnlyList, int count) 370List<T> list = new(readOnlyList);
System\Windows\UIElement.cs (2)
4647internal static List<double> DpiScaleXValues = new List<double>(3); 4648internal static List<double> DpiScaleYValues = new List<double>(3);
PresentationCore.Tests (1)
System\Windows\Media\Animation\KeySplineConverter.Tests.cs (1)
310yield return new object[] { new KeySpline(0.1, 0.2, 0.3, 0.4), typeof(List<int>), CultureInfo.InvariantCulture };
PresentationFramework (1094)
Microsoft\Win32\FileDialog.cs (1)
676List<string> extensions = new();
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
229List<ContentLocatorPart> res = new List<ContentLocatorPart>(1);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (5)
636List<ContentLocatorBase> locatorsToReturn = new List<ContentLocatorBase>(); 716List<ContentLocatorBase> tempLocators = new List<ContentLocatorBase>(locatorsToReturn.Count * locatorParts.Count); 1209List<ContentLocatorBase> res = new List<ContentLocatorBase>(1); 1252public List<IAttachedAnnotation> AttachedAnnotations 1298private List<IAttachedAnnotation> _attachedAnnotations = new List<IAttachedAnnotation>();
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (6)
416internal static List<ITextView> GetDocumentPageTextViews(TextSegment segment) 418List<ITextView> res = null; 477private static List<ITextView> ProcessSinglePage(IDocumentPaginatorSource idp, int pageNumber) 483List<ITextView> res = null; 503private static List<ITextView> ProcessMultiplePages(IDocumentPaginatorSource idp, int startPageNumber, int endPageNumber) 520List<ITextView> res = null;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
163List<ContentLocatorPart> res = new List<ContentLocatorPart>(1);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
126List<ContentLocatorPart> res = null;
MS\Internal\Annotations\AnnotationMap.cs (10)
23List<IAttachedAnnotation> list = null; 39List<IAttachedAnnotation> list = null; 67internal List<IAttachedAnnotation> GetAttachedAnnotations(Guid annotationId) 69List<IAttachedAnnotation> list = null; 85internal List<IAttachedAnnotation> GetAllAttachedAnnotations() 87List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(_annotationIdToAttachedAnnotations.Keys.Count); 91List<IAttachedAnnotation> list = _annotationIdToAttachedAnnotations[annId]; 105private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>(); 108private static readonly List<IAttachedAnnotation> _emptyList = new List<IAttachedAnnotation>(0);
MS\Internal\Annotations\AnnotationObservableCollection.cs (1)
55public AnnotationObservableCollection(List<T> list) : base(list)
MS\Internal\Annotations\AnnotationResourceCollection.cs (1)
73List<AnnotationResource> list = new List<AnnotationResource>(this);
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (4)
327List<AnnotationAdorner> adorners = GetTopAnnotationAdorners(level, component); 389private List<AnnotationAdorner> GetTopAnnotationAdorners(int level, IAnnotationComponent component) 391List<AnnotationAdorner> res = new List<AnnotationAdorner>(); 423private void AddAdorner(List<AnnotationAdorner> adorners, AnnotationAdorner adorner)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (7)
605List<IHighlightRange> list = new List<IHighlightRange>(1); 722private void AddActiveOwners(List<IHighlightRange> owners) 917List<ITextView> textViews = TextSelectionHelper.GetDocumentPageTextViews(segment); 1195private List<TextSegment> _contentSegments = new List<TextSegment>(1); 1196private readonly List<IHighlightRange> _owners; 1197private List<IHighlightRange> _activeOwners = new List<IHighlightRange>(); 1216private List<HighlightSegment> _segments;
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (4)
895List<MarkedHighlightComponent> components = componentsRegister.Components; 965List<MarkedHighlightComponent> components = registry.Components; 1062public List<MarkedHighlightComponent> Components 1116private List<MarkedHighlightComponent> _components;
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (2)
197public List<Annotation> FindDirtyAnnotations() 199List<Annotation> annotations = new List<Annotation>();
MS\Internal\Annotations\TextAnchor.cs (2)
593List<TextSegment> orderedList = new List<TextSegment>(textSegments.Count); 746private List<TextSegment> _segments = new List<TextSegment>(1);
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (2)
142internal void UpdateSelectionWireFrame(Rect strokesBounds, List<Rect> hatchBounds) 432private List<Rect> _elementsBounds;
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
867private List<CollectionViewGroupInternal> _toRemove;
MS\Internal\Data\CollectionViewGroupRoot.cs (5)
231internal void RestoreGrouping(LiveShapingItem lsi, List<AbandonedGroupItem> deleteList) 238private void RestoreGrouping(LiveShapingItem lsi, GroupTreeNode node, int level, List<AbandonedGroupItem> deleteList) 333List<CollectionViewGroupInternal> parentGroups = lsi.ParentGroups; 334List<GroupTreeNode> list = new List<GroupTreeNode>(parentGroups.Count + 1); 388internal void DeleteAbandonedGroupItems(List<AbandonedGroupItem> deleteList)
MS\Internal\Data\CollectionViewProxy.cs (2)
995internal override void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources)
MS\Internal\Data\CommitManager.cs (11)
43internal List<BindingGroup> GetBindingGroupsInScope(DependencyObject element) 47List<BindingGroup> fullList = _bindingGroups.ToList(); 48List<BindingGroup> list = EmptyBindingGroupList; 67internal List<BindingExpressionBase> GetBindingsInScope(DependencyObject element) 71List<BindingExpressionBase> fullList = _bindings.ToList(); 72List<BindingExpressionBase> list = EmptyBindingList; 101List<BindingExpressionBase> list = _bindings.ToList(); 113List<BindingGroup> list = _bindingGroups.ToList(); 143private static readonly List<BindingGroup> EmptyBindingGroupList = new List<BindingGroup>(); 144private static readonly List<BindingExpressionBase> EmptyBindingList = new List<BindingExpressionBase>(); 180public List<T> ToList()
MS\Internal\Data\CompositeCollectionView.cs (2)
821internal override void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources)
MS\Internal\Data\LiveShapingBlock.cs (2)
274List<LiveShapingBlock> list = new List<LiveShapingBlock>(); // subtrees to explore 355List<LiveShapingBlock> list = new List<LiveShapingBlock>(); // subtrees to explore
MS\Internal\Data\LiveShapingItem.cs (6)
180List<CollectionViewGroupInternal> list; 186else if ((list = o as List<CollectionViewGroupInternal>) == null) 202List<CollectionViewGroupInternal> list = o as List<CollectionViewGroupInternal>; 221internal List<CollectionViewGroupInternal> ParentGroups 223get { return GetValue(ParentGroupsProperty) as List<CollectionViewGroupInternal>; }
MS\Internal\Data\LiveShapingList.cs (8)
491internal List<LiveShapingItem> SortDirtyItems { get { return _sortDirtyItems; } } 492internal List<LiveShapingItem> FilterDirtyItems { get { return _filterDirtyItems; } } 493internal List<LiveShapingItem> GroupDirtyItems { get { return _groupDirtyItems; } } 742private List<string> _unusedKeys; 786private List<LiveShapingItem> _sortDirtyItems; // list of items needing sorting fixup 787private List<LiveShapingItem> _filterDirtyItems; // list of items needing filtering fixup 788private List<LiveShapingItem> _groupDirtyItems; // list of items needing grouping fixup 793private static List<DependencyProperty> s_dpList = new List<DependencyProperty>();
MS\Internal\Data\PathParser.cs (1)
382private readonly List<SourceValueInfo> _sourceValueInfos = new();
MS\Internal\Data\PropertyPathWorker.cs (2)
1313List<MemberInfo> list = new List<MemberInfo>(); 1818typeof(System.Collections.Generic.List<>),
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
569private List<String> _toRemove = new List<String>();
MS\Internal\Data\ValueChangedEventManager.cs (1)
384private List<PropertyDescriptor> _toRemove = new List<PropertyDescriptor>();
MS\Internal\Data\ValueTable.cs (1)
243List<PropertyDescriptor> result = new List<PropertyDescriptor>();
MS\Internal\Documents\ContentHostHelper.cs (2)
87List<DocumentPageView> pageViews; 143private static void FindDocumentPageViews(Visual root, List<DocumentPageView> pageViews)
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
919private List<AsyncRequest> _asyncRequests = new List<AsyncRequest>(0);
MS\Internal\Documents\MultiPageTextView.cs (2)
684List<TextSegment> textSegments = new List<TextSegment>(); 1557private List<DocumentPageTextView> _pageTextViews;
MS\Internal\Documents\PageCache.cs (10)
367List<PageCacheChange> changes = new List<PageCacheChange>(2); 530List<PageCacheChange> changes = new List<PageCacheChange>(1); 617List<PageCacheChange> changes = new List<PageCacheChange>(2); 705List<PageCacheChange> changes = new List<PageCacheChange>(PageCount); 733private void FirePageCacheChangedEvent(List<PageCacheChange> changes) 845List<PageCacheChange> changes = new List<PageCacheChange>(1); 871private List<PageCacheEntry> _cache; 1037public PageCacheChangedEventArgs(List<PageCacheChange> changes) 1045public List<PageCacheChange> Changes 1053private readonly List<PageCacheChange> _changes;
MS\Internal\Documents\ParagraphResult.cs (1)
404internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end)
MS\Internal\Documents\RowCache.cs (8)
477List<RowCacheChange> changes = new List<RowCacheChange>(1); 570List<RowCacheChange> changes = new List<RowCacheChange>(1); 672List<RowInfo> tempRows = new List<RowInfo>(pivotPage / columns); 1200List<RowCacheChange> changes = new List<RowCacheChange>(args.Changes.Count); 1316private List<RowInfo> _rowCache; 1499public RowCacheChangedEventArgs(List<RowCacheChange> changes) 1507public List<RowCacheChange> Changes 1515private readonly List<RowCacheChange> _changes;
MS\Internal\Documents\TextBoxLine.cs (2)
251internal List<Rect> GetRangeBounds(int cp, int cch, double xOffset, double yOffset) 253List<Rect> rectangles = new List<Rect>();
MS\Internal\Documents\TextBoxView.cs (5)
1255List<TextSegment> segments = new List<TextSegment>(1); 2613List<TextBoxLineDrawingVisual> oldLineVisuals = _viewportLineVisuals; 3200private List<TextBoxLineDrawingVisual> _visualChildren; 3203private List<LineRecord> _lineMetrics; 3206private List<TextBoxLineDrawingVisual> _viewportLineVisuals;
MS\Internal\Documents\TextContainerHelper.cs (6)
80List<TextSegment> segments; 307internal static List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end, ITextPointer ownerContentStart) 312List<AutomationPeer> peers = new List<AutomationPeer>(); 432List<object> ancestorsStart, ancestorsEnd; 433List<ITextPointer> positionsStart, positionsEnd; 728private static void iterate(Visual parent, List<AutomationPeer> peers)
MS\Internal\Documents\TextDocumentView.cs (5)
355List<GlyphRun> glyphRuns = new List<GlyphRun>(); 3085private bool GetGlyphRunsFromParagraphs(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> paragraphs) 3137private void GetGlyphRunsFromFloatingElements(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> floatingElements, out bool success) 3180private void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements) 3245List<TextSegment> segments = new List<TextSegment>(1);
MS\Internal\Documents\TextParagraphView.cs (1)
478List<TextSegment> segments = new List<TextSegment>(1);
MS\Internal\Documents\UIElementIsland.cs (1)
207List<IInputElement> hostedElements = new List<IInputElement>();
MS\Internal\Documents\UndoManager.cs (4)
696List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoCount); 748List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoLimit); 1065protected List<IUndoUnit> UndoStack 1164private List<IUndoUnit> _undoStack; // stack of undo units
MS\Internal\Globalization\BamlResourceContent.cs (1)
188List<BamlStringToken> tokens = new(8);
MS\Internal\Globalization\BamlResourceSerializer.cs (1)
90private void PushChildrenToStack(List<BamlTreeNode> children)
MS\Internal\Globalization\BamlTreeNode.cs (6)
70List<BamlTreeNode> newNodeList = new List<BamlTreeNode>(Size); 92private void CreateInternalIndex(ref BamlTreeNode parent, ref List<BamlTreeNode> nodeList, bool toCopy) 95List<BamlTreeNode> children = parent.Children; 134private List<BamlTreeNode> _nodeList; // stores flattened baml tree in depth first order 232internal List<BamlTreeNode> Children 335protected List<BamlTreeNode> _children; // the children list.
MS\Internal\Globalization\BamlTreeUpdater.cs (3)
45List<KeyValuePair<BamlLocalizableResourceKey, BamlLocalizableResource>> deferredResources = new(); 261List<BamlTreeNode> oldChildren = parent.Children; 565List<BamlTreeNode> list = new();
MS\Internal\Globalization\LocalizationComments.cs (1)
81List<PropertyComment> tokens = new List<PropertyComment>(8);
MS\Internal\Helper.cs (19)
752List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item); 774List<KeyValuePair<int, object>> itemValues = EnsureItemValues(owner, item); 805List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item); 826internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item) 831internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item, 832WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage) 835List<KeyValuePair<int, object>> itemValues = null; 843internal static List<KeyValuePair<int, object>> EnsureItemValues(DependencyObject owner, object item) 845WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage = EnsureItemValueStorage(owner); 846List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item, itemValueStorage); 858internal static WeakDictionary<object, List<KeyValuePair<int, object>>> EnsureItemValueStorage(DependencyObject owner) 860WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage = ItemValueStorageField.GetValue(owner); 864itemValueStorage = new WeakDictionary<object, List<KeyValuePair<int, object>>>(); 879List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item) ?? new List<KeyValuePair<int, object>>(); 1024private static void ClearItemValueStorageRecursive(WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage, int[] dpIndices) 1028foreach (List<KeyValuePair<int, object>> itemValuesList in itemValueStorage.Values) 1035ClearItemValueStorageRecursive((WeakDictionary<object, List<KeyValuePair<int, object>>>)itemValue.Value, dpIndices); 1519private static readonly UncommonField<WeakDictionary<object, List<KeyValuePair<int, object>>>> ItemValueStorageField = 1520new UncommonField<WeakDictionary<object, List<KeyValuePair<int, object>>>>();
MS\Internal\Ink\ClipboardProcessor.cs (6)
135List<UIElement> elements = new List<UIElement>(inkCanvasSelection.SelectedElements); 180internal bool PasteData(IDataObject dataObject, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 199List<UIElement> elements = xamlData.Elements; 314private bool CopySelectionInXAML(IDataObject dataObject, StrokeCollection strokes, List<UIElement> elements, Matrix transform, Size size) 370private void TearDownInkCanvasContainer(InkCanvas rootInkCanvas, ref StrokeCollection newStrokes, ref List<UIElement> newElements) 376List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.Count);
MS\Internal\Ink\ElementsClipboardData.cs (3)
49internal List<UIElement> Elements 75protected List<UIElement> ElementList 97private List<UIElement> _elementList;
MS\Internal\Ink\HighContrastHelper.cs (1)
214private static List<WeakReference> __highContrastCallbackList;
MS\Internal\Ink\InkCanvasSelection.cs (3)
827private List<Rect> GetElementsBounds() 829List<Rect> rects = new List<Rect>(); 1109private List<UIElement> _selectedElements;
MS\Internal\Ink\LassoHelper.cs (3)
35private List<Point> _lasso = null; 65public Point[] AddPoints(List<Point> points) 72List<Point> justAdded = new List<Point>();
MS\Internal\Ink\LassoSelectionBehavior.cs (11)
127List<Point> points = new List<Point>(); 179List<Point> points = new List<Point>(); 195List<Point> points = new List<Point>(); 237List<UIElement> elementsToSelect = new List<UIElement>(); 335private List<UIElement> HitTestForElements() 337List<UIElement> elementsToSelect = new List<UIElement>(); 357private void HitTestElement(InkCanvasInnerCanvas parent, UIElement uiElement, List<UIElement> elementsToSelect) 429List<Point> pointArray = new(4); 454private void FillInPoints(List<Point> pointArray, Point point1, Point point2) 479private void FillInGrid(List<Point> pointArray, 583private void StartLasso(List<Point> points)
MS\Internal\LayoutDump.cs (2)
356List<UIElement> uiElements = new List<UIElement>(); 418internal static void GetUIElementsFromVisual(Visual visual, List<UIElement> uiElements)
MS\Internal\PtsHost\BaseParaClient.cs (2)
124internal virtual List<Rect> GetRectangles(ContentElement e, int start, int length) 135internal virtual void GetRectanglesForParagraphElement(out List<Rect> rectangles)
MS\Internal\PtsHost\BreakRecordTable.cs (1)
498private List<BreakRecordTableEntry> _breakRecords;
MS\Internal\PtsHost\ContainerParaClient.cs (3)
127internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 129List<Rect> rectangles = new List<Rect>(); 339List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length);
MS\Internal\PtsHost\FigureParaClient.cs (7)
279internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 281List<Rect> rectangles = new List<Rect>(); 316List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]); 549List<ParagraphResult> paragraphResults; 643List<ColumnResult> columnResults = new List<ColumnResult>(0); 772List<ParagraphResult> floatingElements = new List<ParagraphResult>(0); 773List<BaseParaClient> floatingElementList = _pageContextOfThisPage.FloatingElementList;
MS\Internal\PtsHost\FloaterParaClient.cs (7)
284internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 286List<Rect> rectangles = new List<Rect>(); 321List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]); 557List<ParagraphResult> paragraphResults; 652List<ColumnResult> columnResults = new List<ColumnResult>(0); 781List<ParagraphResult> floatingElements = new List<ParagraphResult>(0); 782List<BaseParaClient> floatingElementList = _pageContextOfThisPage.FloatingElementList;
MS\Internal\PtsHost\FlowDocumentPage.cs (6)
312List<Rect> rectangles = new List<Rect>(); 334List<Rect> transformedRectangles = new List<Rect>(rectangles.Count); 379List<ParagraphResult> floatingElements = new List<ParagraphResult>(0); 380List<BaseParaClient> floatingElementList = _ptsPage.PageContext.FloatingElementList; 413List<ColumnResult> columnResults = new List<ColumnResult>(0); 580List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length);
MS\Internal\PtsHost\Line.cs (6)
283List<InlineObject> inlineObjects = new List<InlineObject>(1); 486internal List<Rect> GetRangeBounds(int cp, int cch, double xOffset, double yOffset) 488List<Rect> rectangles = new List<Rect>(); 652internal void GetGlyphRuns(List<GlyphRun> glyphRuns, int dcpStart, int dcpEnd) 675List<GlyphRun> glyphRunsCollection = new(4); 1056private static void AddGlyphRunRecursive(Drawing drawing, List<GlyphRun> glyphRunsCollection, ref int cchGlyphRuns)
MS\Internal\PtsHost\PtsCache.cs (2)
750private List<ContextDesc> _contextPool; 755private List<PtsContext> _releaseQueue;
MS\Internal\PtsHost\PtsContext.cs (1)
139List<AttachedObject> attachedObjects = ((TextParagraph)objDbg).AttachedObjectDbg;
MS\Internal\PtsHost\PtsHelper.cs (8)
68internal static void UpdateFloatingElementVisuals(ContainerVisual visual, List<BaseParaClient> floatingElementList) 439internal static List<Rect> GetRectanglesInTrack( 446List<Rect> rectangles = new List<Rect>(); 478internal static List<Rect> GetRectanglesInParaList( 485List<Rect> rectangles = new List<Rect>(); 512internal static List<Rect> OffsetRectangleList(List<Rect> rectangleList, double xOffset, double yOffset) 514List<Rect> offsetRectangles = new List<Rect>(rectangleList.Count);
MS\Internal\PtsHost\PtsHost.cs (2)
1963List<AttachedObject> attachedObjects = para.GetAttachedObjects(dcpFirst, dcpLast); 2078List<AttachedObject> attachedObjects = para.GetAttachedObjects(dcpLast, dcpLim);
MS\Internal\PtsHost\PtsPage.cs (9)
224internal List<Rect> GetRectangles(ContentElement e, int start, int length) 226List<Rect> rectangles = new List<Rect>(); 1246private List<Rect> GetRectanglesInPage(ContentElement e, int start, int length) 1249List<Rect> rectangles = new List<Rect>(); 1366private List<Rect> GetRectanglesInSection( 1377List<Rect> rectangles = new List<Rect>(); 1404List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]); 1537internal List<BaseParaClient> FloatingElementList { get { return _floatingElementList; } } 1568private List<BaseParaClient> _floatingElementList;
MS\Internal\PtsHost\SubpageParaClient.cs (7)
218internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 220List<Rect> rectangles = new List<Rect>(); 254List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]); 538List<ColumnResult> columnResults = new List<ColumnResult>(0); 619List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 691List<ParagraphResult> floatingElements = new List<ParagraphResult>(0); 692List<BaseParaClient> floatingElementList = _pageContextOfThisPage.FloatingElementList;
MS\Internal\PtsHost\TableParaClient.cs (6)
429internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 433List<Rect> rectangles = new List<Rect>(); 690List<ParagraphResult> rowParagraphResults = new List<ParagraphResult>(0); 733List<ParagraphResult> cellParagraphResults = new List<ParagraphResult>(0); 783List<ParagraphResult> listResults = new List<ParagraphResult>(0); 804List<ParagraphResult> listResults = new List<ParagraphResult>(0);
MS\Internal\PtsHost\TextParaClient.cs (26)
247internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 249List<Rect> rectangles = new List<Rect>(); 382List<ParagraphResult> floaters = null; 420List<ParagraphResult> figures = null; 1104internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end) 1261List<InlineObject> inlineObjects = TextParagraph.InlineObjectsFromRange(lineDesc.dcpFirst, lineDesc.dcpLim); 1295List<InlineObject> inlineObjects = TextParagraph.InlineObjectsFromRange(element.dcpFirst, element.dcpLim); 1525List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 1577List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 2058private List<Rect> RectanglesFromDcpRangeOfSimpleLine( 2067List<Rect> rectangles = null; 2169private List<Rect> RectanglesFromDcpRangeOfCompositeLineElement( 2180List<Rect> rectangles = null; 3089List<GlyphRun> glyphRuns, 3142List<GlyphRun> glyphRuns, 3855private List<Rect> GetRectanglesInSimpleLines( 3863List<Rect> rectangles = new List<Rect>(); 3883List<Rect> lineRectangles = GetRectanglesInSingleLine(lineDesc, e, localStart, length); 3897private List<Rect> GetRectanglesInSingleLine( 3905List<Rect> rectangles = new List<Rect>(); 4035private List<Rect> GetRectanglesInCompositeLines( 4043List<Rect> rectangles = new List<Rect>(); 4062List<Rect> lineRectangles = GetRectanglesInCompositeLine(lineDesc, e, localStart, length); 4079private List<Rect> GetRectanglesInCompositeLine( 4085List<Rect> rectangles = new List<Rect>(); 4139List<Rect> elementRectangles = line.GetRangeBounds(localStart, localEnd - localStart, TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
MS\Internal\PtsHost\TextParagraph.cs (16)
881private List<TextElement> GetAttachedObjectElements(int dcpFirst, int dcpLast) 883List<TextElement> attachedElements = new List<TextElement>(); 922List<TextElement> textElements = GetAttachedObjectElements(dcpFirst, dcpLast); 935internal List<AttachedObject> GetAttachedObjects(int dcpFirst, int dcpLast) 938List<AttachedObject> attachedObjects = new List<AttachedObject>(); 939List<TextElement> textElements = GetAttachedObjectElements(dcpFirst, dcpLast); 1020internal void SubmitInlineObjects(int dcpStart, int dcpLim, List<InlineObject> inlineObjects) 1038internal void SubmitAttachedObjects(int dcpStart, int dcpLim, List<AttachedObject> attachedObjects) 1052internal List<InlineObject> InlineObjectsFromRange(int dcpStart, int dcpLast) 1054List<InlineObject> objects = null; 1521private void SubmitEmbeddedObjects<T>(ref List<T> objectsCached, int dcpStart, int dcpLim, List<T> objectsNew) where T : EmbeddedObject 1634ref List<T> objectsCached, 1738private List<AttachedObject> _attachedObjects; 1740internal List<AttachedObject> AttachedObjectDbg { get { return _attachedObjects; } } 1746private List<InlineObject> _inlineObjects;
MS\Internal\PtsHost\UIElementParaClient.cs (2)
83internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 85List<Rect> rectangles = new List<Rect>();
MS\Internal\Text\Line.cs (2)
152internal List<Rect> GetRangeBounds(int cp, int cch, double xOffset, double yOffset) 154List<Rect> rectangles = new List<Rect>();
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (4)
100public static List<ComInterfaceEntry> GetInterfaceTableEntries(object obj) 102var entries = new List<ComInterfaceEntry>(); 145public static (InspectableInfo inspectableInfo, List<ComInterfaceEntry> interfaceTableEntries) PregenerateNativeTypeInformation(object obj) 147var interfaceTableEntries = GetInterfaceTableEntries(obj);
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (1)
73var entries = ComWrappersSupport.GetInterfaceTableEntries(obj);
MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
85private static List<string> ScriptCodesRequiringDedicatedSegmenter { get; } = new List<string>
System\Windows\Annotations\AnnotationHelper.cs (5)
722List<IAttachedAnnotation> attachedAnnotations = null; 723List<Annotation> annotations = new List<Annotation>(); 753private static void AddRange(List<Annotation> annotations, IList<Annotation> newAnnotations) 773private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations) 776List<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(annotations.Count);
System\Windows\Annotations\AnnotationService.cs (19)
793List<IAttachedAnnotation> annotations = obj as List<IAttachedAnnotation>; 800List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 861List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 915List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 964List<IAttachedAnnotation> existingAnnotations = _annotationMap.GetAllAttachedAnnotations(); 1167List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(); 1168DescendentsWalker<List<IAttachedAnnotation>> walker = new DescendentsWalker<List<IAttachedAnnotation>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result); 1182private bool GetAttachedAnnotationsFor(DependencyObject node, List<IAttachedAnnotation> result, bool visitedViaVisualTree) 1187List<IAttachedAnnotation> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1280List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(annotation.Anchors.Count); 1312List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(list.Length); 1473List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1501List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1616private void FireEvents(List<AttachedAnnotationChangedEventArgs> eventsToFire)
System\Windows\Annotations\LocatorGroup.cs (1)
217List<ContentLocatorBase> tempList = new List<ContentLocatorBase>(locatorGroup.Locators.Count * (this.Locators.Count - 1));
System\Windows\Annotations\LocatorPartList.cs (1)
349List<ContentLocatorBase> results = null;
System\Windows\Annotations\Storage\XmlStreamStore.cs (7)
541private List<Guid> FindAnnotationIds(string queryExpression) 547List<Guid> retObj = null; 645private IList<Annotation> MergeAndCacheAnnotations(Dictionary<Guid, Annotation> mapAnnotations, List<Guid> storeAnnotationsId) 648List<Annotation> annotations = new List<Annotation>((IEnumerable<Annotation>)mapAnnotations.Values); 688List<Guid> annotationIds = FindAnnotationIds(query); 944List<Annotation> mapAnnotations = _storeAnnotationsMap.FindDirtyAnnotations(); 1033private List<Uri> _ignoredNamespaces = new List<Uri>();
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (4)
102protected override List<AutomationPeer> GetChildrenCore() 109List<AutomationPeer> peers = new List<AutomationPeer>(); 456List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 603List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>();
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (2)
64protected override List<AutomationPeer> GetChildrenCore() 66List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (1)
86internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (7)
42protected override List<AutomationPeer> GetChildrenCore() 44List<AutomationPeer> children = base.GetChildrenCore(); 173List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(); 238List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 272List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(); 414private void AddSelectedCells(List<IRawElementProviderSimple> cellProviders) 436private void AddSelectedRows(List<IRawElementProviderSimple> itemProviders)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (4)
93protected override List<AutomationPeer> GetChildrenCore() 103List<AutomationPeer> children = wrapperPeer.GetChildren(); 567List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(1); 589List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(1);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (2)
58protected override List<AutomationPeer> GetChildrenCore() 60List<AutomationPeer> children = null;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (5)
44protected override List<AutomationPeer> GetChildrenCore() 54List<AutomationPeer> children = wrapperPeer.GetChildren(); 373List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(); 406internal List<AutomationPeer> GetCellItemPeers() 408List<AutomationPeer> children = null;
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (2)
50protected override List<AutomationPeer> GetChildrenCore() 57List<AutomationPeer> children = new List<AutomationPeer>(3);
System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (2)
87protected override List<AutomationPeer> GetChildrenCore() 89List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
194protected override List<AutomationPeer> GetChildrenCore()
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
55protected override List<AutomationPeer> GetChildrenCore() 198internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\DocumentPageViewAutomationPeer.cs (1)
33protected override List<AutomationPeer> GetChildrenCore()
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (2)
60protected override List<AutomationPeer> GetChildrenCore() 63List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\ExpanderAutomationPeer.cs (2)
30protected override List<AutomationPeer> GetChildrenCore() 32List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\FlowDocumentPageViewerAutomationPeer.cs (2)
33protected override List<AutomationPeer> GetChildrenCore() 36List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (2)
52protected override List<AutomationPeer> GetChildrenCore() 55List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\FlowDocumentScrollViewerAutomationPeer.cs (2)
77protected override List<AutomationPeer> GetChildrenCore() 80List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (5)
64List<AutomationPeer> IViewAutomationPeer.GetChildren(List<AutomationPeer> children) 132List<IRawElementProviderSimple> array = new List<IRawElementProviderSimple>(_owner.HeaderRowPresenter.ActualColumnHeaders.Count); 236List<AutomationPeer> columns = peer.GetChildren(); 266List<AutomationPeer> list = lvPeer.GetChildren();
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (3)
74List<AutomationPeer> children = GetChildrenAutomationPeer(Owner, includeInvisibleItems); 136private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent, bool includeInvisibleItems) 140List<AutomationPeer> children = null;
System\Windows\Automation\Peers\GridViewHeaderRowPresenterAutomationPeer.cs (3)
37protected override List<AutomationPeer> GetChildrenCore() 39List<AutomationPeer> list = base.GetChildrenCore(); 40List<AutomationPeer> newList = null;
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
36protected override List<AutomationPeer> GetChildrenCore() 51List<AutomationPeer> list = new List<AutomationPeer>();
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (3)
111protected override List<AutomationPeer> GetChildrenCore() 120List<AutomationPeer> children = new List<AutomationPeer>(); 283internal void InvalidateGroupItemPeersContainingRecentlyRealizedPeers(List<ItemAutomationPeer> recentlyRealizedPeers)
System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
182protected override List<AutomationPeer> GetChildrenCore() 189List<AutomationPeer> children = wrapperPeer.GetChildren();
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (6)
54protected override List<AutomationPeer> GetChildrenCore() 56List<AutomationPeer> children = null; 500internal List<ItemAutomationPeer> RecentlyRealizedPeers 516private List<ItemAutomationPeer> _recentlyRealizedPeers; // *** DEAD CODE Only use is from dead code when UseNetFx472CompatibleAccessibilityFeatures==true *** 661List<object> cleanUpItemsCollection = new List<object>(); 723private List<KeyValuePair<object, T>> _list = null;
System\Windows\Automation\Peers\IViewAutomationPeer.cs (2)
35List<AutomationPeer> GetChildren(List<AutomationPeer> children);
System\Windows\Automation\Peers\ListViewAutomationPeer.cs (2)
56protected override List<AutomationPeer> GetChildrenCore() 64List<AutomationPeer> ret = base.GetChildrenCore();
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
160protected override List<AutomationPeer> GetChildrenCore() 162List<AutomationPeer> children = base.GetChildrenCore();
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (1)
152internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
69protected override List<AutomationPeer> GetChildrenCore() 78internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
91List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(count);
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (5)
32protected override List<AutomationPeer> GetChildrenCore() 34List<AutomationPeer> list = new List<AutomationPeer>(); 61List<AutomationPeer> childList = GetChildrenAutomationPeer(item); 82private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent) 86List<AutomationPeer> children = null;
System\Windows\Automation\Peers\TabItemAutomationPeer.cs (3)
49protected override List<AutomationPeer> GetChildrenCore() 52List<AutomationPeer> headerChildren = base.GetChildrenCore(); 65List<AutomationPeer> contentChildren = contentHostPeer.GetChildren();
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
111internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (2)
30protected override List<AutomationPeer> GetChildrenCore() 32List<AutomationPeer> peers = null;
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (1)
123internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
36protected override List<AutomationPeer> GetChildrenCore() 204internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (2)
53protected override List<AutomationPeer> GetChildrenCore() 63List<AutomationPeer> children = null;
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (2)
50protected override List<AutomationPeer> GetChildrenCore() 52List<AutomationPeer> children = null;
System\Windows\BroadcastEventHelper.cs (4)
230internal BroadcastEventData(DependencyObject root, RoutedEvent routedEvent, List<DependencyObject> eventRoute) 239internal List<DependencyObject> EventRoute; 255List<DependencyObject> eventRoute = new List<DependencyObject>(); 287List<DependencyObject> eventRoute = data.EventRoute;
System\Windows\Controls\AlternationConverter.cs (1)
56private List<object> _values = new List<object>();
System\Windows\Controls\CustomDictionarySources.cs (1)
356private readonly List<Uri> _uriList;
System\Windows\Controls\DataGrid.cs (11)
413internal List<int> DisplayIndexMap 2121List<int> columnIndexRanges = null; 3634List<int> columnIndexRanges = null; 5330List<Tuple<int, int>> ranges = null; 7215private List<int> GroupingSortDescriptionIndices 7547List<int> groupingSortDescriptionIndices = GroupingSortDescriptionIndices; 7603List<Tuple<int, int>> ranges = new List<Tuple<int, int>>(); 7682List<ItemInfo> list = new List<ItemInfo>(); 7702List<ItemInfo> list = new List<ItemInfo>(); 8595private List<ItemInfo> _pendingInfos; // Selected items whose index is not yet known 8610private List<int> _groupingSortDescriptionIndices = null; // List to hold the indices of SortDescriptions added for the sake of GroupDescriptions.
System\Windows\Controls\DataGridCellsPanel.cs (32)
164List<RealizedColumnsBlock> blockList = RealizedColumnsBlockList; 219List<int> realizedColumnIndices = new List<int>(); 220List<int> realizedColumnDisplayIndices = new List<int>(); 428List<int> realizedColumnIndices, 429List<int> realizedColumnDisplayIndices, 458private static List<RealizedColumnsBlock> BuildRealizedColumnsBlockList(List<int> indexList) 460List<RealizedColumnsBlock> resultList = new List<RealizedColumnsBlock>(); 780private static bool InBlockOrNextBlock(List<RealizedColumnsBlock> blockList, int index, ref int blockIndex, ref RealizedColumnsBlock block, out bool pastLastBlock) 817List<int> realizedColumnIndices, 818List<int> realizedColumnDisplayIndices) 858List<int> realizedColumnIndices, 859List<int> realizedColumnDisplayIndices, 946List<int> realizedColumnIndices, 947List<int> realizedColumnDisplayIndices, 990List<int> realizedColumnIndices, 991List<int> realizedColumnDisplayIndices, 1021private void VirtualizeChildren(List<RealizedColumnsBlock> blockList, IItemContainerGenerator generator) 1320private static void Debug_VerifyRealizedIndexCountVsDisplayIndexCount(List<RealizedColumnsBlock> blockList, List<RealizedColumnsBlock> displayIndexBlockList) 1359List<RealizedColumnsBlock> displayIndexBlockList = RealizedColumnsDisplayIndexBlockList; 1363List<RealizedColumnsBlock> blockList = RealizedColumnsBlockList; 1367List<int> additionalChildIndices = GetRealizedChildrenNotInBlockList(blockList, children); 1532private static RealizedColumnsBlock GetRealizedBlockForColumn(List<RealizedColumnsBlock> blockList, int columnIndex) 1551private List<int> GetRealizedChildrenNotInBlockList(List<RealizedColumnsBlock> blockList, IList children) 1563List<int> additionalChildIndices = new List<int>(); 1634List<int> displayIndexMap = columns.DisplayIndexMap; 1635List<RealizedColumnsBlock> blockList = RealizedColumnsBlockList; 1696private List<RealizedColumnsBlock> RealizedColumnsBlockList 1727private List<RealizedColumnsBlock> RealizedColumnsDisplayIndexBlockList 2437private List<UIElement> _realizedChildren;
System\Windows\Controls\DataGridColumnCollection.cs (10)
233internal List<int> DisplayIndexMap 900List<DataGridColumn> unResolvedColumns = new List<DataGridColumn>(); 901List<DataGridColumn> partialResolvedColumns = new List<DataGridColumn>(); 2389internal List<RealizedColumnsBlock> RealizedColumnsBlockListForNonVirtualizedRows 2415internal List<RealizedColumnsBlock> RealizedColumnsDisplayIndexBlockListForNonVirtualizedRows 2432internal List<RealizedColumnsBlock> RealizedColumnsBlockListForVirtualizedRows 2458internal List<RealizedColumnsBlock> RealizedColumnsDisplayIndexBlockListForVirtualizedRows 2531private List<int> _displayIndexMap; // maps a DisplayIndex to an index in the _columns collection. 2537private List<RealizedColumnsBlock> _realizedColumnsBlockListForNonVirtualizedRows = null; // Realized columns for non-virtualized rows 2538private List<RealizedColumnsBlock> _realizedColumnsBlockListForVirtualizedRows = null; // Realized columns for virtualized rows
System\Windows\Controls\DataGridRowClipboardEventArgs.cs (2)
46public List<DataGridClipboardCellContent> ClipboardRowContent 112private List<DataGridClipboardCellContent> _clipboardRowContent;
System\Windows\Controls\DefinitionBase.cs (1)
947private readonly List<DefinitionBase> _registry; // registry of participating definitions
System\Windows\Controls\Frame.cs (1)
1393private List<CommandBinding> _commandBindings;
System\Windows\Controls\GridViewColumnCollection.cs (4)
156internal List<GridViewColumn> ColumnCollection { get { return _columns; } } 160internal List<int> IndexList { get { return _actualIndices; } } 458private List<GridViewColumn> _columns = new List<GridViewColumn>(); 462private List<int> _actualIndices = new List<int>();
System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
1588internal List<GridViewColumnHeader> ActualColumnHeaders 1616private List<GridViewColumnHeader> _gvHeaders; 1620private List<Rect> HeadersPositionList 1633private List<Rect> _headersPositionList;
System\Windows\Controls\GridViewRowPresenter.cs (3)
400internal List<UIElement> ActualCells 404List<UIElement> list = new List<UIElement>(); 409List<int> indexList = columns.IndexList;
System\Windows\Controls\InkCanvas.cs (2)
2098List<UIElement> newElements = new List<UIElement>(); 2515List<UIElement> elements = new List<UIElement>();
System\Windows\Controls\ItemCollection.cs (2)
1574internal override void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources)
System\Windows\Controls\ItemContainerGenerator.cs (6)
999List<string> errors = new List<string>(); 1060List<string> sources = new List<string>(); 1105private void FormatCollectionChangedSource(int level, object source, bool? isLikely, List<string> sources) 1136private void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources) 2793private List<EmptyGroupItem> _emptyGroupItems;
System\Windows\Controls\ItemsControl.cs (1)
3621List<DependencyObject> claimedContainers = new List<DependencyObject>();
System\Windows\Controls\Panel.cs (1)
990System.Collections.Generic.List<Int64> stableKeyValues = null;
System\Windows\Controls\PopupControlService.cs (2)
847List<NativeMethods.RECT> rects = new List<NativeMethods.RECT>(); 1354internal ConvexHull(PresentationSource source, List<NativeMethods.RECT> rects)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
422List<DocumentPageView> pageViewList; 892private void FindDocumentPageViews(Visual root, List<DocumentPageView> pageViews)
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
203internal List<double> DesiredWidthList 349private List<double> _desiredWidthList;
System\Windows\Controls\Primitives\Popup.cs (4)
149internal static readonly UncommonField<List<Popup>> RegisteredPopupsField = new UncommonField<List<Popup>>(); 185List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget); 210List<Popup> registeredPopups = RegisteredPopupsField.GetValue(placementTarget);
System\Windows\Controls\Primitives\Selector.cs (10)
1764private void InvokeSelectionChanged(List<ItemInfo> unselectedInfos, List<ItemInfo> selectedInfos) 1957internal void LocateSelectedItems(List<Tuple<int,int>> ranges = null, bool deselectMissingItems=false) 1959List<int> knownIndices = new List<int>(_selectedItems.Count); 2286List<ItemInfo> unselected = new List<ItemInfo>(); 2287List<ItemInfo> selected = new List<ItemInfo>(); 2345private void CreateDeltaSelectionChange(List<ItemInfo> unselectedItems, List<ItemInfo> selectedItems) 2406List<ItemInfo> toRemove = (_toSelect.UnresolvedCount > 0) 2896private List<ItemInfo> _list;
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
68List<UIElement> generatedItemsCollection = toolBarPanel.GeneratedItemsCollection;
System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
523internal List<UIElement> GeneratedItemsCollection 532private List<UIElement> _generatedItemsCollection;
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (2)
19public SelectedCellsChangedEventArgs(List<DataGridCellInfo> addedCells, List<DataGridCellInfo> removedCells)
System\Windows\Controls\SelectionChangedEventArgs.cs (6)
47internal SelectionChangedEventArgs(List<ItemsControl.ItemInfo> unselectedInfos, List<ItemsControl.ItemInfo> selectedInfos) 94internal List<ItemsControl.ItemInfo> RemovedInfos 102internal List<ItemsControl.ItemInfo> AddedInfos 130private List<ItemsControl.ItemInfo> _addedInfos; 131private List<ItemsControl.ItemInfo> _removedInfos;
System\Windows\Controls\TextAdaptor.cs (2)
131List<Rect> rectangles = new List<Rect>(); 511List<TextSegment> visibleTextSegments = new List<TextSegment>();
System\Windows\Controls\TextBlock.cs (5)
1784List<Rect> rectangles = new List<Rect>(); 1819List<Rect> lineBounds = line.GetRangeBounds(boundStart, boundEnd - boundStart, xOffset, yOffset); 1856System.Collections.Generic.List<TextSegment> textSegmentsList = new System.Collections.Generic.List<TextSegment>(1); 2036List<LineResult> lines = new List<LineResult>(lineCount); 3855private List<LineMetrics> _subsequentLines;
System\Windows\Controls\TextRangeAdaptor.cs (3)
1418private List<AutomationPeer> GetAutomationPeersFromRange(AutomationPeer peer, ITextPointer start, ITextPointer end) 1420List<AutomationPeer> peers; 2090List<AutomationPeer> peers = GetAutomationPeersFromRange(peer, _start, _end);
System\Windows\Controls\TextSearch.cs (1)
824private List<string> _charsEntered;
System\Windows\Controls\ToolBarTray.cs (15)
356List<ToolBar> band = _bands[bandIndex].Band; 420List<ToolBar> band = _bands[bandIndex].Band; 542List<ToolBar> band = _bands[currentBand].Band; 642List<ToolBar> oldBand = _bands[currentBand].Band; 664private void ShrinkToolBars(List<ToolBar> band, int startIndex, int endIndex, double shrinkAmount) 702private double ToolBarsTotalMinimum(List<ToolBar> band, int startIndex, int endIndex) 712private void ExpandToolBars(List<ToolBar> band, int startIndex, int endIndex, double expandAmount) 750private double ToolBarsTotalMaximum(List<ToolBar> band, int startIndex, int endIndex) 765List<ToolBar> newBand = _bands[newBandNumber].Band; 841List<ToolBar> band = _bands[bandIndex].Band; 863List<ToolBar> band = _bands[bandIndex].Band; 915private void InsertToolBar(ToolBar toolBar, List<ToolBar> band) 944public List<ToolBar> Band 955private List<ToolBar> _band = new List<ToolBar>(); 965private List<BandInfo> _bands = new List<BandInfo>(0);
System\Windows\Controls\VirtualizedCellInfoCollection.cs (33)
34private VirtualizedCellInfoCollection(DataGrid owner, List<CellRegion> regions) 201List<DataGridCellInfo> list = new List<DataGridCellInfo>(); 232public VirtualizedCellInfoCollectionEnumerator(DataGrid owner, List<CellRegion> regions, VirtualizedCellInfoCollection collection) 293private List<CellRegion> _regions; 700public bool Remainder(CellRegion region, out List<CellRegion> remainder) 832List<CellRegion> addList = new List<CellRegion>(); 843List<CellRegion> remainder; 893List<CellRegion> removeList = null; 902private void RemoveRegion(int rowIndex, int columnIndex, int rowCount, int columnCount, ref List<CellRegion> removeList) 926List<CellRegion> remainder; 943internal void OnItemsCollectionChanged(NotifyCollectionChangedEventArgs e, List<Tuple<int,int>> ranges) 976List<CellRegion> keepRegions = null; 1004List<CellRegion> keepRegions = null; 1005List<CellRegion> removedRegions = null; 1044List<CellRegion> removedRegions = null; 1060List<CellRegion> slideRegions = null; 1061List<CellRegion> movedRegions = null; 1149List<CellRegion> keepRegions = null; 1192List<CellRegion> keepRegions = null; 1193List<CellRegion> removedRegions = null; 1232List<CellRegion> removedRegions = null; 1251List<CellRegion> slideRegions = null; 1252List<CellRegion> movedRegions = null; 1311internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, DataGridColumn column) 1317internal RemovedCellInfoCollection(DataGrid owner, List<CellRegion> regions, object item) 1409List<CellRegion> removeList = new List<CellRegion>(); 1430internal void RestoreOnlyFullRows(List<Tuple<int,int>> ranges) 1485List<CellRegion> removeList = null; 1527internal bool Intersects(int rowIndex, out List<int> columnIndexRanges) 1577private static void ConvertIndexToIndexes(List<CellRegion> regions, int index, out int rowIndex, out int columnIndex) 1602private DataGridCellInfo GetCellInfoFromIndex(DataGrid owner, List<CellRegion> regions, int index) 1631private void AddRegionToList(CellRegion region, List<DataGridCellInfo> list) 1661private List<CellRegion> _regions;
System\Windows\Controls\VirtualizingStackPanel.cs (24)
2037List<double> previouslyMeasuredOffsets = null; 2095ref List<double> previouslyMeasuredOffsets, 4505List<double> offsetList = effectiveOffsetInfo.OffsetList; 5665List<Double> childOffsetList = effectiveOffsetInformation?.OffsetList; 5691List<double> offsetList = effectiveOffsetInformation.OffsetList; 9441List<String> list = new List<String>(count); 9461List<String> list = new List<String>(count); 9581ref List<double> previouslyMeasuredOffsets) 10432ref List<double> previouslyMeasuredOffsets) 10918ref List<double> previouslyMeasuredOffsets, 10930List<double> previouslyMeasuredOffsets, 11692private List<UIElement> _realizedChildren; 11884public List<double> previouslyMeasuredOffsets { get; set; } 11960public List<double> OffsetList { get; private set; } 12453record.RevirtualizedChildren = args[2] as List<String>; 12470private static List<Tuple<WeakReference<ItemsControl>,TraceList>> s_TargetToTraceListMap 12570private List<ScrollTraceRecord> _traceList = new List<ScrollTraceRecord>(); 12777internal List<String> RevirtualizedChildren 12779get { return _extraData as List<String>; } 12799List<String> children; 12835internal List<ChildInfo> _realizedChildren; 12851internal List<Double> _effectiveOffsets; 12996List<ChildInfo> list = new List<ChildInfo>(); 13051internal List<double> EffectiveOffsets { get; set; }
System\Windows\Data\BindingExpression.cs (8)
2302List<object> propertyErrors = GetDataErrors(indei, propertyName); 2303List<object> valueErrors = GetDataErrors(dataErrorValue, String.Empty); 2304List<object> errors = MergeErrors(propertyErrors, valueErrors); 2324internal static List<object> GetDataErrors(INotifyDataErrorInfo indei, string propertyName) 2327List<object> result = null; 2364private List<object> MergeErrors(List<object> list1, List<object> list2)
System\Windows\Data\BindingExpressionBase.cs (13)
233internal List<ValidationError> NotifyDataErrors 235get { return (List<ValidationError>)GetValue(Feature.NotifyDataErrors, null); } 279List<ValidationError> list; 2279internal void UpdateNotifyDataErrorValidationErrors(List<object> errors) 2281List<object> toAdd; 2282List<ValidationError> toRemove; 2291List<ValidationError> notifyDataErrors = NotifyDataErrors; 2309List<ValidationError> notifyDataErrors = NotifyDataErrors; 2321internal static void GetValidationDelta(List<ValidationError> previousErrors, List<object> errors, out List<object> toAdd, out List<ValidationError> toRemove) 2434var tempList = new List<WeakDependencySource>();
System\Windows\Data\BindingGroup.cs (11)
259List<ValidationError> errors = new List<ValidationError>(); 1067List<object> errors; 1084private void UpdateNotifyDataErrorValidationErrors(WeakReference itemWR, List<object> errors) 1087List<ValidationError> itemErrors; 1091List<object> toAdd; 1092List<ValidationError> toRemove; 1346List<BindingExpressionBase> list = _getValueTable.RemoveRootBinding(root); 1538private Dictionary<WeakReference, List<ValidationError>> _notifyDataErrors = new Dictionary<WeakReference, List<ValidationError>>(); 1628public List<BindingExpressionBase> RemoveRootBinding(BindingExpressionBase rootBindingExpression) 1630List<BindingExpressionBase> result = new List<BindingExpressionBase>();
System\Windows\Data\BindingListCollectionView.cs (3)
2386List<AbandonedGroupItem> deleteList = new List<AbandonedGroupItem>(); 2487List<Action> deferredActions = _deferredActions; 2549private List<Action> _deferredActions;
System\Windows\Data\BindingOperations.cs (4)
379List<BindingExpressionBase> list = DataBindEngine.CurrentDataBindEngine.CommitManager.GetBindingsInScope(root); 390List<BindingGroup> list = DataBindEngine.CurrentDataBindEngine.CommitManager.GetBindingGroupsInScope(root); 590internal List<Exception> Log { get { return _log; } } 592private List<Exception> _log = new List<Exception>();
System\Windows\Data\CollectionContainer.cs (2)
219internal void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources)
System\Windows\Data\CollectionView.cs (10)
1476List<ItemPropertyInfo> list = new List<ItemPropertyInfo>(); 1571internal virtual void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources) 1804private void DeferProcessing(List<NotifyCollectionChangedEventArgs> changeLog) 1834private List<NotifyCollectionChangedEventArgs> ProcessChangeLog(List<NotifyCollectionChangedEventArgs> changeLog, bool processAll = false) 1933List<NotifyCollectionChangedEventArgs> unprocessedChanges = ProcessChangeLog(_tempChangeLog); 2127private List<NotifyCollectionChangedEventArgs> _changeLog = new(); 2128private List<NotifyCollectionChangedEventArgs> _tempChangeLog = s_emptyList; 2147private static readonly List<NotifyCollectionChangedEventArgs> s_emptyList = new();
System\Windows\Data\CompositeCollection.cs (2)
587internal void GetCollectionChangedSources(int level, Action<int, object, bool?, List<string>> format, List<string> sources)
System\Windows\Data\ListCollectionView.cs (3)
3206List<AbandonedGroupItem> deleteList = new List<AbandonedGroupItem>(); 3287List<Action> deferredActions = _deferredActions; 3326private List<Action> _deferredActions;
System\Windows\DescendentsWalker.cs (2)
231List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent); 335List<Popup> registeredPopups = Popup.RegisteredPopupsField.GetValue(feParent);
System\Windows\Diagnostics\BindingDiagnostics.cs (2)
23private static List<BindingFailedEventArgs> s_pendingEvents; 69List<BindingFailedEventArgs> pendingEvents = null;
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (13)
152List<WeakReference<ResourceDictionary>> list; 158List<ResourceDictionary> result = new List<ResourceDictionary>(list.Count); 159List<WeakReference<ResourceDictionary>> toRemove = null; 202List<WeakReference<ResourceDictionary>> list; 206_dictionariesFromUri = new Dictionary<Uri, List<WeakReference<ResourceDictionary>>>(); 234List<WeakReference<ResourceDictionary>> list; 237List<WeakReference<ResourceDictionary>> toRemove = new List<WeakReference<ResourceDictionary>>(); 254List<WeakReference<ResourceDictionary>> list, 255List<WeakReference<ResourceDictionary>> toRemove) 268private static Dictionary<Uri, List<WeakReference<ResourceDictionary>>> _dictionariesFromUri; 300List<T> result = new List<T>(list.Count); 504List<WeakReferenceKey<StaticResourceExtension>> toRemove = null; 528private static List<object> IgnorableProperties = new List<object>();
System\windows\Documents\CaretElement.cs (1)
459List<TextSegment> textSegments = _textEditor.Selection.TextSegments;
System\Windows\Documents\DocumentReferenceCollection.cs (1)
177private List<DocumentReference> _internalList;
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
713List<TextSegment> rangeArray = new List<TextSegment>(4);
System\Windows\Documents\DocumentSequenceTextView.cs (1)
548List<TextSegment> parentSegments = new List<TextSegment>(childSegments.Count);
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (2)
27internal List<BlockElement> BlockElementList 38internal List<BlockElement> _elementList;
System\Windows\Documents\DocumentStructures\StoryFragments.cs (4)
61internal List<StoryFragment> StoryFragmentList 69private List<StoryFragment> _elementList; 167internal List<BlockElement> BlockElementList 175private List<BlockElement> _elementList;
System\Windows\Documents\FixedDocument.cs (2)
1058List<FixedPage> oldHighlightPages = new List<FixedPage>(); 1134List<int> dirtyPages = new List<int>();
System\Windows\Documents\FixedDSBuilder.cs (5)
61public void ConstructFlowNodes(FixedTextBuilder.FlowModelBuilder flowBuilder, List<FixedNode> fixedNodes) 70List<StoryFragment> StoryFragmentList = StoryFragments.StoryFragmentList; 73List<BlockElement> blockElementList = storyFragme.BlockElementList; 164List<BlockElement> blockElementList = sbe.BlockElementList; 251private List<FixedNode> _fixedNodes;
System\Windows\Documents\FixedElement.cs (1)
459private List<FixedElement> _children;
System\Windows\Documents\FixedFlowMap.cs (10)
159internal void MappingReplace(FlowNode flowOld, List<FlowNode> flowNew) 175List<FixedSOMElement> entry = _GetEntry(fixedp); 209FlowNode flowNode = ((List<FixedSOMElement>) _GetEntry(start))[0].FlowNode; 314internal List<FlowNode> FlowNodes 368private List<FixedSOMElement> _GetEntry(FixedNode node) 372_cachedEntry = (List<FixedSOMElement>)_mapping[node]; 381List<FixedSOMElement> entry; 384entry = (List<FixedSOMElement>)_mapping[fn]; 403private List<FlowNode> _flowOrder; // Flow Order represents a linear stream of symbols view on the fixed document 412private List<FixedSOMElement> _cachedEntry;
System\Windows\Documents\FixedPage.cs (2)
1007List<int> childPath = new List<int>(); 1232private void _RenderMarkupOrder(DrawingContext dc, List<FixedNode> markupOrder)
System\Windows\Documents\FixedPageStructure.cs (4)
670public void ConstructFixedSOMPage(List<FixedNode> fixedNodes) 811List<FlowNode> nodes = new List<FlowNode>(); 844internal List<FixedNode> FixedNodes 889private List<FixedNode> _fixedNodes;
System\Windows\Documents\FixedSOMContainer.cs (5)
178public List<FixedSOMSemanticBox> SemanticBoxes 190public List<FixedNode> FixedNodes 220List<FixedNode> nodes = container.FixedNodes; 251protected List<FixedSOMSemanticBox> _semanticBoxes; 252protected List<FixedNode> _fixedNodes;
System\Windows\Documents\FixedSOMLineCollection.cs (6)
67private void _AddLineToRanges(List<FixedSOMLineRanges> ranges, double line, double start, double end) 110private bool _IsSeparated(List<FixedSOMLineRanges> lines, double parallelLowEnd, double perpLowEnd, double parallelHighEnd, double perpHighEnd) 168public List<FixedSOMLineRanges> HorizontalLines 176public List<FixedSOMLineRanges> VerticalLines 192private List<FixedSOMLineRanges> _horizontals; 193private List<FixedSOMLineRanges> _verticals;
System\Windows\Documents\FixedSOMLineRanges.cs (4)
81public List<double> Start 93public List<double> End 116private List<double> _start; // where lines start. Invariant: _start[i] < _end[i] 117private List<double> _end; // where lines end. Invariant: _end[i] < _start[i+1]
System\Windows\Documents\FixedSOMPage.cs (3)
59List<FixedSOMSemanticBox> groupBoxes = group.SemanticBoxes; 113internal List<FixedNode> MarkupOrder 143private List<FixedNode> _markupOrder;
System\Windows\Documents\FixedSOMPageConstructor.cs (9)
235public FixedSOMPage ConstructPageStructure(List<FixedNode> fixedNodes) 752List<FixedSOMLineRanges> horizontal = _lines.HorizontalLines; 753List<FixedSOMLineRanges> vertical = _lines.VerticalLines; 758List<FixedSOMTableRow> tableRows = new List<FixedSOMTableRow>(); 869List<FixedSOMSemanticBox> boxes = _fixedSOMPage.SemanticBoxes; 1018private void _FillTables(List<FixedSOMTableRow> tableRows) 1020List<FixedSOMTable> tables = new List<FixedSOMTable>(); 1129List<FixedSOMSemanticBox> groups = new List<FixedSOMSemanticBox>(); 1178private List<FixedNode> _fixedNodes;
System\Windows\Documents\FixedSOMTextRun.cs (1)
74List<FixedNode> markupOrder = this.FixedBlock.FixedSOMPage.MarkupOrder;
System\Windows\Documents\FixedTextBuilder.cs (10)
881List<FixedNode> fixedNodes = new List<FixedNode>(); 923List<FixedNode> fixedNodes, // start empty, nodes will be added to this list 1055List<FixedSOMSemanticBox> children = node.SemanticBoxes; 1152private List<FixedPageStructure> _pageStructures; // contain all FixedPageStructure for each page. 1358private List<LogicalHyperlink> _hyperlinks; 1778private List<FixedSOMTextRun> _textRuns; 1779private List<FlowNode> _flowNodes; 1780private List<FixedNode> _fixedNodes; 1781private List<FixedNode> _nodesInLine; 1782private List<FixedLineResult> _lineResults;
System\Windows\Documents\FixedTextView.cs (1)
717List<TextSegment> list = new List<TextSegment>(1);
System\Windows\Documents\Glyphs.cs (2)
316List<ParsedGlyphData> parsedGlyphs; 490out List<ParsedGlyphData> parsedGlyphs,
System\Windows\Documents\Highlights.cs (1)
337List<TextSegment> ranges;
System\Windows\Documents\ITextRange.cs (2)
248List<TextSegment> TextSegments { get; } 376List<TextSegment> _TextSegments { get; set; }
System\Windows\Documents\MsSpellCheckLib\SpellChecker\OptionDescription.cs (2)
31private List<string> _labels; 45private OptionDescription(string id, string heading, string description, List<string> labels = null)
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (20)
83public List<string> SuggestImpl(string word) 91public List<string> SuggestImplWithRetries(string word, bool shouldSuppressCOMExceptions = true) 93List<string> result = null; 104public List<string> Suggest(string word, bool shouldSuppressCOMExceptions = true) 215private List<string> GetOptionIdsImpl() 221private List<string> GetOptionIdsImplWithRetries(bool suppressCOMExceptions) 223List<string> optionIds = null; 234public List<string> GetOptionIds(bool suppressCOMExceptions = true) 325private List<SpellingError> CheckImpl(string text) 331private List<SpellingError> CheckImplWithRetries(string text, bool suppressCOMExceptions) 333List<SpellingError> errors = null; 344public List<SpellingError> Check(string text, bool suppressCOMExceptions = true) 353public List<SpellingError> ComprehensiveCheckImpl(string text) 359public List<SpellingError> ComprehensiveCheckImplWithRetries(string text, bool shouldSuppressCOMExceptions = true) 361List<SpellingError> errors = null; 372public List<SpellingError> ComprehensiveCheck(string text, bool shouldSuppressCOMExceptions = true) 425List<HasErrorsResult> hasErrorsCache = _hasErrorsCache; 640private static readonly Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>> 661private List<HasErrorsResult> _hasErrorsCache;
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellingError.cs (2)
49private List<string> _suggestions; 92var suggestions = spellChecker.Suggest(text, shouldSuppressCOMExceptions);
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (9)
52private static Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>> 180private List<string> SupportedLanguagesImpl() 184List<string> result = null; 193private List<string> SupportedLanguagesImplWithRetries(bool shouldSuppressCOMExceptions) 195List<string> languages = null; 210private List<string> GetSupportedLanguagesPrivate(bool shouldSuppressCOMExceptions = true) 212List<string> result = null; 219internal static List<string> GetSupportedLanguages(bool shouldSuppressCOMExceptions = true)
System\Windows\Documents\MsSpellCheckLib\Utils\Extensions.cs (5)
26internal static List<string> ToList( 31var result = new List<string>(); 70internal static List<SpellingError> ToList( 79var result = new List<SpellingError>(); 118internal static bool IsClean(this List<SpellingError> errors)
System\Windows\Documents\MsSpellCheckLib\Utils\RetryHelper.cs (6)
50List<Type> ignoredExceptions, 106List<Type> ignoredExceptions, 166List<Type> ignoredExceptions, 228List<Type> ignoredExceptions, 281private static bool MatchException(Exception exception, List<Type> exceptions) 296private static void ValidateExceptionTypeList(List<Type> exceptions)
System\Windows\Documents\NLGSpellerInterop.cs (3)
571List<string> suggestions = new List<string>(); 623List<ISpellerSegment> subSegments = new List<ISpellerSegment>(); 831List<ISpellerSegment> segments = new List<ISpellerSegment>();
System\Windows\Documents\PageContentCollection.cs (1)
178private List<PageContent> _internalList;
System\Windows\Documents\Serialization\SerializerProvider.cs (1)
34List<SerializerDescriptor> installedSerializers = new List<SerializerDescriptor>();
System\Windows\Documents\Speller.cs (5)
172internal List<string> GetSuggestionsForError(SpellingError error) 181List<string> suggestions = new(4); 895List<string> suggestions = (List<string>)data.Data; 2019private List<string> _ignoredWordsList;
System\Windows\Documents\SpellerHighlightLayer.cs (1)
200List<TextSegment> list;
System\Windows\Documents\TextEffectResolver.cs (1)
50List<TextEffectTarget> list = new List<TextEffectTarget>();
System\Windows\Documents\TextRange.cs (3)
351List<TextSegment> ITextRange.TextSegments 506List<TextSegment> ITextRange._TextSegments 1883private List<TextSegment> _textSegments;
System\Windows\Documents\TextRangeBase.cs (2)
1219internal static List<TextSegment> GetTextSegments(ITextRange thisRange) 1982List<TextSegment> textSegments;
System\Windows\Documents\TextRangeEditTables.cs (7)
279internal static List<TextSegment> BuildTableRange( 326private static List<TextSegment> BuildCellSelection(TableCell anchorCell, TableCell movingCell) 338List<TextSegment> cellRange = new List<TextSegment>(lastRowIndex - firstRowIndex + 1); 370private static List<TextSegment> BuildCrossTableSelection( 374List<TextSegment> textSegments = new List<TextSegment>(1); 400List<TextSegment> textSegments = range._TextSegments; 975List<TextSegment> textSegments = TextRangeEditTables.BuildTableRange(
System\Windows\Documents\TextRangeSerialization.cs (5)
84List<int> ignoreList = new List<int>(); 188private static void WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool ignoreWriteHyperlinkEnd, List<int> ignoreList, bool preserveTextElements) 337List<TextSegment> textSegments = range.TextSegments; 343List<int> ignoreList = new List<int>(); 414private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements)
System\windows\Documents\TextSelectionHighlightLayer.cs (3)
83List<TextSegment> textSegments = _selection.TextSegments; 109List<TextSegment> textSegments = _selection.TextSegments; 328List<TextSegment> rangeArray;
System\Windows\Documents\TextStore.cs (4)
4130private List<CompositionEventRecord> CompositionEventList 4617private List<CompositionEventRecord> _compositionEventList; 4945private static List<Tuple<WeakReference<FrameworkElement>,TraceList>> s_TargetToTraceListMap 5045private List<IMECompositionTraceRecord> _traceList = new List<IMECompositionTraceRecord>();
System\Windows\Documents\WinRTSpellerInterop.cs (5)
52_customDictionaryFiles = new Dictionary<string, List<string>>(); 517foreach (KeyValuePair<string, List<string>> items in _customDictionaryFiles) 831private Dictionary<string, List<string>> _customDictionaryFiles; 913List<string> result = new List<string>(); 922List<SpellChecker.SpellingError> spellingErrors = null;
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (1)
65var allTokens = new List<SpellerSegment>();
System\Windows\Documents\WpfPayload.cs (1)
849private List<Image> _images;
System\Windows\Documents\XPSS0ValidatingLoader.cs (1)
53List<Type> safeTypes = new List<Type> { typeof(System.Windows.ResourceDictionary) };
System\Windows\FrameworkContextData.cs (1)
93private List<WalkerEntry> _currentWalkers = new List<WalkerEntry>(4);
System\Windows\FrameworkElementFactory.cs (4)
630List<DependencyObject> affectedChildren, 631ref List<DependencyObject> noChildIndexChildren, 999List<DependencyObject> affectedChildren, ref List<DependencyObject> noChildIndexChildren )
System\Windows\FrameworkTemplate.cs (5)
552List<DependencyObject> affectedChildren) 889IStyleConnector styleConnector, List<DependencyObject> affectedChildren, UncommonField<Hashtable> templatedNonFeChildrenField) 1488internal List<String> ChildNames 1517private List<String> _childNames = new List<string>(); 1577internal ConditionalWeakTable<DependencyObject,List<DeferredAction>> DeferredActions = null;
System\Windows\Ink\Events.cs (5)
117private List<UIElement> _elements; 129List<UIElement> elements = 167List<UIElement> elements = 291private List<GestureRecognitionResult> _gestureRecognitionResults; 308List<GestureRecognitionResult> results =
System\Windows\Input\KeyboardNavigation.cs (1)
3595private List<WeakReference> _list = new List<WeakReference>(1);
System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (2)
44public List<Object> StaticResources 89private List<Object> _resources;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
247internal List<KeyRecord> ReadKeys() 901var staticResources = _context.LastKey.StaticResources;
System\Windows\Markup\Baml2006\Baml2006ReaderContext.cs (1)
43public List<KeyRecord> KeyList { get; set; }
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (4)
654private readonly List<BamlAssembly> _bamlAssembly = new List<BamlAssembly>(); 655private readonly List<object> _bamlType = new List<object>(); 656private readonly List<Object> _bamlProperty = new List<Object>(); 657private readonly List<string> _bamlString = new List<string>();
System\Windows\Markup\Baml2006\Baml6ConstructorInfo.cs (3)
8public Baml6ConstructorInfo(List<Type> types, Func<Object[], object> ctor) 14private List<Type> _types; 17public List<Type> Types { get { return _types; } }
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
331List<XamlType> xTypes = null;
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (2)
35private List<ThemeKnownTypeHelper> _themeHelpers; 337internal List<ThemeKnownTypeHelper> ThemeKnownTypeHelpers
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
178List<XamlMember> members = new List<XamlMember>();
System\Windows\Markup\BamlMapTable.cs (8)
1730private List<BamlAssemblyInfoRecord> AssemblyIdMap 1738private List<BamlTypeInfoRecord> TypeIdMap 1746private List<BamlAttributeInfoRecord> AttributeIdMap 1754private List<BamlStringInfoRecord> StringIdMap 1815private readonly List<BamlAssemblyInfoRecord> _assemblyIdToInfo = new(); 1819private readonly List<BamlTypeInfoRecord> _typeIdToInfo = new(); 1823private readonly List<BamlAttributeInfoRecord> _attributeIdToInfo = new(10); 1827private readonly List<BamlStringInfoRecord> _stringIdToInfo = new();
System\Windows\Markup\BamlReader.cs (16)
177_reverseXmlnsTable = new Dictionary<String, List<String>>(); 1364List<BamlRecord> srRecords = new List<BamlRecord>(); 1705private void ProcessStaticResourceTree(List<BamlRecord> srRecords) 2662List<String> xmlnsList = GetXmlNamespaceList(typeInfo.ClrNamespace, assemblyFullName); 2676List<String> list; 2691private List<String> GetXmlNamespaceList(string clrNamespace, string assemblyFullName) 2694List<String> xmlnsList=null; 2730private string GetXmlnsPrefix(List<String> xmlnsList) 2790private List<BamlKeyInfo> _deferKeys; 2796private List<BamlRecord> _currentStaticResourceRecords; 2864private Dictionary<String, List<String>> _reverseXmlnsTable; 3034internal List<List<BamlRecord>> StaticResources 3040_staticResources = new List<List<BamlRecord>>(); 3048private List<List<BamlRecord>> _staticResources;
System\Windows\Markup\BamlRecordReader.cs (3)
1688List<object[]> staticResourceValuesList; 1726out List<object[]> staticResourceValuesList) 5625private static List<ReaderContextStackData> _stackDataFactoryCache = new List<ReaderContextStackData>();
System\Windows\Markup\BamlRecordWriter.cs (9)
1584List<List<ValueDeferRecord>> staticResourceRecordList = keyRecord.StaticResourceRecordList; 1591List<ValueDeferRecord> srRecords = staticResourceRecordList[j]; 1778internal List<List<ValueDeferRecord>> StaticResourceRecordList 1784_staticResourceRecordList = new List<List<ValueDeferRecord>>(1); 1793private List<List<ValueDeferRecord>> _staticResourceRecordList; 1930private List<ValueDeferRecord> _staticResourceRecordList; // List of BamlRecords between the start and end of a StaticResource definition (both ends inclusive).
System\Windows\Markup\DependencyPropertyConverter.cs (1)
188List<XamlType> ceilingTypes = new List<XamlType>();
System\Windows\Markup\ParserContext.cs (2)
601internal List<object[]> StaticResourcesStack 830private List<object[]> _staticResourcesStack;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
616private static readonly List<Type> EmptyTypes = new List<Type>();
System\Windows\Markup\Primitives\MarkupWriter.cs (10)
247public List<int> Predecessors; 429private List<Entry> _entries = new List<Entry>(); 487List<int> argumentCompositeIndexes = null; 489List<MarkupProperty> composites = null; 745List<Type> wrapperTypes = GetWrapperTypes(contentProperty.PropertyType); 1081private List<Type> GetWrapperTypes(Type type) 1088List<Type> wrapperTypes = new List<Type>(); 1099private MarkupProperty GetWrappedProperty(List<Type> wrapperTypes, MarkupObject item) 1119private bool IsInTypes(Type type, List<Type> types) 1174List<Type> wrapperTypes = GetWrapperTypes(contentProperty.PropertyType);
System\Windows\Markup\RestrictiveXamlXmlReader.cs (1)
78internal RestrictiveXamlXmlReader(XmlReader xmlReader, XamlSchemaContext schemaContext, XamlXmlReaderSettings settings, List<Type> safeTypes) : base(xmlReader, schemaContext, settings)
System\Windows\Markup\RoutedEventConverter.cs (1)
88List<XamlType> ceilingTypes = new List<XamlType>();
System\Windows\Markup\XamlReader.cs (1)
833List<Type> safeTypes)
System\Windows\Markup\XamlTypeMapper.cs (4)
2194List<ClrNamespaceAssemblyPair> namespaceAssemblyPair = GetClrNamespacePairFromCache(XamlReaderHelper.DefaultNamespaceURI); 3251List<ClrNamespaceAssemblyPair> namespaceAssemblyPair; 3413internal static List<ClrNamespaceAssemblyPair> GetClrNamespacePairFromCache( 3416List<ClrNamespaceAssemblyPair> mappingArray = null;
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (6)
78List<string> resultList = new List<string>(_sharedSchemaContext.GetAllXamlNamespaces()); 187List<NamespaceMapEntry> list = (List<NamespaceMapEntry>)result[key]; 281private void AddKnownNamespaces(List<string> nsList) 399List<V> list = (List<V>)hashtable[key];
System\Windows\Markup\XmlnsCache.cs (6)
150internal List<ClrNamespaceAssemblyPair> GetMappingArray(string xmlns) 152List<ClrNamespaceAssemblyPair> clrNsMapping =null; 155clrNsMapping = _cacheTable[xmlns] as List<ClrNamespaceAssemblyPair>; 186clrNsMapping = _cacheTable[xmlns] as List<ClrNamespaceAssemblyPair>; 331private List<ClrNamespaceAssemblyPair> GetClrnsToAssemblyNameMappingList( 335List<ClrNamespaceAssemblyPair> pairList = new List<ClrNamespaceAssemblyPair>();
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
727List<KeyTimeBlock> unspecifiedBlocks = new List<KeyTimeBlock>(); 922List<Double> segmentLengths = new List<Double>();
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
24private List<ThicknessKeyFrame> _keyFrames;
System\Windows\Media\Animation\Storyboard.cs (7)
574Debug.Assert( mappedObject == null || mappedObject is AnimationClock || mappedObject is List<AnimationClock>, 585List<AnimationClock> clockList = new List<AnimationClock>(); 595List<AnimationClock> clockList = (List<AnimationClock>)mappedObject; 613List<AnimationClock> clockList; 615Debug.Assert( value is AnimationClock || value is List<AnimationClock> , 625clockList = (List<AnimationClock>)value;
System\Windows\Navigation\Journal.cs (3)
60_journalEntryList = (List<JournalEntry>)info.GetValue("_journalEntryList", typeof(List<JournalEntry>)); 654private List<JournalEntry> _journalEntryList = new List<JournalEntry>();
System\Windows\ResourceDictionary.cs (3)
1885List<ResourceDictionary> oldDictionaries = null; 1886List<ResourceDictionary> newDictionaries = null; 2631private List<KeyRecord> _deferredLocationList = null;
System\Windows\ResourcesChangeInfo.cs (4)
66List<ResourceDictionary> oldDictionaries, 67List<ResourceDictionary> newDictionaries, 341private List<ResourceDictionary> _oldDictionaries; 342private List<ResourceDictionary> _newDictionaries;
System\Windows\Shell\JumpList.cs (26)
193public static void ReleaseShellObjects(List<_ShellObjectPair> list) 262private List<JumpItem> _jumpItems; 323public List<JumpItem> JumpItems 456List<JumpItem> successList; 457List<_RejectedJumpItemPair> rejectedList; 460List<List<_ShellObjectPair>> categories = null; 461List<_ShellObjectPair> removedList = null; 500categories = new List<List<_ShellObjectPair>>() { new List<_ShellObjectPair>() }; 542foreach (var list in categories) 586foreach (List<_ShellObjectPair> categoryList in categories) 621foreach (List<_ShellObjectPair> list in categories) 643var items = new List<JumpItem>(rejectedList.Count); 644var reasons = new List<JumpItemRejectionReason>(rejectedList.Count); 657var items = new List<JumpItem>(removedList.Count); 674private static bool ListContainsShellObject(List<_ShellObjectPair> removedList, object shellObject) 755private static List<_ShellObjectPair> GenerateJumpItems(IObjectArray shellObjects) 759var retList = new List<_ShellObjectPair>(); 787private static void AddCategory(ICustomDestinationList cdl, string category, List<_ShellObjectPair> jumpItems, List<JumpItem> successList, List<_RejectedJumpItemPair> rejectionList) 792private static void AddCategory(ICustomDestinationList cdl, string category, List<_ShellObjectPair> jumpItems, List<JumpItem> successList, List<_RejectedJumpItemPair> rejectionList, bool isHeterogenous) 835var linksOnlyList = new List<_ShellObjectPair>(); 1101var reasons = new List<JumpItemRejectionReason>(_jumpItems.Count);
System\Windows\Shell\WindowChrome.cs (1)
311private static readonly List<_SystemParameterBoundProperty> _BoundProperties = new List<_SystemParameterBoundProperty>
System\Windows\Shell\WindowChromeWorker.cs (1)
30private readonly List<HANDLE_MESSAGE> _messageTable;
System\Windows\StaticResourceExtension.cs (2)
239List<AmbientPropertyValue> ambientList; 240ambientList = ambientValues as List<AmbientPropertyValue>;
System\Windows\StyleHelper.cs (42)
1069List<TriggerAction> actionsList = null; 1101actionsList = triggerActions[eventTrigger.RoutedEvent] as List<TriggerAction>; 1784List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex); 1794List<DependencyObject> noChildIndexChildren = null; 1843List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex); 2131List<DependencyObject> templatedChildren; 2207List<DependencyObject> templateChain, 2499List<TriggerAction> actionsList; 2504? ownerStyle._triggerActions[Event] as List<TriggerAction> 2511? frameworkTemplate._triggerActions[Event] as List<TriggerAction> 3453List<ResourceDictionary> oldStyleTables = StyleHelper.GetResourceDictionariesFromStyle(oldStyle); 3454List<ResourceDictionary> newStyleTables = StyleHelper.GetResourceDictionariesFromStyle(newStyle); 3501List<ResourceDictionary> oldResourceTable = GetResourceDictionaryFromTemplate(oldTemplate); 3502List<ResourceDictionary> newResourceTable = GetResourceDictionaryFromTemplate(newTemplate); 3516private static void SetShouldLookupImplicitStyles(FrameworkObject fo, List<ResourceDictionary> dictionaries) 3534private static List<ResourceDictionary> GetResourceDictionariesFromStyle(Style style) 3536List<ResourceDictionary> dictionaries = null; 3559private static List<ResourceDictionary> GetResourceDictionaryFromTemplate( object template ) 3570List<ResourceDictionary> table = new List<ResourceDictionary>(1); 4055List<DependencyObject> styledChildren = TemplatedFeChildrenField.GetValue(container); 4340Debug.Assert(candidateTrigger is List<TriggerBase>, 4343List<TriggerBase> triggerList = (List<TriggerBase>)candidateTrigger; 4388List<DependencyObject> styledChildren = TemplatedFeChildrenField.GetValue(container); 4748ConditionalWeakTable<DependencyObject, List<DeferredAction>> deferredActions; 4759deferredActions = new ConditionalWeakTable<DependencyObject, List<DeferredAction>>(); 4772List<DeferredAction> actionList; 4792List<DeferredAction> actionList; 5042List<TriggerBase> newList = new List<TriggerBase>(); 5051Debug.Assert( existing is List<TriggerBase>, 5054List<TriggerBase> existingList = (List<TriggerBase>)existing; 5088List<TriggerBase> newList = new List<TriggerBase>(); 5097Debug.Assert( existing is List<TriggerBase>, 5100List<TriggerBase> existingList = (List<TriggerBase>)existing; 5270Debug.Assert(candidateTrigger is List<TriggerBase>, 5273List<TriggerBase> triggerList = (List<TriggerBase>)candidateTrigger; 5420internal static DependencyObject GetChild(List<DependencyObject> styledChildren, int childIndex) 5629internal static readonly UncommonField<List<DependencyObject>> TemplatedFeChildrenField = new UncommonField<List<DependencyObject>>();
System\Windows\SystemResources.cs (4)
197List<ResourceDictionaryInfo> dictionaries = new List<ResourceDictionaryInfo>(); 228List<ResourceDictionaryInfo> dictionaries = new List<ResourceDictionaryInfo>(); 1206List<SystemResourceKey> keys = new List<SystemResourceKey>(); 1662[ThreadStatic] private static List<DpiUtil.HwndDpiInfo> _dpiAwarenessContextAndDpis;
System\Windows\TemplateContent.cs (5)
240List<PropertyValue> sharedProperties = new List<PropertyValue>(); 307private void UpdateSharedPropertyNames(string name, List<PropertyValue> sharedProperties, XamlType type) 345List<PropertyValue> sharedProperties, 353List<PropertyValue> sharedProperties, 398List<PropertyValue> sharedProperties,
System\Windows\TemplateNameScope.cs (2)
47List<DependencyObject> affectedChildren, 257private List<DependencyObject> _affectedChildren;
System\Windows\ThemeDictionaryExtension.cs (1)
183private static List<ThemeDictionaryInfo> _themeDictionaryInfos;
System\Windows\ThemeManager.cs (1)
437List<int> indices = new List<int>();
System\Windows\TriggerActionCollection.cs (1)
314private List<TriggerAction> _rawList;
System\Windows\Window.cs (2)
6715var nativeIcons = new List<NativeMethods.IconHandle>(); 7232private List<IntPtr> _threadWindowHandles;
PresentationFramework.Aero (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationFramework.Aero2 (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationFramework.Fluent.Tests (11)
ResourceTests\FluentResourceDictionaryTests.cs (11)
27out List<string> dictionary1StringKeys, out List<object> dictionary1ObjectKeys); 30out List<string> dictionary2StringKeys, out List<object> dictionary2ObjectKeys); 32List<string> dictionary1ExtraStringKeys = dictionary1StringKeys.Except(dictionary2StringKeys).ToList(); 33List<string> dictionary2ExtraStringKeys = dictionary2StringKeys.Except(dictionary1StringKeys).ToList(); 35List<object> dictionary1ExtraObjectKeys = dictionary1ObjectKeys.Except(dictionary2ObjectKeys).ToList(); 36List<object> dictionary2ExtraObjectKeys = dictionary2ObjectKeys.Except(dictionary1ObjectKeys).ToList(); 52private static void Log_ExtraKeys(List<string> dictionary1ExtraStringKeys, string v) 81out List<string> stringResourceKeys, 82out List<object> objectResourceKeys)
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
377private static List<Freezable> _freezableCache;
PresentationFramework.Tests (1)
System\Windows\Controls\VirtualizationCacheLengthConverter.Tests.cs (1)
296yield return new object[] { new VirtualizationCacheLength(0.3, 0.4), typeof(List<int>), CultureInfo.InvariantCulture };
PresentationUI (18)
MS\Internal\Documents\Application\ChainOfResponsibility.cs (1)
112private List<T> _members;
MS\Internal\Documents\Application\CommandEnforcer.cs (1)
172private List<PolicyBinding> _bindings;
MS\Internal\Documents\Application\DocumentManager.cs (1)
534private static List<IDocumentController> _controllers =
MS\Internal\Documents\Application\TransactionalPackage.cs (2)
434List<PackagePart> _proxiedParts = new List<PackagePart>(); 584private List<Package> _trashCan = new List<Package>();
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
313List<X509Certificate2> certificateList = new List<X509Certificate2>();
MS\Internal\Documents\DocumentSignatureManager.cs (1)
1343private List<ChangeLogEntity> _changeLog;
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
228List<String> addresses = new List<String>(paths.Length);
MS\Internal\Documents\RightsManagementProvider.cs (3)
368List<RightsManagementUser> rmUsers = 840List<ContentGrant> grantList = new List<ContentGrant>(); 1176List<ContentGrant> grants = new List<ContentGrant>();
MS\Internal\Documents\RMPublishingDialog.cs (7)
238List<RightsManagementLicense> licenseList = 286List<ServerSideTemplate> templates = null; 370private List<ServerSideTemplate> GetXmlTemplates() 372List<Uri> templateList = new List<Uri>(); 1009public static List<ServerSideTemplate> BuildTemplateList(List<Uri> files) 1011List<ServerSideTemplate> templates = new List<ServerSideTemplate>();
Publishers.ApiService (1)
Program.cs (1)
24var entries = await dbContext.Entries.ToListAsync();
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
117var files = new List<IFileInfo> { file };
RazorWebSite (1)
Controllers\ViewEngineController.cs (1)
48var model = new List<Person>()
ReachFramework (86)
AlphaFlattener\Flattener.cs (18)
285List<PrimitiveInfo> commands = _dl.Commands; 537private static void SwitchCommands(List<PrimitiveInfo> commands, int i, PrimitiveInfo pi, int j, PrimitiveInfo pj, bool disconnect) 605private static void PushTransparencyDown(List<PrimitiveInfo> commands, int j) 659private static bool ConvertTransparentOnOpaque(List<PrimitiveInfo> commands, int i) 754private static void ReduceTie(PrimitiveInfo pi, List<PrimitiveInfo> commands, int i) 782private static List<int>[] CopyUnderlay(int count, List<PrimitiveInfo> commands) 784List<int>[] oldUnderlay = new List<int>[count]; 788List<int> l = commands[i].underlay; 810private void DisplayListOptimization(List<PrimitiveInfo> commands, int count, bool disjoint) 817List<int> [] oldUnderlay = null; 938List<Cluster> transparentCluster = Cluster.CalculateCluster(commands, count, disjoint, oldUnderlay); 959internal void LogInterestingPrimitives(List<PrimitiveInfo> commands, int count, List<Cluster> transparentCluster) 1006internal void SaveInterestingPrimitives(List<PrimitiveInfo> commands, int count, List<Cluster> transparentCluster) 1090private void AlphaRender(Primitive primitive, List<int> overlapping, int overlapHasTransparency, bool disjoint, string desp)
AlphaFlattener\Optimizer.cs (15)
17private List<int> m_primitives; 42public void Render(List<PrimitiveInfo> commands, IProxyDrawingContext dc) 122public static void CheckForRasterization(List<Cluster> clusters, List<PrimitiveInfo> commands) 140public static List<Cluster> CalculateCluster(List<PrimitiveInfo> commands, int count, bool disjoint, List<int>[] oldUnderlay) 142List<Cluster> transparentCluster = new List<Cluster>(); 252List<int>[] underlay, 253List<PrimitiveInfo> commands, 300private bool BetterRasterize(List<PrimitiveInfo> commands) 386List<PrimitiveInfo> commands, 389List<int> [] oldUnderlay, 390List<Cluster> transparentCluster, 469internal List<int> DebugPrimitives
AlphaFlattener\Primitive.cs (2)
2145public List<int> overlap; // 4 + N bytes, object on top of current object 2146public List<int> underlay; // 4 + N bytes, object under current object
AlphaFlattener\PrimitiveList.cs (6)
34List<int> l = obj as List<int>; 96List<int> extra = null; 306private static bool OrderedInsert(List<int> list, int n) 405public List<PrimitiveInfo> Commands 415protected List<PrimitiveInfo> _commands; // = null;
AlphaFlattener\PrimitiveRenderer.cs (4)
174public List<int> Overlapping 179public List<PrimitiveInfo> Commands 549private List<int> _overlapping; 550private List<PrimitiveInfo> _commands;
AlphaFlattener\SegmentTree.cs (1)
43private List<int> _sList;
packaging\XpsDigitalSignature.cs (2)
67List<PackageRelationshipSelector> selectorList = 358List<PackageRelationshipSelector> containedCollection
Packaging\XpsDocument.cs (3)
304List<PackagePart> xmlPartList = new List<PackagePart>(); 738List<PackageRelationshipSelector> selectorList, 848List<PackageRelationshipSelector> selectorList =
Packaging\XpsFixedDocumentReaderWriter.cs (4)
705List<PackageRelationshipSelector> selectorList, 762List<PackagePart> xmlPartList 809List<PackageRelationshipSelector> selectorList, 1150private List<IXpsFixedPageReader> _pageCache;
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (4)
437List<PackageRelationshipSelector> selectorList, 455List<PackagePart> xmlPartList 575List<PackageRelationshipSelector> selectorList, 644private List<IXpsFixedDocumentReader>_documentCache;
Packaging\XpsFixedPageReaderWriter.cs (4)
1353List<PackageRelationshipSelector> selectorList, 1375List<PackagePart> xmlPartList 1692AddRelationshipTypes(List<PackageRelationshipSelector> selectorList) 1981private List<INode> _currentChildren;
Packaging\XpsInterleavingPolicy.cs (2)
420List<InterleavingNode> removeList = new List<InterleavingNode>(); 555private List<InterleavingNode> _interleavingNodes = new List<InterleavingNode>();
Packaging\XpsManager.cs (1)
805List<PackageRelationshipSelector> selectorList,
PrintConfig\PrtCap_Public_Simple.cs (17)
218List<Collation> valueSet = new List<Collation>(); 251List<DeviceFontSubstitution> valueSet = new List<DeviceFontSubstitution>(); 284List<Duplexing> valueSet = new List<Duplexing>(); 321List<InputBin> valueSet = new List<InputBin>(); 435List<OutputColor> valueSet = new List<OutputColor>(); 468List<OutputQuality> valueSet = new List<OutputQuality>(); 501List<PageBorderless> valueSet = new List<PageBorderless>(); 568List<PageMediaSize> mediaSet = new List<PageMediaSize>(); 608List<PageMediaType> valueSet = new List<PageMediaType>(); 641List<PageOrder> valueSet = new List<PageOrder>(); 674List<PageOrientation> valueSet = new List<PageOrientation>(); 707List<PageResolution> resSet = new List<PageResolution>(); 816List<int> valueSet = new List<int>(); 850List<PagesPerSheetDirection> valueSet = new List<PagesPerSheetDirection>(); 885List<PhotoPrintingIntent> valueSet = new List<PhotoPrintingIntent>(); 917List<Stapling> valueSet = new List<Stapling>(); 950List<TrueTypeFontMode> valueSet = new List<TrueTypeFontMode>();
Serialization\DrawingContextFlattener.cs (2)
43private List<Matrix> _fullTransform = new List<Matrix>(); 46private List<Geometry> _fullClip = new List<Geometry>();
Serialization\VisualSerializer.cs (1)
1601List<char> filteredCharacters = null;
Replay (9)
Replay.cs (5)
42var rest = options.Parse(args); 104var compilerCalls = ReadAllCompilerCalls(options.BinlogPath); 134static List<CompilerCall> ReadAllCompilerCalls(string binlogPath) 142List<CompilerCall> compilerCalls, 148var tasks = new List<Task<BuildData>>(capacity: maxParallel);
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
src\Compilers\Shared\BuildServerConnection.cs (1)
64List<string> arguments,
Roslyn.Diagnostics.Analyzers (140)
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (2)
56var exportAttributes = new List<INamedTypeSymbol>() { mefV1ExportAttribute, mefV2ExportAttribute }; 67var appliedExportAttributes = exportAttributes.Where(e => namedTypeAttributes.Any(ad => ad.AttributeClass.DerivesFrom(e))).ToList();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
40List<SyntaxNode> statements = []; 353List<SyntaxNode> statements = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
64var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 67var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 74List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 75List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 153private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 169List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
164public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 186public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
67List<Exception>? exceptions = null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Roslyn.Diagnostics.CSharp.Analyzers (69)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
117var partsList = new List<string>(); 128public static bool TryGetNameParts(this ExpressionSyntax expression, List<string> parts) 158private static bool AddSimpleName(SimpleNameSyntax simpleName, List<string> parts)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (3)
16private readonly Dictionary<string, List<SyntaxToken>> _map = []; 23public static Dictionary<string, List<SyntaxToken>> GetAllDeclarations(SyntaxNode syntax) 35if (!_map.TryGetValue(identifier, out var list))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (3)
599var result = new List<IList<TSyntaxNode>>(); 601var currentGroup = new List<TSyntaxNode>(); 898var finalTrivia = from.GetLeadingTrivia().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\DefaultOperationProvider.cs (3)
27public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 35public override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (2)
15public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 89private static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxNode node)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (9)
18List<IndentBlockOperation> list, 33List<IndentBlockOperation> list, 58List<IndentBlockOperation> list, 72List<IndentBlockOperation> list, 86List<IndentBlockOperation> list, 101List<IndentBlockOperation> list, 111List<IndentBlockOperation> list, 136protected static void AddAnchorIndentationOperation(List<AnchorIndentationOperation> list, SyntaxToken anchorToken, SyntaxToken endToken) 146protected static void AddAlignIndentationOfTokensToBaseTokenOperation(List<AlignTokensOperation> list, SyntaxNode containingNode, SyntaxToken baseNode, IEnumerable<SyntaxToken> tokens, AlignTokensOption option = AlignTokensOption.AlignIndentationOfTokensToBaseToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (11)
46public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private static void AddTypeParameterConstraintClauseOperation(List<IndentBlockOperation> list, SyntaxNode node) 74private void AddSwitchIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 134private void AddLabelIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 150private static void AddAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode node) 205private static void SetAlignmentBlockOperation(List<IndentBlockOperation> list, SyntaxNode baseNode, SyntaxNode body) 216private void AddBlockIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 253private static void AddBracketIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 288private static void AddAlignmentBlockOperationRelativeToFirstTokenOnBaseTokenLine(List<IndentBlockOperation> list, (SyntaxToken openBrace, SyntaxToken closeBrace) bracePair) 294private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, SyntaxNode node) 356private static void AddEmbeddedStatementsIndentationOperation(List<IndentBlockOperation> list, StatementSyntax statement)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentUserSettingsFormattingRule.cs (1)
37public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (3)
52private static void AddIndentBlockOperationsForFromClause(List<IndentBlockOperation> list, FromClauseSyntax fromClause) 82public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 110public override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1001var constructors = new List<SyntaxNode>(); 1006private static void AppendConstructors(SyntaxList<MemberDeclarationSyntax> members, List<SyntaxNode> constructors, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\NameSyntaxComparer.cs (2)
77var result = new List<SimpleNameSyntax>(); 82private static void DecomposeNameParts(NameSyntax name, List<SimpleNameSyntax> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
197List<string> paramNames;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (2)
117var initialList = usingList.Cast<SyntaxNode>() 131var finalList = initialList.OrderBy(comparer).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
27var attributeNodes = 39var attributeDeclarations =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
196var members = new List<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
25var 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)
320var types = new List<BaseTypeSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
141var usingDirectives =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BaseNamespaceDeclarationSyntaxExtensions.cs (1)
22var newUsings = new List<UsingDirectiveSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\CompilationUnitSyntaxExtensions.cs (3)
111var usings = AddUsingDirectives(root, usingDirectives); 140private static List<UsingDirectiveSyntax> AddUsingDirectives( 144var usings = new List<UsingDirectiveSyntax>();
src\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)
24var indices = new List<bool>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\UsingDirectiveSyntaxExtensions.cs (1)
15this List<UsingDirectiveSyntax> usingDirectives,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (3)
116public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 172private static void ReplaceCaseIndentationRules(List<IndentBlockOperation> list, SyntaxNode node) 191private static void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
599var invocationTypes = this.InferTypes(parentInvocationExpressionToTypeInfer).Select(t => t.InferredType).ToList(); 600var instantiatedMethods = methods.Select(m => Instantiate(m, invocationTypes)).ToList(); 605var filteredMethods = instantiatedMethods.Where(m =>
Roslyn.Test.PdbUtilities (13)
EditAndContinue\EditAndContinueTest.cs (7)
26private readonly List<IDisposable> _disposables = []; 27private readonly List<GenerationInfo> _generations = []; 28private readonly List<SourceWithMarkedNodes> _sources = []; 94var unmappedNodes = new List<SyntaxNode>(); 123var readers = new List<MetadataReader>(); 125var exceptions = new List<ImmutableArray<Exception>>(); 178List<SyntaxNode> unmappedNodes)
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (1)
28public readonly List<Exception> Exceptions = [];
Reader\PdbValidation.cs (2)
362var pendingRemoval = new List<XElement>(); 659var expectedTags = pdbXml.DescendantsAndSelf("closure").Select((c, i) => new { Tag = $"<C:{i}>", StartIndex = methodStart + int.Parse(c.Attribute("offset").Value) }).ToList();
Reader\Token2SourceLineExporter.cs (2)
1146List<PdbTokenLine> list = [.. LoadTokenToSourceMapping(read).Values]; 1452var modList = new List<DbiModuleInfo>();
Shared\DummyMetadataImport.cs (1)
22private readonly List<GCHandle> _pinnedBuffers;
Roslyn.Test.Performance.Utilities (2)
ScenarioGenerator.cs (1)
17private readonly List<string> _buffer;
TraceManager.cs (1)
131private readonly List<long> _durations = [];
Roslyn.VisualStudio.DiagnosticsWindow (4)
OptionPages\ForceLowMemoryMode.cs (1)
60private readonly List<byte[]> _blocks = [];
PerfMargin\ActivityLevel.cs (1)
23private readonly List<ActivityLevel> _children;
PerfMargin\PerfMarginPanel.cs (1)
27private readonly List<StatusIndicator> _indicators = [];
VenusMargin\ProjectionSpanTagger.cs (1)
66if (!_textView.Properties.TryGetProperty(PropertyName, out List<Span> allSpans))
Roslyn.VisualStudio.Next.UnitTests (12)
Options\VisualStudioSettingsOptionPersisterTests.cs (1)
112var refreshedOptions = new List<(OptionKey2, object?)>();
Services\AssetProviderTests.cs (1)
57var stored2 = new List<(Checksum, object)>();
Services\PerformanceTrackerServiceTests.cs (9)
33var analyzerInfos = GetAnalyzerInfos(sampleSize, forSpanAnalysis); 54var analyzerInfos = GenerateReport(service, forSpanAnalysis); 78var analyzerInfos = GetAnalyzerInfos(to: 200, forSpanAnalysis); 94var analyzerInfos = GetAnalyzerInfos(to: 300, forSpanAnalysis); 111var analyzerInfos = GetAnalyzerInfos(to: 400, forSpanAnalysis); 136private static void VerifyAnalyzerInfo(List<AnalyzerInfoForPerformanceReporting> analyzerInfos, string analyzerName, double mean, double stddev) 144private static List<AnalyzerInfoForPerformanceReporting> GetAnalyzerInfos(int to, bool forSpanAnalysis) 165private static List<AnalyzerInfoForPerformanceReporting> GenerateReport(PerformanceTrackerService service, bool forSpanAnalysis) 167var analyzerInfos = new List<AnalyzerInfoForPerformanceReporting>();
Services\ServiceHubServicesTests.cs (1)
1749var changedDocuments = new List<string>();
RoutingSandbox (7)
Framework\FrameworkEndpointDataSource.cs (6)
13private readonly List<Action<EndpointBuilder>> _conventions; 15public List<RoutePattern> Patterns { get; } 16public List<HubMethod> HubMethods { get; } 18private List<Endpoint> _endpoints; 42private List<Endpoint> BuildEndpoints() 44List<Endpoint> endpoints = new List<Endpoint>();
HelloExtension\HelloMiddleware.cs (1)
20var payload = new List<byte>();
RoutingWebSite (1)
HelloExtension\HelloMiddleware.cs (1)
20var payload = new List<byte>();
RunTests (31)
AssemblyScheduler.cs (6)
81var longTests = testHistory 151var allTests = assemblyTypes.Values.SelectMany(v => v).SelectMany(v => v.Tests).Select(t => t.FullyQualifiedName).ToList(); 164var workItems = new List<HelixWorkItem>(); 166var currentFilters = new List<(string AssemblyFilePath, TestMethodInfo TestMethodInfo)>(); 257var deserialized = JsonSerializer.Deserialize<List<string>>(File.ReadAllText(testListPath));
HelixTestRunner.cs (2)
200var assemblyRelativeFilePaths = helixWorkItem.AssemblyFilePaths 407List<string> assemblyRelativeFilePaths,
Logger.cs (1)
13private static readonly List<string> s_lines = new List<string>();
Options.cs (5)
52public List<string> IncludeFilter { get; set; } = new List<string>(); 54public List<string> ExcludeFilter { get; set; } = new List<string>(); 144var includeFilter = new List<string>(); 145var excludeFilter = new List<string>(); 191List<string> assemblyList;
ProcessRunner.cs (2)
82var errorLines = new List<string>(); 83var outputLines = new List<string>();
ProcessTestExecutor.cs (1)
124var processResultList = new List<ProcessResult>();
ProcessUtil.cs (6)
43internal static List<Process> GetProcessChildren(Process process) => GetProcessChildrenCore(process, Process.GetProcesses()); 45private static List<Process> GetProcessChildrenCore(Process parentProcess, IEnumerable<Process> processes) 47var list = new List<Process>(); 68internal static List<Process> GetProcessTree(Process process) 71var list = new List<Process>(); 78var children = GetProcessChildrenCore(cur, processes);
Program.cs (1)
290var list = new List<AssemblyInfo>();
TestHistoryManager.cs (3)
91var testResults = await GetTestResultsAsync(runForThisStage, i, MaxTestsReturnedPerRequest, testClient, cancellationToken); 191private static async Task<List<TestCaseResult>> GetTestResultsAsync(TestRun testRun, int skip, int top, TestResultsHttpClient testClient, CancellationToken cancellationToken) 195var testResults = await testClient.GetTestResultsAsync("public", testRun.Id, skip: skip, top: top, cancellationToken: cancellationToken);
TestRunner.cs (4)
61var workItems = new List<WorkItemInfo>(); 80var running = new List<Task<TestResult>>(); 81var completed = new List<TestResult>(); 164private void Print(List<TestResult> testResults)
Sample (13)
Endpoints\MapSchemasEndpoints.cs (13)
27schemas.MapPost("/list-of-ints", (List<int> values) => values.Count); 103public List<List<string>> Seq1 { get; set; } = []; 104public List<List<string>> Seq2 { get; set; } = []; 137public List<ChildObject> Children { get; set; } = []; 149public List<ConfigItem> Items1 { get; set; } = []; 150public List<ConfigItem> Items2 { get; set; } = []; 158public List<string>? Break { get; set; } 215public List<string>? NullableList { get; set; } 225public List<NestedModel?>? NullableListWithNullableItems { get; set; } 245public List<string?> ListWithNullableElements { get; set; } = []; 269public List<TestEnum?> ListOfNullableEnums { get; set; } = [];
SampleStartups (1)
StartupExternallyControlled.cs (1)
16private readonly List<string> _urls = new List<string>();
ScenarioTests.Common.Tests (5)
ScenarioTestTypes.cs (2)
1180public List<string> ServerLog { get; set; } 1225public void ReceiveLog(List<string> log)
ServiceInterfaces.cs (3)
462List<string> GetLog(); 514void ReceiveLog(List<string> log); 633List<Employee> GetAllEmployees();
SemanticSearch.BuildTask (14)
GenerateFilteredReferenceAssembliesTask.cs (14)
107var errors = new List<(string message, int line)>(); 108var patterns = new List<ApiPattern>(); 144var types = new List<INamedTypeSymbol>(); 145var methods = new List<IMethodSymbol>(); 146var fields = new List<IFieldSymbol>(); 150var apis = new List<string>(); 200internal static void ParseApiPatterns(IReadOnlyList<string> lines, List<(string message, int line)> errors, List<ApiPattern> patterns) 279List<INamedTypeSymbol> types, 280List<IMethodSymbol> methods, 281List<IFieldSymbol> fields, 371var types = new List<INamedTypeSymbol>(); 372var methods = new List<IMethodSymbol>(); 373var 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 (15)
LogBuffering\SerializedLogRecord.cs (2)
34List<KeyValuePair<string, object?>> attributes, 66public List<KeyValuePair<string, object?>> Attributes { get; }
LogBuffering\SerializedLogRecordFactory.cs (2)
15private static readonly ObjectPool<List<KeyValuePair<string, object?>>> _attributesPool = 29List<KeyValuePair<string, object?>> serializedAttributes = _attributesPool.Get();
Pools\PooledListPolicy.cs (3)
13internal sealed class PooledListPolicy<T> : PooledObjectPolicy<List<T>> 21public override List<T> Create() => []; 23public override bool Return(List<T> obj)
Pools\PooledListWithCapacityPolicy.cs (3)
13internal sealed class PooledListWithCapacityPolicy<T> : PooledObjectPolicy<List<T>> 23public override List<T> Create() => new(_listCapacity); 25public override bool Return(List<T> obj)
Pools\PoolFactory.cs (5)
105/// Creates an object pool of <see cref="List{T}"/> instances. 114public static ObjectPool<List<T>> CreateListPool<T>(int maxCapacity = DefaultCapacity) 122/// Creates an object pool of <see cref="List{T}"/> instances, each with provided <paramref name="listCapacity"/>. 125/// <param name="listCapacity">The capacity of each created <see cref="List{T}"/> instance.</param> 132public static ObjectPool<List<T>> CreateListPoolWithCapacity<T>(int listCapacity, int maxCapacity = DefaultCapacity)
Shared.Tests (25)
Data.Validation\LengthAttributeTests.cs (10)
29var results = new List<ValidationResult>(); 85var results = new List<ValidationResult>(); 157var results = new List<ValidationResult>(); 214var results = new List<ValidationResult>(); 264var results = new List<ValidationResult>(); 342var results = new List<ValidationResult>(); 382public List<string> CustomMessage { get; set; } = []; 390var results = new List<ValidationResult>(); 402public List<string> DefaultMessage { get; set; } = []; 410var results = new List<ValidationResult>();
Data.Validation\TimeSpanAttributeTests.cs (4)
27var results = new List<ValidationResult>(); 92var results = new List<ValidationResult>(); 155var results = new List<ValidationResult>(); 229var results = new List<ValidationResult>();
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
25var input = new List<T>();
JsonSchemaExporter\JsonSchemaExporterTests.cs (2)
95List<(Type? parentType, string? propertyName, Type type)> visitedNodes = new(); 109List<(Type? parentType, string? propertyName, Type type)> expectedNodes =
JsonSchemaExporter\TestTypes.cs (3)
815yield return new TestData<List<bool>>([false, true, false], """{"type":["array","null"],"items":{"type":"boolean"}}"""); 954public List<SimpleRecord>? ListValue { get; set; } 1298[JsonSerializable(typeof(List<bool>))]
Pools\PoolTests.cs (2)
151var l = pool.Get(); 155var l2 = pool.Get();
Throw\ThrowTest.cs (3)
328exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((List<int>?)null, "foo")); 337var list = new List<int>(); 378List<int>? listButActuallyNull = null;
SignalR.Client.FunctionalTestApp (1)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
11 private readonly List<XElement> _storedElements = new List<XElement>();
SignalRSamples (1)
ConnectionHandlers\MessagesConnectionHandler.cs (1)
65var tasks = new List<Task>(Connections.Count);
Sockets.BindTests (5)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
23public List<Type> IgnoredExceptions { get; } = new List<Type>();
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
32public List<Type> IgnoredCriticalLogExceptions => TestApplicationErrorLogger.IgnoredExceptions;
src\Servers\Kestrel\shared\test\TransportTestHelpers\DiagnosticMemoryPoolFactory.cs (1)
19private readonly List<DiagnosticMemoryPool> _pools;
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
273var errors = new List<Exception>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
Sockets.FunctionalTests (7)
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\TestApplicationErrorLoggerLoggedTest.cs (1)
32public List<Type> IgnoredCriticalLogExceptions => TestApplicationErrorLogger.IgnoredExceptions;
src\Servers\Kestrel\shared\test\TransportTestHelpers\DiagnosticMemoryPoolFactory.cs (1)
19private readonly List<DiagnosticMemoryPool> _pools;
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (1)
28private List<Http2Frame> ReceivedFrames { get; } = new List<Http2Frame>();
src\Shared\Metrics\TestMeterFactory.cs (1)
13public List<Meter> Meters { get; } = new List<Meter>();
SqlServerEndToEnd.ApiService (2)
Program.cs (2)
27var entries1 = await db1Context.Entries.ToListAsync(); 28var entries2 = await db2Context.Entries.ToListAsync();
StaticFilesAuth (2)
Controllers\AccountController.cs (1)
35var claims = new List<Claim>
Startup.cs (1)
126var metadata = new List<object>
Stress.ApiService (3)
ProducerConsumer.cs (1)
32var links = new List<ActivityLink>();
TestMetrics.cs (1)
34var uploadSpeed = new List<double>();
TraceCreator.cs (1)
17private readonly List<Activity> _allActivities = new List<Activity>();
Stress.AppHost (4)
InteractionCommands.cs (2)
133var inputs = new List<InteractionInput> 217var inputs = new List<InteractionInput>();
Program.cs (2)
157var resources = model.Resources 162var commandTasks = new List<Task>();
Stress.TelemetryService (2)
GaugeMetrics.cs (2)
22var measurements = new List<Measurement<long>>(); 23var processes = Process.GetProcesses().ToList();
Swaggatherer (19)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
SwaggathererApplication.cs (6)
63var entries = new List<RouteEntry>(); 82var routesByPrecedence = new Dictionary<decimal, List<RouteEntry>>(); 88if (!routesByPrecedence.TryGetValue(precedence, out var matches)) 142private void ParseEntries(JObject input, List<RouteEntry> entries) 182private bool IsDuplicateTemplate(RouteEntry entry, List<RouteEntry> others) 219private static void Sort(List<RouteEntry> entries)
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)
167var typeArgumentList = new List<CodeTypeReference>();
System\CodeDom\Compiler\CodeDomProvider.cs (1)
18private static readonly List<CompilerInfo> s_allCompilerInfo = new List<CompilerInfo>();
System.Collections (6)
artifacts\obj\System.Collections\Debug\net10.0\System.Collections.Forwards.cs (1)
9[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.List<>))]
System\Collections\Generic\OrderedDictionary.cs (1)
23/// Operations on the collection have algorithmic complexities that are similar to that of the <see cref="List{T}"/>
System\Collections\Generic\PriorityQueueDebugView.cs (1)
31var list = new List<(TElement Element, TPriority Priority)>(_queue.UnorderedItems);
System\Collections\Generic\SortedSet.cs (2)
1052List<T> toSave = new List<T>(Count); 1432List<T> matches = new List<T>(this.Count);
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
99List<T> toRemove = new List<T>();
System.Collections.Concurrent (8)
System\Collections\Concurrent\BlockingCollection.cs (5)
971List<WaitHandle> handles = GetHandles(collections, externalCancellationToken, true, out collatedCancellationTokens); 1048private static List<WaitHandle> GetHandles(BlockingCollection<T>[] collections, CancellationToken externalCancellationToken, bool isAddOperation, out CancellationToken[] cancellationTokens) 1051List<WaitHandle> handlesList = new List<WaitHandle>(collections.Length + 1); // + 1 for the external token handle to be added 1052List<CancellationToken> tokensList = new List<CancellationToken>(collections.Length + 1); // + 1 for the external token 1375List<WaitHandle> handles = GetHandles(collections, externalCancellationToken, false, out collatedCancellationTokens);
System\Collections\Concurrent\ConcurrentStack.cs (3)
692private List<T> ToList() 701private static List<T> ToList(Node? curr) 703List<T> list = new List<T>();
System.Collections.Immutable (8)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
543List<int>? removeIndices = null;
System\Collections\Immutable\ImmutableArray_1.cs (1)
759List<int>? removeIndices = null;
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (2)
73List<T> list = sequence.ToList(); 108if (sequence is List<T> list)
System\Collections\Immutable\ImmutableList_1.cs (1)
1135/// This implementation comes from <see cref="List{T}"/>.
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
1052List<T>? list = null;
System\Collections\Immutable\ImmutableSortedSet_1.cs (2)
1117List<T> list; 1174List<T> list;
System.ComponentModel.Annotations (14)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
53List<PropertyDescriptor> tempPropertyDescriptors = new List<PropertyDescriptor>();
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
238List<Attribute> attributes = new List<Attribute>(propertyDescriptorAttributes.Count);
System\ComponentModel\DataAnnotations\Validator.cs (12)
224List<ValidationError> errors = GetValidationErrors(value, validationContext, attributes, false); 287List<ValidationError> errors = GetObjectValidationErrors(instance, validationContext, validateAllProperties, false); 317List<ValidationError> errors = GetValidationErrors(value, validationContext, validationAttributes, false); 403private static List<ValidationError> GetObjectValidationErrors(object instance, 411List<ValidationError> errors = GetObjectPropertyValidationErrors(instance, validationContext, validateAllProperties, breakOnFirstError); 461private static List<ValidationError> GetObjectPropertyValidationErrors(object instance, 464var properties = GetPropertyValues(instance, validationContext); 465var errors = new List<ValidationError>(); 516private static List<KeyValuePair<ValidationContext, object?>> GetPropertyValues(object instance, 520var items = new List<KeyValuePair<ValidationContext, object?>>(properties.Count); 552private static List<ValidationError> GetValidationErrors(object? value, 557var errors = new List<ValidationError>();
System.ComponentModel.Composition (123)
Microsoft\Internal\Collections\CollectionServices.cs (10)
93List<T> result = new List<T>(source); 99public static List<T>? FastAppendToListAllowNulls<T>(this List<T>? source, IEnumerable<T>? second) 113if (second is List<T> secondAsList) 132private static List<T> FastAppendToListAllowNulls<T>(this List<T>? source, T value) 140public static List<T>? FastAppendToListAllowNulls<T>( 141this List<T>? source, T? value, 217public static List<T> AsList<T>(this IEnumerable<T> enumerable) 219if (enumerable is List<T> list)
Microsoft\Internal\Collections\WeakReferenceCollection.cs (3)
11private readonly List<WeakReference> _items = new List<WeakReference>(); 64public List<T> AliveItemsToList() 66List<T> aliveItems = new List<T>();
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (6)
23private List<ExportDefinition>? _exports; 24private List<ImportDefinition>? _imports; 255private List<ExportDefinition> GetExportDefinitions() 257List<ExportDefinition> exports = new List<ExportDefinition>(); 417private List<ImportDefinition> GetImportDefinitions() 419List<ImportDefinition> imports = new List<ImportDefinition>();
System\ComponentModel\Composition\CompositionException.cs (5)
138var errors = new List<Exception>(); 162List<Stack<CompositionError>> paths = CalculatePaths(this); 207private static void WritePaths(StringBuilder writer, List<Stack<CompositionError>> paths) 262private static List<Stack<CompositionError>> CalculatePaths(CompositionException exception) 264List<Stack<CompositionError>> paths = new List<Stack<CompositionError>>();
System\ComponentModel\Composition\CompositionExceptionDebuggerProxy.cs (1)
27var errors = new List<Exception>();
System\ComponentModel\Composition\Hosting\AggregateCatalog.cs (1)
128List<Tuple<ComposablePartDefinition, ExportDefinition>>? aggregateResult = null;
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (1)
162var exports = new List<Export>();
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
80var catalogs = new List<ComposablePartCatalog>();
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (4)
40private List<Action>? _completeActionList; 41private List<Action>? _revertActionList; 151List<Exception>? exceptions = null; 190List<Exception>? exceptions = null;
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogChangeProxy.cs (2)
16private readonly List<ComposablePartDefinition> _addedParts; 42var addedExports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (8)
41private ConditionalWeakTable<object, List<ComposablePart>>? _gcRoots; 311private List<Export> InternalGetExportsCore(ImportDefinition definition, AtomicComposition? atomicComposition) 329List<Export> exports = new List<Export>(); 367List<ExportDefinition> exports = new List<ExportDefinition>(); 603List<ComposablePart>? partList; 605ConditionalWeakTable<object, List<ComposablePart>>? gcRoots = _gcRoots; 606gcRoots ??= new ConditionalWeakTable<object, List<ComposablePart>>(); 811var resurrectedExports = new List<ExportDefinition>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (1)
27List<Export> exports = new List<Export>();
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (1)
25private List<ComposablePartCatalog> _catalogs = new List<ComposablePartCatalog>();
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (7)
17private List<ComposablePart> _parts = new List<ComposablePart>(); 206List<ComposablePart>? parts = null; 217List<Export> exports = new List<Export>(); 248var newParts = GetUpdatedPartsList(ref batch); 315private List<ComposablePart> GetUpdatedPartsList(ref CompositionBatch batch) 322List<ComposablePart>? parts = null; 333List<ComposablePart>? partsToRemove = null;
System\ComponentModel\Composition\Hosting\CompositionBatch.cs (2)
17private List<ComposablePart> _partsToAdd; 19private List<ComposablePart> _partsToRemove;
System\ComponentModel\Composition\Hosting\CompositionScopeDefinition.cs (1)
191var exports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
480List<PropertyInfo> properties = metadataViewType.GetAllProperties().
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (4)
574List<Tuple<string, AssemblyCatalog>> catalogsToAdd; 575List<Tuple<string, AssemblyCatalog>> catalogsToRemove; 694out List<Tuple<string, AssemblyCatalog>> catalogsToAdd, 695out List<Tuple<string, AssemblyCatalog>> catalogsToRemove)
System\ComponentModel\Composition\Hosting\FilteredCatalog.cs (1)
154var exports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependenciesTraversal.cs (5)
18private Dictionary<string, List<ComposablePartDefinition>>? _exportersIndex; 36_exportersIndex = new Dictionary<string, List<ComposablePartDefinition>>(); 48if (!_exportersIndex!.TryGetValue(contractName, out List<ComposablePartDefinition>? parts)) 59List<ComposablePartDefinition>? reachablePartList = null; 65List<ComposablePartDefinition>? candidateReachableParts = null;
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependentsTraversal.cs (5)
24private Dictionary<string, List<ComposablePartDefinition>>? _importersIndex; 42_importersIndex = new Dictionary<string, List<ComposablePartDefinition>>(); 57if (!_importersIndex!.TryGetValue(contractName, out List<ComposablePartDefinition>? parts)) 68List<ComposablePartDefinition>? reachablePartList = null; 75List<ComposablePartDefinition>? candidateReachableParts = null;
System\ComponentModel\Composition\Hosting\ImportEngine.EngineContext.cs (2)
18private readonly List<PartManager> _addedPartManagers = new List<PartManager>(); 19private readonly List<PartManager> _removedPartManagers = new List<PartManager>();
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (4)
20private Dictionary<ImportDefinition, List<IDisposable>>? _importedDisposableExports; 141List<IDisposable>? disposableExports = null; 152List<IDisposable>? oldDisposableExports = null; 174_importedDisposableExports ??= new Dictionary<ImportDefinition, List<IDisposable>>();
System\ComponentModel\Composition\Hosting\ImportEngine.RecompositionManager.cs (5)
34public List<PartManager> GetAffectedParts(IEnumerable<string> changedContractNames) 38List<PartManager> parts = new List<PartManager>(); 104var aliveItems = indexEntries.AliveItemsToList(); 116var partsToIndex = _partsToIndex.AliveItemsToList(); 119List<PartManager?> partsToUnindex = _partsToUnindex.AliveItemsToList()!;
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (16)
29private volatile List<ComposablePartDefinition>? _parts; 32private readonly Lazy<Dictionary<string, List<ComposablePartDefinition>>> _contractPartIndex; 81_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 109_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 138_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 171_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 176var typesList = new List<Type>(); 266var collection = new List<ComposablePartDefinition>(); 299List<ComposablePartDefinition>? nonGenericMatches = GetCandidateParts(contractName); 300List<ComposablePartDefinition>? genericMatches = GetCandidateParts(genericContractName); 305private List<ComposablePartDefinition>? GetCandidateParts(string? contractName) 312_contractPartIndex.Value.TryGetValue(contractName, out List<ComposablePartDefinition>? contractCandidateParts); 316private Dictionary<string, List<ComposablePartDefinition>> CreateIndex() 318Dictionary<string, List<ComposablePartDefinition>> index = new Dictionary<string, List<ComposablePartDefinition>>(StringComparers.ContractName); 324List<ComposablePartDefinition>? contractParts = null;
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (2)
27internal static readonly List<Tuple<ComposablePartDefinition, ExportDefinition>> _EmptyExportsList = new List<Tuple<ComposablePartDefinition, ExportDefinition>>(); 103List<Tuple<ComposablePartDefinition, ExportDefinition>>? exports = null;
System\ComponentModel\Composition\Primitives\ComposablePartDefinition.cs (1)
110List<Tuple<ComposablePartDefinition, ExportDefinition>>? multipleExports = null;
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (1)
20List<Type> pureGenericParameters = new List<Type>();
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (20)
25private List<LazyMemberInfo>? _members; 26private List<Lazy<ParameterInfo>>? _parameters; 134List<LazyMemberInfo>? members = null; 135List<Lazy<ParameterInfo>>? parameters = null; 171private Dictionary<LazyMemberInfo, MemberInfo[]> BuildMembersTable(List<LazyMemberInfo> members) 236private Dictionary<Lazy<ParameterInfo>, ParameterInfo>? BuildParametersTable(List<Lazy<ParameterInfo>>? parameters) 256private List<ImportDefinition> PopulateImports(List<LazyMemberInfo> members, List<Lazy<ParameterInfo>> parameters) 258List<ImportDefinition> imports = new List<ImportDefinition>(); 275private ImportDefinition TranslateImport(ReflectionImportDefinition reflectionImport, List<LazyMemberInfo> members, List<Lazy<ParameterInfo>> parameters) 373private List<ExportDefinition> PopulateExports(List<LazyMemberInfo> members) 375List<ExportDefinition> exports = new List<ExportDefinition>(); 392public ExportDefinition TranslateExpot(ReflectionMemberExportDefinition reflectionExport, List<LazyMemberInfo> members) 470List<LazyMemberInfo> members = new List<LazyMemberInfo>(); 471List<Lazy<ParameterInfo>> parameters = new List<Lazy<ParameterInfo>>(); 474var exports = PopulateExports(members); 475var imports = PopulateImports(members, parameters);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (2)
148List<Tuple<ComposablePartDefinition, ExportDefinition>>? exports = null; 223List<Tuple<ComposablePartDefinition, ExportDefinition>>? multipleExports = null;
System.ComponentModel.Composition.Registration (45)
System\ComponentModel\Composition\Registration\ExportBuilder.cs (3)
13private List<Tuple<string, object>> _metadataItems; 14private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 57internal void BuildAttributes(Type type, ref List<Attribute> attributes)
System\ComponentModel\Composition\Registration\ImportBuilder.cs (1)
71internal void BuildAttributes(Type type, ref List<Attribute> attributes)
System\ComponentModel\Composition\Registration\PartBuilder.cs (20)
13private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() }; 15private readonly List<ExportBuilder> _typeExportBuilders; 20private List<Tuple<string, object>> _metadataItems; 21private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 28private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>> _propertyExports; 29private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>> _propertyImports; 30private readonly List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>> _interfaceExports; 225var attributes = new List<Attribute>(); 335internal bool BuildConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 376internal static void BuildDefaultConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 386private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo, ImportBuilder> configureConstructorImports) 388configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 410List<Attribute> attributes = null; 417internal void BuildPropertyAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 423List<Attribute> attributes = null; 503configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (21)
21private static readonly List<object> s_emptyList = new List<object>(); 24private readonly List<PartBuilder> _conventions = new List<PartBuilder>(); 26private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 27private readonly Dictionary<ParameterInfo, List<Attribute>> _parameters = new Dictionary<ParameterInfo, List<Attribute>>(); 89private List<Tuple<object, List<Attribute>>> EvaluateThisTypeAgainstTheConvention(Type type) 91List<Attribute> attributes = new List<Attribute>(); 93var configuredMembers = new List<Tuple<object, List<Attribute>>>(); 123List<Attribute> cachedAttributes = null; 140List<Attribute> attributeList; 141foreach (Tuple<object, List<Attribute>> element in EvaluateThisTypeAgainstTheConvention((Type)member)) 148List<Attribute> memberAttributes; 182if (!_parameters.TryGetValue((ParameterInfo)element.Item1, out List<Attribute> parameterAttributes)) 212List<Attribute> cachedAttributes = ReadParameterCustomAttributes(parameter); 217private List<Attribute> ReadMemberCustomAttributes(MemberInfo member) 219List<Attribute> cachedAttributes = null; 253private List<Attribute> ReadParameterCustomAttributes(ParameterInfo parameter) 255List<Attribute> cachedAttributes = null;
System.ComponentModel.TypeConverter (15)
System\ComponentModel\Design\Serialization\ContextStack.cs (1)
26private List<object>? _contextStack;
System\ComponentModel\EnumConverter.cs (1)
179List<Enum> flagValues = new List<Enum>();
System\ComponentModel\EventDescriptorCollection.cs (1)
314List<EventDescriptor?> eventList = new List<EventDescriptor?>(_events);
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
28List<Attribute> attrList = new List<Attribute>(AttributeArray!)
System\ComponentModel\MaskedTextProvider.cs (2)
148private List<CharDescriptor> _stringDescriptor; 535List<int> editPositions = new List<int>();
System\ComponentModel\MemberDescriptor.cs (2)
95List<Attribute> newList = new List<Attribute>(); 327List<Attribute> list;
System\ComponentModel\PropertyDescriptorCollection.cs (1)
332List<PropertyDescriptor?> propList = new List<PropertyDescriptor?>(_properties);
System\ComponentModel\ReferenceConverter.cs (1)
126List<object?>? components = null;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
599List<PropertyDescriptor>? propertyList = null; 863List<Type> typeList = new List<Type>(); 1269List<ReflectPropertyDescriptor> extendedList = new List<ReflectPropertyDescriptor>(attributes.Count);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
89var attributes = new List<Attribute>(ReflectGetAttributes(_type));
System\ComponentModel\WeakHashtable.cs (1)
77List<object>? cleanupList = null;
System.Composition.Convention (52)
System\Composition\Convention\ConventionBuilder.cs (20)
17private readonly List<PartConventionBuilder> _conventions = new List<PartConventionBuilder>(); 19private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 20private readonly Dictionary<ParameterInfo, List<Attribute>> _parameters = new Dictionary<ParameterInfo, List<Attribute>>(); 114private List<Tuple<object, List<Attribute>>> EvaluateThisTypeInfoAgainstTheConvention(TypeInfo typeInfo) 116List<Attribute> attributes = new List<Attribute>(); 117var configuredMembers = new List<Tuple<object, List<Attribute>>>(); 152List<Attribute> cachedAttributes = null; 174List<Attribute> attributeList; 175foreach (Tuple<object, List<Attribute>> element in EvaluateThisTypeInfoAgainstTheConvention(typeInfo)) 185if (!_memberInfos.TryGetValue(mi, out List<Attribute> memberAttributes)) 200if (!_parameters.TryGetValue(pi, out List<Attribute> parameterAttributes)) 232private List<Attribute> ReadMemberCustomAttributes(Type reflectedType, System.Reflection.MemberInfo member) 234List<Attribute> cachedAttributes = null; 289List<Attribute> cachedAttributes = ReadParameterCustomAttributes(reflectedType, parameter); 293private List<Attribute> ReadParameterCustomAttributes(Type reflectedType, System.Reflection.ParameterInfo parameter) 295List<Attribute> cachedAttributes = null;
System\Composition\Convention\ExportConventionBuilder.cs (3)
20private List<Tuple<string, object>> _metadataItems; 21private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 120internal void BuildAttributes(Type type, ref List<Attribute> attributes)
System\Composition\Convention\ImportConventionBuilder.cs (3)
21private List<Tuple<string, object>> _metadataConstraintItems; 22private List<Tuple<string, Func<Type, object>>> _metadataConstraintItemFuncs; 128internal void BuildAttributes(Type type, ref List<Attribute> attributes)
System\Composition\Convention\PartConventionBuilder.cs (26)
17private static List<Attribute> s_onImportsSatisfiedAttributeList; 18private static readonly List<Attribute> s_importingConstructorList = new List<Attribute>() { new ImportingConstructorAttribute() }; 20private readonly List<ExportConventionBuilder> _typeExportBuilders; 25private List<Tuple<string, object>> _metadataItems; 26private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 33private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>> _propertyExports; 34private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>> _propertyImports; 35private readonly List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>> _interfaceExports; 36private readonly List<Predicate<MethodInfo>> _methodImportsSatisfiedNotifications; 422var attributes = new List<Attribute>(); 529internal bool BuildConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 567internal static void BuildDefaultConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 577private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo, ImportConventionBuilder> configureConstructorImports) 579configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 601List<Attribute> attributes = null; 608internal void BuildOnImportsSatisfiedNotification(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 646var onImportsSatisfiedAttributeList = new List<Attribute> 652configuredMembers.Add(new Tuple<object, List<Attribute>>(mi, s_onImportsSatisfiedAttributeList)); 662internal void BuildPropertyAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 668List<Attribute> attributes = null; 748configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.Composition.Hosting (6)
System\Composition\Hosting\Core\CompositionOperation.cs (3)
16private List<Action> _nonPrerequisiteActions; 17private List<Action> _postCompositionActions; 104var currentActions = _nonPrerequisiteActions;
System\Composition\Hosting\Core\LifetimeContext.cs (1)
38private List<IDisposable> _boundPartInstances = new List<IDisposable>(0);
System\Composition\Hosting\Core\UpdateResult.cs (1)
17private readonly List<ExportDescriptorPromise> _providedDescriptors = new List<ExportDescriptorPromise>();
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (1)
49var blockExprs = new List<Expression>();
System.Composition.TypedParts (9)
System\Composition\Debugging\ContainerConfigurationDebuggerProxy.cs (2)
59var discovered = new List<DiscoveredPart>(); 60var ignored = new List<Type>();
System\Composition\Hosting\ContainerConfiguration.cs (3)
23private readonly List<ExportDescriptorProvider> _addedSources = new List<ExportDescriptorProvider>(); 24private readonly List<Tuple<IEnumerable<Type>, AttributedModelProvider>> _types = new List<Tuple<IEnumerable<Type>, AttributedModelProvider>>(); 33var providers = _addedSources.ToList();
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (2)
40var result = new List<CompositionDependency>(); 79var statements = new List<Expression>();
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (2)
24private readonly List<DiscoveredExport> _exports = new List<DiscoveredExport>(); 30private readonly List<Type[]> _appliedArguments = new List<Type[]>();
System.Configuration.ConfigurationManager (34)
System\Configuration\ApplicationSettingsBase.cs (1)
715var settingProps = new List<PropertyInfo>();
System\Configuration\BaseConfigurationRecord.cs (8)
386Dictionary<string, List<SectionInput>> indirectLocationInputs = null; 417indirectLocationInputs ??= new Dictionary<string, List<SectionInput>>(1); 440foreach (KeyValuePair<string, List<SectionInput>> keyValuePair in indirectLocationInputs) 442List<SectionInput> inputsPerConfigKey = keyValuePair.Value; 649List<SectionRecord> removes = null; 1169List<SectionInput> locationInputs = sectionRecord.LocationInputs; 1170List<SectionInput> indirectLocationInputs = sectionRecord.IndirectLocationInputs; 2637List<ConfigurationException> localErrors =
System\Configuration\ConfigurationSchemaErrors.cs (5)
13private List<ConfigurationException> _errorsAll; 16private List<ConfigurationException> _errorsGlobal; 22private List<ConfigurationException> _errorsLocal; 78internal List<ConfigurationException> RetrieveAndResetLocalErrors(bool keepLocalErrors) 80List<ConfigurationException> list = _errorsLocal;
System\Configuration\ErrorsHelper.cs (6)
11internal static int GetErrorCount(List<ConfigurationException> errors) 16internal static bool GetHasErrors(List<ConfigurationException> errors) 21internal static void AddError(ref List<ConfigurationException> errors, ConfigurationException e) 38internal static void AddErrors(ref List<ConfigurationException> errors, ICollection<ConfigurationException> coll) 49internal static ConfigurationErrorsException GetErrorsException(List<ConfigurationException> errors) 57internal static void ThrowOnErrors(List<ConfigurationException> errors)
System\Configuration\FactoryRecord.cs (2)
23private List<ConfigurationException> _errors; // errors 156internal List<ConfigurationException> Errors => _errors;
System\Configuration\LocationSectionRecord.cs (3)
12private List<ConfigurationException> _errors; // errors 14internal LocationSectionRecord(SectionXmlInfo sectionXmlInfo, List<ConfigurationException> errors) 27internal List<ConfigurationException> ErrorsList => _errors;
System\Configuration\MgmtConfigurationRecord.cs (1)
802List<string> streamsToRemove = new List<string>();
System\Configuration\SectionInput.cs (2)
16private readonly List<ConfigurationException> _errors; 21internal SectionInput(SectionXmlInfo sectionXmlInfo, List<ConfigurationException> errors)
System\Configuration\SectionRecord.cs (5)
108internal List<SectionInput> LocationInputs { get; private set; } 119internal List<SectionInput> IndirectLocationInputs { get; private set; } 210List<SectionInput> inputs = isIndirectLocation 274private List<ConfigurationException> GetAllErrors() 276List<ConfigurationException> allErrors = null;
System\Diagnostics\ListenerElementsCollection.cs (1)
27List<TraceListener> listeners = new();
System.Console (2)
System\TermInfo.Database.cs (2)
224var values = new List<string>(extendedStringCount); 244var names = new List<string>(extendedBoolCount + extendedNumberCount + extendedStringCount);
System.Data.Common (86)
System\Data\Common\DataColumnMappingCollection.cs (2)
14private List<DataColumnMapping>? _items; // delay creation until AddWithoutEvents, Insert, CopyTo, GetEnumerator 189private List<DataColumnMapping> ArrayList()
System\Data\Common\DataTableMappingCollection.cs (2)
17private List<DataTableMapping>? _items; // delay creation until AddWithoutEvents, Insert, CopyTo, GetEnumerator 148private List<DataTableMapping> ArrayList() => _items ??= new List<DataTableMapping>();
System\Data\Common\DbDataAdapter.cs (1)
1385List<DataRow>? rows = null;
System\Data\Common\DbDataReaderExtensions.cs (1)
73var columnSchema = new List<DbColumn>();
System\Data\DataColumn.cs (1)
59internal List<DataColumn>? _dependentColumns; // list of columns whose expression consume values from this column
System\Data\DataRelation.cs (1)
428List<DataTable> list = new List<DataTable>();
System\Data\DataSet.cs (1)
3229List<DataTable> topTables = new List<DataTable>();
System\Data\DataTable.cs (24)
64internal readonly List<Index> _indexes; 66private List<Index>? _shadowIndexes; 126internal List<DataColumn>? _dependentColumns; 148internal readonly List<DataView> _delayedViews = new List<DataView>(); 149private readonly List<DataViewListener> _dataViewListeners = new List<DataViewListener>(); 373List<DataTable> list = new List<DataTable>(); 1120internal List<Index> LiveIndexes 1588List<DataRelation>? nestedParents = null; 1855private string GetInheritedNamespace(List<DataTable> visitedTables) 3160List<DataRow> errorList = new List<DataRow>(); 3210internal List<DataViewListener> GetListeners() => _dataViewListeners; 4350List<DataRow>? cachedRows = null; 5526List<DataTable> tableList = new List<DataTable>(); 5535private static bool CheckForClosureOnExpressionTables(List<DataTable> tableList) 6382List<DataTable> tableList = new List<DataTable>(); 6541List<DataTable> tableList = new List<DataTable>(); 6544List<DataRelation> relationList = new List<DataRelation>(); 6662private static void CreateTableList(DataTable currentTable, List<DataTable> tableList) 6673private static void CreateRelationList(List<DataTable> tableList, List<DataRelation> relationList) 6823internal static List<DataTable>? t_usedTables; 6988internal void EvaluateExpressions(DataRow row, DataRowAction action, List<DataRow>? cachedRows) 7141internal void EvaluateDependentExpressions(List<DataColumn>? columns, DataRow row, DataRowVersion version, List<DataRow>? cachedRows)
System\Data\DataTableCollection.cs (1)
616internal void ReplaceFromInference(List<DataTable> tableList)
System\Data\DataView.cs (2)
1704List<object[]> rowlist = new List<object[]>(); 1735private static bool RowExist(List<object[]> arraylist, object[] objectArray)
System\Data\DataViewListener.cs (2)
141List<DataViewListener> listeners = table.GetListeners(); 190List<DataViewListener> listeners = table.GetListeners();
System\Data\EnumerableRowCollection.cs (3)
38private readonly List<Func<TRow, bool>> _listOfPredicates; 235(List<object>)key, 261(List<object>)key,
System\Data\Filter\AggregateNode.cs (3)
70internal override void Bind(DataTable table, List<DataColumn> list) 137internal static void Bind(DataRelation? relation, List<DataColumn> list) 197List<int> recordList = new List<int>();
System\Data\Filter\BinaryNode.cs (1)
27internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\ConstNode.cs (1)
67internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\DataExpression.cs (2)
95List<DataColumn> list = new List<DataColumn>(); 176List<int> recordList = new List<int>();
System\Data\Filter\ExpressionNode.cs (1)
46internal abstract void Bind(DataTable table, List<DataColumn> list);
System\Data\Filter\FunctionNode.cs (1)
85internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\LookupNode.cs (1)
24internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\NameNode.cs (1)
34internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\UnaryNode.cs (1)
24internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\Filter\ZeroOpNode.cs (1)
24internal override void Bind(DataTable table, List<DataColumn> list)
System\Data\LinqDataView.cs (2)
132List<object?> keyList = new List<object?>(); 168List<object?> keyList = new List<object?>();
System\Data\Merger.cs (1)
53List<DataColumn>? existingColumns = null; // need to cache existing columns
System\Data\ProviderBase\SchemaMapping.cs (4)
530private static void AddItemToAllowRollback(ref List<object>? items, object value) 539private static void RollbackAddedItems(List<object>? items) 577List<object>? addedItems = null; 799List<object>? addedItems = null;
System\Data\RecordManager.cs (1)
16private readonly List<int> _freeRecordList = new List<int>();
System\Data\Select.cs (2)
820List<int> matchingRecords = new List<int>(); 843List<DataRow> matchingRows = new List<DataRow>();
System\Data\Selection.cs (5)
499List<object[]> list = new List<object[]>(); 1009private void GetUniqueKeyValues(List<object[]> list, int curNodeId) 1027internal static int IndexOfReference<T>(List<T?>? list, T item) where T : class 1041internal static bool ContainsReference<T>(List<T?> list, T item) where T : class 1049private readonly List<TElem?> _listeners;
System\Data\SortExpressionBuilder.cs (5)
15internal sealed class SortExpressionBuilder<T> : IComparer<List<object>> 76public List<object> Select(T row) 78List<object> result = new List<object>(); 95public int Compare(List<object>? a, List<object>? b)
System\Data\TypeLimiter.cs (1)
292if (type.IsGenericType && !type.IsGenericTypeDefinition && type.GetGenericTypeDefinition() == typeof(List<>))
System\Data\XMLSchema.cs (9)
148private Dictionary<DataTable, List<DataTable>>? _tableDictionary; 690_tableDictionary = new Dictionary<DataTable, List<DataTable>>(); 733List<XmlQualifiedName> qnames = new List<XmlQualifiedName>(); 1348if (_tableDictionary!.TryGetValue(relation.ParentTable, out List<DataTable>? value)) 1761if (_tableDictionary!.TryGetValue(relation.ParentTable, out List<DataTable>? value)) 2567List<DataTable> tableSequenceList = new List<DataTable>(); 2719List<DataTable> _tableList = new List<DataTable>(_ds.Tables.Count); 2728private void AddTablesToList(List<DataTable> tableList, DataTable dt) 2872private readonly List<string> _namespacesToIgnore;
System\Xml\XmlDataDocument.cs (2)
3059List<DataTable> tableList = new List<DataTable>(); 3099List<DataTable> tableList = new List<DataTable>();
System.Data.Odbc (20)
Common\System\Data\Common\DBConnectionString.cs (4)
395List<string>? newlist = null; 418List<string>? newlist = null; 447List<string> newlist = new List<string>(a.Length + b.Length); 467List<string> restrictionValues = new List<string>();
Common\System\Data\ProviderBase\DbConnectionPool.cs (2)
128private readonly List<DbConnectionInternal> _objectList; 1059List<DbConnectionInternal> reclaimedObjects = new List<DbConnectionInternal>();
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (2)
16private readonly List<DbConnectionPool> _poolsToRelease; 17private readonly List<DbConnectionPoolGroup> _poolGroupsToRelease;
System\Data\Odbc\OdbcCommandBuilder.cs (1)
165List<OdbcParameter> rParams = new List<OdbcParameter>();
System\Data\Odbc\OdbcDataReader.cs (3)
1494List<byte[]> junkArray = new List<byte[]>(); 2002List<string>? qrytables; 2154List<string>.Enumerator tablesEnum = qrytables.GetEnumerator();
System\Data\Odbc\OdbcParameterCollectionHelper.cs (8)
13private List<OdbcParameter>? _items; 23private List<OdbcParameter> InnerList 27List<OdbcParameter>? items = _items; 110List<OdbcParameter> items = InnerList; 153private static int IndexOf(List<OdbcParameter> items, string parameterName) 192List<OdbcParameter> items = InnerList; 257List<OdbcParameter> items = InnerList; 266List<OdbcParameter> items = InnerList;
System.Diagnostics.DiagnosticSource (30)
System\Diagnostics\ActivitySource.cs (1)
55var tagList = new List<KeyValuePair<string, object?>>(tags);
System\Diagnostics\ActivityTagsCollection.cs (5)
24private readonly List<KeyValuePair<string, object?>> _list = new List<KeyValuePair<string, object?>>(); 98List<string> list = new List<string>(_list.Count); 114List<object?> list = new List<object?>(_list.Count); 274private List<KeyValuePair<string, object?>>.Enumerator _enumerator; 275internal Enumerator(List<KeyValuePair<string, object?>> list) => _enumerator = list.GetEnumerator();
System\Diagnostics\DsesFilterAndTransform.cs (3)
432public List<KeyValuePair<string, string?>> Morph(object? args) 435var outputArgs = new List<KeyValuePair<string, string?>>(); 539var outputArgs = this.Morph(evnt.Value);
System\Diagnostics\LegacyPropagator.cs (1)
88List<KeyValuePair<string, string?>>? baggageList = null;
System\Diagnostics\Metrics\AggregationManager.cs (1)
22private readonly List<Predicate<Instrument>> _instrumentConfigFuncs = new();
System\Diagnostics\Metrics\Instrument.cs (2)
75var tagList = new List<KeyValuePair<string, object?>>(tags); 92List<MeterListener>? allListeners = null;
System\Diagnostics\Metrics\InstrumentAdvice.cs (2)
43List<T> bucketBoundariesCopy = new List<T>(value); 54private static bool IsSortedAndDistinct(List<T> values)
System\Diagnostics\Metrics\Meter.cs (10)
18private static readonly List<Meter> s_allMeters = new List<Meter>(); 19private List<Instrument> _instruments = new List<Instrument>(); 20private Dictionary<string, List<Instrument>> _nonObservableInstrumentsCache = new(); 81var tagList = new List<KeyValuePair<string, object?>>(tags); 499List<Instrument>? instruments = null; 528private static Instrument? GetCachedInstrument(List<Instrument> instrumentList, Type instrumentType, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) 534instrument.Description == description && DiagnosticsHelper.CompareTags(instrument.Tags as List<KeyValuePair<string, object?>>, tags)) 546List<Instrument>? instrumentList; 601internal static List<Instrument>? GetPublishedInstruments() 603List<Instrument>? instruments = null;
System\Diagnostics\Metrics\MeterListener.cs (4)
21private static readonly List<MeterListener> s_allStartedListeners = new List<MeterListener>(); 184List<Instrument>? publishedInstruments = null; 218List<Exception>? exceptionsList = null; 295internal static List<MeterListener>? GetAllListeners() => s_allStartedListeners.Count == 0 ? null : new List<MeterListener>(s_allStartedListeners);
System\Diagnostics\W3CPropagator.cs (1)
88List<KeyValuePair<string, string?>>? baggageList = null;
System.Diagnostics.Process (11)
System\Diagnostics\Process.NonUap.cs (3)
28List<Exception>? result = KillTree(); 72private List<Process> GetChildProcesses(Process[]? processes = null) 77List<Process> childProcesses = new List<Process>();
System\Diagnostics\Process.Unix.cs (6)
94private List<Exception>? KillTree() 96List<Exception>? exceptions = null; 101private void KillTree(ref List<Exception>? exceptions) 124List<Process> children = GetChildProcesses(); 582var argvList = new List<string>(); 859private static void ParseArgumentsIntoList(string arguments, List<string> results)
System\Diagnostics\ProcessInfo.cs (1)
16internal readonly List<ThreadInfo> _threadInfoList;
System\Diagnostics\ProcessWaitState.Unix.cs (1)
640List<ProcessWaitState>? additionalToRemove = null;
System.Diagnostics.TraceSource (9)
System\Diagnostics\CorrelationManager.cs (1)
128var results = new List<object?>();
System\Diagnostics\Switch.cs (2)
29private static readonly List<WeakReference<Switch>> s_switches = new List<WeakReference<Switch>>(); 67List<WeakReference<Switch>> buffer = new List<WeakReference<Switch>>(s_switches.Count);
System\Diagnostics\SwitchAttribute.cs (3)
53List<object> switchAttribs = new List<object>(); 67private static void GetAllRecursive([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, List<object> switchAttribs) 82private static void GetAllRecursive(MemberInfo member, List<object> switchAttribs)
System\Diagnostics\TraceListeners.cs (1)
16private readonly List<TraceListener?> _list;
System\Diagnostics\TraceSource.cs (2)
15private static readonly List<WeakReference<TraceSource>> s_tracesources = new List<WeakReference<TraceSource>>(); 49List<WeakReference<TraceSource>> buffer = new List<WeakReference<TraceSource>>(s_tracesources.Count);
System.Drawing.Common (3)
System\Drawing\ImageAnimator.cs (1)
43private static List<ImageInfo>? s_imageInfoList;
System\Drawing\Printing\PreviewPrintController.cs (1)
15private readonly List<PreviewPageInfo> _list = [];
System\Drawing\Printing\PrinterSettings.StringCollection.cs (1)
13private readonly List<string> _list;
System.Drawing.Common.Tests (1)
System\Drawing\Imaging\MetafileTests.cs (1)
1036List<EmfPlusRecordType> recordTypes = [];
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.cs (1)
748List<(int, int)> positions = new List<(int, int)>();
System.Formats.Cbor (20)
System\Formats\Cbor\Reader\CborReader.String.cs (11)
16private List<(int Offset, int Length)>? _indefiniteLengthStringRangeAllocation; 332List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.ByteString, out int encodingLength, out int concatenatedBufferSize); 353List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.ByteString, out int encodingLength, out int concatenatedBufferSize); 378List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.TextString, out int encodingLength, out int concatenatedBufferSize); 397static void BuildString(Span<char> target, (List<(int Offset, int Length)> ranges, ReadOnlyMemory<byte> source, Encoding utf8Encoding) input) 413List<(int Offset, int Length)> ranges = ReadIndefiniteLengthStringChunkRanges(CborMajorType.TextString, out int encodingLength, out int _); 446private List<(int Offset, int Length)> ReadIndefiniteLengthStringChunkRanges(CborMajorType type, out int encodingLength, out int concatenatedBufferSize) 448List<(int Offset, int Length)> ranges = AcquireIndefiniteLengthStringRangeList(); 518private List<(int Offset, int Length)> AcquireIndefiniteLengthStringRangeList() 520List<(int Offset, int Length)>? ranges = Interlocked.Exchange(ref _indefiniteLengthStringRangeAllocation, null); 531private void ReturnIndefiniteLengthStringRangeList(List<(int Offset, int Length)> ranges)
System\Formats\Cbor\Writer\CborWriter.cs (3)
32private List<KeyValuePairEncodingRange>? _keyValuePairEncodingRanges; // all key/value pair encoding ranges 431List<KeyValuePairEncodingRange>? keyValuePairEncodingRanges, 453public List<KeyValuePairEncodingRange>? KeyValuePairEncodingRanges { get; }
System\Formats\Cbor\Writer\CborWriter.Map.cs (5)
15private Stack<List<KeyValuePairEncodingRange>>? _pooledKeyValuePairEncodingRangeLists; 123List<KeyValuePairEncodingRange> keyValuePairEncodingRanges = GetKeyValueEncodingRanges(); 213private List<KeyValuePairEncodingRange> GetKeyValueEncodingRanges() 221_pooledKeyValuePairEncodingRangeLists.TryPop(out List<KeyValuePairEncodingRange>? result)) 234_pooledKeyValuePairEncodingRangeLists ??= new Stack<List<KeyValuePairEncodingRange>>();
System\Formats\Cbor\Writer\CborWriter.String.cs (1)
15private List<(int Offset, int Length)>? _currentIndefiniteLengthStringRanges;
System.Formats.Nrbf (13)
System\Formats\Nrbf\ArrayRecord.cs (1)
117internal static void Populate(List<SerializationRecord> source, Array destination, int[] lengths, AllowedRecordTypes allowedRecordTypes, bool allowNulls)
System\Formats\Nrbf\ArraySingleObjectRecord.cs (1)
27private List<SerializationRecord> Records { get; }
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (5)
58return (List<T>)(object)DecodeDecimals(reader, count); 218private static List<decimal> DecodeDecimals(BinaryReader reader, int count) 220List<decimal> values = new(); 250private static List<T> DecodeFromNonSeekableStream(BinaryReader reader, int count) 256List<T> values = new List<T>(Math.Min(count, 4));
System\Formats\Nrbf\ArraySingleStringRecord.cs (1)
27private List<SerializationRecord> Records { get; }
System\Formats\Nrbf\ClassRecord.cs (1)
40internal List<object?> MemberValues { get; }
System\Formats\Nrbf\JaggedArrayRecord.cs (1)
24private readonly List<SerializationRecord> _records;
System\Formats\Nrbf\MemberTypeInfo.cs (1)
28List<(BinaryType BinaryType, object? AdditionalInfo)> info = [];
System\Formats\Nrbf\RectangularArrayRecord.cs (1)
20private readonly List<SerializationRecord> _records;
System\Formats\Nrbf\SZArrayOfRecords.cs (1)
28internal List<SerializationRecord> Records { get; }
System.Formats.Tar (1)
System\Formats\Tar\TarReader.cs (1)
21private List<Stream>? _dataStreamsToDispose;
System.IO.Compression (18)
System\IO\Compression\ZipArchive.Async.cs (1)
326List<ZipArchiveEntry> entriesToWrite = _entries;
System\IO\Compression\ZipArchive.cs (2)
21private readonly List<ZipArchiveEntry> _entries; 774List<ZipArchiveEntry> entriesToWrite = _entries;
System\IO\Compression\ZipArchiveEntry.cs (2)
44private List<ZipGenericExtraField>? _cdUnknownExtraFields; 46private List<ZipGenericExtraField>? _lhUnknownExtraFields;
System\IO\Compression\ZipBlocks.Async.cs (3)
24public static async Task WriteAllBlocksAsync(List<ZipGenericExtraField>? fields, ReadOnlyMemory<byte> trailingExtraFieldData, Stream stream, CancellationToken cancellationToken) 111public static async Task<(List<ZipGenericExtraField>, byte[] trailingData)> GetExtraFieldsAsync(Stream stream, CancellationToken cancellationToken) 131List<ZipGenericExtraField> list = GetExtraFieldPostReadWork(extraFieldBuffer.Span, out byte[] trailingData);
System\IO\Compression\ZipBlocks.cs (10)
70public static List<ZipGenericExtraField> ParseExtraField(ReadOnlySpan<byte> extraFieldData, out ReadOnlySpan<byte> trailingExtraFieldData) 72List<ZipGenericExtraField> extraFields = new List<ZipGenericExtraField>(); 90public static int TotalSize(List<ZipGenericExtraField>? fields, int trailingDataLength) 104public static void WriteAllBlocks(List<ZipGenericExtraField>? fields, ReadOnlySpan<byte> trailingExtraFieldData, Stream stream) 327public static Zip64ExtraField GetAndRemoveZip64Block(List<ZipGenericExtraField> extraFields, 362public static void RemoveZip64Blocks(List<ZipGenericExtraField> extraFields) 578private static List<ZipGenericExtraField> GetExtraFieldPostReadWork(Span<byte> extraFieldBuffer, out byte[] trailingData) 580List<ZipGenericExtraField> list = ZipGenericExtraField.ParseExtraField(extraFieldBuffer, out ReadOnlySpan<byte> trailingDataSpan); 586public static List<ZipGenericExtraField> GetExtraFields(Stream stream, out byte[] trailingData) 705public List<ZipGenericExtraField>? ExtraFields;
System.IO.FileSystem.DriveInfo (2)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (2)
21internal List<string> _results; 46List<string> mountPoints = new();
System.IO.FileSystem.Watcher (2)
System\IO\FileSystemWatcher.Linux.cs (2)
913internal List<WatchedDirectory>? Children; 916internal List<WatchedDirectory> InitializedChildren => Children ??= new List<WatchedDirectory>();
System.IO.Packaging (29)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (1)
61internal InterleavedZipPackagePartStream(ZipStreamManager zipStreamManager, List<ZipPackagePartPiece> sortedPieceInfoList, FileAccess access)
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (3)
39private readonly List<PieceStreamInfo> _pieceStreamInfoList; 48private readonly List<ZipPackagePartPiece> _sortedPieceInfoList; 111internal PieceDirectory(List<ZipPackagePartPiece> sortedPieceInfoList, ZipStreamManager zipStreamManager, FileAccess access)
System\IO\Packaging\Package.cs (2)
418List<string> partIndex = new(parts.Length); 1203private void CopyPartDictionaryToPartList(Dictionary<string, KeyValuePair<PackUriHelper.ValidatedPartUri, PackagePart>> partDictionary, List<string> partIndex)
System\IO\Packaging\PackagePart.cs (1)
796private List<Stream>? _requestedStreams;
System\IO\Packaging\PackageRelationshipSelector.cs (2)
109public List<PackageRelationship> Select(Package package) 113List<PackageRelationship> relationships = new List<PackageRelationship>(0);
System\IO\Packaging\XmlCompatibilityReader.cs (1)
113List<string> keysToUpdate = new List<string>();
System\IO\Packaging\ZipPackage.cs (16)
176List<PackagePart> parts = new List<PackagePart>(InitialPartListSize); 538private static void DeleteInterleavedPartOrStream(List<ZipPackagePartPiece> sortedPieceInfoList) 564private void ProcessPieces(SortedSet<ZipPackagePartPiece> pieceSet, List<PackagePart> parts) 580List<ZipPackagePartPiece> pieces = new List<ZipPackagePartPiece>(pieceSet); 679List<ZipPackagePartPiece> pieces, 682List<PackagePart> parts) 1071List<ZipPackagePartPiece>? partPieces = null; 1301private List<ZipPackagePartPiece>? _contentTypeStreamPieces; 1353private readonly Dictionary<string, List<string>> _ignoredItemDictionary; 1358private readonly Dictionary<string, List<string>> _extensionDictionary; 1370_extensionDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, s_extensionEqualityComparer); 1371_ignoredItemDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, StringComparer.Ordinal); 1406internal void AddItemsForInvalidSequence(string normalizedPrefixNameForThisSequence, List<ZipPackagePartPiece> pieces, int startIndex, int count) 1408if (!_ignoredItemDictionary.TryGetValue(normalizedPrefixNameForThisSequence, out List<string>? zipFileInfoNameList)) 1439if (_ignoredItemDictionary.TryGetValue(normalizedPartName, out List<string>? zipFileInfoNames)) 1459if (_extensionDictionary.TryGetValue(extension, out List<string>? normalizedPartNames))
System\IO\Packaging\ZipPackagePart.cs (3)
83List<ZipPackagePartPiece> pieces, 102internal List<ZipPackagePartPiece> PieceDescriptors => _pieces; 117private readonly List<ZipPackagePartPiece> _pieces;
System.IO.Pipelines (6)
System\IO\Pipelines\PipeCompletion.cs (2)
17private List<PipeCompletionCallback>? _callbacks; 73var callbacks = _callbacks;
System\IO\Pipelines\PipeCompletionCallbacks.cs (4)
11private readonly List<PipeCompletionCallback> _callbacks; 14public PipeCompletionCallbacks(List<PipeCompletionCallback> callbacks, ExceptionDispatchInfo? edi) 28List<Exception>? exceptions = null; 42private void Execute(PipeCompletionCallback callback, ref List<Exception>? exceptions)
System.IO.Ports (4)
System\IO\Ports\SerialPort.Unix.cs (4)
41List<string> ports = new List<string>(); 76var ports = new List<string>(); 95List<string> ports = new List<string>(); 120List<string> ports = new List<string>();
System.Linq (108)
System\Linq\AppendPrepend.SpeedOpt.cs (4)
97public override List<TSource> ToList() 107List<TSource> list = count == -1 ? [] : new List<TSource>(count); 261public override List<TSource> ToList() 264List<TSource> list = count == -1 ? [] : new List<TSource>(count);
System\Linq\Cast.SpeedOpt.cs (2)
28public override List<TResult> ToList() 30List<TResult> list = new(_source.Count);
System\Linq\Concat.SpeedOpt.cs (2)
370public override List<TSource> ToList() 373var list = count != -1 ? new List<TSource>(count) : new List<TSource>();
System\Linq\DebugView.cs (1)
79List<object?> tempList = [.. _enumerable];
System\Linq\DefaultIfEmpty.SpeedOpt.cs (2)
19public override List<TSource> ToList() 21List<TSource> list = _source.ToList();
System\Linq\Distinct.SpeedOpt.cs (1)
14public override List<TSource> ToList() => new List<TSource>(new HashSet<TSource>(_source, _comparer));
System\Linq\Enumerable.cs (4)
32/// Sets the <paramref name="list"/>'s <see cref="List{T}.Count"/> to be <paramref name="count"/> 36internal static Span<T> SetCountAndGetSpan<T>(List<T> list, int count) 58else if (source.GetType() == typeof(List<TSource>)) 60span = CollectionsMarshal.AsSpan(Unsafe.As<List<TSource>>(source));
System\Linq\Grouping.SpeedOpt.cs (4)
15public override List<TResult> ToList() => 27public override List<TResult> ToList() => 39public override List<IGrouping<TKey, TElement>> ToList() => 51public override List<IGrouping<TKey, TSource>> ToList() =>
System\Linq\Iterator.SpeedOpt.cs (3)
19/// Produce a <see cref="List{TSource}"/> of the sequence through an optimized path. 21/// <returns>The <see cref="List{TSource}"/>.</returns> 22public abstract List<TSource> ToList();
System\Linq\Lookup.cs (2)
154internal List<TResult> ToList<TResult>(Func<TKey, IEnumerable<TElement>, TResult> resultSelector) 156List<TResult> list = new List<TResult>(_count);
System\Linq\OfType.SpeedOpt.cs (2)
53public override List<TResult> ToList() 66List<TResult> result = builder.ToList();
System\Linq\OrderedEnumerable.SpeedOpt.cs (7)
28public override List<TElement> ToList() 32List<TElement> list = new(buffer.Length); 89internal List<TElement> ToList(int minIdx, int maxIdx) 107List<TElement> list = []; 373public override List<TElement> ToList() 375List<TElement> list = _source.ToList(); 544public override List<TElement> ToList() => _source.ToList(_minIndexInclusive, _maxIndexInclusive);
System\Linq\Range.SpeedOpt.cs (2)
26public override List<T> ToList() 30List<T> list = new List<T>(count);
System\Linq\Repeat.SpeedOpt.cs (2)
24public override List<TResult> ToList() 26List<TResult> list = new List<TResult>(_count);
System\Linq\Reverse.SpeedOpt.cs (2)
19public override List<TSource> ToList() 21List<TSource> list = _source.ToList();
System\Linq\SegmentedArrayBuilder.cs (2)
256public readonly List<T> ToList() 258List<T> result;
System\Linq\Select.cs (5)
62if (source is List<TSource> list) 211/// An iterator that maps each item of a <see cref="List{TSource}"/>. 218private readonly List<TSource> _source; 220private List<TSource>.Enumerator _enumerator; 222public ListSelectIterator(List<TSource> source, Func<TSource, TResult> selector)
System\Linq\Select.SizeOpt.cs (2)
86public override List<TResult> ToList() 88List<TResult> list = new List<TResult>(_source.Count);
System\Linq\Select.SpeedOpt.cs (16)
34public override List<TResult> ToList() 45List<TResult> result = builder.ToList(); 153public override List<TResult> ToList() 158var results = new List<TResult>(source.Length); 298public override List<TResult> ToList() 301var results = new List<TResult>(count); 410public override List<TResult> ToList() 414var results = new List<TResult>(source.Length); 527public override List<TResult> ToList() 532var results = new List<TResult>(count); 766private List<TResult> ToListNoPresizing() 779List<TResult> result = builder.ToList(); 785public override List<TResult> ToList() 788List<TResult> list; 967public override List<TResult> ToList() 975List<TResult> list = new List<TResult>(count);
System\Linq\SelectMany.SpeedOpt.cs (2)
49public override List<TResult> ToList() 60List<TResult> result = builder.ToList();
System\Linq\Shuffle.SpeedOpt.cs (10)
21public override List<TSource> ToList() 23List<TSource> list = _source.ToList(); 61List<TSource>? sample = ShuffleTakeIterator<TSource>.SampleToList(_source, 1, out long totalElementCount); 97private List<TSource>? _buffer; 117List<TSource>? buffer = _buffer; 130List<TSource>? buffer = SampleToList(_source, _takeCount, out _); 151public override List<TSource> ToList() => SampleToList(_source, _takeCount, out _) ?? []; 186List<TSource>? sample = SampleToList(_source, 1, out long totalElementCount); 202internal static List<TSource>? SampleToList(IEnumerable<TSource> source, int takeCount, out long totalElementCount) 204List<TSource>? reservoir = null;
System\Linq\SkipTake.SpeedOpt.cs (4)
131public override List<TSource> ToList() 135List<TSource> list = []; 506public override List<TSource> ToList() 524List<TSource> result = builder.ToList();
System\Linq\ToCollection.cs (3)
58public static List<TSource> ToList<TSource>(this IEnumerable<TSource> source) 163if (source is List<TSource> list) 221if (source is List<TSource> list)
System\Linq\Union.SpeedOpt.cs (1)
29public override List<TSource> ToList() => new List<TSource>(FillSet());
System\Linq\Where.cs (9)
45if (source is List<TSource> list) 203/// An iterator that filters each item of a <see cref="List{TSource}"/>. 208private readonly List<TSource> _source; 210private List<TSource>.Enumerator _enumerator; 212public ListWhereIterator(List<TSource> source, Func<TSource, bool> predicate) 305/// An iterator that filters, then maps, each item of a <see cref="List{TSource}"/>. 311private readonly List<TSource> _source; 314private List<TSource>.Enumerator _enumerator; 316public ListWhereSelectIterator(List<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector)
System\Linq\Where.SizeOpt.cs (2)
76public override List<TSource> ToList() 89List<TSource> result = builder.ToList();
System\Linq\Where.SpeedOpt.cs (12)
56public override List<TSource> ToList() 70List<TSource> result = builder.ToList(); 217public override List<TSource> ToList() => ToList(_source, _predicate); 219public static List<TSource> ToList(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate) 232List<TSource> result = builder.ToList(); 320public override List<TSource> ToList() => ArrayWhereIterator<TSource>.ToList(CollectionsMarshal.AsSpan(_source), _predicate); 450public override List<TResult> ToList() => ToList(_source, _predicate, _selector); 452public static List<TResult> ToList(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector) 465List<TResult> result = builder.ToList(); 552public override List<TResult> ToList() => ArrayWhereSelectIterator<TSource, TResult>.ToList(CollectionsMarshal.AsSpan(_source), _predicate, _selector); 613public override List<TResult> ToList() 628List<TResult> result = builder.ToList();
System.Linq.AsyncEnumerable (6)
System\Linq\ToArrayAsync.cs (1)
34List<TSource> list = [];
System\Linq\ToAsyncEnumerable.cs (2)
26List<TSource> list => FromList(list), 46static async IAsyncEnumerable<TSource> FromList(List<TSource> source)
System\Linq\ToListAsync.cs (3)
19public static ValueTask<List<TSource>> ToListAsync<TSource>( 27static async ValueTask<List<TSource>> Impl( 30List<TSource> list = [];
System.Linq.Expressions (56)
System\Dynamic\BindingRestrictions.cs (1)
359var restrictions = new List<BindingRestrictions>();
System\Dynamic\ExpandoClass.cs (5)
17private Dictionary<int, List<WeakReference>>? _transitions; // cached transitions 56List<WeakReference> infos = GetTransitionList(hashCode); 90private List<WeakReference> GetTransitionList(int hashCode) 92_transitions ??= new Dictionary<int, List<WeakReference>>(); 94if (!_transitions.TryGetValue(hashCode, out List<WeakReference>? infos))
System\Linq\Expressions\Compiler\BoundConstants.cs (1)
55private readonly List<object> _values = new List<object>();
System\Linq\Expressions\Compiler\LabelInfo.cs (1)
41private readonly List<LabelScopeInfo> _references = new List<LabelScopeInfo>();
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (8)
204List<WriteBack>? wb = EmitArguments(lambda.Type.GetInvokeMethod(), invoke); 401List<WriteBack>? wb = EmitArguments(mi, args); 503private List<WriteBack>? EmitArguments(MethodBase method, IArgumentProvider args) 513private List<WriteBack>? EmitArguments(MethodBase method, IArgumentProvider args, int skipParameters) 518List<WriteBack>? writeBacks = null; 545private void EmitWriteBack(List<WriteBack>? writeBacks) 609List<WriteBack>? wb = EmitArguments(invoke, node, 1); 629List<WriteBack>? wb = EmitArguments(node.Constructor, node);
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (15)
293private static bool FitsInBucket(List<SwitchLabel> buckets, decimal key, int count) 305private static void MergeBuckets(List<List<SwitchLabel>> buckets) 309List<SwitchLabel> first = buckets[buckets.Count - 2]; 310List<SwitchLabel> second = buckets[buckets.Count - 1]; 324private static void AddToBuckets(List<List<SwitchLabel>> buckets, SwitchLabel key) 328List<SwitchLabel> last = buckets[buckets.Count - 1]; 396var keys = new List<SwitchLabel>(); 420var buckets = new List<List<SwitchLabel>>(); 529private void EmitSwitchBuckets(SwitchInfo info, List<List<SwitchLabel>> buckets, int first, int last) 564private void EmitSwitchBucket(SwitchInfo info, List<SwitchLabel> bucket) 666var initializers = new List<ElementInit>(tests);
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (2)
68private List<Expression>? _comma; 205List<Expression> comma = new List<Expression>(count + 1);
System\Linq\Expressions\Compiler\StackSpiller.Temps.cs (2)
88private List<ParameterExpression>? _freeTemps; 98internal List<ParameterExpression> Temps { get; } = new List<ParameterExpression>();
System\Linq\Expressions\Interpreter\BranchLabel.cs (1)
38private List<int>? _forwardBranchFixups;
System\Linq\Expressions\Interpreter\CallInstruction.cs (1)
212List<Type> types = new List<Type>();
System\Linq\Expressions\Interpreter\InstructionList.cs (7)
26internal readonly List<KeyValuePair<int, object?>>? DebugCookies; 29object[]? objects, RuntimeLabel[] labels, List<KeyValuePair<int, object?>>? debugCookies) 69private readonly List<Instruction> _instructions = new List<Instruction>(); 70private List<object>? _objects; 77private List<BranchLabel>? _labels; 81private List<KeyValuePair<int, object?>>? _debugCookies; 114var result = new List<InstructionView>();
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (1)
158var trace = new List<string>();
System\Linq\Expressions\Interpreter\LabelInfo.cs (1)
29private readonly List<LabelScopeInfo> _references = new List<LabelScopeInfo>();
System\Linq\Expressions\Interpreter\LightCompiler.cs (5)
284private readonly List<DebugInfo> _debugInfos = new List<DebugInfo>(); 1988List<ExceptionHandler>? exHandlers = null; 2144List<ByRefUpdater>? updaters = null; 2393List<ByRefUpdater>? updaters = null; 2834var parameterList = new List<ParameterExpression>(count);
System\Linq\Expressions\Interpreter\LocalVariables.cs (1)
175public List<VariableScope>? ChildScopes;
System\Linq\Expressions\Interpreter\TypeOperations.cs (2)
578var boxes = new List<IStrongBox>(); 579var vars = new List<ParameterExpression>();
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (2)
133var boxes = new List<IStrongBox>(); 134var vars = new List<ParameterExpression>();
System.Linq.Parallel (11)
System\Linq\Parallel\Merging\DefaultMergeHelper.cs (1)
163List<TInputOutput> output = new List<TInputOutput>();
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (1)
108private List<Pair<TSource, TKey>>? _buffer; // Our buffer. [allocate in moveNext to avoid false-sharing]
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (2)
163private List<Pair<TResult, TKey>>? _buffer; // Our buffer. 201List<Pair<TResult, TKey>> buffer = new List<Pair<TResult, TKey>>();
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (2)
218private List<Pair<TResult, TKey>>? _buffer; // Our buffer. 258List<Pair<TResult, TKey>> buffer = new List<Pair<TResult, TKey>>();
System\Linq\Parallel\Utils\Sorting.cs (3)
190List<TInputOutput>? sourceValues = null; 220private void BuildKeysFromSource(ref GrowingArray<TKey>? keys, ref List<TInputOutput>? values) 265private void QuickSortIndicesInPlace(GrowingArray<TKey> keys, List<TInputOutput> values, OrdinalIndexState ordinalIndexState)
System\Linq\ParallelEnumerable.cs (2)
4848public static List<TSource> ToList<TSource>(this ParallelQuery<TSource> source) 4853List<TSource> list = new List<TSource>();
System.Linq.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
68List<Expression>? newArgs = null; 109List<Expression> exprs = new List<Expression>(na.Expressions.Count);
System.Memory (2)
System\Text\EncodingExtensions.cs (2)
166List<(byte[], int)> listOfSegments = new List<(byte[], int)>(); 353List<(char[], int)> listOfSegments = new List<(char[], int)>();
System.Net.Http (54)
System\Net\Http\DiagnosticsHandler.cs (1)
38var fieldDescriptors = new List<HeaderDescriptor>(fields.Count);
System\Net\Http\Headers\CacheControlHeaderParser.cs (1)
28if (storeValue is List<object> list)
System\Net\Http\Headers\CacheControlHeaderValue.cs (2)
363List<NameValueHeaderValue> nameValueList = new List<NameValueHeaderValue>(); 400private static bool TrySetCacheControlValues(CacheControlHeaderValue cc, List<NameValueHeaderValue> nameValueList)
System\Net\Http\Headers\HttpHeaders.cs (21)
224if (rawValue is not List<string> rawValues) 505List<object>? parsedValues = parsedValue as List<object>; 580List<object>? parsedValues = parsedValue as List<object>; 687List<object>? sourceValues = sourceInfo.ParsedAndInvalidValues as List<object>; 729List<object>? sourceValues = source as List<object>; 838if (info.RawValue is List<string> rawValues) 947List<object> parsedValues = new List<object>(); 996Debug.Assert(!(value is List<object>), 1024List<T>? storeValues = currentStoreValue as List<T>; 1112List<object> parsedValues = new List<object>(); 1284valueStore is List<T> list ? list.Count : 1292List<T>? storeValues = storeValue as List<T>; 1365if (ParsedAndInvalidValues is List<object> list) 1383if (ParsedAndInvalidValues is List<object> list) 1407private static void AssertContainsSingleParsedValue(List<object> list)
System\Net\Http\Headers\HttpHeaderValueCollection.cs (5)
96List<object>? storeValues = storeValue as List<object>; 144if (storeValue is List<object> storeValues) 206List<object>? storeValues = storeValue as List<object>;
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (5)
23private static readonly HttpRequestOptionsKey<List<Action<HttpMetricsEnrichmentContext>>> s_optionsKeyForCallbacks = new(nameof(HttpMetricsEnrichmentContext)); 78if (options.TryGetValue(s_optionsKeyForCallbacks, out List<Action<HttpMetricsEnrichmentContext>>? callbacks)) 88internal static List<Action<HttpMetricsEnrichmentContext>>? GetEnrichmentCallbacksForRequest(HttpRequestMessage request) 93return (List<Action<HttpMetricsEnrichmentContext>>)callbacks!; 100List<Action<HttpMetricsEnrichmentContext>> callbacks,
System\Net\Http\Metrics\MetricsHandler.cs (1)
131List<Action<HttpMetricsEnrichmentContext>>? callbacks = HttpMetricsEnrichmentContext.GetEnrichmentCallbacksForRequest(request);
System\Net\Http\MultipartContent.cs (1)
29private readonly List<HttpContent> _nestedContent;
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
31private static readonly List<SslApplicationProtocol> s_http3ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http3 }; 32private static readonly List<SslApplicationProtocol> s_http2ApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http2, SslApplicationProtocol.Http11 }; 33private static readonly List<SslApplicationProtocol> s_http2OnlyApplicationProtocols = new List<SslApplicationProtocol>() { SslApplicationProtocol.Http2 }; 899List<HttpConnectionBase>? toDispose = null; 967List<HttpConnectionBase>? toDispose = null; 1010Task.Factory.StartNew(static s => ((List<HttpConnectionBase>)s!).ForEach(c => c.Dispose()), toDispose,
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (1)
425private static void ScavengeHttp11ConnectionStack(HttpConnectionPool pool, ConcurrentStack<HttpConnection> connections, ref List<HttpConnectionBase>? toDispose, long nowTicks, TimeSpan pooledConnectionLifetime, TimeSpan pooledConnectionIdleTimeout)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (3)
21private List<Http2Connection>? _availableHttp2Connections; 584private static int ScavengeHttp2ConnectionList(List<Http2Connection> list, ref List<HttpConnectionBase>? toDispose, long nowTicks, TimeSpan pooledConnectionLifetime, TimeSpan pooledConnectionIdleTimeout)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (3)
29private List<Http3Connection>? _availableHttp3Connections; 560private static int ScavengeHttp3ConnectionList(List<Http3Connection> list, ref List<HttpConnectionBase>? toDispose, long nowTicks, TimeSpan pooledConnectionLifetime, TimeSpan pooledConnectionIdleTimeout)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
1091List<Http2Stream> streamsToAbort = new List<Http2Stream>(); 1822List<Http2Stream> streamsToAbort = new List<Http2Stream>();
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
418var streamsToGoAway = new List<Http3RequestStream>();
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
49private List<(HeaderDescriptor name, string value)>? _trailingHeaders;
System.Net.HttpListener (21)
System\Net\HttpListenerRequest.cs (1)
368List<string> values = new List<string>();
System\Net\HttpListenerRequestUriBuilder.cs (2)
40private List<byte>? _rawOctets; 342private static string GetOctetsAsString(List<byte> octets)
System\Net\Managed\ChunkStream.cs (2)
82private readonly List<Chunk> _chunks; 111var chunksForRemoving = new List<Chunk>(count);
System\Net\Managed\HttpEndPointListener.cs (12)
47private List<ListenerPrefix>? _unhandledPrefixes; // host = '*' 48private List<ListenerPrefix>? _allPrefixes; // host = '+' 212List<ListenerPrefix>? list = _unhandledPrefixes; 233private static HttpListener? MatchFromList(string path, List<ListenerPrefix>? list, out ListenerPrefix? prefix) 259private static void AddSpecial(List<ListenerPrefix> list, ListenerPrefix prefix) 272private static bool RemoveSpecial(List<ListenerPrefix> list, ListenerPrefix prefix) 295List<ListenerPrefix>? list = _unhandledPrefixes; 312var connections = new List<HttpConnection>(_unregisteredConnections); 322List<ListenerPrefix>? current; 323List<ListenerPrefix> future; 363List<ListenerPrefix>? current; 364List<ListenerPrefix> future;
System\Net\Managed\HttpEndPointManager.cs (1)
48List<string> added = new List<string>();
System\Net\Managed\HttpListener.Managed.cs (2)
16private readonly List<HttpListenerContext> _contextQueue = new List<HttpListenerContext>(); 17private readonly List<ListenerAsyncResult> _asyncWaitQueue = new List<ListenerAsyncResult>();
System\Net\ServiceNameStore.cs (1)
14private readonly List<string> _serviceNames;
System.Net.Mail (9)
System\Net\Mail\MailAddressCollection.cs (1)
42List<MailAddress> result = MailAddressParser.ParseMultipleAddresses(addresses);
System\Net\Mail\MailAddressParser.cs (2)
37internal static List<MailAddress> ParseMultipleAddresses(string data) 39List<MailAddress> results = new List<MailAddress>();
System\Net\Mail\SmtpAuthenticationManager.cs (1)
10private static readonly List<ISmtpAuthenticationModule> s_modules = new List<ISmtpAuthenticationModule>();
System\Net\Mail\SmtpClient.cs (1)
496List<SmtpFailedRecipientException>? failedRecipientExceptions = null;
System\Net\Mail\SmtpFailedRecipientsException.cs (1)
48internal SmtpFailedRecipientsException(List<SmtpFailedRecipientException> innerExceptions, bool allFailed) :
System\Net\Mail\SmtpReplyReaderFactory.cs (1)
270var lines = new List<LineInfo>();
System\Net\Mail\SmtpTransport.cs (2)
111internal async Task<(MailWriter, List<SmtpFailedRecipientException>?)> SendMailAsync<TIOAdapter>(MailAddress sender, MailAddressCollection recipients, string deliveryNotify, bool allowUnicode, CancellationToken cancellationToken = default) 118List<SmtpFailedRecipientException>? failedRecipientExceptions = null;
System.Net.NetworkInformation (24)
System\Net\NetworkInformation\GatewayIPAddressInformationCollection.cs (2)
10private readonly List<GatewayIPAddressInformation> _addresses; 17internal GatewayIPAddressInformationCollection(List<GatewayIPAddressInformation> addresses)
System\Net\NetworkInformation\InternalIPAddressCollection.cs (2)
10private readonly List<IPAddress> _addresses; 17internal InternalIPAddressCollection(List<IPAddress> addresses)
System\Net\NetworkInformation\IPAddressInformationCollection.cs (1)
10private readonly List<IPAddressInformation> _addresses = new List<IPAddressInformation>();
System\Net\NetworkInformation\LinuxIPInterfaceProperties.cs (3)
58List<GatewayIPAddressInformation> collection = new List<GatewayIPAddressInformation>(); 75List<IPAddress> internalCollection = new List<IPAddress>(); 86List<IPAddress> internalCollection
System\Net\NetworkInformation\MulticastIPAddressInformationCollection.cs (1)
10private readonly List<MulticastIPAddressInformation> _addresses = new List<MulticastIPAddressInformation>();
System\Net\NetworkInformation\StringParsingHelpers.Addresses.cs (6)
13internal static List<GatewayIPAddressInformation> ParseIPv4GatewayAddressesFromRouteFile(List<GatewayIPAddressInformation> collection, string[] fileLines, string interfaceName) 38internal static void ParseIPv6GatewayAddressesFromRouteFile(List<GatewayIPAddressInformation> collection, string[] fileLines, string interfaceName, long scopeId) 80internal static void ParseDhcpServerAddressesFromLeasesFile(List<IPAddress> collection, string filePath, string name) 124internal static List<IPAddress> ParseWinsServerAddressesFromSmbConfFile(string smbConfFilePath) 126List<IPAddress> collection = new List<IPAddress>();
System\Net\NetworkInformation\StringParsingHelpers.Dns.cs (2)
18internal static List<IPAddress> ParseDnsAddressesFromResolvConfFile(string data) 26List<IPAddress> addresses = new List<IPAddress>();
System\Net\NetworkInformation\UnicastIPAddressInformationCollection.cs (1)
10private readonly List<UnicastIPAddressInformation> _addresses =
System\Net\NetworkInformation\UnixIPGlobalProperties.cs (1)
61internal List<Exception>? _exceptions;
System\Net\NetworkInformation\UnixIPInterfaceProperties.cs (1)
103List<IPAddress> internalAddresses = StringParsingHelpers.ParseDnsAddressesFromResolvConfFile(File.ReadAllText(NetworkFiles.EtcResolvConfFile));
System\Net\NetworkInformation\UnixNetworkInterface.cs (4)
15internal List<UnixUnicastIPAddressInformation> _unicastAddresses = new List<UnixUnicastIPAddressInformation>(); 16internal List<IPAddress>? _multicastAddresses; 60public List<UnixUnicastIPAddressInformation> UnicastAddress { get { return _unicastAddresses; } } 65public List<IPAddress>? MulticastAddresess { get { return _multicastAddresses; } }
System.Net.Primitives (4)
System\Net\CookieContainer.cs (4)
469var removePathList = new List<object>(); 470var removeDomainList = new List<string>(); 683List<string> matchingDomainKeys = [uri.Host]; 702private void BuildCookieCollectionFromDomainMatches(Uri uri, bool isSecure, int port, ref CookieCollection? cookies, List<string> matchingDomainKeys)
System.Net.Quic (6)
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (3)
36public readonly List<SslApplicationProtocol> ApplicationProtocols; 39public CacheKey(QUIC_SETTINGS settings, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol> alpnProtocols, QUIC_ALLOWED_CIPHER_SUITE_FLAGS allowedCipherSuites) 119private static MsQuicConfigurationSafeHandle GetCachedCredentialOrCreate(QUIC_SETTINGS settings, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol> alpnProtocols, QUIC_ALLOWED_CIPHER_SUITE_FLAGS allowedCipherSuites)
System\Net\Quic\Internal\MsQuicConfiguration.cs (2)
124private static MsQuicConfigurationSafeHandle Create(QuicConnectionOptions options, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol>? alpnProtocols, CipherSuitesPolicy? cipherSuitesPolicy, EncryptionPolicy encryptionPolicy) 204private static unsafe MsQuicConfigurationSafeHandle CreateInternal(QUIC_SETTINGS settings, QUIC_CREDENTIAL_FLAGS flags, X509Certificate? certificate, ReadOnlyCollection<X509Certificate2>? intermediates, List<SslApplicationProtocol> alpnProtocols, QUIC_ALLOWED_CIPHER_SUITE_FLAGS allowedCipherSuites)
System\Net\Quic\QuicListenerOptions.cs (1)
27public List<SslApplicationProtocol> ApplicationProtocols { get; set; } = null!;
System.Net.Requests (7)
System\Net\FtpControlStream.cs (1)
487var commandList = new List<PipelineEntry>();
System\Net\TimerThread.cs (1)
135var garbage = new List<object>();
System\Net\WebRequest.cs (5)
34private static List<WebRequestPrefixElement>? s_prefixList; 97List<WebRequestPrefixElement> prefixList = PrefixList; 248List<WebRequestPrefixElement> prefixList = new List<WebRequestPrefixElement>(PrefixList); 343internal static List<WebRequestPrefixElement> PrefixList 357var prefixList = new List<WebRequestPrefixElement>(Count)
System.Net.Security (15)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
887if (!(protocolHandle.Target is List<SslApplicationProtocol> protocolList))
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (3)
237internal static int GetAlpnProtocolListSerializedLength(List<SslApplicationProtocol> applicationProtocols) 253internal static void SerializeAlpnProtocolList(List<SslApplicationProtocol> applicationProtocols, Span<byte> buffer) 267internal static unsafe int SslSetAlpnProtos(SafeSslHandle ssl, List<SslApplicationProtocol> applicationProtocols)
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (1)
19private readonly List<TlsCipherSuite> _tlsCipherSuites = new List<TlsCipherSuite>();
System\Net\Security\SslAuthenticationOptions.cs (1)
203internal List<SslApplicationProtocol>? ApplicationProtocols { get; set; }
System\Net\Security\SslClientAuthenticationOptions.cs (1)
39public List<SslApplicationProtocol>? ApplicationProtocols { get; set; }
System\Net\Security\SslServerAuthenticationOptions.cs (1)
36public List<SslApplicationProtocol>? ApplicationProtocols { get; set; }
System\Net\Security\SslStream.Protocol.cs (3)
323List<X509Certificate>? filteredCerts = null; // This is an intermediate client certs collection that try to use if no selectedCert is available yet. 668private static List<T> EnsureInitialized<T>(ref List<T>? list) => list ??= new List<T>();
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
42private List<string>? _ocspUrls;
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (3)
78List<string>? list = serviceNames as List<string>; 107private void AddIfNew(List<string> serviceNames)
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
28private List<ArraySegment<byte>>? _bufferListInternal;
System.Net.WebHeaderCollection (2)
System\Net\HeaderInfoTable.cs (1)
24var tempStringCollection = new List<string>();
System\Net\WebHeaderCollection.cs (1)
221List<string>? valueList = null;
System.Net.WebSockets.Client (3)
System\Net\WebSockets\ClientWebSocketOptions.cs (3)
29internal List<string>? _requestedSubProtocols; 85internal List<string> RequestedSubProtocols => _requestedSubProtocols ??= new List<string>(); 164List<string> subprotocols = RequestedSubProtocols; // force initialization of the list
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\Tensor.cs (3)
1364List<nint> origStrides = [.. tensor.Strides]; 1437List<nint> origStrides = [.. tensor.Strides]; 1514List<nint> origStrides = [.. tensor.Strides];
System.ObjectModel (5)
System\Collections\ObjectModel\KeyedCollection.cs (4)
45/// Enables the use of foreach internally without allocations using <see cref="List{T}"/>'s struct enumerator. 47private new List<TItem> Items 51Debug.Assert(base.Items is List<TItem>); 52return (List<TItem>)base.Items;
System\Collections\ObjectModel\ObservableCollection.cs (1)
61public ObservableCollection(List<T> list) : base(new List<T>(list ?? throw new ArgumentNullException(nameof(list))))
System.Printing.Tests (1)
System\Printing\IndexedProperties\PrintStringPropertyTests.cs (1)
37List<string?> changes = [];
System.Private.CoreLib (207)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (2)
21internal List<string> _results; 46List<string> mountPoints = new();
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (5)
149internal AggregateException(List<ExceptionDispatchInfo> innerExceptionInfos) : 167internal AggregateException(string message, List<ExceptionDispatchInfo> innerExceptionInfos) 266List<Exception>? unhandledExceptions = null; 301List<Exception> flattenedExceptions = new List<Exception>(); 304var exceptionsToFlatten = new List<AggregateException> { this };
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1551List<T> list = new List<T>();
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (10)
91/// <summary>Adds the elements of the specified span to the end of the <see cref="List{T}"/>.</summary> 94/// <param name="source">The span whose elements should be added to the end of the <see cref="List{T}"/>.</param> 96public static void AddRange<T>(this List<T> list, params ReadOnlySpan<T> source) 116/// <summary>Inserts the elements of a span into the <see cref="List{T}"/> at the specified index.</summary> 120/// <param name="source">The span whose elements should be added to the <see cref="List{T}"/>.</param> 122/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than <paramref name="list"/>'s <see cref="List{T}.Count"/>.</exception> 123public static void InsertRange<T>(this List<T> list, int index, params ReadOnlySpan<T> source) 158/// <summary>Copies the entire <see cref="List{T}"/> to a span.</summary> 163/// <exception cref="ArgumentException">The number of elements in the source <see cref="List{T}"/> is greater than the number of elements that the destination span can contain.</exception> 164public static void CopyTo<T>(this List<T> list, Span<T> destination)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
162else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 164span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (14)
364public List<TOutput> ConvertAll<TOutput>(Converter<T, TOutput> converter) 371List<TOutput> list = new List<TOutput>(_size); 525public List<T> FindAll(Predicate<T> match) 532List<T> list = new List<T>(); 673public List<T> GetRange(int index, int count) 690List<T> list = new List<T>(count); 697/// Creates a shallow copy of a range of elements in the source <see cref="List{T}" />. 699/// <param name="start">The zero-based <see cref="List{T}" /> index at which the range starts.</param> 701/// <returns>A shallow copy of a range of elements in the source <see cref="List{T}" />.</returns> 707/// <exception cref="ArgumentException"><paramref name="start" /> and <paramref name="length" /> do not denote a valid range of elements in the <see cref="List{T}" />.</exception> 708public List<T> Slice(int start, int length) => GetRange(start, length); 1187private readonly List<T> _list; 1193internal Enumerator(List<T> list) 1205List<T> localList = _list;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (4)
514/// <seealso cref="List&lt;T&gt;.TrueForAll"/> 536/// <seealso cref="List&lt;T&gt;.TrueForAll"/> 561/// <seealso cref="List&lt;T&gt;.Exists"/> 582/// <seealso cref="List&lt;T&gt;.Exists"/>
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
142List<StackFrame> frameList = new List<StackFrame>(frames);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (5)
16private readonly List<DiagnosticCounter> _counters; 274private static List<CounterGroup>? s_counterGroupEnabledList; 275private static List<IncrementingPollingCounter> s_needsResetIncrementingPollingCounters = []; 285var onTimers = new List<CounterGroup>(); 286List<IncrementingPollingCounter>? countersToReset = null;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (13)
472var ret = new List<EventSource>(); 3913private static List<Func<EventSource?>> s_preregisteredEventSourceFactories = new List<Func<EventSource?>>(); 4384List<EventSource> sourcesToDispose = new List<EventSource>(); 4668internal static List<WeakReference<EventSource>>? s_EventSources; 5341perEventByteArrayArgIndices = new Dictionary<string, List<int>>(); 5647var sortedChannels = new List<KeyValuePair<int, ChannelInfo>>(); 5685var sortedTasks = new List<int>(taskTab.Keys); 5762var sortedOpcodes = new List<int>(opcodeTab.Keys); 5777var sortedKeywords = new List<ulong>(keywordTab.Keys); 6167if (perEventByteArrayArgIndices.TryGetValue(evtName, out List<int>? byteArrArgIndices)) 6209private readonly List<string> errors; // list of currently encountered errors 6210private readonly Dictionary<string, List<int>> perEventByteArrayArgIndices; // "event_name" -> List_of_Indices_of_Byte[]_Arg 6215private List<int>? byteArrArgIndices; // keeps track of the index of each byte[] argument
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\SimpleTypeInfos.cs (1)
315public NullableTypeInfo(Type type, List<Type> recursionCheck)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (1)
396List<Type> recursionCheck)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (2)
745List<byte> traitMetaData = new List<byte>(100); 795private static int AddValueToMetaData(List<byte> metaData, string value)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTypes.cs (2)
178var recursionCheck = new List<Type>(paramInfos.Length); 193var recursionCheck = new List<Type>(types.Length);
src\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)
141public static TraceLoggingTypeInfo GetInstance(Type type, List<Type>? recursionCheck)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs (2)
26List<Type> recursionCheck) 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)
150List<string> datePatternsList = callbackContext.Results; 170private static void FixDefaultShortDatePattern(List<string> shortDatePatterns) 471public List<string> Results;
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Nls.cs (2)
57public List<string>? strings; 90public List<int> calendars; // list of calendars found so far
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
566List<CultureInfo> list = new List<CultureInfo>();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (1)
387public List<string> strings;
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
1775List<string> results = new List<string>(DEFAULT_ALL_DATETIMES_SIZE);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
1291List<string> results = new List<string>(DEFAULT_ALL_DATETIMES_SIZE);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfoScanner.cs (1)
112internal List<string> m_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)
871List<string> lines = new List<string>(); 1312List<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\Runtime\CompilerServices\TaskAwaiter.cs (1)
151List<ExceptionDispatchInfo> edis = task.GetExceptionDispatchInfos();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (5)
17/// Get a <see cref="Span{T}"/> view over a <see cref="List{T}"/>'s data. 18/// Items should not be added or removed from the <see cref="List{T}"/> while the <see cref="Span{T}"/> is in use. 23public static Span<T> AsSpan<T>(List<T>? list) 126/// Sets the count of the <see cref="List{T}"/> to the specified value. 140public static void SetCount<T>(List<T> list, int count)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (2)
66private static readonly ConditionalWeakTable<object, List<ManagedObjectWrapperHolder>> s_allManagedObjectWrapperTable = []; 812List<ManagedObjectWrapperHolder> allWrappersForThisInstance = s_allManagedObjectWrapperTable.GetOrCreateValue(instance);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (6)
12private static readonly Dictionary<int, List<Token>> s_registrations = Initialize(); 14private static unsafe Dictionary<int, List<Token>> Initialize() 23return new Dictionary<int, List<Token>>(); 39if (!s_registrations.TryGetValue(signo, out List<Token>? tokens)) 64if (s_registrations.TryGetValue(token.SigNo, out List<Token>? tokens)) 84if (s_registrations.TryGetValue(signo, out List<Token>? registrations))
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TrackerObjectManager.cs (1)
64List<object> objects = new List<object>();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TypeMapLazyDictionary.cs (1)
358public List<SourceProxyPair>? Others { get; private set; }
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
593List<MethodInfo>? results = null; 634List<MethodInfo>? results = null;
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)
16private static List<string>? _currentlyLoading;
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
41List<string> startupHookParts = new();
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (3)
787if (values is List<string?> valuesList) 925if (values.GetType() == typeof(List<string?>)) // avoid accidentally bypassing a derived type's reimplementation of IEnumerable<T> 927return JoinCore(separator, CollectionsMarshal.AsSpan((List<string?>)values));
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (2)
77var segments = new List<(string? Literal, int ArgIndex, int Alignment, string? Format)>(); 112private static bool TryParseLiterals(ReadOnlySpan<char> format, List<(string? Literal, int ArgIndex, int Alignment, string? Format)> segments, ref int failureOffset, ref ExceptionResource failureReason)
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
751List<Exception>? exceptionList = null;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (2)
215List<Exception>? exceptions = localThis.m_completionState.m_exceptions; 479internal List<Exception>? m_exceptions;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (33)
244internal volatile List<Task>? m_exceptionalChildren; 1861internal List<ExceptionDispatchInfo> GetExceptionDispatchInfos() 2027List<Task>? exceptionalChildren = props.m_exceptionalChildren; 2173List<Task>? tmp = props.m_exceptionalChildren; 2204List<Task>? exceptionalChildren = props.m_exceptionalChildren; 3498List<object?> list = (List<object?>)continuationObject; 4548List<object?>? list = oldValue as List<object?>; 4574list = oldValue as List<object?>; 4641List<object?>? continuationsLocalListRef = continuationsLocalRef as List<object?>; 4652continuationsLocalListRef = continuationsLocalRef as List<object?>; 4940tasks is List<Task> list ? CollectionsMarshal.AsSpan(list) : 4968List<Exception>? exceptions = null; 4969List<Task>? waitedOnTaskList = null; 4970List<Task>? notificationTasks = null; 5071private static void AddToList<T>(T item, ref List<T>? list, int initSize) 5083private static bool WaitAllBlockingCore(List<Task> tasks, int millisecondsTimeout, CancellationToken cancellationToken) 5153internal static void AddExceptionsForCompletedTask(ref List<Exception>? exceptions, Task t) 5944if (tasks is List<Task> taskList) 6121if (failedOrCanceled is List<Task> list) 6140Debug.Assert(failedOrCanceled is List<Task>); 6168List<ExceptionDispatchInfo>? observedExceptions = null; 6186if (failedOrCanceled is List<Task> list) 6288List<Task<TResult>> taskList = new List<Task<TResult>>(); 6438List<ExceptionDispatchInfo>? observedExceptions = null; 6740if (tasks.GetType() == typeof(List<TTask>)) 6742return WhenAnyCore((ReadOnlySpan<TTask>)CollectionsMarshal.AsSpan(Unsafe.As<List<TTask>>(tasks))); 6775var taskList = new List<TTask>(); 7106if (continuationObject is List<object?> continuationList) 7108List<Delegate> result = new List<Delegate>(); 7531List<ExceptionDispatchInfo> edis = task.GetExceptionDispatchInfos();
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\TaskExceptionHolder.cs (5)
35private volatile List<ExceptionDispatchInfo>? m_faultExceptions; 148List<ExceptionDispatchInfo>? exceptions = m_faultExceptions ??= new List<ExceptionDispatchInfo>(1); 254List<ExceptionDispatchInfo>? exceptions = m_faultExceptions; 281internal List<ExceptionDispatchInfo> GetExceptionDispatchInfos() 283List<ExceptionDispatchInfo>? exceptions = m_faultExceptions;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
490List<TaskScheduler> schedulers = new List<TaskScheduler>();
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadInt64PersistentCounter.cs (2)
15private static List<ThreadLocalNodeFinalizationHelper>? t_nodeFinalizationHelpers; 53List<ThreadLocalNodeFinalizationHelper>? nodeFinalizationHelpers = t_nodeFinalizationHelpers ??= new List<ThreadLocalNodeFinalizationHelper>(1);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (6)
433List<T>? list = GetValuesAsList(); // returns null if disposed 440private List<T>? GetValuesAsList() 450var valueList = new List<T>(); 511internal List<T>? ValuesForDebugDisplay => // same as Values property, but doesn't throw if disposed 621private readonly List<int> _freeIds = new List<int>(); 781public List<T>? Values => _tlocal.ValuesForDebugDisplay;
src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Portable.cs (7)
14private static List<TimerQueue>? s_scheduledTimers; 15private static List<TimerQueue>? s_scheduledTimersToFire; 29private static List<TimerQueue> InitializeScheduledTimerManager_Locked() 33var timers = new List<TimerQueue>(Instances.Length); 61List<TimerQueue> timers = s_scheduledTimers ?? InitializeScheduledTimerManager_Locked(); 82List<TimerQueue> timersToFire = s_scheduledTimersToFire!; 83List<TimerQueue> timers;
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
492internal static void ThrowAggregateException(List<Exception> exceptions)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
54private List<TimeZoneInfo>? _equivalentZones;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
375List<AdjustmentRule> rules = new List<AdjustmentRule>(1);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (3)
155List<AdjustmentRule> rulesList = new List<AdjustmentRule>(_adjustmentRules.Length); 501List<AdjustmentRule> rulesList = new List<AdjustmentRule>(); 516private static void TZif_GenerateAdjustmentRule(ref int index, TimeSpan timeZoneBaseUtcOffset, List<AdjustmentRule> rulesList, DateTime[] dts,
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
182private static List<string> ParseTimeZoneIds(StreamReader reader) 184List<string> timeZoneIds = new List<string>();
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (2)
38private readonly List<TypeName>? _genericArguments; 49List<TypeName>? genericTypeArguments = default,
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (3)
77List<int>? nestedNameLengths = null; 90List<TypeName>? genericArgs = null; 262private static TypeName? GetDeclaringType(string fullTypeName, List<int>? nestedNameLengths, AssemblyNameInfo? assemblyName)
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
234ref List<int>? nestedNameLengths, ref int recursiveDepth, out int totalLength)
src\System\Attribute.CoreCLR.cs (5)
38List<Attribute> attributeList = new List<Attribute>(); 142List<Attribute> attributeList = new List<Attribute>(); 248List<Type> disAllowMultiple = new List<Type>(); 367private static void CopyToAttributeList(List<Attribute> attributeList, Attribute[] attributes, Dictionary<Type, AttributeUsageAttribute> types) 397private static void AddAttributesToList(List<Attribute> attributeList, Attribute[] attributes, Dictionary<Type, AttributeUsageAttribute> types)
src\System\GC.CoreCLR.cs (1)
591private static readonly List<MemoryLoadChangeNotification> s_notifications = new List<MemoryLoadChangeNotification>();
src\System\Reflection\Associates.cs (1)
137List<MethodInfo>? otherList = null;
src\System\Reflection\Emit\DynamicILGenerator.cs (1)
972internal readonly List<object?> m_tokens = new List<object?> { null };
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (3)
304private List<CustAttr>? m_ca; 314private List<Type>? m_typeInterfaces; 317internal List<RuntimeMethodBuilder>? m_listMethods;
src\System\Reflection\RuntimeAssembly.cs (4)
732List<Type> types = new List<Type>(); 733List<Exception> exceptions = new List<Exception>(); 783private static void AddPublicNestedTypes(Type type, List<Type> types, List<Exception> exceptions)
src\System\Reflection\RuntimeEventInfo.cs (1)
138List<MethodInfo> ret = new List<MethodInfo>();
src\System\Reflection\RuntimePropertyInfo.cs (1)
230List<MethodInfo> accessorList = new List<MethodInfo>();
src\System\RuntimeType.CoreCLR.cs (4)
1215Dictionary<string, List<RuntimePropertyInfo>>? csPropertyInfos = filter.CaseSensitive() ? null : 1216new Dictionary<string, List<RuntimePropertyInfo>>(); 1243Dictionary<string, List<RuntimePropertyInfo>>? csPropertyInfos, 1327if (!csPropertyInfos.TryGetValue(name, out List<RuntimePropertyInfo>? cache))
System.Private.CoreLib.Generators (4)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
620List<int> includedClauses = new List<int>();
NativeRuntimeEventSourceGenerator.cs (3)
237var eventNodes = eventsNode.Elements(EventNs + "event").ToList(); 322var paramList = new List<string>(); 416private static readonly List<string> manuallyHandledEventSymbols =
System.Private.DataContractSerialization (60)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
167var typeArgumentList = new List<CodeTypeReference>();
System\Runtime\Serialization\ClassDataContract.cs (8)
70internal List<DataMember>? Members 256internal static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable) 590private List<DataMember>? _members; 801List<DataMember> tempMembers = new List<DataMember>(); 971private void SetIfMembersHaveConflict(List<DataMember> members) 977List<Member> membersInHierarchy = new List<Member>(); 1153internal List<DataMember>? Members 1420List<DataMember> dataContractMembersList = new List<DataMember>();
System\Runtime\Serialization\CodeGenerator.cs (1)
102private List<ArgBuilder> _argList = null!; // initialized in BeginMethod
System\Runtime\Serialization\DataContract.cs (7)
1151List<Type> itemTypeClosure = new List<Type>(); 1502List<int> nestedParamCounts = GetDataContractNameForGenericName(typeName, localName); 1551internal static List<int> GetDataContractNameForGenericName(string typeName, StringBuilder? localName) 1553List<int> nestedParamCounts = new List<int>(); 1632List<int> nestedParamCounts = GetDataContractNameForGenericName(localName, localNameBuilder); 2379private List<GenericInfo>? _paramGenericInfos; 2380private readonly List<int> _nestedParamCounts;
System\Runtime\Serialization\DataContractSet.cs (9)
22private readonly List<Type>? _referencedTypes; 23private readonly List<Type>? _referencedCollectionTypes; 387List<Type> types = new List<Type>(); 395List<Type> types = (List<Type>)value; 586List<Type> types = (List<Type>)value; 658public List<XmlQualifiedName> ImportSchemaSet(XmlSchemaSet schemaSet, IEnumerable<XmlSchemaElement> elements, bool importXmlDataType) 661importer.Import(out List<XmlQualifiedName>? elementNames);
System\Runtime\Serialization\EnumDataContract.cs (8)
50internal List<DataMember> Members 58internal List<long>? Values 82private List<DataMember> _members; 83private List<long>? _values; 179internal List<DataMember> Members 185internal List<long>? Values 220List<DataMember> tempMembers = new List<DataMember>(fields.Length); 221List<long> tempValues = new List<long>(fields.Length);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
426List<DataMember> members = contract.Members!;
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (3)
62private static List<Type> GetKnownTypesFromContext(XmlObjectSerializerContext? context, IList<Type>? serializerKnownTypeList) 64List<Type> knownTypesList = new List<Type>(); 67List<XmlQualifiedName> xmlNames = new List<XmlQualifiedName>();
System\Runtime\Serialization\ReflectionXmlFormatReader.cs (1)
145List<DataMember> members = contract.Members!;
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (1)
244List<DataMember> members = currentContract.Members!;
System\Runtime\Serialization\SchemaExporter.cs (1)
266List<int>? genericArgumentCounts = null;
System\Runtime\Serialization\SchemaHelper.cs (2)
18internal List<XmlSchemaType>? _knownTypes; 20internal SchemaObjectInfo(XmlSchemaType? type, XmlSchemaElement? element, XmlSchema? schema, List<XmlSchemaType>? knownTypes)
System\Runtime\Serialization\SchemaImporter.cs (9)
30private List<XmlSchemaRedefine> _redefineList = null!; // Not directly referenced. Always lazy initialized by property getter. 46internal void Import([NotNullIfNotNull(nameof(_elements))] out List<XmlQualifiedName>? elementTypeNames) 104var elementNameList = new List<XmlQualifiedName>(); 159private List<XmlSchemaRedefine> RedefineList 174List<XmlSchemaType>? knownTypes = schemaObjectInfo._knownTypes; 222List<XmlSchemaType>? knownTypes = schemaObjectInfo._knownTypes; 245List<XmlSchemaType> knownTypesForObject = new List<XmlSchemaType>(); 328private List<XmlSchemaRedefine> CreateRedefineList() 330List<XmlSchemaRedefine> list = new List<XmlSchemaRedefine>();
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
479List<DataMember> members = contract.Members!;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
804List<DataMember> members = currentContract.Members!;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (4)
904List<XmlAttribute>? xmlAttributes = null; 905List<XmlNode>? xmlChildNodes = null; 950var xmlChildNodes = new List<XmlNode>(); 951List<XmlAttribute>? xmlAttributes = null;
System\Runtime\Serialization\XmlSerializableServices.cs (1)
17List<XmlNode> nodeList = new List<XmlNode>();
System\Xml\XmlBufferReader.cs (1)
1235List<int> list = new List<int>();
System.Private.Windows.Core (73)
System\Collections\Generic\CollectionExtensions.cs (2)
16internal static List<T> CreateTrimmedList<T>(this IReadOnlyList<T> readOnlyList, int count) 28List<T> list = [..readOnlyList];
System\IO\BinaryReaderExtensions.cs (1)
240else if (values is List<T> list)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (21)
338/// Writes a <see cref="List{String}"/> in binary format. 340public static void WriteStringList(Stream stream, List<string> list) 368public static void WritePrimitiveList<T>(Stream stream, List<T> list) 405&& type.GetGenericTypeDefinition() == typeof(List<>) 412case List<string> typedList: 415case List<int> typedList: 418case List<byte> typedList: 421case List<sbyte> typedList: 424case List<short> typedList: 427case List<ushort> typedList: 430case List<uint> typedList: 433case List<long> typedList: 436case List<ulong> typedList: 439case List<float> typedList: 442case List<double> typedList: 445case List<decimal> typedList: 448case List<DateTime> typedList: 451case List<TimeSpan> typedList: 454case List<char> typedList: 457case List<bool> typedList: 718&& type.GetGenericTypeDefinition() == typeof(List<>)
System\Private\Windows\BinaryFormat\SerializationEvents.cs (9)
16private readonly List<MethodInfo>? _onDeserializingMethods; 17private readonly List<MethodInfo>? _onDeserializedMethods; 22List<MethodInfo>? onDeserializingMethods, 23List<MethodInfo>? onDeserializedMethods) 37List<MethodInfo>? onDeserializingMethods = GetMethodsWithAttribute(typeof(OnDeserializingAttribute), type); 38List<MethodInfo>? onDeserializedMethods = GetMethodsWithAttribute(typeof(OnDeserializedAttribute), type); 45private static List<MethodInfo>? GetMethodsWithAttribute( 50List<MethodInfo>? attributedMethods = null; 92private static Action<StreamingContext>? AddOnDelegate(object obj, List<MethodInfo>? methods)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (32)
55{ Types.ToTypeName($"{Types.ListName}[[{Types.BooleanType}]]"), typeof(List<bool>) }, 56{ Types.ToTypeName($"{Types.ListName}[[{Types.CharType}]]"), typeof(List<char>) }, 57{ Types.ToTypeName($"{Types.ListName}[[{Types.StringType}]]"), typeof(List<string>) }, 58{ Types.ToTypeName($"{Types.ListName}[[{Types.SByteType}]]"), typeof(List<sbyte>) }, 59{ Types.ToTypeName($"{Types.ListName}[[{Types.ByteType}]]"), typeof(List<byte>) }, 60{ Types.ToTypeName($"{Types.ListName}[[{Types.Int16Type}]]"), typeof(List<short>) }, 61{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt16Type}]]"), typeof(List<ushort>) }, 62{ Types.ToTypeName($"{Types.ListName}[[{Types.Int32Type}]]"), typeof(List<int>) }, 63{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt32Type}]]"), typeof(List<uint>) }, 64{ Types.ToTypeName($"{Types.ListName}[[{Types.Int64Type}]]"), typeof(List<long>) }, 65{ Types.ToTypeName($"{Types.ListName}[[{Types.UInt64Type}]]"), typeof(List<ulong>) }, 66{ Types.ToTypeName($"{Types.ListName}[[{Types.SingleType}]]"), typeof(List<float>) }, 67{ Types.ToTypeName($"{Types.ListName}[[{Types.DoubleType}]]"), typeof(List<double>) }, 68{ Types.ToTypeName($"{Types.ListName}[[{Types.DecimalType}]]"), typeof(List<decimal>) }, 69{ Types.ToTypeName($"{Types.ListName}[[{Types.DateTimeType}]]"), typeof(List<DateTime>) }, 70{ Types.ToTypeName($"{Types.ListName}[[{Types.TimeSpanType}]]"), typeof(List<TimeSpan>) }, 122|| type == typeof(List<byte>) 123|| type == typeof(List<sbyte>) 124|| type == typeof(List<short>) 125|| type == typeof(List<ushort>) 126|| type == typeof(List<int>) 127|| type == typeof(List<uint>) 128|| type == typeof(List<long>) 129|| type == typeof(List<ulong>) 130|| type == typeof(List<float>) 131|| type == typeof(List<double>) 132|| type == typeof(List<char>) 133|| type == typeof(List<bool>) 134|| type == typeof(List<string>) 135|| type == typeof(List<decimal>) 136|| type == typeof(List<DateTime>) 137|| type == typeof(List<TimeSpan>)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
313/// Tries to get this object as a <see cref="List{T}"/> of <see cref="PrimitiveType"/>. 328|| classInfo.TypeName.GetGenericTypeDefinition().Name != typeof(List<>).Name
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (2)
460List<string> mappedFormats = []; 528List<string> mappedFormats = [];
System\Private\Windows\Ole\DataFormatsCore.cs (1)
11private static List<T>? s_formatList;
System\Private\Windows\Ole\DataStore.cs (1)
35List<string> mappedFormats = [];
System\Private\Windows\Ole\FormatEnumerator.cs (1)
17private readonly List<ComTypes.FORMATETC> _formats = [];
Windows\Win32\System\Com\ComPointerList.cs (1)
16private readonly List<nint> _pointers = [];
System.Private.Windows.Core.Tests (57)
System\Private\Windows\Nrbf\CoreNrbfSerializerTests.cs (5)
68{ typeof(List<int>).FullName!, true, typeof(List<int>) }, 69{ $"{typeof(List<int>).FullName!}, {typeof(List<int>).Assembly.FullName}", true, typeof(List<int>) },
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (23)
407List<object> value = ["text"]; 418Action read = () => TryReadObjectFromStream<List<object>>(ObjectListResolver, out _); 423TryReadObjectFromStream(ObjectListResolver, out List<object>? result).Should().BeTrue(); 424result.Should().BeOfType<List<object>>(); 434("System.Collections.Generic.List`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]", typeof(List<object>)) 455List<int> value = [1, 2, 3]; 748("System.Collections.Generic.List`1[[System.Nullable`1[[System.Decimal, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]", typeof(List<decimal?>)), 749("System.Collections.Generic.List`1[[System.TimeSpan, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]", typeof(List<TimeSpan>)) 1012public List<byte> Bytes = [1]; 1013public List<sbyte> Sbytes = [1]; 1014public List<short> Shorts = [1]; 1015public List<ushort> Ushorts = [1]; 1016public List<int> Ints = [1, 2, 3]; 1017public List<uint> Uints = [1, 2, 3]; 1018public List<long> Longs = [1, 2, 3]; 1019public List<ulong> Ulongs = [1, 2, 3]; 1020public List<float> Floats = [1.0f, 2.0f, 3.0f]; 1021public List<double> Doubles = [1.0, 2.0, 3.0]; 1022public List<decimal> Decimals = [1.0m, 2.0m, 3.0m]; 1023public List<decimal?> NullableDecimals = [null, 2.0m, 3.0m]; 1024public List<DateTime> DateTimes = [DateTime.Now]; 1025public List<TimeSpan> TimeSpans = [TimeSpan.FromHours(1)]; 1026public List<string> Strings = ["a", "b", "c"];
System\Private\Windows\Ole\TypeBinderTests.cs (2)
46[InlineData(typeof(List<string>))] 73[InlineData(typeof(List<string>))]
System\Reflection\Metadata\TypeNameComparerTests.cs (26)
16{ TypeName.Parse(typeof(List<int>).AssemblyQualifiedName), typeof(List<int>) }, 17{ TypeName.Parse($"{typeof(List<int>).FullName}, {typeof(List<int>).Assembly.FullName}"), typeof(List<int>) }, 30{ TypeName.Parse(typeof(List<int>).AssemblyQualifiedName), typeof(List<int>) }, 43TypeName.Parse($"System.Collections.Generic.List`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], {typeof(List<int>).Assembly.FullName}"), 57{ TypeName.Parse(typeof(List<int>).AssemblyQualifiedName), typeof(List<int>) }, 71{ TypeName.Parse(typeof(List<int>).AssemblyQualifiedName), typeof(List<int>) }, 109{ TypeName.Parse("System.Collections.Generic.List`1[[System.Int32]]"), typeof(List<int>) }, 123{ TypeName.Parse(typeof(List<int>).FullName), typeof(List<int>) }, 149{ TypeName.Parse(typeof(List<int>).FullName), typeof(List<int>) }, 160{ TypeName.Parse($"{typeof(List<int>).FullName}, {typeof(List<int>).Assembly.GetName().Name}"), typeof(List<int>) }, 173{ TypeName.Parse($"{typeof(List<int>).FullName}, {typeof(List<int>).Assembly.GetName().Name}"), typeof(List<int>) }, 204{ TypeName.Parse($"{typeof(List<int>).FullName}, {typeof(List<int>).Assembly.GetName().Name}"), typeof(List<int>) },
System\TypeExtensionsTests.cs (1)
109List<string> bindings = [];
System.Private.Windows.Core.TestUtilities (1)
XUnit\InvalidEnumDataAttribute.cs (1)
24List<TEnum> data = [];
System.Private.Xml (255)
System\Xml\Core\XmlEventCache.cs (1)
17private List<XmlEvent[]>? _pages; // All event pages
System\Xml\Core\XmlWriterSettings.cs (1)
250internal List<XmlQualifiedName> CDataSectionElements { get; private set; } = new();
System\Xml\Dom\DocumentXmlWriter.cs (1)
63private readonly List<XmlNode> _fragment; // top level node cache
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1802List<XmlElement> elements = new List<XmlElement>();
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (13)
29List<object>? list = _field as List<object>; 44List<object>? list = _field as List<object>; 63List<object> temp = new List<object>(); 73List<object>? list = _field as List<object>; 92List<object?>? list = _field as List<object?>; 113List<object>? list = _field as List<object>; 188List<object>? list = _field as List<object>;
System\Xml\Dom\XPathNodeList.cs (1)
13private readonly List<XmlNode?> _list;
System\Xml\Schema\ContentValidator.cs (5)
1442List<int[]> transitionTable = new(); 1849List<RangePositionInfo>? runningPositions = context.RunningPositions; 1874List<RangePositionInfo>? runningPositions = context.RunningPositions; 2042List<RangePositionInfo> runningPositions = context.RunningPositions; 2085List<RangePositionInfo> runningPositions = context.RunningPositions;
System\Xml\Schema\Preprocessor.cs (1)
727List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
633var memberTypeDefinitions = new List<XmlSchemaSimpleType>(); 690private void CheckUnionType(XmlSchemaSimpleType unionMember, List<XmlSchemaSimpleType> memberTypeDefinitions, XmlSchemaSimpleType parentType)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
534List<XmlSchemaObject> removeItemsList = new List<XmlSchemaObject>();
System\Xml\Schema\SchemaDeclBase.cs (2)
35protected List<string>? values; // array of values for enumerated and notation types 104internal List<string>? Values
System\Xml\Schema\SchemaElementDecl.cs (1)
14private List<IDtdDefaultAttributeInfo>? _defaultAttdefs;
System\Xml\Schema\SchemaSetCompiler.cs (2)
723var memberTypeDefinitions = new List<XmlSchemaSimpleType>(); 779private void CheckUnionType(XmlSchemaSimpleType unionMember, List<XmlSchemaSimpleType> memberTypeDefinitions, XmlSchemaSimpleType parentType)
System\Xml\Schema\ValidationState.cs (1)
51public List<RangePositionInfo>? RunningPositions;
System\Xml\Schema\XmlSchemaObjectTable.cs (8)
13private readonly List<XmlSchemaObjectEntry> _entries = new List<XmlSchemaObjectEntry>(); 159private readonly List<XmlSchemaObjectEntry> _entries; 162internal NamesCollection(List<XmlSchemaObjectEntry> entries, int size) 212private readonly List<XmlSchemaObjectEntry> _entries; 215internal ValuesCollection(List<XmlSchemaObjectEntry> entries, int size) 264private readonly List<XmlSchemaObjectEntry> _entries; 273internal XSOEnumerator(List<XmlSchemaObjectEntry> entries, int size, EnumeratorType enumType) 335internal XSODictionaryEnumerator(List<XmlSchemaObjectEntry> entries, int size, EnumeratorType enumType) : base(entries, size, enumType)
System\Xml\Schema\XmlSchemaSet.cs (2)
971List<XmlSchemaElement>? newMembers = null; 1299List<XmlSchema> reprocessList = new List<XmlSchema>();
System\Xml\Schema\XmlValueConverter.cs (3)
3053List<T> listDst = new List<T>(); 3081List<object> listDst = new List<object>(); 3091private static List<string> StringAsList(string value)
System\Xml\Schema\XsdBuilder.cs (2)
674private readonly List<XmlAttribute> _unhandledAttributes = new List<XmlAttribute>(); 675private List<XmlQualifiedName>? _namespaces;
System\Xml\Serialization\Models.cs (1)
430var list = new List<ConstantModel>();
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (10)
139var membersList = new List<Member>(); 140var textOrArrayMembersList = new List<Member>(); 141var attributeMembersList = new List<Member>(); 379List<CheckTypeSource>? checkTypeHrefSource = null; 477private void WriteMemberElements(Member[] expectedMembers, UnknownNodeAction elementElseAction, UnknownNodeAction elseAction, Member? anyElement, Member? anyText, Fixup? fixup = null, List<CheckTypeSource>? checkTypeHrefsSource = null) 506private void WriteMemberElementsCheckType(List<CheckTypeSource> checkTypeHrefsSource) 570private static void AddObjectsIntoTargetCollection(object targetCollection, List<object?> sourceCollection, 1485var listOfItems = new List<object?>(); 1592var allMembersList = new List<Member>(mappings.Length); 1880var attributes = new List<AttributeAccessor>();
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
202var 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 (5)
1029var list = new List<MemberMapping>(); 1034internal static void GetAllMembers(StructMapping mapping, List<MemberMapping> list) 1059var list = new List<MemberMapping>(); 1064private static void GetSettableMembers(StructMapping mapping, List<MemberMapping> list) 1092private static bool TryReplaceHiddenMapping(List<MemberMapping> list, MemberMapping memberMapping)
System\Xml\Serialization\XmlReflectionImporter.cs (2)
846var members = new List<MemberMapping>(); 1218var constants = new List<ConstantMapping>();
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1331private bool IsCyclicReferencedType(XmlSchemaElement element, List<string> identifiers)
System\Xml\Serialization\XmlSerializationReader.cs (7)
1874var xmlNodeList = new List<XmlNode>(); 2501var membersList = new List<Member>(); 2502var textOrArrayMembersList = new List<Member>(); 2503var attributeMembersList = new List<Member>(); 3308var arraysToDeclareList = new List<Member>(mappings.Length); 3309var arraysToSetList = new List<Member>(mappings.Length); 3310var allMembersList = new List<Member>(mappings.Length);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (17)
308List<Type> argTypes = new List<Type>(); 428var membersList = new List<Member>(); 429var textOrArrayMembersList = new List<Member>(); 430var attributeMembersList = new List<Member>(); 1023List<Type> argTypes = new List<Type>(); 1024List<string> argNames = new List<string>(); 1066List<Label> caseLabels = new List<Label>(); 1067List<object> retValues = new List<object>(); 1144List<Type> argTypes = new List<Type>(); 1329List<Type> argTypes = new List<Type>(); 1330List<string> argNames = new List<string>(); 1532var arraysToDeclareList = new List<Member>(mappings.Length); 1533var arraysToSetList = new List<Member>(mappings.Length); 1534var allMembersList = new List<Member>(mappings.Length); 1804var attributes = new List<AttributeAccessor>(); 1991List<Type> argTypes = new List<Type>(); 3151List<Type> argTypes = new List<Type>();
System\Xml\Serialization\XmlSerializationWriterILGen.cs (12)
101List<Type> argTypes = new List<Type>(); 230List<Type> argTypes = new List<Type>(); 600List<Type> argTypes = new List<Type>(); 601List<string> argNames = new List<string>(); 619List<Label> caseLabels = new List<Label>(); 620List<string> retValues = new List<string>(); 751List<Type> argTypes = new List<Type>(); 915List<Type> argTypes = new List<Type>(5); 916List<string> argNames = new List<string>(5); 1315List<Type> argTypes = new List<Type>(); 1585var namedAnys = new List<ElementAccessor>(); 1996List<Type> argTypes = new List<Type>();
System\Xml\XPath\Internal\CacheAxisQuery.cs (1)
13protected List<XPathNavigator> outputBuffer;
System\Xml\XPath\Internal\CacheOutputQuery.cs (1)
16protected List<XPathNavigator> outputBuffer;
System\Xml\XPath\Internal\FollSiblingQuery.cs (1)
13private readonly List<XPathNavigator> _parentStk;
System\Xml\XPath\Internal\Function.cs (4)
45private readonly List<AstNode> _argumentList; 50public Function(FunctionType ftype, List<AstNode> argumentList) 56public Function(string prefix, string name, List<AstNode> argumentList) 82public List<AstNode> ArgumentList { get { return _argumentList; } }
System\Xml\XPath\Internal\FunctionQuery.cs (1)
18public FunctionQuery(string prefix, string name, List<Query> args) : base(prefix, name)
System\Xml\XPath\Internal\PreSiblingQuery.cs (2)
28private static bool NotVisited(XPathNavigator nav, List<XPathNavigator> parentStk) 48List<XPathNavigator> parentStk = new List<XPathNavigator>();
System\Xml\XPath\Internal\Query.cs (1)
103public static bool Insert(List<XPathNavigator> buffer, XPathNavigator nav)
System\Xml\XPath\Internal\QueryBuilder.cs (3)
440private List<Query> ProcessArguments(List<AstNode> args, out Props props) 443List<Query> argList = new List<Query>(numArgs);
System\Xml\XPath\Internal\SortQuery.cs (1)
16private readonly List<SortKey> _results;
System\Xml\XPath\Internal\XPathParser.cs (2)
504List<AstNode> argList = new List<AstNode>(); 656List<AstNode> argList = new List<AstNode>();
System\Xml\Xsl\IlGen\StaticDataManager.cs (3)
21private readonly List<T> _list = new List<T>(); 60private List<StringPair[]>? _prefixMappingsList; 61private List<string>? _globalNames;
System\Xml\Xsl\QIL\QilXmlWriter.cs (2)
317private readonly List<QilNode> _fwdrefs = new List<QilNode>(); 318private readonly List<QilNode> _backrefs = new List<QilNode>();
System\Xml\Xsl\Runtime\DocumentOrderComparer.cs (1)
20private List<XPathNavigator>? _roots;
System\Xml\Xsl\Runtime\DodSequenceMerge.cs (1)
20private List<IEnumerator<XPathNavigator>>? _sequencesToMerge;
System\Xml\Xsl\Runtime\StringConcat.cs (2)
21private List<string?>? _strList; 94List<string?> strList = _strList = new List<string?>(capacity);
System\Xml\Xsl\Runtime\XslNumber.cs (1)
119private readonly List<TokenInfo?>? _tokens;
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
83private List<DecimalFormatter>? _decimalFormatters;
System\Xml\Xsl\XmlQueryTypeFactory.cs (9)
97List<XmlQueryType> list = new List<XmlQueryType>(types[0]); 251private static List<XmlQueryType> PrimeChoice(List<XmlQueryType> accumulator, IList<XmlQueryType> types) 263private static void AddItemToChoice(List<XmlQueryType> accumulator, XmlQueryType itemType) 695private readonly List<XmlQueryType> _members; 702List<XmlQueryType> members; 725public static XmlQueryType Create(List<XmlQueryType> members) 739private ChoiceType(List<XmlQueryType> members) 826List<XmlQueryType> members = new List<XmlQueryType>(length);
System\Xml\Xsl\XPath\XPathParser.cs (1)
551List<Node> argList = new List<Node>();
System\Xml\Xsl\Xslt\Compiler.cs (4)
48public List<VarPar> ExternalPars = new List<VarPar>(); 49public List<VarPar> GlobalVars = new List<VarPar>(); 50public List<WhitespaceRule> WhitespaceRules = new List<WhitespaceRule>(); 53public List<ProtoTemplate> AllTemplates = new List<ProtoTemplate>();
System\Xml\Xsl\Xslt\MatcherBuilder.cs (18)
261public Dictionary<QilName, List<Pattern>> FixedNamePatterns = new Dictionary<QilName, List<Pattern>>(); 262public List<QilName> FixedNamePatternsNames = new List<QilName>(); // Needed only to guarantee a stable order 263public List<Pattern> NonFixedNamePatterns = new List<Pattern>(); 275List<Pattern>? list; 312private readonly List<Pattern> _textPatterns = new List<Pattern>(); 313private readonly List<Pattern> _documentPatterns = new List<Pattern>(); 314private readonly List<Pattern> _commentPatterns = new List<Pattern>(); 316private readonly List<Pattern> _heterogenousPatterns = new List<Pattern>(); 318private readonly List<List<TemplateMatch>> _allMatches = new List<List<TemplateMatch>>(); 335private void AddPatterns(List<TemplateMatch> matches) 363List<TemplateMatch>? matchesForMode; 396private QilNode MatchPatterns(QilIterator it, List<Pattern> patternList) 410private QilNode MatchPatterns(QilIterator it, XmlQueryType xt, List<Pattern> patternList, QilNode otherwise) 429private QilNode MatchPatternsWhosePriorityGreater(QilIterator it, List<Pattern> patternList, QilNode matcher) 513foreach (List<TemplateMatch> list in _allMatches)
System\Xml\Xsl\Xslt\QilGenerator.cs (3)
201List<EarlyBoundInfo> ebTypes = new List<EarlyBoundInfo>(scriptClasses.Count); 476List<VarPar>? paramWithCalls = null; 2642List<QilFunction>? functionsForMode;
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (2)
439private QilNode CompileSingleKey(List<Key> defList, QilNode key, IFocus env) 456private QilNode CompileSingleKey(List<Key> defList, QilIterator key, QilIterator context)
System\Xml\Xsl\Xslt\Stylesheet.cs (10)
23public Dictionary<QilName, List<QilFunction>> ApplyFunctions = new Dictionary<QilName, List<QilFunction>>(); 29public List<Uri> ImportHrefs = new List<Uri>(); 30public List<XslNode>? GlobalVarPars = new List<XslNode>(); 43public List<WhitespaceRule>[]? WhitespaceRules = new List<WhitespaceRule>[3]; 45public List<Template> Templates = new List<Template>(); // Templates defined on this level. Empty for RootLevel. 47public Dictionary<QilName, List<TemplateMatch>> TemplateMatches = new Dictionary<QilName, List<TemplateMatch>>(); 51List<TemplateMatch>? matchesForMode;
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (2)
234public QilNode BuildPredicates(QilNode nodeset, List<QilNode> predicates) 237List<QilNode> convertedPredicates = new List<QilNode>(predicates.Count);
System\Xml\Xsl\Xslt\XPathPatternParser.cs (2)
127List<QilNode> args = new List<QilNode>(2); 235List<QilNode> predicates = new List<QilNode>();
System\Xml\Xsl\Xslt\XslAst.cs (4)
84private List<XslNode>? _content; 112public void SetContent(List<XslNode>? content) 246internal sealed class Keys : KeyedCollection<QilName, List<Key>> 248protected override QilName GetKeyForItem(List<Key> list)
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (10)
26private readonly List<VarPar> _allVarPars = new List<VarPar>(); 41private Dictionary<QilName, List<ProtoTemplate>>? _revApplyTemplatesGraph = new Dictionary<QilName, List<ProtoTemplate>>(); 54internal sealed class Graph<V> : Dictionary<V, List<V>?> 61List<V>? adjList; 77List<V>? adjList; 754List<ProtoTemplate>? templates; 809List<ProtoTemplate>? list; 1410var content = (List<XslNode>)parent.Content;
System\Xml\Xsl\Xslt\XsltLoader.cs (43)
254List<Uri> importHrefs = _curStylesheet.ImportHrefs; 336List<XslNode> content = new List<XslNode>(); 619List<XmlQualifiedName> list = new List<XmlQualifiedName>(); 754List<QilName> useCharacterMaps = ParseUseCharacterMaps(15); 861List<XslNode>? content; 902List<Key> defList = new List<Key>(); 1083List<XslNode> content = new List<XslNode>(); 1345private List<XslNode> LoadInstructions() 1350private List<XslNode> LoadInstructions(InstructionFlags flags) 1355private List<XslNode> LoadInstructions(List<XslNode> content) 1362private List<XslNode> LoadInstructions(List<XslNode> content, InstructionFlags flags) 1468private List<XslNode> LoadWithParams(InstructionFlags flags) 1471List<XslNode> content = new List<XslNode>(); 1525List<XslNode>? content = LoadWithParams(InstructionFlags.None); 1566List<XslNode> content = LoadWithParams(InstructionFlags.AllowSort); 1583List<XslNode> content = LoadWithParams(InstructionFlags.None); 1606List<XslNode> content = new List<XslNode>(); 1662List<XslNode> content = new List<XslNode>(); 1744List<XslNode> content = LoadInstructions(InstructionFlags.AllowSort); 1765List<XslNode> content = LoadInstructions(); 1858List<XslNode>? content; 1957List<XslNode> content = LoadContent(select != null); 1979private List<XslNode> LoadContent(bool hasSelect) 1982List<XslNode> content = LoadInstructions(); 2020List<XslNode> content = new List<XslNode>(); 2072List<XslNode> content = new List<XslNode>(); 2139List<XslNode>? content; 2495List<XslNode> content = new List<XslNode>(); 2523private void CheckWithParam(List<XslNode> content, XslNode withParam) 2537private static void AddInstruction(List<XslNode> content, XslNode? instruction) 2546private List<XslNode> LoadEndTag(List<XslNode> content) 2568List<XslNode> fallbacks = LoadFallbacks(_input.LocalName); 2573private List<XslNode> LoadFallbacks(string instrName) 2577List<XslNode> fallbacksArray = new List<XslNode>(); 2666List<QilName> modes = new List<QilName>(list.Length); 2890private void AddUseAttributeSets(List<XslNode> list) 2907private List<QilName> ParseUseCharacterMaps(int attNum) 2909List<QilName> useCharacterMaps = new List<QilName>(); 3080private static void SetContent(XslNode node, List<XslNode>? content) 3090internal static XslNode SetInfo(XslNode to, List<XslNode>? content, ContextInfo info)
System\Xml\Xsl\XsltOld\ActionFrame.cs (2)
153List<SortKey> results = new List<SortKey>(); 315public XPathSortArrayIterator(List<SortKey> list) : base(list) { }
System\Xml\Xsl\XsltOld\Compiler.cs (2)
89private List<TheQuery>? _queryStore; 156internal List<TheQuery>? QueryStore
System\Xml\Xsl\XsltOld\NumberAction.cs (4)
153private List<FormatInfo?>? _formatTokens; 489private static string Format(ArrayList numberlist, List<FormatInfo?>? tokens, string? groupingSep, string? groupingSize) 682private static List<FormatInfo?>? ParseFormat(string? formatString) 690List<FormatInfo?> tokens = new List<FormatInfo?>();
System\Xml\Xsl\XsltOld\Processor.cs (2)
55private readonly List<TheQuery> _queryStore; 327Stylesheet stylesheet, List<TheQuery> queryStore, RootAction rootAction,
System\Xml\Xsl\XsltOld\RootAction.cs (2)
85private List<Key>? _keyList; 244internal List<Key>? KeyList
System\Xml\Xslt\XslTransform.cs (1)
36private List<TheQuery>? _QueryStore;
System.Private.Xml.Linq (7)
System\Xml\Linq\XContainer.cs (2)
1353private static void AddContentToList(List<object?> list, object? content) 1373List<object?> list = new List<object?>();
System\Xml\Linq\XLinq.cs (1)
530private readonly List<XAttribute> _attributes;
System\Xml\Linq\XNodeBuilder.cs (1)
11private List<object>? _content;
System\Xml\Linq\XStreamingElement.cs (3)
39this.content = content is List<object?> ? new object?[] { content } : content; 77List<object>? list = this.content as List<object>;
System.Reflection.Context (10)
System\Reflection\Context\CollectionServices.cs (2)
38public static object[] ConvertListToArray(List<object> list, Type arrayType) 54List<object> list = new List<object>(enumerable);
System\Reflection\Context\Custom\AttributeUtils.cs (3)
33List<object> results = new List<object>(attributes); 73List<object> results = new List<object>(attributes); 151private static void CombineCustomAttributes(List<object> declaredAttributes, IEnumerable<object> inheritedAttributes, Type attributeFilterType, bool inherited, bool allowMultiple)
System\Reflection\Context\Custom\CustomType.cs (4)
58List<PropertyInfo> results = new List<PropertyInfo>(properties); 102List<PropertyInfo> matchingProperties = new List<PropertyInfo>(); 153List<MethodInfo> results = new List<MethodInfo>(methods); 218List<MethodInfo> matchingMethods = new List<MethodInfo>();
System\Reflection\Context\Projection\ProjectingType.cs (1)
113List<MemberInfo> matchingMembers = new List<MemberInfo>();
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
258private readonly List<FieldBuilder> _fields; 259private readonly List<MethodInfo> _methodInfos;
System.Reflection.Emit (67)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
20private readonly List<int> _stack = new List<int>(); 274var nestings = new List<Type>();
System\Reflection\Emit\EventBuilderImpl.cs (1)
21internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\FieldBuilderImpl.cs (1)
24internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (2)
20internal List<CustomAttributeWrapper>? _customAttributes; 21internal List<Type>? _interfaces;
System\Reflection\Emit\ILGeneratorImpl.cs (13)
32private List<KeyValuePair<object, BlobWriter>> _memberReferences = new(); 33private List<ExceptionBlock> _exceptionStack = new(); // tracks the exception nesting 34private List<ExceptionHandlerInfo> _exceptionBlocks = new(); // keeps all ExceptionHandler blocks 35private Dictionary<SymbolDocumentWriter, List<SequencePoint>> _documentToSequencePoints = new(); 50internal List<KeyValuePair<object, BlobWriter>> GetMemberReferences() => _memberReferences; 53internal List<LocalBuilder> Locals => _scope.GetAllLocals(); 56internal Dictionary<SymbolDocumentWriter, List<SequencePoint>> DocumentToSequencePoints => _documentToSequencePoints; 831if (_documentToSequencePoints.TryGetValue(symbolDoc, out List<SequencePoint>? sequencePoints)) 925internal List<Scope>? _children; 926internal List<LocalBuilder>? _locals; 927internal List<string>? _importNamespaces; 931internal List<LocalBuilder> GetAllLocals() 933List<LocalBuilder> locals = new List<LocalBuilder>();
System\Reflection\Emit\MethodBuilderImpl.cs (1)
33internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\ModuleBuilderImpl.cs (19)
25private readonly List<TypeBuilderImpl> _typeDefinitions = new(); 28private List<CustomAttributeWrapper>? _customAttributes; 138List<GenericTypeParameterBuilderImpl> genericParams = new(); 216foreach (List<(MethodInfo ifaceMethod, MethodInfo targetMethod)> mapList in typeBuilder._methodOverrides.Values) 302private void PopulateFieldDefinitionHandles(List<FieldBuilderImpl> fieldDefinitions) 310private void PopulateMethodDefinitionHandles(List<MethodBuilderImpl> methods) 318private void PopulatePropertyDefinitionHandles(List<PropertyBuilderImpl> properties) 326private void PopulateEventDefinitionHandles(List<EventBuilderImpl> eventDefinitions) 350private void WriteMethods(List<MethodBuilderImpl> methods, List<GenericTypeParameterBuilderImpl> genericParams, 422Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator = il.DocumentToSequencePoints.GetEnumerator(); 446private BlobHandle PopulateMultiDocSequencePointsBlob(Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator, StandaloneSignatureHandle localSignature) 452KeyValuePair<SymbolDocumentWriter, List<SequencePoint>> pair = enumerator.Current; 472private static void PopulateSequencePointsBlob(BlobBuilder spBlobBuilder, List<SequencePoint> sequencePoints, ref int previousNonHiddenStartLine, ref int previousNonHiddenStartColumn) 529private LocalVariableHandle GetLocalVariableHandle(List<LocalBuilder>? locals, LocalVariableHandle firstLocalHandleOfLastScope) 552private ImportScopeHandle GetImportScopeHandle(List<string>? importNamespaces, ImportScopeHandle parent) 679internal void WriteCustomAttributes(List<CustomAttributeWrapper>? customAttributes, EntityHandle parent) 1392internal List<TypeBuilderImpl> GetNestedTypeBuilders(TypeBuilderImpl declaringType) 1394List<TypeBuilderImpl> nestedTypes = new List<TypeBuilderImpl>();
System\Reflection\Emit\ParameterBuilderImpl.cs (1)
15internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\PersistedAssemblyBuilder.cs (1)
23internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\PropertyBuilderImpl.cs (1)
26internal List<CustomAttributeWrapper>? _customAttributes;
System\Reflection\Emit\SignatureHelper.cs (1)
13internal static BlobBuilder GetLocalSignature(List<LocalBuilder> locals, ModuleBuilderImpl module)
System\Reflection\Emit\TypeBuilderImpl.cs (24)
34internal readonly List<MethodBuilderImpl> _methodDefinitions = new(); 35internal readonly List<FieldBuilderImpl> _fieldDefinitions = new(); 36internal readonly List<ConstructorBuilderImpl> _constructorDefinitions = new(); 37internal List<Type>? _interfaces; 38internal readonly List<PropertyBuilderImpl> _propertyDefinitions = new(); 39internal readonly List<EventBuilderImpl> _eventDefinitions = new(); 40internal List<CustomAttributeWrapper>? _customAttributes; 41internal Dictionary<Type, List<(MethodInfo ifaceMethod, MethodInfo targetMethod)>>? _methodOverrides; 313if (_methodOverrides.TryGetValue(baseType, out List<(MethodInfo ifaceMethod, MethodInfo targetMethod)>? im)) 734List<ConstructorInfo> constructors = new List<ConstructorInfo>(); 752List<ConstructorInfo> ctors = new(); 777List<MethodInfo> methods = new List<MethodInfo>(); 794List<MethodInfo> methods = new List<MethodInfo>(); 894List<FieldInfo> fields = new List<FieldInfo>(); 912List<FieldInfo> fields = new List<FieldInfo>(_fieldDefinitions.Count); 968List<Type> interfaces = _interfaces ?? []; 1003List<PropertyInfo> properties = new List<PropertyInfo>(); 1020List<PropertyInfo> candidates = new List<PropertyInfo>(_propertyDefinitions.Count); 1044List<PropertyInfo> candidates = GetPropertyCandidates(name, bindingAttr, types); 1076private List<PropertyInfo> GetPropertyCandidates(string name, BindingFlags bindingAttr, Type[]? types) 1080List<PropertyInfo> candidates = new List<PropertyInfo>(properties.Length); 1108List<Type> nestedTypes = new List<Type>(); 1126List<Type> nestedTypes = new List<Type>(); 1278if (_methodOverrides.TryGetValue(interfaceType, out var mapping))
System.Reflection.Metadata (57)
System\Reflection\Internal\Utilities\EnumerableExtensions.cs (1)
23public static IEnumerable<T> OrderBy<T>(this List<T> source, Comparison<T> comparison)
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (4)
41internal int GetBranchDistance(List<int> labels) 89private readonly List<BranchInfo> _branches; 90private readonly List<int> _labels; 91private List<ExceptionHandlerInfo>? _lazyExceptionHandlers;
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
540var sorted = new List<KeyValuePair<string, StringHandle>>(strings);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (43)
67private readonly List<ClassLayoutRow> _classLayoutTable = new List<ClassLayoutRow>(); 69private readonly List<ConstantRow> _constantTable = new List<ConstantRow>(); 73private readonly List<CustomAttributeRow> _customAttributeTable = new List<CustomAttributeRow>(); 77private readonly List<DeclSecurityRow> _declSecurityTable = new List<DeclSecurityRow>(); 81private readonly List<EncLogRow> _encLogTable = new List<EncLogRow>(); 82private readonly List<EncMapRow> _encMapTable = new List<EncMapRow>(); 83private readonly List<EventRow> _eventTable = new List<EventRow>(); 84private readonly List<EventMapRow> _eventMapTable = new List<EventMapRow>(); 85private readonly List<ExportedTypeRow> _exportedTypeTable = new List<ExportedTypeRow>(); 86private readonly List<FieldLayoutRow> _fieldLayoutTable = new List<FieldLayoutRow>(); 88private readonly List<FieldMarshalRow> _fieldMarshalTable = new List<FieldMarshalRow>(); 92private readonly List<FieldRvaRow> _fieldRvaTable = new List<FieldRvaRow>(); 93private readonly List<FieldDefRow> _fieldTable = new List<FieldDefRow>(); 94private readonly List<FileTableRow> _fileTable = new List<FileTableRow>(); 95private readonly List<GenericParamConstraintRow> _genericParamConstraintTable = new List<GenericParamConstraintRow>(); 96private readonly List<GenericParamRow> _genericParamTable = new List<GenericParamRow>(); 97private readonly List<ImplMapRow> _implMapTable = new List<ImplMapRow>(); 98private readonly List<InterfaceImplRow> _interfaceImplTable = new List<InterfaceImplRow>(); 99private readonly List<ManifestResourceRow> _manifestResourceTable = new List<ManifestResourceRow>(); 100private readonly List<MemberRefRow> _memberRefTable = new List<MemberRefRow>(); 101private readonly List<MethodImplRow> _methodImplTable = new List<MethodImplRow>(); 103private readonly List<MethodSemanticsRow> _methodSemanticsTable = new List<MethodSemanticsRow>(); 107private readonly List<MethodSpecRow> _methodSpecTable = new List<MethodSpecRow>(); 108private readonly List<MethodRow> _methodDefTable = new List<MethodRow>(); 109private readonly List<ModuleRefRow> _moduleRefTable = new List<ModuleRefRow>(); 110private readonly List<NestedClassRow> _nestedClassTable = new List<NestedClassRow>(); 111private readonly List<ParamRow> _paramTable = new List<ParamRow>(); 112private readonly List<PropertyMapRow> _propertyMapTable = new List<PropertyMapRow>(); 113private readonly List<PropertyRow> _propertyTable = new List<PropertyRow>(); 114private readonly List<TypeDefRow> _typeDefTable = new List<TypeDefRow>(); 115private readonly List<TypeRefRow> _typeRefTable = new List<TypeRefRow>(); 116private readonly List<TypeSpecRow> _typeSpecTable = new List<TypeSpecRow>(); 117private readonly List<AssemblyRefTableRow> _assemblyRefTable = new List<AssemblyRefTableRow>(); 118private readonly List<StandaloneSigRow> _standAloneSigTable = new List<StandaloneSigRow>(); 121private readonly List<DocumentRow> _documentTable = new List<DocumentRow>(); 122private readonly List<MethodDebugInformationRow> _methodDebugInformationTable = new List<MethodDebugInformationRow>(); 123private readonly List<LocalScopeRow> _localScopeTable = new List<LocalScopeRow>(); 124private readonly List<LocalVariableRow> _localVariableTable = new List<LocalVariableRow>(); 125private readonly List<LocalConstantRow> _localConstantTable = new List<LocalConstantRow>(); 126private readonly List<ImportScopeRow> _importScopeTable = new List<ImportScopeRow>(); 127private readonly List<StateMachineMethodRow> _stateMachineMethodTable = new List<StateMachineMethodRow>(); 128private readonly List<CustomDebugInformationRow> _customDebugInformationTable = new List<CustomDebugInformationRow>(); 209private static void SetTableCapacity<T>(List<T> table, int rowCount)
System\Reflection\Metadata\Internal\NamespaceCache.cs (4)
137List<NamespaceDataBuilder>? virtualNamespaces; 170List<KeyValuePair<NamespaceDefinitionHandle, NamespaceDataBuilder>>? remaps = null; 245ref List<NamespaceDataBuilder>? virtualNamespaces) 313private void ResolveParentChildRelationships(Dictionary<string, NamespaceDataBuilder> namespaces, out List<NamespaceDataBuilder>? virtualNamespaces)
System\Reflection\Metadata\TypeNameParser.cs (2)
77List<int>? nestedNameLengths = null; 262private static TypeName? GetDeclaringType(string fullTypeName, List<int>? nestedNameLengths, AssemblyNameInfo? assemblyName)
System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
234ref List<int>? nestedNameLengths, ref int recursiveDepth, out int totalLength)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (1)
20private readonly List<Entry> _entries;
System.Reflection.MetadataLoadContext (16)
System\Reflection\PathAssemblyResolver.cs (4)
25private readonly Dictionary<string, List<string>> _fileToPaths = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 45List<string>? paths; 59if (_fileToPaths.TryGetValue(assemblyName.Name, out List<string>? paths))
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
82List<Type> list = new List<Type>(ExportedTypes);
System\Reflection\TypeLoading\Assemblies\RoAssembly.GetForwardedTypes.cs (3)
16List<Type> types = new List<Type>(); 17List<Exception>? exceptions = null; 65private static void AddPublicNestedTypes(Type type, List<Type> types)
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (2)
47List<Module> modules = new List<Module>(_loadedModules.Length + 1) 89List<RoModule> modules = new List<RoModule>(_loadedModules.Length + 1);
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (1)
113List<CustomAttributeNamedArgument> cans = new List<CustomAttributeNamedArgument>();
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (1)
68List<MethodInfo> results = new List<MethodInfo>(capacity: count);
System\Reflection\TypeLoading\General\Helpers.cs (1)
60List<T> list = new List<T>(enumeration);
System\Reflection\TypeLoading\Types\RoModifiedFunctionPointerType.cs (1)
53List<Type> builder = new(returnTypeOptionalModifiers.Length + 1);
System\Reflection\TypeLoading\Types\RoModifiedType.cs (2)
18private List<Type>? _requiredModifiersBuilder; 19private List<Type>? _optionalModifiersBuilder;
System.Resources.Extensions (11)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (2)
249List<string> typeNames = new List<string>(); 420private static ResourceTypeCode FindTypeCode(object? value, List<string> types)
System\Resources\Extensions\BinaryFormat\SerializationEvents.cs (9)
18private readonly List<MethodInfo>? _onDeserializingMethods; 19private readonly List<MethodInfo>? _onDeserializedMethods; 24List<MethodInfo>? onDeserializingMethods, 25List<MethodInfo>? onDeserializedMethods) 39List<MethodInfo>? onDeserializingMethods = GetMethodsWithAttribute(typeof(OnDeserializingAttribute), type); 40List<MethodInfo>? onDeserializedMethods = GetMethodsWithAttribute(typeof(OnDeserializedAttribute), type); 47private static List<MethodInfo>? GetMethodsWithAttribute( 52List<MethodInfo>? attributedMethods = null; 94private static Action<StreamingContext>? AddOnDelegate(object obj, List<MethodInfo>? methods)
System.Resources.Writer (2)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (2)
249List<string> typeNames = new List<string>(); 420private static ResourceTypeCode FindTypeCode(object? value, List<string> types)
System.Runtime.Caching (4)
System\Runtime\Caching\HostFileChangeMonitor.cs (1)
177List<string> newList = new List<string>(filePaths.Count);
System\Runtime\Caching\MemoryCache.cs (1)
418List<string> keysClone = new List<string>(keys);
System\Runtime\Caching\MemoryCacheEntryChangeMonitor.cs (2)
24private List<MemoryCacheEntry> _dependencies; 132internal List<MemoryCacheEntry> Dependencies { get { return _dependencies; } }
System.Runtime.Serialization.Formatters (9)
System\Runtime\Serialization\FormatterServices.cs (1)
52var allMembers = new List<FieldInfo>();
System\Runtime\Serialization\SerializationEventsCache.cs (8)
14private readonly List<MethodInfo>? _onSerializingMethods; 15private readonly List<MethodInfo>? _onSerializedMethods; 16private readonly List<MethodInfo>? _onDeserializingMethods; 17private readonly List<MethodInfo>? _onDeserializedMethods; 27private List<MethodInfo>? GetMethodsWithAttribute( 32List<MethodInfo>? mi = null; 75private static void InvokeOnDelegate(object obj, StreamingContext context, List<MethodInfo>? methods) 82private static SerializationEventHandler? AddOnDelegate(object obj, SerializationEventHandler? handler, List<MethodInfo>? methods)
System.Runtime.Serialization.Schema (4)
System\Runtime\Serialization\Schema\CodeExporter.cs (4)
372get { return DataContract.GetXmlName(typeof(List<>)); } 378get { return _dataContractSet.GetDataContract(typeof(List<>)); } 906List<CodeTypeReference> knownTypeReferences = new List<CodeTypeReference>(); 1222baseTypeReference = GetCodeTypeReference(typeof(List<>));
System.Security.Claims (9)
System\Security\Claims\ClaimsIdentity.cs (7)
36private List<List<Claim>>? _externalClaims; 38private readonly List<Claim> _instanceClaims = new List<Claim>(); 148/// <para>All <see cref="Claim"/>s are copied into this instance in a <see cref="List{Claim}"/>. Each Claim is examined and if Claim.Subject != this, then Claim.Clone(this) is called before the claim is added.</para> 407internal List<List<Claim>> ExternalClaims => _externalClaims ??= new List<List<Claim>>();
System\Security\Claims\ClaimsPrincipal.cs (1)
27private readonly List<ClaimsIdentity> _identities = new List<ClaimsIdentity>();
System\Security\Claims\GenericPrincipal.cs (1)
49List<Claim> roleClaims = new List<Claim>(roles.Length);
System.Security.Cryptography (86)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (2)
37internal static List<AttributeAsn> BuildAttributes(CryptographicAttributeObjectCollection? attributes) 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\Pkcs7\SignedDataAsn.xml.cs (4)
142var tmpList = new List<System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn>(); 162var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 183var tmpList = new List<ReadOnlyMemory<byte>>(); 202var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.SignerInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
155var 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 (1)
163private readonly List<CryptographicAttributeObject> _list;
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
22private List<ContentInfoAsn>? _contents;
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
107List<ContentInfoAsn> authSafeData = new List<ContentInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
86List<AttributeAsn> attrs = PkcsHelpers.BuildAttributes(_attributes);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (5)
23private List<Pkcs12SafeBag>? _bags; 236List<Pkcs12SafeBag> bags; 280private static List<Pkcs12SafeBag> ReadBags(ReadOnlyMemory<byte> serialized) 282List<SafeBagAsn> serializedBags = new List<SafeBagAsn>(); 306List<Pkcs12SafeBag> bags = new List<Pkcs12SafeBag>(serializedBags.Count);
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
113private readonly List<AsnEncodedData> _list;
System\Security\Cryptography\CryptoConfig.cs (1)
449List<MethodBase> candidates = new List<MethodBase>();
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (1)
119var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
System\Security\Cryptography\X509Certificates\Asn1\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\CertCollectionLoader.cs (3)
13private List<ICertificatePal>? _certs; 15internal CertCollectionLoader(List<ICertificatePal> certs) 30List<ICertificatePal>? localCerts = Interlocked.Exchange(ref _certs, null);
System\Security\Cryptography\X509Certificates\CertificatePolicy.cs (5)
19public List<CertificatePolicyMappingAsn>? PolicyMapping { get; set; } 39public CertificatePolicyChain(List<X509Certificate2> chain) 156private void ReadPolicies(List<X509Certificate2> chain) 367private static List<CertificatePolicyMappingAsn> ReadCertPolicyMappingsExtension(byte[] rawData) 375List<CertificatePolicyMappingAsn> mappings = new List<CertificatePolicyMappingAsn>();
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
1061List<X509ExtensionAsn> extensionAsns = new List<X509ExtensionAsn>(CertificateExtensions.Count);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (2)
18private readonly List<RevokedCertificate> _revoked; 29private CertificateRevocationListBuilder(List<RevokedCertificate> revoked)
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
88List<RevokedCertificate> list = new();
System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs (2)
142List<X509Certificate2>? tmp = null; 203private static void SaveIntermediateCertificates(List<X509Certificate2> downloadedCerts)
System\Security\Cryptography\X509Certificates\OpenSslPkcsFormatReader.cs (10)
88internal static bool TryReadPkcs7Der(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 93internal static bool TryReadPkcs7Der(SafeBioHandle bio, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 102[NotNullWhen(true)] out List<ICertificatePal>? certPals) 122[NotNullWhen(true)] out List<ICertificatePal>? certPals) 148internal static bool TryReadPkcs7Pem(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 153internal static bool TryReadPkcs7Pem(SafeBioHandle bio, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 162[NotNullWhen(true)] out List<ICertificatePal>? certPals) 181[NotNullWhen(true)] out List<ICertificatePal>? certPals) 201[NotNullWhen(true)] out List<ICertificatePal> certPals) 203List<ICertificatePal>? readPals = single ? null : new List<ICertificatePal>();
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (14)
216ref List<X509Certificate2>? downloadedCerts) 711out List<X509ChainStatus>? overallStatus); 843out List<X509ChainStatus>? overallStatus) 848List<X509ChainStatus>? statusBuilder = null; 902ref List<X509ChainStatus>? overallStatus, 906List<X509Certificate2> certsToRead = new List<X509Certificate2>(); 947var elementStatus = new List<X509ChainStatus>(overallStatus.Count); 967List<X509ChainStatus> elementStatus, 968List<X509ChainStatus> overallStatus, 997List<X509ChainStatus> elementStatus, 998List<X509ChainStatus> overallStatus, 1033private static void AddUniqueStatus(List<X509ChainStatus> list, ref X509ChainStatus status) 1048private static bool ContainsStatus(List<X509ChainStatus> list, X509ChainStatusFlags statusCode) 1061private static void RemoveStatus(List<X509ChainStatus> list, X509ChainStatusFlags statusCode)
System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs (3)
35List<ICertificatePal>? certPals; 99List<ICertificatePal>? certPals; 183private static CertCollectionLoader ListToLoaderPal(List<ICertificatePal> certPals) => new CertCollectionLoader(certPals);
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
18private readonly List<byte[]> _encodedNames = new List<byte[]>();
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (5)
13private List<X500RelativeDistinguishedName>? _parsedAttributes; 83List<X500RelativeDistinguishedName> parsedAttributes = _parsedAttributes ??= ParseAttributes(RawData); 107List<X500RelativeDistinguishedName> parsedAttributes, 126private static List<X500RelativeDistinguishedName> ParseAttributes(byte[] rawData) 128List<X500RelativeDistinguishedName>? parsedAttributes = null;
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (1)
34private readonly List<byte[]> _encodedComponents = new List<byte[]>();
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (3)
116List<byte[]> encodedSets = ParseDistinguishedName(stringForm, dnSeparators, noQuotes, forceUtf8Encoding); 187private static List<byte[]> ParseDistinguishedName( 203List<byte[]> encodedSets = new List<byte[]>(InitalRdnSize);
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 (7)
17private List<GeneralNameAsn>? _decoded; 65List<GeneralNameAsn> decoded = (_decoded ??= Decode(RawData)); 70private static IEnumerable<string> EnumerateDnsNames(List<GeneralNameAsn> decoded) 87List<GeneralNameAsn> decoded = (_decoded ??= Decode(RawData)); 92private static IEnumerable<IPAddress> EnumerateIPAddresses(List<GeneralNameAsn> decoded) 106private static List<GeneralNameAsn> Decode(ReadOnlySpan<byte> rawData) 114List<GeneralNameAsn> decoded = new List<GeneralNameAsn>();
System.Security.Cryptography.Cose (5)
System\Security\Cryptography\Cose\CoseMessage.cs (3)
243List<CoseSignature> signatures = DecodeCoseSignaturesArray(reader); 333private static List<CoseSignature> DecodeCoseSignaturesArray(CborReader reader) 336List<CoseSignature> signatures = new List<CoseSignature>(signaturesLength.GetValueOrDefault());
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (2)
24private readonly List<CoseSignature> _signatures; 32internal CoseMultiSignMessage(CoseHeaderMap protectedHeader, CoseHeaderMap unprotectedHeader, byte[]? content, List<CoseSignature> signatures, byte[] encodedProtectedHeader, bool isTagged)
System.Security.Cryptography.Pkcs (40)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
55var recipientInfos = new List<RecipientInfo>();
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (1)
82List<AttributeAsn> attrList = PkcsHelpers.BuildAttributes(unprotectedAttributes);
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (2)
37internal static List<AttributeAsn> BuildAttributes(CryptographicAttributeObjectCollection? attributes) 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\Pkcs7\SignedDataAsn.xml.cs (4)
142var tmpList = new List<System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn>(); 162var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 183var tmpList = new List<ReadOnlyMemory<byte>>(); 202var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.SignerInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (1)
155var 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 (1)
163private readonly List<CryptographicAttributeObject> _list;
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
22private List<ContentInfoAsn>? _contents;
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
107List<ContentInfoAsn> authSafeData = new List<ContentInfoAsn>();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
86List<AttributeAsn> attrs = PkcsHelpers.BuildAttributes(_attributes);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (5)
23private List<Pkcs12SafeBag>? _bags; 236List<Pkcs12SafeBag> bags; 280private static List<Pkcs12SafeBag> ReadBags(ReadOnlyMemory<byte> serialized) 282List<SafeBagAsn> serializedBags = new List<SafeBagAsn>(); 306List<Pkcs12SafeBag> bags = new List<Pkcs12SafeBag>(serializedBags.Count);
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (1)
90var tmpList = new List<System.Security.Cryptography.Asn1.GeneralNameAsn>();
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (2)
125var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.RecipientInfoAsn>(); 145var tmpList = new List<System.Security.Cryptography.Asn1.AttributeAsn>();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (1)
135var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.RecipientEncryptedKeyAsn>();
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (2)
117var tmpList = new List<System.Security.Cryptography.Asn1.Pkcs7.CertificateChoiceAsn>(); 138var tmpList = new List<ReadOnlyMemory<byte>>();
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (1)
103var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyQualifierInfo>();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (1)
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\SigningCertificateAsn.xml.cs (2)
99var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.EssCertId>(); 118var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyInformation>();
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (2)
99var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.EssCertIdV2>(); 118var tmpList = new List<System.Security.Cryptography.Pkcs.Asn1.PolicyInformation>();
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
128private readonly List<CmsRecipient> _recipients;
System\Security\Cryptography\Pkcs\CmsSigner.cs (2)
244List<AttributeAsn> signedAttrs = PkcsHelpers.BuildAttributes(SignedAttributes); 384List<AttributeAsn> attrs = PkcsHelpers.BuildAttributes(UnsignedAttributes);
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
260List<SignerInfo> signerInfos = new List<SignerInfo>();
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\SignedXml.cs (2)
736List<string> safeAlgorithms = new List<string>(); 757List<string> safeAlgorithms = new List<string>();
System.Security.Permissions (1)
System\Security\Permissions\PrincipalPermission.cs (1)
140List<IDRole> idroles = null;
System.ServiceModel.Federation (2)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
174List<ClaimType> claimTypes = new List<ClaimType>();
System\ServiceModel\Federation\WsTrustTokenParameters.cs (1)
76List<ClaimType> claimTypes = new List<ClaimType>();
System.ServiceModel.NetFramingBase (22)
System\ServiceModel\Channels\ConnectionPool.cs (13)
75private List<TItem> PruneIfNecessary() 77List<TItem> itemsToClose = null; 91List<TKey> endpointKeysToRemove = null; 120List<TItem> itemsToClose = null; 227private readonly List<TItem> _busyConnections; 300List<TItem> idleItemsToClose = null; 317List<TItem> itemsToClose = null; 332var closeTasks = new List<Task>(itemsToClose.Count); 356private void AbortConnections(List<TItem> idleItemsToClose) 371private List<TItem> SnapshotIdleConnections() 373List<TItem> itemsToClose = new List<TItem>(); 418public virtual void Prune(List<TItem> itemsToClose) 425List<TItem> itemsToClose = null;
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (4)
13private Dictionary<string, List<ConnectionPool>> _registry; 17_registry = new Dictionary<string, List<ConnectionPool>>(); 31List<ConnectionPool> registryEntry = null; 84List<ConnectionPool> registryEntry = _registry[pool.Name];
System\ServiceModel\Channels\IdlingCommunicationPool.cs (3)
72public override void Prune(List<TItem> itemsToClose) 200List<TItem> itemsToClose = new List<TItem>(); 226public void Prune(List<TItem> itemsToClose, bool calledFromTimer)
System\ServiceModel\Security\SecurityUtilsEx.cs (2)
136List<IIdentity> identities = null; 140identities = obj as List<IIdentity>;
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\NamedPipeTransportBindingElement.cs (1)
14private readonly List<SecurityIdentifier> _allowedUsers = new List<SecurityIdentifier>();
System.ServiceModel.Primitives (122)
Internals\System\Runtime\Fx.cs (1)
250List<Type> types = new List<Type>(typeNames.Length);
Internals\System\Runtime\InputQueue.cs (1)
24private List<IQueueWaiter> _waiterList;
Internals\System\Runtime\InternalBufferManager.cs (1)
60List<BufferPool> bufferPoolList = new List<BufferPool>();
Internals\System\Xml\XmlMtomWriter.cs (1)
52private List<MimePart> _mimeParts;
System\IdentityModel\Claims\ClaimSet.cs (1)
26List<Claim> claims = new List<Claim>(2);
System\IdentityModel\Claims\X509CertificateClaimSet.cs (3)
177List<Claim> claims = new List<Claim>(); 339List<string> dnsEntries = new List<string>(); 386List<Claim> claims = new List<Claim>(2);
System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
15private List<ClaimSet> _claimSets;
System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
160List<ClaimSet> issuances = new List<ClaimSet>(1);
System\IdentityModel\SecurityUtils.cs (3)
129List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 264List<IAuthorizationPolicy> ret = new List<IAuthorizationPolicy>(authorizationPolicies.Count); 335List<IIdentity> identities = new List<IIdentity>();
System\IdentityModel\Tokens\AggregateTokenResolver.cs (1)
18private List<SecurityTokenResolver> _tokenResolvers = new List<SecurityTokenResolver>();
System\IdentityModel\Tokens\KeyInfoSerializer.cs (4)
18private readonly List<KeyIdentifierEntry> _keyIdentifierEntries; 19private readonly List<KeyIdentifierClauseEntry> _keyIdentifierClauseEntries; 20private readonly List<SerializerEntries> _serializerEntries; 21private readonly List<TokenEntry> _tokenEntries;
System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (1)
17private readonly List<SecurityKeyIdentifierClause> _clauses;
System\IdentityModel\Tokens\WSSecurityJan2004.cs (1)
30List<StrEntry> strEntries = new List<StrEntry>();
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
34List<StrEntry> strEntries = new List<StrEntry>();
System\IdentityModel\Tokens\X509SecurityToken.cs (1)
75List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Channels\AddressHeaderCollection.cs (2)
87List<AddressHeader> results = new List<AddressHeader>(); 203List<AddressHeader> headerList = new List<AddressHeader>();
System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
883private List<XmlDictionaryString> _newStrings; 943private List<byte> _bytes;
System\ServiceModel\Channels\MessageFault.cs (1)
727List<FaultReasonText> translations = new List<FaultReasonText>();
System\ServiceModel\Channels\MessageHeaders.cs (1)
870List<MessageHeaderInfo> understoodHeaders = new List<MessageHeaderInfo>();
System\ServiceModel\Channels\MessageProperties.cs (3)
199List<string> keys = new List<string>(); 268List<object> values = new List<object>(); 924List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(_propertyCount);
System\ServiceModel\Channels\RequestChannel.cs (1)
15private List<IRequestBase> _outstandingRequests = new List<IRequestBase>();
System\ServiceModel\Channels\ServiceChannelFactory.cs (2)
17private List<IChannel> _channelsList; 264List<ICommunicationObject> objectList;
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
55private readonly List<long> _retransmissionWindow = new List<long>();
System\ServiceModel\Description\ServiceReflector.cs (8)
411static internal List<Type> GetInterfaces(Type service) 413List<Type> types = new List<Type>(); 463static internal List<Type> GetInheritedContractTypes(Type service) 465List<Type> types = new List<Type>(); 498List<object> attrTypeAttributes = new List<object>(); 637List<Type> types = new List<Type>(GetInheritedContractTypes(interfaceType)); 664private static List<MethodInfo> GetMethodsInternal(Type interfaceType) 666List<MethodInfo> methods = new List<MethodInfo>();
System\ServiceModel\Description\TypeLoader.cs (8)
391List<Type> knownTypes = new List<Type>(); 727List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType); 778List<Type> types = ServiceReflector.GetInheritedContractTypes(contractType); 779List<Type> inheritedCallbackTypes = new List<Type>(); 1323List<MemberInfo> contractMembers = new List<MemberInfo>(); 1390List<MessagePartDescription> bodyPartDescriptionList = new List<MessagePartDescription>(); 1391List<MessageHeaderDescription> headerPartDescriptionList = new List<MessageHeaderDescription>(); 1597private void AddSortedParts<T>(List<T> partDescriptionList, KeyedCollection<XmlQualifiedName, T> partDescriptionCollection)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
845private List<XmlMembersMapping> _mappings = new List<XmlMembersMapping>(); 891List<XmlMembersMapping> uniqueMappings = new List<XmlMembersMapping>();
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
404List<ICommunicationObject> list = new List<ICommunicationObject>();
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (4)
25private List<IDuplexRequest> _requests; 26private List<ICorrelatorKey> _timedOutRequests; 138private List<IDuplexRequest> Requests 154private List<ICorrelatorKey> TimedOutRequests
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
25List<Attr> attrSet = new List<Attr>();
System\ServiceModel\Dispatcher\EndpointDispatcherTable.cs (1)
14private List<EndpointDispatcher> _cachedEndpoints;
System\ServiceModel\Dispatcher\FaultFormatter.cs (4)
23List<FaultContractInfo> faultContractInfoList = new List<FaultContractInfo>(); 35List<FaultContractInfo> faultContractInfoList; 183private static FaultContractInfo[] GetSortedArray(List<FaultContractInfo> faultContractInfoList) 193private static void AddInfrastructureFaults(List<FaultContractInfo> faultContractInfos)
System\ServiceModel\Dispatcher\InvokerUtil.cs (5)
55var outputParamPositions = new List<int>(); 118List<ParameterExpression> variables = new(); 122List<(Type ParameterType, ParameterExpression OutputExpression)> outputVariables = new(); 123List<ParameterExpression> invocationParameters = new(); 124List<Expression> expressions = new();
System\ServiceModel\Dispatcher\SynchronizedChannelCollection.cs (1)
50List<TChannel> items = Items;
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
586((List<MessageHeader<object>>)_attributes[headerDescription.Index]).Add(new MessageHeader<object>(null, mustUnderstand, actor, relay));
System\ServiceModel\DXD.cs (4)
121public List<XmlDictionaryString> SecureConversationDictionaryStrings = new List<XmlDictionaryString>(); 186public List<XmlDictionaryString> SecurityAlgorithmDictionaryStrings = new List<XmlDictionaryString>(); 215public List<XmlDictionaryString> Feb2005DictionaryStrings = new List<XmlDictionaryString>(); 216public List<XmlDictionaryString> Dec2005DictionaryString = new List<XmlDictionaryString>();
System\ServiceModel\EndpointAddress.cs (1)
702List<AddressHeader> headerList = new List<AddressHeader>();
System\ServiceModel\ExtensionCollection.cs (2)
61List<IExtension<T>> items = Items; 81List<IExtension<T>> items = Items;
System\ServiceModel\Security\IInitiatorSecuritySessionProtocol.cs (2)
17List<SecurityToken> GetIncomingSessionTokens(); 18void SetIncomingSessionTokens(List<SecurityToken> tokens);
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (3)
18private List<SecurityToken> _incomingSessionTokens; 73public List<SecurityToken> GetIncomingSessionTokens() 81public void SetIncomingSessionTokens(List<SecurityToken> tokens)
System\ServiceModel\Security\MessagePartSpecification.cs (3)
15private List<XmlQualifiedName> _headerTypes; 106List<XmlQualifiedName> headerTypes = specification._headerTypes; 131List<XmlQualifiedName> noDuplicates = new List<XmlQualifiedName>(_headerTypes.Count);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (2)
51private List<TokenTracker> _supportingTokenTrackers; 53private List<SecurityTokenAuthenticator> _allowedAuthenticators;
System\ServiceModel\Security\SecuritySessionClientSettings.cs (4)
404List<SecurityToken> incomingSessionTokens = new List<SecurityToken>(1); 813List<RequestSecurityTokenResponse> rstrList = new List<RequestSecurityTokenResponse>(); 950List<SecurityToken> incomingTokens = new List<SecurityToken>(1); 992List<SecurityToken> incomingTokens = new List<SecurityToken>(2);
System\ServiceModel\Security\SecurityUtils.cs (3)
437List<Claim> claims = new List<Claim>(2); 441List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 821List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\SendSecurityHeader.cs (5)
28private List<SecurityTokenParameters> _basicSupportingTokenParameters = null; 29private List<SecurityTokenParameters> _endorsingTokenParameters = null; 30private List<SecurityTokenParameters> _signedEndorsingTokenParameters = null; 31private List<SecurityTokenParameters> _signedTokenParameters = null; 224private void AddParameters(ref List<SecurityTokenParameters> list, SecurityTokenParameters item)
System\ServiceModel\Security\SendSecurityHeaderElementContainer.cs (10)
14private List<SecurityToken> _signedSupportingTokens = null; 15private List<SendSecurityHeaderElement> _basicSupportingTokens = null; 16private List<SecurityToken> _endorsingSupportingTokens = null; 17private List<SecurityToken> _endorsingDerivedSupportingTokens = null; 18private List<SecurityToken> _signedEndorsingSupportingTokens = null; 19private List<SecurityToken> _signedEndorsingDerivedSupportingTokens = null; 20private List<SendSecurityHeaderElement> _signatureConfirmations = null; 21private List<SendSecurityHeaderElement> _endorsingSignatures = null; 34private void Add<T>(ref List<T> list, T item) 53public List<SecurityToken> EndorsingSupportingTokens
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
207List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
162List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\WSKeyInfoSerializer.cs (1)
20List<SerializerEntries> serializerEntries = new List<SerializerEntries>();
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
23private readonly List<SerializerEntries> _serializerEntries; 25private readonly List<TokenEntry> _tokenEntries = new List<TokenEntry>(); 512private List<XmlDictionaryString> _dictionaryStrings; 514public CollectionDictionary(List<XmlDictionaryString> dictionaryStrings)
System\ServiceModel\Security\WSTrust.cs (2)
165private List<SecurityTokenAuthenticator> _entropyAuthenticators; 396List<RequestSecurityTokenResponse> rstrCollection = new List<RequestSecurityTokenResponse>(2);
System\ServiceModel\SynchronizedCollection.cs (1)
60protected List<T> Items { get; }
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
54internal SynchronizedReadOnlyCollection(object syncRoot, List<T> list, bool makeCopy)
System\ServiceModel\XmlBuffer.cs (1)
14private List<Section> _sections;
System.ServiceModel.Primitives.Tests (26)
Channels\CommunicationObjectTest.cs (9)
20List<string> openMethodsCalled = new List<string>(); 21List<string> closeMethodsCalled = new List<string>(); 51List<string> openMethodsCalled = new List<string>(); 52List<string> closeMethodsCalled = new List<string>(); 86List<string> closeMethodsCalled = new List<string>(); 112List<string> openEventsFired = new List<string>(); 113List<string> closeEventsFired = new List<string>(); 142List<string> openEventsFired = new List<string>(); 143List<string> closeEventsFired = new List<string>();
Channels\CustomChannelTest.cs (12)
24List<string> channelOpenMethodsCalled = new List<string>(); 25List<string> channelCloseMethodsCalled = new List<string>(); 26List<string> factoryOpenMethodsCalled = new List<string>(); 27List<string> factoryCloseMethodsCalled = new List<string>(); 114List<string> channelOpenMethodsCalled = new List<string>(); 115List<string> channelCloseMethodsCalled = new List<string>(); 116List<string> factoryOpenMethodsCalled = new List<string>(); 117List<string> factoryCloseMethodsCalled = new List<string>(); 316List<string> channelOpenMethodsCalled = new List<string>(); 317List<string> channelCloseMethodsCalled = new List<string>(); 318List<string> factoryOpenMethodsCalled = new List<string>(); 319List<string> factoryCloseMethodsCalled = new List<string>();
ServiceModel\MessageContractTest.4.4.0.cs (5)
147Dictionary<string, List<string>> headers = new Dictionary<string, List<string>>(); 168List<string> values = null; 301private static void ValidateHeader(Dictionary<string, List<string>> headers, string name, params string[] values) 303List<string> headerValues;
System.ServiceModel.Syndication (1)
System\ServiceModel\XmlBuffer.cs (1)
12private readonly List<Section> _sections;
System.Text.Json (93)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (3)
69internal static void StableSortByKey<T, TKey>(this List<T> items, Func<T, TKey> keySelector) 113var nodes = new List<T> { entryNode }; // the integer-to-node mapping 115var adjacency = new List<bool[]?>(); // the growable adjacency matrix
src\libraries\System.Text.Json\Common\ReflectionExtensions.cs (1)
330var results = new List<Type>();
System\Text\Json\Nodes\JsonArray.cs (11)
24private List<JsonNode?>? _list; 76GetUnderlyingRepresentation(out List<JsonNode?>? list, out JsonElement? jsonElement); 108List<JsonNode?> currentList = List; 109List<JsonNode?> otherList = array.List; 151var list = new List<JsonNode?>(items); 163List<JsonNode?> list = new(items.Length); 227private List<JsonNode?> List => _list ?? InitializeList(); 268GetUnderlyingRepresentation(out List<JsonNode?>? list, out JsonElement? jsonElement); 294private List<JsonNode?> InitializeList() 296GetUnderlyingRepresentation(out List<JsonNode?>? list, out JsonElement? jsonElement); 332private void GetUnderlyingRepresentation(out List<JsonNode?>? list, out JsonElement? jsonElement)
System\Text\Json\Nodes\JsonArray.IList.cs (2)
34List<JsonNode?>? list = _list; 166List<JsonNode?> list = List;
System\Text\Json\Schema\JsonSchema.cs (6)
65public List<KeyValuePair<string, JsonSchema>>? Properties { get => _properties; set { VerifyMutable(); _properties = value; } } 66private List<KeyValuePair<string, JsonSchema>>? _properties; 68public List<string>? Required { get => _required; set { VerifyMutable(); _required = value; } } 69private List<string>? _required; 83public List<JsonSchema>? AnyOf { get => _anyOf; set { VerifyMutable(); _anyOf = value; } } 84private List<JsonSchema>? _anyOf;
System\Text\Json\Schema\JsonSchemaExporter.cs (7)
92List<JsonDerivedType> derivedTypes = new(polyOptions.DerivedTypes); 103List<JsonSchema>? anyOf = new(derivedTypes.Count); 197List<KeyValuePair<string, JsonSchema>>? properties = null; 198List<string>? required = null; 315List<KeyValuePair<string, JsonSchema>>? dictProps = null; 316List<string>? dictRequired = null; 413private readonly List<string> _currentPath = [];
System\Text\Json\Serialization\Attributes\JsonObjectCreationHandlingAttribute.cs (1)
25/// <see cref="IEnumerable{T}"/> has runtime value of type <see cref="List{T}"/> it will not be populated
System\Text\Json\Serialization\ConfigurationList.cs (2)
17protected readonly List<TItem> _list; 75public List<TItem>.Enumerator GetEnumerator()
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (3)
18((List<TElement>)state.Current.ReturnValue!).Add(value); 30List<TElement> list = (List<TElement>)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (1)
137public readonly List<TElement> _buffer = new();
System\Text\Json\Serialization\Converters\Collection\ICollectionOfTConverter.cs (1)
43if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(List<TElement>)))
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs (2)
18private readonly bool _isDeserializable = typeof(TCollection).IsAssignableFrom(typeof(List<object?>)); 22((List<object?>)state.Current.ReturnValue!).Add(value);
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (1)
56else if ((actualTypeToConvert = typeToConvert.GetCompatibleGenericBaseClass(typeof(List<>))) != null)
System\Text\Json\Serialization\Converters\Collection\IEnumerableOfTConverter.cs (2)
16private readonly bool _isDeserializable = typeof(TCollection).IsAssignableFrom(typeof(List<TElement>)); 20((List<TElement>)state.Current.ReturnValue!).Add(value);
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (1)
82if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(List<object?>)))
System\Text\Json\Serialization\Converters\Collection\IListOfTConverter.cs (1)
43if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(List<TElement>)))
System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverter.cs (2)
16((List<TElement>)state.Current.ReturnValue!).Add(value); 34state.Current.ReturnValue = creator((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs (2)
12where TCollection : List<TElement> 38List<TElement> list = value;
System\Text\Json\Serialization\Converters\Collection\MemoryConverter.cs (2)
32((List<T>)state.Current.ReturnValue!).Add(value); 43Memory<T> memory = ((List<T>)state.Current.ReturnValue!).ToArray().AsMemory();
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (2)
32((List<T>)state.Current.ReturnValue!).Add(value); 43ReadOnlyMemory<T> memory = ((List<T>)state.Current.ReturnValue!).ToArray().AsMemory();
System\Text\Json\Serialization\Converters\Collection\RootLevelListConverter.cs (4)
14internal sealed class RootLevelListConverter<T> : JsonResumableConverter<List<T?>> 26internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out List<T?>? value) 32var results = (List<T?>?)state.Current.ReturnValue;
System\Text\Json\Serialization\Converters\FSharp\FSharpListConverter.cs (2)
25((List<TElement>)state.Current.ReturnValue!).Add(value); 37state.Current.ReturnValue = _listConstructor((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs (3)
27((List<Tuple<TKey, TValue>>)state.Current.ReturnValue!).Add(new Tuple<TKey, TValue>(key, value)); 41List<Tuple<TKey, TValue>> listToConvert = (List<Tuple<TKey, TValue>>)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\FSharp\FSharpSetConverter.cs (2)
25((List<TElement>)state.Current.ReturnValue!).Add(value); 37state.Current.ReturnValue = _setConstructor((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (2)
588private List<EnumFieldInfo>? _conflictingFields; 608List<EnumFieldInfo> conflictingFields = _conflictingFields ??= [];
System\Text\Json\Serialization\JsonConverterFactory.cs (1)
13/// This is useful for converters supporting generics, such as a converter for <see cref="System.Collections.Generic.List{T}"/>.
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (7)
145private static JsonTypeInfo<List<T?>> GetOrAddListTypeInfoForRootLevelValueMode<T>(JsonTypeInfo<T> elementTypeInfo) 149return (JsonTypeInfo<List<T?>>)elementTypeInfo._asyncEnumerableRootLevelValueTypeInfo; 153var listTypeInfo = new JsonTypeInfo<List<T?>>(converter, elementTypeInfo.Options) 163private static JsonTypeInfo<List<T?>> GetOrAddListTypeInfoForArrayMode<T>(JsonTypeInfo<T> elementTypeInfo) 167return (JsonTypeInfo<List<T?>>)elementTypeInfo._asyncEnumerableArrayTypeInfo; 170var converter = new ListOfTConverter<List<T>, T>(); 171var listTypeInfo = new JsonTypeInfo<List<T?>>(converter, elementTypeInfo.Options)
System\Text\Json\Serialization\JsonSerializer.Read.Pipe.cs (5)
308JsonTypeInfo<List<T?>> listTypeInfo; 324JsonTypeInfo<List<T?>> listTypeInfo, 345out List<T?>? _); 349var list = (List<T?>)returnValue;
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (5)
463JsonTypeInfo<List<T?>> listTypeInfo; 479JsonTypeInfo<List<T?>> listTypeInfo, 501out List<T?>? _); 505var list = (List<T?>)returnValue;
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
476/// <see cref="IEnumerable{T}"/> but it is assigned <see cref="List{T}"/> it will not be populated
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Collections.cs (2)
28/// Creates serialization metadata for types assignable to <see cref="List{T}"/>. 39where TCollection : List<TElement>
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (3)
480/// For example, for a property returning <see cref="List{T}"/> where T is a string, 1076List<JsonPropertyInfo> propertyCache = new(properties.Count); 1190List<JsonParameterInfo> parameterCache = new(ParameterCount);
System\Text\Json\Serialization\Metadata\PropertyRefCacheBuilder.cs (1)
15private readonly List<PropertyRef> _propertyRefs = [];
System\Text\Json\Serialization\ReferenceHandler.cs (1)
41/// 5) For enumerable types, such as <see cref="List{T}"/>, the JSON array must be nested within a JSON object containing an `$id` and `$values` metadata property, in that order.
System\Text\Json\Serialization\WriteStack.cs (1)
84public List<IAsyncDisposable>? CompletedAsyncDisposables;
System.Text.Json.SourceGeneration (24)
Helpers\KnownTypeSymbols.cs (1)
37public INamedTypeSymbol? ListOfTType => GetOrResolveType(typeof(List<>), ref _ListOfTType);
Helpers\RoslynExtensions.cs (1)
238var list = new List<INamedTypeSymbol>();
JsonSourceGenerator.Parser.cs (17)
50public List<DiagnosticInfo> Diagnostics { get; } = new(); 105out List<TypeToGenerate>? rootSerializableTypes, 126if (!TryGetNestedTypeDeclarations(contextClassDeclaration, semanticModel, cancellationToken, out List<string>? classDeclarationList)) 169private static bool TryGetNestedTypeDeclarations(ClassDeclarationSyntax contextClassSyntax, SemanticModel semanticModel, CancellationToken cancellationToken, [NotNullWhen(true)] out List<string>? typeDeclarations) 231out List<TypeToGenerate>? rootSerializableTypes, 264List<TypeRef>? converters = null; 518List<PropertyGenerationSpec>? propertySpecs = null; 519List<int>? fastPathPropertyIndices = null; 523List<PropertyInitializerGenerationSpec>? propertyInitializerSpecs = null; 916private List<PropertyGenerationSpec> ParsePropertyGenerationSpecs( 921out List<int>? fastPathPropertyIndices) 924List<PropertyGenerationSpec> properties = new(); 1034public readonly List<int> Properties = new(); 1500private List<PropertyInitializerGenerationSpec>? ParsePropertyInitializers( 1502List<PropertyGenerationSpec>? properties, 1512List<PropertyInitializerGenerationSpec>? propertyInitializers = null; 1715if (namedType.GetAllTypeArgumentsInScope() is List<ITypeSymbol> typeArgsInScope)
src\libraries\Common\src\SourceGenerators\TypeModelHelper.cs (2)
13public static List<ITypeSymbol>? GetAllTypeArgumentsInScope(this INamedTypeSymbol type) 20List<ITypeSymbol>? args = null;
src\libraries\System.Text.Json\Common\JsonHelpers.cs (3)
69internal static void StableSortByKey<T, TKey>(this List<T> items, Func<T, TKey> keySelector) 113var nodes = new List<T> { entryNode }; // the integer-to-node mapping 115var adjacency = new List<bool[]?>(); // the growable adjacency matrix
System.Text.RegularExpressions (111)
System\Text\RegularExpressions\MatchCollection.cs (1)
19private readonly List<Match> _matches;
System\Text\RegularExpressions\Regex.Cache.cs (1)
55private static readonly List<Node> s_cacheList = new List<Node>(DefaultMaxCacheSize);
System\Text\RegularExpressions\Regex.Split.cs (2)
93regex.RunAllMatchesWithCallback(input, startat, ref state, static (ref (List<string> results, int prevat, string input, int count) state, Match match) => 121regex.RunAllMatchesWithCallback(input, startat, ref state, static (ref (List<string> results, int prevat, string input, int count) state, Match match) =>
System\Text\RegularExpressions\RegexCharClass.cs (11)
317private List<(char First, char Last)>? _rangelist; 352private RegexCharClass(bool negate, List<(char First, char Last)>? ranges, StringBuilder? categories, RegexCharClass? subtraction) 421private List<(char First, char Last)> EnsureRangeList() => 431List<(char First, char Last)> rangeList = EnsureRangeList(); 497List<(char First, char Last)>? rangeList = _rangelist; 1609List<(char First, char Last)>? ranges = ComputeRanges(charClass.AsSpan(start)); 1627public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set) 1633List<(char First, char Last)>? ranges = null; 1778List<(char First, char Last)>? rangelist = _rangelist; 1814List<(char First, char Last)>? rangelist = _rangelist; 1995var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
System\Text\RegularExpressions\RegexCompiler.cs (3)
122protected List<object>? _searchValues; 846List<RegexFindOptimizations.FixedDistanceSet>? sets = _regexTree.FindOptimizations.FixedDistanceSets; 6197List<object> list = _searchValues ??= new();
System\Text\RegularExpressions\RegexFindOptimizations.cs (4)
201List<FixedDistanceSet>? fixedDistanceSets = RegexPrefixAnalyzer.FindFixedDistanceSets(root, thorough: !interpreter); 313public List<FixedDistanceSet>? FixedDistanceSets { get; } 339private static (string String, int Distance)? FindFixedDistanceString(List<FixedDistanceSet> fixedDistanceSets) 742List<FixedDistanceSet> sets = FixedDistanceSets!;
System\Text\RegularExpressions\RegexNode.cs (38)
19/// <remarks>null if no children, a <see cref="RegexNode"/> if one child, or a <see cref="List{RegexNode}"/> if multiple children.</remarks> 141((List<RegexNode>)Children!).Reverse(); 698List<RegexNode>? branches = child.Children as List<RegexNode>; 1078List<RegexNode> children = (List<RegexNode>)Children!; 1090if (at.Children is List<RegexNode> atChildren) 1196Debug.Assert(alternation.Children is List<RegexNode> { Count: >= 2 }); 1197var children = (List<RegexNode>)alternation.Children; 1216Debug.Assert(children[startingIndex].Children is List<RegexNode> { Count: >= 2 }); 1264((List<RegexNode>)children[i].Children!).RemoveAt(0); 1296var children = (List<RegexNode>)node.Children!; 1338Debug.Assert(alternation.Children is List<RegexNode> { Count: >= 2 }); 1339var children = (List<RegexNode>)alternation.Children; 1665Debug.Assert(Children is List<RegexNode>); 1671List<RegexNode> children = (List<RegexNode>)Children!; 1684if (at.Children is List<RegexNode> atChildren) 1748Debug.Assert(Children is List<RegexNode>); 1750var children = (List<RegexNode>)Children!; 1956Debug.Assert(Children is List<RegexNode>); 1957var children = (List<RegexNode>)Children; 2495var peers = (List<RegexNode>)parent.Children!; 2553var peers = (List<RegexNode>)parent.Children!; 3043((List<RegexNode>)Children).Add(newChild); 3049Debug.Assert(Children is List<RegexNode>); 3055((List<RegexNode>)Children).Insert(index, newChild); 3073((List<RegexNode>)Children)[index] = newChild; 3077public RegexNode Child(int i) => Children is RegexNode child ? child : ((List<RegexNode>)Children!)[i]; 3086if (Children is List<RegexNode> children) 3159var stack = new List<int>();
System\Text\RegularExpressions\RegexParser.cs (2)
45private List<string>? _capnamelist; 1864List<string>? oldcapnamelist;
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (9)
34List<StringBuilder> results = [new StringBuilder()]; 57static bool FindPrefixesCore(RegexNode node, List<StringBuilder> results, bool ignoreCase) 254List<StringBuilder>? allBranchResults = null; 255List<StringBuilder>? alternateBranchResults = [new StringBuilder()]; 511public static List<RegexFindOptimizations.FixedDistanceSet>? FindFixedDistanceSets(RegexNode root, bool thorough) 517var results = new List<RegexFindOptimizations.FixedDistanceSet>(); 586static bool TryFindRawFixedSets(RegexNode node, List<RegexFindOptimizations.FixedDistanceSet> results, ref int distance, bool thorough) 716var localResults = new List<RegexFindOptimizations.FixedDistanceSet>(); 788public static void SortFixedDistanceSetsByQuality(List<RegexFindOptimizations.FixedDistanceSet> results) =>
System\Text\RegularExpressions\Symbolic\BDD.cs (2)
248var nonterminals = new List<BDD>[Ordinal + 1]; 249var sorted = new List<BDD>();
System\Text\RegularExpressions\Symbolic\BDDRangeConverter.cs (2)
73var merged = new List<(uint, uint)>(); 168var ranges1 = new List<(uint, uint)>();
System\Text\RegularExpressions\Symbolic\CharSetSolver.cs (1)
79internal BDD CreateBDDFromRanges(List<(char Lower, char Upper)> ranges)
System\Text\RegularExpressions\Symbolic\MatchingState.cs (1)
90internal List<(SymbolicRegexNode<TSet> Node, DerivativeEffect[] Effects)> NfaNextWithEffects(SymbolicRegexBuilder<TSet> builder, TSet minterm, uint nextCharKind)
System\Text\RegularExpressions\Symbolic\MintermGenerator.cs (3)
28public static List<TSet> GenerateMinterms(ISolver<TSet> solver, HashSet<TSet> sets) 88internal List<TSet> GetLeafSets() 90var leaves = new List<TSet>();
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (2)
345List<BDD> conditions = new(); 361List<(char First, char Last)>? ranges = RegexCharClass.ComputeRanges(set);
System\Text\RegularExpressions\Symbolic\SparseIntMap.cs (3)
15private readonly List<KeyValuePair<int, T>> _dense = new(); 25public List<KeyValuePair<int, T>> Values => _dense; 36List<KeyValuePair<int, T>> dense = _dense;
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (2)
142internal SymbolicRegexNode<TSet> Alternate(List<SymbolicRegexNode<TSet>> nodes) 329List<SymbolicRegexNode<TSet>> concatElements = node.ToList();
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (5)
407List<int> targetsList = []; 408ForEachNfaState(targetNode, nextCharKind, targetsList, static (int nfaId, List<int> targetsList) => 433List<(SymbolicRegexNode<TSet> Node, DerivativeEffect[] Effects)>? transition = coreState.NfaNextWithEffects(_builder, minterm, nextCharKind); 436List<(int, DerivativeEffect[])> targetsList = []; 440static (int nfaId, (List<(int, DerivativeEffect[])> Targets, DerivativeEffect[] Effects) args) =>
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (5)
24Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> transitions = GatherTransitions(this); 57foreach (KeyValuePair<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> transition in transitions) 144static Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> GatherTransitions(SymbolicRegexMatcher<TSet> matcher) 146Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> result = new(); 161if (!result.TryGetValue(key, out (TSet Rule, List<int> NfaTargets) entry))
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (2)
33var results = new List<string>(); 78List<string> possibleEndings = new();
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (10)
185public List<SymbolicRegexNode<TSet>> ToList(List<SymbolicRegexNode<TSet>>? list = null, SymbolicRegexNodeKind listKind = SymbolicRegexNodeKind.Concat) 192static void AppendToList(SymbolicRegexNode<TSet> concat, List<SymbolicRegexNode<TSet>> list, SymbolicRegexNodeKind listKind) 540List<SymbolicRegexNode<TSet>> elems = left.ToList(listKind: SymbolicRegexNodeKind.Alternate); 840List<SymbolicRegexNode<TSet>> prefixElements = []; 1054internal List<(SymbolicRegexNode<TSet>, DerivativeEffect[])> CreateNfaDerivativeWithEffects(SymbolicRegexBuilder<TSet> builder, TSet elem, uint context) 1056List<(SymbolicRegexNode<TSet>, DerivativeEffect[])> transitions = []; 1392List<SymbolicRegexNode<TSet>> elems = ToList(listKind: SymbolicRegexNodeKind.Alternate); 1427internal void StripAndMapEffects(SymbolicRegexBuilder<TSet> builder, uint context, List<(SymbolicRegexNode<TSet>, DerivativeEffect[])> alternativesAndEffects, 1428List<DerivativeEffect>? currentEffects = null)
System\Text\RegularExpressions\Symbolic\UInt64Solver.cs (1)
33public List<ulong> GenerateMinterms(HashSet<ulong> constraints) => MintermGenerator<ulong>.GenerateMinterms(this, constraints);
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
114public readonly List<(char Lower, char Upper)> ranges = new List<(char Lower, char Upper)>();
System.Text.RegularExpressions.Generator (66)
RegexGenerator.Emitter.cs (3)
611var excludedAsciiChars = new List<char>(); 670var lines = new List<string>(); 1238List<RegexFindOptimizations.FixedDistanceSet>? sets = regexTree.FindOptimizations.FixedDistanceSets;
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (11)
317private List<(char First, char Last)>? _rangelist; 352private RegexCharClass(bool negate, List<(char First, char Last)>? ranges, StringBuilder? categories, RegexCharClass? subtraction) 421private List<(char First, char Last)> EnsureRangeList() => 431List<(char First, char Last)> rangeList = EnsureRangeList(); 497List<(char First, char Last)>? rangeList = _rangelist; 1609List<(char First, char Last)>? ranges = ComputeRanges(charClass.AsSpan(start)); 1627public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set) 1633List<(char First, char Last)>? ranges = null; 1778List<(char First, char Last)>? rangelist = _rangelist; 1814List<(char First, char Last)>? rangelist = _rangelist; 1995var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (3)
201List<FixedDistanceSet>? fixedDistanceSets = RegexPrefixAnalyzer.FindFixedDistanceSets(root, thorough: !interpreter); 313public List<FixedDistanceSet>? FixedDistanceSets { get; } 339private static (string String, int Distance)? FindFixedDistanceString(List<FixedDistanceSet> fixedDistanceSets)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (38)
19/// <remarks>null if no children, a <see cref="RegexNode"/> if one child, or a <see cref="List{RegexNode}"/> if multiple children.</remarks> 141((List<RegexNode>)Children!).Reverse(); 698List<RegexNode>? branches = child.Children as List<RegexNode>; 1078List<RegexNode> children = (List<RegexNode>)Children!; 1090if (at.Children is List<RegexNode> atChildren) 1196Debug.Assert(alternation.Children is List<RegexNode> { Count: >= 2 }); 1197var children = (List<RegexNode>)alternation.Children; 1216Debug.Assert(children[startingIndex].Children is List<RegexNode> { Count: >= 2 }); 1264((List<RegexNode>)children[i].Children!).RemoveAt(0); 1296var children = (List<RegexNode>)node.Children!; 1338Debug.Assert(alternation.Children is List<RegexNode> { Count: >= 2 }); 1339var children = (List<RegexNode>)alternation.Children; 1665Debug.Assert(Children is List<RegexNode>); 1671List<RegexNode> children = (List<RegexNode>)Children!; 1684if (at.Children is List<RegexNode> atChildren) 1748Debug.Assert(Children is List<RegexNode>); 1750var children = (List<RegexNode>)Children!; 1956Debug.Assert(Children is List<RegexNode>); 1957var children = (List<RegexNode>)Children; 2495var peers = (List<RegexNode>)parent.Children!; 2553var peers = (List<RegexNode>)parent.Children!; 3043((List<RegexNode>)Children).Add(newChild); 3049Debug.Assert(Children is List<RegexNode>); 3055((List<RegexNode>)Children).Insert(index, newChild); 3073((List<RegexNode>)Children)[index] = newChild; 3077public RegexNode Child(int i) => Children is RegexNode child ? child : ((List<RegexNode>)Children!)[i]; 3086if (Children is List<RegexNode> children) 3159var stack = new List<int>();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (2)
45private List<string>? _capnamelist; 1864List<string>? oldcapnamelist;
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (9)
34List<StringBuilder> results = [new StringBuilder()]; 57static bool FindPrefixesCore(RegexNode node, List<StringBuilder> results, bool ignoreCase) 254List<StringBuilder>? allBranchResults = null; 255List<StringBuilder>? alternateBranchResults = [new StringBuilder()]; 511public static List<RegexFindOptimizations.FixedDistanceSet>? FindFixedDistanceSets(RegexNode root, bool thorough) 517var results = new List<RegexFindOptimizations.FixedDistanceSet>(); 586static bool TryFindRawFixedSets(RegexNode node, List<RegexFindOptimizations.FixedDistanceSet> results, ref int distance, bool thorough) 716var localResults = new List<RegexFindOptimizations.FixedDistanceSet>(); 788public static void SortFixedDistanceSetsByQuality(List<RegexFindOptimizations.FixedDistanceSet> results) =>
System.Threading.Channels (1)
System\Threading\Channels\UnboundedPriorityChannel.cs (1)
373List<T> list = [];
System.Threading.RateLimiting (7)
System\Threading\RateLimiting\ChainedRateLimiter.cs (1)
185List<Exception>? exceptions = null;
System\Threading\RateLimiting\CombinedRateLimitLease.cs (1)
73List<Exception>? exceptions = null;
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (5)
26private readonly List<KeyValuePair<TKey, Lazy<RateLimiter>>> _cachedLimiters = new(); 28private readonly List<RateLimiter> _limitersToDispose = new(); 124List<Exception>? exceptions = null; 162List<Exception>? exceptions = null; 225List<Exception>? aggregateExceptions = null;
System.Threading.Tasks.Dataflow (38)
Base\DataflowBlock.cs (2)
1948List<Exception>? exceptions = null; 2370private List<Task<bool>>? _tempSendAsyncTaskList;
Blocks\BatchBlock.cs (8)
276internal readonly List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> ReservedSourcesTemp; 527List<Exception>? exceptions = null; 759List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp; 877List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp; 984List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp; 1036List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp; 1086List<Exception>? exceptions = null; 1088List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
Blocks\BatchedJoinBlock.cs (2)
534private List<T> _messages = new List<T>(); 558List<T> toReturn = _messages;
Blocks\BroadcastBlock.cs (4)
387List<Exception>? exceptions = null; 530private List<Exception>? _exceptions; 957List<Exception>? exceptions; 1160internal void AddExceptions(List<Exception> exceptions)
Blocks\BufferBlock.cs (1)
390List<Exception>? exceptions = null;
Blocks\JoinBlock.cs (1)
790List<Exception>? exceptions = null;
Blocks\TransformManyBlock.cs (4)
322if (outputItems is TOutput[] || outputItems is List<TOutput>) 369IList<TOutput>? itemAsTrustedList = (IList<TOutput>?)(item as TOutput[]) ?? item as List<TOutput>; 385List<TOutput>? itemCopy = null; 439Debug.Assert(outputItems is TOutput[] || outputItems is List<TOutput>, "outputItems must be a list we've already vetted as trusted");
Blocks\TransformManyBlock.netstandard21.cs (1)
140List<TOutput>? itemCopy = null;
Blocks\WriteOnceBlock.cs (4)
156List<Exception>? exceptions = OfferToTargets(); 244List<Exception>? exceptions = null; 441private List<Exception>? OfferToTargets() 448List<Exception>? exceptions = null;
Internal\Common.cs (2)
311internal static void AddException([NotNull] ref List<Exception>? list, Exception exception, bool unwrapInnerExceptions = false) 499ref List<Exception>? exceptions)
Internal\QueuedMap.cs (1)
47private readonly List<KeyValuePair<int, T>> _storage;
Internal\SourceCore.cs (6)
91private List<Exception>? _exceptions; // Protected by ValueLock, sometimes read with volatile reads 337var tmpList = new List<TOutput>(); 417var itemsAsList = items as List<TOutput>; 466internal void AddExceptions(List<Exception> exceptions) 931List<Exception>? exceptions;
Internal\SpscTargetCore.cs (1)
56private volatile List<Exception>? _exceptions;
Internal\TargetCore.cs (1)
84private List<Exception>? _exceptions;
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.ForEachAsync.cs (1)
530private List<Exception>? _exceptions;
System.Windows.Controls.Ribbon (53)
Microsoft\Windows\Automation\Peers\RibbonApplicationMenuAutomationPeer.cs (2)
47protected override List<AutomationPeer> GetChildrenCore() 49List<AutomationPeer> children = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (3)
75protected override System.Collections.Generic.List<AutomationPeer> GetChildrenCore() 83List<AutomationPeer> children = new List<AutomationPeer>(); 181List<AutomationPeer> ribbonTabs = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonComboBoxAutomationPeer.cs (2)
53protected override System.Collections.Generic.List<AutomationPeer> GetChildrenCore() 55List<AutomationPeer> children = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (3)
79protected override List<AutomationPeer> GetChildrenCore() 82List<AutomationPeer> children = null; 165List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>();
Microsoft\Windows\Automation\Peers\RibbonGalleryCategoryAutomationPeer.cs (1)
38protected override List<AutomationPeer> GetChildrenCore()
Microsoft\Windows\Automation\Peers\RibbonGroupAutomationPeer.cs (2)
34protected override System.Collections.Generic.List<AutomationPeer> GetChildrenCore() 36List<AutomationPeer> children = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonMenuButtonAutomationPeer.cs (2)
43protected override List<AutomationPeer> GetChildrenCore() 45List<AutomationPeer> children = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonQuickAccessToolBarAutomationPeer.cs (2)
40protected override List<AutomationPeer> GetChildrenCore() 42List<AutomationPeer> children = base.GetChildrenCore();
Microsoft\Windows\Automation\Peers\RibbonTabAutomationPeer.cs (2)
34protected override System.Collections.Generic.List<AutomationPeer> GetChildrenCore() 36List<AutomationPeer> children = null;
Microsoft\Windows\Controls\KeyTipService.cs (12)
862List<DependencyObject> activeKeyTipElements = FindKeyTipMatches(text, out exactMatchElement); 875private List<DependencyObject> FindKeyTipMatches(string text, out DependencyObject exactMatchElement) 878List<DependencyObject> activeKeyTipElements = null; 989private void OnKeyTipPartialMatch(List<DependencyObject> activeKeyTipElements, string text) 1618private static void AddKeyTipFocusEventHandler(KeyTipFocusEventHandler handler, ref List<WeakReference> handlerList) 1641private static void RemoveKeyTipFocusEventHandler(KeyTipFocusEventHandler handler, List<WeakReference> handlerList) 1666private static void RaiseKeyTipFocusEvent(object sender, EventArgs e, List<WeakReference> handlerList) 1727private List<WeakReference> _keyTipEnterFocusHandlers = null; 1728private List<WeakReference> _keyTipExitRestoreFocusHandlers = null; 1730private List<AdornerLayer> _placementProcessingAdornerLayers = new List<AdornerLayer>(); 1740private List<DependencyObject> _currentActiveKeyTipElements = new List<DependencyObject>(); // List of elements whose keytips are active. 1742private List<KeyTipControl> _cachedKeyTipControls = null; // cache of keytip controls for re-use.
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (6)
164List<int> starChildIndices) 197List<int> starChildIndices = new List<int>(); 300List<int> columnStarChildren = null; 338private void AdjustDesiredWidthForStarColumn(UIElementCollection children, List<int> columnStarChildren, int starLayoutIndex, ref double desiredWidth) 404private static void AddItemToList<T>(T item, ref List<T> list) 464private List<StarLayoutInfo> _starLayoutCombinations = new List<StarLayoutInfo>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (5)
368List<StarLayoutInfo> starInfoList = new List<StarLayoutInfo>(2); 369List<IProvideStarLayoutInfo> starLayoutInfoProviders = new List<IProvideStarLayoutInfo>(2); 432private static void EqualizeStarValues(List<StarLayoutInfo> starInfoList, 472private static double EqualizeLeftOf(List<StarLayoutInfo> starInfoList, int index, bool isChecking) 497private static void DistributeRemainingSpace(List<StarLayoutInfo> starInfoList,
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
155List<IProvideStarLayoutInfoBase> InvalidateRegisteredLayoutProvidersList = new List<IProvideStarLayoutInfoBase>(); ;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (3)
109private List<UIElement> _generatedChildren; 111internal List<UIElement> GeneratedChildren 176List<UIElement> generatedItems = GeneratedChildren;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (6)
181Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders = new Dictionary<object, List<RibbonTabHeaderAndIndex>>(); 487List<double> elementSizes = new List<double>(); 540List<double> desiredPaddings = new List<double>(); 660Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders, 706Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders,
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
877private List<string> _charsEntered;
System.Windows.Forms (180)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
112List<AssemblyName> assemblyList = new(_names.Length);
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (4)
168List<object>? results = null; 286private void MaybeAdd(List<object> controls, Control control, bool selected, OLECONTF flags, bool allowContainingControls) 534List<AxHost> hostControls = []; 585List<object> oleControls = [];
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
22private readonly List<Attribute> _updateAttributes = []; 257List<Attribute> attributes = [..AttributeArray!];
System\Windows\Forms\ActiveX\AxHost.cs (2)
2572List<PropertyDescriptor> returnProperties = []; 2657List<PropertyDescriptor>? removeList = null;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
616List<char> mnemonicList = []; 710private static void GetMnemonicList(Control control, List<char> mnemonicList)
System\Windows\Forms\Application.ThreadContext.cs (3)
41private readonly List<ParkingWindow> _parkingWindows = []; 43private List<IMessageFilter>? _messageFilters; 44private List<IMessageFilter>? _messageFilterSnapshot;
System\Windows\Forms\Application.ThreadWindows.cs (1)
15private readonly List<HWND> _windows;
System\Windows\Forms\AutoCompleteStringCollection.cs (2)
15private readonly List<string> _data = []; 83List<string> nonNullItems = [];
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
59List<Attribute> attributes = [];
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (3)
160List<Attribute> attributes = []; 199List<Attribute>? newAttributes = null; 235List<Attribute> attributeList = [];
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (4)
104List<nint> handles = new((int)count); 220List<Com2PropertyDescriptor> propList = []; 706List<string> strings = []; 707List<object?> vars = [];
System\Windows\Forms\ComponentModel\COM2Interop\Com2TypeInfoProcessor.PropInfo.cs (1)
24public List<Attribute> Attributes { get; } = [];
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (2)
191List<object> disposeKeys = []; 242List<Attribute> attributes = [];
System\Windows\Forms\ComponentModel\COM2Interop\GetAttributesEvent.cs (2)
10private readonly List<Attribute> _attributeList; 12public GetAttributesEvent(List<Attribute> attributeList) => _attributeList = attributeList;
System\Windows\Forms\Control.ControlCollection.cs (2)
176List<Control> foundControls = []; 185private static void FindInternal(string key, bool searchAllChildren, ControlCollection controlsToLookIn, List<Control> foundControls)
System\Windows\Forms\Control.cs (3)
5472List<ControlTabOrderHolder> holders = []; 5502List<ControlTabOrderHolder> holders = new(Controls.Count); 12863List<Rectangle> neighboringControlsRectangles = new(4);
System\Windows\Forms\Controls\ComboBox\ComboBox.ACNativeWindow.cs (1)
107List<HWND> toRemove = [];
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
133List<Entry> entries = owner.Items.InnerList;
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (2)
18private List<Entry>? _innerList; 48internal List<Entry> InnerList
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.EntryEnumerator.cs (2)
18private readonly List<Entry> _entries; 24public EntryEnumerator(List<Entry> entries)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
297private readonly List<DataGridViewRow> _lstRows;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
929public List<DataGridViewColumn>? GetCollectionOfBoundDataGridViewColumns() 936List<DataGridViewColumn> cols = new(_props.Count);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
900List<DataGridViewColumn>? autoFillColumns = null; 1521private void AutoGenerateDataBoundColumns(List<DataGridViewColumn>? boundColumns)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
53private readonly List<Rectangle> _nonEmptyNeighbors;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
17private readonly List<DataGridViewCell> _items = [];
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (4)
18private readonly List<DataGridViewColumn> _items = []; 19private List<DataGridViewColumn>? _itemsSorted; 193List<DataGridViewColumn> initialColumns = new(dataGridViewColumns.Length); 194List<DataGridViewColumn> sortedColumns = new(dataGridViewColumns.Length);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (2)
18private List<object>? _items; 37internal List<object> InnerArray => _items ??= [];
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (2)
29private readonly List<DataGridViewElementStates> _rowStates; 110internal List<DataGridViewRow> SharedList => _items;
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (1)
16private readonly List<DataGridViewCell> _items = [];
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (1)
12private readonly List<DataGridViewColumn> _items = [];
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (1)
16private readonly List<DataGridViewRow> _items = [];
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
45private List<Original>? _originals = [];
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
20private readonly List<ImageInfo> _imageInfoCollection = [];
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
39private readonly List<Link> _links = new(2); 629List<CharacterRange> ranges = new(Links.Count + 1);
System\Windows\Forms\Controls\ListView\ListView.cs (5)
137private List<ListViewItem>? _listViewItems = []; 170private List<ListViewItem>? _savedSelectedItems; 171private List<ListViewItem>? _savedCheckedItems; 2229if (Properties.TryGetValue(s_propDelayedUpdateItems, out List<ListViewItem>? newItems)) 4011if (_updateCounter > 0 && Properties.TryGetValue(s_propDelayedUpdateItems, out List<ListViewItem>? itemList))
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
260List<ListViewGroup> list = [];
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (2)
269List<ListViewItem> foundItems = []; 279private static void FindInternal(string? key, bool searchAllSubItems, ListViewItemCollection listViewItems, List<ListViewItem> foundItems)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
195List<ListViewItem> visibleItems = [];
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (2)
17private List<ListViewGroup>? _list; 34private List<ListViewGroup> List => _list ??= [];
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
117List<ListViewGroup?> list = new();
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (2)
11private List<ListViewItem>? _items; 20private List<ListViewItem> Items => _items ??= [];
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
41private List<ListViewSubItem> _subItems = [];
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
24List<Rectangle> neighboringRectangles = [];
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (1)
161List<CalendarCellAccessibleObject> headers = [];
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (3)
123private readonly List<DateTime> _boldDates = []; 124private readonly List<DateTime> _annualBoldDates = []; 125private readonly List<DateTime> _monthlyBoldDates = [];
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
42private readonly List<TabInfo> _tabs = []; 2158List<Type> tabClasses = []; 3853List<ToolStripItem> buttonList = fullRebuild ? new() : new(_toolStrip.Items.OfType<ToolStripItem>());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (8)
30List<PropertyDescriptor[]>? commonProperties = GetCommonProperties(objects, presort: true, tab, parentEntry); 49List<PropertyDescriptor[]>? properties = GetCommonProperties(objects.AsSpan(1), presort: true, tab, parentEntry); 52List<PropertyDescriptor[]>? firstProperties = GetCommonProperties(objects.AsSpan(0, 1), presort: false, tab, parentEntry); 94private static List<PropertyDescriptor[]>? GetCommonProperties( 130List<PropertyDescriptor[]> mergedList = []; 265private static List<PropertyDescriptor[]> UnsortedMerge( 267List<PropertyDescriptor[]> sortedMergedEntries) 269List<PropertyDescriptor[]> mergedEntries = [];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
4154internal void RestoreHierarchyState(List<GridEntryCollection> expandedItems) 4167internal static List<GridEntryCollection> SaveHierarchyState(GridEntryCollection? entries, List<GridEntryCollection>? expandedItems = null)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (1)
10private readonly List<GridEntryCollection> _expandedState;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (4)
250Dictionary<string, List<GridEntry>> categories = []; 254if (!categories.TryGetValue(category, out var gridEntries)) 265List<GridEntry> categoryGridEntries = []; 268var gridEntries = entry.Value;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
67private readonly List<TabPage> _tabPages = [];
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
27private List<ToolTip>? _associatedToolTips; 166List<Rectangle> neighbors = [];
System\Windows\Forms\Controls\TextBox\TextBoxAutoCompleteSourceConverter.cs (1)
21List<object> list = [];
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
573List<string> list = [];
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
161internal List<ToolStripDropDown> ActiveDropDowns { get; } = new(1);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1948List<ToolStripDropDown> dropDowns = [..ActiveDropDowns];
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3556List<Rectangle> neighbors = new(3);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (2)
246List<ToolStripItem> foundItems = []; 255private static void FindInternal(string key, bool searchAllChildren, ToolStripItemCollection itemsToLookIn, List<ToolStripItem> foundItems)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
1043internal static List<ToolStrip> FindMergeableToolStrips(ContainerControl? container) 1045List<ToolStrip> result = [];
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
34private List<ToolStrip>? _inputFilterQueue;
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (10)
26List<SettingsStub> savedToolStripSettingsObjects = []; 28List<ToolStrip> toolStripControls = []; 50List<ToolStrip> toolStripControls = []; 90private void ApplySettings(List<SettingsStub> toolStripSettingsToApply) 104Dictionary<object, List<SettingsStub>> toolStripPanelDestinationHash = []; 123if (!toolStripPanelDestinationHash.TryGetValue(destinationPanel, out List<SettingsStub>? value)) 134List<ToolStripPanel> toolStripPanels = []; 154if (toolStripPanelDestinationHash.TryGetValue(toolStripPanelName, out List<SettingsStub>? stubSettings)) 214List<ToolStrip> toolStripControls = []; 232private void FindControls<T>(bool searchAllChildren, Control.ControlCollection controlsToLookIn, List<T> foundControls)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
1713internal List<TreeNode> GetSelfAndChildNodes() 1715List<TreeNode> nodes = [this];
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (1)
24List<Rectangle> neighboringRectangles = [];
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (3)
244List<TreeNode> foundNodes = FindInternal(key, searchAllChildren, this, []); 249private static List<TreeNode> FindInternal( 253List<TreeNode> foundTreeNodes)
System\Windows\Forms\Controls\UpDown\NumericUpDownAccelerationCollection.cs (1)
16private readonly List<NumericUpDownAcceleration> _items;
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (2)
51List<object> list = []; 156private void ListAXControls(List<object> list, bool fuseOcx)
System\Windows\Forms\DataBinding\BindingContext.cs (1)
320List<HashKey>? cleanupList = null;
System\Windows\Forms\DataBinding\BindingsCollection.cs (1)
15private readonly List<Binding> _list = [];
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (1)
17private static List<BindingManagerBase> IgnoreItemChangedTable { get; } = [];
System\Windows\Forms\Design\EventsTab.cs (1)
139List<PropertyDescriptor>? matchingPropertyEvents = null;
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (2)
227List<string> extensions = []; 468List<string> names = [];
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
409List<string> tempSelectedPaths = [];
System\Windows\Forms\Dialogs\CommonDialogs\SpecialFolderEnumConverter.cs (1)
24List<object> list = [];
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
22private readonly List<ControlItem> _items = []; 63internal List<ControlItem> ControlItems => _items;
System\Windows\Forms\Form.cs (9)
1613public Form[] OwnedForms => Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms) ? ([.. ownedForms]) : ([]); 2891if (!Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 3545if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 4847if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 4875if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 5008if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 6270List<ToolStrip> childrenToolStrips = ToolStripManager.FindMergeableToolStrips(ActiveMdiChildInternal); 6737if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms)) 6806if (Properties.TryGetValue(s_propOwnedForms, out List<Form>? ownedForms))
System\Windows\Forms\Form.EnumThreadWindowsCallback.cs (1)
14private List<HWND>? _ownedWindows;
System\Windows\Forms\Help\HelpProvider.cs (1)
22private readonly List<Control> _boundControls = [];
System\Windows\Forms\Input\CursorConverter.cs (1)
162List<object> list = [];
System\Windows\Forms\Input\KeysConverter.cs (8)
17private Dictionary<CultureInfo, List<string>>? _cultureToDisplayOrder; 37List<string> localizedOrder = new(34); 112private Dictionary<CultureInfo, List<string>> CultureToDisplayOrder 236List<Enum> termKeys = []; 239List<string> displayOrder = GetDisplayOrder(culture); 287List<string> displayOrder = GetDisplayOrder(culture); 331private List<string> GetDisplayOrder(CultureInfo? culture) 362var keys = CultureToKeyName[CultureInfo.InvariantCulture]!.Values.ToList();
System\Windows\Forms\Internal\ItemArray.cs (1)
27private readonly List<Entry> _entries;
System\Windows\Forms\Layout\ArrangedElementCollection.cs (2)
16internal ArrangedElementCollection(List<IArrangedElement> innerList) => InnerList = innerList; 20private protected List<IArrangedElement> InnerList { get; }
System\Windows\Forms\Layout\TableLayout.cs (2)
1394List<LayoutInfo> childrenInfo = new(children.Count); 1455List<LayoutInfo> layoutInfos = new(container.Children.Count);
System\Windows\Forms\Layout\TableLayout.ReservationGrid.cs (1)
14private readonly List<BitArray> _rows = [];
System\Windows\Forms\MDI\MDIClient.cs (1)
24private readonly List<Form> _children = [];
System\Windows\Forms\MDI\MdiWindowListItemConverter.cs (1)
23List<ToolStripItem> list = [];
System\Windows\Forms\OLE\Clipboard.cs (2)
221/// NRBF primitive types</see> are also handled, as well as <see cref="List{T}"/> or arrays of these type. Basic 331/// NRBF primitive types</see> are also handled, as well as <see cref="List{T}"/> or arrays of these type. Basic
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (2)
489internal List<ControlInformation> GetControlsInformation() 497List<ControlInformation> controlsInfo = new(Owner!.Children.Count);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (2)
81internal List<ControlInformation> GetControlsInformation() 88List<ControlInformation> listOfControlInfo = new(_controlsInfo.Count);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
15private readonly List<TableLayoutStyle> _innerList = [];
System\Windows\Forms\Screen.cs (1)
108List<Screen> screens = [];
System.Windows.Forms.Analyzers.CSharp.Tests (1)
Analyzers\WFO1001\ImplementITypedDataObjectTests.cs (1)
131private static async Task RaiseTheWarning(string input, List<DiagnosticResult> diagnostics)
System.Windows.Forms.Design (258)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
25private List<object>? _createdItems; 26private List<object>? _removedItems; 27private List<object>? _originalItems; 810List<ListItem> toBeDeleted = [.._listBox.SelectedItems.Cast<ListItem>()];
System\ComponentModel\Design\DesignerActionPanel.cs (14)
40private readonly List<Line> _lines; 41private readonly List<int> _lineYPositions; 42private readonly List<int> _lineHeights; 208private static void AddToCategories(StandardLineInfo lineInfo, Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories) 213if (!categories.TryGetValue(categoryName, out Dictionary<DesignerActionList, List<LineInfo>>? category)) 219if (!category.TryGetValue(lineInfo.List, out List<LineInfo>? categoryList)) 549private void ProcessLists(DesignerActionListCollection? lists, Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories) 605private List<StandardLineInfo> ProcessRelatedTaskItems(IComponent relatedComponent) 628List<StandardLineInfo> lineInfos = []; 817Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories = []; 821List<LineInfo> newLines = 827foreach (Dictionary<DesignerActionList, List<LineInfo>> category in categories.Values) 830foreach (List<LineInfo> categoryList in category.Values) 881List<Control> newControlList = newLine.GetControls();
System\ComponentModel\Design\DesignerActionPanel.Line.cs (2)
13protected readonly List<Control> AddedControls = []; 30internal List<Control> GetControls()
System\ComponentModel\Design\DesignerActionService.cs (1)
190List<DesignerVerb> verbsArray = [];
System\ComponentModel\Design\DesignerEventService.cs (1)
19private List<IDesignerHost>? _designerList; // read write list used as data for the collection
System\ComponentModel\Design\DesignerHost.cs (5)
58private List<string>? _savedSelection; // set of selected components names saved across reloads 713List<Exception> exceptions = []; 1119List<object> errorList = errorCollection is null ? [] : [..errorCollection.Cast<object>()]; 1136List<IComponent> selectedComponents = new(_savedSelection.Count); 1170List<string> list = new(ss.SelectionCount);
System\ComponentModel\Design\EventBindingService.cs (1)
176List<PropertyDescriptor> props = new(events.Count);
System\ComponentModel\Design\ExceptionCollection.cs (2)
11private readonly List<Exception>? _exceptions; 28internal ExceptionCollection(List<Exception>? exceptions)
System\ComponentModel\Design\ExtenderProviderService.cs (1)
13private List<IExtenderProvider>? _providers;
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
81List<Attribute> attributes = new(AttributeArray!) 99List<Attribute> attributes = new(AttributeArray!)
System\ComponentModel\Design\MenuCommandService.cs (10)
19private readonly Dictionary<Guid, List<MenuCommand>> _commandGroups; 23private List<DesignerVerb>? _globalVerbs; 89if (!_commandGroups.TryGetValue(commandId.Guid, out List<MenuCommand>? commandsList)) 159foreach (KeyValuePair<Guid, List<MenuCommand>> group in _commandGroups) 161List<MenuCommand> commands = group.Value; 195List<DesignerVerb> designerActionVerbs = []; // we instantiate this one here... 260List<DesignerVerb> verbsOrder = []; 327List<MenuCommand>? commands; 383List<MenuCommand>? commands; 489if (_commandGroups.TryGetValue(command.CommandID!.Guid, out List<MenuCommand>? commands))
System\ComponentModel\Design\ReferenceService.cs (6)
14private List<IComponent>? _addedComponents; // list of newly added components 15private List<IComponent>? _removedComponents; // list of newly removed components 16private List<ReferenceHolder>? _references; // our current list of references 30private static void CreateReferences(IComponent component, List<ReferenceHolder> references) 38private static void CreateReferences(string trailingName, object? reference, IComponent sitedComponent, List<ReferenceHolder> references) 287List<object> results = new(_references.Count);
System\ComponentModel\Design\SelectionService.cs (2)
35private List<IComponent>? _selection; // list of selected objects 36private List<string>? _contextAttributes; // help context information we have pushed to the help service.
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (1)
195List<object>? localErrorList = null;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomComponentSerializationState.cs (4)
25public readonly List<string>? Properties; 31public readonly List<string>? Events; 41List<string>? properties, 43List<string>? events,
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (10)
20private readonly Dictionary<string, List<CodeExpression>> _expressions = []; 30private static void PopulateCompleteStatements(object? data, string name, CodeStatementCollection completeStatements, Dictionary<string, List<CodeExpression>> expressions) 49if (!expressions.TryGetValue(name, out List<CodeExpression>? exps)) 68internal void Deserialize(IDesignerSerializationManager manager, Dictionary<string, CodeDomComponentSerializationState> objectState, List<string> objectNames, bool applyDefaults) 139private void DeserializeDefaultProperties(IDesignerSerializationManager manager, string name, List<string>? defProps) 347if (_expressions.Remove(name, out List<CodeExpression>? exps)) 363if (_expressions.TryGetValue(name, out List<CodeExpression>? exps)) 411private static void DeserializeEventResets(IDesignerSerializationManager? manager, string name, List<string>? eventNames) 575List<string>? defaultPropList = null; 576List<string>? defaultEventList = null;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (5)
44private readonly List<string> _objectNames; 47private readonly List<string> _shimObjectNames; 193internal List<object> Deserialize(IServiceProvider? provider, IContainer? container = null) 195List<object> collection = []; 200private void Deserialize(IServiceProvider? provider, IContainer? container, bool validateRecycledTypes, bool applyDefaults, List<object>? objects)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ObjectData.cs (1)
16private List<MemberData>? _members;
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (2)
214List<string>? failures = null; 469List<CodeTypeMember> newElements = [];
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
101List<MemberAttributes> list = new(values.Count);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (5)
63List<object>? result = null; 228private static MethodInfo? ChooseMethodByType(TypeDescriptionProvider provider, List<MethodInfo> methods, ICollection values) 329List<MethodInfo> addRangeMethods = []; 330List<MethodInfo> addMethods = []; 566List<CodeExpression> arrayList = new(valuesToSerialize.Count);
System\ComponentModel\Design\Serialization\ComponentCache.cs (5)
93List<string>? localNames = kvp.Value.LocalNames; 232private List<ResourceEntry>? _resources; 233private List<ResourceEntry>? _metadata; 247public List<object>? Dependencies { get; private set; } 249internal List<string>? LocalNames { get; private set; }
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
34private List<object>? _errorList;
System\ComponentModel\Design\Serialization\StatementContext.cs (1)
36private List<TableEntry>? _table;
System\ComponentModel\Design\UndoEngine.cs (3)
27private Dictionary<IComponent, List<ReferencingComponent>>? _refToRemovedComponent; 412if (_refToRemovedComponent is not null && _refToRemovedComponent.Remove(e.Component!, out List<ReferencingComponent>? propsToUpdate)) 444List<ReferencingComponent>? propsToUpdate = null;
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (6)
18private List<UndoEvent>? _events; // the list of events we've captured 19private List<ChangeUndoEvent>? _changeEvents; // the list of change events we're currently capturing. Only valid until Commit is called. 20private List<AddRemoveUndoEvent>? _removeEvents; // the list of remove events we're currently capturing. Only valid until a matching Removed is encountered. 21private List<IComponent>? _ignoreAddingList; // the list of objects that are currently being added. We ignore change events between adding and added. 22private List<IComponent>? _ignoreAddedList; // the list of objects that are added. We do not serialize before state for change events that happen in the same transaction 472List<IComponent> list = new(_lastSelection.Count);
System\Drawing\Design\BitmapEditor.cs (1)
13protected static List<string> BitmapExtensions = ["bmp", "gif", "jpg", "jpeg", "png", "ico"];
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
125List<Color> colorList = [];
System\Drawing\Design\IconEditor.cs (1)
18private static readonly List<string> s_iconExtensions = ["ico"];
System\Drawing\Design\ImageEditor.cs (1)
128List<string> list = [];
System\Drawing\Design\ToolboxItem.cs (3)
257List<IComponent> comps = []; 615List<ToolboxItemFilterAttribute> filterItems = []; 709List<string> propertyNames = new(Properties.Count);
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
318List<string> errors = []; 862List<string> errors,
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
79List<Component> parentControls = [];
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
18private static readonly List<AdornerWindow> s_adornerWindowList = [];
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
34private readonly List<Behavior> _behaviorStack; // the stack behavior objects can be pushed to and popped from
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
217List<IComponent> dragControls = [];
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
125List<IComponent> componentList = [RelatedComponent];
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (21)
33private readonly List<SnapLine> _verticalSnapLines = []; 34private readonly List<SnapLine> _horizontalSnapLines = []; 36private readonly List<SnapLine> _targetVerticalSnapLines = []; 37private readonly List<SnapLine> _targetHorizontalSnapLines = []; 41private readonly List<SnapLineType> _targetSnapLineTypes = []; 53private readonly List<Line> _tempVertLines = []; 54private readonly List<Line> _tempHorzLines = []; 91internal DragAssistanceManager(IServiceProvider serviceProvider, List<IComponent> dragComponents) 106internal DragAssistanceManager(IServiceProvider serviceProvider, List<IComponent> dragComponents, bool resizing) 123List<IComponent>? dragComponents, 142List<IComponent>? dragComponents, 194private void AddSnapLines(ControlDesigner controlDesigner, List<SnapLine> horizontalList, List<SnapLine> verticalList, bool isTarget, bool validTarget) 270private int BuildDistanceArray(List<SnapLine> snapLines, List<SnapLine> targetSnapLines, int[] distances, Rectangle dragBounds) 332private Line[] EraseOldSnapLines(Line[] lines, List<Line>? tempLines) 443private void IdentifyAndStoreValidLines(List<SnapLine> snapLines, int[] distances, Rectangle dragBounds, int smallestDistance) 472private bool AddChildCompSnaplines(IComponent comp, List<IComponent>? dragComponents, Rectangle clipBounds, Control? targetControl) 522private void Initialize(List<IComponent>? dragComponents, IDesignerHost host) 749private static int FindSmallestValidDistance(List<SnapLine> snapLines, int[] distances, int min, int max, int direction) 901private static void CombineSnaplines(Line snapLine, List<Line> currentLines)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.BehaviorDataObject.cs (3)
18public BehaviorDataObject(List<IComponent> dragComponents, Control source, DropSourceBehavior sourceBehavior) : base() 28public List<IComponent> DragComponents { get; } 36internal List<IComponent> GetSortedDragControls(out int primaryControlIndex) => _sourceBehavior.GetSortedDragControls(out primaryControlIndex);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (7)
32private List<IComponent> _dragObjects; // used to initialize the DragAssistanceManager 78internal DropSourceBehavior(List<IComponent> dragComponents, Control source, Point initialMouseLocation) 336List<IComponent> originalControls = null; 405List<IComponent> temp = []; 532List<Control> listOfTrayControls = []; 1045internal List<IComponent> GetSortedDragControls(out int primaryControlIndex) 1048List<IComponent> dragControls = [];
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
160List<SnapLine> lines = new(2); 206List<IComponent> components = []; 324List<Control> components = [];
System\Windows\Forms\Design\Behavior\SelectionManager.cs (4)
114private void AddAllControlGlyphs(Control parent, List<IComponent> selComps, object? primarySelection) 257List<IComponent> dragComps = [..e.DragComponents.Cast<IComponent>()]; 258List<Glyph> glyphsToRemove = []; 412List<IComponent> selComps = [.._selectionService.GetSelectedComponents().Cast<IComponent>()];
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
26private List<TableLayoutStyle> _styles;
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
273List<ControlBodyGlyph> glyphsToRemove = [];
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (3)
128private void ReParentControls(List<IComponent> controls, bool copy) 139List<IComponent>? temp = copy ? [] : null; 222List<IComponent>? components = null;
System\Windows\Forms\Design\CommandSet.cs (22)
458List<IComponent> list = new(components.Length); 502List<IComponent> copySelection = []; 515private static void GetAssociatedComponents(IComponent component, IDesignerHost host, List<IComponent> list) 807List<IComponent> selComps = [..SelectionService.GetSelectedComponents().Cast<IComponent>()]; 1471List<ParentControlDesigner> designerList = []; 1536List<IComponent> al = []; 1601List<ParentControlDesigner> designerList = []; 1701static List<ITreeDesigner> GetDesignerChain(ITreeDesigner designer) 1703List<ITreeDesigner> designerChain = []; 1713List<ITreeDesigner> designerChain = GetDesignerChain(designer); 1714List<ITreeDesigner> parentDesignerChain = GetDesignerChain(commonParentDesigner); 1718List<ITreeDesigner> shorterList = designerChain.Count < parentDesignerChain.Count ? designerChain : parentDesignerChain; 1719List<ITreeDesigner> longerList = (shorterList == designerChain ? parentDesignerChain : designerChain); 1747List<IComponent> al = []; 1832List<ParentControlDesigner> designerList = []; 1903List<IComponent> selectComps = []; 1904List<Control> controls = []; 2019List<IComponent> associatedComps = []; 2105List<Control> compsWithControlDesigners = []; 2141List<Control> listOfTrayControls = []; 3158List<string?> names = new(objects.Count); 3233private void UpdatePastePositions(List<Control> controls)
System\Windows\Forms\Design\ComponentTray.cs (3)
32private List<Control> _controls; // List of items in the tray in the order of their layout. 1370List<IComponent> list = []; 1719internal void UpdatePastePositions(List<Control> components)
System\Windows\Forms\Design\ContextMenuStripGroup.cs (2)
8private List<ToolStripItem>? _items; 10public List<ToolStripItem> Items => _items ??= [];
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
30List<Control>? suspendedComponents = null;
System\Windows\Forms\Design\ControlCommandSet.cs (7)
459private List<SnapLine> GenerateSnapLines(SelectionRules rules, Control primaryControl, int directionOffsetX, int directionOffsetY) 461List<SnapLine> lines = new(2); 623List<IComponent> selComps = (List<IComponent>)selSvc.GetSelectedComponents(); 628List<SnapLine> targetSnaplines = GenerateSnapLines(des.SelectionRules, primaryControl, moveOffsetX, moveOffsetY); 970List<Control> layoutParentList = []; 971List<Control> parentList = [];
System\Windows\Forms\Design\ControlDesigner.cs (3)
114List<IComponent>? sitedChildren = null; 347List<SnapLine> snapLines = new(8); 1424List<IComponent> dragControls = [];
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionCodeDomSerializer.cs (1)
24List<IComponent> subset = [];
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
618List<DataGridViewColumn>? columnsToBeAdded = null;
System\Windows\Forms\Design\DesignerFrame.cs (2)
318List<ThemedScrollbarWindow> windows = new(Controls.Count); 342private readonly List<Control> _overlayList;
System\Windows\Forms\Design\DesignerUtils.cs (6)
708List<Type> final = new(types.Count); 731public static List<IComponent>? CopyDragObjects(IReadOnlyList<IComponent> objects, IServiceProvider svcProvider) 765List<IComponent> newObjects = new(objects.Count); 790private static List<IComponent> GetCopySelection(IReadOnlyList<IComponent> objects, IDesignerHost host) 792List<IComponent> copySelection = []; 802internal static void GetAssociatedComponents(IComponent component, IDesignerHost? host, List<IComponent> list)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
34private List<Control> _suspendedComponents;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (4)
28private List<Control> _dragControls; 36private readonly List<(int Min, int Max, int Size, int LastIndex)> _commonSizes = []; 610List<Control> originalControls = []; 629List<IComponent> tempList = DesignerUtils.CopyDragObjects(_dragControls, Component.Site);
System\Windows\Forms\Design\GroupedContextMenuStrip.cs (1)
52List<ToolStripItem> items = _groups[groupName].Items;
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
19private readonly List<object> _items = [];
System\Windows\Forms\Design\MaskDescriptorTemplate.cs (2)
51public static List<MaskDescriptor> GetLocalizedMaskDescriptors(CultureInfo culture) 315public List<MaskDescriptor> List { get; } = [];
System\Windows\Forms\Design\MaskDesignerDialog.cs (2)
33private readonly List<MaskDescriptor> _maskDescriptors = []; 326List<MaskDescriptor> maskDescriptors = MaskDescriptorTemplate.GetLocalizedMaskDescriptors(culture);
System\Windows\Forms\Design\NavigationalTableLayoutPanel.cs (3)
10private List<RadioButton> RadioButtons 14List<RadioButton> radioButtons = []; 35List<RadioButton> radioButtons = RadioButtons;
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (2)
80List<IComponent> components = []; 120List<Control>? trayComponents = null;
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (3)
102List<IComponent> copySelection = []; 117private static void GetAssociatedComponents(IComponent component, IDesignerHost host, List<IComponent> list) 249List<object> topComponents = new(_components.Length);
System\Windows\Forms\Design\OleDragDropHandler.cs (5)
260List<IComponent> selectComps = [..comps]; 298private static void DisableDragDropChildren(ICollection controls, List<Control> allowDropCache) 511List<Control> allowDropChanged = []; 738List<IComponent> selectComps = []; 1046List<object> topLevel = [];
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
861internal List<Control> GetComponentsInRect(Rectangle value, bool screenCoords, bool containRect) 863List<Control> list = []; 1259List<Control> selectedControls = parentDesigner.GetComponentsInRect(bounds, true, true /* component should be fully contained*/); 1880List<Control> selection = GetComponentsInRect(offset, true, false /*component does not need to be fully contained*/); 2126private void ReParentControls(Control newParent, List<Control> controls, string transactionName, IDesignerHost host)
System\Windows\Forms\Design\PbrsForward.cs (1)
16private List<BufferedKey>? _bufferedChars;
System\Windows\Forms\Design\SelectionUIService.cs (2)
995List<object> list = []; 1175List<object> list = [];
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
145List<Control> components = []; 378List<ControlBodyGlyph> glyphsToRemove = [];
System\Windows\Forms\Design\StyleEditorForm.cs (2)
22private readonly List<Control> _deleteList; 1064List<IComponent> componentList = [];
System\Windows\Forms\Design\TabControlDesigner.cs (1)
501List<IComponent> dragControls = data.GetSortedDragControls(out _);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (6)
28private List<IComponent> _dragComponents; // the components we are dragging 563List<IComponent> temp = [control]; 1783internal void FixUpControlsOnDelete(bool isRow, int index, List<Control> deleteList) 1882List<Control> deleteList = []; 1898List<IComponent> al = []; 2223List<IComponent> subset = [];
System\Windows\Forms\Design\TabOrder.cs (3)
22private List<Control>? _tabControls; 189private void DrawTabs(List<Control> tabs, Graphics graphics, bool fRegion) 303private Control? GetControlAtPoint(List<Control> tabs, int x, int y)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1854List<ToolStripItem> dragComponents = data.DragComponents;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
260List<Type> creatableTypes = new(itemTypes.Count);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
582List<ToolStripItem> dragItems = []; 653List<ToolStripItem> dragComponents = data.DragComponents;
System\Windows\Forms\Design\ToolStripItemDataObject.cs (2)
11internal ToolStripItemDataObject(List<ToolStripItem> dragComponents, ToolStripItem primarySelection, ToolStrip owner) : base() 18internal List<ToolStripItem> DragComponents { get; }
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
244internal List<Component> AddParentTree() 246List<Component> parentControls = [];
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
36private List<MenuCommand> _oldCommands; 38private List<MenuCommand> _newCommands;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2649List<ToolStripItem> dragComponents = data.DragComponents;
System.Windows.Forms.Design.Tests (291)
System\ComponentModel\Design\ArrayEditorTests.cs (1)
109yield return new object[] { typeof(List<ClassWithStringDefaultProperty>), new ClassWithStringDefaultProperty { DefaultProperty = "CustomName" }, "ClassWithStringDefaultProperty" };
System\ComponentModel\Design\CollectionEditorTests.cs (17)
100SubCollectionEditor editor = new(typeof(List<int>)); 154SubCollectionEditor editor = new(typeof(List<int>)); 212SubCollectionEditor editor = new(typeof(List<int>)); 263SubCollectionEditor editor = new(typeof(List<int>)); 316SubCollectionEditor editor = new(typeof(List<int>)); 403SubCollectionEditor editor = new(typeof(List<int>)); 456SubCollectionEditor editor = new(typeof(List<int>)); 517SubCollectionEditor editor = new(typeof(List<int>)); 558SubCollectionEditor editor = new(typeof(List<int>)); 604SubCollectionEditor editor = new(typeof(List<int>)); 651SubCollectionEditor editor = new(typeof(List<int>)); 694SubCollectionEditor editor = new(typeof(List<int>)); 741yield return new object[] { typeof(List<ClassWithStringDefaultProperty>), new ClassWithStringDefaultProperty { DefaultProperty = "CustomName" }, "ClassWithStringDefaultProperty" }; 808SubCollectionEditor editor = new(typeof(List<int>)); 879SubCollectionEditor editor = new(typeof(List<int>)); 915SubCollectionEditor editor = new(typeof(List<int>)); 953SubCollectionEditor editor = new(typeof(List<int>));
System\ComponentModel\Design\CollectionFormTests.cs (18)
14public CollectionFormTests() : base(typeof(List<int>)) 21CollectionEditor editor = new(typeof(List<int>)); 25Assert.Equal(typeof(List<int>), form.CollectionType); 87SubCollectionEditor editor = new(typeof(List<int>)); 138SubCollectionEditor editor = new(typeof(List<int>)); 194SubCollectionEditor editor = new(typeof(List<int>)); 253CustomSetItemsCollectionEditor editor = new(typeof(List<int>)); 312SubCollectionEditor editor = new(typeof(List<int>)); 373SubCollectionEditor editor = new(typeof(List<int>)); 428SubCollectionEditor editor = new(typeof(List<int>)); 524SubCollectionEditor editor = new(typeof(List<int>)); 583SubCollectionEditor editor = new(typeof(List<int>)); 635SubCollectionEditor editor = new(typeof(List<int>)); 689SubCollectionEditor editor = new(typeof(List<int>)); 748SubCollectionEditor editor = new(typeof(List<int>)); 787SubCollectionEditor editor = new(typeof(List<int>)); 807SubCollectionEditor editor = new(typeof(List<int>)); 821SubCollectionEditor editor = new(typeof(List<int>));
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (208)
172List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 179Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 260List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 267Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 362List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 369Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 407List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 414Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 453List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 460Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 499List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 506Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 548List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 555Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 597List<string> names = Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))); 604Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 653Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>)))); 656Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 671Assert.NotEmpty(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>)))); 674Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 724string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 728Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 735nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 739Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 761string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 765Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 774nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 778Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 809string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 813Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 823nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 827Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 868string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 872Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 881nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 885Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 932string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 936Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 943nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 947Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 969string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 973Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 982nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 986Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1017string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1021Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1031nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1035Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1076string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1080Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1089nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1093Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1142string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1146Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1153nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1157Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1164nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1168Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1192string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1196Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1205nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1209Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1218nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1222Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1255string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1259Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1269nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1273Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1283nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1287Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1330string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1334Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1343nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1347Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1356nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1360Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1421string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1425Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1432nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1436Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1443nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1447Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1471string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1475Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1484nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1488Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1497nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1501Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1534string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1538Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1548nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1552Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1562nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1566Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1609string nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1613Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1622nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1626Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>)))); 1635nameResult = Assert.IsType<string>(Assert.Single(Assert.IsType<List<string>>(info.GetValue("Names", typeof(List<string>))))); 1639Assert.Empty(Assert.IsType<List<string>>(info.GetValue("Shim", typeof(List<string>))));
System\Drawing\Design\BitmapEditorTests.cs (2)
24List<string> extensions = SubBitmapEditor.BitmapExtensions; 105public static new List<string> BitmapExtensions = BitmapEditor.BitmapExtensions;
System\Drawing\Design\ToolboxItemTests.cs (1)
1720public List<AssemblyName> ReferenceAssemblies { get; } = [];
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (3)
111var items = _actionList.GetSortedActionItems().Cast<DesignerActionPropertyItem>().ToList(); 126var items = _actionList.GetSortedActionItems().Cast<DesignerActionPropertyItem>().ToList(); 145var items = _actionList.GetSortedActionItems().Cast<DesignerActionPropertyItem>().ToList();
System\Windows\Forms\Design\DataGridViewColumnTypePickerTests.cs (2)
47List<Type> types = [typeof(DataGridViewTextBoxColumn), typeof(DataGridViewButtonColumn)]; 72List<Type> types = [typeof(DataGridViewTextBoxColumn), typeof(DataGridViewButtonColumn)];
System\Windows\Forms\Design\DesignerFrameTests.cs (1)
64List<Control> controls = designerFrame.Controls.Cast<Control>().ToList();
System\Windows\Forms\Design\DesignerUtilsTests.cs (2)
467typeof(List<>), 476result.Should().BeOfType<List<Type>>();
System\Windows\Forms\Design\EditorServiceContextTests.cs (6)
46List<string> oldValue = new() { "Old" }; 47List<string> newValue = new() { "New" }; 51_mockPropertyDescriptor.Setup(p => p.PropertyType).Returns(typeof(List<string>)); 74List<string> list = new() { "Same" }; 78_mockPropertyDescriptor.Setup(p => p.PropertyType).Returns(typeof(List<string>)); 187public List<string> Items { get; set; } = new();
System\Windows\Forms\Design\ListViewActionListTests.cs (2)
69var relevantItems = enumerableItems.Where(i => 77var itemNames = relevantItems.Select(i => i.DisplayName).ToList();
System\Windows\Forms\Design\MaskDescriptorTemplateTests.cs (1)
59var descriptors = MaskDescriptorTemplate.GetLocalizedMaskDescriptors(culture);
System\Windows\Forms\Design\MaskDesignerDialogTests.cs (5)
48List<MaskDescriptor> descriptors = new(); 60List<MaskDescriptor> initialDescriptors = _dialog.TestAccessor().Dynamic._maskDescriptors; 64List<MaskDescriptor> maskDescriptors = _dialog.TestAccessor().Dynamic._maskDescriptors; 76List<Type> types = new(){ descriptorType }; 81List<MaskDescriptor> maskDescriptors = _dialog.TestAccessor().Dynamic._maskDescriptors;
System\Windows\Forms\Design\ParentControlDesignerTests.cs (4)
37snapLines.Should().BeOfType<List<SnapLine>>(); 38((List<SnapLine>)snapLines).Should().NotBeEmpty(); 39((List<SnapLine>)snapLines).Should().OnlyHaveUniqueItems(); 41((List<SnapLine>)snapLines).Should()
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (3)
65List<DesignerVerb> verbs = _designer.Verbs.Cast<DesignerVerb>().ToList(); 85List<DesignerVerb> verbs = _designer.Verbs.Cast<DesignerVerb>().ToList(); 268List<Control> controls = new();
System\Windows\Forms\Design\TabOrderTests.cs (1)
124List<Control> tabControls = new() { ControlMock.Object };
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (2)
51List<SnapLine> snapLines = (List<SnapLine>)_designer.SnapLines;
System\Windows\Forms\Design\ToolStripActionListTests.cs (5)
161private (List<DesignerActionMethodItem> methodItems, List<DesignerActionPropertyItem> propertyItems) GetSortedActionItems() 164List<DesignerActionItem> itemList = items.Cast<DesignerActionItem>().ToList(); 165List<DesignerActionMethodItem> methodItems = itemList.OfType<DesignerActionMethodItem>().ToList(); 166List<DesignerActionPropertyItem> propertyItems = itemList.OfType<DesignerActionPropertyItem>().ToList();
System\Windows\Forms\Design\ToolStripContainerActionListTests.cs (3)
155List<string> displayNames = items.Cast<DesignerActionItem>() 176List<string> displayNames = items.Cast<DesignerActionItem>() 201List<string> displayNames = items.Cast<DesignerActionItem>()
System\Windows\Forms\Design\ToolStripContentPanelDesignerTests.cs (1)
39List<SnapLine> snapLines = _toolStripContentPanelDesigner.SnapLines.Cast<SnapLine>().ToList();
System\Windows\Forms\Design\UpDownBaseDesignerTests.cs (2)
52List<SnapLine> snapLines = (List<SnapLine>)_designer.SnapLines;
SystemDesignMetadataReader.cs (1)
28List<string> typeNames = [];
System.Windows.Forms.IntegrationTests.Common (1)
TestDataSources.cs (1)
8public static List<Person> GetPersons() =>
System.Windows.Forms.Interop.Tests (2)
AccessibleObjectTests.cs (2)
720List<string> memberNames = []; 721List<string> getterNames = [];
System.Windows.Forms.Primitives (6)
System\Collections\Generic\WeakRefCollection.cs (1)
11private readonly List<WeakReference<T>> _list = [];
System\Windows\Forms\Automation\UiaTextProvider.cs (1)
81public static SafeArrayScope<double> RectListToDoubleArray(List<Rectangle> rectArray)
System\Windows\Forms\Automation\UiaTextRange.cs (3)
348List<Rectangle> rectangles = []; 719private List<Rectangle> GetMultilineBoundingRectangles(Rectangle clippingRectangle) 749List<Rectangle> rects = [];
System\Windows\Forms\NonNullCollection.cs (1)
16private readonly List<T> _list = [];
System.Windows.Forms.Primitives.Tests (4)
System\Windows\Forms\SinglyLinkedListTests.cs (4)
175public static List<T> WalkToList<T>(this SinglyLinkedList<T> linkedList) 177List<T> list = new(linkedList.Count); 188public static List<T> EnumerateToList<T>(this SinglyLinkedList<T> linkedList) 190List<T> list = new(linkedList.Count);
System.Windows.Forms.Primitives.TestUtilities (9)
DeviceContextState.cs (2)
20private readonly List<State> _savedStates = []; 90public List<EmfRecord> GdiObjects { get; } = [];
SystemCOLORs.cs (7)
8private static readonly Dictionary<COLORREF, List<SYS_COLOR_INDEX>> s_systemColors = CreateColorDictionary(); 44public static bool TryGetSystemColor(COLORREF colorRef, out List<SYS_COLOR_INDEX> colors) 49if (TryGetSystemColor(colorRef, out List<SYS_COLOR_INDEX> colors)) 60private static Dictionary<COLORREF, List<SYS_COLOR_INDEX>> CreateColorDictionary() 62Dictionary<COLORREF, List<SYS_COLOR_INDEX>> dictionary = []; 74if (dictionary.TryGetValue(colorRef, out List<SYS_COLOR_INDEX> colors)) 80List<SYS_COLOR_INDEX> colorList =
System.Windows.Forms.PrivateSourceGenerators.Tests (3)
EnumValidationTests.cs (3)
293List<MetadataReference> references = []; 313List<string> lines = [.. output.Split("\r\n")]; 335static void AssertFirstLineAndRemove(List<string> lines, string expected)
System.Windows.Forms.Tests (151)
BindingNavigatorTests.cs (4)
26List<string> data = ["Foo", "Bar"]; 70List<ToolStripItem> items = 80List<string> itemNames = 90List<string> itemTexts =
CheckedListBoxTests.cs (2)
634List<string> dataSource1 = ["item1", "item2", "item3"]; 635List<string> dataSource2 = ["item4", "item5", "item6"];
SerializableTypesTests.cs (1)
326List<ControlInformation> controls = result.GetControlsInformation();
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
33List<Person> persons = TestDataSources.GetPersons();
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (1)
1312List<AccessibleObject> expectedValues = [];
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (1)
808List<int> eventGroupIndices = [];
System\Windows\Forms\AxSystemMonitorTests.cs (2)
41List<string> testingControlProps = []; 52List<string> testingControlEvents = [];
System\Windows\Forms\AxWebBrowserTests.cs (2)
41var testingControlProps = properties 47var testingControlEvents = events
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
255List<string> binaryFormattedProperties = [];
System\Windows\Forms\BindingContextTests.cs (9)
420List<int> dataSource = [1, 2, 3]; 448List<int> dataSource = [1, 2, 3]; 575List<int> list = [1, 2, 3]; 594List<int> list = [1, 2, 3]; 631List<int> list = [1, 2, 3]; 653List<int> list = [1, 2, 3]; 817List<int> dataSource = [1, 2, 3]; 854List<int> list = [1, 2, 3]; 906List<int> dataSource = [1, 2, 3];
System\Windows\Forms\BindingSourceTests.cs (8)
123List<int> emptyList = []; 187List<int> nonEmptyList = [1, 2, 3]; 209List<int> list = [1, 2, 3]; 273List<int> emptyList = []; 275List<int> nonEmptyList = [1, 2, 3]; 277yield return new object[] { emptyEnumerable, dataMember, true, false, true, false, false, false, new List<int>[] { emptyList }, typeof(BindingList<EnumerableWrapper<int>>) }; 764private readonly List<T> _innerList = []; 962public SimpleBindingList(List<T> list) : base(list) { }
System\Windows\Forms\ButtonRenderingTests.cs (2)
20List<ENHANCED_METAFILE_RECORD_TYPE> types = []; 21List<string> details = [];
System\Windows\Forms\CheckedListBox.CheckedItemCollectionTests.cs (1)
113List<object> result = [];
System\Windows\Forms\ClipboardTests.cs (4)
824List<Point> generic1 = []; 832Clipboard.TryGetData(format, out List<Point>? points).Should().BeTrue(); 836List<int> generic2 = []; 842Clipboard.TryGetData(format, out List<int>? intList).Should().BeTrue();
System\Windows\Forms\ComboBoxTests.cs (3)
674List<int> dataSource1 = []; 687List<int> dataSource2 = []; 2763public List<MeasureItemEventArgs> MeasureItemEventArgs { get; } = [];
System\Windows\Forms\DataGridViewComboBoxColumnTests.cs (1)
327var actions = new List<Action>
System\Windows\Forms\DataGridViewImageColumnTests.cs (2)
79List<DataGridViewImageCell> cells = []; 216List<DataGridViewImageCell> cells = [];
System\Windows\Forms\ErrorProviderTests.cs (1)
1382public List<int> ListValue { get; set; }
System\Windows\Forms\ListBindingHelperTests.cs (6)
128yield return new object[] { typeof(List<int>), typeof(int) }; 484yield return new object[] { typeof(List<int>), null, "Int32" }; 486yield return new object[] { typeof(List<object>), null, "List`1" }; 677public List<DataClass> ListProperty { get; set; } 682public List<ListDataClass> ParentListProperty { get; set; } 687public List<EnumerableITypedListImplementor> ListProperty { get; set; }
System\Windows\Forms\ListBoxTests.cs (5)
838List<int> dataSource1 = []; 851List<int> dataSource2 = []; 2445List<string> dataSource = ["item1", "item2", "item3"]; 2927List<string> dataSource = ["item1", "item2", "item3"]; 5821List<string> dataSource = ["item1", "item2", "item3"];
System\Windows\Forms\ListControlTests.cs (33)
194List<DataClass> dataSource = []; 220List<DataClass> dataSource = []; 248List<DataClass> dataSource = []; 276List<DataClass> dataSource = []; 345List<DataClass> dataSource = [new DataClass(), new DataClass()]; 360List<DataClass> dataSource = [new DataClass(), new DataClass()]; 376List<DataClass> dataSource = [new DataClass(), new DataClass()]; 421List<DataClass> dataSource = [new DataClass(), new DataClass()]; 452List<DataClass> dataSource = [new DataClass(), new DataClass()]; 494List<DataClass> dataSource = [new DataClass(), new DataClass()]; 521List<DataClass> dataSource = [new DataClass(), new DataClass()]; 633List<int> originalValue = []; 715List<int> value = []; 837List<int> value = []; 932List<DataClass> value = []; 1010List<int> dataSource1 = []; 1023List<int> dataSource2 = []; 1056List<int> value = []; 1118List<int> dataSource = []; 1167List<int> dataSource = []; 1196List<DataClass> dataSource = []; 1223List<DataClass> dataSource = []; 1764List<DataClass> dataSource = []; 1791List<DataClass> dataSource = []; 1811List<DataClass> dataSource = []; 1839List<DataClass> dataSource = []; 1919List<DataClass> dataSource = [new DataClass { Value = "StringValue" }]; 1977List<DataClass> dataSource = []; 2022List<DataClass> dataSource = [new DataClass { Value = "StringValue" }]; 2061List<DataClass> dataSource = []; 2080List<DataClass> dataSource = []; 2149List<DataClass> list = [dataClass]; 2272List<DataClass> list = [dataClass];
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
781List<ListViewItem> listViewItems = [];
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (7)
152List<int> value = [1]; 166List<int> value = [1]; 183List<int> value = [1]; 199List<int> value = [1]; 204dataObject.TryGetData(format, out List<int>? list).Should().BeTrue(); 214List<int> value = [1]; 219Action tryGetData = () => dataObject.TryGetData(format, out List<int>? _);
System\Windows\Forms\NativeWindowTests.cs (1)
544public List<Message> Messages { get; } = [];
System\Windows\Forms\PropertyManagerTests.cs (1)
411public List<DataSource> ListProperty { get; set; }
System\Windows\Forms\SendKeysTests.cs (1)
31public List<KeyEventArgs> KeyEvents { get; } = [];
System\Windows\Forms\TabControl.ControlCollectionTests.cs (10)
56List<LayoutEventArgs> events = []; 179List<LayoutEventArgs> events = []; 339List<LayoutEventArgs> events = []; 480List<LayoutEventArgs> events = []; 737List<TabPage> items = []; 909List<LayoutEventArgs> events = []; 1007List<LayoutEventArgs> events = []; 1132List<LayoutEventArgs> events = []; 1244List<LayoutEventArgs> events = []; 1432List<TabPage> items = [];
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (18)
41List<LayoutEventArgs> events = []; 167List<LayoutEventArgs> events = []; 330List<LayoutEventArgs> events = []; 474List<LayoutEventArgs> events = []; 740List<TabPage> items = []; 989List<LayoutEventArgs> events = []; 1983List<LayoutEventArgs> events = []; 2104List<LayoutEventArgs> events = []; 2273List<LayoutEventArgs> events = []; 2423List<LayoutEventArgs> events = []; 2690List<TabPage> items = []; 3029List<LayoutEventArgs> events = []; 3995List<LayoutEventArgs> events = []; 4096List<LayoutEventArgs> events = []; 4226List<LayoutEventArgs> events = []; 4343List<LayoutEventArgs> events = []; 4538List<TabPage> items = []; 4715List<LayoutEventArgs> events = [];
System\Windows\Forms\TabPageTests.cs (5)
5064List<ToolTip> associatedToolTips = tabPageDynamic._associatedToolTips; 5096List<ToolTip> associatedToolTips = tabPageDynamic._associatedToolTips; 5145List<ToolTip> associatedToolTips = tabPageDynamic._associatedToolTips; 5172List<ToolTip> associatedToolTips = tabPageDynamic._associatedToolTips; 5201List<ToolTip> associatedToolTips = tabPageDynamic._associatedToolTips;
System\Windows\Forms\TextBoxAutoCompleteSourceConverterTests.cs (1)
23List<object> value = valuesCollection.TestAccessor().Dynamic._values;
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (13)
121List<TreeNode> treeNodesList = GetHierarchyNodes(); 137List<TreeNode> treeNodesList = GetHierarchyNodes(); 154List<TreeNode> treeNodesList = GetHierarchyNodes(); 170List<TreeNode> treeNodesList = GetHierarchyNodes(); 189List<TreeNode> treeNodesList = GetHierarchyNodes(); 208List<TreeNode> treeNodesList = GetHierarchyNodes(); 227List<TreeNode> treeNodesList = GetHierarchyNodes(); 248List<TreeNode> treeNodesList = GetHierarchyNodes(); 267List<TreeNode> treeNodesList = GetHierarchyNodes(); 288List<TreeNode> treeNodesList = GetHierarchyNodes(); 306List<TreeNode> treeNodesList = GetHierarchyNodes(); 420private List<TreeNode> GetHierarchyNodes() 422List<TreeNode> treeNodesList = [];
System\Windows\Forms\TreeNodeTests.cs (1)
4618List<TreeNode> nodes = rootNode.GetSelfAndChildNodes();
TestAccessorTests.cs (2)
56List<string> list = access._list; 210private List<string> _list = ["42"];
System.Windows.Forms.UI.IntegrationTests (3)
Infra\ScreenRecordService.cs (3)
25private static readonly List<(TimeSpan elapsed, Bitmap image)> s_frames = []; 242List<(TimeSpan elapsed, Bitmap image, Size offset)> resultFrames = new(frames.Length); 419List<ReadOnlyMemory<byte>> idat = [];
System.Windows.Input.Manipulations (3)
System\Windows\Input\Manipulations\ManipulationSequence.cs (3)
293out List<ManipulatorState> addedManipulatorList, 381List<ManipulatorState> addedManipulatorList; 468private void ProcessAddsAndRemoves(Int64 timestamp, List<ManipulatorState> addedManipulatorList, HashSet<int> removedManipulatorIds)
System.Xaml (169)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
168List<object> keysToRemove = null;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
130List<string> keysToUpdate = new List<string>();
System\Xaml\Context\NameFixupGraph.cs (7)
129public void GetDependentNames(object instance, List<string> result) 266List<string> names = new List<string>(_dependenciesByName.Keys); 296List<object> parentObjs = new List<object>(_dependenciesByParentObject.Keys); 350List<NameFixupToken> markupExtensionTokens = new List<NameFixupToken>(); 366List<NameFixupToken> dependencies = new List<NameFixupToken>(); 405List<NameFixupToken> dependencies = new List<NameFixupToken>(); 426private bool FindDependencies(NameFixupToken inEdge, List<NameFixupToken> alreadyTraversed)
System\Xaml\Context\NameFixupToken.cs (4)
102private List<string> _names; 103private List<XAML3.INameScopeDictionary> _nameScopeDictionaryList; 157public List<XAML3.INameScopeDictionary> NameScopeDictionaryList 162public List<string> NeededNames
System\Xaml\Context\ObjectWriterContext.cs (17)
24private List<NameScopeInitializationCompleteSubscriber> _nameScopeInitializationCompleteSubscribers; 174List<AmbientPropertyValue> valueList = FindAmbientValues(ceilingTypes, searchLiveStackOnly: false, types: null, properties, true); 180List<object> valueList = FindAmbientValues(types, true); 186List<AmbientPropertyValue> valueList = FindAmbientValues(ceilingTypes, searchLiveStackOnly: false, types: null, properties, stopAfterFirst: false); 192List<object> valueList = FindAmbientValues(types, false); 198List<AmbientPropertyValue> valueList = FindAmbientValues(ceilingTypes, searchLiveStackOnly, types, properties, false); 307private List<AmbientPropertyValue> FindAmbientValues(IEnumerable<XamlType> ceilingTypesEnumerable, 321List<XamlType> ceilingTypes = ceilingTypesEnumerable is not null ? new List<XamlType>(ceilingTypesEnumerable) : null; 323List<AmbientPropertyValue> retList = new List<AmbientPropertyValue>(); 426private List<object> FindAmbientValues(XamlType[] types, bool stopAfterFirst) 436List<object> retList = new List<object>(); 990List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>(); 1049private List<XAML3.INameScopeDictionary> _nameScopeDictionaryList = new List<XAML3.INameScopeDictionary>(); 1056public List<XAML3.INameScopeDictionary> NameScopeDictionaryList 1064private List<XAML3.INameScopeDictionary> _nameScopeDictionaryList; 1066public StackWalkNameResolver(List<XAML3.INameScopeDictionary> nameScopeDictionaryList) 1129List<KeyValuePair<string, object>> allNamesAndValues = new List<KeyValuePair<string, object>>();
System\Xaml\Context\XamlCommonFrame.cs (1)
79List<NamespaceDeclaration> _namespaceDeclarations = new List<NamespaceDeclaration>();
System\Xaml\Context\XamlContext.cs (1)
280List<XamlTypeName> typeNames = typeName.TypeArgumentsList;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (12)
34private Dictionary<object, List<PendingCollectionAdd>> _pendingCollectionAdds; 213private Dictionary<object, List<PendingCollectionAdd>> PendingCollectionAdds 218_pendingCollectionAdds = new Dictionary<object, List<PendingCollectionAdd>>(); 730_context.CurrentCtorArgs = ((List<object>)_context.CurrentCollection).ToArray(); 1238var rawArgs = (List<PositionalParameterDescriptor>)ctx.CurrentCollection; 1939List<PendingCollectionAdd> pendingCollection = null; 2264List<string> names = new List<string>(); 2306List<NameFixupToken> unresolvedRefs = null; 2621List<PendingCollectionAdd> pendingCollection = PendingCollectionAdds[token.Target.Instance]; 2631List<PendingCollectionAdd> pendingCollection = PendingCollectionAdds[token.Target.Instance]; 2643List<PendingCollectionAdd> pendingCollection;
System\Xaml\MS\Impl\XmlNsInfo.cs (4)
231List<string> nsList = (List<string>)clrToXmlNs.Value; 246var result = new List<AssemblyName>(); 279private void LoadInternalsVisibleToHelper(List<AssemblyName> result, string assemblyName, Assembly assembly)
System\Xaml\NameScope.cs (2)
229var list = new List<string>(_nameMap.Keys.Count); 248var list = new List<object>(_nameMap.Values.Count);
System\Xaml\Parser\GenericTypeNameParser.cs (3)
320List<XamlTypeName> xamlTypeNameList = frame.TypeArgs; 327private List<XamlTypeName> _typeArgs; 331public List<XamlTypeName> TypeArgs { get { return _typeArgs; } }
System\Xaml\Parser\NamespacePrefixLookup.cs (1)
12private readonly List<NamespaceDeclaration> _newNamespaces;
System\Xaml\Parser\NodeStreamSorter.cs (2)
31private List<SeenCtorDirectiveFlags> _seenStack = new List<SeenCtorDirectiveFlags>(); 33private List<int> _moveList;
System\Xaml\Parser\XamlPullParser.cs (2)
452List<XamlNode> savedPrefixDefinitions = null; 651List<XamlNode> _savedPrefixDefinitions = null;
System\Xaml\Parser\XamlScanner.cs (6)
31private List<XamlAttribute> _attributes; 559List<XamlAttribute> list = new List<XamlAttribute>(); 599private void PreprocessForTypeArguments(List<XamlAttribute> attrList) 655List<XamlAttribute> ctorDirectivesList = null; 656List<XamlAttribute> otherDirectivesList = null; 657List<XamlAttribute> otherPropertiesList = null;
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
351List<object> result;
System\Xaml\Schema\Reflector.cs (4)
298public List<T> GetAllAttributeContents<T>(Type attributeType) 308List<T> result = new List<T>(); 336List<CustomAttributeData> cads = new List<CustomAttributeData>(); 343List<T> types = new List<T>();
System\Xaml\Schema\TypeReflector.cs (44)
465out ICollection<EventInfo> newEvents, out List<XamlMember> knownMembers) 486private IList<PropertyInfo> FilterProperties(PropertyInfo[] propList, List<XamlMember> knownMembers, bool skipKnownNegatives) 536List<PropertyInfo> filteredResult = new List<PropertyInfo>(result.Count); 548private ICollection<EventInfo> FilterEvents(EventInfo[] eventList, List<XamlMember> knownMembers) 590List<EventInfo> filteredResult = new List<EventInfo>(result.Count); 641private void PickAttachablePropertyAccessors(List<MethodInfo> getters, 642List<MethodInfo> setters, out MethodInfo getter, out MethodInfo setter) 644List<KeyValuePair<MethodInfo, MethodInfo>> candidates = 709List<MethodInfo> setters = LookupStaticSetters(name); 710List<MethodInfo> getters = LookupStaticGetters(name); 726List<MethodInfo> adders = LookupStaticAdders(name); 735private void LookupAllStaticAccessors(out Dictionary<string, List<MethodInfo>> getters, 736out Dictionary<string, List<MethodInfo>> setters, out Dictionary<string, List<MethodInfo>> adders) 738getters = new Dictionary<string, List<MethodInfo>>(); 739setters = new Dictionary<string, List<MethodInfo>>(); 740adders = new Dictionary<string, List<MethodInfo>>(); 754private void LookupAllStaticAccessorsHelper(MethodInfo[] allMethods, Dictionary<string, List<MethodInfo>> getters, 755Dictionary<string, List<MethodInfo>> setters, Dictionary<string, List<MethodInfo>> adders, bool isUnderlyingTypePublic) 778private List<MethodInfo> LookupStaticAdders(string name) 782List<MethodInfo> preferredAdders, otherAdders; 787private List<MethodInfo> LookupStaticGetters(string name) 790List<MethodInfo> preferredGetters, otherGetters; 795private List<MethodInfo> LookupStaticSetters(string name) 798List<MethodInfo> preferredSetters, otherSetters; 805private void PrioritizeAccessors(MemberInfo[] accessors, bool isEvent, bool isGetter, out List<MethodInfo> preferredAccessors, out List<MethodInfo> otherAccessors) 866private static void AddToMultiDict(Dictionary<string, List<MethodInfo>> dict, string name, MethodInfo value, bool isUnderlyingTypePublic) 868List<MethodInfo> list; 989List<XamlMember> result = new List<XamlMember>(); 991Dictionary<string, List<MethodInfo>> getters; 992Dictionary<string, List<MethodInfo>> setters; 993Dictionary<string, List<MethodInfo>> adders; 1001private void GetOrCreateAttachableProperties(XamlSchemaContext schemaContext, List<XamlMember> result, 1002Dictionary<string, List<MethodInfo>> getters, Dictionary<string, List<MethodInfo>> setters) 1004foreach (KeyValuePair<string, List<MethodInfo>> nameAndSetterList in setters) 1010List<MethodInfo> getterList; 1031foreach (KeyValuePair<string, List<MethodInfo>> nameAndGetterList in getters) 1045List<XamlMember> result, Dictionary<string, List<MethodInfo>> adders) 1047foreach (KeyValuePair<string, List<MethodInfo>> nameAndAdderList in adders) 1189List<K> listOfNulls = null;
System\Xaml\Schema\XamlDirective.cs (1)
39List<string> nsList = new List<string>(xamlNamespaces);
System\Xaml\Schema\XamlNamespace.cs (1)
206List<XamlType> xamlTypeList = new List<XamlType>();
System\Xaml\XamlLanguage.cs (3)
86new Lazy<XamlType>(() => GetXamlType(typeof(List<object>))); 88new Lazy<XamlType>(() => GetXamlType(typeof(List<MemberDefinition>))); 90new Lazy<XamlType>(() => GetXamlType(typeof(List<Attribute>)));
System\Xaml\XamlMember.cs (2)
572List<string> doPropertyNames = _reflector.GetAllAttributeContents<string>(typeof(DependsOnAttribute)); 578List<XamlMember> result = new List<XamlMember>();
System\Xaml\XamlNodeList.cs (1)
16private List<XamlNode> _nodeList;
System\Xaml\XamlObjectReader.cs (23)
81var namespaceNodes = context.GetSortedNamespaceNodes(); 105var subNodes = node.Decompose(); 251private List<MarkupInfo> children = new List<MarkupInfo>(); 255public List<MarkupInfo> Children { get { return children; } } 257public override List<MarkupInfo> Decompose() 959public virtual List<MarkupInfo> Decompose() { return null; } 991private List<MarkupInfo> properties = new List<MarkupInfo>(); 994public List<MarkupInfo> Properties { get { return properties; } } 1000public override List<MarkupInfo> Decompose() 1023List<MarkupInfo> removedProperties; 1032private void InsertPropertiesWithDO(List<MarkupInfo> propertiesWithDO) 1087private void SelectAndRemovePropertiesWithDO(out List<MarkupInfo> removedProperties) 1468var propertyList = GetXamlSerializableProperties(xamlType, context); 1622var ctorArgProps = new List<XamlMember>(); 2327private static List<XamlMember> GetXamlSerializableProperties(XamlType type, SerializerContext context) 2329List<XamlMember> propertyList = new List<XamlMember>(); 2356public override List<MarkupInfo> Decompose() 2544public List<XamlNode> GetSortedNamespaceNodes() 2546List<KeyValuePair<string, string>> namespaceMapList = new List<KeyValuePair<string, string>>(); 2878private List<MarkupInfo> nodes = new List<MarkupInfo>(); 3001public override List<MarkupInfo> Decompose() 3030public List<int> Predecessors; 3213private List<Entry> _entries = new List<Entry>();
System\Xaml\XamlSchemaContext.cs (3)
57List<Assembly> listOfAssemblies = new List<Assembly>(referenceAssemblies); 934List<string> combinedList = new List<string>(); 1047List<string> list = new List<string>();
System\Xaml\XamlType.cs (5)
728List<XamlType> result = new List<XamlType>(contentWrappers.Count + 1); 821List<XamlType> contentWrappers = null; 825List<Type> wrapperTypes = _reflector.GetAllAttributeContents<Type>(typeof(ContentWrapperAttribute)); 1068List<XamlMember> result; 1663List<XamlMember> result = new List<XamlMember>(excludedMembers.Count);
System\Xaml\XamlTypeName.cs (3)
14private List<XamlTypeName> _typeArguments; 34List<XamlTypeName> typeArgList = new List<XamlTypeName>(typeArguments); 66internal List<XamlTypeName> TypeArgumentsList => _typeArguments;
System\Xaml\XamlXmlWriter.cs (14)
29private Stack<List<XamlNode>> meNodesStack; 107meNodesStack = new Stack<List<XamlNode>>(); 533var prefixMap = frame.GetSortedPrefixMap(); 761public List<KeyValuePair<string, string>> GetSortedPrefixMap() 763List<KeyValuePair<string, string>> prefixMapList = new List<KeyValuePair<string, string>>(); 1793var meNodes = writer.meNodesStack.Pop(); 1918List<XamlMember> ctorArgProps = GetAllPropertiesWithCAA(objectXamlType); 1994private List<XamlMember> GetAllPropertiesWithCAA(XamlType objectXamlType) 2000var ctorArgProps = new List<XamlMember>(); 2023var ppNodesList = writer.ppStateInfo.NodesList; 2027foreach (List<XamlNode> nodesList in ppNodesList) 2140public List<List<XamlNode>> NodesList 2174NodesList = new List<List<XamlNode>>();
System.Xaml.Tests (66)
System\Xaml\Schema\XamlTypeInvokerTests.cs (9)
62var instance = new List<string>(); 98var invoker = new XamlTypeInvoker(new XamlType(typeof(List<int>), new XamlSchemaContext())); 243new XamlTypeInvoker(new XamlType(typeof(List<int>), new XamlSchemaContext())), 249new XamlTypeInvoker(new XamlType(typeof(List<Array>), new XamlSchemaContext())), 255new XamlTypeInvoker(new XamlType(typeof(List<Array>), new XamlSchemaContext())), 261new XamlTypeInvoker(new XamlType(typeof(List<int>), new XamlSchemaContext())), 469new XamlTypeInvoker(new XamlType(typeof(List<int>), new XamlSchemaContext())), 511var instance = new List<int> { 1 }; 546public List<object> List { get; } = new List<object>();
System\Xaml\XamlLanguageTests.cs (5)
274Assert.Equal(typeof(List<object>), directive.Type.UnderlyingType); 378Assert.Equal(typeof(List<object>), directive.Type.UnderlyingType); 417Assert.Equal(typeof(List<MemberDefinition>), directive.Type.UnderlyingType); 430Assert.Equal(typeof(List<Attribute>), directive.Type.UnderlyingType); 456Assert.Equal(typeof(List<object>), directive.Type.UnderlyingType);
System\Xaml\XamlSchemaContextTests.cs (14)
606new XamlTypeName("clr-namespace:System.Collections.Generic;assembly=" + Name(typeof(List<>).Assembly), "List", new XamlTypeName[] 610new XamlType(typeof(List<int>), new XamlSchemaContext()) 614new XamlTypeName("clr-namespace:System.Collections.Generic;assembly=" + Name(typeof(List<>).Assembly), "List[]", new XamlTypeName[] 618new XamlType(typeof(List<int>[]), new XamlSchemaContext()) 622new XamlTypeName("clr-namespace:System.Collections.Generic;assembly=" + Name(typeof(List<>).Assembly), "List[][,]", new XamlTypeName[] 626new XamlType(typeof(List<int>[,][]), new XamlSchemaContext()) 630new XamlTypeName("clr-namespace:System.Collections.Generic;assembly=" + Name(typeof(List<>).Assembly), "List[ ] [ , ]", new XamlTypeName[] 634new XamlType(typeof(List<int>[,][]), new XamlSchemaContext()) 638new XamlTypeName("clr-namespace:System.Collections.Generic;assembly=" + Name(typeof(List<>).Assembly), "List[, ,]", new XamlTypeName[] 642new XamlType(typeof(List<int>[,,]), new XamlSchemaContext()) 646new XamlTypeName("clr-namespace:System.Collections.Generic;assembly=" + Name(typeof(List<>).Assembly), "NoSuchType", new XamlTypeName[] 654new XamlTypeName("clr-namespace:System.Collections.Generic;assembly=" + Name(typeof(List<>).Assembly), "List", new XamlTypeName[] 665new XamlTypeName("clr-namespace:System.Collections.Generic;assembly=" + Name(typeof(List<>).Assembly), invalidArrayName, new XamlTypeName[] 846var xamlTypeName = new XamlTypeName("clr-namespace:System.Collections.Generic;assembly=" + typeof(List<int>).Assembly.FullName, "List", new XamlTypeName[]
System\Xaml\XamlTypeTests.cs (37)
83yield return new object?[] { typeof(List<int>), new XamlSchemaContext(), "List", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 84yield return new object?[] { typeof(List<int>[][]), new XamlSchemaContext(), "List[][]", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 103yield return new object?[] { typeof(List<int>), new XamlSchemaContext(), XamlTypeInvoker.UnknownInvoker, "List", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 104yield return new object?[] { typeof(List<int>[][]), new XamlSchemaContext(), null, "List[][]", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 972public static List<int>? GetGetOnlyListProperty(int value) => null; 1017public static List<int>? GetGetOnlyListProperty(int value) => null; 1106public static List<int>? GetListProperty(string value1) => null; 1121internal static List<int>? GetListProperty(string value1) => null; 1136public static List<int>? GetListProperty(string value1) => null; 1259public List<int>? GetOnlyListProperty { get; } 1349yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 1355new CustomXamlType(typeof(List<string>), new XamlSchemaContext()) 1366new CustomXamlType(typeof(List<string>), new XamlSchemaContext()) 1411new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(List<string>)), new XamlSchemaContext()), 1444var type = new CustomXamlType(typeof(List<int>), new XamlSchemaContext()) 1458var type = new CustomXamlType(typeof(List<int>), new XamlSchemaContext()) 1472var type = new CustomXamlType(typeof(List<int>), new XamlSchemaContext()) 1502var type = new SubXamlType(new CustomType(typeof(List<int>)) 1756yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), XamlCollectionKind.Collection }; 2143yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), null }; 2149new CustomXamlType(typeof(List<string>), new XamlSchemaContext()) 2160new CustomXamlType(typeof(List<string>), new XamlSchemaContext()) 2199new SubXamlType(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(List<string>)), new XamlSchemaContext()), 2232var type = new CustomXamlType(typeof(List<int>), new XamlSchemaContext()) 2246var type = new CustomXamlType(typeof(List<int>), new XamlSchemaContext()) 2260var type = new CustomXamlType(typeof(List<int>), new XamlSchemaContext()) 2281var type = new SubXamlType(new CustomType(typeof(List<int>)) 2460var type = new SubXamlType(new CustomType(typeof(List<int>)) 2660yield return new object[] { new SubXamlType(typeof(List<>), new XamlSchemaContext()), false }; 2661yield return new object[] { new SubXamlType(typeof(List<>).GetTypeInfo().GenericTypeParameters[0], new XamlSchemaContext()), false }; 2662yield return new object[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), true }; 2786yield return new object[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), true }; 2991yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) }; 3010new CustomXamlType(typeof(List<int>), new XamlSchemaContext()) 3046yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), null }; 4359var type = new SubXamlType(new CustomType(typeof(List<int>)) 4767var type = new SubXamlType(new CustomType(typeof(List<int>))
System\Xaml\XamlWriterTests.cs (1)
122public List<object> CalledMethodArgs { get; } = new List<object>();
TagHelpersWebSite (1)
Components\GenericViewComponent.cs (1)
10public IViewComponentResult Invoke(Dictionary<string, List<string>> items)
Templates.Blazor.Tests (29)
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 (5)
129var certificates = new List<X509Certificate2>(); 217protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 690var extensions = new List<X509Extension>(); 891var list = certificates.ToList(); 933var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
131var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 298var nssDbs = GetNssDbs(homeDirectory); 434var nssDbs = GetNssDbs(homeDirectory); 714var nssDbs = new List<string>(); 732private static List<NssDb> GetNssDbs(string homeDirectory) 734var nssDbs = new List<NssDb>(); 893var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
Templates.Blazor.WebAssembly.Auth.Tests (30)
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 (5)
129var certificates = new List<X509Certificate2>(); 217protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 690var extensions = new List<X509Extension>(); 891var list = certificates.ToList(); 933var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
131var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 298var nssDbs = GetNssDbs(homeDirectory); 434var nssDbs = GetNssDbs(homeDirectory); 714var nssDbs = new List<string>(); 732private static List<NssDb> GetNssDbs(string homeDirectory) 734var nssDbs = new List<NssDb>(); 893var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
src\Shared\E2ETesting\WaitAssert.cs (1)
131var errors = driver.GetBrowserLogs(LogLevel.All).Select(c => c.ToString()).ToList();
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
23var logs = log.Where(entry => entry.Level >= level && !ShouldIgnore(entry)).ToList();
Templates.Blazor.WebAssembly.Tests (30)
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 (5)
129var certificates = new List<X509Certificate2>(); 217protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 690var extensions = new List<X509Extension>(); 891var list = certificates.ToList(); 933var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
131var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 298var nssDbs = GetNssDbs(homeDirectory); 434var nssDbs = GetNssDbs(homeDirectory); 714var nssDbs = new List<string>(); 732private static List<NssDb> GetNssDbs(string homeDirectory) 734var nssDbs = new List<NssDb>(); 893var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
src\Shared\E2ETesting\WaitAssert.cs (1)
131var errors = driver.GetBrowserLogs(LogLevel.All).Select(c => c.ToString()).ToList();
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
23var logs = log.Where(entry => entry.Level >= level && !ShouldIgnore(entry)).ToList();
Templates.Mvc.Tests (35)
MvcTemplateTest.cs (3)
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 (5)
129var certificates = new List<X509Certificate2>(); 217protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 690var extensions = new List<X509Extension>(); 891var list = certificates.ToList(); 933var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
131var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 298var nssDbs = GetNssDbs(homeDirectory); 434var nssDbs = GetNssDbs(homeDirectory); 714var nssDbs = new List<string>(); 732private static List<NssDb> GetNssDbs(string homeDirectory) 734var nssDbs = new List<NssDb>(); 893var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
src\Shared\E2ETesting\WaitAssert.cs (1)
131var errors = driver.GetBrowserLogs(LogLevel.All).Select(c => c.ToString()).ToList();
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
23var logs = log.Where(entry => entry.Level >= level && !ShouldIgnore(entry)).ToList();
Templates.Tests (30)
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 (5)
129var certificates = new List<X509Certificate2>(); 217protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 690var extensions = new List<X509Extension>(); 891var list = certificates.ToList(); 933var certificatesToDispose = new List<X509Certificate2>();
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList(); 381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 387var certsFromStore = new List<X509Certificate2>(); 433var certsFromDisk = new List<X509Certificate2>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (7)
131var nssDbs = GetNssDbs(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); 298var nssDbs = GetNssDbs(homeDirectory); 434var nssDbs = GetNssDbs(homeDirectory); 714var nssDbs = new List<string>(); 732private static List<NssDb> GetNssDbs(string homeDirectory) 734var nssDbs = new List<NssDb>(); 893var certs = new List<FileInfo>();
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
src\Shared\E2ETesting\WaitAssert.cs (1)
131var errors = driver.GetBrowserLogs(LogLevel.All).Select(c => c.ToString()).ToList();
src\Shared\E2ETesting\WebDriverExtensions.cs (1)
23var logs = log.Where(entry => entry.Level >= level && !ShouldIgnore(entry)).ToList();
Test.Utilities (118)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>)) 202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
40List<SyntaxNode> statements = []; 353List<SyntaxNode> statements = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
TestDiscoveryWorker (1)
Program.cs (1)
31List<string> extra = options.Parse(args);
TestPassApp (2)
DataBindingExample.cs (2)
11private readonly List<Student> _studentA = []; 12private readonly List<Student> _studentB = [];
TestProject.AppHost (1)
TestProgram.cs (1)
131public List<IResourceBuilder<ProjectResource>> ServiceProjectBuilders => [ServiceABuilder, ServiceBBuilder, ServiceCBuilder];
Text.Analyzers (139)
CodeAnalysisDictionary.cs (1)
86var recognizedWords = new List<string>();
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (1)
26public static void ParseFeatures(IDictionary<string, string> builder, List<string> values)
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
15private readonly List<K> _keys;
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
77public void AddRange(List<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
250public static bool IsEmpty<T>(this List<T> source) 721List<IEnumerator<T>> enumerators = new List<IEnumerator<T>>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="List{T}"/>, but uses segmented
src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
408private List<Exception> _exceptions;
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
20private readonly List<WeakReference<Entry?>> _weakReferencedEntries =
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
152var attributes = new List<AttributeData>(); 219var attributes = new List<AttributeData>();
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (2)
40List<SyntaxNode> statements = []; 353List<SyntaxNode> statements = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
24public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg) 43public static void RemoveOrTransformAll<T, TArg>(this List<T> list, Func<T, TArg, T?> transform, TArg arg)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
409var spans = new List<TextSpan>(nodesToReplace.Count + tokensToReplace.Count + triviaToReplace.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
53List<AbstractFormattingResult>? results = null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (9)
99var list = GetParentIndentBlockOperations(token); 117var list = GetParentIndentBlockOperations(token); 137List<IndentBlockOperation> list, 185SyntaxNode root, List<IndentBlockOperation> list, int position) 213private List<IndentBlockOperation> GetParentIndentBlockOperations(SyntaxToken token) 218var list = new List<IndentBlockOperation>(); 251var list = new List<AlignTokensOperation>(); 283var list = new List<IndentBlockOperation>(); 311private static IEnumerable<IndentBlockOperation> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<IndentBlockOperation> list, int position)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (3)
53private List<IndentBlockOperation> _initialIndentBlockOperations = []; 94var indentationOperations = indentOperations; 146var mergedList = new List<IndentBlockOperation>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (5)
43public (List<IndentBlockOperation> indentOperations, ImmutableArray<SuppressOperation> suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken) 50var initialIndentationOperations = this.GetInitialIndentBlockOperations(startToken, endToken); 66private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken) 73var operations = new List<IndentBlockOperation>(); 74var list = new List<IndentBlockOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
89var result = new List<TextChange>(count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
160var indentBlockOperationScratch = new List<IndentBlockOperation>(); 161var alignmentOperationScratch = new List<AlignTokensOperation>(); 162var anchorIndentationOperationsScratch = new List<AnchorIndentationOperation>(); 189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
356var list = new List<TokenData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
60var result = new List<TextChange>(); 76private void AddTextChanges(List<TextChange> list, SyntaxToken token1, SyntaxToken token2, TriviaData data)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\ChainedFormattingRules.cs (3)
52public void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode currentNode) 58public void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode currentNode) 64public void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode currentNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (4)
40public static List<T>? Combine<T>(this List<T>? list1, List<T>? list2) 315var aggregateSpans = new List<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\AbstractFormattingRule.cs (3)
29public virtual void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 35public virtual void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public virtual void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
31public override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 54private void AddNextIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 65private void AdjustIndentBlockOperation(List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\CompatAbstractFormattingRule.cs (6)
25public sealed override void AddAnchorIndentationOperations(List<AnchorIndentationOperation> list, SyntaxNode node, in NextAnchorIndentationOperationAction nextOperation) 33public sealed override void AddIndentBlockOperations(List<IndentBlockOperation> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation) 41public sealed override void AddAlignTokensOperations(List<AlignTokensOperation> list, SyntaxNode node, in NextAlignTokensOperationAction nextOperation) 78public virtual void AddAnchorIndentationOperationsSlow(List<AnchorIndentationOperation> list, SyntaxNode node, ref NextAnchorIndentationOperationAction nextOperation) 84public virtual void AddIndentBlockOperationsSlow(List<IndentBlockOperation> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation) 90public virtual void AddAlignTokensOperationsSlow(List<AlignTokensOperation> list, SyntaxNode node, ref NextAlignTokensOperationAction nextOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAlignTokensOperationAction.cs (1)
15List<AlignTokensOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextAnchorIndentationOperationAction.cs (1)
15List<AnchorIndentationOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\NextIndentBlockOperationAction.cs (1)
15List<IndentBlockOperation> list)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (3)
150var list = new List<AnchorIndentationOperation>(); 162var list = new List<IndentBlockOperation>(); 174var list = new List<AlignTokensOperation>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (1)
14var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
420var methodElements = rootElement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
40public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool) 41=> PooledObject<List<TItem>>.Create(pool); 53public static PooledObject<List<TItem>> GetPooledObject<TItem>(this ObjectPool<List<TItem>> pool, out List<TItem> list) 55var pooledObject = PooledObject<List<TItem>>.Create(pool); 150public static List<T> AllocateAndClear<T>(this ObjectPool<List<T>> pool) 152var list = pool.Allocate(); 319public static void ClearAndFree<T>(this ObjectPool<List<T>> pool, List<T> list, bool trim = true)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
90public static PooledObject<List<TItem>> Create<TItem>(ObjectPool<List<TItem>> pool) 92return new PooledObject<List<TItem>>( 147private static List<TItem> Allocator<TItem>(ObjectPool<List<TItem>> pool) 150private static void Releaser<TItem>(ObjectPool<List<TItem>> pool, List<TItem> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (2)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia()); 125List<SyntaxTrivia> leadingTriviaToStrip, leadingTriviaToKeep;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
331private readonly List<IMethodSymbol?> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
69private readonly List<IMethodSymbol> _methodSymbolStack = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
1109var specifiedParameters1 = new List<IParameterSymbol>(); 1110var specifiedParameters2 = new List<IParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (2)
23var orderedExistingConstants = enumType.GetMembers() 114private static bool LooksLikeFlagsEnum(List<IComparable> existingConstants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
145var list = sequence.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (6)
97protected List<byte[]> chunks; 102protected PooledStream(long length, List<byte[]> chunks) 187private static int Read(List<byte[]> chunks, long position, long length, byte[] buffer, int index, int count) 282: base(length: 0, chunks: SharedPools.BigDefault<List<byte[]>>().AllocateAndClear()) 400var temp = this.chunks; 404SharedPools.BigDefault<List<byte[]>>().ClearAndFree(temp);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
42private readonly List<PathSegment> _segments = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (3)
15var result = new List<T>(); 36List<T> result, 77var itemsAfterBeforeList = itemToItemsBefore[itemAfter];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
286=> compilation.GetTypeByMetadataName(typeof(List<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\IAssemblySymbolExtensions.cs (2)
17this List<IAssemblySymbol> assemblies, 33public static bool ContainsTypeName(this List<IAssemblySymbol> assemblies, string typeName, bool tryWithAttributeSuffix = false)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
18private static readonly ConditionalWeakTable<INamespaceOrTypeSymbol, List<string>> s_namespaceOrTypeToNameMap = new(); 36var result = new List<string>(); 75private static void GetNameParts(INamespaceOrTypeSymbol? namespaceOrTypeSymbol, List<string> result)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
716var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis()) 756var members = returnType.AllInterfaces.Concat(returnType.GetBaseTypesAndThis())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
277var membersList = members.ToList(); 299var newMembers = new List<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (6)
64var allFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 67var usedFieldsAndValues = new List<(IFieldSymbol field, ulong value)>(); 74List<(IFieldSymbol field, ulong value)> allFieldsAndValues, 75List<(IFieldSymbol field, ulong value)> usedFieldsAndValues) 153private static IFieldSymbol? GetZeroField(List<(IFieldSymbol field, ulong value)> allFieldsAndValues) 169List<(IFieldSymbol field, ulong value)> allFieldsAndValues)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
54var names = new List<string> 62var members = innermostNamespace.GetMembers().ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
164public static async Task<bool> HasAnyErrorsAsync(this Document document, CancellationToken cancellationToken, List<string>? ignoreErrorCode = null) 186public static async Task VerifyNoErrorsAsync(this Document newDocument, string message, CancellationToken cancellationToken, List<string>? ignoreErrorCodes = null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
106var newTypeParameters = new List<CodeGenerationTypeParameterSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
18var assemblies = new List<Assembly>(assemblyNames.Length);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
19List<TImportDirectiveSyntax> newImports)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
92var findReferencesList = findReferencesResult.ToList(); 98var references = findReferencesList[0].Locations.ToList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
86var result = new List<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
67List<Exception>? exceptions = null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
UIAutomationClientSideProviders (18)
MS\Internal\AutomationProxies\ClickablePoint.cs (11)
53internal static bool GetPoint(IntPtr hwnd, List<CPRect> listIn, List<CPRect> listOut, ref NativeMethods.Win32Point pt) 136internal static void ExcludeChildren(ProxyFragment fragment, List<CPRect> listIn, List<CPRect> listOut) 231private static bool ClickableInRect(IntPtr hwnd, ref NativeMethods.Win32Point pt, bool fRiAsInsideRect, List<CPRect> listIn, List<CPRect> listOut) 299private static void SplitVertical(ref CPRect ro, ref CPRect ri, int left, int right, List<CPRect> rectList, bool fRiAsInsideRect) 353private static void SplitRect(ref CPRect ro, CPRect ri, List<CPRect> rectList, bool fRiAsInsideRect) 416private static void SplitRect(List<CPRect> listIn, ref CPRect ri, List<CPRect> listOut, bool fRiAsInsideRect) 436private static bool GetClickablePoint(List<CPRect> rectList, out int x, out int y)
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
510List<WinEventTracker.EvtIdProperty> automationEvents = new(16);
MS\Internal\AutomationProxies\ProxySimple.cs (2)
587List<ClickablePoint.CPRect> listIn = new(100); 588List<ClickablePoint.CPRect> listOut = new(100);
MS\Internal\AutomationProxies\WinEventTracker.cs (4)
118internal List<EventCreateParams> _hWndList; 231List<EventCreateParams> eventCreateParams = hookParams._hWndList; 284List<EventCreateParams> eventCreateParams = hookParams._hWndList; 385List<EventCreateParams> eventCreateParams = hookParams._hWndList;
UnitTests.Common (5)
MemberDataSet.cs (1)
37private readonly List<object[]> _data = new List<object[]>();
MockCommunicationObject.cs (4)
239public static void InterceptAllOpenMethods(IMockCommunicationObject mco, List<string> methodsCalled) 268public static void InterceptAllCloseMethods(IMockCommunicationObject mco, List<string> methodsCalled) 303public static void InterceptAllOpenEvents(IMockCommunicationObject mco, List<string> eventsFired) 310public static void InterceptAllCloseEvents(IMockCommunicationObject mco, List<string> eventsFired)
vbc (6)
src\Compilers\Shared\BuildClient.cs (2)
131List<string>? parsedArgs; 211private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive)
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
src\Compilers\Shared\BuildServerConnection.cs (1)
64List<string> arguments,
VBCSCompiler (15)
src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (5)
48ICompilerServerLogger logger) => Check(baseDirectory, analyzerReferences, loader, logger, out var _); 55[NotNullWhen(false)] out List<string>? errorMessages) 81[NotNullWhen(false)] out List<string>? errorMessages) 84var resolvedPaths = new List<string>(); 109var loadedAssemblies = new List<Assembly>();
src\Compilers\Server\VBCSCompiler\BuildProtocolUtil.cs (1)
43List<string> commandLineArguments = new List<string>();
src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (1)
140if (!AnalyzerConsistencyChecker.Check(request.WorkingDirectory, compiler.Arguments.AnalyzerReferences, AnalyzerAssemblyLoader, Logger, out List<string>? errorMessages))
src\Compilers\Server\VBCSCompiler\ServerDispatcher.cs (2)
62private readonly List<Task<CompletionData>> _connectionList = new List<Task<CompletionData>>(); 189var all = new List<Task>();
src\Compilers\Shared\BuildClient.cs (2)
131List<string>? parsedArgs; 211private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive)
src\Compilers\Shared\BuildProtocol.cs (3)
88var requestArgs = new List<Argument>(requestLength); 143var argumentsBuilder = new List<Argument>((int)argumentCount); 474var list = new List<string>(count);
src\Compilers\Shared\BuildServerConnection.cs (1)
64List<string> arguments,
VBCSCompiler.UnitTests (22)
AnalyzerConsistencyCheckerTests.cs (1)
158out List<string>? errorMessages);
BuildClientTests.cs (2)
34private readonly List<ServerData> _serverDataList = new List<ServerData>(); 198private List<string> _parsedArgs;
CompilerServerTests.cs (4)
76private static void CheckForBadShared(List<string> arguments) 82List<string> parsedArgs; 98private static void ReferenceNetstandardDllIfCoreClr(TempDirectory currentDirectory, List<string> arguments) 185var arguments = new List<string>(argumentsSingle.Split(' '));
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 (11)
50var filelist = new List<string>(); 74List<string> expectedReads; 75List<string> expectedWrites; 101var filelist = new List<string>(); 125List<string> expectedReads; 126List<string> expectedWrites; 156out List<string> expectedReads, 157out List<string> expectedWrites) 172var writes = new List<string>(); 179List<string> expectedReads, 180List<string> expectedWrites,
VBCSCompilerServerTests.cs (1)
338var list = new List<Task>();
WaitForSandbox.ApiService (1)
Program.cs (1)
24var entries = await dbContext.Entries.ToListAsync();
Wasm.Performance.ConsoleHost (10)
src\Shared\CommandLineUtils\CommandLine\CommandArgument.cs (1)
19public List<string> Values { get; private set; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (7)
53public readonly List<CommandOption> Options; 56public readonly List<CommandArgument> Arguments; 57public readonly List<string> RemainingArguments; 62public readonly List<CommandLineApplication> Commands; 473var arguments = target.Arguments.Where(a => a.ShowInHelpText).ToList(); 489var options = target.GetOptions().Where(o => o.ShowInHelpText).ToList(); 505var commands = target.Commands.Where(c => c.ShowInHelpText).ToList();
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
60public List<string> Values { get; private set; } 105var parts = new List<string>();
Wasm.Performance.Driver (4)
BenchmarkOutput.cs (2)
8public List<BenchmarkMetadata> Metadata { get; } = new List<BenchmarkMetadata>(); 10public List<BenchmarkMeasurement> Measurements { get; } = new List<BenchmarkMeasurement>();
BenchmarkResult.cs (1)
9public List<BenchmarkScenarioResult> ScenarioResults { get; set; }
Program.cs (1)
55var browserArgs = new List<string>();
Wasm.Performance.TestApp (1)
Person.cs (1)
13public List<Person> Subordinates { get; set; }
WindowsBase.Tests (129)
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 (50)
16yield return new object?[] { "Register_String_Type_Type_TestData4", typeof(List<int>), typeof(DependencyObjectTests), null }; 57yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_TestData15", typeof(List<int>), typeof(DependencyObjectTests), null, null }; 58yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null }; 59yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null }; 60yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 109yield return new object?[] { "Register_String_Type_Type_Validate_TestData15", typeof(List<int>), typeof(DependencyObjectTests), null, null, 1 }; 110yield return new object?[] { "Register_String_Type_Type_Validate_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null, 1 }; 111yield return new object?[] { "Register_String_Type_Type_Validate_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null, 1 }; 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 }; 169yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_NullValidate_TestData15", typeof(List<int>), typeof(DependencyObjectTests), null, null }; 170yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_NullValidate_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null }; 171yield return new object?[] { "Register_String_Type_Type_PropertyMetadata_NullValidate_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null }; 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>() }; 327yield return new object?[] { "RegisterAttached_String_Type_Type_TestData4", typeof(List<int>), typeof(DependencyObjectTests), null }; 368yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_TestData15", typeof(List<int>), typeof(DependencyObjectTests), null, null }; 369yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null }; 370yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null }; 371yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 422yield return new object?[] { "RegisterAttached_String_Type_Type_Validate_TestData15", typeof(List<int>), typeof(DependencyObjectTests), null, null }; 423yield return new object?[] { "RegisterAttached_String_Type_Type_Validate_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null }; 424yield return new object?[] { "RegisterAttached_String_Type_Type_Validate_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null }; 425yield return new object?[] { "RegisterAttached_String_Type_Type_Validate_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 482yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_NullValidate_TestData15", typeof(List<int>), typeof(DependencyObjectTests), null, null }; 483yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_NullValidate_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null }; 484yield return new object?[] { "RegisterAttached_String_Type_Type_PropertyMetadata_NullValidate_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null }; 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>() }; 644yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_TestData15", typeof(List<int>), typeof(DependencyObject), null, null }; 645yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null }; 646yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null }; 647yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 700yield return new object?[] { "RegisterReadOnly_String_Type_Type_Validate_TestData15", typeof(List<int>), typeof(DependencyObject), null, null, 4 }; 701yield return new object?[] { "RegisterReadOnly_String_Type_Type_Validate_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null, 2 }; 702yield return new object?[] { "RegisterReadOnly_String_Type_Type_Validate_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null, 2 }; 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 }; 764yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData15", typeof(List<int>), typeof(DependencyObject), null, null }; 765yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null }; 766yield return new object?[] { "RegisterReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null }; 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>() }; 937yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_TestData15", typeof(List<int>), typeof(DependencyObjectTests), null, null }; 938yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null }; 939yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null }; 940yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_TestData18", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata { DefaultValue = new List<int>() }, new List<int>() }; 995yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_Validate_TestData15", typeof(List<int>), typeof(DependencyObjectTests), null, null, 2 }; 996yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_Validate_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null, 1 }; 997yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_Validate_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null, 1 }; 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 }; 1059yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData15", typeof(List<int>), typeof(DependencyObjectTests), null, null }; 1060yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData16", typeof(List<int>), typeof(DependencyObject), new PropertyMetadata(), null }; 1061yield return new object?[] { "RegisterAttachedReadOnly_String_Type_Type_PropertyMetadata_NullValidate_TestData17", typeof(List<int>), typeof(SubDependencyObject), new PropertyMetadata(), null }; 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 (14)
41List<MarkupProperty> properties = obj.Properties.ToList(); 75List<MarkupProperty> properties = obj.Properties.ToList(); 100var instance = new List<int> { 1, 2, 3 }; 106Assert.Equal(typeof(List<int>), obj.ObjectType); 110List<MarkupProperty> properties = obj.Properties.ToList(); 169List<MarkupProperty> properties = obj.Properties.ToList(); 194var list = new List<int> { 1, 2, 3 }; 205List<MarkupProperty> properties = obj.Properties.ToList(); 243List<MarkupProperty> properties = obj.Properties.ToList(); 282List<MarkupProperty> properties = obj.Properties.ToList(); 307var list = new List<int> { 1, 2, 3 }; 321List<MarkupProperty> properties = obj.Properties.ToList(); 365List<MarkupProperty> properties = obj.Properties.ToList(); 414List<MarkupProperty> properties = obj.Properties.ToList();
System\Windows\Markup\Primitives\MarkupPropertyTests.cs (17)
28List<MarkupProperty> properties = obj.Properties.ToList(); 62List<MarkupProperty> properties = obj.Properties.ToList(); 87var instance = new List<int> { 1, 2, 3 }; 93Assert.Equal(typeof(List<int>), obj.ObjectType); 97List<MarkupProperty> properties = obj.Properties.ToList(); 156List<MarkupProperty> properties = obj.Properties.ToList(); 181var list = new List<int> { 1, 2, 3 }; 192List<MarkupProperty> properties = obj.Properties.ToList(); 230List<MarkupProperty> properties = obj.Properties.ToList(); 269List<MarkupProperty> properties = obj.Properties.ToList(); 294var list = new List<int> { 1, 2, 3 }; 308List<MarkupProperty> properties = obj.Properties.ToList(); 352List<MarkupProperty> properties = obj.Properties.ToList(); 387List<MarkupProperty> properties = obj.Properties.ToList(); 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 (28)
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>(); 2098var expectedHandlers = new List<Delegate>(handlers); 2504var listeners = new List<CustomWeakEventListener>(); 2523var expectedListeners = new List<CustomWeakEventListener>(listeners); 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>(); 5357var expectedListeners = new List<CustomWeakEventListener>(listeners); 5601var handlers = new List<Delegate>(); 5616var expectedHandlers = new List<Delegate>(handlers); 5807var events = new List<string>(); 5842var events = new List<string>(); 5886var events = new List<string>();
WindowsFormsIntegration (3)
System\Windows\Integration\ApplicationInterop.cs (3)
307private List<WeakReference> _internalList; 332public List<T> SnapshotListOfTargets 336List<T> targets = new List<T>();
WinFormsControlsTest (5)
CollectionEditors.cs (1)
18private readonly List<string> _stringList = ["Lorem ipsum dolor sit amet", "id quo accusamus definitionem", "graeco salutandi sed te", "mei in solum primis definitionem."];
DataGridViewInVirtualModeTest.cs (1)
14private readonly List<TestCustomer> _customers = [];
DragDrop.cs (1)
23private readonly List<PictureBox> _pictureBoxList;
FormOwnerTestForm.cs (1)
28List<Form> childForms = [];
MainForm.cs (1)
246List<Button> buttons = [];
XmlFileLogger (5)
ItemGroupParser.cs (1)
24var items = new List<Item>();
LogProcessNode.cs (2)
23private readonly Dictionary<Type, List<ILogNode>> _childNodes; 31_childNodes = new Dictionary<Type, List<ILogNode>>();
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 (6)
Controllers\HomeController.cs (2)
28private List<string> GetModelStateErrorMessages(ModelStateDictionary modelStateDictionary) 30var allErrorMessages = new List<string>();
Controllers\IEnumerableController.cs (1)
51List<SerializableError> errors = new List<SerializableError>();
Controllers\ValidationController.cs (3)
26private List<string> GetModelStateErrorMessages(ModelStateDictionary modelStateDictionary) 28var allErrorMessages = new List<string>(); 66public List<string> ModelStateErrorMessages { get; set; }
xunit.assert (13)
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\ArgumentFormatter.cs (1)
345 var parameters =
Sdk\AssertHelper.cs (3)
570 var expectedValues = expected.Cast<object?>().ToList(); 571 var actualValues = actual.Cast<object?>().ToList(); 576 var actualOriginalValues = actualValues.ToList();
Sdk\CollectionTracker.cs (4)
679 var startItems = new List<T>(); 710 var startItems = new List<T>(); 729 List<T> items, 867 public List<T> StartItems { get; } = new List<T>();
Sdk\Exceptions\ExceptionUtility.cs (1)
48 var results = new List<string>();
xunit.console (57)
CommandLine.cs (4)
14readonly List<string> unknownOptions = new List<string>(); 86XunitProject GetProjectFile(List<Tuple<string, string>> assemblies) 119var args = new List<string>(capacity: rspLines.Length); 209var assemblies = new List<Tuple<string, string>>();
common\AssemblyResolution\DependencyContextAssemblyCache.cs (5)
59var compatibleRuntimes = GetCompatibleRuntimes(dependencyContext); 93List<string> GetCompatibleRuntimes(DependencyContext dependencyContext) 95var result = new List<string>(GetFallbacks(dependencyContext.RuntimeGraph).Fallbacks); 235var assemblies = new List<string>(); 278var assemblies = new List<string>();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\CompilationLibrary.cs (1)
51private IEnumerable<string> ResolveReferencePaths(ICompilationAssemblyResolver resolver, List<string> assemblies)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (22)
64var targets = ReadTargets(root.ValueAsJsonObject(DependencyContextStrings.TargetsPropertyName)); 66var runtimeFallbacks = ReadRuntimes(root.ValueAsJsonObject(DependencyContextStrings.RuntimesPropertyName)); 113private Target SelectRuntimeTarget(List<Target> targets, string runtimeTargetName) 184private List<Target> ReadTargets(JsonObject targetsJson) 188var targets = new List<Target>(); 201var libraries = new List<TargetLibrary>(); 225var runtimeTargets = ReadTargetLibraryRuntimeTargets(targetLibraryJson.ValueAsJsonObject(DependencyContextStrings.RuntimeTargetsPropertyName)); 226var resources = ReadTargetLibraryResources(targetLibraryJson.ValueAsJsonObject(DependencyContextStrings.ResourceAssembliesPropertyName)); 246var dependencies = new List<Dependency>(); 255private List<RuntimeTargetEntryStub> ReadTargetLibraryRuntimeTargets(JsonObject targetLibraryRuntimeTargetsJson) 259var runtimeTargets = new List<RuntimeTargetEntryStub>(); 279private List<ResourceAssembly> ReadTargetLibraryResources(JsonObject targetLibraryResourcesJson) 283var resources = new List<ResourceAssembly>(); 341private List<RuntimeFallbacks> ReadRuntimes(JsonObject runtimesJson) 345var runtimeFallbacks = new List<RuntimeFallbacks>(); 387var runtimeAssemblyGroups = new List<RuntimeAssetGroup>(); 388var nativeLibraryGroups = new List<RuntimeAssetGroup>(); 488public List<string> Runtimes; 490public List<string> Natives; 492public List<string> Compilations; 494public List<RuntimeTargetEntryStub> RuntimeTargets; 496public List<ResourceAssembly> Resources;
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\AppBaseCompilationAssemblyResolver.cs (3)
35public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string> assemblies) 59var directories = new List<string>() 82var paths = new List<string>();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\CompositeCompilationAssemblyResolver.cs (1)
17public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string> assemblies)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\ICompilationAssemblyResolver.cs (1)
10bool TryResolveAssemblyPaths(CompilationLibrary library, List<string> assemblies);
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\PackageCompilationAssemblyResolver.cs (2)
78public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string> assemblies) 105var paths = new List<string>();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Resolution\ReferenceAssemblyPathResolver.cs (1)
41public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string> assemblies)
common\AssemblyResolution\XunitPackageCompilationAssemblyResolver.cs (7)
18readonly List<string> nugetPackageDirectories; 27static List<string> GetDefaultProbeDirectories(IMessageSink internalDiagnosticsMessageSink) => 30static List<string> GetDefaultProbeDirectories(Platform osPlatform, IMessageSink internalDiagnosticsMessageSink) 32var results = default(List<string>); 64public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string> assemblies) 82var paths = new List<string>();
common\DictionaryExtensions.cs (1)
10public static void Add<TKey, TValue>(this IDictionary<TKey, List<TValue>> dictionary, TKey key, TValue value)
common\Json.cs (1)
446var list = new List<JsonValue>();
ConsoleRunner.cs (6)
38var reporters = GetAvailableRunnerReporters(); 127List<IRunnerReporter> GetAvailableRunnerReporters() 129var result = new List<IRunnerReporter>(); 244var switchableReporters = reporters.Where(r => !string.IsNullOrWhiteSpace(r.RunnerSwitch)).ToList(); 275var xmlTransformers = TransformFactory.GetXmlTransformers(project); 377var filteredTestCases = discoverySink.TestCases.Where(filters.Filter).ToList();
Utility\TransformFactory.cs (2)
56public static List<Transform> AvailableTransforms 59public static List<Action<XElement>> GetXmlTransformers(XunitProject project)
Xunit.NetCore.Extensions (8)
AssemblyFixtureSupport\XunitTestAssemblyRunnerWithAssemblyFixture.cs (2)
19private List<AssemblyFixtureAttribute> assemblyFixtureAttributes; 37var fixturesAttrs = ((IReflectionAssemblyInfo)TestAssembly.Assembly).Assembly
AssemblyFixtureSupport\XunitTestClassRunnerWithAssemblyFixture.cs (2)
19private readonly List<AssemblyFixtureAttribute> assemblyFixtureAttributes; 22List<AssemblyFixtureAttribute> assemblyFixtureAttributes,
AssemblyFixtureSupport\XunitTestCollectionRunnerWithAssemblyFixture.cs (2)
19private readonly List<AssemblyFixtureAttribute> assemblyFixtureAttributes; 22List<AssemblyFixtureAttribute> assemblyFixtureAttributes,
AssemblyFixtureSupport\XunitTestMethodRunnerWithAssemblyFixture.cs (2)
18private readonly List<AssemblyFixtureAttribute> assemblyFixtureAttributes; 20public XunitTestMethodRunnerWithAssemblyFixture(List<AssemblyFixtureAttribute> assemblyFixtureAttributes,