586 references to List
aspire (2)
Packaging\PackagingService.cs (1)
176var channels = new List<PackageChannel>([defaultChannel, stableChannel]);
src\Shared\SearchTextParser.cs (1)
346var allFragments = new List<string>(filter.TextFragments);
Aspire.Dashboard (1)
src\Shared\SearchTextParser.cs (1)
346var allFragments = new List<string>(filter.TextFragments);
Aspire.Hosting (2)
Publishing\ManifestPublishingContext.cs (1)
861var pending = new List<ParameterResource>(_formattedParameters.Keys);
src\Shared\CustomResourceSnapshotExtensions.cs (1)
40var existingProperties = new List<ResourcePropertySnapshot>(properties);
Aspire.Hosting.Azure (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
40var existingProperties = new List<ResourcePropertySnapshot>(properties);
Aspire.Hosting.Browsers (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
40var existingProperties = new List<ResourcePropertySnapshot>(properties);
Aspire.Hosting.Browsers.Tests (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
40var existingProperties = new List<ResourcePropertySnapshot>(properties);
Aspire.Hosting.CodeGeneration.Java (1)
AtsJavaCodeGenerator.cs (1)
1513var combined = new List<AtsTypeRef>(existing) { item };
Aspire.Hosting.Tests (1)
ConnectionPropertiesExtensionsTests.cs (1)
42private readonly IReadOnlyList<KeyValuePair<string, ReferenceExpression>> _properties = new List<KeyValuePair<string, ReferenceExpression>>(properties);
crossgen2 (1)
Program.cs (1)
414List<ModuleDesc> versionBubbleModules = new List<ModuleDesc>(versionBubbleModulesHash);
csc (1)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
220var buildRequestArguments = new List<string>(arguments);
dotnet-dev-certs (1)
Program.cs (1)
55var newArgs = new List<string>(args);
dotnet-svcutil (1)
GlobalTool.cs (1)
18var arguments = new List<string>(args);
dotnet-svcutil-lib (25)
CodeDomFixup\VisitorFixup.cs (2)
58List<CodeDomVisitor> list = new List<CodeDomVisitor>(visitors); 70List<CodeDomVisitor> list = new List<CodeDomVisitor>(visitors);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriterSettings.cs (1)
316clonedSettings._cdataSections = new List<XmlQualifiedName>(_cdataSections);
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\XmlValueConverter.cs (1)
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\XPath\Internal\CacheAxisQuery.cs (1)
25this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheOutputQuery.cs (1)
29this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ClonableStack.cs (1)
17private ClonableStack(System.Collections.Generic.IEnumerable<T> collection) : base(collection) { }
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\followingsibling.cs (1)
28_parentStk = new List<XPathNavigator>(other._parentStk);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\SortQuery.cs (1)
31_results = new List<SortKey>(other._results);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
263tempMembers = new List<DataMember>(BaseContract.Members); //Don't set tempMembers = BaseContract.Members and then start adding, because this alters the base's reference.
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
22: base(new List<AddressHeader>(addressHeaders))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
600List<Type> types = new List<Type>(GetInheritedContractTypes(interfaceType));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
31faultContractInfoList = new List<FaultContractInfo>(faultContractInfoCollection);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
144_channelSupportingTokenAuthenticatorSpecification = new Collection<SupportingTokenAuthenticatorSpecification>(new List<SupportingTokenAuthenticatorSpecification>(factory._channelSupportingTokenAuthenticatorSpecification));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
38_items = new List<T>(list);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (2)
37_items = new List<T>(list); 63_items = new List<T>(list);
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\ServiceDescriptor.cs (1)
177var orphanContracts = new List<ContractDescription>(this.Contracts);
dotnet-svcutil-lib.Tests (1)
FixupUtil.cs (1)
99var replacements = new List<ReplaceInfo>(_replacements);
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (1)
257_parent._inputParameters = new List<string>(_arguments.GetArguments(String.Empty));
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
ilc (3)
Program.cs (3)
65List<MethodDesc> instrumentedResult = new List<MethodDesc>(result); 530scannerCompiledMethods = new List<MethodDesc>(scanResults.CompiledMethodBodies); 531scannerConstructedTypes = new List<TypeDesc>(scanResults.ConstructedEETypes);
ILCompiler.Compiler (9)
Compiler\AnalysisBasedMetadataManager.cs (2)
64_modulesWithMetadata = new List<ModuleDesc>(modulesWithMetadata); 65_forcedTypes = new List<TypeDesc>(forcedTypes);
Compiler\Dataflow\CompilerGeneratedState.cs (1)
321_compilerGeneratedMembers.Add(userDefinedMethod, new List<TypeSystemEntity>(callees));
Compiler\Dataflow\InterproceduralState.cs (1)
71var methodsList = new List<MethodBodyValue>(MethodBodies.GetKnownValues());
Compiler\Dataflow\ValueNode.cs (1)
25: base(other)
Compiler\DependencyAnalysis\DehydratedDataNode.cs (1)
85KeyValuePair<ISymbolNode, int>[] relocSort = new List<KeyValuePair<ISymbolNode, int>>(relocOccurences).ToArray();
Compiler\DependencyAnalysis\StackTraceMethodMappingNode.cs (1)
52var mapping = new List<StackTraceMapping>(factory.MetadataManager.GetStackTraceMapping(factory));
Compiler\LibraryInitializers.cs (1)
30_librariesWithInitializers = new List<ModuleDesc>(librariesWithInitializers);
Compiler\UsageBasedMetadataManager.cs (1)
101_satelliteAssemblyFiles = new List<string>(satelliteAssemblyFilePaths);
ILCompiler.DependencyAnalysisFramework (1)
DependencyNodeCore.cs (1)
36: base(collection)
ILCompiler.ReadyToRun (7)
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILDeduplicator.cs (1)
27var sortedNodes = new List<CopiedMethodILNode>(_nodesProvider());
Compiler\DependencyAnalysis\ReadyToRun\DebugInfoTableNode.cs (1)
180List<byte> boundsBlob = new List<byte>(writer2.ToArray());
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (1)
560return new List<StringDiscoverableAssemblyStubNode>(_stringDiscoverableStubs);
Compiler\ProfileDataManager.cs (2)
480List<MethodDesc> list = new(kvp.Value); 487List<TypeDesc> list = new(kvp.Value);
Compiler\ReadyToRunTableManager.cs (1)
126List<PerModuleMethodsGenerated> perModuleDatas = new List<PerModuleMethodsGenerated>(_methodsGenerated.Values);
IBC\IBCProfileParser.cs (1)
26_possibleReferenceModules = new List<ModuleDesc>(possibleReferenceModules);
illink (5)
ILLink.RoslynAnalyzer (1)
DataFlow\InterproceduralState.cs (1)
55var methodsList = new List<MethodBodyValue>(Methods.GetKnownValues());
Microsoft.AspNetCore.Authorization (2)
AuthorizationPolicy.cs (2)
38Requirements = new List<IAuthorizationRequirement>(requirements).AsReadOnly(); 39AuthenticationSchemes = new List<string>(authenticationSchemes).AsReadOnly();
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ServerInstance.cs (1)
168var paths = new List<string>(WriteCapturedOutputTo(directory));
Microsoft.AspNetCore.Components.Web (1)
Forms\ValidationSummary.cs (1)
110var messages = new List<string>(GetValidationMessages());
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
47_exceptionHandlers = exceptionHandlers as IExceptionHandler[] ?? new List<IExceptionHandler>(exceptionHandlers).ToArray();
Microsoft.AspNetCore.Http.Abstractions (1)
WebSocketManager.cs (1)
63public IList<string> WebSocketRequestedProtocols => new List<string>(_manager.WebSocketRequestedProtocols);
Microsoft.AspNetCore.Http.Extensions (5)
QueryBuilder.cs (1)
34_params = new List<KeyValuePair<string, string>>(parameters);
RequestDelegateFactory.cs (2)
311return new List<object>(metadata); 659factoryContext.Parameters = new List<ParameterInfo>(parameters);
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
193var attributes = new List<CustomAttributeData>(
TagsAttribute.cs (1)
28Tags = new List<string>(tags);
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
48_extensions = new List<string>(options._extensions);
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
EndpointMetadataApiDescriptionProvider.cs (1)
554actionDescriptor.EndpointMetadata = new List<object>(endpointMetadata);
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
193var attributes = new List<CustomAttributeData>(
Microsoft.AspNetCore.Mvc.Core (21)
ApplicationModels\ActionModel.cs (5)
35Attributes = new List<object>(attributes); 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\ControllerActionDescriptorBuilder.cs (2)
185actionDescriptor.ActionConstraints = new List<IActionConstraintMetadata>(selectorModel.ActionConstraints); 193actionDescriptor.EndpointMetadata = new List<object>(selectorModel.EndpointMetadata);
ApplicationModels\ControllerModel.cs (6)
35Attributes = new List<object>(attributes); 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\ParameterModelBase.cs (2)
26Attributes = new List<object>(attributes ?? throw new ArgumentNullException(nameof(attributes))); 40Attributes = new List<object>(other.Attributes);
ApplicationModels\SelectorModel.cs (2)
30ActionConstraints = new List<IActionConstraintMetadata>(other.ActionConstraints); 31EndpointMetadata = new List<object>(other.EndpointMetadata);
Filters\FilterFactory.cs (1)
32var allFilterItems = new List<FilterItem>(staticFilterItems);
Infrastructure\CopyOnWriteList.cs (1)
30_copy = new List<T>(_source);
Infrastructure\ObjectResultExecutor.cs (1)
174var considered = new List<string?>(contentTypes);
ModelBinding\Validation\CompositeClientModelValidatorProvider.cs (1)
23ValidatorProviders = new List<IClientModelValidatorProvider>(providers);
Microsoft.AspNetCore.Mvc.Razor (1)
TagHelperComponentManager.cs (1)
22Components = new List<ITagHelperComponent>(tagHelperComponents);
Microsoft.AspNetCore.Mvc.RazorPages (9)
ApplicationModels\PageApplicationModel.cs (5)
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 (2)
48Attributes = new List<object>(other.Attributes); 52Parameters = new List<PageParameterModel>(other.Parameters.Select(p => new PageParameterModel(p) { Handler = this }));
ApplicationModels\PageRouteModel.cs (1)
56Selectors = new List<SelectorModel>(other.Selectors.Select(m => new SelectorModel(m)));
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
156var loadedEndpoints = new List<Endpoint>(endpoints);
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
PartialViewResultExecutor.cs (1)
86var locations = new List<string>(originalResult.SearchedLocations);
ViewComponents\ViewComponentDescriptorCollection.cs (1)
20Items = new List<ViewComponentDescriptor>(items);
ViewEngines\CompositeViewEngine.cs (2)
66searchedList = new List<string>(searchedLocations); 111searchedList = new List<string>(searchedLocations);
ViewResultExecutor.cs (1)
87var locations = new List<string>(originalResult.SearchedLocations);
Microsoft.AspNetCore.OpenApi (1)
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
193var attributes = new List<CustomAttributeData>(
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperAttributeList.cs (1)
25: base(new List<TagHelperAttribute>(attributes))
Microsoft.AspNetCore.Routing (7)
Builder\EndpointRouteBuilderExtensions.cs (1)
214new List<object>(options.EndpointBuilder.Metadata) :
Constraints\HttpMethodRouteConstraint.cs (1)
24AllowedMethods = new List<string>(allowedMethods);
DefaultEndpointDataSource.cs (1)
38_endpoints = new List<Endpoint>(endpoints);
Matching\DfaNode.cs (1)
72Matches = new List<Endpoint>(endpoints);
Patterns\DefaultRoutePatternTransformer.cs (3)
174updatedSegments = new List<RoutePatternPathSegment>(original.PathSegments); 175updatedParameters = new List<RoutePatternParameterPart>(original.Parameters); 230var updatedParts = new List<RoutePatternPart>(segment.Parts);
Microsoft.AspNetCore.Routing.Abstractions (1)
RouteData.cs (1)
40_routers = new List<IRouter>(other.Routers);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\TransportManager.cs (1)
121return StopTransportsAsync(new List<ActiveTransport>(_transports), cancellationToken);
Internal\ServerAddressesCollection.cs (1)
91return new List<string>(_addresses).GetEnumerator();
Microsoft.AspNetCore.Session (1)
DistributedSession.cs (1)
430public IEnumerable<string> Keys => new List<string>(_session.Keys);
Microsoft.AspNetCore.SignalR.Core (4)
HubConnectionHandler.cs (2)
85hubFilters = new List<IHubFilter>(_hubOptions.HubFilters); 98hubFilters = new List<IHubFilter>(_globalHubOptions.HubFilters);
HubOptionsSetup`T.cs (2)
32options.SupportedProtocols = new List<string>(_hubOptions.SupportedProtocols ?? Array.Empty<string>()); 46options.HubFilters = new List<IHubFilter>(_hubOptions.HubFilters);
Microsoft.AspNetCore.StaticAssets (2)
Development\StaticAssetDevelopmentRuntimeHandler.cs (2)
346var responseHeaders = new List<StaticAssetResponseHeader>(descriptor.ResponseHeaders); 374var propertiesList = new List<StaticAssetProperty>(descriptor.Properties);
Microsoft.Build (51)
BackEnd\BuildManager\BuildManager.cs (3)
1106var submissionsToCheck = new List<BuildSubmissionBase>(_buildSubmissions.Values); 2932var submissions = new List<BuildSubmissionBase>(_buildSubmissions.Values); 3173var submissions = new List<BuildSubmissionBase>(_buildSubmissions.Values);
BackEnd\BuildManager\BuildParameters.cs (2)
298_forwardingLoggers = other._forwardingLoggers != null ? new List<ForwardingLoggerRecord>(other._forwardingLoggers) : null; 302_loggers = other._loggers != null ? new List<ILogger>(other._loggers) : null;
BackEnd\BuildManager\BuildRequestData.cs (1)
79PropertiesToTransfer = new List<string>(propertiesToTransfer);
BackEnd\BuildManager\BuildRequestDataBase.cs (1)
22TargetNames = new List<string>(targetNames);
BackEnd\BuildManager\RequestedProjectState.cs (2)
47result.PropertyFilters = new List<string>(PropertyFilters); 53kvp => kvp.Value == null ? null : new List<string>(kvp.Value));
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
258var requestsToShutdown = new List<BuildRequestEntry>(_requests);
BackEnd\Components\Caching\ResultsCache.cs (1)
200List<string> targetsToAddResultsFor = new List<string>(configInitialTargets);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
149var contextsToShutDown = new List<NodeContext>(_nodeContexts.Values);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
570undefinePropertiesPerProject[i] = new List<string>(undefineProperties);
BackEnd\Components\RequestBuilder\Lookup.cs (1)
1183var metadataToRemove = new List<string>(_modifications.Keys.Where(m => other[m].Remove));
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (1)
621List<ProjectItemInstance> upToDateInputItems = new List<ProjectItemInstance>(inputItems);
BackEnd\Components\Scheduler\SchedulableRequest.cs (2)
423List<SchedulableRequest> requestsToUnblock = new List<SchedulableRequest>(_requestsWeAreBlocking); 612List<SchedulableRequest> tempRequests = new List<SchedulableRequest>(_requestsWeAreBlockedBy.Values);
BackEnd\Components\Scheduler\Scheduler.cs (4)
1373List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys); 2648List<SchedulableRequest> childRequests = new List<SchedulableRequest>(_schedulingData.GetRequestsByHierarchy(request)); 2782List<SchedulableRequest> scheduledRequestsByNode = new List<SchedulableRequest>(_schedulingData.GetScheduledRequestsByNode(nodeId)); 2881List<int> configurations = new List<int>(_schedulingData.Configurations);
BackEnd\Components\Scheduler\SchedulingPlan.cs (5)
113List<KeyValuePair<int, double>> configurationsInOrder = new(accumulatedTimeByConfiguration); 236List<KeyValuePair<int, PlanConfigData>> projectsInOrderOfTotalPlanTime = new(_configIdToData); 259List<KeyValuePair<int, PlanConfigData>> projectsInOrderOfImmediateChildCount = new(_configIdToData); 275List<int> projectsInOrderOfReference = new List<int>(_configIdToData.Keys); 334List<PlanConfigData> projectsByExpense = new List<PlanConfigData>(_configIdToData.Values);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
198_requestedTargets = new List<string>(data.TargetNames);
Definition\Project.cs (1)
3123var itemsList = new List<ProjectItem>(items);
Definition\ProjectCollection.cs (7)
727: new List<ILogger>(_loggingService.Loggers); 744return new List<Toolset>(_toolsets.Values); 1192var toolsets = new List<Toolset>(Toolsets); 1251loaded = fullPath == null ? new List<Project>(_loadedProjects) : new List<Project>(_loadedProjects.GetMatchingProjectsIfAny(fullPath)); 1609var projects = new List<Project>(_loadedProjects); 1636var projects = new List<Project>(_loadedProjects);
Definition\Toolset.cs (1)
462List<string> orderedSubToolsetList = new List<string>(additionalSubToolsetNames);
Evaluation\Evaluator.cs (2)
1046List<string> temp = new List<string>(expanded.Split(s_splitter, StringSplitOptions.RemoveEmptyEntries)); 1938projectList = new List<ProjectRootElement>(projects);
Instance\ProjectInstance.cs (7)
719this.EvaluatedItemElements = new List<ProjectItemElement>(data.EvaluatedItemElements); 803this.DefaultTargets = new List<string>(that.DefaultTargets); 804this.InitialTargets = new List<string>(that.InitialTargets); 2864parameters.Loggers = (loggers is ICollection<ILogger> loggersCollection) ? loggersCollection : new List<ILogger>(loggers); 2884new List<ForwardingLoggerRecord>(remoteLoggers); 3400DefaultTargets = defaultTargets == null ? new List<string>(0) : new List<string>(defaultTargets); 3401InitialTargets = initialTargets == null ? new List<string>(0) : new List<string>(initialTargets);
Instance\ProjectItemInstance.cs (2)
325get { return new List<string>(MetadataNames); } 1539destinationAsTaskItem._itemDefinitions = (_itemDefinitions == null) ? null : new List<ProjectItemDefinitionInstance>(_itemDefinitions);
Instance\ProjectTargetInstance.cs (1)
513_children = new List<ProjectTargetInstanceChild>(_children);
Instance\ProjectTaskInstance.cs (1)
115_outputs = new List<ProjectTaskInstanceChild>(outputs);
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
109list => list is not null ? new List<string>(list) : null);
src\msbuild\src\Shared\TaskParameter.cs (1)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
Microsoft.Build.Framework (2)
Collections\ReadOnlyCollection.cs (1)
87backingCollection = new List<T>(_backing);
FileClassifier.cs (1)
246_knownImmutableDirectoriesSnapshot = new List<string>(_knownImmutableDirectories.Values);
Microsoft.Build.NuGetSdkResolver (1)
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
Microsoft.Build.Tasks.Core (9)
AssemblyDependency\Reference.cs (1)
710return new List<UnificationVersion>(_preUnificationVersions.Values);
AssemblyDependency\ReferenceTable.cs (1)
2065referenceAssemblyDirectories = new List<string>(_latestTargetFrameworkDirectories);
Copy.cs (2)
851var sourceFiles = SourceFiles != null ? new List<ITaskItem>(SourceFiles) : new List<ITaskItem>(); 852var destinationFiles = DestinationFiles != null ? new List<ITaskItem>(DestinationFiles) : new List<ITaskItem>();
ManifestUtil\DeployManifest.cs (1)
644set => _compatibleFrameworks = new List<CompatibleFramework>(value);
MSBuild.cs (1)
516undefinePropertiesPerProject[i] = new List<string>(undefineProperties);
ResolveProjectBase.cs (1)
165List<ITaskItem> updatedProjectReferenceList = new List<ITaskItem>(_projectReferences);
src\msbuild\src\Shared\TaskParameter.cs (1)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
WriteCodeFragment.cs (1)
213var orderedParameters = new List<AttributeParameter?>(new AttributeParameter?[customMetadata.Count + 1] /* max possible slots needed */);
Microsoft.Build.Utilities.Core (1)
MuxLogger.cs (1)
206recordsToShutdown = new List<SubmissionRecord>(_submissionRecords.Values);
Microsoft.CodeAnalysis (1)
PEWriter\NativeResourceWriter.cs (1)
282byte[] data = new List<byte>(r.Data).ToArray();
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.CodeStyle (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.CSharp (2)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
747oldDispatches.Add(dispatchLabel, new List<StateMachineState>(from kv in _dispatches.Values from n in kv orderby n select n));
Symbols\SubstitutedNamedTypeSymbol.cs (1)
197return new List<string>(GetTypeMembersUnordered().Select(s => s.Name).Distinct());
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
Microsoft.CodeAnalysis.CSharp.Features (5)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (2)
294var newList = new List<TSyntax>(list); 322var newMembers = new List<MemberDeclarationSyntax>(members);
GenerateType\CSharpGenerateTypeService.cs (1)
549var containerList = new List<string>(containers);
Organizing\Organizers\MemberDeclarationsOrganizer.cs (1)
114var initialList = new List<MemberDeclarationSyntax>(members);
Organizing\Organizers\ModifiersOrganizer.cs (1)
21var initialList = new List<SyntaxToken>(modifiers);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
Microsoft.CodeAnalysis.Extensions.Package (1)
Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.Features (1)
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
233var remainingResults = new List<ExtractClassMemberAnalysisResult>(memberAnalysisResults);
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsed.Fixer.cs (1)
99var carriedOver = new List<SyntaxNode>(arguments) { expression };
Microsoft.NetCore.Analyzers\Runtime\AttributeStringLiteralsShouldParseCorrectly.cs (1)
54new(
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\DocumentClassifierPassBase.cs (1)
59var children = new List<IntermediateNode>(documentNode.Children);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.Workspaces (4)
Classification\Classifier.cs (1)
103var allClassifications = new List<ClassifiedSpan>(semanticClassifications.Where(s => s.TextSpan.OverlapsWith(textSpan)));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
335var targets = new List<string>(requiredTargets);
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (1)
455List<string> names = new List<string>(mo.GetDynamicMemberNames());
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (1)
1541List<T> newList = new List<T>(array);
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsClient\EventPipeSessionConfiguration.cs (1)
120_providers = new List<EventPipeProvider>(providers);
Microsoft.DotNet.ApiCompatibility (1)
Runner\ApiCompatRunnerWorkItem.cs (1)
29public IList<IReadOnlyList<MetadataInformation>> Right { get; } = new List<IReadOnlyList<MetadataInformation>>(new IReadOnlyList<MetadataInformation>[] { right });
Microsoft.DotNet.ApiSymbolExtensions (1)
Filtering\CompositeSymbolFilter.cs (1)
27public List<ISymbolFilter> Filters { get; } = new(filters);
Microsoft.DotNet.Build.Tasks.Packaging (1)
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.Extensions.AI.Abstractions (1)
Embeddings\GeneratedEmbeddings.cs (1)
39_embeddings = new List<TEmbedding>(Throw.IfNull(embeddings));
Microsoft.Extensions.AsyncState.Tests (2)
AsyncStateTests.cs (2)
226var l = new List<object?>(new object?[5]); 234var l = new List<object?>(new object?[5]);
Microsoft.Extensions.Configuration (1)
ReferenceCountedProvidersManager.cs (1)
71_refCountedProviders.Providers = new List<IConfigurationProvider>(_refCountedProviders.Providers)
Microsoft.Extensions.DependencyInjection (3)
ServiceLookup\CallSiteChain.cs (1)
51var ordered = new List<KeyValuePair<ServiceIdentifier, ChainItemInfo>>(_callSiteChain);
ServiceLookup\ServiceProviderEngineScope.cs (1)
396public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.RootProvider.CallSiteFactory.Descriptors);
ServiceProvider.cs (1)
332public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.Root.RootProvider.CallSiteFactory.Descriptors);
Microsoft.Extensions.FileSystemGlobbing (1)
Internal\Patterns\PatternBuilder.cs (1)
175segmentsPatternStartsWith = new List<IPathSegment>(allSegments);
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
588public List<IHostedService> HostedServices => new List<IHostedService>(host._hostedServices ??= host.Services.GetRequiredService<IEnumerable<IHostedService>>());
Microsoft.Extensions.Http.Resilience.Tests (7)
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.Stores (1)
UserStoreBase.cs (1)
978var updatedCodes = new List<string>(splitCodes.Where(s => s != code));
Microsoft.Extensions.Options (3)
OptionsFactory.cs (3)
46_setups = setups as IConfigureOptions<TOptions>[] ?? new List<IConfigureOptions<TOptions>>(setups).ToArray(); 47_postConfigures = postConfigures as IPostConfigureOptions<TOptions>[] ?? new List<IPostConfigureOptions<TOptions>>(postConfigures).ToArray(); 48_validations = validations as IValidateOptions<TOptions>[] ?? new List<IValidateOptions<TOptions>>(validations).ToArray();
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
32List<Diagnostic> fixedDiagnostics = new(context.Diagnostics.Where(IsRequiresDiableRuntimeMarshallingDiagnostic));
Microsoft.Maui (2)
Animations\AnimationManager.cs (2)
87 var animations = new List<Animation>(_animations); 132 var animations = new List<Animation>(_animations);
Microsoft.Maui.Controls (21)
Cells\Cell.cs (2)
266 _currentContextActions = new List<MenuItem>(_contextActions); 323 var children = new List<Maui.IVisualTreeElement>(LogicalChildrenInternal);
DefinitionCollection.cs (1)
15 internal DefinitionCollection(params T[] items) => _internalList = new List<T>(items);
Element\Element_StyleSheets.cs (1)
78 mergedSheets = new List<StyleSheet>(childSheets);
EnumerableExtensions.cs (1)
56 foreach (IGestureRecognizer item in new List<IGestureRecognizer>(gestures))
FormattedString.cs (1)
86 var removed = new List<Span>(this);
GestureElement.cs (1)
72 List<IGestureRecognizer> removed = new List<IGestureRecognizer>(this);
Items\SelectableItemsView.cs (1)
88 var oldSelection = new List<object>(SelectedItems);
Items\SelectionChangedEventArgs.cs (2)
25 PreviousSelection = new List<object>(previousSelection ?? throw new ArgumentNullException(nameof(previousSelection))); 26 CurrentSelection = new List<object>(currentSelection ?? throw new ArgumentNullException(nameof(currentSelection)));
Menu\MenuFlyoutItem.cs (1)
29 IReadOnlyList<IKeyboardAccelerator>? IMenuFlyoutItem.KeyboardAccelerators => new List<IKeyboardAccelerator>(KeyboardAccelerators);
NavigationPage\NavigationPage.cs (1)
657 var immutableNavigationStack = new List<IView>(NavigationStack);
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>);
Shell\RouteRequestBuilder.cs (1)
183 List<string> currentSet = new List<string>(_matchedSegments);
Shell\ShellSection.cs (1)
332 var navStackCopy = new List<Page>(_navStack);
Shell\ShellUriHandler.cs (3)
149 var segments = new List<string>(RetrievePaths(pathAndQuery[0])); 246 var segments = new List<string>(RetrievePaths(localPath)); 438 List<string> fullRouteWithNewSegments = new List<string>(currentSegments);
SwipeView\SwipeView.cs (1)
418 public HandlerSwipeItems(SwipeItems swipeItems) : base(swipeItems)
VisualElement\VisualElement.cs (1)
1560 var mergedClassStyles = new List<Style>(Resources[value.Key] as List<Style>);
Microsoft.Maui.Controls.BindingSourceGen (2)
PathParser.cs (2)
113 return Result<List<IPathPart>>.Success(new List<IPathPart>([part])); 194 return Result<List<IPathPart>>.Success(new List<IPathPart>([part]));
Microsoft.Maui.Essentials (1)
Connectivity\Connectivity.shared.cs (1)
106 currentProfiles = new List<ConnectionProfile>(ConnectionProfiles);
Microsoft.Maui.Graphics (6)
PathF.cs (6)
50 _points = new List<PointF>(path._points); 56 _subPathsClosed = new List<bool>(path._subPathsClosed); 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);
Microsoft.ML.Data (2)
DataLoadSave\Database\LoadColumnNameAttribute.cs (1)
34Sources = new List<string>(fieldNames);
Dirty\PredictionUtils.cs (1)
83res = new List<string>(args.Take(i));
Microsoft.ML.EntryPoints (1)
CrossValidationMacro.cs (1)
372var warnings = input.Warnings != null ? new List<IDataView>(input.Warnings) : new List<IDataView>();
Microsoft.ML.GenAI.Core (1)
Trainer\CausalLMDataset.cs (1)
23_data = new List<CausalLMModelInput>(data);
Microsoft.ML.OnnxTransformer (1)
OnnxTransform.cs (1)
879_tensorShape = new OnnxShape(tensorShape);
Microsoft.ML.ResultProcessor (5)
ResultProcessor.cs (5)
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 1158+ string.Join(cmd.PerFoldResultSeparator, new List<string>(new List<float>(kvp.Value.AllValues).Select(d => "" + d))));
Microsoft.ML.StandardTrainers (1)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
372var columns = new List<DataViewSchema.Column>(featureColumns);
Microsoft.ML.TensorFlow.Tests (5)
TensorFlowEstimatorTests.cs (2)
65new List<TestData>(new TestData[] { 106new List<TestData>(new TestData[] {
TensorflowTests.cs (3)
174new List<TestData>(new TestData[] { 246return new List<ShapeData>(new ShapeData[] { 365var data = new List<TypesData>(
Microsoft.ML.Tests (1)
OnnxSequenceTypeWithAttributesTest.cs (1)
66var keys = new List<string>(onnxOut.Keys);
Microsoft.ML.TimeSeries (2)
PolynomialUtils.cs (1)
168Coefficients = new List<decimal>(coefficients);
SrCnnAnomalyDetectionBase.cs (1)
274List<Single> cumSumShift = new List<Single>(cumSumList);
Microsoft.ML.Tokenizers (3)
Model\BertTokenizer.cs (2)
247list = new List<int>(ids); 269list = new List<int>(ids);
Model\SentencePieceTokenizer.cs (1)
516?? new List<(string Piece, float Score)>(vocab);
Microsoft.ML.Tokenizers.Tests (12)
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);
Microsoft.ML.TorchSharp (1)
NasBert\NasBertTrainer.cs (1)
587List<int> newList = new List<int>(tokenizer.EncodeToConverted(sentence1.ToString()));
Microsoft.ML.TorchSharp.Tests (8)
NerTests.cs (2)
47new List<TestSingleSentenceData>(new TestSingleSentenceData[] { 126new List<TestSingleSentenceData>(new TestSingleSentenceData[] {
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.NET.Build.Containers (1)
ImageBuilder.cs (1)
41_manifest = new ManifestV2() { SchemaVersion = manifest.SchemaVersion, Config = manifest.Config, Layers = new(manifest.Layers), MediaType = manifest.MediaType };
Microsoft.NET.Build.Tasks (1)
CollectSDKReferencesDesignTime.cs (1)
39var sdkDesignTimeList = new List<ITaskItem>(SdkReferences);
Microsoft.Net.Http.Headers (1)
ObjectCollection.cs (1)
24var list = other == null ? new List<T>() : new List<T>(other);
Microsoft.NET.Sdk.Publish.Tasks (2)
MsDeploy\CommonUtility.cs (1)
1418List<Framework.ITaskItem> optimizedValueList = new(sortedList);
MsDeploy\VsMSDeployObject.cs (1)
141List<string> linksList = new(linksArray);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
JSModules\ApplyJsModules.cs (1)
31var unmatchedJsModules = new List<ITaskItem>(JSFileModuleCandidates);
ScopedCss\ApplyCssScopes.cs (1)
34var unmatchedScopedCss = new List<ITaskItem>(ScopedCss);
Microsoft.Private.Windows.Core (1)
System\Collections\Generic\CollectionExtensions.cs (1)
24return new List<T>(new ArraySegment<T>(array, 0, count));
Microsoft.TemplateEngine.Cli (3)
Alias\AliasRegistry.cs (2)
78expandedInputTokens = new List<string>(inputTokens); 97expandedTokens = new List<string>(inputTokens);
HostSpecificTemplateData.cs (1)
31UsageExamples = new List<string>(usagesArray
Microsoft.TemplateEngine.Edge (4)
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (4)
124var packages = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false)); 169var packagesInSettings = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false)); 193var packages = new List<TemplatePackageData>(await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false)); 220var updatedPackages = new List<TemplatePackageData>(templatePackages.Select(tp => ((ISerializableInstaller)tp.Installer).Serialize(tp)));
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (2)
GlobalRunSpec.cs (2)
26List<IOperationConfig> operationConfigReaders = new List<IOperationConfig>(componentManager.OfType<IOperationConfig>()); 99List<IOperationProvider> operations = new List<IOperationProvider>(customOperations);
Microsoft.TestPlatform.CrossPlatEngine (5)
Client\InProcessProxyexecutionManager.cs (1)
60var testPackages = new List<string>(testRunCriteria.HasSpecificSources ? testRunCriteria.Sources :
Client\ProxyExecutionManager.cs (2)
140_testSources = new List<string>( 197var testSources = new List<string>(
Discovery\DiscovererEnumerator.cs (1)
373var sourcesForWhichNoDiscovererIsAvailable = new List<string>(sources);
Discovery\DiscoveryResultCache.cs (1)
80return new List<TestCase>(_tests);
Microsoft.VisualStudio.TestPlatform.Common (2)
DataCollection\DataCollectionManager.cs (1)
412RemoveDataCollectors(new List<DataCollectorInformation>(RunDataCollectors.Values));
ExtensionFramework\TestDiscoveryExtensionManager.cs (1)
167FileExtension = new List<string>(fileExtensions);
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
TrxLogger.cs (1)
212return new List<RunInfo>(_runLevelErrorsAndWarnings);
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Nuget.Frameworks\FrameworkNameProvider.cs (1)
569var baseFrameworks = new List<NuGetFramework>(result);
Mono.Cecil (1)
Mono.Cecil.Metadata\Buffers.cs (1)
390 var sorted = new List<KeyValuePair<string, uint>> (strings);
MSBuild (3)
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
109list => list is not null ? new List<string>(list) : null);
src\msbuild\src\Shared\TaskParameter.cs (1)
687List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
XMake.cs (1)
2050List<BuildManager.DeferredBuildMessage> messages = new(s_globalMessagesToLogInBuildLoggers)
NuGet.Build.Tasks (1)
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
NuGet.CommandLine.XPlat (4)
Commands\Signing\SignCommand.cs (1)
158PackagePaths = new List<string>(packagePathValues),
Commands\Signing\VerifyCommand.cs (2)
70args.PackagePaths = new List<string>(packagePathValues); 74args.CertificateFingerprint = new List<string>(parseResult.GetValue(fingerPrint) ?? Array.Empty<string>());
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
NuGet.Commands (2)
RestoreCommand\RestoreRunner.cs (1)
174var inputs = new List<string>(restoreContext.Inputs);
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
NuGet.Common (1)
AuthTypeFilteredCredentials.cs (1)
37AuthTypes = new List<string>(authTypes);
NuGet.Configuration (4)
PackageSourceMapping\PackageSourceMapping.cs (1)
78patterns.Add(packageSourceNamespaceItem.Key, new List<string>(packageSourceNamespaceItem.Patterns.Select(e => e.Pattern)));
Settings\Items\PackageSourceMappingSourceItem.cs (1)
159var clonedPatterns = new List<PackagePatternItem>(Patterns);
Settings\Items\TrustedSignerItem.cs (1)
122var immutableCerts = new List<CertificateItem>(Certificates);
Settings\SettingsGroup.cs (1)
36Children = new List<T>(children);
NuGet.DependencyResolver.Core (1)
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
NuGet.Frameworks (2)
FrameworkNameProvider.cs (1)
581var baseFrameworks = new List<NuGetFramework>(result);
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
NuGet.PackageManagement (3)
NuGetPackageManager.cs (2)
1111var allSources = new List<SourceRepository>(primarySources); 1912var preferredPackageReferences = new List<PackageReference>(projectInstalledPackageReferences.Where(pr =>
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
NuGet.Packaging (3)
RuntimeModel\RuntimeDescription.cs (2)
90inheritedRuntimes = new List<string>(right.InheritedRuntimes); 97inheritedRuntimes = new List<string>(left.InheritedRuntimes);
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
NuGet.ProjectModel (4)
PackageSpecReferenceDependencyProvider.cs (1)
211var frameworks = new List<NuGetFramework>(
ProjectRestoreMetadata.cs (3)
288clone.FallbackFolders = FallbackFolders != null ? new List<string>(FallbackFolders) : null; 289clone.ConfigFilePaths = ConfigFilePaths != null ? new List<string>(ConfigFilePaths) : null; 290clone.OriginalTargetFrameworks = OriginalTargetFrameworks != null ? new List<string>(OriginalTargetFrameworks) : null;
NuGet.Resolver (5)
CombinationSolver.cs (2)
82_currentDomainsSorted = initialDomains.Select(d => new List<T>(d)).ToList(); 158diagnosticOutput(new List<T>(_solution));
PackageResolver.cs (1)
245List<SourcePackageDependencyInfo> after = new List<SourcePackageDependencyInfo>(packages);
ResolverInputSort.cs (1)
62var idsToSort = new List<string>(groupIds);
ResolverUtility.cs (1)
431var parentPackages = new List<ResolverPackage>(source.ParentPackages);
NuGet.Versioning (1)
src\nuget-client\build\Shared\SharedExtensions.cs (1)
27return new List<T>(enumerable);
PresentationCore (13)
System\Windows\Input\Command\InputBindingCollection.cs (1)
359List<InputBinding> oldInputBindings = new List<InputBinding>(_innerBindingList);
System\Windows\Input\ManipulationDevice.cs (2)
449List<IManipulator> manipulators = new List<IManipulator>(_manipulators); 465List<IManipulator> manipulators = new List<IManipulator>(_manipulators);
System\Windows\Input\Stylus\Common\StylusButtonCollection.cs (1)
18: base(new List<StylusButton>(buttons))
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (1)
85List<StylusPoint> points = new List<StylusPoint>(stylusPoints);
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (1)
48new List<StylusPointPropertyInfo>(stylusPointPropertyInfos);
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (3)
385TabletDevices = new List<TabletDevice>(_tablets); 551TabletDevices = new List<TabletDevice>(_tablets); 572TabletDevices = new List<TabletDevice>(_tablets);
System\Windows\Media\Effects\ShaderEffect.cs (2)
1050_floatRegisters = new List<MilColorF?>(effect._floatRegisters); 1054_samplerData = new List<SamplerData?>(effect._samplerData);
System\Windows\Nrbf\SerializationRecordExtensions.cs (2)
366return new List<T>(new ArraySegment<T>(array, 0, count)); 370List<T> list = new(readOnlyList);
PresentationFramework (25)
MS\Internal\Annotations\AnnotationResourceCollection.cs (1)
73List<AnnotationResource> list = new List<AnnotationResource>(this);
MS\Internal\Data\CommitManager.cs (1)
182return new List<T>(Keys);
MS\Internal\Data\LiveShapingList.cs (1)
687_unusedKeys = new List<string>(this.Keys);
MS\Internal\Ink\ClipboardProcessor.cs (1)
135List<UIElement> elements = new List<UIElement>(inkCanvasSelection.SelectedElements);
MS\Internal\Ink\ElementsClipboardData.cs (1)
34ElementList = new List<UIElement>(elements);
MS\Internal\Ink\InkCanvasSelection.cs (1)
228_selectedElements = new List<UIElement>(elements);
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
648List<Annotation> annotations = new List<Annotation>((IEnumerable<Annotation>)mapAnnotations.Values);
System\Windows\Controls\Primitives\Selector.cs (1)
2676_list = new List<ItemInfo>(collection._list);
System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
41_regions = (regions != null) ? new List<CellRegion>(regions) : new List<CellRegion>(); 235_regions = new List<CellRegion>(regions);
System\Windows\Data\BindingExpressionBase.cs (3)
293list = new List<ValidationError>(NotifyDataErrors); 2327toRemove = new List<ValidationError>(previousErrors); 2332toRemove = new List<ValidationError>(previousErrors);
System\Windows\Ink\Events.cs (3)
130new List<UIElement>(selectedElements); 168new List<UIElement>(selectedElements); 309new List<GestureRecognitionResult>(gestureRecognitionResults);
System\Windows\Markup\BamlMapTable.cs (4)
1682AssemblyIdMap = new List<BamlAssemblyInfoRecord>(_assemblyIdToInfo), 1683TypeIdMap = new List<BamlTypeInfoRecord>(_typeIdToInfo), 1684AttributeIdMap = new List<BamlAttributeInfoRecord>(_attributeIdToInfo), 1685StringIdMap = new List<BamlStringInfoRecord>(_stringIdToInfo)
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
78List<string> resultList = new List<string>(_sharedSchemaContext.GetAllXamlNamespaces());
System\Windows\Shell\JumpList.cs (4)
69RejectedItems = new List<JumpItem>(rejectedItems).AsReadOnly(); 70RejectionReasons = new List<JumpItemRejectionReason>(reasons).AsReadOnly(); 96RemovedItems = new List<JumpItem>(removedItems).AsReadOnly(); 275_jumpItems = new List<JumpItem>(items);
PresentationUI (2)
MS\Internal\Documents\Application\ChainOfResponsibility.cs (1)
42_members = new List<T>(members);
MS\Internal\Documents\RMPublishingDialog.cs (1)
84_rmLicenses = new List<RightsManagementLicense>(grantDictionary.Values);
ReachFramework (1)
Serialization\VisualSerializer.cs (1)
1609filteredCharacters = new List<char>(glyphRun.Characters);
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
398var interfacesToImplement = new List<INamedTypeSymbol>(
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
System.Collections (1)
System\Collections\Generic\PriorityQueueDebugView.cs (1)
31var list = new List<(TElement Element, TPriority Priority)>(_queue.UnorderedItems);
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableSortedSet_1.cs (2)
1198list = new List<T>(addedItems); 1209list = new List<T>(this);
System.ComponentModel.Composition (8)
Microsoft\Internal\Collections\CollectionServices.cs (1)
93List<T> result = new List<T>(source);
System\ComponentModel\Composition\Hosting\AggregateCatalog.cs (1)
145aggregateResult = new List<Tuple<ComposablePartDefinition, ExportDefinition>>(result);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogChangeProxy.cs (1)
24_addedParts = new List<ComposablePartDefinition>(addedParts);
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (3)
36_catalogs = new List<ComposablePartCatalog>(catalogs); 59_catalogs = new List<ComposablePartCatalog>(_catalogs); 196_catalogs = new List<ComposablePartCatalog>(_catalogs);
System\ComponentModel\Composition\Hosting\CompositionBatch.cs (2)
116_partsToAdd = new List<ComposablePart>(_partsToAdd); 140_partsToRemove = new List<ComposablePart>(_partsToRemove);
System.ComponentModel.TypeConverter (5)
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\MemberDescriptor.cs (1)
342list = new List<Attribute>(_attributes!);
System\ComponentModel\PropertyDescriptorCollection.cs (1)
332List<PropertyDescriptor?> propList = new List<PropertyDescriptor?>(_properties);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
89var attributes = new List<Attribute>(ReflectGetAttributes(_type));
System.Data.Common (4)
System\Data\DataTable.cs (1)
4584_shadowIndexes = new List<Index>(_indexes);
System\Data\EnumerableRowCollection.cs (1)
114_listOfPredicates = new List<Func<TRow, bool>>(source._listOfPredicates);
System\Data\LinqDataView.cs (1)
206new List<object?>(key));
System\Data\XMLSchema.cs (1)
2868_namespacesToIgnore = new List<string>(namespacesToIgnore);
System.Diagnostics.DiagnosticSource (9)
System\Diagnostics\Activity.cs (4)
2270public List<KeyValuePair<string, string?>> Baggage => new List<KeyValuePair<string, string?>>(activity.Baggage); 2274public List<ActivityEvent> Events => new List<ActivityEvent>(activity.Events); 2278public List<ActivityLink> Links => new List<ActivityLink>(activity.Links); 2288public List<KeyValuePair<string, object?>> TagObjects => new List<KeyValuePair<string, object?>>(activity.TagObjects);
System\Diagnostics\ActivitySource.cs (1)
59var tagList = new List<KeyValuePair<string, object?>>(tags);
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 (1)
78var tagList = new List<KeyValuePair<string, object?>>(tags);
System\Diagnostics\Metrics\MeterListener.cs (1)
295internal static List<MeterListener>? GetAllListeners() => s_allStartedListeners.Count == 0 ? null : new List<MeterListener>(s_allStartedListeners);
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\EventLogPropertySelector.cs (1)
30queries = new List<string>(propertyQueries);
System.Diagnostics.Process (1)
System\Diagnostics\ProcessStartInfo.cs (1)
71_argumentList = new Collection<string>(new List<string>(arguments));
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\AuthenticablePrincipal.cs (1)
598List<string> remainingOriginalThumbprints = new List<string>(_certificateOriginalThumbprints);
System.IO.Packaging (2)
System\IO\Packaging\ZipPackage.cs (2)
580List<ZipPackagePartPiece> pieces = new List<ZipPackagePartPiece>(pieceSet); 1080partPieces = new List<ZipPackagePartPiece>(contentTypeStreamPieces.Keys);
System.IO.Pipelines (1)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
System.Linq (3)
System\Linq\Distinct.SpeedOpt.cs (1)
14public override List<TSource> ToList() => new List<TSource>(new HashSet<TSource>(_source, _comparer));
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 (1)
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (1)
145exception.Data[typeof(InterpretedFrameInfo)] ??= new List<InterpretedFrameInfo>(GetStackTraceDebugInfo()).ToArray();
System.Linq.Parallel (1)
System\Linq\ParallelEnumerable.cs (1)
4868return new List<TSource>(ToArray<TSource>(source));
System.Net.Http (2)
src\runtime\src\libraries\Common\src\System\Net\Security\SslClientAuthenticationOptionsExtensions.cs (1)
22ApplicationProtocols = options.ApplicationProtocols != null ? new List<SslApplicationProtocol>(options.ApplicationProtocols) : null,
System\Net\Http\Headers\HttpHeaders.cs (1)
760return new List<object>(sourceValues);
System.Net.HttpListener (5)
System\Net\Managed\HttpEndPointListener.cs (5)
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.Quic (1)
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (1)
66ApplicationProtocols = new List<SslApplicationProtocol>(alpnProtocols);
System.Net.Requests (1)
System\Net\WebRequest.cs (1)
248List<WebRequestPrefixElement> prefixList = new List<WebRequestPrefixElement>(PrefixList);
System.Net.WebHeaderCollection (1)
System\Net\WebHeaderCollection.cs (1)
238valueList = new List<string>(values);
System.ObjectModel (2)
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 (15)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
103: this(message, new List<Exception>(innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions))).ToArray(), cloneExceptions: false)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
142List<StackFrame> frameList = new List<StackFrame>(frames);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (3)
407var sortedTasks = new List<int>(taskTab.Keys); 484var sortedOpcodes = new List<int>(opcodeTab.Keys); 499var sortedKeywords = new List<ulong>(keywordTab.Keys);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (3)
174=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Files, enumerationOptions)).ToArray(); 184=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Directories, enumerationOptions)).ToArray(); 194=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Both, enumerationOptions)).ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (3)
121=> new List<FileInfo>((IEnumerable<FileInfo>)InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Files, enumerationOptions)).ToArray(); 136=> new List<FileSystemInfo>(InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Both, enumerationOptions)).ToArray(); 149=> new List<DirectoryInfo>((IEnumerable<DirectoryInfo>)InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Directories, enumerationOptions)).ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
5108CollectionsMarshal.AsSpan(new List<Task>(tasks));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
461activeTasksArray = (new List<Task>(activeTasksSource)).ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (1)
106public TimerQueueTimer[] Items => new List<TimerQueueTimer>(_queue.GetTimersForDebugger()).ToArray();
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\DataContractSet.cs (2)
29_referencedTypes = referencedTypes != null ? new List<Type>(referencedTypes) : null; 30_referencedCollectionTypes = referencedCollectionTypes != null ? new List<Type>(referencedCollectionTypes) : null;
System.Private.Windows.Core (1)
System\Collections\Generic\CollectionExtensions.cs (1)
24return new List<T>(new ArraySegment<T>(array, 0, count));
System.Private.Xml (15)
System\Xml\Core\XmlWriterSettings.cs (1)
243clonedSettings.CDataSectionElements = new List<XmlQualifiedName>(CDataSectionElements);
System\Xml\Schema\XdrBuilder.cs (2)
782builder._ElementDef._ElementDecl!.Values = new List<string>((string[])obj); 1080builder._AttributeDef._AttDef!.Values = new List<string>((string[])obj);
System\Xml\Schema\XmlValueConverter.cs (1)
3093return new List<string>(XmlConvert.SplitString(value));
System\Xml\XPath\Internal\CacheAxisQuery.cs (1)
22this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
System\Xml\XPath\Internal\CacheOutputQuery.cs (1)
27this.outputBuffer = new List<XPathNavigator>(other.outputBuffer);
System\Xml\XPath\Internal\ClonableStack.cs (1)
10private ClonableStack(System.Collections.Generic.IEnumerable<T> collection) : base(collection) { }
System\Xml\XPath\Internal\FollSiblingQuery.cs (1)
24_parentStk = new List<XPathNavigator>(other._parentStk);
System\Xml\XPath\Internal\Function.cs (2)
53_argumentList = new List<AstNode>(argumentList); 61_argumentList = new List<AstNode>(argumentList);
System\Xml\XPath\Internal\SortQuery.cs (1)
30_results = new List<SortKey>(other._results);
System\Xml\Xsl\XmlQueryTypeFactory.cs (3)
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);
System\Xml\Xsl\Xslt\XslAst.cs (1)
128_content = new List<XslNode>(collection);
System.Reflection.Context (5)
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 (2)
58List<PropertyInfo> results = new List<PropertyInfo>(properties); 153List<MethodInfo> results = new List<MethodInfo>(methods);
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
539var sorted = new List<KeyValuePair<string, StringHandle>>(strings);
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
82List<Type> list = new List<Type>(ExportedTypes);
System\Reflection\TypeLoading\General\Helpers.cs (1)
56List<T> list = new List<T>(enumeration);
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCache.cs (1)
418List<string> keysClone = new List<string>(keys);
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (1)
545List<WeakReference<JSObject>> copy = new(ThreadCsOwnedObjects.Values);
System.ServiceModel.Primitives (8)
System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
21: base(new List<AddressHeader>(addressHeaders))
System\ServiceModel\Description\ServiceReflector.cs (1)
637List<Type> types = new List<Type>(GetInheritedContractTypes(interfaceType));
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
38faultContractInfoList = new List<FaultContractInfo>(faultContractInfoCollection);
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (1)
89_incomingSessionTokens = new List<SecurityToken>(tokens);
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
118_channelSupportingTokenAuthenticatorSpecification = new Collection<SupportingTokenAuthenticatorSpecification>(new List<SupportingTokenAuthenticatorSpecification>(factory._channelSupportingTokenAuthenticatorSpecification));
System\ServiceModel\SynchronizedCollection.cs (1)
35Items = new List<T>(list);
System\ServiceModel\SynchronizedReadOnlyCollection.cs (2)
34Items = new List<T>(list); 63Items = new List<T>(list);
System.ServiceModel.Primitives.Tests (1)
ServiceModel\SynchronizedCollection.cs (1)
30SynchronizedCollection<int> coll2 = new SynchronizedCollection<int>(new object(), new List<int>(coll));
System.Speech (4)
Internal\SrgsCompiler\BackEnd.cs (1)
57List<State> sortedStates = new(_states);
Internal\SrgsCompiler\Graph.cs (1)
850segmentsToDelete.Add(new List<Arc>(identicalWords));
Internal\Synthesis\VoiceSynthesis.cs (1)
1189List<InstalledVoice> tokens = new(_installedVoices);
Recognition\RecognizerBase.cs (1)
169snapshotGrammars = new List<Grammar>(_grammars);
System.Text.Json (6)
System\Text\Json\Nodes\JsonArray.cs (1)
151var list = new List<JsonNode?>(items);
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
93List<JsonDerivedType> derivedTypes = new(polyOptions.DerivedTypes);
System\Text\Json\Serialization\ConfigurationList.cs (1)
21_list = source is null ? new List<TItem>() : new List<TItem>(source);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (1)
330new List<Type>(methodsByCaseType.Keys).ToArray(),
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
1100new List<JsonUnionCaseInfo>(UnionCases), 1113new List<JsonDerivedType>(polymorphismOptions.DerivedTypes),
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Emitter.cs (1)
227var sorted = new List<string>(ids);
System.Text.RegularExpressions (2)
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 (1)
1868var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
System.Text.RegularExpressions.Generator (1)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
1868var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
System.Threading.Channels (1)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
System.Threading.Tasks.Dataflow (1)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
System.Windows.Forms (3)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
204newAttributes = new(AttributeArray) 221newAttributes = new(AttributeArray)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
3898List<ToolStripItem> buttonList = fullRebuild ? new() : new(_toolStrip.Items.OfType<ToolStripItem>());
System.Windows.Forms.Design (3)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
81List<Attribute> attributes = new(AttributeArray!) 99List<Attribute> attributes = new(AttributeArray!)
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
97selectedComponents = new List<object>(components);
System.Xaml (10)
System\Xaml\Context\NameFixupGraph.cs (2)
266List<string> names = new List<string>(_dependenciesByName.Keys); 296List<object> parentObjs = new List<object>(_dependenciesByParentObject.Keys);
System\Xaml\Context\ObjectWriterContext.cs (1)
321List<XamlType> ceilingTypes = ceilingTypesEnumerable is not null ? new List<XamlType>(ceilingTypesEnumerable) : null;
System\Xaml\Schema\XamlDirective.cs (1)
39List<string> nsList = new List<string>(xamlNamespaces);
System\Xaml\XamlObjectReader.cs (1)
1123removedProperties = new List<MarkupInfo>(propertiesWithDO);
System\Xaml\XamlSchemaContext.cs (2)
57List<Assembly> listOfAssemblies = new List<Assembly>(referenceAssemblies); 1086_unexaminedAssemblies = new List<Assembly>(ReferenceAssemblies);
System\Xaml\XamlType.cs (2)
671ctorArray = new List<ConstructorInfo>(ctors).ToArray(); 1591return new List<XamlType>(typeArguments).AsReadOnly();
System\Xaml\XamlTypeName.cs (1)
34List<XamlTypeName> typeArgList = new List<XamlTypeName>(typeArguments);
vbc (1)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
220var buildRequestArguments = new List<string>(arguments);
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
220var buildRequestArguments = new List<string>(arguments);
vstest.console (1)
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
358var testPropertyValueList = new List<string>(testPropertyValueArray);
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
358var testPropertyValueList = new List<string>(testPropertyValueArray);