1 type derived from Array
System.Private.CoreLib (1)
System\Array.NativeAot.cs (1)
516internal class Array<T> : Array, IEnumerable<T>, ICollection<T>, IList<T>, IReadOnlyList<T>
8035 references to Array
aspire (25)
Backchannel\AppHostCliBackchannel.cs (1)
456Array.Empty<object>(),
Certificates\CertificateGeneration\CertificateManager.cs (6)
699Array.Clear(keyBytes, 0, keyBytes.Length); 700Array.Clear(pem, 0, pem.Length); 706Array.Clear(keyBytes, 0, keyBytes.Length); 707Array.Clear(pem, 0, pem.Length); 757Array.Clear(bytes, 0, bytes.Length); 785Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Certificates\CertificateGeneration\UnixCertificateManager.cs (1)
176Array.Clear(export, 0, export.Length);
Certificates\CertificateGeneration\WindowsCertificateManager.cs (1)
62Array.Clear(export, 0, export.Length);
Commands\AgentInitCommand.cs (1)
234var preSelected = combinedSkillApplicator is not null ? [combinedSkillApplicator] : Array.Empty<AgentEnvironmentApplicator>();
Commands\InitCommand.cs (5)
327initContext.ProjectsToAddServiceDefaultsTo = Array.Empty<ExecutableProjectInfo>(); 862public IReadOnlyList<FileInfo> SolutionProjects { get; set; } = Array.Empty<FileInfo>(); 872public IReadOnlyList<ExecutableProjectInfo> ExecutableProjects { get; set; } = Array.Empty<ExecutableProjectInfo>(); 877public IReadOnlyList<ExecutableProjectInfo> ExecutableProjectsToAddToAppHost { get; set; } = Array.Empty<ExecutableProjectInfo>(); 882public IReadOnlyList<ExecutableProjectInfo> ProjectsToAddServiceDefaultsTo { get; set; } = Array.Empty<ExecutableProjectInfo>();
Commands\TelemetryCommandHelpers.cs (1)
215Array.Sort(resources, (a, b) =>
DotNet\DotNetCliRunner.cs (2)
1030return (exitCode, Array.Empty<string>()); 1070return (exitCode, Array.Empty<FileInfo>());
Mcp\Docs\DocsCache.cs (1)
206result[i] = Array.IndexOf(s_invalidFileNameChars, c) >= 0 ? '_' : c;
Projects\DotNetAppHostProject.cs (1)
38Array.AsReadOnly([".csproj", ".fsproj", ".vbproj"]);
Projects\FallbackProjectParser.cs (1)
108var projectReferences = Array.Empty<ProjectReferenceInfo>();
Projects\ProjectUpdater.cs (1)
837Array.Empty<string>(), // No items needed
src\Shared\CircularBuffer.cs (1)
242return Array.Empty<T>();
Templating\DotNetTemplateFactory.cs (2)
450return await ApplyTemplateAsync(template, inputs, parseResult, (_, _) => Task.FromResult(Array.Empty<string>()), cancellationToken); 486(_, _) => Task.FromResult(Array.Empty<string>()),
Aspire.Cli.Tests (62)
Caching\DiskCacheTests.cs (1)
85var files = new DirectoryInfo(diskPath).Exists ? Directory.GetFiles(diskPath, $"{hash}.*.json") : Array.Empty<string>();
Commands\AddCommandTests.cs (1)
430return (0, Array.Empty<NuGetPackage>());
Commands\DoCommandTests.cs (1)
221var outputPathIndex = Array.IndexOf(args, "--output-path");
Commands\InitCommandTests.cs (9)
79return (0, Array.Empty<FileInfo>()); 192return (1, Array.Empty<FileInfo>()); 235return (0, Array.Empty<FileInfo>()); 451return Task.FromResult<IEnumerable<Aspire.Shared.NuGetPackageCli>>(Array.Empty<Aspire.Shared.NuGetPackageCli>()); 456return Task.FromResult<IEnumerable<Aspire.Shared.NuGetPackageCli>>(Array.Empty<Aspire.Shared.NuGetPackageCli>()); 461return Task.FromResult<IEnumerable<Aspire.Shared.NuGetPackageCli>>(Array.Empty<Aspire.Shared.NuGetPackageCli>()); 576return Task.FromResult<IEnumerable<Aspire.Shared.NuGetPackageCli>>(Array.Empty<Aspire.Shared.NuGetPackageCli>()); 581return Task.FromResult<IEnumerable<Aspire.Shared.NuGetPackageCli>>(Array.Empty<Aspire.Shared.NuGetPackageCli>()); 586return Task.FromResult<IEnumerable<Aspire.Shared.NuGetPackageCli>>(Array.Empty<Aspire.Shared.NuGetPackageCli>());
Commands\NewCommandTests.cs (4)
560return (0, Array.Empty<NuGetPackage>()); 1633return Task.FromResult<IEnumerable<NuGetPackage>>(Array.Empty<NuGetPackage>()); 1638return Task.FromResult<IEnumerable<NuGetPackage>>(Array.Empty<NuGetPackage>()); 1643return Task.FromResult<IEnumerable<NuGetPackage>>(Array.Empty<NuGetPackage>());
Commands\RunCommandTests.cs (5)
562extensionBackchannel.GetCapabilitiesAsyncCallback = ct => Task.FromResult(Array.Empty<string>()); 961var watchIndex = Array.IndexOf(args, "watch"); 962var nonInteractiveIndex = Array.IndexOf(args, "--non-interactive"); 1057var watchIndex = Array.IndexOf(args, "watch"); 1058var verboseIndex = Array.IndexOf(args, "--verbose");
Commands\TelemetryCommandTests.cs (1)
188yield return [null, Array.Empty<IOtlpResource>(), "unknown"];
DotNet\DotNetCliRunnerTests.cs (32)
583var packageIndex = Array.IndexOf(args, "package"); 584var addIndex = Array.IndexOf(args, "add"); 585var fileIndex = Array.IndexOf(args, "--file"); 586var filePathIndex = Array.IndexOf(args, appHostFile.FullName); 587var packageNameIndex = Array.IndexOf(args, "Aspire.Hosting.Redis@9.2.0"); 638var packageIndex = Array.IndexOf(args, "package"); 639var addIndex = Array.IndexOf(args, "add"); 640var projectFlagIndex = Array.IndexOf(args, "--project"); 641var projectValueIndex = Array.IndexOf(args, projectFile.FullName); 642var packageNameIndex = Array.IndexOf(args, "Aspire.Hosting.Redis"); 643var versionFlagIndex = Array.IndexOf(args, "--version"); 644var versionValueIndex = Array.IndexOf(args, "9.2.0"); 645var sourceFlagIndex = Array.IndexOf(args, "--source"); 646var sourceValueIndex = Array.IndexOf(args, "https://api.nuget.org/v3/index.json"); 705var packageIndex = Array.IndexOf(args, "package"); 706var addIndex = Array.IndexOf(args, "add"); 707var packageNameIndex = Array.IndexOf(args, "Aspire.Hosting.Redis"); 708var versionFlagIndex = Array.IndexOf(args, "--version"); 709var versionValueIndex = Array.IndexOf(args, "9.2.0"); 710var projectFlagIndex = Array.IndexOf(args, "--project"); 711var projectValueIndex = Array.IndexOf(args, projectFile.FullName); 712var noRestoreIndex = Array.IndexOf(args, "--no-restore"); 773var packageIndex = Array.IndexOf(args, "package"); 774var addIndex = Array.IndexOf(args, "add"); 775var packageNameIndex = Array.IndexOf(args, "Aspire.Hosting.Redis"); 776var versionFlagIndex = Array.IndexOf(args, "--version"); 777var versionValueIndex = Array.IndexOf(args, "9.2.0"); 778var projectFlagIndex = Array.IndexOf(args, "--project"); 779var projectValueIndex = Array.IndexOf(args, projectFile.FullName); 780var sourceFlagIndex = Array.IndexOf(args, "--source"); 781var sourceValueIndex = Array.IndexOf(args, "https://api.nuget.org/v3/index.json"); 782var noRestoreIndex = Array.IndexOf(args, "--no-restore");
Interaction\ConsoleInteractionServiceTests.cs (2)
29var choices = Array.Empty<string>(); 42var choices = Array.Empty<string>();
Packaging\PackageChannelTests.cs (1)
100var mappings = Array.Empty<PackageMapping>();
Packaging\TemporaryNuGetConfigTests.cs (1)
90var mappings = Array.Empty<PackageMapping>();
TestServices\TestDotNetCliRunner.cs (1)
120: Task.FromResult<(int, IReadOnlyList<FileInfo>)>((0, Array.Empty<FileInfo>()));
TestServices\TestExtensionBackchannel.cs (1)
232: Task.FromResult(Array.Empty<string>());
Utils\CliTestHelper.cs (2)
259public string[] EnabledFeatures { get; set; } = Array.Empty<string>(); 260public string[] DisabledFeatures { get; set; } = Array.Empty<string>();
Aspire.Components.Common.TestUtilities (2)
ConformanceTests.cs (2)
53protected virtual (string json, string error)[] InvalidJsonToErrorMessage => Array.Empty<(string json, string error)>(); 57protected virtual string[] NotAcceptableLogCategories => Array.Empty<string>();
Aspire.Confluent.Kafka (2)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumer.cs (1)
358: Array.Empty<ActivityLink>();
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\OpenTelemetryConsumeResultExtensions.cs (1)
156: Array.Empty<ActivityLink>();
Aspire.Dashboard (8)
DashboardWebApplication.cs (1)
194_validationFailures = Array.Empty<string>();
Model\GenAI\GenAISchemaHelpers.cs (1)
147return Array.Empty<string>();
Otlp\Model\OtlpHelpers.cs (3)
175return Array.Empty<KeyValuePair<string, string>>(); 195return Array.Empty<KeyValuePair<string, string>>(); 267Array.Clear(copiedAttributes);
Otlp\Model\OtlpInstrument.cs (1)
58Array.Sort(tempAttributes, 0, copyCount, KeyValuePairComparer.Instance);
Otlp\Model\OtlpResourceView.cs (1)
37Array.Sort(properties, (p1, p2) => string.Compare(p1.Key, p2.Key, StringComparisons.OtlpAttribute));
src\Shared\CircularBuffer.cs (1)
242return Array.Empty<T>();
Aspire.Dashboard.Tests (3)
Integration\McpServiceTests.cs (1)
407var dataLine = Array.Find(responseText.Split('\n'), line => line.StartsWith("data:"));
Model\TelemetryExportServiceTests.cs (1)
1100return new TelemetryExportService(repository, consoleLogsFetcher, dashboardClient, Array.Empty<IOutgoingPeerResolver>());
TelemetryRepositoryTests\MetricsTests.cs (1)
403AssertDimensionValues(instrument.Dimensions, Array.Empty<KeyValuePair<string, string>>(), valueCount: 1);
Aspire.Hosting (14)
Dcp\DcpExecutor.cs (8)
1847Array.Clear(keyPem, 0, keyPem.Length); 1848Array.Clear(keyBytes, 0, keyBytes.Length); 1854Array.Clear(pfxBytes, 0, pfxBytes.Length); 2304Array.Clear(keyPem, 0, keyPem.Length); 2316Array.Clear(pfxBytes, 0, pfxBytes.Length); 2887Array.Clear(keyBytes, 0, keyBytes.Length); 2888Array.Clear(pemKey, 0, pemKey.Length); 2893Array.Clear(keyBytes, 0, keyBytes.Length);
Publishing\DockerContainerRuntime.cs (2)
190Array.Empty<object>()).ConfigureAwait(false); 209Array.Empty<object>()).ConfigureAwait(false);
Publishing\PodmanContainerRuntime.cs (1)
109Array.Empty<object>()).ConfigureAwait(false);
src\Shared\CircularBuffer.cs (1)
242return Array.Empty<T>();
src\Shared\CommandLineArgsParser.cs (1)
16var args = result.Count > 1 ? result.Skip(1).ToArray() : Array.Empty<string>();
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
147if (string.IsNullOrEmpty(profile.CommandName) || Array.Exists(s_allowedCommandNames, name => string.Equals(name, profile.CommandName, StringComparison.OrdinalIgnoreCase)))
Aspire.Hosting.Azure.AppConfiguration (1)
AzureAppConfigurationExtensions.cs (1)
220return builder.WithRoleAssignments(target, Array.Empty<AppConfigurationBuiltInRole>());
Aspire.Hosting.Azure.CognitiveServices (1)
AzureOpenAIExtensions.cs (1)
256return builder.WithRoleAssignments(target, Array.Empty<CognitiveServicesBuiltInRole>());
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryExtensions.cs (1)
297return builder.WithRoleAssignments(target, Array.Empty<ContainerRegistryBuiltInRole>());
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
541return builder.WithRoleAssignments(target, Array.Empty<EventHubsBuiltInRole>());
Aspire.Hosting.Azure.Functions (2)
src\Shared\CommandLineArgsParser.cs (1)
16var args = result.Count > 1 ? result.Skip(1).ToArray() : Array.Empty<string>();
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
147if (string.IsNullOrEmpty(profile.CommandName) || Array.Exists(s_allowedCommandNames, name => string.Equals(name, profile.CommandName, StringComparison.OrdinalIgnoreCase)))
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultResourceExtensions.cs (1)
198return builder.WithRoleAssignments(target, Array.Empty<KeyVaultBuiltInRole>());
Aspire.Hosting.Azure.Search (1)
AzureSearchExtensions.cs (1)
158return builder.WithRoleAssignments(target, Array.Empty<SearchBuiltInRole>());
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
694return builder.WithRoleAssignments(target, Array.Empty<ServiceBusBuiltInRole>());
Aspire.Hosting.Azure.SignalR (1)
AzureSignalRExtensions.cs (1)
223return builder.WithRoleAssignments(target, Array.Empty<SignalRBuiltInRole>());
Aspire.Hosting.Azure.Storage (2)
AzureStorageExtensions.cs (2)
698return builder.WithRoleAssignments(target, StorageBuiltInRole.GetBuiltInRoleName, Array.Empty<StorageBuiltInRole>()); 722return builder.WithRoleAssignments(target, Array.Empty<StorageBuiltInRole>());
Aspire.Hosting.Azure.Tests (7)
AzureKeyVaultTests.cs (1)
616container.WithRoleAssignments(kv, Array.Empty<AzureKeyVaultRole>()));
AzureOpenAIExtensionsTests.cs (1)
216container.WithRoleAssignments(openai, Array.Empty<AzureOpenAIRole>()));
AzureServiceBusExtensionsTests.cs (2)
849var roles = Array.CreateInstance(roleType, 1);
AzureStorageExtensionsTests.cs (3)
940container.WithRoleAssignments(storage, Array.Empty<StorageBuiltInRole>())); 977var roles = Array.CreateInstance(roleType, 1);
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubExtensions.cs (1)
339return builder.WithRoleAssignments(target, Array.Empty<WebPubSubBuiltInRole>());
Aspire.Hosting.Foundry (1)
FoundryExtensions.cs (1)
222return builder.WithRoleAssignments(target, Array.Empty<CognitiveServicesBuiltInRole>());
Aspire.Hosting.GitHub.Models (1)
GitHubModelsHealthCheck.cs (1)
49messages = Array.Empty<object>()
Aspire.Hosting.Maui (1)
Utilities\MauiEnvironmentHelper.cs (1)
192if (Array.IndexOf(invalidCharacters, chars[i]) >= 0)
Aspire.Hosting.RemoteHost (3)
Ats\AtsCallbackProxyFactory.cs (1)
84var ctParamIndex = Array.FindIndex(parameters, p => p.ParameterType == typeof(CancellationToken));
Ats\AtsMarshaller.cs (2)
398var converted = Array.CreateInstance(elementType, array.Count);
Aspire.Hosting.Tests (11)
Backchannel\AppHostBackchannelTests.cs (1)
88Array.Empty<object>()
Backchannel\AuxiliaryBackchannelTests.cs (6)
135Array.Empty<object>() 170Array.Empty<object>() 212Array.Empty<object>() 255Array.Empty<object>() 410Array.Empty<object>() 582Array.Empty<object>()
Dcp\DcpExecutorTests.cs (2)
2140foreach (var alias in aliases ?? Array.Empty<string>()) 2163foreach (var alias in aliases ?? Array.Empty<string>())
ExecutionConfigurationGathererTests.cs (1)
573Task.FromResult(Array.Empty<byte>()));
ResourceDependencyTests.cs (1)
689Array.Empty<IResource>(), executionContext);
Aspire.Hosting.Yarp.Tests (1)
YarpClusterTests.cs (1)
170Assert.Throws<ArgumentException>(() => config.AddCluster("test-cluster", Array.Empty<object>()));
Aspire.Microsoft.Azure.Cosmos.Tests (1)
ConformanceTests.cs (1)
19protected override string[] RequiredLogCategories => Array.Empty<string>();
Aspire.Microsoft.Data.SqlClient.Tests (1)
ConformanceTests.cs (1)
25protected override string[] RequiredLogCategories => Array.Empty<string>();
Aspire.Milvus.Client.Tests (1)
ConformanceTests.cs (1)
34protected override string[] RequiredLogCategories => Array.Empty<string>();
Aspire.Qdrant.Client.Tests (1)
ConformanceTests.cs (1)
28protected override string[] RequiredLogCategories => Array.Empty<string>();
Aspire.RabbitMQ.Client.Tests (1)
ConformanceTests.cs (1)
32protected override string[] RequiredLogCategories => Array.Empty<string>();
Aspire.RabbitMQ.Client.v6.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\ConformanceTests.cs (1)
32protected override string[] RequiredLogCategories => Array.Empty<string>();
Aspire.StackExchange.Redis.DistributedCaching.Tests (1)
DistributedCacheConformanceTests.cs (1)
22protected override (string json, string error)[] InvalidJsonToErrorMessage => Array.Empty<(string json, string error)>();
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
OutputCacheConformanceTests.cs (1)
22protected override (string json, string error)[] InvalidJsonToErrorMessage => Array.Empty<(string json, string error)>();
aspire-managed (2)
NuGet\Commands\RestoreCommand.cs (1)
61DefaultValueFactory = _ => Array.Empty<string>(),
NuGet\Commands\SearchCommand.cs (1)
57DefaultValueFactory = _ => Array.Empty<string>(),
AzureSearch.ApiService (1)
Hotel.cs (1)
38public bool? SmokingAllowed => (Rooms != null) ? Array.Exists(Rooms, element => element.SmokingAllowed == true) : (bool?)null;
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
23var hostBuilder = Host.CreateDefaultBuilder(Array.Empty<string>());
ConfigurationSchemaGenerator (2)
RuntimeSource\SourceGenerators\DiagnosticInfo.cs (1)
29MessageArgs = messageArgs ?? Array.Empty<object?>()
RuntimeSource\SourceGenerators\ImmutableEquatableArray.cs (1)
18public static ImmutableEquatableArray<T> Empty { get; } = new ImmutableEquatableArray<T>(Array.Empty<T>());
Contract.Service.IntegrationTests (1)
ServiceContractTests.4.0.0.cs (1)
498stream.ReadExactly(Array.Empty<byte>(), 0, 0);
crossgen2 (2)
Crossgen2RootCommand.cs (2)
30new("--mibc", "-m") { DefaultValueFactory = _ => Array.Empty<string>(), Description = SR.MibcFiles }; 82new("--codegenopt") { DefaultValueFactory = _ => Array.Empty<string>(), Description = SR.CodeGenOptions };
Crossgen2Tasks (1)
ResolveReadyToRunCompilers.cs (1)
129var supportedRIDsList = supportedRuntimeIdentifiers == null ? Array.Empty<string>() : supportedRuntimeIdentifiers.Split(';');
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
349var buffer = Array.Empty<byte>();
dotnet (212)
_generated\1\CliSchemaJsonSerializerContext.ArgumentDetails.g.cs (8)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("order", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("hidden", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("helpName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("valueType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("hasDefaultValue", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 190AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("defaultValue", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null), 210AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("arity", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.CliSchema.ArityDetails), global::System.Array.Empty<global::System.Type>(), null),
_generated\108\WorkloadHistoryJsonSerializerContext.WorkloadHistoryRecord.g.cs (11)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetProperty("TimeStarted", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetProperty("TimeCompleted", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetProperty("CommandName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetProperty("RollbackFileContents", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetProperty("CommandLineArgs", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetProperty("Succeeded", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetProperty("ErrorMessage", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetProperty("StateBeforeCommand", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryState), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetProperty("StateAfterCommand", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryState), global::System.Array.Empty<global::System.Type>(), null), 248AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetProperty("GlobalJsonVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\109\WorkloadHistoryJsonSerializerContext.WorkloadHistoryState.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryState).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryState).GetProperty("ManifestVersions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryState).GetProperty("WorkloadSetVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryState).GetProperty("InstalledWorkloads", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\121\PackInfoJsonSerializerContext.PackInfo.g.cs (6)
68AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.PackInfo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadPackId), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.PackInfo).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.PackInfo).GetProperty("Kind", InstanceMemberBindingFlags, null, typeof(global::Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadPackKind), global::System.Array.Empty<global::System.Type>(), null), 129AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.PackInfo).GetProperty("ResolvedPackageId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 150AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.PackInfo).GetProperty("Path", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 171AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.PackInfo).GetProperty("IsStillPacked", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\127\NugetSearchApiJsonSerializerContext.NugetSearchApiAuthorsSerializable.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiAuthorsSerializable).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiAuthorsSerializable).GetProperty("Authors", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\128\NugetSearchApiJsonSerializerContext.NugetSearchApiContainerSerializable.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiContainerSerializable).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiContainerSerializable).GetProperty("Data", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiPackageSerializable[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\129\NugetSearchApiJsonSerializerContext.NugetSearchApiPackageSerializable.g.cs (10)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiPackageSerializable).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiPackageSerializable).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiPackageSerializable).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiPackageSerializable).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiPackageSerializable).GetProperty("Summary", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiPackageSerializable).GetProperty("Tags", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiPackageSerializable).GetProperty("Authors", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiAuthorsSerializable), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiPackageSerializable).GetProperty("TotalDownloads", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiPackageSerializable).GetProperty("Verified", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiPackageSerializable).GetProperty("Versions", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiVersionSerializable[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\131\NugetSearchApiJsonSerializerContext.NugetSearchApiVersionSerializable.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiVersionSerializable).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiVersionSerializable).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.NugetSearch.NugetSearchApiSerializable.NugetSearchApiVersionSerializable).GetProperty("Downloads", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\140\SdkVulnerabilityJsonContext.SdkCveInfo.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo).GetProperty("Url", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\141\SdkVulnerabilityJsonContext.SdkVulnerabilityInfo.g.cs (7)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkVulnerabilityInfo).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkVulnerabilityInfo).GetProperty("IsEol", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkVulnerabilityInfo).GetProperty("EolDate", InstanceMemberBindingFlags, null, typeof(global::System.DateTime?), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkVulnerabilityInfo).GetProperty("Cves", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkVulnerabilityInfo).GetProperty("LatestSdkVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 150AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkVulnerabilityInfo).GetProperty("FeatureBandDiscontinued", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkVulnerabilityInfo).GetProperty("HasVulnerabilities", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\149\SlnfJsonSerializerContext.SlnfRoot.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SlnfFileHelper.SlnfRoot).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SlnfFileHelper.SlnfRoot).GetProperty("Solution", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.SlnfFileHelper.SlnfSolution), global::System.Array.Empty<global::System.Type>(), null),
_generated\150\SlnfJsonSerializerContext.SlnfSolution.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SlnfFileHelper.SlnfSolution).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SlnfFileHelper.SlnfSolution).GetProperty("Path", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SlnfFileHelper.SlnfSolution).GetProperty("Projects", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\156\TelemetryDiskLoggerJsonSerializerContext.ActivityModel.g.cs (7)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel).GetProperty("operationName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel).GetProperty("displayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 112AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel).GetProperty("duration", InstanceMemberBindingFlags, null, typeof(global::System.TimeSpan), global::System.Array.Empty<global::System.Type>(), null), 132AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel).GetProperty("identifiers", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.IdentifiersModel), global::System.Array.Empty<global::System.Type>(), null), 154AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel).GetProperty("source", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel), global::System.Array.Empty<global::System.Type>(), null), 176AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel).GetProperty("tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 198AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel).GetProperty("events", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\157\TelemetryDiskLoggerJsonSerializerContext.EventModel.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel).GetProperty("name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel).GetProperty("timestamp", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel).GetProperty("tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
_generated\159\TelemetryDiskLoggerJsonSerializerContext.IdentifiersModel.g.cs (6)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.IdentifiersModel).GetProperty("id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.IdentifiersModel).GetProperty("traceId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.IdentifiersModel).GetProperty("spanId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 132AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.IdentifiersModel).GetProperty("parentSpanId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 154AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.IdentifiersModel).GetProperty("parentId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 174AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.IdentifiersModel).GetProperty("rootId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\160\TelemetryDiskLoggerJsonSerializerContext.SourceModel.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel).GetProperty("name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel).GetProperty("version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel).GetProperty("tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
_generated\17\RunFileApiJsonSerializerContext.LinePosition.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.Text.LinePosition).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.Text.LinePosition).GetProperty("Line", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.Text.LinePosition).GetProperty("Character", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\170\LocalToolsCacheJsonSerializerContext.CacheRow.g.cs (7)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.ToolPackage.LocalToolsResolverCache.CacheRow).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 70AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.ToolPackage.LocalToolsResolverCache.CacheRow).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.ToolPackage.LocalToolsResolverCache.CacheRow).GetProperty("TargetFramework", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.ToolPackage.LocalToolsResolverCache.CacheRow).GetProperty("RuntimeIdentifier", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.ToolPackage.LocalToolsResolverCache.CacheRow).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 150AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.ToolPackage.LocalToolsResolverCache.CacheRow).GetProperty("Runner", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.ToolPackage.LocalToolsResolverCache.CacheRow).GetProperty("PathToExecutable", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\178\SdkVulnerabilityCacheJsonContext.SdkCveCacheSummary.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkCveCacheSummary).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkCveCacheSummary).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkCveCacheSummary).GetProperty("Url", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\179\SdkVulnerabilityCacheJsonContext.SdkVulnerabilityCacheSummary.g.cs (7)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerabilityCacheSummary).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerabilityCacheSummary).GetProperty("IsEol", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerabilityCacheSummary).GetProperty("EolDate", InstanceMemberBindingFlags, null, typeof(global::System.DateTime?), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerabilityCacheSummary).GetProperty("Cves", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.DotNet.Cli.SdkCveCacheSummary>), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerabilityCacheSummary).GetProperty("LatestSdkVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerabilityCacheSummary).GetProperty("FeatureBandDiscontinued", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerabilityCacheSummary).GetProperty("HasVulnerabilities", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\18\RunFileApiJsonSerializerContext.LinePositionSpan.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.Text.LinePositionSpan).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.Text.LinePositionSpan).GetProperty("Start", InstanceMemberBindingFlags, null, typeof(global::Microsoft.CodeAnalysis.Text.LinePosition), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.Text.LinePositionSpan).GetProperty("End", InstanceMemberBindingFlags, null, typeof(global::Microsoft.CodeAnalysis.Text.LinePosition), global::System.Array.Empty<global::System.Type>(), null),
_generated\2\CliSchemaJsonSerializerContext.ArityDetails.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArityDetails).GetProperty("minimum", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArityDetails).GetProperty("maximum", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
_generated\20\RunFileApiJsonSerializerContext.GetProject.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiInput.GetProject).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiInput.GetProject).GetProperty("ArtifactsPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiInput.GetProject).GetProperty("EntryPointFileFullPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\21\RunFileApiJsonSerializerContext.GetRunCommand.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiInput.GetRunCommand).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiInput.GetRunCommand).GetProperty("ArtifactsPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiInput.GetRunCommand).GetProperty("EntryPointFileFullPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\22\RunFileApiJsonSerializerContext.RunApiOutput.g.cs (1)
79AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\23\RunFileApiJsonSerializerContext.Error.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\24\RunFileApiJsonSerializerContext.Project.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project).GetProperty("Content", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project).GetProperty("ProjectPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project).GetProperty("Diagnostics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>), global::System.Array.Empty<global::System.Type>(), null), 135AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\25\RunFileApiJsonSerializerContext.RunCommand.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand).GetProperty("ExecutablePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand).GetProperty("CommandLineArguments", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand).GetProperty("WorkingDirectory", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 135AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 158AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\26\RunFileApiJsonSerializerContext.SimpleDiagnostic.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic).GetProperty("Location", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic.Position), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\27\RunFileApiJsonSerializerContext.Position.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic.Position).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic.Position).GetProperty("Path", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic.Position).GetProperty("Span", InstanceMemberBindingFlags, null, typeof(global::Microsoft.CodeAnalysis.Text.LinePositionSpan), global::System.Array.Empty<global::System.Type>(), null),
_generated\3\CliSchemaJsonSerializerContext.CommandDetails.g.cs (6)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("hidden", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("aliases", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("arguments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("options", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("subcommands", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>), global::System.Array.Empty<global::System.Type>(), null),
_generated\39\RunFileJsonSerializerContext.RunFileArtifactsMetadata.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Clean.FileBasedAppArtifacts.RunFileArtifactsMetadata).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Clean.FileBasedAppArtifacts.RunFileArtifactsMetadata).GetProperty("LastAutomaticCleanupUtc", InstanceMemberBindingFlags, null, typeof(global::System.DateTime?), global::System.Array.Empty<global::System.Type>(), null),
_generated\4\CliSchemaJsonSerializerContext.OptionDetails.g.cs (10)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("hidden", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("aliases", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("helpName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("valueType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("hasDefaultValue", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 190AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("defaultValue", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null), 210AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("arity", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.CliSchema.ArityDetails), global::System.Array.Empty<global::System.Type>(), null), 232AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("required", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 252AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.OptionDetails).GetProperty("recursive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\41\RunFileJsonSerializerContext.RunFileBuildCacheEntry.g.cs (11)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("GlobalProperties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("ImplicitBuildFiles", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.HashSet<string>), global::System.Array.Empty<global::System.Type>(), null), 112AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("Directives", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableArray<string>), global::System.Array.Empty<global::System.Type>(), null), 132AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("AdditionalSources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.HashSet<string>), global::System.Array.Empty<global::System.Type>(), null), 154AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("BuildLevel", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Commands.Run.BuildLevel), global::System.Array.Empty<global::System.Type>(), null), 174AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("SdkVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 194AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("RuntimeVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 214AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("Run", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunProperties), global::System.Array.Empty<global::System.Type>(), null), 234AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("CscArguments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableArray<string>), global::System.Array.Empty<global::System.Type>(), null), 254AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("BuildResultFile", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\42\RunFileJsonSerializerContext.RunProperties.g.cs (6)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunProperties).GetProperty("Command", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunProperties).GetProperty("Arguments", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunProperties).GetProperty("WorkingDirectory", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunProperties).GetProperty("RuntimeIdentifier", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 152AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunProperties).GetProperty("DefaultAppHostRuntimeIdentifier", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 174AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunProperties).GetProperty("TargetFrameworkVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\5\CliSchemaJsonSerializerContext.RootCommandDetails.g.cs (8)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.RootCommandDetails).GetProperty("name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.RootCommandDetails).GetProperty("version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 112AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 132AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("hidden", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 152AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("aliases", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 172AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("arguments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), global::System.Array.Empty<global::System.Type>(), null), 192AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("options", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), global::System.Array.Empty<global::System.Type>(), null), 212AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("subcommands", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>), global::System.Array.Empty<global::System.Type>(), null),
_generated\52\SdkCheckJsonSerializerContext.SdkCheckConfig.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Sdk.Check.SdkCheckConfig).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Sdk.Check.SdkCheckConfig).GetProperty("ReleasesUri", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Sdk.Check.SdkCheckConfig).GetProperty("ReleasesFilePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Sdk.Check.SdkCheckConfig).GetProperty("CommandOutputReplacementString", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\57\ToolListJsonSerializerContext.LocalToolListJsonContract.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.LocalToolListJsonContract).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.LocalToolListJsonContract).GetProperty("Manifest", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.ToolListJsonContract).GetProperty("PackageId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.ToolListJsonContract).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 131AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.ToolListJsonContract).GetProperty("Commands", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\59\ToolListJsonSerializerContext.ToolListJsonContract.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.ToolListJsonContract).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.ToolListJsonContract).GetProperty("PackageId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.ToolListJsonContract).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.ToolListJsonContract).GetProperty("Commands", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\61\ToolListJsonSerializerContext.VersionedDataContractLocalToolListJsonContractArray.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.VersionedDataContract<global::Microsoft.DotNet.Cli.Commands.Tool.List.LocalToolListJsonContract[]>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.VersionedDataContract<global::Microsoft.DotNet.Cli.Commands.Tool.List.LocalToolListJsonContract[]>).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.VersionedDataContract<global::Microsoft.DotNet.Cli.Commands.Tool.List.LocalToolListJsonContract[]>).GetProperty("Data", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.LocalToolListJsonContract[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\62\ToolListJsonSerializerContext.VersionedDataContractToolListJsonContractArray.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.VersionedDataContract<global::Microsoft.DotNet.Cli.Commands.Tool.List.ToolListJsonContract[]>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.VersionedDataContract<global::Microsoft.DotNet.Cli.Commands.Tool.List.ToolListJsonContract[]>).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.VersionedDataContract<global::Microsoft.DotNet.Cli.Commands.Tool.List.ToolListJsonContract[]>).GetProperty("Data", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Commands.Tool.List.ToolListJsonContract[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\86\InstallStateJsonSerializerContext.InstallStateContents.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("UseWorkloadSets", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("Manifests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("WorkloadVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\92\WorkloadListJsonSerializerContext.ListOutput.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.List.WorkloadListCommand.ListOutput).GetProperty("Installed", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.List.WorkloadListCommand.ListOutput).GetProperty("UpdateAvailable", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Commands.Workload.List.WorkloadListCommand.UpdateAvailableEntry[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\93\WorkloadListJsonSerializerContext.UpdateAvailableEntry.g.cs (4)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.List.WorkloadListCommand.UpdateAvailableEntry).GetProperty("ExistingManifestVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.List.WorkloadListCommand.UpdateAvailableEntry).GetProperty("AvailableUpdateManifestVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.List.WorkloadListCommand.UpdateAvailableEntry).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.List.WorkloadListCommand.UpdateAvailableEntry).GetProperty("WorkloadId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
CliCompletion.cs (1)
9using static System.Array;
Commands\Solution\List\SolutionListCommand.cs (1)
58Array.Sort(paths);
Commands\Test\MTP\Models.cs (1)
50return Array.Empty<TestModule>();
Commands\Test\MTP\MSBuildUtility.cs (2)
35return (Array.Empty<ParallelizableTestModuleGroupWithSequentialInnerModules>(), buildExitCode); 85return (Array.Empty<ParallelizableTestModuleGroupWithSequentialInnerModules>(), buildExitCode);
Commands\Test\MTP\TestApplicationHandler.cs (1)
356$"{failedTestResult.State}, {failedTestResult.Duration}, {failedTestResult.Reason}, {string.Join(", ", (failedTestResult.Exceptions ?? Array.Empty<ExceptionMessage>()).Select(e => $"{e.ErrorMessage}, {e.ErrorType}, {e.StackTrace}"))}" +
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26278.112\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
349var buffer = Array.Empty<byte>();
dotnet-dev-certs (19)
_generated\1\DevCertsJsonSerializerContext.CertificateReport.g.cs (10)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport).GetProperty("Thumbprint", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport).GetProperty("Subject", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport).GetProperty("X509SubjectAlternativeNameExtension", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport).GetProperty("ValidityNotBefore", InstanceMemberBindingFlags, null, typeof(global::System.DateTime), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport).GetProperty("ValidityNotAfter", InstanceMemberBindingFlags, null, typeof(global::System.DateTime), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport).GetProperty("IsHttpsDevelopmentCertificate", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport).GetProperty("IsExportable", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.DeveloperCertificates.Tools.CertificateReport).GetProperty("TrustLevel", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
ReporterEventListener.cs (1)
33var message = string.Format(CultureInfo.InvariantCulture, eventData.Message ?? "", eventData.Payload?.ToArray() ?? Array.Empty<object>());
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (6)
702Array.Clear(keyBytes, 0, keyBytes.Length); 703Array.Clear(pem, 0, pem.Length); 709Array.Clear(keyBytes, 0, keyBytes.Length); 710Array.Clear(pem, 0, pem.Length); 760Array.Clear(bytes, 0, bytes.Length); 788Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
176Array.Clear(export, 0, export.Length);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
66Array.Clear(export, 0, export.Length);
dotnet-format (12)
Commands\FormatCommandCommon.cs (10)
49DefaultValueFactory = _ => Array.Empty<string>(), 55DefaultValueFactory = _ => Array.Empty<string>(), 65DefaultValueFactory = _ => Array.Empty<string>(), 71DefaultValueFactory = _ => Array.Empty<string>(), 191var fileToInclude = parseResult.GetValue(IncludeOption) ?? Array.Empty<string>(); 192var fileToExclude = parseResult.GetValue(ExcludeOption) ?? Array.Empty<string>(); 260Array.Clear(subject, 0, subject.Length); 261Array.Resize(ref subject, 0); 275Array.Resize(ref subject, subject.Length + 1); 356var netCoreAppIndex = Array.IndexOf(pathParts, "Microsoft.NETCore.App");
FormatOptions.cs (2)
40FileMatcher: SourceFileMatcher.CreateMatcher(Array.Empty<string>(), Array.Empty<string>()),
dotnet-sourcelink (1)
dotnet-suggest (2)
FileEnumerator.cs (1)
16return Array.Empty<string>();
GlobalToolsSuggestionRegistration.cs (1)
40return Array.Empty<Registration>();
dotnet-svcutil.xmlserializer (2)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (1)
246types = Array.FindAll<Type>(rtle.Types, delegate (Type t) { return t != null; });
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
215if (Array.IndexOf(Path.GetInvalidFileNameChars(), c) == -1)
dotnet-svcutil-lib (266)
CodeDomFixup\CodeDomVisitors\ConstructorFixer.cs (1)
19Array.Empty<Type>(),
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerErrorCollection.cs (1)
117/// <para>Copies the <see cref='Microsoft.CodeDom.Compiler.CompilerErrorCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerInfo.cs (2)
160Array.Copy(_compilerLanguages, compilerLanguages, _compilerLanguages.Length); 167Array.Copy(_compilerExtensions, compilerExtensions, _compilerExtensions.Length);
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
138void ICollection.CopyTo(Array array, int start)
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeArgumentCollection.cs (1)
120/// <para>Copies the <see cref='Microsoft.CodeDom.CodeAttributeArgumentCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclarationCollection.cs (1)
120/// <para>Copies the <see cref='Microsoft.CodeDom.CodeAttributeDeclarationCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.CodeDom\System\CodeCatchClauseCollection.cs (1)
120/// <para>Copies the <see cref='Microsoft.CodeDom.CodeCatchClauseCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.CodeDom\System\CodeCommentStatementCollection.cs (1)
120/// <para>Copies the <see cref='Microsoft.CodeDom.CodeCommentStatementCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.CodeDom\System\CodeExpressionCollection.cs (1)
120/// <para>Copies the <see cref='Microsoft.CodeDom.CodeExpressionCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceCollection.cs (1)
120/// <para>Copies the <see cref='Microsoft.CodeDom.CodeNamespaceCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImportCollection.cs (1)
186void ICollection.CopyTo(Array array, int index)
FrameworkFork\Microsoft.CodeDom\System\CodeParameterDeclarationExpressionCollection.cs (1)
120/// <para>Copies the <see cref='Microsoft.CodeDom.CodeParameterDeclarationExpressionCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.CodeDom\System\CodeStatementCollection.cs (1)
129/// <para>Copies the <see cref='Microsoft.CodeDom.CodeStatementCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.CodeDom\System\CodeTypeDeclarationCollection.cs (1)
120/// <para>Copies the <see cref='Microsoft.CodeDom.CodeTypeDeclarationCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.CodeDom\System\CodeTypeMemberCollection.cs (1)
120/// <para>Copies the <see cref='Microsoft.CodeDom.CodeTypeMemberCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReferenceCollection.cs (1)
136/// <para>Copies the <see cref='Microsoft.CodeDom.CodeTypeReferenceCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
FrameworkFork\Microsoft.Xml\Xml\Base64Decoder.cs (1)
126internal override void SetNextOutputBuffer(Array buffer, int index, int count)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (11)
1913System.Array.Copy(symtable, 0, n, 0, symNum); 1929System.Array.Copy(qnametable, 0, n, 0, qnameNum); 1973Array.Clear(_symbolTables.symtable, 1, _symbolTables.symtable.Length - 1); 1974Array.Clear(_symbolTables.qnametable, 0, _symbolTables.qnametable.Length); 2022System.Array.Copy(data, mark, newdata, 0, cbKeep); 2027System.Array.Copy(data, mark, data, 0, cbKeep); 2434System.Array.Copy(_elementStack, 0, n, 0, _elementStack.Length); 2443System.Array.Copy(_attributes, 0, n, 0, _attrCount); 2752Array.Clear(_attrHashTbl, 0, tblSize); 4174Array.Copy(_data, _tokDataPos, data, 0, _tokLen); 4354Array.Copy(_data, _tokDataPos, data, 0, _tokLen);
FrameworkFork\Microsoft.Xml\Xml\BinHexDecoder.cs (2)
121internal override void SetNextOutputBuffer(Array buffer, int index, int count) 172Array.Copy(bytes, 0, tmp, 0, bytesDecoded);
FrameworkFork\Microsoft.Xml\Xml\BitStack.cs (1)
107Array.Copy(_bitStack, bitStackNew, len);
FrameworkFork\Microsoft.Xml\Xml\BufferBuilder.cs (1)
487Array.Copy(_buffers, 0, newBuffers, 0, _buffers.Length);
FrameworkFork\Microsoft.Xml\Xml\Core\IncrementalReadDecoders.cs (3)
19internal abstract void SetNextOutputBuffer(Array array, int offset, int len); 32internal override void SetNextOutputBuffer(Array array, int offset, int len) { } 112internal override void SetNextOutputBuffer(Array buffer, int index, int count)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEncodedRawTextWriter.cs (1)
1580Array.Copy(_textContentMarks, newTextContentMarks, _textContentMarks.Length);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEventCache.cs (1)
578Array.Copy(buffer, index, bufferNew, 0, count);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReader.cs (2)
1302Array.Copy(_nsAttributes, 0, newNsAttrs, 0, index); 1561private void CheckBuffer(Array buffer, int index, int count)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (8)
4594Array.Copy(_nodes, _index + 1, nameSortedAttributes, 0, _attrCount); 4595Array.Sort<object>(nameSortedAttributes, DtdDefaultAttributeInfoToNodeDataComparer.Instance); 5135Array.Copy(_nodes, _index + 1, _attrDuplSortingArray, 0, _attrCount); 5136Array.Sort(_attrDuplSortingArray, 0, _attrCount); 7789Array.Copy(_nodes, 0, newNodes, 0, _nodes.Length); 8248Array.Copy(_parsingStatesStack, 0, newParsingStateStack, 0, _parsingStatesStack.Length); 8279private int IncrementalRead(Array array, int index, int count) 9327if (Array.BinarySearch<object>(nameSortedNodeData, defAttrInfo, DtdDefaultAttributeInfoToNodeDataComparer.Instance) >= 0)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (2)
1475Array.Copy(_nsStack, newStack, nsIndex); 1735if (_top > 0) Array.Copy(_stack, na, _top + 1);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (3)
503Array.Copy(_elemScopeStack, newStack, top); 1855Array.Copy(_nsStack, newStack, top); 2224Array.Copy(_attrStack, newStack, top);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriterHelpers.cs (1)
518Array.Copy(_items, newItems, newItemIndex);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdCachingReader.cs (2)
674Array.Copy(_attributeEvents, 0, newAttributeEvents, 0, _attributeEvents.Length); 699Array.Copy(_contentEvents, 0, newContentEvents, 0, _contentEvents.Length);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (1)
2196Array.Copy(_attributePSVINodes, 0, newPSVINodes, 0, _attributePSVINodes.Length);
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (1)
572Array.Copy(_nodeSequenceToValidate, 0, newNodeSequence, 0, _nodeSequenceToValidate.Length);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttributeCollection.cs (1)
265void ICollection.CopyTo(Array array, int index)
FrameworkFork\Microsoft.Xml\Xml\HWStack.cs (1)
44System.Array.Copy(_stack, 0, newstack, 0, _used);
FrameworkFork\Microsoft.Xml\Xml\schema\BitSet.cs (1)
257Array.Copy(_bits, newBits, _bits.Length);
FrameworkFork\Microsoft.Xml\Xml\schema\ConstraintStruct.cs (10)
249_dim = ((Array)obj).Length; 289_dstruct.Dvalue[i] = Convert.ToDecimal(((Array)_ovalue).GetValue(i), NumberFormatInfo.InvariantInfo); 358Array arr1 = this.Value as System.Array; 372Array arr2 = other.Value as System.Array; 471Array arr = _ks[i].Value as System.Array; 484for (int j = 0; j < ((Array)_ks[i].Value).Length; j++) 486_hashcode += ((Array)_ks[i].Value).GetValue(j).GetHashCode();
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (2)
2105Array.Copy(rposInfo.rangeCounters, 0, newRPosInfo.rangeCounters, 0, rposInfo.rangeCounters.Length); 2132Array.Copy(rposInfo.rangeCounters, 0, newRPosInfo.rangeCounters, 0, rposInfo.rangeCounters.Length);
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (8)
160int i = Array.BinarySearch(s_xdrTypes, name, null); 166int i = Array.BinarySearch(s_xsdTypes, name, null); 984System.Array arr1 = (System.Array)value1; 985System.Array arr2 = (System.Array)value2; 1064Array valuesToCheck = valueToCheck as Array;
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (1)
1458Array.Copy(_condSectionEntityIds, 0, tmp, 0, _condSectionEntityIds.Length);
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (2)
1647Array values = value as Array;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (1)
263void ICollection.CopyTo(Array array, int index)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (2)
215public void CopyTo(Array array, int arrayIndex) 270public void CopyTo(Array array, int arrayIndex)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
332_clrTypeDefault = Array.CreateInstance(converterAtomic.DefaultClrType, 0).GetType();
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (2)
698if (arrayType == typeof(Array)) 701Call(typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) }));
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifiers.cs (2)
187Array array = Array.CreateInstance(type, _list.Count);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (3)
395Array.Copy(_elements, 0, _sortedElements, 0, _elements.Length); 762Array.Sort(elements, new AccessorComparer()); 792Array.Copy(_elements, 0, _sortedElements, 0, _elements.Length);
FrameworkFork\Microsoft.Xml\Xml\Serialization\NameTable.cs (3)
93internal Array ToArray(Type type) 95Array a = Array.CreateInstance(type, _table.Count);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (2)
877Array.Sort(member.Elements, new ElementComparer()); 1910Array.Sort(choice, new ElementComparer());
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationGeneratedCode.cs (1)
104Array.Copy(a, b, index);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (1)
136Array.Copy(a, b, index);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (16)
1435protected Array EnsureArrayIndex(Array a, int index, Type elementType) 1437if (a == null) return Array.CreateInstance(elementType, 32); 1439Array b = Array.CreateInstance(elementType, a.Length * 2); 1440Array.Copy(a, b, index); 1445protected Array ShrinkArray(Array a, int length, Type elementType, bool isNullable) 1450return Array.CreateInstance(elementType, 0); 1453Array b = Array.CreateInstance(elementType, length); 1454Array.Copy(a, b, length); 1637Array array = (Array)f.Source; 1753return Array.CreateInstance(elementType, 0); 1760Array array = null;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (5)
1299Array a = (Array)o; 3911WriteDefaultIndexerInit(typeof(IList), typeof(Array).FullName, false, false); 4202string typeFullName = arrayTypeDesc.IsCollection ? arrayTypeDesc.CSharpName : typeof(Array).FullName; 4318typeName = typeof(Array).FullName;
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (1)
172Array.Copy(_nsdecls, 0, newNsdecls, 0, _nsdecls.Length);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathMultyIterator.cs (1)
54Array.Copy(arr, firstNotEmpty, arr, firstNotEmpty + 1, pos - firstNotEmpty);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (7)
449type.GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public, Array.Empty<Type>()) != null); 507Array.Copy(baseChildElementNamespaces, 0, childElementNamespaces, 0, baseChildElementNamespaces.Length); 792this.ContractNamespaces = this.MemberNames = this.MemberNamespaces = Array.Empty<XmlDictionaryString>(); 835Array.Copy(BaseContract.MemberNames, 0, MemberNames, 0, baseMemberCount); 837Array.Copy(BaseContract.MemberNamespaces, 0, MemberNamespaces, 0, baseMemberCount); 840Array.Copy(BaseContract.ContractNamespaces, 0, ContractNamespaces, 0, baseContractCount); 1399ConstructorInfo ctor = type.GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public, Array.Empty<Type>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (2)
85s_arraySetValue = typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) }); 102s_objectToString = typeof(object).GetMethod("ToString", Array.Empty<Type>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (2)
1086defaultCtor = type.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, Array.Empty<Type>()); 1265getEnumeratorMethod = type.GetMethod(Globals.GetEnumeratorMethodName, BindingFlags.Instance | BindingFlags.Public, Array.Empty<Type>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (5)
656Array.Resize<DataContract>(ref s_dataContractCache, newSize); 934else if (type == typeof(Array)) 1007dataContract = new CollectionDataContract(typeof(Array)); 2110MethodInfo method = type.GetMethod(methodName, BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public, Array.Empty<Type>()); 2117object types = method.Invoke(null, Array.Empty<object>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (1)
156_knownTypeCollection = new ReadOnlyCollection<Type>(Array.Empty<Type>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
185Array.Copy(BaseContract._contractNamespaces, 0, _contractNamespaces, 0, baseContractCount);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExtensionDataReader.cs (2)
501Array.Copy(_elements, 0, newElements, 0, _elements.Length); 586Array.Copy(attributes, 0, newAttributes, 0, attributes.Length);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
93s_typeOfArray = typeof(Array);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectReferenceStack.cs (2)
32Array.Resize<object>(ref _objectArray, _objectArray.Length * 2); 67Array.Resize<bool>(ref _isReferenceArray, _isReferenceArray.Length * 2);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ScopedKnownTypes.cs (1)
20Array.Resize<DataContractDictionary>(ref dataContractDictionaries, dataContractDictionaries.Length * 2);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlDataContract.cs (1)
362ConstructorInfo ctor = type.GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public, Array.Empty<Type>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (3)
65s_writeEndElementMethod = typeof(XmlWriterDelegator).GetMethod("WriteEndElement", Globals.ScanAllMembers, Array.Empty<Type>()); 175s_isStartElementMethod0 = typeof(XmlReaderDelegator).GetMethod("IsStartElement", Globals.ScanAllMembers, Array.Empty<Type>()); 222s_hashtableCtor = Globals.TypeOfHashtable.GetConstructor(Globals.ScanAllMembers, Array.Empty<Type>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
512constructor = type.GetConstructor(BindingFlags.Instance | BindingFlags.Public, Array.Empty<Type>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
378MethodInfo moveNextMethod = enumeratorType.GetMethod(Globals.MoveNextMethodName, BindingFlags.Instance | BindingFlags.Public, Array.Empty<Type>()); 379MethodInfo getCurrentMethod = enumeratorType.GetMethod(Globals.GetCurrentMethodName, BindingFlags.Instance | BindingFlags.Public, Array.Empty<Type>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
479Array.Copy(array, 0, newArray, 0, array.Length); 494Array.Copy(array, 0, newArray, 0, size);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
458internal void IncrementArrayCount(XmlWriterDelegator xmlWriter, Array array)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
350return Array.Empty<byte>();
FrameworkFork\System.Runtime.Serialization\System\Xml\ArrayHelper.cs (2)
53Array.Copy(arrays[i], 0, newArray, offset, arrays[i].Length); 56Array.Copy(array, 0, newArray, offset, totalRead - offset);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (11)
300Array.Copy(_elementNodes, 0, newElementNodes, 0, _depth); 334Array.Copy(_attributeNodes, 0, newAttributeNodes, 0, attributeIndex); 1373Array.Copy(_trailBytes, 0, buffer, offset, actual); 1375Array.Copy(_trailBytes, actual, _trailBytes, 0, _trailByteCount); 1399Array.Copy(_trailChars, 0, chars, charCount, _trailCharCount); 1432Array.Copy(chars, charCount, _trailChars, 0, _trailCharCount); 1443Array.Copy(_trailBytes, 0, buffer, offset, actual); 1445Array.Copy(_trailBytes, actual, _trailBytes, 0, _trailByteCount); 2486Array.Sort(_indeces, 0, _attributeCount, this); 2697Array.Copy(_attributes, 0, newAttributes, 0, _attributeCount); 2735Array.Copy(_namespaces, 0, newNamespaces, 0, _nsCount);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (6)
619Array.Copy(_elements, 0, newElementNodes, 0, _depth); 1138else if (value is Array) 1140WriteValue((Array)value); 1567private void WriteValue(Array array) 1856Array.Copy(_attributes, 0, newAttributes, 0, _attributeCount); 1950Array.Copy(_namespaces, 0, newNamespaces, 0, _nsCount);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (1)
1205private void CheckArray(Array array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReaderSession.cs (2)
52Array.Copy(_strings, 0, newStrings, 0, _strings.Length); 126Array.Clear(_strings, 0, _strings.Length);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (1)
1267private void CheckArray(Array array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriterSession.cs (2)
121Array.Clear(_list, 0, _list.Length); 253Array.Copy(_array, 0, newArray, 0, _array.Length);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (2)
38private static XmlBufferReader s_empty = new XmlBufferReader(Array.Empty<byte>()); 114_buffer = Array.Empty<byte>();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionary.cs (1)
62Array.Resize(ref _strings, newSize);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (3)
841buffer = Array.Empty<byte>(); 861buffer = Array.Empty<byte>(); 891private void CheckArray(Array array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryWriter.cs (1)
403private void CheckArray(Array array, int offset, int count)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlStreamNodeWriter.cs (1)
472Array.Copy(newBytes, 0, buffer, (int)(bytes - _bytes) + offset, toCopy);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\BufferedOutputStream.cs (1)
128Array.Copy(_chunks, newChunks, _chunks.Length);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\SynchronizedPool.cs (1)
204Array.Copy(localPending, newPending, localPending.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedWriteStream.cs (3)
86Array.Copy(_buffer, 0, shadowBuffer, 0, _writePos); 244Array.Copy(array, offset, _buffer, _writePos, bytesToWrite); 380Array.Copy(array, offset, _buffer, _writePos, count);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (2)
69ConstructorInfo ctorInfo = handler.GetConstructor(Array.Empty<Type>()); 164instances[cnt] = (DelegatingHandler)_handlerCtors[cnt].Invoke(Array.Empty<Type>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (1)
74httpRequestMessage.Content = new ByteArrayContent(Array.Empty<byte>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageProperty.cs (2)
343HttpContent newContent = new ByteArrayContent(Array.Empty<byte>()); 354this.HttpRequestMessage.Content = new ByteArrayContent(Array.Empty<byte>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageExtensionMethods.cs (1)
35httpResponseMessage.Content = new ByteArrayContent(Array.Empty<byte>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageProperty.cs (2)
367HttpContent newContent = new ByteArrayContent(Array.Empty<byte>()); 378this.HttpResponseMessage.Content = new ByteArrayContent(Array.Empty<byte>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
2071Array.Copy(_entries, 1, _entries, 0, _entries.Length - 1);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (3)
107Array.Copy(headers._headers, _headers, _headerCount); 1265Array.Copy(_headers, headerIndex, _headers, headerIndex + 1, _headerCount - headerIndex); 1421Array.Copy(_headers, headerIndex + 1, _headers, headerIndex, _headerCount - headerIndex - 1);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (1)
709Array.Copy(_properties, newProperties, _properties.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (4)
1194Call(message.Headers.Action, true, operation, new object[] { message }, Array.Empty<object>(), timeout); 1210EndCall(MessageHeaders.WildcardAction, Array.Empty<object>(), result); 1221return (Message)Call(message.Headers.Action, false, operation, new object[] { message }, Array.Empty<object>(), timeout); 1237return (Message)EndCall(MessageHeaders.WildcardAction, Array.Empty<object>(), result);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (5)
180object result = channel.EndCall(operation.Action, Array.Empty<object>(), asyncResult); 222channel.EndCall(operation.Action, Array.Empty<object>(), asyncResult); 277return (bool)_tcsInfo.TrySetCanceledMethod.Invoke(_tcsInstance, Array.Empty<object>()); 293TrySetCanceledMethod = GenericType.GetRuntimeMethod("TrySetCanceled", Array.Empty<Type>()); 461Array.Copy(_methodDatas, newMethodDatas, _methodDatas.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (1)
57Array.Copy(supported, enc, supported.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (2)
1183Task task = _webSocket.SendAsync(new ArraySegment<byte>(Array.Empty<byte>(), 0, 0), _outgoingMessageType, true, timeoutHelper.GetCancellationToken()); 1209await _webSocket.SendAsync(new ArraySegment<byte>(Array.Empty<byte>(), 0, 0), _outgoingMessageType, true, cancelToken);
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (3)
542Array.Copy(args, inArgs, args.Length); 555Array.Copy(args, inArgs, args.Length); 567Array.Copy(retArgs, args, args.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (1)
141Array.Copy(arr, 0, newArr, 1, arr.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
489isReturn = Array.IndexOf<string>(parameterOrder, part.Name) == -1;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
986Array.Sort<MemberInfo>(publicMembers,
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (2)
646Array.Sort((MessagePartDescription[])xHeaders, MessagePartDescriptionComparer.Singleton); 647Array.Sort((MessagePartDescription[])yHeaders, MessagePartDescriptionComparer.Singleton);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (1)
1546Array.Sort<MessagePartDescription>(partDescriptions, CompareMessagePartDescriptions);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (2)
1004return Array.Exists<XmlQualifiedName>(prefixDefinitions, 1018Array.Find<XmlQualifiedName>(prefixDefinitions,
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (2)
1386Array.Resize<XmlAttribute>(ref attributes, i + 1); 2163if (attributes != null && Array.Exists(attributes, PolicyHelper.IsPolicyURIs))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
499Array.Copy(members, newMembers, newMembers.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ClientRuntime.cs (1)
404return Array.Empty<T>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
169Array.Sort<FaultContractInfo>(temp,
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (7)
685value = Array.Empty<bool>(); 698value = Array.Empty<DateTime>(); 711value = Array.Empty<Decimal>(); 724value = Array.Empty<Int32>(); 737value = Array.Empty<Int64>(); 750value = Array.Empty<Single>(); 763value = Array.Empty<Double>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (4)
70_outParams = Array.Empty<ParameterInfo>(); 309outs = Array.Empty<object>(); 316return Array.Empty<object>(); 325ins = Array.Empty<object>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (5)
435Array tArray = Array.CreateInstance(headerDescription.Type, messageHeaderOfTArray.Length); 493object[] messageHeaderOfTArray = (object[])Array.CreateInstance(TypedHeaderManager.GetMessageHeaderType(headerDescription.Type), messageHeaderOfTAttributes.Count); 494Array headerValues = (Array)headerValue;
FrameworkFork\System.ServiceModel\System\ServiceModel\EmptyArray.cs (2)
14return Array.Empty<T>(); 23return Array.Empty<T>();
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (1)
411return Array.Empty<IChannel>();
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
234void ICollection.CopyTo(Array array, int index)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
178void ICollection.CopyTo(Array array, int index)
FrameworkFork\System.Web.Services\Configuration\WebServicesSection.cs (1)
85Array.Sort(prefixes);
Metadata\MetadataFileNameManager.cs (1)
158if (Array.IndexOf(Path.GetInvalidFileNameChars(), c) == -1)
OutputPathHelper.cs (1)
164if (Array.IndexOf(Path.GetInvalidFileNameChars(), c) == -1)
Shared\Options\ListValue.cs (2)
182public void CopyTo(Array array, int index) 187void ICollection.CopyTo(Array array, int index)
TypeLoader.cs (1)
49listType.AddRange(Array.FindAll<Type>(rtle.Types, delegate (Type t)
dotnet-user-jwts (16)
_generated\0\JwtSerializerContext.Jwt.g.cs (11)
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt).GetProperty("Scheme", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt).GetProperty("Audience", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt).GetProperty("NotBefore", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt).GetProperty("Expires", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt).GetProperty("Issued", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt).GetProperty("Token", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt).GetProperty("Scopes", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null), 248AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt).GetProperty("Roles", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null), 268AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt).GetProperty("CustomClaims", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\2\JwtSerializerContext.SigningKey.g.cs (4)
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey).GetProperty("Issuer", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey).GetProperty("Length", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
Commands\ListCommand.cs (1)
61reporter.Output(JsonSerializer.Serialize(Array.Empty<Jwt>(), JwtSerializerContext.Default.JwtArray));
EventSourceGenerator (1)
EventSourceGenerator.Parser.cs (1)
189Array.Resize(ref bytes, 16);
Extensibility.MessageEncoder.IntegrationTests (2)
CustomTextMessageEncoder.cs (2)
63Array.Copy(buffer.Array, buffer.Offset, msgContents, 0, msgContents.Length); 95Array.Copy(messageBuffer.Array, 0, totalBytes, messageOffset, messageLength);
GenerateDocumentationAndConfigFiles (74)
Program.cs (1)
786var actualContent = Array.Empty<string>();
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (3)
23private static Word[] s_emptyArray => Array.Empty<Word>(); 100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords); 385if (_bits != null) Array.Clear(_bits, 0, _bits.Length);
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (3)
202bytes = new ArraySegment<byte>(Array.Empty<byte>()); 221bytes = new ArraySegment<byte>(Array.Empty<byte>()); 242: new ArraySegment<byte>(Array.Empty<byte>());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ArrayExtensions.cs (8)
25Array.Copy(array, start, newArray, 0, length); 34Array.Copy(array, newArray, position); 39Array.Copy(array, position, newArray, position + 1, array.Length - position); 56Array.Copy(array, newArray, position); 61Array.Copy(array, position, newArray, position + items.Length, array.Length - position); 88Array.Copy(array, newArray, position); 93Array.Copy(array, position + length, newArray, position, newArray.Length - position); 102Array.Copy(array, newArray, array.Length);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\EnumUtilties.cs (1)
35return Array.IndexOf(GetValues<T>(), value) >= 0;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (2)
64return Array.Empty<byte>(); 69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (2)
73Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 112Array.Sort(_values, 0, _index, comparer);
src\roslyn\src\Dependencies\Collections\Internal\ICollectionCalls.cs (1)
27public static void CopyTo<TCollection>(ref TCollection collection, Array array, int index)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
47public static void CopyTo<TDictionary>(ref TDictionary dictionary, Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
347void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
146void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
257readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
349void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
687void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
247void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
356readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (12)
19/// <seealso cref="Array.Clear(Array)"/> 24/// <seealso cref="Array.Clear(Array, int, int)"/> 33/// <seealso cref="Array.Copy(Array, Array, int)"/> 52public static void Copy<T>(SegmentedArray<T> sourceArray, Array destinationArray, int length) 74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count); 138public static void Copy<T>(SegmentedArray<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count); 239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (2)
77_items = Array.Empty<T[]>(); 155public void CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 875void ICollection.CopyTo(Array array, int index) 1370void ICollection.CopyTo(Array array, int index) 1578void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (5)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 454void ICollection.CopyTo(Array array, int arrayIndex) 1276return Array.Empty<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
490Array.Clear(characterToLastSeenIndex_inSource, 0, LastSeenIndexLength);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (4)
197Array.Copy(chunk, currentOffset, buffer, index, copyCount); 315Array.Clear(chunk, 0, chunk.Length); 338Array.Clear(chunks[chunkIndex], chunkOffset, chunks[chunkIndex].Length - chunkOffset); 384Array.Copy(buffer, currentIndex, chunk, currentOffset, writeCount);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
58return ValueTask.FromResult(Array.Empty<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
88=> compilation.GetTypeByMetadataName(typeof(Array).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
340var result = Array.BinarySearch([.. declarationList], declaration, comparerWithoutNameCheck);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (2)
31Array.Resize(ref finalAnnotations, originalAnnotations.Length + newAnnotations.Length); 32Array.Copy(originalAnnotations, 0, finalAnnotations, newAnnotations.Length, originalAnnotations.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ArrayExtensions.cs (1)
16=> Array.IndexOf(array, item) >= 0;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (2)
442if (property.Name is nameof(Array.Length) or nameof(Array.LongLength))
HelixTestTasks (5)
ComputeBatchTimeout.cs (3)
19public ITaskItem[] GroupedItems { get; set; } = Array.Empty<ITaskItem>(); 22public ITaskItem[] BatchIds { get; set; } = Array.Empty<ITaskItem>(); 31public ITaskItem[] TimedItems { get; set; } = Array.Empty<ITaskItem>();
GroupWorkItems.cs (2)
22public ITaskItem[] Items { get; set; } = Array.Empty<ITaskItem>(); 29public ITaskItem[] GroupedItems { get; set; } = Array.Empty<ITaskItem>();
ILAssembler (6)
EntityRegistry.cs (1)
92return Array.Empty<EntityBase>();
GrammarVisitor.cs (3)
3761foreach (var attr in customAttrDeclarations ?? Array.Empty<CILParser.CustomAttrDeclContext>()) 3819foreach (var attr in customAttrDeclarations ?? Array.Empty<CILParser.CustomAttrDeclContext>()) 3845foreach (var attr in customAttrDeclarations ?? Array.Empty<CILParser.CustomAttrDeclContext>())
VTableExportPEBuilder.cs (2)
521Array.Sort(sortedExports, (a, b) => string.CompareOrdinal(a.Name, b.Name)); 527int stubIndex = Array.FindIndex(exportsArray, e => e.Ordinal == export.Ordinal);
ilc (19)
ILCompilerRootCommand.cs (19)
30new("--mibc", "-m") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Mibc file(s) for profile guided optimization" }; 38new("--satellite") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Satellite assemblies associated with inputs/references" }; 74new("--codegenopt") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Define a codegen option" }; 76new("--rdxml") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "RD.XML file(s) for compilation" }; 78new("--descriptor") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "ILLink.Descriptor file(s) for compilation" }; 80new("--substitution") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "ILLink.Substitution file(s) for compilation" }; 108new("--initassembly") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Assembly(ies) with a library initializer" }; 110new("--feature") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Feature switches to apply (format: 'Namespace.Name=[true|false]'" }; 112new("--runtimeopt") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Runtime options to set" }; 114new("--runtimeknob") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Runtime knobs to set" }; 134new("--nowarn") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Disable specific warning messages" }; 142new("--singlewarnassembly") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Generate single AOT/trimming warning for given assembly" }; 144new("--nosinglewarnassembly") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Expand AOT/trimming warnings for given assembly" }; 152new("--directpinvoke") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "PInvoke to call directly" }; 154new("--directpinvokelist") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "File with list of PInvokes to call directly" }; 156new("--root") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Fully generate given assembly" }; 158new("--conditionalroot") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Fully generate given assembly if it's used" }; 160new("--trim") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Trim the specified assembly" }; 182new("--generateunmanagedentrypoints") { DefaultValueFactory = _ => Array.Empty<string>(), Description = "Generate unmanaged entrypoints for a given assembly" };
ILCompiler.Compiler (247)
Compiler\AnalysisBasedMetadataManager.cs (7)
38new NoDynamicInvokeThunkGenerationPolicy(), null, Array.Empty<ModuleDesc>(), Array.Empty<TypeDesc>(), 39Array.Empty<ReflectableEntity<TypeDesc>>(), Array.Empty<ReflectableEntity<MethodDesc>>(), 40Array.Empty<ReflectableEntity<FieldDesc>>(), Array.Empty<ReflectableCustomAttribute>(), 41Array.Empty<ReflectableParameter>(),
Compiler\CompilerTypeSystemContext.Aot.cs (1)
191return Array.IndexOf(_arrayEnumeratorOfTInterfaces, interfaceDefinition) >= 0;
Compiler\CompilerTypeSystemContext.BoxedTypes.cs (9)
249public override DefType[] ExplicitlyImplementedInterfaces => Array.Empty<DefType>(); 275public override IEnumerable<MetadataType> GetNestedTypes() => Array.Empty<MetadataType>(); 277protected override MethodImplRecord[] ComputeVirtualMethodImplsForType() => Array.Empty<MethodImplRecord>(); 278public override MethodImplRecord[] FindMethodsImplWithMatchingDeclName(ReadOnlySpan<byte> name) => Array.Empty<MethodImplRecord>(); 309return Array.Empty<FieldDesc>(); 395Array.Empty<LocalVariableDefinition>(), 396Array.Empty<object>()); 484Array.Empty<LocalVariableDefinition>(), 485Array.Empty<object>());
Compiler\CompilerTypeSystemContext.GeneratedAssembly.cs (5)
50return Array.Empty<MetadataType>(); 162return Array.Empty<MetadataType>(); 172return Array.Empty<MethodImplRecord>(); 177return Array.Empty<MethodImplRecord>(); 271return Array.Empty<DefType>();
Compiler\CompilerTypeSystemContext.GetFieldMethodOverrides.cs (1)
117&& Array.IndexOf(type.RuntimeInterfaces, _iAsyncStateMachineType) >= 0;
Compiler\CompilerTypeSystemContext.InterfaceThunks.cs (1)
90interfaceIndex = Array.IndexOf(implementingClass.GetTypeDefinition().RuntimeInterfaces, interfaceOnDefinition);
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (1)
488ParameterMetadata returnParamMetadata = Array.Find(paramMetadata, m => m.Index == 0);
Compiler\DependencyAnalysis\ArrayMapNode.cs (3)
41return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 66return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ArrayOfFrozenObjectsNode.cs (3)
30return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, Array.Empty<ISymbolDefinitionNode>());
Compiler\DependencyAnalysis\BlobNode.cs (1)
37return new ObjectData(_data, Array.Empty<Relocation>(), _alignment, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ByRefTypeMapNode.cs (3)
40return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 61return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ClassConstructorContextMap.cs (3)
40return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 73return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\DataflowAnalyzedMethodNode.cs (1)
43return Array.Empty<DependencyListEntry>();
Compiler\DependencyAnalysis\DehydratedDataNode.cs (7)
56return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, Array.Empty<ISymbolDefinitionNode>()); 82return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 86Array.Sort(relocSort, (x, y) => y.Value.CompareTo(x.Value)); 104Array.Resize(ref relocSort, lastProfitableReloc);
Compiler\DependencyAnalysis\DelegateMarshallingStubMapNode.cs (3)
43return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 70return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\DictionaryLayoutNode.cs (4)
213slot = Array.IndexOf(_layout, entry); 240if (slot < 0 && Array.IndexOf(_discardedSlots, entry) >= 0) 298Array.Sort(layout, comparer.Compare); 309slot = Array.IndexOf(_layout, entry);
Compiler\DependencyAnalysis\EmbeddedTrimmingDescriptorNode.cs (1)
58return Array.Empty<DependencyListEntry>();
Compiler\DependencyAnalysis\ExactMethodInstantiationsNode.cs (3)
41return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 100return new ObjectData(streamBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ExternalReferencesTableNode.cs (2)
81return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ExternalTypeMapNode.cs (1)
102public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => Array.Empty<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\FieldRvaDataNode.cs (2)
39byte[] data = relocsOnly ? Array.Empty<byte>() : _field.GetFieldRvaData(); 42Array.Empty<Relocation>(),
Compiler\DependencyAnalysis\FunctionPointerMapNode.cs (3)
49return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 70return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\GenericLookupResult.cs (1)
144return Array.Empty<DependencyNodeCore<NodeFactory>>();
Compiler\DependencyAnalysis\GenericMethodsHashtableNode.cs (3)
41return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 93return new ObjectData(streamBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\GenericMethodsTemplateMap.cs (3)
40return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 72return new ObjectData(streamBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\GenericTypesHashtableNode.cs (3)
39return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 61return new ObjectData(streamBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\GenericTypesTemplateMap.cs (3)
40return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 68return new ObjectData(streamBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\GenericVirtualMethodTableNode.cs (3)
79return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 134return new ObjectData(streamBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\InterfaceDispatchCellInfoSectionNode.cs (3)
24return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, Array.Empty<ISymbolDefinitionNode>());
Compiler\DependencyAnalysis\InterfaceDispatchCellSectionNode.cs (4)
24return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, Array.Empty<ISymbolDefinitionNode>()); 36return new ObjectData(new byte[totalSize], Array.Empty<Relocation>(), factory.Target.PointerSize, symbols.ToArray());
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (1)
275int indexOfInterface = Array.IndexOf(declTypeDefinitionRuntimeInterfaces, providingInterfaceDefinitionType);
Compiler\DependencyAnalysis\InterfaceGenericVirtualMethodTableNode.cs (3)
124return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 225return new ObjectData(streamBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\InvalidExternalTypeMapNode.cs (2)
23public override IEnumerable<CombinedDependencyListEntry> GetConditionalStaticDependencies(NodeFactory context) => Array.Empty<CombinedDependencyListEntry>(); 31public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => Array.Empty<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\InvalidProxyTypeMapNode.cs (2)
26public override IEnumerable<CombinedDependencyListEntry> GetConditionalStaticDependencies(NodeFactory context) => Array.Empty<CombinedDependencyListEntry>(); 34public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => Array.Empty<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ManagedDataDescriptorNode.cs (2)
49return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\MetadataNode.cs (3)
33return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 39Array.Empty<Relocation>(),
Compiler\DependencyAnalysis\ModuleInitializerListNode.cs (3)
36return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 211result = new ModuleGraphNode(this, module, Array.Empty<ModuleDesc>());
Compiler\DependencyAnalysis\NativeLayoutInfoNode.cs (3)
80return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 84return new ObjectData(_writerSavedBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (5)
44return Array.Empty<CombinedDependencyListEntry>(); 49return Array.Empty<CombinedDependencyListEntry>(); 379var bounds = Array.Empty<uint>(); 380var lobounds = Array.Empty<uint>(); 418return Array.Empty<DependencyListEntry>();
Compiler\DependencyAnalysis\PointerTypeMapNode.cs (3)
40return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 61return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ProxyTypeMapNode.cs (2)
63public override IEnumerable<DependencyListEntry> GetStaticDependencies(NodeFactory context) => Array.Empty<DependencyListEntry>(); 64public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => Array.Empty<CombinedDependencyListEntry>();
Compiler\DependencyAnalysis\ReflectionFieldMapNode.cs (3)
44return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 156return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReflectionInvokeMapNode.cs (3)
125return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 220return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (3)
111return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 207return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ResourceDataNode.cs (3)
49return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 54Array.Empty<Relocation>(),
Compiler\DependencyAnalysis\ResourceIndexNode.cs (3)
45return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 50Array.Empty<Relocation>(),
Compiler\DependencyAnalysis\StackTraceDocumentsNode.cs (3)
55return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 86return new ObjectData(ms.ToArray(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\StackTraceLineNumbersNode.cs (3)
45return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 138return new ObjectData(streamBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\StackTraceMethodMappingNode.cs (2)
45return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\StaticsInfoHashtableNode.cs (3)
71return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 107return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\StructMarshallingStubMapNode.cs (3)
45return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 123return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\TypeMetadataMapNode.cs (3)
40return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 69return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\VTableSliceNode.cs (3)
125Debug.Assert(Array.IndexOf(_slots, slot) >= 0); 178Debug.Assert(Array.IndexOf(_slots, slot) >= 0); 200Debug.Assert(Array.IndexOf(_slots, virtualMethod) >= 0);
Compiler\DescriptorMarker.cs (3)
283if (Array.IndexOf(accessors, "all") >= 0) 290if (property.GetMethod != null && Array.IndexOf(accessors, "get") >= 0) 299if (property.SetMethod != null && Array.IndexOf(accessors, "set") >= 0)
Compiler\HardwareIntrinsicILProvider.cs (1)
61Array.Empty<LocalVariableDefinition>(),
Compiler\ILScannerBuilder.cs (1)
25private IEnumerable<ICompilationRootProvider> _compilationRoots = Array.Empty<ICompilationRootProvider>();
Compiler\Logger.cs (4)
78: this(writer, ilProvider, isVerbose, Array.Empty<int>(), singleWarn: false, Array.Empty<string>(), Array.Empty<string>(), Array.Empty<string>(), false, new Dictionary<int, bool>(), disableGeneratedCodeHeuristics)
Compiler\MetadataManager.cs (1)
119Array.Empty<Relocation>(),
Compiler\ObjectWriter\CoffObjectWriter.Aot.cs (1)
221clauses ?? Array.Empty<DebugEHClauseInfo>());
Compiler\ReachabilityInstrumentationProvider.cs (3)
115Array.Copy(originalBytes, 0, newBytes, InstrumentationPrefixByteCount, originalBytes.Length); 175Array.Sort(useInfos, (a, b) => TypeSystemComparer.Instance.Compare(a.Key, b.Key)); 275System.Array.Empty<TypeDesc>());
Compiler\SubstitutedILProvider.cs (1)
454Array.Fill(offsetMap, -1);
Compiler\TypePreinit.cs (18)
81return new PreinitializationInfo(type, Array.Empty<KeyValuePair<FieldDesc, ISerializableValue>>()); 1822Array.Fill(addressValue.PointedToBytes, (byte)value.Value.AsInt32(), addressValue.PointedToOffset, (int)sizeBytes); 1859return new SpanValue(readOnlySpanElementType, Array.Empty<byte>(), 0, 0); 1863return new SpanValue(spanElementType, Array.Empty<byte>(), 0, 0); 2352Array.Copy(vtvalue.InstanceBytes, InstanceBytes, InstanceBytes.Length); 2543Array.Copy(guidValue.InstanceBytes, _parent._guidBytes[_index], _parent._guidBytes[_index].Length); 2680Array.Copy(other._methods, _methods, other._methods.Length); 2721Array.Copy(otherStruct._methods, 0, _parent._methods, _index, otherStruct._methods.Length); 2739Array.Copy(_parent._methods, _index, slots, 0, slots.Length); 3129Array.Copy(src, 0, PointedToBytes, PointedToOffset, src.Length); 3144Array.Copy(PointedToBytes, PointedToOffset, result.InstanceBytes, 0, result.InstanceBytes.Length); 3337Array.Copy(bytes, _data, bytes.Length); 3358Array.Copy(valueToStore.InstanceBytes, 0, _data, index * _elementSize, valueToStore.InstanceBytes.Length); 3371Array.Copy(_data, index * _elementSize, result.InstanceBytes, 0, _elementSize); 3533Array.Copy(valuetype.InstanceBytes, 0, result._data, type.Context.Target.PointerSize, valuetype.InstanceBytes.Length); 3548Array.Copy(_data, type.Context.Target.PointerSize, result.InstanceBytes, 0, result.InstanceBytes.Length); 3601Array.Copy(_instanceBytes, _offset + fieldOffset, result.InstanceBytes, 0, fieldSize); 3639Array.Copy(vtValue.InstanceBytes, 0, _instanceBytes, _offset + fieldOffset, fieldSize);
Compiler\UsageBasedTypeMapManager.cs (2)
41public override IEnumerable<DependencyListEntry> GetStaticDependencies(NodeFactory context) => Array.Empty<DependencyListEntry>(); 42public override IEnumerable<CombinedDependencyListEntry> SearchDynamicDependencies(List<DependencyNodeCore<NodeFactory>> markedNodes, int firstNode, NodeFactory context) => Array.Empty<CombinedDependencyListEntry>();
Compiler\UserDefinedTypeDescriptor.cs (1)
140uint completeTypeIndex = _objectWriter.GetCompleteClassTypeIndex(classTypeDescriptor, fieldsDescriptor, fieldsDescs.ToArray(), Array.Empty<StaticDataFieldDescriptor>());
IL\Stubs\StartupCode\NativeLibraryStartupMethod.cs (1)
92System.Array.Empty<TypeDesc>());
src\runtime\src\coreclr\tools\Common\Compiler\CompilationBuilder.cs (1)
25protected IEnumerable<ICompilationRootProvider> _compilationRoots = Array.Empty<ICompilationRootProvider>();
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (1)
541return Array.Empty<DefType>();
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\ObjectNode.cs (1)
80return Array.Empty<DependencyListEntry>();
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (3)
75_types = types ?? Array.Empty<WasmValueType>(); 212CorInfoWasmType.CORINFO_WASM_TYPE_VOID => new WasmResultType(Array.Empty<WasmValueType>()), 230ps = new WasmResultType(Array.Empty<WasmValueType>());
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\WasmTypeNode.cs (3)
43data: Array.Empty<byte>(), 44relocs: Array.Empty<Relocation>(), 54relocs: Array.Empty<Relocation>(),
src\runtime\src\coreclr\tools\Common\Compiler\ExternalTypeMapObjectNode.cs (3)
30return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, [this]); 45return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, [this]);
src\runtime\src\coreclr\tools\Common\Compiler\ProxyTypeMapObjectNode.cs (3)
31return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, [this]); 47return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, [this]);
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.Primitives.cs (1)
28Array.Resize(ref _buffer, 2 * _buffer.Length);
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8StringBuilder.cs (1)
12private byte[] _buffer = Array.Empty<byte>();
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (2)
84public Array DataObject; 571Array.Sort(result, PgoSchemaMergeComparer.Singleton);
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (7)
26return Array.Empty<T>(); 28Array.Resize(ref _items, _count); 37Array.Copy(_items, destination, _count); 44Array.Resize(ref _items, 2 * _count + 1); 77Array.Copy(newItems, offset, _items, _count, length); 86Array.Copy(newItems._items, 0, _items, _count, newItems.Count); 109Array.Resize(ref _items, newCount);
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\NativeAotILProvider.cs (5)
62return new ILStubMethodIL(method, new byte[] { (byte)ILOpcode.break_, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 75return new ILStubMethodIL(method, new byte[] { (byte)value, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 212Array.Empty<LocalVariableDefinition>(), null); 225Array.Empty<LocalVariableDefinition>(), null); 248Array.Empty<LocalVariableDefinition>(), new object[] { methodToCall });
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (2)
89return new ILStubMethodIL(method, new byte[] { (byte)opcode, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), Array.Empty<object>());
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\UnsafeIntrinsics.cs (11)
24return new ILStubMethodIL(method, new byte[] { (byte)ILOpcode.ldarg_0, (byte)ILOpcode.conv_u, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 27return new ILStubMethodIL(method, new byte[] { (byte)ILOpcode.ldarg_0, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 31return new ILStubMethodIL(method, new byte[] { (byte)ILOpcode.ldarg_0, (byte)ILOpcode.ldarg_1, (byte)ILOpcode.add, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 55(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 61(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 67(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 73(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 78(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 85(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 87return new ILStubMethodIL(method, new byte[] { (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 91return new ILStubMethodIL(method, new byte[] { (byte)ILOpcode.ldarg_0, (byte)ILOpcode.ldarg_1, (byte)ILOpcode.sub, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null);
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\IL\InlineArrayType.cs (4)
154return Array.Empty<DefType>(); 199return Array.Empty<MetadataType>(); 209return Array.Empty<MethodImplRecord>(); 214return Array.Empty<MethodImplRecord>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\IL\NativeStructType.cs (4)
140return Array.Empty<DefType>(); 255return Array.Empty<MetadataType>(); 265return Array.Empty<MethodImplRecord>(); 270return Array.Empty<MethodImplRecord>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\IL\PInvokeDelegateWrapper.cs (4)
145return Array.Empty<DefType>(); 180return Array.Empty<MetadataType>(); 190return Array.Empty<MethodImplRecord>(); 195return Array.Empty<MethodImplRecord>();
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (2)
34/// <see cref="System.Array.Empty{T}"/> 61/// <see cref="System.Array.CreateInstance(System.Type, int)"/>
ILCompiler.DependencyAnalysisFramework (2)
ComputedStaticDependencyNode.cs (1)
70return Array.Empty<CombinedDependencyListEntry>();
src\runtime\src\coreclr\tools\Common\Sorting\ArrayAccessor.cs (1)
12Array.Copy(source, sourceIndex, target, destIndex, length);
ILCompiler.Diagnostics (2)
PdbWriter.cs (2)
107unknownDocument.Checksum = Array.Empty<byte>(); 369checksum = Array.Empty<byte>();
ILCompiler.MetadataTransform (6)
ILCompiler\Metadata\Transform.Type.cs (4)
112LowerBounds = Array.Empty<int>(), 114Sizes = Array.Empty<int>(), 453LowerBounds = Array.Empty<int>(), 455Sizes = Array.Empty<int>(),
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (1)
491Array.Resize(ref _array, 2 * _array.Length);
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.Primitives.cs (1)
28Array.Resize(ref _buffer, 2 * _buffer.Length);
ILCompiler.ReadyToRun (144)
Compiler\DependencyAnalysis\ReadyToRun\AttributePresenceFilterNode.cs (5)
304return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 310return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 448result = Array.Empty<byte>();
Compiler\DependencyAnalysis\ReadyToRun\CopiedFieldRvaNode.cs (2)
45data: Array.Empty<byte>(), 46relocs: Array.Empty<Relocation>(),
Compiler\DependencyAnalysis\ReadyToRun\CopiedManagedResourcesNode.cs (2)
49data: Array.Empty<byte>(), 50relocs: Array.Empty<Relocation>(),
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILNode.cs (4)
52data: Array.Empty<byte>(), 53relocs: Array.Empty<Relocation>(), 63return new ObjectData(s_minimalILBody, Array.Empty<Relocation>(), 4, new ISymbolDefinitionNode[] { this }); 72return new ObjectData(bodyBytes, Array.Empty<Relocation>(), 4, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\CopiedStrongNameSignatureNode.cs (2)
52data: Array.Empty<byte>(), 53relocs: Array.Empty<Relocation>(),
Compiler\DependencyAnalysis\ReadyToRun\DebugDirectoryEntryNode.cs (3)
305return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this }); 317return new ObjectData(result, Array.Empty<Relocation>(), _module.Context.Target.PointerSize, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\DebugInfoTableNode.cs (2)
76return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\EnclosingTypeMapNode.cs (2)
46return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\ExceptionInfoLookupTableNode.cs (3)
51return new ObjectData(_ehInfoBuilder.ToArray(), Array.Empty<Relocation>(), alignment: 4, definedSymbols: new ISymbolDefinitionNode[] { this }); 110return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\GCRefMapNode.cs (2)
58data: Array.Empty<byte>(), 59relocs: Array.Empty<Relocation>(),
Compiler\DependencyAnalysis\ReadyToRun\GenericLookupSignature.cs (1)
52return new ObjectData(Array.Empty<byte>(), null, 1, null);
Compiler\DependencyAnalysis\ReadyToRun\HotColdMapNode.cs (2)
37return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\InliningInfoNode.cs (2)
61return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\InstanceEntryPointTableNode.cs (3)
94return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, Array.Empty<ISymbolDefinitionNode>());
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (3)
239return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, Array.Empty<ISymbolDefinitionNode>());
Compiler\DependencyAnalysis\ReadyToRun\ManifestAssemblyMvidHeaderNode.cs (2)
55return new ObjectData(Array.Empty<byte>(), null, 0, null); 59return new ObjectData(manifestAssemblyMvidTable, Array.Empty<Relocation>(), alignment: 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\ManifestMetadataTableNode.cs (3)
283Array.Sort(moduleArray, (EcmaModule moduleA, EcmaModule moduleB) => moduleA.CompareTo(moduleB)); 297return new ObjectData(Array.Empty<byte>(), null, 1, null); 315relocs: Array.Empty<Relocation>(),
Compiler\DependencyAnalysis\ReadyToRun\MethodEntryPointTableNode.cs (3)
46return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, Array.Empty<ISymbolDefinitionNode>());
Compiler\DependencyAnalysis\ReadyToRun\MethodFixupSignature.cs (1)
114return new ObjectData(data: Array.Empty<byte>(), relocs: null, alignment: 0, definedSymbols: null);
Compiler\DependencyAnalysis\ReadyToRun\MethodIsGenericMapNode.cs (2)
36return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\MethodWithGCInfo.cs (5)
49SetCode(new ObjectNode.ObjectData(Array.Empty<byte>(), null, 1, Array.Empty<ISymbolDefinitionNode>())); 50InitializeFrameInfos(Array.Empty<FrameInfo>()); 51InitializeColdFrameInfos(Array.Empty<FrameInfo>()); 334new FrameInfo((FrameInfoFlags)0, startOffset: 0, endOffset: 0, blobData: Array.Empty<byte>())
Compiler\DependencyAnalysis\ReadyToRun\NibbleWriter.cs (1)
157Array.Copy(blobSegment.Array, blobSegment.Offset, output, startOffset, blob.Length);
Compiler\DependencyAnalysis\ReadyToRun\ReadyToRunInstructionSetSupportSignature.cs (4)
22Array.Sort(supportedInstructionSets); 24Array.Sort(explicitlyUnsupportedInstructionSets); 82string[] instructionSetsSupported = supportedAndUnsupportedSplit[0] == "" ? Array.Empty<string>() : supportedAndUnsupportedSplit[0].Split('+'); 83string[] instructionSetsExplicitlyUnsupported = supportedAndUnsupportedSplit[1] == "" ? Array.Empty<string>() : supportedAndUnsupportedSplit[1].Split('-');
Compiler\DependencyAnalysis\ReadyToRun\RuntimeFunctionsTableNode.cs (2)
67return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\TypeGenericInfoMapNode.cs (2)
39return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\TypesTableNode.cs (2)
31return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, new ISymbolDefinitionNode[] { this });
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (1)
30Array.Sort(typeLoadValidationErrors, (ValueTuple<TypeDesc, string> left, ValueTuple<TypeDesc, string> right) =>
Compiler\DependencyAnalysis\ReadyToRun\WasmInterpreterToR2RThunkNode.cs (1)
37private static WasmSignature sigForInterpToR2RThunks = new WasmSignature(new WasmFuncType(new WasmResultType(new WasmValueType[]{WasmValueType.I32, WasmValueType.I32, WasmValueType.I32}), new WasmResultType(Array.Empty<WasmValueType>())), "viii");
Compiler\PettisHansenSort\DisjointSetForest.cs (1)
35Array.Resize(ref _nodes, NumNodes * 2);
Compiler\ProfileData.cs (1)
142return Array.Empty<MethodProfileData>();
Compiler\ProfileDataManager.cs (3)
396return Array.Empty<MethodDesc>(); 495return _delegateTargets.TryGetValue(delegateInvokeSignature, out List<MethodDesc> methods) ? methods : Array.Empty<MethodDesc>(); 500return _implementers.TryGetValue(type, out List<TypeDesc> types) ? types : Array.Empty<TypeDesc>();
Compiler\ReadyToRunCodegenCompilation.cs (3)
403Array.Clear(_corInfoImpls); 759Array.Sort(methodsToRecompile, new SortableDependencyNode.ObjectNodeComparer(CompilerComparer.Instance)); 826Array.Sort(mutableMethodBodyNeedList, comparison);
Compiler\ReadyToRunCodegenCompilationBuilder.cs (2)
55private KeyValuePair<string, string>[] _ryujitOptions = Array.Empty<KeyValuePair<string, string>>(); 74foreach (string param in options ?? Array.Empty<string>())
Compiler\ReadyToRunStandaloneMethodMetadata.cs (1)
40_exceptionRegions = Array.Empty<ILExceptionRegion>();
Compiler\ReadyToRunTableManager.cs (1)
178return Array.Empty<IMethodNode>();
Interop\IL\Marshaller.ReadyToRun.cs (1)
135Marshaller[] marshallers = GetMarshallersForSignature(methodSig, System.Array.Empty<ParameterMetadata>(), moduleContext);
JitInterface\CorInfoImpl.ReadyToRun.cs (13)
1614Array.Copy(BitConverter.GetBytes((uint)flags), 0, ehInfoData, clauseOffset + (int)EHInfoFields.Flags * sizeof(uint), sizeof(uint)); 1615Array.Copy(BitConverter.GetBytes((uint)clause.TryOffset), 0, ehInfoData, clauseOffset + (int)EHInfoFields.TryOffset * sizeof(uint), sizeof(uint)); 1617Array.Copy(BitConverter.GetBytes((uint)(clause.TryLength)), 0, ehInfoData, clauseOffset + (int)EHInfoFields.TryEnd * sizeof(uint), sizeof(uint)); 1618Array.Copy(BitConverter.GetBytes((uint)clause.HandlerOffset), 0, ehInfoData, clauseOffset + (int)EHInfoFields.HandlerOffset * sizeof(uint), sizeof(uint)); 1619Array.Copy(BitConverter.GetBytes((uint)(clause.HandlerLength)), 0, ehInfoData, clauseOffset + (int)EHInfoFields.HandlerEnd * sizeof(uint), sizeof(uint)); 1620Array.Copy(BitConverter.GetBytes(classTokenOrOffset), 0, ehInfoData, clauseOffset + (int)EHInfoFields.ClassTokenOrOffset * sizeof(uint), sizeof(uint)); 1622return new ObjectNode.ObjectData(ehInfoData, Array.Empty<Relocation>(), alignment: 1, definedSymbols: Array.Empty<ISymbolDefinitionNode>()); 1665_methodCodeNode.SetCode(new ObjectNode.ObjectData(Array.Empty<byte>(), null, 1, Array.Empty<ISymbolDefinitionNode>())); 1666_methodCodeNode.InitializeFrameInfos(Array.Empty<FrameInfo>()); 1667_methodCodeNode.InitializeColdFrameInfos(Array.Empty<FrameInfo>()); 3294return Marshaller.IsMarshallingRequired(sig, Array.Empty<ParameterMetadata>(), ((MetadataType)HandleToObject(callSiteSig->scope).OwningMethod.OwningType).Module);
ObjectWriter\MapFileBuilder.cs (1)
170Array.Sort(relocTypeCounts, (a, b) => b.Value.CompareTo(a.Value));
src\runtime\src\coreclr\tools\Common\Compiler\CompilationBuilder.cs (1)
25protected IEnumerable<ICompilationRootProvider> _compilationRoots = Array.Empty<ICompilationRootProvider>();
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (1)
541return Array.Empty<DefType>();
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\ObjectNode.cs (1)
80return Array.Empty<DependencyListEntry>();
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (3)
75_types = types ?? Array.Empty<WasmValueType>(); 212CorInfoWasmType.CORINFO_WASM_TYPE_VOID => new WasmResultType(Array.Empty<WasmValueType>()), 230ps = new WasmResultType(Array.Empty<WasmValueType>());
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\WasmTypeNode.cs (3)
43data: Array.Empty<byte>(), 44relocs: Array.Empty<Relocation>(), 54relocs: Array.Empty<Relocation>(),
src\runtime\src\coreclr\tools\Common\Compiler\ExternalTypeMapObjectNode.cs (3)
30return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, [this]); 45return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, [this]);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (1)
26public WasmFunctionBody(WasmFuncType signature, WasmExpr[] instructions) : this(signature, Array.Empty<WasmValueType>(), instructions)
src\runtime\src\coreclr\tools\Common\Compiler\ProxyTypeMapObjectNode.cs (3)
31return new ObjectData(Array.Empty<byte>(), Array.Empty<Relocation>(), 1, [this]); 47return new ObjectData(hashTableBytes, Array.Empty<Relocation>(), 1, [this]);
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.Primitives.cs (1)
28Array.Resize(ref _buffer, 2 * _buffer.Length);
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8StringBuilder.cs (1)
12private byte[] _buffer = Array.Empty<byte>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (7)
425Array.Resize(ref _code, (int)codeSize); 446Array.Sort(relocs, (x, y) => (x.Offset - y.Offset)); 483Array.Sort(relocs2, (x, y) => (x.Offset - y.Offset)); 509Array.Sort(inlineeArray, TypeSystemComparer.Instance.Compare); 513inlineeArray = Array.Empty<MethodDesc>(); 600Array.Sort(relocs, (x, y) => (x.Offset - y.Offset)); 617Array.Sort(relocs, (x, y) => (x.Offset - y.Offset));
src\runtime\src\coreclr\tools\Common\JitInterface\WasmLowering.cs (1)
424WasmResultType ret = returnIsVoid ? new(Array.Empty<WasmValueType>())
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (2)
84public Array DataObject; 571Array.Sort(result, PgoSchemaMergeComparer.Singleton);
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (7)
26return Array.Empty<T>(); 28Array.Resize(ref _items, _count); 37Array.Copy(_items, destination, _count); 44Array.Resize(ref _items, 2 * _count + 1); 77Array.Copy(newItems, offset, _items, _count, length); 86Array.Copy(newItems._items, 0, _items, _count, newItems.Count); 109Array.Resize(ref _items, newCount);
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (2)
89return new ILStubMethodIL(method, new byte[] { (byte)opcode, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), Array.Empty<object>());
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\UnsafeIntrinsics.cs (11)
24return new ILStubMethodIL(method, new byte[] { (byte)ILOpcode.ldarg_0, (byte)ILOpcode.conv_u, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 27return new ILStubMethodIL(method, new byte[] { (byte)ILOpcode.ldarg_0, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 31return new ILStubMethodIL(method, new byte[] { (byte)ILOpcode.ldarg_0, (byte)ILOpcode.ldarg_1, (byte)ILOpcode.add, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 55(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 61(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 67(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 73(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 78(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 85(byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 87return new ILStubMethodIL(method, new byte[] { (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null); 91return new ILStubMethodIL(method, new byte[] { (byte)ILOpcode.ldarg_0, (byte)ILOpcode.ldarg_1, (byte)ILOpcode.sub, (byte)ILOpcode.ret }, Array.Empty<LocalVariableDefinition>(), null);
TypeSystem\Mutable\MutableModule.cs (2)
216Array.Copy(metadataArrayTemp, metadataArray, metadataArray.Length); 372public override IEnumerable<MetadataType> GetAllTypes() => Array.Empty<MetadataType>();
ILCompiler.RyuJit (19)
Compiler\DependencyAnalysis\MethodCodeNode.cs (3)
73return dependencies ?? (IEnumerable<CombinedDependencyListEntry>)Array.Empty<CombinedDependencyListEntry>(); 213localNames = Array.Empty<string>(); 272Array.Resize(ref sequencePoints, newLength);
Compiler\RyuJitCompilationBuilder.cs (1)
19private KeyValuePair<string, string>[] _ryujitOptions = Array.Empty<KeyValuePair<string, string>>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\DisjointSetForest.cs (1)
35Array.Resize(ref _nodes, NumNodes * 2);
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ProfileData.cs (1)
142return Array.Empty<MethodProfileData>();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (1)
26public WasmFunctionBody(WasmFuncType signature, WasmExpr[] instructions) : this(signature, Array.Empty<WasmValueType>(), instructions)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (4)
425Array.Resize(ref _code, (int)codeSize); 446Array.Sort(relocs, (x, y) => (x.Offset - y.Offset)); 600Array.Sort(relocs, (x, y) => (x.Offset - y.Offset)); 617Array.Sort(relocs, (x, y) => (x.Offset - y.Offset));
src\runtime\src\coreclr\tools\Common\JitInterface\WasmLowering.cs (1)
424WasmResultType ret = returnIsVoid ? new(Array.Empty<WasmValueType>())
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (7)
26return Array.Empty<T>(); 28Array.Resize(ref _items, _count); 37Array.Copy(_items, destination, _count); 44Array.Resize(ref _items, 2 * _count + 1); 77Array.Copy(newItems, offset, _items, _count, length); 86Array.Copy(newItems._items, 0, _items, _count, newItems.Count); 109Array.Resize(ref _items, newCount);
ILCompiler.TypeSystem (51)
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (7)
26return Array.Empty<T>(); 28Array.Resize(ref _items, _count); 37Array.Copy(_items, destination, _count); 44Array.Resize(ref _items, 2 * _count + 1); 77Array.Copy(newItems, offset, _items, _count, length); 86Array.Copy(newItems._items, 0, _items, _count, newItems.Count); 109Array.Resize(ref _items, newCount);
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\CanonTypes.Metadata.cs (3)
17return Array.Empty<MethodImplRecord>(); 20public override DefType[] ExplicitlyImplementedInterfaces => Array.Empty<DefType>(); 55return Array.Empty<MetadataType>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ConstructedTypeRewritingHelpers.cs (2)
23int directDiscoveryIndex = Array.IndexOf(typesToFind, type); 73int directReplacementIndex = Array.IndexOf(typesToReplace, type);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (4)
56result.Offsets = Array.Empty<FieldAndOffset>(); 138result.Offsets = Array.Empty<FieldAndOffset>(); 189result.Offsets = Array.Empty<FieldAndOffset>(); 871Array.Clear(instanceNonGCPointerFieldsCount, 0, instanceNonGCPointerFieldsCount.Length);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MetadataRuntimeInterfacesAlgorithm.cs (1)
52DefType[] baseTypeInterfaces = (type.BaseType != null) ? (type.BaseType.RuntimeInterfaces) : Array.Empty<DefType>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MetadataVirtualMethodAlgorithm.cs (4)
126Array.Resize(ref _methodsRequiringSlotUnification, Math.Max(_methodsRequiringSlotUnification.Length * 2, 2)); 167Array.Resize(ref _members, Math.Max(_members.Length * 2, 2)); 343int index = Array.IndexOf(interfacesOnDefinition, foundMethodImplsOnDefinition[results[i]].Decl.OwningType); 941Array.Copy(currentType.RuntimeInterfaces, consideredInterfaces, currentType.RuntimeInterfaces.Length);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
66public static EmbeddedSignatureData[] EmbeddedSignatureMismatchPermittedFlag = Array.Empty<EmbeddedSignatureData>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\SimpleArrayOfTRuntimeInterfacesAlgorithm.cs (3)
30?? Array.Empty<DefType>(); 40Array.Resize(ref _genericRuntimeInterfaces, count); 51Array.Copy(_arrayRuntimeInterfaces, result, _arrayRuntimeInterfaces.Length);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeDesc.Interfaces.cs (1)
35DefType[] computedInterfaces = algorithm != null ? algorithm.ComputeRuntimeInterfaces(this) : Array.Empty<DefType>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeWithRepeatedFields.cs (2)
90protected override MethodImplRecord[] ComputeVirtualMethodImplsForType() => Array.Empty<MethodImplRecord>(); 98public override DefType[] ExplicitlyImplementedInterfaces => Array.Empty<DefType>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\UniversalCanonLayoutAlgorithm.cs (2)
34Offsets = Array.Empty<FieldAndOffset>(), 52Offsets = Array.Empty<FieldAndOffset>()
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\GCPointerMap.cs (1)
179_gcFlags = Array.Empty<uint>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaSignatureParser.cs (3)
159int []bounds = boundsCount > 0 ? new int[boundsCount] : Array.Empty<int>(); 164int []lowerBounds = lowerBoundsCount > 0 ? new int[lowerBoundsCount] : Array.Empty<int>(); 507locals = Array.Empty<LocalVariableDefinition>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.Interfaces.cs (1)
30return (_implementedInterfaces = Array.Empty<DefType>());
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\EcmaMethodIL.cs (2)
89return Array.Empty<LocalVariableDefinition>(); 110ilExceptionRegions = Array.Empty<ILExceptionRegion>();
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\EcmaMethodIL.Symbols.cs (2)
50: Array.Empty<ILSequencePoint>(); 58: Array.Empty<ILLocalVariable>();
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\MethodIL.Symbols.cs (3)
36return Array.Empty<ILSequencePoint>(); 41return Array.Empty<ILLocalVariable>(); 46return Array.Empty<string>();
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\ILEmitter.cs (5)
40_instructions = Array.Empty<byte>(); 79Array.Resize(ref _instructions, 2 * _instructions.Length + 10); 574exceptionRegions ??= Array.Empty<ILExceptionRegion>(); 781Array.Copy(ilCodeStream._instructions, 0, ilInstructions, copiedLength, ilCodeStream._length); 830Array.Sort(exceptionRegions, (a, b) =>
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\UnsafeAccessors.cs (2)
272var declData = declSig.GetEmbeddedSignatureData(kinds) ?? Array.Empty<EmbeddedSignatureData>(); 273var maybeData = maybeSig.GetEmbeddedSignatureData(kinds) ?? Array.Empty<EmbeddedSignatureData>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\MethodDesc.Interop.cs (1)
37return Array.Empty<ParameterMetadata>();
src\runtime\src\coreclr\tools\Common\TypeSystem\RuntimeDetermined\RuntimeDeterminedFieldLayoutAlgorithm.cs (1)
30Offsets = Array.Empty<FieldAndOffset>(),
illink (12)
ILLink.CodeFixProvider (1)
RequiresHelpers.cs (1)
17return Array.Empty<SyntaxNode>();
ILLink.RoslynAnalyzer (3)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (2)
34/// <see cref="System.Array.Empty{T}"/> 61/// <see cref="System.Array.CreateInstance(System.Type, int)"/>
TrimAnalysis\TrimAnalysisVisitor.cs (1)
115var elements = operation.Initializer?.ElementValues.Select(val => Visit(val, state)).ToArray() ?? System.Array.Empty<MultiValue>();
Infrastructure.Tests (3)
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (3)
811skippedJobs = Array.Empty<SummaryJob>(), 844skippedJobs = Array.Empty<SummaryJob>(), 870retryableJobs = Array.Empty<RetryableJobInput>(),
Microsoft.Analyzers.Extra (1)
DiagDescriptors.cs (1)
143Array.Empty<string>());
Microsoft.Analyzers.Extra.Tests (2)
SyntaxNodeExtensionsTests.cs (2)
56Assert.Equal("a.AddA()", methodInvocSyntax?.FindNodeInTreeUpToSpecifiedParentByMethodName(model, new[] { parentToFind }, Array.Empty<Type>())?.ToString()); 93Assert.Null(methodInvocSyntax?.FindNodeInTreeUpToSpecifiedParentByMethodName(model, Array.Empty<string>(), typesToStopTraversing));
Microsoft.Analyzers.Local (7)
ApiLifecycle\AssemblyAnalysis.cs (4)
133var typeDef = Array.Find(Assembly.Types, x => x.ModifiersAndName == typeModifiersAndName); 221var method = Array.Find(typeDef.Methods, x => x.Member == methodSignature); 236var prop = Array.Find(typeDef.Properties, x => x.Member == propSignature); 258var field = Array.Find(typeDef.Fields, x => x.Member == fieldSignature);
ApiLifecycle\Json\JsonObjectExtensions.cs (1)
16return Array.Empty<T>();
ApiLifecycle\Model\Assembly.cs (1)
25Types = Array.Empty<TypeDef>();
ApiLifecycle\Utils.cs (1)
21return Array.Empty<string>();
Microsoft.Analyzers.Local.Tests (25)
ApiLifecycle\AnalysisModelTest.cs (6)
28Assert.Equal(Array.Empty<Field>(), member.Fields); 29Assert.Equal(Array.Empty<string>(), member.BaseTypes); 30Assert.Equal(Array.Empty<string>(), member.Constraints); 31Assert.Equal(Array.Empty<Method>(), member.Methods); 32Assert.Equal(Array.Empty<Prop>(), member.Properties); 66Assert.Equal(Array.Empty<TypeDef>(), package.Types);
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (19)
150Array.Empty<string>(), 165Array.Empty<string>(), 179Array.Empty<string>(), 217Array.Empty<string>(), 236Array.Empty<string>(), 279Array.Empty<string>(), 298Array.Empty<string>(), 313Array.Empty<string>(), 328Array.Empty<string>(), 394Array.Empty<string>(), 435Array.Empty<string>(), 458Array.Empty<string>(), 498Array.Empty<string>(), 524Array.Empty<string>(), 685Array.Empty<string>(), 693Array.Empty<string>(), 717Array.Empty<string>(), 740Array.Empty<string>(), 763Array.Empty<string>(),
Microsoft.AspNetCore.Antiforgery (2)
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (2)
72return Array.Empty<byte>(); 129return Array.Empty<byte>();
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
45filterCharacterRules: ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, Array.Empty<char>())));
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
39filterCharacterRules: ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, Array.Empty<char>())));
Microsoft.AspNetCore.Authentication.BearerToken (5)
_generated\1\BearerTokenJsonSerializerContext.AccessTokenResponse.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetProperty("TokenType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetProperty("AccessToken", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetProperty("ExpiresIn", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 133AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetProperty("RefreshToken", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Authentication.Core (2)
AuthenticationSchemeProvider.cs (2)
54private IEnumerable<AuthenticationScheme> _schemesCopy = Array.Empty<AuthenticationScheme>(); 55private IEnumerable<AuthenticationScheme> _requestHandlersCopy = Array.Empty<AuthenticationScheme>();
Microsoft.AspNetCore.Authorization (3)
AuthorizationFailure.cs (2)
27public IEnumerable<IAuthorizationRequirement> FailedRequirements { get; private set; } = Array.Empty<IAuthorizationRequirement>(); 32public IEnumerable<AuthorizationFailureReason> FailureReasons { get; private set; } = Array.Empty<AuthorizationFailureReason>();
AuthorizationHandlerContext.cs (1)
65=> (IEnumerable<AuthorizationFailureReason>?)_failedReasons ?? Array.Empty<AuthorizationFailureReason>();
Microsoft.AspNetCore.Authorization.Policy (3)
AuthorizationMiddleware.cs (3)
117var authorizeData = endpoint?.Metadata.GetOrderedMetadata<IAuthorizeData>() ?? Array.Empty<IAuthorizeData>(); 119var policies = endpoint?.Metadata.GetOrderedMetadata<AuthorizationPolicy>() ?? Array.Empty<AuthorizationPolicy>(); 123var requirementData = endpoint?.Metadata?.GetOrderedMetadata<IAuthorizationRequirementData>() ?? Array.Empty<IAuthorizationRequirementData>();
Microsoft.AspNetCore.Components (30)
BindConverter.cs (1)
2035if (obj is not Array initialArray)
CascadingParameterState.cs (3)
41return Array.Empty<CascadingParameterState>(); 73return resultStates ?? (IReadOnlyList<CascadingParameterState>)Array.Empty<CascadingParameterState>(); 134return result?.ToArray() ?? Array.Empty<CascadingParameterInfo>();
ParameterView.cs (2)
22private static readonly ParameterView _empty = new ParameterView(ParameterViewLifetime.Unbound, _emptyFrames, 0, Array.Empty<CascadingParameterState>()); 30: this(lifetime, frames, ownerIndex, Array.Empty<CascadingParameterState>())
Rendering\ComponentState.cs (1)
218_cascadingParameters = (IReadOnlyList<CascadingParameterState>?)remainingCascadingParameters ?? Array.Empty<CascadingParameterState>();
RenderTree\ArrayBuilderSegment.cs (1)
34public T[] Array => _builder?.Buffer ?? System.Array.Empty<T>();
RenderTree\ArrayRange.cs (1)
43System.Array.Copy(Array, buffer, Count);
RenderTree\Renderer.cs (1)
114? Array.Empty<ICascadingValueSupplier>()
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (4)
37private static readonly T[] Empty = Array.Empty<T>(); 153Array.Copy(_items, index, _items, index + 1, _itemsInUse - index); 183Array.Copy(_items, newItems, _itemsInUse); 196Array.Clear(_items, 0, _itemsInUse);
src\aspnetcore\src\Components\Shared\src\UrlValueConstraint.cs (3)
95public abstract Array ParseMultiple(StringSegmentAccumulator values, string destinationNameForMessage); 130public override Array ParseMultiple(StringSegmentAccumulator values, string destinationNameForMessage) 135return Array.Empty<T>();
src\aspnetcore\src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (9)
108_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 175_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 254_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 404Array.Clear(_arrayStorage, 0, _count); 460Array.Copy(storage, 0, array, arrayIndex, _count); 497Array.Copy(array, index + 1, array, index, _count - index); 528Array.Copy(array, index + 1, array, index, _count - index); 568Array.Copy(array, index + 1, array, index, _count - index); 698Array.Copy(_arrayStorage, 0, array, 0, _count);
src\aspnetcore\src\Http\Routing\src\ParameterPolicyActivator.cs (1)
112var arguments = argumentString?.Split(',', StringSplitOptions.TrimEntries) ?? Array.Empty<string>();
src\aspnetcore\src\Http\Routing\src\Patterns\RouteParameterParser.cs (1)
22return new RoutePatternParameterPart(string.Empty, null, RoutePatternParameterKind.Standard, Array.Empty<RoutePatternParameterPolicyReference>());
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
540(IReadOnlyList<RoutePatternParameterPart>?)parameters ?? Array.Empty<RoutePatternParameterPart>(), 638parameterConstraints?.ToArray() ?? Array.Empty<RoutePatternParameterPolicyReference>(),
Microsoft.AspNetCore.Components.Endpoints (49)
_generated\1\ImportMapSerializerContext.ImportMapDefinition.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ImportMapDefinition).GetProperty("Imports", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ImportMapDefinition).GetProperty("Scopes", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, global::System.Collections.Generic.IReadOnlyDictionary<string, string>>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ImportMapDefinition).GetProperty("Integrity", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\10\ResourceCollectionSerializerContext.ResourceAssetProperty.g.cs (2)
70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAssetProperty).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAssetProperty).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\19\BrowserConfigurationJsonContext.BrowserConfiguration.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.BrowserConfiguration).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.BrowserConfiguration).GetProperty("LogLevel", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.BrowserConfiguration).GetProperty("WebAssembly", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.WebAssemblyBrowserOptions), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.BrowserConfiguration).GetProperty("Server", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.ServerBrowserOptions), global::System.Array.Empty<global::System.Type>(), null), 132AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.BrowserConfiguration).GetProperty("Ssr", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.SsrBrowserOptions), global::System.Array.Empty<global::System.Type>(), null),
_generated\20\BrowserConfigurationJsonContext.ServerBrowserOptions.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ServerBrowserOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ServerBrowserOptions).GetProperty("ReconnectionMaxRetries", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ServerBrowserOptions).GetProperty("ReconnectionRetryIntervalMilliseconds", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ServerBrowserOptions).GetProperty("ReconnectionDialogId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\21\BrowserConfigurationJsonContext.SsrBrowserOptions.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.SsrBrowserOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.SsrBrowserOptions).GetProperty("DisableDomPreservation", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.SsrBrowserOptions).GetProperty("CircuitInactivityTimeoutMs", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
_generated\22\BrowserConfigurationJsonContext.WebAssemblyBrowserOptions.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.WebAssemblyBrowserOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.WebAssemblyBrowserOptions).GetProperty("EnvironmentName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.WebAssemblyBrowserOptions).GetProperty("ApplicationCulture", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.WebAssemblyBrowserOptions).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\8\ResourceCollectionSerializerContext.ResourceAsset.g.cs (2)
70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAsset).GetProperty("Url", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAsset).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>), global::System.Array.Empty<global::System.Type>(), null),
Discovery\ComponentCollectionBuilder.cs (1)
56return Array.Empty<ComponentInfo>();
Discovery\PageCollectionBuilder.cs (1)
55return Array.Empty<PageComponentInfo>();
Discovery\PageComponentBuilder.cs (1)
17private IReadOnlyList<string> _routeTemplates = Array.Empty<string>();
FormMapping\Converters\CollectionAdapters\ArrayCollectionFactory.cs (1)
11Array.Copy(buffer, result, size);
FormMapping\Converters\CollectionAdapters\ArrayPoolBufferAdapter.cs (1)
19Array.Copy(buffer.Data, newBuffer, buffer.Data.Length);
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (15)
159Array.Empty<Type>(), 185Array.Empty<Type>(), 287Array.Empty<Type>(), 297Array.Empty<Type>(), 304Array.Empty<Type>(), 314Array.Empty<Type>(), 361Array.Empty<Expression>())); 379Array.Empty<Type>(), 398Array.Empty<Type>(), 406Array.Empty<Type>(), 461Array.Empty<Expression>())); 483Array.Empty<Type>(), 501Array.Empty<Type>(), 509Array.Empty<Type>(), 552Expression.Not(Expression.Call(readerParam, nameof(FormDataReader.CurrentPrefixExists), Array.Empty<Type>())),
FormMapping\PrefixResolver.cs (2)
25Array.Sort(_sortedKeys, 0, count, FormKeyComparer.SortCriteria); 34return Array.BinarySearch(_sortedKeys, 0, _length, new FormKey(currentPrefixBuffer), FormKeyComparer.PrefixCriteria) >= 0;
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
40Array.Copy(frames.Array, start, _capturedFrames, 0, count);
TempData\JsonTempDataSerializer.cs (3)
53return Array.Empty<object?>(); 56var array = Array.CreateInstance(GetArrayTypeInfo(element[0]), length);
Microsoft.AspNetCore.Components.Forms (1)
ValidationMessageStore.cs (1)
65=> _messages.TryGetValue(fieldIdentifier, out var messages) ? messages : Array.Empty<string>();
Microsoft.AspNetCore.Components.Server (23)
_generated\1\CircuitPersistenceManagerSerializerContext.ComponentMarker.g.cs (10)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("PrerenderId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Key", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey?), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Sequence", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null), 150AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Descriptor", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Assembly", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 190AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("TypeName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 210AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("ParameterDefinitions", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 230AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("ParameterValues", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\2\CircuitPersistenceManagerSerializerContext.ComponentMarkerKey.g.cs (3)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey).GetProperty("LocationHash", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 92AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey).GetProperty("FormattedComponentKey", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
BlazorPack\BlazorPackHubProtocolWorker.cs (1)
46return Array.Empty<byte>();
Circuits\CircuitHost.cs (1)
994await Client.SendCoreAsync("JS.RequestPause", Array.Empty<object>(), cancellationToken);
Circuits\CircuitIdFactory.cs (2)
38Array.Copy( 70Array.Copy(
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (4)
37private static readonly T[] Empty = Array.Empty<T>(); 153Array.Copy(_items, index, _items, index + 1, _itemsInUse - index); 183Array.Copy(_items, newItems, _itemsInUse); 196Array.Clear(_items, 0, _itemsInUse);
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
40Array.Copy(frames.Array, start, _capturedFrames, 0, count);
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.Components.Web (12)
_generated\1\WebRendererSerializerContext.JSComponentParameter.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Forms\HtmlFieldPrefix.cs (1)
10private readonly LambdaExpression[] _rest = Array.Empty<LambdaExpression>();
Forms\Mapping\FormMappingContext.cs (2)
59return Array.Empty<FormMappingError>(); 74Array.Empty<FormMappingError>();
Web\DataTransfer.cs (3)
29public string[] Files { get; set; } = Array.Empty<string>(); 34public DataTransferItem[] Items { get; set; } = Array.Empty<DataTransferItem>(); 39public string[] Types { get; set; } = Array.Empty<string>();
Web\TouchEventArgs.cs (3)
19public TouchPoint[] Touches { get; set; } = Array.Empty<TouchPoint>(); 24public TouchPoint[] TargetTouches { get; set; } = Array.Empty<TouchPoint>(); 32public TouchPoint[] ChangedTouches { get; set; } = Array.Empty<TouchPoint>();
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
BlazorWebView.cs (2)
229 var newItems = (eventArgs.NewItems ?? Array.Empty<object>()).Cast<RootComponent>(); 230 var oldItems = (eventArgs.OldItems ?? Array.Empty<object>()).Cast<RootComponent>();
Microsoft.AspNetCore.Components.WebView.Wpf (2)
BlazorWebView.cs (2)
316 var newItems = (eventArgs.NewItems ?? Array.Empty<RootComponent>()).Cast<RootComponent>(); 317 var oldItems = (eventArgs.OldItems ?? Array.Empty<RootComponent>()).Cast<RootComponent>();
Microsoft.AspNetCore.Cryptography.KeyDerivation (1)
PBKDF2\ManagedPbkdf2Provider.cs (1)
89Array.Clear(passwordBytes, 0, passwordBytes.Length);
Microsoft.AspNetCore.DataProtection (9)
AuthenticatedEncryption\ConfigurationModel\SecretExtensions.cs (2)
33Array.Clear(unprotectedSecretRawBytes, 0, unprotectedSecretRawBytes.Length); 59Array.Clear(unprotectedSecret, 0, unprotectedSecret.Length);
Cng\DpapiSecretSerializerHelper.cs (2)
61Array.Clear(plaintextSecret, 0, plaintextSecret.Length); 139Array.Clear(plaintextSecret, 0, plaintextSecret.Length);
KeyManagement\KeyRingBasedDataProtector.cs (1)
55Array.Copy(originalPurposes, 0, newPurposes, 0, originalPurposes.Length);
Managed\ManagedAuthenticatedEncryptor.cs (1)
590var EMPTY_ARRAY = Array.Empty<byte>();
RegistryPolicyResolver.cs (1)
104Array.Empty<IKeyEscrowSink>() :
XmlEncryption\XmlEncryptionExtensions.cs (2)
176Array.Clear(underlyingBuffer, 0, underlyingBuffer.Length); 197Array.Clear(plaintextSecret, 0, plaintextSecret.Length);
Microsoft.AspNetCore.DataProtection.Abstractions (2)
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (2)
72return Array.Empty<byte>(); 129return Array.Empty<byte>();
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (6)
702Array.Clear(keyBytes, 0, keyBytes.Length); 703Array.Clear(pem, 0, pem.Length); 709Array.Clear(keyBytes, 0, keyBytes.Length); 710Array.Clear(pem, 0, pem.Length); 760Array.Clear(bytes, 0, bytes.Length); 788Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
176Array.Clear(export, 0, export.Length);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
66Array.Clear(export, 0, export.Length);
Microsoft.AspNetCore.Diagnostics (7)
_generated\1\ExtensionsExceptionJsonContext.ExceptionExtensionData.g.cs (5)
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Diagnostics.ExceptionExtensionData).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Diagnostics.ExceptionExtensionData).GetProperty("Headers", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Http.IHeaderDictionary), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Diagnostics.ExceptionExtensionData).GetProperty("Path", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 131AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Diagnostics.ExceptionExtensionData).GetProperty("Endpoint", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 151AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Diagnostics.ExceptionExtensionData).GetProperty("RouteValues", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Routing.RouteValueDictionary), global::System.Array.Empty<global::System.Type>(), null),
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
26return Array.Empty<StackFrameInfo>(); 36return Array.Empty<StackFrameInfo>();
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
Builder\HealthCheckApplicationBuilderExtensions.cs (3)
38UseHealthChecksCore(app, path, port: null, Array.Empty<object>()); 89UseHealthChecksCore(app, path, port, Array.Empty<object>()); 122UseHealthChecksCore(app, path, portAsInt, Array.Empty<object>());
Builder\HealthCheckEndpointRouteBuilderExtensions.cs (1)
65var args = options != null ? new[] { Options.Create(options) } : Array.Empty<object>();
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Logging\HttpLoggingTagNames.cs (1)
64Array.AsReadOnly(new[]
src\Shared\BufferWriterPool\BufferWriter.cs (3)
36private T[] _buffer = Array.Empty<T>(); 76Array.Resize(ref _buffer, value); 185Array.Resize(ref _buffer, targetCapacity);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Latency\RequestLatencyTelemetryMiddlewareTests.cs (1)
151Array.Empty<ILatencyDataExporter>(),
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
Microsoft.AspNetCore.HeaderParsing (2)
HeaderParsingFeature.cs (2)
24private Box?[] _boxes = Array.Empty<Box?>(); 62Array.Resize(ref _boxes, header.Position + 1);
Microsoft.AspNetCore.Hosting (20)
_generated\1\SourceGenerationContext.StaticWebAssetManifest.g.cs (3)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetManifest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetManifest).GetProperty("ContentRoots", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 92AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetManifest).GetProperty("Root", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode), global::System.Array.Empty<global::System.Type>(), null),
_generated\2\SourceGenerationContext.StaticWebAssetMatch.g.cs (3)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetMatch).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetMatch).GetProperty("ContentRoot", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetMatch).GetProperty("Path", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\3\SourceGenerationContext.StaticWebAssetNode.g.cs (4)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode).GetProperty("Match", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetMatch), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode).GetProperty("Children", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode).GetProperty("Patterns", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetPattern[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\4\SourceGenerationContext.StaticWebAssetPattern.g.cs (4)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetPattern).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetPattern).GetProperty("ContentRoot", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetPattern).GetProperty("Depth", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetPattern).GetProperty("Pattern", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Internal\WebHostOptions.cs (1)
80?? Array.Empty<string>();
src\aspnetcore\src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
44errorDetails = Array.Empty<ExceptionDetails>();
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
26return Array.Empty<StackFrameInfo>(); 36return Array.Empty<StackFrameInfo>();
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
83return new StaticWebAssetsDirectoryContents((files as IEnumerable<IFileInfo>) ?? Array.Empty<IFileInfo>()); 313public string[] ContentRoots { get; set; } = Array.Empty<string>();
Microsoft.AspNetCore.Http (12)
FormCollection.cs (1)
22private static readonly string[] EmptyKeys = Array.Empty<string>();
HeaderDictionary.cs (2)
20private static readonly string[] EmptyKeys = Array.Empty<string>(); 21private static readonly StringValues[] EmptyValues = Array.Empty<StringValues>();
Internal\RequestCookieCollection.cs (1)
20private static readonly string[] EmptyKeys = Array.Empty<string>();
QueryCollection.cs (1)
22private static readonly string[] EmptyKeys = Array.Empty<string>();
src\aspnetcore\src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (7)
74_arrayStorage = Array.Empty<KeyValuePair<TKey, TValue>>(); 258Array.Clear(_arrayStorage, 0, _count); 310Array.Copy(storage, 0, array, arrayIndex, _count); 359Array.Copy(array, index + 1, array, index, _count - index); 391Array.Copy(array, index + 1, array, index, _count - index); 432Array.Copy(array, index + 1, array, index, _count - index); 534Array.Copy(_arrayStorage, 0, array, 0, _count);
Microsoft.AspNetCore.Http.Abstractions (21)
Extensions\UseMiddlewareExtensions.cs (1)
130Array.Copy(_args, 0, ctorArgs, 1, _args.Length);
Routing\EndpointMetadataCollection.cs (2)
27public static readonly EndpointMetadataCollection Empty = new EndpointMetadataCollection(Array.Empty<object>()); 124var results = matches == null ? Array.Empty<T>() : matches.ToArray();
Routing\RouteValueDictionary.cs (18)
108_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 154_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 158_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 175_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 192_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 208_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 215_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 231_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 240Array.Copy(other, 0, storage, 0, count); 246_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 254_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 398_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 404Array.Clear(_arrayStorage, 0, _count); 460Array.Copy(storage, 0, array, arrayIndex, _count); 497Array.Copy(array, index + 1, array, index, _count - index); 528Array.Copy(array, index + 1, array, index, _count - index); 568Array.Copy(array, index + 1, array, index, _count - index); 698Array.Copy(_arrayStorage, 0, array, 0, _count);
Microsoft.AspNetCore.Http.Connections (3)
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (2)
72return Array.Empty<byte>(); 129return Array.Empty<byte>();
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.Http.Extensions (59)
_generated\1\ProblemDetailsJsonContext.HttpValidationProblemDetails.g.cs (8)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpValidationProblemDetails).GetProperty("Errors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, string[]>), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 111AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 132AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null), 153AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Detail", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 174AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Instance", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 195AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Extensions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
_generated\2\ProblemDetailsJsonContext.ProblemDetails.g.cs (7)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null), 131AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Detail", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 152AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Instance", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 173AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Extensions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
HeaderDictionaryTypeExtensions.cs (7)
154MediaTypeHeaderValue.TryParseList(value, out var result) ? result : Array.Empty<MediaTypeHeaderValue>(); 157StringWithQualityHeaderValue.TryParseList(value, out var result) ? result : Array.Empty<StringWithQualityHeaderValue>(); 160CookieHeaderValue.TryParseList(value, out var result) ? result : Array.Empty<CookieHeaderValue>(); 163EntityTagHeaderValue.TryParseList(value, out var result) ? result : Array.Empty<EntityTagHeaderValue>(); 166SetCookieHeaderValue.TryParseList(value, out var result) ? result : Array.Empty<SetCookieHeaderValue>(); 233return Array.Empty<T>(); 331return Array.Empty<T>();
RequestDelegateFactory.cs (3)
66private static readonly MethodInfo ArrayEmptyOfObjectMethod = typeof(Array).GetMethod(nameof(Array.Empty), BindingFlags.Public | BindingFlags.Static)!.MakeGenericMethod(new Type[] { typeof(object) }); 652return Array.Empty<Expression>();
RequestDelegateFactoryContext.cs (2)
57public Type[] ArgumentTypes { get; set; } = Array.Empty<Type>(); 59public Expression[] BoxedArgs { get; set; } = Array.Empty<Expression>();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ArrayCollectionFactory.cs (1)
11Array.Copy(buffer, result, size);
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ArrayPoolBufferAdapter.cs (1)
19Array.Copy(buffer.Data, newBuffer, buffer.Data.Length);
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (15)
159Array.Empty<Type>(), 185Array.Empty<Type>(), 287Array.Empty<Type>(), 297Array.Empty<Type>(), 304Array.Empty<Type>(), 314Array.Empty<Type>(), 361Array.Empty<Expression>())); 379Array.Empty<Type>(), 398Array.Empty<Type>(), 406Array.Empty<Type>(), 461Array.Empty<Expression>())); 483Array.Empty<Type>(), 501Array.Empty<Type>(), 509Array.Empty<Type>(), 552Expression.Not(Expression.Call(readerParam, nameof(FormDataReader.CurrentPrefixExists), Array.Empty<Type>())),
src\aspnetcore\src\Components\Endpoints\src\FormMapping\PrefixResolver.cs (2)
25Array.Sort(_sortedKeys, 0, count, FormKeyComparer.SortCriteria); 34return Array.BinarySearch(_sortedKeys, 0, _length, new FormKey(currentPrefixBuffer), FormKeyComparer.PrefixCriteria) >= 0;
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (6)
495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
321return (constructor, Array.Empty<ConstructorParameter>());
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (6)
71return Array.Empty<ParameterInfo>(); 152Array.Copy(constructorAttributes, mergedAttributes, constructorAttributes.Length); 153Array.Copy(propertyAttributes, 0, mergedAttributes, constructorAttributes.Length, propertyAttributes.Length); 172Array.Copy(constructorAttributes, mergedAttributes, constructorAttributes.Length); 173Array.Copy(propertyAttributes, 0, mergedAttributes, constructorAttributes.Length, propertyAttributes.Length); 181_constructionParameterInfo?.GetCustomAttributesData() ?? Array.Empty<CustomAttributeData>());
Microsoft.AspNetCore.Http.Results (8)
ChallengeHttpResult.cs (2)
20: this(Array.Empty<string>()) 62public IReadOnlyList<string> AuthenticationSchemes { get; internal init; } = Array.Empty<string>();
ForbidHttpResult.cs (2)
20: this(Array.Empty<string>()) 41: this(Array.Empty<string>(), properties)
SignOutHttpResult.cs (1)
20: this(Array.Empty<string>())
TypedResults.cs (3)
42=> new(authenticationSchemes: authenticationSchemes ?? Array.Empty<string>(), properties); 60=> new(authenticationSchemes: authenticationSchemes ?? Array.Empty<string>(), properties); 86=> new(authenticationSchemes ?? Array.Empty<string>(), properties);
Microsoft.AspNetCore.HttpLogging (2)
src\aspnetcore\src\Shared\Buffers\BufferSegmentStack.cs (1)
61Array.Resize(ref _array, 2 * _array.Length);
W3CLoggingMiddleware.cs (1)
244var src = Array.Empty<char>();
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersMiddleware.cs (1)
485Array.Copy(forwarded, remaining, newLength);
Microsoft.AspNetCore.Identity (120)
_generated\10\IdentityEndpointsJsonSerializerContext.ResendConfirmationEmailRequest.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ResendConfirmationEmailRequest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ResendConfirmationEmailRequest).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\11\IdentityEndpointsJsonSerializerContext.ResetPasswordRequest.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest).GetProperty("ResetCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest).GetProperty("NewPassword", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\12\IdentityEndpointsJsonSerializerContext.TwoFactorRequest.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest).GetProperty("Enable", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest).GetProperty("TwoFactorCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest).GetProperty("ResetSharedKey", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest).GetProperty("ResetRecoveryCodes", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest).GetProperty("ForgetMachine", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\13\IdentityEndpointsJsonSerializerContext.TwoFactorResponse.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse).GetProperty("SharedKey", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse).GetProperty("RecoveryCodesLeft", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse).GetProperty("RecoveryCodes", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 132AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse).GetProperty("IsTwoFactorEnabled", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 153AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse).GetProperty("IsMachineRemembered", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\22\IdentityJsonSerializerContext.AuthenticatorAssertionResponse.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse).GetProperty("AuthenticatorData", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse).GetProperty("Signature", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse).GetProperty("UserHandle", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 134AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorResponse).GetProperty("ClientDataJSON", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null),
_generated\23\IdentityJsonSerializerContext.AuthenticatorAttestationResponse.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse).GetProperty("AttestationObject", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse).GetProperty("Transports", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 111AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorResponse).GetProperty("ClientDataJSON", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null),
_generated\24\IdentityJsonSerializerContext.AuthenticatorSelectionCriteria.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("AuthenticatorAttachment", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("ResidentKey", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("RequireResidentKey", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("UserVerification", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\26\IdentityJsonSerializerContext.CollectedClientData.g.cs (7)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetProperty("Challenge", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetProperty("Origin", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 137AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetProperty("CrossOrigin", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null), 157AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetProperty("TopOrigin", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 177AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetProperty("TokenBinding", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.TokenBinding), global::System.Array.Empty<global::System.Type>(), null),
_generated\28\IdentityJsonSerializerContext.PasskeyAssertionState.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyAssertionState).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyAssertionState).GetProperty("Challenge", InstanceMemberBindingFlags, null, typeof(global::System.ReadOnlyMemory<byte>), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyAssertionState).GetProperty("UserId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\29\IdentityJsonSerializerContext.PasskeyAttestationState.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyAttestationState).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyAttestationState).GetProperty("Challenge", InstanceMemberBindingFlags, null, typeof(global::System.ReadOnlyMemory<byte>), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyAttestationState).GetProperty("UserEntity", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.PasskeyUserEntity), global::System.Array.Empty<global::System.Type>(), null),
_generated\30\IdentityJsonSerializerContext.PasskeyUserEntity.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyUserEntity).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyUserEntity).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyUserEntity).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyUserEntity).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\31\IdentityJsonSerializerContext.PublicKeyCredentialAuthenticatorAssertionResponse.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse>).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse>).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse>).GetProperty("ClientExtensionResults", InstanceMemberBindingFlags, null, typeof(global::System.Text.Json.JsonElement), global::System.Array.Empty<global::System.Type>(), null), 135AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse>).GetProperty("Response", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse), global::System.Array.Empty<global::System.Type>(), null), 158AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse>).GetProperty("AuthenticatorAttachment", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\32\IdentityJsonSerializerContext.PublicKeyCredentialAuthenticatorAttestationResponse.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse>).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse>).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse>).GetProperty("ClientExtensionResults", InstanceMemberBindingFlags, null, typeof(global::System.Text.Json.JsonElement), global::System.Array.Empty<global::System.Type>(), null), 135AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse>).GetProperty("Response", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse), global::System.Array.Empty<global::System.Type>(), null), 158AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse>).GetProperty("AuthenticatorAttachment", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\33\IdentityJsonSerializerContext.PublicKeyCredentialCreationOptions.g.cs (12)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Rp", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("User", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Challenge", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 137AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("PubKeyCredParams", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>), global::System.Array.Empty<global::System.Type>(), null), 159AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Timeout", InstanceMemberBindingFlags, null, typeof(ulong?), global::System.Array.Empty<global::System.Type>(), null), 179AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("ExcludeCredentials", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>), global::System.Array.Empty<global::System.Type>(), null), 201AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("AuthenticatorSelection", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria), global::System.Array.Empty<global::System.Type>(), null), 221AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Hints", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 243AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Attestation", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 263AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("AttestationFormats", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 285AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Extensions", InstanceMemberBindingFlags, null, typeof(global::System.Text.Json.JsonElement?), global::System.Array.Empty<global::System.Type>(), null),
_generated\34\IdentityJsonSerializerContext.PublicKeyCredentialDescriptor.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor).GetProperty("Transports", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\35\IdentityJsonSerializerContext.PublicKeyCredentialParameters.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters).GetProperty("Alg", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.COSEAlgorithmIdentifier), global::System.Array.Empty<global::System.Type>(), null),
_generated\36\IdentityJsonSerializerContext.PublicKeyCredentialRequestOptions.g.cs (8)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("Challenge", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("Timeout", InstanceMemberBindingFlags, null, typeof(ulong?), global::System.Array.Empty<global::System.Type>(), null), 111AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("RpId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 131AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("AllowCredentials", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>), global::System.Array.Empty<global::System.Type>(), null), 153AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("UserVerification", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 173AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("Hints", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 195AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("Extensions", InstanceMemberBindingFlags, null, typeof(global::System.Text.Json.JsonElement?), global::System.Array.Empty<global::System.Type>(), null),
_generated\37\IdentityJsonSerializerContext.PublicKeyCredentialRpEntity.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\38\IdentityJsonSerializerContext.PublicKeyCredentialUserEntity.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\39\IdentityJsonSerializerContext.TokenBinding.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.TokenBinding).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.TokenBinding).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.TokenBinding).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\4\IdentityEndpointsJsonSerializerContext.ForgotPasswordRequest.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ForgotPasswordRequest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ForgotPasswordRequest).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\5\IdentityEndpointsJsonSerializerContext.InfoRequest.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoRequest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoRequest).GetProperty("NewEmail", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoRequest).GetProperty("NewPassword", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoRequest).GetProperty("OldPassword", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\6\IdentityEndpointsJsonSerializerContext.InfoResponse.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoResponse).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoResponse).GetProperty("IsEmailConfirmed", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\7\IdentityEndpointsJsonSerializerContext.LoginRequest.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest).GetProperty("Password", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest).GetProperty("TwoFactorCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 134AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest).GetProperty("TwoFactorRecoveryCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\8\IdentityEndpointsJsonSerializerContext.RefreshRequest.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.RefreshRequest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.RefreshRequest).GetProperty("RefreshToken", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\9\IdentityEndpointsJsonSerializerContext.RegisterRequest.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.RegisterRequest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.RegisterRequest).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.RegisterRequest).GetProperty("Password", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
IdentityApiEndpointRouteBuilderExtensions.cs (1)
443Array.Copy(descriptions, newDescriptions, descriptions.Length);
SignInManager.cs (2)
209IList<Claim> claims = Array.Empty<Claim>(); 251IList<Claim> additionalClaims = Array.Empty<Claim>();
Microsoft.AspNetCore.Mvc.Abstractions (7)
Abstractions\ActionDescriptor.cs (4)
50public IList<object> EndpointMetadata { get; set; } = Array.Empty<ParameterDescriptor>(); 55public IList<ParameterDescriptor> Parameters { get; set; } = Array.Empty<ParameterDescriptor>(); 60public IList<ParameterDescriptor> BoundProperties { get; set; } = Array.Empty<ParameterDescriptor>(); 65public IList<FilterDescriptor> FilterDescriptors { get; set; } = Array.Empty<FilterDescriptor>();
ActionConstraints\ActionConstraintContext.cs (1)
17public IReadOnlyList<ActionSelectorCandidate> Candidates { get; set; } = Array.Empty<ActionSelectorCandidate>();
ModelBinding\ValueProviderResult.cs (1)
33public static ValueProviderResult None = new ValueProviderResult(Array.Empty<string>());
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
321return (constructor, Array.Empty<ConstructorParameter>());
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
AddResponseTypeAttributeCodeFixAction.cs (1)
176return Array.Empty<(int, ITypeSymbol?)>();
SymbolApiResponseMetadataProvider.cs (1)
80return Array.Empty<DeclaredApiResponseMetadata>();
Microsoft.AspNetCore.Mvc.ApiExplorer (7)
EndpointModelMetadata.cs (1)
53public override IReadOnlyList<object> ValidatorMetadata { get; } = Array.Empty<object>();
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (6)
71return Array.Empty<ParameterInfo>(); 152Array.Copy(constructorAttributes, mergedAttributes, constructorAttributes.Length); 153Array.Copy(propertyAttributes, 0, mergedAttributes, constructorAttributes.Length, propertyAttributes.Length); 172Array.Copy(constructorAttributes, mergedAttributes, constructorAttributes.Length); 173Array.Copy(propertyAttributes, 0, mergedAttributes, constructorAttributes.Length, propertyAttributes.Length); 181_constructionParameterInfo?.GetCustomAttributesData() ?? Array.Empty<CustomAttributeData>());
Microsoft.AspNetCore.Mvc.Core (49)
ApiBehaviorOptions.cs (1)
17private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
ApplicationParts\RelatedAssemblyAttribute.cs (3)
59return Array.Empty<Assembly>(); 65return Array.Empty<Assembly>(); 76return Array.Empty<Assembly>();
Authorization\AuthorizeFilter.cs (1)
146var endpointAuthorizeData = endpoint.Metadata.GetOrderedMetadata<IAuthorizeData>() ?? Array.Empty<IAuthorizeData>();
BindAttribute.cs (1)
79=> original?.Split(',', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>();
ChallengeResult.cs (2)
20: this(Array.Empty<string>()) 51: this(Array.Empty<string>(), properties)
Filters\FilterFactory.cs (1)
121return Array.Empty<IFilterMetadata>();
ForbidResult.cs (2)
20: this(Array.Empty<string>()) 51: this(Array.Empty<string>(), properties)
Formatters\TextOutputFormatter.cs (1)
178return Array.Empty<StringWithQualityHeaderValue>();
Infrastructure\ActionSelectionTable.cs (1)
183return Array.Empty<TItem>();
Infrastructure\ControllerEndpointFilterInvocationContext.cs (1)
27Arguments = arguments ?? Array.Empty<object?>();
Infrastructure\DefaultApiProblemDetailsWriter.cs (1)
80Array.Empty<IOutputFormatter>(),
Infrastructure\ObjectResultExecutor.cs (1)
94(IList<IOutputFormatter>)result.Formatters ?? Array.Empty<IOutputFormatter>(),
ModelBinding\Binders\ArrayModelBinder.cs (1)
96return Array.Empty<TElement>();
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (2)
46return Array.Empty<IModelBinder>(); 50Array.Empty<IModelBinder>() :
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
94IReadOnlyList<IFormFile> IFormFileCollection.GetFiles(string name) => Array.Empty<IFormFile>();
ModelBinding\Binders\HeaderModelBinder.cs (1)
106var values = Array.Empty<string>();
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
511var parameters = defaultModelMetadata.BoundConstructor?.BoundConstructorParameters ?? Array.Empty<ModelMetadata>();
ModelBinding\Metadata\ModelAttributes.cs (2)
16internal static readonly ModelAttributes Empty = new ModelAttributes(Array.Empty<object>()); 71Attributes = Array.Empty<object>();
ModelBinding\ModelBindingHelper.cs (4)
633var valueAsArray = value as Array; 640var converted = (IList)Array.CreateInstance(destinationElementType, valueAsArray.Length); 652var converted = (IList)Array.CreateInstance(destinationElementType, 1);
ModelBinding\PrefixContainer.cs (2)
32_sortedValues = Array.Empty<string>(); 38Array.Sort(_sortedValues, StringComparer.OrdinalIgnoreCase);
ModelBinding\Validation\ClientValidatorCache.cs (1)
124return Array.Empty<IClientModelValidator>();
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (1)
57_parameters = Array.Empty<ModelMetadata>();
ModelBinding\Validation\ValidatorCache.cs (1)
113return Array.Empty<IModelValidator>();
MvcOptions.cs (1)
28private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Routing\ActionConstraintMatcherPolicy.cs (1)
139IReadOnlyList<IActionConstraint>? constraints = Array.Empty<IActionConstraint>();
Routing\ActionEndpointDataSourceBase.cs (2)
124groupConventions: Array.Empty<Action<EndpointBuilder>>(), 126groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>());
Routing\ActionEndpointFactory.cs (4)
76perRouteConventions: Array.Empty<Action<EndpointBuilder>>(), 79perRouteFinallyConventions: Array.Empty<Action<EndpointBuilder>>()); 166perRouteConventions: Array.Empty<Action<EndpointBuilder>>(), 169perRouteFinallyConventions: Array.Empty<Action<EndpointBuilder>>());
SignOutResult.cs (2)
22: this(Array.Empty<string>()) 32: this(Array.Empty<string>(), properties)
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (6)
495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
MvcDataAnnotationsLocalizationOptions.cs (1)
15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
MvcXmlOptions.cs (1)
15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Microsoft.AspNetCore.Mvc.Localization (2)
LocalizedHtmlString.cs (2)
22: this(name, value, isResourceNotFound: false, arguments: Array.Empty<object>()) 33: this(name, value, isResourceNotFound, arguments: Array.Empty<object>())
Microsoft.AspNetCore.Mvc.Razor (2)
Compilation\DefaultViewCompiler.cs (1)
114ExpirationTokens = Array.Empty<IChangeToken>(),
RazorViewEngine.cs (1)
415Array.Empty<ViewLocationCacheItem>();
Microsoft.AspNetCore.Mvc.RazorPages (11)
ApplicationModels\PageApplicationModel.cs (1)
48EndpointMetadata = new List<object>(ActionDescriptor.EndpointMetadata ?? Array.Empty<object>());
Infrastructure\DefaultPageLoader.cs (4)
70routes: Array.Empty<ConventionalRouteEntry>(), 87groupConventions: Array.Empty<Action<EndpointBuilder>>(), 88finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 89groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
Infrastructure\DefaultPageModelActivatorProvider.cs (1)
33return (context) => factory(context.HttpContext.RequestServices, Array.Empty<object>());
Infrastructure\PageActionDescriptorProvider.cs (1)
104FilterDescriptors = Array.Empty<FilterDescriptor>(),
Infrastructure\PageActionEndpointDataSource.cs (1)
61Array.Empty<ConventionalRouteEntry>(),
Infrastructure\PageActionInvokerCache.cs (2)
133return Array.Empty<PageHandlerExecutorDelegate>(); 150return Array.Empty<PageHandlerBinderDelegate>();
RazorPagesOptions.cs (1)
15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Microsoft.AspNetCore.Mvc.TagHelpers (2)
GlobbingUrlBuilder.cs (2)
103return Array.Empty<string>(); 116return Array.Empty<string>();
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
Buffers\MemoryPoolViewBufferScope.cs (1)
75Array.Clear(segment, 0, segment.Length);
Buffers\PagedCharBuffer.cs (1)
84Array.Copy(
Buffers\ViewBuffer.cs (3)
322Array.Clear(page.Buffer, 0, page.Count); 345Array.Copy( 355Array.Clear(page.Buffer, 0, page.Count);
Infrastructure\DefaultTempDataSerializer.cs (1)
132return Array.Empty<byte>();
MvcViewOptions.cs (1)
19private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
RemoteAttributeBase.cs (2)
29private string[] _additionalFieldsSplit = Array.Empty<string>(); 171=> original?.Split(',', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>();
ValidationHelpers.cs (1)
79return Array.Empty<ModelStateEntry>();
ViewComponents\DefaultViewComponentInvoker.cs (1)
272return Array.Empty<string>();
Microsoft.AspNetCore.OutputCaching (11)
DefaultOutputCachePolicyProvider.cs (1)
30return Array.Empty<IOutputCachePolicy>();
OutputCacheEntryFormatter.cs (1)
58string[] tagsArr = tags is { Count: > 0 } ? tags.ToArray() : Array.Empty<string>();
OutputCacheKeyProvider.cs (6)
175Array.Sort(headerValuesArray, StringComparer.Ordinal); 202Array.Sort(queryArray, QueryKeyComparer.OrdinalIgnoreCase); 217Array.Sort(queryValueArray, StringComparer.Ordinal); 251Array.Sort(queryValueArray, StringComparer.Ordinal); 344return Array.Empty<string>(); 349Array.Sort(newArray, StringComparer.OrdinalIgnoreCase);
OutputCacheMiddleware.cs (1)
224policies = Array.Empty<IOutputCachePolicy>();
RecyclableArrayBufferWriter.cs (2)
28_buffer = Array.Empty<T>(); 36_buffer = Array.Empty<T>();
Microsoft.AspNetCore.Razor (1)
TagHelpers\ReadOnlyTagHelperAttributeList.cs (1)
136attributes = matchedAttributes ?? (IReadOnlyList<TagHelperAttribute>)Array.Empty<TagHelperAttribute>();
Microsoft.AspNetCore.Razor.Utilities.Shared (6)
EnumerableExtensions.cs (1)
583Array.Sort(keys.Array, newArray, 0, length, sortHelper.GetOrCreateComparer());
HashSetExtensions.cs (1)
17? Array.Empty<T>()
ImmutableArrayExtensions.cs (1)
1260Array.Sort(keys.Array, newArray, 0, length, sortHelper.GetOrCreateComparer());
ImmutableArrayExtensions_Unsafe.cs (2)
162Array.Reverse(innerArray); 188Array.Sort(keys.Array, innerArray, 0, length, sortHelper.GetOrCreateComparer());
ReadOnlyListExtensions.cs (1)
1475Array.Sort(keys.Array, newArray, 0, length, sortHelper.GetOrCreateComparer());
Microsoft.AspNetCore.ResponseCaching (5)
ResponseCachingKeyProvider.cs (4)
120Array.Sort(headerValuesArray, StringComparer.Ordinal); 142Array.Sort(queryArray, QueryKeyComparer.OrdinalIgnoreCase); 153Array.Sort(queryValueArray, StringComparer.Ordinal); 178Array.Sort(queryValueArray, StringComparer.Ordinal);
ResponseCachingMiddleware.cs (1)
537Array.Sort(newArray, StringComparer.Ordinal);
Microsoft.AspNetCore.Routing (49)
ArrayBuilder.cs (3)
108return Array.Empty<T>(); 119Array.Copy(_array, 0, result, 0, _count); 163Array.Copy(_array, 0, next, 0, _count);
Builder\EndpointRouteBuilderExtensions.cs (1)
215Array.Empty<object>();
CompositeEndpointDataSource.cs (1)
83return Array.Empty<Endpoint>();
EndpointNameAddressScheme.cs (2)
30return result ?? Array.Empty<Endpoint>(); 62Array.Copy(existing, newEntry, existing.Length);
Matching\AcceptsMatcherPolicy.cs (2)
176var contentTypes = endpoint.Metadata.GetMetadata<IAcceptsMetadata>()?.ContentTypes ?? Array.Empty<string>(); 272Array.Sort(ordered, static (left, right) => GetScore(left.mediaType).CompareTo(GetScore(right.mediaType)));
Matching\Candidate.cs (4)
54Slots = Array.Empty<KeyValuePair<string, object>>(); 55Captures = Array.Empty<(string parameterName, int segmentIndex, int slotIndex)>(); 57ComplexSegments = Array.Empty<(RoutePatternPathSegment pathSegment, int segmentIndex)>(); 58Constraints = Array.Empty<KeyValuePair<string, IRouteConstraint>>();
Matching\CandidateSet.cs (1)
278Array.Sort<Endpoint>(buffer, comparer);
Matching\DfaMatcher.cs (1)
138Array.Copy(prototype, 0, slots, 0, prototype.Length);
Matching\DfaMatcherBuilder.cs (10)
574Array.Empty<Candidate>(), 575Array.Empty<IEndpointSelectorPolicy>(), 669endpointSelectorPolicies?.ToArray() ?? Array.Empty<IEndpointSelectorPolicy>(), 709return Array.Empty<Candidate>(); 840Array.Empty<KeyValuePair<string, object>>(), 841Array.Empty<(string parameterName, int segmentIndex, int slotIndex)>(), 843Array.Empty<(RoutePatternPathSegment pathSegment, int segmentIndex)>(), 844Array.Empty<KeyValuePair<string, IRouteConstraint>>()); 911if (!nodeBuilder.AppliesToEndpoints(parent.Matches ?? (IReadOnlyList<Endpoint>)Array.Empty<Endpoint>())) 921var edges = nodeBuilder.GetEdges(parent.Matches ?? (IReadOnlyList<Endpoint>)Array.Empty<Endpoint>());
Matching\HostMatcherPolicy.cs (1)
304Array.Sort(ordered, static (left, right) => GetScore(left.host).CompareTo(GetScore(right.host)));
Matching\HttpMethodMatcherPolicy.cs (1)
301return metadata == null ? (Array.Empty<string>(), false) : (metadata.HttpMethods, metadata.AcceptCorsPreflight);
Matching\ILEmitTrieFactory.cs (3)
111Array.Sort(groups, static (a, b) => a.Key.CompareTo(b.Key)); 336Array.Sort(groups, static (a, b) => unchecked((long)a.Key).CompareTo(unchecked((long)b.Key))); 461Array.Sort(groups, static (a, b) => (a.Key | 0x20).CompareTo(b.Key | 0x20));
Matching\NegotiationMatcherPolicy.cs (2)
88values = Array.Empty<StringWithQualityHeaderValue>(); 341Array.Sort(EndpointsQuality);
ParameterPolicyActivator.cs (1)
112var arguments = argumentString?.Split(',', StringSplitOptions.TrimEntries) ?? Array.Empty<string>();
Patterns\RouteParameterParser.cs (1)
22return new RoutePatternParameterPart(string.Empty, null, RoutePatternParameterKind.Standard, Array.Empty<RoutePatternParameterPolicyReference>());
Patterns\RoutePatternFactory.cs (5)
540(IReadOnlyList<RoutePatternParameterPart>?)parameters ?? Array.Empty<RoutePatternParameterPart>(), 638parameterConstraints?.ToArray() ?? Array.Empty<RoutePatternParameterPolicyReference>(), 782parameterPolicies: Array.Empty<RoutePatternParameterPolicyReference>()); 805parameterPolicies: Array.Empty<RoutePatternParameterPolicyReference>()); 837parameterPolicies: Array.Empty<RoutePatternParameterPolicyReference>());
RouteGroupBuilder.cs (3)
51GetGroupedEndpointsWithNullablePrefix(null, Array.Empty<Action<EndpointBuilder>>(), 52Array.Empty<Action<EndpointBuilder>>(), _routeGroupBuilder._outerEndpointRouteBuilder.ServiceProvider); 650 => Array.Empty<Endpoint>(),
RouteGroupContext.cs (2)
26public IReadOnlyList<Action<EndpointBuilder>> Conventions { get; init; } = Array.Empty<Action<EndpointBuilder>>(); 33public IReadOnlyList<Action<EndpointBuilder>> FinallyConventions { get; init; } = Array.Empty<Action<EndpointBuilder>>();
RouteValuesAddressScheme.cs (1)
59return Array.Empty<Endpoint>();
Template\TemplateBinder.cs (4)
79_requiredKeys = requiredKeys?.ToArray() ?? Array.Empty<string>(); 150constraints = constraintList?.ToArray() ?? Array.Empty<(string, IRouteConstraint)>(); 151parameterTransformers = parameterTransformerList?.ToArray() ?? Array.Empty<(string, IOutboundParameterTransformer)>(); 165Array.Copy(_slots, 0, slots, 0, slots.Length);
Microsoft.AspNetCore.Server.HttpSys (1)
SourceBuildStubs.cs (1)
679public IEnumerator<UrlPrefix> GetEnumerator() => ((IEnumerable<UrlPrefix>)Array.Empty<UrlPrefix>()).GetEnumerator();
Microsoft.AspNetCore.Server.Kestrel.Core (17)
KestrelServer.cs (1)
36Array.Empty<IMultiplexedConnectionListenerFactory>(),
KestrelServerOptions.cs (1)
82return Array.Empty<ListenOptions>();
src\aspnetcore\src\Servers\Kestrel\shared\PooledStreamStack.cs (1)
98Array.Resize(ref _array, 2 * _array.Length);
src\aspnetcore\src\Shared\Buffers\BufferSegmentStack.cs (1)
61Array.Resize(ref _array, 2 * _array.Length);
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (6)
702Array.Clear(keyBytes, 0, keyBytes.Length); 703Array.Clear(pem, 0, pem.Length); 709Array.Clear(keyBytes, 0, keyBytes.Length); 710Array.Clear(pem, 0, pem.Length); 760Array.Clear(bytes, 0, bytes.Length); 788Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
176Array.Clear(export, 0, export.Length);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
66Array.Clear(export, 0, export.Length);
src\aspnetcore\src\Shared\runtime\Http2\Hpack\DynamicTable.cs (2)
87Array.Copy(_buffer, _removeIndex, newBuffer, 0, headCount); 88Array.Copy(_buffer, 0, newBuffer, headCount, tailCount);
src\aspnetcore\src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
src\aspnetcore\src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
714Array.Resize(ref dstArray, dst.Length * 2); 781Array.Resize(ref dstArray, dst.Length * 2);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Servers\Kestrel\shared\PooledStreamStack.cs (1)
98Array.Resize(ref _array, 2 * _array.Length);
Microsoft.AspNetCore.Session (2)
NoOpSessionStore.cs (2)
20public ICollection<EncodedKey> Keys { get; } = Array.Empty<EncodedKey>(); 22public ICollection<byte[]> Values { get; } = Array.Empty<byte[]>();
Microsoft.AspNetCore.SignalR.Common (3)
Protocol\HubMethodInvocationMessage.cs (2)
113streamIds = string.Join(", ", StreamIds != null ? StreamIds.Select(id => id?.ToString()) : Array.Empty<string>()); 168streamIds = string.Join(", ", StreamIds != null ? StreamIds.Select(id => id?.ToString()) : Array.Empty<string>());
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.SignalR.Core (16)
ClientProxyExtensions.cs (2)
24return clientProxy.SendCoreAsync(method, Array.Empty<object>(), cancellationToken); 232return clientProxy.InvokeCoreAsync<T>(method, Array.Empty<object>(), cancellationToken);
HubOptionsSetup`T.cs (1)
32options.SupportedProtocols = new List<string>(_hubOptions.SupportedProtocols ?? Array.Empty<string>());
Internal\DefaultHubActivator.cs (1)
30hub = (THub)_objectFactory.Value(_serviceProvider, Array.Empty<object>());
Internal\HubFilterFactory.cs (2)
18_objectFactory = ActivatorUtilities.CreateFactory(filterType, Array.Empty<Type>()); 92filter = (IHubFilter)_objectFactory.Invoke(serviceProvider, Array.Empty<object>());
Internal\Proxies.cs (1)
167return _lifetimeManager.InvokeConnectionAsync<T>(_connectionId, method, args ?? Array.Empty<object?>(), cancellationToken);
Internal\Utf8HashLookup.cs (1)
130Array.Copy(_slots, newSlots, _count);
SerializedHubMessage.cs (1)
82return Array.Empty<SerializedMessage>();
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (6)
495(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 496(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 497(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_valueTaskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 514(awaitable) => ((MethodInfo)awaitable.GetType().GetMemberWithSameMetadataDefinitionAs(_taskGetAwaiterMethodInfo)).Invoke(awaitable, Array.Empty<object>()), 515(awaiter) => (bool)((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetIsCompletedMethodInfo)).Invoke(awaiter, Array.Empty<object>())!, 516(awaiter) => ((MethodInfo)awaiter.GetType().GetMemberWithSameMetadataDefinitionAs(_taskAwaiterGetResultMethodInfo)).Invoke(awaiter, Array.Empty<object>())!,
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (1)
426Array.Clear(_messages, 0, BufferLength);
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Protocol\JsonHubProtocol.cs (2)
190streamIds = newStreamIds?.ToArray() ?? Array.Empty<string>(); 870return arguments ?? Array.Empty<object>();
Microsoft.AspNetCore.StaticAssets (18)
_generated\1\StaticAssetsManifestJsonContext.StaticAssetDescriptor.g.cs (7)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetProperty("Order", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetProperty("Route", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 111AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetProperty("AssetPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 134AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetProperty("Selectors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>), global::System.Array.Empty<global::System.Type>(), null), 156AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>), global::System.Array.Empty<global::System.Type>(), null), 178AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetProperty("ResponseHeaders", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>), global::System.Array.Empty<global::System.Type>(), null),
_generated\2\StaticAssetsManifestJsonContext.StaticAssetProperty.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\3\StaticAssetsManifestJsonContext.StaticAssetResponseHeader.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\4\StaticAssetsManifestJsonContext.StaticAssetSelector.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector).GetProperty("Quality", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\5\StaticAssetsManifestJsonContext.StaticAssetsManifest.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetsManifest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetsManifest).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetsManifest).GetProperty("ManifestType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetsManifest).GetProperty("Endpoints", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor>), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.WebUtilities (3)
HttpResponseStreamWriter.cs (1)
414values ??= Array.Empty<char>();
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (2)
72return Array.Empty<byte>(); 129return Array.Empty<byte>();
Microsoft.Build (99)
_generated\0\RegexGenerator.g.cs (3)
9386Array.Resize(ref stack, (pos + 0) * 2); 9413Array.Resize(ref stack, (pos + 1) * 2); 9441Array.Resize(ref stack, (pos + 2) * 2);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (3)
150Array.Resize(ref waitForExitTasks, i); 751return (expectedProcessName, Array.Empty<Process>()); 789Array.Sort(processes, (left, right) => left.Id.CompareTo(right.Id));
BackEnd\Components\Communications\TranslatorExtensions.cs (1)
94var targetInstanceChild = (ITranslatable)parameterlessConstructor.Invoke(Array.Empty<object>());
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
761return Array.Empty<ProjectGraphEntryPoint>();
BackEnd\Components\RequestBuilder\Lookup.cs (1)
549groupFound ??= Array.Empty<ProjectItemInstance>();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (3)
589Array.Copy(handles, 0, allHandles, 1, handles.Length); 1002results = Array.Empty<BuildResult>(); 1046Array.Sort(resultsArray, (left, right) => left.NodeRequestId.CompareTo(right.NodeRequestId));
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
277results[i] = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null)); 299results[i] = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null));
BackEnd\Components\RequestBuilder\TargetEntry.cs (3)
365Array.Empty<TaskItem>(), 578TaskItem[] targetOutputItems = Array.Empty<TaskItem>(); 732_targetResult = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null));
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
701changedTargetInputs.ImportItemsOfType(inputItems[0].ItemType, Array.Empty<ProjectItemInstance>()); 708upToDateTargetInputs.ImportItemsOfType(inputItems[0].ItemType, Array.Empty<ProjectItemInstance>());
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
882Array convertibleOutputs = parameter.PropertyType.IsArray ? (Array)outputs : new[] { outputs };
Collections\ArrayDictionary.cs (1)
155void ICollection.CopyTo(Array array, int index)
Collections\ItemDictionary.cs (2)
130return Array.Empty<T>(); 226return result ?? Array.Empty<T>();
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (3)
270Array.Clear(_slots, 0, _lastIndex); 271Array.Clear(_buckets, 0, _buckets.Length); 791Array.Copy(_slots, 0, newSlots, 0, _lastIndex);
Construction\ProjectElementContainer.cs (4)
70? Array.Empty<T>() 80? Array.Empty<ProjectElement>() 104? Array.Empty<ProjectElement>() 876void ICollection.CopyTo(Array array, int index)
Definition\ProjectCollection.cs (1)
1972return candidates ?? (IList<Project>)Array.Empty<Project>();
Definition\Toolset.cs (1)
621Array.Sort<string>(defaultTasksFiles, StringComparer.OrdinalIgnoreCase);
Evaluation\Expander.cs (6)
565return Array.Empty<T>(); 639return Array.Empty<T>(); 2165result = Array.Empty<T>(); 2187return Array.Empty<T>(); 4480if (propertyValue is Array) 4819Array.Sort(foundMembers, IntrinsicFunctionOverload.IntrinsicFunctionOverloadMethodComparer);
Evaluation\Expander\WellKnownFunctions.cs (2)
90returnVal = Path.Combine(Array.ConvertAll(args, o => (string)o)); 384returnVal = IntrinsicFunctions.NormalizePath(Array.ConvertAll(args, o => (string)o));
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
41: Array.Empty<I>();
Instance\ImmutableProjectCollections\ImmutableItemDictionary.cs (2)
48return Array.Empty<T>(); 129return Array.Empty<T>();
Instance\ProjectInstance.cs (2)
2869return Array.Empty<TargetSpecification>(); 2886return Array.Empty<TargetSpecification>();
Logging\TerminalLogger\TerminalLogger.cs (3)
116private TerminalNodeStatus?[] _nodes = Array.Empty<TerminalNodeStatus>(); 167private TerminalNodesFrame _currentFrame = new(Array.Empty<TerminalNodeStatus>(), 0, 0); 1110Array.Resize(ref _nodes, newSize);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ICollectionCalls.cs (1)
27public static void CopyTo<TCollection>(ref TCollection collection, Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\IDictionaryCalls.cs (1)
47public static void CopyTo<TDictionary>(ref TDictionary dictionary, Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedDictionary`2.cs (1)
347void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
146void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
257readonly void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedHashSet`1.cs (1)
349void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList`1.cs (1)
687void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
247void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
356readonly void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedArray.cs (12)
19/// <seealso cref="Array.Clear(Array)"/> 24/// <seealso cref="Array.Clear(Array, int, int)"/> 33/// <seealso cref="Array.Copy(Array, Array, int)"/> 52public static void Copy<T>(SegmentedArray<T> sourceArray, Array destinationArray, int length) 74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count); 138public static void Copy<T>(SegmentedArray<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count); 239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedArray`1.cs (2)
77_items = Array.Empty<T[]>(); 155public void CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedDictionary`2.cs (6)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 875void ICollection.CopyTo(Array array, int index) 1370void ICollection.CopyTo(Array array, int index) 1578void ICollection.CopyTo(Array array, int index)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedList`1.cs (5)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 454void ICollection.CopyTo(Array array, int arrayIndex) 1276return Array.Empty<T>();
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
108return Array.ConvertAll(removeGlobalProperties,
src\msbuild\src\Shared\TaskParameter.cs (6)
423Array array = (Array)_wrappedParameter; 456Array array = Array.CreateInstance(elementType, length); 506Array array = (Array)_wrappedParameter;
Utilities\EngineFileUtilities.cs (1)
371Array.Sort(fileList, StringComparer.OrdinalIgnoreCase);
Utilities\NuGetFrameworkWrapper.cs (1)
72DefaultCompatibilityProvider = NuGetFrameworkDefaultCompatibilityProvider.GetMethod("get_Instance").Invoke(null, Array.Empty<object>());
Microsoft.Build.Framework (22)
BackEnd\BufferedReadStream.cs (7)
73Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, _currentlyBufferedByteCount); 84Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, count); 95Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, _currentlyBufferedByteCount); 116Array.Copy(_buffer, 0, buffer, offset + alreadyCopied, remainingCopyCount); 139Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, count); 156Array.Copy(_buffer, 0, buffer, offset + alreadyCopied, remainingCopyCount); 168Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, _currentlyBufferedByteCount);
BackEnd\CommunicationsUtilities.cs (2)
357Array.Reverse(bytes); 520Array.Reverse(bytes);
ChangeWaves.cs (2)
149else if (_cachedWave == EnableAllFeatures || Array.IndexOf(AllWaves, _cachedWave) >= 0) 181Debug.Assert(_runningTests || Array.IndexOf(AllWaves, wave) >= 0, $"Change wave version {wave} is invalid");
Collections\CopyOnWriteDictionary.cs (1)
371void ICollection.CopyTo(Array array, int index)
Collections\ReadOnlyCollection.cs (1)
185void ICollection.CopyTo(Array array, int index)
Collections\ReadOnlyEmptyCollection.cs (1)
139void ICollection.CopyTo(Array array, int index)
Collections\ReadOnlyEmptyDictionary.cs (3)
72public ICollection<K> Keys => Array.Empty<K>(); 77public ICollection<V> Values => Array.Empty<V>(); 292public void CopyTo(System.Array array, int index)
DotnetHostEnvironmentHelper.cs (1)
31private static readonly string[] _archSpecificRootVars = Array.ConvertAll(Enum.GetNames<Architecture>(), name => $"{DotnetRootEnvVarName}_{name.ToUpperInvariant()}");
LoggersRegisteredEventArgs.cs (2)
24OutputFilePaths = outputFilePaths ?? Array.Empty<string>(); 93public IReadOnlyList<RegisteredLoggerInfo> Loggers { get; private set; } = Array.Empty<RegisteredLoggerInfo>();
Utilities\FileMatcher.cs (2)
2666if (Array.IndexOf(directorySeparatorCharacters, possibleParent[possibleParent.Length - 1]) >= 0) 2672return Array.IndexOf(directorySeparatorCharacters, possibleChild[possibleParent.Length]) >= 0;
Microsoft.Build.Tasks.CodeAnalysis (4)
src\roslyn\src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (2)
60MetadataItems = Array.Empty<ITaskItem>(); 61PropertyItems = Array.Empty<ITaskItem>();
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (1)
1019return Array.IndexOf(supportedList, langVersion) < 0;
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
349var buffer = Array.Empty<byte>();
Microsoft.Build.Tasks.Core (68)
_generated\0\RegexGenerator.g.cs (3)
4221Array.Resize(ref stack, (pos + 0) * 2); 4248Array.Resize(ref stack, (pos + 1) * 2); 4276Array.Resize(ref stack, (pos + 2) * 2);
AssemblyDependency\ReferenceTable.cs (1)
2687Array.Sort(primaryFiles, TaskItemSpecFilenameComparer.GenericComparer);
AssemblyDependency\ResolveAssemblyReference.cs (14)
183private ITaskItem[] _assemblyFiles = Array.Empty<TaskItem>(); 184private ITaskItem[] _assemblyNames = Array.Empty<TaskItem>(); 185private ITaskItem[] _installedAssemblyTables = Array.Empty<TaskItem>(); 186private ITaskItem[] _installedAssemblySubsetTables = Array.Empty<TaskItem>(); 187private ITaskItem[] _fullFrameworkAssemblyTables = Array.Empty<TaskItem>(); 188private ITaskItem[] _resolvedSDKReferences = Array.Empty<TaskItem>(); 204private ITaskItem[] _resolvedFiles = Array.Empty<TaskItem>(); 205private ITaskItem[] _resolvedDependencyFiles = Array.Empty<TaskItem>(); 206private ITaskItem[] _relatedFiles = Array.Empty<TaskItem>(); 207private ITaskItem[] _satelliteFiles = Array.Empty<TaskItem>(); 208private ITaskItem[] _serializationAssemblyFiles = Array.Empty<TaskItem>(); 209private ITaskItem[] _scatterFiles = Array.Empty<TaskItem>(); 210private ITaskItem[] _copyLocalFiles = Array.Empty<TaskItem>(); 211private ITaskItem[] _suggestedRedirects = Array.Empty<TaskItem>();
AssignCulture.cs (1)
44public ITaskItem[] Files { get; set; } = Array.Empty<ITaskItem>();
AssignTargetPath.cs (1)
38public ITaskItem[] Files { get; set; } = Array.Empty<ITaskItem>();
BootstrapperUtil\BootstrapperBuilder.cs (1)
496Array.Sort(array);
Copy.cs (3)
443DestinationFiles = Array.Empty<ITaskItem>(); 444CopiedFiles = Array.Empty<ITaskItem>(); 910DestinationFiles = Array.Empty<ITaskItem>();
CreateItem.cs (1)
59Include = Array.Empty<ITaskItem>();
Exec.cs (2)
180get => _outputs ?? Array.Empty<ITaskItem>(); 190public ITaskItem[] ConsoleOutput => !ConsoleToMSBuild ? Array.Empty<ITaskItem>() : _nonEmptyOutput.ToArray();
FileIO\ReadLinesFromFile.cs (1)
34public ITaskItem[] Lines { get; set; } = Array.Empty<ITaskItem>();
GenerateResource.cs (2)
443return Array.Empty<ITaskItem>(); 455return Array.Empty<ITaskItem>();
GetCompatiblePlatform.cs (1)
47AnnotatedProjects = Array.Empty<ITaskItem>();
GetSDKReferenceFiles.cs (4)
34private ITaskItem[] _resolvedSDKReferences = Array.Empty<ITaskItem>(); 167public ITaskItem[] References { get; private set; } = Array.Empty<ITaskItem>(); 173public ITaskItem[] RedistFiles { get; private set; } = Array.Empty<ITaskItem>(); 179public ITaskItem[] CopyLocalFiles { get; private set; } = Array.Empty<ITaskItem>();
Hash.cs (2)
157Array.Copy(byteBuffer, bytesProcessed, shaBuffer, shaBufferPosition, shaBufferFreeSpace); 166Array.Copy(byteBuffer, bytesProcessed, shaBuffer, shaBufferPosition, byteCount);
ListOperators\FindUnderPath.cs (1)
35public ITaskItem[] Files { get; set; } = Array.Empty<ITaskItem>();
ListOperators\RemoveDuplicates.cs (2)
22public ITaskItem[] Inputs { get; set; } = Array.Empty<ITaskItem>(); 44Filtered = Array.Empty<ITaskItem>();
ManifestUtil\ComImporter.cs (3)
157if (Array.BinarySearch(knownNames, name, StringComparer.OrdinalIgnoreCase) < 0) 176if (!String.IsNullOrEmpty(name) && Array.BinarySearch( 272if (Array.BinarySearch(s_knownSubKeys, subKeyName, StringComparer.OrdinalIgnoreCase) < 0)
ManifestUtil\Manifest.cs (2)
351Array.Sort(_assemblyReferences, comparer); 355Array.Sort(_fileReferences, comparer);
ManifestUtil\ManifestFormatter.cs (1)
60Array.BinarySearch(XPaths.emptyAttributeList, xpath) >= 0)
ManifestUtil\Util.cs (1)
445Array.Sort(outputItems, s_itemComparer);
Move.cs (3)
99DestinationFiles = Array.Empty<ITaskItem>(); 100MovedFiles = Array.Empty<ITaskItem>(); 143DestinationFiles = Array.Empty<ITaskItem>();
RedistList.cs (2)
345Array.Sort(assemblyTables); 573Array.Sort(allowListAssemblyTableInfo);
ResolveSDKReference.cs (3)
86private ITaskItem[] _sdkReferences = Array.Empty<ITaskItem>(); 91private ITaskItem[] _installedSDKs = Array.Empty<ITaskItem>(); 278ResolvedSDKReferences = Array.Empty<ITaskItem>();
SetRidAgnosticValueForProjects.cs (3)
15public ITaskItem[] Projects { get; set; } = Array.Empty<ITaskItem>(); 18public ITaskItem[] UpdatedProjects { get; set; } = Array.Empty<ITaskItem>(); 41int targetFrameworkIndex = Array.IndexOf(targetFrameworksArray, nearestTargetFramework);
src\msbuild\src\Shared\LanguageParser\CSharptokenEnumerator.cs (1)
194if (Array.IndexOf(s_keywordList, identifierOrKeyword) >= 0)
src\msbuild\src\Shared\LanguageParser\StreamMappedString.cs (1)
275Array.Copy(_priorPage, i + 1, _priorPage, i, _charactersRead - i - 1);
src\msbuild\src\Shared\LanguageParser\VisualBasictokenEnumerator.cs (1)
158if (Array.IndexOf(s_keywordList, upper) >= 0)
src\msbuild\src\Shared\TaskParameter.cs (6)
423Array array = (Array)_wrappedParameter; 456Array array = Array.CreateInstance(elementType, length); 506Array array = (Array)_wrappedParameter;
XslTransformation.cs (1)
113? Array.ConvertAll(XmlInputPaths, item => item.ItemSpec != null ? TaskEnvironment.GetAbsolutePath(item.ItemSpec) : (AbsolutePath?)null)
Microsoft.Build.Tasks.Git (4)
GitOperations.cs (1)
268logWarning(Resources.RepositoryHasNoCommit, Array.Empty<object>());
src\sourcelink\src\Common\Utilities\SequenceComparer.cs (2)
41left ??= Array.Empty<T>(); 42right ??= Array.Empty<T>();
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
46parts = Array.Empty<string>();
Microsoft.Build.Utilities.Core (3)
_generated\0\RegexGenerator.g.cs (3)
2679Array.Resize(ref stack, (pos + 0) * 2); 2706Array.Resize(ref stack, (pos + 1) * 2); 2734Array.Resize(ref stack, (pos + 2) * 2);
Microsoft.CodeAnalysis (123)
_generated\0\RegexGenerator.g.cs (3)
980Array.Resize(ref stack, (pos + 0) * 2); 1007Array.Resize(ref stack, (pos + 1) * 2); 1035Array.Resize(ref stack, (pos + 2) * 2);
Binding\AbstractLookupSymbolsInfo.cs (1)
37Array.Sort(_arities);
CodeGen\SequencePointList.cs (1)
33_points = Array.Empty<OffsetAndSpan>();
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
70Array.Sort(caseLabels, CompareIntegralSwitchLabels);
CodeGen\TokenMap.cs (2)
26private object[] _items = Array.Empty<object>(); 76Array.Resize(ref items, Math.Max(8, count * 2));
Collections\BitVector.cs (3)
23private static Word[] s_emptyArray => Array.Empty<Word>(); 100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords); 385if (_bits != null) Array.Clear(_bits, 0, _bits.Length);
CommandLine\CommandLineParser.cs (1)
399return Array.Empty<string>();
CommandLine\TouchedFileLogger.cs (2)
75Array.Sort<string>(temp); 100Array.Sort<string>(temp);
Diagnostic\CommonMessageProvider.cs (1)
82return CreateDiagnostic(code, location, Array.Empty<object>());
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
52_messageArgs = messageArgs ?? Array.Empty<object?>();
Diagnostic\DiagnosticBag.cs (1)
368return Array.Empty<object>();
Diagnostic\DiagnosticInfo.cs (2)
42: this(messageProvider, errorCode, Array.Empty<object>()) 363Array.Copy(_arguments, newArguments, newArguments.Length);
Diagnostic\LocalizableResourceString.cs (1)
31: this(nameOfLocalizableResource, resourceManager, resourceSource, Array.Empty<string>())
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
35private static readonly ParameterInfo[] s_noParameters = Array.Empty<ParameterInfo>();
DiaSymReader\Writer\SymUnmanagedSequencePointsWriter.cs (5)
44Array.Resize(ref _offsets, newLength); 45Array.Resize(ref _startLines, newLength); 46Array.Resize(ref _startColumns, newLength); 47Array.Resize(ref _endLines, newLength); 48Array.Resize(ref _endColumns, newLength);
EncodedStringText.cs (3)
202bytes = new ArraySegment<byte>(Array.Empty<byte>()); 221bytes = new ArraySegment<byte>(Array.Empty<byte>()); 242: new ArraySegment<byte>(Array.Empty<byte>());
InternalUtilities\ArrayExtensions.cs (8)
25Array.Copy(array, start, newArray, 0, length); 34Array.Copy(array, newArray, position); 39Array.Copy(array, position, newArray, position + 1, array.Length - position); 56Array.Copy(array, newArray, position); 61Array.Copy(array, position, newArray, position + items.Length, array.Length - position); 88Array.Copy(array, newArray, position); 93Array.Copy(array, position + length, newArray, position, newArray.Length - position); 102Array.Copy(array, newArray, array.Length);
InternalUtilities\EnumUtilties.cs (1)
35return Array.IndexOf(GetValues<T>(), value) >= 0;
InternalUtilities\StreamExtensions.cs (2)
64return Array.Empty<byte>(); 69Array.Resize(ref buffer, actualLength);
InternalUtilities\WeakList.cs (4)
22_items = Array.Empty<WeakReference<T>>(); 63Array.Copy(_items, 0, newItems, 0, _items.Length); 104Array.Copy(_items, 0, result, 0, firstDead); 208_weakList._items = Array.Empty<WeakReference<T>>();
MetadataReader\MetadataDecoder.cs (5)
1468values = Array.Empty<TypedConstant>(); 1627positionalArgs = Array.Empty<TypedConstant>(); 1628namedArgs = Array.Empty<KeyValuePair<string, TypedConstant>>(); 1674positionalArgs = Array.Empty<TypedConstant>(); 1675namedArgs = Array.Empty<KeyValuePair<String, TypedConstant>>();
PEWriter\CustomDebugInfoWriter.cs (1)
128byte[] result = encoder.ToArray() ?? Array.Empty<byte>();
PEWriter\SigningUtilities.cs (1)
29Array.Reverse(signature);
ReferenceManager\CommonReferenceManager.Binding.cs (3)
618Array.Clear(candidateInputAssemblySymbols, 0, candidateInputAssemblySymbols.Length); 711Array.Clear(candidateInputAssemblySymbols, 0, candidateInputAssemblySymbols.Length); 757Array.Clear(candidateInputAssemblySymbols, 0, candidateInputAssemblySymbols.Length);
SpecialType.cs (1)
141/// Indicates that the type is <see cref="Array"/>.
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (2)
73Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 112Array.Sort(_values, 0, _index, comparer);
src\roslyn\src\Dependencies\Collections\Internal\ICollectionCalls.cs (1)
27public static void CopyTo<TCollection>(ref TCollection collection, Array array, int index)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
47public static void CopyTo<TDictionary>(ref TDictionary dictionary, Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
347void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
146void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
257readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
349void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
687void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
247void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
356readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (12)
19/// <seealso cref="Array.Clear(Array)"/> 24/// <seealso cref="Array.Clear(Array, int, int)"/> 33/// <seealso cref="Array.Copy(Array, Array, int)"/> 52public static void Copy<T>(SegmentedArray<T> sourceArray, Array destinationArray, int length) 74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count); 138public static void Copy<T>(SegmentedArray<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count); 239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (2)
77_items = Array.Empty<T[]>(); 155public void CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 875void ICollection.CopyTo(Array array, int index) 1370void ICollection.CopyTo(Array array, int index) 1578void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (5)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 454void ICollection.CopyTo(Array array, int arrayIndex) 1276return Array.Empty<T>();
StrongName\CryptoBlobParser.cs (1)
342Array.Reverse(data);
Syntax\AbstractWarningStateMap.cs (1)
57int r = Array.BinarySearch(_warningStateMapEntries, new WarningStateMapEntry(position));
Syntax\GreenNode.cs (3)
50private static readonly DiagnosticInfo[] s_noDiagnostics = Array.Empty<DiagnosticInfo>(); 51private static readonly SyntaxAnnotation[] s_noAnnotations = Array.Empty<SyntaxAnnotation>(); 1004Array.Resize(ref errorInfos, length + 1);
Syntax\InternalSyntax\SyntaxDiagnosticInfoList.cs (1)
142Array.Copy(_stack, tmp, _stack.Length);
Syntax\InternalSyntax\SyntaxList.WithManyChildren.cs (1)
58Array.Copy(this.children, 0, array, offset, this.children.Length);
Syntax\InternalSyntax\SyntaxListBuilder.cs (3)
28Array.Clear(_nodes, 0, _nodes.Length); 148Array.Resize(ref _nodes, newSize); 189Array.Copy(_nodes, tmp, this.Count);
Syntax\InternalSyntax\SyntaxListPool.cs (1)
83Array.Copy(_freeList, tmp, _freeList.Length);
Syntax\SyntaxListBuilder.cs (1)
151Array.Copy(_nodes, tmp, _nodes.Length);
Syntax\SyntaxNode.Iterators.cs (4)
148Array.Resize(ref _stack, checked(_stackPtr * 2)); 160Array.Clear(_stack, 0, _stack.Length); 209Array.Resize(ref _stack, checked(_stackPtr * 2)); 218Array.Clear(_stack, 0, _stack.Length);
Syntax\SyntaxNodeOrTokenListBuilder.cs (1)
126Array.Copy(_nodes, tmp, _nodes.Length);
Syntax\SyntaxTokenListBuilder.cs (1)
85Array.Copy(_nodes, tmp, _nodes.Length);
Syntax\SyntaxTriviaListBuilder.cs (1)
124Array.Copy(_nodes, tmp, _nodes.Length);
Text\LargeText.cs (2)
121Array.Resize(ref chunk, charsRead); 170Array.Copy(chunk, chunkStartOffset, destination, destinationIndex, charsToCopy);
Text\LargeTextWriter.cs (2)
107Array.Copy(chars, index, _buffer, _currentUsed, copy); 141Array.Resize(ref _buffer, _currentUsed);
Text\SourceTextStream.cs (1)
145Array.Copy(preambleBytes, 0, buffer, offset, length);
TreeDumper.cs (1)
199var result = ti?.GetDeclaredMethod("get_IsDefault")?.Invoke(o, Array.Empty<object>());
Microsoft.CodeAnalysis.Analyzers (73)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (3)
23private static Word[] s_emptyArray => Array.Empty<Word>(); 100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords); 385if (_bits != null) Array.Clear(_bits, 0, _bits.Length);
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (3)
202bytes = new ArraySegment<byte>(Array.Empty<byte>()); 221bytes = new ArraySegment<byte>(Array.Empty<byte>()); 242: new ArraySegment<byte>(Array.Empty<byte>());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ArrayExtensions.cs (8)
25Array.Copy(array, start, newArray, 0, length); 34Array.Copy(array, newArray, position); 39Array.Copy(array, position, newArray, position + 1, array.Length - position); 56Array.Copy(array, newArray, position); 61Array.Copy(array, position, newArray, position + items.Length, array.Length - position); 88Array.Copy(array, newArray, position); 93Array.Copy(array, position + length, newArray, position, newArray.Length - position); 102Array.Copy(array, newArray, array.Length);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\EnumUtilties.cs (1)
35return Array.IndexOf(GetValues<T>(), value) >= 0;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (2)
64return Array.Empty<byte>(); 69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (2)
73Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 112Array.Sort(_values, 0, _index, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Internal\ICollectionCalls.cs (1)
27public static void CopyTo<TCollection>(ref TCollection collection, Array array, int index)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
47public static void CopyTo<TDictionary>(ref TDictionary dictionary, Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
347void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
146void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
257readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
349void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
687void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
247void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
356readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (10)
24/// <seealso cref="Array.Clear(Array, int, int)"/> 33/// <seealso cref="Array.Copy(Array, Array, int)"/> 52public static void Copy<T>(SegmentedArray<T> sourceArray, Array destinationArray, int length) 74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count); 138public static void Copy<T>(SegmentedArray<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count); 239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (2)
77_items = Array.Empty<T[]>(); 155public void CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 875void ICollection.CopyTo(Array array, int index) 1370void ICollection.CopyTo(Array array, int index) 1578void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (5)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 454void ICollection.CopyTo(Array array, int arrayIndex) 1276return Array.Empty<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
490Array.Clear(characterToLastSeenIndex_inSource, 0, LastSeenIndexLength);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (4)
197Array.Copy(chunk, currentOffset, buffer, index, copyCount); 315Array.Clear(chunk, 0, chunk.Length); 338Array.Clear(chunks[chunkIndex], chunkOffset, chunks[chunkIndex].Length - chunkOffset); 384Array.Copy(buffer, currentIndex, chunk, currentOffset, writeCount);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
58return ValueTask.FromResult(Array.Empty<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
88=> compilation.GetTypeByMetadataName(typeof(Array).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
340var result = Array.BinarySearch([.. declarationList], declaration, comparerWithoutNameCheck);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (2)
31Array.Resize(ref finalAnnotations, originalAnnotations.Length + newAnnotations.Length); 32Array.Copy(originalAnnotations, 0, finalAnnotations, newAnnotations.Length, originalAnnotations.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ArrayExtensions.cs (1)
16=> Array.IndexOf(array, item) >= 0;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (2)
442if (property.Name is nameof(Array.Length) or nameof(Array.LongLength))
Microsoft.CodeAnalysis.AnalyzerUtilities (68)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (3)
23private static Word[] s_emptyArray => Array.Empty<Word>(); 100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords); 385if (_bits != null) Array.Clear(_bits, 0, _bits.Length);
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (3)
202bytes = new ArraySegment<byte>(Array.Empty<byte>()); 221bytes = new ArraySegment<byte>(Array.Empty<byte>()); 242: new ArraySegment<byte>(Array.Empty<byte>());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ArrayExtensions.cs (8)
25Array.Copy(array, start, newArray, 0, length); 34Array.Copy(array, newArray, position); 39Array.Copy(array, position, newArray, position + 1, array.Length - position); 56Array.Copy(array, newArray, position); 61Array.Copy(array, position, newArray, position + items.Length, array.Length - position); 88Array.Copy(array, newArray, position); 93Array.Copy(array, position + length, newArray, position, newArray.Length - position); 102Array.Copy(array, newArray, array.Length);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\EnumUtilties.cs (1)
35return Array.IndexOf(GetValues<T>(), value) >= 0;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (2)
64return Array.Empty<byte>(); 69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (2)
73Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 112Array.Sort(_values, 0, _index, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Internal\ICollectionCalls.cs (1)
27public static void CopyTo<TCollection>(ref TCollection collection, Array array, int index)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
47public static void CopyTo<TDictionary>(ref TDictionary dictionary, Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
347void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
146void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
257readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
349void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
687void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
247void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
356readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (10)
24/// <seealso cref="Array.Clear(Array, int, int)"/> 33/// <seealso cref="Array.Copy(Array, Array, int)"/> 52public static void Copy<T>(SegmentedArray<T> sourceArray, Array destinationArray, int length) 74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count); 138public static void Copy<T>(SegmentedArray<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count); 239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (2)
77_items = Array.Empty<T[]>(); 155public void CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 875void ICollection.CopyTo(Array array, int index) 1370void ICollection.CopyTo(Array array, int index) 1578void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (5)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 454void ICollection.CopyTo(Array array, int arrayIndex) 1276return Array.Empty<T>();
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAbstractValue.ValuePool.cs (1)
30Array.Sort(values);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
490Array.Clear(characterToLastSeenIndex_inSource, 0, LastSeenIndexLength);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (4)
197Array.Copy(chunk, currentOffset, buffer, index, copyCount); 315Array.Clear(chunk, 0, chunk.Length); 338Array.Clear(chunks[chunkIndex], chunkOffset, chunks[chunkIndex].Length - chunkOffset); 384Array.Copy(buffer, currentIndex, chunk, currentOffset, writeCount);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
58return ValueTask.FromResult(Array.Empty<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
88=> compilation.GetTypeByMetadataName(typeof(Array).FullName!);
Microsoft.CodeAnalysis.CodeStyle (68)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (3)
23private static Word[] s_emptyArray => Array.Empty<Word>(); 100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords); 385if (_bits != null) Array.Clear(_bits, 0, _bits.Length);
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
35private static readonly ParameterInfo[] s_noParameters = Array.Empty<ParameterInfo>();
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (3)
202bytes = new ArraySegment<byte>(Array.Empty<byte>()); 221bytes = new ArraySegment<byte>(Array.Empty<byte>()); 242: new ArraySegment<byte>(Array.Empty<byte>());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ArrayExtensions.cs (8)
25Array.Copy(array, start, newArray, 0, length); 34Array.Copy(array, newArray, position); 39Array.Copy(array, position, newArray, position + 1, array.Length - position); 56Array.Copy(array, newArray, position); 61Array.Copy(array, position, newArray, position + items.Length, array.Length - position); 88Array.Copy(array, newArray, position); 93Array.Copy(array, position + length, newArray, position, newArray.Length - position); 102Array.Copy(array, newArray, array.Length);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\EnumUtilties.cs (1)
35return Array.IndexOf(GetValues<T>(), value) >= 0;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (2)
64return Array.Empty<byte>(); 69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (2)
73Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 112Array.Sort(_values, 0, _index, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Internal\ICollectionCalls.cs (1)
27public static void CopyTo<TCollection>(ref TCollection collection, Array array, int index)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
47public static void CopyTo<TDictionary>(ref TDictionary dictionary, Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
347void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
146void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
257readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
349void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
687void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
247void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
356readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (10)
24/// <seealso cref="Array.Clear(Array, int, int)"/> 33/// <seealso cref="Array.Copy(Array, Array, int)"/> 52public static void Copy<T>(SegmentedArray<T> sourceArray, Array destinationArray, int length) 74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count); 138public static void Copy<T>(SegmentedArray<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count); 239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (2)
77_items = Array.Empty<T[]>(); 155public void CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 875void ICollection.CopyTo(Array array, int index) 1370void ICollection.CopyTo(Array array, int index) 1578void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (5)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 454void ICollection.CopyTo(Array array, int arrayIndex) 1276return Array.Empty<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
490Array.Clear(characterToLastSeenIndex_inSource, 0, LastSeenIndexLength);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (4)
197Array.Copy(chunk, currentOffset, buffer, index, copyCount); 315Array.Clear(chunk, 0, chunk.Length); 338Array.Clear(chunks[chunkIndex], chunkOffset, chunks[chunkIndex].Length - chunkOffset); 384Array.Copy(buffer, currentIndex, chunk, currentOffset, writeCount);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
58return ValueTask.FromResult(Array.Empty<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
88=> compilation.GetTypeByMetadataName(typeof(Array).FullName!);
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
340var result = Array.BinarySearch([.. declarationList], declaration, comparerWithoutNameCheck);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (2)
31Array.Resize(ref finalAnnotations, originalAnnotations.Length + newAnnotations.Length); 32Array.Copy(originalAnnotations, 0, finalAnnotations, newAnnotations.Length, originalAnnotations.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ArrayExtensions.cs (1)
16=> Array.IndexOf(array, item) >= 0;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (2)
442if (property.Name is nameof(Array.Length) or nameof(Array.LongLength))
Microsoft.CodeAnalysis.CSharp (31)
Binder\Binder_QueryErrors.cs (1)
49new DiagnosticInfoWithSymbols(ErrorCode.ERR_BadDynamicQuery, Array.Empty<object>(), symbols),
Compilation\CSharpCompilation.cs (1)
2213args: Array.Empty<object>(),
Compilation\CSharpCompilerDiagnosticAnalyzer.cs (1)
23var errorCodes = Enum.GetValues(typeof(ErrorCode));
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (3)
167return builder == null ? Array.Empty<XNode>() : builder.ToArrayAndFree(); 375return Array.Empty<XNode>(); 417return Array.Empty<XNode>();
Errors\CSDiagnosticInfo.cs (1)
24: this(code, Array.Empty<object>(), ImmutableArray<Symbol>.Empty, ImmutableArray<Location>.Empty)
Errors\SyntaxDiagnosticInfo.cs (1)
40: this(offset, width, code, Array.Empty<object>())
Generated\BoundNodes.xml.Generated.cs (5)
15653new TreeDumperNode("boundDimensionsOpt", null, node.BoundDimensionsOpt.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.BoundDimensionsOpt select Visit(x, null)), 16260new TreeDumperNode("argumentsOpt", null, node.ArgumentsOpt.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.ArgumentsOpt select Visit(x, null)), 16307public override TreeDumperNode VisitYieldBreakStatement(BoundYieldBreakStatement node, object? arg) => new TreeDumperNode("yieldBreakStatement", null, Array.Empty<TreeDumperNode>() 17494new TreeDumperNode("deconstruction", null, node.Deconstruction.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.Deconstruction select Visit(x, null)), 17495new TreeDumperNode("properties", null, node.Properties.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.Properties select Visit(x, null)),
Lowering\SynthesizedSubmissionFields.cs (1)
52return _previousSubmissionFieldMap == null ? Array.Empty<FieldSymbol>() : (IEnumerable<FieldSymbol>)_previousSubmissionFieldMap.Values;
Parser\Lexer.cs (2)
1287Array.Copy(_identBuffer, tmp, _identBuffer.Length); 3099this.AddError(error.Value, errorArgs ?? Array.Empty<object>());
Parser\SyntaxParser.cs (7)
97Array.Clear(blendedTokens, 0, blendedTokens.Length); 410Array.Copy(_blendedTokens, shiftOffset, _blendedTokens, 0, shiftCount); 420Array.Resize(ref _blendedTokens, _blendedTokens.Length * 2); 437Array.Copy(_lexedTokens, shiftOffset, _lexedTokens, 0, shiftCount); 448Array.Resize(ref _lexedTokens, _lexedTokens.Length * 2); 460Array.Clear(lexedTokens, 0, _maxWrittenLexedTokenIndex + 1); 751return AddError(node, code, Array.Empty<object>());
Symbols\Source\IndexedTypeParameterSymbol.cs (2)
29private static TypeParameterSymbol[] s_parameterPool = Array.Empty<TypeParameterSymbol>(); 64Array.Copy(initialPool, newPool, initialPool.Length);
Symbols\Source\SourceNamespaceSymbol.cs (2)
303Array.Clear(memberOfArity, 0, memberOfArity.Length); 313Array.Resize(ref memberOfArity, arity + 1);
Symbols\Synthesized\RefKindVector.cs (1)
139var bitVector = BitVector.FromWords(firstWord.Value, otherWords?.ToArrayAndFree() ?? Array.Empty<ulong>(), capacity * BitsPerRefKind);
Syntax\CSharpSyntaxTree.cs (1)
678return (map.Entries.Length == 1) ? Array.Empty<LineMapping>() : map.GetLineMappings(GetText(cancellationToken).Lines);
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
167Array.Copy(_stack, tmp, _stack.Length);
Utilities\ValueSetFactory.NumericValueSet.cs (1)
300Array.Sort(values);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
43nameof(Array),
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
1096const string EmptyName = nameof(Array.Empty);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
84var arrayLengthProperty = TryGetNoArgInt32Property(arrayType, nameof(Array.Length));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
155Identifier(nameof(Array.Empty)),
Microsoft.CodeAnalysis.CSharp.Features (4)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
43nameof(Array),
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
1096const string EmptyName = nameof(Array.Empty);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
84var arrayLengthProperty = TryGetNoArgInt32Property(arrayType, nameof(Array.Length));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
155Identifier(nameof(Array.Empty)),
Microsoft.CodeAnalysis.Extensions.Package (44)
Compilation\CompilationExtensions.cs (1)
88=> compilation.GetTypeByMetadataName(typeof(Array).FullName!);
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (2)
73Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 112Array.Sort(_values, 0, _index, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Internal\ICollectionCalls.cs (1)
27public static void CopyTo<TCollection>(ref TCollection collection, Array array, int index)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
47public static void CopyTo<TDictionary>(ref TDictionary dictionary, Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
347void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
146void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
257readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
349void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
687void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
247void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
356readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (10)
24/// <seealso cref="Array.Clear(Array, int, int)"/> 33/// <seealso cref="Array.Copy(Array, Array, int)"/> 52public static void Copy<T>(SegmentedArray<T> sourceArray, Array destinationArray, int length) 74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count); 138public static void Copy<T>(SegmentedArray<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count); 239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (2)
77_items = Array.Empty<T[]>(); 155public void CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 875void ICollection.CopyTo(Array array, int index) 1370void ICollection.CopyTo(Array array, int index) 1578void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (5)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 454void ICollection.CopyTo(Array array, int arrayIndex) 1276return Array.Empty<T>();
Microsoft.CodeAnalysis.Features (6)
Common\AbstractProjectExtensionProvider.cs (1)
106Array.IndexOf(extensionInfo.DocumentExtensions, PathUtilities.GetExtension(document.FilePath)) < 0)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
34private const string Length = nameof(Array.Length);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
72if (memberAccessName is not nameof(Array.Length) and not nameof(IList.Count))
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
37.WithFilterCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, Array.Empty<char>()));
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
128var refIndex = Array.LastIndexOf(pathParts, "ref");
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
35private static readonly ParameterInfo[] s_noParameters = Array.Empty<ParameterInfo>();
Microsoft.CodeAnalysis.Razor.Compiler (14)
Language\Components\ComponentGenericTypePass.cs (1)
488return Array.Empty<string>();
Language\DocumentationDescriptor.SimpleDescriptor.cs (1)
12public override object?[] Args => Array.Empty<object>();
Language\Intermediate\HtmlAttributeIntermediateNode.cs (1)
42formatter.WriteProperty(nameof(AttributeNameExpression), string.Join(string.Empty, AttributeNameExpression?.FindDescendantNodes<IntermediateToken>().Select(n => n.Content) ?? Array.Empty<string>()));
Language\Legacy\HtmlMarkupParser.cs (1)
106return SyntaxFactory.RazorDocument(markup, SyntaxFactory.Token(SyntaxKind.EndOfFile, "", Array.Empty<RazorDiagnostic>()));
Language\Legacy\LanguageCharacteristics.cs (1)
90var left = CreateToken(token.Content.Substring(0, splitAt), leftType, Array.Empty<RazorDiagnostic>());
Language\Legacy\LegacySyntaxNodeExtensions.ChildSyntaxListReversedEnumeratorStack.cs (1)
48Array.Resize(ref _stack, _stack.Length * 2);
Language\Legacy\LegacySyntaxNodeExtensions.ChildSyntaxListReversedEnumeratorStack.Policy.cs (1)
29Array.Clear(stack, 0, stack.Length);
Language\Legacy\Tokenizer.cs (1)
220var errors = CurrentErrors.Count == 0 ? Array.Empty<RazorDiagnostic>() : new RazorDiagnostic[CurrentErrors.Count];
Language\Syntax\InternalSyntax\SyntaxList.cs (1)
336Array.Copy(children, 0, array, offset, children.Length);
Language\Syntax\InternalSyntax\SyntaxListBuilder.cs (2)
151Array.Resize(ref _nodes, newSize); 192Array.Copy(_nodes, tmp, Count);
Language\Syntax\InternalSyntax\SyntaxListPool.cs (1)
71Array.Copy(_freeList, tmp, _freeList.Length);
Language\Syntax\SyntaxNode.Iterators.cs (2)
88Array.Clear(stack, 0, stack.Length); 158Array.Resize(ref _stack, checked(_stackPtr * 2));
Microsoft.CodeAnalysis.ResxSourceGenerator (70)
AbstractResxGenerator.cs (3)
65return Array.Empty<ResourceInformation>(); 73return Array.Empty<ResourceInformation>(); 164var noWarn = Array.Empty<string>();
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (3)
23private static Word[] s_emptyArray => Array.Empty<Word>(); 100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords); 385if (_bits != null) Array.Clear(_bits, 0, _bits.Length);
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (3)
202bytes = new ArraySegment<byte>(Array.Empty<byte>()); 221bytes = new ArraySegment<byte>(Array.Empty<byte>()); 242: new ArraySegment<byte>(Array.Empty<byte>());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ArrayExtensions.cs (8)
25Array.Copy(array, start, newArray, 0, length); 34Array.Copy(array, newArray, position); 39Array.Copy(array, position, newArray, position + 1, array.Length - position); 56Array.Copy(array, newArray, position); 61Array.Copy(array, position, newArray, position + items.Length, array.Length - position); 88Array.Copy(array, newArray, position); 93Array.Copy(array, position + length, newArray, position, newArray.Length - position); 102Array.Copy(array, newArray, array.Length);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\EnumUtilties.cs (1)
35return Array.IndexOf(GetValues<T>(), value) >= 0;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (2)
64return Array.Empty<byte>(); 69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (2)
73Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 112Array.Sort(_values, 0, _index, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Internal\ICollectionCalls.cs (1)
27public static void CopyTo<TCollection>(ref TCollection collection, Array array, int index)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
47public static void CopyTo<TDictionary>(ref TDictionary dictionary, Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
347void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
146void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
257readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
349void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
687void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
247void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
356readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (10)
24/// <seealso cref="Array.Clear(Array, int, int)"/> 33/// <seealso cref="Array.Copy(Array, Array, int)"/> 52public static void Copy<T>(SegmentedArray<T> sourceArray, Array destinationArray, int length) 74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count); 138public static void Copy<T>(SegmentedArray<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count); 239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (2)
77_items = Array.Empty<T[]>(); 155public void CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 875void ICollection.CopyTo(Array array, int index) 1370void ICollection.CopyTo(Array array, int index) 1578void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (5)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 454void ICollection.CopyTo(Array array, int arrayIndex) 1276return Array.Empty<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
490Array.Clear(characterToLastSeenIndex_inSource, 0, LastSeenIndexLength);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (4)
197Array.Copy(chunk, currentOffset, buffer, index, copyCount); 315Array.Clear(chunk, 0, chunk.Length); 338Array.Clear(chunks[chunkIndex], chunkOffset, chunks[chunkIndex].Length - chunkOffset); 384Array.Copy(buffer, currentIndex, chunk, currentOffset, writeCount);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
58return ValueTask.FromResult(Array.Empty<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
88=> compilation.GetTypeByMetadataName(typeof(Array).FullName!);
Microsoft.CodeAnalysis.Scripting (17)
Hosting\CommandLine\CommandLineHelpers.cs (2)
22return options.WithReferences(Array.Empty<MetadataReference>()).WithImports(Array.Empty<string>());
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (8)
122FormatArray(result, (Array)obj); 437Array array; 438if ((array = value as Array) != null) // TODO (tomat): n-dim arrays 527object key = type.GetDeclaredProperty("Key").GetValue(obj, Array.Empty<object>()); 528object value = type.GetDeclaredProperty("Value").GetValue(obj, Array.Empty<object>()); 540if (collection is Array array) 559private void FormatArray(Builder result, Array array) 642private void FormatMultidimensionalArrayElements(Builder result, Array array, bool inline)
Hosting\ObjectFormatter\CommonTypeNameFormatter.cs (1)
131public virtual string FormatArrayTypeName(Type arrayType, Array arrayOpt, CommonTypeNameFormatterOptions options)
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (2)
256: method.Invoke(obj, Array.Empty<object>()); 265return property.GetValue(obj, Array.Empty<object>());
ScriptExecutionState.cs (2)
49Array.Copy(_submissionStates, copy, SubmissionStateCount); 161Array.Resize(ref _submissionStates, Math.Max(SubmissionStateCount, _submissionStates.Length * 2));
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (2)
264return Array.Empty<byte>(); 280return Array.Empty<byte>();
Microsoft.CodeAnalysis.VisualBasic (6)
Generated\BoundNodes.xml.Generated.vb (3)
13846Return New TreeDumperNode("initializer", Nothing, Array.Empty(Of TreeDumperNode)()) 14512Return New TreeDumperNode("stopStatement", Nothing, Array.Empty(Of TreeDumperNode)()) 14516Return New TreeDumperNode("endStatement", Nothing, Array.Empty(Of TreeDumperNode)())
Parser\ParseScan.vb (1)
304Return ResyncAt(ScannerState.VB, Array.Empty(Of SyntaxKind))
Symbols\IndexedTypeParameterSymbol.vb (2)
29Private Shared s_parameterPool As TypeParameterSymbol() = Array.Empty(Of TypeParameterSymbol)() 51Array.Copy(initialPool, newPool, initialPool.Length)
Microsoft.CodeAnalysis.Workspaces (82)
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (1)
32SimpleMutableIntervalTree.Create(new IntervalIntrospector(), Array.Empty<TextChange>());
Differencing\LongestCommonSubsequence.cs (4)
219Array.Clear(_buffer, _start, dstCopyStart); 220Array.Copy(other._buffer, other._start + srcCopyStart, _buffer, _start + dstCopyStart, copyLength); 221Array.Clear(_buffer, _start + dstCopyStart + copyLength, _length - dstCopyStart - copyLength); 225=> Array.Clear(_buffer, _start, _length);
Shared\Extensions\SourceTextExtensions.cs (1)
355Array.Copy(chunk, chunkStartOffset, buffer, index, charsToCopy);
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (3)
23private static Word[] s_emptyArray => Array.Empty<Word>(); 100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords); 385if (_bits != null) Array.Clear(_bits, 0, _bits.Length);
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (3)
202bytes = new ArraySegment<byte>(Array.Empty<byte>()); 221bytes = new ArraySegment<byte>(Array.Empty<byte>()); 242: new ArraySegment<byte>(Array.Empty<byte>());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ArrayExtensions.cs (8)
25Array.Copy(array, start, newArray, 0, length); 34Array.Copy(array, newArray, position); 39Array.Copy(array, position, newArray, position + 1, array.Length - position); 56Array.Copy(array, newArray, position); 61Array.Copy(array, position, newArray, position + items.Length, array.Length - position); 88Array.Copy(array, newArray, position); 93Array.Copy(array, position + length, newArray, position, newArray.Length - position); 102Array.Copy(array, newArray, array.Length);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\EnumUtilties.cs (1)
35return Array.IndexOf(GetValues<T>(), value) >= 0;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (2)
64return Array.Empty<byte>(); 69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (2)
73Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 112Array.Sort(_values, 0, _index, comparer);
src\roslyn\src\Dependencies\Collections\Internal\ICollectionCalls.cs (1)
27public static void CopyTo<TCollection>(ref TCollection collection, Array array, int index)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
47public static void CopyTo<TDictionary>(ref TDictionary dictionary, Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
347void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
146void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
257readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
349void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
687void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
247void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
356readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (12)
19/// <seealso cref="Array.Clear(Array)"/> 24/// <seealso cref="Array.Clear(Array, int, int)"/> 33/// <seealso cref="Array.Copy(Array, Array, int)"/> 52public static void Copy<T>(SegmentedArray<T> sourceArray, Array destinationArray, int length) 74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count); 138public static void Copy<T>(SegmentedArray<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count); 239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (2)
77_items = Array.Empty<T[]>(); 155public void CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 875void ICollection.CopyTo(Array array, int index) 1370void ICollection.CopyTo(Array array, int index) 1578void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (5)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 454void ICollection.CopyTo(Array array, int arrayIndex) 1276return Array.Empty<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
490Array.Clear(characterToLastSeenIndex_inSource, 0, LastSeenIndexLength);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (4)
197Array.Copy(chunk, currentOffset, buffer, index, copyCount); 315Array.Clear(chunk, 0, chunk.Length); 338Array.Clear(chunks[chunkIndex], chunkOffset, chunks[chunkIndex].Length - chunkOffset); 384Array.Copy(buffer, currentIndex, chunk, currentOffset, writeCount);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
58return ValueTask.FromResult(Array.Empty<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
88=> compilation.GetTypeByMetadataName(typeof(Array).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
340var result = Array.BinarySearch([.. declarationList], declaration, comparerWithoutNameCheck);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (2)
31Array.Resize(ref finalAnnotations, originalAnnotations.Length + newAnnotations.Length); 32Array.Copy(originalAnnotations, 0, finalAnnotations, newAnnotations.Length, originalAnnotations.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ArrayExtensions.cs (1)
16=> Array.IndexOf(array, item) >= 0;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (2)
442if (property.Name is nameof(Array.Length) or nameof(Array.LongLength))
Utilities\Deque.cs (3)
105Array.Copy(_array, _head, newArray, 0, _count); 110Array.Copy(_array, _head, newArray, 0, firstPart); 111Array.Copy(_array, 0, newArray, firstPart, _count - firstPart);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
256: Array.Empty<MSB.Framework.ILogger>();
Microsoft.CSharp (30)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (2)
36IEnumerator<CSharpArgumentInfo> arginfosEnum = (arginfos ?? Array.Empty<CSharpArgumentInfo>()).GetEnumerator(); 335internal static T[] ToArray<T>(IEnumerable<T> source) => source == null ? Array.Empty<T>() : source.ToArray();
Microsoft\CSharp\RuntimeBinder\ComInterop\CollectionExtensions.cs (1)
14Array.Copy(array, 1, result, 0, result.Length);
Microsoft\CSharp\RuntimeBinder\ComInterop\ComObject.cs (2)
103return Array.Empty<string>(); 109return Array.Empty<KeyValuePair<string, object>>();
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchComObject.cs (1)
298Array.Empty<object>(),
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchMetaObject.cs (2)
104return BindComInvoke(DynamicMetaObject.EmptyMetaObjects, method, new CallInfo(0), Array.Empty<bool>()); 111return BindComInvoke(DynamicMetaObject.EmptyMetaObjects, method, new CallInfo(0), Array.Empty<bool>());
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (1)
477return Array.Empty<KeyValuePair<string, object>>();
Microsoft\CSharp\RuntimeBinder\Errors\ErrorHandling.cs (1)
65Array.Copy(prgpsz, prgpszNew, cpsz);
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (2)
182Array.Copy(args, 1, newArgs, 0, args.Length - 1); 1281Debug.Assert(Array.TrueForAll(arguments, a => a.Type != null));
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
1114Debug.Assert(!Array.Exists(@params.Items, p => p is ArgumentListType)); // We should never have picked a varargs method to bind to.
Microsoft\CSharp\RuntimeBinder\Semantics\SubstitutionContext.cs (2)
17ClassTypes = typeArgsCls?.Items ?? Array.Empty<CType>(); 19MethodTypes = typeArgsMeth?.Items ?? Array.Empty<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodOrPropertySymbol.cs (4)
66_optionalParameterIndex = _defaultParameterIndex = _marshalAsIndex = Array.Empty<bool>(); 67_defaultParameters = Array.Empty<ConstVal>(); 68_defaultParameterConstValTypes = Array.Empty<CType>(); 69_marshalAsBuffer = Array.Empty<UnmanagedType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
149new PredefinedTypeInfo(PredefinedType.PT_ARRAY, typeof(Array), "System.Array"),
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (6)
84public static readonly TypeArray Empty = new TypeArray(Array.Empty<CType>()); 102Debug.Assert(Array.TrueForAll(Items, item => item != null)); 105public void CopyItems(int i, int c, CType[] dest) => Array.Copy(Items, i, dest, 0, c); 121Array.ConstrainedCopy(types, offset, newTypes, 0, ctype); 158Array.Copy(prgtype1, combined, prgtype1.Length); 159Array.Copy(prgtype2, 0, combined, prgtype1.Length, prgtype2.Length);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
222Array.Copy(srcs, dsts, i);
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
834return Array.Empty<CType>();
Microsoft\CSharp\RuntimeBinder\Syntax\NameTable.cs (1)
67Debug.Assert(Array.TrueForAll(_entries, e => e?.Name.Text != name.Text));
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\ComEventsMethod.cs (1)
207newWrappers = Array.FindAll(wrappers, w => !condition(w.Delegate));
Microsoft.Data.Analysis (2)
TextFieldParser.cs (2)
650Array.Copy(_buffer, _position, tempArray, 0, bufferLength - _position); 671Array.Copy(_buffer, tempArray, _buffer.Length);
Microsoft.Data.Analysis.Tests (2)
src\Microsoft.Data.Analysis\TextFieldParser.cs (2)
650Array.Copy(_buffer, _position, tempArray, 0, bufferLength - _position); 671Array.Copy(_buffer, tempArray, _buffer.Length);
Microsoft.Diagnostics.DataContractReader (8)
_generated\0\ContractDescriptorContext.ContractDescriptor.g.cs (8)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("Baseline", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("Contracts", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("Types", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("Globals", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("SubDescriptors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("Extras", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.Diagnostics.DataContractReader.Contracts (5)
Contracts\GC\GC_1.cs (1)
133return Array.Empty<TargetNUInt>();
Contracts\RuntimeTypeSystem_1.cs (1)
369Instantiation = System.Array.Empty<TypeHandle>();
Contracts\Thread_1.cs (3)
275return Array.Empty<byte>(); 293return Array.Empty<byte>(); 303return Array.Empty<byte>();
Microsoft.Diagnostics.DataContractReader.Legacy (4)
ClrDataFrame.cs (1)
64Array.Copy(context, 0, contextBuf, 0, context.Length);
DebugExtensions.cs (1)
79Array.Clear(ring);
SOSDacImpl.cs (1)
742byte[] buckets = Array.Empty<byte>();
TypeNameBuilder.cs (1)
225AppendTypeCore(ref tnb, typeSystemContract.GetTypeParam(typeHandle), Array.Empty<Contracts.TypeHandle>(), format & ~TypeNameFormat.FormatAssembly);
Microsoft.Diagnostics.NETCore.Client (12)
DiagnosticsClient\EventPipeSession.cs (1)
157Array.Reverse(payload);
DiagnosticsIpc\IpcAdvertise.cs (7)
60Array.Copy(buffer, magic, Magic_V1.Length); 69Array.Copy(buffer, index, cookieBuffer, 0, 16); 87Array.Copy(Magic_V1, buffer, Magic_V1.Length); 91Array.Copy(cookieBuffer, 0, buffer, index, cookieBuffer.Length); 97Array.Reverse(processIdBuffer); 99Array.Copy(processIdBuffer, 0, buffer, index, sizeof(ulong)); 103Array.Copy(BitConverter.GetBytes(future), 0, buffer, index, sizeof(short));
DiagnosticsIpc\IpcMessage.cs (1)
81Payload = payload ?? Array.Empty<byte>();
DiagnosticsIpc\ProcessInfo.cs (1)
90Array.Copy(payload, index, cookieBuffer, 0, GuidSizeInBytes);
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (1)
102networkStream.Socket.Send(Array.Empty<byte>(), 0, System.Net.Sockets.SocketFlags.None);
ReversedServer\ReversedDiagnosticsServer.cs (1)
389socket.Send(Array.Empty<byte>(), 0, SocketFlags.None);
Microsoft.DiaSymReader (5)
Writer\SymUnmanagedSequencePointsWriter.cs (5)
42Array.Resize(ref _offsets, newLength); 43Array.Resize(ref _startLines, newLength); 44Array.Resize(ref _startColumns, newLength); 45Array.Resize(ref _endLines, newLength); 46Array.Resize(ref _endColumns, newLength);
Microsoft.DotNet.Build.Tasks.Installers (10)
src\GenerateGuidFromName.cs (3)
33Array.Copy(namespaceBytes, streamToHash, namespaceBytes.Length); 34Array.Copy(nameBytes, 0, streamToHash, namespaceBytes.Length, nameBytes.Length); 40Array.Copy(hashResult, res, res.Length);
src\RpmHeader.cs (6)
158int nullTerminatorIndex = Array.IndexOf(store, (byte)0, offset); 172int nullTerminatorIndex = Array.IndexOf(store, (byte)0, offset); 185Array contents = Array.CreateInstance(entry.Type switch 306Array contents = (Array)entry.Value;
src\RpmLead.cs (1)
40lead.Name = Encoding.UTF8.GetString(name, 0, Array.IndexOf<byte>(name, 0));
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\FinalizeInsertionVsixFile.cs (1)
130writer.Write(json.ToString(Formatting.None, Array.Empty<JsonConverter>()));
Microsoft.DotNet.Build.Tasks.Workloads (1)
Utils.cs (1)
155Array.Resize(ref hash, 16);
Microsoft.DotNet.Cli.Definitions (5)
_generated\0\GlobalJsonSerializerContext.GlobalJsonModel.g.cs (2)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Test.TestCommandDefinition.GlobalJsonModel).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 70AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Test.TestCommandDefinition.GlobalJsonModel).GetProperty("Test", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.Commands.Test.TestCommandDefinition.GlobalJsonTestNode), global::System.Array.Empty<global::System.Type>(), null),
_generated\1\GlobalJsonSerializerContext.GlobalJsonTestNode.g.cs (2)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Test.TestCommandDefinition.GlobalJsonTestNode).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 70AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Test.TestCommandDefinition.GlobalJsonTestNode).GetProperty("RunnerName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Help\HelpContext.cs (1)
21private static readonly Lazy<ParseResult> EmptyParseResult = new(() => new RootCommand().Parse(Array.Empty<string>()));
Microsoft.DotNet.Cli.Utils (3)
Uuid.cs (3)
28Array.Copy(namespaceBytes, streamToHash, namespaceBytes.Length); 29Array.Copy(nameBytes, 0, streamToHash, namespaceBytes.Length, nameBytes.Length); 36Array.Copy(hashResult, res, res.Length);
Microsoft.DotNet.HotReload.Utils.Generator (4)
Script\Json\Parsing.cs (2)
49changes = Array.Empty<Plan.Change<string,string>>(); 53IEnumerable<string> unknowns = Array.Empty<string>();
Script\ParsedScript.cs (2)
13public static ParsedScript Empty => new (null, Array.Empty<Plan.Change<string,string>>(), Array.Empty<string>());
Microsoft.DotNet.HotReload.Utils.Generator.Tasks (2)
HotReloadDeltaGeneratorComputeScriptOutputs.cs (2)
43DeltaOutputs = Array.Empty<ITaskItem>(); 44DeltaSources = Array.Empty<ITaskItem>();
Microsoft.DotNet.HotReload.WebAssembly.Browser (10)
_generated\2\WebAssemblyHotReloadJsonSerializerContext.Delta.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.WebAssembly.Browser.WebAssemblyHotReload.Delta).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.WebAssembly.Browser.WebAssemblyHotReload.Delta).GetProperty("ModuleId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.WebAssembly.Browser.WebAssemblyHotReload.Delta).GetProperty("MetadataDelta", InstanceMemberBindingFlags, null, typeof(byte[]), global::System.Array.Empty<global::System.Type>(), null), 112AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.WebAssembly.Browser.WebAssemblyHotReload.Delta).GetProperty("ILDelta", InstanceMemberBindingFlags, null, typeof(byte[]), global::System.Array.Empty<global::System.Type>(), null), 134AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.WebAssembly.Browser.WebAssemblyHotReload.Delta).GetProperty("PdbDelta", InstanceMemberBindingFlags, null, typeof(byte[]), global::System.Array.Empty<global::System.Type>(), null), 156AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.WebAssembly.Browser.WebAssemblyHotReload.Delta).GetProperty("UpdatedTypes", InstanceMemberBindingFlags, null, typeof(int[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\4\WebAssemblyHotReloadJsonSerializerContext.LogEntry.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.WebAssembly.Browser.WebAssemblyHotReload.LogEntry).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.WebAssembly.Browser.WebAssemblyHotReload.LogEntry).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.HotReload.WebAssembly.Browser.WebAssemblyHotReload.LogEntry).GetProperty("Severity", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (1)
359var dependency = Array.Find(assemblies, a =>
Microsoft.DotNet.InternalAbstractions (1)
DirectoryPath.cs (1)
28Array.Copy(paths, 0, insertValueInFront, 1, paths.Length);
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetVersionUpdater.cs (2)
269foreach (var packageType in packageTypesElement.Elements(XName.Get("packageType", nuspecXmlns)) ?? Array.Empty<XElement>()) 293Descendants(XName.Get("dependency", package.NuspecXmlns)) ?? Array.Empty<XElement>();
Microsoft.DotNet.ProjectTools (15)
_generated\1\LaunchProfileJsonSerializerContext.ExecutableLaunchProfile.g.cs (7)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.ExecutableLaunchProfile).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.ExecutableLaunchProfile).GetProperty("ExecutablePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 91AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.ExecutableLaunchProfile).GetProperty("WorkingDirectory", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 111AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.LaunchProfile).GetProperty("LaunchProfileName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 131AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.LaunchProfile).GetProperty("DotNetRunMessages", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 151AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.LaunchProfile).GetProperty("CommandLineArgs", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 171AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.LaunchProfile).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\2\LaunchProfileJsonSerializerContext.ProjectLaunchProfile.g.cs (8)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.ProjectLaunchProfile).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.ProjectLaunchProfile).GetProperty("LaunchBrowser", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.ProjectLaunchProfile).GetProperty("LaunchUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.ProjectLaunchProfile).GetProperty("ApplicationUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.LaunchProfile).GetProperty("LaunchProfileName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.LaunchProfile).GetProperty("DotNetRunMessages", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.LaunchProfile).GetProperty("CommandLineArgs", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.ProjectTools.LaunchProfile).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.DotNet.SharedFramework.Sdk (2)
src\GenerateSharedFrameworkDepsFile.cs (2)
91Array.Empty<Dependency>(), 96IEnumerable<RuntimeFallbacks> runtimeFallbackGraph = Array.Empty<RuntimeFallbacks>();
Microsoft.DotNet.StrongName (5)
Signing.cs (3)
216Array.Reverse(signature); 366Array.Copy(hash, hash.Length - 8, token, 0, 8); 367Array.Reverse(token); // Reverse the bytes to match the expected format
Utils.cs (1)
370Array.Reverse(data);
Verification.cs (1)
125Array.Reverse(reversedSignature);
Microsoft.DotNet.TemplateLocator (6)
_generated\8\InstallStateJsonSerializerContext.InstallStateContents.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("UseWorkloadSets", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("Manifests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("WorkloadVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (2)
131.Concat(_manifestRoots ?? Array.Empty<string>()).ToArray(); 135_manifestRoots ??= Array.Empty<string>();
Microsoft.DotNet.XliffTasks (1)
Model\TranslatableDocument.cs (1)
19public IReadOnlyList<TranslatableNode> Nodes { get; private set; } = Array.Empty<TranslatableNode>();
Microsoft.Extensions.AI (11)
ChatCompletion\DistributedCachingChatClient.cs (2)
139object[] clientValues = _cacheKeyAdditionalValues ?? Array.Empty<object>(); 155Array.Clear(arr, 0, length);
ChatCompletion\FunctionInvocationContext.cs (1)
51} = Array.Empty<ChatMessage>();
Embeddings\DistributedCachingEmbeddingGenerator.cs (2)
115object[] clientValues = _cacheKeyAdditionalValues ?? Array.Empty<object>(); 129Array.Clear(arr, 0, length);
src\LegacySupport\StringSyntaxAttribute\StringSyntaxAttribute.cs (1)
21Arguments = Array.Empty<object?>();
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
ToolReduction\EmbeddingToolReductionStrategy.cs (2)
217Array.Sort(toolRankingInfoArray, index: requiredTools.Length, length: optionalTools.Length, AIToolRankingInfo.CompareByDescendingSimilarityScore); 220Array.Sort(toolRankingInfoArray, index: 0, length: topTools.Length, AIToolRankingInfo.CompareByOriginalIndex);
Microsoft.Extensions.AI.Abstractions (4)
Embeddings\EmbeddingGeneratorExtensions.cs (1)
190return Array.Empty<(TInput, TEmbedding)>();
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
Microsoft.Extensions.AI.Abstractions.Tests (3)
ChatCompletion\ChatMessageTests.cs (1)
76message = new ChatMessage(ChatRole.User, Array.Empty<AIContent>());
Embeddings\GeneratedEmbeddingsTests.cs (1)
48instance.CopyTo(Array.Empty<Embedding<float>>(), 0);
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
690AdditionalValues: [new(true), new(42), new(""), new(new object()), new(Array.Empty<int>())],
Microsoft.Extensions.AI.Evaluation.Console (1)
Telemetry\EnvironmentHelper.cs (1)
56if (Array.TrueForAll(variables, static variable => !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable(variable))))
Microsoft.Extensions.AI.Evaluation.NLP (1)
Common\BLEUAlgorithm.cs (1)
127Array.Fill(weights, 1.0 / n);
Microsoft.Extensions.AI.Evaluation.NLP.Tests (1)
NGramTests.cs (1)
24Assert.Throws<ArgumentOutOfRangeException>("values", () => new NGram<int>(Array.Empty<int>()));
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
1741return Task.FromResult<IEnumerable<AITool>>(Array.Empty<AITool>());
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIConversionTests.cs (1)
943var convertedMessages = Array.Empty<ResponseItem>().AsChatMessages().ToArray();
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\ConfigureOptionsChatClientTests.cs (2)
76var response = await client.GetResponseAsync(Array.Empty<ChatMessage>(), providedOptions, cts.Token); 80await using var e = client.GetStreamingResponseAsync(Array.Empty<ChatMessage>(), providedOptions, cts.Token).GetAsyncEnumerator();
Microsoft.Extensions.AsyncState.Tests (1)
FeaturesPooledPolicyTests.cs (1)
27list.Add(Array.Empty<int>());
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.cs (1)
107Array.Reverse(factories);
Internal\TagSet.cs (1)
41Array.Sort(tags, StringComparer.InvariantCulture);
Microsoft.Extensions.Compliance.Abstractions (1)
Classification\DataClassificationSet.cs (1)
115Array.Sort(a, (x, y) =>
Microsoft.Extensions.Compliance.Abstractions.Tests (3)
Redaction\RedactorTest.cs (3)
192string redacted = r.Redact(Array.Empty<char>()); 212int written = r.Redact(Array.Empty<char>(), buffer); 298Assert.True(r.TryRedact(Array.Empty<char>(), buffer, out int charsWritten, string.Empty.AsSpan(), null));
Microsoft.Extensions.Compliance.Redaction (2)
src\LegacySupport\StringSyntaxAttribute\StringSyntaxAttribute.cs (1)
21Arguments = Array.Empty<object?>();
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Compliance.Redaction.Tests (1)
RedactorProviderTests.cs (1)
114Array.Empty<Redactor>(),
Microsoft.Extensions.Compliance.Testing (1)
src\LegacySupport\StringSyntaxAttribute\StringSyntaxAttribute.cs (1)
21Arguments = Array.Empty<object?>();
Microsoft.Extensions.Configuration.Binder (9)
ConfigurationBinder.cs (9)
371Array a = Array.CreateInstance(type.GetElementType()!, byteArray.Length + convertedByteArray.Length); 372Array.Copy(byteArray, a, byteArray.Length); 373Array.Copy(convertedByteArray, 0, a, byteArray.Length, convertedByteArray.Length); 523bindingPoint.TrySetValue(configValue is null ? null : Array.CreateInstance(type.IsArray ? type.GetElementType()! : type.GetGenericArguments()[0], 0)); 852private static Array BindArray(Type type, IEnumerable? source, IConfiguration config, BinderOptions options) 904Array result = Array.CreateInstance(elementType, list.Count); 1023result = value == string.Empty ? Array.Empty<byte>() : Convert.FromBase64String(value);
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationSource.cs (1)
22public IEnumerable<string> Args { get; set; } = Array.Empty<string>();
Microsoft.Extensions.DataIngestion (1)
Chunkers\SemanticSimilarityChunker.cs (1)
134Array.Sort(sorted);
Microsoft.Extensions.DependencyInjection (11)
ServiceLookup\CallSiteFactory.cs (1)
606Array.Sort(constructors,
ServiceLookup\CallSiteRuntimeResolver.cs (4)
53parameterValues = Array.Empty<object>(); 188Array array = CreateArray( 201static Array CreateArray(Type elementType, int length) 205return Array.CreateInstance(elementType, length);
ServiceLookup\ConstructorCallSite.cs (1)
14public ConstructorCallSite(ResultCache cache, Type serviceType, ConstructorInfo constructorInfo, object? serviceKey) : this(cache, serviceType, constructorInfo, Array.Empty<ServiceCallSite>(), serviceKey)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (2)
140.Invoke(obj: null, parameters: Array.Empty<object>())); 176parameterExpressions = Array.Empty<Expression>();
ServiceLookup\ServiceLookupHelpers.cs (2)
15private static readonly MethodInfo ArrayEmptyMethodInfo = typeof(Array).GetMethod(nameof(Array.Empty))!;
ServiceLookup\ServiceProviderEngineScope.cs (1)
19internal IList<object> Disposables => _disposables ?? (IList<object>)Array.Empty<object>();
Microsoft.Extensions.DependencyModel (3)
Resolution\ReferenceAssemblyPathResolver.cs (3)
96return Array.Empty<string>(); 102return Array.Empty<string>(); 108return Array.Empty<string>();
Microsoft.Extensions.Diagnostics (1)
Metrics\ListenerSubscription.cs (1)
17private IList<InstrumentRule> _rules = Array.Empty<InstrumentRule>();
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Diagnostics.ResourceMonitoring (9)
Linux\Disk\DiskStatsReader.cs (2)
43if (!Array.Exists(skipDevicePrefixes, prefix => stat.DeviceName.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))) 66string[] parts = line.Split(Array.Empty<char>(), StringSplitOptions.RemoveEmptyEntries);
Linux\Disk\LinuxSystemDiskMetrics.cs (2)
163return Array.Empty<DiskStats>(); 187return Array.Empty<DiskStats>();
Linux\LinuxUtilizationProvider.cs (1)
309return Array.Empty<Measurement<T>>();
src\Shared\BufferWriterPool\BufferWriter.cs (3)
36private T[] _buffer = Array.Empty<T>(); 76Array.Resize(ref _buffer, value); 185Array.Resize(ref _buffer, targetCapacity);
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
Helpers\TestMeterFactory.cs (1)
16var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object?>>(), scope: this);
ResourceMonitoringServiceTests.cs (2)
373Array.Empty<IResourceUtilizationPublisher>(), 738Microsoft.Extensions.Options.Options.Create(new ResourceMonitoringOptions()), Array.Empty<IResourceUtilizationPublisher>(), TimeProvider.System);
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (1)
359var dependency = Array.Find(assemblies, a =>
Microsoft.Extensions.FileProviders.Composite (1)
CompositeFileProvider.cs (1)
25_fileProviders = fileProviders ?? Array.Empty<IFileProvider>();
Microsoft.Extensions.FileProviders.Embedded (4)
Manifest\EmbeddedFilesManifest.cs (2)
66var start = Array.IndexOf(_separators, path[0]) == -1 ? 0 : 1; 72var end = Array.IndexOf(_separators, path[path.Length - 1]) == -1 ? path.Length : path.Length - 1;
Manifest\ManifestDirectoryInfo.cs (1)
57return Array.Empty<IFileInfo>();
Manifest\ManifestSinkDirectory.cs (1)
12: base(name: string.Empty, children: Array.Empty<ManifestEntry>())
Microsoft.Extensions.FileSystemGlobbing (1)
MatcherExtensions.cs (1)
60return Array.Empty<string>();
Microsoft.Extensions.Http.Diagnostics (7)
Logging\HttpClientLoggingTagNames.cs (1)
72Array.AsReadOnly([
src\Shared\BufferWriterPool\BufferWriter.cs (3)
36private T[] _buffer = Array.Empty<T>(); 76Array.Resize(ref _buffer, value); 185Array.Resize(ref _buffer, targetCapacity);
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
Microsoft.Extensions.Http.Diagnostics.Tests (3)
Logging\HttpClientLoggerTest.cs (3)
960new HttpClientLogger(fakeLogger, requestReader, Array.Empty<IHttpClientLogEnricher>(), options), 988var logger = new HttpClientLogger(fakeLogger, requestReaderMock.Object, Array.Empty<IHttpClientLogEnricher>(), new()); 1008var logger = new HttpClientLogger(new FakeLogger<HttpClientLogger>(), requestReader, Array.Empty<IHttpClientLogEnricher>(), options);
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Identity.Core (2)
Base32.cs (1)
80return Array.Empty<byte>();
UserManager.cs (1)
2964Logger.LogDebug(LoggerEventIds.PasswordValidationFailed, "User password validation failed: {errors}.", string.Join(";", errors?.Select(e => e.Code) ?? Array.Empty<string>()));
Microsoft.Extensions.Logging (2)
LoggerFactory.cs (2)
35public LoggerFactory() : this(Array.Empty<ILoggerProvider>()) 188Array.Resize(ref loggerInformation, loggerInformation.Length + 1);
Microsoft.Extensions.Logging.Abstractions (3)
LogValuesFormatter.cs (3)
149Array.Copy(values, formattedValues, i); 160return string.Format(CultureInfo.InvariantCulture, _format, formattedValues ?? Array.Empty<object>()); 174return string.Format(CultureInfo.InvariantCulture, _format, values ?? Array.Empty<object>());
Microsoft.Extensions.Logging.Console (5)
ConsoleLoggerExtensions.Obsolete.cs (1)
157OptionsFactory<ConsoleLoggerOptions> factory = new(new IConfigureOptions<ConsoleLoggerOptions>[] { adapter }, Array.Empty<IPostConfigureOptions<ConsoleLoggerOptions>>());
ConsoleLoggerProvider.cs (1)
34: this(options, Array.Empty<ConsoleFormatter>()) { }
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (3)
25private static int ArrayMaxLength => Array.MaxLength; 44? Array.Empty<byte>() 84_bytes = Array.Empty<byte>();
Microsoft.Extensions.Logging.EventSource (2)
EventSourceLogger.cs (1)
259return Array.Empty<KeyValuePair<string, string?>>();
LoggingEventSource.cs (1)
134private LoggerFilterRule[] _filterSpec = Array.Empty<LoggerFilterRule>();
Microsoft.Extensions.Logging.Generators (4)
LoggerMessageGenerator.Parser.cs (1)
642return Array.Empty<LoggerClass>();
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
18public static ImmutableEquatableArray<T> Empty { get; } = new ImmutableEquatableArray<T>(Array.Empty<T>());
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
183Array.Clear(toReturn, 0, pos); 247Array.Clear(toReturn, 0, _pos);
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
DependencyInjectionPooledObjectPolicy.cs (1)
25public TService Create() => (TService)_factory(_provider, Array.Empty<object?>());
Microsoft.Extensions.Options (1)
OptionsFactory.cs (1)
27public OptionsFactory(IEnumerable<IConfigureOptions<TOptions>> setups, IEnumerable<IPostConfigureOptions<TOptions>> postConfigures) : this(setups, postConfigures, validations: Array.Empty<IValidateOptions<TOptions>>())
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
866_reportDiagnostic(Diagnostic.Create(desc, location, Array.Empty<object?>()));
Microsoft.Extensions.Primitives (6)
StringValues.cs (6)
27public static readonly StringValues Empty = new StringValues(Array.Empty<string>()); 160return Array.Empty<string>()[0]; // throws 279return GetArrayValue() ?? Array.Empty<string>(); 347/// <param name="array">The one-dimensional <see cref="Array" /> that is the destination of the elements copied from. The <see cref="Array" /> must have zero-based indexing.</param> 363Array.Copy(values, 0, array, arrayIndex, values.Length);
Microsoft.Extensions.ServiceDiscovery (2)
Configuration\ConfigurationServiceEndpointProvider.cs (2)
149var index = Array.IndexOf(_schemes, scheme); 161var index = Array.IndexOf(_schemes, scheme);
Microsoft.Extensions.ServiceDiscovery.Dns (3)
FallbackDnsResolver.cs (1)
86: Array.Empty<AddressResult>()
Resolver\DnsResolver.cs (2)
371TResult[] results = Array.Empty<TResult>(); 800Array.Copy(buffer, largerBuffer, bytesRead);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (2)
Resolver\DnsPrimitivesTests.cs (2)
176Array.Fill(labelData, (byte)'a'); 182Array.Fill(lastLabelData, (byte)'a');
Microsoft.Extensions.Telemetry (11)
Enrichment\ApplicationEnricherTags.cs (1)
39Array.AsReadOnly(new[]
Enrichment\ProcessEnricherTagNames.cs (1)
29Array.AsReadOnly(new[]
Latency\Internal\CheckpointTracker.cs (1)
50Array.Clear(_checkpointAdded, 0, _checkpointAdded.Length);
Latency\Internal\MeasureTracker.cs (1)
48Array.Clear(_measurePosition, 0, _measurePosition.Length);
Latency\Internal\Registry.cs (1)
28Array.Sort(keys);
Logging\ExtendedLogger.cs (2)
32public MessageLogger[] MessageLoggers { get; set; } = Array.Empty<MessageLogger>(); 33public ScopeLogger[] ScopeLoggers { get; set; } = Array.Empty<ScopeLogger>();
Logging\ExtendedLoggerFactory.cs (2)
182Array.Resize(ref loggerInformation, loggerInformation.Length + 1); 270return (messageLoggers.ToArray(), scopeLoggers?.ToArray() ?? Array.Empty<ScopeLogger>());
Sampling\RandomProbabilisticSampler.cs (1)
74LastKnownGoodSamplerRules = Array.Empty<RandomProbabilisticSamplerFilterRule>();
src\Shared\Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
Microsoft.Extensions.Telemetry.Abstractions (9)
Latency\NullLatencyContext.cs (3)
13private readonly ArraySegment<Checkpoint> _checkpoints = new(Array.Empty<Checkpoint>()); 14private readonly ArraySegment<Tag> _tags = new(Array.Empty<Tag>()); 15private readonly ArraySegment<Measure> _measures = new(Array.Empty<Measure>());
Logging\LoggerMessageState.cs (6)
50Array.Resize(ref _tags, need); 69Array.Resize(ref _classifiedTags, need); 70Array.Resize(ref _redactedTags, need); 106Array.Clear(_tags, 0, TagsCount); 107Array.Clear(_classifiedTags, 0, ClassifiedTagsCount); 108Array.Clear(_redactedTags, 0, ClassifiedTagsCount);
Microsoft.Extensions.Telemetry.Tests (17)
Latency\Internal\LatencyConsoleExporterTests.cs (3)
219ArraySegment<Checkpoint> checkpoints = new(Array.Empty<Checkpoint>()); 220ArraySegment<Measure> measures = new(Array.Empty<Measure>()); 221ArraySegment<Tag> tags = new(Array.Empty<Tag>());
Latency\Internal\LatencyContextRegistrySetTests.cs (1)
47var e = Array.Empty<string>();
Latency\Internal\RegistryTests.cs (1)
36var r = new Registry(Array.Empty<string>(), throwOnUnregistered);
Logging\ExtendedLoggerTests.cs (11)
179staticEnrichers: Array.Empty<IStaticLogEnricher>(), 304enrichers: Array.Empty<ILogEnricher>(), 305staticEnrichers: Array.Empty<IStaticLogEnricher>(), 346enrichers: Array.Empty<ILogEnricher>(), 347staticEnrichers: Array.Empty<IStaticLogEnricher>(), 376enrichers: Array.Empty<ILogEnricher>(), 377staticEnrichers: Array.Empty<IStaticLogEnricher>(), 409enrichers: Array.Empty<ILogEnricher>(), 410staticEnrichers: Array.Empty<IStaticLogEnricher>(), 443enrichers: Array.Empty<ILogEnricher>(), 444staticEnrichers: Array.Empty<IStaticLogEnricher>(),
Logging\SerialExtendedLoggerTests.cs (1)
46staticEnrichers: Array.Empty<IStaticLogEnricher>(),
Microsoft.Gen.BuildMetadata.Unit.Tests (4)
GeneratorTests.cs (1)
84var proj = RoslynTestUtils.CreateTestProject(Array.Empty<Assembly>());
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
Microsoft.Gen.ContextualOptions.Unit.Tests (3)
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
42return Array.Empty<LoggingType>();
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesExtensions.cs (1)
167public int[] TransitivePropertyArray { get; set; } = Array.Empty<int>();
Microsoft.Gen.Logging.Unit.Tests (5)
LogParserUtilitiesTests.cs (1)
91.Returns(Array.Empty<AttributeData>().ToImmutableArray());
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
SymbolLoaderTests.cs (1)
30Array.Empty<MetadataReference>().ToImmutableArray(),
Microsoft.Gen.MetadataExtractor (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
63return Array.Empty<MetricType>(); 603_reportDiagnostic(Diagnostic.Create(desc, location, Array.Empty<object?>()));
Microsoft.Gen.MetadataExtractor.Unit.Tests (3)
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
Microsoft.Gen.Metrics (2)
Parser.cs (2)
63return Array.Empty<MetricType>(); 603_reportDiagnostic(Diagnostic.Create(desc, location, Array.Empty<object?>()));
Microsoft.Gen.Metrics.Unit.Tests (3)
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
Microsoft.Gen.MetricsReports (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
63return Array.Empty<MetricType>(); 603_reportDiagnostic(Diagnostic.Create(desc, location, Array.Empty<object?>()));
Microsoft.Gen.MetricsReports.Unit.Tests (4)
EmitterTests.cs (1)
102Assert.Equal(string.Empty, emitter.GenerateReport(Array.Empty<ReportedMetricClass>(), CancellationToken.None));
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
Microsoft.Interop.JavaScript.JSImportGenerator (3)
JSGeneratorFactory.cs (2)
311var gen = Create(info, context, isToJs ^ (!isReturn), argTypes[i], Array.Empty<KnownManagedType>(), argJSTypes[i], Array.Empty<JSTypeFlags>());
JSManagedTypeInfo.cs (1)
145return new JSFunctionTypeInfo(true, Array.Empty<JSSimpleTypeInfo>());
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
576int index = System.Array.IndexOf(s_preferredAttributeArgumentOrder, name);
Microsoft.Interop.SourceGeneration (17)
BoundGenerators.cs (1)
166return Array.Empty<(bool, int)>();
Marshalling\CustomTypeMarshallingGenerator.cs (1)
88return Array.Empty<StatementSyntax>();
Marshalling\Forwarder.cs (1)
29return Array.Empty<StatementSyntax>();
Marshalling\MarshallerHelpers.cs (2)
222public bool AnyEdges => Array.IndexOf(_edgeMap, true) >= 0; 228return Array.IndexOf(_edgeMap, true, to * NodeCount, NodeCount) >= 0;
Marshalling\StatelessMarshallingStrategy.cs (12)
27public IEnumerable<StatementSyntax> GenerateCleanupCallerAllocatedResourcesStatements(StubIdentifierContext context) => Array.Empty<StatementSyntax>(); 29public IEnumerable<StatementSyntax> GenerateCleanupCalleeAllocatedResourcesStatements(StubIdentifierContext context) => Array.Empty<StatementSyntax>(); 100return Array.Empty<StatementSyntax>(); 125return Array.Empty<StatementSyntax>(); 130return Array.Empty<StatementSyntax>(); 135return Array.Empty<StatementSyntax>(); 140return Array.Empty<StatementSyntax>(); 415public IEnumerable<StatementSyntax> GenerateNotifyForSuccessfulInvokeStatements(StubIdentifierContext context) => Array.Empty<StatementSyntax>(); 416public IEnumerable<StatementSyntax> GeneratePinnedMarshalStatements(StubIdentifierContext context) => Array.Empty<StatementSyntax>(); 417public IEnumerable<StatementSyntax> GeneratePinStatements(StubIdentifierContext context) => Array.Empty<StatementSyntax>(); 436public IEnumerable<StatementSyntax> GenerateUnmarshalCaptureStatements(StubIdentifierContext context) => Array.Empty<StatementSyntax>(); 696public IEnumerable<StatementSyntax> GenerateUnmarshalCaptureStatements(StubIdentifierContext context) => Array.Empty<StatementSyntax>();
Microsoft.JSInterop (5)
Infrastructure\DotNetDispatcher.cs (1)
219return Array.Empty<object>();
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (4)
37private static readonly T[] Empty = Array.Empty<T>(); 153Array.Copy(_items, index, _items, index + 1, _itemsInUse - index); 183Array.Copy(_items, newItems, _itemsInUse); 196Array.Clear(_items, 0, _itemsInUse);
Microsoft.Maui (10)
Extensions\ArrayExtensions.cs (4)
19 Array.Copy(self, result, index); 24 Array.Copy(self, index, result, index + 1, result.Length - index - 1); 52 Array.Copy(self, result, index); 55 Array.Copy(self, index + 1, result, index, self.Length - index - 1);
Extensions\EnumerableExtensions.cs (4)
77 return Array.IndexOf(array, item); 113 if (enumerable is Array array) 115 return Array.IndexOf(array, item); 159 return Array.FindIndex(array, arrayPredicate);
Layouts\Flex.cs (1)
863 Array.Resize(ref layout.lines, (layout.lines?.Length ?? 0) + 1);
Layouts\GridLayoutManager.cs (1)
136 Array.Resize(ref _childrenToLayOut, currentChild);
Microsoft.Maui.Controls (30)
BindableProperty.cs (1)
222 if (SimpleConvertTypes.TryGetValue(valueType, out Type[] convertibleTo) && Array.IndexOf(convertibleTo, returnType) != -1)
DoubleCollection.cs (1)
24 => f == null ? new() : new(Array.ConvertAll(f, x => (double)x));
Element\Element.cs (1)
51 internal static readonly ReadOnlyCollection<Element> EmptyChildren = new ReadOnlyCollection<Element>(Array.Empty<Element>());
LegacyLayouts\ConstraintExpression.cs (2)
44 return Constraint.RelativeToParent(p => (double)minfo.Invoke(p, Array.Empty<object>()) * Factor + Constant); 66 { return (double)minfo.Invoke(v, Array.Empty<object>()) * Factor + Constant; });
ListProxy.cs (1)
438 void ICollection.CopyTo(Array array, int index)
Menu\MenuItemTracker.cs (1)
78 return Array.Empty<TMenuItem>();
ObservableWrapper.cs (2)
58 public void CopyTo(Array array, int destIndex) 69 public void CopyTo(TRestrict[] array, int index) => CopyTo((Array)array, index);
PlatformBindingHelpers.cs (2)
46 var defaultValue = targetPropertyInfo?.GetMethod.Invoke(target, Array.Empty<object>()); 95 SetValueFromRenderer(proxy, bindableProperty, target.GetType().GetProperty(targetProperty)?.GetMethod.Invoke(target, Array.Empty<object>()));
ReadOnlyListAdapter.cs (1)
26 public void CopyTo(Array array, int index)
Registrar.cs (2)
393 Array.Copy(effectAttributes, typedEffectAttributes, effectAttributes.Length); 456 int indexOfExecuting = Array.IndexOf(assemblies, defaultRendererAssembly);
SetterSpecificityList.cs (10)
30 _keys = Array.Empty<SetterSpecificity>(); 31 _values = Array.Empty<T>(); 38 _keys = Array.Empty<SetterSpecificity>(); 39 _values = Array.Empty<T>(); 143 Array.Copy(_keys, lo, _keys, lo + 1, count - lo); 144 Array.Copy(_values, lo, _values, lo + 1, count - lo); 197 Array.Copy(_keys, nextIndex, _keys, index, count - nextIndex); 198 Array.Copy(_values, nextIndex, _values, index, count - nextIndex); 228 Array.Copy(_keys, newKeys, currentCapacity); 229 Array.Copy(_values, newValues, currentCapacity);
Shell\ShellUriHandler.cs (2)
959 results = Array.Empty<object>(); 1008 return Array.Empty<object>();
TemplatedItemsList.cs (4)
73 ListProxy = new ListProxy(Array.Empty<object>(), dispatcher: _itemsView.Dispatcher); 95 ListProxy = new ListProxy(Array.Empty<object>(), dispatcher: _itemsView.Dispatcher); 221 void ICollection.CopyTo(Array array, int arrayIndex) 957 ListProxy = new ListProxy(Array.Empty<object>(), dispatcher: _itemsView.Dispatcher);
Microsoft.Maui.Controls.BindingSourceGen (1)
Result.cs (1)
11 return new Result<T>(value, new EquatableArray<DiagnosticInfo>(Array.Empty<DiagnosticInfo>()));
Microsoft.Maui.Controls.Foldable (3)
DualScreenInfo.cs (3)
72 _spanningBounds = Array.Empty<Rect>(); 182 return Array.Empty<Rect>(); 185 return Array.Empty<Rect>();
Microsoft.Maui.Controls.SourceGen (3)
CodeBehindGenerator.cs (3)
451 var indexOfCompile = Array.IndexOf(parts, "compile"); 758 public static readonly AssemblyCaches Empty = new(Array.Empty<XmlnsDefinitionAttribute>(), Array.Empty<IAssemblySymbol>());
Microsoft.Maui.Controls.Xaml (8)
ApplyPropertiesVisitor.cs (1)
715 value = getter.Invoke(element, Array.Empty<object>());
CreateValuesVisitor.cs (1)
252 Type[] types = arguments == null ? Array.Empty<Type>() : arguments.Select(a => a.GetType()).ToArray();
MarkupExtensions\ArrayExtension.cs (5)
13 public class ArrayExtension : IMarkupExtension<Array> 24 public Array ProvideValue(IServiceProvider serviceProvider) 32 var array = Array.CreateInstance(Type, Items.Count); 41 return (this as IMarkupExtension<Array>).ProvideValue(serviceProvider);
MarkupExtensions\StaticExtension.cs (1)
34 return pinfo.GetMethod.Invoke(null, Array.Empty<object>());
Microsoft.Maui.Essentials (2)
Share\Share.shared.cs (1)
358 => files?.Select(file => new ShareFile(file)) ?? Array.Empty<ShareFile>();
VersionTracking\VersionTracking.shared.cs (1)
329 => preferences.Get<string?>(key, null, sharedName)?.Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>();
Microsoft.Maui.Graphics (3)
GradientPaint.cs (2)
119 Array.Copy(_gradientStops, vStops, _gradientStops.Length); 120 Array.Sort(vStops);
PathF.cs (1)
669 return Array.Empty<PointF>();
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvasState.cs (1)
29 private static readonly float[] _emptyFloatArray = Array.Empty<float>();
Microsoft.Maui.Resizetizer (2)
GeneratePackageAppxManifest.cs (1)
357 var parts = displayVersion?.Split('.') ?? Array.Empty<string>();
GenerateTizenManifest.cs (1)
212 var parts = displayVersion?.Split('.') ?? Array.Empty<string>();
Microsoft.ML.AutoML (14)
AutoMLExperiment\ITrialResultManager.cs (1)
132return Array.Empty<TrialResult>();
ColumnInference\ColumnGroupingInference.cs (1)
133Array.Sort(indices);
ColumnInference\TextFileSample.cs (5)
121var firstNewline = Array.FindIndex(firstChunk, x => x == '\n'); 152Array.Resize(ref chunk, chunkSize); 166Array.Resize(ref buf, readCount); 189int iMin = (i == 0) ? 0 : Array.FindIndex(chunks[i], x => x == '\n') + 1; 192: Array.FindLastIndex(chunks[i], x => x == '\n') + 1;
Sweepers\ISweeper.cs (1)
269Array.Copy(_metricDistribution, result, _metricDistribution.Length);
Sweepers\SmacSweeper.cs (2)
165Array.Copy(eiChallengers, 0, configs, 0, eiChallengers.Length); 166Array.Copy(randomChallengers, 0, configs, eiChallengers.Length, randomChallengers.Length);
TransformInference\TransformInference.cs (1)
179var lastLabelColId = Array.FindLastIndex(columns, x => x.Purpose == ColumnPurpose.Label);
Utils\ArrayMath.cs (3)
61Array.Copy(array, 0, ret, 0, index); 63Array.Copy(array, index, ret, index + 1, array.Length - index); 100int index = Array.BinarySearch(array, item);
Microsoft.ML.AutoML.Tests (1)
DatasetUtil.cs (1)
163Array.Sort(files);
Microsoft.ML.Core (43)
CommandLine\CmdParser.cs (20)
1148string[] argsArray = string.IsNullOrEmpty(args) ? Array.Empty<string>() : new string[] { args }; 1260Array.Sort(args, 0, args.Length, Comparer<Arg>.Create((x, y) => x.SortOrder.CompareTo(y.SortOrder))); 1513Field.SetValue(destination, Array.CreateInstance(ItemType, 0)); 1593var arr = Array.CreateInstance(ItemType, comList.Count); 1628var arr = Array.CreateInstance(ItemValueType, comList.Count); 1636var res = Array.CreateInstance(ItemType, Utils.Size(values)); 1646var res = Array.CreateInstance(ItemType, Utils.Size(values)); 1913else if (value is Array) 1916foreach (object o in (System.Array)value) 1966Contracts.Assert(value == null || value is Array); 1968IList vals = (Array)value; 1976IList defs = (Array)def; 2065Contracts.Assert(value == null || value is Array); 2067IList vals = (Array)value; 2075IList defs = (Array)def; 2347settings = Array.Empty<string>();
Utilities\ArrayUtils.cs (1)
96Array.Resize(ref array, newSize);
Utilities\BigArray.cs (8)
252Array.Resize(ref _entries, newBlockCount); 253Array.Resize(ref _entries[newBlockCount - 1], newLastBlockLength); 267Array.Resize(ref _entries[0], Math.Min(BlockSize, Math.Max(2 * curLastBlockSize, newLastBlockLength))); 272Array.Resize(ref _entries[newBlockCount - 1], BlockSize); 280Array.Resize(ref _entries, newBlockCount); 281Array.Resize(ref _entries[curBlockCount - 1], BlockSize); 306Array.Resize(ref _entries[maMax], miLim); 307Array.Resize(ref _entries, maMax + 1);
Utilities\BinFinder.cs (3)
56Array.Sort(_valuesSng, 0, numValues); 134Array.Sort(_valuesDbl, 0, numValues); 372Array.Sort(_path, 0, CountBins + 1);
Utilities\HashArray.cs (1)
196Array.Sort(_entries, 0, _ct);
Utilities\MathUtils.cs (1)
711Array.Sort(src, 0, count);
Utilities\NormStr.cs (2)
227Array.Resize(ref _rgmeta, size); 228Array.Resize(ref _rgns, size);
Utilities\SupervisedBinFinder.cs (3)
79Array.Sort(valuePairs); 157Array.Sort(valuePairs); 339Array.Sort(results);
Utilities\Utils.cs (4)
60public static int Size(Array x) 867Array.Copy(a, res, a.Length); 868Array.Copy(b, 0, res, a.Length, b.Length); 907Array.Copy(a, 0, res, ivDst, cv);
Microsoft.ML.Core.Tests (1)
UnitTests\TestVBuffer.cs (1)
1000Array.Sort(indices, 0, count);
Microsoft.ML.CpuMath (3)
AlignedArray.cs (3)
87Array.Copy(Items, _base, Items, newBase, _size); 166Array.Copy(src.Items, src._base, Items, _base, _size); 171Array.Clear(Items, _base, _size);
Microsoft.ML.Data (69)
Commands\ScoreCommand.cs (1)
232if (ImplOptions.OutputColumns != null && Array.FindIndex(ImplOptions.OutputColumns, schema[i].Name.Equals) >= 0)
Data\BufferBuilder.cs (7)
122Array.Clear(_values, 0, _length); 181Array.Resize(ref _values, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 183Array.Resize(ref _indices, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 209Array.Resize(ref _values, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 211Array.Resize(ref _indices, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 267Array.Sort(_indices, _values, 0, _count); 323Array.Resize(ref _values, _length);
DataLoadSave\Database\DatabaseLoader.cs (1)
425Array.Sort(order, (x, y) => segs[x].Min.CompareTo(segs[y].Min));
DataLoadSave\EstimatorExtensions.cs (1)
157Array.Copy(array, result, result.Length - 1);
DataLoadSave\Text\TextLoader.cs (1)
641Array.Sort(order, (x, y) => segs[x].Min.CompareTo(segs[y].Min));
DataLoadSave\Text\TextLoaderCursor.cs (1)
812Array.Resize(ref infos, index);
DataLoadSave\Text\TextLoaderParser.cs (8)
370Array.Resize(ref _values, 2 * _count); 372Array.Resize(ref _indices, 2 * _count); 383Array.Clear(_values, _count, _size - _count); 387Array.Clear(_values, _count, _values.Length - _count); 388Array.Resize(ref _values, _size); 643Array.Resize(ref Spans, size); 644Array.Resize(ref Indices, size); 652Array.Clear(Spans, 0, Count);
DataLoadSave\Text\TextSaver.cs (3)
662Array.Resize(ref _rgch, checked(_rgch.Length * 2)); 664Array.Resize(ref _mpslotdst, checked(_mpslotdst.Length * 2)); 666Array.Resize(ref _mpslotichLim, checked(_mpslotichLim.Length * 2));
DataView\CacheDataView.cs (6)
123Array.Copy(prefetch, tmp, prefetch.Length); 124Array.Sort(tmp); 1413Array.Resize(ref _indexBoundaries, _rowCount + 1); 1414Array.Resize(ref _valueBoundaries, _rowCount + 1); 1415Array.Resize(ref _lengths, _rowCount); 1456Array.Resize(ref _values, _rowCount);
DataView\Transposer.cs (4)
526Array.Clear(_rbuffIndices, 0, _rbuffIndices.Length); 547Array.Clear(_counts, 0, vecLen); 633Array.Clear(_rbuffIndices, 0, irbuff); 1237Array.Clear(_srcIndicesLims, 0, _srcIndicesLims.Length);
Deprecated\Instances\HeaderSchema.cs (1)
305Array.Copy(names, _names, size);
Deprecated\Vector\VectorUtils.cs (1)
538Array.Clear(dst, 0, dst.Length);
EntryPoints\EntryPointNode.cs (4)
865var arr = Array.CreateInstance(type, bindings.Count); 1184var arr = variable.Value as Array;
EntryPoints\InputBuilder.cs (2)
314var array = (Array)instanceVal;
Evaluators\RankingEvaluator.cs (3)
391Array.Copy(_groupMaxDcgCur, maxDcg, TruncationLevel); 399Array.Copy(_groupDcgCur, groupDcg, TruncationLevel); 1041Array.Sort(permutation, GetCompareItems(queryLabels, queryOutputs));
Prediction\Calibrator.cs (1)
1396Array.Sort(_data, 0, Math.Min(_itemsSeen, _capacity), comp);
Transforms\InvertHashUtils.cs (2)
208Array.Sort(buffer, 0, count, Comparer<Pair>.Create((x, y) => x.Order - y.Order)); 252Array.Sort(indices, values);
Transforms\KeyToValue.cs (6)
528var keys = Array.ConvertAll<int, long>(Enumerable.Range(1, _values.Length).ToArray(), item => Convert.ToInt64(item)); 536string[] values = Array.ConvertAll<TValue, string>(_values.GetValues().ToArray(), item => Convert.ToString(item)); 544float[] values = Array.ConvertAll<TValue, float>(_values.GetValues().ToArray(), item => Convert.ToSingle(item)); 550float[] values = Array.ConvertAll<TValue, float>(_values.GetValues().ToArray(), item => Convert.ToSingle(item)); 559string[] values = Array.ConvertAll<TValue, string>(_values.GetValues().ToArray(), item => Convert.ToString(item)); 564float[] values = Array.ConvertAll<TValue, float>(_values.GetValues().ToArray(), item => Convert.ToSingle(item));
Transforms\SlotsDroppingTransformer.cs (4)
365Array.Sort(slotsMin, slotsMax); 398Array.Sort(slotsMin[i], slotsMax[i]); 412Array.Resize(ref slotsMin[i], iDst); 413Array.Resize(ref slotsMax[i], iDst);
Transforms\ValueMapping.cs (4)
1093node.AddAttribute("keys_strings", Array.ConvertAll(_valueMap.GetKeys<T>(), item => Convert.ToString(item))); 1095node.AddAttribute("keys_floats", Array.ConvertAll(_valueMap.GetKeys<T>(), item => Convert.ToSingle(item))); 1097node.AddAttribute("keys_int64s", Array.ConvertAll(_valueMap.GetKeys<T>(), item => Convert.ToInt64(item))); 1205var values = Array.ConvertAll(_valueMap.GetKeys<bool>(), item => Convert.ToString(Convert.ToByte(item)));
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
126Array.Sort(perm, comp);
Utils\SequencePool.cs (7)
77Array.Resize(ref _start, 11); 79Array.Resize(ref _bytes, 40); 241Array.Resize(ref _start, size); 251Array.Resize(ref _hash, size); 252Array.Resize(ref _next, size); 262Array.Resize(ref _bytes, size); 356Array.Resize(ref sequence, lim - min);
Microsoft.ML.DataView (1)
src\Microsoft.ML.Core\Utilities\ArrayUtils.cs (1)
96Array.Resize(ref array, newSize);
Microsoft.ML.Ensemble (5)
OutputCombiners\BaseStacking.cs (2)
206Array.Resize(ref labels, count); 207Array.Resize(ref features, count);
Selector\SubModelSelector\BaseBestPerformanceSelector.cs (1)
36Array.Sort(sortedModels, new ModelPerformanceComparer(MetricName, IsAscMetric));
Selector\SubModelSelector\BaseDiverseSelector.cs (2)
58Array.Resize(ref preds, count); 80Array.Sort(sortedModels, new ModelDiversityComparer());
Microsoft.ML.EntryPoints (3)
JsonUtils\JsonManifestUtils.cs (2)
426var valArray = value as Array;
ScoreColumnSelector.cs (1)
53if (extraColumns != null && Array.FindIndex(extraColumns, columnName.Equals) >= 0)
Microsoft.ML.FastTree (79)
BinFile\BinFinder.cs (1)
70Array.Sort(valueBuffer, 0, explicitValuesCount);
Dataset\Dataset.cs (18)
394Array.Copy(activeFeatures, 0, truncatedActiveFeatures, 0, NumFeatures); 401public Array Data; 410qdd.Data = Array.CreateInstance(arrayDataType, docArray.Length); 601Array.Copy(perm, posInPerm, queries[p], 0, numQueries[p]); 602Array.Sort(queries[p]); 683Array newData = Array.CreateInstance(arrayDataType, mapping.Length); 716Array.Copy(parts[p].Ratings, 0, concatRatings, docBegin, numDocs); 717Array.Copy(parts[p].DocIds, 0, concatDocIds, docBegin, numDocs); 718Array.Copy(parts[p].QueryIds, 0, concatQueryIds, queryBegin, numQueries); 763Array.Clear(labelCounts, 0, relevancyLevel); 828Array concatArray = ConcatArrays(partsDatas.Select(pd => pd.Data).ToArray(), isQuery ? queryLengths : docLengths, name); 833private static Array ConcatArrays(Array[] arrays, int[] lengths, string name) 849Array a = Array.CreateInstance(t, newLength); 854Array.Copy(arrays[i], 0, a, start, lengths[i]); 866public void SetData(string name, Array array, bool queryLevel)
Dataset\FeatureFlock.cs (1)
121Array.Copy(active, featureOffset, _active, 0, _active.Length);
Dataset\FeatureHistogram.cs (3)
116Array.Clear(SumTargetsByBin, 0, SumTargetsByBin.Length); 121Array.Clear(SumWeightsByBin, 0, SumWeightsByBin.Length); 124Array.Clear(CountByBin, 0, CountByBin.Length);
FastTree.cs (2)
1229Array.Clear(binnedValues, 0, values.Length); 2703Array.Clear(_perFeaturePosition, 0, _featureIndices.Length);
FastTreeRanking.cs (8)
749Array.Clear(Gradient, begin, numDocuments); 750Array.Clear(Weights, begin, numDocuments); 763Array.Copy(_labels, begin, _labelsCopy, begin, numDocuments); 770Array.Copy(Scores, begin, _scoresCopy, begin, numDocuments); 794Array.Copy(_oneTwoThree, permutation, numDocuments); 858Array.Sort(permutation, 0, numDocuments, comparer); 977Array.Copy(_oneTwoThree, permutation, numDocuments); 995Array.Sort(permutation, 0, numDocs,
GamModelParameters.cs (1)
253Array.Copy(_binsAtAllZero, bins, NumberOfShapeFunctions);
RandomForestRegression.cs (1)
63Array.Sort(_data);
Training\BaggingProvider.cs (1)
129Array.Copy(tmpTrainQueryIndices, currentTrainQueryIndices, currentTrainQueryIndices.Length);
Training\DcgCalculator.cs (5)
127Array.Clear(labelCounts, 0, LabelMap.Length); 446Array.Copy(_oneTwoThree, permutation, count); 456Array.Sort(permutation, 0, count, comparer); 467Array.Sort(permutation, 0, Math.Min(count, _secondLevelcomparers[threadIndex].CompareFirstN), _secondLevelcomparers[threadIndex]); 547Array.Copy(permutation, 0, result, begin, count);
Training\DocumentPartitioning.cs (4)
151Array.Clear(_leafCount, 0, _leafCount.Length); 229Array.Copy(_tempDocuments, begin, _documents, newEnd, gtCount); 277Array.Copy(_tempDocuments, begin, _documents, newEnd, gtCount); 353Array.Copy(_documents, _leafBegin[leaf], documents, 0, _leafCount[leaf]);
Training\OptimizationAlgorithms\GradientDescent.cs (1)
45Array.Clear(_droppedScores, 0, _droppedScores.Length);
Training\ScoreTracker.cs (2)
50Array.Copy(scores1.Scores, Scores, Scores.Length); 64Array.Clear(Scores, 0, Scores.Length);
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (2)
496Array.Sort(BestSplitInfoPerLeaf[leaf].CategoricalFeatureIndices); 535Array.Copy(ParentHistogramArray[flock].IsSplittable, smallStats.IsSplittable, smallStats.IsSplittable.Length);
Training\WinLossCalculator.cs (2)
94Array.Copy(_oneTwoThree, permutation, count); 95Array.Sort(permutation, 0, count, comparer);
TreeEnsemble\InternalRegressionTree.cs (6)
1026int parent = Array.FindIndex(LteChild, x => x == ~leaf); 1031parent = Array.FindIndex(GtChild, x => x == ~leaf); 1470int parentOfLteChild1 = Array.IndexOf(LteChild, pos1); 1471int parentOfGtChild1 = Array.IndexOf(GtChild, pos1); 1472int parentOfLteChild2 = Array.IndexOf(LteChild, pos2); 1473int parentOfGtChild2 = Array.IndexOf(GtChild, pos2);
Utils\Algorithms.cs (4)
158Array.Copy(arrays[i], 0, working, begin, arrays[i].Length); 166Array.Copy(working, output, length); 179Array.Copy(tmp, begins[fromArray], working, begins[fromArray], length); 188Array.Copy(tmp, begins[fromArray], working, begins[fromArray], length);
Utils\BufferPoolManager.cs (10)
30private static readonly ConcurrentDictionary<Type, SortedList<int, List<Array>>> _bufferPools = new ConcurrentDictionary<Type, SortedList<int, List<Array>>>(); 41SortedList<int, List<Array>> availableBuffers = null; 53List<Array> buffers = availableBuffers.FirstOrDefault(x => x.Value.Count > 0 && x.Key >= size && (x.Key - size) < (size * 0.2)).Value as List<Array>; 83SortedList<int, List<Array>> availableBuffers = null; 84List<Array> buffers = null; 97buffers = new List<Array>(); 112SortedList<int, List<Array>> availableBuffers = null; 153_bufferPools[type] = new SortedList<int, List<Array>>();
Utils\CompressUtils.cs (2)
49Array.Copy(block.Buffer, block.Offset, block.Buffer, 0, block.Length); 56Array.Resize(ref block.Buffer, (block.Offset + block.Length + loadSize) * 2);
Utils\MappedObjectPool.cs (1)
84Array.Clear(_lastAccessTime, 0, _lastAccessTime.Length);
Utils\ToByteArrayExtensions.cs (4)
231Array.Copy(bytes, 0, buffer, position, bytes.Length); 241Array.Copy(bytes, 0, allBytes, position, bytes.Length); 263Array.Copy(a, 0, buffer, position, a.Length); 272Array.Copy(buffer, position, a, 0, length);
Microsoft.ML.GenAI.Core (2)
CausalLMPipelineChatClient.cs (2)
39var stopSequences = options?.StopSequences ?? Array.Empty<string>(); 64var stopSequences = options?.StopSequences ?? Array.Empty<string>();
Microsoft.ML.GenAI.LLaMA (1)
LlamaTextCompletionService.cs (1)
46var stopTokenSequence = executionSettings?.ExtensionData?["stop_token_sequence"] as string[] ?? Array.Empty<string>();
Microsoft.ML.GenAI.Phi (1)
Phi3\Phi3CausalLMTextGenerationService.cs (1)
60var stopTokenSequence = executionSettings?.ExtensionData?["stop_token_sequence"] as string[] ?? Array.Empty<string>();
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
40Array.Copy(args, 0, newArgs, 1, args.Length);
Microsoft.ML.KMeansClustering (1)
KMeansPlusPlusTrainer.cs (1)
1086Array.Clear(ClusterSizes, 0, K);
Microsoft.ML.LightGbm (1)
WrappedLightGbmBooster.cs (1)
93Array.Copy(buffer, content, size);
Microsoft.ML.Parquet (1)
ParquetLoader.cs (1)
730Array.Resize(ref arr, 16);
Microsoft.ML.PCA (4)
PcaTrainer.cs (1)
306Array.Clear(y[i], 0, y[i].Length);
PcaTransformer.cs (3)
401Array.Clear(y[iinfo][i], 0, y[iinfo][i].Length); 643Array.Copy(transformInfo.Eigenvectors[i], 0, principalComponents, i * transformInfo.Dimension, transformInfo.Dimension); 651Array.Copy(transformInfo.MeanProjected, zeroMean, transformInfo.Rank);
Microsoft.ML.Samples (1)
Dynamic\TensorFlow\TextClassification.cs (1)
95Array.Resize(ref features, MaxSentenceLength);
Microsoft.ML.Samples.GPU (1)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (1)
95Array.Resize(ref features, MaxSentenceLength);
Microsoft.ML.Samples.OneDal (3)
Program.cs (3)
29columns.Add(new TextLoader.Column(column, DataKind.Boolean, Array.IndexOf(headerArray, column))); 31columns.Add(new TextLoader.Column(column, DataKind.Single, Array.IndexOf(headerArray, column))); 35columns.Add(new TextLoader.Column(column, DataKind.Single, Array.IndexOf(headerArray, column)));
Microsoft.ML.SearchSpace (1)
Option\ChoiceOption.cs (1)
68var x = Array.IndexOf(Choices, param);
Microsoft.ML.SearchSpace.Tests (1)
ChoiceOptionTest.cs (1)
59option.Default.Should().BeEquivalentTo(System.Array.Empty<double>());
Microsoft.ML.StandardTrainers (17)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (1)
246Array.Copy(_linearWeights, linearWeights, _linearWeights.Length);
LdSvm\LdSvmTrainer.cs (3)
208Array.Clear(gradTheta, 0, numLeaf - 1); 589Array.Sort(_indices2); 630Array.Sort(_indices, 0, sampleSize);
Optimizer\Optimizer.cs (4)
289Array.Clear(_sList, 0, _sList.Length); 290Array.Clear(_yList, 0, _yList.Length); 346Array.Copy(_sList, 1, _sList, 0, _m - 1); 348Array.Copy(_yList, 1, _yList, 0, _m - 1);
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (9)
199Array.Resize(ref labelHistogram, labelCount); 200Array.Resize(ref featureHistogram, labelCount); 265public IReadOnlyList<int> GetLabelHistogram() => Array.ConvertAll(_labelHistogram, x => (int)x); 277public IReadOnlyList<IReadOnlyList<int>> GetFeatureHistogram() => Array.ConvertAll(_featureHistogram, x => Array.ConvertAll(x, y => (int)y)); 326_labelHistogram = Array.ConvertAll(ctx.Reader.ReadIntArray() ?? new int[0], x => (long)x); 343_featureHistogram[iLabel] = Array.ConvertAll(ctx.Reader.ReadIntArray(_featureCount) ?? new int[0], x => (long)x); 432Array.Copy(_featureHistogram[i], 0, featureHistogram, i * _featureHistogram[i].Length, _featureHistogram[i].Length); 436Array.Copy(_labelHistogram, 0, labelHistogramExpanded, i * _featureHistogram.Length, _featureHistogram.Length);
Microsoft.ML.Sweeper (3)
Algorithms\SmacSweeper.cs (2)
176Array.Copy(eiChallengers, 0, configs, 0, eiChallengers.Length); 177Array.Copy(randomChallengers, 0, configs, eiChallengers.Length, randomChallengers.Length);
ISweeper.cs (1)
305Array.Copy(_metricDistribution, result, _metricDistribution.Length);
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
577_fullySpecifiedShapes[i] = new Shape(Array.Empty<long>());
Microsoft.ML.TensorFlow.Tests (6)
TensorflowTests.cs (6)
1298Array.Resize(ref processedData.Features, 600); 1588Assert.True(Array.IndexOf(labels, predictionFirst.PredictedLabel) > -1); 1589Assert.True(Array.IndexOf(labels, predictionSecond.PredictedLabel) > -1); 1747Assert.True(Array.IndexOf(labels, predictionFirst.PredictedLabel) > -1); 1748Assert.True(Array.IndexOf(labels, predictionSecond.PredictedLabel) > -1); 1921Array.Sort(files);
Microsoft.ML.TestFramework (3)
DataPipe\TestDataPipeBase.cs (2)
453Array.Copy(args1, res, args1.Length); 454Array.Copy(args2, 0, res, args1.Length, args2.Length);
GlobalBase.cs (1)
38Mkl.PptrfInternal(Mkl.Layout.RowMajor, Mkl.UpLo.Up, 0, Array.Empty<double>());
Microsoft.ML.Tests (8)
CollectionsDataViewTest.cs (6)
62if (!CompareArrayValues(xvalue as Array, yvalue as Array)) 81if (!CompareArrayValues(xvalue as Array, yvalue as Array)) 93public bool CompareArrayValues(Array x, Array y)
ImagesTests.cs (2)
1268Assert.Throws<ArgumentException>(() => MLImage.CreateFromPixels(10, 10, MLPixelFormat.Unknown, Array.Empty<byte>())); 1269Assert.Throws<ArgumentException>(() => MLImage.CreateFromPixels(10, 10, MLPixelFormat.Bgra32, Array.Empty<byte>()));
Microsoft.ML.TimeSeries (55)
AdaptiveSingularSpectrumSequenceModeler.cs (8)
323Array.Copy(model._alpha, _alpha, _windowSize - 1); 325Array.Copy(model._state, _state, _windowSize - 1); 420Array.Copy(_alpha, _info.AutoRegressiveCoefficients, _windowSize - 1); 723Array.Copy(x, outputSignal, inputSeriesLength); 882Array.Copy(roots, _info.RootsBeforeStabilization, _windowSize - 1); 1196Array.Resize(ref dataArray, count); 1244Array.Resize(ref dataArray, count); 1406Array.Copy(_alpha, _info.AutoRegressiveCoefficients, _windowSize - 1);
Deseasonality.cs (3)
27Array.Resize(ref _circularComponent, period); 69Array.Resize(ref _circularComponent, period); 70Array.Resize(ref _subSeries, period);
EigenUtils.cs (1)
527Array.Copy(input, 0, a, 0, n2);
PolynomialUtils.cs (1)
106Array.Copy(coefficients, i, coeff, 0, n - i);
SrCnnEntireAnomalyDetector.cs (29)
493Array.Resize<double[]>(ref results, values.Length); 502Array.Resize(ref _seriesToDetect, values.Length); 555Array.Resize(ref _fftRe, length); 556Array.Resize(ref _fftIm, length); 558Array.Resize(ref _zeroArray, length); 562Array.Resize(ref _magList, length); 563Array.Resize(ref _magLogList, length); 579Array.Resize(ref _spectralList, length); 586Array.Resize(ref _transRe, length); 587Array.Resize(ref _transIm, length); 602Array.Resize(ref _ifftRe, length); 603Array.Resize(ref _ifftIm, length); 607Array.Resize(ref _ifftMagList, length); 656Array.Resize(ref _backAddArray, data.Length + _backAddWindowSize); 683Array.Resize(ref _cumSumList, length); 684Array.Resize(ref _cumSumShift, length); 899Array.Resize(ref _deAnomalyData, data.Length); 900Array.Copy(data, _deAnomalyData, data.Length); 956Array.Resize(ref _fftRe, length); 957Array.Resize(ref _fftIm, length); 958Array.Resize(ref _zeroArray, length); 970Array.Resize(ref _ifftRe, length); 971Array.Resize(ref _ifftIm, length); 1004Array.Resize(ref _units, _trends.Length); 1026Array.Resize(ref _val, tLen); 1027Array.Copy(data, _val, tLen); 1028Array.Resize(ref _trends, tLen); 1029Array.Copy(data, _trends, tLen); 1030Array.Resize(ref _curWindow, wLen);
STL\InnerStl.cs (10)
126Array.Resize(ref _seasonalComponent, length); 127Array.Resize(ref _trendComponent, length); 128Array.Resize(ref _residual, length); 130Array.Resize(ref _s, length); 131Array.Resize(ref _t, length); 132Array.Resize(ref _detrendedY, length); 133Array.Resize(ref _c, length + np * 2); 134Array.Resize(ref _deseasonSeries, length); 136Array.Resize(ref _cycleSubSeries, np); 137Array.Resize(ref _smoothedSubseries, np);
STL\LocalRegression.cs (1)
208Array.Sort(absErrors);
TrajectoryMatrix.cs (2)
244Array.Sort(ind, (a, b) => sVal[b].CompareTo(sVal[a])); 248Array.Copy(sVec, _windowSize * ind[i], leftSingularvectors, _windowSize * i, _windowSize);
Microsoft.ML.Tokenizers (8)
Model\BertTokenizer.cs (1)
238return Array.Empty<int>();
Model\SentencePieceUnigramModel.cs (2)
106return Array.Empty<EncodedToken>(); 567return Array.Empty<int>();
RegexGenerator.g.cs (1)
2356Array.Resize(ref stack, (pos + 0) * 2);
Utils\DoubleArrayTrie.cs (3)
96private T[] _buf = Array.Empty<T>(); 115_buf = Array.Empty<T>(); 145Array.Copy(_buf, buf, _size);
Utils\Vec.cs (1)
56Array.Resize(ref _buffer, _buffer.Length << 1);
Microsoft.ML.Tokenizers.Tests (22)
LlamaTests.cs (6)
277Assert.Equal(isEmptyInput ? Array.Empty<int>() : ids.Skip(1).Concat(new[] { bpe.EndOfSentenceId }), bpeTokens.Select(token => token.Id)); 278Assert.Equal(isEmptyInput ? Array.Empty<string>() : tokens.Skip(1).Concat(new[] { bpe.EndOfSentenceToken }), bpeTokens.Select(token => token.Value)); 283Assert.Equal(isEmptyInput ? Array.Empty<int>() : ids.Skip(1).Concat(new[] { bpe.EndOfSentenceId }), encodedIds); 287Assert.Equal(isEmptyInput ? Array.Empty<int>() : ids.Concat(new[] { bpe.EndOfSentenceId }), bpeTokens.Select(token => token.Id)); 288Assert.Equal(isEmptyInput ? Array.Empty<string>() : tokens.Concat(new[] { bpe.EndOfSentenceToken }), bpeTokens.Select(token => token.Value)); 293Assert.Equal(isEmptyInput ? Array.Empty<int>() : ids.Concat(new[] { bpe.EndOfSentenceId }), encodedIds);
SentencePieceTests.cs (7)
26using MemoryStream empty = new MemoryStream(Array.Empty<byte>()); 303model.WriteMessageField(3, Array.Empty<byte>()); // empty NormalizerSpec 391model.WriteMessageField(3, Array.Empty<byte>()); 681model.WriteMessageField(1, Array.Empty<byte>()); // zero-length piece 892Array.Reverse(bytes); 910Array.Reverse(bytes); 921Array.Reverse(bytes);
src\Microsoft.ML.Tokenizers\Utils\DoubleArrayTrie.cs (3)
96private T[] _buf = Array.Empty<T>(); 115_buf = Array.Empty<T>(); 145Array.Copy(_buf, buf, _size);
UnigramTests.cs (6)
359Array.Copy(ids, 0, expectedIds, 1, ids.Length); 361Array.Copy(ids, 0, expectedIds, ids.Length + 2, ids.Length); 367Array.Copy(tokens, 0, expectedTokens, 1, tokens.Length); 369Array.Copy(tokens, 0, expectedTokens, tokens.Length + 2, tokens.Length); 467Array.Copy(ids, 0, expectedIds, 1, ids.Length); 469Array.Copy(ids, 0, expectedIds, ids.Length + 2, ids.Length);
Microsoft.ML.TorchSharp (1)
Extensions\TensorExtensions.cs (1)
32return Array.Empty<T>();
Microsoft.ML.Transforms (23)
Expression\CodeGen.cs (1)
73Array.Copy(types, 0, types, 1, types.Length - 1);
Expression\LambdaBinder.cs (3)
1447Array rest = Array.CreateInstance(type, tail); 1450Array.Resize(ref args, head + 1);
Expression\TokenCursor.cs (1)
125Array.Resize(ref _buffer, 2 * _buffer.Length);
GroupTransform.cs (1)
489Array.Resize(ref _buffer, size);
MissingValueReplacing.cs (7)
41private static readonly FuncInstanceMethodInfo1<MissingValueReplacingTransformer, DataViewType, Array, BitArray> _computeDefaultSlotsMethodInfo 42= FuncInstanceMethodInfo1<MissingValueReplacingTransformer, DataViewType, Array, BitArray>.Create(target => target.ComputeDefaultSlots<int>); 360if (repValues[slot] is Array) 362slotIsDefault[slot] = Utils.MarshalInvoke(_computeDefaultSlotsMethodInfo, this, types[slot].GetItemType().RawType, types[slot], (Array)repValues[slot]); 367private BitArray ComputeDefaultSlots<T>(DataViewType type, Array values) 510Host.Assert(repValue is Array); 516Host.Assert(!(repValue is Array));
MutualInformationFeatureSelection.cs (5)
690Array.Resize(ref _contingencyTable[i], numFeatures); 691Array.Resize(ref _featureSums, numFeatures); 694Array.Clear(_contingencyTable[i], 0, numFeatures); 695Array.Clear(_labelSums, 0, _numLabels); 696Array.Clear(_featureSums, 0, numFeatures);
PermutationFeatureImportance.cs (2)
238Array.Clear(featureValuesBuffer, 0, featureValuesBuffer.Length); 240Array.Clear(nextValues, 0, nextValues.Length);
Text\LdaSingleBox.cs (2)
361Array.Copy(topicID, _topics, topicNum); 362Array.Copy(topicProb, _probabilities, topicNum);
Text\NgramHashingTransformer.cs (1)
705Array.Copy(Grams, ngram, Lim);
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (1)
306Array.Copy(_tfInputNodes, tfInputs, _tfInputNodes.Length);
ImageClassificationTrainer.cs (1)
1569Array.Empty<long>(),
Microsoft.NET.Build.Containers (33)
ContainerBuilder.cs (1)
165foreach ((int number, PortType type) in exposedPorts ?? Array.Empty<Port>())
DestinationImageReference.cs (1)
101return Array.Empty<string>();
ImageBuilder.cs (12)
161baseImageEntrypoint ??= Array.Empty<string>(); 165baseImageEntrypoint = Array.Empty<string>(); 177appCommand = Array.Empty<string>(); 181entrypointArgs = Array.Empty<string>(); 212return (Array.Empty<string>(), Array.Empty<string>()); 218return (Array.Empty<string>(), Array.Empty<string>()); 227return (Array.Empty<string>(), Array.Empty<string>()); 237return (Array.Empty<string>(), Array.Empty<string>());
Registry\RegistrySettings.cs (1)
85if (Array.Exists(insecureRegistries, registry => registryName.Equals(registry, StringComparison.OrdinalIgnoreCase)))
Tasks\CreateImageIndex.Interface.cs (2)
87GeneratedContainers = Array.Empty<ITaskItem>(); 92ImageTags = Array.Empty<string>();
Tasks\CreateNewImage.Interface.cs (10)
199ImageTags = Array.Empty<string>(); 202Entrypoint = Array.Empty<ITaskItem>(); 203EntrypointArgs = Array.Empty<ITaskItem>(); 204DefaultArgs = Array.Empty<ITaskItem>(); 205AppCommand = Array.Empty<ITaskItem>(); 206AppCommandArgs = Array.Empty<ITaskItem>(); 208Labels = Array.Empty<ITaskItem>(); 209ExposedPorts = Array.Empty<ITaskItem>(); 210ContainerEnvironmentVariables = Array.Empty<ITaskItem>(); 221GeneratedContainerNames = Array.Empty<ITaskItem>();
Tasks\ParseContainerProperties.cs (6)
72ContainerImageTags = Array.Empty<string>(); 73ContainerEnvironmentVariables = Array.Empty<ITaskItem>(); 80NewContainerTags = Array.Empty<string>(); 81NewContainerEnvironmentVariables = Array.Empty<ITaskItem>(); 103validTags = Array.Empty<string>(); 118validTags = Array.Empty<string>();
Microsoft.NET.Build.Tasks (59)
_generated\1\SdkVulnerabilitySummaryContext.SdkCveSummary.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary).GetProperty("Url", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\18\InstallStateJsonSerializerContext.InstallStateContents.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("UseWorkloadSets", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("Manifests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("WorkloadVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\2\SdkVulnerabilitySummaryContext.SdkVulnerabilitySummary.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkVulnerabilitySummary).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkVulnerabilitySummary).GetProperty("IsEol", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkVulnerabilitySummary).GetProperty("EolDate", InstanceMemberBindingFlags, null, typeof(global::System.DateTime?), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkVulnerabilitySummary).GetProperty("Cves", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkCveSummary>), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkVulnerabilitySummary).GetProperty("LatestSdkVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.NET.Build.Tasks.CheckSdkVulnerabilities.SdkVulnerabilitySummary).GetProperty("FeatureBandDiscontinued", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
AllowEmptyTelemetry.cs (1)
19EventData = Array.Empty<ITaskItem>();
ApplyImplicitVersions.cs (2)
17public ITaskItem[] PackageReferences { get; set; } = Array.Empty<ITaskItem>(); 19public ITaskItem[] ImplicitPackageReferenceVersions { get; set; } = Array.Empty<ITaskItem>();
CheckForDuplicateItems.cs (1)
37DeduplicatedItems = Array.Empty<ITaskItem>();
CheckForUnsupportedWinMDReferences.cs (1)
18public ITaskItem[] ReferencePaths { get; set; } = Array.Empty<ITaskItem>();
CheckIfPackageReferenceShouldBeFrameworkReference.cs (2)
13public ITaskItem[] PackageReferences { get; set; } = Array.Empty<ITaskItem>(); 15public ITaskItem[] FrameworkReferences { get; set; } = Array.Empty<ITaskItem>();
DependencyContextBuilder.cs (1)
547nativeLibraryGroups: Array.Empty<RuntimeAssetGroup>(),
GenerateDepsFile.cs (7)
52public ITaskItem[] AssemblySatelliteAssemblies { get; set; } = Array.Empty<ITaskItem>(); 60public ITaskItem[] ReferencePaths { get; set; } = Array.Empty<ITaskItem>(); 63public ITaskItem[] ReferenceDependencyPaths { get; set; } = Array.Empty<ITaskItem>(); 66public ITaskItem[] ReferenceSatellitePaths { get; set; } = Array.Empty<ITaskItem>(); 69public ITaskItem[] ReferenceAssemblies { get; set; } = Array.Empty<ITaskItem>(); 72public ITaskItem[] RuntimePackAssets { get; set; } = Array.Empty<ITaskItem>(); 308return Array.IndexOf(ValidRuntimeIdentifierPlatformsForAssets, platform.ToLowerInvariant()) == -1;
GenerateGlobalUsings.cs (1)
23Lines = Array.Empty<string>();
GetPackageDirectory.cs (2)
16public ITaskItem[] Items { get; set; } = Array.Empty<ITaskItem>(); 18public string[] PackageFolders { get; set; } = Array.Empty<string>();
GetPackagesToPrune.cs (1)
151return Array.Empty<TaskItem>();
PickBestRid.cs (1)
30public string[] SupportedRids { get; set; } = Array.Empty<string>();
ProcessFrameworkReferences.cs (10)
99public ITaskItem[] FrameworkReferences { get; set; } = Array.Empty<ITaskItem>(); 101public ITaskItem[] KnownFrameworkReferences { get; set; } = Array.Empty<ITaskItem>(); 103public ITaskItem[] KnownRuntimePacks { get; set; } = Array.Empty<ITaskItem>(); 105public ITaskItem[] KnownCrossgen2Packs { get; set; } = Array.Empty<ITaskItem>(); 107public ITaskItem[] KnownILCompilerPacks { get; set; } = Array.Empty<ITaskItem>(); 109public ITaskItem[] KnownILLinkPacks { get; set; } = Array.Empty<ITaskItem>(); 111public ITaskItem[] KnownWebAssemblySdkPacks { get; set; } = Array.Empty<ITaskItem>(); 113public ITaskItem[] KnownAspNetCorePacks { get; set; } = Array.Empty<ITaskItem>(); 915foreach (var aotPackRuntimeIdentifier in RuntimeIdentifiers ?? Array.Empty<string>()) 1338public readonly string[] RuntimePackLabels => item.GetMetadata(MetadataKeys.RuntimePackLabels) is string s ? s.Split([';'], StringSplitOptions.RemoveEmptyEntries) : Array.Empty<string>();
ResolveAppHosts.cs (1)
29public ITaskItem[] PackAsToolShimRuntimeIdentifiers { get; set; } = Array.Empty<ITaskItem>();
ResolveFrameworkReferences.cs (3)
14public ITaskItem[] FrameworkReferences { get; set; } = Array.Empty<ITaskItem>(); 16public ITaskItem[] ResolvedTargetingPacks { get; set; } = Array.Empty<ITaskItem>(); 18public ITaskItem[] ResolvedRuntimePacks { get; set; } = Array.Empty<ITaskItem>();
ResolveReadyToRunCompilers.cs (1)
129var supportedRIDsList = supportedRuntimeIdentifiers == null ? Array.Empty<string>() : supportedRuntimeIdentifiers.Split(';');
ResolveRuntimePackAssets.cs (3)
15public ITaskItem[] FrameworkReferences { get; set; } = Array.Empty<ITaskItem>(); 17public ITaskItem[] UnavailableRuntimePacks { get; set; } = Array.Empty<ITaskItem>(); 19public ITaskItem[] SatelliteResourceLanguages { get; set; } = Array.Empty<ITaskItem>();
ResolveTargetingPackAssets.cs (3)
15public ITaskItem[] FrameworkReferences { get; set; } = Array.Empty<ITaskItem>(); 17public ITaskItem[] ResolvedTargetingPacks { get; set; } = Array.Empty<ITaskItem>(); 19public ITaskItem[] RuntimeFrameworks { get; set; } = Array.Empty<ITaskItem>();
SelectRuntimeIdentifierSpecificItems.cs (1)
49SelectedItems = Array.Empty<ITaskItem>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (2)
131.Concat(_manifestRoots ?? Array.Empty<string>()).ToArray(); 135_manifestRoots ??= Array.Empty<string>();
ValidateExecutableReferences.cs (2)
19public ITaskItem[] ReferencedProjects { get; set; } = Array.Empty<ITaskItem>(); 61var targetFrameworkMonikerIndex = Array.FindIndex(project.GetMetadata("TargetFrameworks").Split(';'), targetFramework => targetFramework == nearestTargetFramework);
Microsoft.NET.HostModel (10)
Bundle\BundleContents.cs (1)
34IncludedFiles = System.Array.ConvertAll(includedFiles, x => x.Spec);
Bundle\Manifest.cs (1)
138bundleHash.TransformFinalBlock(Array.Empty<byte>(), 0, 0);
MachO\BinaryFormat\Blobs\CodeDirectoryBlob.cs (1)
150Array.Reverse(specialSlotHashes);
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (7)
26return Array.Empty<T>(); 28Array.Resize(ref _items, _count); 37Array.Copy(_items, destination, _count); 44Array.Resize(ref _items, 2 * _count + 1); 77Array.Copy(newItems, offset, _items, _count, length); 86Array.Copy(newItems._items, 0, _items, _count, newItems.Count); 109Array.Resize(ref _items, newCount);
Microsoft.NET.Sdk.Publish.Tasks (5)
MsDeploy\CommonUtility.cs (2)
947foreach (dynamic entry in deploymentSyncParameter?.Entries ?? Array.Empty<dynamic>()) 1813Array.Sort(versionArray);
MsDeploy\DynamicAssembly.cs (1)
156ParameterExpression[] parameters = eventParams?.Select(p => Expression.Parameter(p.ParameterType, p.Name)).ToArray() ?? Array.Empty<ParameterExpression>();
Tasks\GenerateEnvTransform.cs (1)
33foreach (var envTransformTemplatePath in EnvTransformTemplatePaths ?? Array.Empty<string>())
Tasks\MsDeploy\VsMsdeploy.cs (1)
405public void CopyTo(Array array, int index)
Microsoft.NET.Sdk.Razor.Tasks (3)
ReferenceResolver.cs (2)
114return Array.Empty<AssemblyItem>(); // not a managed assembly 147return Array.Empty<AssemblyItem>(); // not a managed assembly
src\sdk\src\RazorSdk\Tool\Client.cs (1)
176_ = await Stream.ReadAsync(Array.Empty<byte>(), 0, 0, cancellationToken);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (145)
_generated\0\StaticWebAssetsJsonSerializerContext.StaticWebAssetMatch.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetMatch).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetMatch).GetProperty("ContentRootIndex", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetMatch).GetProperty("SubPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\1\StaticWebAssetsJsonSerializerContext.StaticWebAssetNode.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode).GetProperty("Children", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode).GetProperty("Asset", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetMatch), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode).GetProperty("Patterns", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetPattern[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\11\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpointResponseHeader.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointResponseHeader).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointResponseHeader).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointResponseHeader).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\13\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpointSelector.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointSelector).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointSelector).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointSelector).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointSelector).GetProperty("Quality", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\15\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpointsManifest.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointsManifest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointsManifest).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointsManifest).GetProperty("ManifestType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointsManifest).GetProperty("Endpoints", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\16\StaticWebAssetsJsonSerializerContext.StaticWebAssetPackageManifest.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetPackageManifest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetPackageManifest).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetPackageManifest).GetProperty("ManifestType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetPackageManifest).GetProperty("Assets", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetPackageManifest).GetProperty("Endpoints", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\17\StaticWebAssetsJsonSerializerContext.StaticWebAssetsDiscoveryPattern.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsDiscoveryPattern).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsDiscoveryPattern).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsDiscoveryPattern).GetProperty("Source", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsDiscoveryPattern).GetProperty("ContentRoot", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsDiscoveryPattern).GetProperty("BasePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsDiscoveryPattern).GetProperty("Pattern", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\19\StaticWebAssetsJsonSerializerContext.StaticWebAssetsManifest.g.cs (11)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest).GetProperty("Hash", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest).GetProperty("Source", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest).GetProperty("BasePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest).GetProperty("Mode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest).GetProperty("ManifestType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest).GetProperty("ReferencedProjectsConfiguration", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration[]), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest).GetProperty("DiscoveryPatterns", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsDiscoveryPattern[]), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest).GetProperty("Assets", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset[]), global::System.Array.Empty<global::System.Type>(), null), 248AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest).GetProperty("Endpoints", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\2\StaticWebAssetsJsonSerializerContext.StaticWebAssetPattern.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetPattern).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetPattern).GetProperty("ContentRootIndex", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetPattern).GetProperty("Pattern", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetPattern).GetProperty("Depth", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\20\StaticWebAssetsJsonSerializerContext.ReferencedProjectConfiguration.g.cs (10)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("Identity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("Source", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("GetPublishAssetsTargets", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("AdditionalPublishProperties", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("AdditionalPublishPropertiesToRemove", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("GetBuildAssetsTargets", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("AdditionalBuildProperties", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("AdditionalBuildPropertiesToRemove", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\33\DefineStaticWebAssetsSerializerContext.CopyCandidate.g.cs (2)
70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate).GetProperty("Identity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 92AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate).GetProperty("TargetPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\34\DefineStaticWebAssetsSerializerContext.DefineStaticWebAssetsCache.g.cs (7)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.DefineStaticWebAssetsCache).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.DefineStaticWebAssetsCache).GetProperty("GlobalPropertiesHash", InstanceMemberBindingFlags, null, typeof(byte[]), global::System.Array.Empty<global::System.Type>(), null), 92AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.DefineStaticWebAssetsCache).GetProperty("FingerprintPatternsHash", InstanceMemberBindingFlags, null, typeof(byte[]), global::System.Array.Empty<global::System.Type>(), null), 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.DefineStaticWebAssetsCache).GetProperty("PropertyOverridesHash", InstanceMemberBindingFlags, null, typeof(byte[]), global::System.Array.Empty<global::System.Type>(), null), 136AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.DefineStaticWebAssetsCache).GetProperty("InputHashes", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.HashSet<string>), global::System.Array.Empty<global::System.Type>(), null), 158AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.DefineStaticWebAssetsCache).GetProperty("CachedAssets", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>), global::System.Array.Empty<global::System.Type>(), null), 180AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.DefineStaticWebAssetsCache).GetProperty("CachedCopyCandidates", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>), global::System.Array.Empty<global::System.Type>(), null),
_generated\35\DefineStaticWebAssetsSerializerContext.StaticWebAsset.g.cs (23)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("Identity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("SourceId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("SourceType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("ContentRoot", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 150AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("BasePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("RelativePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 190AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetKind", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 210AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetMode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 230AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetRole", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 250AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetMergeBehavior", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 270AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetMergeSource", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 290AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("RelatedAsset", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 310AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetTraitName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 330AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetTraitValue", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 350AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetGroups", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 370AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("Fingerprint", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 390AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("Integrity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 410AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("CopyToOutputDirectory", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 430AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("CopyToPublishDirectory", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 450AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("OriginalItemSpec", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 470AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("FileLength", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 490AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("LastWriteTime", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null),
_generated\4\StaticWebAssetsJsonSerializerContext.StaticWebAssetsDevelopmentManifest.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetsDevelopmentManifest).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetsDevelopmentManifest).GetProperty("ContentRoots", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetsDevelopmentManifest).GetProperty("Root", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode), global::System.Array.Empty<global::System.Type>(), null),
_generated\45\ImportMapSerializerContext.ImportMap.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.ImportMap).GetProperty("Imports", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.ImportMap).GetProperty("Scopes", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>), global::System.Array.Empty<global::System.Type>(), null), 112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.ImportMap).GetProperty("Integrity", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\5\StaticWebAssetsJsonSerializerContext.StaticWebAsset.g.cs (23)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("Identity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("SourceId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("SourceType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("ContentRoot", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("BasePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("RelativePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetKind", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetMode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetRole", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 248AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetMergeBehavior", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 268AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetMergeSource", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 288AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("RelatedAsset", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 308AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetTraitName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 328AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetTraitValue", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 348AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("AssetGroups", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 368AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("Fingerprint", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 388AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("Integrity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 408AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("CopyToOutputDirectory", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 428AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("CopyToPublishDirectory", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 448AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("OriginalItemSpec", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 468AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("FileLength", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 488AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset).GetProperty("LastWriteTime", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null),
_generated\7\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpoint.g.cs (7)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("Route", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("Order", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("AssetFile", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("Selectors", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointSelector[]), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("ResponseHeaders", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointResponseHeader[]), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("EndpointProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\9\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpointProperty.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Data\StaticWebAssetEndpoint.cs (4)
109Array.Sort(value); 135Array.Sort(value); 161Array.Sort(value); 203Array.Sort(result, (a, b) => (a.Route, b.Route) switch
DefineStaticWebAssetEndpoints.cs (1)
65Array.Sort(result, (x, y) => x.Priority.CompareTo(y.Priority));
GenerateStaticWebAssetEndpointsManifest.cs (1)
192Array.Sort(parsed, StringComparer.OrdinalIgnoreCase);
GenerateStaticWebAssetsDevelopmentManifest.cs (2)
69Array.Sort(assetsWithPathSegments); 77Array.Sort(discoveryPatternsByBasePath, (x, y) =>
GenerateStaticWebAssetsManifest.cs (2)
48Array.Sort(assets, (l, r) => string.CompareOrdinal(l.Identity, r.Identity)); 51Array.Sort(endpoints, (l, r) => string.CompareOrdinal(l.Route, r.Route) switch
JSModules\GenerateJSModuleManifest.cs (1)
30Array.Sort(modules, StringComparer.Ordinal);
MergeStaticWebAssets.cs (1)
31Array.Sort(assets, (a, b) => string.CompareOrdinal(a.Identity, b.Identity));
ReadStaticWebAssetsManifestFile.cs (1)
41Endpoints = manifest.Endpoints?.Select(a => a.ToTaskItem()).ToArray() ?? Array.Empty<ITaskItem>();
ScopedCss\ConcatenateCssFiles.cs (2)
36Array.Sort(ProjectBundles, _fullPathComparer); 38Array.Sort(ScopedCssFiles, _fullPathComparer);
ScopedCss\ConcatenateCssFiles50.cs (2)
36Array.Sort(ProjectBundles, _fullPathComparer); 38Array.Sort(ScopedCssFiles, _fullPathComparer);
ServiceWorker\GenerateServiceWorkerAssetsManifest.cs (1)
54Array.Sort(entries, (a, b) =>
StaticWebAssetsReadPackManifest.cs (1)
33AdditionalElementsToRemoveFromPacking = manifest.ElementsToRemove?.Select(e => new TaskItem(e)).ToArray() ?? Array.Empty<ITaskItem>();
UpdateExternallyDefinedStaticWebAssets.cs (1)
81var originalIndex = Array.FindIndex(assets, a => OSPath.PathComparer.Equals(a.Identity, asset.Identity));
Microsoft.NET.Sdk.WorkloadManifestReader (6)
_generated\8\InstallStateJsonSerializerContext.InstallStateContents.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("UseWorkloadSets", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("Manifests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("WorkloadVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
SdkDirectoryWorkloadManifestProvider.cs (2)
131.Concat(_manifestRoots ?? Array.Empty<string>()).ToArray(); 135_manifestRoots ??= Array.Empty<string>();
Microsoft.Private.Windows.Core (5)
System\Collections\Generic\ArrayBuilder.cs (1)
61Array.Resize(ref _items, newCapacity);
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (3)
499public static bool TryWriteArray(Stream stream, Array array) 503static bool Write(Stream stream, Array array) 690case Array arrayValue:
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
391/// Tries to get this object as an <see cref="Array"/> of primitive types.
Microsoft.SourceLink.AzureDevOpsServer.Git (4)
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (1)
52Log.LogMessage(CommonResources.NoWellFormedHostUrisSpecified, "'" + string.Join("','", (Hosts ?? Array.Empty<ITaskItem>()).Select(h => h.ItemSpec)) + "'");
src\sourcelink\src\Common\Utilities\SequenceComparer.cs (2)
41left ??= Array.Empty<T>(); 42right ??= Array.Empty<T>();
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
46parts = Array.Empty<string>();
Microsoft.SourceLink.AzureRepos.Git (4)
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (1)
52Log.LogMessage(CommonResources.NoWellFormedHostUrisSpecified, "'" + string.Join("','", (Hosts ?? Array.Empty<ITaskItem>()).Select(h => h.ItemSpec)) + "'");
src\sourcelink\src\Common\Utilities\SequenceComparer.cs (2)
41left ??= Array.Empty<T>(); 42right ??= Array.Empty<T>();
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
46parts = Array.Empty<string>();
Microsoft.SourceLink.Bitbucket.Git (4)
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (1)
52Log.LogMessage(CommonResources.NoWellFormedHostUrisSpecified, "'" + string.Join("','", (Hosts ?? Array.Empty<ITaskItem>()).Select(h => h.ItemSpec)) + "'");
src\sourcelink\src\Common\Utilities\SequenceComparer.cs (2)
41left ??= Array.Empty<T>(); 42right ??= Array.Empty<T>();
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
46parts = Array.Empty<string>();
Microsoft.SourceLink.Common (3)
src\sourcelink\src\Common\Utilities\SequenceComparer.cs (2)
41left ??= Array.Empty<T>(); 42right ??= Array.Empty<T>();
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
46parts = Array.Empty<string>();
Microsoft.SourceLink.Gitea (4)
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (1)
52Log.LogMessage(CommonResources.NoWellFormedHostUrisSpecified, "'" + string.Join("','", (Hosts ?? Array.Empty<ITaskItem>()).Select(h => h.ItemSpec)) + "'");
src\sourcelink\src\Common\Utilities\SequenceComparer.cs (2)
41left ??= Array.Empty<T>(); 42right ??= Array.Empty<T>();
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
46parts = Array.Empty<string>();
Microsoft.SourceLink.Gitee (4)
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (1)
52Log.LogMessage(CommonResources.NoWellFormedHostUrisSpecified, "'" + string.Join("','", (Hosts ?? Array.Empty<ITaskItem>()).Select(h => h.ItemSpec)) + "'");
src\sourcelink\src\Common\Utilities\SequenceComparer.cs (2)
41left ??= Array.Empty<T>(); 42right ??= Array.Empty<T>();
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
46parts = Array.Empty<string>();
Microsoft.SourceLink.GitHub (4)
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (1)
52Log.LogMessage(CommonResources.NoWellFormedHostUrisSpecified, "'" + string.Join("','", (Hosts ?? Array.Empty<ITaskItem>()).Select(h => h.ItemSpec)) + "'");
src\sourcelink\src\Common\Utilities\SequenceComparer.cs (2)
41left ??= Array.Empty<T>(); 42right ??= Array.Empty<T>();
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
46parts = Array.Empty<string>();
Microsoft.SourceLink.GitLab (4)
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (1)
52Log.LogMessage(CommonResources.NoWellFormedHostUrisSpecified, "'" + string.Join("','", (Hosts ?? Array.Empty<ITaskItem>()).Select(h => h.ItemSpec)) + "'");
src\sourcelink\src\Common\Utilities\SequenceComparer.cs (2)
41left ??= Array.Empty<T>(); 42right ??= Array.Empty<T>();
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
46parts = Array.Empty<string>();
Microsoft.SourceLink.GitWeb (4)
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (1)
52Log.LogMessage(CommonResources.NoWellFormedHostUrisSpecified, "'" + string.Join("','", (Hosts ?? Array.Empty<ITaskItem>()).Select(h => h.ItemSpec)) + "'");
src\sourcelink\src\Common\Utilities\SequenceComparer.cs (2)
41left ??= Array.Empty<T>(); 42right ??= Array.Empty<T>();
src\sourcelink\src\Common\Utilities\UriUtilities.cs (1)
46parts = Array.Empty<string>();
Microsoft.TemplateEngine.Cli (20)
Alias\AliasManipulationResult.cs (1)
17AliasTokens = aliasTokens ?? Array.Empty<string>();
Commands\create\InstantiateCommand.cs (1)
415ParseResult parseResult = parser.Parse(args.RemainingArguments ?? Array.Empty<string>(), ParserFactory.ParserConfiguration);
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
188ParseResult result = ParserFactory.CreateParser(reparseCommand).Parse(args.RemainingArguments ?? Array.Empty<string>());
Commands\create\TemplateCommand.cs (2)
149return Array.Empty<TemplateConstraintResult>(); 157return Array.Empty<TemplateConstraintResult>();
Commands\Extensions.cs (1)
44allowedValues ??= Array.Empty<string>();
HostSpecificTemplateData.cs (2)
93UsageExamples = usageExamples?.ToArray() ?? Array.Empty<string>(); 97public IReadOnlyList<string> UsageExamples { get; } = Array.Empty<string>();
JExtensions.cs (3)
164return Array.Empty<KeyValuePair<string, JsonNode?>>(); 172return Array.Empty<KeyValuePair<string, JsonNode?>>(); 201return Array.Empty<string>();
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (2)
271return Array.Empty<string>(); 279return Array.Empty<string>();
TabularOutput\CliTabularOutputSettings.cs (1)
25ColumnsToDisplay = columnsToDisplay ?? Array.Empty<string>();
TemplateResolution\CliFilters.cs (1)
86internal static Func<ITemplateInfo, IEnumerable<MatchInfo>>? EmptyTemplateParameterFilter() => (templateInfo) => Array.Empty<MatchInfo>();
TemplateResolution\TemplateGroupMatchInfo.cs (5)
85return Array.Empty<ITemplateMatchInfo>(); 104return Array.Empty<ITemplateMatchInfo>(); 127return Array.Empty<ITemplateMatchInfo>(); 150return Array.Empty<ITemplateMatchInfo>(); 213Array.Empty<ITemplateMatchInfo>(),
Microsoft.TemplateEngine.Edge (58)
_generated\0\GlobalSettingsJsonSerializerContext.TemplatePackageData.g.cs (4)
68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData).GetProperty("InstallerId", InstanceMemberBindingFlags, null, typeof(global::System.Guid), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData).GetProperty("LastChangeTime", InstanceMemberBindingFlags, null, typeof(global::System.DateTime), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData).GetProperty("MountPointUri", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\1\GlobalSettingsJsonSerializerContext.GlobalSettingsData.g.cs (1)
68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.BuiltInManagedProvider.GlobalSettingsData).GetProperty("Packages", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>), global::System.Array.Empty<global::System.Type>(), null),
_generated\10\SettingsStoreJsonSerializerContext.SettingsStore.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.SettingsStore).GetProperty("ComponentGuidToAssemblyQualifiedName", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.SettingsStore).GetProperty("ProbingPaths", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.HashSet<string>), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.SettingsStore).GetProperty("ComponentTypeToGuidList", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>), global::System.Array.Empty<global::System.Type>(), null),
_generated\21\TemplateCacheJsonSerializerContext.TemplateConstraintInfo.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo).GetProperty("Args", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\22\TemplateCacheJsonSerializerContext.IBaselineInfo.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.IBaselineInfo).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.IBaselineInfo).GetProperty("DefaultOverrides", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\23\TemplateCacheJsonSerializerContext.ITemplateParameter.g.cs (13)
68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("Documentation", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 129AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("Priority", InstanceMemberBindingFlags, null, typeof(global::Microsoft.TemplateEngine.Abstractions.TemplateParameterPriority), global::System.Array.Empty<global::System.Type>(), null), 149AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("Precedence", InstanceMemberBindingFlags, null, typeof(global::Microsoft.TemplateEngine.Abstractions.TemplateParameterPrecedence), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 191AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("IsName", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 211AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("DefaultValue", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 231AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("DataType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 252AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("Choices", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, global::Microsoft.TemplateEngine.Abstractions.ParameterChoice>), global::System.Array.Empty<global::System.Type>(), null), 272AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 292AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("AllowMultipleValues", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 312AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter).GetProperty("DefaultIfOptionWithoutValue", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\24\TemplateCacheJsonSerializerContext.ParameterChoice.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ParameterChoice).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.ParameterChoice).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\27\TemplateCacheJsonSerializerContext.TemplateParameterPrecedence.g.cs (5)
68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.TemplateParameterPrecedence).GetProperty("PrecedenceDefinition", InstanceMemberBindingFlags, null, typeof(global::Microsoft.TemplateEngine.Abstractions.PrecedenceDefinition), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.TemplateParameterPrecedence).GetProperty("IsRequiredCondition", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.TemplateParameterPrecedence).GetProperty("IsEnabledCondition", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.TemplateParameterPrecedence).GetProperty("IsRequired", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Abstractions.TemplateParameterPrecedence).GetProperty("CanBeRequired", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\29\TemplateCacheJsonSerializerContext.TemplateCache.g.cs (4)
68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache).GetProperty("Locale", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache).GetProperty("TemplateInfo", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache).GetProperty("MountPointsInfo", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.DateTime>), global::System.Array.Empty<global::System.Type>(), null),
_generated\30\TemplateCacheJsonSerializerContext.TemplateInfo.g.cs (22)
68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("ParameterDefinitions", InstanceMemberBindingFlags, null, typeof(global::Microsoft.TemplateEngine.Abstractions.Parameters.IParameterDefinitionSet), global::System.Array.Empty<global::System.Type>(), null), 111AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("MountPointUri", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 132AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Author", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 152AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Classifications", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 174AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("DefaultName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 194AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 214AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Identity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 235AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("GeneratorId", InstanceMemberBindingFlags, null, typeof(global::System.Guid), global::System.Array.Empty<global::System.Type>(), null), 255AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("GroupIdentity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 275AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Precedence", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 295AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 316AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("ShortNameList", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 337AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("PreferDefaultName", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 357AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("ConfigPlace", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 378AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("LocaleConfigPlace", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 398AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("HostConfigPlace", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 418AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("ThirdPartyNotices", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 438AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("BaselineInfo", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, global::Microsoft.TemplateEngine.Abstractions.IBaselineInfo>), global::System.Array.Empty<global::System.Type>(), null), 460AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("TagsCollection", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 482AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("HostData", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 502AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("PostActions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::System.Guid>), global::System.Array.Empty<global::System.Type>(), null), 524AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Constraints", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.TemplateEngine.Utils (1)
ArrayExtensions.cs (1)
20Array.Copy(arg, 0, combinedArray, nextIndex, arg.Length);
Microsoft.TestPlatform.AdapterUtilities (1)
TestIdProvider.cs (1)
85_sha.TransformFinalBlock(Array.Empty<byte>(), 0, 0);
Microsoft.TestPlatform.CommunicationUtilities (252)
_generated\10\TestPlatformJsonContext.PayloadedMessageStartTestSessionAckPayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionAckPayload>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionAckPayload>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionAckPayload), global::System.Array.Empty<global::System.Type>(), null),
_generated\100\TestPlatformJsonContext.Exception.g.cs (9)
35ConstructorAttributeProviderFactory = static () => typeof(global::System.Exception).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::System.Exception).GetProperty("Data", InstanceMemberBindingFlags, null, typeof(global::System.Collections.IDictionary), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::System.Exception).GetProperty("HelpLink", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::System.Exception).GetProperty("HResult", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 129AttributeProviderFactory = static () => typeof(global::System.Exception).GetProperty("InnerException", InstanceMemberBindingFlags, null, typeof(global::System.Exception), global::System.Array.Empty<global::System.Type>(), null), 149AttributeProviderFactory = static () => typeof(global::System.Exception).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::System.Exception).GetProperty("Source", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 190AttributeProviderFactory = static () => typeof(global::System.Exception).GetProperty("StackTrace", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 210AttributeProviderFactory = static () => typeof(global::System.Exception).GetProperty("TargetSite", InstanceMemberBindingFlags, null, typeof(global::System.Reflection.MethodBase), global::System.Array.Empty<global::System.Type>(), null),
_generated\11\TestPlatformJsonContext.PayloadedMessageStopTestSessionAckPayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StopTestSessionAckPayload>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StopTestSessionAckPayload>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StopTestSessionAckPayload), global::System.Array.Empty<global::System.Type>(), null),
_generated\12\TestPlatformJsonContext.PayloadedMessageTestRunChangedEventArgs.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs), global::System.Array.Empty<global::System.Type>(), null),
_generated\13\TestPlatformJsonContext.PayloadedMessageEditorAttachDebuggerPayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.EditorAttachDebuggerPayload>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.EditorAttachDebuggerPayload>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.EditorAttachDebuggerPayload), global::System.Array.Empty<global::System.Type>(), null),
_generated\14\TestPlatformJsonContext.PayloadedMessageTelemetryEvent.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TelemetryEvent>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TelemetryEvent>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TelemetryEvent), global::System.Array.Empty<global::System.Type>(), null),
_generated\15\TestPlatformJsonContext.PayloadedMessageTestProcessStartInfo.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessStartInfo>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessStartInfo>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessStartInfo), global::System.Array.Empty<global::System.Type>(), null),
_generated\16\TestPlatformJsonContext.PayloadedMessageIEnumerableTestCase.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>), global::System.Array.Empty<global::System.Type>(), null),
_generated\17\TestPlatformJsonContext.PayloadedMessageListTestCase.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>), global::System.Array.Empty<global::System.Type>(), null),
_generated\18\TestPlatformJsonContext.PayloadedMessageInt32.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<int>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<int>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\19\TestPlatformJsonContext.VersionedMessageEnvelope.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.VersionedMessageEnvelope).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.VersionedMessageEnvelope).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.VersionedMessageEnvelope).GetProperty("MessageType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.VersionedMessageEnvelope).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::System.Text.Json.JsonElement?), global::System.Array.Empty<global::System.Type>(), null),
_generated\2\TestPlatformJsonContext.AfterTestRunEndResult.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.Common.DataCollection.AfterTestRunEndResult).GetProperty("AttachmentSets", InstanceMemberBindingFlags, null, typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.Common.DataCollection.AfterTestRunEndResult).GetProperty("InvokedDataCollectors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.InvokedDataCollector>), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.Common.DataCollection.AfterTestRunEndResult).GetProperty("Metrics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
_generated\20\TestPlatformJsonContext.VersionedMessageForSerialization.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.VersionedMessageForSerialization).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.VersionedMessageForSerialization).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.VersionedMessageForSerialization).GetProperty("MessageType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.VersionedMessageForSerialization).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null),
_generated\21\TestPlatformJsonContext.BeforeTestRunStartPayload.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.BeforeTestRunStartPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.BeforeTestRunStartPayload).GetProperty("SettingsXml", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.BeforeTestRunStartPayload).GetProperty("Sources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.BeforeTestRunStartPayload).GetProperty("IsTelemetryOptedIn", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\22\TestPlatformJsonContext.DiscoveryCompletePayload.g.cs (10)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetProperty("TotalTests", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetProperty("LastDiscoveredTests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetProperty("IsAborted", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetProperty("Metrics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetProperty("FullyDiscoveredSources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<string>), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetProperty("PartiallyDiscoveredSources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<string>), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetProperty("NotDiscoveredSources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<string>), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetProperty("SkippedDiscoverySources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<string>), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetProperty("DiscoveredExtensions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>), global::System.Array.Empty<global::System.Type>(), null),
_generated\23\TestPlatformJsonContext.TestHostLaunchedPayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestHostLaunchedPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestHostLaunchedPayload).GetProperty("ProcessId", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\24\TestPlatformJsonContext.TestMessagePayload.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestMessagePayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestMessagePayload).GetProperty("MessageLevel", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging.TestMessageLevel), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestMessagePayload).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\25\TestPlatformJsonContext.TestRunAttachmentsProcessingCompletePayload.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingCompletePayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingCompletePayload).GetProperty("AttachmentsProcessingCompleteEventArgs", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingCompleteEventArgs), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingCompletePayload).GetProperty("Attachments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>), global::System.Array.Empty<global::System.Type>(), null),
_generated\26\TestPlatformJsonContext.TestRunAttachmentsProcessingProgressPayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingProgressPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingProgressPayload).GetProperty("AttachmentsProcessingProgressEventArgs", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingProgressEventArgs), global::System.Array.Empty<global::System.Type>(), null),
_generated\27\TestPlatformJsonContext.TestRunCompletePayload.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunCompletePayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunCompletePayload).GetProperty("TestRunCompleteArgs", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunCompletePayload).GetProperty("LastRunTests", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunCompletePayload).GetProperty("RunAttachments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.ICollection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunCompletePayload).GetProperty("ExecutorUris", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.ICollection<string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\28\TestPlatformJsonContext.TestRunStatsPayload.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunStatsPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunStatsPayload).GetProperty("TestRunChangedArgs", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunStatsPayload).GetProperty("InProgressTestCases", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>), global::System.Array.Empty<global::System.Type>(), null),
_generated\29\TestPlatformJsonContext.AttachmentSet.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet).GetProperty("Uri", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet).GetProperty("Attachments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.UriDataAttachment>), global::System.Array.Empty<global::System.Type>(), null),
_generated\3\TestPlatformJsonContext.BeforeTestRunStartResult.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.Common.DataCollection.BeforeTestRunStartResult).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.Common.DataCollection.BeforeTestRunStartResult).GetProperty("DataCollectionEventsPort", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\30\TestPlatformJsonContext.CustomHostLaunchAckPayload.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.CustomHostLaunchAckPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.CustomHostLaunchAckPayload).GetProperty("HostProcessId", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.CustomHostLaunchAckPayload).GetProperty("ErrorMessage", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\31\TestPlatformJsonContext.DiscoveryCriteria.g.cs (9)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryCriteria).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryCriteria).GetProperty("Sources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryCriteria).GetProperty("Package", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryCriteria).GetProperty("AdapterSourceMap", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryCriteria).GetProperty("FrequencyOfDiscoveredTestsEvent", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 150AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryCriteria).GetProperty("DiscoveredTestEventTimeout", InstanceMemberBindingFlags, null, typeof(global::System.TimeSpan), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryCriteria).GetProperty("RunSettings", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 190AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryCriteria).GetProperty("TestCaseFilter", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 210AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryCriteria).GetProperty("TestSessionInfo", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo), global::System.Array.Empty<global::System.Type>(), null),
_generated\32\TestPlatformJsonContext.DiscoveryRequestPayload.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryRequestPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryRequestPayload).GetProperty("Sources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryRequestPayload).GetProperty("RunSettings", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryRequestPayload).GetProperty("TestPlatformOptions", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestPlatformOptions), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryRequestPayload).GetProperty("TestSessionInfo", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo), global::System.Array.Empty<global::System.Type>(), null),
_generated\33\TestPlatformJsonContext.EditorAttachDebuggerAckPayload.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.EditorAttachDebuggerAckPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.EditorAttachDebuggerAckPayload).GetProperty("Attached", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.EditorAttachDebuggerAckPayload).GetProperty("ErrorMessage", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\34\TestPlatformJsonContext.FilterOptions.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.FilterOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.FilterOptions).GetProperty("FilterRegEx", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.FilterOptions).GetProperty("FilterRegExReplacement", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\35\TestPlatformJsonContext.ITestHostLauncher.g.cs (1)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Interfaces.ITestHostLauncher).GetProperty("IsDebug", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\36\TestPlatformJsonContext.ITestRunStatistics.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics).GetProperty("Stats", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestOutcome, long>), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics).GetProperty("ExecutedTests", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
_generated\37\TestPlatformJsonContext.StartTestSessionAckPayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionAckPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionAckPayload).GetProperty("EventArgs", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.StartTestSessionCompleteEventArgs), global::System.Array.Empty<global::System.Type>(), null),
_generated\38\TestPlatformJsonContext.StartTestSessionPayload.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionPayload).GetProperty("Sources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<string>), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionPayload).GetProperty("RunSettings", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionPayload).GetProperty("IsDebuggingEnabled", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionPayload).GetProperty("HasCustomHostLauncher", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StartTestSessionPayload).GetProperty("TestPlatformOptions", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestPlatformOptions), global::System.Array.Empty<global::System.Type>(), null),
_generated\39\TestPlatformJsonContext.StopTestSessionAckPayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StopTestSessionAckPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StopTestSessionAckPayload).GetProperty("EventArgs", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.StopTestSessionCompleteEventArgs), global::System.Array.Empty<global::System.Type>(), null),
_generated\4\TestPlatformJsonContext.MessageEnvelope.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.MessageEnvelope).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.MessageEnvelope).GetProperty("MessageType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.MessageEnvelope).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::System.Text.Json.JsonElement?), global::System.Array.Empty<global::System.Type>(), null),
_generated\40\TestPlatformJsonContext.StopTestSessionPayload.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StopTestSessionPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StopTestSessionPayload).GetProperty("TestSessionInfo", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Payloads.StopTestSessionPayload).GetProperty("CollectMetrics", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\41\TestPlatformJsonContext.StartTestSessionCompleteEventArgs.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.StartTestSessionCompleteEventArgs).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.StartTestSessionCompleteEventArgs).GetProperty("TestSessionInfo", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.StartTestSessionCompleteEventArgs).GetProperty("Metrics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
_generated\42\TestPlatformJsonContext.StopTestSessionCompleteEventArgs.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.StopTestSessionCompleteEventArgs).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.StopTestSessionCompleteEventArgs).GetProperty("TestSessionInfo", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.StopTestSessionCompleteEventArgs).GetProperty("Metrics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.StopTestSessionCompleteEventArgs).GetProperty("IsStopped", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\43\TestPlatformJsonContext.TestPlatformOptions.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestPlatformOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestPlatformOptions).GetProperty("TestCaseFilter", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestPlatformOptions).GetProperty("FilterOptions", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.FilterOptions), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestPlatformOptions).GetProperty("CollectMetrics", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestPlatformOptions).GetProperty("SkipDefaultAdapters", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\44\TestPlatformJsonContext.TestRunAttachmentsProcessingCompleteEventArgs.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingCompleteEventArgs).GetProperty("IsCanceled", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingCompleteEventArgs).GetProperty("Error", InstanceMemberBindingFlags, null, typeof(global::System.Exception), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingCompleteEventArgs).GetProperty("Metrics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
_generated\45\TestPlatformJsonContext.TestRunAttachmentsProcessingPayload.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingPayload).GetProperty("Attachments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingPayload).GetProperty("InvokedDataCollectors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.InvokedDataCollector>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingPayload).GetProperty("RunSettings", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingPayload).GetProperty("CollectMetrics", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\46\TestPlatformJsonContext.TestRunAttachmentsProcessingProgressEventArgs.g.cs (4)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingProgressEventArgs).GetProperty("CurrentAttachmentProcessorIndex", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingProgressEventArgs).GetProperty("CurrentAttachmentProcessorUris", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.ICollection<global::System.Uri>), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingProgressEventArgs).GetProperty("CurrentAttachmentProcessorProgress", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 129AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunAttachmentsProcessingProgressEventArgs).GetProperty("AttachmentProcessorsCount", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
_generated\47\TestPlatformJsonContext.TestRunChangedEventArgs.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs).GetProperty("NewTestResults", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult>), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs).GetProperty("TestRunStatistics", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunChangedEventArgs).GetProperty("ActiveTests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>), global::System.Array.Empty<global::System.Type>(), null),
_generated\48\TestPlatformJsonContext.TestRunCompleteEventArgs.g.cs (9)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("TestRunStatistics", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestRunStatistics), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("IsCanceled", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("IsAborted", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("Error", InstanceMemberBindingFlags, null, typeof(global::System.Exception), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("AttachmentSets", InstanceMemberBindingFlags, null, typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>), global::System.Array.Empty<global::System.Type>(), null), 169AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("InvokedDataCollectors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.InvokedDataCollector>), global::System.Array.Empty<global::System.Type>(), null), 190AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("ElapsedTimeInRunningTests", InstanceMemberBindingFlags, null, typeof(global::System.TimeSpan), global::System.Array.Empty<global::System.Type>(), null), 210AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("Metrics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null), 230AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("DiscoveredExtensions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>), global::System.Array.Empty<global::System.Type>(), null),
_generated\49\TestPlatformJsonContext.TestRunCriteria.g.cs (14)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("Sources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("AdapterSourceMap", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("Tests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("TestCaseFilter", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("FilterOptions", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.FilterOptions), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("TestSessionInfo", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("DebugEnabledForTestSession", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("HasSpecificTests", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("HasSpecificSources", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 248AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria).GetProperty("KeepAlive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 268AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria).GetProperty("TestRunSettings", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 288AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria).GetProperty("TestHostLauncher", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.Interfaces.ITestHostLauncher), global::System.Array.Empty<global::System.Type>(), null), 308AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria).GetProperty("FrequencyOfRunStatsChangeEvent", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 328AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.BaseTestRunCriteria).GetProperty("RunStatsChangeEventTimeout", InstanceMemberBindingFlags, null, typeof(global::System.TimeSpan), global::System.Array.Empty<global::System.Type>(), null),
_generated\5\TestPlatformJsonContext.PayloadedMessageDiscoveryCompletePayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload), global::System.Array.Empty<global::System.Type>(), null),
_generated\50\TestPlatformJsonContext.TestRunRequestPayload.g.cs (8)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload).GetProperty("Sources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload).GetProperty("TestCases", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload).GetProperty("RunSettings", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload).GetProperty("KeepAlive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload).GetProperty("DebuggingEnabled", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload).GetProperty("TestPlatformOptions", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestPlatformOptions), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunRequestPayload).GetProperty("TestSessionInfo", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo), global::System.Array.Empty<global::System.Type>(), null),
_generated\51\TestPlatformJsonContext.TestRunStatistics.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics).GetProperty("ExecutedTests", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics).GetProperty("Stats", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestOutcome, long>), global::System.Array.Empty<global::System.Type>(), null),
_generated\52\TestPlatformJsonContext.TestSessionInfo.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestSessionInfo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::System.Guid), global::System.Array.Empty<global::System.Type>(), null),
_generated\53\TestPlatformJsonContext.EditorAttachDebuggerPayload.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.EditorAttachDebuggerPayload).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.EditorAttachDebuggerPayload).GetProperty("ProcessID", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.EditorAttachDebuggerPayload).GetProperty("TargetFramework", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.EditorAttachDebuggerPayload).GetProperty("Sources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.ICollection<string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\54\TestPlatformJsonContext.InvokedDataCollector.g.cs (5)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.InvokedDataCollector).GetProperty("Uri", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.InvokedDataCollector).GetProperty("FriendlyName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.InvokedDataCollector).GetProperty("AssemblyQualifiedName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 131AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.InvokedDataCollector).GetProperty("FilePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 152AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.InvokedDataCollector).GetProperty("HasAttachmentProcessor", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\56\TestPlatformJsonContext.TelemetryEvent.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TelemetryEvent).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TelemetryEvent).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
_generated\57\TestPlatformJsonContext.TestCase.g.cs (12)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("LocalExtensionData", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::System.Guid), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("FullyQualifiedName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 152AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("ExecutorUri", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 174AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("Source", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 196AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("CodeFilePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 216AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("LineNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 236AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>), global::System.Array.Empty<global::System.Type>(), null), 257AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>), global::System.Array.Empty<global::System.Type>(), null), 278AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Traits", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TraitCollection), global::System.Array.Empty<global::System.Type>(), null),
_generated\59\TestPlatformJsonContext.TestObject.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Traits", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TraitCollection), global::System.Array.Empty<global::System.Type>(), null),
_generated\6\TestPlatformJsonContext.PayloadedMessageTestMessagePayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestMessagePayload>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestMessagePayload>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestMessagePayload), global::System.Array.Empty<global::System.Type>(), null),
_generated\61\TestPlatformJsonContext.TestProcessAttachDebuggerPayload.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessAttachDebuggerPayload).GetProperty("ProcessID", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessAttachDebuggerPayload).GetProperty("TargetFramework", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\62\TestPlatformJsonContext.TestProcessStartInfo.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessStartInfo).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessStartInfo).GetProperty("FileName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessStartInfo).GetProperty("Arguments", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessStartInfo).GetProperty("WorkingDirectory", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessStartInfo).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProcessStartInfo).GetProperty("CustomProperties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\63\TestPlatformJsonContext.TestProperty.g.cs (7)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("Label", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 112AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("Category", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 134AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 156AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("ValidateValueCallback", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.ValidateValueCallback), global::System.Array.Empty<global::System.Type>(), null), 176AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("Attributes", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPropertyAttributes), global::System.Array.Empty<global::System.Type>(), null), 196AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty).GetProperty("ValueType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\65\TestPlatformJsonContext.TestResult.g.cs (14)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("TestCase", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestCase), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("Attachments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.AttachmentSet>), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("Outcome", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestOutcome), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("ErrorMessage", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 150AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("ErrorStackTrace", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 190AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("Messages", InstanceMemberBindingFlags, null, typeof(global::System.Collections.ObjectModel.Collection<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResultMessage>), global::System.Array.Empty<global::System.Type>(), null), 211AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("ComputerName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 231AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("Duration", InstanceMemberBindingFlags, null, typeof(global::System.TimeSpan), global::System.Array.Empty<global::System.Type>(), null), 251AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("StartTime", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null), 271AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("EndTime", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null), 291AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>), global::System.Array.Empty<global::System.Type>(), null), 312AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty>), global::System.Array.Empty<global::System.Type>(), null), 333AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject).GetProperty("Traits", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TraitCollection), global::System.Array.Empty<global::System.Type>(), null),
_generated\66\TestPlatformJsonContext.TestResultMessage.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResultMessage).GetProperty("Category", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResultMessage).GetProperty("Text", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\67\TestPlatformJsonContext.Trait.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Trait).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\69\TestPlatformJsonContext.UriDataAttachment.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.UriDataAttachment).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.UriDataAttachment).GetProperty("Uri", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
_generated\7\TestPlatformJsonContext.PayloadedMessageTestRunAttachmentsProcessingCompletePayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingCompletePayload>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingCompletePayload>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingCompletePayload), global::System.Array.Empty<global::System.Type>(), null),
_generated\8\TestPlatformJsonContext.PayloadedMessageTestRunAttachmentsProcessingProgressPayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingProgressPayload>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingProgressPayload>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunAttachmentsProcessingProgressPayload), global::System.Array.Empty<global::System.Type>(), null),
_generated\9\TestPlatformJsonContext.PayloadedMessageTestRunCompletePayload.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunCompletePayload>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.JsonDataSerializer.PayloadedMessage<global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunCompletePayload>).GetProperty("Payload", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.TestRunCompletePayload), global::System.Array.Empty<global::System.Type>(), null),
_generated\90\TestPlatformJsonContext.KeyValuePairTestPropertyObject.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>).GetProperty("Key", InstanceMemberBindingFlags, null, typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::System.Collections.Generic.KeyValuePair<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestProperty, object>).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
583Array.Copy(hashedLockName.ComputeHash(Encoding.UTF8.GetBytes(dumpFileNameFullPath)), toGuid, 16);
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Hosting\DotnetTestHostManager.cs (1)
852.ToArray() ?? Array.Empty<string>();
Microsoft.TestPlatform.Utilities (2)
CodeCoverageDataAttachmentsHandler.cs (2)
38private static Array? s_mergeOperationEnumValues; 177var mergeOperationEnum = Array.Find(types, d => d.Name == CoverageMergeOperationName)!;
Microsoft.VisualBasic.Core (37)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (3)
981Array.Resize(packedIndexes, packedIndexes.Length + 1) 1054Array.Resize(packedIndexes, packedIndexes.Length + 1) 1238argNames = Array.Empty(Of String)()
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (4)
517Dim ary As Array 519ary = CType(o, Array) 753Dim ary As Array 756ary = CType(o, Array)
Microsoft\VisualBasic\CompilerServices\NewLateBinding.vb (1)
854Instance, Nothing, MemberName, Arguments, Array.Empty(Of String)(),
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (3)
387ElseIf TypeOf obj1 Is Char() AndAlso CType(obj1, Array).Rank = 1 Then 399ElseIf TypeOf obj2 Is Char() AndAlso CType(obj2, Array).Rank = 1 Then 434ElseIf TypeOf obj1 Is Char() AndAlso CType(obj1, Array).Rank = 1 Then
Microsoft\VisualBasic\CompilerServices\Symbols.vb (9)
58Friend Shared ReadOnly NoArguments As Object() = Array.Empty(Of Object)() 59Friend Shared ReadOnly NoArgumentNames As String() = Array.Empty(Of String)() 60Friend Shared ReadOnly NoTypeArguments As Type() = Array.Empty(Of Type)() 61Friend Shared ReadOnly NoTypeParameters As Type() = Array.Empty(Of Type)() 857Private Shared ReadOnly s_noMembers As MemberInfo() = Array.Empty(Of MemberInfo)() 989Array.Sort(Of MemberInfo)(result, InheritanceSorter.Instance) 1044Array.Sort(result, InheritanceSorter.Instance) 1150Dim arrayInstance As Array = DirectCast(_instance, System.Array) 1199Dim arrayInstance As Array = DirectCast(_instance, System.Array)
Microsoft\VisualBasic\CompilerServices\Utils.vb (6)
80Public Shared Function CopyArray(arySrc As Global.System.Array, aryDest As Global.System.Array) As Global.System.Array 111Global.System.Array.Copy(arySrc, i * lenSrcLastRank, aryDest, i * lenDestLastRank, lenCopy) 114Global.System.Array.Copy(arySrc, aryDest, lLength) 351Dim [property] As PropertyInfo = MemberInfo.GetProperty("MetadataToken", GetType(Integer), Array.Empty(Of Type)())
Microsoft\VisualBasic\CompilerServices\VB6File.vb (1)
2295If TypeOf value Is Char() AndAlso CType(value, Array).Rank = 1 Then
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (1)
1998args = Array.Empty(Of Object)()
Microsoft\VisualBasic\FileIO\FileSystem.vb (3)
2205Array.Copy(sourceArray:=m_PreviousCharBuffer, sourceIndex:=0, 2218Array.Copy(sourceArray:=CharBuffer, sourceIndex:=(CharBuffer.Length - m_SearchText.Length), 2260Private m_PreviousCharBuffer() As Char = Array.Empty(Of Char)() ' The cached character array from previous call to IsTextExist.
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (3)
696Array.Copy(m_Buffer, m_Position, m_Buffer, 0, ContentLength) 734Array.Copy(m_Buffer, TempArray, m_Buffer.Length) 1431Private m_CommentTokens() As String = Array.Empty(Of String)()
Microsoft\VisualBasic\Information.vb (2)
488Dim ary As Array 489ary = CType(VarName, Array)
Microsoft\VisualBasic\Strings.vb (1)
2240Private Function IsArrayEmpty(ByVal array As System.Array) As Boolean
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
Nuget.Frameworks\CompatibilityProvider.cs (2)
127targetFrameworks = Array.Empty<NuGetFramework>(); 140candidateFrameworks = Array.Empty<NuGetFramework>();
TraitCollection.cs (1)
70return Array.Empty<Trait>();
Utilities\EqtHash.cs (1)
38Array.Copy(hash, toGuid, 16);
Microsoft.Win32.Registry (11)
Microsoft\Win32\RegistryKey.cs (11)
764return Array.Empty<string>(); 789Array.Resize(ref names, names.Length * 2); 806Array.Resize(ref names, cpt); 850return Array.Empty<string>(); 888Array.Resize(ref names, names.Length * 2); 904Array.Resize(ref names, names.Length * 2); 940Array.Resize(ref names, cpt); 1129string[] strings = Array.Empty<string>(); 1149Array.Resize(ref strings, count == 0 ? 4 : count * 2); 1156Array.Resize(ref strings, count); 1381else if (value is Array)
Microsoft.Win32.SystemEvents (1)
Microsoft\Win32\SystemEvents.cs (1)
729current.DynamicInvoke(Array.Empty<object>());
Mono.Cecil (33)
Mono.Cecil.Cil\CodeWriter.cs (1)
124 Array.Copy (buffer, start_position, body_bytes, 0, body_size);
Mono.Cecil.Cil\Symbols.cs (1)
1171 Array.Copy (header.Entries, entries, header.Entries.Length);
Mono.Cecil.PE\ByteBuffer.cs (4)
141 Array.Reverse (bytes); 154 Array.Reverse (bytes); 311 Array.Reverse (bytes); 321 Array.Reverse (bytes);
Mono.Cecil\AssemblyNameReference.cs (2)
99 Array.Copy (hash, (hash.Length - 8), local_public_key_token, 0, 8); 100 Array.Reverse (local_public_key_token, 0, 8);
Mono.Cecil\AssemblyWriter.cs (2)
230 Array.Copy (this.rows, rows, this.rows.Length); 1530 Array.Sort (items, 0, size, new GenericParameterComparer ());
Mono.Cecil\BaseAssemblyResolver.cs (1)
96 Array.Copy (this.directories.items, directories, directories.Length);
Mono.Collections.Generic\Collection.cs (8)
140 return Array.IndexOf (items, item, 0, size); 187 Array.Clear (items, 0, size); 194 Array.Copy (items, 0, array, arrayIndex, size); 200 Array.Copy (items, 0, array, 0, size); 216 Array.Copy (items, start, items, start + delta, size - start); 221 Array.Clear (items, size, -delta); 330 void ICollection.CopyTo (Array array, int index) 332 Array.Copy (items, 0, array, index, size);
Mono.Collections.Generic\ReadOnlyCollection.cs (1)
67 Array.Copy (items, 0, this.items, 0, size);
Mono.Security.Cryptography\CryptoConvert.cs (10)
89 Array.Reverse (exp); 97 Array.Reverse (rsap.Modulus); 104 Array.Reverse (rsap.P); 110 Array.Reverse (rsap.Q); 116 Array.Reverse (rsap.DP); 122 Array.Reverse (rsap.DQ); 128 Array.Reverse (rsap.InverseQ); 138 Array.Reverse (rsap.D); 201 Array.Reverse (rsap.Modulus); 284 Array.Reverse (part, 0, len);
Mono.Security.Cryptography\CryptoService.cs (1)
76 Array.Reverse (signature);
Mono\Empty.cs (1)
46 Array.Resize (ref self, length);
Mono\MergeSort.cs (1)
25 Array.Copy (this.elements, this.buffer, elements.Length);
Mono.Cecil.Pdb (4)
Microsoft.Cci.Pdb\BitAccess.cs (1)
35Array.Copy(buffer, newBuffer, buffer.Length);
Microsoft.Cci.Pdb\PdbFile.cs (3)
151return Array.BinarySearch(funcs, match, PdbFunction.byAddress); 163Array.Sort(funcs, PdbFunction.byAddressAndToken); 433Array.Sort(funcs, PdbFunction.byAddressAndToken);
MSBuild (9)
CommandLine\CommandLineParser.cs (1)
47internal IReadOnlyList<string> IncludedResponseFiles => includedResponseFiles ?? (IReadOnlyList<string>)Array.Empty<string>();
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
108return Array.ConvertAll(removeGlobalProperties,
src\msbuild\src\Shared\TaskParameter.cs (6)
423Array array = (Array)_wrappedParameter; 456Array array = Array.CreateInstance(elementType, length); 506Array array = (Array)_wrappedParameter;
XMake.cs (1)
693ILogger[] loggers = Array.Empty<ILogger>();
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
52[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Array))]
netstandard (1)
netstandard.cs (1)
45[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Array))]
NuGet.Build.Tasks (7)
BuildTasksUtility.cs (2)
643() => MSBuildRestoreUtility.ContainsClearKeyword(sources) ? Array.Empty<string>() : null, 673() => MSBuildRestoreUtility.ContainsClearKeyword(fallbackFolders) ? Array.Empty<string>() : null,
CheckForDuplicateNuGetItemsTask.cs (1)
47DeduplicatedItems = Array.Empty<ITaskItem>();
RestoreTask.cs (2)
248/// <returns>If the MSBuildBinaryLoggerEnabled environment variable is set, returns the paths to NuGet files to embed in the binlog, otherwise returns <see cref="Array.Empty{T}" />.</returns> 256return Array.Empty<ITaskItem>();
WarnForInvalidProjectsTask.cs (2)
33var all = AllProjects?.Select(e => e.ItemSpec).ToArray() ?? Array.Empty<string>(); 34var valid = ValidProjects?.Select(e => e.ItemSpec).ToArray() ?? Array.Empty<string>();
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
557return Array.Empty<string>();
NuGet.Build.Tasks.Pack (2)
Common\MSBuildUtility.cs (1)
30return Array.Empty<IMSBuildItem>();
GetProjectReferencesFromAssetsFileTask.cs (1)
80ProjectReferences = Array.Empty<ITaskItem>();
NuGet.CommandLine.XPlat (103)
_generated\1\PackageSearchJsonContext.PackageSearchProblem.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem).GetProperty("Text", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem).GetProperty("ProblemType", InstanceMemberBindingFlags, null, typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblemType), global::System.Array.Empty<global::System.Type>(), null),
_generated\10\PackageSearchJsonContext.NuGetLicenseExpression.g.cs (1)
68AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Licenses.NuGetLicenseExpression).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(global::NuGet.Packaging.Licenses.LicenseExpressionType), global::System.Array.Empty<global::System.Type>(), null),
_generated\12\PackageSearchJsonContext.PackageDependencyGroup.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.PackageDependencyGroup).GetProperty("TargetFramework", InstanceMemberBindingFlags, null, typeof(global::NuGet.Frameworks.NuGetFramework), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.PackageDependencyGroup).GetProperty("Packages", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.Core.PackageDependency>), global::System.Array.Empty<global::System.Type>(), null),
_generated\13\PackageSearchJsonContext.IPackageSearchMetadata.g.cs (23)
68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Authors", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("DependencySets", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("DownloadCount", InstanceMemberBindingFlags, null, typeof(long?), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("IconUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Identity", InstanceMemberBindingFlags, null, typeof(global::NuGet.Packaging.Core.PackageIdentity), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("LicenseUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("ProjectUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("ReadmeUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 248AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("ReadmeFileUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 268AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("ReportAbuseUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 288AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("PackageDetailsUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 308AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Published", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 328AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("OwnersList", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 348AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Owners", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 368AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("RequireLicenseAcceptance", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 388AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Summary", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 408AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Tags", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 428AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 448AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("IsListed", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 468AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("PrefixReserved", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 488AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("LicenseMetadata", InstanceMemberBindingFlags, null, typeof(global::NuGet.Packaging.LicenseMetadata), global::System.Array.Empty<global::System.Type>(), null), 508AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("Vulnerabilities", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Protocol.PackageVulnerabilityMetadata>), global::System.Array.Empty<global::System.Type>(), null),
_generated\14\PackageSearchJsonContext.PackageVulnerabilityMetadata.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageVulnerabilityMetadata).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageVulnerabilityMetadata).GetProperty("AdvisoryUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.PackageVulnerabilityMetadata).GetProperty("Severity", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\15\PackageSearchJsonContext.FloatRange.g.cs (5)
68AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("HasMinVersion", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("MinVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("FloatBehavior", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersionFloatBehavior), global::System.Array.Empty<global::System.Type>(), null), 129AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("OriginalReleasePrefix", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 149AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("IncludePrerelease", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\16\PackageSearchJsonContext.NuGetVersion.g.cs (13)
68AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.NuGetVersion).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(global::System.Version), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.NuGetVersion).GetProperty("IsLegacyVersion", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.NuGetVersion).GetProperty("Revision", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 129AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.NuGetVersion).GetProperty("IsSemVer2", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 149AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.NuGetVersion).GetProperty("OriginalVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 169AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("Major", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 189AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("Minor", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 209AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("Patch", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 229AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("ReleaseLabels", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null), 250AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("Release", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 271AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("IsPrerelease", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 291AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("HasMetadata", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 311AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("Metadata", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\18\PackageSearchJsonContext.VersionRange.g.cs (17)
68AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("IsFloating", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("MinVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("MaxVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("HasLowerBound", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("IsMinInclusive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("HasUpperBound", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("IsMaxInclusive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("HasLowerAndUpperBounds", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("Float", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.FloatRange), global::System.Array.Empty<global::System.Type>(), null), 248AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("OriginalString", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 268AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("HasLowerBound", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 288AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("HasUpperBound", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 308AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("HasLowerAndUpperBounds", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 328AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("IsMinInclusive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 348AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("IsMaxInclusive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 368AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("MaxVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null), 388AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("MinVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null),
_generated\3\PackageSearchJsonContext.PackageSearchResult.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchResult).GetProperty("SourceName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchResult).GetProperty("Problems", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.PackageSearchResult).GetProperty("Packages", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>), global::System.Array.Empty<global::System.Type>(), null),
_generated\4\PackageSearchJsonContext.SearchMainOutput.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.SearchMainOutput).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.SearchMainOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.SearchMainOutput).GetProperty("Problems", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::NuGet.CommandLine.XPlat.SearchMainOutput).GetProperty("SearchResult", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>), global::System.Array.Empty<global::System.Type>(), null),
_generated\5\PackageSearchJsonContext.NuGetFramework.g.cs (16)
68AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("Framework", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(global::System.Version), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("Platform", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 131AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("PlatformVersion", InstanceMemberBindingFlags, null, typeof(global::System.Version), global::System.Array.Empty<global::System.Type>(), null), 152AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("HasPlatform", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 172AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("HasProfile", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 192AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("Profile", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 213AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("DotNetFrameworkName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 234AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("DotNetPlatformName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 255AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("IsPCL", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 275AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("IsPackageBased", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 295AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("AllFrameworkVersions", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 315AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("IsUnsupported", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 335AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("IsAgnostic", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 355AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("IsAny", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 375AttributeProviderFactory = static () => typeof(global::NuGet.Frameworks.NuGetFramework).GetProperty("IsSpecificFramework", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\6\PackageSearchJsonContext.PackageDependency.g.cs (4)
68AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Core.PackageDependency).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Core.PackageDependency).GetProperty("Include", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Core.PackageDependency).GetProperty("Exclude", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 131AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Core.PackageDependency).GetProperty("VersionRange", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.VersionRange), global::System.Array.Empty<global::System.Type>(), null),
_generated\7\PackageSearchJsonContext.PackageIdentity.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Core.PackageIdentity).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Core.PackageIdentity).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Core.PackageIdentity).GetProperty("HasVersion", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\8\PackageSearchJsonContext.LicenseMetadata.g.cs (6)
68AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.LicenseMetadata).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(global::NuGet.Packaging.LicenseType), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.LicenseMetadata).GetProperty("License", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.LicenseMetadata).GetProperty("LicenseExpression", InstanceMemberBindingFlags, null, typeof(global::NuGet.Packaging.Licenses.NuGetLicenseExpression), global::System.Array.Empty<global::System.Type>(), null), 129AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.LicenseMetadata).GetProperty("WarningsAndErrors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 149AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.LicenseMetadata).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(global::System.Version), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.LicenseMetadata).GetProperty("LicenseUrl", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null),
src\nuget-client\build\Shared\TaskResult.cs (1)
83public static readonly Task<T[]> Instance = Task.FromResult(Array.Empty<T>());
NuGet.Commands (18)
RestoreCommand\DependencyGraphResolver.cs (2)
260success &= await projectRestoreCommand.InstallPackagesAsync(installedPackages, runtimeGraphs, Array.Empty<DownloadDependencyResolutionResult>(), userPackageFolder, token); 742Array.Empty<ResolverConflict>(),
RestoreCommand\DependencyGraphResolver.DependencyGraphItem.cs (1)
62public LibraryRangeIndex[] Path { get; init; } = Array.Empty<LibraryRangeIndex>();
RestoreCommand\DependencyGraphResolver.DependencyGraphItemIndexer.cs (1)
165Array.Copy(existingPath, newPath, existingPath.Length);
RestoreCommand\DependencyGraphResolver.ResolvedDependencyGraphItem.cs (2)
63_dependencyIndices = Array.Empty<LibraryDependencyIndex>(); 64_rangeIndices = Array.Empty<LibraryRangeIndex>();
RestoreCommand\ProjectRestoreCommand.cs (2)
159Array.Empty<DownloadDependencyResolutionResult>(), 240return DownloadDependencyResolutionResult.Create(targetFrameworkInformation.FrameworkName, Array.Empty<Tuple<LibraryRange, RemoteMatch>>(), context.RemoteLibraryProviders);
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (1)
238return Array.Empty<SourceRepository>();
RestoreCommand\RestoreCommandProvidersCache.cs (2)
45auditSources: Array.Empty<SourceRepository>(), 64auditSources: Array.Empty<SourceRepository>(),
RestoreCommand\RestoreSummary.cs (3)
53ConfigFiles = Array.Empty<string>(); 54FeedsUsed = Array.Empty<string>(); 56Errors = Array.Empty<IRestoreLogMessage>();
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
160return (graphSpec, (IReadOnlyList<IAssetsLogMessage>)additionalMessages ?? Array.Empty<IAssetsLogMessage>());
RestoreCommand\Utility\PackageSpecFactory.cs (2)
475() => MSBuildRestoreUtility.ContainsClearKeyword(fallbackFolders) ? Array.Empty<string>() : null, 849() => MSBuildRestoreUtility.ContainsClearKeyword(sources) ? Array.Empty<string>() : null,
src\nuget-client\build\Shared\TaskResult.cs (1)
83public static readonly Task<T[]> Instance = Task.FromResult(Array.Empty<T>());
NuGet.Common (3)
MsBuildStringUtility.cs (2)
38return Array.Empty<string>(); 63return Array.Empty<string>();
src\nuget-client\build\Shared\TaskResult.cs (1)
83public static readonly Task<T[]> Instance = Task.FromResult(Array.Empty<T>());
NuGet.Configuration (7)
PackageSourceMapping\PackageSourceMapping.cs (1)
41return Array.Empty<string>();
PackageSourceMapping\SearchTree.cs (1)
100return Array.Empty<string>();
Proxy\WebProxy.cs (4)
18private IReadOnlyList<string> _bypassList = Array.Empty<string>(); 30BypassList = Array.Empty<string>(); 41BypassList = Array.Empty<string>(); 56_bypassList = value ?? Array.Empty<string>();
Settings\ConfigurationDefaults.cs (1)
63return Array.Empty<PackageSource>();
NuGet.DependencyResolver.Core (3)
GraphModel\GraphNode.cs (1)
29internal static readonly IList<GraphNode<TItem>> EmptyList = Array.Empty<GraphNode<TItem>>();
Remote\RemoteWalkContext.cs (1)
73return Array.Empty<IRemoteDependencyProvider>();
src\nuget-client\build\Shared\TaskResult.cs (1)
83public static readonly Task<T[]> Instance = Task.FromResult(Array.Empty<T>());
NuGet.Frameworks (2)
CompatibilityProvider.cs (2)
127targetFrameworks = Array.Empty<NuGetFramework>(); 140candidateFrameworks = Array.Empty<NuGetFramework>();
NuGet.PackageManagement (6)
Audit\AuditChecker.cs (2)
85return new AuditCheckResult(Array.Empty<ILogMessage>()) 101: Array.Empty<ILogMessage>();
Audit\AuditCheckResult.cs (1)
13internal static readonly AuditCheckResult NoopAuditResult = new AuditCheckResult(Array.Empty<ILogMessage>())
Projects\DefaultProjectServices.cs (1)
62IReadOnlyList<(string, string[])> items = Array.Empty<(string, string[])>();
src\nuget-client\build\Shared\TaskResult.cs (1)
83public static readonly Task<T[]> Instance = Task.FromResult(Array.Empty<T>());
Utility\StreamUtility.cs (1)
51var byteZeroIndex = Array.FindIndex(a, 0, bytesRead, d => d == 0);
NuGet.Packaging (29)
_generated\0\NupkgMetadataSerializationContext.NupkgMetadataFile.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Packaging.NupkgMetadataFile).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.NupkgMetadataFile).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.NupkgMetadataFile).GetProperty("ContentHash", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.NupkgMetadataFile).GetProperty("Source", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Core\PackageDependencyInfo.cs (1)
45Dependencies = dependencies?.ToArray() ?? Array.Empty<PackageDependency>();
PackageCreation\Authoring\ManifestSchemaUtility.cs (1)
67int index = Math.Max(0, Array.IndexOf(VersionToSchemaMappings, @namespace));
Rules\AccidentallyCompatibleWithAllFrameworksRule.cs (1)
96return Array.Empty<PackagingLogMessage>();
Rules\DependenciesGroupsForEachTFMRule.cs (2)
57return Array.Empty<PackagingLogMessage>(); 197return Array.Empty<NuGetFramework>();
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (1)
98missingFiles = Array.Empty<string>();
Rules\UpholdBuildConventionRule.cs (1)
38? Array.Empty<PackagingLogMessage>()
RuntimeModel\RuntimeDescription.cs (1)
53InheritedRuntimes = inheritedRuntimes is null or { Count: 0 } ? Array.Empty<string>() : inheritedRuntimes;
Signing\Archive\SignedPackageArchiveUtility.cs (6)
413Array.Reverse(array); 423Array.Reverse(array); 514hashAlgorithm.TransformFinalBlock(Array.Empty<byte>(), inputOffset: 0, inputCount: 0); 549Array.Reverse(array); 559Array.Reverse(array); 623hashFunc.Update(Array.Empty<byte>(), offset: 0, count: 0);
Signing\DerEncoding\DerEncoder.cs (3)
28Array.Empty<byte>(), 128Array.Reverse(bytes); 617Array.Sort(sortedItems, AsnSetValueComparer.Instance);
Signing\DerEncoding\DerSequenceReader.cs (1)
227Array.Reverse(integerBytes);
Signing\Signatures\GeneralName.cs (1)
116Array.Copy(bytes, sourceIndex: 1, destinationArray: length, destinationIndex: 0, length: length.Length);
Signing\Signatures\IssuerSerial.cs (1)
51Array.Reverse(serialNumber);
Signing\Timestamp\Rfc3161TimestampTokenInfoNetstandard21Wrapper.cs (1)
65return Array.Empty<byte>();
Signing\Utility\SignatureUtility.cs (1)
639Array.Reverse(certificateSerialNumber);
src\nuget-client\build\Shared\TaskResult.cs (1)
83public static readonly Task<T[]> Instance = Task.FromResult(Array.Empty<T>());
TopologicalSortUtility.cs (2)
113Array.Sort(toSort, i, toSort.Length - i, itemComparer); 144var dependencies = package.DependencyIds ?? Array.Empty<string>();
NuGet.ProjectModel (51)
_generated\18\AssetsLogMessageSourceGen.AssetsLogMessage.g.cs (13)
70AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("Code", InstanceMemberBindingFlags, null, typeof(global::NuGet.Common.NuGetLogCode), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("Level", InstanceMemberBindingFlags, null, typeof(global::NuGet.Common.LogLevel), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("ProjectPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 150AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("WarningLevel", InstanceMemberBindingFlags, null, typeof(global::NuGet.Common.WarningLevel), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("WarningLevelJson", InstanceMemberBindingFlags, null, typeof(global::NuGet.Common.WarningLevel?), global::System.Array.Empty<global::System.Type>(), null), 190AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("FilePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 210AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("LibraryId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 230AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("TargetGraphs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 250AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("StartLineNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 270AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("StartColumnNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 290AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("EndLineNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 310AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("EndColumnNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\4\CacheFileSourceGen.CacheFile.g.cs (7)
70AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.CacheFile).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.CacheFile).GetProperty("DgSpecHash", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.CacheFile).GetProperty("Success", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.CacheFile).GetProperty("ProjectFilePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 150AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.CacheFile).GetProperty("ExpectedPackageFilePaths", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<string>), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.CacheFile).GetProperty("LogMessages", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::NuGet.ProjectModel.IAssetsLogMessage>), global::System.Array.Empty<global::System.Type>(), null), 190AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.CacheFile).GetProperty("IsValid", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
_generated\5\CacheFileSourceGen.IAssetsLogMessage.g.cs (12)
70AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("Level", InstanceMemberBindingFlags, null, typeof(global::NuGet.Common.LogLevel), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("Code", InstanceMemberBindingFlags, null, typeof(global::NuGet.Common.NuGetLogCode), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 130AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("ProjectPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 150AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("WarningLevel", InstanceMemberBindingFlags, null, typeof(global::NuGet.Common.WarningLevel), global::System.Array.Empty<global::System.Type>(), null), 170AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("FilePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 190AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("StartLineNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 210AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("StartColumnNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 230AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("EndLineNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 250AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("EndColumnNumber", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 270AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("LibraryId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 290AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("TargetGraphs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
JsonPackageSpecReader.Utf8JsonStreamReader.cs (2)
205results ??= Array.Empty<LibraryDependency>(); 556IReadOnlyList<string> values = jsonReader.ReadNextStringOrArrayOfStringsAsReadOnlyList() ?? Array.Empty<string>();
JsonTextReaderExtensions.cs (1)
191return (IReadOnlyList<string>)strings ?? Array.Empty<string>();
LockFile\LockFileTargetLibrary.cs (1)
43return Array.Empty<T>();
LockFile\Utf8JsonStreamIAssetsLogMessageConverter.cs (1)
137TargetGraphs = targetGraphs ?? Array.Empty<string>(),
LockFile\Utf8JsonStreamLockFileConverter.cs (7)
81lockFile.Libraries = Array.Empty<LockFileLibrary>(); 102lockFile.Targets = Array.Empty<LockFileTarget>(); 116lockFile.ProjectFileDependencyGroups = Array.Empty<ProjectFileDependencyGroup>(); 130lockFile.PackageFolders = Array.Empty<LockFileItem>(); 149lockFile.PackageSpec = new PackageSpec(Array.Empty<TargetFrameworkInformation>()); 178lockFile.CentralTransitiveDependencyGroups = results ?? Array.Empty<CentralTransitiveDependencyGroup>(); 190lockFile.LogMessages = Array.Empty<IAssetsLogMessage>();
LockFile\Utf8JsonStreamLockFileTargetLibraryConverter.cs (2)
111lockFileTargetLibrary.FrameworkAssemblies = reader.ReadStringArrayAsIList() ?? Array.Empty<string>(); 181return Array.Empty<PackageDependency>();
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (4)
128return Array.Empty<T>(); 140return Array.Empty<T>(); 174return objectList ?? Array.Empty<T>(); 331return (IReadOnlyList<string>)strings ?? Array.Empty<string>();
Utf8JsonStreamProjectFileDependencyGroupConverter.cs (1)
29var dependencies = reader.ReadStringArrayAsIList() ?? Array.Empty<string>();
NuGet.Protocol (70)
_generated\1\JsonContext.FlatContainerVersionList.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.FlatContainerVersionList).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.FlatContainerVersionList).GetProperty("Versions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null),
_generated\10\JsonContext.NuGetVersion.g.cs (13)
68AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.NuGetVersion).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(global::System.Version), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.NuGetVersion).GetProperty("IsLegacyVersion", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.NuGetVersion).GetProperty("Revision", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 129AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.NuGetVersion).GetProperty("IsSemVer2", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 149AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.NuGetVersion).GetProperty("OriginalVersion", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 169AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("Major", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 189AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("Minor", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 209AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("Patch", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 229AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("ReleaseLabels", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null), 250AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("Release", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 271AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("IsPrerelease", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 291AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("HasMetadata", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 311AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.SemanticVersion).GetProperty("Metadata", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\12\JsonContext.VersionRange.g.cs (17)
68AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("IsFloating", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("MinVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null), 108AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("MaxVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null), 128AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("HasLowerBound", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 148AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("IsMinInclusive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 168AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("HasUpperBound", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 188AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("IsMaxInclusive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 208AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("HasLowerAndUpperBounds", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 228AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("Float", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.FloatRange), global::System.Array.Empty<global::System.Type>(), null), 248AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRange).GetProperty("OriginalString", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 268AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("HasLowerBound", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 288AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("HasUpperBound", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 308AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("HasLowerAndUpperBounds", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 328AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("IsMinInclusive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 348AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("IsMaxInclusive", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 368AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("MaxVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null), 388AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.VersionRangeBase).GetProperty("MinVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null),
_generated\2\JsonContext.AutoCompleteModel.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.AutoCompleteModel).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.AutoCompleteModel).GetProperty("Data", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\29\RepositorySignatureJsonContext.RepositorySignatureModel.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.RepositorySignatureModel).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.RepositorySignatureModel).GetProperty("AllRepositorySigned", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.RepositorySignatureModel).GetProperty("SigningCertificates", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.RepositoryCertificateInfo[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\30\RepositorySignatureJsonContext.RepositoryCertificateInfo.g.cs (6)
68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("Fingerprints", InstanceMemberBindingFlags, null, typeof(global::NuGet.Packaging.Core.Fingerprints), global::System.Array.Empty<global::System.Type>(), null), 90AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("Subject", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 112AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("Issuer", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 134AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("NotBefore", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null), 155AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("NotAfter", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null), 176AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("ContentUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\4\JsonContext.PackageVulnerabilityInfo.g.cs (3)
68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.PackageVulnerabilityInfo).GetProperty("Url", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.PackageVulnerabilityInfo).GetProperty("Severity", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.PackageVulnerabilitySeverity), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.PackageVulnerabilityInfo).GetProperty("Versions", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.VersionRange), global::System.Array.Empty<global::System.Type>(), null),
_generated\5\JsonContext.ServiceIndexEntryModel.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexEntryModel).GetProperty("ClientVersion", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null),
_generated\6\JsonContext.ServiceIndexModel.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexModel).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.ServiceIndexModel).GetProperty("Resources", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.ServiceIndexEntryModel>), global::System.Array.Empty<global::System.Type>(), null),
_generated\7\JsonContext.V3VulnerabilityIndexEntry.g.cs (4)
68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry).GetProperty("Url", InstanceMemberBindingFlags, null, typeof(global::System.Uri), global::System.Array.Empty<global::System.Type>(), null), 110AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry).GetProperty("Updated", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 131AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry).GetProperty("Comment", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
_generated\9\JsonContext.FloatRange.g.cs (5)
68AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("HasMinVersion", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 88AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("MinVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null), 109AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("FloatBehavior", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersionFloatBehavior), global::System.Array.Empty<global::System.Type>(), null), 129AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("OriginalReleasePrefix", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 149AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("IncludePrerelease", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
LegacyFeed\V2FeedPackageInfo.cs (2)
54_authors = authors == null ? Array.Empty<string>() : authors.ToArray(); 55_owners = owners == null ? Array.Empty<string>() : owners.ToArray();
Model\LocalPackageSearchMetadata.cs (1)
90var tags = _nuspec.GetTags()?.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>();
Model\PackageDeprecationMetadata.cs (1)
16public IEnumerable<string> Reasons { get; internal set; } = Array.Empty<string>();
Plugins\PluginDiscoverer.cs (2)
189string[] paths = _nuGetPluginPaths?.Split([Path.PathSeparator], StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>(); 238string[] paths = nugetPluginPaths?.Split(Path.PathSeparator) ?? Array.Empty<string>();
Plugins\PluginManager.cs (1)
344return Array.Empty<OperationClaim>();
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (1)
137return (IEnumerable<NuGetVersion>?)packageVersions ?? Array.Empty<NuGetVersion>();
src\nuget-client\build\Shared\TaskResult.cs (1)
83public static readonly Task<T[]> Instance = Task.FromResult(Array.Empty<T>());
NuGet.Versioning (1)
SemanticVersionFactory.cs (1)
13internal static readonly string[] EmptyReleaseLabels = Array.Empty<string>();
PresentationBuildTasks (12)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (3)
593_generatedCodeFiles = Array.Empty<TaskItem>(); 612_generatedBamlFiles = Array.Empty<TaskItem>(); 631_generatedLocalizationFiles = Array.Empty<TaskItem>();
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (2)
366_generatedBaml = Array.Empty<TaskItem>(); 563localXamlPageFileList = Array.Empty<FileUnit>();
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
971Array.Empty<CodeExpression>())); 3146coce = new CodeObjectCreateExpression(appClassName, Array.Empty<CodeExpression>());
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypesHelper.cs (1)
70Array.Clear(_typeTable, 0, _typeTable.Length);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
230|| ReflectionHelper.GetMscorlibType(typeof(Array)).IsAssignableFrom(type));
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
4435return Array.Empty<NamespaceMapEntry>();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (2)
255public void CopyTo(Array array, int index) 636Array.Copy(_nsDeclarations, 0, new_nsDeclarations, 0, _nsDeclarations.Length);
PresentationCore (184)
MS\Internal\FontCache\BufferCache.cs (5)
163private static Array GetBuffer(int length, int index) 165Array buffer = null; 191private static void ReleaseBuffer(Array buffer, int index) 199_buffers = new Array[BuffersLength]; 243private static Array[] _buffers;
MS\Internal\FontCache\FontCacheUtil.cs (1)
446if (Array.IndexOf<char>(InvalidFileNameChars, unescapedChar) >= 0)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
391Array.Clear(glyphBits, 0, glyphBitsLength);
MS\Internal\FontCache\FontSource.cs (2)
322Array.Copy(fileReadBuffer, newBuffer, memoryFontSize); 342Array.Copy(fileReadBuffer, memoryFont, memoryFontSize);
MS\Internal\FontFace\CompositeFontInfo.cs (1)
271Array.Copy(ranges, temp, count);
MS\Internal\Ink\ExtendedProperty.cs (10)
61Array array1 = (Array)this.Value; 62Array array2 = (Array)that.Value; 196Array newArray = Array.CreateInstance(elementType, ((Array)_value).Length); 197Array.Copy((Array)_value, newArray, ((Array)_value).Length);
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
208return Array.Empty<Guid>();
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (3)
129GestureRecognitionResult[] recResults = Array.Empty<GestureRecognitionResult>(); 586GestureRecognitionResult[] recResults = Array.Empty<GestureRecognitionResult>(); 649GestureRecognitionResult[] recResults = Array.Empty<GestureRecognitionResult>();
MS\Internal\Ink\Lasso.cs (2)
193return Array.Empty<StrokeIntersection>(); 306return Array.Empty<StrokeIntersection>();
MS\Internal\PartialArray.cs (1)
98int index = Array.IndexOf<T>(_array, item, _initialIndex, _count);
MS\Internal\Shaping\OpenTypeLayout.cs (4)
1215Array.Clear(_lookupUsageFlags, 0, requiredLookupUsageArraySize); 1317Array.Copy(_cachePointers, tmp, firstGlyphChanged); 1318Array.Copy(_cachePointers, oldAfterLastGlyphChanged, tmp, afterLastGlyphChanged, oldLength - oldAfterLastGlyphChanged); 1324Array.Copy(_cachePointers, oldAfterLastGlyphChanged, _cachePointers, afterLastGlyphChanged, oldLength - oldAfterLastGlyphChanged);
MS\Internal\Shaping\OpenTypeLayoutCache.cs (1)
507Array.Sort(records, 0, recordCount);
MS\Internal\SynchronizedInputHelper.cs (2)
89if (Array.IndexOf(InputManager.SynchronizedInputEvents, args.RoutedEvent) >= 0) 103Array.IndexOf(InputManager.SynchronizedInputEvents, args.RoutedEvent) >= 0)
MS\Internal\TextFormatting\FullTextLine.cs (1)
2059return Array.Empty<TextSpan<TextRun>>();
MS\Internal\TextFormatting\TextStore.cs (1)
506Array.Sort(bounds); // sort the TextEffect bounds.
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
1959Array.Sort(doubleArray, 0, countX); 1965Array.Sort(doubleArray, countX, countY);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Ink\KnownIds.cs (1)
313null, null, Array.Empty<object>(),
System\Windows\ClassHandlersStore.cs (1)
62Array.Copy(handlers.Handlers, 0, mergedHandlers, 0, length);
System\Windows\FreezableCollection.cs (1)
467void ICollection.CopyTo(Array array, int index)
System\Windows\Generated\TextDecorationCollection.cs (1)
379void ICollection.CopyTo(Array array, int index)
System\Windows\GlobalEventManager.cs (2)
118if(Array.IndexOf(routedEvents, routedEvent) < 0) 137if(Array.IndexOf(routedEvents, routedEvent) < 0)
System\Windows\Ink\GestureRecognizer.cs (1)
119_enabledGestures = Array.Empty<ApplicationGesture>();
System\Windows\Ink\Stroke2.cs (3)
567return Array.Empty<StrokeIntersection>(); 586return Array.Empty<StrokeIntersection>(); 593return Array.Empty<StrokeIntersection>();
System\Windows\Input\Command\CommandBindingCollection.cs (1)
64void ICollection.CopyTo(System.Array array, int index)
System\Windows\Input\Command\InputBindingCollection.cs (1)
72void ICollection.CopyTo(System.Array array, int index)
System\Windows\Input\Command\InputGestureCollection.cs (1)
63void ICollection.CopyTo(System.Array array, int index)
System\Windows\Input\InputManager.cs (2)
747Array.IndexOf(SynchronizedInputEvents, input.RoutedEvent) < 0 && 748Array.IndexOf(PairedSynchronizedInputEvents, input.RoutedEvent) < 0)
System\Windows\Input\Stylus\Common\RawStylusSystemGestureInputReport.cs (2)
98stylusDeviceId, Array.Empty<int>()) 148: base(mode, timestamp, inputSource, penContext, RawStylusActions.SystemGesture, tabletId, stylusDeviceId, Array.Empty<int>())
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (2)
48void ICollection.CopyTo(Array array, int index) 50Array.Copy(TabletDevices.ToArray(), 0, array, index, Count);
System\Windows\Input\Stylus\Pointer\PointerData.cs (1)
108_history = Array.Empty<POINTER_INFO>();
System\Windows\Input\Stylus\Wisp\PenContexts.cs (5)
105ProcessInput(RawStylusActions.OutOfRange, penContext, tabletDeviceId, stylusPointerId, Array.Empty<int>(), timestamp); 210Array.Copy(_contexts, 0, ctxs, 0, preCopyCount); 213Array.Copy(_contexts, index, ctxs, index+1, postCopyCount); 237Array.Copy(_contexts, 0, ctxs, 0, preCopyCount); 238Array.Copy(_contexts, index+1, ctxs, index, postCopyCount);
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (6)
29private IntPtr [] _handles = Array.Empty<IntPtr>(); 31private WeakReference [] _penContexts = Array.Empty<WeakReference>(); 33private IPimcContext3 [] _pimcContexts = Array.Empty<IPimcContext3>(); 38private UInt32[] _wispContextKeys = Array.Empty<UInt32>(); 155private TabletDeviceInfo[] _tabletDevicesInfo = Array.Empty<TabletDeviceInfo>(); 320private StylusDeviceInfo[] _stylusDevicesInfo = Array.Empty<StylusDeviceInfo>();
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (7)
370Array.Copy(tablets, 0, _tablets, 0, count); 379Array.Copy(tablets, 0, updatedTablets, 0, tabletsIndex); 547Array.Copy(_tablets, 0, newTablets, 0, preCopyCount); 549Array.Copy(_tablets, index, newTablets, index+1, postCopyCount); 568Array.Copy(_tablets, 0, tablets, 0, preCopyCount); 569Array.Copy(_tablets, index+1, tablets, index, postCopyCount); 695private TabletDevice[] _tablets = Array.Empty<TabletDevice>();
System\Windows\InterOp\HwndPointerInputProvider.cs (2)
141int[] data = Array.Empty<int>(); 168Array.Copy(rawPointerData, j, data, i, rawDataPointSize);
System\Windows\Media\Animation\Clock.cs (1)
4218Array.Sort(idTable);
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
796Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
796Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
796Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
796Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
796Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
378void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Animation\Timeline.cs (1)
997Array.Sort(idTable);
System\Windows\Media\CharacterMetricsDictionary.cs (1)
171void SC.ICollection.CopyTo(Array array, int index)
System\Windows\Media\CultureSpecificStringDictionary.cs (2)
140void SC.ICollection.CopyTo(Array array, int index) 442public void CopyTo(Array array, int index)
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
381void ICollection.CopyTo(Array array, int index)
System\Windows\Media\FamilyMapCollection.cs (3)
83Array.Copy(_items, 0, array, index, _count); 86void SC.ICollection.CopyTo(Array array, int index) 104Array.Copy(_items, 0, array, index, _count);
System\Windows\Media\FamilyTypefaceCollection.cs (3)
89void SC.ICollection.CopyTo(Array array, int index) 364private void CopyItems(Array array, int index) 384Array.Copy(_items, 0, array, index, _count);
System\Windows\Media\Fonts.cs (1)
247return Array.AsReadOnly<FontFamily>(fontFamilyList);
System\Windows\Media\Generated\DoubleCollection.cs (1)
353void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Generated\DrawingCollection.cs (1)
400void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
388void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Generated\GeometryCollection.cs (1)
400void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Generated\GradientStopCollection.cs (1)
388void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Generated\Int32Collection.cs (1)
353void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Generated\PathFigureCollection.cs (1)
389void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
388void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Generated\PointCollection.cs (1)
353void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Generated\TextEffectCollection.cs (1)
388void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Generated\TransformCollection.cs (1)
400void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Generated\VectorCollection.cs (1)
353void ICollection.CopyTo(Array array, int index)
System\Windows\Media\Imaging\BitmapSource.cs (6)
43System.Array pixels, 343public virtual void CopyPixels(Int32Rect sourceRect, Array pixels, int stride, int offset) 361public virtual void CopyPixels(Array pixels, int stride, int offset) 634internal unsafe void CriticalCopyPixels(Int32Rect sourceRect, Array pixels, int stride, int offset) 994int i = Array.IndexOf(s_supportedDUCEFormats, format); 1583return (Array.IndexOf(s_supportedDUCEFormats, format) != -1);
System\Windows\Media\Imaging\CachedBitmap.cs (1)
108System.Array pixels,
System\Windows\Media\Imaging\PropVariant.cs (14)
117internal void InitVector(Array array, Type type, VarEnum varEnum) 122internal void Init(Array array, Type type, VarEnum vt) 225else if (value is Array) 231InitVector(value as Array, typeof(sbyte), VarEnum.VT_I1); 235InitVector(value as Array, typeof(byte), VarEnum.VT_UI1); 257InitVector(value as Array, typeof(short), VarEnum.VT_I2); 261InitVector(value as Array, typeof(ushort), VarEnum.VT_UI2); 265InitVector(value as Array, typeof(int), VarEnum.VT_I4); 269InitVector(value as Array, typeof(uint), VarEnum.VT_UI4); 273InitVector(value as Array, typeof(Int64), VarEnum.VT_I8); 277InitVector(value as Array, typeof(UInt64), VarEnum.VT_UI8); 281InitVector(value as Array, typeof(float), VarEnum.VT_R4); 285InitVector(value as Array, typeof(double), VarEnum.VT_R8); 289InitVector(value as Array, typeof(Guid), VarEnum.VT_CLSID);
System\Windows\Media\Imaging\WriteableBitmap.cs (3)
375Array sourceBuffer, 464Array pixels, 1037private static void ValidateArrayAndGetInfo(Array sourceBuffer,
System\Windows\Media\MatrixStack.cs (1)
44Array.Copy(_items, newItems, _size);
System\Windows\Media\textformatting\TextRunCache.cs (1)
87return Array.Empty<TextSpan<TextRun>>();
System\Windows\Media\UniqueEventHelper.cs (1)
135return Array.Empty<TEventHandler>();
System\Windows\Media\VisualCollection.cs (2)
166public void CopyTo(Array array, int index) 254Array.Copy(_items, 0, newItems, 0, _size);
System\Windows\Media\VisualProxy.cs (1)
571Array.Copy(_tail, reallocatedTail, Math.Min(_tail.Length, newLength));
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
386void ICollection.CopyTo(Array array, int index)
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
398void ICollection.CopyTo(Array array, int index)
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
398void ICollection.CopyTo(Array array, int index)
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
351void ICollection.CopyTo(Array array, int index)
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
398void ICollection.CopyTo(Array array, int index)
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
351void ICollection.CopyTo(Array array, int index)
System\Windows\Media3D\Visual3DCollection.cs (1)
144void ICollection.CopyTo(Array array, int index)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
211/// Tries to get this object as an <see cref="Array"/> of primitive types.
PresentationFramework (148)
Microsoft\Win32\CommonItemDialog.cs (1)
492return Array.Empty<string>();
Microsoft\Win32\FileDialog.cs (1)
653return extensions ?? Array.Empty<COMDLG_FILTERSPEC>();
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
282private static readonly XmlQualifiedName[] LocatorPartTypeNames = Array.Empty<XmlQualifiedName>();
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (1)
204private static readonly XmlQualifiedName[] LocatorPartTypeNames = Array.Empty<XmlQualifiedName>();
MS\Internal\Annotations\Serializer.cs (2)
54_ctor = type.GetConstructor(Array.Empty<Type>()); 87IXmlSerializable serializable = (IXmlSerializable)_ctor.Invoke(Array.Empty<object>());
MS\Internal\Controls\InnerItemCollectionView.cs (1)
347void ICollection.CopyTo(Array array, int index)
MS\Internal\Data\IndexedEnumerable.cs (1)
293internal static void CopyTo(IEnumerable collection, Array array, int index)
MS\Internal\Data\IndexerPropertyInfo.cs (1)
56return Array.Empty<ParameterInfo>();
MS\Internal\Data\LiveShapingList.cs (4)
147_sortInfos = Array.Empty<LivePropertyInfo>(); 169_filterInfos = Array.Empty<LivePropertyInfo>(); 211_groupInfos = Array.Empty<LivePropertyInfo>(); 615public void CopyTo(Array array, int index)
MS\Internal\Data\PathParser.cs (2)
143return Array.Empty<SourceValueInfo>(); 164return _error is null ? _sourceValueInfos.ToArray() : Array.Empty<SourceValueInfo>();
MS\Internal\Data\RBNode.cs (2)
47public int OffsetOf(T x) { return Array.IndexOf(_data, x); } 303Array.Copy(sourceNode._data, sourceOffset, destNode._data, destOffset, count);
MS\Internal\Data\SortFieldComparer.cs (1)
98Array.Sort(list, sfc);
MS\Internal\Documents\ContentElementCollection.cs (4)
64public void CopyTo(Array array, int index) 80Array.Copy(Items, 0, array, index, Size); 112Array.Copy(Items, 0, array, index, Size); 765Array.Copy(Items, 0, newItems, 0, Size);
MS\Internal\Globalization\BamlTreeMap.cs (2)
717LocalizationAttributes = Array.Empty<PropertyComment>(); 718LocalizationComments = Array.Empty<PropertyComment>();
MS\Internal\IO\Packaging\ByteStream.cs (1)
298Array.Copy(localBuffer, 0, buffer, offset, read);
MS\Internal\Printing\PrintDlgExMarshaler.cs (1)
761Array.Clear(nulls, 0, nulls.Length);
MS\Internal\PtsHost\DtrList.cs (2)
126Array.Copy(_dtrs, i, _dtrs, i+1, _count-i); 314Array.Copy(_dtrs, newdtrs, _dtrs.Length);
MS\Internal\PtsHost\PtsContext.cs (1)
448Array.Copy(_unmanagedHandles, newItems, _unmanagedHandles.Length);
MS\Internal\PtsHost\RowParagraph.cs (1)
314_spannedCells = Array.Empty<CellParagraph>();
MS\Internal\PtsHost\TableParaClient.cs (1)
1924Array.Copy(
MS\Internal\PtsTable\RowSpanVector.cs (2)
207cells = Array.Empty<TableCell>(); 252Array.Copy(_entries, newEntries, _entries.Length);
MS\Internal\UncommonValueTable.cs (4)
50Array.Copy(_table, 0, newTable, 0, index); 51Array.Copy(_table, index, newTable, index+1, n-index); 77Array.Copy(_table, 0, newTable, 0, index); 78Array.Copy(_table, index+1, newTable, index, n-index);
MS\Internal\WindowsRuntime\Generated\WinRT\GuidGenerator.cs (1)
36return (string)sigMethod.Invoke(null, Array.Empty<Type>());
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (5)
276public MarshalerArray(Array array) => _gchandle = GCHandle.Alloc(array, GCHandleType.Pinned); 282public static MarshalerArray CreateMarshalerArray(Array array) => new MarshalerArray(array); 287return (((Array)m._gchandle.Target).Length, m._gchandle.AddrOfPinnedObject()); 301public static unsafe (int length, IntPtr data) FromManagedArray(Array array) 314public static unsafe void CopyManagedArray(Array array, IntPtr data)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\ItemMap.cs (2)
42Array.Copy(Entries, 0, destEntries, 0, index); 46Array.Copy(Entries, index, destEntries, index + 1, Count - index);
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
149return Array.Empty<IRawElementProviderSimple>(); 158return Array.Empty<IRawElementProviderSimple>();
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (2)
96return Array.Empty<IRawElementProviderSimple>(); 115return Array.Empty<IRawElementProviderSimple>();
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
169selection = Array.Empty<IRawElementProviderSimple>();
System\Windows\Controls\ColumnDefinition.cs (4)
73void ICollection.CopyTo(Array array, int index) 92Array.Copy(_items, 0, array, index, _size); 114Array.Copy(_items, 0, array, index, _size); 753Array.Copy(_items, 0, newItems, 0, _size);
System\Windows\Controls\CustomDictionarySources.cs (1)
271void ICollection.CopyTo(Array array, int index)
System\Windows\Controls\Grid.cs (10)
438Array.Clear(_definitionIndices, 0, _definitionIndices.Length); 446Array.Clear(_roundingErrors, 0, _roundingErrors.Length); 2211Array.Sort(definitionIndices, 0, starDefinitionsCount, new StarDistributionOrderIndexComparer(definitions)); 2258Array.Sort(definitionIndices, 0, definitions.Length, new DistributionOrderIndexComparer(definitions)); 2296Array.Sort(definitionIndices, 0, definitions.Length, new RoundingErrorIndexComparer(roundingErrors)); 2491Array.Sort(definitionIndices, 0, minCount, new MinRatioIndexComparer(definitions)); 2492Array.Sort(definitionIndices, defCount, maxCount, new MaxRatioIndexComparer(definitions)); 2665Array.Sort(definitionIndices, 0, starCount, new StarWeightIndexComparer(definitions)); 2765Array.Sort(definitionIndices, 0, definitions.Length, new RoundingErrorIndexComparer(roundingErrors)); 2915Array.Clear(extData.TempDefinitions, 0, Math.Max(DefinitionsU.Length, DefinitionsV.Length));
System\Windows\Controls\GridViewColumnCollectionChangedEventArgs.cs (1)
35_clearedColumns = System.Array.AsReadOnly<GridViewColumn>(clearedColumns);
System\Windows\Controls\InkCanvas.cs (3)
2311ChangeInkCanvasSelection(new StrokeCollection(), Array.Empty<UIElement>()); 2327CoreChangeSelection(new StrokeCollection(), Array.Empty<UIElement>(), raiseSelectionChangedEvent); 2512return Array.Empty<UIElement>();
System\Windows\Controls\ItemCollection.cs (1)
282public void CopyTo(Array array, int index)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
298public void CopyTo(Array array, int index)
System\Windows\Controls\Primitives\TabPanel.cs (2)
231int[] solution = Array.Empty<int>(); 431return Array.Empty<int>();
System\Windows\Controls\Primitives\Track.cs (1)
136Array.Copy(_visualChildren, itemIndex + 1, _visualChildren, itemIndex, nullIndex - itemIndex);
System\Windows\Controls\RowDefinition.cs (4)
68void ICollection.CopyTo(Array array, int index) 87Array.Copy(_items, 0, array, index, _size); 109Array.Copy(_items, 0, array, index, _size); 748Array.Copy(_items, 0, newItems, 0, _size);
System\Windows\Controls\Slider.cs (1)
947return Array.Empty<CustomPopupPlacement>();
System\Windows\Controls\TextAdaptor.cs (3)
90return Array.Empty<Rect>(); 108return Array.Empty<Rect>(); 124return Array.Empty<Rect>();
System\Windows\Controls\UIElementCollection.cs (1)
75public virtual void CopyTo(Array array, int index)
System\Windows\Controls\WebBrowser.cs (1)
297Array.Reverse(args);
System\Windows\Data\BindingExpression.cs (1)
1232Array.Copy(newWorkerSources, 0, newSources, offset, n);
System\Windows\Data\BindingExpressionBase.cs (2)
472Array.Copy(temp, 0, result, 0, j); 2878Array.Copy(sources, 0, temp, 0, n);
System\Windows\Data\CompositeCollection.cs (1)
88public void CopyTo(Array array, int index)
System\Windows\Data\MultiBindingExpression.cs (2)
600Array.Clear(_tempTypes, 0, _tempTypes.Length); 1259Array.Clear(_tempValues, 0, _tempValues.Length);
System\Windows\Diagnostics\BindingFailedEventArgs.cs (1)
50this.Parameters = parameters ?? Array.Empty<object>();
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
271=> Array.Empty<ResourceDictionary>(); 314=> Array.Empty<FrameworkElement>(); 316=> Array.Empty<FrameworkContentElement>(); 318=> Array.Empty<Application>();
System\Windows\Documents\FixedFindEngine.cs (1)
424Array.Reverse(chars);
System\Windows\Documents\FixedSOMContainer.cs (1)
174return Array.Empty<FixedElement.ElementType>();
System\Windows\Documents\FlowPosition.cs (2)
224Array.Copy(text.ToCharArray(flow._offset, maxLength), 0, chars, startIndex, maxLength); 228Array.Copy(text.ToCharArray(flow._offset - maxLength, maxLength), 0, chars, startIndex, maxLength);
System\Windows\Documents\ImmComposition.cs (2)
922Array.Copy(resultChars, 0, compositionText, 0, resultLength); 923Array.Copy(compositionChars, 0, compositionText, resultLength, compositionLength);
System\Windows\Documents\PageContent.cs (1)
432children = Array.Empty<FixedPage>();
System\Windows\Documents\TableCellCollection.cs (1)
59public void CopyTo(Array array, int index)
System\Windows\Documents\TableColumnCollection.cs (1)
59public void CopyTo(Array array, int index)
System\Windows\Documents\TableRowCollection.cs (1)
59public void CopyTo(Array array, int index)
System\Windows\Documents\TableRowGroupCollection.cs (1)
59public void CopyTo(Array array, int index)
System\Windows\Documents\TextElementCollection.cs (1)
593void ICollection.CopyTo(Array array, int arrayIndex)
System\Windows\Documents\TextElementCollectionHelper.cs (1)
116Array.Copy(_cleanParentList, 0, _cleanParentList, 1, index);
System\Windows\Documents\TextPointerBase.cs (2)
1459Array.Copy(preceedingText, SelectionWordBreaker.MinContextLength - preceedingCount, text, 0, preceedingCount); 1460Array.Copy(followingText, 0, text, preceedingCount, followingCount);
System\Windows\Documents\TextSchema.cs (8)
55Array.Copy(textElementPropertyList, 0, _inheritableTextElementProperties, 0, textElementPropertyList.Length); 56Array.Copy(Typography.TypographyPropertiesList, 0, _inheritableTextElementProperties, textElementPropertyList.Length, Typography.TypographyPropertiesList.Length); 67Array.Copy(blockPropertyList, 0, _inheritableBlockProperties, 0, blockPropertyList.Length); 68Array.Copy(_inheritableTextElementProperties, 0, _inheritableBlockProperties, blockPropertyList.Length, _inheritableTextElementProperties.Length); 78Array.Copy(tableCellPropertyList, _inheritableTableCellProperties, tableCellPropertyList.Length); 79Array.Copy(_inheritableTextElementProperties, 0, _inheritableTableCellProperties, tableCellPropertyList.Length, _inheritableTextElementProperties.Length); 504return Array.Empty<DependencyProperty>(); 562return Array.Empty<DependencyProperty>(); // to make compiler happy
System\Windows\Documents\TextTreeTextBlock.cs (8)
94Array.Copy(_text, 0, newText, 0, _gapOffset); 96Array.Copy(_text, _gapOffset + _gapSize, newText, newText.Length - rightOfGapLength, rightOfGapLength); 121Array.Copy(textChars, textStartIndex, _text, logicalOffset, count); 149Array.Copy(_text, 0, newBlock._text, 0, _gapOffset); 163Array.Copy(_text, _gapOffset, newBlock._text, _gapOffset, MaxBlockSize - _gapOffset); 248Array.Copy(_text, logicalOffset, chars, charsStartIndex, copyCount); 263Array.Copy(_text, logicalOffset, chars, charsStartIndex, copyCount); 481Array.Copy(_text, sourceOffset, _text, destinationOffset, count);
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (2)
59IReadOnlyList<WordSegment> tokens = segmenter?.GetTokens(text) ?? Array.Empty<WordSegment>(); 62return Array.Empty<SpellerSegment>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1436throw new ArgumentException(SR.Format(SR.IntegerCollectionLengthLessThanZero, Array.Empty<object>()));
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
18: base(Array.Empty<Assembly>())
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
373s_EmptyAttributes = Array.Empty<Attribute>();
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
354void ICollection.CopyTo(Array array, int index)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (4)
503Array.Sort(entries, delegate(DictionaryEntry one, DictionaryEntry two) 939Array array = value as Array; 1053get { return Array.Empty<Type>(); }
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
323return Array.Empty<MarkupObject>();
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1150typeof(Array).IsAssignableFrom(type);
System\Windows\Markup\XamlTypeMapper.cs (1)
4435return Array.Empty<NamespaceMapEntry>();
System\Windows\Markup\XmlnsDictionary.cs (3)
208CopyTo((Array)array, index); 255public void CopyTo(Array array, int index) 636Array.Copy(_nsDeclarations, 0, new_nsDeclarations, 0, _nsDeclarations.Length);
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
888Array.Sort(_sortedResolvedKeyFrames);
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
247void ICollection.CopyTo(Array array, int index)
System\Windows\ResourceDictionary.cs (2)
958void ICollection.CopyTo(Array array, int arrayIndex) 2288void ICollection.CopyTo(Array array, int index)
System\Windows\TriggerActionCollection.cs (1)
235void ICollection.CopyTo(Array array, int index)
System\Windows\WindowCollection.cs (1)
89void ICollection.CopyTo(Array array, int index)
PresentationFramework-SystemCore (3)
DynamicAccessorImpl.cs (3)
113Array.Copy(args, 0, delegateArgs, 2, rank); 124Array.Copy(args, 0, delegateArgs, 2, rank); 140Array.Copy(_accessors, 0, newAccessors, 0, _accessors.Length);
PresentationUI (2)
MS\Internal\Documents\PeoplePickerWrapper.cs (2)
75String[] ldapPaths = Array.Empty<String>(); 96return Array.Empty<String>();
ReachFramework (31)
AlphaFlattener\SegmentTree.cs (3)
222Array.Sort(_xCoord, (x, y) => x.value.CompareTo(y.value)); 225Array.Sort(_yCoord, (x, y) => x.value.CompareTo(y.value)); 249int p = Array.BinarySearch(_yCoord, y0, new CoordinateSearcher());
AlphaFlattener\Utility.cs (1)
1404Array.Copy(
MS\Internal\Printing\Configuration\DevMode.cs (1)
473Array.Copy(ticketDevMode.ByteData, this.dmFieldsByteOffset, this.ByteData, this.dmFieldsByteOffset, this.ByteData.Length - this.dmFieldsByteOffset);
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (1)
414return Array.Empty<T>();
PrintConfig\PrintSchema.cs (17)
1983internal static int[] CollationEnums = (int[])(Array)Enum.GetValues<Collation>(); 1993internal static int[] DuplexEnums = (int[])(Array)Enum.GetValues<Duplexing>(); 2005internal static int[] DirectionEnums = (int[])(Array)Enum.GetValues<PagesPerSheetDirection>(); 2015internal static int[] StaplingEnums = (int[])(Array)Enum.GetValues<Stapling>(); 2025internal static int[] SubstitutionEnums = (int[])(Array)Enum.GetValues<DeviceFontSubstitution>(); 2044internal static int[] MediaSizeEnums = (int[])(Array)Enum.GetValues<PageMediaSizeName>(); 2070internal static int[] MediaTypeEnums = (int[])(Array)Enum.GetValues<PageMediaType>(); 2080internal static int[] OrientationEnums = (int[])(Array)Enum.GetValues<PageOrientation>(); 2090internal static int[] ColorEnums = (int[])(Array)Enum.GetValues<OutputColor>(); 2103internal static int[] QualityEnums = (int[])(Array)Enum.GetValues<PageQualitativeResolution>(); 2116internal static int[] ScalingEnums = (int[])(Array)Enum.GetValues<PageScaling>(); 2126internal static int[] ModeEnums = (int[])(Array)Enum.GetValues<TrueTypeFontMode>(); 2136internal static int[] PageOrderEnums = (int[])(Array)Enum.GetValues<PageOrder>(); 2146internal static int[] PhotoIntentEnums = (int[])(Array)Enum.GetValues<PhotoPrintingIntent>(); 2156internal static int[] BorderlessEnums = (int[])(Array)Enum.GetValues<PageBorderless>(); 2166internal static int[] OutputQualityEnums = (int[])(Array)Enum.GetValues<OutputQuality>(); 2178internal static int[] InputBinEnums = (int[])(Array)Enum.GetValues<InputBin>();
PrintConfig\PTProvider.cs (3)
673Array.Copy(src, (int)totalBytesWritten, data, 0, bytesToWrite); 727Array.Clear(data, 0, data.Length); 740Array.Copy(data, 0, dst, (int)totalBytesRead, bytesRead);
Serialization\Manager\ReachSerializationUtils.cs (5)
200Array.Sort(List, 0, Count); 222Array.Copy(List, 0, array, 0, Count); 243Array.Clear(List, 0, Count); 258Array.Copy(List, index + 1, List, index, (Count - index - 1)); 261Array.Clear(List, Count - 1, 1);
RepoTasks (9)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (6)
702Array.Clear(keyBytes, 0, keyBytes.Length); 703Array.Clear(pem, 0, pem.Length); 709Array.Clear(keyBytes, 0, keyBytes.Length); 710Array.Clear(pem, 0, pem.Length); 760Array.Clear(bytes, 0, bytes.Length); 788Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
176Array.Clear(export, 0, export.Length);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
66Array.Clear(export, 0, export.Length);
Uuid.cs (1)
50Array.Resize(ref hash, 16);
Roslyn.Diagnostics.Analyzers (73)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (3)
23private static Word[] s_emptyArray => Array.Empty<Word>(); 100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords); 385if (_bits != null) Array.Clear(_bits, 0, _bits.Length);
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (3)
202bytes = new ArraySegment<byte>(Array.Empty<byte>()); 221bytes = new ArraySegment<byte>(Array.Empty<byte>()); 242: new ArraySegment<byte>(Array.Empty<byte>());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ArrayExtensions.cs (8)
25Array.Copy(array, start, newArray, 0, length); 34Array.Copy(array, newArray, position); 39Array.Copy(array, position, newArray, position + 1, array.Length - position); 56Array.Copy(array, newArray, position); 61Array.Copy(array, position, newArray, position + items.Length, array.Length - position); 88Array.Copy(array, newArray, position); 93Array.Copy(array, position + length, newArray, position, newArray.Length - position); 102Array.Copy(array, newArray, array.Length);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\EnumUtilties.cs (1)
35return Array.IndexOf(GetValues<T>(), value) >= 0;
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (2)
64return Array.Empty<byte>(); 69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (2)
73Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 112Array.Sort(_values, 0, _index, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Internal\ICollectionCalls.cs (1)
27public static void CopyTo<TCollection>(ref TCollection collection, Array array, int index)
src\roslyn\src\Dependencies\Collections\Internal\IDictionaryCalls.cs (1)
47public static void CopyTo<TDictionary>(ref TDictionary dictionary, Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
347void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
146void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
54void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
257readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
47void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
349void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
687void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
247void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
356readonly void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (10)
24/// <seealso cref="Array.Clear(Array, int, int)"/> 33/// <seealso cref="Array.Copy(Array, Array, int)"/> 52public static void Copy<T>(SegmentedArray<T> sourceArray, Array destinationArray, int length) 74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count); 138public static void Copy<T>(SegmentedArray<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count); 239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (2)
77_items = Array.Empty<T[]>(); 155public void CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (6)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 875void ICollection.CopyTo(Array array, int index) 1370void ICollection.CopyTo(Array array, int index) 1578void ICollection.CopyTo(Array array, int index)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (5)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize); 454void ICollection.CopyTo(Array array, int arrayIndex) 1276return Array.Empty<T>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
490Array.Clear(characterToLastSeenIndex_inSource, 0, LastSeenIndexLength);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (4)
197Array.Copy(chunk, currentOffset, buffer, index, copyCount); 315Array.Clear(chunk, 0, chunk.Length); 338Array.Clear(chunks[chunkIndex], chunkOffset, chunks[chunkIndex].Length - chunkOffset); 384Array.Copy(buffer, currentIndex, chunk, currentOffset, writeCount);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
58return ValueTask.FromResult(Array.Empty<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
88=> compilation.GetTypeByMetadataName(typeof(Array).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (1)
340var result = Array.BinarySearch([.. declarationList], declaration, comparerWithoutNameCheck);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (2)
31Array.Resize(ref finalAnnotations, originalAnnotations.Length + newAnnotations.Length); 32Array.Copy(originalAnnotations, 0, finalAnnotations, newAnnotations.Length, originalAnnotations.Length);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ArrayExtensions.cs (1)
16=> Array.IndexOf(array, item) >= 0;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (2)
442if (property.Name is nameof(Array.Length) or nameof(Array.LongLength))
rzc (3)
Client.cs (1)
176_ = await Stream.ReadAsync(Array.Empty<byte>(), 0, 0, cancellationToken);
ConnectionHost.cs (1)
112_ = await Stream.ReadAsync(Array.Empty<byte>(), 0, 0, cancellationToken);
DiscoverCommand.cs (1)
209return Array.Empty<byte>();
sdk-tasks (11)
_generated\0\SdkTasksJsonSerializerContext.MetadataEntry.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 89AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry).GetProperty("Files", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null),
FilterItemsByDuplicateHash.cs (3)
21public ITaskItem[] CandidateFiles { get; set; } = Array.Empty<ITaskItem>(); 27public ITaskItem[] ReferenceFiles { get; set; } = Array.Empty<ITaskItem>(); 33public ITaskItem[] UnmatchedFiles { get; set; } = Array.Empty<ITaskItem>();
GenerateGuidFromName.cs (3)
27Array.Copy(namespaceBytes, streamToHash, namespaceBytes.Length); 28Array.Copy(nameBytes, 0, streamToHash, namespaceBytes.Length, nameBytes.Length); 34Array.Copy(hashResult, res, res.Length);
ReplaceFileContents.cs (3)
52ReplacementItems = ReplacementItems ?? Array.Empty<ITaskItem>(); 53ReplacementPatterns = ReplacementPatterns ?? Array.Empty<ITaskItem>(); 54ReplacementStrings = ReplacementStrings ?? Array.Empty<ITaskItem>();
Shared (11)
BufferWriterPool\BufferWriter.cs (3)
36private T[] _buffer = Array.Empty<T>(); 76Array.Resize(ref _buffer, value); 185Array.Resize(ref _buffer, targetCapacity);
Data.Validation\LengthAttribute.cs (1)
18/// The standard <see cref="MinLengthAttribute" /> supports only non generic <see cref="Array"/> or <see cref="string"/> typed objects
EmptyCollections\EmptyCollectionExtensions.cs (1)
87=> array == null || array.Length == 0 ? Array.Empty<T>() : array;
EmptyCollections\EmptyReadonlyDictionary.cs (2)
30ICollection<TKey> IDictionary<TKey, TValue>.Keys => Array.Empty<TKey>(); 31ICollection<TValue> IDictionary<TKey, TValue>.Values => Array.Empty<TValue>();
ServerSentEvents\ArrayBuffer.cs (2)
45? Array.Empty<byte>() 85_bytes = Array.Empty<byte>();
ServerSentEvents\SseParser_1.cs (1)
564Array.Copy(toReturn, buffer, toReturn.Length);
src\LegacySupport\StringSyntaxAttribute\StringSyntaxAttribute.cs (1)
21Arguments = Array.Empty<object?>();
Shared.Tests (3)
EmptyCollections\EmptyReadonlyDictionaryTests.cs (1)
52dict.CopyTo(Array.Empty<KeyValuePair<int, string>>(), 0);
EmptyCollections\EmptyReadOnlyListTests.cs (1)
64coll.CopyTo(Array.Empty<int>(), 0);
JsonSchemaExporter\TestTypes.cs (1)
690AdditionalValues: [new(true), new(42), new(""), new(new object()), new(Array.Empty<int>())],
System.CodeDom (2)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
100void ICollection.CopyTo(Array array, int start) => _files.Keys.CopyTo(array, start);
System\CodeDom\CodeNamespaceImportCollection.cs (1)
82void ICollection.CopyTo(Array array, int index) => _data.CopyTo(array, index);
System.Collections (66)
src\runtime\src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (2)
33Debug.Assert(Array.MaxLength == ArrayMaxLength); 79Array.Resize(ref arr, newLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (2)
10internal static void ValidateCopyToArguments(int sourceCount, Array array, int index) 40internal static void CopyTo<T>(ICollection<T> collection, Array array, int index)
System\Collections\Generic\LinkedList.cs (1)
447void ICollection.CopyTo(Array array, int index)
System\Collections\Generic\OrderedDictionary.cs (6)
534Array.Clear(_buckets, 0, _buckets.Length); 535Array.Clear(_entries, 0, _count); 1099Array.Copy(_entries, newEntries, count); 1279void ICollection.CopyTo(Array array, int index) 1522void ICollection.CopyTo(Array array, int index) 1831void ICollection.CopyTo(Array array, int index)
System\Collections\Generic\PriorityQueue.cs (9)
66_nodes = Array.Empty<(TElement, TPriority)>(); 93_nodes = Array.Empty<(TElement, TPriority)>(); 575Array.Clear(_nodes, 0, _size); 616Array.Resize(ref _nodes, _size); 635if ((uint)newcapacity > Array.MaxLength) newcapacity = Array.MaxLength; 644Array.Resize(ref _nodes, newcapacity); 949void ICollection.CopyTo(Array array, int index) 975Array.Copy(_queue._nodes, 0, array, index, _queue._size);
System\Collections\Generic\SortedDictionary.cs (3)
271void ICollection.CopyTo(Array array, int index) 548void ICollection.CopyTo(Array array, int index) 709void ICollection.CopyTo(Array array, int index)
System\Collections\Generic\SortedList.cs (28)
75keys = Array.Empty<TKey>(); 76values = Array.Empty<TValue>(); 162Array.Sort<TKey, TValue>(keys, values, comparer); 183int i = Array.BinarySearch<TKey>(keys, 0, _size, key, comparer); 242Array.Copy(keys, newKeys, _size); 243Array.Copy(values, newValues, _size); 250keys = Array.Empty<TKey>(); 251values = Array.Empty<TValue>(); 396Array.Clear(keys, 0, _size); 400Array.Clear(values, 0, _size); 452void ICollection.CopyTo(Array array, int index) 513if ((uint)newCapacity > Array.MaxLength) newCapacity = Array.MaxLength; 584int i = Array.BinarySearch<TKey>(keys, 0, _size, key, comparer); 642int ret = Array.BinarySearch<TKey>(keys, 0, _size, key, comparer); 653return Array.IndexOf(values, value, 0, _size); 662Array.Copy(keys, index, keys, index + 1, _size - index); 663Array.Copy(values, index, values, index + 1, _size - index); 693Array.Copy(keys, index + 1, keys, index, _size - index); 694Array.Copy(values, index + 1, values, index, _size - index); 1049Array.Copy(_dict.keys, 0, array, arrayIndex, _dict.Count); 1052void ICollection.CopyTo(Array array, int arrayIndex) 1060Array.Copy(_dict.keys, 0, array!, arrayIndex, _dict.Count); 1095int i = Array.BinarySearch<TKey>(_dict.keys, 0, 1163Array.Copy(_dict.values, 0, array, arrayIndex, _dict.Count); 1166void ICollection.CopyTo(Array array, int index) 1174Array.Copy(_dict.values, 0, array!, index, _dict.Count); 1207return Array.IndexOf(_dict.values, value, 0, _dict.Count);
System\Collections\Generic\SortedSet.cs (3)
110Array.Sort(elements, 0, count, comparer); 540void ICollection.CopyTo(Array array, int index) 1129Array.Sort(elements, 0, length, Comparer);
System\Collections\Generic\Stack.cs (12)
37_array = Array.Empty<T>(); 75Array.Clear(_array, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references. 93return _size != 0 && Array.LastIndexOf(_array, item, _size - 1) >= 0; 120void ICollection.CopyTo(Array array, int arrayIndex) 146Array.Copy(_array, 0, array, arrayIndex, _size); 147Array.Reverse(array, arrayIndex, _size); 170Array.Resize(ref _array, _size); 187Array.Resize(ref _array, capacity); 321if ((uint)newcapacity > Array.MaxLength) newcapacity = Array.MaxLength; 327Array.Resize(ref _array, newcapacity); 334return Array.Empty<T>();
System.Collections.Concurrent (28)
System\Collections\Concurrent\BlockingCollection.cs (2)
1557void ICollection.CopyTo(Array array, int index) 1567Array.Copy(collectionSnapShot, 0, array, index, collectionSnapShot.Length);
System\Collections\Concurrent\ConcurrentBag.cs (13)
253/// one-dimensional <see cref="System.Array">Array</see>, starting at the specified array 256/// <param name="array">The one-dimensional <see cref="System.Array">Array</see> that is the 259/// cref="System.Array">Array</see> must have zero-based indexing.</param> 327/// cref="System.Array"/>, starting at a particular 328/// <see cref="System.Array"/> index. 330/// <param name="array">The one-dimensional <see cref="System.Array">Array</see> that is the 333/// cref="System.Array">Array</see> must have zero-based indexing.</param> 350void ICollection.CopyTo(Array array, int index) 397return Array.Empty<T>(); 789Array.Copy(_array, newArray, _array.Length); 793Array.Copy(_array, headIdx, newArray, 0, _array.Length - headIdx); 794Array.Copy(_array, 0, newArray, _array.Length - headIdx, headIdx); 846Array.Clear(_array);
System\Collections\Concurrent\ConcurrentStack.cs (11)
202/// cref="System.Array"/>, starting at a particular 203/// <see cref="System.Array"/> index. 205/// <param name="array">The one-dimensional <see cref="System.Array"/> that is the destination of 207/// <see cref="ConcurrentStack{T}"/>. The <see cref="System.Array"/> must 225void ICollection.CopyTo(Array array, int index) 238/// cref="System.Array"/>, starting at the specified array index. 240/// <param name="array">The one-dimensional <see cref="System.Array"/> that is the destination of 242/// <see cref="ConcurrentStack{T}"/>. The <see cref="System.Array"/> must have zero-based 483/// The <see cref="System.Array"/> to which objects popped from the top of the <see 510/// The <see cref="System.Array"/> to which objects popped from the top of the <see 683Array.Empty<T>() :
System\Collections\Concurrent\PartitionerStatic.cs (2)
103/// Creates an orderable partitioner from a <see cref="System.Array"/> instance. 652Array.Copy(fillBufferLocalRef, beginPos, destArray, 0, actualNumElementsGrabbed);
System.Collections.Immutable (163)
System\Collections\Frozen\EmptyFrozenDictionary.cs (4)
17private protected override TKey[] KeysCore => Array.Empty<TKey>(); 20private protected override TValue[] ValuesCore => Array.Empty<TValue>(); 23private protected override Enumerator GetEnumeratorCore() => new Enumerator(Array.Empty<TKey>(), Array.Empty<TValue>());
System\Collections\Frozen\EmptyFrozenSet.cs (2)
15private protected override T[] ItemsCore => Array.Empty<T>(); 24private protected override Enumerator GetEnumeratorCore() => new Enumerator(Array.Empty<T>());
System\Collections\Frozen\FrozenDictionary.cs (5)
336Keys is { Length: > 0 } keys ? keys : Array.Empty<TKey>(); 357Values is { Length: > 0 } values ? values : Array.Empty<TValue>(); 401void ICollection.CopyTo(Array array, int index) 636Count == 0 ? ((IList<KeyValuePair<TKey, TValue>>)Array.Empty<KeyValuePair<TKey, TValue>>()).GetEnumerator() : 641Count == 0 ? Array.Empty<KeyValuePair<TKey, TValue>>().GetEnumerator() :
System\Collections\Frozen\FrozenHashTable.cs (3)
60if ((long)numBuckets + hashCodes.Length > Array.MaxLength) 189if (minNumBuckets + hashCodes.Length > Array.MaxLength) 241Array.Clear(seenBuckets, 0, Math.Min(numBuckets, seenBuckets.Length));
System\Collections\Frozen\FrozenSet.cs (4)
284void ICollection.CopyTo(Array array, int index) 292Array.Copy(items, 0, array!, index, items.Length); 392Count == 0 ? ((IList<T>)Array.Empty<T>()).GetEnumerator() : 397Count == 0 ? Array.Empty<T>().GetEnumerator() :
System\Collections\Frozen\Integer\DenseIntegralFrozenDictionary.cs (1)
71long maxAllowedLength = Math.Min((long)count * LengthToCountFactor, Array.MaxLength);
System\Collections\Frozen\SmallValueTypeComparableFrozenDictionary.cs (1)
36Array.Sort(_keys, _values);
System\Collections\Frozen\SmallValueTypeComparableFrozenSet.cs (1)
34Array.Sort(_items);
System\Collections\Frozen\String\LengthBuckets.cs (2)
31if (expectedArraySize > Array.MaxLength) 91Array.Copy(buckets, copy, arraySize);
System\Collections\Immutable\IImmutableArray.cs (1)
23Array? Array { get; }
System\Collections\Immutable\ImmutableArray.cs (8)
153Array? array = immutableArray.Array; 201Array.Copy(items, tmp, items.Length); 228Array.Copy(items, start, array, 0, length); 259Array.Copy(items.array!, start, array, 0, length); 471return Array.BinarySearch<T>(array.array!, value); 501return Array.BinarySearch<T>(array.array!, value, comparer); 535return Array.BinarySearch<T>(array.array!, index, length, value); 575return Array.BinarySearch<T>(array.array!, index, length, value, comparer);
System\Collections\Immutable\ImmutableArray_1.Builder.cs (25)
70Array.Copy(_elements, temp, _count); 109Array.Clear(_elements, value, _count - value); 260Array.Copy(_elements, index, _elements, index + 1, this.Count - index); 282Array.Copy(_elements, index, _elements, index + count, _count - index); 314Array.Copy(_elements, index, _elements, index + items.Length, _count - index); 317Array.Copy(items.array!, 0, _elements, index, items.Length); 371Array.Copy(items, 0, _elements, offset, items.Length); 386Array.Copy(items, 0, _elements, offset, items.Length); 402Array.Copy(items, 0, _elements, offset, length); 571Array.Copy(_elements, index + 1, _elements, index, this.Count - index - 1); 598Array.Clear(_elements, index, length); // Clear the elements so that the gc can reclaim the references. 601Array.Copy(_elements, index + length, _elements, index, this.Count - index - length); 693Array.Copy(_elements, result, this.Count); 706Array.Copy(_elements, 0, array, index, this.Count); 716Array.Copy(_elements, 0, destination, 0, this.Count); 732Array.Copy(_elements, sourceIndex, destination, destinationIndex, length); 744Array.Resize(ref _elements, newCapacity); 807return Array.IndexOf(_elements, item, startIndex, count); 904return Array.LastIndexOf(_elements, item, startIndex, count); 926Array.Reverse<T>(_elements, 0, _count); 951Array.Sort(_elements, 0, this.Count, Comparer<T>.Default); 991Array.Sort(_elements, 0, _count, comparer); 1010Array.Sort(_elements, index, count, comparer); 1090Array.Copy(_elements, copied + removed, _elements, copied, copyLength); 1096Array.Copy(_elements, copied + removed, _elements, copied, _elements.Length - (copied + removed));
System\Collections\Immutable\ImmutableArray_1.cs (29)
182return Array.IndexOf(self.array, item, startIndex, count); 267return Array.LastIndexOf(self.array, item, startIndex, count); 329Array.Copy(self.array, tmp, index); 333Array.Copy(self.array, index, tmp, index + 1, self.Length - index); 367Array.Copy(self.array, tmp, index); 371Array.Copy(self.array, index, tmp, index + count, self.Length - index); 467Array.Copy(self.array, tmp, self.Length); 468Array.Copy(items, 0, tmp, self.Length, length); 491Array.Copy(self.array, tmp, self.Length); 492Array.Copy(items, 0, tmp, self.Length, items.Length); 561Array.Copy(self.array, tmp, self.Length); 661Array.Copy(self.array, tmp, index); 662Array.Copy(self.array, index + length, tmp, index, self.Length - index - length); 851Array.Copy(self.array, tmp, self.Length); 852Array.Sort(tmp, index, count, comparer); 1367/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 1369/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 1371void ICollection.CopyTo(Array array, int index) 1375Array.Copy(self.array, 0, array, index, self.Length); 1387Array? otherArray = other as Array; 1437Array? otherArray = other as Array; 1497Array.Copy(self.array, copied + removed, newArray, copied, copyLength); 1503Array.Copy(self.array, copied + removed, newArray, copied, self.Length - (copied + removed)); 1517Array.Copy(array!, tmp, index); 1522Array.Copy(array!, index, tmp, index + items.Length, Length - index);
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (4)
203Array? IImmutableArray.Array 229Array.Copy(self.array, destination, self.Length); 241Array.Copy(self.array, 0, destination, destinationIndex, self.Length); 255Array.Copy(self.array, sourceIndex, destination, destinationIndex, length);
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (5)
325/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 327/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 329void ICollection.CopyTo(Array array, int arrayIndex)
System\Collections\Immutable\ImmutableDictionary_2.cs (5)
752/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 754/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 756void ICollection.CopyTo(Array array, int arrayIndex)
System\Collections\Immutable\ImmutableExtensions.cs (4)
65/// avoids a call into the runtime's implementation of <see cref="Array.Clear(Array, int, int)"/>, helping performance, 67/// <see cref="Stack{T}.Clear"/> and <see cref="Array.Clear(Array, int, int)"/> typically don't.
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (2)
120Array.Copy(sourceArray, 0, array, arrayIndex, sourceArray.Length); 126Array.Copy(immutable.array!, 0, array, arrayIndex, immutable.Length);
System\Collections\Immutable\ImmutableHashSet_1.cs (5)
533/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 535/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 537void ICollection.CopyTo(Array array, int arrayIndex)
System\Collections\Immutable\ImmutableList_1.Builder.cs (5)
1134/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 1136/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 1138void ICollection.CopyTo(Array array, int arrayIndex)
System\Collections\Immutable\ImmutableList_1.cs (7)
503/// The one-dimensional <see cref="Array"/> that is the destination of the elements 504/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 514/// The one-dimensional <see cref="Array"/> that is the destination of the elements 515/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 533/// The one-dimensional <see cref="Array"/> that is the destination of the elements 534/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 985void System.Collections.ICollection.CopyTo(Array array, int arrayIndex) => _root.CopyTo(array, arrayIndex);
System\Collections\Immutable\ImmutableList_1.Node.cs (13)
579Array.Sort(array, comparison); 618Array.Sort(array, index, count, comparer); 833/// The one-dimensional <see cref="Array"/> that is the destination of the elements 834/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 854/// The one-dimensional <see cref="Array"/> that is the destination of the elements 855/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 883/// The one-dimensional <see cref="Array"/> that is the destination of the elements 884/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 908/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 910/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 912internal void CopyTo(Array array, int arrayIndex)
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (5)
400/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 402/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 404void ICollection.CopyTo(Array array, int index)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (5)
649/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 651/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 653void ICollection.CopyTo(Array array, int index)
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (1)
214internal void CopyTo(Array array, int arrayIndex, int dictionarySize)
System\Collections\Immutable\ImmutableSortedSet_1.Builder.cs (5)
480/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 482/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 484void ICollection.CopyTo(Array array, int arrayIndex)
System\Collections\Immutable\ImmutableSortedSet_1.cs (5)
970/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 972/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 974void ICollection.CopyTo(Array array, int index)
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (1)
320internal void CopyTo(Array array, int arrayIndex)
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (5)
127/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 129/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 131void ICollection.CopyTo(Array array, int arrayIndex)
System.Collections.NonGeneric (54)
System\Collections\CollectionBase.cs (1)
110void ICollection.CopyTo(Array array, int index)
System\Collections\DictionaryBase.cs (1)
64public void CopyTo(Array array, int index)
System\Collections\Queue.cs (16)
88Array.Copy(_array, _head, q._array, 0, firstPart); 91Array.Copy(_array, 0, q._array, _array.Length - _head, numToCopy); 110Array.Clear(_array, _head, _size); 113Array.Clear(_array, _head, _array.Length - _head); 114Array.Clear(_array, 0, _tail); 128public virtual void CopyTo(Array array, int index) 144Array.Copy(_array, _head, array, index, firstPart); 147Array.Copy(_array, 0, array, index + _array.Length - _head, numToCopy); 252return Array.Empty<object>(); 257Array.Copy(_array, _head, arr, 0, _size); 261Array.Copy(_array, _head, arr, 0, _array.Length - _head); 262Array.Copy(_array, 0, arr, _array.Length - _head, _tail); 278Array.Copy(_array, _head, newarray, 0, _size); 282Array.Copy(_array, _head, newarray, 0, _array.Length - _head); 283Array.Copy(_array, 0, newarray, _array.Length - _head, _tail); 359public override void CopyTo(Array array, int arrayIndex)
System\Collections\ReadOnlyCollectionBase.cs (1)
36void ICollection.CopyTo(Array array, int index)
System\Collections\SortedList.cs (29)
82keys = Array.Empty<object>(); 83values = Array.Empty<object>(); 162Array.Sort(keys, comparer); 177int i = Array.BinarySearch(keys, 0, _size, key, comparer); 210Array.Copy(keys, newKeys, _size); 211Array.Copy(values, newValues, _size); 220keys = Array.Empty<object>(); 221values = Array.Empty<object>(); 286Array.Clear(keys, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references. 287Array.Clear(values, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references. 297Array.Copy(keys, sl.keys, _size); 298Array.Copy(values, sl.values, _size); 334public virtual void CopyTo(Array array, int arrayIndex) 374if ((uint)newCapacity > Array.MaxLength) newCapacity = Array.MaxLength; 457int i = Array.BinarySearch(keys, 0, _size, key, comparer); 479int ret = Array.BinarySearch(keys, 0, _size, key, comparer); 491return Array.IndexOf(values, value, 0, _size); 500Array.Copy(keys, index, keys, index + 1, _size - index); 501Array.Copy(values, index, values, index + 1, _size - index); 518Array.Copy(keys, index + 1, keys, index, _size - index); 519Array.Copy(values, index + 1, values, index, _size - index); 680public override void CopyTo(Array array, int index) 938public void CopyTo(Array array, int arrayIndex) 944Array.Copy(sortedList.keys, 0, array!, arrayIndex, sortedList.Count); 973int i = Array.BinarySearch(sortedList.keys, 0, 1041public void CopyTo(Array array, int arrayIndex) 1047Array.Copy(sortedList.values, 0, array!, arrayIndex, sortedList.Count); 1074return Array.IndexOf(sortedList.values, value, 0, sortedList.Count);
System\Collections\Stack.cs (6)
80Array.Clear(_array, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references. 89Array.Copy(_array, s._array, _size); 114public virtual void CopyTo(Array array, int index) 180Array.Copy(_array, newArray, _size); 201return Array.Empty<object>(); 272public override void CopyTo(Array array, int arrayIndex)
System.Collections.Specialized (13)
System\Collections\Specialized\HybridDictionary.cs (1)
287public void CopyTo(Array array, int index)
System\Collections\Specialized\ListDictionary.cs (2)
204public void CopyTo(Array array, int index) 362void ICollection.CopyTo(Array array, int index)
System\Collections\Specialized\NameObjectCollectionBase.cs (3)
371void ICollection.CopyTo(Array array, int index) 443object?[] allValues = (object?[])Array.CreateInstance(type, n); 595void ICollection.CopyTo(Array array, int index)
System\Collections\Specialized\NameValueCollection.cs (1)
196public void CopyTo(Array dest, int index)
System\Collections\Specialized\OrderedDictionary.cs (2)
274public void CopyTo(Array array, int index) 556void ICollection.CopyTo(Array array, int index)
System\Collections\Specialized\StringCollection.cs (2)
99/// <para>Copies the <see cref='System.Collections.Specialized.StringCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the 224void ICollection.CopyTo(Array array, int index)
System\Collections\Specialized\StringDictionary.cs (2)
152/// <para>Copies the string dictionary values to a one-dimensional <see cref='System.Array'/> instance at the 155public virtual void CopyTo(Array array, int index)
System.CommandLine (14)
Argument{T}.cs (2)
116return (T?)(object)Array.CreateInstance(typeof(T).GetElementType()!, 0); 126return (T?)(object)Array.CreateInstance(typeof(T).GenericTypeArguments[0], 0);
Binding\ArgumentConverter.cs (1)
90var isArray = values is Array;
Binding\ArgumentConverter.DefaultValues.cs (2)
18private static Array CreateArray(Type itemType, int capacity) 19=> Array.CreateInstance(itemType, capacity);
Directive.cs (1)
40=> Array.Empty<CompletionItem>();
Option.cs (1)
148return Array.Empty<CompletionItem>();
ParseResult.cs (5)
58_unmatchedTokens = unmatchedTokens is null ? Array.Empty<Token>() : unmatchedTokens; 59Errors = errors is not null ? errors : Array.Empty<ParseError>(); 62internal static ParseResult Empty() => new RootCommand().Parse(Array.Empty<string>()); 108=> _unmatchedTokens.Count == 0 ? Array.Empty<string>() : _unmatchedTokens.Select(t => t.Value).ToArray(); 255: Array.Empty<string>();
Parsing\DirectiveResult.cs (1)
23public IReadOnlyList<string> Values => _values is null ? Array.Empty<string>() : _values;
Parsing\SymbolResult.cs (1)
55public IReadOnlyList<Token> Tokens => _tokens is not null ? _tokens : Array.Empty<Token>();
System.ComponentModel.Annotations (8)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
191attributes = Array.Empty<Attribute>();
System\ComponentModel\DataAnnotations\AssociationAttribute.cs (1)
75return Array.Empty<string>();
System\ComponentModel\DataAnnotations\FilterUIHintAttribute.cs (2)
43: this(filterUIHint, null, Array.Empty<object>()) 55: this(filterUIHint, presentationLayer, Array.Empty<object>())
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (3)
25: this(uiHint, null, Array.Empty<object>()) 35: this(uiHint, presentationLayer, Array.Empty<object>()) 84Array.Copy(controlParameters, _inputControlParameters, controlParameters.Length);
System\ComponentModel\DataAnnotations\ValidationResult.cs (1)
60MemberNames = memberNames ?? Array.Empty<string>();
System.ComponentModel.Composition (33)
Microsoft\Internal\Collections\CollectionServices.cs (1)
63return Array.AsReadOnly(source.AsArray());
System\ComponentModel\Composition\CompositionException.cs (2)
95_errors = Array.AsReadOnly(errors == null ? Array.Empty<CompositionError>() : errors.ToArray<CompositionError>());
System\ComponentModel\Composition\ExportServices.cs (1)
44Array.Empty<ParameterModifier>()) != null;
System\ComponentModel\Composition\Hosting\AggregateCatalog.cs (1)
37/// An <see cref="Array"/> of <see cref="ComposablePartCatalog"/> objects to add to the
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (2)
61copiedProviders = Array.Empty<ExportProvider>(); 65_readOnlyProviders = Array.AsReadOnly(_providers);
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (1)
305Array.Copy(_values, newQueries, _valueCount);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (2)
840new ExportsChangeEventArgs(resurrectedExports, Array.Empty<ExportDefinition>(), localAtomicComposition)); 843new ExportsChangeEventArgs(resurrectedExports, Array.Empty<ExportDefinition>(), null)));
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (2)
367Array.Empty<ExportDefinition>(); 371Array.Empty<ExportDefinition>();
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (7)
30private static readonly ReadOnlyCollection<ExportProvider> EmptyProviders = new ReadOnlyCollection<ExportProvider>(Array.Empty<ExportProvider>()); 45/// A <see cref="Array"/> of <see cref="ExportProvider"/> objects which provide 66/// A <see cref="Array"/> of <see cref="ExportProvider"/> objects which provide 85/// A <see cref="Array"/> of <see cref="ExportProvider"/> objects which provide 107/// A <see cref="Array"/> of <see cref="ExportProvider"/> objects which provide 129/// A <see cref="Array"/> of <see cref="ExportProvider"/> objects which provide 226_providers = (providers != null) ? Array.AsReadOnly((ExportProvider[])providers.Clone()) : EmptyProviders;
System\ComponentModel\Composition\Hosting\CompositionServices.cs (3)
424public Array ToArray() 437Array array = Array.CreateInstance(_arrayType, _innerList.Count);
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (3)
635_loadedFiles = Array.AsReadOnly(afterFiles); 736return Array.ConvertAll<string, string>(files, (file) => file.ToUpperInvariant()); 759_loadedFiles = Array.AsReadOnly(GetFiles());
System\ComponentModel\Composition\Hosting\ExportProvider.cs (1)
227exports ??= Array.Empty<Export>();
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
39/// An <see cref="Array"/> of attributed <see cref="Type"/> objects to add to the
System\ComponentModel\Composition\MetadataViewGenerator.cs (2)
223Array.Reverse(optionalModifiers); 224Array.Reverse(requiredModifiers);
System\ComponentModel\Composition\ReflectionModel\ImportingItem.cs (3)
45private Array CastExportsToCollectionImportType(Export[] exports) 53Array array = Array.CreateInstance(elementType, exports.Length);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (1)
500value = import.CastExportsToImportType(Array.Empty<Export>());
System.ComponentModel.TypeConverter (68)
System\ComponentModel\ArrayConverter.cs (5)
10/// Provides a type converter to convert <see cref='System.Array'/> 20if (destinationType == typeof(string) && value is Array) 39if (!(value is Array valueArray)) 75if (instance is Array array && array.GetLength(0) > _index) 85if (instance is Array array)
System\ComponentModel\AttributeCollection.cs (7)
46_attributes = attributes ?? Array.Empty<Attribute>(); 54protected AttributeCollection() : this(Array.Empty<Attribute>()) 65newAttributes ??= Array.Empty<Attribute>(); 99Array.Copy(newArray, attributes, actualCount); 272attr = (Attribute)ci.Invoke(Array.Empty<object>()); 342public void CopyTo(Array array, int index) => Array.Copy(Attributes, 0, array, index, Attributes.Length);
System\ComponentModel\Container.cs (2)
63Array.Copy(_sites, newSites, _siteCount); 203Array.Copy(_sites, i + 1, _sites, i, _siteCount - i);
System\ComponentModel\CultureInfoConverter.cs (3)
179int invariantIndex = Array.IndexOf(installedCultures, CultureInfo.InvariantCulture); 193Array.Copy(installedCultures, array, installedCultures.Length); 194Array.Sort(array, new CultureComparer(this));
System\ComponentModel\Design\DesignerCollection.cs (1)
63void ICollection.CopyTo(Array array, int index) => _designers.CopyTo(array, index);
System\ComponentModel\Design\DesignerOptionService.cs (1)
244public void CopyTo(Array array, int index)
System\ComponentModel\Design\PropertyTabAttribute.cs (2)
26TabScopes = Array.Empty<PropertyTabScope>(); 27_tabClassNames = Array.Empty<string>();
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (1)
33Arguments = Array.Empty<object>();
System\ComponentModel\EnumConverter.cs (2)
181Array objValues = Enum.GetValuesAsUnderlyingType(EnumType); 305Array? arr = objValues?.ToArray();
System\ComponentModel\EventDescriptorCollection.cs (11)
35_events = Array.Empty<EventDescriptor>(); 117void ICollection.CopyTo(Array array, int index) 120Array.Copy(_events, 0, array, index, Count); 131Array.Copy(_events, newEvents, Count); 161Array.Copy(_events, newEvents, Count); 199public int IndexOf(EventDescriptor? value) => Array.IndexOf(_events, value, 0, Count); 211Array.Copy(_events, index, _events, index + 1, Count - index); 241Array.Copy(_events, index + 1, _events, index, Count - index - 1); 364Array.Sort(_events, sorter); 415private readonly Array? _array; 419public ArraySubsetEnumerator(Array? array, int count)
System\ComponentModel\LicenseManager.cs (1)
123return CreateWithContext(type, creationContext, Array.Empty<object>());
System\ComponentModel\ListSortDescriptionCollection.cs (1)
68public void CopyTo(Array array, int index) => _sorts.CopyTo(array, index);
System\ComponentModel\PropertyDescriptor.cs (2)
342Array.Copy(_editorTypes, newTypes, _editorTypes.Length); 343Array.Copy(_editors, newEditors, _editors.Length);
System\ComponentModel\PropertyDescriptorCollection.cs (11)
40_properties = Array.Empty<PropertyDescriptor>(); 124public void CopyTo(Array array, int index) 127Array.Copy(_properties, 0, array, index, Count); 138Array.Copy(_properties, newProps, Count); 168Array.Copy(_properties, newProps, Count); 232public int IndexOf(PropertyDescriptor? value) => Array.IndexOf(_properties, value, 0, Count); 244Array.Copy(_properties, index, _properties, index + 1, Count - index); 274Array.Copy(_properties, index + 1, _properties, index, Count - index - 1); 382Array.Sort(_properties, sorter); 396Array.Copy(_properties, enumProps, Count); 527Array.Copy(_properties, newProps, Count);
System\ComponentModel\ReflectEventDescriptor.cs (1)
97: base(eventInfo.Name, Array.Empty<Attribute>())
System\ComponentModel\ReflectPropertyDescriptor.cs (3)
335_propInfo = _componentClass.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>()); 448_propInfo = _componentClass.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>()); 818memberInfo = currentReflectType.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>());
System\ComponentModel\ReflectTypeDescriptionProvider.cs (6)
182[typeof(Array)] = new IntrinsicTypeConverterData((type) => new ArrayConverter()), 668return Array.Empty<IExtenderProvider>(); 1198Array.Copy(events, newEvents, eventCount); 1395Array.Copy(properties, newProperties, propertyCount); 1399Debug.Assert(Array.TrueForAll(properties, dbgProp => dbgProp is not null), $"Holes in property array for type {type}"); 1565converterData = IntrinsicTypeConverters[typeof(Array)];
System\ComponentModel\TypeConverter.cs (5)
349protected SimplePropertyDescriptor(Type componentType, string name, Type propertyType) : this(componentType, name, propertyType, Array.Empty<Attribute>()) 420private Array? _valueArray; 429values ??= Array.Empty<object>(); 431if (values is Array a) 485public void CopyTo(Array array, int index) => _values.CopyTo(array, index);
System\ComponentModel\TypeDescriptionProvider.cs (1)
151return Array.Empty<IExtenderProvider>();
System\ComponentModel\TypeDescriptor.cs (1)
2950Array.Copy(newArray, finalAttr, actualCount);
System\ComponentModel\TypeListConverter.cs (1)
99Array.Copy(_types, objTypes, _types.Length);
System.Composition.AttributedModel (1)
System\Composition\SharingBoundaryAttribute.cs (1)
38public ReadOnlyCollection<string> SharingBoundaryNames => Array.AsReadOnly(_sharingBoundaryNames);
System.Composition.Hosting (7)
System\Composition\Hosting\CompositionHost.cs (1)
21private static readonly string[] s_noBoundaries = Array.Empty<string>();
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
17private static readonly CompositionDependency[] s_noDependenciesValue = Array.Empty<CompositionDependency>();
System\Composition\Hosting\Core\UpdateResult.cs (1)
14private static readonly ExportDescriptorPromise[] s_noPromises = Array.Empty<ExportDescriptorPromise>();
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (2)
29var boundaries = Array.Empty<string>(); 36boundaries = (specifiedBoundaries ?? Array.Empty<string>()).ToArray();
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (2)
32var boundaries = Array.Empty<string>(); 39boundaries = (specifiedBoundaries ?? Array.Empty<string>()).ToArray();
System.Composition.TypedParts (9)
System\Composition\TypedParts\ActivationFeatures\ActivationFeature.cs (1)
18protected static readonly CompositionDependency[] NoDependencies = Array.Empty<CompositionDependency>();
System\Composition\TypedParts\Discovery\TypeInspector.cs (7)
131var existingArray = existingValue as Array; 134var newArray = Array.CreateInstance(valueType, existingArray.Length + 1); 135Array.Copy(existingArray, newArray, existingArray.Length); 141var newArray = Array.CreateInstance(valueType, 2);
System\Composition\TypedParts\Util\DirectAttributeContext.cs (1)
18return Array.Empty<Attribute>();
System.Configuration.ConfigurationManager (14)
src\runtime\src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
100void ICollection.CopyTo(Array array, int start) => _files.Keys.CopyTo(array, start);
System\Configuration\ConfigurationElementCollection.cs (1)
125void ICollection.CopyTo(Array arr, int index)
System\Configuration\ConfigurationLockCollection.cs (1)
110void ICollection.CopyTo(Array array, int index)
System\Configuration\ConfigurationPropertyCollection.cs (1)
34void ICollection.CopyTo(Array array, int index)
System\Configuration\DpapiProtectedConfigurationProvider.cs (1)
120return (s != null) ? Encoding.Unicode.GetBytes(s) : Array.Empty<byte>();
System\Configuration\Provider\ProviderCollection.cs (1)
31void ICollection.CopyTo(Array array, int index)
System\Configuration\SectionUpdates.cs (4)
182Array.Sort(sectionNames); 201Array.Sort(sectionNames); 222Array.Sort(groupNames); 243Array.Sort(groupNames);
System\Configuration\SettingsPropertyCollection.cs (1)
113public void CopyTo(Array array, int index)
System\Configuration\SettingsPropertyValueCollection.cs (1)
115public void CopyTo(Array array, int index)
System\Diagnostics\TraceUtils.cs (2)
57ConstructorInfo ctorInfo = objectType.GetConstructor(Array.Empty<Type>()); 60newObject = ctorInfo.Invoke(Array.Empty<object>());
System.Console (2)
src\runtime\src\libraries\Common\src\System\Text\ConsoleEncoding.cs (1)
35return Array.Empty<byte>();
System\IO\StdInReader.cs (1)
79Array.Resize(ref _unprocessedBufferToBeRead, _unprocessedBufferToBeRead.Length * 2);
System.Data.Common (131)
_generated\0\RegexGenerator.g.cs (2)
607Array.Resize(ref stack, (pos + 0) * 2); 634Array.Resize(ref stack, (pos + 1) * 2);
System\Data\BaseCollection.cs (1)
23public virtual void CopyTo(Array ar, int index) => List.CopyTo(ar, index);
System\Data\ColumnTypeConverter.cs (1)
141Array.Copy(s_types, objTypes, s_types.Length);
System\Data\Common\AdapterUtil.Common.cs (1)
55internal static void CheckArgumentLength(Array value, string parameterName)
System\Data\Common\BigIntegerStorage.cs (1)
144Array.Resize(ref _values, capacity);
System\Data\Common\BooleanStorage.cs (1)
164Array.Resize(ref _values, capacity);
System\Data\Common\ByteStorage.cs (1)
236Array.Resize(ref _values, capacity);
System\Data\Common\CharStorage.cs (1)
168Array.Resize(ref _values, capacity);
System\Data\Common\DataAdapter.cs (2)
363value = Array.Empty<DataTable>(); 723public virtual IDataParameter[] GetFillParameters() => Array.Empty<IDataParameter>();
System\Data\Common\DataColumnMappingCollection.cs (3)
144public void AddRange(System.Array values) 154private void AddEnumerableRange(Array values, bool doClone) 228public void CopyTo(Array array, int index)
System\Data\Common\DataRecordInternal.cs (2)
140Array.Copy(data, ndataIndex, buffer, bufferIndex, cbytes); 216Array.Copy(data, ndataIndex, buffer, bufferIndex, cchars);
System\Data\Common\DataTableMappingCollection.cs (3)
106public void AddRange(System.Array values) => AddEnumerableRange(values, false); 108private void AddEnumerableRange(Array values, bool doClone) 174public void CopyTo(Array array, int index) => ((ICollection)ArrayList()).CopyTo(array, index);
System\Data\Common\DateTimeOffsetStorage.cs (1)
171Array.Resize(ref _values, capacity);
System\Data\Common\DateTimeStorage.cs (1)
210Array.Resize(ref _values, capacity);
System\Data\Common\DbConnectionStringBuilder.cs (2)
308void ICollection.CopyTo(Array array, int index) 585Array.Copy(propertiesArray, filteredPropertiesArray, index);
System\Data\Common\DbDataAdapter.cs (3)
316return Array.Empty<DataTable>(); // design-time support 709value = Array.Empty<IDataParameter>(); 1305Array.Copy(rowBatch, finalRowBatch, commandCount);
System\Data\Common\DbParameterCollection.cs (2)
76public abstract void AddRange(System.Array values); 94public abstract void CopyTo(System.Array array, int index);
System\Data\Common\DecimalStorage.cs (1)
232Array.Resize(ref _values, capacity);
System\Data\Common\DoubleStorage.cs (1)
236Array.Resize(ref _values, capacity);
System\Data\Common\Int16Storage.cs (1)
250Array.Resize(ref _values, capacity);
System\Data\Common\Int32Storage.cs (1)
249Array.Resize(ref _values, capacity);
System\Data\Common\Int64Storage.cs (1)
241Array.Resize(ref _values, capacity);
System\Data\Common\ObjectStorage.cs (5)
152Array arr1 = (Array)valueNo1; 153Array arr2 = (Array)valueNo2; 310Array.Copy(_values, newValues, Math.Min(capacity, _values.Length));
System\Data\Common\SByteStorage.cs (1)
238Array.Resize(ref _values, capacity);
System\Data\Common\SingleStorage.cs (1)
237Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLBinaryStorage.cs (1)
94Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQlBooleanStorage.cs (1)
128Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
92Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
204Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
94Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (1)
130Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLDecimalStorage.cs (1)
202Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
203Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLGuidStorage.cs (1)
95Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLInt16Storage.cs (1)
203Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
203Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
204Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLMoneyStorage.cs (1)
203Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
201Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLStringStorage.cs (1)
156Array.Resize(ref _values, capacity);
System\Data\Common\SqlUDTStorage.cs (1)
140Array.Resize(ref _values, capacity);
System\Data\Common\StringStorage.cs (1)
185Array.Copy(_values, newValues, Math.Min(capacity, _values.Length));
System\Data\Common\TimeSpanStorage.cs (1)
256Array.Resize(ref _values, capacity);
System\Data\Common\UInt16Storage.cs (1)
249Array.Resize(ref _values, capacity);
System\Data\Common\UInt32Storage.cs (1)
248Array.Resize(ref _values, capacity);
System\Data\Common\UInt64Storage.cs (1)
239Array.Resize(ref _values, capacity);
System\Data\ConstraintCollection.cs (2)
449BaseGroupSwitch(constraints, oldLength, Array.Empty<Constraint>(), 0); 454BaseGroupSwitch(Array.Empty<Constraint>(), 0, constraints, oldLength);
System\Data\DataColumnCollection.cs (3)
31private DataColumn[] _columnsImplementingIChangeTracking = Array.Empty<DataColumn>(); 605BaseGroupSwitch(columns, oldLength, Array.Empty<DataColumn>(), 0); 612BaseGroupSwitch(Array.Empty<DataColumn>(), 0, columns, oldLength);
System\Data\DataError.cs (2)
85Array.Copy(_errorList, i + 1, _errorList, i, _count - i - 1); 143Array.Copy(_errorList, biggerList, _count);
System\Data\DataRow.cs (1)
799Array.Empty<DataColumn>() : _error.GetColumnsInError();
System\Data\DataRowCollection.cs (1)
168public override void CopyTo(Array ar, int index) => _list.CopyTo(ar, index);
System\Data\DataRowComparer.cs (6)
33return (a.Equals(b) || (a.GetType().IsArray && CompareArray((Array)a, b as Array))); 52private static bool CompareArray(Array a, Array? b) 195Array array = (Array)value;
System\Data\DataSet.cs (2)
2402excludedNamespaces = Array.Empty<string>(); 3250Array.Empty<DataTable>() :
System\Data\DataTable.cs (11)
98internal IndexField[] _primaryIndex = Array.Empty<IndexField>(); 123private DataRelation[] _nestedParentRelations = Array.Empty<DataRelation>(); 1602Array.Empty<DataRelation>() : 1639return Array.Empty<DataColumn>(); 1731_primaryIndex = (key != null) ? key.Key.GetIndexDesc() : Array.Empty<IndexField>(); 3376Array.Copy(indexDesc, newIndexDesc, indexDesc.Length); 3538_emptyDataRowArray = (DataRow[])Array.CreateInstance(GetRowType(), 0); 3542return (DataRow[])Array.CreateInstance(GetRowType(), size); 3546return ((0 == size) ? Array.Empty<DataRow>() : new DataRow[size]); 3707IndexField[] indexDesc = Array.Empty<IndexField>(); 5014int[] primaryKeyIndex = Array.Empty<int>();
System\Data\DataTableCollection.cs (1)
476BaseGroupSwitch(tables, oldLength, Array.Empty<DataTable>(), 0);
System\Data\DataTableReader.cs (3)
380Array.Copy(tempBuffer, dataIndex, buffer, bufferIndex, byteCount); 443Array.Copy(tempBuffer, dataIndex, buffer, bufferIndex, charCount); 680Array.Copy(_currentDataRow!.ItemArray, values, _currentDataRow.ItemArray.Length > values.Length ? values.Length : _currentDataRow.ItemArray.Length);
System\Data\DataView.cs (5)
635public void CopyTo(Array array, int index) 771return Array.Empty<DataRowView>(); 1125ListSortDescription[] sortDescArray = Array.Empty<ListSortDescription>(); 1669ToTable(null, false, Array.Empty<string>()); 1672ToTable(tableName, false, Array.Empty<string>());
System\Data\DataViewManager.cs (1)
158void ICollection.CopyTo(Array array, int index)
System\Data\DataViewSettingCollection.cs (2)
111public void CopyTo(Array ar, int index) 174_tableEnumerator = Array.Empty<DataTable>().GetEnumerator();
System\Data\FillErrorEventArgs.cs (1)
16_values = values ?? Array.Empty<object?>();
System\Data\Filter\DataExpression.cs (1)
22private DataColumn[] _dependency = Array.Empty<DataColumn>();
System\Data\Filter\FunctionNode.cs (1)
79Array.Copy(_arguments, bigger, _argumentCount);
System\Data\PrimaryKeyTypeConverter.cs (1)
28Array.Empty<DataColumn>().GetType().Name :
System\Data\ProviderBase\SchemaMapping.cs (1)
526Array.Copy(rgcol, tmp, len);
System\Data\RbTree.cs (3)
166Array.Copy(_pageTable, newPageTable, _pageTable.Length); 168Array.Copy(_pageTableMap, newPageTableMap, _pageTableMap.Length); 1624public void CopyTo(Array array, int index)
System\Data\RecordManager.cs (1)
39Array.Copy(_rows, newRows, Math.Min(_lastFreeRecord, _rows.Length));
System\Data\Selection.cs (1)
497return Array.Empty<object>();
System\Data\SqlDbType.cs (4)
17/// <see cref="Array"/> of type <see cref="byte"/>. A fixed-length stream of binary data ranging between 1 and 8,000 bytes. 47/// <see cref="Array"/> of type <see cref="byte"/>. A variable-length stream of binary data ranging from 0 to 2 <sup>31</sup> -1 113/// <see cref="System.Array"/> of type <see cref="byte"/>. Automatically generated binary numbers, which are guaranteed to be unique within a database. <see langword="timestamp"/> is used typically as a mechanism for version-stamping table rows. The storage size is 8 bytes. 123/// <see cref="System.Array"/> of type <see cref="byte"/>. A variable-length stream of binary data ranging between 1 and 8,000 bytes.
System\Data\SQLTypes\SQLBinary.cs (2)
428_value = Array.Empty<byte>(); 436_value = Array.Empty<byte>();
System\Data\SQLTypes\SQLBytes.cs (3)
181Array.Copy(_rgbBuf!, buffer, (int)_lCurLen); 541value = Array.Empty<byte>(); 547value = Array.Empty<byte>();
System\Data\SQLTypes\SQLChars.cs (3)
181Array.Copy(_rgchBuf!, buffer, (int)_lCurLen); 321Array.Copy(_rgchBuf!, offset, buffer, offsetInBuffer, count); 385Array.Copy(buffer, offsetInBuffer, _rgchBuf, offset, count);
System\Data\XDRSchema.cs (1)
278int index = Array.BinarySearch(s_mapNameTypeXdr, name);
System\Data\xmlsaver.cs (3)
533return Array.Empty<DataTable>(); 764DataRelation[] rels = Array.Empty<DataRelation>(); 2755return Array.Empty<DataTable>();
System\Data\XMLSchema.cs (3)
1788int index = Array.BinarySearch(s_mapNameTypeXsd, xsdTypeName); 1854int index = Array.BinarySearch(s_mapNameTypeXsd, name); 1902int index = Array.BinarySearch(s_mapNameTypeXsd, name);
System\Xml\XmlDataDocument.cs (1)
3044retValue = Array.Empty<DataTable>();
System.Data.Odbc (17)
_generated\1\RegexGenerator.g.cs (2)
607Array.Resize(ref stack, (pos + 0) * 2); 634Array.Resize(ref stack, (pos + 1) * 2);
Common\System\Data\Common\DBConnectionString.cs (6)
352return ((null == _restrictionValues) || (0 > Array.BinarySearch(_restrictionValues, key, StringComparer.Ordinal))); 398if (0 > Array.BinarySearch(preventusage, allowonly[i], StringComparer.Ordinal)) 421if (0 <= Array.BinarySearch(b, a[i], StringComparer.Ordinal)) 454if (0 > Array.BinarySearch(a, b[i], StringComparer.Ordinal)) 460Array.Sort(restrictionValues, StringComparer.Ordinal); 496Array.Sort(restrictions, StringComparer.Ordinal);
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbReferenceCollection.cs (1)
131Array.Resize<CollectionEntry>(ref _items, _items.Length * 2);
System\Data\Odbc\OdbcDataReader.cs (3)
1081private long GetBytesOrChars(int i, long dataIndex, Array? buffer, bool isCharsBuffer, int bufferIndex, int length) 1194Array.Copy((byte[])cachedObj, (int)dataIndex, (byte[])buffer, bufferIndex, lengthOfCopy); 1337private int readBytesOrCharsSequentialAccess(int i, Array? buffer, bool isCharsBuffer, int bufferIndex, long bytesOrCharsLength)
System\Data\Odbc\OdbcErrorCollection.cs (1)
49public void CopyTo(Array array, int i)
System\Data\Odbc\OdbcParameterCollection.cs (2)
98AddRange((Array)values); 152CopyTo((Array)array, index);
System\Data\Odbc\OdbcParameterCollectionHelper.cs (2)
79public override void AddRange(System.Array values) 127public override void CopyTo(Array array, int index)
System.Data.OleDb (19)
_generated\4\RegexGenerator.g.cs (2)
607Array.Resize(ref stack, (pos + 0) * 2); 634Array.Resize(ref stack, (pos + 1) * 2);
ColumnBinding.cs (1)
684return value ?? Array.Empty<byte>();
DbConnectionStringCommon.cs (4)
29Array.Copy(_items, 0, array, arrayIndex, _items.Length); 32void System.Collections.ICollection.CopyTo(Array array, int arrayIndex) 34Array.Copy(_items, 0, array, arrayIndex, _items.Length); 74return Array.IndexOf(_items, value) >= 0;
OleDbCommandBuilder.cs (2)
153OleDbParameter[] plist = Array.Empty<OleDbParameter>(); 182Array.Copy(parsed, 1, restrictions, 0, 3);
OleDbConnectionInternal.cs (2)
622restrictions = Array.Empty<object>(); 830propertySets = Array.Empty<Guid>();
OleDbConnectionStringBuilder.cs (1)
684Array.Sort(objValues, 0, objValues.Length);
OleDbDataReader.cs (1)
315_metadata = Array.Empty<MetaData>();
OleDbErrorCollection.cs (1)
64public void CopyTo(Array array, int index)
OleDbParameterCollection.cs (2)
96AddRange((Array)values); 111CopyTo((Array)array, index);
OleDbParameterCollectionHelper.cs (2)
80public override void AddRange(System.Array values) 128public override void CopyTo(Array array, int index)
System\Data\ProviderBase\DbReferenceCollection.cs (1)
127Array.Resize<CollectionEntry>(ref _items, _items.Length * 2);
System.Diagnostics.DiagnosticSource (15)
System\Diagnostics\ActivityEvent.cs (1)
15private static readonly IEnumerable<KeyValuePair<string, object?>> s_emptyTags = Array.Empty<KeyValuePair<string, object?>>();
System\Diagnostics\ActivitySource.cs (6)
439Array.Copy(_volatileArray, newArray, _volatileArray.Length);// copy existing items 450int index = Array.IndexOf(_volatileArray, item); 459Array.Copy(_volatileArray, newArray, _volatileArray.Length);// copy existing items 472int index = Array.IndexOf(_volatileArray, item); 481Array.Copy(_volatileArray, newArray, index);// copy existing items before index 483Array.Copy(
System\Diagnostics\Metrics\AggregatorStore.cs (1)
335Array.Sort(instructions, (LabelInstruction a, LabelInstruction b) => string.CompareOrdinal(a.LabelName, b.LabelName));
System\Diagnostics\Metrics\CircularBufferBuckets.cs (2)
269return Array.Empty<long>(); 287Array.Clear(_trait);
System\Diagnostics\Metrics\ExponentialHistogramAggregator.cs (2)
13Array.Sort(Quantiles); 127return new HistogramStatistics(Array.Empty<QuantileValue>(), count, sum);
System\Diagnostics\Metrics\Instrument.cs (1)
15internal static KeyValuePair<string, object?>[] EmptyTags => Array.Empty<KeyValuePair<string, object?>>();
System\Diagnostics\Metrics\TagList.netcore.cs (2)
128Array.Resize(ref _overflowTags, _tagsCount + OverflowAdditionalCapacity); 196Array.Resize(ref _overflowTags, _tagsCount + OverflowAdditionalCapacity);
System.Diagnostics.EventLog (23)
System\Diagnostics\EventLog.cs (2)
817string? formatString = UnsafeTryFormatMessage(hModule, messageNum, Array.Empty<string>()); 866Array.Copy(insertionStrings, newStrings, insertionStrings.Length);
System\Diagnostics\EventLogEntry.cs (2)
69Array.Copy(dataBuf, bufOffset + IntFrom(dataBuf, bufOffset + FieldOffsets.DATAOFFSET), 276Array.Copy(dataBuf, bufOffset + IntFrom(dataBuf, bufOffset + FieldOffsets.USERSIDOFFSET),
System\Diagnostics\EventLogEntryCollection.cs (3)
35((ICollection)this).CopyTo((Array)entries, index); 64void ICollection.CopyTo(Array array, int index) 67Array.Copy(entries, 0, array, index, entries.Length);
System\Diagnostics\EventLogInternal.cs (3)
656insertionStrings ??= Array.Empty<string>(); 1357strings ??= Array.Empty<string>(); 1370rawData ??= Array.Empty<byte>();
System\Diagnostics\Reader\EventLogRecord.cs (2)
281string?[] theValues = Array.Empty<string>(); 286Array.Resize(ref theValues, i + 1);
System\Diagnostics\Reader\NativeWrapper.cs (11)
1182return Array.Empty<byte>(); 1188return Array.Empty<short>(); 1194return Array.Empty<int>(); 1200return Array.Empty<long>(); 1206return Array.Empty<float>(); 1212return Array.Empty<double>(); 1286return Array.Empty<T>(); 1305return Array.Empty<bool>(); 1323return Array.Empty<DateTime>(); 1341return Array.Empty<DateTime>(); 1360return Array.Empty<string>();
System.Diagnostics.PerformanceCounter (9)
System\Diagnostics\InstanceDataCollectionCollection.cs (1)
62Dictionary.Values.CopyTo((Array)counters, index);
System\Diagnostics\PerformanceCounterCategory.cs (2)
431return Array.Empty<string>(); 436return Array.Empty<string>();
System\Diagnostics\PerformanceCounterLib.cs (6)
182Array.Copy(newCategoryEntry.CounterIndexes, adjustedCounterIndexes, index3); 183Array.Copy(newCategoryEntry.HelpIndexes, adjustedHelpIndexes, index3); 897Array.Copy(counters, adjustedCounters, index2); 973Array.Empty<string>(); 1564return Array.Empty<string>(); 1575return Array.Empty<string>();
System.Diagnostics.Process (12)
src\runtime\src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (1)
407if (Array.IndexOf(line[lineParts[1]].Split(','), subsystem) < 0)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
163Array.Copy(bytes, temp, bytes.Length);
src\runtime\src\libraries\Common\src\System\Collections\Generic\ArrayBuilder.cs (4)
112Array.Copy(_array, result, _count); 146if ((uint)nextCapacity > (uint)Array.MaxLength) 148nextCapacity = Math.Max(capacity + 1, Array.MaxLength); 156Array.Copy(_array!, next, _count);
System\Collections\Specialized\DictionaryWrapper.cs (1)
64public void CopyTo(Array array, int index) => ((IDictionary)_contents).CopyTo(array, index);
System\Collections\Specialized\StringDictionaryWrapper.cs (1)
51public override void CopyTo(Array array, int index) => _contents.CopyTo(array, index);
System\Diagnostics\Process.Multiplexing.cs (3)
181Array.Copy(charBuffer, charStartIndex, charBuffer, 0, remaining); 672int newSize = (int)Math.Min((long)buffer.Length * 2, Array.MaxLength); 675Array.Copy(buffer, newBuffer, dataLength);
System\Diagnostics\ProcessStartInfo.Unix.cs (1)
44public string[] Verbs => Array.Empty<string>();
System.Diagnostics.TraceSource (4)
System\Diagnostics\CorrelationManager.cs (2)
87public override void CopyTo(Array array, int index) 125return Array.Empty<object>();
System\Diagnostics\TraceListeners.cs (2)
136((ICollection)this).CopyTo((Array)listeners, index); 315void ICollection.CopyTo(Array array, int index)
System.DirectoryServices (27)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryReplicationMetaData.cs (1)
48Dictionary.Values.CopyTo((Array)array, index);
System\DirectoryServices\ActiveDirectory\Exception.cs (1)
232return Array.Empty<SyncFromAllServersErrorInformation>();
System\DirectoryServices\ActiveDirectory\Utils.cs (2)
1101ADSearcher searcher = new ADSearcher(searchRootEntry, filter, Array.Empty<string>(), searchScope, false /* paged search */, false /* cache results */); 1456ADSearcher searcher2 = new ADSearcher(searchRootEntry, filter2, Array.Empty<string>(), SearchScope.Subtree);
System\DirectoryServices\DirectorySearcher.cs (1)
651properties = Array.Empty<string>();
System\DirectoryServices\DirectoryServicesCOMException.cs (1)
60char[] nameBuffer = Array.Empty<char>();
System\DirectoryServices\DirectorySynchronization.cs (3)
11private byte[] _cookie = Array.Empty<byte>(); 68public void ResetDirectorySynchronizationCookie() => _cookie = Array.Empty<byte>(); 74_cookie = Array.Empty<byte>();
System\DirectoryServices\DirectoryVirtualListViewContext.cs (1)
18_context = Array.Empty<byte>();
System\DirectoryServices\PropertyCollection.cs (4)
90/// Copies the elements of this instance into an <see cref='System.Array'/>, starting at a particular index into the array. 94((ICollection)this).CopyTo((Array)array, index); 152void ICollection.CopyTo(Array array, int index) 271public void CopyTo(Array array, int index)
System\DirectoryServices\PropertyValueCollection.cs (4)
100if (value is Array) 110object[] objArray = new object[((Array)value).Length]; 111((Array)value).CopyTo(objArray, 0); 162/// Copies the elements of this instance into an <see cref='System.Array'/>,
System\DirectoryServices\ResultPropertyCollection.cs (2)
32return new ResultPropertyValueCollection(Array.Empty<object>()); 54Dictionary.Values.CopyTo((Array)array, index);
System\DirectoryServices\ResultPropertyValueCollection.cs (1)
15InnerList.AddRange(values ?? Array.Empty<object>());
System\DirectoryServices\SchemaNameCollection.cs (3)
98_propSetter(Array.Empty<object>()); 122return Array.Empty<object>(); 182void ICollection.CopyTo(Array array, int index)
System\DirectoryServices\SearchResultCollection.cs (3)
212void ICollection.CopyTo(Array array, int index) 451char[] errorBuffer = Array.Empty<char>(); 452char[] nameBuffer = Array.Empty<char>();
System.DirectoryServices.AccountManagement (10)
System\DirectoryServices\AccountManagement\AD\ADStoreKey.cs (1)
41Array.Copy(sid, _sid, sid.Length);
System\DirectoryServices\AccountManagement\Principal.cs (2)
637return Array.Empty<object>(); 647return Array.Empty<object>();
System\DirectoryServices\AccountManagement\PrincipalCollection.cs (2)
16void ICollection.CopyTo(Array array, int index) 147((ICollection)this).CopyTo((Array)array, index);
System\DirectoryServices\AccountManagement\SAM\SAMStoreKey.cs (1)
24Array.Copy(sid, _sid, sid.Length);
System\DirectoryServices\AccountManagement\TrackedCollection.cs (2)
16void ICollection.CopyTo(Array array, int index) 84((ICollection)this).CopyTo((Array)array, index);
System\DirectoryServices\AccountManagement\ValueCollection.cs (2)
103void ICollection.CopyTo(Array array, int index) 337((ICollection)this).CopyTo((Array)array, index);
System.DirectoryServices.Protocols (20)
System\DirectoryServices\Protocols\common\BerConverter.cs (2)
21value ??= Array.Empty<object>(); 274encodingResult = Array.Empty<byte>();
System\DirectoryServices\Protocols\common\DirectoryControl.cs (10)
137return Array.Empty<byte>(); 625return Array.Empty<byte>(); 691return Array.Empty<byte>(); 740return Array.Empty<byte>(); 785return Array.Empty<byte>(); 800private SortKey[] _keys = Array.Empty<SortKey>(); 836return Array.Empty<SortKey>(); 1019return Array.Empty<byte>(); 1033return Array.Empty<byte>(); 1112return Array.Empty<byte>();
System\DirectoryServices\Protocols\common\DirectoryRequest.cs (1)
198return Array.Empty<byte>();
System\DirectoryServices\Protocols\common\DirectoryResponse.cs (3)
30return Array.Empty<DirectoryControl>(); 53return Array.Empty<Uri>(); 105return Array.Empty<byte>();
System\DirectoryServices\Protocols\common\SearchResults.cs (3)
20return Array.Empty<Uri>(); 32public DirectoryControl[] Controls => Array.Empty<DirectoryControl>(); 66public DirectoryControl[] Controls => Array.Empty<DirectoryControl>();
System\DirectoryServices\Protocols\ldap\LdapDirectoryIdentifier.cs (1)
57public string[] Servers => (_servers == null) ? Array.Empty<string>() : (string[])_servers.Clone();
System.Drawing.Common (14)
System\Drawing\Design\CategoryNameCollection.cs (1)
37/// Copies the <see cref='CategoryNameCollection'/> values to a one-dimensional <see cref='Array'/> instance
System\Drawing\FontConverter.cs (1)
431Array.Sort(values, Comparer.Default);
System\Drawing\ImageConverter.cs (1)
58return Array.Empty<byte>();
System\Drawing\Internal\SystemColorTracker.cs (1)
120Array.Resize(ref s_list, s_list.Length * EXPAND_FACTOR);
System\Drawing\Printing\PrinterSettings.PaperSizeCollection.cs (3)
41void ICollection.CopyTo(Array array, int index) => Array.Copy(_array, index, array, 0, _array.Length); 43public void CopyTo(PaperSize[] paperSizes, int index) => Array.Copy(_array, index, paperSizes, 0, _array.Length);
System\Drawing\Printing\PrinterSettings.PaperSourceCollection.cs (3)
41void ICollection.CopyTo(Array array, int index) => Array.Copy(_array, index, array, 0, _array.Length); 43public void CopyTo(PaperSource[] paperSources, int index) => Array.Copy(_array, index, paperSources, 0, _array.Length);
System\Drawing\Printing\PrinterSettings.PrinterResolutionCollection.cs (3)
38void ICollection.CopyTo(Array array, int index) => Array.Copy(_array, index, array, 0, _array.Length); 40public void CopyTo(PrinterResolution[] printerResolutions, int index) => Array.Copy(_array, index, printerResolutions, 0, _array.Length);
System\Drawing\Printing\PrinterSettings.StringCollection.cs (1)
38void ICollection.CopyTo(Array array, int index) => ((ICollection)_list).CopyTo(array, index);
System.Formats.Asn1 (5)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (1)
33Array.Clear(array, 0, clearSize);
System\Formats\Asn1\AsnDecoder.Oid.cs (1)
180Array.Clear(tmpBytes, 0, tmpBytes.Length);
System\Formats\Asn1\AsnWriter.cs (3)
94Array.Clear(_buffer, 0, _offset); 204return Array.Empty<byte>(); 421Array.Resize(ref _buffer, BlockSize * blocks);
System.Formats.Cbor (3)
System\Formats\Cbor\Writer\CborWriter.cs (3)
97DefaultCapacitySentinel or 0 => Array.Empty<byte>(), 108Array.Clear(_buffer, 0, _offset); 244if ((uint)newCapacity > (uint)Array.MaxLength || newCapacity < requiredCapacity)
System.Formats.Nrbf (19)
System\Formats\Nrbf\ArrayInfo.cs (1)
19internal static int MaxArrayLength => Array.MaxLength;
System\Formats\Nrbf\ArrayRecord.cs (5)
18private protected Array? _arrayNullsAllowed; 19private protected Array? _arrayNullsNotAllowed; 72public Array GetArray(Type expectedArrayType, bool allowNulls = true) 87private protected abstract Array Deserialize(Type arrayType, bool allowNulls); 117internal static void Populate(List<SerializationRecord> source, Array destination, int[] lengths, AllowedRecordTypes allowedRecordTypes, bool allowNulls)
System\Formats\Nrbf\ArrayRectangularPrimitiveRecord.cs (3)
43private protected override Array Deserialize(Type arrayType, bool allowNulls) 45Array result = 47Array.CreateInstanceFromArrayType(arrayType, _lengths);
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (1)
52return Array.Empty<T>(); // Empty arrays are allowed.
System\Formats\Nrbf\JaggedArrayRecord.cs (3)
46private protected override Array Deserialize(Type arrayType, bool allowNulls) 49Array array = _lengths.Length switch 53_ => Array.CreateInstance(typeof(ArrayRecord), _lengths)
System\Formats\Nrbf\NrbfDecoder.cs (1)
144/// Decodes the provided NRBF payload that is expected to contain an instance of any class (or struct) that is not an <see cref="Array"/> or a primitive type.
System\Formats\Nrbf\RectangularArrayRecord.cs (4)
45private protected override Array Deserialize(Type arrayType, bool allowNulls) 51Array result = 54? Array.CreateInstanceFromArrayType(arrayType, _lengths) 55: Array.CreateInstance(_elementType, _lengths);
System\Formats\Nrbf\SZArrayRecord.cs (1)
45private protected override Array Deserialize(Type arrayType, bool allowNulls) => GetArray(allowNulls);
System.Formats.Tar (2)
System\Formats\Tar\TarHeader.Write.cs (1)
854Array.Clear(buffer, 0, paddingAfterData);
System\Formats\Tar\TarWriter.cs (1)
399Array.Clear(twoEmptyRecords, 0, TwoRecordSize);
System.IO.Compression (15)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (3)
25private static int ArrayMaxLength => Array.MaxLength; 44? Array.Empty<byte>() 84_bytes = Array.Empty<byte>();
System\IO\Compression\DeflateManaged\HuffmanTree.cs (1)
93Array.Fill(staticDistanceTreeLength, (byte)5);
System\IO\Compression\DeflateManaged\InflaterManaged.cs (2)
679Array.Copy(_codeList, literalTreeCodeLength, _literalLengthCodeCount); 680Array.Copy(_codeList, _literalLengthCodeCount, distanceTreeCodeLength, 0, _distanceCodeCount);
System\IO\Compression\DeflateManaged\OutputWindow.cs (1)
55Array.Copy(_window, copyStart, _window, _end, length);
System\IO\Compression\ZipArchive.cs (1)
200_archiveComment = Array.Empty<byte>();
System\IO\Compression\ZipArchiveEntry.Async.cs (2)
188await ZipGenericExtraField.WriteAllBlocksAsync(_cdUnknownExtraFields, _cdTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, cancellationToken).ConfigureAwait(false); 338await ZipGenericExtraField.WriteAllBlocksAsync(_lhUnknownExtraFields, _lhTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchiveEntry.cs (4)
150_fileComment = Array.Empty<byte>(); 684ZipGenericExtraField.WriteAllBlocks(_cdUnknownExtraFields, _cdTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream); 711maxSingleBufferSize = Array.MaxLength; 1217ZipGenericExtraField.WriteAllBlocks(_lhUnknownExtraFields, _lhTrailingExtraFieldData ?? Array.Empty<byte>(), _archive.ArchiveStream);
System\IO\Compression\ZipHelper.cs (1)
197return Array.Empty<byte>();
System.IO.FileSystem.Watcher (5)
System\IO\FileSystemWatcher.cs (4)
708public string[] Items = Array.Empty<string>(); 736public void Clear() => Items = Array.Empty<string>(); 738public bool Contains(string item) => Array.IndexOf(Items, item) >= 0; 744public int IndexOf(string item) => Array.IndexOf(Items, item);
System\IO\FileSystemWatcher.Linux.cs (1)
746Array.Resize(ref buffer, lengthNeeded);
System.IO.Packaging (4)
System\IO\Packaging\ContentType.cs (2)
480Array.IndexOf(s_allowedCharacters, character) >= 0; 500ch <= ' ' && Array.IndexOf(s_linearWhiteSpaceChars, ch) >= 0;
System\IO\Packaging\Package.cs (1)
409Array.Sort(parts, Comparer<PackagePart>.Create((partA, partB) => uriComparer.Compare((PackUriHelper.ValidatedPartUri)partA.Uri, (PackUriHelper.ValidatedPartUri)partB.Uri)));
System\IO\Packaging\PartBasedPackageProperties.cs (1)
542if (Array.IndexOf(s_validProperties, xmlStringIndex) < 0) // An unexpected element is an error.
System.IO.Pipelines (1)
System\IO\Pipelines\BufferSegmentStack.cs (1)
63Array.Resize(ref _array, 2 * _array.Length);
System.Linq (14)
System\Linq\Chunk.cs (2)
100Array.Resize(ref array, arraySize); 120Array.Resize(ref array, i);
System\Linq\Enumerable.cs (1)
20Array.Empty<TResult>(); // explicitly not using [] in case the compiler ever changed to using Enumerable.Empty
System\Linq\Grouping.cs (5)
374Array.Resize(ref _elements, checked(_count * 2)); 385Array.Resize(ref _elements, _count); 407bool ICollection<TElement>.Contains(TElement item) => Array.IndexOf(_elements, item, 0, _count) >= 0; 410Array.Copy(_elements, 0, array, arrayIndex, _count); 414int IList<TElement>.IndexOf(TElement item) => Array.IndexOf(_elements, item, 0, _count);
System\Linq\Repeat.SpeedOpt.cs (1)
18Array.Fill(array, _current);
System\Linq\Reverse.SpeedOpt.cs (1)
15Array.Reverse(array);
System\Linq\SegmentedArrayBuilder.cs (4)
73Array.Clear(segment); 79Array.Clear(currentSegment, 0, _countInCurrentSegment); 344if (_countInFinishedSegments > Array.MaxLength) 354int newSegmentLength = (int)Math.Min(Math.Max(minimumRequired, currentSegmentLength * 2L), Array.MaxLength);
System.Linq.AsyncEnumerable (7)
System\Linq\Chunk.cs (2)
68Array.Resize(ref array, arraySize); 88Array.Resize(ref array, i);
System\Linq\GroupBy.cs (5)
409Array.Resize(ref _elements, checked(_count * 2)); 420Array.Resize(ref _elements, _count); 445bool ICollection<TElement>.Contains(TElement item) => Array.IndexOf(_elements, item, 0, _count) >= 0; 448Array.Copy(_elements, 0, array, arrayIndex, _count); 452int IList<TElement>.IndexOf(TElement item) => Array.IndexOf(_elements, item, 0, _count);
System.Linq.Expressions (71)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ArrayBuilder.cs (4)
112Array.Copy(_array, result, _count); 146if ((uint)nextCapacity > (uint)Array.MaxLength) 148nextCapacity = Math.Max(capacity + 1, Array.MaxLength); 156Array.Copy(_array!, next, _count);
System\Dynamic\DynamicMetaObject.cs (2)
19public static readonly DynamicMetaObject[] EmptyMetaObjects = Array.Empty<DynamicMetaObject>(); 247public virtual IEnumerable<string> GetDynamicMemberNames() => Array.Empty<string>();
System\Dynamic\DynamicObject.cs (1)
203public virtual IEnumerable<string> GetDynamicMemberNames() => Array.Empty<string>();
System\Dynamic\ExpandoClass.cs (2)
30_keys = Array.Empty<string>(); 77Array.Copy(_keys, keys, _keys.Length);
System\Dynamic\ExpandoObject.cs (2)
1072_dataArray = Array.Empty<object>(); 1106Array.Copy(_dataArray, arr, _dataArray.Length);
System\Dynamic\Utils\CollectionExtensions.cs (2)
40Array.Copy(array, 1, result, 0, result.Length); 47Array.Copy(array, result, result.Length);
System\Dynamic\Utils\DelegateHelpers.cs (3)
50handler(Array.Empty<object?>()); 65return (TReturn)handler(Array.Empty<object>()); 78private static MethodInfo GetEmptyObjectArrayMethod() => ((Func<object[]>)Array.Empty<object>).GetMethodInfo();
System\Dynamic\Utils\TypeUtils.cs (1)
430return IsImplicitReferenceConversion(typeof(Array), source);
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (1)
457Array.Copy(_expressions, first, clone, 0, count);
System\Linq\Expressions\Interpreter\ArrayOperations.cs (10)
26Array array = Array.CreateInstance(_elementType, _elementCount); 56frame.Push(length < 0 ? new int[length] : Array.CreateInstance(_elementType, length)); 92Array array = Array.CreateInstance(_elementType, lengths); 111Array array = (Array)frame.Pop()!; 130Array array = (Array)frame.Pop()!; 149frame.Push(((Array)obj).Length);
System\Linq\Expressions\Interpreter\CallInstruction.cs (7)
129typeof(Array).GetMethod("GetValue", new[] { typeof(int) }) : 135typeof(Array).GetMethod("GetValue", new[] { typeof(int), typeof(int) }) : 141typeof(Array).GetMethod("GetValue", new[] { typeof(int), typeof(int), typeof(int) }) : 154public static void ArrayItemSetter1(Array array, int index0, object value) 159public static void ArrayItemSetter2(Array array, int index0, int index1, object value) 164public static void ArrayItemSetter3(Array array, int index0, int index1, int index2, object value) 370return Array.Empty<object>();
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (2)
264InterpretLambdaInvoke(targetLambda, Array.Empty<object>()); 442result = InterpretLambdaInvoke(targetLambda, Array.Empty<object>());
System\Linq\Expressions\Interpreter\InstructionList.cs (1)
119IEnumerator<KeyValuePair<int, object?>> cookieEnumerator = (debugCookies ?? Array.Empty<KeyValuePair<int, object?>>()).GetEnumerator();
System\Linq\Expressions\Interpreter\LightCompiler.cs (5)
234int i = Array.BinarySearch<DebugInfo>(debugInfos, d, s_debugComparer); 294private static readonly LocalDefinition[] s_emptyLocals = Array.Empty<LocalDefinition>(); 2502_instructions.EmitNullableCall(method, Array.Empty<ParameterInfo>()); 2828IEnumerable<ParameterExpression> parameters = Array.Empty<ParameterExpression>(); 3173((Array)frame.Data[_array.Index]!).SetValue(value, (int)index!);
System\Linq\Expressions\Interpreter\NewInstruction.cs (1)
63return Array.Empty<object>();
System\Linq\Expressions\MethodCallExpression.cs (2)
1146arguments ??= Array.Empty<Expression>(); 1175arguments ??= Array.Empty<Expression>();
System\Linq\Expressions\UnaryExpression.cs (1)
817if (!array.Type.IsArray || !typeof(Array).IsAssignableFrom(array.Type))
System\Runtime\CompilerServices\CallSite.cs (5)
253Array.Copy(rules, 0, temp, 1, rules.Length); 258Array.Copy(rules, 0, temp, 1, MaxRules - 1); 368ParameterExpression[] @params = Array.ConvertAll(invoke.GetParametersCached(), p => Expression.Parameter(p.ParameterType, p.Name)); 597Expression[] argsElements = Array.ConvertAll(arguments, p => Convert(p, typeof(object))); 671ParameterExpression[] @params = Array.ConvertAll(invoke.GetParametersCached(), p => Expression.Parameter(p.ParameterType, p.Name));
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (16)
28_items = Array.Empty<T>(); 91Array.Copy(_items, newItems, _size); 97_items = Array.Empty<T>(); 117return Array.IndexOf(_items, item, 0, _size); 135Array.Copy(_items, index, _items, index + 1, _size - index); 154Array.Copy(_items, index + 1, _items, index, _size - index); 207Array.Clear(_items, 0, _size); 221/// Copies the elements of the <see cref="ReadOnlyCollectionBuilder{T}"/> to an <see cref="Array"/>, 222/// starting at particular <see cref="Array"/> index. 224/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ReadOnlyCollectionBuilder{T}"/>.</param> 226public void CopyTo(T[] array, int arrayIndex) => Array.Copy(_items, 0, array, arrayIndex, _size); 351void ICollection.CopyTo(Array array, int index) 358Array.Copy(_items, 0, array, index, _size); 385Array.Reverse(_items, index, count); 396Array.Copy(_items, array, _size); 423_items = Array.Empty<T>();
System\Runtime\CompilerServices\RuleCache.cs (3)
18private T[] _rules = Array.Empty<T>(); 97Array.Copy(rules, newRules, InsertPosition); 101Array.Copy(rules, InsertPosition, newRules, InsertPosition + 1, newLength - InsertPosition - 1);
System.Linq.Parallel (6)
System\Linq\Parallel\Channels\AsynchronousChannel.cs (1)
385Array.Copy(_producerChunk, leftOverChunk, _producerChunkIndex);
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (1)
805Array.Sort(orderKeys, values, _orderComparer);
System\Linq\Parallel\Utils\GrowingArray.cs (1)
72Array.Copy(otherArray, 0, _array, _count, otherCount);
System\Linq\Parallel\Utils\HashLookup.cs (1)
119Array.Copy(slots, newSlots, count);
System\Linq\Parallel\Utils\Sorting.cs (2)
476Array.Copy(myValues, mergedValues, leftCount); 554Array.Copy(myValues, 0, mergedValues, leftCount, myValues.Length);
System.Management (25)
System\Management\ManagementObjectCollection.cs (2)
199public void CopyTo(Array array, int index) 246CopyTo((Array)objectCollection, index);
System\Management\ManagementPath.cs (7)
328pathStr = new string(pathChars, 0, Array.IndexOf(pathChars, '\0')); 519pathStr = new string(pathChars, 0, Array.IndexOf(pathChars, '\0')); 616pathStr = new string(pathChars, 0, Array.IndexOf(pathChars, '\0')); 750string serverNew = new string(newServerChars, 0, Array.IndexOf(newServerChars, '\0')); 763string serverOrg = new string(orgServerChars, 0, Array.IndexOf(orgServerChars, '\0')); 822pathStr = new string(pathChars, 0, Array.IndexOf(pathChars, '\0')); 920pathStr = new string(pathChars, 0, Array.IndexOf(pathChars, '\0'));
System\Management\MethodSet.cs (2)
149public void CopyTo(Array array, int index) 164CopyTo((Array)methodArray, index);
System\Management\Property.cs (6)
283Array wmiValueArray = (Array)wmiValue; 375Array valArray = (Array)val; 716Array valArray = (Array)val;
System\Management\PropertySet.cs (2)
129public void CopyTo(Array array, int index) 179CopyTo((Array)propertyArray, index);
System\Management\Qualifier.cs (3)
97if (qualVal is Array) 103Array valArray = (Array)qualVal;
System\Management\QualifierSet.cs (3)
178public void CopyTo(Array array, int index) 230CopyTo((Array)qualifierArray, index); 332qualifierNames = Array.Empty<string>();
System.Memory (7)
src\runtime\src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (2)
34_buffer = Array.Empty<T>(); 237Array.Resize(ref _buffer, newSize);
System\Buffers\ArrayMemoryPool.cs (2)
10public sealed override int MaxBufferSize => Array.MaxLength; 16else if (((uint)minimumBufferSize) > Array.MaxLength)
System\Buffers\ReadOnlySequence.cs (1)
26public static readonly ReadOnlySequence<T> Empty = new ReadOnlySequence<T>(Array.Empty<T>());
System\ThrowHelper.cs (2)
79public static void ThrowArgumentValidationException(Array? array, int start) 82private static Exception CreateArgumentValidationException(Array? array, int start)
System.Net.Http (79)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (3)
25private static int ArrayMaxLength => Array.MaxLength; 44? Array.Empty<byte>() 84_bytes = Array.Empty<byte>();
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\DynamicTable.cs (2)
87Array.Copy(_buffer, _removeIndex, newBuffer, 0, headCount); 88Array.Copy(_buffer, 0, newBuffer, headCount, tailCount);
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\Huffman.cs (2)
714Array.Resize(ref dstArray, dst.Length * 2); 781Array.Resize(ref dstArray, dst.Length * 2);
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
129if (value is Array arr) 131return $"{arr.GetType().GetElementType()}[{((Array)value).Length}]";
System\Net\Http\Headers\HeaderUtilities.cs (1)
235Debug.Assert(Array.TrueForAll(alreadyFound, value => value),
System\Net\Http\Headers\HttpHeaders.cs (4)
389((IEnumerable<KeyValuePair<string, IEnumerable<string>>>)Array.Empty<KeyValuePair<string, IEnumerable<string>>>()).GetEnumerator() : 1261values ??= Array.Empty<string>(); 1562Array.Resize(ref entries, entries.Length << 1); 1622Array.Clear(entries, 0, _count);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
139((IEnumerable<T>)Array.Empty<T>()).GetEnumerator() : // use singleton empty array enumerator
System\Net\Http\Headers\ObjectCollection.cs (5)
76Array.Copy(array, newItems, size); 93_items is T[] items && Array.IndexOf(items, item, 0, _size) >= 0; 99Array.Copy(items, 0, array, arrayIndex, _size); 129int index = Array.IndexOf(items, item, 0, _size); 135Array.Copy(items, index + 1, items, index, _size - index);
System\Net\Http\HttpContent.cs (2)
943int newBufferCapacity = (int)Math.Min((uint)lastBufferCapacity * ResizeFactor, Array.MaxLength); 1043Array.Resize(ref _pooledBuffers, bufferCount + 4);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (1)
417Debug.Assert(!disposing || Array.IndexOf(_http11Connections.ToArray(), connection) < 0);
System\Net\Http\SocketsHttpHandler\ConnectionPool\RequestQueue.cs (4)
28_array = Array.Empty<QueueItem>(); 99Array.Copy(_array, _head, newArray, 0, _size); 103Array.Copy(_array, _head, newArray, 0, _array.Length - _head); 104Array.Copy(_array, 0, newArray, _array.Length - _head, _tail);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (46)
504(KnownHeaders.AcceptCharset.Descriptor, Array.Empty<byte>()), 506(KnownHeaders.AcceptLanguage.Descriptor, Array.Empty<byte>()), 507(KnownHeaders.AcceptRanges.Descriptor, Array.Empty<byte>()), 508(KnownHeaders.Accept.Descriptor, Array.Empty<byte>()), 509(KnownHeaders.AccessControlAllowOrigin.Descriptor, Array.Empty<byte>()), 510(KnownHeaders.Age.Descriptor, Array.Empty<byte>()), 511(KnownHeaders.Allow.Descriptor, Array.Empty<byte>()), 512(KnownHeaders.Authorization.Descriptor, Array.Empty<byte>()), 513(KnownHeaders.CacheControl.Descriptor, Array.Empty<byte>()), 514(KnownHeaders.ContentDisposition.Descriptor, Array.Empty<byte>()), 515(KnownHeaders.ContentEncoding.Descriptor, Array.Empty<byte>()), 516(KnownHeaders.ContentLanguage.Descriptor, Array.Empty<byte>()), 517(KnownHeaders.ContentLength.Descriptor, Array.Empty<byte>()), 518(KnownHeaders.ContentLocation.Descriptor, Array.Empty<byte>()), 519(KnownHeaders.ContentRange.Descriptor, Array.Empty<byte>()), 520(KnownHeaders.ContentType.Descriptor, Array.Empty<byte>()), 521(KnownHeaders.Cookie.Descriptor, Array.Empty<byte>()), 522(KnownHeaders.Date.Descriptor, Array.Empty<byte>()), 523(KnownHeaders.ETag.Descriptor, Array.Empty<byte>()), 524(KnownHeaders.Expect.Descriptor, Array.Empty<byte>()), 525(KnownHeaders.Expires.Descriptor, Array.Empty<byte>()), 526(KnownHeaders.From.Descriptor, Array.Empty<byte>()), 527(KnownHeaders.Host.Descriptor, Array.Empty<byte>()), 528(KnownHeaders.IfMatch.Descriptor, Array.Empty<byte>()), 529(KnownHeaders.IfModifiedSince.Descriptor, Array.Empty<byte>()), 530(KnownHeaders.IfNoneMatch.Descriptor, Array.Empty<byte>()), 531(KnownHeaders.IfRange.Descriptor, Array.Empty<byte>()), 532(KnownHeaders.IfUnmodifiedSince.Descriptor, Array.Empty<byte>()), 533(KnownHeaders.LastModified.Descriptor, Array.Empty<byte>()), 534(KnownHeaders.Link.Descriptor, Array.Empty<byte>()), 535(KnownHeaders.Location.Descriptor, Array.Empty<byte>()), 536(KnownHeaders.MaxForwards.Descriptor, Array.Empty<byte>()), 537(KnownHeaders.ProxyAuthenticate.Descriptor, Array.Empty<byte>()), 538(KnownHeaders.ProxyAuthorization.Descriptor, Array.Empty<byte>()), 539(KnownHeaders.Range.Descriptor, Array.Empty<byte>()), 540(KnownHeaders.Referer.Descriptor, Array.Empty<byte>()), 541(KnownHeaders.Refresh.Descriptor, Array.Empty<byte>()), 542(KnownHeaders.RetryAfter.Descriptor, Array.Empty<byte>()), 543(KnownHeaders.Server.Descriptor, Array.Empty<byte>()), 544(KnownHeaders.SetCookie.Descriptor, Array.Empty<byte>()), 545(KnownHeaders.StrictTransportSecurity.Descriptor, Array.Empty<byte>()), 546(KnownHeaders.TransferEncoding.Descriptor, Array.Empty<byte>()), 547(KnownHeaders.UserAgent.Descriptor, Array.Empty<byte>()), 548(KnownHeaders.Vary.Descriptor, Array.Empty<byte>()), 549(KnownHeaders.Via.Descriptor, Array.Empty<byte>()), 550(KnownHeaders.WWWAuthenticate.Descriptor, Array.Empty<byte>()),
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
46private string[] _headerValues = Array.Empty<string>();
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1812return _stream.Read(Array.Empty<byte>());
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (3)
41public static MultiProxy Empty => new MultiProxy(null, Array.Empty<Uri>()); 53Uri[] uris = Array.Empty<Uri>(); 63Array.Resize(ref uris, idx + 1);
System.Net.Http.WinHttpHandler (4)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
27return Array.Empty<byte>();
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
129if (value is Array arr) 131return $"{arr.GetType().GetElementType()}[{((Array)value).Length}]";
System\Net\Http\WinHttpResponseHeaderReader.cs (1)
42int colonIndex = Array.IndexOf(_buffer, ':', startIndex, length);
System.Net.HttpListener (8)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
129if (value is Array arr) 131return $"{arr.GetType().GetElementType()}[{((Array)value).Length}]";
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
48arg3 ??= Array.Empty<byte>();
System\Net\HttpListenerPrefixCollection.cs (1)
38public void CopyTo(Array array, int offset)
System\Net\Managed\HttpListenerContext.Managed.cs (1)
50new GenericPrincipal(new HttpListenerBasicIdentity(username, password), Array.Empty<string>()) :
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (1)
76secWebSocketProtocols ?? Array.Empty<string>(),
System\Net\ServiceNameStore.cs (2)
286return Array.Empty<string>(); 290return Array.Empty<string>();
System.Net.Mail (9)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
129if (value is Array arr) 131return $"{arr.GetType().GetElementType()}[{((Array)value).Length}]";
System\Net\Mail\SmtpFailedRecipientsException.cs (4)
19_innerExceptions = Array.Empty<SmtpFailedRecipientException>(); 24_innerExceptions = Array.Empty<SmtpFailedRecipientException>(); 30_innerExceptions = smtpException == null ? Array.Empty<SmtpFailedRecipientException>() : new SmtpFailedRecipientException[] { smtpException }; 45_innerExceptions = innerExceptions ?? Array.Empty<SmtpFailedRecipientException>();
System\Net\Mail\SmtpReplyReaderFactory.cs (1)
255return Array.Empty<LineInfo>();
System\Net\Mime\WriteStateInfoBase.cs (2)
21_header = Array.Empty<byte>(); 22_footer = Array.Empty<byte>();
System.Net.NameResolution (12)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
129if (value is Array arr) 131return $"{arr.GetType().GetElementType()}[{((Array)value).Length}]";
System\Net\Dns.cs (5)
213addresses = (family == AddressFamily.Unspecified || address.AddressFamily == family) ? new IPAddress[] { address } : Array.Empty<IPAddress>(); 397IPAddress[] addresses = Array.Empty<IPAddress>(); 404Aliases = Array.Empty<string>() 695Task.FromResult(family == AddressFamily.Unspecified || ipAddress.AddressFamily == family ? new[] { ipAddress } : Array.Empty<IPAddress>()) : 884Aliases = Array.Empty<string>(),
System\Net\NameResolutionPal.Unix.cs (5)
67localAddresses = Array.Empty<IPAddress>(); 89if (Array.IndexOf(nativeAddresses, nativeAddr, 0, nativeAddressCount) < 0 && 103string[] localAliases = Array.Empty<string>(); 145aliases = Array.Empty<string>(); 146addresses = Array.Empty<IPAddress>();
System.Net.NetworkInformation (10)
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
193await socket.ReceiveAsync(Array.Empty<byte>(), SocketFlags.None).ConfigureAwait(false);
System\Net\NetworkInformation\PhysicalAddress.cs (1)
14public static readonly PhysicalAddress None = new PhysicalAddress(Array.Empty<byte>());
System\Net\NetworkInformation\StringParsingHelpers.Connections.cs (8)
37v4connections = Array.Empty<string>(); 47v6connections = Array.Empty<string>(); 99Array.Resize(ref connections, connections.Length - skip); 117v4connections = Array.Empty<string>(); 127v6connections = Array.Empty<string>(); 179Array.Resize(ref endPoints, endPoints.Length - skip); 197v4connections = Array.Empty<string>(); 207v6connections = Array.Empty<string>();
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
30if (buffer != DefaultSendBuffer && buffer != Array.Empty<byte>())
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
391return new PingReply(address ?? new IPAddress(0), null, status, rtt, Array.Empty<byte>());
System.Net.Primitives (4)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
129if (value is Array arr) 131return $"{arr.GetType().GetElementType()}[{((Array)value).Length}]";
System\Net\CookieCollection.cs (1)
145public void CopyTo(Array array, int index)
System\Net\CookieContainer.cs (1)
402Array.Sort(stamps, cookies);
System.Net.Quic (6)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (3)
25private static int ArrayMaxLength => Array.MaxLength; 44? Array.Empty<byte>() 84_bytes = Array.Empty<byte>();
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
129if (value is Array arr) 131return $"{arr.GetType().GetElementType()}[{((Array)value).Length}]";
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
47Array.Empty<string>());
System.Net.Requests (5)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
129if (value is Array arr) 131return $"{arr.GetType().GetElementType()}[{((Array)value).Length}]";
System\Net\AuthenticationManager.cs (1)
39public static IEnumerator RegisteredModules => Array.Empty<IAuthenticationModule>().GetEnumerator();
System\Net\FtpWebResponse.cs (1)
65internal EmptyStream() : base(Array.Empty<byte>(), false)
System\Net\HttpWebRequest.cs (1)
1226_sendRequestMessage.Content ??= new ByteArrayContent(Array.Empty<byte>());
System.Net.Security (21)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs (1)
45return Array.Empty<byte>();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
580string[] result = Array.ConvertAll(rawAlgs, ConvertAlg); 661outputBuffer = Array.Empty<byte>();
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (3)
25private static int ArrayMaxLength => Array.MaxLength; 44? Array.Empty<byte>() 84_bytes = Array.Empty<byte>();
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
129if (value is Array arr) 131return $"{arr.GetType().GetElementType()}[{((Array)value).Length}]";
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
48arg3 ??= Array.Empty<byte>();
System\Net\CertificateValidationPal.Unix.cs (2)
145return Array.Empty<string>(); 152return Array.Empty<string>();
System\Net\NegotiateAuthenticationPal.Unix.cs (1)
628resultBlob = Array.Empty<byte>();
System\Net\Security\NegotiateStream.cs (1)
73_readBuffer = Array.Empty<byte>();
System\Net\Security\SslSessionsCache.cs (1)
51_thumbPrint = thumbPrint ?? Array.Empty<byte>();
System\Net\Security\SslStream.Protocol.cs (3)
279string[] issuers = Array.Empty<string>(); 416found = Array.IndexOf(issuers, issuer) >= 0; 670localCertificate = _sslAuthenticationOptions.CertSelectionDelegate(this, string.Empty, tempCollection, null, Array.Empty<string>());
System\Net\Security\SslStreamCertificateContext.cs (1)
47X509Certificate2[] intermediates = Array.Empty<X509Certificate2>();
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
58_privateIntermediateCertificates = Array.Empty<X509Certificate2>();
System\Net\Security\TlsFrameHelper.cs (2)
328_ => Array.Empty<byte>(), 361return Array.Empty<byte>();
System.Net.ServerSentEvents (4)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (3)
25private static int ArrayMaxLength => Array.MaxLength; 44? Array.Empty<byte>() 84_bytes = Array.Empty<byte>();
System\Net\ServerSentEvents\SseParser_1.cs (1)
541Array.Copy(toReturn, buffer, toReturn.Length);
System.Net.Sockets (8)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
129if (value is Array arr) 131return $"{arr.GetType().GetElementType()}[{((Array)value).Length}]";
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
48arg3 ??= Array.Empty<byte>();
System\Net\Sockets\Socket.cs (2)
2768buffer = Array.Empty<byte>(); 3486errorCode = SocketPal.Receive(handle, Array.Empty<byte>(), 0, 0, SocketFlags.None, out unused);
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
130Array.Resize(ref s_registeredContexts, newLength);
System\Net\Sockets\SocketPal.Unix.cs (1)
212Unsafe.IsNullRef(ref MemoryMarshal.GetReference(buffer)) ? Array.Empty<byte>() : buffer;
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
93_encodedPath = Array.Empty<byte>();
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
520formHeaderBytes = Array.Empty<byte>(); 521boundaryBytes = Array.Empty<byte>();
System.Net.WebHeaderCollection (1)
System\Net\HeaderInfoTable.cs (1)
22if (isSetCookie && (!value.Contains('='))) return Array.Empty<string>();
System.Net.WebProxy (1)
System\Net\WebProxy.cs (1)
220return Array.Empty<string>();
System.Net.WebSockets (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (2)
129if (value is Array arr) 131return $"{arr.GetType().GetElementType()}[{((Array)value).Length}]";
System.Numerics.Tensors (12)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (3)
151public ReadOnlyTensorSpan(Array? array) 178public ReadOnlyTensorSpan(Array? array, scoped ReadOnlySpan<int> start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 574Array.Clear(_indexes);
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
412Array.Clear(_indexes);
System\Numerics\Tensors\netcore\TensorShape.cs (2)
697public static TensorShape Create(Array? array) 740public static TensorShape Create(Array? array, scoped ReadOnlySpan<int> start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, out nint linearOffset)
System\Numerics\Tensors\netcore\TensorSpan_1.cs (5)
93/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array)"/> 95public TensorSpan(Array? array) 105/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array, ReadOnlySpan{int}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 107public TensorSpan(Array? array, scoped ReadOnlySpan<int> start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 502Array.Clear(_indexes);
System\ThrowHelper.cs (1)
30public static void ThrowIfArrayTypeMismatch<T>(Array? array)
System.ObjectModel (3)
System\Collections\CollectionHelpers.cs (1)
10internal static void ValidateCopyToArguments(int sourceCount, Array array, int index)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (2)
308public void CopyTo(Array array, int index) => _list.CopyTo(array, index); 356public void CopyTo(Array array, int index)
System.Private.CoreLib (573)
Internal\Reflection\Core\Execution\ExecutionDomain.cs (1)
180parameterTypes = Array.Empty<RuntimeTypeInfo>();
Internal\Reflection\Extensions\NonPortable\CustomAttributeInstantiator.cs (2)
145Array array = Array.CreateInstanceFromArrayType(argumentType, typedElements.Count);
Internal\Runtime\Augments\RuntimeAugments.cs (5)
91public static Array NewArray(RuntimeTypeHandle typeHandleForArrayType, int count) 113public static unsafe Array NewMultiDimArray(RuntimeTypeHandle typeHandleForArrayType, int[] lengths, int[]? lowerBounds) 140return Array.NewMultiDimArray(typeHandleForArrayType.ToMethodTable(), pImmutableLengths, lengths.Length); 143public static unsafe void SetArrayValue(Array array, int[] indices, object value) 577return Array.Empty<RuntimeTypeHandle>();
Internal\Runtime\CompilerHelpers\DelegateHelpers.cs (1)
13private static object[] s_emptyObjectArray = Array.Empty<object>();
Internal\Runtime\CompilerHelpers\StartupCode\StartupCodeHelpers.Extensions.cs (1)
53Array.Copy(args, 1, mainArgs, 0, mainArgs.Length);
Internal\Runtime\MethodTable.Runtime.cs (1)
17return MethodTable.Of<Array>();
Internal\Runtime\ThreadStatics.cs (2)
92Array.Resize(ref threadStorage, moduleIndex + 1); 106Array.Resize(ref moduleStorage, newSize);
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (7)
26return Array.Empty<T>(); 28Array.Resize(ref _items, _count); 37Array.Copy(_items, destination, _count); 44Array.Resize(ref _items, 2 * _count + 1); 77Array.Copy(newItems, offset, _items, _count, length); 86Array.Copy(newItems._items, 0, _items, _count, newItems.Count); 109Array.Resize(ref _items, newCount);
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
163Array.Copy(bytes, temp, bytes.Length);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetUnixVersion.cs (1)
40Debug.Assert(Array.IndexOf<byte>(version, 0) >= 0);
src\runtime\src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (2)
33Debug.Assert(Array.MaxLength == ArrayMaxLength); 79Array.Resize(ref arr, newLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (82)
74public static unsafe Array CreateInstance(Type elementType, int length) 88public static unsafe Array CreateInstance(Type elementType, int length1, int length2) 104public static unsafe Array CreateInstance(Type elementType, int length1, int length2, int length3) 120public static unsafe Array CreateInstance(Type elementType, params int[] lengths) 145public static unsafe Array CreateInstance(Type elementType, int[] lengths, int[] lowerBounds) 174public static Array CreateInstance(Type elementType, params long[] lengths) 193/// Creates a one-dimensional <see cref="Array"/> of the specified array type and length, with zero-based indexing. 196/// <param name="length">The size of the <see cref="Array"/> to create.</param> 197/// <returns>A new one-dimensional <see cref="Array"/> of the specified <see cref="Type"/> with the specified length.</returns> 206public static unsafe Array CreateInstanceFromArrayType(Type arrayType, int length) 225/// Creates a multidimensional <see cref="Array"/> of the specified <see cref="Type"/> and dimension lengths, with zero-based indexing. 229/// <returns>A new multidimensional <see cref="Array"/> of the specified Type with the specified length for each dimension, using zero-based indexing.</returns> 243public static unsafe Array CreateInstanceFromArrayType(Type arrayType, params int[] lengths) 271/// Creates a multidimensional <see cref="Array"/> of the specified <see cref="Type"/> and dimension lengths, with the specified lower bounds. 275/// <param name="lowerBounds">A one-dimensional array that contains the lower bound (starting index) of each dimension of the <see cref="Array"/> to create.</param> 276/// <returns>A new multidimensional <see cref="Array"/> of the specified <see cref="Type"/> with the specified length and lower bound for each dimension.</returns> 295public static unsafe Array CreateInstanceFromArrayType(Type arrayType, int[] lengths, int[] lowerBounds) 330public static void Copy(Array sourceArray, Array destinationArray, long length) 339public static void Copy(Array sourceArray, long sourceIndex, Array destinationArray, long destinationIndex, long length) 362public static void ConstrainedCopy(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 369public static unsafe void Copy(Array sourceArray, Array destinationArray, int length) 399public static void Copy(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 404private static unsafe void Copy(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length, bool reliable) 437private static unsafe void CopyImpl(Array? sourceArray, int sourceIndex, Array? destinationArray, int destinationIndex, int length, bool reliable) 489private static void CopySlow(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length, ArrayAssignType assignType) 534private static unsafe void CopyImplUnBoxEachElement(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 579private static unsafe void CopyImplBoxEachElement(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 604private static unsafe void CopyImplCastCheckEachElement(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 630private static unsafe void CopyImplPrimitiveWiden(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) 664public static unsafe void Clear(Array array) 689public static unsafe void Clear(Array array, int index, int length) 1090Array? o = other as Array; 1124if (other is not Array o || o.Length != this.Length) 1173public static int BinarySearch(Array array, object? value) 1193public static int BinarySearch(Array array, int index, int length, object? value) 1212public static int BinarySearch(Array array, object? value, IComparer? comparer) 1234public static int BinarySearch(Array array, int index, int length, object? value, IComparer? comparer) 1343static int GenericBinarySearch<T>(Array array, int adjustedIndex, int length, object value) where T : struct, IComparable<T> 1437public void CopyTo(Array array, int index) 1445public void CopyTo(Array array, long index) 1740public static int IndexOf(Array array, object? value) 1753public static int IndexOf(Array array, object? value, int startIndex) 1767public static int IndexOf(Array array, object? value, int startIndex, int count) 1851static int GenericIndexOf<T>(Array array, object value, int adjustedIndex, int length) where T : struct, IEquatable<T> 1961public static int LastIndexOf(Array array, object? value) 1974public static int LastIndexOf(Array array, object? value, int startIndex) 1988public static int LastIndexOf(Array array, object? value, int startIndex, int count) 2078static int GenericLastIndexOf<T>(Array array, object value, int adjustedIndex, int length) where T : struct, IEquatable<T> 2214public static void Reverse(Array array) 2227public static void Reverse(Array array, int index, int length) 2321public static void Sort(Array array) 2334public static void Sort(Array keys, Array? items) 2345public static void Sort(Array array, int index, int length) 2356public static void Sort(Array keys, Array? items, int index, int length) 2367public static void Sort(Array array, IComparer? comparer) 2382public static void Sort(Array keys, Array? items, IComparer? comparer) 2395public static void Sort(Array array, int index, int length, IComparer? comparer) 2408public static void Sort(Array keys, Array? items, int index, int length, IComparer? comparer) 2490static void GenericSort<T>(Array keys, Array? items, int adjustedIndex, int length) where T : struct 2861private readonly Array keys; 2862private readonly Array? items; 2865internal SorterGenericArray(Array keys, Array? items, IComparer comparer) 3072private static Span<T> UnsafeArrayAsSpan<T>(Array array, int adjustedIndex, int length) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.Enumerators.cs (3)
14private readonly Array _array; 17internal ArrayEnumerator(Array array) 46Array array = _array;
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (5)
109System.Array.Copy(_array!, _offset, destination, destinationIndex, _count); 122System.Array.Copy(_array!, _offset, destination._array!, destination._offset, _count); 165System.Array.Copy(_array!, _offset, array, 0, _count); 201int index = System.Array.IndexOf(_array!, item, _offset, _count); 242int index = System.Array.IndexOf(_array!, item, _offset, _count);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Attribute.cs (4)
107Array thisValueArray = (Array)thisValue; 108Array thatValueArray = (Array)thatValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffer.cs (5)
18public static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count) 57public static int ByteLength(Array array) 78public static byte GetByte(Array array, int index) 89public static void SetByte(Array array, int index, byte value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\ConfigurableArrayPool.cs (1)
135Array.Clear(array);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (16)
153Array.Clear(array); 166Array? prev = tla.Array; 220Array.Clear(tlsBuckets.Key); 311public Array? Array; 315public SharedArrayPoolThreadLocalArray(Array array) 345public bool TryPush(Array array) 365public Array? TryPop() 368Array? arr; 392private readonly Array?[] _arrays = new Array[SharedArrayPoolStatics.s_maxArraysPerPartition]; 399public bool TryPush(Array array) 403Array?[] arrays = _arrays; 423public Array? TryPop() 425Array? arr = null; 427Array?[] arrays = _arrays; 482Array? array = _arrays[--_count];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (56)
90Array.Copy(_items, newItems, _size); 197return Array.BinarySearch((Array)_items, index, count, value, comparer); 216Array.Clear(_items, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references. 230Array.Copy(_items, la._items, _size); 239public virtual bool Contains(object? item) => Array.IndexOf(_items, item, 0, _size) >= 0; 244public virtual void CopyTo(Array array) => CopyTo(array, 0); 249public virtual void CopyTo(Array array, int arrayIndex) 255Array.Copy(_items, 0, array!, arrayIndex, _size); 262public virtual void CopyTo(int index, Array array, int arrayIndex, int count) 270Array.Copy(_items, index, array!, arrayIndex, count); 284if ((uint)newCapacity > Array.MaxLength) newCapacity = Array.MaxLength; 344return Array.IndexOf((Array)_items, value, 0, _size); 360return Array.IndexOf((Array)_items, value, startIndex, _size - startIndex); 377return Array.IndexOf((Array)_items, value, startIndex, count); 392Array.Copy(_items, index, _items, index + 1, _size - index); 417Array.Copy(_items, index, _items, index + count, _size - index); 480return Array.LastIndexOf((Array)_items, value, startIndex, count); 521Array.Copy(_items, index + 1, _items, index, _size - index); 542Array.Copy(_items, index + count, _items, index, _size - index); 582Array.Reverse(_items, index, count); 641Array.Sort(_items, index, count, comparer); 671Array.Copy(_items, array, _size); 681public virtual Array ToArray(Type type) 685Array array = Array.CreateInstance(type, _size); 686Array.Copy(_items, array, _size); 812public override void CopyTo(Array array, int index) 817public override void CopyTo(int index, Array array, int arrayIndex, int count) 1040Array.Sort(array, 0, count, comparer); 1059public override Array ToArray(Type type) 1063Array array = Array.CreateInstance(type, _list.Count); 1267public override void CopyTo(Array array) 1275public override void CopyTo(Array array, int index) 1283public override void CopyTo(int index, Array array, int arrayIndex, int count) 1452public override Array ToArray(Type type) 1538public void CopyTo(Array array, int index) 1627public void CopyTo(Array array, int index) 1726public override void CopyTo(Array array, int index) 1731public override void CopyTo(int index, Array array, int arrayIndex, int count) 1835public override Array ToArray(Type type) 1886public void CopyTo(Array array, int index) 1981public override void CopyTo(Array array, int index) 1986public override void CopyTo(int index, Array array, int arrayIndex, int count) 2087public override Array ToArray(Type type) 2276public override void CopyTo(Array array, int index) 2290public override void CopyTo(int index, Array array, int arrayIndex, int count) 2532public override Array ToArray(Type type) 2537Array array = Array.CreateInstance(type, _baseSize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (6)
73Array.Fill(_array, (byte)0xFF); 145Array.Copy(bytes, _array, bytes.Length); 277Array.Copy(bits._array, _array, _array.Length); 642Array.Resize(ref _array, newByteLength); 657Array.Resize(ref _array, newByteLength); 670public unsafe void CopyTo(Array array, int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (4)
1865void ICollection.CopyTo(Array array, int index) 1986(newLength = HashHelpers.GetPrime(newLength)) > Array.MaxLength) 1988newLength = Array.MaxLength; 2005Array.Copy(tables._locks, newLocks, tables._locks.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (7)
111/// cref="Array"/>, starting at a particular <see cref="Array"/> index. 114/// The one-dimensional <see cref="Array">Array</see> that is the destination of the 133void ICollection.CopyTo(Array array, int index) 421/// cref="Array">Array</see>, starting at the specified array index. 423/// <param name="array">The one-dimensional <see cref="Array">Array</see> that is the 425/// <see cref="ConcurrentQueue{T}"/>. The <see cref="Array">Array</see> must have zero-based
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\IProducerConsumerCollection.cs (2)
23/// <see cref="Array"/>, starting at a specified index. 25/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (12)
143if (partitionSize <= Array.IntrosortSizeThreshold) 181Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold); 419if (partitionSize <= Array.IntrosortSizeThreshold) 460Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold); 687if (partitionSize <= Array.IntrosortSizeThreshold) 725Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold); 916if (partitionSize <= Array.IntrosortSizeThreshold) 954Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold); 1212if (partitionSize <= Array.IntrosortSizeThreshold) 1249Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold); 1425if (partitionSize <= Array.IntrosortSizeThreshold) 1462Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (1)
146Array.Copy(list._items, index, list._items, index + source.Length, list._size - index);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (6)
288Array.Clear(_buckets); 293Array.Clear(_entries, 0, count); 1258Array.Copy(_entries, entries, count); 1571void ICollection.CopyTo(Array array, int index) 2060void ICollection.CopyTo(Array array, int index) 2254void ICollection.CopyTo(Array array, int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (3)
205Array.Clear(_buckets); 209Array.Clear(_entries, 0, count); 1304Array.Copy(_entries, entries, count);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (27)
114Array.Copy(_items, newItems, _size); 309return Array.BinarySearch(_items, index, count, item, comparer); 329Array.Clear(_items, 0, size); // Clear the elements so that the gc can reclaim the references. 387void ICollection.CopyTo(Array array, int arrayIndex) 397Array.Copy(_items, 0, array!, arrayIndex, _size); 417Array.Copy(_items, index, array, arrayIndex, count); 423Array.Copy(_items, 0, array, arrayIndex, _size); 476Array.Copy(_items, newItems, length: indexToInsert); 481Array.Copy(_items, indexToInsert, newItems, indexToInsert + insertionCount, _size - indexToInsert); 496if ((uint)newCapacity > Array.MaxLength) newCapacity = Array.MaxLength; 691Array.Copy(_items, index, list._items, 0, count); 719=> Array.IndexOf(_items, item, 0, _size); 743return Array.IndexOf(_items, item, index, _size - index); 763return Array.IndexOf(_items, item, index, count); 783Array.Copy(_items, index, _items, index + 1, _size - index); 832Array.Copy(_items, index, _items, index + count, _size - index); 839Array.Copy(_items, 0, _items, index, index); 841Array.Copy(_items, index + count, _items, index * 2, _size - index); 935return Array.LastIndexOf(_items, item, index, count); 990Array.Clear(_items, freeIndex, _size - freeIndex); // Clear the elements so that the gc can reclaim the references. 1010Array.Copy(_items, index + 1, _items, index, _size - index); 1040Array.Copy(_items, index + count, _items, index, _size - index); 1046Array.Clear(_items, _size, count); 1077Array.Reverse(_items, index, count); 1117Array.Sort(_items, index, count, comparer); 1146Array.Copy(_items, array, _size);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (19)
76Array.Clear(_array, _head, _size); 80Array.Clear(_array, _head, _array.Length - _head); 81Array.Clear(_array, 0, _tail); 113Array.Copy(_array, _head, array, arrayIndex, firstPart); 117Array.Copy(_array, 0, array, arrayIndex + _array.Length - _head, numToCopy); 121void ICollection.CopyTo(Array array, int index) 152Array.Copy(_array, _head, array, index, firstPart); 157Array.Copy(_array, 0, array, index + _array.Length - _head, numToCopy); 273return Array.IndexOf(_array, item, _head, _size) >= 0; 278Array.IndexOf(_array, item, _head, _array.Length - _head) >= 0 || 279Array.IndexOf(_array, item, 0, _tail) >= 0; 297Array.Copy(_array, _head, arr, 0, _size); 301Array.Copy(_array, _head, arr, 0, _array.Length - _head); 302Array.Copy(_array, 0, arr, _array.Length - _head, _tail); 318Array.Copy(_array, _head, newarray, 0, _size); 322Array.Copy(_array, _head, newarray, 0, _array.Length - _head); 323Array.Copy(_array, 0, newarray, _array.Length - _head, _tail); 406if ((uint)newcapacity > Array.MaxLength) newcapacity = Array.MaxLength;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (7)
534private void CopyKeys(Array array, int arrayIndex) 553private void CopyEntries(Array array, int arrayIndex) 572public virtual void CopyTo(Array array, int arrayIndex) 605private void CopyValues(Array array, int arrayIndex) 1189public void CopyTo(Array array, int arrayIndex) 1224public void CopyTo(Array array, int arrayIndex) 1322public override void CopyTo(Array array, int arrayIndex)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ICollection.cs (1)
14void CopyTo(Array array, int index);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (2)
148public void CopyTo(Array array, int index) 303void ICollection.CopyTo(Array array, int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
170void ICollection.CopyTo(Array array, int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (2)
10internal static void ValidateCopyToArguments(int sourceCount, Array array, int index) 40internal static void CopyTo<T>(ICollection<T> collection, Array array, int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (2)
31public static ReadOnlyCollection<T> Empty { get; } = new ReadOnlyCollection<T>(Array.Empty<T>()); 101void ICollection.CopyTo(Array array, int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (3)
175void ICollection.CopyTo(Array array, int index) 291void ICollection.CopyTo(Array array, int index) 343void ICollection.CopyTo(Array array, int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
69void ICollection.CopyTo(Array array, int index) => CollectionHelpers.CopyTo(_set, array, index);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (18)
319Array.Copy(args, objs, lastPos); 320objs[lastPos] = Array.CreateInstance(paramArrayTypes[0], 1); 321((Array)objs[lastPos]).SetValue(args[lastPos], 0); 340objs[i] = Array.CreateInstance(paramArrayTypes[0], 0); // create an empty array for the 357Array.Copy(args, objs, paramArrayPos); 358objs[paramArrayPos] = Array.CreateInstance(paramArrayTypes[0], args.Length - paramArrayPos); 359Array.Copy(args, paramArrayPos, (Array)objs[paramArrayPos], 0, args.Length - paramArrayPos); 409Array.Copy(args, objs, lastPos); 410objs[lastPos] = Array.CreateInstance(paramArrayTypes[currentMin], 1); 411((Array)objs[lastPos]).SetValue(args[lastPos], 0); 427objs[i] = Array.CreateInstance(paramArrayTypes[currentMin], 0); 442Array.Copy(args, objs, paramArrayPos); 443objs[paramArrayPos] = Array.CreateInstance(paramArrayTypes[currentMin], args.Length - paramArrayPos); 444Array.Copy(args, paramArrayPos, (Array)objs[paramArrayPos], 0, args.Length - paramArrayPos); 772Array.Copy(args, newArgs, paramArrayPos); 785Array.Copy(args, newArgs, binderState._originalSize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
179Array.Copy(_stackFrames, _methodsToSkip, array, 0, _numOfFrames);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (2)
120Array.Copy(s_counterGroups, newCounterGroups, s_counterGroups.Length); 274Array.Clear(_onTimerCounters);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
1937decoded = Array.Empty<byte>(); 3480Array.Copy(args, 1, newargs, 0, args.Length - 1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (1)
539Array.Sort(sortedStrings, StringComparer.Ordinal);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\ArrayTypeInfo.cs (4)
31Array? array = (Array?)value.ReferenceValue; 47var array = (Array)value;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\ConcurrentSet.cs (2)
102Array.Copy(oldItems, newItems, lo); 104Array.Copy(oldItems, lo, newItems, lo + 1, oldLength - lo);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (3)
182internal void AddBinary(Array value, int size) 187internal void AddArray(Array? value, int length, int itemSize) 307Array.Resize(ref this.buffer, newSize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingDataCollector.cs (2)
94Array? array = (Array?)value.ReferenceValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventHandleTable.cs (1)
52Array.Copy(m_innerTable, newTable, m_innerTable.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (7)
292Array values = GetValuesAsUnderlyingTypeNoCopy((RuntimeType)typeof(TEnum)); 294Array.Copy(values, result, values.Length); 307public static Array GetValues(Type enumType) 320public static Array GetValuesAsUnderlyingType<TEnum>() where TEnum : struct, Enum => 332public static Array GetValuesAsUnderlyingType(Type enumType) 339internal static Array GetValuesAsUnderlyingType(RuntimeType enumType) 369internal static Array GetValuesAsUnderlyingTypeNoCopy(RuntimeType enumType)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (2)
1689Array.Copy(calendars, 1, calendars, 2, 23 - 1 - 1); 1696Array.Copy(calendars, temp, count);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
1410Array.Copy(patterns, 0, newPatterns, 1, patterns.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseLunisolarCalendar.cs (1)
198Array.Resize(ref newEras, newIndex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (6)
727if (sfh.CanSeek && (fileLength = sfh.GetFileLength()) > Array.MaxLength) 1206if (sfh.CanSeek && (fileLength = sfh.GetFileLength()) > Array.MaxLength) 1255if (newLength > Array.MaxLength) 1257newLength = (uint)Math.Max(Array.MaxLength, rentedArray.Length + 1); 1520if (newLength > Array.MaxLength) 1522newLength = (uint)Math.Max(Array.MaxLength, buffer.Length + 1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (12)
37private static int MemStreamMaxLength => Array.MaxLength; 149if ((uint)(_capacity * 2) > Array.MaxLength) 151newCapacity = Math.Max(value, Array.MaxLength); 315throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength)); 528throw new ArgumentOutOfRangeException(nameof(offset), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength)); 551throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength)); 556Debug.Assert(MemStreamMaxLength == Array.MaxLength); // Check parameter validation logic in this method if this fails. 558throw new ArgumentOutOfRangeException(nameof(value), SR.Format(SR.ArgumentOutOfRange_StreamLength, Array.MaxLength)); 563Array.Clear(_buffer, _length, newLength - _length); 603Array.Clear(_buffer, _length, i - _length); 654Array.Clear(_buffer, _length, i - _length); 736Array.Clear(_buffer, _length, _position - _length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
546Array.Resize(ref decodedBytes, decodedBytesCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
64Array.Copy(moduleTypes[i], 0, ret, current, length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (3)
239Array.Copy(_iaLowerBound, iaTemp, _rank); 241Array.Copy(_iaUpperBound, iaTemp, _rank); 370public override Type BaseType => typeof(Array);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeMethodBody.cs (2)
21public override IList<LocalVariableInfo> LocalVariables => Array.AsReadOnly(_localVariables); 25public override IList<ExceptionHandlingClause> ExceptionHandlingClauses => Array.AsReadOnly(_exceptionHandlingClauses);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
107public sealed override Array GetEnumValues() => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (2)
160Array.Sort(sortedDataPositions); 162int index = Array.BinarySearch(sortedDataPositions, dataPos);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.cs (3)
491_eventBuffer.Data = Array.Empty<byte>(); 603_eventBuffer.Data = Array.Empty<byte>(); 662_eventBuffer.Data = Array.Empty<byte>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (1)
55dest = Unsafe.As<T[]>(Array.CreateInstanceFromArrayType(array.GetType(), length));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (1)
23if (array is not Array arrayObj || (arrayObj.Rank != 1) || !Marshal.IsPinnable(arrayObj))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (1)
159Array.Clear(list._items, count, list._size - count);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (2)
141Debug.Assert(target is Array); 142return (IntPtr)Unsafe.AsPointer(ref MemoryMarshal.GetArrayDataReference(Unsafe.As<Array>(target)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
164public static unsafe IntPtr UnsafeAddrOfPinnedArrayElement(Array arr, int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (1)
429if (Array.IndexOf(requiredType, VarType) < 0)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
423if (((ulong)length) > (ulong)Array.MaxLength)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (3)
123Array.Copy(_names, newMembers, _count); 124Array.Copy(_values, newData, _count); 125Array.Copy(_types, newTypes, _count);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickNode.cs (2)
13private static object EmptyChildrenSentinel => Array.Empty<int>(); 159Array.Fill(table, -1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\PermissionSet.cs (2)
28public virtual void CopyTo(Array array, int index) { } 35protected virtual IEnumerator GetEnumeratorImpl() { return Array.Empty<object>().GetEnumerator(); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2029Array.Resize(ref splitStrings, arrIndex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncodingProvider.cs (2)
64if (Array.IndexOf(providers, provider) >= 0) 70Array.Copy(providers, newProviders, providers.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
285Array.Copy(m_ChunkChars, newArray, m_ChunkLength); 464Array.Copy(chunk.m_ChunkChars, newArray, chunk.m_ChunkLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (8)
699if ((uint)newLength > Array.MaxLength) 701newLength = length == Array.MaxLength ? 702Array.MaxLength + 1 : // force OOM 703Array.MaxLength; 746if ((uint)newLength > Array.MaxLength) 748newLength = length == Array.MaxLength ? 749Array.MaxLength + 1 : // force OOM 750Array.MaxLength;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\AsyncLocal.cs (3)
429if (i != 0) Array.Copy(_keyValues, newValues, i); 430if (i != _keyValues.Length - 1) Array.Copy(_keyValues, i + 1, newValues, i, _keyValues.Length - i - 1); 449Array.Copy(_keyValues, newValues, _keyValues.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (2)
531Debug.Assert(Array.IndexOf(newChangeNotifications, local) >= 0); 540Array.Resize(ref newChangeNotifications, newNotificationIndex + 1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (4)
331Array.Copy(_registeredWaits, removeAt + 1, _registeredWaits, removeAt, count - (removeAt + 1)); 337Array.Copy(_waitHandles, removeAt + 1, _waitHandles, removeAt, count - (removeAt + 1)); 445if (Array.IndexOf(_registeredWaits, handle) >= 0) 447if (Array.IndexOf(_pendingRemoves, handle) < 0)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
5519signaledTaskIndex = Array.IndexOf(tasks, firstCompleted.Result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (3)
549if ((uint)minSize > Array.MaxLength) 559if (newSize > Array.MaxLength) 561newSize = (uint)Array.MaxLength;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (7)
46Debug.Assert(Array.IndexOf(oldQueues, queue) < 0); 49Array.Copy(oldQueues, newQueues, oldQueues.Length); 69int pos = Array.IndexOf(oldQueues, queue); 79Array.Copy(oldQueues, 1, newQueues, 0, newQueues.Length); 83Array.Copy(oldQueues, newQueues, newQueues.Length); 87Array.Copy(oldQueues, newQueues, pos); 88Array.Copy(oldQueues, pos + 1, newQueues, pos, newQueues.Length - pos);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.ThreadWaitInfo.Unix.cs (1)
164Array.Copy(_waitedListNodes, 0, newItems, 0, currentLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (2)
588internal static void ThrowArraySegmentCtorValidationFailedExceptions(Array? array, int offset, int count) 711private static Exception GetArraySegmentCtorValidationFailedException(Array? array, int offset, int count)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Cache.cs (2)
1349Array.Resize(ref _yearsTransitions, Math.Max(_yearsTransitions.Length * 2, count + _yearsTransitionsCount)); 1352Array.Copy(allTransitions, 0, _yearsTransitions, _yearsTransitionsCount, count);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
794Array.Sort(array, static (x, y) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (2)
633public virtual Array GetEnumValues() 652public virtual Array GetEnumValuesAsUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SubclassOverride);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (8)
43if (Array.IndexOf(names, value) >= 0) 57Array values = GetEnumRawConstantValues(); 78Array values = GetEnumRawConstantValues(); 100private Array GetEnumRawConstantValues() 102GetEnumData(out _, out Array values); 109private void GetEnumData(out string[] enumNames, out Array enumValues) 156private static int BinarySearch(Array array, object value) 164return Array.BinarySearch(ulArray, ulValue);
System\ActivatorImplementation.cs (3)
30ConstructorInfo? constructor = type.GetConstructor(bindingFlags, null, CallingConventions.Any, Array.Empty<Type>(), null); 45object result = constructor.Invoke(Array.Empty<object>()); 68args ??= Array.Empty<object>();
System\Array.NativeAot.cs (15)
49return MethodTable.Of<Array>(); 53private static unsafe Array InternalCreate(RuntimeType elementType, int rank, int* pLengths, int* pLowerBounds) 90private static unsafe Array InternalCreateFromArrayType(RuntimeType arrayType, int rank, int* pLengths, int* pLowerBounds) 130internal static unsafe Array NewMultiDimArray(MethodTable* eeType, int* pLengths, int rank) 162Array ret = RuntimeImports.RhNewVariableSizeObject(eeType, (int)totalLength); 178internal static unsafe Array Ctor(MethodTable* pEEType, int nDimensions, int* pDimensions) 211internal static unsafe Array CtorRare(MethodTable* pEEType, int nDimensions, int* pDimensions) 220Array ret = RuntimeImports.RhNewArray(pEEType, pDimensions[0]); 228Array[] arrayOfArrays = Unsafe.As<Array[]>(ret); 292private static unsafe ArrayAssignType CanAssignArrayType(Array sourceArray, Array destinationArray) 566return Array.IndexOf(@this, item, 0, @this.Length) >= 0; 572Array.Copy(@this, 0, array, arrayIndex, @this.Length); 611return Array.IndexOf(@this, item, 0, @this.Length);
System\Diagnostics\StackTrace.NativeAot.cs (1)
21int frameCount = -RuntimeImports.RhGetCurrentThreadStackTrace(Array.Empty<IntPtr>());
System\Exception.NativeAot.cs (3)
51Array.Copy(_corDbgStackTrace, ips, ips.Length); 158Array.Copy(stackTrace, 0, newStackTrace, 0, stackTrace.Length); 171Array.Copy(stackTrace, 0, newStackTrace, 0, stackTrace.Length);
System\Object.NativeAot.cs (1)
32RuntimeImports.RhNewVariableSizeObject(this.GetMethodTable(), Unsafe.As<Array>(this).Length) :
System\Reflection\AssemblyRuntimeNameHelpers.cs (1)
40Array.Copy(pkOriginal, pkCopy, pkOriginal.Length);
System\Reflection\Attribute.NativeAot.cs (1)
151Attribute[] result = (Attribute[])Array.CreateInstance(actualElementType, attributes.Count);
System\Reflection\ModifiedType.NativeAot.cs (1)
115Array.Reverse(result);
System\Reflection\Runtime\BindingFlagSupport\QueriedMemberList.cs (4)
156Array.Resize(ref _members, _totalCount); 157Array.Resize(ref _allFlagsThatMustMatch, _totalCount); 171Array.Resize(ref _members, count + Grow); 172Array.Resize(ref _allFlagsThatMustMatch, count + Grow);
System\Reflection\Runtime\BindingFlagSupport\QueryResult.cs (1)
68return Array.Empty<M>();
System\Reflection\Runtime\CustomAttributes\NativeFormat\NativeFormatCustomAttributeData.cs (3)
71TypeContext typeContext = new TypeContext(Array.Empty<RuntimeTypeInfo>(), Array.Empty<RuntimeTypeInfo>()); 78return ResolveAttributeConstructor(attributeType, Array.Empty<Type>());
System\Reflection\Runtime\CustomAttributes\RuntimeCustomAttributeData.cs (1)
170if (value is Array arr)
System\Reflection\Runtime\CustomAttributes\RuntimePseudoCustomAttributeData.cs (3)
25constructorArguments ??= Array.Empty<CustomAttributeTypedArgument>(); 43return ResolveAttributeConstructor(_attributeType, Array.Empty<Type>()); 63return Array.Empty<CustomAttributeNamedArgument>();
System\Reflection\Runtime\General\Helpers.cs (4)
43return Array.Empty<Type>(); 66return Array.AsReadOnly(enumeration.ToArray()); 111return Array.IndexOf(s_charsToEscape, c) >= 0; 162object[] result = (object[])Array.CreateInstance(actualElementType, attributes.Count);
System\Reflection\Runtime\General\ListBuilder.cs (3)
41return Array.Empty<T>(); 45Array.Resize(ref _items, _count); 80Array.Resize(ref _items, newCapacity);
System\Reflection\Runtime\General\MetadataReaderExtensions.NativeFormat.cs (11)
80return Array.Empty<Type>(); 336private static Array TryParseConstantArray(this Handle handle, MetadataReader reader, out Exception? exception) 418private static Array TryParseConstantEnumArray(this ConstantEnumArrayHandle handle, MetadataReader reader, out Exception? exception) 732result = (byte[])Array.CreateInstance(enumType, count); 756result = (sbyte[])Array.CreateInstance(enumType, count); 780result = (ushort[])Array.CreateInstance(enumType, count); 804result = (short[])Array.CreateInstance(enumType, count); 828result = (uint[])Array.CreateInstance(enumType, count); 852result = (int[])Array.CreateInstance(enumType, count); 876result = (ulong[])Array.CreateInstance(enumType, count); 900result = (long[])Array.CreateInstance(enumType, count);
System\Reflection\Runtime\MethodInfos\CustomMethodInvoker.cs (2)
94Array.Copy(args, 1, arguments, 0, args.Length - 1); 98arguments = Array.Empty<object>();
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.Nullable.cs (5)
29map.AddMethod(type, nameof(Nullable<int>.ToString), Array.Empty<Type>(), 48map.AddMethod(type, nameof(Nullable<int>.GetHashCode), Array.Empty<Type>(), 62map.AddMethod(type, "get_" + nameof(Nullable<int>.HasValue), Array.Empty<Type>(), 69map.AddMethod(type, "get_" + nameof(Nullable<int>.Value), Array.Empty<Type>(), 78map.AddMethod(type, nameof(Nullable<int>.GetValueOrDefault), Array.Empty<Type>(), NullableGetValueOrDefault);
System\Reflection\Runtime\MethodInfos\NativeFormat\NativeFormatMethodCommon.cs (1)
82return Array.Empty<RuntimeTypeInfo>();
System\Reflection\Runtime\MethodInfos\RuntimeConstructorInfo.cs (2)
45return Array.Empty<ParameterInfo>(); 64parameters ??= Array.Empty<object>();
System\Reflection\Runtime\MethodInfos\RuntimeMethodInfo.cs (1)
146return Array.Empty<ParameterInfo>();
System\Reflection\Runtime\MethodInfos\RuntimePlainConstructorInfo.cs (3)
142return RuntimeMethodHelpers.ComputeToString(ref _common, this, Array.Empty<RuntimeTypeInfo>()); 151return _lazyParameters ??= RuntimeMethodHelpers.GetRuntimeParameters(ref _common, this, Array.Empty<RuntimeTypeInfo>(), out _); 169invoker = _common.GetUncachedMethodInvoker(Array.Empty<RuntimeTypeInfo>(), this, out Exception exception);
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticConstructorInfo.cs (2)
51return Array.Empty<CustomAttributeData>(); 131return RuntimeMethodHelpers.ComputeToString(this, Array.Empty<RuntimeTypeInfo>(), RuntimeParameters, returnParameter: null);
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticMethodInfo.cs (3)
53return Array.Empty<CustomAttributeData>(); 163return RuntimeMethodHelpers.ComputeToString(this, Array.Empty<RuntimeTypeInfo>(), RuntimeParameters, RuntimeReturnParameter); 180return Array.Empty<RuntimeTypeInfo>();
System\Reflection\Runtime\MethodInfos\VirtualRuntimeParameterInfoArray.cs (1)
25Remainder = (count == 1) ? Array.Empty<RuntimeParameterInfo>() : new RuntimeParameterInfo[count - 1];
System\Reflection\Runtime\ParameterInfos\RuntimeSyntheticParameterInfo.cs (3)
38return Array.Empty<CustomAttributeData>(); 67public sealed override Type[] GetOptionalCustomModifiers() => Array.Empty<Type>(); 69public sealed override Type[] GetRequiredCustomModifiers() => Array.Empty<Type>();
System\Reflection\Runtime\ParameterInfos\RuntimeThinMethodParameterInfo.cs (1)
37return Array.Empty<CustomAttributeData>();
System\Reflection\Runtime\PropertyInfos\RuntimePropertyInfo.cs (4)
89_lazyIndexParameters = indexParameters = Array.Empty<ParameterInfo>(); 132_lazyGetterInvoker = Getter.GetUncachedMethodInvoker(Array.Empty<RuntimeTypeInfo>(), this); 134index ??= Array.Empty<object>(); 194_lazySetterInvoker = Setter.GetUncachedMethodInvoker(Array.Empty<RuntimeTypeInfo>(), this);
System\Reflection\Runtime\TypeInfos\RuntimeArrayTypeInfo.cs (9)
119Array jaggedArray = CreateJaggedArray(arrayType, lengths, 0); 188Array array = (Array)_this; 211Array array = (Array)_this; 262return Array.Empty<QTypeDefRefOrSpec>(); 308private static Array CreateJaggedArray(RuntimeTypeInfo arrayType, int[] lengths, int index) 311Array jaggedArray = RuntimeAugments.NewArray(arrayType.TypeHandle, length); 316Array subArray = CreateJaggedArray(arrayType.InternalRuntimeElementType, lengths, index + 1);
System\Reflection\Runtime\TypeInfos\RuntimeFunctionPointerTypeInfo.cs (2)
37public override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>(); 72Array.Copy(_key.ParameterTypes, result, result.Length);
System\Reflection\Runtime\TypeInfos\RuntimeGenericParameterTypeInfo.cs (1)
175return Array.Empty<RuntimeTypeInfo>();
System\Reflection\Runtime\TypeInfos\RuntimeHasElementTypeInfo.cs (1)
54return Array.Empty<CustomAttributeData>();
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.CoreGetDeclared.cs (6)
42Debug.Assert(object.ReferenceEquals(SyntheticConstructors, Array.Empty<RuntimeConstructorInfo>())); 65Debug.Assert(object.ReferenceEquals(SyntheticMethods, Array.Empty<RuntimeMethodInfo>())); 89return Array.Empty<EventInfo>(); 99return Array.Empty<FieldInfo>(); 110return Array.Empty<PropertyInfo>(); 120return Array.Empty<Type>();
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (6)
178return defaultMemberName != null ? GetMember(defaultMemberName, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public) : Array.Empty<MemberInfo>(); 609return Array.Empty<RuntimeTypeInfo>(); 652return Array.Empty<RuntimeTypeInfo>(); 663return Array.Empty<RuntimeConstructorInfo>(); 674return Array.Empty<RuntimeMethodInfo>(); 699return Array.Empty<QTypeDefRefOrSpec>();
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.InvokeMember.cs (5)
69if (namedParams != null && Array.IndexOf(namedParams, null) >= 0) 156if (selFld.FieldType.IsArray || object.ReferenceEquals(selFld.FieldType, typeof(Array))) 189Array a = (Array)selFld.GetValue(target)!; 373providedArgs ??= Array.Empty<object>();
System\Runtime\CompilerServices\ClassConstructorRunner.cs (1)
329Array.Resize(ref s_cctorArrays, (s_cctorArrays.Length * 2) + 1);
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (2)
22public static void InitializeArray(Array array, RuntimeFieldHandle fldHandle) 197internal static unsafe ushort GetElementSize(this Array array)
System\Runtime\InteropServices\MemoryMarshal.NativeAot.cs (1)
40public static ref byte GetArrayDataReference(Array array)
System\Runtime\RuntimeImports.cs (2)
397internal static extern unsafe Array RhNewArray(MethodTable* pEEType, nint length); 401internal static extern unsafe Array RhNewVariableSizeObject(MethodTable* pEEType, int length);
System\RuntimeType.NativeAot.cs (8)
183public override Array GetEnumValues() 188Array values = Enum.GetValuesAsUnderlyingTypeNoCopy(this); 194Array result = AppContext.TryGetSwitch("Switch.System.Enum.RelaxedGetValues", out bool isRelaxed) && isRelaxed ? 195Array.CreateInstance(Enum.InternalGetUnderlyingType(this), count) : 196Array.CreateInstance(this, count); 198Array.Copy(values, result, values.Length); 202public override Array GetEnumValuesAsUnderlyingType() 344return typeof(Array);
System\Threading\SyncTable.cs (1)
182Array.Copy(s_entries, newEntries, oldSize);
System.Private.CoreLib.Generators (6)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (4)
259Array.Copy(decomposedLeft, retVal, decomposedLeft.Length); 260Array.Copy(decomposedRight, 0, retVal, decomposedLeft.Length, decomposedRight.Length); 348Array.Copy(decomposedLeft, retVal, decomposedLeft.Length); 349Array.Copy(decomposedRight, 0, retVal, decomposedLeft.Length, decomposedRight.Length);
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
183Array.Clear(toReturn, 0, pos); 247Array.Clear(toReturn, 0, _pos);
System.Private.DataContractSerialization (86)
System\Runtime\Serialization\ClassDataContract.cs (6)
179obj = ci.Invoke(Array.Empty<object>()); 365Array.Copy(baseChildElementNamespaces!, childElementNamespaces, baseChildElementNamespaces!.Length); 627ContractNamespaces = MemberNames = MemberNamespaces = Array.Empty<XmlDictionaryString>(); 701Array.Copy(BaseClassContract.MemberNames, MemberNames, baseMemberCount); 703Array.Copy(BaseClassContract.MemberNamespaces!, MemberNamespaces, baseMemberCount); 706Array.Copy(BaseClassContract.ContractNamespaces, ContractNamespaces, baseContractCount);
System\Runtime\Serialization\CodeGenerator.cs (1)
52s_arraySetValue = typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) });
System\Runtime\Serialization\CollectionDataContract.cs (4)
767_incrementCollectionCountDelegate = (IncrementCollectionCountDelegate)buildIncrementCollectionCountDelegate.Invoke(null, Array.Empty<object>())!; 773_incrementCollectionCountDelegate = (IncrementCollectionCountDelegate)buildIncrementCollectionCountDelegate.Invoke(null, Array.Empty<object>())!; 822_createGenericDictionaryEnumeratorDelegate = (CreateGenericDictionaryEnumeratorDelegate)buildCreateGenericDictionaryEnumerator.Invoke(null, Array.Empty<object>())!; 1326Array.Sort(parentInterfaceTypes, (x, y) => string.Compare(x.FullName, y.FullName));
System\Runtime\Serialization\ContextAware.cs (1)
46Array.Resize<(DataContract?, WeakReference<DataContract>?)>(ref _contracts, newSize);
System\Runtime\Serialization\DataContract.cs (4)
665"Array" => typeof(Array), 758else if (type == typeof(Array)) 876dataContract = new CollectionDataContract(typeof(Array)); 2016object? types = method.Invoke(null, Array.Empty<object>());
System\Runtime\Serialization\DataContractSet.cs (1)
660SchemaImporter importer = new SchemaImporter(schemaSet, Array.Empty<XmlQualifiedName>() /* Needs to be empty, not null for 'elements' to be used. */, elements, this, importXmlDataType);
System\Runtime\Serialization\EnumDataContract.cs (2)
430Array.Sort(memberNames1); 431Array.Sort(memberNames2);
System\Runtime\Serialization\ExtensionDataObject.cs (1)
254internal sealed class CollectionDataNode : DataNode<Array>
System\Runtime\Serialization\ExtensionDataReader.cs (2)
779Array.Copy(_elements, newElements, _elements.Length); 856Array.Copy(attributes, newAttributes, attributes.Length);
System\Runtime\Serialization\Globals.cs (1)
30internal static Type TypeOfArray => field ??= typeof(Array);
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
207Array.Resize<JsonDataContract>(ref s_dataContractCache, newSize);
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
75return Array.Empty<byte>(); 104buffer = Array.Empty<byte>();
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (3)
42context.IncrementArrayCount(jsonWriter, (Array)obj); 48Array array = (Array)obj;
System\Runtime\Serialization\Json\XmlJsonReader.cs (2)
816internal static void CheckArray(Array array, int offset, int count) 1014Array.Copy(_scopes, newScopes, _scopeDepth);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (4)
1036if (value is Array) 1038WriteValue((Array)value); 1133Array.Copy(_scopes, newScopes, _depth); 1459private void WriteValue(Array array)
System\Runtime\Serialization\ObjectReferenceStack.cs (2)
31Array.Resize<object>(ref _objectArray, _objectArray.Length * 2); 65Array.Resize<bool>(ref _isReferenceArray, _objectArray.Length);
System\Runtime\Serialization\ReflectionClassWriter.cs (1)
76memberValue = getValue.Invoke(memberValue, Array.Empty<object>())!;
System\Runtime\Serialization\ReflectionReader.cs (3)
491object newGenericDict = ci.Invoke(Array.Empty<object>()); 509object newCollection = ci.Invoke(Array.Empty<object>()); 530int arraySize = ((Array)resultCollectionObject).Length;
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (3)
40context.IncrementArrayCount(xmlWriter, (Array)obj); 44Array array = (Array)obj;
System\Runtime\Serialization\ScopedKnownTypes.cs (1)
24Array.Resize<DataContractDictionary>(ref dataContractDictionaries, dataContractDictionaries.Length * 2);
System\Runtime\Serialization\XmlDataContract.cs (1)
378o = ctor.Invoke(Array.Empty<object>());
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (2)
629s_getArrayLengthMethod = typeof(Array).GetProperty("Length")!.GetMethod; 771return GetDefaultValueMethod.MakeGenericMethod(type).Invoke(null, Array.Empty<object>());
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
461Array.Copy(array, newArray, array.Length); 472Array.Copy(array, newArray, size);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
415internal void IncrementArrayCount(XmlWriterDelegator xmlWriter, Array array)
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
461return Array.Empty<byte>(); 480return Array.Empty<byte>();
System\Xml\ArrayHelper.cs (2)
56Array.Copy(arrays![i], 0, newArray, offset, arrays[i].Length); 59Array.Copy(array, 0, newArray, offset, totalRead - offset);
System\Xml\XmlBaseReader.cs (7)
275Array.Copy(_elementNodes, newElementNodes, _depth); 309Array.Copy(_attributeNodes, newAttributeNodes, attributeIndex); 1452Array.Copy(_trailChars!, 0, chars, charCount, _trailCharCount); 1484Array.Copy(chars, charCount, _trailChars, 0, _trailCharCount); 2642Array.Sort(_indices, 0, _attributeCount, this); 2866Array.Copy(_attributes, newAttributes, _attributeCount); 2904Array.Copy(_namespaces, newNamespaces, _nsCount);
System\Xml\XmlBaseWriter.cs (6)
673Array.Copy(_elements, newElementNodes, _depth); 1152else if (value is Array) 1154WriteValue((Array)value); 1794private void WriteValue(Array array) 2083Array.Copy(_attributes, newAttributes, _attributeCount); 2177Array.Copy(_namespaces, newNamespaces, _nsCount);
System\Xml\XmlBinaryReader.cs (1)
1225private static void CheckArray(Array array, int offset, int count)
System\Xml\XmlBinaryReaderSession.cs (2)
48Array.Copy(_strings, newStrings, _strings.Length); 121Array.Clear(_strings);
System\Xml\XmlBinaryWriter.cs (1)
1275private static void CheckArray(Array array, int offset, int count)
System\Xml\XmlBinaryWriterSession.cs (2)
117Array.Clear(_list); 248Array.Copy(_array, newArray, _array.Length);
System\Xml\XmlBufferReader.cs (2)
36private static readonly XmlBufferReader s_empty = new XmlBufferReader(Array.Empty<byte>()); 109_buffer = Array.Empty<byte>();
System\Xml\XmlCanonicalWriter.cs (5)
156Array.Copy(_scopes, newScopes, _depth); 666Array.Copy(_attributes, newAttributes, _attributeCount); 684Array.Copy(_xmlnsAttributes, newXmlnsAttributes, _xmlnsAttributeCount); 732Array.Copy(_xmlnsAttributes, xmlnsAttributeIndex, _xmlnsAttributes, xmlnsAttributeIndex + 1, _xmlnsAttributeCount - xmlnsAttributeIndex); 882Array.Sort(indices, this);
System\Xml\XmlDictionary.cs (1)
52Array.Resize(ref _strings, newSize);
System\Xml\XmlDictionaryReader.cs (3)
949buffer = Array.Empty<byte>(); 969buffer = Array.Empty<byte>(); 1005private static void CheckArray(Array array, int offset, int count)
System\Xml\XmlDictionaryWriter.cs (1)
436private static void CheckArray(Array array, int offset, int count)
System.Private.Reflection.Execution (12)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.MappingTables.cs (2)
426int binarySearchIndex = Array.BinarySearch(Data, new FunctionPointerOffsetPair(functionPointer, 0)); 606Array.Sort(functionPointerToOffsetInInvokeMap.Data);
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Runtime.cs (2)
93names = Array.Empty<string>(); 94values = Array.Empty<object>();
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
268return typeof(Array) == type;
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (7)
26return Array.Empty<T>(); 28Array.Resize(ref _items, _count); 37Array.Copy(_items, destination, _count); 44Array.Resize(ref _items, 2 * _count + 1); 77Array.Copy(newItems, offset, _items, _count, length); 86Array.Copy(newItems._items, 0, _items, _count, newItems.Count); 109Array.Resize(ref _items, newCount);
System.Private.StackTraceMetadata (2)
Internal\StackTraceMetadata\StackTraceMetadata.cs (2)
489Array.Sort(_stacktraceDatas); 504int index = Array.BinarySearch(_stacktraceDatas, new StackTraceData() { Rva = rva });
System.Private.TypeLoader (15)
Internal\Runtime\TypeLoader\MethodTable.Runtime.cs (1)
18return MethodTable.Of<Array>();
Internal\Runtime\TypeLoader\TypeBuilder.cs (2)
339method.SetGenericDictionary(new GenericMethodDictionary(Array.Empty<GenericDictionaryCell>())); 556return Array.Empty<RuntimeTypeHandle>();
Internal\Runtime\TypeLoader\TypeLoaderTypeSystemContext.cs (1)
116return (DefType)ResolveRuntimeTypeHandle(typeof(Array).TypeHandle);
Internal\TypeSystem\RuntimeNoMetadataType.cs (1)
43genericParameters = Array.Empty<TypeDesc>();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.Primitives.cs (1)
28Array.Resize(ref _buffer, 2 * _buffer.Length);
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (7)
26return Array.Empty<T>(); 28Array.Resize(ref _items, _count); 37Array.Copy(_items, destination, _count); 44Array.Resize(ref _items, 2 * _count + 1); 77Array.Copy(newItems, offset, _items, _count, length); 86Array.Copy(newItems._items, 0, _items, _count, newItems.Count); 109Array.Resize(ref _items, newCount);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
66public static EmbeddedSignatureData[] EmbeddedSignatureMismatchPermittedFlag = Array.Empty<EmbeddedSignatureData>();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeDesc.Interfaces.cs (1)
35DefType[] computedInterfaces = algorithm != null ? algorithm.ComputeRuntimeInterfaces(this) : Array.Empty<DefType>();
System.Private.Uri (3)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
183Array.Clear(toReturn, 0, pos); 247Array.Clear(toReturn, 0, _pos);
System\Uri.cs (1)
929segments = Array.Empty<string>();
System.Private.Windows.Core (17)
System\Collections\Generic\ArrayBuilder.cs (1)
61Array.Resize(ref _items, newCapacity);
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (3)
499public static bool TryWriteArray(Stream stream, Array array) 503static bool Write(Stream stream, Array array) 690case Array arrayValue:
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
391/// Tries to get this object as an <see cref="Array"/> of primitive types.
Windows\Win32\System\Variant\VARIANT.cs (12)
255private static Array? ToArray(SAFEARRAY* psa, VARENUM vt) 270Array array = CreateArrayFromSafeArray(psa, arrayType); 447private static void TransposeArray(SAFEARRAY* psa, Array array, VARENUM arrayType) 459static void StackTransposeArray(SAFEARRAY* psa, Array array, VARENUM arrayType) 467static void HeapTransposeArray(SAFEARRAY* psa, Array array, VARENUM arrayType) 475static void InternalTransposeArray(SAFEARRAY* psa, Array array, VARENUM arrayType, Span<int> indices, Span<int> lower, Span<int> upper) 512private static void SetArrayValue(SAFEARRAY* psa, Array array, Span<int> indices, Span<int> lowerBounds, VARENUM arrayType) 514static void SetValue<T>(Array array, T value, Span<int> indices, Span<int> lowerBounds) 629private static Array CreateArrayFromSafeArray(SAFEARRAY* psa, VARENUM vt) 682return Array.CreateInstance(elementType, (int)psa->GetBounds().cElements); 697return Array.CreateInstance(elementType, lengths, bounds); 875private static Span<T> GetSpan<T>(Array array)
System.Private.Windows.Core.TestUtilities (2)
XUnit\CommonMemberDataAttribute.cs (1)
18: this(memberType, memberName, Array.Empty<object>()) { }
XUnit\SkipOnArchitectureAttribute.cs (1)
37return Array.Empty<KeyValuePair<string, string>>();
System.Private.Xml (212)
_generated\0\RegexGenerator.g.cs (2)
2571Array.Resize(ref stack, (pos + 0) * 2); 2598Array.Resize(ref stack, (pos + 1) * 2);
System\Xml\Base64Decoder.cs (1)
84internal override void SetNextOutputBuffer(Array buffer, int index, int count)
System\Xml\BinaryXml\XmlBinaryReader.cs (11)
1902System.Array.Copy(symtable, n, symNum); 1918System.Array.Copy(qnametable, n, qnameNum); 1962Array.Clear(_symbolTables.symtable, 1, _symbolTables.symtable.Length - 1); 1963Array.Clear(_symbolTables.qnametable); 2011System.Array.Copy(data, mark, newdata, 0, cbKeep); 2016System.Array.Copy(data, mark, data, 0, cbKeep); 2414System.Array.Copy(_elementStack, n, _elementStack.Length); 2423System.Array.Copy(_attributes, n, _attrCount); 2736Array.Clear(_attrHashTbl, 0, tblSize); 4140Array.Copy(_data, _tokDataPos, data, 0, _tokLen); 4320Array.Copy(_data, _tokDataPos, data, 0, _tokLen);
System\Xml\BinHexDecoder.cs (3)
88internal override void SetNextOutputBuffer(Array buffer, int index, int count) 110return Array.Empty<byte>(); 126Array.Resize(ref bytes, bytesDecoded);
System\Xml\BitStack.cs (1)
95Array.Copy(_bitStack, bitStackNew, len);
System\Xml\Core\IncrementalReadDecoders.cs (3)
15internal abstract void SetNextOutputBuffer(Array array, int offset, int len); 29internal override void SetNextOutputBuffer(Array array, int offset, int len) { } 109internal override void SetNextOutputBuffer(Array buffer, int index, int count)
System\Xml\Core\XmlEncodedRawTextWriter.cs (1)
1697Array.Copy(_textContentMarks, newTextContentMarks, _textContentMarks.Length);
System\Xml\Core\XmlEventCache.cs (1)
571Array.Copy(buffer, index, bufferNew, 0, count);
System\Xml\Core\XmlSubtreeReader.cs (2)
1308Array.Copy(_nsAttributes, newNsAttrs, index); 1580private static void CheckBuffer(Array buffer, int index, int count)
System\Xml\Core\XmlTextReaderImpl.cs (8)
4519Array.Copy(_nodes, _index + 1, nameSortedAttributes, 0, _attrCount); 4520Array.Sort<object>(nameSortedAttributes, DtdDefaultAttributeInfoToNodeDataComparer.Instance); 5024Array.Copy(_nodes, _index + 1, _attrDuplSortingArray, 0, _attrCount); 5025Array.Sort(_attrDuplSortingArray, 0, _attrCount); 7658Array.Copy(_nodes, newNodes, _nodes.Length); 8121Array.Copy(_parsingStatesStack, newParsingStateStack, _parsingStatesStack.Length); 8153private int IncrementalRead(Array array, int index, int count) 9220if (Array.BinarySearch<object>(nameSortedNodeData, defAttrInfo, DtdDefaultAttributeInfoToNodeDataComparer.Instance) >= 0)
System\Xml\Core\XmlTextWriter.cs (3)
147Array.Fill(result, DefaultIndentChar); 1525Array.Copy(_nsStack, newStack, nsIndex); 1786if (_top > 0) Array.Copy(_stack, na, _top + 1);
System\Xml\Core\XmlWellFormedWriter.cs (3)
472Array.Copy(_elemScopeStack, newStack, top); 1752Array.Copy(_nsStack, newStack, top); 2098Array.Copy(_attrStack, newStack, top);
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
282Array.Copy(_elemScopeStack, newStack, top);
System\Xml\Core\XmlWellFormedWriterHelpers.cs (1)
524Array.Copy(_items, newItems, newItemIndex);
System\Xml\Core\XsdCachingReader.cs (2)
663Array.Copy(_attributeEvents, newAttributeEvents, _attributeEvents.Length); 682Array.Copy(_contentEvents, newContentEvents, _contentEvents.Length);
System\Xml\Core\XsdValidatingReader.cs (1)
2316Array.Copy(_attributePSVINodes, newPSVINodes, _attributePSVINodes.Length);
System\Xml\Dom\DocumentSchemaValidator.cs (1)
544Array.Copy(_nodeSequenceToValidate, newNodeSequence, _nodeSequenceToValidate.Length);
System\Xml\Dom\XmlAttributeCollection.cs (1)
269void ICollection.CopyTo(Array array, int index)
System\Xml\HWStack.cs (1)
40System.Array.Copy(_stack, newstack, _used);
System\Xml\Schema\BitSet.cs (1)
245Array.Copy(_bits, newBits, _bits.Length);
System\Xml\Schema\ConstraintStruct.cs (9)
246_dim = ((Array)obj!).Length; 286_dstruct.Dvalue[i] = Convert.ToDecimal(((Array)_ovalue!).GetValue(i), NumberFormatInfo.InvariantInfo); 355Array? arr1 = this.Value as System.Array; 370Array? arr2 = other.Value as System.Array; 461if (_ks[i].Value is Array arr) 473for (int j = 0; j < ((Array)_ks[i].Value!).Length; j++) 475_hashcode += ((Array)_ks[i].Value!).GetValue(j)!.GetHashCode();
System\Xml\Schema\ContentValidator.cs (2)
1985Array.Copy(rposInfo.rangeCounters, newRPosInfo.rangeCounters, rposInfo.rangeCounters.Length); 2009Array.Copy(rposInfo.rangeCounters, newRPosInfo.rangeCounters, rposInfo.rangeCounters.Length);
System\Xml\Schema\DataTypeImplementation.cs (10)
154int i = Array.BinarySearch(s_xdrTypes, name, null); 160int i = Array.BinarySearch(s_xsdTypes, name, null); 950System.Array arr1 = (System.Array)value1; 951System.Array arr2 = (System.Array)value2; 1029Array valuesToCheck = (valueToCheck as Array)!; 1137Array array = Array.CreateInstanceFromArrayType(arrayType, values.Count);
System\Xml\Schema\DtdParser.cs (1)
1434Array.Copy(_condSectionEntityIds, tmp, _condSectionEntityIds.Length);
System\Xml\Schema\DtdParserAsync.cs (1)
1056Array.Copy(_condSectionEntityIds, tmp, _condSectionEntityIds.Length);
System\Xml\Schema\FacetChecker.cs (6)
1628Array values = (value as Array)!; 1673Array values = (value as Array)!; 1682Array enumValue = (enumeration[i] as Array)!;
System\Xml\Schema\XmlSchemaCollection.cs (1)
227void ICollection.CopyTo(Array array, int index)
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
189public void CopyTo(Array array, int arrayIndex) 242public void CopyTo(Array array, int arrayIndex)
System\Xml\Schema\XmlSchemaValidator.cs (3)
938return Array.Empty<XmlSchemaParticle>(); 963return Array.Empty<XmlSchemaParticle>(); 1006return Array.Empty<XmlSchemaAttribute>();
System\Xml\Schema\XsdBuilder.cs (2)
2270builder._markup = Array.Empty<XmlNode>(); 2294builder._markup = Array.Empty<XmlNode>();
System\Xml\Serialization\CodeGenerator.cs (2)
459if (arrayType == typeof(Array)) 462Call(typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) })!);
System\Xml\Serialization\CodeIdentifiers.cs (2)
176Array array = Array.CreateInstance(type, _list.Count);
System\Xml\Serialization\Compilation.cs (1)
625return _methods[mapping.Key!].readMethod!.Invoke(reader, Array.Empty<object>());
System\Xml\Serialization\Mappings.cs (3)
402Array.Copy(_elements, _sortedElements, _elements.Length); 744Array.Sort(elements, new AccessorComparer()); 774Array.Copy(_elements, _sortedElements, _elements.Length);
System\Xml\Serialization\NameTable.cs (3)
98internal Array ToArray(Type type) 100Array a = Array.CreateInstance(type, _table.Count);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (11)
545Array a; 546if (collection is Array currentArray && currentArray.Length == collectionMember.Count) 552a = Array.CreateInstanceFromArrayType(collectionType, collectionMember.Count); 1321obj = ci.Invoke(Array.Empty<object>()); 1997Array arrayValue = Array.CreateInstance(member.Mapping.TypeDesc!.Type!.GetElementType()!, vals.Length); 2041var currentArray = (Array?)GetMemberValue(o, memberInfo); 2052var newArray = Array.CreateInstance(memberType.GetElementType()!, length + 1); 2055Array.Copy(currentArray, newArray, length);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (6)
144if (choiceSource == null || ((Array)choiceSource).Length < ((Array)o).Length) 162var choiceSource = ((Array?)choiceSources)?.GetValue(i); 178var choiceSource = ((Array?)choiceSources)?.GetValue(c++); 664shouldPersist = (bool)m.CheckShouldPersistMethodInfo!.Invoke(o, Array.Empty<object>())!; 694shouldPersist = (bool)m.CheckShouldPersistMethodInfo!.Invoke(o, Array.Empty<object>())!;
System\Xml\Serialization\SchemaImporter.cs (1)
115mapping.Members = Array.Empty<MemberMapping>();
System\Xml\Serialization\SoapReflectionImporter.cs (2)
230mapping.Members = Array.Empty<MemberMapping>(); 709accessor.Elements = Array.Empty<ElementAccessor>();
System\Xml\Serialization\Types.cs (4)
532AddNonXsdPrimitive(typeof(char), "char", UrtTypes.Namespace, "Char", new XmlQualifiedName("unsignedShort", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.IgnoreDefault); 533AddNonXsdPrimitive(typeof(TimeSpan), "TimeSpan", UrtTypes.Namespace, "TimeSpan", new XmlQualifiedName("duration", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 534AddNonXsdPrimitive(typeof(DateTimeOffset), "dateTimeOffset", UrtTypes.Namespace, "DateTimeOffset", new XmlQualifiedName("dateTime", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 695AddNonXsdPrimitive(type, dataTypeName, ns, formatterName, baseTypeName, Array.Empty<XmlSchemaFacet>(), flags);
System\Xml\Serialization\Xmlcustomformatter.cs (1)
492return Array.Empty<byte>();
System\Xml\Serialization\XmlReflectionImporter.cs (1)
641mapping.Members = Array.Empty<MemberMapping>();
System\Xml\Serialization\XmlSchemaImporter.cs (6)
777Array.Sort(member.Elements, new ElementComparer()); 1139member.Elements = Array.Empty<ElementAccessor>(); 1468member.Elements = Array.Empty<ElementAccessor>(); 1499member.Elements = Array.Empty<ElementAccessor>(); 1554xmlnsMapping.Members = Array.Empty<MemberMapping>(); 1809Array.Sort(choice, new ElementComparer());
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (1)
92Array.Copy(a, b, index);
System\Xml\Serialization\XmlSerializationILGen.cs (7)
135Array.Copy(a, b, index); 164Array.Empty<string>(), 287Array.Empty<string>(), 299Array.Empty<string>(), 499Array.Empty<string>(), 519Array.Empty<string>(), 545Array.Empty<string>(),
System\Xml\Serialization\XmlSerializationReader.cs (22)
1061dimensions = Array.Empty<string>(); 1372protected Array EnsureArrayIndex(Array? a, int index, Type elementType) 1374if (a == null) return Array.CreateInstance(elementType, 32); 1376Array b = Array.CreateInstance(elementType, a.Length * 2); 1377Array.Copy(a, b, index); 1382protected Array? ShrinkArray(Array? a, int length, Type elementType, bool isNullable) 1387return Array.CreateInstance(elementType, 0); 1390Array b = Array.CreateInstance(elementType, length); 1391Array.Copy(a, b, length); 1562Array array = (Array)f.Source!; 1581private Array? ReadArray(string? typeName, string? typeNs) 1680return Array.CreateInstance(elementType, 0); 1687Array? array = null; 2801item = typeof(Array).FullName!; 2818Writer.Write($"{RaCodeGen.GetReflectionVariable(typeof(Array).FullName!, "0")}[ci , i]"); 3177Writer.Write(typeof(Array).FullName); 3485members = Array.Empty<Member>();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (7)
228ilg.BeginMethod(typeof(void), "InitIDs", Type.EmptyTypes, Array.Empty<string>(), 343ilg.BeginMethod(typeof(void), "InitCallbacks", Type.EmptyTypes, Array.Empty<string>(), 393Array.Empty<string>(), 636Array.Empty<string>(), 965Array.Empty<string>(), 2638new Type[] { typeof(Array), typeof(int), typeof(Type), typeof(bool) } 2720new Type[] { typeof(Array), typeof(int), typeof(Type) }
System\Xml\Serialization\XmlSerializationWriter.cs (5)
1311Array a = (Array)o; 1736WriteDefaultIndexerInit(typeof(IList), typeof(Array).FullName!, false, false); 2028string typeFullName = arrayTypeDesc.IsCollection ? arrayTypeDesc.CSharpName : typeof(Array).FullName!; 2145typeName = typeof(Array).FullName!;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
89ilg.BeginMethod(typeof(void), "InitCallbacks", Type.EmptyTypes, Array.Empty<string>(),
System\Xml\Serialization\XmlSerializer.cs (3)
583if (mappings == null || mappings.Length == 0) return Array.Empty<XmlSerializer>(); 613return Array.Empty<XmlSerializer>(); 760return Array.Empty<XmlSerializer>();
System\Xml\Serialization\XmlSerializerNamespaces.cs (1)
86return Array.Empty<XmlQualifiedName>();
System\Xml\XmlNamespacemanager.cs (1)
161Array.Copy(_nsdecls, newNsdecls, _nsdecls.Length);
System\Xml\XPath\Internal\XPathMultyIterator.cs (1)
55Array.Copy(arr, firstNotEmpty, arr, firstNotEmpty + 1, pos - firstNotEmpty);
System\Xml\XPath\Internal\XPathParser.cs (1)
780private static readonly XPathResultType[] s_temparray1 = Array.Empty<XPathResultType>();
System\Xml\Xsl\IlGen\XmlILModule.cs (5)
45asmBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.Transparent, Array.Empty<object>())); 99asmBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.Transparent, Array.Empty<object>())); 139Array.Copy(paramTypes, 0, paramTypesNew, 1, paramTypes.Length); 154methBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.StepThrough, Array.Empty<object>())); 155methBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.NonUserCode, Array.Empty<object>()));
System\Xml\Xsl\ListBase.cs (1)
125void System.Collections.ICollection.CopyTo(Array array, int index)
System\Xml\Xsl\QIL\QilList.cs (3)
125Array.Copy(_members, membersNew, _count); 130Array.Copy(_members, index, _members, index + 1, _count - index); 146Array.Copy(_members, index + 1, _members, index, _count - index);
System\Xml\Xsl\Runtime\EarlyBoundInfo.cs (1)
48public object CreateObject() { return _constrInfo.Invoke(Array.Empty<object>()); }
System\Xml\Xsl\Runtime\XmlAttributeCache.cs (1)
362Array.Copy(_arrAttrs, arrNew, _numEntries);
System\Xml\Xsl\Runtime\XmlNavigatorStack.cs (1)
41Array.Copy(stkOld, _stkNav, _sp);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
942Array.Copy(_indexes, indexesNew, _indexes.Length);
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (6)
158void System.Collections.ICollection.CopyTo(Array array, int index) 163Array.Copy(_items, 0, array, index, _size); 335int index = Array.IndexOf(_items, value); 382public void SortByKeys(Array keys) 388Array.Sort(keys, _items, 0, _size); 611Array.Sort(sortArray, 0, Count, comparer);
System\Xml\Xsl\Runtime\XmlSortKeyAccumulator.cs (2)
84Array.Copy(_keys, keysNew, _keys.Length); 107public Array Keys
System\Xml\Xsl\XmlIlGenerator.cs (3)
132MethodInfo methExec = _module.DefineMethod("Execute", typeof(void), Type.EmptyTypes, Array.Empty<string>(), XmlILMethodAttributes.NonUser); 138MethodInfo methRoot = _module.DefineMethod("Root", typeof(void), Type.EmptyTypes, Array.Empty<string>(), methAttrs); 261methInfo = _module!.DefineMethod(ndRef.DebugName!.ToString(), typReturn, Type.EmptyTypes, Array.Empty<string>(), methAttrs);
System\Xml\Xsl\XmlQueryType.cs (1)
445Array.Sort(sa);
System\Xml\Xsl\Xslt\Compiler.cs (1)
352Array.Sort<CompilerError>(errors, new CompilerErrorComparer(_moduleOrder));
System\Xml\Xsl\Xslt\CompilerScopeManager.cs (1)
140Array.Copy(_records, newRecords, _lastRecord);
System\Xml\Xsl\Xslt\OutputScopeManager.cs (1)
73Array.Copy(_records, newRecords, _lastRecord);
System\Xml\Xsl\Xslt\XsltInput.cs (2)
92Array.Copy(_records, tmp, _records.Length); 709return GetAttributes(Array.Empty<XsltAttribute>());
System\Xml\Xsl\XsltOld\BuilderInfo.cs (1)
76Array.Copy(this.TextInfo, newArr, this.TextInfoCount);
System\Xml\Xsl\XsltOld\UseAttributeSetsAction.cs (2)
34_useAttributeSets = Array.Empty<XmlQualifiedName>(); 58_useAttributeSets = Array.Empty<XmlQualifiedName>();
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
744public FuncCurrent() : base(0, 0, XPathResultType.NodeSet, Array.Empty<XPathResultType>()) { }
System.Private.Xml.Linq (6)
src\runtime\src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (2)
33Debug.Assert(Array.MaxLength == ArrayMaxLength); 79Array.Resize(ref arr, newLength);
System\Xml\Linq\Extensions.cs (1)
302Array.Sort(items, 0, count, XNode.DocumentOrderComparer);
System\Xml\Linq\XAttribute.cs (1)
30return Array.Empty<XAttribute>();
System\Xml\Linq\XElement.cs (1)
45return Array.Empty<XElement>();
System\Xml\Linq\XObject.cs (1)
101Array.Resize(ref a, i * 2);
System.Reflection.Context (12)
System\Reflection\Context\CollectionServices.cs (3)
12return Array.Empty<T>(); 45Array typedArray = Array.CreateInstance(arrayType, list.Count);
System\Reflection\Context\Delegation\DelegatingType.cs (1)
190public override Array GetEnumValues()
System\Reflection\Context\Projection\ProjectingType.cs (6)
248Array.Copy(methods, 0, members, i, methods.Length); i += methods.Length; 249Array.Copy(constructors, 0, members, i, constructors.Length); i += constructors.Length; 250Array.Copy(properties, 0, members, i, properties.Length); i += properties.Length; 251Array.Copy(events, 0, members, i, events.Length); i += events.Length; 252Array.Copy(fields, 0, members, i, fields.Length); i += fields.Length; 253Array.Copy(nestedTypes, 0, members, i, nestedTypes.Length); i += nestedTypes.Length;
System\Reflection\Context\Projection\Projector.cs (1)
20return Array.AsReadOnly(projected);
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (1)
123Array.Copy(index, args, index.Length);
System.Reflection.Emit (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (3)
239Array.Copy(_iaLowerBound, iaTemp, _rank); 241Array.Copy(_iaUpperBound, iaTemp, _rank); 370public override Type BaseType => typeof(Array);
System\Reflection\Emit\MethodBuilderImpl.cs (1)
289return Array.Empty<ParameterInfo>();
System\Reflection\Emit\SignatureHelper.cs (1)
42parameters ??= Array.Empty<ParameterInfo>();
System.Reflection.Metadata (10)
System\Reflection\Internal\Utilities\EnumerableExtensions.cs (1)
34Array.Sort(map, (int left, int right) =>
System\Reflection\Internal\Utilities\MemoryBlock.cs (1)
827Array.Sort(ptrTable, (int a, int b) => { return unsortedReferences[a - 1].CompareTo(unsortedReferences[b - 1]); });
System\Reflection\Internal\Utilities\PathUtilities.cs (1)
20(Array.IndexOf(Path.GetInvalidFileNameChars(), '*') >= 0 ? DirectorySeparatorChar : AltDirectorySeparatorChar).ToString();
System\Reflection\Metadata\BlobBuilder.cs (2)
290Array.Copy(chunk._buffer, bufferStart - chunkStart, result, bufferStart - start, bytesToCopy); 597Array.Clear(_buffer, start, byteCount);
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (1)
573/// Encodes <c>null</c> literal of type <see cref="Array"/>.
System\Reflection\Metadata\Internal\BlobHeap.cs (1)
100return Array.Empty<byte>();
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
22byte[]? publicKeyOrToken = !publicKeyOrTokenHandle.IsNil ? GetBlobBytes(publicKeyOrTokenHandle) : Array.Empty<byte>();
System\Reflection\Metadata\Signatures\SignatureTypeCode.cs (2)
110/// Represents a generalized <see cref="System.Array"/> in signatures. 145/// Represents a single dimensional <see cref="System.Array"/> with 0 lower bound.
System.Reflection.MetadataLoadContext (87)
System\Reflection\MetadataLoadContext.Loading.cs (1)
33byte[] pkt = defNameData.PublicKeyToken ?? Array.Empty<byte>();
System\Reflection\Runtime\BindingFlagSupport\QueriedMemberList.cs (4)
167Array.Resize(ref _members, _totalCount); 168Array.Resize(ref _allFlagsThatMustMatch, _totalCount); 182Array.Resize(ref _members, count + Grow); 183Array.Resize(ref _allFlagsThatMustMatch, count + Grow);
System\Reflection\Runtime\BindingFlagSupport\QueryResult.cs (1)
67return Array.Empty<M>();
System\Reflection\Runtime\General\ListBuilder.cs (4)
41return Array.Empty<T>(); 45Array.Resize(ref _items, _count); 65Array.Copy(_items!, 0, array, index, _count); 94Array.Resize(ref _items, newCapacity);
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
26_loadedModules = (assemblyFileCount == 0) ? Array.Empty<RoModule>() : new RoModule[assemblyFileCount];
System\Reflection\TypeLoading\Constructors\RoSyntheticConstructor.cs (1)
34public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>();
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (6)
32CustomAttributeTypedArgument[] clones = count != 0 ? new CustomAttributeTypedArgument[count] : Array.Empty<CustomAttributeTypedArgument>(); 37return Array.AsReadOnly(clones); 46CustomAttributeNamedArgument[] clones = count != 0 ? new CustomAttributeNamedArgument[count] : Array.Empty<CustomAttributeNamedArgument>(); 51return Array.AsReadOnly(clones); 66CustomAttributeTypedArgument[] cads = count != 0 ? new CustomAttributeTypedArgument[count] : Array.Empty<CustomAttributeTypedArgument>(); 71return new CustomAttributeTypedArgument(type, Array.AsReadOnly(cads));
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (4)
109CustomAttributeTypedArgument[] cats = count != 0 ? new CustomAttributeTypedArgument[count] : Array.Empty<CustomAttributeTypedArgument>(); 114return Array.AsReadOnly(cats); 140CustomAttributeNamedArgument[] cans = count != 0 ? new CustomAttributeNamedArgument[count] : Array.Empty<CustomAttributeNamedArgument>(); 145return Array.AsReadOnly(cans);
System\Reflection\TypeLoading\CustomAttributes\RoPseudoCustomAttributeData.cs (2)
28_lazyFixedArguments = fixedArguments ?? Array.Empty<CustomAttributeTypedArgument>(); 29_lazyNamedArguments = namedArguments ?? Array.Empty<CustomAttributeNamedArgument>();
System\Reflection\TypeLoading\General\Ecma\MetadataTable.cs (1)
62Array.Copy(_table, skip, newArray, 0, newArray.Length);
System\Reflection\TypeLoading\General\Helpers.cs (3)
24return Array.Empty<T>(); 29Array.Copy(sourceArray: original, sourceIndex: 0, destinationArray: copy, destinationIndex: 0, length: original.Length); 57return Array.AsReadOnly(list.ToArray());
System\Reflection\TypeLoading\General\RoAssemblyName.cs (1)
43PublicKeyToken = publicKeyToken ?? Array.Empty<byte>();
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodBody.cs (4)
37return Array.Empty<LocalVariableInfo>(); 41LocalVariableInfo[] lvis = count != 0 ? new LocalVariableInfo[count] : Array.Empty<LocalVariableInfo>(); 54return Array.AsReadOnly(lvis); 64ExceptionHandlingClause[] clauses = count != 0 ? new ExceptionHandlingClause[count] : Array.Empty<ExceptionHandlingClause>();
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
36return Array.Empty<RoType>();
System\Reflection\TypeLoading\Methods\RoConstructedGenericMethod.cs (1)
47internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>();
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
128internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>();
System\Reflection\TypeLoading\Methods\RoSyntheticMethod.cs (4)
37public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>(); 89protected sealed override RoType[] ComputeGenericArgumentsOrParameters() => Array.Empty<RoType>(); 90internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>(); 91internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>();
System\Reflection\TypeLoading\Modules\RoResourceModule.cs (3)
44public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>(); 47public sealed override FieldInfo[] GetFields(BindingFlags bindingFlags) => Array.Empty<FieldInfo>(); 48public sealed override MethodInfo[] GetMethods(BindingFlags bindingFlags) => Array.Empty<MethodInfo>();
System\Reflection\TypeLoading\Parameters\RoThinMethodParameter.cs (1)
25public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>();
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
141return Array.Empty<RoPropertyIndexParameter>();
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (1)
88return Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericParameterType.cs (1)
45return Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\RoByRefType.cs (3)
33internal sealed override IEnumerable<RoType> ComputeDirectlyImplementedInterfaces() => Array.Empty<RoType>(); 35internal sealed override IEnumerable<ConstructorInfo> GetConstructorsCore(NameFilter? filter) => Array.Empty<ConstructorInfo>(); 36internal sealed override IEnumerable<MethodInfo> GetMethodsCore(NameFilter? filter, Type reflectedType) => Array.Empty<MethodInfo>();
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (1)
121internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (1)
228internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (11)
175public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>(); 184internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>(); 185internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>(); 186protected internal sealed override RoType[] GetGenericArgumentsNoCopy() => Array.Empty<RoType>(); 199internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => Array.Empty<EventInfo>(); 200internal sealed override IEnumerable<FieldInfo> GetFieldsCore(NameFilter? filter, Type reflectedType) => Array.Empty<FieldInfo>(); 201internal sealed override IEnumerable<PropertyInfo> GetPropertiesCore(NameFilter? filter, Type reflectedType) => Array.Empty<PropertyInfo>(); 202internal sealed override IEnumerable<RoType> GetNestedTypesCore(NameFilter? filter) => Array.Empty<RoType>(); 208internal sealed override IEnumerable<RoType> ComputeDirectlyImplementedInterfaces() => Array.Empty<RoType>(); 210internal sealed override IEnumerable<ConstructorInfo> GetConstructorsCore(NameFilter? filter) => Array.Empty<ConstructorInfo>(); 211internal sealed override IEnumerable<MethodInfo> GetMethodsCore(NameFilter? filter, Type reflectedType) => Array.Empty<MethodInfo>();
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (9)
45internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>(); 46internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>(); 47protected internal sealed override RoType[] GetGenericArgumentsNoCopy() => Array.Empty<RoType>(); 88internal sealed override IEnumerable<ConstructorInfo> GetConstructorsCore(NameFilter? filter) => Array.Empty<ConstructorInfo>(); 89internal sealed override IEnumerable<MethodInfo> GetMethodsCore(NameFilter? filter, Type reflectedType) => Array.Empty<MethodInfo>(); 90internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => Array.Empty<EventInfo>(); 91internal sealed override IEnumerable<FieldInfo> GetFieldsCore(NameFilter? filter, Type reflectedType) => Array.Empty<FieldInfo>(); 92internal sealed override IEnumerable<PropertyInfo> GetPropertiesCore(NameFilter? filter, Type reflectedType) => Array.Empty<PropertyInfo>(); 93internal sealed override IEnumerable<RoType> GetNestedTypesCore(NameFilter? filter) => Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\RoHasElementType.cs (7)
54public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>(); 63internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>(); 64internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>(); 82internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => Array.Empty<EventInfo>(); 83internal sealed override IEnumerable<FieldInfo> GetFieldsCore(NameFilter? filter, Type reflectedType) => Array.Empty<FieldInfo>(); 84internal sealed override IEnumerable<PropertyInfo> GetPropertiesCore(NameFilter? filter, Type reflectedType) => Array.Empty<PropertyInfo>(); 85internal sealed override IEnumerable<RoType> GetNestedTypesCore(NameFilter? filter) => Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\RoPointerType.cs (3)
33internal sealed override IEnumerable<RoType> ComputeDirectlyImplementedInterfaces() => Array.Empty<RoType>(); 35internal sealed override IEnumerable<ConstructorInfo> GetConstructorsCore(NameFilter? filter) => Array.Empty<ConstructorInfo>(); 36internal sealed override IEnumerable<MethodInfo> GetMethodsCore(NameFilter? filter, Type reflectedType) => Array.Empty<MethodInfo>();
System\Reflection\TypeLoading\Types\RoType.cs (5)
234return Array.Empty<RoType>(); 291return defaultMemberName != null ? GetMember(defaultMemberName) : Array.Empty<MemberInfo>(); 328public sealed override Array GetEnumValues() => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection); 353public override Array GetEnumValuesAsUnderlyingType() 360Array ret = Type.GetTypeCode(GetEnumUnderlyingType()) switch
System.Resources.Extensions (8)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
353Array.Sort(nameHashes, namePositions);
System\Resources\Extensions\BinaryFormat\Deserializer\ArrayRecordDeserializer.cs (5)
15private readonly Array _arrayOfClassRecords; 16private readonly Array _arrayOfT; 45Object = _arrayOfT = Array.CreateInstance(_elementType, _lengths); 103internal static Array GetArraySinglePrimitive(SerializationRecord record) => record switch 124internal static Array? GetRectangularArrayOfPrimitives(ArrayRecord arrayRecord, BinaryFormattedObject.ITypeResolver typeResolver)
System\Resources\Extensions\BinaryFormat\Deserializer\ArrayUpdater.cs (2)
21Array array = (Array)objects[ObjectId];
System.Resources.Writer (1)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
353Array.Sort(nameHashes, namePositions);
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
40[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Array))]
System.Runtime.InteropServices (2)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (2)
79implementation.SetCustomAttribute(new CustomAttributeBuilder(typeof(DynamicInterfaceCastableImplementationAttribute).GetConstructor(Array.Empty<Type>())!, Array.Empty<object>()));
System.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.cs (2)
220object[] argsToPass = System.Array.Empty<object>(); 225argsToPass = new object[] { args ?? System.Array.Empty<string>() };
System.Runtime.Numerics (8)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
183Array.Clear(toReturn, 0, pos); 247Array.Clear(toReturn, 0, _pos);
System\Number.BigInteger.cs (3)
679if (tmpCharCount > Array.MaxLength) 689Debug.Assert(digits < Array.MaxLength); 833Debug.Assert(BigInteger.MaxLength * digitRatio + 1 < Array.MaxLength); // won't overflow
System\Numerics\BigInteger.cs (3)
38internal static int MaxLength => Array.MaxLength / BigIntegerCalculator.BitsPerLimb; 1536return Array.Empty<byte>(); 1635array = Array.Empty<byte>();
System.Runtime.Serialization.Formatters (12)
System\Runtime\Serialization\FormatterServices.cs (3)
31return Array.Empty<FieldInfo>(); 78Array.Copy(typeMembers, membersTemp, typeMembers.Length); 157Array.Resize(ref parentTypes, Math.Max(parentTypeCount * 2, 12));
System\Runtime\Serialization\ObjectManager.cs (9)
119Array.Copy(_objects, temp, _objects.Length); 297Array.Copy(fieldsTemp, temp, fieldsTemp.Length); 343if (!(holder.ObjectValue is Array) && holder.ObjectValue != null) 383((Array)(holder.ObjectValue)).SetValue(fixupObj, arrayIndex); 499Debug.Assert(holder.ObjectValue is Array); 506((Array)(holder.ObjectValue)).SetValue(tempObjectHolder.ObjectValue, ((int[])fixupInfo)); 1435Array.Copy(_values, temp, _count); 1519Array.Copy(_values, temp, _count); 1562Array.Copy(_values, temp, _count);
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (1)
35private static readonly XmlQualifiedName[] s_emptyTypeNameArray = Array.Empty<XmlQualifiedName>();
System.Security.AccessControl (5)
System\Security\AccessControl\ACL.cs (1)
167void ICollection.CopyTo(Array array, int index)
System\Security\Policy\Evidence.cs (4)
32public void CopyTo(Array array, int index) { } 33public IEnumerator GetAssemblyEnumerator() { return Array.Empty<object>().GetEnumerator(); } 35public IEnumerator GetEnumerator() { return Array.Empty<object>().GetEnumerator(); } 36public IEnumerator GetHostEnumerator() { return Array.Empty<object>().GetEnumerator(); }
System.Security.Cryptography (95)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
27return Array.Empty<byte>();
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDeriveKeyMaterial.cs (2)
176Array.Resize(ref keyMaterial, Math.Min(keySize, keyMaterial.Length)); 267Array.Reverse(result);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (2)
107Array.Resize(ref propertyValue, numBytesNeeded); 331Array.Clear(allocated!, 0, numBytesNeeded);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.SignVerify.cs (1)
43Array.Resize(ref signature, numBytesNeeded);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (1)
405Array.Clear(ecParameters.D!);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (2)
1513Array.Resize(ref publicKey, bytesWritten); 1636Array.Copy(privateKey, temp, bytesWritten);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
133void ICollection.CopyTo(Array array, int index)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (4)
44if (Array.IndexOf(validOids, spki.Algorithm.Algorithm) < 0) 73if (Array.IndexOf(validOids, spki.Algorithm.Algorithm) < 0) 115if (Array.IndexOf(validOids, privateKeyInfo.PrivateKeyAlgorithm.Algorithm) < 0) 141if (Array.IndexOf(validOids, privateKeyInfo.PrivateKeyAlgorithm.Algorithm) < 0)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
367pwdTmpBytes = Array.Empty<byte>(); 995byte[] tmpEnd = decryptor.TransformFinalBlock(Array.Empty<byte>(), 0, 0);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
124authSafe = new ReadOnlyCollection<Pkcs12SafeContents>(Array.Empty<Pkcs12SafeContents>());
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (3)
404foreach (AttributeAsn attr in bag.BagAttributes ?? Array.Empty<AttributeAsn>()) 426Array.Resize(ref bag.BagAttributes, oldCount + 1); 493Array.Resize(ref bag.BagAttributes, attrLen);
System\Security\Cryptography\Aes.cs (1)
160/// <paramref name="ciphertext"/> has a <see cref="Array.Length"/> that does not correspond
System\Security\Cryptography\AsnEncodedData.cs (1)
16_rawData = Array.Empty<byte>();
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
66void ICollection.CopyTo(Array array, int index)
System\Security\Cryptography\Base64Transforms.cs (3)
67return Array.Empty<byte>(); 193return Array.Empty<byte>(); 220return Array.Empty<byte>();
System\Security\Cryptography\BasicSymmetricCipher.cs (1)
49Array.Clear(IV);
System\Security\Cryptography\CapiHelper.DSA.Windows.cs (2)
50Array.Reverse(signature, 0, 20); 51Array.Reverse(signature, 20, 20);
System\Security\Cryptography\CapiHelper.Shared.cs (2)
149Array.Reverse(reversedBytes); 260Array.Reverse(data);
System\Security\Cryptography\CapiHelper.Windows.cs (5)
819Array.Reverse(dataToBeDecrypted); 899Array.Reverse(pbEncryptedKey); 1177Array.Reverse(signature); 1199Array.Reverse(signature); 1356Array.Reverse(key_out);
System\Security\Cryptography\CngKey.Export.cs (1)
32Array.Resize(ref buffer, numBytesNeeded);
System\Security\Cryptography\CryptoConfig.cs (3)
319Array.Copy(names, algorithmNames, algorithmNames.Length); 447args ??= Array.Empty<object>(); 526Array.Copy(names, oidNames, oidNames.Length);
System\Security\Cryptography\CryptoStream.cs (6)
179Array.Clear(_inputBuffer); 181Array.Clear(_outputBuffer); 784Array.Clear(_inputBuffer); 786Array.Clear(_outputBuffer); 831Array.Clear(_inputBuffer); 836Array.Clear(_outputBuffer);
System\Security\Cryptography\DSA.cs (1)
909Array.Clear(array, 0, data.Length);
System\Security\Cryptography\EccKeyFormatHelper.cs (1)
392Array.Reverse(primeOrPoly);
System\Security\Cryptography\ECDiffieHellmanPublicKey.cs (1)
15_keyBlob = Array.Empty<byte>();
System\Security\Cryptography\ECDsa.cs (2)
1032Array.Clear(array, 0, data.Length); 1229Array.Clear(array, 0, data.Length);
System\Security\Cryptography\HashAlgorithm.cs (2)
225outputBytes = Array.Empty<byte>(); 257Array.Clear(array, 0, source.Length);
System\Security\Cryptography\HashProviderCng.cs (1)
139Array.Clear(key);
System\Security\Cryptography\IncrementalHash.cs (2)
79/// the <see cref="Array.Length"/> value of <paramref name="data"/>. 83/// <paramref name="data"/>.<see cref="Array.Length"/> - <paramref name="offset"/>.
System\Security\Cryptography\KeyedHashAlgorithm.cs (1)
42Array.Clear(KeyValue);
System\Security\Cryptography\OidCollection.cs (3)
30Array.Resize(ref _oids, count == 0 ? 4 : count * 2); 72void ICollection.CopyTo(Array array, int index) 99Array.Copy(_oids, 0, array, index, _count);
System\Security\Cryptography\PasswordDeriveBytes.cs (5)
179Array.Clear(_baseValue); 184Array.Clear(_extra); 189Array.Clear(_password); 194Array.Clear(_salt); 210_hash.TransformFinalBlock(Array.Empty<byte>(), 0, 0);
System\Security\Cryptography\PinAndClear.cs (1)
24Array.Clear(_data);
System\Security\Cryptography\RandomNumberGenerator.cs (2)
67Array.Clear(array, 0, data.Length); 93Array.Clear(array, 0, data.Length);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (3)
167Array.Clear(_buffer); 169Array.Clear(_salt); 273Array.Clear(_buffer);
System\Security\Cryptography\RSA.cs (2)
326Array.Clear(array, 0, data.Length); 1391Array.Resize(ref result, written);
System\Security\Cryptography\SymmetricAlgorithm.cs (4)
202Array.Clear(KeyValue); 207Array.Clear(IVValue); 535Array.Resize(ref decryptBuffer, written); 1136Array.Resize(ref decryptBuffer, written);
System\Security\Cryptography\TripleDESCng.Windows.cs (2)
250Array.Copy(key, newkey, 16); 251Array.Copy(key, 0, newkey, 16, 8);
System\Security\Cryptography\TripleDesImplementation.cs (2)
72Array.Copy(rgbKey, newkey, 16); 73Array.Copy(rgbKey, 0, newkey, 16, 8);
System\Security\Cryptography\UniversalCryptoDecryptor.cs (2)
170Array.Clear(heldoverCipher); 181Array.Clear(_heldoverCipher);
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (1)
199Array.Reverse(serialNumber);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
515X501Attribute[] attributes = Array.Empty<X501Attribute>();
System\Security\Cryptography\X509Certificates\ChainPal.Windows.GetChainStatusInformation.cs (1)
14return Array.Empty<X509ChainStatus>();
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (1)
25_decoded = Array.Empty<AccessDescriptionAsn>();
System\Security\Cryptography\X509Certificates\X509Certificate.cs (2)
559Array.Reverse(serialNumber); 630Array.Reverse(serialNumber);
System\Security\Cryptography\X509Certificates\X509Chain.cs (1)
57return _lazyChainStatus ??= (_pal == null ? Array.Empty<X509ChainStatus>() : _pal.ChainStatus!);
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (2)
16_elements = Array.Empty<X509ChainElement>(); 58void ICollection.CopyTo(Array array, int index)
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
77void ICollection.CopyTo(Array array, int index)
System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs (1)
365Array.Resize(ref propertyValue, numBytesNeeded);
System\Security\Cryptography\XmlKeyHelper.cs (1)
45return Array.Empty<byte>();
System.Security.Cryptography.Pkcs (45)
Internal\Cryptography\Pal\AnyOS\AsnHelpers.cs (1)
57byte[] parameters = Array.Empty<byte>();
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
35data.EncryptedContentInfo.EncryptedContent?.ToArray() ?? Array.Empty<byte>());
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (3)
77Array.Clear(cek, 0, cek.Length); 105Array.Empty<byte>()); 154return Array.Empty<byte>();
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (1)
49Array.Clear(cek, 0, cek.Length);
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
123Array.Reverse(serial);
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decrypt.cs (1)
69Array.Clear(cek, 0, cek.Length);
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (1)
72return Array.Empty<byte>();
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (1)
54Array.Clear(encodedContent, 0, encodedContent.Length);
Internal\Cryptography\PkcsHelpers.cs (6)
79Array.Resize(ref a, size); 94arr = Array.Empty<T>(); 102Array.Copy(arr, tmp, idx); 107Array.Copy(arr, idx + 1, tmp, idx, tmp.Length - idx); 246Array.Reverse(ba); 253Array.Reverse(serialBytes);
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
27return Array.Empty<byte>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
133void ICollection.CopyTo(Array array, int index)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (4)
44if (Array.IndexOf(validOids, spki.Algorithm.Algorithm) < 0) 73if (Array.IndexOf(validOids, spki.Algorithm.Algorithm) < 0) 115if (Array.IndexOf(validOids, privateKeyInfo.PrivateKeyAlgorithm.Algorithm) < 0) 141if (Array.IndexOf(validOids, privateKeyInfo.PrivateKeyAlgorithm.Algorithm) < 0)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
367pwdTmpBytes = Array.Empty<byte>(); 995byte[] tmpEnd = decryptor.TransformFinalBlock(Array.Empty<byte>(), 0, 0);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
124authSafe = new ReadOnlyCollection<Pkcs12SafeContents>(Array.Empty<Pkcs12SafeContents>());
System\Security\Cryptography\Pkcs\AlgorithmIdentifier.cs (1)
33public byte[] Parameters { get; set; } = Array.Empty<byte>();
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
82public void CopyTo(Array array, int index)
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
355Array.Reverse(serial);
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (1)
19: this(new ContentInfo(Array.Empty<byte>()))
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (2)
15_recipientInfos = Array.Empty<RecipientInfo>(); 57public void CopyTo(Array array, int index)
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (2)
498Array.Reverse(serialNumber); 547Array.Reverse(serialNumber);
System\Security\Cryptography\Pkcs\SignedCms.cs (6)
342DigestAlgorithms = Array.Empty<AlgorithmIdentifierAsn>(), 343SignerInfos = Array.Empty<SignerInfoAsn>(), 361Array.Resize(ref _signedData.SignerInfos, newIdx + 1); 504Array.Resize(ref _signedData.DigestAlgorithms, curLength + 1); 576Array.Resize(ref _signedData.CertificateSet, existingLength + newCerts.Count); 681Array.Resize(ref _signedData.CertificateSet, existingLength + 1);
System\Security\Cryptography\Pkcs\SignedCms.CtorOverloads.cs (1)
11new ContentInfo(Oids.Pkcs7DataOid.CopyOid(), Array.Empty<byte>());
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
209Array.Resize(ref mySigner.UnsignedAttributes, newAttributeIdx + 1); 219Array.Resize(ref modifiedAttr.AttrValues, newIndex + 1); 337Array.Resize(ref mySigner.UnsignedAttributes, newExtensionIdx + 1);
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (2)
18_signerInfos = Array.Empty<SignerInfo>(); 55public void CopyTo(Array array, int index)
System.Security.Cryptography.ProtectedData (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
27return Array.Empty<byte>();
System.Security.Cryptography.Xml (9)
System\Security\Cryptography\Xml\CanonicalXml.cs (1)
108hash.TransformFinalBlock(Array.Empty<byte>(), 0, 0);
System\Security\Cryptography\Xml\CanonicalXmlNodeList.cs (1)
94public void CopyTo(Array array, int index)
System\Security\Cryptography\Xml\EncryptionPropertyCollection.cs (1)
148public void CopyTo(Array array, int index)
System\Security\Cryptography\Xml\ExcCanonicalXml.cs (1)
61hash.TransformFinalBlock(Array.Empty<byte>(), 0, 0);
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (1)
170Array.Resize(ref bytes, bytes.Length + 1);
System\Security\Cryptography\Xml\ReferenceList.cs (1)
109public void CopyTo(Array array, int index)
System\Security\Cryptography\Xml\SignedInfo.cs (1)
39public void CopyTo(Array array, int index)
System\Security\Cryptography\Xml\SymmetricKeyWrap.cs (2)
58Array.Reverse(temp2); 90Array.Reverse(temp2);
System.Security.Permissions (6)
System\Security\Permissions\KeyContainerPermissionAccessEntryCollection.cs (1)
21public void CopyTo(Array array, int index) { throw new NotImplementedException(); }
System\Security\Permissions\PrincipalPermission.cs (3)
193Array.Copy(_idArray, idrolesArray, _idArray.Length); 194Array.Copy(operand._idArray, 0, idrolesArray, _idArray.Length, operand._idArray.Length); 294_idArray = Array.Empty<IDRole>();
System\Security\Policy\ApplicationTrustCollection.cs (1)
27void ICollection.CopyTo(Array array, int index) { }
System\Xaml\Permissions\XamlLoadPermission.cs (1)
26public IList<XamlAccessLevel> AllowedAccess { get; } = new ReadOnlyCollection<XamlAccessLevel>(Array.Empty<XamlAccessLevel>());
System.Security.Principal.Windows (1)
System\Security\Principal\WindowsIdentity.cs (1)
159Array.Resize(ref upnBytes, upnBytes.Length & ushort.MaxValue);
System.ServiceModel.Http (3)
System\ServiceModel\Channels\HttpResponseMessageExtensionMethods.cs (1)
29httpResponseMessage.Content = new ByteArrayContent(Array.Empty<byte>());
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (2)
1155Task task = _webSocket.SendAsync(new ArraySegment<byte>(Array.Empty<byte>(), 0, 0), _outgoingMessageType, true, timeoutHelper.GetCancellationToken()); 1181await _webSocket.SendAsync(new ArraySegment<byte>(Array.Empty<byte>(), 0, 0), _outgoingMessageType, true, cancelToken);
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnection.cs (1)
21private static readonly byte[] s_zeroBuffer = Array.Empty<byte>();
System.ServiceModel.Primitives (63)
Internals\System\Runtime\BufferedOutputStream.cs (1)
129Array.Copy(_chunks, newChunks, _chunks.Length);
Internals\System\Runtime\IOThreadTimer.cs (1)
454Array.Copy(this.timers, timers, this.timers.Length);
Internals\System\Runtime\SynchronizedPool.cs (1)
205Array.Copy(localPending, newPending, localPending.Length);
Internals\System\Xml\XmlMtomReader.cs (1)
1413Array.Resize(ref _valueBuffer, byteCount);
System\ServiceModel\Channels\BufferedReadStream.cs (1)
173Array.Copy(_buffer, _readPos, array, offset, readBytes);
System\ServiceModel\Channels\BufferedWriteStream.cs (3)
91Array.Copy(_buffer, 0, shadowBuffer, 0, _writePos); 254Array.Copy(array, offset, _buffer, _writePos, bytesToWrite); 390Array.Copy(array, offset, _buffer, _writePos, count);
System\ServiceModel\Channels\Message.cs (1)
2262Array.Copy(_entries, 1, _entries, 0, _entries.Length - 1);
System\ServiceModel\Channels\MessageHeaders.cs (3)
113Array.Copy(headers._headers, _headers, _headerCount); 1429Array.Copy(_headers, headerIndex, _headers, headerIndex + 1, _headerCount - headerIndex); 1603Array.Copy(_headers, headerIndex + 1, _headers, headerIndex, _headerCount - headerIndex - 1);
System\ServiceModel\Channels\MessageProperties.cs (1)
797Array.Copy(_properties, newProperties, _properties.Length);
System\ServiceModel\Channels\MtomMessageEncoder.cs (1)
258Array.Copy(supported, enc, supported.Length);
System\ServiceModel\Channels\SequenceRangeCollection.cs (7)
66lowerBound = Array.BinarySearch(sortedRanges, new SequenceRange(range.Lower), s_upperComparer); 81Array.Copy(sortedRanges, returnedRanges, sortedRanges.Length); 107upperBound = Array.BinarySearch(sortedRanges, new SequenceRange(range.Upper), s_lowerComparer); 124Array.Copy(sortedRanges, 0, returnedRanges, 1, sortedRanges.Length); 142Array.Copy(sortedRanges, returnedRanges, lowerBound); 144Array.Copy(sortedRanges, upperBound + 1, returnedRanges, lowerBound + 1, sortedRanges.Length - upperBound - 1); 214int searchValue = Array.BinarySearch(_ranges, searchFor, s_lowerComparer);
System\ServiceModel\Channels\ServiceChannel.cs (4)
1209Call(message.Headers.Action, true, operation, new object[] { message }, Array.Empty<object>(), timeout); 1225EndCall(MessageHeaders.WildcardAction, Array.Empty<object>(), result); 1236return (Message)Call(message.Headers.Action, false, operation, new object[] { message }, Array.Empty<object>(), timeout); 1252return (Message)EndCall(MessageHeaders.WildcardAction, Array.Empty<object>(), result);
System\ServiceModel\Channels\ServiceChannelProxy.cs (5)
184object result = channel.EndCall(operation.Action, Array.Empty<object>(), asyncResult); 224channel.EndCall(operation.Action, Array.Empty<object>(), asyncResult); 277return (bool)_tcsInfo.TrySetCanceledMethod.Invoke(_tcsInstance, Array.Empty<object>()); 295TrySetCanceledMethod = GenericType.GetRuntimeMethod("TrySetCanceled", Array.Empty<Type>()); 479Array.Copy(_methodDatas, newMethodDatas, _methodDatas.Length);
System\ServiceModel\Channels\TextMessageEncoder.cs (1)
58Array.Copy(supported, enc, supported.Length);
System\ServiceModel\ClientBase.cs (3)
939Array.Copy(args, inArgs, args.Length); 952Array.Copy(args, inArgs, args.Length); 964Array.Copy(retArgs, args, args.Length);
System\ServiceModel\Description\TypeLoader.cs (1)
1603Array.Sort(partDescriptions, CompareMessagePartDescriptions);
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
665Array.Copy(members, newMembers, newMembers.Length);
System\ServiceModel\Dispatcher\ClientRuntime.cs (1)
389return Array.Empty<T>();
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
186Array.Sort(temp,
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (7)
830value = Array.Empty<bool>(); 843value = Array.Empty<DateTime>(); 856value = Array.Empty<Decimal>(); 869value = Array.Empty<Int32>(); 882value = Array.Empty<Int64>(); 895value = Array.Empty<Single>(); 908value = Array.Empty<Double>();
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (4)
66_outParams = Array.Empty<ParameterInfo>(); 291outs = Array.Empty<object>(); 299return Array.Empty<object>(); 310ins = Array.Empty<object>();
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (5)
532Array tArray = Array.CreateInstance(headerDescription.Type, messageHeaderOfTArray.Length); 598object[] messageHeaderOfTArray = (object[])Array.CreateInstance(TypedHeaderManager.GetMessageHeaderType(headerDescription.Type), messageHeaderOfTAttributes.Count); 599Array headerValues = (Array)headerValue;
System\ServiceModel\EmptyArray.cs (2)
16return Array.Empty<T>(); 28return Array.Empty<T>();
System\ServiceModel\Security\ReceiveSecurityHeaderElementManager.cs (1)
62Array.Copy(_elements, 0, newElements, 0, Count);
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (1)
63Array.Copy(_tokens, 0, newTokens, 0, _tokenCount);
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
186s_emptyTokenAuthenticators = Array.AsReadOnly(new SupportingTokenAuthenticatorSpecification[0]);
System\ServiceModel\Security\SignatureConfirmations.cs (1)
34Array.Copy(_confirmations, 0, newConfirmations, 0, Count);
System\ServiceModel\ServiceChannelManager.cs (1)
334return Array.Empty<IChannel>();
System\ServiceModel\SynchronizedCollection.cs (1)
237void ICollection.CopyTo(Array array, int index)
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
175void ICollection.CopyTo(Array array, int index)
System.ServiceProcess.ServiceController (4)
System\ServiceProcess\ServiceController.cs (4)
194_dependentServices = Array.Empty<ServiceController>(); 308_servicesDependedOn = Array.Empty<ServiceController>(); 369_servicesDependedOn = Array.Empty<ServiceController>(); 863Start(Array.Empty<string>());
System.Speech (26)
AudioFormat\SpeechAudioFormatInfo.cs (3)
40_formatSpecificData = Array.Empty<byte>(); 157Array.Copy(abWfx, wfxTemp, abWfx.Length); 158Array.Copy(FormatSpecificData(), 0, wfxTemp, abWfx.Length, wfx.cbSize);
Internal\ObjectToken\RegistryDataKey.cs (1)
332byte[] unusedBytes = Array.Empty<byte>();
Internal\PhonemeConverter.cs (2)
90int index = Array.BinarySearch<PhoneId>(_phoneMap._phoneIds, phoneIdRef, phoneIdRef); 125if (Array.BinarySearch(s_updIds, id) < 0)
Internal\SapiInterop\SapiRecoInterop.cs (1)
434string[] words = phrase.Split(Array.Empty<char>(), StringSplitOptions.RemoveEmptyEntries);
Internal\SapiInterop\SpAudioStreamWrapper.cs (3)
36Array.Copy(_wfx, wfxTemp, _wfx.Length); 37Array.Copy(audioFormat.FormatSpecificData(), 0, wfxTemp, _wfx.Length, wfx.cbSize); 111Array.Copy(_wfx, wfxTemp, 16);
Internal\SrgsCompiler\AppDomainGrammarProxy.cs (1)
31Type[] types = Array.Empty<Type>();
Internal\Synthesis\AudioBase.cs (1)
227Array.Copy(wfx, wfxTemp, 16);
Internal\Synthesis\ConvertTextFrag.cs (1)
118int posSayAsFormat = Array.BinarySearch<string?>(s_asSayAsFormat, interpretAs);
Internal\Synthesis\SSmlParser.cs (6)
242int iElement = Array.BinarySearch<string>(s_elementsName, reader.LocalName); 393int pos = Array.BinarySearch<string>(s_breakStrength, sStrength); 513int pos = Array.BinarySearch<string>(s_emphasisNames, sLevel); 1643int pos = Array.BinarySearch<string>(attributeValues, attribute); 1663int pos = Array.BinarySearch<string>(attributeValues, attribute); 2089int pos = Array.BinarySearch<string>(s_genderNames, sGender);
Internal\Synthesis\TTSVoice.cs (1)
91if (_waveFormat == null || !Array.Equals(targetWaveFormat, _waveFormat))
Recognition\Grammar.cs (1)
854return Array.Empty<NameValuePair>();
Recognition\SrgsGrammar\SrgsElement.cs (1)
58return Array.Empty<SrgsElement>();
Result\RecognitionResult.cs (2)
344Array.Copy(sapiResultBlob, (int)_header.ulRetainedOffset, _sapiAudioBlob, 0, (int)_header.ulRetainedDataSize); 348Array.Copy(sapiResultBlob, (int)_header.ulPhraseAltOffset, _sapiAlternatesBlob, 0, (int)_header.ulPhraseAltDataSize);
Result\RecognizedAudio.cs (1)
103Array.Copy(_rawAudioData, startPosition, audioBytes, 0, length);
Synthesis\TTSEngine\TTSEngineTypes.cs (1)
241return state1.Action == state2.Action && state1.LangId == state2.LangId && state1.Emphasis == state2.Emphasis && state1.Duration == state2.Duration && state1.SayAs == state2.SayAs && state1.Prosody == state2.Prosody && Array.Equals(state1.Phoneme, state2.Phoneme);
System.Text.Json (21)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (3)
25private static int ArrayMaxLength => Array.MaxLength; 44? Array.Empty<byte>() 84_bytes = Array.Empty<byte>();
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
147Array.Resize(ref adjacencyRow, index + 1);
System\Text\Json\BitStack.cs (1)
171Array.Resize(ref _array, nextDouble);
System\Text\Json\Document\JsonDocument.MetadataDb.cs (2)
243if ((uint)newCapacity > Array.MaxLength) newCapacity = Array.MaxLength;
System\Text\Json\JsonEncodedText.cs (2)
70return new JsonEncodedText(Array.Empty<byte>()); 117return new JsonEncodedText(Array.Empty<byte>());
System\Text\Json\Nodes\JsonArray.IList.cs (2)
189/// Copies the entire <see cref="Array"/> to a compatible one-dimensional array, 193/// The one-dimensional <see cref="Array"/> that is the destination of the elements copied
System\Text\Json\Serialization\Converters\FSharp\FSharpUnionConverter.cs (2)
182return (T)caseInfo.Constructor(Array.Empty<object>()); 362? (T)caseInfo.Constructor(Array.Empty<object>())
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
704Array.Sort(indices);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (3)
451Debug.Assert(Array.IndexOf(types, root) < 0); 460Array.Copy(sortedTypesWithRoot, sourceIndex: 1, sortedTypes, destinationIndex: 0, sortedTypes.Length); 493return relatedTypes ?? (ICollection<Type>)Array.Empty<Type>();
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
1120Array.Empty<JsonDerivedType>(), 1131Array.Empty<JsonUnionCaseInfo>(),
System\Text\Json\Serialization\ReadStack.cs (1)
98Array.Resize(ref _stack, 2 * _stack.Length);
System\Text\Json\Serialization\WriteStack.cs (1)
140Array.Resize(ref _stack, 2 * _stack.Length);
System.Text.Json.SourceGeneration (6)
Helpers\RoslynExtensions.cs (1)
233return Array.Empty<INamedTypeSymbol>();
JsonSourceGenerator.Parser.cs (1)
1195return parentTypes ?? (ICollection<ITypeSymbol>)Array.Empty<ITypeSymbol>();
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
18public static ImmutableEquatableArray<T> Empty { get; } = new ImmutableEquatableArray<T>(Array.Empty<T>());
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
183Array.Clear(toReturn, 0, pos); 247Array.Clear(toReturn, 0, _pos);
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
147Array.Resize(ref adjacencyRow, index + 1);
System.Text.RegularExpressions (36)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
183Array.Clear(toReturn, 0, pos); 247Array.Clear(toReturn, 0, _pos);
System\Text\RegularExpressions\CaptureCollection.cs (5)
147public void CopyTo(Array array, int arrayIndex) 161/// Copies the elements of the collection to an <see cref="Array" />, starting at a particular 162/// <see cref="Array" /> index. 165/// The one-dimensional <see cref="Array" /> that is the destination of the elements copied from 166/// the collection. The <see cref="Array" /> must have zero-based indexing.
System\Text\RegularExpressions\GroupCollection.cs (1)
201public void CopyTo(Array array, int arrayIndex)
System\Text\RegularExpressions\Match.cs (1)
269Array.Copy(oldmatches, newmatches, capcount * 2);
System\Text\RegularExpressions\MatchCollection.cs (5)
266public void CopyTo(Array array, int arrayIndex) 273/// Copies the elements of the collection to an <see cref="Array" />, starting at a particular 274/// <see cref="Array" /> index. 277/// The one-dimensional <see cref="Array" /> that is the destination of the elements copied from 278/// the collection. The <see cref="Array" /> must have zero-based indexing.
System\Text\RegularExpressions\Regex.cs (1)
488Array.Sort(result);
System\Text\RegularExpressions\Regex.Match.cs (5)
540/// <see cref="MatchCollection.Count"/> and <see cref="MatchCollection.CopyTo(System.Array, int)"/> causes the collection to 585/// <see cref="MatchCollection.Count"/> and <see cref="MatchCollection.CopyTo(System.Array, int)"/> causes the collection to 634/// such as <see cref="MatchCollection.Count"/> and <see cref="MatchCollection.CopyTo(System.Array, int)"/> causes the 667/// <see cref="MatchCollection.Count"/> and <see cref="MatchCollection.CopyTo(System.Array, int)"/> causes the collection to 716/// <see cref="MatchCollection.Count"/> and <see cref="MatchCollection.CopyTo(System.Array, int)"/> causes the collection to
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (1)
112_ilg!.Emit(OpCodes.Call, typeof(Regex).GetConstructor(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance, null, Type.EmptyTypes, Array.Empty<ParameterModifier>())!);
System\Text\RegularExpressions\RegexCompiler.cs (1)
104private static MethodInfo ArrayResizeMethod => field ??= typeof(Array).GetMethod("Resize")!.MakeGenericMethod(typeof(int));
System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
306public string[] LeadingPrefixes { get; } = Array.Empty<string>();
System\Text\RegularExpressions\RegexParser.cs (1)
2051Array.Sort(_capnumlist);
System\Text\RegularExpressions\RegexRunner.cs (3)
478Array.Copy(runtrack, 0, newtrack, runtrack.Length, runtrack.Length); 491Array.Copy(runstack, 0, newstack, runstack.Length, runstack.Length); 503Array.Copy(runcrawl, 0, newcrawl, runcrawl.Length, runcrawl.Length);
System\Text\RegularExpressions\Symbolic\BitVector.cs (1)
55Array.Fill(bv._blocks, ulong.MaxValue);
System\Text\RegularExpressions\Symbolic\SparseIntMap.cs (1)
80Array.Resize(ref _sparse, newLength);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (2)
100/// Implements a version of <see cref="Array.Resize"/> that is guaranteed to not publish an array before values 113Array.Copy(array, newArray, array.Length);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (4)
1015Array.Fill(initialRegisters.CaptureStarts, -1); 1016Array.Fill(initialRegisters.CaptureEnds, -1); 1162Array.Copy(other.CaptureStarts, CaptureStarts, CaptureStarts.Length); 1163Array.Copy(other.CaptureEnds, CaptureEnds, CaptureEnds.Length);
System\Text\StructListBuilder.cs (1)
67Array.Copy(array, newArray, _count);
System.Text.RegularExpressions.Generator (6)
RegexGenerator.Emitter.cs (1)
538Array.Sort(chars);
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
183Array.Clear(toReturn, 0, pos); 247Array.Clear(toReturn, 0, _pos);
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
306public string[] LeadingPrefixes { get; } = Array.Empty<string>();
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (1)
2051Array.Sort(_capnumlist);
UpgradeToGeneratedRegexCodeFixer.cs (1)
336_ => Array.Empty<SyntaxNode>(),
System.Threading.Channels (3)
src\runtime\src\libraries\Common\src\System\Collections\Generic\Deque.cs (3)
127Array.Copy(_array, newArray, _size); 131Array.Copy(_array, _head, newArray, 0, _array.Length - _head); 132Array.Copy(_array, 0, newArray, _array.Length - _head, _tail);
System.Threading.RateLimiting (4)
src\runtime\src\libraries\Common\src\System\Collections\Generic\Deque.cs (3)
127Array.Copy(_array, newArray, _size); 131Array.Copy(_array, _head, newArray, 0, _array.Length - _head); 132Array.Copy(_array, 0, newArray, _array.Length - _head, _tail);
System\Threading\RateLimiting\NoopLimiter.cs (1)
46public override IEnumerable<string> MetadataNames => Array.Empty<string>();
System.Threading.Tasks.Dataflow (7)
Blocks\BatchBlock.cs (2)
797Array.Clear(postponedTemp, 0, postponedTemp.Length); // clear out the temp array so as not to hold onto messages too long 911Array.Clear(postponedTemp, 0, postponedTemp.Length); // clear out the temp array so as not to hold onto messages too long
Internal\ImmutableArray.cs (5)
53Array.Copy(_array, newArray, _array.Length); 64int index = Array.IndexOf(_array, item); 72Array.Copy(_array, newArray, index); 73Array.Copy(_array, index + 1, newArray, index, _array.Length - index - 1); 83public bool Contains(T item) { return Array.IndexOf(_array, item) >= 0; }
System.Transactions.Local (5)
System\Transactions\Oletx\OletxEnlistment.cs (2)
104Array.Copy(prepareInfoByteArray, _proxyPrepareInfoByteArray, prepareInfoLength); 279Array.Copy(prepareInfo, _proxyPrepareInfoByteArray, arrayLength);
System\Transactions\Transaction.cs (1)
466Array.Copy(internalPromotedToken, toReturn, toReturn.Length);
System\Transactions\TransactionInterop.cs (1)
512Array.Copy(propagationToken, propagationTokenCopy, propagationToken.Length);
System\Transactions\TransactionState.cs (1)
492Array.Copy(
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (1)
466Array.Copy(handleTypes, 0, newTypes, 0, handleTypeCount);
System.Windows.Extensions (2)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
27return Array.Empty<byte>();
System\Media\SoundPlayer.cs (1)
512Array.Copy(_streamData, newData, _streamData.Length);
System.Windows.Forms (163)
misc\CollectionHelper.cs (1)
14public static void HashtableCopyTo<TKey, TValue>(this IDictionary<TKey, TValue> source, Array target, int index)
System\Drawing\Design\UITypeEditor.cs (1)
40[typeof(Array)] = $"System.ComponentModel.Design.ArrayEditor, {Assemblies.SystemDesign}",
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (2)
159index = Array.IndexOf(ctrls, owner); 171index = Array.IndexOf(ctrls, owner);
System\Windows\Forms\ActiveX\AxHost.AxPerPropertyBrowsingEnum.cs (1)
116Array.Copy(_names, 0, strings, 0, itemCount);
System\Windows\Forms\ActiveX\AxHost.cs (2)
3825o = ((Array)o).GetValue(0)!; 3836o = ((Array)o).GetValue(0)!;
System\Windows\Forms\ActiveX\AxHost.StateConverter.cs (1)
46return Array.Empty<byte>();
System\Windows\Forms\AutoCompleteStringCollection.cs (2)
119/// Copies the <see cref="AutoCompleteStringCollection"/> values to a one-dimensional <see cref="Array"/> instance at the 197void ICollection.CopyTo(Array array, int index) => ((ICollection)_data).CopyTo(array, index);
System\Windows\Forms\BaseCollection.cs (1)
21public void CopyTo(Array ar, int index) => List!.CopyTo(ar, index);
System\Windows\Forms\ComponentModel\COM2Interop\Com2IPerPropertyBrowsingHandler.Com2IPerPropertyBrowsingEnum.cs (3)
139Array.Copy(_names, i, _names, i + 1, itemCount); 140Array.Copy(valueItems, i, valueItems, i + 1, itemCount); 146Array.Copy(_names, 0, strings, 0, itemCount);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
470(Attribute[])(_baseAttributes?.Clone() ?? Array.Empty<Attribute>()),
System\Windows\Forms\Control.cs (1)
12861return Array.Empty<Rectangle>();
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
279void ICollection.CopyTo(Array destination, int index)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
1587Array.Copy(clonedColumns, finalClonedColumns, clonedColumnsCount); 1591Array.Sort(finalClonedColumns, DataGridViewColumnCollection.ColumnCollectionOrderComparer);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
44void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellConverter.cs (1)
33return new InstanceDescriptor(ctor, Array.Empty<object>(), false);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyleConverter.cs (1)
41return new InstanceDescriptor(ctor, Array.Empty<object>(), false);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
59void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnConverter.cs (1)
54return new InstanceDescriptor(ctor, Array.Empty<object>(), false);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (1)
194void ICollection.CopyTo(Array destination, int index) =>
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
65void ICollection.CopyTo(Array array, int index)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowConverter.cs (1)
32return new InstanceDescriptor(ctor, Array.Empty<object>(), isComplete: false);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (1)
57void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (1)
53void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (1)
42void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
506void ICollection.CopyTo(Array dest, int index)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (2)
317void ICollection.CopyTo(Array dest, int index) 330return Array.Empty<Link>().GetEnumerator();
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedIndexCollection.cs (1)
131public void CopyTo(Array dest, int index)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (1)
136public void CopyTo(Array dest, int index)
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (3)
93index = Array.IndexOf(_innerArray, item); 131Array.Sort(_innerArray, 0, _count); 317public void CopyTo(Array destination, int index)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
282void ICollection.CopyTo(Array destination, int index)
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (1)
171public void CopyTo(Array destination, int index)
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
204public void CopyTo(Array destination, int index)
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
68return new InstanceDescriptor(ctor, Array.Empty<object>(), false);
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (3)
218void ICollection.CopyTo(Array dest, int index) 222Array.Copy(IndicesArray, 0, dest, index, Count); 235return Array.Empty<int>().GetEnumerator();
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (3)
315public void CopyTo(Array dest, int index) 324Array.Copy(ItemArray, 0, dest, index, Count); 342return Array.Empty<ListViewItem>().GetEnumerator();
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (5)
369void ICollection.CopyTo(Array dest, int index) 373Array.Copy(_owner._columnHeaders!, 0, dest, index, Count); 547Array.Copy(_owner._columnHeaders, 0, newHeaders, 0, index); 552Array.Copy(_owner._columnHeaders, index + 1, newHeaders, index, columnCount - index); 592return Array.Empty<ColumnHeader>().GetEnumerator();
System\Windows\Forms\Controls\ListView\ListView.cs (2)
3845Array.Copy(_columnHeaders!, 0, newHeaders, 0, columnCount); 3857Array.Copy(_columnHeaders, idx, _columnHeaders, idx + 1, columnCount - idx);
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (1)
256public void CopyTo(Array dest, int index)
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.IInnerList.cs (1)
23void CopyTo(Array dest, int index);
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (1)
441public void CopyTo(Array dest, int index)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (3)
294public void CopyTo(Array dest, int index) 298Array.Copy(IndicesArray, 0, dest, index, Count); 311return Array.Empty<int>().GetEnumerator();
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (3)
318public void CopyTo(Array dest, int index) 327Array.Copy(SelectedItemArray, 0, dest, index, Count); 345return Array.Empty<ListViewItem>().GetEnumerator();
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
221public void CopyTo(Array array, int index) => ((ICollection)List).CopyTo(array, index);
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
84public void CopyTo(Array dest, int index) => ((ICollection)Items).CopyTo(dest, index);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (1)
373void ICollection.CopyTo(Array dest, int index)
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (1)
101return new StandardValuesCollection(Array.Empty<object>());
System\Windows\Forms\Controls\PropertyGrid\GridItemCollection.cs (2)
19_entries = entries ?? Array.Empty<GridItem>(); 52void ICollection.CopyTo(Array dest, int index)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (9)
1545Array.Copy(tabComponents, newComponents, oldArraySize); 2146return Array.Empty<Type>(); 2151return Array.Empty<Type>(); 2170return Array.Empty<Type>(); 2490Array.Copy(_selectedObjects, 0, newObjects, 0, i); 2494Array.Copy(_selectedObjects, i + 1, newObjects, i, newObjects.Length - i); 3488index = Array.IndexOf(components, component); 3494Array.Copy(components, 0, newComponents, 0, index); 3495Array.Copy(components, index + 1, newComponents, index, components.Length - index - 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyTabCollection.cs (3)
91void ICollection.CopyTo(Array dest, int index) 100Array.Copy( 116return Array.Empty<PropertyTab>().GetEnumerator();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ArrayElementGridEntry.cs (4)
30Debug.Assert(owner is Array, "Owner is not array type!"); 31return ((Array)owner).GetValue(_index); 36Debug.Assert(owner is Array, "Owner is not array type!"); 37((Array)owner).SetValue(value, _index);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
1331var objArray = (Array)value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (18)
86Debug.Assert(component is Array, "MergePropertyDescriptor::CanResetValue called with non-array value"); 90var a = (Array)component; 180private object? GetPropertyOwnerForComponent(Array a, int i) 196Debug.Assert(component is Array, "MergePropertyDescriptor::GetValue called with non-array value"); 197return GetValue((Array)component, out _); 200public object? GetValue(Array components, out bool allEqual) 252internal object?[] GetValues(Array components) 266Debug.Assert(component is Array, "MergePropertyDescriptor::ResetValue called with non-array value"); 267var array = (Array)component; 274private void SetCollectionValues(Array a, IList listValue) 307Debug.Assert(component is Array, "MergePropertyDescriptor::SetValue called with non-array value"); 308var array = (Array)component; 325Debug.Assert(component is Array, "MergePropertyDescriptor::ShouldSerializeValue called with non-array value"); 326var array = (Array)component;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MultiMergeCollection.cs (3)
33public void CopyTo(Array array, int index) 40Array.Copy(_items, 0, array, index, _items.Length); 43public IEnumerator GetEnumerator() => _items?.GetEnumerator() ?? Array.Empty<object>().GetEnumerator();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (5)
160Array.Copy(_objects, 0, copy, 0, _objects.Length); 229if (owner is Array ownerArray) 337if (owner1 is not Array) 343if (owner1 is Array a1 && owner2 is Array a2 && a1.Length == a2.Length)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
41foreach (object target in (Array)Target)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (1)
62Array.Copy(objects, 1, restObjects, 0, objects.Length - 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
633if (PropertyDescriptor is MergePropertyDescriptor && owner is Array objArray) 805if (owner is Array array && array.Length > 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3572Array.Copy(entries, 0, newEntries, 0, parentIndex + 1); 3575Array.Copy(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (2)
78Array.Sort(currentAttributes, AttributeTypeSorter); 79Array.Sort(newAttributes, AttributeTypeSorter);
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1074return Array.Empty<TabPage>(); 1083object[] result = (object[])Array.CreateInstance(baseType, tabPageCount);
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (3)
296void ICollection.CopyTo(Array dest, int index) 300Array.Copy(_owner.GetTabPages(), 0, dest, index, Count); 309return Array.Empty<TabPage>().GetEnumerator();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1835int focusIndex = Array.IndexOf(displayedItems, item);
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1620Array.Copy(_children, 0, bigger, 0, _childCount);
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (3)
582public void CopyTo(Array dest, int index) 586Array.Copy(_owner._children, 0, dest, index, _owner._childCount); 628return Array.Empty<TreeNode>().GetEnumerator();
System\Windows\Forms\Controls\Unsupported\ContextMenu\Menu.MenuItemCollection.cs (1)
70public void CopyTo(Array dest, int index) { }
System\Windows\Forms\Controls\Unsupported\DataGrid\GridColumnStylesCollection.cs (1)
52void ICollection.CopyTo(Array array, int index) { }
System\Windows\Forms\Controls\Unsupported\DataGrid\GridTableStylesCollection.cs (1)
50void ICollection.CopyTo(Array array, int index) { }
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.StatusBarPanelCollection.cs (1)
88void ICollection.CopyTo(Array dest, int index) { }
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.ToolBarButtonCollection.cs (1)
68void ICollection.CopyTo(Array dest, int index) { }
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
525Array.Reverse(args);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (1)
595Array.Reverse(parameter);
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (1)
160void ICollection.CopyTo(Array dest, int index)
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (1)
97void ICollection.CopyTo(Array dest, int index)
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
152if (typeof(Array).IsAssignableFrom(type))
System\Windows\Forms\DataBinding\BindingContext.cs (1)
43void ICollection.CopyTo(Array ar, int index)
System\Windows\Forms\DataBinding\BindingSource.cs (1)
1423public virtual void CopyTo(Array arr, int index) => List.CopyTo(arr, index);
System\Windows\Forms\DataBinding\Command.cs (1)
95Array.Copy(s_cmds, 0, newCmds, 0, icmd);
System\Windows\Forms\DataBinding\CurrencyManager.cs (1)
154if (tempList is Array array)
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
150Array.Copy(ConstructorParamaterTypes, 0, ctorParams, 0, ctorParams.Length);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (3)
223if (typeof(Array).IsAssignableFrom(listType)) 309if (typeof(Array).IsAssignableFrom(type)) 576if (typeof(Array).IsAssignableFrom(targetType))
System\Windows\Forms\Design\EventsTab.cs (1)
127Array.Copy(attributes, 0, specifiedAttributesPlusContent, 0, attributes.Length);
System\Windows\Forms\Dialogs\MessageBox.cs (2)
93Array.Copy(t_helpInfoTable, newTable, newCount); 118Array.Copy(t_helpInfoTable, newTable, lastCount);
System\Windows\Forms\ImageIndexConverter.cs (1)
172return new StandardValuesCollection(Array.Empty<object>());
System\Windows\Forms\ImageKeyConverter.cs (1)
183return new StandardValuesCollection(Array.Empty<object>());
System\Windows\Forms\Input\CursorConverter.cs (1)
138return Array.Empty<byte>();
System\Windows\Forms\Input\InputLanguageCollection.cs (2)
20Debug.Assert(Array.IndexOf(value, null!) == -1, "Should not contain null"); 37/// Copies the <see cref="InputLanguageCollection"/> values to a one-dimensional <see cref="Array"/> instance at the
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
148public void CopyTo(Array array, int index) => ((ICollection)InnerList).CopyTo(array, index);
System\Windows\Forms\Layout\TableLayout.ContainerInfo.cs (1)
270Array.Copy(childInfo, trimmedChildInfo, trimmedChildInfo.Length);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.StyleConverter.cs (1)
33Array.Empty<object>());
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
129void ICollection.CopyTo(Array array, int startIndex) => ((ICollection)_innerList).CopyTo(array, startIndex);
System\Windows\Forms\StringSource.cs (1)
68Array.Clear(_strings, 0, _size);
System.Windows.Forms.Design (61)
System\ComponentModel\Design\ArrayEditor.cs (6)
34if (editValue is Array valueArray) 37Array.Copy(valueArray, items, items.Length); 49if (editValue is not null and not Array) 59Array newArray = Array.CreateInstance(CollectionItemType, value.Length); 60Array.Copy(value, newArray, value.Length);
System\ComponentModel\Design\ComponentDesigner.cs (3)
34public virtual ICollection AssociatedComponents => Array.Empty<IComponent>(); 211Array.Resize(ref designers, idx); 216return Array.Empty<object>();
System\ComponentModel\Design\DesignerActionList.cs (2)
29ReadOnlyCollection<MethodInfo> originalMethods = Array.AsReadOnly( 31ReadOnlyCollection<PropertyInfo> originalProperties = Array.AsReadOnly(
System\ComponentModel\Design\DesignSurface.cs (1)
90public ICollection LoadErrors => _loadErrors ?? Array.Empty<object>();
System\ComponentModel\Design\DesignSurfaceCollection.cs (1)
56void ICollection.CopyTo(Array array, int index)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
256collection.CopyTo((Array)OriginalValue, 0);
System\ComponentModel\Design\LoadedEventArgs.cs (1)
19Errors = errors ?? Array.Empty<object>();
System\ComponentModel\Design\SelectionService.cs (1)
367components ??= Array.Empty<IComponent>();
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
75_errors ??= Array.Empty<object>();
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
981objects ??= Array.Empty<object>();
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (6)
636if (array is Array arr) 954Array? array = null; 988array = Array.CreateInstance(arrayType, arrayList.Count); 999array = Array.CreateInstance(arrayType, size); 1004array = Array.CreateInstance(arrayType, arrayCreateEx.Size); 1025if (DeserializeExpression(manager, name, arrayIndexerEx.TargetObject) is Array array)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (4)
168bool isArray = typeof(Array).IsAssignableFrom(collectionType); 305if (typeof(Array).IsAssignableFrom(targetType)) 307CodeArrayCreateExpression? arrayCreate = SerializeArray(manager, targetType, (Array)originalCollection, valuesToSerialize); 386private CodeArrayCreateExpression? SerializeArray(IDesignerSerializationManager manager, Type targetType, Array array, ICollection valuesToSerialize)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
178Array.Sort(statementArray, StatementOrderComparer.s_default);
System\Drawing\Design\ColorEditor.ColorUI.cs (2)
205Array.Sort(ColorValues, StandardColorComparer.Instance); 206Array.Sort(SystemColorValues, comparer: new SystemColorComparer());
System\Drawing\Design\ToolboxItem.cs (1)
419value ??= Array.Empty<ToolboxItemFilterAttribute>();
System\Drawing\Design\ToolboxItemCollection.cs (1)
41/// Copies the <see cref="ToolboxItemCollection"/> values to a one-dimensional <see cref="Array"/> instance at the
System\Windows\Forms\Design\Behavior\AdornerCollection.cs (3)
142/// one-dimensional <see cref="Array"/> instance at the 146/// The one-dimensional <see cref="Array"/> that is the destination of the values copied from 165/// <seealso cref="Array"/>
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
976Array.Sort(_dragComponents, this);
System\Windows\Forms\Design\Behavior\GlyphCollection.cs (1)
87/// <see cref="Array"/> instance at the specified index.
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (1)
38Array.Copy(value, 0, colHeaders, 0, value.Length);
System\Windows\Forms\Design\CommandSet.cs (5)
1472SelectionService.SetSelectedComponents(Array.Empty<object>(), SelectionTypes.Replace); 1600SelectionService.SetSelectedComponents(Array.Empty<object>(), SelectionTypes.Replace); 2061else if (associatedComps.Contains(curComp) && Array.IndexOf(allComponents, parentComp) == -1) 2584primaryIndex = Array.IndexOf(selectedObjects, primary); 3192Array.Sort(selectedObjects, comp);
System\Windows\Forms\Design\ControlCommandSet.cs (1)
1000Array.Sort(selectedComponents, new ControlComparer());
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
40public new void CopyTo(Array dest, int index) => _realCollection.CopyTo(dest, index);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1475if (dataSource is not (IListSource or IList or Array))
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (1)
40if ((binding.DataSource is IListSource || binding.DataSource is IList || binding.DataSource is Array) && binding.PropertyName.Equals(propDesc.Name))
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
194void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index);
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
169return Array.IndexOf(GetFormats(), format) != -1;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
710components = Array.Empty<IComponent>();
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (2)
420Array.Copy(s_activeCursorArrays, _cursors, _cursors.Length); 421Array.Copy(s_activeSizeArray, _sizes, _sizes.Length);
System\Windows\Forms\Design\StringArrayEditor.cs (6)
23if (editValue is not Array valueArray) 29Array.Copy(valueArray, items, items.Length); 40if (editValue is Array or null && value is not null) 42Array newArray = Array.CreateInstance(CollectionItemType, value.Length); 43Array.Copy(value, newArray, value.Length);
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
174Array.Resize(ref newLines, newLines.Length - 1);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2156public new void CopyTo(Array dest, int index) => _realCollection.CopyTo(dest, index);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
114void ICollection.CopyTo(Array array, int index) => ((IList)_list).CopyTo(array, index);
System.Xaml (18)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (5)
1339Array.Copy(_entries, 0, destEntries, 0, _entries.Length); 1358public override int IndexOf(T value) => Array.IndexOf(_entries, value, 0, _count); 1365Array.Copy(_entries, index, _entries, index + 1, _count - index); 1400Array.Copy(_entries, index + 1, _entries, index, numToCopy); 1566Array.Copy(_sourceArray, start, _targetArray, _validItemCount, size);
System\Windows\Markup\ArrayExtension.cs (2)
17[MarkupExtensionReturnType(typeof(Array))] 41public ArrayExtension(Array elements)
System\Windows\Markup\ValueSerializer.cs (1)
95return Array.Empty<Type>();
System\Xaml\Parser\NodeStreamSorter.cs (3)
690Array.Copy(_sortingInfoArray, beginning, temp, 0, length1); 694Array.Copy(_sortingInfoArray, middle, _sortingInfoArray, beginning, length2); 698Array.Copy(temp, 0, _sortingInfoArray, beginning + length2, length1);
System\Xaml\Replacements\TypeListConverter.cs (1)
41public static string[] SplitTypeList(string typeList) => Array.Empty<string>();
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
129Array.Copy(members, methods, members.Length);
System\Xaml\Schema\XamlMemberInvoker.cs (1)
66return UnderlyingGetter.Invoke(instance, Array.Empty<object>());
System\Xaml\Schema\XamlTypeInvoker.cs (1)
225return (IEnumerator)getEnumMethod.Invoke(instance, Array.Empty<object>());
System\Xaml\XamlObjectReader.cs (3)
1231methodParams = Array.Empty<ParameterInfo>(); 1802private static ObjectMarkupInfo ForArray(Array value, SerializerContext context) 1930if (value is Array valueAsArray)
tlens (2)
src\runtime\src\tools\illink\external\Mono.Options\Options.cs (2)
296void ICollection.CopyTo(Array array, int index) { (values as ICollection).CopyTo(array, index); } 480if (Array.IndexOf(names, "<>") >= 0 &&
UIAutomationClient (23)
MS\Internal\Automation\Misc.cs (12)
69internal static Array CombineArrays(IEnumerable arrays, Type t) 73foreach (Array a in arrays) 78Array combined = Array.CreateInstance(t, totalLength); 81foreach (Array a in arrays) 85Array.Copy(a, 0, combined, pos, l); 94internal static Array RemoveDuplicates(Array a, Type t) 99Array.Sort(a); 124Array a2 = Array.CreateInstance(t, newLength); 126Array.Copy(a, 0, a2, 0, newLength);
MS\Internal\Automation\Schema.cs (6)
341new AutomationPropertyInfo( convertToElementArray, SelectionPattern.SelectionProperty, typeof(AutomationElement[]), Array.Empty<AutomationElement>()), 354new AutomationPropertyInfo( null, MultipleViewPattern.SupportedViewsProperty, typeof(int []), Array.Empty<int>() ), 363new AutomationPropertyInfo( convertToElementArray, TablePattern.RowHeadersProperty, typeof(AutomationElement[]), Array.Empty<AutomationElement>()), 364new AutomationPropertyInfo( convertToElementArray, TablePattern.ColumnHeadersProperty, typeof(AutomationElement[]), Array.Empty<AutomationElement>()), 366new AutomationPropertyInfo( convertToElementArray, TableItemPattern.RowHeaderItemsProperty, typeof(AutomationElement[]), Array.Empty<AutomationElement>()), 367new AutomationPropertyInfo( convertToElementArray, TableItemPattern.ColumnHeaderItemsProperty, typeof(AutomationElement[]), Array.Empty<AutomationElement>()),
MS\Internal\Automation\UiaCoreApi.cs (3)
452return Array.Empty<UiaCacheResponse>(); // Return empty cacheresponse, not null. 871return Array.Empty<SafeTextRangeHandle>(); 887return Array.Empty<SafeTextRangeHandle>();
System\Windows\Automation\AutomationElementCollection.cs (1)
70public virtual void CopyTo( Array array, int index )
System\Windows\Automation\CacheRequest.cs (1)
409_defaultUiaCacheRequest = new UiaCoreApi.UiaCacheRequest(Automation.ControlViewCondition, TreeScope.Element, new AutomationProperty[] { AutomationElement.RuntimeIdProperty }, Array.Empty<AutomationPattern>(), AutomationElementMode.Full);
UIAutomationClientSideProviders (17)
MS\Internal\AutomationProxies\MSAANativeProvider.cs (2)
572return Array.Empty<IRawElementProviderSimple>(); 836rval = (Array.IndexOf(entry._patterns, pattern)>=0);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (3)
229return Array.Empty<double>(); 243return Array.Empty<double>(); 529return Array.Empty<IRawElementProviderSimple>();
MS\Internal\AutomationProxies\WindowsListView.cs (2)
244int location = Array.IndexOf (groupIds, groupID); 285int location = Array.IndexOf (groupIds, groupID);
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (2)
447Array.Sort(group.Items, 0, group.Count, new SortGroupItems(hwnd)); 806Array.Copy(temp, _items, temp.Length);
MS\Internal\AutomationProxies\WindowsRichEdit.cs (2)
241return Array.Empty<ITextRangeProvider>(); 251return Array.Empty<ITextRangeProvider>();
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (6)
164return Array.Empty<double>(); 375return Array.Empty<IRawElementProviderSimple>(); 396Array a1 = v1 as Array; 397Array a2 = v2 as Array;
UIAutomationTypes (10)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\HandleCollector.cs (1)
45Array.Copy(handleTypes, 0, newTypes, 0, handleTypeCount);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
2369Array.Copy(bytes, 0, buffer, offset, count);
System\Windows\Automation\ControlType.cs (8)
65return ControlType.Register(id, programmaticName, stId, Array.Empty<AutomationProperty>(), Array.Empty<AutomationPattern>(), requiredPatternsSets); 72return ControlType.Register(id, programmaticName, stId, requiredProperties, Array.Empty<AutomationPattern>(), Array.Empty<AutomationPattern[]>()); 78return ControlType.Register(id, programmaticName, stId, Array.Empty<AutomationProperty>(), Array.Empty<AutomationPattern>(), Array.Empty<AutomationPattern[]>()); 234public static readonly ControlType Document = ControlType.Register(AutomationIdentifierConstants.ControlTypes.Document, "ControlType.Document", nameof(SR.LocalizedControlTypeDocument), Array.Empty<AutomationProperty>(),
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
349var buffer = Array.Empty<byte>();
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
349var buffer = Array.Empty<byte>();