1357 references to ToArray
Aspire.Dashboard (4)
DashboardWebApplication.cs (1)
605endpointConfiguration.ListenOptions.UseConnectionTypes(connectionTypes.ToArray());
Model\ResourceOutgoingPeerResolver.cs (1)
161subscriptions = _subscriptions.ToArray();
Model\ThemeManager.cs (1)
146subscriptions = _subscriptions.ToArray();
Otlp\Model\OtlpHelpers.cs (1)
242return values?.ToArray() ?? [];
Aspire.Hosting (3)
Eventing\DistributedApplicationEventing.cs (3)
31foreach (var subscription in subscriptions.ToArray()) 58foreach (var subscription in subscriptions.ToArray()) 67foreach (var subscription in subscriptions.ToArray())
Aspire.Hosting.Nats (1)
NatsBuilderExtensions.cs (1)
124return builder.WithArgs(args.ToArray());
Aspire.Hosting.Tests (1)
ProjectResourceTests.cs (1)
651var appBuilder = DistributedApplication.CreateBuilder(resolvedArgs.ToArray());
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
84return args.ToArray();
Aspire.Workload.Tests (2)
WorkloadTestsBase.cs (2)
244foundRows.Add(expectedRow with { Endpoints = endpointsFound.ToArray() }); 254return foundRows.ToArray();
BuildValidator (1)
Program.cs (1)
111var options = new Options(assembliesPath, referencesPath, excludes.ToArray(), sourcePath, verbose, quiet, debug, debugPath);
CodeGenerator (1)
HttpUtilities\HttpUtilitiesGeneratorHelpers.cs (1)
52return shifts.ToArray();
Crossgen2Tasks (6)
PrepareForReadyToRunCompilation.cs (6)
41public ITaskItem[] ReadyToRunCompileList => _compileList.ToArray(); 43public ITaskItem[] ReadyToRunSymbolsCompileList => _symbolsCompileList.ToArray(); 48public ITaskItem[] ReadyToRunFilesToPublish => _r2rFiles.ToArray(); 51public ITaskItem[] ReadyToRunAssembliesToReference => _r2rReferences.ToArray(); 54public ITaskItem[] ReadyToRunCompositeBuildReferences => _r2rCompositeReferences.ToArray(); 57public ITaskItem[] ReadyToRunCompositeBuildInput => _r2rCompositeInput.ToArray();
csc (1)
src\Compilers\Shared\BuildClient.cs (1)
167var exitCode = RunLocalCompilation(parsedArgs.ToArray(), buildPaths, textWriter);
dotnet-dev-certs (1)
Program.cs (1)
54args = newArgs.ToArray();
dotnet-svcutil (1)
GlobalTool.cs (1)
26return Tool.Main(arguments.ToArray());
dotnet-svcutil.xmlserializer (3)
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (1)
196helpCategory.Options = options.ToArray();
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (2)
84success = (bool)method.Invoke(null, new object[] { types.ToArray(), mappings.ToArray(), fs });
dotnet-svcutil-lib (32)
CodeDomFixup\VisitorFixup.cs (1)
56return list.ToArray();
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
3963return lines.ToArray();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
3589return listDst.ToArray();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (9)
115argTypes.ToArray(), 269argTypes.ToArray(), 623argTypes.ToArray(), 624argNames.ToArray(), 797argTypes.ToArray()); 973argTypes.ToArray(), 974argNames.ToArray(), 1418argTypes.ToArray(), 2132argTypes.ToArray());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableServices.cs (1)
47return nodeList.ToArray();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (1)
1394return list.ToArray();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
255Fx.s_breakOnExceptionTypesCache = types.ToArray();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (1)
687waiters = _waiterList.ToArray();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InternalBufferManager.cs (1)
96_bufferPools = bufferPoolList.ToArray();
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
330return dnsEntries.ToArray();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
87return results.ToArray();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
1076byte[] array = _bytes.ToArray();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
471return attrTypeAttributes.ToArray();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (1)
1543MessagePartDescription[] partDescriptions = partDescriptionList.ToArray();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
661XmlSerializer[] uniqueSerializers = CreateSerializersFromMappings(uniqueMappings.ToArray(), _type);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
211array = _requests.ToArray(); 579array = _timedOutRequests.ToArray();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
168FaultContractInfo[] temp = faultContractInfoList.ToArray();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InvokerUtil.cs (1)
46var outputPos = outputParamPositions.ToArray();
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();
Shared\Options\OptionBase.cs (1)
126var other = new OptionBase((string)this.Name, this.Aliases.ToArray());
TypeLoader.cs (1)
91return listType.ToArray();
dotnet-user-jwts (1)
Helpers\ConsoleTable.cs (1)
93var columnHeaders = string.Format(CultureInfo.InvariantCulture, formatRow, _columns.ToArray());
HeaderPropagationSample (1)
Startup.cs (1)
124return new StringValues(values.ToArray());
IIS.Common.TestLib (1)
TestConnections.cs (1)
205return headers.ToArray();
IIS.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
illink (5)
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
136 return (diagnosticId, args.ToArray ());
InMemory.FunctionalTests (5)
Http2\Http2ConnectionTests.cs (1)
2449Headers[nameString] = new StringValues(l.ToArray());
Http2\Http2TestBase.cs (1)
246await context.Response.Body.WriteAsync(data.ToArray(), 0, data.Count);
src\Servers\Kestrel\shared\test\StreamExtensions.cs (2)
73return data.ToArray(); 89return data.ToArray();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
150return new AggregateException("Exceptions occurred while accessing blocks", _blockAccessExceptions.ToArray());
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.WebSockets.cs (1)
90await SendMessages(ws, messages.ToArray());
Interop.FunctionalTests (3)
Http2\Http2RequestTests.cs (1)
323return (data.ToArray(), responseMessage.TrailingHeaders);
src\Servers\Kestrel\shared\test\StreamExtensions.cs (2)
73return data.ToArray(); 89return data.ToArray();
Keycloak.Web (1)
WeatherApiClient.cs (1)
22return forecasts?.ToArray() ?? [];
Microsoft.Analyzers.Local (2)
ApiLifecycle\Json\JsonArray.cs (1)
133Items = array._items.ToArray();
ApiLifecycle\Utils.cs (1)
68return result.ToArray();
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTokenSerializerTest.cs (1)
160return input.ToArray();
Microsoft.AspNetCore.Authentication.Cookies (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
291responseHeaders.SetCookie = new StringValues(newValues.ToArray()); 332context.Response.Cookies.Append(keyValuePairs.ToArray(), new CookieOptions(options)
Microsoft.AspNetCore.Authentication.Core (2)
AuthenticationSchemeProvider.cs (2)
152_requestHandlersCopy = _requestHandlers.ToArray(); 197_requestHandlersCopy = _requestHandlers.ToArray();
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
145return Path.Combine(segments.ToArray());
Microsoft.AspNetCore.Components (5)
CascadingParameterState.cs (1)
135return result?.ToArray() ?? Array.Empty<CascadingParameterInfo>();
src\Http\Routing\src\Patterns\RouteParameterParser.cs (1)
237return new ParameterPolicyParseResults(currentIndex, constraints.ToArray());
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
537? parameterPolicyReferences.ToDictionary(kvp => kvp.Key, kvp => (IReadOnlyList<RoutePatternParameterPolicyReference>)kvp.Value.ToArray()) 638parameterConstraints?.ToArray() ?? Array.Empty<RoutePatternParameterPolicyReference>(),
src\Http\Routing\src\RouteConstraintBuilder.cs (1)
64constraint = new CompositeRouteConstraint(kvp.Value.ToArray());
Microsoft.AspNetCore.Components.Authorization (1)
AttributeAuthorizeDataCache.cs (1)
43return authorizeDatas?.ToArray();
Microsoft.AspNetCore.Components.Endpoints (4)
Discovery\PageCollectionBuilder.cs (2)
67var pageMetadata = metadata.ToArray(); 75return list.ToArray();
src\Shared\PropertyHelper\PropertyHelper.cs (2)
477result = filteredProperties.ToArray(); 515result = propertyHelpers.ToArray();
Microsoft.AspNetCore.Components.Performance (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.Components.Server (1)
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
283return streams?.ToArray();
Microsoft.AspNetCore.Components.Server.Tests (3)
Circuits\RemoteRendererTest.cs (1)
176foreach (var id in renderIds.ToArray())
Circuits\RenderBatchWriterTest.cs (1)
304return result.ToArray();
ProtectedBrowserStorageTest.cs (1)
279Assert.Equal(expectedPurposes, dataProtectionProvider.ProtectorsCreated.ToArray());
Microsoft.AspNetCore.Components.WebAssembly (4)
Hosting\WebAssemblyCultureProvider.cs (1)
96return culturesToLoad.ToArray();
Hosting\WebAssemblyHostConfiguration.cs (2)
27IList<IConfigurationSource> IConfigurationBuilder.Sources => new ReadOnlyCollection<IConfigurationSource>(_sources.ToArray()); 32IEnumerable<IConfigurationProvider> IConfigurationRoot.Providers => new ReadOnlyCollection<IConfigurationProvider>(_providers.ToArray());
HotReload\HotReloadAgent.cs (1)
252return types?.ToArray() ?? Type.EmptyTypes;
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.CookiePolicy.Test (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
291responseHeaders.SetCookie = new StringValues(newValues.ToArray()); 332context.Response.Cookies.Append(keyValuePairs.ToArray(), new CookieOptions(options)
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
47_exceptionHandlers = exceptionHandlers as IExceptionHandler[] ?? new List<IExceptionHandler>(exceptionHandlers).ToArray();
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (1)
64return dnsEntries.ToArray();
Microsoft.AspNetCore.Grpc.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.Http (4)
Features\QueryFeature.cs (1)
210_accumulator[entry.Key] = new StringValues(entry.Value.ToArray());
Features\RequestCookiesFeature.cs (1)
88_original = headers.ToArray();
Internal\ResponseCookies.cs (1)
160Headers.SetCookie = new StringValues(newValues.ToArray());
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
30return keyValuePairs.ToArray();
Microsoft.AspNetCore.Http.Abstractions (3)
Routing\EndpointMetadataCollection.cs (1)
124var results = matches == null ? Array.Empty<T>() : matches.ToArray();
src\Shared\PropertyHelper\PropertyHelper.cs (2)
477result = filteredProperties.ToArray(); 515result = propertyHelpers.ToArray();
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionManager.cs (1)
200Task.WaitAll(tasks.ToArray(), TimeSpan.FromSeconds(5));
Microsoft.AspNetCore.Http.Connections.Tests (1)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
103return CreateSegments(segments.ToArray());
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.Http.Tests (4)
Features\FormFeatureTests.cs (4)
463context.Request.Body = new NonSeekableReadStream(formContent.ToArray()); 487context.Request.Body = new NonSeekableReadStream(formContent.ToArray()); 511context.Request.Body = new NonSeekableReadStream(formContent.ToArray()); 535context.Request.Body = new NonSeekableReadStream(formContent.ToArray());
Microsoft.AspNetCore.JsonPatch (1)
Internal\ParsedPath.cs (1)
89return strings.ToArray();
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ActualApiResponseMetadataFactory.cs (1)
113return metadata.ToArray();
Microsoft.AspNetCore.Mvc.Core (11)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
158attributes = filteredAttributes.ToArray();
BindAttribute.cs (1)
32Include = items.ToArray();
Controllers\ControllerBinderDelegateProvider.cs (2)
40List<ParameterDescriptor> list => list.ToArray(), 46List<ParameterDescriptor> list => list.ToArray(),
ModelBinding\Binders\FormFileModelBinder.cs (1)
106value = ((List<IFormFile>)postedFiles).ToArray();
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
351return propertyEntries.ToArray();
MvcCoreLoggerExtensions.cs (1)
277return filterList.ToArray();
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
291responseHeaders.SetCookie = new StringValues(newValues.ToArray()); 332context.Response.Cookies.Append(keyValuePairs.ToArray(), new CookieOptions(options)
src\Shared\PropertyHelper\PropertyHelper.cs (2)
477result = filteredProperties.ToArray(); 515result = propertyHelpers.ToArray();
Microsoft.AspNetCore.Mvc.Core.Test (3)
ModelBinding\Binders\CollectionModelBinderTest.cs (2)
118Assert.Equal(new[] { 42, 100, 200 }, list.ToArray()); 170Assert.Equal(new[] { 42, 100, 200 }, list.ToArray());
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
1469var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(excludeFilters.ToArray());
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ComplexRecordIntegrationTest.cs (1)
2508Assert.Equal(new[] { 123 }, model.OrderIds.ToArray());
ComplexTypeIntegrationTestBase.cs (1)
2678Assert.Equal(new[] { 123 }, model.OrderIds.ToArray());
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
144return results.ToArray();
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionInvokerTest.cs (1)
1477handlers: handlers.ToArray(),
Microsoft.AspNetCore.Mvc.Testing (1)
DeferredHostBuilder.cs (1)
50var host = (IHost)_hostFactory!(args.ToArray());
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Infrastructure\DefaultTempDataSerializer.cs (2)
100return array.ToArray(); 111return array.ToArray();
MemberExpressionCacheKey.cs (1)
36return new MemberExpressionCacheKey(ModelType, members.ToArray());
Microsoft.AspNetCore.OpenApi.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1038var endpointMetadata = new EndpointMetadataCollection(metadataItems.ToArray());
Microsoft.AspNetCore.OutputCaching (1)
OutputCachePolicyBuilder.cs (1)
326_ => new CompositePolicy(_policies.ToArray()),
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.Routing (17)
Matching\DfaMatcherBuilder.cs (8)
669endpointSelectorPolicies?.ToArray() ?? Array.Empty<IEndpointSelectorPolicy>(), 829_slots.ToArray(), 830_captures.ToArray(), 832_complexSegments.ToArray(), 833_constraints.ToArray()); 977return (nodeBuilderPolicies.ToArray(), endpointComparerPolicies.ToArray(), endpointSelectorPolicies.ToArray());
Matching\HostMatcherPolicy.cs (1)
283return result?.ToArray();
Patterns\RoutePatternFactory.cs (2)
537? parameterPolicyReferences.ToDictionary(kvp => kvp.Key, kvp => (IReadOnlyList<RoutePatternParameterPolicyReference>)kvp.Value.ToArray()) 638parameterConstraints?.ToArray() ?? Array.Empty<RoutePatternParameterPolicyReference>(),
RouteConstraintBuilder.cs (1)
64constraint = new CompositeRouteConstraint(kvp.Value.ToArray());
src\Shared\PropertyHelper\PropertyHelper.cs (2)
477result = filteredProperties.ToArray(); 515result = propertyHelpers.ToArray();
Template\TemplateBinder.cs (2)
150constraints = constraintList?.ToArray() ?? Array.Empty<(string, IRouteConstraint)>(); 151parameterTransformers = parameterTransformerList?.ToArray() ?? Array.Empty<(string, IOutboundParameterTransformer)>();
Tree\TreeRouter.cs (1)
124_linkGenerationTree = new LinkGenerationDecisionTree(outboundMatches.ToArray());
Microsoft.AspNetCore.Routing.Abstractions (2)
src\Shared\PropertyHelper\PropertyHelper.cs (2)
477result = filteredProperties.ToArray(); 515result = propertyHelpers.ToArray();
Microsoft.AspNetCore.Routing.Microbenchmarks (6)
Matching\JumpTableMultipleEntryBenchmark.cs (4)
47_linearSearch = new LinearSearchJumpTable(0, -1, entries.ToArray()); 48_dictionary = new DictionaryJumpTable(0, -1, entries.ToArray()); 49_trie = new ILEmitTrieJumpTable(0, -1, entries.ToArray(), vectorize: false, _dictionary); 50_vectorTrie = new ILEmitTrieJumpTable(0, -1, entries.ToArray(), vectorize: true, _dictionary);
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.Routing.Tests (3)
LinkGeneratorIntegrationTest.cs (1)
203LinkGenerator = CreateLinkGenerator(endpoints.ToArray());
Matching\DfaMatcherTest.cs (2)
457Assert.Equal(endpoints.ToArray(), set.candidates.Select(e => e.Endpoint).OrderBy(e => ((RouteEndpoint)e).RoutePattern.RawText).ToArray()); 562Assert.Equal(endpoints.ToArray(), set.candidates.Select(e => e.Endpoint).OrderBy(e => ((RouteEndpoint)e).RoutePattern.RawText).ToArray());
Microsoft.AspNetCore.Security.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
150return new AggregateException("Exceptions occurred while accessing blocks", _blockAccessExceptions.ToArray());
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
30return keyValuePairs.ToArray();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
ServerTests.cs (1)
270Assert.True(Task.WaitAll(requestTasks.ToArray(), TimeSpan.FromSeconds(60)), "Timed out");
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
150return new AggregateException("Exceptions occurred while accessing blocks", _blockAccessExceptions.ToArray());
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
30return keyValuePairs.ToArray();
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeployer.cs (1)
505throw new AggregateException($"Operation did not succeed after {retryCount} retries, serverManagerConfig: {DumpServerManagerConfig()}", exceptions.ToArray());
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Infrastructure\TransportConnectionManager.cs (2)
68var allClosedTask = Task.WhenAll(closeTasks.ToArray()); 90var allAbortedTask = Task.WhenAll(abortTasks.ToArray());
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
30return keyValuePairs.ToArray();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (7)
Http2\Http2HeadersEnumeratorTests.cs (1)
148return headers.ToArray();
Http3\Http3HeadersEnumeratorTests.cs (1)
155return headers.ToArray();
HttpParserTests.cs (1)
952return CreateSegments(segments.ToArray());
src\Servers\Kestrel\shared\test\StreamExtensions.cs (2)
73return data.ToArray(); 89return data.ToArray();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
150return new AggregateException("Exceptions occurred while accessing blocks", _blockAccessExceptions.ToArray());
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
103return CreateSegments(segments.ToArray());
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
150return new AggregateException("Exceptions occurred while accessing blocks", _blockAccessExceptions.ToArray());
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
150return new AggregateException("Exceptions occurred while accessing blocks", _blockAccessExceptions.ToArray());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
150return new AggregateException("Exceptions occurred while accessing blocks", _blockAccessExceptions.ToArray());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
src\Servers\Kestrel\shared\test\StreamExtensions.cs (2)
73return data.ToArray(); 89return data.ToArray();
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
150return new AggregateException("Exceptions occurred while accessing blocks", _blockAccessExceptions.ToArray());
Microsoft.AspNetCore.Shared.Tests (19)
CommandLineApplicationTests.cs (16)
345Assert.Equal(arguments, app.RemainingArguments.ToArray()); 389Assert.Equal(arguments, app.RemainingArguments.ToArray()); 465Assert.Equal(arguments, app.RemainingArguments.ToArray()); 508Assert.Equal(arguments, app.RemainingArguments.ToArray()); 551Assert.Equal(arguments, app.RemainingArguments.ToArray()); 565Assert.Equal(new[] { unexpectedOption, unexpectedValue }, app.RemainingArguments.ToArray()); 580Assert.Equal(new[] { unexpectedOption, unexpectedValue }, app.RemainingArguments.ToArray()); 597app.RemainingArguments.ToArray()); 613app.RemainingArguments.ToArray()); 628Assert.Equal(new[] { unexpectedOption, unexpectedValue }, app.RemainingArguments.ToArray()); 733Assert.Equal(new[] { unexpectedOption, "run" }, testCmd.RemainingArguments.ToArray()); 771Assert.Equal(arguments, app.RemainingArguments.ToArray()); 924Assert.Equal(expectedRemaining, app.RemainingArguments.ToArray()); 950Assert.Equal(expectedRemaining, app.RemainingArguments.ToArray()); 977Assert.Equal(expectedRemaining, app.RemainingArguments.ToArray()); 1004Assert.Equal(expectedRemaining, app.RemainingArguments.ToArray());
src\Shared\Debugger\StringValuesDictionaryDebugView.cs (1)
30return keyValuePairs.ToArray();
src\Shared\PropertyHelper\PropertyHelper.cs (2)
477result = filteredProperties.ToArray(); 515result = propertyHelpers.ToArray();
Microsoft.AspNetCore.SignalR.Client.Core (4)
HubConnection.cs (4)
750await InvokeStreamCore(connectionState, methodName, irq, args, streamIds?.ToArray(), cancellationToken).ConfigureAwait(false); 1095await InvokeCore(connectionState, methodName, irq, args, streamIds?.ToArray(), cancellationToken).ConfigureAwait(false); 1243var invocationMessage = new InvocationMessage(null, methodName, args, streamIds?.ToArray()); 2059_copiedHandlers = _invocationHandlers.ToArray();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
772Assert.Equal(new[] { 0, 1, 2, 3, 4 }, results.ToArray());
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HubConnectionTests.Protocol.cs (1)
403Assert.Equal(new[] { "1", "2", "3", }, notifications.ToArray());
TestHttpMessageHandler.cs (1)
33return _receivedRequests.ToArray();
Microsoft.AspNetCore.SignalR.Common.Tests (1)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
103return CreateSegments(segments.ToArray());
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
103return CreateSegments(segments.ToArray());
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
190streamIds = newStreamIds?.ToArray() ?? Array.Empty<string>();
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Protocol\MessagePackHubProtocolWorker.cs (1)
283return streams?.ToArray();
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
190streamIds = newStreamIds?.ToArray() ?? Array.Empty<string>();
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
DummyHubProtocol.cs (1)
33return _writtenMessages.ToArray();
Microsoft.AspNetCore.WebSockets.Microbenchmarks (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
Microsoft.AspNetCore.WebUtilities (1)
KeyValueAccumulator.cs (1)
101_accumulator[entry.Key] = new StringValues(entry.Value.ToArray());
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (3)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
103return CreateSegments(segments.ToArray());
Microsoft.AspNetCore.WebUtilities.Tests (2)
HttpRequestStreamReaderTest.cs (1)
436return new MemoryStream(data.ToArray());
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
103return CreateSegments(segments.ToArray());
Microsoft.Build (20)
BackEnd\BuildManager\BuildManager.cs (1)
2782remoteLoggers.ToArray()
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
568BuildRequestBlocker blocker = new BuildRequestBlocker(currentEntry.Request.GlobalRequestId, currentEntry.GetActiveTargets(), requestsToIssue.ToArray()); 1273BuildRequestBlocker blocker = new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), requestsToIssue.ToArray());
BackEnd\Components\Caching\ResultsCache.cs (1)
220response.Results = new BuildResult(request, allResults, targetsToAddResultsFor.ToArray(), null);
BackEnd\Components\RequestBuilder\IntrinsicTasks\CallTarget.cs (1)
46public ITaskItem[] TargetOutputs => _targetOutputs.ToArray();
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (4)
120public ITaskItem[] TargetOutputs => _targetOutputs.ToArray(); 420var projectToBuildInParallel = projectsToBuildList.ToArray(); 472Properties = expandedProperties.ToArray(); 489Targets = expandedTargets.ToArray();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
1049return resultsList.ToArray(); 1180.GetTargetsUsedToBuildRequest(_requestEntry.Request).ToArray();
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
646targetOutputItems = targetOutputItemsList.ToArray();
BackEnd\Components\Scheduler\Scheduler.cs (1)
2820string.Join(", ", buildRequest.Targets.ToArray()));
Construction\Solution\SolutionProjectGenerator.cs (1)
784return projectInstances.ToArray();
Evaluation\Evaluator.cs (1)
2566string streamImports = string.Join(";", _streamImports.ToArray());
Evaluation\Expander.cs (1)
910return arguments.ToArray();
Graph\ParallelWorkSet.cs (1)
148Task.WaitAll(_tasks.ToArray());
Instance\ProjectItemInstance.cs (1)
1107return result.ToArray();
Logging\ParallelLogger\ParallelLoggerHelpers.cs (1)
165return stackTrace.ToArray();
TypeLoader.cs (1)
62return runtimeAssembliesList.ToArray();
Microsoft.Build.CommandLine.UnitTests (2)
TestProgram.cs (1)
15int returnCode = Xunit.ConsoleClient.Program.Main(newArgs.ToArray());
XMake_Tests.cs (1)
1975return fileNamesToReturn.ToArray();
Microsoft.Build.Engine.OM.UnitTests (1)
TestProgram.cs (1)
15int returnCode = Xunit.ConsoleClient.Program.Main(newArgs.ToArray());
Microsoft.Build.Engine.UnitTests (4)
Definition\ItemDataCollectionValue_Tests.cs (1)
26return result.ToArray();
Definition\ToolsVersion_Tests.cs (1)
980return matches.ToArray();
Graph\ResultCacheBasedBuilds_Tests.cs (1)
506return expectedOutputForNode.ToArray();
TestProgram.cs (1)
15int returnCode = Xunit.ConsoleClient.Program.Main(newArgs.ToArray());
Microsoft.Build.Framework.UnitTests (1)
TestProgram.cs (1)
15int returnCode = Xunit.ConsoleClient.Program.Main(newArgs.ToArray());
Microsoft.Build.Tasks.CodeAnalysis (3)
MapSourceRoots.cs (1)
196MappedSourceRoots = mappedSourceRoots.ToArray();
Vbc.cs (2)
580commandLine.AppendSwitchIfNotNull("/link:", links.ToArray(), ","); 585commandLine.AppendSwitchIfNotNull("/reference:", references.ToArray(), ",");
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
DotNetSdkTests.cs (1)
593return foundConfigs.ToArray();
Microsoft.Build.Tasks.Core (77)
AssemblyDependency\AssemblyInformation.cs (2)
487_assemblyDependencies = ret.ToArray(); 527_assemblyFiles = assemblyFiles.ToArray();
AssemblyDependency\Reference.cs (1)
308return _expectedExtensions.ToArray();
AssemblyDependency\ReferenceTable.cs (9)
1070dependentAssemblies = dependencies.ToArray(); 2056redistList = RedistList.GetRedistList(assemblyTableInfos.ToArray()); 2649primaryFiles = primaryItems.ToArray(); 2650dependencyFiles = dependencyItems.ToArray(); 2651relatedFiles = relatedItems.ToArray(); 2652satelliteFiles = satelliteItems.ToArray(); 2653serializationAssemblyFiles = serializationAssemblyItems.ToArray(); 2654scatterFiles = scatterItems.ToArray(); 2666copyLocalFiles = copyLocalItems.ToArray();
AssemblyDependency\ResolveAssemblyReference.cs (5)
1022get { return _filesWritten.ToArray(); } 1050public ITaskItem[] UnresolvedAssemblyConflicts => _unresolvedConflicts.ToArray(); 2846return String.Join(", ", subsetNames.ToArray()); 3010_suggestedRedirects = holdSuggestedRedirects.ToArray(); 3126_assemblyNames = assembliesLeft.ToArray();
AssignCulture.cs (2)
219AssignedFilesWithCulture = cultureList.ToArray(); 220AssignedFilesWithNoCulture = noCultureList.ToArray();
AssignLinkMetadata.cs (1)
71OutputItems = outputItems.ToArray();
AssignProjectConfiguration.cs (2)
239AssignedProjects = resolvedReferences.ToArray(); 240UnassignedProjects = unresolvedReferences.ToArray();
BootstrapperUtil\BootstrapperBuilder.cs (2)
497return list.ToArray(); 725return list.ToArray();
BootstrapperUtil\BuildResults.cs (2)
50return _componentFiles.ToArray(); 66return _messages.ToArray();
BootstrapperUtil\xmlvalidationresults.cs (2)
52public string[] ValidationErrors => _validationErrors.ToArray(); 64public string[] ValidationWarnings => _validationWarnings.ToArray();
CallTarget.cs (1)
40public ITaskItem[] TargetOutputs => _targetOutputs.ToArray();
CombinePath.cs (1)
79CombinedPaths = combinedPathsList.ToArray();
ConvertToAbsolutePath.cs (1)
75AbsolutePaths = absolutePathsList.ToArray();
Copy.cs (3)
443CopiedFiles = destinationFilesSuccessfullyCopied.ToArray(); 796SourceFiles = sourceFiles.ToArray(); 797DestinationFiles = destinationFiles.ToArray();
CreateItem.cs (2)
92Include = outputItems.ToArray(); 210return (expanded.ToArray(), !Log.HasLoggedErrors);
Delete.cs (2)
113DeletedFiles = deletedFilesList.ToArray(); 168DeletedFiles = deletedFilesList.ToArray();
Exec.cs (1)
189public ITaskItem[] ConsoleOutput => !ConsoleToMSBuild ? Array.Empty<ITaskItem>() : _nonEmptyOutput.ToArray();
FileIO\ReadLinesFromFile.cs (1)
65Lines = nonEmptyLines.ToArray();
FindInvalidProjectReferences.cs (1)
104InvalidReferences = invalidReferences.ToArray();
GenerateResource.cs (4)
682Sources = newSources.ToArray(); 723OutputResources = cachedOutputFiles.ToArray(); 855ITaskItem[] outputResources = process.ExtractedResWFiles.ToArray(); 2719library.OutputFiles = resWFilesForThisAssembly.ToArray();
GetAssemblyIdentity.cs (1)
96Assemblies = list.ToArray();
GetInstalledSDKLocations.cs (1)
187InstalledSDKs = outputItems.ToArray();
GetSDKReferenceFiles.cs (3)
533References = resolvedReferenceAssemblies.ToArray(); 534CopyLocalFiles = copyLocalReferenceAssemblies.ToArray(); 562RedistFiles = redistReferenceItems.ToArray();
ListOperators\FindUnderPath.cs (2)
111InPath = inPathList.ToArray(); 112OutOfPath = outOfPathList.ToArray();
ListOperators\RemoveDuplicates.cs (1)
59Filtered = filteredList.ToArray();
MakeDir.cs (1)
90DirectoriesCreated = items.ToArray();
ManifestUtil\AssemblyReferenceCollection.cs (1)
189return _list.ToArray();
ManifestUtil\ComImporter.cs (1)
109ComClasses = comClassList.ToArray();
ManifestUtil\CompatibleFrameworkCollection.cs (1)
47return _list.ToArray();
ManifestUtil\DeployManifest.cs (1)
636get => _compatibleFrameworks.Count > 0 ? _compatibleFrameworks.ToArray() : null;
ManifestUtil\FileAssociationCollection.cs (1)
47return _list.ToArray();
ManifestUtil\FileReference.cs (2)
66_typeLibs = typeLibs.ToArray(); 79_comClasses = comClasses.ToArray();
ManifestUtil\FileReferenceCollection.cs (1)
112return _list.ToArray();
ManifestUtil\ManifestReader.cs (1)
49return comInfoList.ToArray();
Move.cs (1)
181MovedFiles = destinationFilesSuccessfullyMoved.ToArray();
MSBuild.cs (3)
100public ITaskItem[] TargetOutputs => _targetOutputs.ToArray(); 429Properties = expandedProperties.ToArray(); 447Targets = expandedTargets.ToArray();
RedistList.cs (1)
1060s_subsetListPathCache[key] = subsetFilesForFrameworkDirectory.ToArray();
RemoveDir.cs (1)
109RemovedDirectories = removedDirectoriesList.ToArray();
ResGenDependencies.cs (1)
312return retVal.ToArray();
ResolveManifestFiles.cs (2)
496return assemblyList.ToArray(); 595return fileList.ToArray();
ResolveNonMSBuildProjectOutput.cs (2)
143ResolvedOutputPaths = resolvedPaths.ToArray(); 144UnresolvedProjectReferences = unresolvedReferences.ToArray();
ResolveSDKReference.cs (1)
1412AppxLocation = String.Join("|", appxLocationComponents.ToArray());
system.design\stronglytypedresourcebuilder.cs (1)
253unmatchable = errors.ToArray();
Touch.cs (1)
128TouchedFiles = touchedItems.ToArray();
Microsoft.Build.Tasks.UnitTests (7)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
3149t.SearchPaths = searchPaths.ToArray();
CallTarget_Tests.cs (1)
195targetOutputsTaskItems.ToArray(), false /* ignore the order */);
RemoveDir_Tests.cs (4)
62Directories = list.ToArray(), 70Directories = list.ToArray(), 84Directories = list.ToArray(), 109t.Directories = list.ToArray();
TestProgram.cs (1)
15int returnCode = Xunit.ConsoleClient.Program.Main(newArgs.ToArray());
Microsoft.Build.Utilities.Core (4)
ToolLocationHelper.cs (3)
1146return contractWinMDs.ToArray(); 2958ErrorUtilities.DebugTraceMessage("GetTargetPlatformMonikerDiskRoots", "Diskroots being used '{0}'", string.Join(";", sdkDiskRoots.ToArray())); 2977ErrorUtilities.DebugTraceMessage("GetMultiPlatformSdkDiskRoots", "Diskroots being used '{0}'", string.Join(";", sdkDiskRoots.ToArray()));
TrackedDependencies\TrackedDependencies.cs (1)
68return expanded.ToArray();
Microsoft.Build.Utilities.UnitTests (1)
TestProgram.cs (1)
15int returnCode = Xunit.ConsoleClient.Program.Main(newArgs.ToArray());
Microsoft.Cci.Extensions (2)
Writers\CSharp\CSDeclarationWriter.Types.cs (1)
57WriteFakeAttribute(structLayout.FullTypeName, args.ToArray());
Writers\Syntax\TokenSyntaxWriter.cs (1)
25return _tokens.ToArray();
Microsoft.CodeAnalysis (4)
CodeGen\SwitchStringJumpTableEmitter.cs (1)
125this.EmitNonHashTableSwitch(hashBucket.ToArray());
DocumentationCommentId.cs (1)
1049var typeArgs = typeArguments.ToArray();
PEWriter\NativeResourceWriter.cs (1)
281byte[] data = new List<byte>(r.Data).ToArray();
Syntax\InternalSyntax\ChildSyntaxList.Reversed.cs (1)
41return result.ToArray();
Microsoft.CodeAnalysis.CSharp (1)
Parser\AbstractLexer.cs (1)
57return _errors.ToArray();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
9502args.ToArray());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionProviders\ExtensionMethodImportCompletionProviderTests.cs (1)
49yield return d.ToArray();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
10656comp.VerifyDiagnostics(diagnostics.ToArray());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Embedded.cs (2)
404.VerifyEmitDiagnostics(diagnostics.ToArray()); 657.VerifyEmitDiagnostics(diagnostics.ToArray());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\LexicalErrorTests.cs (1)
870ParsingTests.ParseAndValidate(test, descriptions.ToArray());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestSource.cs (1)
84public static implicit operator CSharpTestSource(List<SyntaxTree> source) => new CSharpTestSource(source.ToArray());
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
Process.cs (1)
42return _modules.ToArray();
Resolver.cs (1)
76return requests.ToArray();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ArrayBuilder.cs (2)
94return _items.ToArray(); 106return (_items.Count > 0) ? new ReadOnlyCollection<T>(_items.ToArray()) : s_empty;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ArrayBuilder.cs (2)
94return _items.ToArray(); 106return (_items.Count > 0) ? new ReadOnlyCollection<T>(_items.ToArray()) : s_empty;
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
BasicDeterministicKeyBuilderTests.cs (1)
202args.ToArray());
CSharpDeterministicKeyBuilderTests.cs (1)
379args.ToArray());
Microsoft.CodeAnalysis.Scripting (1)
Hosting\SynchronizedList.cs (1)
86return ((IEnumerable<T>)_list.ToArray()).GetEnumerator();
Microsoft.CodeAnalysis.Test.Utilities (4)
InstrumentationChecker.cs (1)
376public string[] SnippetExpectations { get { return _snippetExpectations.ToArray(); } }
TestableCompiler.cs (2)
124var compiler = new CSharpCompilerImpl(args.ToArray(), buildPaths, fileSystem); 191var compiler = new BasicCompilerImpl(args.ToArray(), buildPaths, fileSystem);
TestableFile.cs (1)
92return new TestableFileStream(this, Contents.ToArray(), writable);
Microsoft.CodeAnalysis.UnitTests (1)
AnalyzerAssemblyLoaderTests.cs (1)
1230VerifyDependencyAssemblies(loader, analyzerFilePaths.ToArray());
Microsoft.CodeAnalysis.VisualBasic (1)
OptionsValidator.vb (1)
63Return parsedImportList.ToArray()
Microsoft.CSharp (5)
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
915return expressions.ToArray();
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
607new CMemberLookupResults(TypeArray.Allocate(callingTypes.ToArray()), name));
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
201_winrtifacesAll = TypeArray.Allocate(typeList.ToArray());
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
376return TypeArray.Allocate(ctypes.ToArray()); 679TypeArray typeArray = TypeArray.Allocate(types.ToArray());
Microsoft.Data.Analysis (2)
DataFrameColumns\StringDataFrameColumn.cs (1)
225string[] array = buffer.ToArray();
TextFieldParser.cs (1)
873return Fields.ToArray();
Microsoft.Data.Analysis.Tests (1)
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
873return Fields.ToArray();
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
229return items.ToArray();
Microsoft.DotNet.ArcadeAzureIntegration (1)
DefaultIdentityTokenCredential.cs (1)
106var ret = new ChainedTokenCredential(tokenCredentials.ToArray());
Microsoft.DotNet.Build.Tasks.Installers (19)
src\RpmBuilder.cs (19)
350entries.Add(new(RpmHeaderTag.FileDigests, RpmHeaderEntryType.StringArray, fileDigests.ToArray())); 351entries.Add(new(RpmHeaderTag.BaseNames, RpmHeaderEntryType.StringArray, baseNames.ToArray())); 352entries.Add(new(RpmHeaderTag.DirectoryNameIndices, RpmHeaderEntryType.Int32, directoryNameIndices.ToArray())); 353entries.Add(new(RpmHeaderTag.DirectoryNames, RpmHeaderEntryType.StringArray, directories.ToArray())); 354entries.Add(new(RpmHeaderTag.FileClass, RpmHeaderEntryType.Int32, fileClassIndices.ToArray())); 355entries.Add(new(RpmHeaderTag.FileClassDictionary, RpmHeaderEntryType.StringArray, fileClassDictionary.ToArray())); 356entries.Add(new(RpmHeaderTag.FileInode, RpmHeaderEntryType.Int32, inodes.ToArray())); 357entries.Add(new(RpmHeaderTag.FileSizes, RpmHeaderEntryType.Int32, fileSizes.ToArray())); 358entries.Add(new(RpmHeaderTag.FileUserName, RpmHeaderEntryType.StringArray, fileUserAndGroupNames.ToArray())); 359entries.Add(new(RpmHeaderTag.FileGroupName, RpmHeaderEntryType.StringArray, fileUserAndGroupNames.ToArray())); 360entries.Add(new(RpmHeaderTag.FileModes, RpmHeaderEntryType.Int16, fileModes.ToArray())); 361entries.Add(new(RpmHeaderTag.DeviceFileIds, RpmHeaderEntryType.Int16, deviceFileIds.ToArray())); 362entries.Add(new(RpmHeaderTag.FileModificationTimestamp, RpmHeaderEntryType.Int32, fileTimestamps.ToArray())); 363entries.Add(new(RpmHeaderTag.FileVerifyFlags, RpmHeaderEntryType.Int32, fileVerifyFlags.ToArray())); 364entries.Add(new(RpmHeaderTag.FileDevices, RpmHeaderEntryType.Int32, fileDevices.ToArray())); 365entries.Add(new(RpmHeaderTag.FileLang, RpmHeaderEntryType.StringArray, fileLangs.ToArray())); 366entries.Add(new(RpmHeaderTag.FileColors, RpmHeaderEntryType.Int32, fileColors.ToArray())); 368entries.Add(new(RpmHeaderTag.FileFlags, RpmHeaderEntryType.Int32, fileFlags.ToArray())); 369entries.Add(new(RpmHeaderTag.FileLinkTos, RpmHeaderEntryType.StringArray, fileLinkTos.ToArray()));
Microsoft.DotNet.Build.Tasks.Packaging (22)
ApplyBaseLine.cs (2)
100BaseLinedDependencies = baseLinedDependencies.ToArray(); 137BaseLinedDependencies = baseLinedDependencies.ToArray();
ApplyMetaPackages.cs (1)
124UpdatedDependencies = updatedDependencies.ToArray();
ApplyPreReleaseSuffix.cs (1)
110UpdatedPackages = updatedPackages.ToArray();
CreateTrimDependencyGroups.cs (1)
147TrimmedDependencies = trimmedDependencies.ToArray();
FrameworkUtilities.cs (1)
80return nearestFrameworks.ToArray();
GetApplicableAssetsFromPackageReports.cs (3)
91CompileAssets = compileAssets.ToArray(); 92RuntimeAssets = runtimeAssets.ToArray(); 93NativeAssets = nativeAssets.ToArray();
GetAssemblyReferences.cs (2)
86ReferencedAssemblies = references.ToArray(); 87ReferencedNativeLibraries = nativeLibs.ToArray();
GetLastStablePackage.cs (1)
158LastStablePackages = lastStablePackages.ToArray();
GetLayoutFiles.cs (1)
111LayoutFiles = layoutFiles.ToArray();
GetPackageDestination.cs (1)
130PackageDestinations = _packageDestinations.ToArray();
GetPackageFromModule.cs (1)
74PackagesReferenced = packagesReferenced.ToArray();
GetRuntimeJsonValues.cs (1)
44JsonItems = items.ToArray();
GetRuntimeTargets.cs (1)
43TargetItems = items.ToArray();
GetSupportedPackagesFromPackageReports.cs (1)
56SupportedPackages = supportedPackages.ToArray();
HarvestPackage.cs (2)
263SupportedFrameworks = supportedFrameworks.ToArray(); 452HarvestedFiles = harvestedFiles.ToArray();
PromoteDependencies.cs (1)
82PromotedDependencies = promotedDependencies.ToArray();
SplitDependenciesBySupport.cs (1)
58SplitDependencies = splitDependencies.ToArray();
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
ChooseBestP2PTargetFrameworkTask.cs (1)
74AssignedProjects = assignedProjects.ToArray();
ChooseBestTargetFrameworksTask.cs (1)
46BestTargetFrameworks = bestTargetFrameworkList.ToArray();
Microsoft.DotNet.Build.Tasks.Workloads (5)
CreateVisualStudioWorkload.wix.cs (2)
495Msis = msiItems.ToArray(); 496SwixProjects = swixProjectItems.ToArray();
CreateVisualStudioWorkloadSet.wix.cs (2)
105Msis = msiItems.ToArray(); 106SwixProjects = swixProjectItems.ToArray();
Wix\CompilerToolTask.cs (1)
79CommandLineBuilder.AppendFileNamesIfNotNull(_sourceFiles.ToArray(), " ");
Microsoft.DotNet.Helix.Sdk.Tests (4)
FindDotNetCliPackageTests.cs (4)
58var collection = CreateMockServiceCollection(requestResponseHelpers.ToArray()); 85var collection = CreateMockServiceCollection(requestResponseHelpers.ToArray()); 136var collection = CreateMockServiceCollection(requestResponseHelpers.ToArray()); 198var collection = CreateMockServiceCollection(requestResponseHelpers.ToArray());
Microsoft.DotNet.Open.Api.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
145return Path.Combine(segments.ToArray());
Microsoft.DotNet.PackageTesting (1)
VerifyTypes.cs (1)
188return types.ToArray();
Microsoft.DotNet.SharedFramework.Sdk (1)
src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
188return types.ToArray();
Microsoft.DotNet.SignCheck (3)
SignCheck.cs (1)
236matchedFiles = _matchedFiles.ToArray();
SignCheckTask.cs (1)
143options.InputFiles = inputFiles.ToArray();
Utils.cs (1)
30return directories.ToArray();
Microsoft.DotNet.SignTool.Tests (3)
SignToolTests.cs (3)
2425runTask(fileExtensionSignInfo: fileExtensionSignInfo.ToArray()).Should().BeFalse(); 2448runTask(fileExtensionSignInfo: fileExtensionSignInfo.ToArray()).Should().BeTrue(); 2461runTask(fileExtensionSignInfo: fileExtensionSignInfo.ToArray()).Should().BeTrue();
Microsoft.DotNet.SwaggerGenerator.MSBuild (1)
GenerateSwaggerCode.cs (1)
93GeneratedFiles = generatedFiles.ToArray();
Microsoft.DotNet.VersionTools (1)
Automation\GitHubVersionsRepoUpdater.cs (1)
141GitTree tree = await client.PostTreeAsync(_project, masterSha, objects.ToArray());
Microsoft.DotNet.XliffTasks (1)
Tasks\TransformTemplates.cs (1)
50TransformedTemplates = transformedTemplates.ToArray();
Microsoft.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
548return new JsonSchemaExporterContext(typeInfo, baseTypeInfo, declaringType, propertyInfo, parameterInfo, propertyAttributeProvider, _currentPath.ToArray());
Microsoft.Extensions.ApiDescription.Client (1)
GetOpenApiReferenceMetadata.cs (1)
130Outputs = outputs.ToArray();
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
145return Path.Combine(segments.ToArray());
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
145return Path.Combine(segments.ToArray());
Microsoft.Extensions.Caching.Hybrid.Tests (1)
LogCollector.cs (1)
18return _items.ToArray();
Microsoft.Extensions.Compliance.Testing (2)
FakeRedactionCollector.cs (2)
47return _redactorRequestedLog.ToArray(); 81return _dataRedactedLog.ToArray();
Microsoft.Extensions.Configuration (2)
ConfigurationManager.cs (1)
183public ConfigurationSectionDebugView[] Items => ConfigurationSectionDebugView.FromConfiguration(_current, _current).ToArray();
ConfigurationRoot.cs (1)
157public ConfigurationSectionDebugView[] Items => ConfigurationSectionDebugView.FromConfiguration(_current, _current).ToArray();
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
ConfigurationProviderCommandLineTest.cs (1)
24FileProvider = new TestFileProvider(testFiles.ToArray())
Microsoft.Extensions.DependencyInjection (3)
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (2)
443Constants = context.Constants?.ToArray(), 444Factories = context.Factories?.ToArray()
ServiceProvider.cs (1)
91throw new AggregateException("Some services are not able to be constructed", exceptions.ToArray());
Microsoft.Extensions.DependencyModel (1)
Utf8JsonReaderExtensions.cs (1)
86return items.ToArray();
Microsoft.Extensions.Diagnostics.Testing (3)
Logging\FakeLogCollector.cs (1)
71var records = _records.ToArray();
Logging\FakeLogger.cs (1)
71l.ToArray(), Category, !_disabledLevels.ContainsKey(logLevel), Collector.TimeProvider.GetUtcNow());
Metrics\MetricCollector.cs (1)
178var measurements = _measurements.ToArray();
Microsoft.Extensions.FileProviders.Embedded (3)
Manifest\ManifestDirectory.cs (1)
112return list.ToArray();
Manifest\ManifestParser.cs (2)
59var rootDirectory = ManifestDirectory.CreateRootDirectory(entriesList.ToArray()); 108return ManifestDirectory.CreateDirectory(directoryName, children.ToArray());
Microsoft.Extensions.Logging (2)
LoggerFactory.cs (2)
253return (messageLoggers.ToArray(), scopeLoggers?.ToArray());
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
459return rules.ToArray();
Microsoft.Extensions.ObjectPool.Microbenchmark (2)
src\Shared\BenchmarkRunner\Program.cs (2)
79args = argsList.ToArray(); 89args = argsList.ToArray();
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.Extensions.SecretManager.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
145return Path.Combine(segments.ToArray());
Microsoft.Extensions.ServiceDiscovery (1)
ServiceDiscoveryOptions.cs (1)
60return result.ToArray();
Microsoft.Extensions.Telemetry (4)
Enrichment\ApplicationLogEnricher.cs (1)
58return l.ToArray();
Http\HttpRouteParser.cs (1)
148return new ParsedRouteSegments(httpRoute, segments.ToArray());
Logging\ExtendedLoggerFactory.cs (2)
249return (messageLoggers.ToArray(), scopeLoggers?.ToArray() ?? Array.Empty<ScopeLogger>());
Microsoft.Extensions.TimeProvider.Testing.Tests (2)
TimerTests.cs (2)
278var value1 = callbackTimes.ToArray(); 282var value2 = callbackTimes.ToArray();
Microsoft.Gen.Logging.Unit.Tests (1)
CompilationHelper.cs (1)
50references: refs.ToArray(),
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSGeneratorFactory.cs (1)
288var argsMarshallerTypes = argsMarshalers.ToArray();
JSMarshalAsAttributeInfoParser.cs (1)
58JSTypeArguments = jsTypeArguments.ToArray(),
Microsoft.Maui (2)
Platform\iOS\ApplicationExtensions.cs (2)
55 var window = CreatePlatformWindow(application, null, dicts.ToArray()); 93 var window = CreatePlatformWindow(application, scene as UIWindowScene, dicts.ToArray());
Microsoft.Maui.Controls (12)
BoundsConstraint.cs (1)
34 RelativeTo = parents ?? ExpressionSearch.Default.FindObjects<View>(expression).ToArray(), // make sure we have our own copy
Brush\BrushTypeConverter.cs (1)
423 result = offsets.ToArray();
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (2)
1697 NavigationItem.SetRightBarButtonItems(primaries == null ? Array.Empty<UIBarButtonItem>() : primaries.ToArray(), false); 1698 ToolbarItems = secondaries == null ? Array.Empty<UIBarButtonItem>() : secondaries.ToArray();
Compatibility\Handlers\Shell\iOS\ShellPageRendererTracker.cs (1)
320 NavigationItem.SetRightBarButtonItems(primaries == null ? Array.Empty<UIBarButtonItem>() : primaries.ToArray(), false);
Compatibility\Handlers\TabbedPage\iOS\TabbedRenderer.cs (1)
313 ViewControllers = list.ToArray();
Element\Element_StyleSheets.cs (1)
36 _styleSelectableNameAndBaseNames = list.ToArray();
Handlers\Items2\iOS\LayoutFactory2.cs (2)
50 return items.ToArray(); 77 return items.ToArray();
LegacyLayouts\Constraint.cs (1)
34 RelativeTo = ExpressionSearch.Default.FindObjects<View>(expression).ToArray() // make sure we have our own copy
Shell\ShellUriHandler.cs (2)
65 restOfPath = CollapsePath(restOfPath.ToArray(), shellRoutes, true); 157 var path = String.Join(_pathSeparator, segments.ToArray());
Microsoft.Maui.Controls.BindingSourceGen (2)
BindingTransformer.cs (1)
39 return new EquatableArray<IPathPart>(newPath.ToArray());
Setter.cs (1)
52 patternMatchingExpressions.ToArray(),
Microsoft.Maui.Controls.Build.Tasks (1)
TypeReferenceExtensions.cs (1)
421 return self.ElementType.MakeGenericInstanceType(args.ToArray());
Microsoft.Maui.Controls.Compatibility (4)
iOS\Extensions\LabelExtensions.cs (1)
104 ((ISpatialElement)span).Region = Region.FromLines(lineHeights.ToArray(), finalSize.Width, startRect.X, endRect.X, startRect.Top).Inflate(10);
iOS\Renderers\NavigationRenderer.cs (2)
1425 NavigationItem.SetRightBarButtonItems(primaries == null ? Array.Empty<UIBarButtonItem>() : primaries.ToArray(), false); 1426 ToolbarItems = secondaries == null ? Array.Empty<UIBarButtonItem>() : secondaries.ToArray();
iOS\Renderers\TabbedRenderer.cs (1)
324 ViewControllers = list.ToArray();
Microsoft.Maui.Controls.SourceGen (1)
src\Controls\src\Xaml\XamlNode.cs (1)
184 foreach (var node in CollectionItems.ToArray())
Microsoft.Maui.Controls.Xaml (1)
XamlNode.cs (1)
184 foreach (var node in CollectionItems.ToArray())
Microsoft.Maui.Essentials (2)
VersionTracking\VersionTracking.shared.cs (2)
297 public IReadOnlyList<string> VersionHistory => versionTrail[versionsKey].ToArray(); 299 public IReadOnlyList<string> BuildHistory => versionTrail[buildsKey].ToArray();
Microsoft.Maui.Graphics (1)
PictureCanvas.cs (1)
27 public IPicture Picture => new StandardPicture(_x, _y, _width, _height, _commands.ToArray());
Microsoft.Maui.Resizetizer (1)
ResizetizeImages.cs (1)
125 CopiedResources = copiedResources.ToArray();
Microsoft.ML.AutoML (29)
API\AutoCatalog.cs (3)
403return new SweepablePipeline().Append(res.ToArray()); 526return new SweepablePipeline().Append(res.ToArray()); 618return new SweepablePipeline().Append(res.ToArray());
AutoMLExperiment\AutoMLExperiment.cs (1)
226return new AggregateTrainingStopManager(logger, mostRecentAddedStopServices.ToArray());
AutoMlUtils.cs (1)
45return res.ToArray();
ColumnInference\ColumnGroupingInference.cs (2)
82return result.ToArray(); 149return allRanges.ToArray();
ColumnInference\ColumnTypeInference.cs (1)
412return loaderColumns.ToArray();
ColumnInference\PurposeInference.cs (1)
276expert.Apply(columnsToInfer.ToArray());
ColumnInference\TextFileSample.cs (1)
156return new TextFileSample(StitchChunks(false, chunks.ToArray()), fileSize, approximateRowCount);
Experiment\RecipeInference.cs (1)
26return trainers.ToArray();
Experiment\SuggestedPipeline.cs (1)
72return new Pipeline(pipelineElements.ToArray(), _cacheBeforeTrainer);
Sweepers\Parameters.cs (2)
284_gridValues = result.ToArray(); 402_gridValues = result.ToArray();
Sweepers\SmacSweeper.cs (4)
316return neighbors.ToArray(); 339datasetLeafValues.Add(leafValues.ToArray()); 341return datasetLeafValues.ToArray(); 408return outSet.ToArray();
Sweepers\SweeperProbabilityUtils.cs (2)
44return rvs.ToArray(); 118return result.ToArray();
TransformInference\TransformInference.cs (5)
272var catColumnsArr = catColumnsNew.ToArray(); 278var catHashColumnsNewArr = catHashColumnsNew.ToArray(); 310var newColumnsArr = newColumns.ToArray(); 362var columnsArr = columnsWithMissing.ToArray(); 416return suggestedTransforms.ToArray();
Tuner\SmacTuner.cs (2)
303return neighborhood.ToArray(); 332return leafValues.ToArray();
Utils\SplitUtil.cs (2)
43return (trainDatasets.ToArray(), validationDatasets.ToArray());
Microsoft.ML.AutoML.Tests (1)
SweepablePipelineTests.cs (1)
49InputColumnNames = new List<string> { "a", "b", "c" }.ToArray(),
Microsoft.ML.Core (12)
CommandLine\CmdParser.cs (3)
536return new ArgumentInfo(type, def, args.ToArray(), map); 967return strings.ToArray(); 1097arguments = args.ToArray();
ComponentModel\ComponentCatalog.cs (2)
276var values = Utils.Concat(prefix.ToArray(), extra); 723return _classes.ToArray();
Data\ProgressReporter.cs (2)
193var jointEntry = new ProgressEntry(false, new ProgressHeader(hMetrics.ToArray(), hProgress.ToArray()));
Data\RoleMappedSchema.cs (1)
317var cols = kvp.Value.ToArray();
Utilities\Utils.cs (4)
136return list == null ? null : list.ToArray(); 785map = mapList.ToArray(); 819map = mapList.ToArray(); 853map = mapList.ToArray();
Microsoft.ML.Core.Tests (5)
UnitTests\TestVBuffer.cs (5)
478dst = new VBuffer<TDst>(a.Length, indices.Count, values, indices.ToArray()); 880var slotDropper = new SlotDropper(len, minSlots.ToArray(), maxSlots.ToArray()); 936expectedIndices.Count, expectedValues.ToArray(), a.IsDense ? null : expectedIndices.ToArray());
Microsoft.ML.Data (177)
Commands\CrossValidationCommand.cs (1)
219var overall = eval.GetOverallResults(overallList.ToArray());
Commands\SaveDataCommand.cs (3)
167textSaver.WriteData(data, true, cols.ToArray()); 173saver.SaveData(wrapStream, data, cols.ToArray()); 220saver.SaveData(stream, view, cols.ToArray());
Commands\ScoreCommand.cs (1)
205writer.SaveData(stream, loader, cols.ToArray());
DataDebuggerPreview.cs (1)
62ColumnView = Enumerable.Range(0, n).Select(c => new ColumnInfo(data.Schema[c], columns[c].ToArray())).ToImmutableArray();
DataLoadSave\Binary\BinaryLoader.cs (4)
372_metadataToc = mtocEntries.ToArray(); 373_deadMetadataToc = deadMtocEntries.ToArray(); 1148aliveColumns = aliveList.ToArray(); 1149deadColumns = deadList.ToArray();
DataLoadSave\Database\DatabaseLoader.cs (1)
171Columns = columns.ToArray()
DataLoadSave\LegacyCompositeDataLoader.cs (2)
267return view == srcView ? srcLoader : new LegacyCompositeDataLoader(host, exes.ToArray()); 493return ApplyTransformsCore(host, srcLoader, tagData.ToArray(),
DataLoadSave\MultiFileSource.cs (1)
59_paths = concatenated.ToArray();
DataLoadSave\Text\TextLoader.cs (3)
892Infos[iinfoOther] = ColInfo.Create(cols[iinfoOther].Name.Trim(), typeOther, segsNew.ToArray(), true); 1600column.Source = mappingAttr.Sources.ToArray(); 1632options.Columns = columns.ToArray();
DataLoadSave\TransformerChain.cs (2)
177return new TransformerChain<ITransformer>(xfs.ToArray(), scopes.ToArray());
DataView\ArrayDataViewBuilder.cs (1)
216_columns = builder._columns.ToArray();
DataView\CacheDataView.cs (1)
170args.Indices = columnsToDrop.ToArray();
DataView\Transposer.cs (1)
177saver.SaveData(stream, slicer, toSave.ToArray());
DataView\TypedCursor.cs (2)
121_columns = acceptedCols.ToArray(); 122_columnIndices = indices.ToArray();
Dirty\PredictionUtils.cs (2)
88return res == null ? args : res.ToArray(); 122return sepChars.Count > 0 ? sepChars.ToArray() : null;
EntryPoints\InputBuilder.cs (5)
87_fields = fields.ToArray(); 88_attrs = attrs.ToArray(); 161return missing.ToArray(); 687_fields = fields.ToArray(); 688_attrs = attrs.ToArray();
Evaluators\AnomalyDetectionEvaluator.cs (16)
182overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray()); 183overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, stratVal.ToArray()); 185overallDvBldr.AddColumn(BinaryClassifierEvaluator.Auc, NumberDataViewType.Double, auc.ToArray()); 186overallDvBldr.AddColumn(OverallMetrics.DrAtK, NumberDataViewType.Double, drAtK.ToArray()); 187overallDvBldr.AddColumn(OverallMetrics.DrAtPFpr, NumberDataViewType.Double, drAtP.ToArray()); 188overallDvBldr.AddColumn(OverallMetrics.DrAtNumPos, NumberDataViewType.Double, drAtNumAnomalies.ToArray()); 189overallDvBldr.AddColumn(OverallMetrics.ThreshAtK, NumberDataViewType.Single, thresholdAtK.ToArray()); 190overallDvBldr.AddColumn(OverallMetrics.ThreshAtP, NumberDataViewType.Single, thresholdAtP.ToArray()); 191overallDvBldr.AddColumn(OverallMetrics.ThreshAtNumPos, NumberDataViewType.Single, thresholdAtNumAnomalies.ToArray()); 192overallDvBldr.AddColumn(OverallMetrics.NumAnomalies, NumberDataViewType.Int64, numAnoms.ToArray()); 197topKdvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, topKStratCol.ToArray()); 198topKdvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, topKStratVal.ToArray()); 200topKdvBldr.AddColumn(TopKResultsColumns.Instance, TextDataViewType.Instance, names.ToArray()); 201topKdvBldr.AddColumn(TopKResultsColumns.AnomalyScore, NumberDataViewType.Single, scores.ToArray()); 202topKdvBldr.AddColumn(TopKResultsColumns.Label, NumberDataViewType.Single, labels.ToArray()); 773IDataView fold = ColumnSelectingTransformer.CreateKeep(Host, overall, colsToKeep.ToArray());
Evaluators\BinaryClassifierEvaluator.cs (29)
337overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray()); 338overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, stratVal.ToArray()); 341overallDvBldr.AddColumn(MetricKinds.ColumnNames.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray()); 342overallDvBldr.AddColumn(Auc, NumberDataViewType.Double, auc.ToArray()); 343overallDvBldr.AddColumn(Accuracy, NumberDataViewType.Double, accuracy.ToArray()); 344overallDvBldr.AddColumn(PosPrecName, NumberDataViewType.Double, posPrec.ToArray()); 345overallDvBldr.AddColumn(PosRecallName, NumberDataViewType.Double, posRecall.ToArray()); 346overallDvBldr.AddColumn(NegPrecName, NumberDataViewType.Double, negPrec.ToArray()); 347overallDvBldr.AddColumn(NegRecallName, NumberDataViewType.Double, negRecall.ToArray()); 348overallDvBldr.AddColumn(LogLoss, NumberDataViewType.Double, logLoss.ToArray()); 349overallDvBldr.AddColumn(LogLossReduction, NumberDataViewType.Double, logLossRed.ToArray()); 350overallDvBldr.AddColumn(Entropy, NumberDataViewType.Double, entropy.ToArray()); 351overallDvBldr.AddColumn(F1, NumberDataViewType.Double, f1.ToArray()); 353overallDvBldr.AddColumn(AuPrc, NumberDataViewType.Double, auprc.ToArray()); 358confDvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, confStratCol.ToArray()); 359confDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, confStratVal.ToArray()); 364confDvBldr.AddColumn(MetricKinds.ColumnNames.Count, getSlotNames, NumberDataViewType.Double, counts.ToArray()); 367confDvBldr.AddColumn(MetricKinds.ColumnNames.Weight, getSlotNames, NumberDataViewType.Double, weights.ToArray()); 378dvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, prStratCol.ToArray()); 379dvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, prStratVal.ToArray()); 381dvBldr.AddColumn(Threshold, NumberDataViewType.Single, scores.ToArray()); 382dvBldr.AddColumn(Precision, NumberDataViewType.Double, precision.ToArray()); 383dvBldr.AddColumn(Recall, NumberDataViewType.Double, recall.ToArray()); 384dvBldr.AddColumn(FalsePositiveRate, NumberDataViewType.Double, fpr.ToArray()); 387dvBldr.AddColumn("Weighted " + Precision, NumberDataViewType.Double, weightedPrecision.ToArray()); 388dvBldr.AddColumn("Weighted " + Recall, NumberDataViewType.Double, weightedRecall.ToArray()); 389dvBldr.AddColumn("Weighted " + FalsePositiveRate, NumberDataViewType.Double, weightedFpr.ToArray()); 1392fold = ColumnSelectingTransformer.CreateKeep(Host, fold, colsToKeep.ToArray()); 1467pr = AppendRowsDataView.Create(Host, prList[0].Schema, prList.ToArray());
Evaluators\ClusteringEvaluator.cs (7)
79var rolesMappedData = new RoleMappedData(data, opt: false, roles.ToArray()); 204overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray()); 205overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, stratVal.ToArray()); 208overallDvBldr.AddColumn(MetricKinds.ColumnNames.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray()); 209overallDvBldr.AddColumn(Nmi, NumberDataViewType.Double, nmi.ToArray()); 210overallDvBldr.AddColumn(AvgMinScore, NumberDataViewType.Double, avgMinScores.ToArray()); 212overallDvBldr.AddColumn(Dbi, NumberDataViewType.Double, dbi.ToArray());
Evaluators\EvaluatorBase.cs (1)
120return list.ToArray();
Evaluators\EvaluatorUtils.cs (6)
802return AppendRowsDataView.Create(env, overallList[0].Schema, overallList.ToArray()); 885args.Indices = hidden.ToArray(); 891variableSizeVectorColumnNames = variableSizeVectorColumnNamesList.ToArray(); 893var views = list.ToArray(); 1067data = ColumnSelectingTransformer.CreateDrop(env, data, nonAveragedCols.ToArray()); 1072var overall = AppendRowsDataView.Create(env, avgMetrics.Schema, idvList.ToArray());
Evaluators\MamlEvaluator.cs (2)
264idv = new ColumnCopyingTransformer(Host, cols.ToArray()).Transform(idv); 265idv = ColumnSelectingTransformer.CreateKeep(Host, idv, colsToKeep.ToArray());
Evaluators\MulticlassClassificationEvaluator.cs (15)
211overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray()); 212overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, stratVal.ToArray()); 215overallDvBldr.AddColumn(MetricKinds.ColumnNames.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray()); 216overallDvBldr.AddColumn(AccuracyMicro, NumberDataViewType.Double, microAcc.ToArray()); 217overallDvBldr.AddColumn(AccuracyMacro, NumberDataViewType.Double, macroAcc.ToArray()); 218overallDvBldr.AddColumn(LogLoss, NumberDataViewType.Double, logLoss.ToArray()); 219overallDvBldr.AddColumn(LogLossReduction, NumberDataViewType.Double, logLossRed.ToArray()); 222overallDvBldr.AddColumn(TopKAccuracy, NumberDataViewType.Double, topKAcc.ToArray()); 227overallDvBldr.AddColumn(AllTopKAccuracy, getKSlotNames, NumberDataViewType.Double, allTopK.ToArray()); 230overallDvBldr.AddColumn(PerClassLogLoss, aggregator.GetSlotNames, NumberDataViewType.Double, perClassLogLoss.ToArray()); 235confDvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, confStratCol.ToArray()); 236confDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, confStratVal.ToArray()); 241confDvBldr.AddColumn(MetricKinds.ColumnNames.Count, getSlotNames, NumberDataViewType.Double, counts.ToArray()); 244confDvBldr.AddColumn(MetricKinds.ColumnNames.Weight, getSlotNames, NumberDataViewType.Double, weights.ToArray()); 972var views = overallList.ToArray();
Evaluators\MultiOutputRegressionEvaluator.cs (10)
148overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray()); 149overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, stratVal.ToArray()); 152overallDvBldr.AddColumn(MetricKinds.ColumnNames.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray()); 153overallDvBldr.AddColumn(PerLabelL1, aggregator.GetSlotNames, NumberDataViewType.Double, perLabelL1.ToArray()); 154overallDvBldr.AddColumn(PerLabelL2, aggregator.GetSlotNames, NumberDataViewType.Double, perLabelL2.ToArray()); 155overallDvBldr.AddColumn(PerLabelRms, aggregator.GetSlotNames, NumberDataViewType.Double, perLabelRms.ToArray()); 156overallDvBldr.AddColumn(PerLabelLoss, aggregator.GetSlotNames, NumberDataViewType.Double, perLabelLoss.ToArray()); 157overallDvBldr.AddColumn(L1, NumberDataViewType.Double, l1.ToArray()); 158overallDvBldr.AddColumn(L2, NumberDataViewType.Double, l2.ToArray()); 159overallDvBldr.AddColumn(Dist, NumberDataViewType.Double, dist.ToArray());
Evaluators\RankingEvaluator.cs (16)
93_labelGains = labelGains.ToArray(); 216overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray()); 217overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, stratVal.ToArray()); 220overallDvBldr.AddColumn(MetricKinds.ColumnNames.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray()); 221overallDvBldr.AddColumn(Ndcg, aggregator.GetSlotNames, NumberDataViewType.Double, ndcg.ToArray()); 222overallDvBldr.AddColumn(Dcg, aggregator.GetSlotNames, NumberDataViewType.Double, dcg.ToArray()); 227groupDvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, groupStratCol.ToArray()); 228groupDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, groupStratVal.ToArray()); 232groupDvBldr.AddColumn(GroupId, TextDataViewType.Instance, groupName.ToArray()); 233groupDvBldr.AddColumn(Ndcg, aggregator.GetGroupSummarySlotNames("NDCG"), NumberDataViewType.Double, groupNdcg.ToArray()); 234groupDvBldr.AddColumn(Dcg, aggregator.GetGroupSummarySlotNames("DCG"), NumberDataViewType.Double, groupDcg.ToArray()); 235groupDvBldr.AddColumn(MaxDcg, aggregator.GetGroupSummarySlotNames("MaxDCG"), NumberDataViewType.Double, groupMaxDcg.ToArray()); 330return _groupDcg.ToArray(); 340return _groupNdcg.ToArray(); 350return _groupMaxDcg.ToArray(); 936gs = AppendRowsDataView.Create(Host, gsList[0].Schema, gsList.ToArray());
Evaluators\RegressionEvaluatorBase.cs (8)
97overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratCol, GetKeyValueGetter(dictionaries), (ulong)dictionaries.Length, stratCol.ToArray()); 98overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.Instance, stratVal.ToArray()); 101overallDvBldr.AddColumn(MetricKinds.ColumnNames.IsWeighted, BooleanDataViewType.Instance, isWeighted.ToArray()); 102aggregator.AddColumn(overallDvBldr, L1, l1.ToArray()); 103aggregator.AddColumn(overallDvBldr, L2, l2.ToArray()); 104aggregator.AddColumn(overallDvBldr, Rms, rms.ToArray()); 105aggregator.AddColumn(overallDvBldr, Loss, loss.ToArray()); 106aggregator.AddColumn(overallDvBldr, RSquared, rSquared.ToArray());
Model\Pfa\PfaContext.cs (2)
180_letSetBlocks.Add(new VariableBlock("let", lets.ToArray())); 181_letSetBlocks.Add(new VariableBlock("set", sets.ToArray()));
Model\Pfa\SavePfaCommand.cs (1)
198JObject pfaDoc = ctx.Finalize(end.Schema, toExport.ToArray());
Prediction\Calibrator.cs (2)
1121float[] cOutputs = _cMargins.ToArray(); 1127float[] ncOutputs = _ncMargins.ToArray();
Training\TrainerUtils.cs (1)
445var estimator = new ColumnCopyingEstimator(_env, nameMap.ToArray());
Transforms\ColumnBindingsBase.cs (1)
724_colMap = indices.ToArray();
Transforms\ColumnConcatenatingTransformer.cs (3)
615dst = new VBuffer<int>(allValues.Count, allValues.ToArray()); 896ctx.Hide(toHide.ToArray()); 897ctx.DeclareVar(toDeclare.ToArray());
Transforms\ColumnSelecting.cs (1)
612return outputToInputMapping.ToArray();
Transforms\KeyToValue.cs (2)
208ctx.Hide(toHide.ToArray()); 209ctx.DeclareVar(toDeclare.ToArray());
Transforms\KeyToVector.cs (2)
656ctx.Hide(toHide.ToArray()); 657ctx.DeclareVar(toDeclare.ToArray());
Transforms\NormalizeColumnDbl.cs (3)
749return new ImplVec(host, scales, offsets, (offsets != null && nz.Count < cv / 2) ? nz.ToArray() : null); 1639indicesNonZeroOffset = nz.ToArray(); 1824indicesNonZeroOffset = nz.ToArray();
Transforms\NormalizeColumnSng.cs (3)
906return new ImplVec(host, scales, offsets, (offsets != null && nz.Count < cv / 2) ? nz.ToArray() : null); 1802indicesNonZeroOffset = nz.ToArray(); 1987indicesNonZeroOffset = nz.ToArray();
Transforms\Normalizer.cs (2)
809ctx.Hide(toHide.ToArray()); 810ctx.DeclareVar(toDeclare.ToArray());
Transforms\NormalizeUtils.cs (1)
163input.Columns = columnsToNormalize.ToArray();
Transforms\RowShufflingTransformer.cs (1)
204args.Indices = columnsToDrop.ToArray();
Transforms\SlotsDroppingTransformer.cs (1)
702dst = new VBuffer<int>(newCategoricalSlotRanges.Count, newCategoricalSlotRanges.ToArray());
Transforms\TransformBase.cs (2)
599ctx.Hide(toHide.ToArray()); 600ctx.DeclareVar(toDeclare.ToArray());
Transforms\ValueMapping.cs (2)
248builder.AddColumn(columnName, primitiveType, convertedValues.ToArray()); 1003var view = new ColumnCopyingTransformer(host, cols.ToArray()).Transform(lookup);
Transforms\ValueToKeyMappingTransformer.cs (2)
949ctx.Hide(toHide.ToArray()); 950ctx.DeclareVar(toDeclare.ToArray());
Utilities\ModelFileUtils.cs (3)
250builder.AddColumn("Role", rolesList.ToArray()); 251builder.AddColumn("Column", columnNamesList.ToArray()); 321return TrainUtils.CheckAndGenerateCustomColumns(env, list.ToArray());
Utilities\StreamUtils.cs (1)
177return matchList.ToArray();
Microsoft.ML.Ensemble (1)
Selector\SubModelSelector\BaseDiverseSelector.cs (1)
79var sortedModels = diversityValues.ToArray();
Microsoft.ML.EntryPoints (6)
CrossValidationMacro.cs (1)
411var warningsIdv = warnings.Count > 0 ? AppendRowsDataView.Create(env, warnings[0].Schema, warnings.ToArray()) : null;
FeatureCombiner.cs (2)
80new[] { new ColumnConcatenatingTransformer.TaggedColumn() { Name = nameFeat, Source = concatNames.ToArray() } } 148viewTrain = new TypeConvertingTransformer(env, cvt.ToArray()).Transform(viewTrain);
PermutationFeatureImportance.cs (1)
319return slotNames.ToArray();
ScoreColumnSelector.cs (2)
40var newView = new ChooseColumnsByIndexTransform(env, new ChooseColumnsByIndexTransform.Options() { Indices = indices.ToArray() }, input.Data); 104var copyColumn = new ColumnCopyingTransformer(env, copyCols.ToArray()).Transform(input.Data);
Microsoft.ML.FastTree (52)
Dataset\Dataset.cs (1)
630queries = listQueries.Select(x => x.ToArray()).ToArray(numParts);
Dataset\FeatureFlock.cs (7)
464features.GetRange(0, bestThreshold + 1).ToArray(); 577SubFeatures = lowPopulationFeatures.GetRange(1, lowPopulationFeatures.Count - 1).ToArray() 676catFeatureIndices.ToArray(); 764vBin.SubFeatures = lowPopulationFeatures.ToArray(); 768vBin.SubFeatures = lowPopulationFeatures.ToArray(); 790lowPopulationFeatures.GetRange(1, lowPopulationFeatures.Count - 1).ToArray(); 898catFeatureIndices.ToArray();
Dataset\RepeatIntArray.cs (1)
66_deltas = tempDeltaList.ToArray();
Dataset\SparseIntArray.cs (2)
84_deltas = tempDeltaList.ToArray(); 167_deltas = tempDeltaList.ToArray();
FastTree.cs (14)
1054var ind = new ValuesList.ForwardIndexer(instanceList, features.ToArray(), ref forwardIndexerWork); 1371using (Transposer trans = Transposer.Create(Host, data, false, toTranspose.ToArray())) 1576features = flocks.ToArray(); 1710return new SlotDropper(temp.Length, minSlots.ToArray(), maxSlots.ToArray()); 1732qidsArray = qids.ToArray(); 1733boundariesArray = boundaries.ToArray(); 2034return new NHotFeatureFlock(denseBins, delta.ToArray(), NumExamples, hotFeatureStarts, bups); 2359? new Dataset.DatasetSkeleton(_targetsList.ToArray(), _boundaries.ToArray(), queryIds, docIds, new double[0][]) 2360: new Dataset.DatasetSkeleton(_targetsList.ToArray(), _boundaries.ToArray(), queryIds, docIds, new double[0][], _actualTargets.ToArray()); 2363ds.SampleWeights = _weights.ToArray();
GamModelParameters.cs (4)
495lteChild: lteChild.ToArray(), 496gtChild: gtChild.ToArray()); 669_labels = labels.ToArray(); 671_scores = scores.ToArray();
GamTrainer.cs (2)
568BinUpperBounds[i] = newBinBoundaries.ToArray(); 569BinEffects[i] = newBinEffects.ToArray();
RandomForestClassification.cs (2)
283float[] featuresArray = featuresList.ToArray(); 284float[] labelsArray = labelsList.ToArray();
RandomForestRegression.cs (2)
415float[] featuresArray = featuresList.ToArray(); 416float[] labelsArray = labelsList.ToArray();
TreeEnsemble\InternalRegressionTree.cs (2)
386writer.WriteIntArray(categoricalNodeIndices.ToArray()); 1506return path.ToArray();
TreeEnsembleFeaturizer.cs (1)
221return delegates.ToArray();
Utils\RegressionTreeBaseUtils.cs (14)
100builder.AddColumn("TreeWeights", NumberDataViewType.Double, treeWeightsList.ToArray()); 101builder.AddColumn("TreeID", NumberDataViewType.Int32, treeId.ToArray()); 102builder.AddColumn("IsLeaf", TextDataViewType.Instance, isLeaf.ToArray()); 103builder.AddColumn(nameof(RegressionTreeBase.LeftChild), NumberDataViewType.Int32, leftChild.ToArray()); 104builder.AddColumn(nameof(RegressionTreeBase.RightChild), NumberDataViewType.Int32, rightChild.ToArray()); 105builder.AddColumn(nameof(RegressionTreeBase.NumericalSplitFeatureIndexes), NumberDataViewType.Int32, numericalSplitFeatureIndexes.ToArray()); 106builder.AddColumn(nameof(RegressionTreeBase.NumericalSplitThresholds), NumberDataViewType.Single, numericalSplitThresholds.ToArray()); 107builder.AddColumn(nameof(RegressionTreeBase.CategoricalSplitFlags), BooleanDataViewType.Instance, categoricalSplitFlags.ToArray()); 108builder.AddColumn(nameof(RegressionTreeBase.LeafValues), NumberDataViewType.Double, leafValues.ToArray()); 109builder.AddColumn(nameof(RegressionTreeBase.SplitGains), NumberDataViewType.Double, splitGains.ToArray()); 110builder.AddColumn("CategoricalSplitFeatures", NumberDataViewType.Int32, categoricalSplitFeatures.ToArray()); 111builder.AddColumn("CategoricalCategoricalSplitFeatureRange", NumberDataViewType.Int32, categoricalCategoricalSplitFeatureRange.ToArray()); 138builder.AddColumn("LeafSamples", NumberDataViewType.Double, leafSamples.ToArray()); 139builder.AddColumn("LeafSampleWeights", NumberDataViewType.Double, leafSampleWeights.ToArray());
Microsoft.ML.GenAI.Core (1)
Pipeline\CausalLMPipeline.cs (1)
270foreach (var (token, _) in this.GenerateStreaming(inputTensor, attentionMask, stopTokenIds.ToArray(), temperature: temperature, maxLen: maxLen))
Microsoft.ML.GenAI.LLaMA (3)
LlamaTextCompletionService.cs (1)
72stopSequences: stopTokenSequence.ToArray(),
Module\LlamaModel.cs (2)
152return new CausalLMModelOutput(lastHiddenState: hiddenStates, allHiddenStates: allHiddenStates.ToArray(), attentions: allAttentions.ToArray(), cache: this._cache);
Microsoft.ML.GenAI.Mistral (2)
MistralModel.cs (2)
146return new CausalLMModelOutput(lastHiddenState: hiddenStates, allHiddenStates: allHiddenStates.ToArray(), attentions: allAttentions.ToArray(), cache: this._cache);
Microsoft.ML.GenAI.Phi (3)
Module\Phi3Model.cs (2)
145return new CausalLMModelOutput(lastHiddenState: hiddenStates, allHiddenStates: allHiddenStates.ToArray(), attentions: allAttentions.ToArray(), cache: this._cache);
Phi3\Phi3CausalLMTextGenerationService.cs (1)
42stopSequences: stopTokenSequence.ToArray(),
Microsoft.ML.IntegrationTests (1)
Prediction.cs (1)
69var newModel = new TransformerChain<BinaryPredictionTransformer<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>>(transformers.ToArray());
Microsoft.ML.LightGbm (8)
LightGbmTrainerBase.cs (4)
577catMetaData.CategoricalBoudaries = catBoundaries.ToArray(); 776labels = labelList.ToArray(); 780weights = hasWeights ? weightList.ToArray() : null; 796groups = groupList.ToArray();
WrappedLightGbmBooster.cs (2)
117return values.ToArray(); 186return cats.ToArray();
WrappedLightGbmTraining.cs (2)
53var header = new ProgressHeader(metrics.ToArray(), units.ToArray());
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
289Inputs = (options.InputColumns.Count() == 0) ? Model.ModelInfo.InputNames.ToArray() : options.InputColumns; 290Outputs = (options.OutputColumns.Count() == 0) ? Model.ModelInfo.OutputNames.ToArray() : options.OutputColumns;
Microsoft.ML.Parquet (1)
ParquetLoader.cs (1)
267return columnsLoaded.ToArray();
Microsoft.ML.PerformanceTests (2)
FeaturizeTextBench.cs (1)
41Columns = columns.ToArray(),
TextLoaderBench.cs (1)
44Columns = _columns.ToArray(),
Microsoft.ML.Predictor.Tests (7)
ResultProcessor\TestResultProcessor.cs (6)
51return result.ToArray(); 68"singleclassifier-sample-output.txt", testFiles.ToArray()); 85"singleclassifier-withspace-sample-output.txt", testFiles.ToArray()); 102"singleclassifier-withemptylines-sample-output.txt", testFiles.ToArray()); 119"multiclassifier-sample-output.txt", testFiles.ToArray()); 139"classifierregressor-sample-output.txt", testFiles.ToArray());
TestTransposer.cs (1)
133vecs[r] = new VBuffer<T>(slotCount, indices.Count, vals, indices.ToArray());
Microsoft.ML.Recommender (1)
SafeTrainingAndModelBuffer.cs (1)
311return nodes.ToArray();
Microsoft.ML.ResultProcessor (3)
ResultProcessor.cs (3)
951select kvp.Value).ToArray() 1063cmd.Metrics = m.ToArray(); 1150outStream.Write(predictorName + "\t" + result.Datafile + "\t" + result.TestDatafile + "\t" + result.InputFile + "\t" + result.Time + "\t" + result.PhysicalMemory + "\t" + result.VirtualMemory + "\t" + result.Commandline + "\t" + String.Join(";", result.GetSettings().ToArray()) + "\t");
Microsoft.ML.Samples (1)
Dynamic\DataOperations\LoadingText.cs (1)
60var multipleFilesData = loader.Load(dataFiles.ToArray());
Microsoft.ML.Samples.OneDal (3)
Program.cs (3)
42columns: columns.ToArray() 46return dataList.ToArray(); 61return featuresList.ToArray();
Microsoft.ML.SearchSpace (2)
Option\NestOption.cs (1)
76return res.ToArray();
SearchSpace.cs (1)
144return res.ToArray();
Microsoft.ML.StandardTrainers (9)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
472pch.SetHeader(new ProgressHeader(metricNames.ToArray(), new string[] { "iterations", "examples" }), entry =>
LdSvm\LdSvmTrainer.cs (1)
525_examples = examples.ToArray();
Optimizer\DifferentiableFunction.cs (2)
214VBuffer<float> dir = new VBuffer<float>(x.Length, values.Count, values.ToArray(), indices.ToArray());
Standard\LogisticRegression\LbfgsPredictorBase.cs (3)
541int[] labelsArray = labelsList.ToArray(); 542float[] featuresArray = featuresList.ToArray(); 547float[] weightsArray = weightsList.ToArray();
Standard\ModelStatistics.cs (1)
453return featureNames.ToArray();
Standard\SdcaBinary.cs (1)
1807return outCols.ToArray();
Microsoft.ML.Sweeper (13)
Algorithms\KdoSweeper.cs (2)
188return children.ToArray(); 246double[] mu = numericParamValues.ToArray();
Algorithms\NelderMead.cs (2)
115_initSweeper = options.FirstBatchSweeper.CreateComponent(env, _sweepParameters.ToArray()); 442return result.ToArray();
Algorithms\SmacSweeper.cs (4)
325return neighbors.ToArray(); 347datasetLeafValues.Add(leafValues.ToArray()); 349return datasetLeafValues.ToArray(); 399return outSet.ToArray();
Algorithms\SweeperProbabilityUtils.cs (2)
74return rvs.ToArray(); 209return result.ToArray();
ConfigRunner.cs (1)
114var runs = RunNums.ToArray();
Parameters.cs (2)
292_gridValues = result.ToArray(); 416_gridValues = result.ToArray();
Microsoft.ML.TestFramework (8)
BaseTestPredictorsMaml.cs (2)
301ResultProcessor.Main(Env, args.ToArray()); 473return optionsList.ToArray();
DataPipe\TestDataPipeBase.cs (6)
396saver.SaveData(out argsLoader, stream, view, savable.ToArray()); 411chooseargs.Indices = savable.ToArray(); 543saver.SaveData(stream, view, savable.ToArray()); 551chooseargs.Indices = savable.ToArray(); 594saver.SaveData(stream, view, savable.ToArray()); 602chooseargs.Indices = savable.ToArray();
Microsoft.ML.Tests (1)
Transformers\ValueMappingTests.cs (1)
205var valuesArray = values.ToArray();
Microsoft.ML.TimeSeries (5)
SeasonalityDetector.cs (1)
84double[] inputRe = valueCache.ToArray();
SrCnnAnomalyDetectionBase.cs (1)
181FftUtils.ComputeForwardFft(backAddList.ToArray(), Enumerable.Repeat(0.0f, length).ToArray(), fftRe, fftIm, length);
SrCnnEntireAnomalyDetector.cs (3)
311_modeler.Train(_previousBatch.ToArray(), ref _results); 324_modeler.Train(_batch.ToArray(), ref _results); 894return anomalyIdxList.ToArray();
Microsoft.ML.TorchSharp (9)
AutoFormerV2\ObjectDetectionTrainer.cs (3)
465NumberDataViewType.UInt32, true, new SchemaShape(metadata.ToArray())); 471NumberDataViewType.Single, false, new SchemaShape(scoreMetadata.ToArray())); 569NumberDataViewType.Single, false, new SchemaShape(scoreMetadata.ToArray()));
NasBert\NasBertTrainer.cs (2)
336NumberDataViewType.UInt32, true, new SchemaShape(metadata.ToArray())); 351NumberDataViewType.UInt32, true, new SchemaShape(metadata.ToArray()));
NasBert\NerTrainer.cs (1)
131VBuffer<long> t = new VBuffer<long>(target.Length + 1, tl.ToArray());
Roberta\QATrainer.cs (2)
523NumberDataViewType.Single, false, new SchemaShape(scoreMetadata.ToArray())); 610NumberDataViewType.Single, false, new SchemaShape(scoreMetadata.ToArray()));
Utils\ImageUtils.cs (1)
152var ids = torch.from_array(keep.ToArray()).to_type(ScalarType.Int64).to(device: boxes.device);
Microsoft.ML.Transforms (36)
CountFeatureSelection.cs (4)
183result[colPair.Name] = new SchemaShape.Column(colPair.Name, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray())); 276dropSlotsCols.Add(new SlotsDroppingTransformer.ColumnOptions(columnOptions[i].Name, columnOptions[i].InputColumnName, slots.ToArray())); 278dropSlotsColumns = dropSlotsCols.ToArray(); 279copyColumnsPairs = copyCols.ToArray();
Expression\LambdaParser.cs (4)
392return new LambdaNode(tok ?? tokFirst, items.ToArray(), expr); 663return new CompareNode(tok, op, new ListNode(tok, list.ToArray(), ops.ToArray())); 727return new ListNode(tok, list.ToArray(), Utils.ToArray(commas));
GcnTransform.cs (1)
924result[colPair.Name] = new SchemaShape.Column(colPair.Name, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray()));
LearnerFeatureSelection.cs (1)
226return new SlotsDroppingTransformer.ColumnOptions(options.FeatureColumn, slots: slots.ToArray());
MissingValueHandlingTransformer.cs (5)
227output = MissingValueIndicatorTransformer.Create(h, new MissingValueIndicatorTransformer.Options() { Columns = naIndicatorCols.ToArray() }, input); 234output = new TypeConvertingTransformer(h, naConvCols.ToArray()).Transform(output) as IDataTransform; 237output = MissingValueReplacingTransformer.Create(env, output ?? input, replaceCols.ToArray()); 241output = ColumnConcatenatingTransformer.Create(h, new ColumnConcatenatingTransformer.TaggedOptions() { Columns = concatCols.ToArray() }, output); 245output = ColumnSelectingTransformer.CreateDrop(h, output, dropCols.ToArray()) as IDataTransform;
MissingValueIndicatorTransformer.cs (1)
549result[colPair.outputColumnName] = new SchemaShape.Column(colPair.outputColumnName, col.Kind, type, false, new SchemaShape(metadata.ToArray()));
MissingValueReplacing.cs (1)
1053result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, col.Kind, type, false, new SchemaShape(metadata.ToArray()));
MutualInformationFeatureSelection.cs (4)
250result[colPair.outputColumnName] = new SchemaShape.Column(colPair.outputColumnName, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray())); 376dropCols.Add(new SlotsDroppingTransformer.ColumnOptions(cols[i].outputColumnName, cols[i].inputColumnName, slots.ToArray())); 378dropSlotsColumns = dropCols.ToArray(); 379copyColumnsPairs = copyCols.ToArray();
OneHotEncoding.cs (1)
121var transformed = new OneHotEncodingEstimator(env, columns.ToArray(), keyData).Fit(input).Transform(input);
OneHotHashEncoding.cs (1)
164return new OneHotHashEncodingEstimator(env, columns.ToArray()).Fit(input).Transform(input) as IDataTransform;
PermutationFeatureImportance.cs (1)
167float[] featureValuesBuffer = initialfeatureValuesList.ToArray();
SvmLight\SvmLightLoader.cs (2)
240intermediate.FeatureKeys = new VBuffer<ReadOnlyMemory<char>>(keys.Count, keys.ToArray()); 241intermediate.FeatureValues = new VBuffer<float>(values.Count, values.ToArray());
Text\TextFeaturizingEstimator.cs (2)
575chain = AddToChainAndTransform(chain, new LpNormNormalizingTransformer(h, xfCols.ToArray()), ref view); 605chain = AddToChainAndTransform(chain, new ColumnSelectingTransformer(h, null, tempCols.ToArray()), ref view);
Text\TokenizingByCharacters.cs (1)
696result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, SchemaShape.Column.VectorKind.VariableVector, NumberDataViewType.UInt16, true, new SchemaShape(metadata.ToArray()));
Text\WordBagTransform.cs (1)
520chain = chain.Append<ITransformer>(new ValueToKeyMappingEstimator(h, columnOptions.ToArray(), keyData));
Text\WordHashBagProducingTransform.cs (3)
135ITransformer t1 = new WordTokenizingEstimator(env, tokenizeColumns.ToArray()).Fit(view); 154ITransformer t3 = new ColumnSelectingTransformer(env, null, tmpColNames.ToArray()); 372var hashing = new HashingEstimator(h, hashColumns.ToArray()).Fit(input);
Text\WordTokenizing.cs (2)
358ctx.Hide(toHide.ToArray()); 359ctx.DeclareVar(toDeclare.ToArray());
UngroupTransform.cs (1)
512_sizeGetters = needed.ToArray();
Microsoft.ML.Vision (3)
ImageClassificationTrainer.cs (3)
645NumberDataViewType.UInt32, true, new SchemaShape(metadata.ToArray())) 963runner = new Runner(_session, runnerInputTensorNames.ToArray(), 964runnerOutputTensorNames.Count() > 0 ? runnerOutputTensorNames.ToArray() : null,
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\Symbols.vb (2)
984result = collectionMethods.ToArray() 1074result = collectionMethods.ToArray()
Microsoft.VisualStudio.LanguageServices (2)
Preview\FileChange.cs (1)
121return new ChangeList(spanChanges.ToArray());
Snippets\SnippetExpansionClient.cs (1)
696new XElement(snippetNamespace + "Declarations", declarations.ToArray()),
MSBuild (3)
TypeLoader.cs (1)
62return runtimeAssembliesList.ToArray();
XMake.cs (2)
871distributedLoggerRecords.ToArray(), 3852return loggers.ToArray();
PresentationBuildTasks (8)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (4)
93MainEmbeddedFiles = mainEmbeddedList.ToArray(); 94SatelliteEmbeddedFiles = satelliteEmbeddedList.ToArray(); 95CLREmbeddedResource = clrEmbeddedResourceList.ToArray(); 96CLRSatelliteEmbeddedResource = clrSatelliteEmbeddedResourceList.ToArray();
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (1)
442_recompileMarkupPages = recompiledXaml.ToArray();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\MS\Internal\Globalization\LocalizationComments.cs (1)
196return tokens.ToArray();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
122Assembly[] asmList = interestingAssemblies.ToArray(); 227return foundAttributes.ToArray();
PresentationCore (24)
MS\Internal\Ink\ErasingStroke.cs (1)
319return newPath.ToArray();
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (3)
244return gestures.ToArray(); 625recResults = resultList.ToArray(); 727recResults = (GestureRecognitionResult[])(resultList.ToArray());
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (2)
137return compressedData.ToArray(); 298return compressedData.ToArray();
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (1)
641return output.ToArray();
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
109char[] chars = charData.ToArray();
MS\Internal\Ink\InkSerializedFormat\LZCodec.cs (1)
94return output.ToArray();
MS\Internal\Ink\Lasso.cs (1)
319return strokeIntersectionList.ToArray();
MS\Internal\Ink\StrokeIntersection.cs (2)
209return inFIndices.ToArray(); 241return hitFIndices.ToArray();
MS\Internal\TextFormatting\LineServicesRun.cs (1)
886textRunTypographyProperties.CachedFeatureSet = fontFeatures.ToArray();
System\Windows\dataobject.cs (1)
1266return distinct.ToArray();
System\Windows\Ink\IncrementalHitTester.cs (1)
549strokeHitEventArgCollection.Add(new StrokeHitEventArgs(strokeInfo.Stroke, eraseAt.ToArray()));
System\Windows\Ink\Stroke2.cs (1)
574return intersections.ToArray();
System\Windows\Ink\StrokeCollection2.cs (1)
337StrokeCollection eraseResult = stroke.Erase(intersections.ToArray());
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (1)
94_stylusPointPropertyInfos = infos.ToArray();
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
51Array.Copy(TabletDevices.ToArray(), 0, array, index, Count);
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (1)
184UnsafeNativeMethods.SetInteractionConfigurationInteractionContext(_interactionContext, (uint)configuration.Count, configuration.ToArray());
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
114_stylusDevices = new StylusDeviceCollection(pointerStylusDevices.ToArray());
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceInfo.cs (1)
273SupportedPointerProperties = supportedProperties.ToArray();
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (1)
1168workerOps = _workerOperation.ToArray();
System\Windows\Media\FamilyMap.cs (1)
275return ranges.ToArray();
PresentationFramework (28)
MS\Internal\Data\PathParser.cs (1)
165return _error is null ? _sourceValueInfos.ToArray() : Array.Empty<SourceValueInfo>();
MS\Internal\Data\PropertyPathWorker.cs (1)
1326return list.ToArray();
MS\Internal\Globalization\LocalizationComments.cs (1)
196return tokens.ToArray();
MS\Internal\Ink\LassoHelper.cs (1)
134return justAdded.ToArray();
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
288InkCanvas.ChangeInkCanvasSelection(selectedStrokes, elementsToSelect.ToArray());
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
470return providers.ToArray(); 626return providers.ToArray();
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (3)
204return selectedProviders.ToArray(); 257return providers.ToArray(); 287return providers.ToArray();
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (2)
570return providers.ToArray(); 592return providers.ToArray();
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
392return selectedProviders.ToArray();
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
147return array.ToArray();
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
102return selectedProviders.ToArray();
System\Windows\Controls\InkCanvas.cs (2)
2128CoreChangeSelection(newStrokes, newElements.ToArray(), EditingMode == InkCanvasEditingMode.Select); 2533return elements.ToArray();
System\Windows\Controls\PopupControlService.cs (2)
1367_points = points.ToArray(); 1537_points = points.ToArray();
System\Windows\Controls\TextAdaptor.cs (1)
164return rectangles.ToArray();
System\Windows\Data\BindingExpressionBase.cs (1)
2473tempList.ToArray() :
System\Windows\Documents\FixedPage.cs (1)
1043return childPath.ToArray();
System\Windows\Documents\FixedPageStructure.cs (1)
838_flowNodes = nodes.ToArray();
System\Windows\Documents\FixedTextBuilder.cs (3)
1552_pageStructure.SetupLineResults(_lineResults.ToArray()); 1676FixedSOMElements = _textRuns.ToArray() 1753FixedLineResult newLineResult = new FixedLineResult(_nodesInLine.ToArray(), _lineLayoutBox);
System\Windows\Documents\TextEffectResolver.cs (1)
90return list.ToArray();
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
189result[key] = list.ToArray();
PresentationUI (2)
MS\Internal\Documents\Application\DocumentManager.cs (1)
77_controllers.ToArray());
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
257return addresses.ToArray();
RoutingSandbox (1)
HelloExtension\HelloMiddleware.cs (1)
27_helloPayload = payload.ToArray();
RoutingWebSite (1)
HelloExtension\HelloMiddleware.cs (1)
27_helloPayload = payload.ToArray();
RunTests (1)
TestRunner.cs (1)
153await Task.WhenAny(running.ToArray());
SampleStartups (1)
StartupExternallyControlled.cs (1)
39.UseUrls(_urls.ToArray());
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
548return new JsonSchemaExporterContext(typeInfo, baseTypeInfo, declaringType, propertyInfo, parameterInfo, propertyAttributeProvider, _currentPath.ToArray());
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\StreamExtensions.cs (2)
73return data.ToArray(); 89return data.ToArray();
System.CodeDom (1)
System\CodeDom\Compiler\CodeDomProvider.cs (1)
113public static CompilerInfo[] GetAllCompilerInfo() => s_allCompilerInfo.ToArray();
System.Collections (1)
System\Collections\Generic\PriorityQueueDebugView.cs (1)
36return list.ToArray();
System.Collections.Concurrent (4)
System\Collections\Concurrent\BlockingCollection.cs (3)
987index = WaitHandle.WaitAny(handles.ToArray(), timeout); 1080cancellationTokens = tokensList.ToArray(); 1387int index = WaitHandle.WaitAny(handles.ToArray(), timeout);
System\Collections\Concurrent\ConcurrentStack.cs (1)
684ToList(curr).ToArray();
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
70return new PropertyDescriptorCollection(tempPropertyDescriptors.ToArray(), true);
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
259return removedAttribute ? new AttributeCollection(attributes.ToArray()) : propertyDescriptorAttributes;
System.ComponentModel.Composition (3)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
385return exports.ToArray();
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (1)
97catalogs = _catalogs.ToArray();
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
201_types = typesList.ToArray();
System.ComponentModel.TypeConverter (4)
System\ComponentModel\EnumConverter.cs (1)
216return flagValues.ToArray();
System\ComponentModel\MemberDescriptor.cs (1)
367Attribute[] newAttributes = list.ToArray();
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
873return typeList.ToArray();
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
146_attributes = new AttributeCollection(attributes.ToArray());
System.Composition.Hosting (1)
System\Composition\Hosting\Core\UpdateResult.cs (1)
55_results = _providedDescriptors.ToArray();
System.Composition.TypedParts (5)
System\Composition\Debugging\ContainerConfigurationDebuggerProxy.cs (2)
78_discoveredParts = discovered.ToArray(); 79_ignoredTypes = ignored.ToArray();
System\Composition\Hosting\ContainerConfiguration.cs (3)
42return CompositionHost.CreateCompositionHost(providers.ToArray()); 298return _addedSources.ToArray(); 303return _types.ToArray();
System.Configuration.ConfigurationManager (1)
System\Configuration\ApplicationSettingsBase.cs (1)
736return settingProps.ToArray();
System.Data.Common (8)
System\Data\Common\DbDataAdapter.cs (1)
1452DataRow[] rowsInError = (null != rows) ? rows.ToArray() : rowUpdatedEvent.Rows!;
System\Data\DataSet.cs (1)
3254topTables.ToArray();
System\Data\DataTable.cs (1)
1603nestedParents.ToArray();
System\Data\Filter\AggregateNode.cs (1)
220records = recordList.ToArray();
System\Data\Filter\DataExpression.cs (2)
100_dependency = list.ToArray(); 185int[] records = recordList.ToArray();
System\Data\Select.cs (1)
829return matchingRecords.ToArray();
System\Data\Selection.cs (1)
501return list.ToArray();
System.Data.Odbc (7)
Common\System\Data\Common\DBConnectionString.cs (4)
410restrictionValues = newlist.ToArray(); 433restrictionValues = newlist.ToArray(); 459string[] restrictionValues = newlist.ToArray(); 488return RemoveDuplicates(restrictionValues.ToArray());
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (2)
258DbConnectionPool[] poolsToRelease = _poolsToRelease.ToArray(); 281DbConnectionPoolGroup[] poolGroupsToRelease = _poolGroupsToRelease.ToArray();
System\Data\Odbc\OdbcCommandBuilder.cs (1)
246return rParams.ToArray();
System.Diagnostics.Process (2)
System\Diagnostics\Process.Unix.cs (1)
605return argvList.ToArray();
System\Diagnostics\ProcessManager.Linux.cs (1)
15public static int[] GetProcessIds() => new List<int>(EnumerateProcessIds()).ToArray();
System.Diagnostics.TraceSource (1)
System\Diagnostics\CorrelationManager.cs (1)
135return results.ToArray();
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
49return context._results.ToArray();
System.IO.Packaging (1)
System\IO\Packaging\ZipPackage.cs (1)
249return parts.ToArray();
System.IO.Ports (4)
System\IO\Ports\SerialPort.Unix.cs (4)
70return ports.ToArray(); 89return ports.ToArray(); 115return ports.ToArray(); 138return ports.ToArray();
System.Linq (1)
System\Linq\DebugView.cs (1)
86return tempList.ToArray();
System.Linq.AsyncEnumerable (1)
System\Linq\ToArrayAsync.cs (1)
36return list.ToArray();
System.Linq.Expressions (17)
System\Dynamic\BindingRestrictions.cs (1)
379return restrictions.ToArray();
System\Linq\Expressions\Compiler\BoundConstants.cs (1)
76return _values.ToArray();
System\Linq\Expressions\Interpreter\CallInstruction.cs (1)
222Type[] arrTypes = types.ToArray();
System\Linq\Expressions\Interpreter\InstructionList.cs (3)
142return result.ToArray(); 302_instructions.ToArray(), 303_objects?.ToArray(),
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (2)
145exception.Data[typeof(InterpretedFrameInfo)] ??= new List<InterpretedFrameInfo>(GetStackTraceDebugInfo()).ToArray(); 165return trace.ToArray();
System\Linq\Expressions\Interpreter\LightCompiler.cs (5)
336DebugInfo[] debugInfos = _debugInfos.ToArray(); 2082exHandlers?.ToArray())); 2089new TryCatchFinallyHandler(tryStart, tryEnd, gotoEnd.TargetIndex, exHandlers.ToArray())); 2193_instructions.EmitByRefCall(method, parameters, updaters.ToArray()); 2416_instructions.EmitByRefNew(node.Constructor, parameters, updaters.ToArray());
System\Linq\Expressions\Interpreter\TypeOperations.cs (2)
602ConstantExpression boxesConst = Expression.Constant(new RuntimeOps.RuntimeVariables(boxes.ToArray()), typeof(IRuntimeVariables)); 612Expression.RuntimeVariables(new TrueReadOnlyCollection<ParameterExpression>(vars.ToArray())),
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (2)
157ConstantExpression boxesConst = Expression.Constant(new RuntimeVariables(boxes.ToArray()), typeof(IRuntimeVariables)); 167Expression.RuntimeVariables(new TrueReadOnlyCollection<ParameterExpression>(vars.ToArray())),
System.Linq.Parallel (1)
System\Linq\Parallel\Merging\DefaultMergeHelper.cs (1)
172return output.ToArray();
System.Net.Http (2)
System\Net\Http\DiagnosticsHandler.cs (1)
44_propagatorFields = fieldDescriptors.ToArray();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
571localHttp2Connections = _availableHttp2Connections?.ToArray();
System.Net.HttpListener (3)
System\Net\HttpListenerRequestUriBuilder.cs (2)
306decodedString = encoding.GetString(_rawOctets.ToArray()); 310AppendOctetsPercentEncoded(_requestUriString!, _rawOctets.ToArray());
System\Net\Managed\HttpListener.Managed.cs (1)
239var ctxs = (HttpListenerContext[])_contextQueue.ToArray();
System.Net.Mail (4)
System\Net\Mail\SmtpFailedRecipientsException.cs (1)
55_innerExceptions = innerExceptions.ToArray();
System\Net\Mail\SmtpReplyReaderFactory.cs (3)
348return lines.ToArray(); 356return lines.ToArray(); 406return thisPtr._lines!.ToArray();
System.Net.Requests (1)
System\Net\FtpControlStream.cs (1)
656return commandList.ToArray();
System.Net.WebHeaderCollection (2)
System\Net\HeaderInfoTable.cs (1)
56return tempStringCollection.ToArray();
System\Net\WebHeaderCollection.cs (1)
255return valueList.ToArray();
System.Numerics.Tensors (9)
System\Numerics\Tensors\netcore\TensorExtensions.cs (9)
2783strides = origStrides.ToArray(); 2853strides = origStrides.ToArray(); 2922strides = origStrides.ToArray(); 3296lengths = tempLengths.ToArray(); 3312lengths = tempLengths.ToArray(); 3352lengths = tempLengths.ToArray(); 3368lengths = tempLengths.ToArray(); 3408lengths = tempLengths.ToArray(); 3424lengths = tempLengths.ToArray();
System.Private.CoreLib (49)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
49return context._results.ToArray();
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 (3)
103: this(message, new List<Exception>(innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions))).ToArray(), cloneExceptions: false) 281throw new AggregateException(Message, unhandledExceptions.ToArray(), cloneExceptions: false); 335return new AggregateException(GetType() == typeof(AggregateException) ? base.Message : Message, flattenedExceptions.ToArray(), cloneExceptions: false);
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1172return list.ToArray();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
144_stackFrames = frameList.ToArray();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (3)
4006factories = s_preregisteredEventSourceFactories.ToArray(); 4460WeakReference<EventSource>[] eventSourcesSnapshot = s_EventSources.ToArray(); 4625WeakReference<EventSource>[] eventSourcesSnapshot = s_EventSources.ToArray();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EnumerableTypeInfo.cs (1)
58return serializedEnumerable.ToArray();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs (1)
71this.properties = propertyList.ToArray();
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (3)
160datePatterns = datePatternsList.ToArray(); 394monthNames = callbackContext.Results.ToArray(); 423calendarData = callbackContext.Results.ToArray();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
577return list.ToArray();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (1)
416string[] results = data.strings.ToArray();
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
1785return results.ToArray();
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
1307return results.ToArray();
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Icu.cs (1)
127return eras.ToArray();
src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (3)
174=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Files, enumerationOptions)).ToArray(); 184=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Directories, enumerationOptions)).ToArray(); 194=> new List<string>(InternalEnumeratePaths(path, searchPattern, SearchTarget.Both, enumerationOptions)).ToArray();
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (3)
118=> new List<FileInfo>((IEnumerable<FileInfo>)InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Files, enumerationOptions)).ToArray(); 133=> new List<FileSystemInfo>(InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Both, enumerationOptions)).ToArray(); 146=> new List<DirectoryInfo>((IEnumerable<DirectoryInfo>)InternalEnumerateInfos(FullPath, searchPattern, SearchTarget.Directories, enumerationOptions)).ToArray();
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
880return lines.ToArray(); 1318return lines.ToArray();
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
598finalists = results.ToArray(); 650finalists = results.ToArray();
src\libraries\System.Private.CoreLib\src\System\SearchValues\BitmapCharSearchValues.cs (1)
40return chars.ToArray();
src\libraries\System.Private.CoreLib\src\System\SearchValues\BitVector256.cs (2)
61return chars.ToArray(); 74return bytes.ToArray();
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
85return new CompositeFormat(format, segments.ToArray());
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
6288new WhenAllPromise<TResult>(taskList.ToArray()); 7109return result.ToArray();
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (2)
467activeTasksArray = (new List<Task>(activeTasksSource)).ToArray(); 509TaskScheduler[] arr = schedulers.ToArray();
src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (1)
106public TimerQueueTimer[] Items => new List<TimerQueueTimer>(_queue.GetTimersForDebugger()).ToArray();
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
398return count != 0 ? rules.ToArray() : null;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
224return rulesList.ToArray(); 508rules = rulesList.ToArray();
src\System\Reflection\Associates.cs (1)
203other = otherList?.ToArray();
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
747return m_typeInterfaces.ToArray();
src\System\Reflection\RuntimeAssembly.cs (3)
785throw new ReflectionTypeLoadException(types.ToArray(), exceptions.ToArray()); 788return types.ToArray();
src\System\Reflection\RuntimeEventInfo.cs (1)
148return ret.ToArray();
src\System\Reflection\RuntimePropertyInfo.cs (1)
246return accessorList.ToArray();
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\XmlSerializableServices.cs (1)
44return nodeList.ToArray();
System\Xml\XmlBufferReader.cs (1)
1246return list.ToArray();
System.Private.Xml (50)
System\Xml\Schema\ContentValidator.cs (1)
1509return transitionTable.ToArray();
System\Xml\Schema\SchemaCollectionCompiler.cs (1)
686mainUnion.SetBaseMemberTypes(memberTypeDefinitions.ToArray());
System\Xml\Schema\SchemaSetCompiler.cs (1)
775mainUnion.SetBaseMemberTypes(memberTypeDefinitions.ToArray());
System\Xml\Schema\XmlValueConverter.cs (1)
3057return listDst.ToArray();
System\Xml\Schema\XsdBuilder.cs (1)
795_xso.SetUnhandledAttributes(_unhandledAttributes.ToArray());
System\Xml\Serialization\Models.cs (1)
438_constants = list.ToArray();
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (4)
239Member[] members = membersList.ToArray(); 240Member[] textOrArrayMembers = textOrArrayMembersList.ToArray(); 247Member[] attributeMembers = attributeMembersList.ToArray(); 1726Member[] allMembers = allMembersList.ToArray();
System\Xml\Serialization\SoapReflectionImporter.cs (2)
411mapping.Members = members.ToArray(); 585mapping.Constants = constants.ToArray();
System\Xml\Serialization\Types.cs (2)
1031return list.ToArray(); 1058return list.ToArray();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
926mapping.Members = members.ToArray(); 1224mapping.Constants = constants.ToArray();
System\Xml\Serialization\XmlSerializationReader.cs (7)
1957XmlNode[] childNodes = xmlNodeList.ToArray(); 2569Member[] members = membersList.ToArray(); 2570Member[] textOrArrayMembers = textOrArrayMembersList.ToArray(); 2578Member[] attributeMembers = attributeMembersList.ToArray(); 3377Member[] arraysToDeclare = arraysToDeclareList.ToArray(); 3378Member[] arraysToSet = arraysToSetList.ToArray(); 3379Member[] allMembers = allMembersList.ToArray();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (14)
332argTypes.ToArray() 496Member[] members = membersList.ToArray(); 497Member[] textOrArrayMembers = textOrArrayMembersList.ToArray(); 515Member[] attributeMembers = attributeMembersList.ToArray(); 1037argTypes.ToArray(), 1038argNames.ToArray(), 1159argTypes.ToArray() 1342argTypes.ToArray(), 1343argNames.ToArray(), 1601Member[] arraysToDeclare = arraysToDeclareList.ToArray(); 1602Member[] arraysToSet = arraysToSetList.ToArray(); 1603Member[] allMembers = allMembersList.ToArray(); 2015argTypes.ToArray() 3165argTypes.ToArray()
System\Xml\Serialization\XmlSerializationWriterILGen.cs (9)
116argTypes.ToArray() 267argTypes.ToArray() 608argTypes.ToArray(), 609argNames.ToArray(), 773argTypes.ToArray()); 932argTypes.ToArray(), 933argNames.ToArray(), 1336argTypes.ToArray() 2015argTypes.ToArray());
System\Xml\Xsl\IlGen\StaticDataManager.cs (3)
44return _list.ToArray(); 137get { return _prefixMappingsList?.ToArray(); } 159get { return _globalNames?.ToArray(); }
System\Xml\Xsl\Runtime\StringConcat.cs (1)
77_ => string.Concat(_strList!.ToArray()),
System.Reflection.Context (6)
System\Reflection\Context\CollectionServices.cs (1)
42return list.ToArray();
System\Reflection\Context\Custom\CustomType.cs (4)
82return results.ToArray(); 139return binder.SelectProperty(bindingAttr, matchingProperties.ToArray(), returnType, types, modifiers); 181return results.ToArray(); 281return (MethodInfo?)binder.SelectMethod(bindingAttr, matchingMethods.ToArray(), types, modifiers);
System\Reflection\Context\Projection\ProjectingType.cs (1)
135return matchingMembers.ToArray();
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
315return new GeneratedTypeInfo(_tb.CreateType(), _methodInfos.ToArray());
System.Reflection.Emit (13)
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (1)
70_interfaces == null ? EmptyTypes : _interfaces.ToArray();
System\Reflection\Emit\TypeBuilderImpl.cs (12)
772return constructors.ToArray(); 789return ctors.ToArray(); 814return methods.ToArray(); 836return methods.ToArray(); 932return fields.ToArray(); 955return fields.ToArray(); 1001return interfaces.ToArray(); 1038return properties.ToArray(); 1061return candidates.ToArray(); 1098return binder.SelectProperty(bindingAttr, candidates.ToArray(), returnType, types, modifiers); 1144return nestedTypes.ToArray(); 1162return nestedTypes.ToArray();
System.Reflection.MetadataLoadContext (11)
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
84return list.ToArray();
System\Reflection\TypeLoading\Assemblies\RoAssembly.GetForwardedTypes.cs (3)
59throw new ReflectionTypeLoadException(types.ToArray(), exceptions.ToArray()); 62return types.ToArray();
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (2)
57return modules.ToArray(); 96return modules.ToArray();
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (1)
78return results.ToArray();
System\Reflection\TypeLoading\General\Helpers.cs (1)
61return Array.AsReadOnly(list.ToArray());
System\Reflection\TypeLoading\Types\RoModifiedFunctionPointerType.cs (1)
82return builder.Count == 0 ? EmptyTypes : builder.ToArray();
System\Reflection\TypeLoading\Types\RoModifiedType.cs (2)
85_requiredModifiers = _requiredModifiersBuilder.ToArray(); 103_optionalModifiers = _optionalModifiersBuilder.ToArray();
System.Security.Cryptography (13)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
115decoded.AttrValues = tmpList.ToArray();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (1)
133decoded.BagAttributes = tmpList.ToArray();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (1)
113decoded.UnprotectedAttributes = tmpList.ToArray();
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
128decoded.Attributes = tmpList.ToArray();
System\Security\Cryptography\CryptoConfig.cs (1)
459cons = candidates.ToArray();
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (1)
128decoded.Attributes = tmpList.ToArray();
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml.cs (1)
136decoded.CRLIssuer = tmpList.ToArray();
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (1)
140decoded.FullName = tmpList.ToArray();
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (1)
275decoded.Extensions = tmpList.ToArray();
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
875tbsCertificate.Extensions = extensionAsns.ToArray();
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (3)
720ChainStatus = overallStatus?.ToArray() ?? Array.Empty<X509ChainStatus>(); 880status = statusBuilder.ToArray(); 959elementStatus.ToArray(),
System.Security.Cryptography.Pkcs (28)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (1)
83envelopedData.UnprotectedAttributes = PkcsHelpers.NormalizeAttributeSet(attrList.ToArray());
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
115decoded.AttrValues = tmpList.ToArray();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (1)
133decoded.BagAttributes = tmpList.ToArray();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs (1)
113decoded.UnprotectedAttributes = tmpList.ToArray();
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
128decoded.Attributes = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (1)
99decoded.Issuer = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\EnvelopedDataAsn.xml.cs (2)
134decoded.RecipientInfos = tmpList.ToArray(); 154decoded.UnprotectedAttributes = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (1)
144decoded.RecipientEncryptedKeys = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (2)
126decoded.CertificateSet = tmpList.ToArray(); 148decoded.RevocationInfoChoices = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\PolicyInformation.xml.cs (1)
112decoded.PolicyQualifiers = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (1)
190decoded.Extensions = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (1)
224decoded.Extensions = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
110decoded.SignedAttributes = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\SignedDataAsn.xml.cs (4)
151decoded.DigestAlgorithms = tmpList.ToArray(); 171decoded.CertificateSet = tmpList.ToArray(); 193decoded.Crls = tmpList.ToArray(); 211decoded.SignerInfos = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\SignerInfoAsn.xml.cs (1)
164decoded.UnsignedAttributes = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateAsn.xml.cs (2)
108decoded.Certs = tmpList.ToArray(); 127decoded.Policies = tmpList.ToArray();
System\Security\Cryptography\Pkcs\Asn1\SigningCertificateV2Asn.xml.cs (2)
108decoded.Certs = tmpList.ToArray(); 127decoded.Policies = tmpList.ToArray();
System\Security\Cryptography\Pkcs\CmsSigner.cs (2)
237signedAttrs.ToArray(), 286newSignerInfo.UnsignedAttributes = PkcsHelpers.NormalizeAttributeSet(attrs.ToArray());
System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (1)
265info.Attributes = PkcsHelpers.NormalizeAttributeSet(PkcsHelpers.BuildAttributes(Attributes).ToArray());
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
262return new SignerInfoCollection(signerInfos.ToArray());
System.Security.Permissions (1)
System\Security\Permissions\PrincipalPermission.cs (1)
171return (idroles == null) ? null : new PrincipalPermission(idroles.ToArray());
System.Text.Json (6)
src\libraries\System.Text.Json\Common\ReflectionExtensions.cs (1)
336return results.ToArray();
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (1)
31state.Current.ReturnValue = list.ToArray();
System\Text\Json\Serialization\Converters\Collection\MemoryConverter.cs (1)
43Memory<T> memory = ((List<T>)state.Current.ReturnValue!).ToArray().AsMemory();
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (1)
43ReadOnlyMemory<T> memory = ((List<T>)state.Current.ReturnValue!).ToArray().AsMemory();
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
1146_propertyCache = propertyCache.ToArray(); 1233_parameterCache = parameterCache.ToArray();
System.Text.Json.SourceGeneration (2)
Helpers\RoslynExtensions.cs (1)
244return list.ToArray();
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
75T[] arrayCopy = items.ToArray();
System.Text.RegularExpressions (13)
System\Text\RegularExpressions\Regex.Split.cs (1)
147return state.results.ToArray();
System\Text\RegularExpressions\RegexCharClass.cs (1)
1862return temp.ConvertAll(kvp => kvp.Key).ToArray();
System\Text\RegularExpressions\RegexLWCGCompiler.cs (1)
66return new CompiledRegexRunnerFactory(scanMethod, _searchValues?.ToArray(), regexTree.Culture);
System\Text\RegularExpressions\RegexParser.cs (1)
133return new RegexTree(root, captureCount, parser._capnamelist?.ToArray(), parser._capnames!, sparseMapping, options, parser._hasIgnoreCaseBackreferenceNodes ? culture : null);
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
291return sorted.ToArray();
System\Text\RegularExpressions\Symbolic\BDDRangeConverter.cs (2)
91result = merged.ToArray(); 183ranges = ranges1.ToArray();
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (2)
411targets = targetsList.ToArray(); 443targets = targetsList.ToArray();
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (4)
1442currentEffects.ToArray() : 1491currentEffects.ToArray() : 1498currentEffects.ToArray() : 1899MintermGenerator<TSet>.GenerateMinterms(builder._solver, GetSets(builder)).ToArray();
System.Text.RegularExpressions.Generator (4)
RegexGenerator.Emitter.cs (2)
580$" int i = span.IndexOfAnyExcept({EmitSearchValues(excludedAsciiChars.ToArray(), requiredHelpers)});"); 620requiredHelpers.Add(helperName, lines.ToArray());
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
1862return temp.ConvertAll(kvp => kvp.Key).ToArray();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (1)
133return new RegexTree(root, captureCount, parser._capnamelist?.ToArray(), parser._capnames!, sparseMapping, options, parser._hasIgnoreCaseBackreferenceNodes ? culture : null);
System.Threading.Channels (2)
src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
System\Threading\Channels\IDebugEnumerator.cs (1)
23Items = list.ToArray();
System.Threading.Tasks.Dataflow (2)
Internal\SpscTargetCore.cs (1)
334lock (_exceptions) exceptions = _exceptions.ToArray();
src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (1)
435public T[] Items => new List<T>(_queue).ToArray();
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Automation\Peers\RibbonGalleryAutomationPeer.cs (1)
185return selectedProviders.ToArray();
System.Windows.Forms (5)
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
255return attributes.Count == 0 ? new(s_staticAttributes) : new(attributes.ToArray());
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
656dataGridViewCell.Items.AddRangeInternal(Items.InnerArray.ToArray());
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (1)
179return headers.ToArray();
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1071return _tabPages.ToArray();
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
157var itemsToAdd = toolStripItems.InnerList.ToArray();
System.Windows.Forms.Design (8)
System\ComponentModel\Design\SelectionService.cs (1)
343return _selection?.ToArray() ?? [];
System\Drawing\Design\ToolboxItem.cs (2)
634Filter = filterItems.ToArray(); 716info.AddValue("PropertyNames", propertyNames.ToArray());
System\Windows\Forms\Design\CommandSet.cs (2)
2162SelectionService?.SetSelectedComponents(selectComps.ToArray(), SelectionTypes.Replace); 3171newObjects[0] = names.ToArray();
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
270selSvc.SetSelectedComponents(selectComps.ToArray(), SelectionTypes.Replace); 823selService.SetSelectedComponents(selectComps.ToArray(), SelectionTypes.Replace);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
1480dragComps = behDataObject.DragComponents.ToArray();
System.Xaml (7)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (6)
665property, _context.CurrentType, string.Join(", ", token.NeededNames.ToArray())))); 731_context.CurrentCtorArgs = ((List<object>)_context.CurrentCollection).ToArray(); 2015string names = string.Join(',', token.NeededNames.ToArray()); 2054string names = string.Join(',', token.NeededNames.ToArray()); 2108string names = string.Join(',', token.NeededNames.ToArray()); 2267string namesString = string.Join(", ", names.ToArray());
System\Xaml\XamlType.cs (1)
672ctorArray = new List<ConstructorInfo>(ctors).ToArray();
vbc (1)
src\Compilers\Shared\BuildClient.cs (1)
167var exitCode = RunLocalCompilation(parsedArgs.ToArray(), buildPaths, textWriter);
VBCSCompiler (3)
src\Compilers\Server\VBCSCompiler\BuildProtocolUtil.cs (1)
71return commandLineArguments.ToArray();
src\Compilers\Server\VBCSCompiler\ServerDispatcher.cs (1)
197Task.WaitAny(all.ToArray(), cancellationToken);
src\Compilers\Shared\BuildClient.cs (1)
167var exitCode = RunLocalCompilation(parsedArgs.ToArray(), buildPaths, textWriter);
xunit.assert (2)
CollectionAsserts.cs (1)
145 throw AllException.ForFailures(idx, errors.ToArray());
Sdk\Exceptions\ExceptionUtility.cs (1)
56 return string.Join(Environment.NewLine, results.ToArray());
xunit.console (1)
common\Json.cs (1)
476return new JsonArray(list.ToArray(), head.Line, head.Column);