8773 references to Array
Analyzer.Utilities.UnitTests (2)
AnalyzerRunner (1)
aspire (100)
BackchannelJsonSerializerContext.AppHostProjectSearchResultPoco.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Commands.AppHostProjectSearchResultPoco).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Commands.AppHostProjectSearchResultPoco).GetProperty("SelectedProjectFile", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Commands.AppHostProjectSearchResultPoco).GetProperty("AllProjectFileCandidates", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<string>), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.BackchannelLogEntry.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).GetProperty("EventId", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.Logging.EventId), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).GetProperty("LogLevel", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.Logging.LogLevel), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
131AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).GetProperty("Timestamp", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null),
152AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.BackchannelLogEntry).GetProperty("CategoryName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.CommandOutput.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.CommandOutput).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.CommandOutput).GetProperty("Text", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.CommandOutput).GetProperty("IsErrorMessage", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
109AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.CommandOutput).GetProperty("LineNumber", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
129AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.CommandOutput).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
149AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.CommandOutput).GetProperty("ExitCode", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.DashboardUrlsState.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.DashboardUrlsState).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.DashboardUrlsState).GetProperty("DashboardHealthy", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.DashboardUrlsState).GetProperty("BaseUrlWithLoginToken", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.DashboardUrlsState).GetProperty("CodespacesUrlWithLoginToken", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.DisplayLineState.g.cs (2)
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.DisplayLineState).GetProperty("Stream", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.DisplayLineState).GetProperty("Line", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.EnumeratorResultsBackchannelLogEntry.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>).GetProperty("Values", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.BackchannelLogEntry>), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.BackchannelLogEntry>).GetProperty("Finished", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.EnumeratorResultsCommandOutput.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>).GetProperty("Values", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>).GetProperty("Finished", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.EnumeratorResultsPublishingActivity.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.PublishingActivity>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.PublishingActivity>).GetProperty("Values", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingActivity>), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.PublishingActivity>).GetProperty("Finished", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.EnumeratorResultsRpcResourceState.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.RpcResourceState>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.RpcResourceState>).GetProperty("Values", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.RpcResourceState>), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.RpcResourceState>).GetProperty("Finished", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.EnvVar.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.EnvVar).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.EnvVar).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.EnvVar).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.EventId.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.Logging.EventId).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.Logging.EventId).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.Logging.EventId).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.KeyValuePairStringString.g.cs (2)
66AttributeProviderFactory = static () => typeof(global::System.Collections.Generic.KeyValuePair<string, string>).GetProperty("Key", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::System.Collections.Generic.KeyValuePair<string, string>).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.PublishingActivity.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivity).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivity).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivity).GetProperty("Data", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Backchannel.PublishingActivityData), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.PublishingActivityData.g.cs (13)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("StatusText", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
112AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("CompletionState", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
134AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
154AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("IsError", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
174AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("IsWarning", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
194AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("StepId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
214AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("CompletionMessage", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
234AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("Inputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>), global::System.Array.Empty<global::System.Type>(), null),
254AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("LogLevel", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
274AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("Timestamp", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null),
294AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("EnableMarkdown", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.PublishingPromptInput.g.cs (12)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Label", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
109AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("InputType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
132AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Required", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
152AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Options", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, string>>), global::System.Array.Empty<global::System.Type>(), null),
172AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
192AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("ValidationErrors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
212AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("AllowCustomChoice", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
232AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("UpdateStateOnChange", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
252AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Loading", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
272AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Disabled", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.PublishingPromptInputAnswer.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.RequestId.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::StreamJsonRpc.RequestId).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.RequestId).GetProperty("Number", InstanceMemberBindingFlags, null, typeof(long?), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.RequestId).GetProperty("String", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.RequestId).GetProperty("IsNull", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
126AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.RequestId).GetProperty("IsEmpty", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.RpcResourceState.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.RpcResourceState).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.RpcResourceState).GetProperty("Resource", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.RpcResourceState).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
112AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.RpcResourceState).GetProperty("State", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
135AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.RpcResourceState).GetProperty("Endpoints", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null),
158AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.RpcResourceState).GetProperty("Health", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
BackchannelJsonSerializerContext.ValidationResult.g.cs (2)
66AttributeProviderFactory = static () => typeof(global::Spectre.Console.ValidationResult).GetProperty("Successful", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Spectre.Console.ValidationResult).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
JsonSourceGenerationContext.CliSettings.g.cs (2)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.CliSettings).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.CliSettings).GetProperty("AppHostPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Aspire.Cli.Tests (41)
DotNet\DotNetCliRunnerTests.cs (18)
601var addIndex = Array.IndexOf(args, "add");
602var packageIndex = Array.IndexOf(args, "package");
603var fileIndex = Array.IndexOf(args, "--file");
604var filePathIndex = Array.IndexOf(args, appHostFile.FullName);
605var packageNameIndex = Array.IndexOf(args, "Aspire.Hosting.Redis@9.2.0");
664var addIndex = Array.IndexOf(args, "add");
665var projectIndex = Array.IndexOf(args, projectFile.FullName);
666var packageIndex = Array.IndexOf(args, "package");
667var packageNameIndex = Array.IndexOf(args, "Aspire.Hosting.Redis");
668var versionFlagIndex = Array.IndexOf(args, "--version");
669var versionValueIndex = Array.IndexOf(args, "9.2.0");
732var addIndex = Array.IndexOf(args, "add");
733var projectIndex = Array.IndexOf(args, projectFile.FullName);
734var packageIndex = Array.IndexOf(args, "package");
735var packageNameIndex = Array.IndexOf(args, "Aspire.Hosting.Redis");
736var versionFlagIndex = Array.IndexOf(args, "--version");
737var versionValueIndex = Array.IndexOf(args, "9.2.0");
738var noRestoreIndex = Array.IndexOf(args, "--no-restore");
Aspire.Components.Common.TestUtilities (2)
Aspire.Confluent.Kafka (24)
StatisticsJsonSerializerContext.Statistics.g.cs (22)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("ClientId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
126AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("Timestamp", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
146AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("Time", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
166AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("Age", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
186AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("ReplyQueue", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
206AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("MessageCount", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
226AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("MessageSize", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
246AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("MessageMax", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
266AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("MessageSizeMax", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
286AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("Tx", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
306AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("TxBytes", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
326AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("Rx", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
346AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("RxBytes", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
366AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("TxMessages", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
386AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("TxMessageBytes", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
406AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("RxMessages", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
426AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("RxMessageBytes", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
446AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("SimpleCount", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
466AttributeProviderFactory = static () => typeof(global::Aspire.Confluent.Kafka.Statistics).GetProperty("MetadataCacheCount", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
Aspire.Dashboard (72)
GenAIEventsContext.AssistantEvent.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.AssistantEvent).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.AssistantEvent).GetProperty("Content", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.AssistantEvent).GetProperty("ToolCalls", InstanceMemberBindingFlags, null, typeof(global::Aspire.Dashboard.Model.GenAI.ToolCall[]), global::System.Array.Empty<global::System.Type>(), null),
GenAIEventsContext.ChoiceEvent.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent).GetProperty("FinishReason", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent).GetProperty("Index", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(global::Aspire.Dashboard.Model.GenAI.AssistantEvent), global::System.Array.Empty<global::System.Type>(), null),
GenAIEventsContext.SystemOrUserEvent.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.SystemOrUserEvent).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.SystemOrUserEvent).GetProperty("Role", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.SystemOrUserEvent).GetProperty("Content", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
GenAIEventsContext.ToolCall.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCall).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCall).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCall).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCall).GetProperty("Function", InstanceMemberBindingFlags, null, typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallFunction), global::System.Array.Empty<global::System.Type>(), null),
GenAIEventsContext.ToolCallFunction.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallFunction).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallFunction).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallFunction).GetProperty("Arguments", InstanceMemberBindingFlags, null, typeof(global::System.Text.Json.Nodes.JsonNode), global::System.Array.Empty<global::System.Type>(), null),
GenAIEventsContext.ToolEvent.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolEvent).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolEvent).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolEvent).GetProperty("Content", InstanceMemberBindingFlags, null, typeof(global::System.Text.Json.Nodes.JsonNode), global::System.Array.Empty<global::System.Type>(), null),
GenAIMessagesContext.ChatMessage.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage).GetProperty("Role", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage).GetProperty("Parts", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.MessagePart>), global::System.Array.Empty<global::System.Type>(), null),
110AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage).GetProperty("FinishReason", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
GenAIMessagesContext.GenericPart.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.GenericPart).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.GenericPart).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.MessagePart).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
GenAIMessagesContext.TextPart.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.TextPart).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.TextPart).GetProperty("Content", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.MessagePart).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
GenAIMessagesContext.ToolCallRequestPart.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallRequestPart).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallRequestPart).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallRequestPart).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallRequestPart).GetProperty("Arguments", InstanceMemberBindingFlags, null, typeof(global::System.Text.Json.Nodes.JsonNode), global::System.Array.Empty<global::System.Type>(), null),
126AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.MessagePart).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
GenAIMessagesContext.ToolCallResponsePart.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallResponsePart).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallResponsePart).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallResponsePart).GetProperty("Response", InstanceMemberBindingFlags, null, typeof(global::System.Text.Json.Nodes.JsonNode), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.MessagePart).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
McpConfigFileModelContext.McpInputModel.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInputModel).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInputModel).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInputModel).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
112AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInputModel).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
135AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInputModel).GetProperty("Password", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null),
McpConfigFileModelContext.McpJsonFileServerInstanceModel.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpJsonFileServerInstanceModel).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpJsonFileServerInstanceModel).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpJsonFileServerInstanceModel).GetProperty("Url", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
112AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpJsonFileServerInstanceModel).GetProperty("Headers", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
McpConfigFileModelContext.McpJsonFileServerModel.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpJsonFileServerModel).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpJsonFileServerModel).GetProperty("Inputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Aspire.Dashboard.Mcp.McpInputModel>), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpJsonFileServerModel).GetProperty("Servers", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Aspire.Dashboard.Mcp.McpJsonFileServerInstanceModel>), global::System.Array.Empty<global::System.Type>(), null),
McpInstallButtonModelContext.McpInputModel.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInputModel).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInputModel).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInputModel).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
112AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInputModel).GetProperty("Description", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
135AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInputModel).GetProperty("Password", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null),
McpInstallButtonModelContext.McpInstallButtonServerModel.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInstallButtonServerModel).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInstallButtonServerModel).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInstallButtonServerModel).GetProperty("Inputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Aspire.Dashboard.Mcp.McpInputModel>), global::System.Array.Empty<global::System.Type>(), null),
109AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInstallButtonServerModel).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
132AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInstallButtonServerModel).GetProperty("Url", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
155AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Mcp.McpInstallButtonServerModel).GetProperty("Headers", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
Aspire.Dashboard.Tests (2)
Aspire.Hosting (15)
Dcp\DcpExecutor.cs (6)
2647Array.Clear(keyPem, 0, keyPem.Length);
2648Array.Clear(keyBytes, 0, keyBytes.Length);
2813Array.Clear(keyPem, 0, keyPem.Length);
2846Array.Clear(keyBytes, 0, keyBytes.Length);
2847Array.Clear(pem, 0, pem.Length);
2854Array.Clear(keyBytes, 0, keyBytes.Length);
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Tests (3)
Aspire.Hosting.Yarp.Tests (1)
Aspire.Microsoft.Azure.Cosmos.Tests (1)
Aspire.Microsoft.Data.SqlClient.Tests (1)
Aspire.Milvus.Client.Tests (1)
Aspire.Playground.Tests (1)
Aspire.Qdrant.Client.Tests (1)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RabbitMQ.Client.v6.Tests (1)
Aspire.StackExchange.Redis.DistributedCaching.Tests (1)
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
Aspire.TestUtilities (1)
AzureSearch.ApiService (1)
BinaryFormatTests (3)
Binding.UDS.IntegrationTests (1)
BuildValidator (3)
CodeGenerator (3)
ConfigurationSchemaGenerator (2)
Contract.Service.IntegrationTests (1)
Crossgen2Tasks (1)
csc (1)
DemoConsole (1)
dotnet-dev-certs (9)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
600Array.Clear(keyBytes, 0, keyBytes.Length);
601Array.Clear(pem, 0, pem.Length);
607Array.Clear(keyBytes, 0, keyBytes.Length);
608Array.Clear(pem, 0, pem.Length);
658Array.Clear(bytes, 0, bytes.Length);
686Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
dotnet-svcutil.xmlserializer (2)
dotnet-svcutil-lib (266)
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\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\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\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\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.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\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\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\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);
dotnet-user-jwts (1)
EventSourceGenerator (1)
Extensibility.MessageEncoder.IntegrationTests (2)
GenerateDocumentationAndConfigFiles (74)
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\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\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);
GenerateRulesMissingDocumentation (1)
GetDocument.Insider (3)
http2cat (6)
IdeCoreBenchmarks (2)
IIS.FunctionalTests (7)
IIS.LongTests (7)
IIS.Microbenchmarks (1)
IIS.NewHandler.FunctionalTests (7)
IIS.NewShim.FunctionalTests (7)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (7)
illink (12)
ILLink.CodeFixProvider (1)
ILLink.RoslynAnalyzer (4)
InMemory.FunctionalTests (9)
Http2\Http2WebSocketTests.cs (5)
127await SendDataAsync(1, Array.Empty<byte>(), endStream: true);
218await SendDataAsync(1, Array.Empty<byte>(), endStream: true);
253await SendDataAsync(3, Array.Empty<byte>(), endStream: true);
357await SendDataAsync(1, Array.Empty<byte>(), endStream: true);
661await SendDataAsync(1, Array.Empty<byte>(), endStream: true);
InProcessWebSite (3)
Interop.FunctionalTests (2)
Metrics (65)
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\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\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);
Metrics.Legacy (65)
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\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\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);
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Extra.Tests (2)
Microsoft.Analyzers.Local (3)
Microsoft.Analyzers.Local.Tests (25)
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.App.Analyzers (2)
Microsoft.AspNetCore.App.Analyzers.Test (2)
Microsoft.AspNetCore.Authentication.BearerToken (5)
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetProperty("TokenType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetProperty("AccessToken", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetProperty("ExpiresIn", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
131AttributeProviderFactory = 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)
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.Authentication.Twitter (5)
Microsoft.AspNetCore.Authorization (3)
Microsoft.AspNetCore.Authorization.Policy (3)
Microsoft.AspNetCore.Authorization.Test (4)
Microsoft.AspNetCore.BrowserTesting (1)
Microsoft.AspNetCore.Components (30)
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);
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Microsoft.AspNetCore.Components.Endpoints (29)
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>())),
ImportMapSerializerContext.ImportMapDefinition.g.cs (3)
66AttributeProviderFactory = 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),
86AttributeProviderFactory = 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),
106AttributeProviderFactory = 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),
ResourceCollectionSerializerContext.ResourceAsset.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAsset).GetProperty("Url", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = 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),
ResourceCollectionSerializerContext.ResourceAssetProperty.g.cs (2)
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAssetProperty).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAssetProperty).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Components.Endpoints.Tests (29)
RazorComponentEndpointDataSourceTest.cs (17)
48Array.Empty<PageComponentBuilder>(), Array.Empty<ComponentBuilder>()));
62Array.Empty<IComponentRenderMode>(),
90Array.Empty<IComponentRenderMode>(),
119Array.Empty<IComponentRenderMode>(),
154Array.Empty<IComponentRenderMode>(),
155Array.Empty<Type>(),
160Array.Empty<IComponentRenderMode>(),
166Array.Empty<IComponentRenderMode>(),
173Array.Empty<IComponentRenderMode>(),
174Array.Empty<Type>(),
179Array.Empty<IComponentRenderMode>(),
187Array.Empty<Type>()
192Array.Empty<IComponentRenderMode>(),
193Array.Empty<Type>(),
199Array.Empty<IComponentRenderMode>(),
208Array.Empty<Type>()
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Forms.Tests (2)
Microsoft.AspNetCore.Components.Performance (1)
Microsoft.AspNetCore.Components.QuickGrid (3)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Microsoft.AspNetCore.Components.Server (21)
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),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("PrerenderId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = 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),
128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Sequence", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
148AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Descriptor", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
168AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Assembly", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
188AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("TypeName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
208AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("ParameterDefinitions", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
228AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("ParameterValues", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey).GetProperty("LocationHash", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey).GetProperty("FormattedComponentKey", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Components.Server.Tests (19)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (9)
65message: new InvocationMessage("xyz", "method", Array.Empty<object>()),
69message: new InvocationMessage("method", Array.Empty<object>()),
81message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__" }),
89message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__", "__test_id2__" }),
147message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>()),
155message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>(), new string[] { "__test_id__" }),
239var expectedMessage = new InvocationMessage("xyz", "method", Array.Empty<object>());
428new MessageSizeTestData("StreamInvocationMessage", new StreamInvocationMessage("1", "target", Array.Empty<object>()), 15),
429new MessageSizeTestData("StreamInvocationMessage_WithStreamId", new StreamInvocationMessage("1", "target", Array.Empty<object>(), new [] { "2" }), 17),
Microsoft.AspNetCore.Components.Tests (41)
RendererTest.cs (20)
261[1] = CreateRenderFactory(Array.Empty<int>())
420[1] = CreateRenderFactory(Array.Empty<int>())
464[1] = CreateRenderFactory(Array.Empty<int>())
523[2] = CreateRenderFactory(Array.Empty<int>()),
524[3] = CreateRenderFactory(Array.Empty<int>())
3568[0] = CreateRenderFactory(Array.Empty<int>()),
3601[0] = CreateRenderFactory(Array.Empty<int>()),
3634[0] = CreateRenderFactory(Array.Empty<int>()),
3672[0] = CreateRenderFactory(Array.Empty<int>()),
3754[0] = Array.Empty<NestedAsyncComponent.ExecutionAction>(),
3783[1] = CreateRenderFactory(Array.Empty<int>()),
3784[2] = CreateRenderFactory(Array.Empty<int>()),
3812[0] = Array.Empty<NestedAsyncComponent.ExecutionAction>(),
3839[1] = CreateRenderFactory(Array.Empty<int>()),
3840[2] = CreateRenderFactory(Array.Empty<int>()),
3894[1] = CreateRenderFactory(Array.Empty<int>()),
3950[1] = CreateRenderFactory(Array.Empty<int>()),
4062[0] = CreateRenderFactory(Array.Empty<int>()),
4096[0] = CreateRenderFactory(Array.Empty<int>()),
4138[0] = CreateRenderFactory(Array.Empty<int>()),
Routing\QueryParameterValueSupplierTest.cs (17)
135AssertKeyValuePair<bool[]>("BoolVals", Array.Empty<bool>());
136AssertKeyValuePair<DateTime[]>("DateTimeVals", Array.Empty<DateTime>());
137AssertKeyValuePair<decimal[]>("DecimalVals", Array.Empty<decimal>());
138AssertKeyValuePair<double[]>("DoubleVals", Array.Empty<double>());
139AssertKeyValuePair<float[]>("FloatVals", Array.Empty<float>());
140AssertKeyValuePair<Guid[]>("GuidVals", Array.Empty<Guid>());
141AssertKeyValuePair<int[]>("IntVals", Array.Empty<int>());
142AssertKeyValuePair<long[]>("LongVals", Array.Empty<long>());
143AssertKeyValuePair<bool?[]>("NullableBoolVals", Array.Empty<bool?>());
144AssertKeyValuePair<DateTime?[]>("NullableDateTimeVals", Array.Empty<DateTime?>());
145AssertKeyValuePair<decimal?[]>("NullableDecimalVals", Array.Empty<decimal?>());
146AssertKeyValuePair<double?[]>("NullableDoubleVals", Array.Empty<double?>());
147AssertKeyValuePair<float?[]>("NullableFloatVals", Array.Empty<float?>());
148AssertKeyValuePair<Guid?[]>("NullableGuidVals", Array.Empty<Guid?>());
149AssertKeyValuePair<int?[]>("NullableIntVals", Array.Empty<int?>());
150AssertKeyValuePair<long?[]>("NullableLongVals", Array.Empty<long?>());
151AssertKeyValuePair<string[]>("StringVals", Array.Empty<string>());
Microsoft.AspNetCore.Components.Web (12)
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Components.Web.Tests (8)
Microsoft.AspNetCore.Components.WebAssembly (26)
WebAssemblyJsonSerializerContext.ComponentMarker.g.cs (10)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("PrerenderId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = 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),
126AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Sequence", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
146AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Descriptor", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
166AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("Assembly", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
186AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("TypeName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
206AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("ParameterDefinitions", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
226AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarker).GetProperty("ParameterValues", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
WebAssemblyJsonSerializerContext.ComponentMarkerKey.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey).GetProperty("LocationHash", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey).GetProperty("FormattedComponentKey", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
WebAssemblyJsonSerializerContext.ComponentParameter.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentParameter).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentParameter).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentParameter).GetProperty("TypeName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentParameter).GetProperty("Assembly", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
WebAssemblyJsonSerializerContext.RootComponentOperation.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.RootComponentOperation).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.RootComponentOperation).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.RootComponentOperationType), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.RootComponentOperation).GetProperty("SsrComponentId", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.RootComponentOperation).GetProperty("Marker", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.ComponentMarker?), global::System.Array.Empty<global::System.Type>(), null),
WebAssemblyJsonSerializerContext.RootComponentOperationBatch.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.RootComponentOperationBatch).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.RootComponentOperationBatch).GetProperty("BatchId", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.RootComponentOperationBatch).GetProperty("Operations", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.RootComponentOperation[]), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Components.WebView (22)
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),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetManifest).GetProperty("ContentRoots", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null),
90AttributeProviderFactory = 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),
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),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetMatch).GetProperty("ContentRoot", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetMatch).GetProperty("Path", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
68AttributeProviderFactory = 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),
88AttributeProviderFactory = 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),
108AttributeProviderFactory = 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),
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),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetPattern).GetProperty("ContentRoot", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetPattern).GetProperty("Depth", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetPattern).GetProperty("Pattern", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
Microsoft.AspNetCore.Components.WebView.Wpf (2)
Microsoft.AspNetCore.Cryptography.KeyDerivation (1)
Microsoft.AspNetCore.DataProtection (13)
Microsoft.AspNetCore.DataProtection.Abstractions (2)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
600Array.Clear(keyBytes, 0, keyBytes.Length);
601Array.Clear(pem, 0, pem.Length);
607Array.Clear(keyBytes, 0, keyBytes.Length);
608Array.Clear(pem, 0, pem.Length);
658Array.Clear(bytes, 0, bytes.Length);
686Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Microsoft.AspNetCore.Diagnostics (7)
ExtensionsExceptionJsonContext.ExceptionExtensionData.g.cs (5)
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Diagnostics.ExceptionExtensionData).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = 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),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Diagnostics.ExceptionExtensionData).GetProperty("Path", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
129AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Diagnostics.ExceptionExtensionData).GetProperty("Endpoint", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
149AttributeProviderFactory = 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),
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Microsoft.AspNetCore.Diagnostics.Tests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
Microsoft.AspNetCore.Grpc.Swagger (1)
Microsoft.AspNetCore.HeaderParsing (2)
Microsoft.AspNetCore.Hosting (20)
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),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetManifest).GetProperty("ContentRoots", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null),
90AttributeProviderFactory = 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),
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),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetMatch).GetProperty("ContentRoot", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetMatch).GetProperty("Path", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
68AttributeProviderFactory = 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),
88AttributeProviderFactory = 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),
108AttributeProviderFactory = 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),
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),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetPattern).GetProperty("ContentRoot", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetPattern).GetProperty("Depth", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetPattern).GetProperty("Pattern", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Hosting.Tests (1)
Microsoft.AspNetCore.Hosting.WindowsServices (1)
Microsoft.AspNetCore.Http (12)
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)
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.Abstractions.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Connections (3)
Microsoft.AspNetCore.Http.Connections.Tests (7)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.Http.Extensions (59)
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),
66AttributeProviderFactory = 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),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
109AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
130AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
151AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Detail", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
172AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Instance", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
193AttributeProviderFactory = 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),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
129AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Detail", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
150AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Instance", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
171AttributeProviderFactory = 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),
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\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\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.Microbenchmarks (15)
SharedTestJsonContext.JsonTodo.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.JsonTodo).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
SharedTestJsonContext.JsonTodoChild.g.cs (5)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.JsonTodoChild).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.JsonTodoChild).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
126AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
SharedTestJsonContext.Todo.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.Todo).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.Generators.Tests.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Http.Results (8)
Microsoft.AspNetCore.Http.Results.Tests (24)
TestJsonContext.JsonTodo.g.cs (4)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.JsonTodo).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
TestJsonContext.Todo.g.cs (4)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
TestJsonContext.TodoChild.g.cs (5)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoChild).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
TestJsonContext.TodoJsonChild.g.cs (5)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoJsonChild).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.Todo).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
TestJsonContext.TodoStruct.g.cs (4)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TodoStruct).GetProperty("IsComplete", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Http.Tests (5)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.HttpLogging.Tests (6)
Microsoft.AspNetCore.HttpOverrides (1)
Microsoft.AspNetCore.Identity (120)
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ForgotPasswordRequest).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoRequest).GetProperty("NewEmail", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoRequest).GetProperty("NewPassword", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoRequest).GetProperty("OldPassword", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoResponse).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.InfoResponse).GetProperty("IsEmailConfirmed", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest).GetProperty("Password", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest).GetProperty("TwoFactorCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
132AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.LoginRequest).GetProperty("TwoFactorRecoveryCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.RefreshRequest).GetProperty("RefreshToken", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.RegisterRequest).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.RegisterRequest).GetProperty("Password", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ResendConfirmationEmailRequest).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest).GetProperty("Email", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest).GetProperty("ResetCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.ResetPasswordRequest).GetProperty("NewPassword", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest).GetProperty("Enable", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest).GetProperty("TwoFactorCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest).GetProperty("ResetSharedKey", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
126AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest).GetProperty("ResetRecoveryCodes", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
146AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest).GetProperty("ForgetMachine", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse).GetProperty("SharedKey", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse).GetProperty("RecoveryCodesLeft", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse).GetProperty("RecoveryCodes", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null),
130AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse).GetProperty("IsTwoFactorEnabled", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
151AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse).GetProperty("IsMachineRemembered", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = 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),
89AttributeProviderFactory = 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),
112AttributeProviderFactory = 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),
132AttributeProviderFactory = 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),
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),
66AttributeProviderFactory = 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),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse).GetProperty("Transports", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null),
109AttributeProviderFactory = 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),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("AuthenticatorAttachment", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("ResidentKey", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
106AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("RequireResidentKey", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
126AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria).GetProperty("UserVerification", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = 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),
112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetProperty("Origin", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
135AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetProperty("CrossOrigin", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null),
155AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetProperty("TopOrigin", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
175AttributeProviderFactory = 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),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyAssertionState).GetProperty("Challenge", InstanceMemberBindingFlags, null, typeof(global::System.ReadOnlyMemory<byte>), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyAssertionState).GetProperty("UserId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyAttestationState).GetProperty("Challenge", InstanceMemberBindingFlags, null, typeof(global::System.ReadOnlyMemory<byte>), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = 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),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyUserEntity).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyUserEntity).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PasskeyUserEntity).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = 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),
89AttributeProviderFactory = 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),
112AttributeProviderFactory = 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),
133AttributeProviderFactory = 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),
156AttributeProviderFactory = 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),
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),
66AttributeProviderFactory = 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),
89AttributeProviderFactory = 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),
112AttributeProviderFactory = 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),
133AttributeProviderFactory = 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),
156AttributeProviderFactory = 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),
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),
66AttributeProviderFactory = 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),
89AttributeProviderFactory = 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),
112AttributeProviderFactory = 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),
135AttributeProviderFactory = 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),
157AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Timeout", InstanceMemberBindingFlags, null, typeof(ulong?), global::System.Array.Empty<global::System.Type>(), null),
177AttributeProviderFactory = 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),
199AttributeProviderFactory = 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),
219AttributeProviderFactory = 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),
241AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Attestation", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
261AttributeProviderFactory = 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),
283AttributeProviderFactory = 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),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = 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),
112AttributeProviderFactory = 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),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = 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),
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),
66AttributeProviderFactory = 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),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("Timeout", InstanceMemberBindingFlags, null, typeof(ulong?), global::System.Array.Empty<global::System.Type>(), null),
109AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("RpId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
129AttributeProviderFactory = 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),
151AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("UserVerification", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
171AttributeProviderFactory = 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),
193AttributeProviderFactory = 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),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = 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),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.TokenBinding).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.TokenBinding).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Identity.Test (2)
Microsoft.AspNetCore.InternalTesting.Tests (2)
Microsoft.AspNetCore.Mvc.Abstractions (7)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (7)
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.ApiExplorer.Test (22)
Microsoft.AspNetCore.Mvc.Core (49)
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.Core.Test (137)
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (26)
18var controllerModel = new ControllerModel(controllerType.GetTypeInfo(), Array.Empty<object>());
21var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>());
25Array.Empty<object>());
47var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>())
51new ActionModel(actionMethod1, Array.Empty<object>()),
57var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>())
61new ActionModel(actionMethod2, Array.Empty<object>()),
92Array.Empty<object>());
95var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>())
99new PropertyModel(property1, Array.Empty<object>()),
103new ActionModel(actionMethod1, Array.Empty<object>())
115var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>())
119new PropertyModel(property2, Array.Empty<object>()),
153app.Controllers.Add(new ControllerModel(typeof(HelloController).GetTypeInfo(), Array.Empty<object>()));
154app.Controllers.Add(new ControllerModel(typeof(WorldController).GetTypeInfo(), Array.Empty<object>()));
194new ControllerModel(typeof(HelloController).GetTypeInfo(), Array.Empty<object>())
231var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
236new ActionModel(controllerType.GetMethod(nameof(HelloController.GetHello)), Array.Empty<object>())
256var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
261new PropertyModel(controllerType.GetProperty(nameof(HelloController.Property1)), Array.Empty<object>())
282var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
305var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
310var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>())
317Array.Empty<object>())
338var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
343var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>())
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (6)
278new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
301new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
324new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
347new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
370new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
394new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
ModelBinding\Metadata\DefaultModelMetadataTest.cs (9)
126var attributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), null);
163var attributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), null);
200var attributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), null);
358var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null));
381var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null));
402var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null));
Routing\ActionEndpointFactoryTest.cs (19)
277Array.Empty<ConventionalRouteEntry>(),
278conventions: Array.Empty<Action<EndpointBuilder>>(),
279groupConventions: Array.Empty<Action<EndpointBuilder>>(),
280finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
281groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
370var endpoints = CreateConventionalRoutedEndpoints(action, Array.Empty<ConventionalRouteEntry>(), createInertEndpoints: true);
383Array.Empty<ConventionalRouteEntry>(),
384conventions: Array.Empty<Action<EndpointBuilder>>(),
385groupConventions: Array.Empty<Action<EndpointBuilder>>(),
386finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
387groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
407conventions: Array.Empty<Action<EndpointBuilder>>(),
408groupConventions: Array.Empty<Action<EndpointBuilder>>(),
409finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
410groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
433conventions: Array.Empty<Action<EndpointBuilder>>(),
434groupConventions: Array.Empty<Action<EndpointBuilder>>(),
435finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
436groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
TestJsonContext.JsonPerson.g.cs (4)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPerson).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person).GetProperty("Parent", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person), global::System.Array.Empty<global::System.Type>(), null),
TestJsonContext.JsonPersonExtended.g.cs (5)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.JsonPersonExtended).GetProperty("Age", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person), global::System.Array.Empty<global::System.Type>(), null),
128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person).GetProperty("Parent", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person), global::System.Array.Empty<global::System.Type>(), null),
TestJsonContext.Person.g.cs (4)
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person).GetProperty("Child", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person).GetProperty("Parent", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.Person), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (8)
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
Microsoft.AspNetCore.Mvc.Localization (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (8)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
Microsoft.AspNetCore.Mvc.Razor.Test (3)
Microsoft.AspNetCore.Mvc.RazorPages (11)
Microsoft.AspNetCore.Mvc.RazorPages.Test (64)
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (19)
18var model = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
82var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
109var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
110var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
137var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
168var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
169var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
199var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
200var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
201var parameterModel = new PageParameterModel(parameterInfo, Array.Empty<object>());
230var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
231var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
266var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
267var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
268var parameterModel = new PageParameterModel(parameterInfo, Array.Empty<object>());
299var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
300var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
301var propertyModel = new PagePropertyModel(propertyInfo, Array.Empty<object>());
329var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
Infrastructure\DefaultPageLoaderTest.cs (7)
25var actionDescriptors = new ActionDescriptorCollection(Array.Empty<ActionDescriptor>(), 1);
44var pageApplicationModel1 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
45var pageApplicationModel2 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
125var pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
173c.PageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
242var pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
308c.PageApplicationModel = new PageApplicationModel(c.ActionDescriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
Microsoft.AspNetCore.Mvc.Testing (5)
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (7)
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
Microsoft.AspNetCore.OpenApi (14)
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\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.OpenApi.Microbenchmarks (1)
Microsoft.AspNetCore.OpenApi.Tests (3)
Microsoft.AspNetCore.OutputCaching (10)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (3)
Microsoft.AspNetCore.OutputCaching.Tests (2)
Microsoft.AspNetCore.Owin.Microbenchmarks (1)
Microsoft.AspNetCore.RateLimiting.Tests (1)
Microsoft.AspNetCore.Razor (1)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.RequestDecompression.Tests (5)
Microsoft.AspNetCore.ResponseCaching (5)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.Routing (49)
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>());
Microsoft.AspNetCore.Routing.FunctionalTests (1)
Microsoft.AspNetCore.Routing.Microbenchmarks (6)
Microsoft.AspNetCore.Routing.Tests (58)
Matching\AcceptsMatcherPolicyTest.cs (10)
35CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
53CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
72CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
106CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
124CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
143CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
165CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
340CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
409CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
616$"test: {template} - {string.Join(", ", consumesMetadata?.ContentTypes ?? Array.Empty<string>())}");
Matching\HostMatcherPolicyTest.cs (8)
32CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
50CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
69CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
124CreateEndpoint("/", new HostAttribute(Array.Empty<string>()), new DynamicEndpointMetadata()),
142CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
161CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
202CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
276$"test: {template} - {string.Join(", ", hostMetadata?.Hosts ?? Array.Empty<string>())}");
Matching\HttpMethodMatcherPolicyTest.cs (10)
33CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
51CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
70CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
104CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
122CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
141CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
185CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
188CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
230CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
233CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>(), acceptCorsPreflight: true)),
Microsoft.AspNetCore.Security.Microbenchmarks (2)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (7)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (5)
Microsoft.AspNetCore.Server.Kestrel.Core (17)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
600Array.Clear(keyBytes, 0, keyBytes.Length);
601Array.Clear(pem, 0, pem.Length);
607Array.Clear(keyBytes, 0, keyBytes.Length);
608Array.Clear(pem, 0, pem.Length);
658Array.Clear(bytes, 0, bytes.Length);
686Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (26)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Session (2)
Microsoft.AspNetCore.Shared.Tests (34)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
600Array.Clear(keyBytes, 0, keyBytes.Length);
601Array.Clear(pem, 0, pem.Length);
607Array.Clear(keyBytes, 0, keyBytes.Length);
608Array.Clear(pem, 0, pem.Length);
658Array.Clear(bytes, 0, bytes.Length);
686Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
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);
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.SignalR.Client.Core (8)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (25)
HubConnectionTests.cs (7)
865_ = await hubConnection.StreamAsChannelCoreAsync("stream", typeof(int), Array.Empty<object>(), default);
866_ = await hubConnection.InvokeCoreAsync("test", typeof(int), Array.Empty<object>(), default);
867await hubConnection.SendCoreAsync("test2", Array.Empty<object>(), default);
868_ = hubConnection.StreamAsyncCore<int>("stream2", Array.Empty<object>(), default);
875mockConnection.Verify(c => c.InvokeCoreAsync("test", typeof(int), Array.Empty<object>(), It.IsAny<CancellationToken>()), Times.Once);
876mockConnection.Verify(c => c.SendCoreAsync("test2", Array.Empty<object>(), It.IsAny<CancellationToken>()), Times.Once);
877mockConnection.Verify(c => c.StreamAsyncCore<int>("stream2", Array.Empty<object>(), It.IsAny<CancellationToken>()), Times.Once);
Microsoft.AspNetCore.SignalR.Common (3)
Microsoft.AspNetCore.SignalR.Common.Tests (27)
Internal\Protocol\JsonHubProtocolTestsBase.cs (8)
35new JsonProtocolTestData("InvocationMessage_HasStreamArgument", new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__" }), true, true, "{\"type\":1,\"target\":\"Target\",\"arguments\":[],\"streamIds\":[\"__test_id__\"]}"),
37new JsonProtocolTestData("InvocationMessage_HasMultipleStreams", new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__", "__test_id2__" }), true, true, "{\"type\":1,\"target\":\"Target\",\"arguments\":[],\"streamIds\":[\"__test_id__\",\"__test_id2__\"]}"),
78new JsonProtocolTestData("StreamInvocationMessage_HasStreamArgument", new StreamInvocationMessage("123", "Target", Array.Empty<object>(), new string[] { "__test_id__" }), true, true, "{\"type\":4,\"invocationId\":\"123\",\"target\":\"Target\",\"arguments\":[],\"streamIds\":[\"__test_id__\"]}"),
194var binder = new TestBinder(Array.Empty<Type>(), typeof(object));
205var binder = new TestBinder(Array.Empty<Type>(), typeof(object));
209Assert.Same(Array.Empty<string>(), (message as InvocationMessage).StreamIds);
376new MessageSizeTestData("StreamInvocationMessage", new StreamInvocationMessage("1", "target", Array.Empty<object>()), 63),
377new MessageSizeTestData("StreamInvocationMessage_WithStreamId", new StreamInvocationMessage("1", "target", Array.Empty<object>(), new [] { "2" }), 81),
Internal\Protocol\MessagePackHubProtocolTestBase.cs (9)
65message: new InvocationMessage("xyz", "method", Array.Empty<object>()),
69message: new InvocationMessage("method", Array.Empty<object>()),
81message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__" }),
89message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__", "__test_id2__" }),
147message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>()),
155message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>(), new string[] { "__test_id__" }),
239var expectedMessage = new InvocationMessage("xyz", "method", Array.Empty<object>());
428new MessageSizeTestData("StreamInvocationMessage", new StreamInvocationMessage("1", "target", Array.Empty<object>()), 15),
429new MessageSizeTestData("StreamInvocationMessage_WithStreamId", new StreamInvocationMessage("1", "target", Array.Empty<object>(), new [] { "2" }), 17),
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.SignalR.Core (16)
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.SignalR.Microbenchmarks (30)
DefaultHubDispatcherBenchmark.cs (12)
215return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "Invocation", Array.Empty<object>()));
221return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationAsync", Array.Empty<object>()));
227return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationReturnValue", Array.Empty<object>()));
233return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationReturnAsync", Array.Empty<object>()));
239return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationValueTaskAsync", Array.Empty<object>()));
245return _dispatcher.DispatchMessageAsync(_connectionContext, new StreamInvocationMessage("123", "StreamChannelReader", Array.Empty<object>()));
251return _dispatcher.DispatchMessageAsync(_connectionContext, new StreamInvocationMessage("123", "StreamChannelReaderAsync", Array.Empty<object>()));
257return _dispatcher.DispatchMessageAsync(_connectionContext, new StreamInvocationMessage("123", "StreamChannelReaderValueTaskAsync", Array.Empty<object>()));
344await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStream), Array.Empty<object>(), streamIds: new string[] { "1" }));
355await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStreamIAsynEnumerable), Array.Empty<object>(), streamIds: new string[] { "1" }));
366await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStream), Array.Empty<object>(), streamIds: new string[] { "1" }));
380await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStreamIAsynEnumerable), Array.Empty<object>(), streamIds: new string[] { "1" }));
DefaultHubLifetimeManagerBenchmark.cs (9)
75return _hubLifetimeManager.SendAllAsync("MethodName", Array.Empty<object>());
81return _hubLifetimeManager.SendGroupAsync(_groupNames[0], "MethodName", Array.Empty<object>());
87return _hubLifetimeManager.SendGroupsAsync(_groupNames, "MethodName", Array.Empty<object>());
93return _hubLifetimeManager.SendGroupExceptAsync(_groupNames[0], "MethodName", Array.Empty<object>(), _subsetConnectionIds);
99return _hubLifetimeManager.SendAllExceptAsync("MethodName", Array.Empty<object>(), _subsetConnectionIds);
105return _hubLifetimeManager.SendConnectionAsync(_connectionIds[0], "MethodName", Array.Empty<object>());
111return _hubLifetimeManager.SendConnectionsAsync(_subsetConnectionIds, "MethodName", Array.Empty<object>());
117return _hubLifetimeManager.SendUserAsync(_userIdentifiers[0], "MethodName", Array.Empty<object>());
123return _hubLifetimeManager.SendUsersAsync(_userIdentifiers, "MethodName", Array.Empty<object>());
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (4)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
Microsoft.AspNetCore.SignalR.Tests (25)
HubConnectionHandlerTests.cs (22)
2054await client.SendHubMessageAsync(new StreamInvocationMessage(invocationId, nameof(StreamingHub.BlockingStream), Array.Empty<object>()));
3190await client.SendHubMessageAsync(new StreamInvocationMessage("1", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).DefaultTimeout();
3296await client.SendHubMessageAsync(new StreamInvocationMessage("123", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).DefaultTimeout();
3298await client.SendHubMessageAsync(new StreamInvocationMessage("123", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).DefaultTimeout();
3602await client.BeginUploadStreamAsync("invocationId", nameof(MethodHub.StreamDontRead), new[] { "id" }, Array.Empty<object>()).DefaultTimeout();
3626await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), new[] { "id" }, Array.Empty<object>());
3649await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadArray), new[] { "id" }, Array.Empty<object>());
3681await client.BeginUploadStreamAsync("invocation_" + id, nameof(MethodHub.StreamingConcat), new[] { id }, Array.Empty<object>());
3741await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadArrayAuth), new[] { "id" }, Array.Empty<object>());
3777await client.BeginUploadStreamAsync("invocation", nameof(LongRunningHub.Upload), new[] { "id" }, Array.Empty<object>());
3873await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, Array.Empty<object>()).DefaultTimeout();
3924await client.BeginUploadStreamAsync("invocationId", nameof(MethodHub.TestTypeCastingErrors), new[] { "channelId" }, Array.Empty<object>()).DefaultTimeout();
4000await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.TestCustomErrorPassing), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
4020await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id", "id2" }, args: Array.Empty<object>()).DefaultTimeout();
4039await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: Array.Empty<string>(), args: Array.Empty<object>()).DefaultTimeout();
4062await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
4104await client.BeginUploadStreamAsync(invocationId: null, nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
4137await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadIgnoreItems), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
4174await client.SendStreamInvocationAsync(nameof(MethodHub.StreamAndUploadIgnoreItems), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
4421var messagePromise = client.StreamAsync(nameof(StreamingHub.StreamEcho), new[] { streamId }, Array.Empty<object>()).DefaultTimeout();
4574await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadDoesWorkOnComplete), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.AspNetCore.StaticAssets (17)
StaticAssetsManifestJsonContext.StaticAssetDescriptor.g.cs (6)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetProperty("Route", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetProperty("AssetPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
112AttributeProviderFactory = 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),
134AttributeProviderFactory = 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),
156AttributeProviderFactory = 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),
StaticAssetsManifestJsonContext.StaticAssetProperty.g.cs (2)
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
StaticAssetsManifestJsonContext.StaticAssetResponseHeader.g.cs (2)
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
StaticAssetsManifestJsonContext.StaticAssetSelector.g.cs (3)
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector).GetProperty("Quality", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
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),
66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetsManifest).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetsManifest).GetProperty("ManifestType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
108AttributeProviderFactory = 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.TestHost (5)
Microsoft.AspNetCore.TestHost.Tests (1)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities (3)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (6)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.WebUtilities.Tests (6)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.Build.Tasks.CodeAnalysis (4)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (4)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
Microsoft.Cci.Extensions (5)
Microsoft.CodeAnalysis (123)
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\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);
Microsoft.CodeAnalysis.Analyzers (73)
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\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\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);
Microsoft.CodeAnalysis.AnalyzerUtilities (68)
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\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\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAbstractValue.ValuePool.cs (1)
30Array.Sort(values);
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);
Microsoft.CodeAnalysis.BannedApiAnalyzers (73)
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\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\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);
Microsoft.CodeAnalysis.CodeStyle (68)
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\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\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);
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
Microsoft.CodeAnalysis.Collections.Package (43)
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);
Microsoft.CodeAnalysis.CSharp (31)
Generated\BoundNodes.xml.Generated.cs (5)
15332new TreeDumperNode("boundDimensionsOpt", null, node.BoundDimensionsOpt.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.BoundDimensionsOpt select Visit(x, null)),
15938new TreeDumperNode("argumentsOpt", null, node.ArgumentsOpt.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.ArgumentsOpt select Visit(x, null)),
15985public override TreeDumperNode VisitYieldBreakStatement(BoundYieldBreakStatement node, object? arg) => new TreeDumperNode("yieldBreakStatement", null, Array.Empty<TreeDumperNode>()
17140new TreeDumperNode("deconstruction", null, node.Deconstruction.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.Deconstruction select Visit(x, null)),
17141new TreeDumperNode("properties", null, node.Properties.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.Properties select Visit(x, null)),
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>());
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
43nameof(Array),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (15)
Emit\NumericIntPtrTests.cs (15)
2415comp.VerifyDiagnostics(expectedError is null ? Array.Empty<DiagnosticDescription>() : new[] { expectedError });
5993Array.Empty<DiagnosticDescription>() :
6062unaryOperator(op, opType, opType, expectedSymbol, operand, expectedResult, expectedIL, diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>());
6287return diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>();
6661return diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>();
7061binaryOperator(op, leftType, rightType, expectedSymbol, diagnostics ?? Array.Empty<DiagnosticDescription>());
8898static DiagnosticDescription[] getNoDiagnostics(string opType, string op, string operand) => Array.Empty<DiagnosticDescription>();
8940constantExpression(opType, $"unchecked({expr})", expectedResultUnchecked, Array.Empty<DiagnosticDescription>());
8952constantExpression(opType, expr, expectedResult, Array.Empty<DiagnosticDescription>());
8953constantExpression(opType, $"checked({expr})", expectedResult, Array.Empty<DiagnosticDescription>());
8954constantExpression(opType, $"unchecked({expr})", expectedResult, Array.Empty<DiagnosticDescription>());
8994constantExpression(opType, $"unchecked({expr})", expectedResultUnchecked, Array.Empty<DiagnosticDescription>());
9006constantExpression(opType, expr, expectedResult, Array.Empty<DiagnosticDescription>());
9007constantExpression(opType, $"checked({expr})", expectedResult, Array.Empty<DiagnosticDescription>());
9008constantExpression(opType, $"unchecked({expr})", expectedResult, Array.Empty<DiagnosticDescription>());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (4)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
43nameof(Array),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (51)
EditAndContinue\LineEditTests.cs (45)
209Array.Empty<SequencePointUpdates>(),
446Array.Empty<SequencePointUpdates>(),
506Array.Empty<SequencePointUpdates>(),
540Array.Empty<SequencePointUpdates>(),
610Array.Empty<SequencePointUpdates>(),
615Array.Empty<SequencePointUpdates>(),
647Array.Empty<SequencePointUpdates>(),
652Array.Empty<SequencePointUpdates>(),
686Array.Empty<SequencePointUpdates>(),
750Array.Empty<SequencePointUpdates>(),
788Array.Empty<SequencePointUpdates>(),
825Array.Empty<SequencePointUpdates>(),
932Array.Empty<SequencePointUpdates>(),
1088Array.Empty<SequencePointUpdates>(),
1108Array.Empty<SequencePointUpdates>(),
1128Array.Empty<SequencePointUpdates>(),
1151Array.Empty<SequencePointUpdates>(),
1174Array.Empty<SequencePointUpdates>(),
1199Array.Empty<SequencePointUpdates>(),
1267Array.Empty<SequencePointUpdates>(),
1327Array.Empty<SequencePointUpdates>(),
1332Array.Empty<SequencePointUpdates>(),
1419Array.Empty<SequencePointUpdates>(),
1528Array.Empty<SequencePointUpdates>());
1552Array.Empty<SequencePointUpdates>());
1577Array.Empty<SequencePointUpdates>(),
1629Array.Empty<SequencePointUpdates>(),
1683Array.Empty<SequencePointUpdates>(),
1712Array.Empty<SequencePointUpdates>(),
1740Array.Empty<SequencePointUpdates>(),
1768Array.Empty<SequencePointUpdates>(),
1796Array.Empty<SequencePointUpdates>(),
1824Array.Empty<SequencePointUpdates>(),
1851Array.Empty<SequencePointUpdates>(),
1879Array.Empty<SequencePointUpdates>(),
1884Array.Empty<SequencePointUpdates>(),
1914Array.Empty<SequencePointUpdates>(),
1947Array.Empty<SequencePointUpdates>(),
2167Array.Empty<SequencePointUpdates>(),
2196Array.Empty<SequencePointUpdates>(),
2440Array.Empty<SequencePointUpdates>(),
2466Array.Empty<SequencePointUpdates>(),
2606Array.Empty<SequencePointUpdates>(),
2807Array.Empty<SequencePointUpdates>(),
2815Array.Empty<SequencePointUpdates>(),
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (18)
ObjectFormatterTests.cs (6)
429Array x = Array.CreateInstance(typeof(Object), lengths: new int[] { 2, 3 }, lowerBounds: new int[] { 2, 9 });
433Array y = Array.CreateInstance(typeof(Object), lengths: new int[] { 1, 1 }, lowerBounds: new int[] { 0, 0 });
437Array z = Array.CreateInstance(typeof(Object), lengths: new int[] { 0, 0 }, lowerBounds: new int[] { 0, 0 });
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (33)
Semantics\InheritanceBindingTests.cs (8)
5086CompileAndVerifyDiagnostics(text1, text2, Array.Empty<ErrorDescription>(), new ErrorDescription[] {
5107CompileAndVerifyDiagnostics(text1, text2, Array.Empty<ErrorDescription>(), new ErrorDescription[] {
5128CompileAndVerifyDiagnostics(text1, text2, Array.Empty<ErrorDescription>(), new ErrorDescription[] {
5149CompileAndVerifyDiagnostics(text1, text2, Array.Empty<ErrorDescription>(), new ErrorDescription[] {
5538CompileAndVerifyDiagnostics(text1, text2, Array.Empty<ErrorDescription>(), new ErrorDescription[] {
5605CompileAndVerifyDiagnostics(text1, text2, Array.Empty<ErrorDescription>(), new ErrorDescription[] {
5672CompileAndVerifyDiagnostics(text1, text2, Array.Empty<ErrorDescription>(), new ErrorDescription[] {
5739CompileAndVerifyDiagnostics(text1, text2, Array.Empty<ErrorDescription>(), new ErrorDescription[] {
Semantics\NativeIntegerTests.cs (16)
2435var compA = CreateVisualBasicCompilation(sourceA, referencedAssemblies: Array.Empty<MetadataReference>());
6551comp.VerifyDiagnostics(expectedError is null ? Array.Empty<DiagnosticDescription>() : new[] { expectedError });
9479Array.Empty<DiagnosticDescription>() :
9544unaryOperator(op, opType, opType, expectedSymbol, operand, expectedResult, expectedIL, diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>());
9764return diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>();
10139return diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>();
10518binaryOperator(op, leftType, rightType, expectedSymbol, diagnostics ?? Array.Empty<DiagnosticDescription>());
13148static DiagnosticDescription[] getNoDiagnostics(string opType, string op, string operand) => Array.Empty<DiagnosticDescription>();
13190constantExpression(opType, $"unchecked({expr})", expectedResultUnchecked, Array.Empty<DiagnosticDescription>());
13202constantExpression(opType, expr, expectedResult, Array.Empty<DiagnosticDescription>());
13203constantExpression(opType, $"checked({expr})", expectedResult, Array.Empty<DiagnosticDescription>());
13204constantExpression(opType, $"unchecked({expr})", expectedResult, Array.Empty<DiagnosticDescription>());
13244constantExpression(opType, $"unchecked({expr})", expectedResultUnchecked, Array.Empty<DiagnosticDescription>());
13256constantExpression(opType, expr, expectedResult, Array.Empty<DiagnosticDescription>());
13257constantExpression(opType, $"checked({expr})", expectedResult, Array.Empty<DiagnosticDescription>());
13258constantExpression(opType, $"unchecked({expr})", expectedResult, Array.Empty<DiagnosticDescription>());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Symbols\DefaultInterfaceImplementationTests.cs (6)
9440ValidateMethodModifiers_10_02(source1, source2, accessibility, expectedIn9, expectedIn9AcrossAssemblyBoundaries: expectedIn9, expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>());
12499expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>(),
14915ValidatePropertyModifiers_11_01(source1, source2, accessibility, expectedIn9, expectedNoImplementation, expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>());
15959ValidatePropertyModifiers_11_11(source1, source2, expectedIn9, expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>());
18463ValidatePropertyModifiers_23(source1, source2, getAccess, setAccess, expectedIn9, expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>());
28424ValidateEventModifiers_11(source1, source2, accessibility, expectedIn9, expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>(), expectedNoImplementation);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (8)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (4)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (9)
Microsoft.CodeAnalysis.Extensions.Package (44)
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);
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Microsoft.CodeAnalysis.Features (6)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.InteractiveHost (45)
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);
Microsoft.CodeAnalysis.LanguageServer (24)
RunFileApiJsonSerializerContext.Error.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiOutput.Error).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiOutput.Error).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiOutput.Error).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
112AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
RunFileApiJsonSerializerContext.GetProject.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiInput.GetProject).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiInput.GetProject).GetProperty("ArtifactsPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiInput.GetProject).GetProperty("EntryPointFileFullPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
RunFileApiJsonSerializerContext.LinePositionInternal.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.LinePositionInternal).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.LinePositionInternal).GetProperty("Line", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.LinePositionInternal).GetProperty("Character", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
RunFileApiJsonSerializerContext.LinePositionSpanInternal.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.LinePositionSpanInternal).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.LinePositionSpanInternal).GetProperty("Start", InstanceMemberBindingFlags, null, typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.LinePositionInternal), global::System.Array.Empty<global::System.Type>(), null),
86AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.LinePositionSpanInternal).GetProperty("End", InstanceMemberBindingFlags, null, typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.LinePositionInternal), global::System.Array.Empty<global::System.Type>(), null),
RunFileApiJsonSerializerContext.Position.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic.Position).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic.Position).GetProperty("Path", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
88AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic.Position).GetProperty("Span", InstanceMemberBindingFlags, null, typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.LinePositionSpanInternal), global::System.Array.Empty<global::System.Type>(), null),
RunFileApiJsonSerializerContext.Project.g.cs (4)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiOutput.Project).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiOutput.Project).GetProperty("Content", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
89AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiOutput.Project).GetProperty("Diagnostics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableArray<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic>), global::System.Array.Empty<global::System.Type>(), null),
110AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
RunFileApiJsonSerializerContext.SimpleDiagnostic.g.cs (3)
35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
66AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic).GetProperty("Location", InstanceMemberBindingFlags, null, typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic.Position), global::System.Array.Empty<global::System.Type>(), null),
87AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (74)
Microsoft.CodeAnalysis.PublicApiAnalyzers (67)
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\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\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);
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (3)
Microsoft.CodeAnalysis.Rebuild.UnitTests (4)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (70)
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\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\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);
Microsoft.CodeAnalysis.Scripting (17)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
Microsoft.CodeAnalysis.Test.Utilities (9)
Microsoft.CodeAnalysis.Threading.Package (43)
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);
Microsoft.CodeAnalysis.UnitTests (49)
Collections\ImmutableSetTest.cs (14)
193string[] array = Array.Empty<string>();
298new SetTriad(SetWith<int>(), Array.Empty<int>(), true),
304new SetTriad(SetWith<int>(5), Array.Empty<int>(), false),
316new SetTriad(Array.Empty<int>(), Array.Empty<int>(), false),
317new SetTriad(new int[] { 1 }, Array.Empty<int>(), false),
321new SetTriad(Array.Empty<int>(), new int[] { 1 }, true),
329new SetTriad(Array.Empty<int>(), Array.Empty<int>(), true),
332new SetTriad(new int[] { 1 }, Array.Empty<int>(), false),
347new SetTriad(Array.Empty<int>(), Array.Empty<int>(), false),
348new SetTriad(Array.Empty<int>(), new int[] { 1 }, false),
452Array.Sort(values, comparer);
Collections\SegmentedArrayTests.cs (5)
64Assert.Throws<NullReferenceException>(() => data.CopyTo(Array.Empty<IntPtr>(), 0));
65Assert.Throws<NullReferenceException>(() => ((ICollection<IntPtr>)data).CopyTo(Array.Empty<IntPtr>(), 0));
99Assert.Same(Array.Empty<byte[]>(), SegmentedCollectionsMarshal.AsSegments(new SegmentedArray<byte>(0)));
223Array.Copy(array, sourceStart, array, destinationStart, length);
231Array.Copy(array, sourceStart, array, destinationStart, length);
Microsoft.CodeAnalysis.VisualBasic (6)
Microsoft.CodeAnalysis.Workspaces (80)
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);
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\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\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);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (62)
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\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\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);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (14)
XxHash128Tests.cs (5)
59Array.Clear(destination, 0, destination.Length);
64Array.Clear(destination, 0, destination.Length);
72Array.Clear(destination, 0, destination.Length);
76Array.Clear(destination, 0, destination.Length);
131Array.Clear(destination, 0, destination.Length);
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (2)
Microsoft.CSharp (23)
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.Data.Analysis (2)
Microsoft.Data.Analysis.Tests (2)
Microsoft.DotNet.Baselines.Tasks (1)
Microsoft.DotNet.Build.Tasks.Feed (2)
Microsoft.DotNet.Build.Tasks.Feed.Tests (6)
Microsoft.DotNet.Build.Tasks.Installers (10)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (8)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.Helix.Client (3)
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.NuGetRepack.Tasks (2)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.RemoteExecutor (6)
Microsoft.DotNet.SharedFramework.Sdk (2)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.SignTool.Tests (20)
Microsoft.DotNet.StrongName (5)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Microsoft.DotNet.XliffTasks (1)
Microsoft.DotNet.XUnitAssert.Tests (16)
EqualityAssertsTests.cs (16)
970 var expected = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
972 var actual = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
981 var expected = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
983 var actual = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 0 });
3273 var expected = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
3275 var actual = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
3293 var expected = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
3295 var actual = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 0 });
Microsoft.DotNet.XUnitExtensions (5)
Microsoft.DotNet.XUnitV3Extensions (5)
Microsoft.Extensions.AI (8)
Microsoft.Extensions.AI.Abstractions (5)
Microsoft.Extensions.AI.Abstractions.Tests (3)
Microsoft.Extensions.AI.AzureAIInference (3)
Microsoft.Extensions.AI.Evaluation.NLP (1)
Microsoft.Extensions.AI.Evaluation.NLP.Tests (1)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Tests (2)
Microsoft.Extensions.AsyncState.Tests (1)
Microsoft.Extensions.Caching.Hybrid (2)
Microsoft.Extensions.Caching.SqlServer (1)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (3)
Microsoft.Extensions.Compliance.Abstractions (1)
Microsoft.Extensions.Compliance.Abstractions.Tests (3)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Compliance.Redaction.Tests (1)
Microsoft.Extensions.Configuration.Binder (9)
ConfigurationBinder.cs (9)
366Array a = Array.CreateInstance(type.GetElementType()!, byteArray.Length + convertedByteArray.Length);
367Array.Copy(byteArray, a, byteArray.Length);
368Array.Copy(convertedByteArray, 0, a, byteArray.Length, convertedByteArray.Length);
518bindingPoint.TrySetValue(configValue is null ? null : Array.CreateInstance(type.IsArray ? type.GetElementType()! : type.GetGenericArguments()[0], 0));
842private static Array BindArray(Type type, IEnumerable? source, IConfiguration config, BinderOptions options)
894Array result = Array.CreateInstance(elementType, list.Count);
1013result = value == string.Empty ? Array.Empty<byte>() : Convert.FromBase64String(value);
Microsoft.Extensions.Configuration.CommandLine (1)
Microsoft.Extensions.DataIngestion (1)
Microsoft.Extensions.DependencyInjection (11)
Microsoft.Extensions.DependencyModel (3)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (8)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
Microsoft.Extensions.FileProviders.Composite (1)
Microsoft.Extensions.FileProviders.Embedded (4)
Microsoft.Extensions.FileProviders.Embedded.Tests (4)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Http.Diagnostics (7)
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)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Logging (2)
Microsoft.Extensions.Logging.Abstractions (3)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.Console (5)
Microsoft.Extensions.Logging.EventSource (2)
Microsoft.Extensions.Logging.Generators (7)
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (6)
Microsoft.Extensions.ServiceDiscovery (2)
Microsoft.Extensions.ServiceDiscovery.Dns (3)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (2)
Microsoft.Extensions.Telemetry (11)
Microsoft.Extensions.Telemetry.Abstractions (9)
Microsoft.Extensions.Telemetry.Tests (17)
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>(),
Microsoft.Extensions.Validation.Tests (2)
Microsoft.Gen.BuildMetadata (1)
Microsoft.Gen.BuildMetadata.Unit.Tests (4)
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (3)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.Gen.Logging.Unit.Tests (5)
Microsoft.Gen.MetadataExtractor (3)
Microsoft.Gen.MetadataExtractor.Unit.Tests (3)
Microsoft.Gen.Metrics (3)
Microsoft.Gen.Metrics.Unit.Tests (3)
Microsoft.Gen.MetricsReports (3)
Microsoft.Gen.MetricsReports.Unit.Tests (4)
Microsoft.Interop.JavaScript.JSImportGenerator (3)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.SourceGeneration (17)
Microsoft.JSInterop (5)
Microsoft.JSInterop.Tests (9)
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);
Microsoft.Maui.Controls (30)
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);
Microsoft.Maui.Controls.BindingSourceGen (1)
Microsoft.Maui.Controls.Foldable (3)
Microsoft.Maui.Controls.SourceGen (3)
Microsoft.Maui.Controls.Xaml (8)
Microsoft.Maui.Essentials (2)
Microsoft.Maui.Graphics (3)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.AutoML (14)
Microsoft.ML.AutoML.Tests (1)
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\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\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)
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)
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\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);
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));
Microsoft.ML.DataView (1)
Microsoft.ML.Ensemble (5)
Microsoft.ML.EntryPoints (3)
Microsoft.ML.FastTree (79)
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)
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,
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]);
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\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)
Microsoft.ML.GenAI.LLaMA (1)
Microsoft.ML.GenAI.Phi (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.KMeansClustering (1)
Microsoft.ML.LightGbm (1)
Microsoft.ML.Parquet (1)
Microsoft.ML.PCA (4)
Microsoft.ML.Samples (1)
Microsoft.ML.Samples.GPU (1)
Microsoft.ML.Samples.OneDal (3)
Microsoft.ML.SearchSpace (1)
Microsoft.ML.SearchSpace.Tests (1)
Microsoft.ML.StandardTrainers (17)
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)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.TensorFlow.Tests (6)
Microsoft.ML.TestFramework (3)
Microsoft.ML.Tests (8)
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);
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);
Microsoft.ML.Tokenizers (8)
Microsoft.ML.Tokenizers.Tests (15)
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)
Microsoft.ML.Transforms (23)
Microsoft.ML.Vision (2)
Microsoft.VisualBasic.Core (37)
Microsoft.VisualBasic.Tests (1)
Microsoft.VisualStudio.LanguageServices (2)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.Implementation (6)
mscorlib (1)
Mvc.Api.Analyzers.Test (2)
netstandard (1)
PresentationBuildTasks (12)
PresentationCore (184)
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);
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\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\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\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);
PresentationCore.Tests (3)
PresentationFramework (148)
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\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);
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\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\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\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\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);
PresentationFramework.Tests (1)
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)
ReachFramework (31)
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);
Replay (1)
Roslyn.Diagnostics.Analyzers (73)
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\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\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);
Roslyn.Test.PdbUtilities (2)
Shared (11)
Shared.Tests (3)
Sockets.BindTests (2)
Sockets.FunctionalTests (2)
System.CodeDom (2)
System.Collections (68)
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\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\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\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.Immutable (161)
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);
569Array.Copy(_elements, index + 1, _elements, index, this.Count - index - 1);
596Array.Clear(_elements, index, length); // Clear the elements so that the gc can reclaim the references.
599Array.Copy(_elements, index + length, _elements, index, this.Count - index - length);
691Array.Copy(_elements, result, this.Count);
704Array.Copy(_elements, 0, array, index, this.Count);
714Array.Copy(_elements, 0, destination, 0, this.Count);
730Array.Copy(_elements, sourceIndex, destination, destinationIndex, length);
742Array.Resize(ref _elements, newCapacity);
805return Array.IndexOf(_elements, item, startIndex, count);
902return Array.LastIndexOf(_elements, item, startIndex, count);
924Array.Reverse<T>(_elements, 0, _count);
949Array.Sort(_elements, 0, this.Count, Comparer<T>.Default);
989Array.Sort(_elements, 0, _count, comparer);
1008Array.Sort(_elements, index, count, comparer);
1088Array.Copy(_elements, copied + removed, _elements, copied, copyLength);
1094Array.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)
204Array? IImmutableArray.Array
230Array.Copy(self.array, destination, self.Length);
242Array.Copy(self.array, 0, destination, destinationIndex, self.Length);
256Array.Copy(self.array, sourceIndex, destination, destinationIndex, length);
System.Collections.NonGeneric (54)
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\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.Specialized (13)
System.ComponentModel.Annotations (8)
System.ComponentModel.Composition (33)
System.ComponentModel.TypeConverter (68)
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\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\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.Composition.AttributedModel (1)
System.Composition.Hosting (7)
System.Composition.TypedParts (9)
System.Configuration.ConfigurationManager (14)
System.Console (2)
System.Data.Common (129)
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\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.Odbc (18)
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);
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.OleDb (3)
System.Diagnostics.DiagnosticSource (15)
System.Diagnostics.EventLog (1)
System.Diagnostics.Process (11)
System.Diagnostics.TraceSource (4)
System.DirectoryServices (3)
System.DirectoryServices.AccountManagement (2)
System.DirectoryServices.Protocols (20)
System.Drawing.Common (14)
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.Common.Tests (49)
System\Drawing\GraphicsTests.cs (4)
1883AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, Array.Empty<Point>()));
1884AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, Array.Empty<PointF>()));
2131AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawRectangles(pen, Array.Empty<Rectangle>()));
2132AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawRectangles(pen, Array.Empty<RectangleF>()));
System\Drawing\Imaging\EncoderParameterTests.cs (10)
275yield return new object[] { new Action(() => new EncoderParameter(null, Array.Empty<byte>())) };
277yield return new object[] { new Action(() => new EncoderParameter(null, Array.Empty<short>())) };
278yield return new object[] { new Action(() => new EncoderParameter(null, Array.Empty<long>())) };
279yield return new object[] { new Action(() => new EncoderParameter(null, Array.Empty<int>(), [])) };
280yield return new object[] { new Action(() => new EncoderParameter(null, Array.Empty<long>(), [])) };
294Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, Array.Empty<byte>()));
296Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, Array.Empty<short>()));
297Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, Array.Empty<long>()));
298Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, Array.Empty<int>(), []));
299Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, Array.Empty<long>(), []));
System.Formats.Asn1 (5)
System.Formats.Cbor (3)
System.Formats.Nrbf (19)
System.Formats.Tar (3)
System.IO.Compression (12)
System.IO.FileSystem.Watcher (4)
System.IO.Packaging (4)
System.IO.Pipelines (1)
System.Linq (14)
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.AsyncEnumerable (7)
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 (72)
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\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.Linq.Parallel (6)
System.Management (4)
System.Memory (7)
System.Net.Http (79)
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\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.HttpListener (8)
System.Net.Mail (9)
System.Net.NameResolution (12)
System.Net.NetworkInformation (10)
System.Net.Ping (2)
System.Net.Primitives (4)
System.Net.Quic (6)
System.Net.Requests (5)
System.Net.Security (21)
System.Net.ServerSentEvents (4)
System.Net.Sockets (8)
System.Net.WebClient (2)
System.Net.WebHeaderCollection (1)
System.Net.WebProxy (2)
System.Net.WebSockets (2)
System.Numerics.Tensors (12)
System.ObjectModel (3)
System.Private.CoreLib (622)
src\libraries\System.Private.CoreLib\src\System\Array.cs (80)
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)
360public 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 unsafe void Copy(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
432private static unsafe void CopyImpl(Array? sourceArray, int sourceIndex, Array? destinationArray, int destinationIndex, int length, bool reliable)
484private static void CopySlow(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length, ArrayAssignType assignType)
529private static unsafe void CopyImplUnBoxEachElement(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
574private static unsafe void CopyImplBoxEachElement(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
599private static unsafe void CopyImplCastCheckEachElement(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
625private static unsafe void CopyImplPrimitiveWiden(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
659public static unsafe void Clear(Array array)
684public static unsafe void Clear(Array array, int index, int length)
1085Array? o = other as Array;
1119if (other is not Array o || o.Length != this.Length)
1168public static int BinarySearch(Array array, object? value)
1188public static int BinarySearch(Array array, int index, int length, object? value)
1207public static int BinarySearch(Array array, object? value, IComparer? comparer)
1229public static int BinarySearch(Array array, int index, int length, object? value, IComparer? comparer)
1338static int GenericBinarySearch<T>(Array array, int adjustedIndex, int length, object value) where T : struct, IComparable<T>
1432public void CopyTo(Array array, int index)
1440public void CopyTo(Array array, long index)
1723public static int IndexOf(Array array, object? value)
1736public static int IndexOf(Array array, object? value, int startIndex)
1750public static int IndexOf(Array array, object? value, int startIndex, int count)
1834static int GenericIndexOf<T>(Array array, object value, int adjustedIndex, int length) where T : struct, IEquatable<T>
1944public static int LastIndexOf(Array array, object? value)
1957public static int LastIndexOf(Array array, object? value, int startIndex)
1971public static int LastIndexOf(Array array, object? value, int startIndex, int count)
2061static int GenericLastIndexOf<T>(Array array, object value, int adjustedIndex, int length) where T : struct, IEquatable<T>
2197public static void Reverse(Array array)
2210public static void Reverse(Array array, int index, int length)
2304public static void Sort(Array array)
2317public static void Sort(Array keys, Array? items)
2328public static void Sort(Array array, int index, int length)
2339public static void Sort(Array keys, Array? items, int index, int length)
2350public static void Sort(Array array, IComparer? comparer)
2365public static void Sort(Array keys, Array? items, IComparer? comparer)
2378public static void Sort(Array array, int index, int length, IComparer? comparer)
2391public static void Sort(Array keys, Array? items, int index, int length, IComparer? comparer)
2473static void GenericSort<T>(Array keys, Array? items, int adjustedIndex, int length) where T : struct
2844private readonly Array keys;
2845private readonly Array? items;
2848internal SorterGenericArray(Array keys, Array? items, IComparer comparer)
3055private static Span<T> UnsafeArrayAsSpan<T>(Array array, int adjustedIndex, int length) =>
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\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (62)
30_items = Array.Empty<object>();
42_items = Array.Empty<object>();
58_items = Array.Empty<object>();
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);
668return Array.Empty<object>();
671Array.Copy(_items, array, _size);
681public virtual Array ToArray(Type type)
685Array array = Array.CreateInstance(type, _size);
686Array.Copy(_items, array, _size);
813public override void CopyTo(Array array, int index)
818public override void CopyTo(int index, Array array, int arrayIndex, int count)
1041Array.Sort(array, 0, count, comparer);
1052return Array.Empty<object?>();
1060public override Array ToArray(Type type)
1064Array array = Array.CreateInstance(type, _list.Count);
1268public override void CopyTo(Array array)
1276public override void CopyTo(Array array, int index)
1284public override void CopyTo(int index, Array array, int arrayIndex, int count)
1453public override Array ToArray(Type type)
1539public void CopyTo(Array array, int index)
1628public void CopyTo(Array array, int index)
1727public override void CopyTo(Array array, int index)
1732public override void CopyTo(int index, Array array, int arrayIndex, int count)
1836public override Array ToArray(Type type)
1887public void CopyTo(Array array, int index)
1982public override void CopyTo(Array array, int index)
1987public override void CopyTo(int index, Array array, int arrayIndex, int count)
2088public override Array ToArray(Type type)
2277public override void CopyTo(Array array, int index)
2291public override void CopyTo(int index, Array array, int arrayIndex, int count)
2526return Array.Empty<object?>();
2533public override Array ToArray(Type type)
2538Array array = Array.CreateInstance(type, _baseSize);
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\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (21)
34_array = Array.Empty<T>();
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;
290return Array.Empty<T>();
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\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\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (4)
93parameters = Array.Empty<EventParameterInfo>();
124parameters = Array.Empty<EventParameterInfo>();
172return GenerateMetadata(eventId, eventName, keywords, level, version, opcode, Array.Empty<EventParameterInfo>());
202return GenerateMetadata(eventId, eventName, keywords, level, version, opcode, Array.Empty<EventParameterInfo>());
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (15)
37private static int MemStreamMaxLength => Array.MaxLength;
49_buffer = capacity != 0 ? new byte[capacity] : Array.Empty<byte>();
149if ((uint)(_capacity * 2) > Array.MaxLength)
151newCapacity = Math.Max(value, Array.MaxLength);
286_buffer = Array.Empty<byte>();
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);
573return Array.Empty<byte>();
603Array.Clear(_buffer, _length, i - _length);
654Array.Clear(_buffer, _length, i - _length);
736Array.Clear(_buffer, _length, _position - _length);
src\libraries\System.Private.CoreLib\src\System\SearchValues\EmptySearchValues.cs (1)
10Array.Empty<T>();
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\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (4)
5365signaledTaskIndex = Array.IndexOf(tasks, firstCompleted.Result);
6270return new Task<TResult[]>(false, Array.Empty<TResult>(), TaskCreationOptions.None, default);
6304new Task<TResult[]>(false, Array.Empty<TResult>(), TaskCreationOptions.None, default) :
6381return new Task<TResult[]>(false, Array.Empty<TResult>(), TaskCreationOptions.None, default);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (8)
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);
432s_assignableWorkItemQueueCount > 0 ? new int[s_assignableWorkItemQueueCount] : Array.Empty<int>();
src\System\Array.CoreCLR.cs (10)
22private static unsafe Array InternalCreate(RuntimeType elementType, int rank, int* pLengths, int* pLowerBounds)
24Array? retArray = null;
30private static unsafe Array InternalCreateFromArrayType(RuntimeType arrayType, int rank, int* pLengths, int* pLowerBounds)
32Array? retArray = null;
47Array? arr = null;
67private static unsafe ArrayAssignType CanAssignArrayType(Array sourceArray, Array destinationArray)
415Array.Copy(@this, 0, array, index, @this.Length);
463return Array.IndexOf(@this, value, 0, @this.Length) >= 0;
484return Array.IndexOf(@this, value, 0, @this.Length);
src\System\Reflection\Emit\CustomAttributeBuilder.cs (11)
35this(con, constructorArgs, Array.Empty<PropertyInfo>(), Array.Empty<object>(), Array.Empty<FieldInfo>(), Array.Empty<object>())
42this(con, constructorArgs, namedProperties, propertyValues, Array.Empty<FieldInfo>(), Array.Empty<object>())
49this(con, constructorArgs, Array.Empty<PropertyInfo>(), Array.Empty<object>(), namedFields, fieldValues)
83Array.Copy(constructorArgs, m_constructorArgs, constructorArgs.Length);
430Array a = (Array)value;
src\System\Reflection\Emit\RuntimeILGenerator.cs (8)
33Array.Copy(incoming, temp, incoming.Length);
200Array.Copy(m_ILStream, newBytes, m_length);
245Array.Copy(m_exceptions!, temp, m_exceptionCount);
262Array.Copy(m_ILStream, temp, m_ILStream.Length);
367Array.Copy(m_RelocFixupList!, narrowTokens, m_RelocFixupCount);
1581Array.Copy(m_iOffsets, temp, m_iCount);
1585Array.Copy(m_ScopeActions, tempSA, m_iCount);
1589Array.Copy(m_localSymInfos, tempLSI, m_iCount);
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (8)
101Array.Copy(parameterTypes, m_parameterTypes, parameterTypes.Length);
632Array.Copy(parameterTypes, m_parameterTypes, parameterTypes.Length);
749Array.Copy(m_namespace, strTemp, m_iNameSpaceCount);
771Array.Copy(m_iLocalSlot, temp, m_iLocalSymCount);
775Array.Copy(m_iStartOffset, temp, m_iLocalSymCount);
779Array.Copy(m_iEndOffset, temp, m_iLocalSymCount);
783Array.Copy(m_strName, strTemp, m_iLocalSymCount);
787Array.Copy(m_ubSignature, ubTemp, m_iLocalSymCount);
src\System\RuntimeType.CoreCLR.cs (13)
79return Array.Empty<T>();
83Array.Resize(ref _items, _count);
99Array.Copy(_items!, 0, array, index, _count);
122Array.Resize(ref _items, newCapacity);
447Array.Resize(ref m_allMembers, memberCount);
561Array.Resize(ref cachedMembers2, newSize);
757return Array.Empty<RuntimeConstructorInfo>();
1106return Array.Empty<RuntimeType>();
1635internal object[] GetEmptyArray() => _emptyArray ??= (object[])Array.CreateInstance(m_runtimeType, 0);
2810Array.Resize(ref im.InterfaceMethods, actualCount);
2811Array.Resize(ref im.TargetMethods, actualCount);
3878args ??= Array.Empty<object>();
3923Array.Resize(ref cons, consCount);
System.Private.CoreLib.Generators (14)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (12)
233return Array.Empty<INamedTypeSymbol>();
243return Array.Empty<INamedTypeSymbol>();
259Array.Copy(decomposedLeft, retVal, decomposedLeft.Length);
260Array.Copy(decomposedRight, 0, retVal, decomposedLeft.Length, decomposedRight.Length);
265return Array.Empty<INamedTypeSymbol>();
270return Array.Empty<INamedTypeSymbol>();
278return Array.Empty<INamedTypeSymbol[]>();
306return Array.Empty<INamedTypeSymbol[]>();
345return Array.Empty<INamedTypeSymbol[]>();
348Array.Copy(decomposedLeft, retVal, decomposedLeft.Length);
349Array.Copy(decomposedRight, 0, retVal, decomposedLeft.Length, decomposedRight.Length);
376return Array.Empty<INamedTypeSymbol[]>();
System.Private.DataContractSerialization (86)
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\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.Private.Uri (3)
System.Private.Windows.Core (24)
Windows\Win32\System\Variant\VARIANT.cs (12)
247private static Array? ToArray(SAFEARRAY* psa, VARENUM vt)
262Array array = CreateArrayFromSafeArray(psa, arrayType);
439private static void TransposeArray(SAFEARRAY* psa, Array array, VARENUM arrayType)
451static void StackTransposeArray(SAFEARRAY* psa, Array array, VARENUM arrayType)
459static void HeapTransposeArray(SAFEARRAY* psa, Array array, VARENUM arrayType)
467static void InternalTransposeArray(SAFEARRAY* psa, Array array, VARENUM arrayType, Span<int> indices, Span<int> lower, Span<int> upper)
504private static void SetArrayValue(SAFEARRAY* psa, Array array, Span<int> indices, Span<int> lowerBounds, VARENUM arrayType)
506static void SetValue<T>(Array array, T value, Span<int> indices, Span<int> lowerBounds)
621private static Array CreateArrayFromSafeArray(SAFEARRAY* psa, VARENUM vt)
674return Array.CreateInstance(elementType, (int)psa->GetBounds().cElements);
689return Array.CreateInstance(elementType, lengths, bounds);
867private static Span<T> GetSpan<T>(Array array)
System.Private.Windows.Core.Tests (10)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (9)
85public static TheoryData<Array> PrimitiveArrayObjects_TheoryData =>
231public void TryReadObjectFromStream_Primitives_BaseResolver(Array value)
244BinaryFormatUtilities.TryReadObjectFromStream(stream, in request, out Array? result).Should().BeTrue();
261Action action = () => BinaryFormatUtilities.TryReadObjectFromStream(stream, in request, out Array? _);
304BinaryFormatUtilities.TryReadObjectFromStream(stream, in request, out Array? result).Should().BeTrue();
388Array value = Array.CreateInstance(typeof(uint), lengths: [2, 3], lowerBounds: [1, 2]);
673Array value = Array.CreateInstance(typeof(uint), lengths: [2, 3], lowerBounds: [1, 2]);
System.Private.Windows.Core.TestUtilities (2)
System.Private.Xml (210)
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\Core\XmlTextReaderImpl.cs (8)
4502Array.Copy(_nodes, _index + 1, nameSortedAttributes, 0, _attrCount);
4503Array.Sort<object>(nameSortedAttributes, DtdDefaultAttributeInfoToNodeDataComparer.Instance);
5007Array.Copy(_nodes, _index + 1, _attrDuplSortingArray, 0, _attrCount);
5008Array.Sort(_attrDuplSortingArray, 0, _attrCount);
7641Array.Copy(_nodes, newNodes, _nodes.Length);
8104Array.Copy(_parsingStatesStack, newParsingStateStack, _parsingStatesStack.Length);
8136private int IncrementalRead(Array array, int index, int count)
9203if (Array.BinarySearch<object>(nameSortedNodeData, defAttrInfo, DtdDefaultAttributeInfoToNodeDataComparer.Instance) >= 0)
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\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;
2785item = typeof(Array).FullName!;
2802Writer.Write($"{RaCodeGen.GetReflectionVariable(typeof(Array).FullName!, "0")}[ci , i]");
3161Writer.Write(typeof(Array).FullName);
3469members = 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\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\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\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.Private.Xml.Linq (8)
System.Reflection.Context (12)
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.Emit (5)
System.Reflection.Metadata (10)
System.Reflection.MetadataLoadContext (87)
System.Resources.Extensions (8)
System.Resources.Writer (1)
System.Runtime (1)
System.Runtime.InteropServices (2)
System.Runtime.Numerics (9)
System.Runtime.Serialization.Formatters (12)
System.Runtime.Serialization.Schema (1)
System.Security.AccessControl (2)
System.Security.Cryptography (80)
System.Security.Cryptography.Pkcs (41)
System.Security.Cryptography.ProtectedData (1)
System.Security.Cryptography.Xml (9)
System.Security.Permissions (6)
System.ServiceModel.Http (3)
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.Primitives (63)
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\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\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.Text.Json (13)
System.Text.Json.SourceGeneration (6)
System.Text.RegularExpressions (22)
System\Text\RegularExpressions\RegexRunner.cs (3)
472Array.Copy(runtrack, 0, newtrack, runtrack.Length, runtrack.Length);
485Array.Copy(runstack, 0, newstack, runstack.Length, runstack.Length);
497Array.Copy(runcrawl, 0, newcrawl, runcrawl.Length, runcrawl.Length);
System.Text.RegularExpressions.Generator (6)
System.Threading.Channels (3)
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\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.Tasks.Dataflow (7)
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 (3)
System.Windows.Controls.Ribbon (1)
System.Windows.Forms (162)
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\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\PropertyGrid\PropertyGrid.cs (9)
1545Array.Copy(tabComponents, newComponents, oldArraySize);
2150return Array.Empty<Type>();
2155return Array.Empty<Type>();
2174return Array.Empty<Type>();
2494Array.Copy(_selectedObjects, 0, newObjects, 0, i);
2498Array.Copy(_selectedObjects, i + 1, newObjects, i, newObjects.Length - i);
3492index = Array.IndexOf(components, component);
3498Array.Copy(components, 0, newComponents, 0, index);
3499Array.Copy(components, index + 1, newComponents, index, components.Length - index - 1);
System.Windows.Forms.Analyzers.Tests (1)
System.Windows.Forms.Design (61)
System.Windows.Forms.Design.Tests (79)
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Primitives.Tests (258)
System.Windows.Forms.Tests (297)
System\Windows\Forms\DataObjectTests.cs (8)
723theoryData.Add(null, Array.Empty<string>());
724theoryData.Add(new(), Array.Empty<string>());
785{ Array.Empty<string>() },
808{ Array.Empty<string>() },
861{ true, Array.Empty<string>() },
864{ false, Array.Empty<string>() },
1043{ Array.Empty<byte>() },
1101{ new MemoryStream(Array.Empty<byte>()) },
System\Windows\Forms\Design\WindowsFormsComponentEditorTests.cs (6)
17yield return new object[] { Array.Empty<Type>(), null, null };
21yield return new object[] { Array.Empty<Type>(), new(), mockWindow.Object };
38yield return new object[] { Array.Empty<Type>(), null, null };
42yield return new object[] { Array.Empty<Type>(), mockContext.Object, new() };
59yield return new object[] { Array.Empty<Type>(), null, null, null };
64yield return new object[] { Array.Empty<Type>(), mockContext.Object, new(), mockWindow.Object };
System\Windows\Forms\ListBindingHelperTests.cs (42)
80yield return new object[] { new IEnumerableWrapper(Array.Empty<object>()), "NoSuchProperty" };
81yield return new object[] { new IEnumerableWrapper(Array.Empty<object>()), "Property" };
161yield return new object[] { new IEnumerableWrapper(Array.Empty<object>()), typeof(object) };
238yield return new object[] { null, Array.Empty<string>() };
239yield return new object[] { 1, Array.Empty<string>() };
240yield return new object[] { typeof(int), Array.Empty<string>() };
252yield return new object[] { new List<ICustomTypeDescriptor>(), Array.Empty<string>() };
256yield return new object[] { Array.Empty<DataClass>(), new string[] { "Property" } };
258yield return new object[] { Array.Empty<object>(), Array.Empty<string>() };
259yield return new object[] { new object[] { new DataClass() }, Array.Empty<string>() };
262yield return new object[] { new IEnumerableWrapper(Array.Empty<object>()), Array.Empty<string>() };
265yield return new object[] { new IEnumerableWrapper(new object[] { null }), Array.Empty<string>() };
268yield return new object[] { new ArrayList(), Array.Empty<string>() };
270yield return new object[] { new ArrayList { 1 }, Array.Empty<string>() };
271yield return new object[] { new ArrayList { null }, Array.Empty<string>() };
301properties = ListBindingHelper.GetListItemProperties(list, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>();
305properties = ListBindingHelper.GetListItemProperties(list, null, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>();
309properties = ListBindingHelper.GetListItemProperties(list, string.Empty, Array.Empty<PropertyDescriptor>())?.Cast<PropertyDescriptor>();
315yield return new object[] { null, TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
317yield return new object[] { new DataClass(), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
318yield return new object[] { typeof(DataClass), TypeDescriptor.GetProperties(typeof(DataClass)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
332yield return new object[] { new DataClass(), new PropertyDescriptor[] { null }, Array.Empty<string>() };
333yield return new object[] { typeof(DataClass), new PropertyDescriptor[] { null }, Array.Empty<string>() };
337yield return new object[] { new IEnumerableWrapper(Array.Empty<object>()), descriptors, new string[] { "Property" } };
352yield return new object[] { new ArrayList { new MultiListDataClass { ParentListProperty = [new() { ListProperty = [new()] }] } }, inner.Take(3).ToArray(), Array.Empty<string>() };
366yield return new object[] { new EnumerableITypedListImplementor[] { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
367yield return new object[] { new List<EnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
368yield return new object[] { new ArrayList { new EnumerableITypedListImplementor() }, TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
369yield return new object[] { new IEnumerableWrapper(new object[] { new EnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(EnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
374yield return new object[] { new NonEnumerableITypedListImplementor[] { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
375yield return new object[] { new List<NonEnumerableITypedListImplementor> { new() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
376yield return new object[] { new ArrayList { new NonEnumerableITypedListImplementor() }, TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
377yield return new object[] { new IEnumerableWrapper(new object[] { new NonEnumerableITypedListImplementor() }), TypeDescriptor.GetProperties(typeof(NonEnumerableITypedListImplementor)).Cast<PropertyDescriptor>().ToArray(), Array.Empty<string>() };
426yield return new object[] { new ListDataClass(), "listproperty", Array.Empty<PropertyDescriptor>(), new string[] { "Property" } };
429yield return new object[] { typeof(ListDataClass), "listproperty", Array.Empty<PropertyDescriptor>(), new string[] { "Property" } };
473yield return new object[] { 1, Array.Empty<PropertyDescriptor>(), "Int32" };
474yield return new object[] { typeof(int), Array.Empty<PropertyDescriptor>(), "Int32" };
478yield return new object[] { Array.Empty<int>(), null, "Int32" };
480yield return new object[] { Array.Empty<object>(), null, "Object" };
488yield return new object[] { typeof(Array), null, "Array" };
System\Windows\Forms\ListViewItemTests.cs (14)
47yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty };
85yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty };
123yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty };
161yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty };
198yield return new object[] { Array.Empty<ListViewItem.ListViewSubItem>(), null, null, string.Empty, string.Empty };
235yield return new object[] { Array.Empty<ListViewItem.ListViewSubItem>(), 0, null, string.Empty };
273yield return new object[] { Array.Empty<string>(), null, null, string.Empty, string.Empty };
311yield return new object[] { Array.Empty<string>(), 0, null, string.Empty };
424yield return new object[] { Array.Empty<ListViewItem.ListViewSubItem>(), null, string.Empty, string.Empty };
461yield return new object[] { Array.Empty<ListViewItem.ListViewSubItem>(), 0, string.Empty };
499yield return new object[] { Array.Empty<string>(), null, string.Empty };
537yield return new object[] { Array.Empty<string>(), null, string.Empty, string.Empty };
575yield return new object[] { Array.Empty<string>(), 0, string.Empty };
764yield return new object[] { Array.Empty<string>(), string.Empty };
System\Windows\Forms\RichTextBoxTests.cs (17)
4706yield return new object[] { 0, 0, 0, Array.Empty<char>(), string.Empty, 13, FontStyle.Regular };
6214yield return new object[] { 0, 3, new int[] { 900, 600, -900 }, Array.Empty<int>() };
6219yield return new object[] { PFM.ALIGNMENT, 3, new int[] { 900, 600, -900 }, Array.Empty<int>() };
6263yield return new object[] { null, Array.Empty<int>() };
6264yield return new object[] { Array.Empty<int>(), Array.Empty<int>() };
6269yield return new object[] { new int[] { 1, -1, 3 }, Array.Empty<int>() };
6324yield return new object[] { null, Array.Empty<int>() };
6325yield return new object[] { Array.Empty<int>(), Array.Empty<int>() };
6402yield return new object[] { Array.Empty<int>() };
8234yield return new object[] { string.Empty, Array.Empty<char>(), -1 };
8237yield return new object[] { "abc", Array.Empty<char>(), -1 };
8272yield return new object[] { string.Empty, Array.Empty<char>(), 0, -1 };
8275yield return new object[] { "abc", Array.Empty<char>(), 0, -1 };
8316yield return new object[] { string.Empty, Array.Empty<char>(), 0, end, -1 };
8319yield return new object[] { "abc", Array.Empty<char>(), 0, end, -1 };
System\Windows\Forms\TreeNodeTests.cs (6)
98TreeNode_Ctor_String_TreeNodeArray_Helper(null, Array.Empty<TreeNode>(), string.Empty);
99TreeNode_Ctor_String_TreeNodeArray_Helper(string.Empty, Array.Empty<TreeNode>(), string.Empty);
189TreeNode_Ctor_String_Int_Int_TreeNodeArray_Helper(null, -1, -1, Array.Empty<TreeNode>(), "");
190TreeNode_Ctor_String_Int_Int_TreeNodeArray_Helper(null, 0, 0, Array.Empty<TreeNode>(), "");
252Assert.Throws<ArgumentOutOfRangeException>("value", () => new TreeNode("text", imageIndex, 0, Array.Empty<TreeNode>()));
260Assert.Throws<ArgumentOutOfRangeException>("value", () => new TreeNode("text", 0, selectedImageIndex, Array.Empty<TreeNode>()));
System.Windows.Forms.UI.IntegrationTests (1)
System.Xaml (18)
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\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.Tests (94)
System\Xaml\Schema\XamlTypeInvokerTests.cs (20)
157Assert.Equal(1, Assert.IsType<PublicClass>(invoker.CreateInstance(Array.Empty<object>())).Value);
172Assert.Equal(1, Assert.IsType<PrivateClass>(invoker.CreateInstance(Array.Empty<object>())).Value);
180Assert.Equal(0, invoker.CreateInstance(Array.Empty<object>()));
188Assert.Throws<NotSupportedException>(() => invoker.CreateInstance(Array.Empty<object>()));
196Assert.Throws<MissingMethodException>(() => invoker.CreateInstance(Array.Empty<object>()));
249new XamlTypeInvoker(new XamlType(typeof(List<Array>), new XamlSchemaContext())),
251typeof(ICollection<Array>).GetMethod(nameof(ICollection<Array>.Add))
255new XamlTypeInvoker(new XamlType(typeof(List<Array>), new XamlSchemaContext())),
312new XamlType(typeof(Array), new XamlSchemaContext()),
322new XamlType(typeof(Array), new XamlSchemaContext()),
323type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(Array) })
329type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(Array) })
338new XamlType(typeof(Array), new XamlSchemaContext()),
343type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(Array) })
352new XamlType(typeof(Array), new XamlSchemaContext()),
366new XamlType(typeof(Array), new XamlSchemaContext()),
398public void Add(Array i) { }
408public void Add(Array i) { }
421public Array? Name { get; set; }
System\Xaml\Schema\XamlTypeNameTests.cs (13)
38yield return new object?[] { "", "", Array.Empty<XamlTypeName>() };
49Assert.Equal(typeArguments ?? Array.Empty<XamlTypeName>(), typeName.TypeArguments);
87yield return new object?[] { new XamlTypeName("namespace", "name[value]", Array.Empty<XamlTypeName>()), null, "{namespace}name[value]" };
197yield return new object[] { Array.Empty<XamlTypeName>(), "" };
231Assert.Throws<ArgumentNullException>("prefixLookup", () => XamlTypeName.ToString(Array.Empty<XamlTypeName>(), null));
236yield return new object[] { "name", "", "name", Array.Empty<XamlTypeName>() };
237yield return new object[] { " name ", "", "name", Array.Empty<XamlTypeName>() };
238yield return new object[] { "_name", "", "_name", Array.Empty<XamlTypeName>() };
239yield return new object[] { "prefix:name", "prefix", "name", Array.Empty<XamlTypeName>() };
240yield return new object[] { " prefix : name ", "prefix", "name", Array.Empty<XamlTypeName>() };
241yield return new object[] { "_aA.1e\u0300\u0903:_bB1ee\u0300\u0903", "_aA.1e\u0300\u0903", "_bB1ee\u0300\u0903", Array.Empty<XamlTypeName>() };
247yield return new object[] { "name[, ,]", "", "name[, ,]", Array.Empty<XamlTypeName>() };
248yield return new object[] { "name[][]", "", "name[][]", Array.Empty<XamlTypeName>() };
System\Xaml\XamlDirectiveTests.cs (5)
22yield return new object?[] { Array.Empty<string>(), "name", null, AllowedMemberLocations.None - 1 };
106yield return new object?[] { directive, new XamlDirective(Array.Empty<string>(), "name", type1, null, AllowedMemberLocations.Any), false };
150yield return new object[] { new XamlDirective(Array.Empty<string>(), "name", type, null, AllowedMemberLocations.Any), "name" };
250var converter = new SubXamlDirective(Array.Empty<string>(), "name", type, typeConverter, AllowedMemberLocations.Any);
258var converter = new SubXamlDirective(Array.Empty<string>(), "name", type, null!, AllowedMemberLocations.Any);
System\Xaml\XamlTypeTests.cs (39)
26yield return new object?[] { "unknownTypeNamespace", "unknownTypeName", Array.Empty<XamlType>(), new XamlSchemaContext() };
46Assert.Throws<ArgumentNullException>("unknownTypeNamespace", () => new XamlType(null, "unknownTypeName", Array.Empty<XamlType>(), new XamlSchemaContext()));
52Assert.Throws<ArgumentNullException>("unknownTypeName", () => new XamlType("unknownTypeNamespace", null, Array.Empty<XamlType>(), new XamlSchemaContext()));
76Assert.Throws<ArgumentNullException>("typeName", () => new SubXamlType(null!, Array.Empty<XamlType>(), new XamlSchemaContext()));
145Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlType("unknownTypeNamespace", "unknownTypeName", Array.Empty<XamlType>(), null));
148Assert.Throws<ArgumentNullException>("schemaContext", () => new SubXamlType("typeName", Array.Empty<XamlType>(), null));
190var type = new CustomXamlType(typeof(int), new XamlSchemaContext()) { GetXamlNamespacesResult = Array.Empty<string>() };
567GetCustomAttributesAction = (attributeType, inherit) => Array.Empty<object>()
726yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), Array.Empty<XamlMember>() };
727yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), Array.Empty<XamlMember>() };
728yield return new object?[] { new SubXamlType(typeof(EmptyClass), new XamlSchemaContext()), Array.Empty<XamlMember>() };
729yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), Array.Empty<XamlMember>() };
925AssertEqualXamlMembers(expectedGet ?? expectedLookup ?? Array.Empty<XamlMember>(), type.GetAllAttachableMembers());
941return (MethodInfo)underlyingGetter.Invoke(member, Array.Empty<object>())!;
947return (MethodInfo)underlyingSetter.Invoke(member, Array.Empty<object>())!;
1153yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), Array.Empty<XamlMember>() };
1154yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), Array.Empty<XamlMember>() };
1155yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), Array.Empty<XamlMember>() };
1156yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), Array.Empty<XamlMember>() };
1194Array.Empty<XamlMember>()
1240IEnumerable<XamlMember> expectedGetAllMembers = expectedGet ?? expectedLookup ?? Array.Empty<XamlMember>();
1297public Array? Property { get; set; }
1370GetCustomAttributesAction = (attributeType, inherit) => Array.Empty<object>()
1430Assert.Equal((type.IsCollection || type.IsDictionary) ? expected ?? Array.Empty<XamlType>() : null, type.AllowedContentTypes);
1965GetCustomAttributesAction = (attributeType, inherit) => Array.Empty<object>()
2164GetCustomAttributesAction = (attributeType, inherit) => Array.Empty<object>()
2218Assert.Equal(type.IsCollection ? expected ?? Array.Empty<XamlType>() : expected, type.ContentWrappers);
2351GetCustomAttributesAction = (attributeType, inherit) => Array.Empty<object>()
3209public void CopyTo(Array array, int index) => throw new NotImplementedException();
3277public void CopyTo(Array array, int index) => throw new NotImplementedException();
3314GetCustomAttributesAction = (attributeType, inherit) => Array.Empty<object>()
3690yield return new object?[] { new SubXamlType(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), 0, Array.Empty<XamlType>() };
3748GetCustomAttributesAction = (attributeType, inherit) => Array.Empty<object>()
3947GetCustomAttributesAction = (attributeType, inherit) => Array.Empty<object>()
4245GetCustomAttributesAction = (attributeType, inherit) => Array.Empty<object>()
4480GetCustomAttributesAction = (attributeType, inherit) => Array.Empty<object>()
4653GetCustomAttributesAction = (attributeType, inherit) => Array.Empty<object>()
4904foreach (byte[]? keyToken in new object?[] { null, Array.Empty<byte>(), new byte[] { 183, 122, 92, 86, 25, 52, 224, 138 } })
4946foreach (byte[]? keyToken in new object?[] { null, Array.Empty<byte>(), new byte[] { 183, 122, 92, 86, 25, 52, 224, 137 } })
Templates.Blazor.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
600Array.Clear(keyBytes, 0, keyBytes.Length);
601Array.Clear(pem, 0, pem.Length);
607Array.Clear(keyBytes, 0, keyBytes.Length);
608Array.Clear(pem, 0, pem.Length);
658Array.Clear(bytes, 0, bytes.Length);
686Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Templates.Blazor.WebAssembly.Auth.Tests (10)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
600Array.Clear(keyBytes, 0, keyBytes.Length);
601Array.Clear(pem, 0, pem.Length);
607Array.Clear(keyBytes, 0, keyBytes.Length);
608Array.Clear(pem, 0, pem.Length);
658Array.Clear(bytes, 0, bytes.Length);
686Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Templates.Blazor.WebAssembly.Tests (10)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
600Array.Clear(keyBytes, 0, keyBytes.Length);
601Array.Clear(pem, 0, pem.Length);
607Array.Clear(keyBytes, 0, keyBytes.Length);
608Array.Clear(pem, 0, pem.Length);
658Array.Clear(bytes, 0, bytes.Length);
686Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Templates.Mvc.Tests (10)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
600Array.Clear(keyBytes, 0, keyBytes.Length);
601Array.Clear(pem, 0, pem.Length);
607Array.Clear(keyBytes, 0, keyBytes.Length);
608Array.Clear(pem, 0, pem.Length);
658Array.Clear(bytes, 0, bytes.Length);
686Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Templates.Tests (10)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
600Array.Clear(keyBytes, 0, keyBytes.Length);
601Array.Clear(pem, 0, pem.Length);
607Array.Clear(keyBytes, 0, keyBytes.Length);
608Array.Clear(pem, 0, pem.Length);
658Array.Clear(bytes, 0, bytes.Length);
686Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Test.Utilities (68)
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\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\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);
Text.Analyzers (73)
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\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\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);
Text.Analyzers.UnitTests (1)
TlsFeaturesObserve (1)
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>()),
UIAutomationClientSideProviders (17)
UIAutomationTypes (10)
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)
VBCSCompiler (1)
VBCSCompiler.UnitTests (4)
Wasm.Performance.TestApp (6)
WindowsBase.Tests (8)
System\Windows\Media\MatrixTests.cs (4)
4686yield return new object[] { new Matrix(2, 3, 4, 5, 6, 7), Array.Empty<Point>(), Array.Empty<Point>() };
4779yield return new object[] { new Matrix(2, 3, 4, 5, 6, 7), Array.Empty<Vector>(), Array.Empty<Vector>() };
WinFormsControlsTest (2)
xunit.assert (5)