534 references to List
AnalyzerRunner (1)
CodeRefactoringRunner.cs (1)
202var assemblies = new List<Assembly>(MefHostServices.DefaultAssemblies);
aspire (1)
Packaging\PackagingService.cs (1)
53var channels = new List<PackageChannel>([defaultChannel, stableChannel, dailyChannel, ..prPackageChannels]);
Aspire.Hosting (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
36var existingProperties = new List<ResourcePropertySnapshot>(properties);
Aspire.Hosting.Azure (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
36var existingProperties = new List<ResourcePropertySnapshot>(properties);
BuildValidator (1)
Program.cs (1)
108var excludes = new List<string>(exclude ?? Array.Empty<string>());
Diagnostics.EFCore.FunctionalTests (1)
Helpers\TestLoggerProvider.cs (1)
38return new List<string>(_messages);
dotnet-dev-certs (1)
Program.cs (1)
56var newArgs = new List<string>(args);
dotnet-svcutil (1)
GlobalTool.cs (1)
18var arguments = new List<string>(args);
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (1)
257_parent._inputParameters = new List<string>(_arguments.GetArguments(String.Empty));
dotnet-svcutil-lib (25)
CodeDomFixup\VisitorFixup.cs (2)
56List<CodeDomVisitor> list = new List<CodeDomVisitor>(visitors); 68List<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)
185var orphanContracts = new List<ContractDescription>(this.Contracts);
dotnet-svcutil-lib.Tests (1)
FixupUtil.cs (1)
99var replacements = new List<ReplaceInfo>(_replacements);
GenerateDocumentationAndConfigFiles (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Identity.DefaultUI.WebSite (1)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (1)
419var updatedCodes = new List<string>(splitCodes.Where(s => s != code));
IIS.Common.TestLib (1)
DisposableList.cs (1)
13public DisposableList(IEnumerable<T> collection) : base(collection) { }
illink (5)
ILLink.RoslynAnalyzer (1)
DataFlow\InterproceduralState.cs (1)
55var methodsList = new List<MethodBodyValue>(Methods.GetKnownValues());
Metrics (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Metrics.Legacy (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.Arcade.Test.Common (2)
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);
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultClaimUidExtractor.cs (1)
44identitiesList = new List<ClaimsIdentity>(claimsIdentities);
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTokenSerializerTest.cs (1)
158var input = new List<byte>(data);
Microsoft.AspNetCore.Authorization (2)
AuthorizationPolicy.cs (2)
38Requirements = new List<IAuthorizationRequirement>(requirements).AsReadOnly(); 39AuthenticationSchemes = new List<string>(authenticationSchemes).AsReadOnly();
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
47_exceptionHandlers = exceptionHandlers as IExceptionHandler[] ?? new List<IExceptionHandler>(exceptionHandlers).ToArray();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (9)
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 (4)
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) }))
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\Shared\PropertyAsParameterInfo.cs (1)
180var 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.Identity.InMemory.Test (1)
InMemoryUserStore.cs (1)
419var updatedCodes = new List<string>(splitCodes.Where(s => s != code));
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (6)
Internal\ListAdapterTest.cs (6)
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);
Microsoft.AspNetCore.JsonPatch.Tests (6)
Internal\ListAdapterTest.cs (6)
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);
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
EndpointMetadataApiDescriptionProvider.cs (1)
519actionDescriptor.EndpointMetadata = new List<object>(endpointMetadata);
src\Shared\PropertyAsParameterInfo.cs (1)
180var attributes = new List<CustomAttributeData>(
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1794var metadataItems = new List<object>(requestDelegateResult.EndpointMetadata) { methodInfo, httpMethodMetadata };
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)
164var considered = new List<string?>(contentTypes);
ModelBinding\Validation\CompositeClientModelValidatorProvider.cs (1)
23ValidatorProviders = new List<IClientModelValidatorProvider>(providers);
Microsoft.AspNetCore.Mvc.Core.Test (3)
Filters\FilterProviderTest.cs (1)
142actionContext.ActionDescriptor.FilterDescriptors = new List<FilterDescriptor>(
Infrastructure\ActionSelectionTableTest.cs (1)
555var metadata = new List<object>(a.EndpointMetadata ?? Array.Empty<object>());
ModelBinding\Binders\BodyModelBinderProviderTest.cs (1)
137new List<IInputFormatter>(formatters),
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ModelBindingTestHelper.cs (1)
40ValueProviderFactories = new List<IValueProviderFactory>(options.Value.ValueProviderFactories),
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.Mvc.ViewFeatures.Test (1)
DefaultHtmlGeneratorTest.cs (1)
775metadataProvider.GetModelExplorerForType(typeof(List<string>), new List<string>(rawValue));
Microsoft.AspNetCore.OpenApi (1)
src\Shared\PropertyAsParameterInfo.cs (1)
180var attributes = new List<CustomAttributeData>(
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1037var metadataItems = new List<object>(attributes) { methodInfo, httpMethodMetadata };
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperAttributeList.cs (1)
25: base(new List<TagHelperAttribute>(attributes))
Microsoft.AspNetCore.Razor.Test (1)
TagHelpers\ReadOnlyTagHelperAttributeListTest.cs (1)
729: 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.Routing.Microbenchmarks (1)
EndpointRoutingBenchmarkBase.cs (1)
112var endpointMetadata = new List<object>(metadata ?? Array.Empty<object>());
Microsoft.AspNetCore.Routing.Tests (3)
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.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)
80hubFilters = new List<IHubFilter>(_hubOptions.HubFilters); 93hubFilters = 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)
306var responseHeaders = new List<StaticAssetResponseHeader>(descriptor.ResponseHeaders); 334var propertiesList = new List<StaticAssetProperty>(descriptor.Properties);
Microsoft.Build.Framework (1)
FileClassifier.cs (1)
244_knownImmutableDirectoriesSnapshot = new List<string>(_knownImmutableDirectories.Values);
Microsoft.Cci.Extensions (2)
HostEnvironment.cs (1)
498List<string> contractSet = new List<string>(GetFilePathsAndAddResolvedDirectoriesToLibPaths(SplitPaths(unsplitContractSet)));
Writers\CSharp\CSDeclarationWriter.Properties.cs (1)
180var parameters = new List<IParameterDefinition>(accessor.Parameters);
Microsoft.CodeAnalysis (1)
PEWriter\NativeResourceWriter.cs (1)
282byte[] data = new List<byte>(r.Data).ToArray();
Microsoft.CodeAnalysis.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.CSharp (2)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
901oldDispatches.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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
754var vsixAnalyzerReferences = new List<DiagnosticAnalyzer>(vsixAnalyzers.CastArray<DiagnosticAnalyzer>());
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenCapturing.cs (2)
64.Select(list => list == null ? null : new List<string>(list))); 291: (IList<string>)new List<string>(x)).ToList(),
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)
550var 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.Semantic.UnitTests (1)
Semantics\InheritanceBindingTests.cs (1)
8237var refs = new List<MetadataReference>(baseCompilations.Select(c => new CSharpCompilationReference(c)));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\ReferenceManagerTests.cs (1)
843List<string> newParts = new List<string>(parts);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SyntaxAnnotationTests.cs (2)
255var annotations = new List<SyntaxAnnotation>(Enumerable.Range(0, 3).Select(_ => new SyntaxAnnotation())); 385var annotations = new List<SyntaxAnnotation>(Enumerable.Range(0, 10).Select(_ => new SyntaxAnnotation()));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Classification\AbstractClassifierTests.cs (1)
290var allClassifications = new List<ClassifiedSpan>(semanticClassifications);
Microsoft.CodeAnalysis.Extensions.Package (1)
Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.Features (1)
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
230var remainingResults = new List<ExtractClassMemberAnalysisResult>(memberAnalysisResults);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.Rebuild.UnitTests (4)
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 (2)
334var args = new List<string>(commandLine.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)); 499var args = new List<string>(commandLine.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries));
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.Test.Utilities (3)
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 (1)
737new List<object[]>(ExternalPdbFormats)
Microsoft.CodeAnalysis.UnitTests (5)
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (1)
505IEnumerator valuesListEnum = new List<T>(set).GetEnumerator();
Collections\ImmutableListTestBase.cs (2)
450var basis = new List<int>(Enumerable.Range(1, 50).Select(n => n * 2)); 492var basis = new List<int>(inputData);
Collections\ImmutableSegmentedListTest.cs (1)
448var expectedList = new List<string>(new[] { "Microsoft", "Windows", "Bing", "Visual Studio", "Comics", "Computers", "Laptops" });
MetadataReferences\AssemblyMetadataTests.cs (1)
37Assert.Throws<ArgumentException>(() => AssemblyMetadata.Create(new List<ModuleMetadata>(new ModuleMetadata[] { m1.Copy(), m2.Copy(), m3.Copy() })));
Microsoft.CodeAnalysis.Workspaces (4)
Classification\Classifier.cs (1)
103var allClassifications = new List<ClassifiedSpan>(semanticClassifications.Where(s => s.TextSpan.OverlapsWith(textSpan)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
302var targets = new List<string>(requiredTargets);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
1849var defines = new List<KeyValuePair<string, object>>(options.PreprocessorSymbols);
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.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.DotNet.Deployment.Tasks.Links (1)
Microsoft.DotNet.Helix.Client (1)
generated-code\HelixApi.cs (1)
409:base(parameters)
Microsoft.DotNet.Helix.Sdk.Tests (2)
FindDotNetCliPackageTests.cs (2)
71List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>(GetDefaultRequestResponseHelpers()); 121List<RequestResponseHelper> requestResponseHelpers = new List<RequestResponseHelper>(GetDefaultRequestResponseHelpers());
Microsoft.DotNet.NuGetRepack.Tests (2)
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);
Microsoft.DotNet.XUnitAssert.Tests (21)
AsyncCollectionAssertsTests.cs (9)
739 var actual = actualArray is null ? null : new List<int>(actualArray).ToAsyncEnumerable(); 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(); 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 (12)
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 }); 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 }); 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 });
Microsoft.Extensions.AI.Abstractions (3)
ChatCompletion\ChatOptions.cs (2)
171options.StopSequences = new List<string>(StopSequences); 176options.Tools = new List<AITool>(Tools);
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.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
492_list = new List<IFileInfo>(files);
Microsoft.Extensions.DependencyInjection (5)
ServiceLookup\CallSiteChain.cs (1)
51var ordered = new List<KeyValuePair<ServiceIdentifier, ChainItemInfo>>(_callSiteChain);
ServiceLookup\ServiceProviderEngineScope.cs (2)
255public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.RootProvider.CallSiteFactory.Descriptors); 256public List<object> Disposables => new List<object>(_serviceProvider.Disposables);
ServiceProvider.cs (2)
315public List<ServiceDescriptor> ServiceDescriptors => new List<ServiceDescriptor>(_serviceProvider.Root.RootProvider.CallSiteFactory.Descriptors); 316public List<object> Disposables => new List<object>(_serviceProvider.Root.Disposables);
Microsoft.Extensions.FileSystemGlobbing (1)
Internal\Patterns\PatternBuilder.cs (1)
175segmentsPatternStartsWith = new List<IPathSegment>(allSegments);
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
459public 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)
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();
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.TensorFlow.Tests (5)
TensorFlowEstimatorTests.cs (2)
65new List<TestData>(new TestData[] { 106new List<TestData>(new TestData[] {
TensorflowTests.cs (3)
190new List<TestData>(new TestData[] { 262return new List<ShapeData>(new ShapeData[] { 381var 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 (2)
Model\BertTokenizer.cs (2)
247list = new List<int>(ids); 269list = new List<int>(ids);
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.Http.Headers (1)
ObjectCollection.cs (1)
24var list = other == null ? new List<T>() : new List<T>(other);
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\Handler\Hover\HoverHandler.cs (1)
65var descriptionBuilder = new List<TaggedText>(info.Description);
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)
1056_floatRegisters = new List<MilColorF?>(effect._floatRegisters); 1060_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); 2333toRemove = new List<ValidationError>(previousErrors); 2338toRemove = 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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxListExtensions.cs (1)
17var result = new List<T>(syntaxList);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
48var currentUsings = new List<UsingDirectiveSyntax>(usings);
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);
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)
1130list = new List<T>(addedItems); 1141list = 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)
2878_namespacesToIgnore = new List<string>(namespacesToIgnore);
System.Diagnostics.DiagnosticSource (5)
System\Diagnostics\ActivitySource.cs (1)
55var 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)
81var 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.Process (2)
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.IO.Packaging (2)
System\IO\Packaging\ZipPackage.cs (2)
580List<ZipPackagePartPiece> pieces = new List<ZipPackagePartPiece>(pieceSet); 1078partPieces = new List<ZipPackagePartPiece>(contentTypeStreamPieces.Keys);
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\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)
739return 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)
68ApplicationProtocols = 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\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 (1)
103: this(message, new List<Exception>(innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions))).ToArray(), cloneExceptions: false)
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\EventSource.cs (3)
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\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\Threading\Tasks\Task.cs (1)
4942CollectionsMarshal.AsSpan(new List<Task>(tasks));
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
461activeTasksArray = (new List<Task>(activeTasksSource)).ToArray();
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)
783builder._ElementDef._ElementDecl!.Values = new List<string>((string[])obj); 1081builder._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)
540var 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)
60List<T> list = new List<T>(enumeration);
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCache.cs (1)
418List<string> keysClone = new List<string>(keys);
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.Text.Json (3)
System\Text\Json\Nodes\JsonArray.cs (1)
151var list = new List<JsonNode?>(items);
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
92List<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.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)
1995var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
1995var temp = new List<KeyValuePair<string, string>>(s_definedCategories);
System.Threading.Channels (1)
src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
System.Threading.Tasks.Dataflow (1)
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)
3853List<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);
Test.Utilities (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
Text.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
592var sorted = new List<TextSpan>(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
86var leadingTriviaToKeep = new List<SyntaxTrivia>(node.GetLeadingTrivia());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
387var interfacesToImplement = new List<INamedTypeSymbol>(
VBCSCompiler.UnitTests (1)
CompilerServerTests.cs (1)
185var arguments = new List<string>(argumentsSingle.Split(' '));
WindowsBase.Tests (4)
System\Windows\WeakEventManagerTests.cs (4)
2098var expectedHandlers = new List<Delegate>(handlers); 2523var expectedListeners = new List<CustomWeakEventListener>(listeners); 5357var expectedListeners = new List<CustomWeakEventListener>(listeners); 5616var expectedHandlers = new List<Delegate>(handlers);
WinFormsControlsTest (1)
UserControls\UserControlWithObjectCollectionEditor.cs (1)
26get { return new List<int>(new int[] { 1, 2, 3 }); }
xunit.console (1)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (1)
95var result = new List<string>(GetFallbacks(dependencyContext.RuntimeGraph).Fallbacks);