4022 instantiations of KeyValuePair
aspire (16)
Telemetry\AspireCliTelemetry.cs (16)
280tagsList.Add(new(TelemetryConstants.Tags.MacAddressHash, macAddressHashTask.Result));
281tagsList.Add(new(TelemetryConstants.Tags.DeviceId, deviceIdTask.Result));
284tagsList.Add(new(TelemetryConstants.Tags.InternalMicrosoft, internalMicrosoftResult.IsInternalMicrosoft));
287tagsList.Add(new(TelemetryConstants.Tags.InternalMicrosoftSource, internalMicrosoftResult.Source));
292tagsList.Add(new(TelemetryConstants.Tags.InternalMicrosoftAlias, internalMicrosoftResult.Alias));
297tagsList.Add(new(TelemetryConstants.Tags.InternalMicrosoftDomain, internalMicrosoftResult.Domain));
302tagsList.Add(new(TelemetryConstants.Tags.CliVersion, GetCliVersion()));
303tagsList.Add(new(TelemetryConstants.Tags.CliBuildId, GetCliBuildId()));
308tagsList.Add(new(TelemetryConstants.Tags.IdentityVersion, _executionContext.IdentityVersion));
309tagsList.Add(new(TelemetryConstants.Tags.IdentityChannel, _executionContext.IdentityChannel));
312tagsList.Add(new(TelemetryConstants.Tags.IdentityCommit, _executionContext.IdentityCommit));
318tagsList.Add(new(TelemetryConstants.Tags.CodingAgent, codingAgent));
321tagsList.Add(new(TelemetryConstants.Tags.DeploymentEnvironmentName, _ciEnvironmentDetector.IsCIEnvironment() ? "ci" : "local"));
323tagsList.Add(new(TelemetryConstants.Tags.OsName, GetOsName()));
324tagsList.Add(new(TelemetryConstants.Tags.OsType, GetOsType()));
325tagsList.Add(new(TelemetryConstants.Tags.OsVersion, Environment.OSVersion.Version.ToString()));
Aspire.Azure.AI.Inference.Tests (18)
AspireAzureAIInferenceEmbeddingsExtensionTests.cs (8)
24new KeyValuePair<string, string?>("ConnectionStrings:embedding", ConnectionString)
49new KeyValuePair<string, string?>("ConnectionStrings:embedding", "Endpoint=https://endpoint;Key=myAccount;DeploymentId=unused")
75new KeyValuePair<string, string?>("ConnectionStrings:embedding1", ConnectionString),
76new KeyValuePair<string, string?>("ConnectionStrings:embedding2", ConnectionString + "2")
96new KeyValuePair<string, string?>("ConnectionStrings:embedding", ConnectionString)
120new KeyValuePair<string, string?>("ConnectionStrings:embedding", ConnectionString)
151new KeyValuePair<string, string?>("ConnectionStrings:embedding", connectionString)
171new KeyValuePair<string, string?>("ConnectionStrings:embedding", connectionString)
AspireAzureAIInferenceExtensionTests.cs (8)
24new KeyValuePair<string, string?>("ConnectionStrings:inference", ConnectionString)
49new KeyValuePair<string, string?>("ConnectionStrings:inference", "Endpoint=https://endpoint;Key=myAccount;DeploymentId=unused")
75new KeyValuePair<string, string?>("ConnectionStrings:inference1", ConnectionString),
76new KeyValuePair<string, string?>("ConnectionStrings:inference2", ConnectionString + "2")
96new KeyValuePair<string, string?>("ConnectionStrings:inference", ConnectionString)
120new KeyValuePair<string, string?>("ConnectionStrings:inference", ConnectionString)
151new KeyValuePair<string, string?>("ConnectionStrings:inference", connectionString)
171new KeyValuePair<string, string?>("ConnectionStrings:inference", connectionString)
Aspire.Azure.AI.OpenAI.Tests (38)
AspireAzureAIOpenAIExtensionsTests.cs (9)
31new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString)
62new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString)
117new KeyValuePair<string, string?>("ConnectionStrings:openai", connectionString)
133new KeyValuePair<string, string?>("ConnectionStrings:openai1", ConnectionString),
134new KeyValuePair<string, string?>("ConnectionStrings:openai2", ConnectionString + "2"),
135new KeyValuePair<string, string?>("ConnectionStrings:openai3", ConnectionString + "3")
166new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString),
167new KeyValuePair<string, string?>($"Aspire:Azure:AI:OpenAI{key}:ClientOptions:UserAgentApplicationId", applicationId),
169new KeyValuePair<string, string?>($"Aspire:Azure:AI:OpenAI{key}:ClientOptions:NetworkTimeout", "00:00:02")
AspireAzureOpenAIClientBuilderChatClientExtensionsTests.cs (9)
21new("Aspire:Azure:AI:OpenAI:Endpoint", "https://aspireopenaitests.openai.azure.com/"),
22new("Aspire:Azure:AI:OpenAI:Deployment", "testdeployment1")
52new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake;{connectionStringKey}=testdeployment1")
80new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
108new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake;Deployment=testdeployment1;Model=something")
139new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
172new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake"),
173new("Aspire:Azure:AI:OpenAI:DisableTracing", disableOpenTelemetry.ToString()),
200new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
AspireAzureOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (9)
21new("Aspire:Azure:AI:OpenAI:Endpoint", "https://aspireopenaitests.openai.azure.com/"),
22new("Aspire:Azure:AI:OpenAI:Deployment", "testdeployment1")
52new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake;{connectionStringKey}=testdeployment1")
80new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
108new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake;Deployment=testdeployment1;Model=something")
139new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
172new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake"),
173new("Aspire:Azure:AI:OpenAI:DisableTracing", disableOpenTelemetry.ToString()),
200new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
AspireConfigurableOpenAIExtensionsTests.cs (9)
23new KeyValuePair<string, string?>("ConnectionStrings:openai", "IsAzure=false")
46new KeyValuePair<string, string?>("ConnectionStrings:openai", "Endpoint=https://aspireopenaitests.fake.com/;Key=fake;IsAzure=true")
73new KeyValuePair<string, string?>("ConnectionStrings:openai", "Endpoint=https://aspireopenaitests.fake.com/;Key=fake;IsAzure=false")
100new KeyValuePair<string, string?>("ConnectionStrings:openai", "Endpoint=https://aspireopenaitests.azure.com/;Key=fake")
128new KeyValuePair<string, string?>("ConnectionStrings:openai", $"Endpoint={domain};Key=fake")
146new KeyValuePair<string, string?>("ConnectionStrings:openai", "Endpoint=https://aspireopenaitests.azure.com/;Key=fake;IsAzure=false")
173new KeyValuePair<string, string?>("ConnectionStrings:openai", "Endpoint=;Key=fake;IsAzure=false")
200new KeyValuePair<string, string?>("ConnectionStrings:openai", "Key=fake;IsAzure=false")
227new KeyValuePair<string, string?>("ConnectionStrings:openai", "Endpoint=https://aspireopenaitests.azure.com/;Deployment=mymodel")
Aspire.Azure.Data.Tables.Tests (10)
AspireTablesExtensionsTests.cs (8)
23new KeyValuePair<string, string?>("ConnectionStrings:tables", ConnectionString)
50new KeyValuePair<string, string?>("ConnectionStrings:tables", "AccountName=unused;AccountKey=myAccountKey")
79new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Data:Tables", key, "ServiceUri"), "unused"),
80new KeyValuePair<string, string?>("ConnectionStrings:tables", ConnectionString)
108new KeyValuePair<string, string?>("ConnectionStrings:tables", ConformanceTests.ServiceUri)
133new KeyValuePair<string, string?>("ConnectionStrings:tables1", ConnectionString),
134new KeyValuePair<string, string?>("ConnectionStrings:tables2", "AccountName=account2;AccountKey=fake"),
135new KeyValuePair<string, string?>("ConnectionStrings:tables3", "AccountName=account3;AccountKey=fake")
Aspire.Azure.Messaging.EventHubs (1)
Aspire.Azure.Messaging.EventHubs.Tests (60)
AspireEventHubsExtensionsTests.cs (57)
84new KeyValuePair<string, string?>(
88new KeyValuePair<string, string?>(
92new KeyValuePair<string, string?>(
95new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString),
131new KeyValuePair<string, string?>(
135new KeyValuePair<string, string?>(
139new KeyValuePair<string, string?>(
143new KeyValuePair<string, string?>(
146new KeyValuePair<string, string?>(
150new KeyValuePair<string, string?>(
200new KeyValuePair<string, string?>(
204new KeyValuePair<string, string?>(
208new KeyValuePair<string, string?>(
212new KeyValuePair<string, string?>(
215new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString)
262new KeyValuePair<string, string?>(
266new KeyValuePair<string, string?>(
270new KeyValuePair<string, string?>(
274new KeyValuePair<string, string?>(
277new KeyValuePair<string, string?>(
281new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString),
328new KeyValuePair<string, string?>(
332new KeyValuePair<string, string?>(
336new KeyValuePair<string, string?>(
339new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString)
374new KeyValuePair<string, string?>(
378new KeyValuePair<string, string?>(
382new KeyValuePair<string, string?>(
387new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString)
423new KeyValuePair<string, string?>(
427new KeyValuePair<string, string?>(
431new KeyValuePair<string, string?>(
435new KeyValuePair<string, string?>(
441new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString),
505new KeyValuePair<string, string?>(
509new KeyValuePair<string, string?>(
513new KeyValuePair<string, string?>(
517new KeyValuePair<string, string?>(
522new KeyValuePair<string, string?>("ConnectionStrings:eh", EhConnectionString),
548new KeyValuePair<string, string?>("ConnectionStrings:eh1", EhConnectionString),
549new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:BlobContainerName", "checkpoints"),
550new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:PartitionId", "foo"),
552new KeyValuePair<string, string?>("ConnectionStrings:eh2", EhConnectionString.Replace("aspireeventhubstests", "aspireeventhubstests2")),
553new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh2:BlobContainerName", "checkpoints"),
554new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh2:PartitionId", "foo"),
556new KeyValuePair<string, string?>("ConnectionStrings:eh3", EhConnectionString.Replace("aspireeventhubstests", "aspireeventhubstests3")),
557new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh3:BlobContainerName", "checkpoints"),
558new KeyValuePair<string, string?>($"Aspire:Azure:Messaging:EventHubs:{s_clientTypes[clientIndex].Name}:eh3:PartitionId", "foo"),
595new KeyValuePair<string, string?>("ConnectionStrings:eh1", "Endpoint=sb://127.0.0.1:53589;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;"),
596new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:EventProcessorClient:EventHubName", "MyHub"),
643new KeyValuePair<string, string?>("ConnectionStrings:eh1", testInfo.TestConnectionString),
644new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:EventHubProducerClient:EventHubName", "NotInConnectionInfo"),
645new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:EventHubConsumerClient:EventHubName", "NotInConnectionInfo"),
646new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:EventProcessorClient:EventHubName", "NotInConnectionInfo"),
647new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:PartitionReceiver:EventHubName", "NotInConnectionInfo"),
648new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:PartitionReceiver:PartitionId", "foo"),
649new KeyValuePair<string, string?>("Aspire:Azure:Messaging:EventHubs:EventHubBufferedProducerClient:EventHubName", "NotInConnectionInfo"),
Aspire.Azure.Messaging.ServiceBus (1)
Aspire.Azure.Messaging.ServiceBus.Tests (18)
AspireServiceBusExtensionsTests.cs (12)
23new KeyValuePair<string, string?>("ConnectionStrings:sb", ConnectionString)
50new KeyValuePair<string, string?>("ConnectionStrings:sb", "Endpoint=sb://unused.servicebus.windows.net/;SharedAccessKeyName=fake;SharedAccessKey=fake")
79new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", key, "ConnectionString"), "unused"),
80new KeyValuePair<string, string?>("ConnectionStrings:sb", ConnectionString)
108new KeyValuePair<string, string?>("ConnectionStrings:sb", ConformanceTests.FullyQualifiedNamespace)
133new KeyValuePair<string, string?>("ConnectionStrings:sb1", ConnectionString),
134new KeyValuePair<string, string?>("ConnectionStrings:sb2", "Endpoint=sb://aspireservicebustests2.servicebus.windows.net/;SharedAccessKeyName=fake;SharedAccessKey=fake"),
135new KeyValuePair<string, string?>("ConnectionStrings:sb3", "Endpoint=sb://aspireservicebustests3.servicebus.windows.net/;SharedAccessKeyName=fake;SharedAccessKey=fake")
164new KeyValuePair<string, string?>("Aspire:Azure:Messaging:ServiceBus:ClientOptions:Identifier", "top-level-identifier"),
165new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", "sb", "ConnectionString"), ConnectionString),
166new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:ServiceBus", "sb", "ClientOptions:Identifier"), "local-identifier"),
201new KeyValuePair<string, string?>("ConnectionStrings:sb", connectionString)
Aspire.Azure.Messaging.WebPubSub (1)
Aspire.Azure.Messaging.WebPubSub.Tests (15)
AspireWebPubSubExtensionsTests.cs (13)
28new KeyValuePair<string, string?>("ConnectionStrings:wps", ConnectionString)
56new KeyValuePair<string, string?>("ConnectionStrings:wps", UnusedConnectionString)
93new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:WebPubSub", key, "ConnectionString"), "unused"),
94new KeyValuePair<string, string?>("ConnectionStrings:wps", ConnectionString)
123new KeyValuePair<string, string?>("ConnectionStrings:wps", ConformanceTests.Endpoint)
149new KeyValuePair<string, string?>("ConnectionStrings:wps", ConnectionString)
164new KeyValuePair<string, string?>("ConnectionStrings:wps", ConnectionString)
175new KeyValuePair<string, string?>("ConnectionStrings:wps", ConnectionString)
191new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:WebPubSub:wps", "hub1", "ConnectionString"), ConnectionString),
192new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Messaging:WebPubSub:wps", "hub2", "ConnectionString"), ConnectionString),
216new KeyValuePair<string, string?>("ConnectionStrings:wps", connectionStringWithHub)
246new KeyValuePair<string, string?>("ConnectionStrings:wps", connectionStringWithHub)
275new KeyValuePair<string, string?>("ConnectionStrings:wps", $"Endpoint={endpoint};AccessKey=fake;Hub=hub1;")
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (27)
AspireAzureEFPostgreSqlExtensionsTests.cs (16)
34new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
50new KeyValuePair<string, string?>("ConnectionStrings:npgsql", "unused")
71new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:ConnectionString", "unused"),
72new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
91new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString),
92new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:Retry", "true")
133new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString),
134new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableRetry", "true")
174new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
179new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:CommandTimeout", "123")
208new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
213new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:CommandTimeout", "400")
245new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString),
246new KeyValuePair<string, string?>("ConnectionStrings:npgsql2", connectionString2),
270new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
293new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
EnrichNpgsqlTests.cs (5)
61new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:Retry", "true")
154new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableRetry", "true")
201new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableRetry", "false")
356new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableTracing", "false"),
357new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:TestDbContext:DisableTracing", "true")
Aspire.Azure.Npgsql.Tests (13)
AspireAzurePostgreSqlNpgsqlExtensionsTests.cs (12)
27new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
55new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
84new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionStringWithUsernameAndPassword)
124new KeyValuePair<string, string?>("ConnectionStrings:npgsql", "unused")
156new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
199new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
241new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Npgsql", key, "ConnectionString"), "unused"),
242new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionStringWithUsername)
271new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
299new KeyValuePair<string, string?>("ConnectionStrings:npgsql1", "Host=localhost1;Database=test_aspire_npgsql"),
300new KeyValuePair<string, string?>("ConnectionStrings:npgsql2", "Host=localhost2;Database=test_aspire_npgsql"),
301new KeyValuePair<string, string?>("ConnectionStrings:npgsql3", "Host=localhost3;Database=test_aspire_npgsql"),
Aspire.Azure.Search.Documents.Tests (6)
AspireAzureSearchExtensionsTests.cs (5)
29new KeyValuePair<string, string?>("ConnectionStrings:search", ConnectionString)
82new KeyValuePair<string, string?>("ConnectionStrings:search1", ConnectionString),
83new KeyValuePair<string, string?>("ConnectionStrings:search2", "Endpoint=https://aspireazuresearchtests2.search.windows.net/;Key=fake"),
84new KeyValuePair<string, string?>("ConnectionStrings:search3", "Endpoint=https://aspireazuresearchtests3.search.windows.net/;Key=fake")
115new KeyValuePair<string, string?>("ConnectionStrings:search", $"Endpoint={endpoint};Key=fake")
Aspire.Azure.Security.KeyVault.Tests (17)
AspireKeyVaultExtensionsTests.cs (11)
28new KeyValuePair<string, string?>("ConnectionStrings:secrets", "https://unused.vault.azure.net/")
57new KeyValuePair<string, string?>("Aspire:Azure:Security:KeyVault:{key}:VaultUri", "unused"),
58new KeyValuePair<string, string?>("ConnectionStrings:secrets", ConformanceConstants.VaultUri)
83new KeyValuePair<string, string?>("ConnectionStrings:secrets", ConformanceConstants.VaultUri)
182new KeyValuePair<string, string?>("ConnectionStrings:secrets1", ConformanceConstants.VaultUri),
183new KeyValuePair<string, string?>("ConnectionStrings:secrets2", "https://aspiretests2.vault.azure.net/"),
184new KeyValuePair<string, string?>("ConnectionStrings:secrets3", "https://aspiretests3.vault.azure.net/")
215new KeyValuePair<string, string?>($"ConnectionStrings:{connectionName}", ConformanceConstants.VaultUri)
250new KeyValuePair<string, string?>($"ConnectionStrings:{secretClientName}", secretClientUri),
251new KeyValuePair<string, string?>($"ConnectionStrings:{keyClientName}", keyClientUri),
252new KeyValuePair<string, string?>($"ConnectionStrings:{certClientName}", certClientUri)
Aspire.Azure.Storage.Blobs.Tests (10)
AspireBlobStorageExtensionsTests.cs (8)
23new KeyValuePair<string, string?>("ConnectionStrings:blob", ConnectionString)
50new KeyValuePair<string, string?>("ConnectionStrings:blob", "AccountName=unused;AccountKey=fake")
79new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Storage:Blobs", key, "ServiceUri"), "unused"),
80new KeyValuePair<string, string?>("ConnectionStrings:blob", ConnectionString)
108new KeyValuePair<string, string?>("ConnectionStrings:blob", ConformanceTests.ServiceUri)
133new KeyValuePair<string, string?>("ConnectionStrings:blob1", ConformanceTests.ServiceUri),
134new KeyValuePair<string, string?>("ConnectionStrings:blob2", "https://aspirestoragetests2.blob.core.windows.net/"),
135new KeyValuePair<string, string?>("ConnectionStrings:blob3", "https://aspirestoragetests3.blob.core.windows.net/")
Aspire.Azure.Storage.Files.DataLake.Tests (10)
AspireDataLakeExtensionsTests.cs (8)
25[new KeyValuePair<string, string?>($"ConnectionStrings:{ConnectionName}", ConnectionString)]);
51[new KeyValuePair<string, string?>("ConnectionStrings:unused", ConnectionString)]);
84new KeyValuePair<string, string?>(
87new KeyValuePair<string, string?>($"ConnectionStrings:{ConnectionName}", ConnectionString)
115[new KeyValuePair<string, string?>($"ConnectionStrings:{ConnectionName}", ConformanceTests.ServiceUri)]);
140new KeyValuePair<string, string?>($"ConnectionStrings:{ConnectionName}1", ConformanceTests.ServiceUri),
141new KeyValuePair<string, string?>(
144new KeyValuePair<string, string?>(
Aspire.Azure.Storage.Queues (1)
Aspire.Azure.Storage.Queues.Tests (10)
AspireQueueStorageExtensionsTests.cs (8)
23new KeyValuePair<string, string?>("ConnectionStrings:queue", ConnectionString)
50new KeyValuePair<string, string?>("ConnectionStrings:queue", "AccountName=unused;AccountKey=fake")
79new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Azure:Storage:Queues", key, "ServiceUri"), "unused"),
80new KeyValuePair<string, string?>("ConnectionStrings:queue", ConnectionString)
108new KeyValuePair<string, string?>("ConnectionStrings:queue", ConformanceTests.ServiceUri)
133new KeyValuePair<string, string?>("ConnectionStrings:queue1", ConformanceTests.ServiceUri),
134new KeyValuePair<string, string?>("ConnectionStrings:queue2", "https://aspirestoragetests2.queue.core.windows.net"),
135new KeyValuePair<string, string?>("ConnectionStrings:queue3", "https://aspirestoragetests3.queue.core.windows.net")
Aspire.Cli.Tests (22)
Commands\PublishCommandPromptingIntegrationTests.cs (9)
124new("us-west-2", "US West (Oregon)"),
125new("us-east-1", "US East (N. Virginia)"),
126new("eu-central-1", "Europe (Frankfurt)")
345new("dev", "Development"),
346new("staging", "Staging"),
347new("prod", "Production")
422new("dev", "Development"),
423new("staging", "Staging"),
424new("prod", "Production")
Aspire.Components.Common.TestUtilities (4)
ConformanceTests.cs (4)
479new KeyValuePair<string, string?>($"{ConfigurationSectionName}:DisableTracing", "false"),
480new KeyValuePair<string, string?>($"{ConfigurationSectionName}:{key}:DisableTracing", "true"),
501new KeyValuePair<string, string?>($"{ConfigurationSectionName}:DisableHealthChecks", "false"),
502new KeyValuePair<string, string?>($"{ConfigurationSectionName}:{key}:DisableHealthChecks", "true"),
Aspire.Confluent.Kafka (11)
Aspire.Confluent.Kafka.Tests (32)
Aspire8MetricsTests.cs (4)
27new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint),
28new KeyValuePair<string, string?>(ProducerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused")
142new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint),
143new KeyValuePair<string, string?>(ProducerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused")
ConsumerConfigurationTests.cs (9)
24new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint),
25new KeyValuePair<string, string?>(ConsumerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused")
56new KeyValuePair<string, string?>("ConnectionStrings:messaging", "unused"),
57new KeyValuePair<string, string?>(ConsumerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused")
89new KeyValuePair<string, string?>(ConsumerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "ConnectionString"), "unused"),
90new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint),
91new KeyValuePair<string, string?>(ConsumerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused")
133new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint),
134new KeyValuePair<string, string?>(ConsumerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"), "unused")
ConsumerConformanceTests.cs (8)
26new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "ConnectionString"),
28new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Confluent:Kafka:Consumer", key, "Config:GroupId"),
91new KeyValuePair<string, string?>("ConnectionStrings:messaging1", "localhost:9091"),
92new KeyValuePair<string, string?>("Aspire:Confluent:Kafka:Consumer:Config:GroupId", "messaging1"),
94new KeyValuePair<string, string?>("ConnectionStrings:messaging2", "localhost:9092"),
95new KeyValuePair<string, string?>("Aspire:Confluent:Kafka:Consumer:messaging2:Config:GroupId", "messaging2"),
97new KeyValuePair<string, string?>("ConnectionStrings:messaging3", "localhost:9093"),
98new KeyValuePair<string, string?>("Aspire:Confluent:Kafka:Consumer:messaging3:Config:GroupId", "messaging3"),
ProducerConfigurationTests.cs (5)
22new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint)
51new KeyValuePair<string, string?>("ConnectionStrings:messaging", "unused")
83new KeyValuePair<string, string?>(ProducerConformanceTests.CreateConfigKey("Aspire:Confluent:Kafka:Producer", key, "ConnectionString"), "unused"),
84new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint)
123new KeyValuePair<string, string?>("ConnectionStrings:messaging", CommonHelpers.TestingEndpoint)
ProducerConformanceTests.cs (4)
27new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Confluent:Kafka:Producer", key, "ConnectionString"),
87new KeyValuePair<string, string?>("ConnectionStrings:messaging1", "localhost:9091"),
88new KeyValuePair<string, string?>("ConnectionStrings:messaging2", "localhost:9092"),
89new KeyValuePair<string, string?>("ConnectionStrings:messaging3", "localhost:9093"),
Aspire.Dashboard (9)
Aspire.Dashboard.Components.Tests (31)
Controls\ResourceDetailsTests.cs (20)
47builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel> (resource1.Name, resource1)]));
140builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel> (resource1.Name, resource1)]));
232builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel> (resource1.Name, resource1)]));
316builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel> (resource1.Name, resource1)]));
393builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
413builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
448new KeyValuePair<string, ResourceViewModel>(resource.Name, resource),
449new KeyValuePair<string, ResourceViewModel>(nginx.Name, nginx),
450new KeyValuePair<string, ResourceViewModel>(redis.Name, redis)
486builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
535builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
603builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
640builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
676builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
712builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
758builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
804builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
849builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
878builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
905builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
Pages\ResourcesTests.cs (8)
160new("Type1", true),
161new("Type2", true),
162new("Type3", true),
164new("Running", true),
165new("Stopping", true),
167new("", true),
168new("Healthy", true),
169new("Unhealthy", true),
Aspire.Dashboard.Tests (58)
DashboardOptionsTests.cs (16)
261new("ASPNETCORE_URLS", "http://localhost:8000/"),
262new("ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL", "http://localhost:4319/"),
263new(DashboardConfigNames.Legacy.DashboardOtlpSuppressUnsecuredTelemetryMessageName.ConfigKey, "true"),
305new("ASPNETCORE_URLS", "http://localhost:8000/"),
306new("ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL", "http://localhost:4319/"),
307new("Authentication:Schemes:OpenIdConnect:Authority", "https://id.aspire.dev/"),
308new("Authentication:Schemes:OpenIdConnect:ClientId", "aspire-dashboard"),
309new("Dashboard:Frontend:AuthMode", "OpenIdConnect"),
310new("Dashboard:Frontend:OpenIdConnect:ClaimActions:0:ClaimType", "role"),
311new("Dashboard:Frontend:OpenIdConnect:ClaimActions:0:JsonKey", "role"),
312new("Dashboard:Frontend:OpenIdConnect:RequiredClaimType", "role")
337new("ASPNETCORE_URLS", "http://localhost:8000/"),
338new("ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL", "http://localhost:4319/"),
339new("Authentication:Schemes:OpenIdConnect:Authority", "https://id.aspire.dev/"),
340new("Authentication:Schemes:OpenIdConnect:ClientId", "aspire-dashboard"),
341new("Dashboard:Frontend:AuthMode", "OpenIdConnect")
Model\SpanWaterfallViewModelTests.cs (9)
125new KeyValuePair<string, string>("peer.service", "peer-service")
186var attributes = presentAttributeNames.Select(n => new KeyValuePair<string, string>(n, Guid.NewGuid().ToString())).ToArray();
289new KeyValuePair<string, string>("http.method", "GET"),
290new KeyValuePair<string, string>("http.status_code", "200")
325new KeyValuePair<string, string>("http.method", "GET"),
326new KeyValuePair<string, string>("http.status_code", "200")
363new KeyValuePair<string, string>("http.method", "GET")
400attributes: [new KeyValuePair<string, string>("http.method", "GET")],
406attributes: [new KeyValuePair<string, string>("db.system", "postgresql")],
Model\TelemetryExportServiceTests.cs (5)
46LogRecords = { CreateLogRecord(time: s_testTime, message: "Test log message", severity: OpenTelemetry.Proto.Logs.V1.SeverityNumber.Info, eventName: "TestEvent", traceId: "abcd1234abcd1234", spanId: "efgh5678", attributes: [new KeyValuePair<string, string>("custom.attr", "custom-value")]) }
278attributes: [new KeyValuePair<string, string>("http.method", "GET")])
397attributes: [new KeyValuePair<string, string>("peer.service", "target-service")])
446attributes: [new KeyValuePair<string, string>("peer.service", "target-service")])
814attributes: [new KeyValuePair<string, string>("japanese.attr", japaneseAttributeValue)])
TelemetryApiServiceTests.cs (8)
387attributes: [new KeyValuePair<string, string>("http.url", "/api/products")]),
389attributes: [new KeyValuePair<string, string>("http.url", "/api/orders")])
436attributes: [new KeyValuePair<string, string>("http.method", "GET")]),
438attributes: [new KeyValuePair<string, string>("http.method", "POST")])
459attributes: [new KeyValuePair<string, string>("http.method", "GET")])
463attributes: [new KeyValuePair<string, string>("http.method", "POST")])
484attributes: [new KeyValuePair<string, string>("http.method", "GET")]),
486attributes: [new KeyValuePair<string, string>("http.method", "POST")])
TelemetryRepositoryTests\OtlpHelpersTests.cs (5)
283new KeyValuePair<string, string>("parentkey1", "parentvalue1")
319new KeyValuePair<string, string>("parentkey1", "parentvalue1")
360new KeyValuePair<string, string>("parentkey1", "parentvalue1"),
361new KeyValuePair<string, string>("parentkey2", "parentvalue2"),
362new KeyValuePair<string, string>("parentkey3", "parentvalue3")
Aspire.Hosting (6)
Aspire.Hosting.Azure.CognitiveServices (2)
Aspire.Hosting.Azure.CosmosDB (6)
Aspire.Hosting.Azure.EventHubs (6)
Aspire.Hosting.Azure.KeyVault (1)
Aspire.Hosting.Azure.Kusto (2)
Aspire.Hosting.Azure.PostgreSQL (7)
Aspire.Hosting.Azure.Redis (4)
Aspire.Hosting.Azure.Search (1)
Aspire.Hosting.Azure.ServiceBus (7)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Sql (7)
Aspire.Hosting.Azure.Storage (10)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Browsers (6)
BrowserLogsConfigurationManager.cs (6)
54new(ResourceScopeValue, string.Format(CultureInfo.CurrentCulture, BrowserCommandStrings.ConfigureTrackedBrowserResourceScopeOption, parentResourceName)),
55new(GlobalScopeValue, BrowserCommandStrings.ConfigureTrackedBrowserGlobalScopeOption)
88new(nameof(BrowserUserDataMode.Shared), nameof(BrowserUserDataMode.Shared)),
89new(nameof(BrowserUserDataMode.Isolated), nameof(BrowserUserDataMode.Isolated))
143browserOptions.Add(new(browser, displayName));
252context.Input.Options = [.. options.Select(static pair => new KeyValuePair<string, string>(pair.Key, pair.Value))];
Aspire.Hosting.Browsers.Tests (6)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (6)
54new(ResourceScopeValue, string.Format(CultureInfo.CurrentCulture, BrowserCommandStrings.ConfigureTrackedBrowserResourceScopeOption, parentResourceName)),
55new(GlobalScopeValue, BrowserCommandStrings.ConfigureTrackedBrowserGlobalScopeOption)
88new(nameof(BrowserUserDataMode.Shared), nameof(BrowserUserDataMode.Shared)),
89new(nameof(BrowserUserDataMode.Isolated), nameof(BrowserUserDataMode.Isolated))
143browserOptions.Add(new(browser, displayName));
252context.Input.Options = [.. options.Select(static pair => new KeyValuePair<string, string>(pair.Key, pair.Value))];
Aspire.Hosting.EntityFrameworkCore (1)
Aspire.Hosting.EntityFrameworkCore.Tests (4)
EFMigrationPipelineTests.cs (4)
737new("ConnectionStrings__postgresdb", (new ConnectionStringReference(db, optional: false), "{postgresdb.connectionString}")),
738new("OTHER", ("not-a-connection-string", "value")),
757new("ConnectionStrings__postgresdb", (new ConnectionStringReference(db, optional: false), "Host=localhost;Database=postgresdb")),
830public IEnumerable<KeyValuePair<string, string>> EnvironmentVariables => EnvironmentVariablesWithUnprocessed.Select(kvp => new KeyValuePair<string, string>(kvp.Key, kvp.Value.Processed));
Aspire.Hosting.Foundry (12)
Aspire.Hosting.Garnet (4)
Aspire.Hosting.GitHub.Models (4)
Aspire.Hosting.Kafka (2)
Aspire.Hosting.Milvus (5)
Aspire.Hosting.MongoDB (9)
Aspire.Hosting.MySql (9)
Aspire.Hosting.Nats (5)
Aspire.Hosting.OpenAI (4)
Aspire.Hosting.Oracle (9)
Aspire.Hosting.PostgreSQL (9)
PostgresServerResource.cs (6)
171new ("Host", ReferenceExpression.Create($"{Host}")),
172new ("Port", ReferenceExpression.Create($"{Port}")),
173new ("Username", ReferenceExpression.Create($"{UserNameReference}")),
174new ("Password", ReferenceExpression.Create($"{PasswordParameter}")),
175new ("Uri", UriExpression),
176new ("JdbcConnectionString", JdbcConnectionString),
Aspire.Hosting.Qdrant (7)
Aspire.Hosting.RabbitMQ (5)
Aspire.Hosting.Redis (4)
Aspire.Hosting.RemoteHost.Tests (3)
Aspire.Hosting.Seq (3)
Aspire.Hosting.SqlServer (9)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (30)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (8)
223new("mode", "Primary"),
224new("mode", "Secondary")
1305new("Host", "localhost"),
1306new("DatabaseName", "catalogdb")
2444new("Chrome", "Chrome")
2458new($"{context.AllInputs.GetString("browser")}-Default", "Default profile")
2518new("fruit", "Fruit")
2535new("banana", "Banana")
ConnectionPropertiesExtensionsTests.cs (4)
16new KeyValuePair<string, ReferenceExpression>("Host", ReferenceExpression.Create($"resourceHost")),
17new KeyValuePair<string, ReferenceExpression>("Port", ReferenceExpression.Create($"8080")),
22new KeyValuePair<string, ReferenceExpression>("Port", ReferenceExpression.Create($"9090")),
23new KeyValuePair<string, ReferenceExpression>("Username", ReferenceExpression.Create($"user")),
Aspire.Hosting.TestUtilities (1)
Aspire.Hosting.Valkey (4)
Aspire.Microsoft.Azure.Cosmos (1)
Aspire.Microsoft.Azure.Cosmos.Tests (23)
AspireMicrosoftAzureCosmosExtensionsTests.cs (19)
416new KeyValuePair<string, string?>("ConnectionStrings:cosmos", connectionString),
417new KeyValuePair<string, string?>("ConnectionStrings:container1", $"{connectionString}Container={containerName};")
451new KeyValuePair<string, string?>("ConnectionStrings:cosmos", connectionString),
452new KeyValuePair<string, string?>("ConnectionStrings:container1", $"{connectionString}Container={container1Name};"),
453new KeyValuePair<string, string?>("ConnectionStrings:container2", $"{connectionString}Container={container2Name};")
483new KeyValuePair<string, string?>("ConnectionStrings:cosmos", connectionString),
484new KeyValuePair<string, string?>("ConnectionStrings:container1", connectionString)
505new KeyValuePair<string, string?>("ConnectionStrings:cosmos", connectionString)
532new KeyValuePair<string, string?>("ConnectionStrings:cosmos", connectionString),
533new KeyValuePair<string, string?>("ConnectionStrings:container1", $"{connectionString}Container={containerName};")
562new KeyValuePair<string, string?>("ConnectionStrings:cosmos", connectionString),
563new KeyValuePair<string, string?>("ConnectionStrings:container1", $"{connectionString}Container={container1Name};"),
564new KeyValuePair<string, string?>("ConnectionStrings:container2", $"{connectionString}Container={container2Name};")
602new KeyValuePair<string, string?>("ConnectionStrings:cosmos1", connectionString1),
603new KeyValuePair<string, string?>("ConnectionStrings:users", $"{connectionString1}Container={container1Name};"),
604new KeyValuePair<string, string?>("ConnectionStrings:orders", $"{connectionString1}Container={container2Name};"),
607new KeyValuePair<string, string?>("ConnectionStrings:cosmos2", connectionString2),
608new KeyValuePair<string, string?>("ConnectionStrings:products", $"{connectionString2}Container={container3Name};")
683new KeyValuePair<string, string?>($"ConnectionStrings:{key ?? "cosmos"}", connectionString)
ConformanceTests.cs (4)
24new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Microsoft:Azure:Cosmos", key, "ConnectionString"),
81new KeyValuePair<string, string?>("ConnectionStrings:cosmosdb1", "AccountEndpoint=https://example1.documents.azure.com:443/;AccountKey=fake;"),
82new KeyValuePair<string, string?>("ConnectionStrings:cosmosdb2", "AccountEndpoint=https://example2.documents.azure.com:443/;AccountKey=fake;"),
83new KeyValuePair<string, string?>("ConnectionStrings:cosmosdb3", "AccountEndpoint=https://example3.documents.azure.com:443/;AccountKey=fake;"),
Aspire.Microsoft.Azure.StackExchangeRedis.Tests (2)
Aspire.Microsoft.Data.SqlClient.Tests (8)
AspireSqlServerSqlClientExtensionsTests.cs (7)
23new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
50new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", "unused")
82new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Microsoft:Data:SqlClient", key, "ConnectionString"), "unused"),
83new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
110new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection1", "Data Source=fake1;Database=master"),
111new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection2", "Data Source=fake2;Database=master"),
112new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection3", "Data Source=fake3;Database=master"),
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (14)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (11)
23new KeyValuePair<string, string?>("ConnectionStrings:cosmosConnection", ConnectionString),
24new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:Cosmos:Region", "westus"),
59new KeyValuePair<string, string?>("ConnectionStrings:cosmosConnection", ConnectionString),
64new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:Cosmos:RequestTimeout", "00:10:08"),
93new KeyValuePair<string, string?>("ConnectionStrings:cosmosConnection", ConnectionString),
98new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:Cosmos:RequestTimeout", "400"),
136new KeyValuePair<string, string?>("ConnectionStrings:cosmos", ConnectionString),
137new KeyValuePair<string, string?>("ConnectionStrings:cosmos2", connectionString2),
161new KeyValuePair<string, string?>("ConnectionStrings:cosmos", ConnectionString)
184new KeyValuePair<string, string?>("ConnectionStrings:cosmos", ConnectionString)
408new KeyValuePair<string, string?>("ConnectionStrings:cosmos", connectionString)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (22)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (17)
26new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
42new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", "unused")
61new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:ConnectionString", "unused"),
62new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
81new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString),
82new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:DisableRetry", "false"),
83new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:CommandTimeout", "608")
126new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString),
127new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:DisableRetry", "true"),
166new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
171new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:CommandTimeout", "608")
200new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
205new KeyValuePair<string, string?>("Aspire:Microsoft:EntityFrameworkCore:SqlServer:CommandTimeout", "400")
238new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString),
239new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection2", connectionString2),
263new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
286new KeyValuePair<string, string?>("ConnectionStrings:sqlconnection", ConnectionString)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (1)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (4)
Aspire.Milvus.Client.Tests (12)
AspireMilvusExtensionTests.cs (5)
36new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultKeyName}", ConnectionString)
89new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Milvus:Client", key, "Endpoint"), "unused"),
90new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultKeyName}", ConnectionString)
120new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Milvus:Client", key, "Endpoint"), "unused"),
121new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultKeyName}", ConnectionString)
ConformanceTests.cs (5)
55new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Milvus:Client", key, "Endpoint"), GetConnectionStringKeyValue(ConnectionString, "Endpoint")),
56new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Milvus:Client", key, "Key"), GetConnectionStringKeyValue(ConnectionString, "Key"))
109new KeyValuePair<string, string?>("ConnectionStrings:milvus1", "Endpoint=http://localhost1:19530;Key=pass"),
110new KeyValuePair<string, string?>("ConnectionStrings:milvus2", "Endpoint=http://localhost2:19531;Key=pass"),
111new KeyValuePair<string, string?>("ConnectionStrings:milvus3", "Endpoint=http://localhost3:19532;Key=pass"),
Aspire.MongoDB.Driver.Tests (5)
AspireMongoDBDriverExtensionsTests.cs (4)
208new KeyValuePair<string, string?>("ConnectionStrings:mongodb1", "mongodb://localhost:27011/mydatabase1"),
209new KeyValuePair<string, string?>("ConnectionStrings:mongodb2", "mongodb://localhost:27012/mydatabase2"),
210new KeyValuePair<string, string?>("ConnectionStrings:mongodb3", "mongodb://localhost:27013/mydatabase3"),
237new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultConnectionName}", connectionString)
Aspire.MongoDB.Driver.v2.Tests (5)
tests\Aspire.MongoDB.Driver.Tests\AspireMongoDBDriverExtensionsTests.cs (4)
208new KeyValuePair<string, string?>("ConnectionStrings:mongodb1", "mongodb://localhost:27011/mydatabase1"),
209new KeyValuePair<string, string?>("ConnectionStrings:mongodb2", "mongodb://localhost:27012/mydatabase2"),
210new KeyValuePair<string, string?>("ConnectionStrings:mongodb3", "mongodb://localhost:27013/mydatabase3"),
237new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultConnectionName}", connectionString)
Aspire.MongoDB.EntityFrameworkCore.Tests (24)
AspireMongoDBEntityFrameworkCoreExtensionsTests.cs (19)
31new KeyValuePair<string, string?>("ConnectionStrings:mongodb", "mongodb://localhost:27017/myDatabase"),
49new KeyValuePair<string, string?>("ConnectionStrings:mongodb", "mongodb://localhost:27017/connectionStringDb"),
67new KeyValuePair<string, string?>("ConnectionStrings:mongodb", "mongodb://localhost:27017"),
83new KeyValuePair<string, string?>("ConnectionStrings:mongodb", ConnectionString),
84new KeyValuePair<string, string?>($"Aspire:MongoDB:EntityFrameworkCore:mongodb:DatabaseName", DatabaseName),
102new KeyValuePair<string, string?>("ConnectionStrings:mongodb", "unused"),
103new KeyValuePair<string, string?>("Aspire:MongoDB:EntityFrameworkCore:mongodb:DatabaseName", "testdb")
125new KeyValuePair<string, string?>("Aspire:MongoDB:EntityFrameworkCore:ConnectionString", "unused"),
126new KeyValuePair<string, string?>("Aspire:MongoDB:EntityFrameworkCore:DatabaseName", "testdb"),
127new KeyValuePair<string, string?>("ConnectionStrings:mongodb", ConnectionString)
147new KeyValuePair<string, string?>("ConnectionStrings:mongodb", ConnectionString),
148new KeyValuePair<string, string?>("Aspire:MongoDB:EntityFrameworkCore:DatabaseName", "testdb")
182new KeyValuePair<string, string?>("ConnectionStrings:mongodb", ConnectionString),
183new KeyValuePair<string, string?>("Aspire:MongoDB:EntityFrameworkCore:mongodb:DatabaseName", DatabaseName),
184new KeyValuePair<string, string?>("ConnectionStrings:mongodb2", connectionString2),
185new KeyValuePair<string, string?>("Aspire:MongoDB:EntityFrameworkCore:mongodb2:DatabaseName", DatabaseName),
215new KeyValuePair<string, string?>("ConnectionStrings:mongodb", ConnectionString)
238new KeyValuePair<string, string?>("ConnectionStrings:mongodb", ConnectionString),
239new KeyValuePair<string, string?>("Aspire:MongoDB:EntityFrameworkCore:mongodb:DatabaseName", ConnectionString)
Aspire.MySqlConnector.Tests (8)
AspireMySqlConnectorExtensionsTests.cs (7)
31new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString)
58new KeyValuePair<string, string?>("ConnectionStrings:mysql", "unused")
90new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:MySqlConnector", key, "ConnectionString"), "unused"),
91new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString)
118new KeyValuePair<string, string?>("ConnectionStrings:mysql1", "Server=localhost1;Database=test_aspire_mysql"),
119new KeyValuePair<string, string?>("ConnectionStrings:mysql2", "Server=localhost2;Database=test_aspire_mysql"),
120new KeyValuePair<string, string?>("ConnectionStrings:mysql3", "Server=localhost3;Database=test_aspire_mysql"),
Aspire.NATS.Net.Tests (12)
AspireNatsClientExtensionsTests.cs (10)
39new KeyValuePair<string, string?>("ConnectionStrings:nats", _connectionString)
66new KeyValuePair<string, string?>("ConnectionStrings:nats", "nats://nats:password@aspire-host:4222")
95new KeyValuePair<string, string?>("ConnectionStrings:nats", "unused")
128new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Nats:Client", key, "ConnectionString"), "unused"),
129new KeyValuePair<string, string?>("ConnectionStrings:nats", _connectionString)
282new KeyValuePair<string, string?>("ConnectionStrings:nats", _connectionString)
310new KeyValuePair<string, string?>("ConnectionStrings:nats1", "nats://aspire-host1:4222"),
311new KeyValuePair<string, string?>("ConnectionStrings:nats2", "nats://aspire-host2:4222"),
312new KeyValuePair<string, string?>("ConnectionStrings:nats3", "nats://aspire-host3:4222"),
339new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultConnectionName}", connectionString)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (23)
AspireEFPostgreSqlExtensionsTests.cs (16)
34new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
50new KeyValuePair<string, string?>("ConnectionStrings:npgsql", "unused")
71new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:ConnectionString", "unused"),
72new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
91new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString),
92new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:Retry", "true")
133new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString),
134new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableRetry", "true")
174new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
179new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:CommandTimeout", "123")
208new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
213new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:CommandTimeout", "400")
245new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString),
246new KeyValuePair<string, string?>("ConnectionStrings:npgsql2", connectionString2),
270new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
293new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
EnrichNpgsqlTests.cs (5)
63new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:Retry", "true")
156new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableRetry", "true")
200new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableRetry", "false")
355new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:DisableTracing", "false"),
356new KeyValuePair<string, string?>("Aspire:Npgsql:EntityFrameworkCore:PostgreSQL:TestDbContext:DisableTracing", "true")
Aspire.Npgsql.Tests (9)
AspirePostgreSqlNpgsqlExtensionsTests.cs (8)
23new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
50new KeyValuePair<string, string?>("ConnectionStrings:npgsql", "unused")
82new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:Npgsql", key, "ConnectionString"), "unused"),
83new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
112new KeyValuePair<string, string?>("ConnectionStrings:npgsql", ConnectionString)
140new KeyValuePair<string, string?>("ConnectionStrings:npgsql1", "Host=localhost1;Database=test_aspire_npgsql"),
141new KeyValuePair<string, string?>("ConnectionStrings:npgsql2", "Host=localhost2;Database=test_aspire_npgsql"),
142new KeyValuePair<string, string?>("ConnectionStrings:npgsql3", "Host=localhost3;Database=test_aspire_npgsql"),
Aspire.OpenAI.Tests (42)
AspireOpenAIClientBuilderChatClientExtensionsTests.cs (12)
23new ("Aspire:OpenAI:Endpoint", "https://aspireopenaitests.openai.azure.com/"),
24new ("Aspire:OpenAI:Deployment", "testdeployment1"),
25new ("Aspire:OpenAI:Key", "fake"),
55new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake;{connectionStringKey}=testdeployment1")
83new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
111new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake;Deployment=testdeployment1;Model=something")
142new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
175new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake"),
176new("Aspire:OpenAI:DisableTracing", disableOpenTelemetry.ToString()),
203new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
233new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake"),
234new("Aspire:OpenAI:DisableTracing", disableOpenTelemetry.ToString()),
AspireOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (12)
23new("Aspire:OpenAI:Endpoint", "https://aspireopenaitests.openai.azure.com/"),
24new("Aspire:OpenAI:Deployment", "testdeployment1"),
25new("Aspire:OpenAI:Key", "fake"),
55new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake;{connectionStringKey}=testdeployment1")
83new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
111new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake;Deployment=testdeployment1;Model=something")
142new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
175new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake"),
176new("Aspire:OpenAI:DisableTracing", disableOpenTelemetry.ToString()),
203new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake")
233new("ConnectionStrings:openai", $"Endpoint=https://aspireopenaitests.openai.azure.com/;Key=fake"),
234new("Aspire:OpenAI:DisableTracing", disableOpenTelemetry.ToString()),
AspireOpenAIExtensionsTests.cs (16)
24new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString)
78new KeyValuePair<string, string?>("ConnectionStrings:openai", connectionString)
96new KeyValuePair<string, string?>("ConnectionStrings:openai", connectionString)
130new KeyValuePair<string, string?>("ConnectionStrings:openai", connectionString)
150new KeyValuePair<string, string?>("ConnectionStrings:openai1", ConnectionString),
151new KeyValuePair<string, string?>("ConnectionStrings:openai2", ConnectionString + "2"),
152new KeyValuePair<string, string?>("ConnectionStrings:openai3", ConnectionString + "3")
175new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString),
176new KeyValuePair<string, string?>("Aspire:OpenAI:DisableTracing", "true")
197new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString),
198new KeyValuePair<string, string?>("Aspire:OpenAI:ClientOptions:ProjectId", "myproject")
220new KeyValuePair<string, string?>("Aspire:OpenAI:ClientOptions:ProjectId", "myproject"),
221new KeyValuePair<string, string?>("Aspire:OpenAI:openai:ClientOptions:ProjectId", "myproject2")
239new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString)
261new KeyValuePair<string, string?>("ConnectionStrings:openai", ConnectionString),
262new KeyValuePair<string, string?>("Aspire:OpenAI:EnableSensitiveTelemetryData", "true")
Aspire.Oracle.EntityFrameworkCore.Tests (26)
AspireOracleEFCoreDatabaseExtensionsTests.cs (19)
26new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString)
42new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", "unused")
61new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:ConnectionString", "unused"),
62new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString)
81new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString),
82new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableRetry", "false"),
83new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:CommandTimeout", "608")
126new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString),
127new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableRetry", "true"),
166new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString),
171new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:CommandTimeout", "608")
200new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString),
205new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:CommandTimeout", "400")
238new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString),
239new KeyValuePair<string, string?>("ConnectionStrings:orclconnection2", connectionString2),
263new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString)
286new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString)
308new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString)
324new KeyValuePair<string, string?>("ConnectionStrings:orclconnection", ConnectionString)
EnrichOracleDatabaseTests.cs (5)
59new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableRetry", "false")
149new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableRetry", "true")
192new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableRetry", "false")
340new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:DisableTracing", "false"),
341new KeyValuePair<string, string?>("Aspire:Oracle:EntityFrameworkCore:TestDbContext:DisableTracing", "true")
Aspire.Playground.Tests (7)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (30)
AspireEFMySqlExtensionsTests.cs (21)
37new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", s_serverVersionString),
38new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString)
56new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", s_serverVersionString),
57new KeyValuePair<string, string?>("ConnectionStrings:mysql", "unused")
77new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", s_serverVersionString),
78new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ConnectionString", "unused"),
79new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString)
99new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", s_serverVersionString),
100new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString),
101new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableRetry", "false")
142new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", s_serverVersionString),
143new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString),
144new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableRetry", "true")
185new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", "8.2.0-mysql"),
186new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString),
191new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:CommandTimeout", "123"),
221new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:ServerVersion", "8.2.0-mysql"),
222new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString),
227new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:CommandTimeout", "400"),
260new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString)
284new KeyValuePair<string, string?>("ConnectionStrings:mysql", ConnectionString)
EnrichMySqlTests.cs (5)
75new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableRetry", "false")
165new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableRetry", "true")
208new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableRetry", "false")
356new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:DisableTracing", "false"),
357new KeyValuePair<string, string?>("Aspire:Pomelo:EntityFrameworkCore:MySql:TestDbContext:DisableTracing", "true")
Aspire.Qdrant.Client.Tests (7)
AspireQdrantClientExtensionsTest.cs (4)
92new KeyValuePair<string, string?>("ConnectionStrings:qdrant1", "Endpoint=http://localhost1:6331;Key=pass"),
93new KeyValuePair<string, string?>("ConnectionStrings:qdrant2", "Endpoint=http://localhost2:6332;Key=pass"),
94new KeyValuePair<string, string?>("ConnectionStrings:qdrant3", "Endpoint=http://localhost3:6333;Key=pass"),
117new KeyValuePair<string, string?>($"ConnectionStrings:{DefaultConnectionName}", connectionString)
ConformanceTests.cs (2)
58new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Qdrant:Client", key, "Endpoint"), GetConnectionStringKeyValue(_connectionString,"Endpoint")),
59new KeyValuePair<string, string?>(CreateConfigKey("Aspire:Qdrant:Client", key, "Key"), GetConnectionStringKeyValue(_connectionString,"Key")),
Aspire.RabbitMQ.Client (4)
Aspire.RabbitMQ.Client.Tests (11)
AspireRabbitMQExtensionsTests.cs (9)
33new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString())
61new KeyValuePair<string, string?>("ConnectionStrings:messaging", "unused")
92new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:RabbitMQ:Client", key, "ConnectionString"), "unused"),
93new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString())
171new KeyValuePair<string, string?>("ConnectionStrings:messaging1", _containerFixture.GetConnectionString()),
172new KeyValuePair<string, string?>("ConnectionStrings:messaging2", container2.GetConnectionString()),
173new KeyValuePair<string, string?>("ConnectionStrings:messaging3", container3.GetConnectionString())
205new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString())
242new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString())
Aspire.RabbitMQ.Client.v6.Tests (11)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQExtensionsTests.cs (9)
33new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString())
61new KeyValuePair<string, string?>("ConnectionStrings:messaging", "unused")
92new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:RabbitMQ:Client", key, "ConnectionString"), "unused"),
93new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString())
171new KeyValuePair<string, string?>("ConnectionStrings:messaging1", _containerFixture.GetConnectionString()),
172new KeyValuePair<string, string?>("ConnectionStrings:messaging2", container2.GetConnectionString()),
173new KeyValuePair<string, string?>("ConnectionStrings:messaging3", container3.GetConnectionString())
205new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString())
242new KeyValuePair<string, string?>("ConnectionStrings:messaging", _containerFixture.GetConnectionString())
Aspire.Seq.Tests (1)
Aspire.StackExchange.Redis (4)
Aspire.StackExchange.Redis.DistributedCaching.Tests (5)
AspireRedisDistributedCacheExtensionsTests.cs (4)
52new KeyValuePair<string, string?>("ConnectionStrings:redis", container.GetConnectionString()),
81new KeyValuePair<string, string?>("ConnectionStrings:redis1", container1.GetConnectionString()),
82new KeyValuePair<string, string?>("ConnectionStrings:redis2", container2.GetConnectionString()),
83new KeyValuePair<string, string?>("ConnectionStrings:redis3", container3.GetConnectionString()),
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
Aspire.StackExchange.Redis.Tests (20)
AspireRedisExtensionsTests.cs (19)
63new KeyValuePair<string, string?>("ConnectionStrings:myredis", ConnectionString)
91new KeyValuePair<string, string?>("ConnectionStrings:redis", "unused")
124new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:StackExchange:Redis", key, "ConnectionString"), "unused"),
125new KeyValuePair<string, string?>("ConnectionStrings:redis", ConnectionString)
163new KeyValuePair<string, string?>("ConnectionStrings:redis", TestingEndpoint)
168new KeyValuePair<string, string?>("ConnectionStrings:redis", TestingEndpoint),
169new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:StackExchange:Redis", useKeyed ? "redis" : null, "ConfigurationOptions:AbortOnConnectFail"), "true")
174new KeyValuePair<string, string?>("ConnectionStrings:redis", $"{TestingEndpoint},abortConnect={(abortConnect ? "true" : "false")}")
271new KeyValuePair<string, string?>("ConnectionStrings:redis", connectionString)
309new KeyValuePair<string, string?>("ConnectionStrings:redis1", ConnectionString),
310new KeyValuePair<string, string?>("ConnectionStrings:redis2", container2.GetConnectionString()),
311new KeyValuePair<string, string?>("ConnectionStrings:redis3", container3.GetConnectionString())
346new KeyValuePair<string, string?>("ConnectionStrings:redis1", container1.GetConnectionString()),
347new KeyValuePair<string, string?>("ConnectionStrings:redis2", container2.GetConnectionString()),
348new KeyValuePair<string, string?>("ConnectionStrings:redis3", container3.GetConnectionString())
400new KeyValuePair<string, string?>("ConnectionStrings:redis1", container1.GetConnectionString()),
401new KeyValuePair<string, string?>("ConnectionStrings:redis2", container2.GetConnectionString()),
402new KeyValuePair<string, string?>("ConnectionStrings:redis3", container3.GetConnectionString())
501new KeyValuePair<string, string?>(ConformanceTests.CreateConfigKey("Aspire:StackExchange:Redis", key, "ConnectionString"), ConnectionString)
Aspire.TerminalHost (1)
Aspire.TestUtilities (4)
BlazorHosted.ClientServiceDefaults (1)
BlazorStandalone.ClientServiceDefaults (1)
dotnet (3)
dotnet-aot (3)
dotnet-svcutil-lib (17)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (10)
734array[index++] = new KeyValuePair<string, object>(ViaKey, _via);
737array[index++] = new KeyValuePair<string, object>(AllowOutputBatchingKey, _allowOutputBatching);
740array[index++] = new KeyValuePair<string, object>(SecurityKey, _security.CreateCopy());
743array[index++] = new KeyValuePair<string, object>(EncoderKey, _encoder);
756array[index++] = new KeyValuePair<string, object>(propertyName, CreateCopyOfPropertyValue(_properties[i].Value));
804pairs.Add(new KeyValuePair<string, object>(ViaKey, _via));
807pairs.Add(new KeyValuePair<string, object>(AllowOutputBatchingKey, _allowOutputBatching));
810pairs.Add(new KeyValuePair<string, object>(SecurityKey, _security));
813pairs.Add(new KeyValuePair<string, object>(EncoderKey, _encoder));
826pairs.Add(new KeyValuePair<string, object>(propertyName, _properties[i].Value));
dotnet-svcutil-lib.Tests (5)
GenerateDocumentationAndConfigFiles (13)
ILAssembler (1)
ILCompiler.Compiler (9)
ILCompiler.MetadataTransform (1)
ILCompiler.ReadyToRun (9)
ILCompiler.RyuJit (1)
Microsoft.AspNetCore (4)
WebApplicationBuilder.cs (4)
59new KeyValuePair<string, string?>(WebHostDefaults.WebRootKey, options.WebRootPath),
124new KeyValuePair<string, string?>(WebHostDefaults.WebRootKey, options.WebRootPath),
181new KeyValuePair<string, string?>(WebHostDefaults.WebRootKey, options.WebRootPath),
286new KeyValuePair<string, string?>(HostDefaults.ContentRootKey, cwd),
Microsoft.AspNetCore.Authentication.OpenIdConnect (5)
OpenIdConnectHandler.cs (5)
121message = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
136message = new OpenIdConnectMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
325var message = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
648authorizationResponse = new OpenIdConnectMessage(Request.Query.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
675authorizationResponse = new OpenIdConnectMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value.ToArray())));
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.Components (9)
_generated\0\LoggerMessage.g.cs (4)
2140 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ComponentId", this._componentId),
2151 => new global::System.Collections.Generic.KeyValuePair<string, object?>("EventId", this._eventId),
2162 => new global::System.Collections.Generic.KeyValuePair<string, object?>("EventType", this._eventType),
2173 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Skipping attempt to raise event {EventId} of type '{EventType}' because the component ID {ComponentId} was already disposed"),
Microsoft.AspNetCore.Components.Endpoints (11)
_generated\0\LoggerMessage.g.cs (10)
3750 => new global::System.Collections.Generic.KeyValuePair<string, object?>("Type", this._type),
3761 => new global::System.Collections.Generic.KeyValuePair<string, object?>("Name", this._name),
3772 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ParameterType", this._parameterType),
3783 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Constructor parameter '{Name}' of type '{ParameterType}' found for type '{Type}'."),
4590 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ConstructorParameterName", this._constructorParameterName),
4601 => new global::System.Collections.Generic.KeyValuePair<string, object?>("PropertyName", this._propertyName),
4612 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Candidate property {PropertyName} has a matching constructor parameter '{ConstructorParameterName}'."),
5260 => new global::System.Collections.Generic.KeyValuePair<string, object?>("CustomName", this._customName),
5271 => new global::System.Collections.Generic.KeyValuePair<string, object?>("PropertyName", this._propertyName),
5282 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Candidate property or constructor parameter {PropertyName} defines a custom name '{CustomName}'."),
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Diagnostics (4)
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (19)
Logging\HttpLoggingServiceExtensionsTests.cs (16)
38new KeyValuePair<string, string?>("HttpLogging:RequestPathLoggingMode", "Structured"),
39new KeyValuePair<string, string?>("HttpLogging:RequestPathParameterRedactionMode","None"),
40new KeyValuePair<string, string?>("HttpLogging:ExcludePathStartsWith:[0]","/path0toexclude"),
41new KeyValuePair<string, string?>("HttpLogging:ExcludePathStartsWith:[1]","/path1toexclude"),
62new KeyValuePair<string, string?>("HttpLogging:IncludeUnmatchedRoutes", "true"),
63new KeyValuePair<string, string?>("HttpLogging:ExcludePathStartsWith:[0]", "/probe/live"),
64new KeyValuePair<string, string?>("HttpLogging:ExcludePathStartsWith:[1]", null),
65new KeyValuePair<string, string?>("HttpLogging:RequestPathLoggingMode", "Structured"),
66new KeyValuePair<string, string?>("HttpLogging:RequestPathParameterRedactionMode", "None"),
67new KeyValuePair<string, string?>("HttpLogging:RequestHeadersDataClasses:User-Agent", "None"),
68new KeyValuePair<string, string?>("HttpLogging:ResponseHeadersDataClasses:Content-Type", "Unknown"),
69new KeyValuePair<string, string?>("HttpLogging:RouteParameterDataClasses:userId", "MyTaxonomy:EUII"),
70new KeyValuePair<string, string?>("HttpLogging:RouteParameterDataClasses:userContent:TaxonomyName", "MyTaxonomy"),
71new KeyValuePair<string, string?>("HttpLogging:RouteParameterDataClasses:userContent:Value", "CustomerContent"),
104new KeyValuePair<string, string?>("HttpLogging:RequestHeadersDataClasses:User-Agent", "invalid"),
123new KeyValuePair<string, string?>("HttpLogging:RequestPathLoggingMode", "invalid"),
Microsoft.AspNetCore.HeaderParsing (11)
Microsoft.AspNetCore.Hosting (35)
Internal\HostingRequestFinishedLog.cs (12)
350 => new KeyValuePair<string, object?>("ElapsedMilliseconds", Elapsed.TotalMilliseconds),
361 => new KeyValuePair<string, object?>(nameof(response.StatusCode), response.StatusCode),
372 => new KeyValuePair<string, object?>(nameof(response.ContentType), response.ContentType),
383 => new KeyValuePair<string, object?>(nameof(response.ContentLength), response.ContentLength),
394 => new KeyValuePair<string, object?>(nameof(request.Protocol), request.Protocol),
405 => new KeyValuePair<string, object?>(nameof(request.Method), request.Method),
416 => new KeyValuePair<string, object?>(nameof(request.Scheme), request.Scheme),
427 => new KeyValuePair<string, object?>(nameof(request.Host), request.Host.Value),
438 => new KeyValuePair<string, object?>(nameof(request.PathBase), request.PathBase.Value),
449 => new KeyValuePair<string, object?>(nameof(request.Path), request.Path.Value),
4510 => new KeyValuePair<string, object?>(nameof(request.QueryString), request.QueryString.Value),
4611 => new KeyValuePair<string, object?>("{OriginalFormat}", OriginalFormat),
Internal\HostingRequestStartingLog.cs (10)
250 => new KeyValuePair<string, object?>(nameof(_request.Protocol), _request.Protocol),
261 => new KeyValuePair<string, object?>(nameof(_request.Method), _request.Method),
272 => new KeyValuePair<string, object?>(nameof(_request.ContentType), _request.ContentType),
283 => new KeyValuePair<string, object?>(nameof(_request.ContentLength), _request.ContentLength),
294 => new KeyValuePair<string, object?>(nameof(_request.Scheme), _request.Scheme),
305 => new KeyValuePair<string, object?>(nameof(_request.Host), _request.Host.Value),
316 => new KeyValuePair<string, object?>(nameof(_request.PathBase), _request.PathBase.Value),
327 => new KeyValuePair<string, object?>(nameof(_request.Path), _request.Path.Value),
338 => new KeyValuePair<string, object?>(nameof(_request.QueryString), _request.QueryString.Value),
349 => new KeyValuePair<string, object?>("{OriginalFormat}", OriginalFormat),
Internal\HostingRequestUnhandledLog.cs (7)
230 => new KeyValuePair<string, object?>(nameof(_httpContext.Request.Method), _httpContext.Request.Method),
241 => new KeyValuePair<string, object?>(nameof(_httpContext.Request.Scheme), _httpContext.Request.Scheme),
252 => new KeyValuePair<string, object?>(nameof(_httpContext.Request.Host), _httpContext.Request.Host),
263 => new KeyValuePair<string, object?>(nameof(_httpContext.Request.PathBase), _httpContext.Request.PathBase),
274 => new KeyValuePair<string, object?>(nameof(_httpContext.Request.Path), _httpContext.Request.Path),
285 => new KeyValuePair<string, object?>(nameof(_httpContext.Response.StatusCode), _httpContext.Response.StatusCode),
296 => new KeyValuePair<string, object?>("{OriginalFormat}", OriginalFormat),
Microsoft.AspNetCore.Http (5)
Microsoft.AspNetCore.Http.Abstractions (7)
Routing\RouteValueDictionary.cs (6)
292_arrayStorage[_count++] = new KeyValuePair<string, object?>(key, value);
296_arrayStorage[index] = new KeyValuePair<string, object?>(key, value);
383_arrayStorage[_count] = new KeyValuePair<string, object?>(key, value);
597_arrayStorage[Count] = new KeyValuePair<string, object?>(key, value);
684array[i] = new KeyValuePair<string, object?>(property.Name, property.GetValue(storage.Value));
857Current = new KeyValuePair<string, object?>(property.Name, property.GetValue(storage.Value));
Microsoft.AspNetCore.Http.Connections (5)
Internal\HttpConnectionsMetrics.cs (4)
51new KeyValuePair<string, object?>("signalr.connection.status", ResolveStopStatus(status)),
52new KeyValuePair<string, object?>("signalr.transport", ResolveTransportType(transportType)));
63_currentConnectionsCounter.Add(1, new KeyValuePair<string, object?>("signalr.transport", ResolveTransportType(transportType)));
75_currentConnectionsCounter.Add(-1, new KeyValuePair<string, object?>("signalr.transport", ResolveTransportType(transportType)));
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Extensions (13)
_generated\0\LoggerMessage.g.cs (10)
2290 => new global::System.Collections.Generic.KeyValuePair<string, object?>("Type", this._type),
2301 => new global::System.Collections.Generic.KeyValuePair<string, object?>("Name", this._name),
2312 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ParameterType", this._parameterType),
2323 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Constructor parameter '{Name}' of type '{ParameterType}' found for type '{Type}'."),
3130 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ConstructorParameterName", this._constructorParameterName),
3141 => new global::System.Collections.Generic.KeyValuePair<string, object?>("PropertyName", this._propertyName),
3152 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Candidate property {PropertyName} has a matching constructor parameter '{ConstructorParameterName}'."),
3800 => new global::System.Collections.Generic.KeyValuePair<string, object?>("CustomName", this._customName),
3811 => new global::System.Collections.Generic.KeyValuePair<string, object?>("PropertyName", this._propertyName),
3822 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Candidate property or constructor parameter {PropertyName} defines a custom name '{CustomName}'."),
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.Core (99)
_generated\0\LoggerMessage.g.cs (12)
6010 => new global::System.Collections.Generic.KeyValuePair<string, object?>("InitialActionResultType", this._initialActionResultType),
6021 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ReplacedActionResultType", this._replacedActionResultType),
6032 => new global::System.Collections.Generic.KeyValuePair<string, object?>("StatusCode", this._statusCode),
6043 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Replacing {InitialActionResultType} with status code {StatusCode} with {ReplacedActionResultType}."),
15070 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ModelName", this._modelName),
15081 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Attempting to bind model using indices. Example formats include: [0]=value1&[1]=value2, {ModelName}[0]=value1&{ModelName}[1]=value2, {ModelName}.index=zero&{ModelName}.index=one&{ModelName}[zero]=value1&{ModelName}[one]=value2"),
15670 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ModelName", this._modelName),
15681 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Attempting to bind collection of KeyValuePair. Example formats include: [0].Key=key1&[0].Value=value1&[1].Key=key2&[1].Value=value2, {ModelName}[0].Key=key1&{ModelName}[0].Value=value1&{ModelName}[1].Key=key2&{ModelName}[1].Value=value2, {ModelName}[key1]=value1&{ModelName}[key2]=value2"),
16270 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ModelName", this._modelName),
16281 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Could not bind to collection using a format like {ModelName}=value1&{ModelName}=value2"),
17810 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ModelName", this._modelName),
17821 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Attempting to bind model with name '{ModelName}' using the format {ModelName}[key1]=value1&{ModelName}[key2]=value2"),
Diagnostics\MvcDiagnostics.cs (83)
550 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
561 => new KeyValuePair<string, object>(nameof(HttpContext), HttpContext),
572 => new KeyValuePair<string, object>(nameof(RouteData), RouteData),
1060 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
1071 => new KeyValuePair<string, object>(nameof(HttpContext), HttpContext),
1082 => new KeyValuePair<string, object>(nameof(RouteData), RouteData),
1570 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
1581 => new KeyValuePair<string, object>(nameof(AuthorizationContext), AuthorizationContext),
1592 => new KeyValuePair<string, object>(nameof(Filter), Filter),
2080 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
2091 => new KeyValuePair<string, object>(nameof(AuthorizationContext), AuthorizationContext),
2102 => new KeyValuePair<string, object>(nameof(Filter), Filter),
2590 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
2601 => new KeyValuePair<string, object>(nameof(ResourceExecutingContext), ResourceExecutingContext),
2612 => new KeyValuePair<string, object>(nameof(Filter), Filter),
3100 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
3111 => new KeyValuePair<string, object>(nameof(ResourceExecutedContext), ResourceExecutedContext),
3122 => new KeyValuePair<string, object>(nameof(Filter), Filter),
3610 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
3621 => new KeyValuePair<string, object>(nameof(ResourceExecutingContext), ResourceExecutingContext),
3632 => new KeyValuePair<string, object>(nameof(Filter), Filter),
4120 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
4131 => new KeyValuePair<string, object>(nameof(ResourceExecutingContext), ResourceExecutingContext),
4142 => new KeyValuePair<string, object>(nameof(Filter), Filter),
4630 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
4641 => new KeyValuePair<string, object>(nameof(ResourceExecutedContext), ResourceExecutedContext),
4652 => new KeyValuePair<string, object>(nameof(Filter), Filter),
5140 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
5151 => new KeyValuePair<string, object>(nameof(ResourceExecutedContext), ResourceExecutedContext),
5162 => new KeyValuePair<string, object>(nameof(Filter), Filter),
5650 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
5661 => new KeyValuePair<string, object>(nameof(ExceptionContext), ExceptionContext),
5672 => new KeyValuePair<string, object>(nameof(Filter), Filter),
6160 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
6171 => new KeyValuePair<string, object>(nameof(ExceptionContext), ExceptionContext),
6182 => new KeyValuePair<string, object>(nameof(Filter), Filter),
6670 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
6681 => new KeyValuePair<string, object>(nameof(ActionExecutingContext), ActionExecutingContext),
6692 => new KeyValuePair<string, object>(nameof(Filter), Filter),
7180 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
7191 => new KeyValuePair<string, object>(nameof(ActionExecutedContext), ActionExecutedContext),
7202 => new KeyValuePair<string, object>(nameof(Filter), Filter),
7690 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
7701 => new KeyValuePair<string, object>(nameof(ActionExecutingContext), ActionExecutingContext),
7712 => new KeyValuePair<string, object>(nameof(Filter), Filter),
8200 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
8211 => new KeyValuePair<string, object>(nameof(ActionExecutingContext), ActionExecutingContext),
8222 => new KeyValuePair<string, object>(nameof(Filter), Filter),
8710 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
8721 => new KeyValuePair<string, object>(nameof(ActionExecutedContext), ActionExecutedContext),
8732 => new KeyValuePair<string, object>(nameof(Filter), Filter),
9220 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
9231 => new KeyValuePair<string, object>(nameof(ActionExecutedContext), ActionExecutedContext),
9242 => new KeyValuePair<string, object>(nameof(Filter), Filter),
9730 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext),
9741 => new KeyValuePair<string, object>(nameof(ActionArguments), ActionArguments),
9752 => new KeyValuePair<string, object>(nameof(Controller), Controller),
10310 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext),
10321 => new KeyValuePair<string, object>(nameof(Controller), Controller),
10332 => new KeyValuePair<string, object>(nameof(Controller), Controller),
10343 => new KeyValuePair<string, object>(nameof(Result), Result),
10830 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
10841 => new KeyValuePair<string, object>(nameof(ResultExecutingContext), ResultExecutingContext),
10852 => new KeyValuePair<string, object>(nameof(Filter), Filter),
11340 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
11351 => new KeyValuePair<string, object>(nameof(ResultExecutedContext), ResultExecutedContext),
11362 => new KeyValuePair<string, object>(nameof(Filter), Filter),
11850 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
11861 => new KeyValuePair<string, object>(nameof(ResultExecutingContext), ResultExecutingContext),
11872 => new KeyValuePair<string, object>(nameof(Filter), Filter),
12360 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
12371 => new KeyValuePair<string, object>(nameof(ResultExecutingContext), ResultExecutingContext),
12382 => new KeyValuePair<string, object>(nameof(Filter), Filter),
12870 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
12881 => new KeyValuePair<string, object>(nameof(ResultExecutedContext), ResultExecutedContext),
12892 => new KeyValuePair<string, object>(nameof(Filter), Filter),
13380 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
13391 => new KeyValuePair<string, object>(nameof(ResultExecutedContext), ResultExecutedContext),
13402 => new KeyValuePair<string, object>(nameof(Filter), Filter),
13820 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext),
13831 => new KeyValuePair<string, object>(nameof(Result), Result),
14250 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext),
14261 => new KeyValuePair<string, object>(nameof(Result), Result),
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.Razor (8)
Diagnostics\MvcDiagnostics.cs (8)
640 => new KeyValuePair<string, object>(nameof(Page), Page),
651 => new KeyValuePair<string, object>(nameof(ViewContext), ViewContext),
662 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
673 => new KeyValuePair<string, object>(nameof(HttpContext), HttpContext),
1250 => new KeyValuePair<string, object>(nameof(Page), Page),
1261 => new KeyValuePair<string, object>(nameof(ViewContext), ViewContext),
1272 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
1283 => new KeyValuePair<string, object>(nameof(HttpContext), HttpContext),
Microsoft.AspNetCore.Mvc.RazorPages (39)
Diagnostics\MvcDiagnostics.cs (39)
610 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext),
621 => new KeyValuePair<string, object>(nameof(Arguments), Arguments),
632 => new KeyValuePair<string, object>(nameof(HandlerMethodDescriptor), HandlerMethodDescriptor),
643 => new KeyValuePair<string, object>(nameof(Instance), Instance),
1270 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext),
1281 => new KeyValuePair<string, object>(nameof(Arguments), Arguments),
1292 => new KeyValuePair<string, object>(nameof(HandlerMethodDescriptor), HandlerMethodDescriptor),
1303 => new KeyValuePair<string, object>(nameof(Instance), Instance),
1314 => new KeyValuePair<string, object>(nameof(Result), Result!),
1800 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
1811 => new KeyValuePair<string, object>(nameof(HandlerExecutionContext), HandlerExecutionContext),
1822 => new KeyValuePair<string, object>(nameof(Filter), Filter),
2310 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
2321 => new KeyValuePair<string, object>(nameof(HandlerExecutedContext), HandlerExecutedContext),
2332 => new KeyValuePair<string, object>(nameof(Filter), Filter),
2820 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
2831 => new KeyValuePair<string, object>(nameof(HandlerExecutingContext), HandlerExecutingContext),
2842 => new KeyValuePair<string, object>(nameof(Filter), Filter),
3330 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
3341 => new KeyValuePair<string, object>(nameof(HandlerExecutingContext), HandlerExecutingContext),
3352 => new KeyValuePair<string, object>(nameof(Filter), Filter),
3840 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
3851 => new KeyValuePair<string, object>(nameof(HandlerExecutedContext), HandlerExecutedContext),
3862 => new KeyValuePair<string, object>(nameof(Filter), Filter),
4350 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
4361 => new KeyValuePair<string, object>(nameof(HandlerExecutedContext), HandlerExecutedContext),
4372 => new KeyValuePair<string, object>(nameof(Filter), Filter),
4860 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
4871 => new KeyValuePair<string, object>(nameof(HandlerSelectedContext), HandlerSelectedContext),
4882 => new KeyValuePair<string, object>(nameof(Filter), Filter),
5370 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
5381 => new KeyValuePair<string, object>(nameof(HandlerSelectedContext), HandlerSelectedContext),
5392 => new KeyValuePair<string, object>(nameof(Filter), Filter),
5880 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
5891 => new KeyValuePair<string, object>(nameof(HandlerSelectedContext), HandlerSelectedContext),
5902 => new KeyValuePair<string, object>(nameof(Filter), Filter),
6390 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
6401 => new KeyValuePair<string, object>(nameof(HandlerSelectedContext), HandlerSelectedContext),
6412 => new KeyValuePair<string, object>(nameof(Filter), Filter),
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (31)
Diagnostics\MvcDiagnostics.cs (27)
550 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
561 => new KeyValuePair<string, object>(nameof(ViewComponentContext), ViewComponentContext),
572 => new KeyValuePair<string, object>(nameof(ViewComponent), ViewComponent),
1130 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
1141 => new KeyValuePair<string, object>(nameof(ViewComponentContext), ViewComponentContext),
1152 => new KeyValuePair<string, object>(nameof(ViewComponent), ViewComponent),
1163 => new KeyValuePair<string, object>(nameof(ViewComponentResult), ViewComponentResult),
1640 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
1651 => new KeyValuePair<string, object>(nameof(ViewComponentContext), ViewComponentContext),
1662 => new KeyValuePair<string, object>(nameof(View), View),
2150 => new KeyValuePair<string, object>(nameof(ActionDescriptor), ActionDescriptor),
2161 => new KeyValuePair<string, object>(nameof(ViewComponentContext), ViewComponentContext),
2172 => new KeyValuePair<string, object>(nameof(View), View),
2590 => new KeyValuePair<string, object>(nameof(View), View),
2601 => new KeyValuePair<string, object>(nameof(ViewContext), ViewContext),
3020 => new KeyValuePair<string, object>(nameof(View), View),
3031 => new KeyValuePair<string, object>(nameof(ViewContext), ViewContext),
3700 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext),
3711 => new KeyValuePair<string, object>(nameof(IsMainPage), IsMainPage ? BoxedTrue : BoxedFalse),
3722 => new KeyValuePair<string, object>(nameof(Result), Result),
3733 => new KeyValuePair<string, object>(nameof(ViewName), ViewName),
3744 => new KeyValuePair<string, object>(nameof(View), View),
4410 => new KeyValuePair<string, object>(nameof(ActionContext), ActionContext),
4421 => new KeyValuePair<string, object>(nameof(IsMainPage), IsMainPage ? BoxedTrue : BoxedFalse),
4432 => new KeyValuePair<string, object>(nameof(Result), Result),
4443 => new KeyValuePair<string, object>(nameof(ViewName), ViewName),
4454 => new KeyValuePair<string, object>(nameof(SearchedLocations), SearchedLocations),
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.Owin (16)
OwinFeatureCollection.cs (10)
400yield return new KeyValuePair<Type, object>(typeof(IHttpRequestFeature), this);
401yield return new KeyValuePair<Type, object>(typeof(IHttpResponseFeature), this);
402yield return new KeyValuePair<Type, object>(typeof(IHttpResponseBodyFeature), this);
403yield return new KeyValuePair<Type, object>(typeof(IHttpConnectionFeature), this);
404yield return new KeyValuePair<Type, object>(typeof(IHttpRequestIdentifierFeature), this);
405yield return new KeyValuePair<Type, object>(typeof(IHttpRequestLifetimeFeature), this);
406yield return new KeyValuePair<Type, object>(typeof(IHttpAuthenticationFeature), this);
407yield return new KeyValuePair<Type, object>(typeof(IOwinEnvironmentFeature), this);
412yield return new KeyValuePair<Type, object>(typeof(ITlsConnectionFeature), this);
416yield return new KeyValuePair<Type, object>(typeof(IHttpWebSocketFeature), this);
Microsoft.AspNetCore.Routing (16)
RoutingMetrics.cs (4)
35new KeyValuePair<string, object?>("http.route", RouteDiagnosticsHelpers.ResolveHttpRoute(route)),
36new KeyValuePair<string, object?>("aspnetcore.routing.match_status", "success"),
37new KeyValuePair<string, object?>("aspnetcore.routing.is_fallback", isFallback ? BoxedTrue : BoxedFalse));
43new KeyValuePair<string, object?>("aspnetcore.routing.match_status", "failure"));
Template\TemplateBinder.cs (6)
184slots[i] = new KeyValuePair<string, object?>(key, value);
318slots[i] = new KeyValuePair<string, object?>(key, ambientValue);
331slots[i] = new KeyValuePair<string, object?>(key, ambientValue);
343slots[i] = new KeyValuePair<string, object?>(key, defaultValue);
726slots[i] = new KeyValuePair<string, object?>(pattern.Parameters[i].Name, null);
731slots[i + pattern.Parameters.Count] = new KeyValuePair<string, object?>(filters[i].Key, null);
Microsoft.AspNetCore.Server.HttpSys (43)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (41)
2539yield return new KeyValuePair<string, StringValues>(HeaderNames.Accept, Accept);
2543yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, AcceptCharset);
2547yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, AcceptEncoding);
2551yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, AcceptLanguage);
2555yield return new KeyValuePair<string, StringValues>(HeaderNames.Allow, Allow);
2559yield return new KeyValuePair<string, StringValues>(HeaderNames.Authorization, Authorization);
2563yield return new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, CacheControl);
2567yield return new KeyValuePair<string, StringValues>(HeaderNames.Connection, Connection);
2571yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, ContentEncoding);
2575yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, ContentLanguage);
2579yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, ContentLength);
2583yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, ContentLocation);
2587yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, ContentMD5);
2591yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, ContentRange);
2595yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentType, ContentType);
2599yield return new KeyValuePair<string, StringValues>(HeaderNames.Cookie, Cookie);
2603yield return new KeyValuePair<string, StringValues>(HeaderNames.Date, Date);
2607yield return new KeyValuePair<string, StringValues>(HeaderNames.Expect, Expect);
2611yield return new KeyValuePair<string, StringValues>(HeaderNames.Expires, Expires);
2615yield return new KeyValuePair<string, StringValues>(HeaderNames.From, From);
2619yield return new KeyValuePair<string, StringValues>(HeaderNames.Host, Host);
2623yield return new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, IfMatch);
2627yield return new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, IfModifiedSince);
2631yield return new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, IfNoneMatch);
2635yield return new KeyValuePair<string, StringValues>(HeaderNames.IfRange, IfRange);
2639yield return new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, IfUnmodifiedSince);
2643yield return new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, KeepAlive);
2647yield return new KeyValuePair<string, StringValues>(HeaderNames.LastModified, LastModified);
2651yield return new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, MaxForwards);
2655yield return new KeyValuePair<string, StringValues>(HeaderNames.Pragma, Pragma);
2659yield return new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, ProxyAuthorization);
2663yield return new KeyValuePair<string, StringValues>(HeaderNames.Range, Range);
2667yield return new KeyValuePair<string, StringValues>(HeaderNames.Referer, Referer);
2671yield return new KeyValuePair<string, StringValues>(HeaderNames.TE, TE);
2675yield return new KeyValuePair<string, StringValues>(HeaderNames.Trailer, Trailer);
2679yield return new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, TransferEncoding);
2683yield return new KeyValuePair<string, StringValues>(HeaderNames.Translate, Translate);
2687yield return new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, Upgrade);
2691yield return new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, UserAgent);
2695yield return new KeyValuePair<string, StringValues>(HeaderNames.Via, Via);
2699yield return new KeyValuePair<string, StringValues>(HeaderNames.Warning, Warning);
Microsoft.AspNetCore.Server.IIS (71)
Core\IISHttpContext.Features.cs (25)
369yield return new KeyValuePair<Type, object>(IHttpRequestFeatureType, _currentIHttpRequestFeature);
373yield return new KeyValuePair<Type, object>(IHttpRequestBodyDetectionFeature, _currentIHttpRequestBodyDetectionFeature);
377yield return new KeyValuePair<Type, object>(IHttpResponseFeatureType, _currentIHttpResponseFeature);
381yield return new KeyValuePair<Type, object>(IHttpResponseBodyFeatureType, _currentIHttpResponseBodyFeature);
385yield return new KeyValuePair<Type, object>(IHttpRequestIdentifierFeatureType, _currentIHttpRequestIdentifierFeature);
389yield return new KeyValuePair<Type, object>(IServiceProvidersFeatureType, _currentIServiceProvidersFeature);
393yield return new KeyValuePair<Type, object>(IHttpRequestLifetimeFeatureType, _currentIHttpRequestLifetimeFeature);
397yield return new KeyValuePair<Type, object>(IHttpConnectionFeatureType, _currentIHttpConnectionFeature);
401yield return new KeyValuePair<Type, object>(IHttpAuthenticationFeatureType, _currentIHttpAuthenticationFeature);
405yield return new KeyValuePair<Type, object>(IQueryFeatureType, _currentIQueryFeature);
409yield return new KeyValuePair<Type, object>(IFormFeatureType, _currentIFormFeature);
413yield return new KeyValuePair<Type, object>(IHttpUpgradeFeatureType, _currentIHttpUpgradeFeature);
417yield return new KeyValuePair<Type, object>(IResponseCookiesFeatureType, _currentIResponseCookiesFeature);
421yield return new KeyValuePair<Type, object>(IItemsFeatureType, _currentIItemsFeature);
425yield return new KeyValuePair<Type, object>(ITlsConnectionFeatureType, _currentITlsConnectionFeature);
429yield return new KeyValuePair<Type, object>(ITlsHandshakeFeatureType, _currentITlsHandshakeFeature);
433yield return new KeyValuePair<Type, object>(IHttpWebSocketFeatureType, _currentIHttpWebSocketFeature);
437yield return new KeyValuePair<Type, object>(ISessionFeatureType, _currentISessionFeature);
441yield return new KeyValuePair<Type, object>(IHttpBodyControlFeatureType, _currentIHttpBodyControlFeature);
445yield return new KeyValuePair<Type, object>(IServerVariablesFeature, _currentIServerVariablesFeature);
449yield return new KeyValuePair<Type, object>(IHttpMaxRequestBodySizeFeature, _currentIHttpMaxRequestBodySizeFeature);
453yield return new KeyValuePair<Type, object>(IHttpResponseTrailersFeature, _currentIHttpResponseTrailersFeature);
457yield return new KeyValuePair<Type, object>(IHttpResponseTrailersFeature, _currentIHttpResetFeature);
461yield return new KeyValuePair<Type, object>(IConnectionEndPointFeature, _currentIConnectionEndPointFeature);
465yield return new KeyValuePair<Type, object>(IHttpActivityFeature, _currentIHttpActivityFeature);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (41)
2539yield return new KeyValuePair<string, StringValues>(HeaderNames.Accept, Accept);
2543yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, AcceptCharset);
2547yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, AcceptEncoding);
2551yield return new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, AcceptLanguage);
2555yield return new KeyValuePair<string, StringValues>(HeaderNames.Allow, Allow);
2559yield return new KeyValuePair<string, StringValues>(HeaderNames.Authorization, Authorization);
2563yield return new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, CacheControl);
2567yield return new KeyValuePair<string, StringValues>(HeaderNames.Connection, Connection);
2571yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, ContentEncoding);
2575yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, ContentLanguage);
2579yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, ContentLength);
2583yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, ContentLocation);
2587yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, ContentMD5);
2591yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, ContentRange);
2595yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentType, ContentType);
2599yield return new KeyValuePair<string, StringValues>(HeaderNames.Cookie, Cookie);
2603yield return new KeyValuePair<string, StringValues>(HeaderNames.Date, Date);
2607yield return new KeyValuePair<string, StringValues>(HeaderNames.Expect, Expect);
2611yield return new KeyValuePair<string, StringValues>(HeaderNames.Expires, Expires);
2615yield return new KeyValuePair<string, StringValues>(HeaderNames.From, From);
2619yield return new KeyValuePair<string, StringValues>(HeaderNames.Host, Host);
2623yield return new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, IfMatch);
2627yield return new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, IfModifiedSince);
2631yield return new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, IfNoneMatch);
2635yield return new KeyValuePair<string, StringValues>(HeaderNames.IfRange, IfRange);
2639yield return new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, IfUnmodifiedSince);
2643yield return new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, KeepAlive);
2647yield return new KeyValuePair<string, StringValues>(HeaderNames.LastModified, LastModified);
2651yield return new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, MaxForwards);
2655yield return new KeyValuePair<string, StringValues>(HeaderNames.Pragma, Pragma);
2659yield return new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, ProxyAuthorization);
2663yield return new KeyValuePair<string, StringValues>(HeaderNames.Range, Range);
2667yield return new KeyValuePair<string, StringValues>(HeaderNames.Referer, Referer);
2671yield return new KeyValuePair<string, StringValues>(HeaderNames.TE, TE);
2675yield return new KeyValuePair<string, StringValues>(HeaderNames.Trailer, Trailer);
2679yield return new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, TransferEncoding);
2683yield return new KeyValuePair<string, StringValues>(HeaderNames.Translate, Translate);
2687yield return new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, Upgrade);
2691yield return new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, UserAgent);
2695yield return new KeyValuePair<string, StringValues>(HeaderNames.Via, Via);
2699yield return new KeyValuePair<string, StringValues>(HeaderNames.Warning, Warning);
Microsoft.AspNetCore.Server.Kestrel.Core (246)
_generated\0\LoggerMessage.g.cs (7)
2630 => new global::System.Collections.Generic.KeyValuePair<string, object?>("Path", this._path),
2641 => new global::System.Collections.Generic.KeyValuePair<string, object?>("Count", this._count),
2652 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Flagged {Count} observers of '{Path}' as changed."),
11050 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ConnectionId", this._connectionId),
11061 => new global::System.Collections.Generic.KeyValuePair<string, object?>("Expected", this._expected),
11072 => new global::System.Collections.Generic.KeyValuePair<string, object?>("Actual", this._actual),
11083 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Connection id \"{ConnectionId}\" configured maximum flow control queue size {Actual} is less than the maximum streams per connection {Expected}. Increasing configured value to {Expected}."),
Internal\Http\HttpHeaders.Generated.cs (185)
7028array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Accept, _headers._Accept);
7037array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _headers._Connection);
7046array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Host, _headers._Host);
7055array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, _headers._UserAgent);
7064array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.Authority, _headers._Authority);
7073array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.Method, _headers._Method);
7082array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.Path, _headers._Path);
7091array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.Protocol, _headers._Protocol);
7100array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.Scheme, _headers._Scheme);
7109array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, _headers._AcceptCharset);
7118array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, _headers._AcceptEncoding);
7127array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, _headers._AcceptLanguage);
7136array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestHeaders, _headers._AccessControlRequestHeaders);
7145array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestMethod, _headers._AccessControlRequestMethod);
7154array[arrayIndex] = new KeyValuePair<string, StringValues>(InternalHeaderNames.AltUsed, _headers._AltUsed);
7163array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Authorization, _headers._Authorization);
7172array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Baggage, _headers._Baggage);
7181array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _headers._CacheControl);
7190array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _headers._ContentType);
7199array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Cookie, _headers._Cookie);
7208array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.CorrelationContext, _headers._CorrelationContext);
7217array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Date, _headers._Date);
7226array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Expect, _headers._Expect);
7235array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.From, _headers._From);
7244array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcAcceptEncoding, _headers._GrpcAcceptEncoding);
7253array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _headers._GrpcEncoding);
7262array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcTimeout, _headers._GrpcTimeout);
7271array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, _headers._IfMatch);
7280array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, _headers._IfModifiedSince);
7289array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, _headers._IfNoneMatch);
7298array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfRange, _headers._IfRange);
7307array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, _headers._IfUnmodifiedSince);
7316array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _headers._KeepAlive);
7325array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, _headers._MaxForwards);
7334array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Origin, _headers._Origin);
7343array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _headers._Pragma);
7352array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, _headers._ProxyAuthorization);
7361array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Range, _headers._Range);
7370array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Referer, _headers._Referer);
7379array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.RequestId, _headers._RequestId);
7388array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TE, _headers._TE);
7397array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TraceParent, _headers._TraceParent);
7406array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TraceState, _headers._TraceState);
7415array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _headers._TransferEncoding);
7424array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Translate, _headers._Translate);
7433array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _headers._Upgrade);
7442array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.UpgradeInsecureRequests, _headers._UpgradeInsecureRequests);
7451array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Via, _headers._Via);
7460array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _headers._Warning);
7469array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value));
8404_current = new KeyValuePair<string, StringValues>(HeaderNames.Accept, _collection._headers._Accept);
8409_current = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _collection._headers._Connection);
8414_current = new KeyValuePair<string, StringValues>(HeaderNames.Host, _collection._headers._Host);
8419_current = new KeyValuePair<string, StringValues>(HeaderNames.UserAgent, _collection._headers._UserAgent);
8424_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.Authority, _collection._headers._Authority);
8429_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.Method, _collection._headers._Method);
8434_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.Path, _collection._headers._Path);
8439_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.Protocol, _collection._headers._Protocol);
8444_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.Scheme, _collection._headers._Scheme);
8449_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptCharset, _collection._headers._AcceptCharset);
8454_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptEncoding, _collection._headers._AcceptEncoding);
8459_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptLanguage, _collection._headers._AcceptLanguage);
8464_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestHeaders, _collection._headers._AccessControlRequestHeaders);
8469_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlRequestMethod, _collection._headers._AccessControlRequestMethod);
8474_current = new KeyValuePair<string, StringValues>(InternalHeaderNames.AltUsed, _collection._headers._AltUsed);
8479_current = new KeyValuePair<string, StringValues>(HeaderNames.Authorization, _collection._headers._Authorization);
8484_current = new KeyValuePair<string, StringValues>(HeaderNames.Baggage, _collection._headers._Baggage);
8489_current = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _collection._headers._CacheControl);
8494_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _collection._headers._ContentType);
8499_current = new KeyValuePair<string, StringValues>(HeaderNames.Cookie, _collection._headers._Cookie);
8504_current = new KeyValuePair<string, StringValues>(HeaderNames.CorrelationContext, _collection._headers._CorrelationContext);
8509_current = new KeyValuePair<string, StringValues>(HeaderNames.Date, _collection._headers._Date);
8514_current = new KeyValuePair<string, StringValues>(HeaderNames.Expect, _collection._headers._Expect);
8519_current = new KeyValuePair<string, StringValues>(HeaderNames.From, _collection._headers._From);
8524_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcAcceptEncoding, _collection._headers._GrpcAcceptEncoding);
8529_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _collection._headers._GrpcEncoding);
8534_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcTimeout, _collection._headers._GrpcTimeout);
8539_current = new KeyValuePair<string, StringValues>(HeaderNames.IfMatch, _collection._headers._IfMatch);
8544_current = new KeyValuePair<string, StringValues>(HeaderNames.IfModifiedSince, _collection._headers._IfModifiedSince);
8549_current = new KeyValuePair<string, StringValues>(HeaderNames.IfNoneMatch, _collection._headers._IfNoneMatch);
8554_current = new KeyValuePair<string, StringValues>(HeaderNames.IfRange, _collection._headers._IfRange);
8559_current = new KeyValuePair<string, StringValues>(HeaderNames.IfUnmodifiedSince, _collection._headers._IfUnmodifiedSince);
8564_current = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _collection._headers._KeepAlive);
8569_current = new KeyValuePair<string, StringValues>(HeaderNames.MaxForwards, _collection._headers._MaxForwards);
8574_current = new KeyValuePair<string, StringValues>(HeaderNames.Origin, _collection._headers._Origin);
8579_current = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _collection._headers._Pragma);
8584_current = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthorization, _collection._headers._ProxyAuthorization);
8589_current = new KeyValuePair<string, StringValues>(HeaderNames.Range, _collection._headers._Range);
8594_current = new KeyValuePair<string, StringValues>(HeaderNames.Referer, _collection._headers._Referer);
8599_current = new KeyValuePair<string, StringValues>(HeaderNames.RequestId, _collection._headers._RequestId);
8604_current = new KeyValuePair<string, StringValues>(HeaderNames.TE, _collection._headers._TE);
8609_current = new KeyValuePair<string, StringValues>(HeaderNames.TraceParent, _collection._headers._TraceParent);
8614_current = new KeyValuePair<string, StringValues>(HeaderNames.TraceState, _collection._headers._TraceState);
8619_current = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _collection._headers._TransferEncoding);
8624_current = new KeyValuePair<string, StringValues>(HeaderNames.Translate, _collection._headers._Translate);
8629_current = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _collection._headers._Upgrade);
8634_current = new KeyValuePair<string, StringValues>(HeaderNames.UpgradeInsecureRequests, _collection._headers._UpgradeInsecureRequests);
8639_current = new KeyValuePair<string, StringValues>(HeaderNames.Via, _collection._headers._Via);
8644_current = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _collection._headers._Warning);
8649_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault()));
14454array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _headers._Connection);
14463array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _headers._ContentType);
14472array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Date, _headers._Date);
14481array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Server, _headers._Server);
14490array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AcceptRanges, _headers._AcceptRanges);
14499array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowCredentials, _headers._AccessControlAllowCredentials);
14508array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowHeaders, _headers._AccessControlAllowHeaders);
14517array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowMethods, _headers._AccessControlAllowMethods);
14526array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowOrigin, _headers._AccessControlAllowOrigin);
14535array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlExposeHeaders, _headers._AccessControlExposeHeaders);
14544array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlMaxAge, _headers._AccessControlMaxAge);
14553array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Age, _headers._Age);
14562array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Allow, _headers._Allow);
14571array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.AltSvc, _headers._AltSvc);
14580array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _headers._CacheControl);
14589array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, _headers._ContentEncoding);
14598array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, _headers._ContentLanguage);
14607array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, _headers._ContentLocation);
14616array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, _headers._ContentMD5);
14625array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, _headers._ContentRange);
14634array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _headers._ETag);
14643array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Expires, _headers._Expires);
14652array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _headers._GrpcEncoding);
14661array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _headers._KeepAlive);
14670array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.LastModified, _headers._LastModified);
14679array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Location, _headers._Location);
14688array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _headers._Pragma);
14697array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthenticate, _headers._ProxyAuthenticate);
14706array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ProxyConnection, _headers._ProxyConnection);
14715array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.RetryAfter, _headers._RetryAfter);
14724array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.SetCookie, _headers._SetCookie);
14733array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Trailer, _headers._Trailer);
14742array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _headers._TransferEncoding);
14751array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _headers._Upgrade);
14760array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Vary, _headers._Vary);
14769array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Via, _headers._Via);
14778array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _headers._Warning);
14787array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.WWWAuthenticate, _headers._WWWAuthenticate);
14796array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value));
15254_current = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _collection._headers._Connection);
15260_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentType, _collection._headers._ContentType);
15266_current = new KeyValuePair<string, StringValues>(HeaderNames.Date, _collection._headers._Date);
15272_current = new KeyValuePair<string, StringValues>(HeaderNames.Server, _collection._headers._Server);
15278_current = new KeyValuePair<string, StringValues>(HeaderNames.AcceptRanges, _collection._headers._AcceptRanges);
15284_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowCredentials, _collection._headers._AccessControlAllowCredentials);
15290_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowHeaders, _collection._headers._AccessControlAllowHeaders);
15296_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowMethods, _collection._headers._AccessControlAllowMethods);
15302_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlAllowOrigin, _collection._headers._AccessControlAllowOrigin);
15308_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlExposeHeaders, _collection._headers._AccessControlExposeHeaders);
15314_current = new KeyValuePair<string, StringValues>(HeaderNames.AccessControlMaxAge, _collection._headers._AccessControlMaxAge);
15320_current = new KeyValuePair<string, StringValues>(HeaderNames.Age, _collection._headers._Age);
15326_current = new KeyValuePair<string, StringValues>(HeaderNames.Allow, _collection._headers._Allow);
15332_current = new KeyValuePair<string, StringValues>(HeaderNames.AltSvc, _collection._headers._AltSvc);
15338_current = new KeyValuePair<string, StringValues>(HeaderNames.CacheControl, _collection._headers._CacheControl);
15344_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentEncoding, _collection._headers._ContentEncoding);
15350_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLanguage, _collection._headers._ContentLanguage);
15356_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLocation, _collection._headers._ContentLocation);
15362_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentMD5, _collection._headers._ContentMD5);
15368_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentRange, _collection._headers._ContentRange);
15374_current = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _collection._headers._ETag);
15380_current = new KeyValuePair<string, StringValues>(HeaderNames.Expires, _collection._headers._Expires);
15386_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcEncoding, _collection._headers._GrpcEncoding);
15392_current = new KeyValuePair<string, StringValues>(HeaderNames.KeepAlive, _collection._headers._KeepAlive);
15398_current = new KeyValuePair<string, StringValues>(HeaderNames.LastModified, _collection._headers._LastModified);
15404_current = new KeyValuePair<string, StringValues>(HeaderNames.Location, _collection._headers._Location);
15410_current = new KeyValuePair<string, StringValues>(HeaderNames.Pragma, _collection._headers._Pragma);
15416_current = new KeyValuePair<string, StringValues>(HeaderNames.ProxyAuthenticate, _collection._headers._ProxyAuthenticate);
15422_current = new KeyValuePair<string, StringValues>(HeaderNames.ProxyConnection, _collection._headers._ProxyConnection);
15428_current = new KeyValuePair<string, StringValues>(HeaderNames.RetryAfter, _collection._headers._RetryAfter);
15434_current = new KeyValuePair<string, StringValues>(HeaderNames.SetCookie, _collection._headers._SetCookie);
15440_current = new KeyValuePair<string, StringValues>(HeaderNames.Trailer, _collection._headers._Trailer);
15446_current = new KeyValuePair<string, StringValues>(HeaderNames.TransferEncoding, _collection._headers._TransferEncoding);
15452_current = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _collection._headers._Upgrade);
15458_current = new KeyValuePair<string, StringValues>(HeaderNames.Vary, _collection._headers._Vary);
15464_current = new KeyValuePair<string, StringValues>(HeaderNames.Via, _collection._headers._Via);
15470_current = new KeyValuePair<string, StringValues>(HeaderNames.Warning, _collection._headers._Warning);
15476_current = new KeyValuePair<string, StringValues>(HeaderNames.WWWAuthenticate, _collection._headers._WWWAuthenticate);
15482_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault()));
17537array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _headers._ETag);
17546array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcMessage, _headers._GrpcMessage);
17555array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.GrpcStatus, _headers._GrpcStatus);
17564array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value));
17590_current = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _collection._headers._ETag);
17596_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcMessage, _collection._headers._GrpcMessage);
17602_current = new KeyValuePair<string, StringValues>(HeaderNames.GrpcStatus, _collection._headers._GrpcStatus);
Internal\Http\HttpProtocol.Generated.cs (37)
175MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
179MaybeExtra.Add(new KeyValuePair<Type, object>(key, value));
808yield return new KeyValuePair<Type, object>(typeof(IHttpRequestFeature), _currentIHttpRequestFeature);
812yield return new KeyValuePair<Type, object>(typeof(IHttpResponseFeature), _currentIHttpResponseFeature);
816yield return new KeyValuePair<Type, object>(typeof(IHttpResponseBodyFeature), _currentIHttpResponseBodyFeature);
820yield return new KeyValuePair<Type, object>(typeof(IRouteValuesFeature), _currentIRouteValuesFeature);
824yield return new KeyValuePair<Type, object>(typeof(IEndpointFeature), _currentIEndpointFeature);
828yield return new KeyValuePair<Type, object>(typeof(IServiceProvidersFeature), _currentIServiceProvidersFeature);
832yield return new KeyValuePair<Type, object>(typeof(IHttpActivityFeature), _currentIHttpActivityFeature);
836yield return new KeyValuePair<Type, object>(typeof(IHttpMetricsTagsFeature), _currentIHttpMetricsTagsFeature);
840yield return new KeyValuePair<Type, object>(typeof(IItemsFeature), _currentIItemsFeature);
844yield return new KeyValuePair<Type, object>(typeof(IQueryFeature), _currentIQueryFeature);
848yield return new KeyValuePair<Type, object>(typeof(IRequestBodyPipeFeature), _currentIRequestBodyPipeFeature);
852yield return new KeyValuePair<Type, object>(typeof(IFormFeature), _currentIFormFeature);
856yield return new KeyValuePair<Type, object>(typeof(IHttpAuthenticationFeature), _currentIHttpAuthenticationFeature);
860yield return new KeyValuePair<Type, object>(typeof(IHttpRequestIdentifierFeature), _currentIHttpRequestIdentifierFeature);
864yield return new KeyValuePair<Type, object>(typeof(IHttpConnectionFeature), _currentIHttpConnectionFeature);
868yield return new KeyValuePair<Type, object>(typeof(ISessionFeature), _currentISessionFeature);
872yield return new KeyValuePair<Type, object>(typeof(IResponseCookiesFeature), _currentIResponseCookiesFeature);
876yield return new KeyValuePair<Type, object>(typeof(IHttpRequestTrailersFeature), _currentIHttpRequestTrailersFeature);
880yield return new KeyValuePair<Type, object>(typeof(IHttpResponseTrailersFeature), _currentIHttpResponseTrailersFeature);
884yield return new KeyValuePair<Type, object>(typeof(ITlsConnectionFeature), _currentITlsConnectionFeature);
888yield return new KeyValuePair<Type, object>(typeof(IHttpExtendedConnectFeature), _currentIHttpExtendedConnectFeature);
892yield return new KeyValuePair<Type, object>(typeof(IHttpUpgradeFeature), _currentIHttpUpgradeFeature);
896yield return new KeyValuePair<Type, object>(typeof(IHttpWebSocketFeature), _currentIHttpWebSocketFeature);
900yield return new KeyValuePair<Type, object>(typeof(IHttpWebTransportFeature), _currentIHttpWebTransportFeature);
904yield return new KeyValuePair<Type, object>(typeof(IBadRequestExceptionFeature), _currentIBadRequestExceptionFeature);
908yield return new KeyValuePair<Type, object>(typeof(IHttpRequestTimeoutFeature), _currentIHttpRequestTimeoutFeature);
912yield return new KeyValuePair<Type, object>(typeof(IHttp2StreamIdFeature), _currentIHttp2StreamIdFeature);
916yield return new KeyValuePair<Type, object>(typeof(IHttpRequestLifetimeFeature), _currentIHttpRequestLifetimeFeature);
920yield return new KeyValuePair<Type, object>(typeof(IHttpMaxRequestBodySizeFeature), _currentIHttpMaxRequestBodySizeFeature);
924yield return new KeyValuePair<Type, object>(typeof(IHttpMinRequestBodyDataRateFeature), _currentIHttpMinRequestBodyDataRateFeature);
928yield return new KeyValuePair<Type, object>(typeof(IHttpMinResponseDataRateFeature), _currentIHttpMinResponseDataRateFeature);
932yield return new KeyValuePair<Type, object>(typeof(IHttpBodyControlFeature), _currentIHttpBodyControlFeature);
936yield return new KeyValuePair<Type, object>(typeof(IHttpRequestBodyDetectionFeature), _currentIHttpRequestBodyDetectionFeature);
940yield return new KeyValuePair<Type, object>(typeof(IHttpResetFeature), _currentIHttpResetFeature);
944yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (16)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (16)
117MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
121MaybeExtra.Add(new KeyValuePair<Type, object>(key, value));
414yield return new KeyValuePair<Type, object>(typeof(IConnectionIdFeature), _currentIConnectionIdFeature);
418yield return new KeyValuePair<Type, object>(typeof(IConnectionTransportFeature), _currentIConnectionTransportFeature);
422yield return new KeyValuePair<Type, object>(typeof(IConnectionItemsFeature), _currentIConnectionItemsFeature);
426yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature);
430yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature);
434yield return new KeyValuePair<Type, object>(typeof(IConnectionLifetimeFeature), _currentIConnectionLifetimeFeature);
438yield return new KeyValuePair<Type, object>(typeof(IConnectionSocketFeature), _currentIConnectionSocketFeature);
442yield return new KeyValuePair<Type, object>(typeof(IProtocolErrorCodeFeature), _currentIProtocolErrorCodeFeature);
446yield return new KeyValuePair<Type, object>(typeof(IStreamDirectionFeature), _currentIStreamDirectionFeature);
450yield return new KeyValuePair<Type, object>(typeof(IStreamIdFeature), _currentIStreamIdFeature);
454yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature);
458yield return new KeyValuePair<Type, object>(typeof(IStreamClosedFeature), _currentIStreamClosedFeature);
462yield return new KeyValuePair<Type, object>(typeof(IConnectionMetricsTagsFeature), _currentIConnectionMetricsTagsFeature);
466yield return new KeyValuePair<Type, object>(typeof(IConnectionEndPointFeature), _currentIConnectionEndPointFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (16)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (16)
117MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
121MaybeExtra.Add(new KeyValuePair<Type, object>(key, value));
414yield return new KeyValuePair<Type, object>(typeof(IConnectionIdFeature), _currentIConnectionIdFeature);
418yield return new KeyValuePair<Type, object>(typeof(IConnectionTransportFeature), _currentIConnectionTransportFeature);
422yield return new KeyValuePair<Type, object>(typeof(IConnectionItemsFeature), _currentIConnectionItemsFeature);
426yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature);
430yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature);
434yield return new KeyValuePair<Type, object>(typeof(IConnectionLifetimeFeature), _currentIConnectionLifetimeFeature);
438yield return new KeyValuePair<Type, object>(typeof(IConnectionSocketFeature), _currentIConnectionSocketFeature);
442yield return new KeyValuePair<Type, object>(typeof(IProtocolErrorCodeFeature), _currentIProtocolErrorCodeFeature);
446yield return new KeyValuePair<Type, object>(typeof(IStreamDirectionFeature), _currentIStreamDirectionFeature);
450yield return new KeyValuePair<Type, object>(typeof(IStreamIdFeature), _currentIStreamIdFeature);
454yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature);
458yield return new KeyValuePair<Type, object>(typeof(IStreamClosedFeature), _currentIStreamClosedFeature);
462yield return new KeyValuePair<Type, object>(typeof(IConnectionMetricsTagsFeature), _currentIConnectionMetricsTagsFeature);
466yield return new KeyValuePair<Type, object>(typeof(IConnectionEndPointFeature), _currentIConnectionEndPointFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (26)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (16)
117MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
121MaybeExtra.Add(new KeyValuePair<Type, object>(key, value));
414yield return new KeyValuePair<Type, object>(typeof(IConnectionIdFeature), _currentIConnectionIdFeature);
418yield return new KeyValuePair<Type, object>(typeof(IConnectionTransportFeature), _currentIConnectionTransportFeature);
422yield return new KeyValuePair<Type, object>(typeof(IConnectionItemsFeature), _currentIConnectionItemsFeature);
426yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature);
430yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature);
434yield return new KeyValuePair<Type, object>(typeof(IConnectionLifetimeFeature), _currentIConnectionLifetimeFeature);
438yield return new KeyValuePair<Type, object>(typeof(IConnectionSocketFeature), _currentIConnectionSocketFeature);
442yield return new KeyValuePair<Type, object>(typeof(IProtocolErrorCodeFeature), _currentIProtocolErrorCodeFeature);
446yield return new KeyValuePair<Type, object>(typeof(IStreamDirectionFeature), _currentIStreamDirectionFeature);
450yield return new KeyValuePair<Type, object>(typeof(IStreamIdFeature), _currentIStreamIdFeature);
454yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature);
458yield return new KeyValuePair<Type, object>(typeof(IStreamClosedFeature), _currentIStreamClosedFeature);
462yield return new KeyValuePair<Type, object>(typeof(IConnectionMetricsTagsFeature), _currentIConnectionMetricsTagsFeature);
466yield return new KeyValuePair<Type, object>(typeof(IConnectionEndPointFeature), _currentIConnectionEndPointFeature);
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (10)
104MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
108MaybeExtra.Add(new KeyValuePair<Type, object>(key, value));
300yield return new KeyValuePair<Type, object>(typeof(IConnectionIdFeature), _currentIConnectionIdFeature);
304yield return new KeyValuePair<Type, object>(typeof(IConnectionTransportFeature), _currentIConnectionTransportFeature);
308yield return new KeyValuePair<Type, object>(typeof(IConnectionItemsFeature), _currentIConnectionItemsFeature);
312yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature);
316yield return new KeyValuePair<Type, object>(typeof(IConnectionLifetimeFeature), _currentIConnectionLifetimeFeature);
320yield return new KeyValuePair<Type, object>(typeof(IConnectionEndPointFeature), _currentIConnectionEndPointFeature);
324yield return new KeyValuePair<Type, object>(typeof(IProtocolErrorCodeFeature), _currentIProtocolErrorCodeFeature);
328yield return new KeyValuePair<Type, object>(typeof(ITlsConnectionFeature), _currentITlsConnectionFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (16)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (16)
117MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
121MaybeExtra.Add(new KeyValuePair<Type, object>(key, value));
414yield return new KeyValuePair<Type, object>(typeof(IConnectionIdFeature), _currentIConnectionIdFeature);
418yield return new KeyValuePair<Type, object>(typeof(IConnectionTransportFeature), _currentIConnectionTransportFeature);
422yield return new KeyValuePair<Type, object>(typeof(IConnectionItemsFeature), _currentIConnectionItemsFeature);
426yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature);
430yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature);
434yield return new KeyValuePair<Type, object>(typeof(IConnectionLifetimeFeature), _currentIConnectionLifetimeFeature);
438yield return new KeyValuePair<Type, object>(typeof(IConnectionSocketFeature), _currentIConnectionSocketFeature);
442yield return new KeyValuePair<Type, object>(typeof(IProtocolErrorCodeFeature), _currentIProtocolErrorCodeFeature);
446yield return new KeyValuePair<Type, object>(typeof(IStreamDirectionFeature), _currentIStreamDirectionFeature);
450yield return new KeyValuePair<Type, object>(typeof(IStreamIdFeature), _currentIStreamIdFeature);
454yield return new KeyValuePair<Type, object>(typeof(IStreamAbortFeature), _currentIStreamAbortFeature);
458yield return new KeyValuePair<Type, object>(typeof(IStreamClosedFeature), _currentIStreamClosedFeature);
462yield return new KeyValuePair<Type, object>(typeof(IConnectionMetricsTagsFeature), _currentIConnectionMetricsTagsFeature);
466yield return new KeyValuePair<Type, object>(typeof(IConnectionEndPointFeature), _currentIConnectionEndPointFeature);
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.AspNetCore.WebUtilities (3)
Microsoft.Build (48)
Microsoft.Build.Framework (8)
BackEnd\HandshakeComponents.cs (7)
53yield return new KeyValuePair<string, int>(nameof(Options), Options);
54yield return new KeyValuePair<string, int>(nameof(Salt), Salt);
55yield return new KeyValuePair<string, int>(nameof(FileVersionMajor), FileVersionMajor);
56yield return new KeyValuePair<string, int>(nameof(FileVersionMinor), FileVersionMinor);
57yield return new KeyValuePair<string, int>(nameof(FileVersionBuild), FileVersionBuild);
58yield return new KeyValuePair<string, int>(nameof(FileVersionPrivate), FileVersionPrivate);
59yield return new KeyValuePair<string, int>(nameof(SessionId), SessionId);
Microsoft.Build.Tasks.Core (18)
AssemblyDependency\ReferenceTable.cs (14)
1182var newEntry = new KeyValuePair<AssemblyNameExtension, Reference>(unifiedDependency.PostUnified, newReference);
2807yield return new KeyValuePair<string, string>(ItemMetadataNames.resolvedFrom, reference.ResolvedSearchPath);
2811yield return new KeyValuePair<string, string>(ItemMetadataNames.copyLocal, reference.IsCopyLocal ? "true" : "false");
2816yield return new KeyValuePair<string, string>(ItemMetadataNames.redist, reference.RedistName);
2823yield return new KeyValuePair<string, string>(ItemMetadataNames.frameworkFile, "true");
2829yield return new KeyValuePair<string, string>(ItemMetadataNames.imageRuntime, reference.ImageRuntime);
2836yield return new KeyValuePair<string, string>(ItemMetadataNames.isRedistRoot, (bool)reference.IsRedistRoot ? "true" : "false");
2839yield return new KeyValuePair<string, string>(ItemMetadataNames.version, reference.ReferenceVersion == null ? string.Empty : reference.ReferenceVersion.ToString());
2841yield return new KeyValuePair<string, string>(ItemMetadataNames.fusionName, fusionName);
2846yield return new(ItemMetadataNames.msbuildReferenceSourceTarget, "ResolveAssemblyReference");
2850yield return new(ItemMetadataNames.projectReferenceOriginalItemSpec, reference.PrimarySourceItem.GetMetadata("OriginalItemSpec"));
2855yield return new KeyValuePair<string, string>(ItemMetadataNames.winmdImplmentationFile, Path.GetFileName(reference.ImplementationAssembly));
2860yield return new KeyValuePair<string, string>(ItemMetadataNames.winMDFileType, reference.IsManagedWinMDFile ? "Managed" : "Native");
2861yield return new KeyValuePair<string, string>(ItemMetadataNames.winMDFile, "true");
Microsoft.Build.Tasks.Git (1)
Microsoft.Build.Utilities.Core (3)
Microsoft.CodeAnalysis (33)
CvtRes.cs (11)
621if (_commentsContents != null) yield return new KeyValuePair<string, string>("Comments", _commentsContents);
622if (_companyNameContents != null) yield return new KeyValuePair<string, string>("CompanyName", _companyNameContents);
623if (_fileDescriptionContents != null) yield return new KeyValuePair<string, string>("FileDescription", _fileDescriptionContents);
625yield return new KeyValuePair<string, string>("FileVersion", _fileVersionContents);
627if (_internalNameContents != null) yield return new KeyValuePair<string, string>("InternalName", _internalNameContents);
628if (_legalCopyrightContents != null) yield return new KeyValuePair<string, string>("LegalCopyright", _legalCopyrightContents);
629if (_legalTrademarksContents != null) yield return new KeyValuePair<string, string>("LegalTrademarks", _legalTrademarksContents);
630if (_originalFileNameContents != null) yield return new KeyValuePair<string, string>("OriginalFilename", _originalFileNameContents);
631if (_productNameContents != null) yield return new KeyValuePair<string, string>("ProductName", _productNameContents);
633yield return new KeyValuePair<string, string>("ProductVersion", _productVersionContents);
635if (_assemblyVersionContents != null) yield return new KeyValuePair<string, string>("Assembly Version", _assemblyVersionContents.ToString());
Microsoft.CodeAnalysis.Analyzers (23)
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
Microsoft.CodeAnalysis.CodeStyle (12)
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Attributes.cs (2)
824visitedArgument = new KeyValuePair<String, TypedConstant>(fa.FieldSymbol.Name, VisitExpression(assignment.Right, diagnostics, ref attrHasErrors, assignment.HasAnyErrors));
829visitedArgument = new KeyValuePair<String, TypedConstant>(pa.PropertySymbol.Name, VisitExpression(assignment.Right, diagnostics, ref attrHasErrors, assignment.HasAnyErrors));
CodeGen\EmitStatement.cs (4)
1270dispatch.Cases.Select(p => new KeyValuePair<ConstantValue, object>(p.value, p.label)).ToArray(),
1437lengthBasedSwitchInfo.LengthBasedJumpTable.LengthCaseLabels.Select(p => new KeyValuePair<ConstantValue, object>(ConstantValue.Create(p.value), p.label)).ToArray(),
1477charJumpTable.CharCaseLabels.Select(p => new KeyValuePair<ConstantValue, object>(ConstantValue.Create(p.value), p.label)).ToArray(),
1497stringJumpTable.StringCaseLabels.Select(p => new KeyValuePair<ConstantValue, object>(ConstantValue.Create(p.value), p.label)).ToArray(),
Symbols\Compilation_WellKnownMembers.cs (3)
433builder.Add(new KeyValuePair<string, TypedConstant>(
860new KeyValuePair<WellKnownMember, TypedConstant>(WellKnownMember.System_AttributeUsageAttribute__AllowMultiple, new TypedConstant(boolType, TypedConstantKind.Primitive, allowMultiple)),
861new KeyValuePair<WellKnownMember, TypedConstant>(WellKnownMember.System_AttributeUsageAttribute__Inherited, new TypedConstant(boolType, TypedConstantKind.Primitive, inherited)));
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.Extensions.Package (9)
Microsoft.CodeAnalysis.Features (8)
Microsoft.CodeAnalysis.NetAnalyzers (20)
Microsoft.CodeAnalysis.Razor.Compiler (4)
Microsoft.CodeAnalysis.ResxSourceGenerator (14)
Microsoft.CodeAnalysis.VisualBasic (9)
Symbols\TypeSubstitution.vb (5)
450pairs.Add(New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(param, arg))
611pairs(i) = New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(typeParametersDefinitions(i), New TypeWithModifiers(alphaRenamedTypeParameters(i)))
680pairs(countOfMeaningfulPairs) = New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(typeParametersDefinitions(i), argument)
780pairs.Add(New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(oldPairs(i).Key, newValue))
852pairs(pairIndex) = New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(typeParametersDefinitions(i), args(i))
Microsoft.CodeAnalysis.Workspaces (10)
Microsoft.CSharp (3)
Microsoft.Data.Analysis (1)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.HotReload.Watch (4)
Microsoft.DotNet.ProjectTools (3)
Microsoft.Extensions.AI (8)
Common\FunctionInvocationProcessor.cs (5)
165new(OpenTelemetryConsts.GenAI.Operation.Name, OpenTelemetryConsts.GenAI.ExecuteToolName),
166new(OpenTelemetryConsts.GenAI.Tool.Type, OpenTelemetryConsts.ToolTypeFunction),
167new(OpenTelemetryConsts.GenAI.Tool.Call.Id, context.CallContent.CallId),
168new(OpenTelemetryConsts.GenAI.Tool.Name, context.Function.Name),
169new(OpenTelemetryConsts.GenAI.Tool.Description, context.Function.Description),
Microsoft.Extensions.AI.Abstractions.Tests (10)
Functions\AIFunctionArgumentsTests.cs (6)
98new KeyValuePair<string, object?>("key1", "value1"),
99new KeyValuePair<string, object?>("key2", "value2"),
134new KeyValuePair<string, object?>("key1", "value1"),
135new KeyValuePair<string, object?>("key2", "value2"),
158args.Add(new KeyValuePair<string, object?>("key1", "value1"));
163args.Add(new KeyValuePair<string, object?>("key2", "value2"));
parent\parent\Shared\JsonSchemaExporter\TestTypes.cs (4)
831Value: new([new("one", 1), new("two", 2), new("three", 3)]),
1131public IEnumerator<KeyValuePair<string, int>> GetEnumerator() => Enumerable.Repeat(new KeyValuePair<string, int>(nameof(BaseValue), BaseValue), 1).GetEnumerator();
Microsoft.Extensions.AI.Tests (12)
ChatCompletion\OpenTelemetryChatClientTests.cs (12)
942new KeyValuePair<string, object?>("gen_ai.operation.name", "chat"),
943new KeyValuePair<string, object?>("gen_ai.request.model", "mymodel"),
944new KeyValuePair<string, object?>("gen_ai.response.model", "responsemodel"),
945new KeyValuePair<string, object?>("gen_ai.provider.name", "testprovider"),
946new KeyValuePair<string, object?>("server.address", "localhost"),
947new KeyValuePair<string, object?>("server.port", 5000)));
956new KeyValuePair<string, object?>("gen_ai.operation.name", "chat"),
957new KeyValuePair<string, object?>("gen_ai.request.model", "mymodel"),
958new KeyValuePair<string, object?>("gen_ai.response.model", "responsemodel"),
959new KeyValuePair<string, object?>("gen_ai.provider.name", "testprovider"),
960new KeyValuePair<string, object?>("server.address", "localhost"),
961new KeyValuePair<string, object?>("server.port", 5000)));
Microsoft.Extensions.Caching.Hybrid.Tests (10)
ServiceConstructionTests.cs (10)
274new("no_entry_options:MaximumKeyLength", "937")
291new("with_entry_options:MaximumKeyLength", "937"),
292new("with_entry_options:DefaultEntryOptions:Flags", "DisableCompression, DisableLocalCacheRead"),
293new("with_entry_options:DefaultEntryOptions:LocalCacheExpiration", "00:02:00")
314new("HybridOne:DistributedCacheServiceKey", "DistributedOne"),
315new("HybridTwo:DistributedCacheServiceKey", "DistributedTwo")
354new("HybridOne:DistributedCacheServiceKey", "DistributedOne"),
355new("HybridTwo:DistributedCacheServiceKey", "DistributedTwo")
392new("HybridOne:DistributedCacheServiceKey", "DistributedOne"),
393new("HybridTwo:DistributedCacheServiceKey", "DistributedTwo")
Microsoft.Extensions.Caching.Memory (4)
MemoryCache.cs (4)
77Tags = [new("dotnet.cache.name", _options.Name)]
918KeyValuePair<string, object?> cacheNameTag = new("dotnet.cache.name", _options.Name);
933new(stats.TotalHits, cacheNameTag, new("dotnet.cache.request.type", "hit")),
934new(stats.TotalMisses, cacheNameTag, new("dotnet.cache.request.type", "miss")),
Microsoft.Extensions.Compliance.Abstractions.Tests (6)
Classification\DataClassificationTypeConverterTests.cs (6)
36new KeyValuePair<string, string?>("Key:Example", "Example:Test"),
37new KeyValuePair<string, string?>("Key:Facts:Value", "Taxonomy:Value"),
38new KeyValuePair<string, string?>("Key:Facts:Data", "Custom:Data"),
39new KeyValuePair<string, string?>("Key:Facts:None", "None"),
40new KeyValuePair<string, string?>("Key:Facts:Unknown", "Unknown"),
41new KeyValuePair<string, string?>("Key:Facts:Invalid", "Invalid"),
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.DependencyInjection (1)
Microsoft.Extensions.Diagnostics.HealthChecks (3)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (8)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (75)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Logging.g.cs (39)
20state.TagArray[0] = new("{OriginalFormat}", "Unable to gather utilization statistics.");
49state.TagArray[1] = new("{OriginalFormat}", "Publisher `{Publisher}` was unable to publish utilization statistics.");
50state.TagArray[0] = new("Publisher", publisher);
89state.TagArray[4] = new("{OriginalFormat}", "Snapshot received: TotalTimeSinceStart={totalTimeSinceStart}, KernelTimeSinceStart={kernelTimeSinceStart}, UserTimeSinceStart={userTimeSinceStart}, MemoryUsageInBytes={memoryUsageInBytes}.");
90state.TagArray[3] = new("totalTimeSinceStart", totalTimeSinceStart.ToString(null, global::System.Globalization.CultureInfo.InvariantCulture));
91state.TagArray[2] = new("kernelTimeSinceStart", kernelTimeSinceStart.ToString(null, global::System.Globalization.CultureInfo.InvariantCulture));
92state.TagArray[1] = new("userTimeSinceStart", userTimeSinceStart.ToString(null, global::System.Globalization.CultureInfo.InvariantCulture));
93state.TagArray[0] = new("memoryUsageInBytes", memoryUsageInBytes);
141state.TagArray[0] = new("{OriginalFormat}", "Resource Monitoring is running inside a Job Object. For more information about Job Objects see https://aka.ms/job-objects");
175state.TagArray[0] = new("{OriginalFormat}", "Resource Monitoring is running outside of Job Object. For more information about Job Objects see https://aka.ms/job-objects");
209state.TagArray[5] = new("{OriginalFormat}", "Computed CPU usage with CpuUsageTicks = {cpuUsageTicks}, OldCpuUsageTicks = {oldCpuUsageTicks}, TimeTickDelta = {timeTickDelta}, CpuUnits = {cpuUnits}, CpuPercentage = {cpuPercentage}.");
210state.TagArray[4] = new("cpuUsageTicks", cpuUsageTicks);
211state.TagArray[3] = new("oldCpuUsageTicks", oldCpuUsageTicks);
212state.TagArray[2] = new("timeTickDelta", timeTickDelta);
213state.TagArray[1] = new("cpuUnits", cpuUnits);
214state.TagArray[0] = new("cpuPercentage", cpuPercentage);
257state.TagArray[3] = new("{OriginalFormat}", "Computed memory usage for container: CurrentMemoryUsage = {currentMemoryUsage}, LimitMemory = {limitMemory}, RequestMemory = {requestMemory}.");
258state.TagArray[2] = new("currentMemoryUsage", currentMemoryUsage);
259state.TagArray[1] = new("limitMemory", limitMemory);
260state.TagArray[0] = new("requestMemory", requestMemory);
301state.TagArray[6] = new("{OriginalFormat}", "Computed CPU usage with CpuUsageKernelTicks = {cpuUsageKernelTicks}, CpuUsageUserTicks = {cpuUsageUserTicks}, OldCpuUsageTicks = {oldCpuUsageTicks}, TimeTickDelta = {timeTickDelta}, CpuUnits = {cpuUnits}, CpuPercentage = {cpuPercentage}.");
302state.TagArray[5] = new("cpuUsageKernelTicks", cpuUsageKernelTicks);
303state.TagArray[4] = new("cpuUsageUserTicks", cpuUsageUserTicks);
304state.TagArray[3] = new("oldCpuUsageTicks", oldCpuUsageTicks);
305state.TagArray[2] = new("timeTickDelta", timeTickDelta);
306state.TagArray[1] = new("cpuUnits", cpuUnits);
307state.TagArray[0] = new("cpuPercentage", cpuPercentage);
351state.TagArray[4] = new("{OriginalFormat}", "System resources information: CpuLimit = {cpuLimit}, CpuRequest = {cpuRequest}, MemoryLimit = {memoryLimit}, MemoryRequest = {memoryRequest}.");
352state.TagArray[3] = new("cpuLimit", cpuLimit);
353state.TagArray[2] = new("cpuRequest", cpuRequest);
354state.TagArray[1] = new("memoryLimit", memoryLimit);
355state.TagArray[0] = new("memoryRequest", memoryRequest);
397state.TagArray[2] = new("{OriginalFormat}", "Error initializing disk io perf counter: PerfCounter={counterName}, Error={errorMessage}");
398state.TagArray[1] = new("counterName", counterName);
399state.TagArray[0] = new("errorMessage", errorMessage);
439state.TagArray[3] = new("{OriginalFormat}", "Computed memory usage for current process: ProcessMemoryUsage = {processMemoryUsage}, TotalMemory = {totalMemory}, MemoryPercentage = {memoryPercentage}");
440state.TagArray[2] = new("processMemoryUsage", processMemoryUsage);
441state.TagArray[1] = new("totalMemory", totalMemory);
442state.TagArray[0] = new("memoryPercentage", memoryPercentage);
Windows\Disk\WindowsDiskMetrics.cs (7)
23private static readonly KeyValuePair<string, object?> _directionReadTag = new(DirectionKey, "read");
24private static readonly KeyValuePair<string, object?> _directionWriteTag = new(DirectionKey, "write");
141measurements.Add(new Measurement<long>(pair.Value, new TagList { _directionWriteTag, new(DeviceKey, pair.Key) }));
150measurements.Add(new Measurement<long>(pair.Value, new TagList { _directionReadTag, new(DeviceKey, pair.Key) }));
166measurements.Add(new Measurement<long>(pair.Value, new TagList { _directionWriteTag, new(DeviceKey, pair.Key) }));
175measurements.Add(new Measurement<long>(pair.Value, new TagList { _directionReadTag, new(DeviceKey, pair.Key) }));
190measurements.Add(new Measurement<double>(pair.Value, new TagList { new(DeviceKey, pair.Key) }));
Windows\Network\WindowsNetworkMetrics.cs (27)
26KeyValuePair<string, object?> tcpTag = new("network.transport", "tcp");
45KeyValuePair<string, object?> tcpVersionFourTag = new(NetworkTypeKey, "ipv4");
46KeyValuePair<string, object?> tcpVersionSixTag = new(NetworkTypeKey, "ipv6");
52measurements.Add(new Measurement<long>(stateV4.ClosedCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "close") }));
53measurements.Add(new Measurement<long>(stateV4.ListenCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "listen") }));
54measurements.Add(new Measurement<long>(stateV4.SynSentCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "syn_sent") }));
55measurements.Add(new Measurement<long>(stateV4.SynRcvdCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "syn_recv") }));
56measurements.Add(new Measurement<long>(stateV4.EstabCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "established") }));
57measurements.Add(new Measurement<long>(stateV4.FinWait1Count, new TagList { tcpVersionFourTag, new(NetworkStateKey, "fin_wait_1") }));
58measurements.Add(new Measurement<long>(stateV4.FinWait2Count, new TagList { tcpVersionFourTag, new(NetworkStateKey, "fin_wait_2") }));
59measurements.Add(new Measurement<long>(stateV4.CloseWaitCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "close_wait") }));
60measurements.Add(new Measurement<long>(stateV4.ClosingCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "closing") }));
61measurements.Add(new Measurement<long>(stateV4.LastAckCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "last_ack") }));
62measurements.Add(new Measurement<long>(stateV4.TimeWaitCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "time_wait") }));
63measurements.Add(new Measurement<long>(stateV4.DeleteTcbCount, new TagList { tcpVersionFourTag, new(NetworkStateKey, "delete") }));
67measurements.Add(new Measurement<long>(stateV6.ClosedCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "close") }));
68measurements.Add(new Measurement<long>(stateV6.ListenCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "listen") }));
69measurements.Add(new Measurement<long>(stateV6.SynSentCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "syn_sent") }));
70measurements.Add(new Measurement<long>(stateV6.SynRcvdCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "syn_recv") }));
71measurements.Add(new Measurement<long>(stateV6.EstabCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "established") }));
72measurements.Add(new Measurement<long>(stateV6.FinWait1Count, new TagList { tcpVersionSixTag, new(NetworkStateKey, "fin_wait_1") }));
73measurements.Add(new Measurement<long>(stateV6.FinWait2Count, new TagList { tcpVersionSixTag, new(NetworkStateKey, "fin_wait_2") }));
74measurements.Add(new Measurement<long>(stateV6.CloseWaitCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "close_wait") }));
75measurements.Add(new Measurement<long>(stateV6.ClosingCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "closing") }));
76measurements.Add(new Measurement<long>(stateV6.LastAckCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "last_ack") }));
77measurements.Add(new Measurement<long>(stateV6.TimeWaitCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "time_wait") }));
78measurements.Add(new Measurement<long>(stateV6.DeleteTcbCount, new TagList { tcpVersionSixTag, new(NetworkStateKey, "delete") }));
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (8)
Windows\Disk\WindowsDiskMetricsTests.cs (8)
79var readTag = new KeyValuePair<string, object?>("disk.io.direction", "read");
80var writeTag = new KeyValuePair<string, object?>("disk.io.direction", "write");
81var deviceTagC = new KeyValuePair<string, object?>("system.device", "C:");
82var deviceTagD = new KeyValuePair<string, object?>("system.device", "D:");
153var readTag = new KeyValuePair<string, object?>("disk.io.direction", "read");
154var writeTag = new KeyValuePair<string, object?>("disk.io.direction", "write");
155var deviceTagC = new KeyValuePair<string, object?>("system.device", "C:");
156var deviceTagD = new KeyValuePair<string, object?>("system.device", "D:");
Microsoft.Extensions.Diagnostics.Testing (2)
Microsoft.Extensions.Diagnostics.Testing.Tests (41)
Logging\FakeLoggerTests.cs (5)
76new("K0", "V0"),
77new("K1", "V1"),
78new("K2", null),
79new("K3", new[] { 0, 1, 2 }),
132new("K0", dt),
Metrics\MeasurementExtensionsTests.cs (34)
21counter.Add(1, new("A", "a"), new("B", "b"));
22counter.Add(2, new("A", "a"), new("B", "b"));
23counter.Add(3, new("X", "x"), new("Y", "y"));
46counter.Add(1, new("A", "a"), new("B", "b"));
47counter.Add(2, new("A", "a"), new("B", "b"));
48counter.Add(3, new("X", "x"), new("Y", "y"));
52var filtered = fullSnap.ContainsTags(new KeyValuePair<string, object?>("A", "a")).ToList();
60filtered = fullSnap.ContainsTags(new KeyValuePair<string, object?>("A", "X")).ToList();
71counter.Add(1, new("A", "a"), new("B", "b"));
72counter.Add(2, new("A", "a"), new("B", "b"));
73counter.Add(3, new("X", "x"), new("Y", "y"));
99counter.Add(1, new("A", "a"), new("B", "b"));
100counter.Add(2, new("A", "a"), new("B", "b"));
101counter.Add(3, new("X", "x"), new("Y", "y"));
105var filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a"), new("B", "b")).ToList();
113filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a")).ToList();
116filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a"), new("B", "x")).ToList();
119filtered = fullSnap.MatchesTags(new KeyValuePair<string, object?>("A", "a"), new("B", "b"), new("C", "c")).ToList();
Microsoft.Extensions.Hosting (6)
Microsoft.Extensions.Hosting.Testing (5)
Microsoft.Extensions.Hosting.Testing.Tests (2)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (30)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Logging.g.cs (17)
20state.TagArray[3] = new("{OriginalFormat}", "An error occurred while reading the request data to fill the logger context for request: {http.request.method} {server.address}/{url.path}");
21state.TagArray[2] = new("http.request.method", method);
22state.TagArray[1] = new("server.address", host);
23state.TagArray[0] = new("url.path", path);
59state.TagArray[3] = new("{OriginalFormat}", "An error occurred while reading the response data to fill the logger context for request: {http.request.method} {server.address}/{url.path}");
60state.TagArray[2] = new("http.request.method", method);
61state.TagArray[1] = new("server.address", host);
62state.TagArray[0] = new("url.path", path);
98state.TagArray[3] = new("{OriginalFormat}", "The logger couldn't read its context for {RequestState} request: {http.request.method} {server.address}");
99state.TagArray[2] = new("RequestState", requestState);
100state.TagArray[1] = new("http.request.method", method);
101state.TagArray[0] = new("server.address", host);
137state.TagArray[4] = new("{OriginalFormat}", "An error occurred in enricher '{Enricher}' while enriching the logger context for request: {http.request.method} {server.address}/{url.path}");
138state.TagArray[3] = new("Enricher", enricher);
139state.TagArray[2] = new("http.request.method", method);
140state.TagArray[1] = new("server.address", host);
141state.TagArray[0] = new("url.path", path);
Microsoft.Extensions.Http.Diagnostics.Tests (34)
Logging\HttpHeadersReaderTest.cs (11)
86new KeyValuePair<string, string>("Header1", Redacted),
87new KeyValuePair<string, string>("Header2", Redacted)
92new KeyValuePair<string, string>("Header3", "Value.3"),
93new KeyValuePair<string, string>("Header4", "Value.4"),
94new KeyValuePair<string, string>("hEaDeR7", Redacted)
149List<KeyValuePair<string, string>> expectedRequest = [new KeyValuePair<string, string>("Header1", "Value.1")];
150List<KeyValuePair<string, string>> expectedResponse = [new KeyValuePair<string, string>("Header3", "Value.3")];
153expectedRequest.Add(new KeyValuePair<string, string>("Content-Header1", "Content.1"));
154expectedRequest.Add(new KeyValuePair<string, string>("Content-Type", MediaTypeNames.Application.Soap));
156expectedResponse.Add(new KeyValuePair<string, string>("Content-Header2", "Content.2"));
157expectedResponse.Add(new KeyValuePair<string, string>("Content-Length", "24"));
Logging\HttpRequestReaderTest.cs (15)
45var header1 = new KeyValuePair<string, string>("Header1", "Value1");
46var header2 = new KeyValuePair<string, string>("Header2", "Value2");
47var header3 = new KeyValuePair<string, string>("Header3", "Value3");
175var header1 = new KeyValuePair<string, string>("Header1", "Value1");
176var header2 = new KeyValuePair<string, string>("Header2", "Value2");
248var header1 = new KeyValuePair<string, string>("Header1", "Value1");
249var header2 = new KeyValuePair<string, string>("Header2", "Value2");
326var header1 = new KeyValuePair<string, string>("Header1", "Value1");
327var header2 = new KeyValuePair<string, string>("Header2", "Value2");
384var header1 = new KeyValuePair<string, string>("Header1", "Value1");
385var header2 = new KeyValuePair<string, string>("Header2", "Value2");
457var header1 = new KeyValuePair<string, string>("Header1", "Value1");
458var header2 = new KeyValuePair<string, string>("Header2", "Value2");
526var header1 = new KeyValuePair<string, string>("Header1", "Value1");
527var header2 = new KeyValuePair<string, string>("Header2", "Value2");
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Logging (6)
LoggerFactoryScopeProvider.cs (6)
145_items[count++] = new KeyValuePair<string, object?>("SpanId", activity.GetSpanId());
150_items[count++] = new KeyValuePair<string, object?>("TraceId", activity.GetTraceId());
155_items[count++] = new KeyValuePair<string, object?>("ParentId", activity.GetParentId());
160_items[count++] = new KeyValuePair<string, object?>("TraceState", activity.TraceStateString);
165_items[count++] = new KeyValuePair<string, object?>("TraceFlags", activity.ActivityTraceFlags);
276public KeyValuePair<string, object?> Current => new KeyValuePair<string, object?>(_enumerator.Current.Key, _enumerator.Current.Value);
Microsoft.Extensions.Logging.Abstractions (33)
LoggerMessage.cs (28)
483return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat);
524return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0);
526return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat);
574return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0);
576return new KeyValuePair<string, object?>(_formatter.ValueNames[1], _value1);
578return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat);
621return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0);
623return new KeyValuePair<string, object?>(_formatter.ValueNames[1], _value1);
625return new KeyValuePair<string, object?>(_formatter.ValueNames[2], _value2);
627return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat);
677return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0);
679return new KeyValuePair<string, object?>(_formatter.ValueNames[1], _value1);
681return new KeyValuePair<string, object?>(_formatter.ValueNames[2], _value2);
683return new KeyValuePair<string, object?>(_formatter.ValueNames[3], _value3);
685return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat);
739return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0);
741return new KeyValuePair<string, object?>(_formatter.ValueNames[1], _value1);
743return new KeyValuePair<string, object?>(_formatter.ValueNames[2], _value2);
745return new KeyValuePair<string, object?>(_formatter.ValueNames[3], _value3);
747return new KeyValuePair<string, object?>(_formatter.ValueNames[4], _value4);
749return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat);
805return new KeyValuePair<string, object?>(_formatter.ValueNames[0], _value0);
807return new KeyValuePair<string, object?>(_formatter.ValueNames[1], _value1);
809return new KeyValuePair<string, object?>(_formatter.ValueNames[2], _value2);
811return new KeyValuePair<string, object?>(_formatter.ValueNames[3], _value3);
813return new KeyValuePair<string, object?>(_formatter.ValueNames[4], _value4);
815return new KeyValuePair<string, object?>(_formatter.ValueNames[5], _value5);
817return new KeyValuePair<string, object?>("{OriginalFormat}", _formatter.OriginalFormat);
Microsoft.Extensions.Logging.EventSource (5)
EventSourceLogger.cs (5)
156new KeyValuePair<string, string?>("TypeName", exceptionInfo.TypeName),
157new KeyValuePair<string, string?>("Message", exceptionInfo.Message),
158new KeyValuePair<string, string?>("HResult", exceptionInfo.HResult.ToString()),
159new KeyValuePair<string, string?>("VerboseMessage", exceptionInfo.VerboseMessage),
265arguments[i] = new KeyValuePair<string, string?>(keyValuePair.Key, keyValuePair.Value?.ToString());
Microsoft.Extensions.Logging.MSBuild (1)
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (4)
DependencyInjectionExtensionsTests.cs (4)
29new KeyValuePair<string, string?>($"My:Pools:{typeof(TestClass).FullName!}", "twenty!"),
30new KeyValuePair<string, string?>($"My:Pools:{typeof(TestDependency).FullName!}", "4096"),
47new KeyValuePair<string, string?>($"My:Pools:{typeof(TestClass).FullName!}", "2048"),
48new KeyValuePair<string, string?>($"My:Pools:{typeof(TestDependency).FullName!}", "4096"),
Microsoft.Extensions.Resilience (3)
Microsoft.Extensions.ServiceDiscovery (1)
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
Microsoft.Extensions.ServiceDiscovery.Dns (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LoggerMessage.g.cs (5)
1400 => new global::System.Collections.Generic.KeyValuePair<string, object?>("QueryType", this._queryType),
1411 => new global::System.Collections.Generic.KeyValuePair<string, object?>("QueryName", this._queryName),
1422 => new global::System.Collections.Generic.KeyValuePair<string, object?>("Server", this._server),
1433 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ResponseCode", this._responseCode),
1444 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "Server {Server} replied with {ResponseCode} when querying {QueryType} {QueryName}"),
Microsoft.Extensions.Telemetry (14)
Logging\Import\LoggerFactoryScopeProvider.cs (6)
157_items[count++] = new KeyValuePair<string, object?>("SpanId", activity.GetSpanId());
162_items[count++] = new KeyValuePair<string, object?>("TraceId", activity.GetTraceId());
167_items[count++] = new KeyValuePair<string, object?>("ParentId", activity.GetParentId());
172_items[count++] = new KeyValuePair<string, object?>("TraceState", activity.TraceStateString);
177_items[count++] = new KeyValuePair<string, object?>("TraceFlags", activity.ActivityTraceFlags);
290new KeyValuePair<string, object?>(_enumerator.Current.Key, _enumerator.Current.Value);
Microsoft.Extensions.Telemetry.Abstractions (1)
Microsoft.Extensions.Telemetry.Abstractions.Tests (7)
Microsoft.Extensions.Telemetry.PerformanceTests (12)
Microsoft.Extensions.Telemetry.Tests (22)
Logging\ExtendedLoggerTests.cs (21)
34new KeyValuePair<string, object?>("EK1", "EV1"),
40new KeyValuePair<string, object?>("SEK1", "SEV1"),
67lms.TagArray[index] = new("PK2", "PV2");
153lms.TagArray[index] = new("PK2", "PV2");
169new KeyValuePair<string, object?>("EK1", "EV1"),
170new KeyValuePair<string, object?>("EK2", "EV2"),
189lms.TagArray[index] = new("PK2", "PV2");
224new KeyValuePair<string, object?>("EK1", "EV1"),
230new KeyValuePair<string, object?>("SEK1", "SEV1"),
312var a = new[] { new KeyValuePair<string, object?>("K1", "V1") };
812new KeyValuePair<string, object?>("K1", "V1"),
816new KeyValuePair<string, object?>("K2", "V2"),
839state.TagArray[index] = new("K3", "V3");
840state.TagArray[index + 1] = new("{OriginalFormat}", "V4");
868new KeyValuePair<string, object?>("K1", "V1"),
872new KeyValuePair<string, object?>("K2", "V2"),
892new("K3", "V3"),
893new("{OriginalFormat}", "V4")
902new("K3", "V3"),
903new("{OriginalFormat}", "V4")
1210a[i++] = new(kvp.Key, (string)kvp.Value!);
Microsoft.Gen.Logging.Generated.Tests (601)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Logging.g.cs (578)
24state.TagArray[3] = new("{OriginalFormat}", "Logging User: {User}");
25state.TagArray[2] = new("User", user);
26state.TagArray[1] = new("user.Id", user?.Id);
27state.TagArray[0] = new("user.Email", user?.Email);
64state.TagArray[1] = new("{OriginalFormat}", "Could not open socket to `{hostName}`");
65state.TagArray[0] = new("hostName", hostName);
104state.TagArray[1] = new("{OriginalFormat}", "Could not open socket to `{hostName}`");
105state.TagArray[0] = new("hostName", hostName);
145state.TagArray[1] = new("{OriginalFormat}", "Could not open socket to `{hostName}`");
146state.TagArray[0] = new("hostName", hostName);
186state.TagArray[1] = new("{OriginalFormat}", "Could not open socket to `{hostName}`");
187state.TagArray[0] = new("hostName", hostName);
227state.TagArray[0] = new("{OriginalFormat}", "M1");
256state.TagArray[1] = new("{OriginalFormat}", "M2 {p1}");
257state.TagArray[0] = new("p1", p1);
291state.TagArray[2] = new("{OriginalFormat}", "M3 {p1} {p2}");
292state.TagArray[1] = new("p1", p1);
293state.TagArray[0] = new("p2", p2);
328state.TagArray[0] = new("{OriginalFormat}", "M4");
357state.TagArray[1] = new("{OriginalFormat}", "M5 {p2}");
358state.TagArray[0] = new("p2", p2);
392state.TagArray[1] = new("{OriginalFormat}", "M6 {p2}");
393state.TagArray[0] = new("p2", p2);
427state.TagArray[1] = new("{OriginalFormat}", "M7 {p1}");
428state.TagArray[0] = new("p1", p1);
462state.TagArray[7] = new("{OriginalFormat}", "M8{p1}{p2}{p3}{p4}{p5}{p6}{p7}");
463state.TagArray[6] = new("p1", p1);
464state.TagArray[5] = new("p2", p2);
465state.TagArray[4] = new("p3", p3);
466state.TagArray[3] = new("p4", p4);
467state.TagArray[2] = new("p5", p5);
468state.TagArray[1] = new("p6", p6);
469state.TagArray[0] = new("p7", p7);
509state.TagArray[7] = new("{OriginalFormat}", "M9 {p1} {p2} {p3} {p4} {p5} {p6} {p7}");
510state.TagArray[6] = new("p1", p1);
511state.TagArray[5] = new("p2", p2);
512state.TagArray[4] = new("p3", p3);
513state.TagArray[3] = new("p4", p4);
514state.TagArray[2] = new("p5", p5);
515state.TagArray[1] = new("p6", p6);
516state.TagArray[0] = new("p7", p7);
556state.TagArray[1] = new("{OriginalFormat}", "M10{p1}");
557state.TagArray[0] = new("p1", p1);
591state.TagArray[4] = new("{OriginalFormat}", "{RequestId} {First} {Second} {Third}");
592state.TagArray[3] = new("RequestId", requestId);
593state.TagArray[2] = new("First", first);
594state.TagArray[1] = new("Second", second);
595state.TagArray[0] = new("Third", third);
632state.TagArray[1] = new("{OriginalFormat}", "{RequestId}");
633state.TagArray[0] = new("RequestId", requestId);
681state.TagArray[1] = new("{OriginalFormat}", "M0 {event}");
682state.TagArray[0] = new("event", @event);
721state.TagArray[0] = new("{OriginalFormat}", "M1 {@myevent1}");
763state.TagArray[2] = new("{OriginalFormat}", "UseAtSymbol3, {@myevent2} {otherevent}");
764state.TagArray[1] = new("@myevent2", @myevent2);
765state.TagArray[0] = new("otherevent", otherevent);
805state.TagArray[2] = new("{OriginalFormat}", "UseAtSymbol4 with error, {@myevent3} {otherevent}");
806state.TagArray[1] = new("@myevent3", @myevent3);
807state.TagArray[0] = new("otherevent", otherevent);
847state.TagArray[1] = new("{OriginalFormat}", "M2 {Event}");
848state.TagArray[0] = new("Event", @event);
887state.TagArray[1] = new("{OriginalFormat}", "M3");
888state.TagArray[0] = new("event.class", @event?.@class);
922state.TagArray[1] = new("{OriginalFormat}", "M4 {class}");
923state.TagArray[0] = new("class", @class);
962state.TagArray[1] = new("{OriginalFormat}", "M5");
963state.TagArray[0] = new("class", @event?.@class);
997state.TagArray[1] = new("{OriginalFormat}", "M6 class {class}");
998state.TagArray[0] = new("class", @class);
1037state.TagArray[1] = new("{OriginalFormat}", "M7 param {@param}");
1038state.TagArray[0] = new("@param", param);
1089state.TagArray[1] = new("{OriginalFormat}", "M0 {p0}");
1090state.TagArray[0] = new("p0", p0);
1129state.TagArray[1] = new("{OriginalFormat}", "M1 {p0} {p1}");
1130state.TagArray[0] = new("p1", p1);
1173state.TagArray[1] = new("{OriginalFormat}", "M2 {p0} {p1}");
1174state.TagArray[0] = new("p1", p1);
1217state.TagArray[0] = new("{OriginalFormat}", "M3 {p0} {p1} {p2} {p3}");
1265state.TagArray[0] = new("{OriginalFormat}", "M4 {p0} {p1} {p2} {p3}");
1313state.TagArray[0] = new("{OriginalFormat}", "M5 {p0} {p1} {p2} {p3} {p4} {p5} {p6} {p7} {p8} {p9} {p10}");
1375state.TagArray[0] = new("p1", p1);
1412state.TagArray[0] = new("p1", p1);
1449state.TagArray[0] = new("{OriginalFormat}", "M8 {p0}");
1491state.TagArray[0] = new("{OriginalFormat}", "M9 {p0}");
1533state.TagArray[0] = new("{OriginalFormat}", "M10 {p0}");
1581state.TagArray[0] = new("{OriginalFormat}", "Test.");
1621state.TagArray[0] = new("{OriginalFormat}", "Test.");
1661state.TagArray[0] = new("{OriginalFormat}", "Test.");
1696state.TagArray[0] = new("{OriginalFormat}", "M0");
1725state.TagArray[1] = new("{OriginalFormat}", "M1{p0}");
1726state.TagArray[0] = new("p0", p0);
1760state.TagArray[2] = new("{OriginalFormat}", "M2{p0}{p1}");
1761state.TagArray[1] = new("p0", p0);
1762state.TagArray[0] = new("p1", p1);
1797state.TagArray[3] = new("{OriginalFormat}", "M3{p0}{p1}{p2}");
1798state.TagArray[2] = new("p0", p0);
1799state.TagArray[1] = new("p1", p1);
1800state.TagArray[0] = new("p2", p2);
1836state.TagArray[4] = new("{OriginalFormat}", "M4{p0}{p1}{p2}{p3}");
1837state.TagArray[3] = new("p0", p0);
1838state.TagArray[2] = new("p1", p1);
1839state.TagArray[1] = new("p2", p2);
1840state.TagArray[0] = new("p3", p3);
1877state.TagArray[5] = new("{OriginalFormat}", "M5{p0}{p1}{p2}{p3}{p4}");
1878state.TagArray[4] = new("p0", p0);
1879state.TagArray[3] = new("p1", p1);
1880state.TagArray[2] = new("p2", p2);
1881state.TagArray[1] = new("p3", p3);
1882state.TagArray[0] = new("p4", p4);
1920state.TagArray[6] = new("{OriginalFormat}", "M6{p0}{p1}{p2}{p3}{p4}{p5}");
1921state.TagArray[5] = new("p0", p0);
1922state.TagArray[4] = new("p1", p1);
1923state.TagArray[3] = new("p2", p2);
1924state.TagArray[2] = new("p3", p3);
1925state.TagArray[1] = new("p4", p4);
1926state.TagArray[0] = new("p5", p5);
1965state.TagArray[7] = new("{OriginalFormat}", "M7{p0}{p1}{p2}{p3}{p4}{p5}{p6}");
1966state.TagArray[6] = new("p0", p0);
1967state.TagArray[5] = new("p1", p1);
1968state.TagArray[4] = new("p2", p2);
1969state.TagArray[3] = new("p3", p3);
1970state.TagArray[2] = new("p4", p4);
1971state.TagArray[1] = new("p5", p5);
1972state.TagArray[0] = new("p6", p6);
2012state.TagArray[8] = new("{OriginalFormat}", "M8{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}");
2013state.TagArray[7] = new("p0", p0);
2014state.TagArray[6] = new("p1", p1);
2015state.TagArray[5] = new("p2", p2);
2016state.TagArray[4] = new("p3", p3);
2017state.TagArray[3] = new("p4", p4);
2018state.TagArray[2] = new("p5", p5);
2019state.TagArray[1] = new("p6", p6);
2020state.TagArray[0] = new("p7", p7);
2066state.TagArray[2] = new("{OriginalFormat}", "M8{p0}{p1}");
2067state.TagArray[1] = new("p0", p0);
2068state.TagArray[0] = new("p1", p1);
2114state.TagArray[1] = new("{OriginalFormat}", "M0{p0}");
2115state.TagArray[0] = new("p0", p0);
2160state.TagArray[1] = new("{OriginalFormat}", "M0{p0}");
2161state.TagArray[0] = new("p0", p0);
2206state.TagArray[1] = new("{OriginalFormat}", "M0{p0}");
2207state.TagArray[0] = new("p0", p0);
2252state.TagArray[1] = new("{OriginalFormat}", "M0{p0}");
2253state.TagArray[0] = new("p0", p0);
2298state.TagArray[1] = new("{OriginalFormat}", "M0{p0}");
2299state.TagArray[0] = new("p0", p0);
2344state.TagArray[1] = new("{OriginalFormat}", "M0{p0}");
2345state.TagArray[0] = new("p0", p0);
2390state.TagArray[1] = new("{OriginalFormat}", "M0{p0}");
2391state.TagArray[0] = new("p0", p0);
2436state.TagArray[1] = new("{OriginalFormat}", "M0 {p0}");
2437state.TagArray[0] = new("p0", p0);
2476state.TagArray[1] = new("{OriginalFormat}", "M1 {p0}");
2477state.TagArray[0] = new("p0", p0);
2516state.TagArray[0] = new("p0", p0);
2550state.TagArray[0] = new("p0", p0);
2584state.TagArray[1] = new("{OriginalFormat}", "M4 {p0}");
2585state.TagArray[0] = new("p0", p0);
2624state.TagArray[1] = new("{OriginalFormat}", "M5 {p0}");
2625state.TagArray[0] = new("p0", p0);
2664state.TagArray[0] = new("p0", p0);
2698state.TagArray[0] = new("p0", p0);
2727state.TagArray[1] = new("{OriginalFormat}", "M8");
2728state.TagArray[0] = new("p0", p0);
2769state.TagArray[0] = new("{OriginalFormat}", "M0 {p1}");
2806state.TagArray[0] = new("{OriginalFormat}", "M1 {p1} {p2}");
2845state.TagArray[0] = new("{OriginalFormat}", "M2");
2885state.TagArray[0] = new("{OriginalFormat}", "M0");
2914state.TagArray[1] = new("{OriginalFormat}", "M1{p0}");
2915state.TagArray[0] = new("p0", p0 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p0) : null);
2949state.TagArray[2] = new("{OriginalFormat}", "M2{p0}{p1}");
2950state.TagArray[1] = new("p0", p0);
2951state.TagArray[0] = new("p1", p1 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1) : null);
2986state.TagArray[3] = new("{OriginalFormat}", "M3{p0}{p1}{p2}");
2987state.TagArray[2] = new("p0", p0);
2988state.TagArray[1] = new("p1", p1 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1) : null);
2989state.TagArray[0] = new("p2", p2);
3025state.TagArray[4] = new("{OriginalFormat}", "M4{p0}{p1}{p2}{p3}");
3026state.TagArray[3] = new("p0", p0);
3027state.TagArray[2] = new("p1", p1 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1) : null);
3028state.TagArray[1] = new("p2", p2);
3029state.TagArray[0] = new("p3", p3);
3066state.TagArray[5] = new("{OriginalFormat}", "M5{p0}{p1}{p2}{p3}{p4}");
3067state.TagArray[4] = new("p0", p0);
3068state.TagArray[3] = new("p1", p1 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1) : null);
3069state.TagArray[2] = new("p2", p2);
3070state.TagArray[1] = new("p3", p3);
3071state.TagArray[0] = new("p4", p4);
3109state.TagArray[6] = new("{OriginalFormat}", "M6{p0}{p1}{p2}{p3}{p4}{p5}");
3110state.TagArray[5] = new("p0", p0);
3111state.TagArray[4] = new("p1", p1 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1) : null);
3112state.TagArray[3] = new("p2", p2);
3113state.TagArray[2] = new("p3", p3);
3114state.TagArray[1] = new("p4", p4);
3115state.TagArray[0] = new("p5", p5);
3154state.TagArray[7] = new("{OriginalFormat}", "M7{p0}{p1}{p2}{p3}{p4}{p5}{p6}");
3155state.TagArray[6] = new("p0", p0);
3156state.TagArray[5] = new("p1", p1 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1) : null);
3157state.TagArray[4] = new("p2", p2);
3158state.TagArray[3] = new("p3", p3);
3159state.TagArray[2] = new("p4", p4);
3160state.TagArray[1] = new("p5", p5);
3161state.TagArray[0] = new("p6", p6);
3201state.TagArray[8] = new("{OriginalFormat}", "M8{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}");
3202state.TagArray[7] = new("p0", p0);
3203state.TagArray[6] = new("p1", p1 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1) : null);
3204state.TagArray[5] = new("p2", p2);
3205state.TagArray[4] = new("p3", p3);
3206state.TagArray[3] = new("p4", p4);
3207state.TagArray[2] = new("p5", p5);
3208state.TagArray[1] = new("p6", p6);
3209state.TagArray[0] = new("p7", p7);
3250state.TagArray[9] = new("{OriginalFormat}", "M9{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}{p8}");
3251state.TagArray[8] = new("p0", p0);
3252state.TagArray[7] = new("p1", p1 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1) : null);
3253state.TagArray[6] = new("p2", p2);
3254state.TagArray[5] = new("p3", p3);
3255state.TagArray[4] = new("p4", p4);
3256state.TagArray[3] = new("p5", p5);
3257state.TagArray[2] = new("p6", p6);
3258state.TagArray[1] = new("p7", p7);
3259state.TagArray[0] = new("p8", p8);
3301state.TagArray[3] = new("{OriginalFormat}", "M10{p1}{p2}{p3}");
3302state.TagArray[2] = new("p1", p1 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1) : null);
3303state.TagArray[1] = new("p2", p2 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p2) : null);
3304state.TagArray[0] = new("p3", p3 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p3) : null);
3340state.TagArray[1] = new("{OriginalFormat}", "M11{p1}");
3341state.TagArray[0] = new("p1", p1 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1) : null);
3375state.TagArray[1] = new("{OriginalFormat}", "M12{class}");
3376state.TagArray[0] = new("class", @class != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(@class) : null);
3410state.TagArray[1] = new("{OriginalFormat}", "M13{p1}");
3411state.TagArray[0] = new("p1", global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1));
3445state.TagArray[1] = new("{OriginalFormat}", "M14{p1}");
3446state.TagArray[0] = new("p1", p1 != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p1) : null);
3491state.TagArray[0] = new("{OriginalFormat}", "M0");
3525state.TagArray[0] = new("p0", p0);
3559state.TagArray[0] = new("p0", p0);
3588state.TagArray[0] = new("p0", p0);
3628state.TagArray[1] = new("{OriginalFormat}", "M0 {ex2}");
3629state.TagArray[0] = new("ex2", ex2);
3668state.TagArray[1] = new("{OriginalFormat}", "M1 {ex2}");
3669state.TagArray[0] = new("ex2", ex2);
3708state.TagArray[1] = new("{OriginalFormat}", "M2 {arg1}: {ex}");
3709state.TagArray[0] = new("arg1", arg1);
3780state.TagArray[1] = new("{OriginalFormat}", "Method1 {p1}");
3781state.TagArray[0] = new("p1", p1.ToString(null, global::System.Globalization.CultureInfo.InvariantCulture));
3815state.TagArray[3] = new("{OriginalFormat}", "Method2");
3816state.TagArray[2] = new("p1.P1", p1?.P1.ToString(null, global::System.Globalization.CultureInfo.InvariantCulture));
3817state.TagArray[1] = new("p1.P2", p1?.P2.ToString(global::System.Globalization.CultureInfo.InvariantCulture));
3818state.TagArray[0] = new("p1.P3", p1?.P3);
3847state.TagArray[1] = new("{OriginalFormat}", "Method3");
3848state.TagArray[0] = new("p1", p1.ToString(global::System.Globalization.CultureInfo.InvariantCulture));
3888state.TagArray[1] = new("{OriginalFormat}", "M1 {p0}");
3889state.TagArray[0] = new("p0", p0);
3934state.TagArray[1] = new("{OriginalFormat}", "M0 {p0}");
3935state.TagArray[0] = new("p0", p0);
3980state.TagArray[1] = new("{OriginalFormat}", "M1 {value}");
3981state.TagArray[0] = new("value", value);
4021state.TagArray[1] = new("{OriginalFormat}", "M2 {code}");
4022state.TagArray[0] = new("code", code);
4063state.TagArray[2] = new("{OriginalFormat}", "M3 {p1} {p2}");
4064state.TagArray[1] = new("p1", p1);
4065state.TagArray[0] = new("p2", p2);
4106state.TagArray[1] = new("{OriginalFormat}", "M4 {value}");
4107state.TagArray[0] = new("value", value);
4152state.TagArray[1] = new("{OriginalFormat}", "M0 {s}");
4153state.TagArray[0] = new("s", s.ToString());
4198state.TagArray[1] = new("{OriginalFormat}", "M0 {p0}");
4199state.TagArray[0] = new("p0", p0);
4244state.TagArray[0] = new("{OriginalFormat}", "M0");
4278state.TagArray[0] = new("{OriginalFormat}", "M1");
4312state.TagArray[0] = new("{OriginalFormat}", "M2");
4346state.TagArray[0] = new("{OriginalFormat}", "M3");
4375state.TagArray[0] = new("{OriginalFormat}", "M4");
4404state.TagArray[0] = new("{OriginalFormat}", "M5");
4438state.TagArray[0] = new("{OriginalFormat}", "M6");
4472state.TagArray[0] = new("{OriginalFormat}", "M7");
4506state.TagArray[0] = new("{OriginalFormat}", "M8");
4540state.TagArray[0] = new("{OriginalFormat}", "M9");
4574state.TagArray[1] = new("{OriginalFormat}", "M10 {level}");
4575state.TagArray[0] = new("level", level);
4614state.TagArray[1] = new("{OriginalFormat}", "M11 {logger}");
4615state.TagArray[0] = new("logger", logger);
4662state.TagArray[0] = new("{OriginalFormat}", "M11");
4709state.TagArray[0] = new("{OriginalFormat}", "M12");
4754state.TagArray[0] = new("{OriginalFormat}", "M10");
4800state.TagArray[1] = new("{OriginalFormat}", "M1 {p0}");
4801state.TagArray[0] = new("p0", p0);
4851state.TagArray[1] = new("{OriginalFormat}", "M0 {p0}");
4852state.TagArray[0] = new("p0", p0);
4897state.TagArray[1] = new("{OriginalFormat}", "M1 {p0}");
4898state.TagArray[0] = new("p0", p0);
4943state.TagArray[1] = new("{OriginalFormat}", "M0 {p0}");
4944state.TagArray[0] = new("p0", p0);
4989state.TagArray[1] = new("{OriginalFormat}", "M1 {p0}");
4990state.TagArray[0] = new("p0", p0);
5035state.TagArray[1] = new("{OriginalFormat}", "M0 {p0}");
5036state.TagArray[0] = new("p0", p0);
5081state.TagArray[32] = new("{OriginalFormat}", "Only {classToLog_StringProperty_1} as param");
5082state.TagArray[31] = new("classToLog_StringProperty_1", classToLog_StringProperty_1);
5083state.TagArray[30] = new("classToLog.StringProperty", classToLog?.StringProperty);
5084state.TagArray[29] = new("classToLog.SimplifiedNullableIntProperty", classToLog?.SimplifiedNullableIntProperty);
5085state.TagArray[28] = new("classToLog.ExplicitNullableIntProperty", classToLog?.ExplicitNullableIntProperty);
5086state.TagArray[27] = new("classToLog.GetOnlyProperty", classToLog?.GetOnlyProperty);
5087state.TagArray[26] = new("classToLog.VirtualPropertyBase", classToLog?.VirtualPropertyBase);
5088state.TagArray[25] = new("classToLog.VirtualInterimProperty", classToLog?.VirtualInterimProperty);
5089state.TagArray[24] = new("classToLog.TransitivePropertyArray", global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(classToLog?.TransitivePropertyArray));
5090state.TagArray[23] = new("classToLog.TransitiveProperty.TransitiveVirtualProp", classToLog?.TransitiveProperty?.TransitiveVirtualProp);
5091state.TagArray[22] = new("classToLog.TransitiveProperty.TransitiveDerivedProp", classToLog?.TransitiveProperty?.TransitiveDerivedProp);
5092state.TagArray[21] = new("classToLog.TransitiveProperty.TransitiveNumberProp", classToLog?.TransitiveProperty?.TransitiveNumberProp);
5093state.TagArray[20] = new("classToLog.TransitiveProperty.TransitiveStringProp", classToLog?.TransitiveProperty?.TransitiveStringProp);
5094state.TagArray[19] = new("classToLog.TransitiveProperty.TransitiveGenericProp.GenericProp", classToLog?.TransitiveProperty?.TransitiveGenericProp?.GenericProp);
5095state.TagArray[18] = new("classToLog.TransitiveProperty.InnerTransitiveProperty.DateTimeProperty", classToLog?.TransitiveProperty?.InnerTransitiveProperty?.DateTimeProperty);
5096state.TagArray[17] = new("classToLog.TransitiveProperty.InnerTransitiveProperty.IntegerProperty", classToLog?.TransitiveProperty?.InnerTransitiveProperty?.IntegerProperty);
5097state.TagArray[16] = new("classToLog.AnotherTransitiveProperty.IntegerProperty", classToLog?.AnotherTransitiveProperty?.IntegerProperty);
5098state.TagArray[15] = new("classToLog.PropertyOfGenerics.GenericProp", classToLog?.PropertyOfGenerics?.GenericProp);
5099state.TagArray[14] = new("classToLog.CustomStructProperty.LongProperty", classToLog?.CustomStructProperty.LongProperty);
5100state.TagArray[13] = new("classToLog.CustomStructProperty.TransitiveStructProperty.DateTimeOffsetProperty", classToLog?.CustomStructProperty.TransitiveStructProperty.DateTimeOffsetProperty);
5101state.TagArray[12] = new("classToLog.CustomStructProperty.NullableTransitiveStructProperty.DateTimeOffsetProperty", classToLog?.CustomStructProperty.NullableTransitiveStructProperty?.DateTimeOffsetProperty);
5102state.TagArray[11] = new("classToLog.CustomStructProperty.NullableTransitiveStructProperty2.DateTimeOffsetProperty", classToLog?.CustomStructProperty.NullableTransitiveStructProperty2?.DateTimeOffsetProperty);
5103state.TagArray[10] = new("classToLog.CustomStructNullableProperty.LongProperty", classToLog?.CustomStructNullableProperty?.LongProperty);
5104state.TagArray[9] = new("classToLog.CustomStructNullableProperty.TransitiveStructProperty.DateTimeOffsetProperty", classToLog?.CustomStructNullableProperty?.TransitiveStructProperty.DateTimeOffsetProperty);
5105state.TagArray[8] = new("classToLog.CustomStructNullableProperty.NullableTransitiveStructProperty.DateTimeOffsetProperty", classToLog?.CustomStructNullableProperty?.NullableTransitiveStructProperty?.DateTimeOffsetProperty);
5106state.TagArray[7] = new("classToLog.CustomStructNullableProperty.NullableTransitiveStructProperty2.DateTimeOffsetProperty", classToLog?.CustomStructNullableProperty?.NullableTransitiveStructProperty2?.DateTimeOffsetProperty);
5107state.TagArray[6] = new("classToLog.CustomStructNullableProperty2.LongProperty", classToLog?.CustomStructNullableProperty2?.LongProperty);
5108state.TagArray[5] = new("classToLog.CustomStructNullableProperty2.TransitiveStructProperty.DateTimeOffsetProperty", classToLog?.CustomStructNullableProperty2?.TransitiveStructProperty.DateTimeOffsetProperty);
5109state.TagArray[4] = new("classToLog.CustomStructNullableProperty2.NullableTransitiveStructProperty.DateTimeOffsetProperty", classToLog?.CustomStructNullableProperty2?.NullableTransitiveStructProperty?.DateTimeOffsetProperty);
5110state.TagArray[3] = new("classToLog.CustomStructNullableProperty2.NullableTransitiveStructProperty2.DateTimeOffsetProperty", classToLog?.CustomStructNullableProperty2?.NullableTransitiveStructProperty2?.DateTimeOffsetProperty);
5111state.TagArray[2] = new("classToLog.InterimProperty", classToLog?.InterimProperty);
5112state.TagArray[1] = new("classToLog.NonVirtualPropertyBase", classToLog?.NonVirtualPropertyBase);
5113state.TagArray[0] = new("classToLog.StringPropertyBase", classToLog?.StringPropertyBase);
5152state.TagArray[3] = new("{OriginalFormat}", "Both {StringProperty} and {ComplexParam} as params");
5153state.TagArray[2] = new("StringProperty", StringProperty);
5154state.TagArray[1] = new("ComplexParam", complexParam);
5155state.TagArray[0] = new("complexParam.MyProperty", complexParam?.MyProperty);
5195state.TagArray[4] = new("{OriginalFormat}", "Testing non-nullable struct here...");
5196state.TagArray[3] = new("structParam.LongProperty", structParam.LongProperty);
5197state.TagArray[2] = new("structParam.TransitiveStructProperty.DateTimeOffsetProperty", structParam.TransitiveStructProperty.DateTimeOffsetProperty);
5198state.TagArray[1] = new("structParam.NullableTransitiveStructProperty.DateTimeOffsetProperty", structParam.NullableTransitiveStructProperty?.DateTimeOffsetProperty);
5199state.TagArray[0] = new("structParam.NullableTransitiveStructProperty2.DateTimeOffsetProperty", structParam.NullableTransitiveStructProperty2?.DateTimeOffsetProperty);
5233state.TagArray[4] = new("{OriginalFormat}", "Testing nullable struct here...");
5234state.TagArray[3] = new("structParam.LongProperty", structParam?.LongProperty);
5235state.TagArray[2] = new("structParam.TransitiveStructProperty.DateTimeOffsetProperty", structParam?.TransitiveStructProperty.DateTimeOffsetProperty);
5236state.TagArray[1] = new("structParam.NullableTransitiveStructProperty.DateTimeOffsetProperty", structParam?.NullableTransitiveStructProperty?.DateTimeOffsetProperty);
5237state.TagArray[0] = new("structParam.NullableTransitiveStructProperty2.DateTimeOffsetProperty", structParam?.NullableTransitiveStructProperty2?.DateTimeOffsetProperty);
5271state.TagArray[4] = new("{OriginalFormat}", "Testing explicit nullable struct here...");
5272state.TagArray[3] = new("structParam.LongProperty", structParam?.LongProperty);
5273state.TagArray[2] = new("structParam.TransitiveStructProperty.DateTimeOffsetProperty", structParam?.TransitiveStructProperty.DateTimeOffsetProperty);
5274state.TagArray[1] = new("structParam.NullableTransitiveStructProperty.DateTimeOffsetProperty", structParam?.NullableTransitiveStructProperty?.DateTimeOffsetProperty);
5275state.TagArray[0] = new("structParam.NullableTransitiveStructProperty2.DateTimeOffsetProperty", structParam?.NullableTransitiveStructProperty2?.DateTimeOffsetProperty);
5309state.TagArray[2] = new("{OriginalFormat}", "Testing nullable property within class here...");
5310state.TagArray[1] = new("classWithNullablePropertyParam.NullableDateTime", classWithNullablePropertyParam?.NullableDateTime);
5311state.TagArray[0] = new("classWithNullablePropertyParam.NonNullableDateTime", classWithNullablePropertyParam?.NonNullableDateTime);
5345state.TagArray[0] = new("complexParam.MyProperty", complexParam?.MyProperty);
5379state.TagArray[2] = new("{OriginalFormat}", "Testing interface-typed argument here...");
5380state.TagArray[1] = new("complexParam.IntProperty", complexParam?.IntProperty);
5381state.TagArray[0] = new("complexParam.TransitiveProp.IntegerProperty", complexParam?.TransitiveProp?.IntegerProperty);
5415state.TagArray[3] = new("{OriginalFormat}", "Testing logging a complex object residing in another assembly...");
5416state.TagArray[2] = new("logObject.PropertyToLog", logObject?.PropertyToLog);
5417state.TagArray[1] = new("logObject.FieldToLog.Name", logObject?.FieldToLog?.Name);
5418state.TagArray[0] = new("logObject.FieldToLog.Value", logObject?.FieldToLog?.Value);
5461state.TagArray[5] = new("p.P0", p?.P0);
5462state.TagArray[4] = new("p.P1", p?.P1);
5463state.TagArray[3] = new("p.P2", p?.P2);
5464state.TagArray[2] = new("p.P3", p?.P3);
5465state.TagArray[1] = new("p.P4", p?.P4.ToString());
5466state.TagArray[0] = new("p.P10", global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(p?.P10));
5603state.TagArray[1] = new("P0", p?.P0);
5604state.TagArray[0] = new("P1", p?.P1);
5671state.TagArray[1] = new("P0", param?.P0);
5672state.TagArray[0] = new("P1", param?.P1);
5745state.TagArray[3] = new("p0.Value", p0?.Value);
5746state.TagArray[2] = new("p0.class", p0?.@class);
5747state.TagArray[1] = new("p0.GetOnlyValue", p0?.GetOnlyValue);
5748state.TagArray[0] = new("p0.event", p0?.@event);
5782state.TagArray[4] = new("{OriginalFormat}", "Struct is: {p0}");
5783state.TagArray[3] = new("p0", p0.ToString());
5784state.TagArray[2] = new("p0.IntValue", p0.IntValue);
5785state.TagArray[1] = new("p0.StringValue", p0.StringValue);
5786state.TagArray[0] = new("p0.GetOnlyValue", p0.GetOnlyValue);
5825state.TagArray[4] = new("{OriginalFormat}", "Readonly struct is: {p0}");
5826state.TagArray[3] = new("p0", p0.ToString());
5827state.TagArray[2] = new("p0.IntValue", p0.IntValue);
5828state.TagArray[1] = new("p0.StringValue", p0.StringValue);
5829state.TagArray[0] = new("p0.GetOnlyValue", p0.GetOnlyValue);
5880state.TagArray[3] = new("{OriginalFormat}", "No template params");
5881state.TagArray[2] = new("classToLog.SimplifiedNullableIntProperty", classToLog?.SimplifiedNullableIntProperty);
5882state.TagArray[1] = new("classToLog.TransitiveProp.TransitiveNumberProp", classToLog?.TransitiveProp?.TransitiveNumberProp);
5883state.TagArray[0] = new("classToLog.NoRedactionProp", classToLog?.NoRedactionProp);
5924state.TagArray[1] = new("{OriginalFormat}", "Only {StringProperty} as param");
5925state.TagArray[0] = new("complexParam.TransitiveNumberProp", complexParam?.TransitiveNumberProp);
5968state.TagArray[2] = new("classToLog.SimplifiedNullableIntProperty", classToLog?.SimplifiedNullableIntProperty);
5969state.TagArray[1] = new("classToLog.TransitiveProp.TransitiveNumberProp", classToLog?.TransitiveProp?.TransitiveNumberProp);
5970state.TagArray[0] = new("classToLog.NoRedactionProp", classToLog?.NoRedactionProp);
6011state.TagArray[0] = new("complexParam.TransitiveNumberProp", complexParam?.TransitiveNumberProp);
6049state.TagArray[0] = new("{OriginalFormat}", "User {userId} has now different status");
6098state.TagArray[9] = new("{OriginalFormat}", "{p0}");
6099state.TagArray[8] = new("p0", p0);
6100state.TagArray[7] = new("myProps.P1", myProps?.P1);
6101state.TagArray[6] = new("myProps.P2", myProps?.P2);
6102state.TagArray[5] = new("myProps.P3", myProps?.P3);
6103state.TagArray[4] = new("myProps.P4", myProps?.P4);
6104state.TagArray[3] = new("myProps.class", myProps?.@class);
6105state.TagArray[2] = new("myProps.P5", global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(myProps?.P5));
6106state.TagArray[1] = new("myProps.P6", global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(myProps?.P6));
6107state.TagArray[0] = new("myProps.P7", global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(myProps?.P7));
6152state.TagArray[20] = new("p.P0", p?.P0);
6153state.TagArray[19] = new("p.P1", p?.P1);
6154state.TagArray[18] = new("p.P2", p?.P2);
6155state.TagArray[17] = new("p.P3", p?.P3);
6156state.TagArray[16] = new("p.P4", p?.P4);
6157state.TagArray[15] = new("p.P5", p?.P5);
6158state.TagArray[14] = new("p.P6", p?.P6);
6159state.TagArray[13] = new("p.P7", p?.P7);
6160state.TagArray[12] = new("p.P8", p?.P8);
6161state.TagArray[11] = new("p.P9", p?.P9);
6162state.TagArray[10] = new("p.P10", p?.P10);
6163state.TagArray[9] = new("p.P11", p?.P11);
6164state.TagArray[8] = new("p.P12", p?.P12.ToString());
6165state.TagArray[7] = new("p.P13", p?.P13.ToString());
6166state.TagArray[6] = new("p.P14", p?.P14.ToString());
6167state.TagArray[5] = new("p.P15", p?.P15.ToString());
6168state.TagArray[4] = new("p.P16", p?.P16.ToString(null, global::System.Globalization.CultureInfo.InvariantCulture));
6169state.TagArray[3] = new("p.P17", p?.P17.ToString(null, global::System.Globalization.CultureInfo.InvariantCulture));
6170state.TagArray[2] = new("p.P18", p?.P18.ToString(null, global::System.Globalization.CultureInfo.InvariantCulture));
6171state.TagArray[1] = new("p.P19", p?.P19);
6172state.TagArray[0] = new("p.P20", p?.P20);
6305state.TagArray[1] = new("p1", p1);
6306state.TagArray[0] = new("p2", p2);
6340state.TagArray[1] = new("p1", p1);
6341state.TagArray[0] = new("p2", p2);
6375state.TagArray[3] = new("{OriginalFormat}", "{p1}");
6376state.TagArray[2] = new("p1", p1);
6377state.TagArray[1] = new("p2", p2);
6378state.TagArray[0] = new("p3", p3);
6417state.TagArray[0] = new("{OriginalFormat}", "\"Hello\" World");
6451state.TagArray[2] = new("{OriginalFormat}", "\"{Value1}\" -> \"{Value2}\"");
6452state.TagArray[1] = new("Value1", value1);
6453state.TagArray[0] = new("Value2", value2);
6493state.TagArray[0] = new("{OriginalFormat}", "\"\n\r\\");
6532state.TagArray[0] = new("{OriginalFormat}", "M8");
6578state.TagArray[0] = new("{OriginalFormat}", "M9");
6628state.TagArray[0] = new("{OriginalFormat}", "M2 {p0} {p1} {p2}");
6683state.TagArray[1] = new("{OriginalFormat}", "M0 {p0}");
6684state.TagArray[0] = new("p0", p0);
6723state.TagArray[0] = new("{OriginalFormat}", "M1 {p0}");
6765state.TagArray[0] = new("{OriginalFormat}", "M2 {p0} {p1} {p2}");
6845state.TagArray[4] = new("{OriginalFormat}", "LogProperties: {P0}");
6846state.TagArray[3] = new("P0", p0);
6847state.TagArray[2] = new("p1.MyIntProperty", p1?.MyIntProperty);
6848state.TagArray[1] = new("p1.MyStringProperty", p1?.MyStringProperty);
6849state.TagArray[0] = new("p1.AnotherStringProperty", p1?.AnotherStringProperty);
6888state.TagArray[2] = new("{OriginalFormat}", "LogProperties with provider: {P0}, {P1}");
6889state.TagArray[1] = new("P0", p0);
6890state.TagArray[0] = new("P1", p1);
6932state.TagArray[0] = new("{OriginalFormat}", "LogProperties with redaction: {P0}");
6975state.TagArray[0] = new("p0", p0);
7046state.TagArray[0] = new("{OriginalFormat}", "No params here...");
7080state.TagArray[0] = new("{OriginalFormat}", "No params here as well...");
7123state.TagArray[1] = new("{OriginalFormat}", "M0 {p0}");
7124state.TagArray[0] = new("p0", p0);
7163state.TagArray[1] = new("{OriginalFormat}", "M1 {p0}");
7164state.TagArray[0] = new("p0", p0);
7203state.TagArray[0] = new("{OriginalFormat}", "M3 {p0}");
7245state.TagArray[9] = new("{OriginalFormat}", "M4 {p0} {p1} {p2} {p3} {p4} {p5} {p6} {p7} {p8}");
7246state.TagArray[8] = new("p0", p0);
7247state.TagArray[7] = new("p1", p1);
7248state.TagArray[6] = new("p2", p2);
7249state.TagArray[5] = new("p3", p3);
7250state.TagArray[4] = new("p4", p4);
7251state.TagArray[3] = new("p5", p5);
7252state.TagArray[2] = new("p6", p6);
7253state.TagArray[1] = new("p7", p7);
7254state.TagArray[0] = new("p8", p8);
7301state.TagArray[9] = new("{OriginalFormat}", "M5 {p0} {p1} {p2} {p3} {p4} {p5} {p6} {p7} {p8}");
7302state.TagArray[8] = new("p0", p0);
7303state.TagArray[7] = new("p1", p1);
7304state.TagArray[6] = new("p2", p2);
7305state.TagArray[5] = new("p3", p3);
7306state.TagArray[4] = new("p4", p4);
7307state.TagArray[3] = new("p5", p5);
7308state.TagArray[2] = new("p6", p6);
7309state.TagArray[1] = new("p7", p7);
7310state.TagArray[0] = new("p8", p8);
7362state.TagArray[0] = new("{OriginalFormat}", "M6 {p0}");
7410state.TagArray[0] = new("{OriginalFormat}", "M0");
7444state.TagArray[1] = new("{OriginalFormat}", "M1 {p0}");
7445state.TagArray[0] = new("p0", p0);
7484state.TagArray[2] = new("{OriginalFormat}", "M2 {p0}{p1}");
7485state.TagArray[1] = new("p0", p0);
7486state.TagArray[0] = new("p1", p1);
7526state.TagArray[2] = new("p0", p0);
7527state.TagArray[1] = new("p1", p1);
7528state.TagArray[0] = new("p2", p2);
7568state.TagArray[1] = new("{OriginalFormat}", "M0 {v}");
7569state.TagArray[0] = new("v", v);
7608state.TagArray[1] = new("{OriginalFormat}", "M0 {v}");
7609state.TagArray[0] = new("v", v);
7654state.TagArray[1] = new("{OriginalFormat}", "M1 {p0}");
7655state.TagArray[0] = new("p0", p0);
7700state.TagArray[0] = new("{OriginalFormat}", "M0");
7740state.TagArray[0] = new("{OriginalFormat}", "Test.");
7780state.TagArray[1] = new("{OriginalFormat}", "M0 {s}");
7781state.TagArray[0] = new("s", s.ToString());
7829state.TagArray[1] = new("{OriginalFormat}", "Param is {p0}");
7830state.TagArray[0] = new("p0", p0);
7869state.TagArray[0] = new("p0", p0);
7903state.TagArray[0] = new("{OriginalFormat}", "Data was obtained");
7978state.TagArray[0] = new("{OriginalFormat}", "Data is {data}");
8021state.TagArray[0] = new("{OriginalFormat}", "Message11");
8055state.TagArray[2] = new("{OriginalFormat}", "{p1} {p2}");
8056state.TagArray[1] = new("p1", p1);
8057state.TagArray[0] = new("p2", p2);
8097state.TagArray[1] = new("{OriginalFormat}", "{helper}");
8098state.TagArray[0] = new("helper", helper);
8138state.TagArray[0] = new("{OriginalFormat}", "Message1");
8167state.TagArray[0] = new("{OriginalFormat}", "Message2");
8196state.TagArray[0] = new("{OriginalFormat}", "Message3");
8225state.TagArray[0] = new("{OriginalFormat}", "Message4");
8254state.TagArray[1] = new("{OriginalFormat}", "Message5 {items}");
8255state.TagArray[0] = new("items", items != null ? global::Microsoft.Extensions.Logging.LoggerMessageHelper.Stringify(items) : null);
8289state.TagArray[0] = new("{OriginalFormat}", "Message6\n\"\r");
8318state.TagArray[1] = new("{OriginalFormat}", "Message7 {p1}\n\"\r");
8319state.TagArray[0] = new("p1", p1);
8353state.TagArray[0] = new("{OriginalFormat}", "Message8");
8382state.TagArray[0] = new("{OriginalFormat}", "Message9");
8411state.TagArray[1] = new("{OriginalFormat}", "Message10 {optional}");
8412state.TagArray[0] = new("optional", optional);
8451state.TagArray[2] = new("{OriginalFormat}", "Message11 {p1} {p2}");
8452state.TagArray[1] = new("p1", p1);
8453state.TagArray[0] = new("p2", p2);
8494state.TagArray[0] = new("{OriginalFormat}", "M0");
8528state.TagArray[0] = new("{OriginalFormat}", "M1");
8562state.TagArray[0] = new("p1", p1);
8602state.TagArray[0] = new("{OriginalFormat}", "M0");
8642state.TagArray[0] = new("TN1", p0);
8676state.TagArray[1] = new("{OriginalFormat}", "{foo.bar}");
8677state.TagArray[0] = new("foo.bar", p0);
8722state.TagArray[1] = new("{OriginalFormat}", "Custom provided properties for {Param}.");
8723state.TagArray[0] = new("Param", param);
8764state.TagArray[0] = new("{OriginalFormat}", "Custom provided properties for struct.");
8800state.TagArray[0] = new("{OriginalFormat}", "Custom provided properties for interface.");
8836state.TagArray[1] = new("{OriginalFormat}", "Custom provided properties for both complex params and {StringParam}.");
8837state.TagArray[0] = new("StringParam", stringParam);
8880state.TagArray[3] = new("{OriginalFormat}", "No params.");
8881state.TagArray[2] = new("param1.MyIntProperty", param1?.MyIntProperty);
8882state.TagArray[1] = new("param1.MyStringProperty", param1?.MyStringProperty);
8883state.TagArray[0] = new("param1.AnotherStringProperty", param1?.AnotherStringProperty);
9024state.TagArray[1] = new("{OriginalFormat}", "Custom provided properties for {Param}.");
9025state.TagArray[0] = new("Param", param);
9066state.TagArray[1] = new("{OriginalFormat}", "Custom provided properties for both complex params and {StringParam}.");
9067state.TagArray[0] = new("StringParam", stringParam);
9111state.TagArray[1] = new("{OriginalFormat}", "M0 {A1}");
9112state.TagArray[0] = new("A1", a1);
9146state.TagArray[1] = new("{OriginalFormat}", "M1 {A1} {A1}");
9147state.TagArray[0] = new("A1", a1);
9181state.TagArray[7] = new("{OriginalFormat}", "M2 {A1} {a2} {A3} {a4} {A5} {a6} {A7}");
9182state.TagArray[6] = new("A1", a1);
9183state.TagArray[5] = new("a2", a2);
9184state.TagArray[4] = new("A3", a3);
9185state.TagArray[3] = new("a4", a4);
9186state.TagArray[2] = new("A5", a5);
9187state.TagArray[1] = new("a6", a6);
9188state.TagArray[0] = new("A7", a7);
9228state.TagArray[2] = new("{OriginalFormat}", "M3 {a2} {A1}");
9229state.TagArray[1] = new("A1", a1);
9230state.TagArray[0] = new("a2", a2);
9271state.TagArray[0] = new("{OriginalFormat}", "M0");
9305state.TagArray[1] = new("{OriginalFormat}", "M1 {p1}");
9306state.TagArray[0] = new("p1", p1);
9345state.TagArray[0] = new("p1", p1);
9385state.TagArray[1] = new("p0.P0.P2", p0?.P0?.P2);
9386state.TagArray[0] = new("p0.P1", p0?.P1);
9420state.TagArray[1] = new("p0.P0", p0?.P0);
9421state.TagArray[0] = new("p0.P1", p0?.P1);
9455state.TagArray[1] = new("p0.P3.Capacity", p0?.P3?.Capacity);
9456state.TagArray[0] = new("p0.P3.Count", p0?.P3?.Count);
9490state.TagArray[0] = new("p0.P4", p0?.P4);
LogMethodTests.cs (23)
262AssertLastState(collector, new("p0", "0"), new("p1", "1"));
716new KeyValuePair<string, string?>("A1", "0"),
717new KeyValuePair<string, string?>("{OriginalFormat}", "M0 {A1}"));
724new KeyValuePair<string, string?>("A1", "42"),
725new KeyValuePair<string, string?>("{OriginalFormat}", "M1 {A1} {A1}"));
732new KeyValuePair<string, string?>("A1", "42"),
733new KeyValuePair<string, string?>("a2", "43"),
734new KeyValuePair<string, string?>("A3", "44"),
735new KeyValuePair<string, string?>("a4", "45"),
736new KeyValuePair<string, string?>("A5", "46"),
737new KeyValuePair<string, string?>("a6", "47"),
738new KeyValuePair<string, string?>("A7", "48"),
739new KeyValuePair<string, string?>("{OriginalFormat}", "M2 {A1} {a2} {A3} {a4} {A5} {a6} {A7}"));
746new KeyValuePair<string, string?>("A1", "42"),
747new KeyValuePair<string, string?>("a2", "43"),
748new KeyValuePair<string, string?>("{OriginalFormat}", "M3 {a2} {A1}"));
762new KeyValuePair<string, string?>("{OriginalFormat}", "M0"));
776new KeyValuePair<string, string?>("{OriginalFormat}", "M0"));
1044AssertLastState(collector, new("p0", "0"), new("p1", "1"), new("p2", "2"));
1068var kvp = new KeyValuePair<string, string?>($"p{i}", i.ToString());
Microsoft.Gen.Metrics.Generated.Tests (231)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Metrics.g.cs (226)
590new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
611new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
632new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
653new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
674new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
675new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
696new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
697new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
718new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
719new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
720new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
741new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
742new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
743new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
764new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
765new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
766new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
767new global::System.Collections.Generic.KeyValuePair<string, object?>("s4", s4),
788new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
789new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
790new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
791new global::System.Collections.Generic.KeyValuePair<string, object?>("s4", s4),
812new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
813new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
834new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
835new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
856new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
857new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
878new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
879new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
900new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
901new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
902new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
903new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
904new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
925new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
926new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
927new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
928new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
929new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
955new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
956new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
957new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
958new global::System.Collections.Generic.KeyValuePair<string, object?>("s4", s4),
959new global::System.Collections.Generic.KeyValuePair<string, object?>("s5", s5),
960new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
961new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
962new global::System.Collections.Generic.KeyValuePair<string, object?>("d3", d3),
963new global::System.Collections.Generic.KeyValuePair<string, object?>("d4", d4),
964new global::System.Collections.Generic.KeyValuePair<string, object?>("d5", d5),
990new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
991new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
992new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
993new global::System.Collections.Generic.KeyValuePair<string, object?>("s4", s4),
994new global::System.Collections.Generic.KeyValuePair<string, object?>("s5", s5),
995new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
996new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
997new global::System.Collections.Generic.KeyValuePair<string, object?>("d3", d3),
998new global::System.Collections.Generic.KeyValuePair<string, object?>("d4", d4),
999new global::System.Collections.Generic.KeyValuePair<string, object?>("d5", d5),
1020new global::System.Collections.Generic.KeyValuePair<string, object?>("Static:1", Static_1),
1021new global::System.Collections.Generic.KeyValuePair<string, object?>("Static-2", Static_2),
1022new global::System.Collections.Generic.KeyValuePair<string, object?>("Dyn_1", Dyn_1),
1023new global::System.Collections.Generic.KeyValuePair<string, object?>("Dyn", Dyn),
1044new global::System.Collections.Generic.KeyValuePair<string, object?>("Static:1", Static_1),
1045new global::System.Collections.Generic.KeyValuePair<string, object?>("Static-2", Static_2),
1046new global::System.Collections.Generic.KeyValuePair<string, object?>("Dyn_1", Dyn_1),
1047new global::System.Collections.Generic.KeyValuePair<string, object?>("Dyn", Dyn),
1068new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", Dim1),
1069new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim_2", Dim_2),
1070new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim_3", Dim_3),
1091new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", Dim1),
1092new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim_2", Dim_2),
1093new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim_3", Dim_3),
1188new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", o.Dim1!),
1189new global::System.Collections.Generic.KeyValuePair<string, object?>("OperationsEnum", o.OperationsEnum.ToString()),
1190new global::System.Collections.Generic.KeyValuePair<string, object?>("Enum2", o.OperationsEnum2.ToString()),
1191new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim2", o.ChildDimensionsObject?.Dim2!),
1192new global::System.Collections.Generic.KeyValuePair<string, object?>("dim2FromAttribute", o.ChildDimensionsObject?.SomeDim!),
1193new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim3", o.GrandChildDimensionsObject?.Dim3!),
1194new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim3FromAttribute", o.GrandChildDimensionsObject?.SomeDim!),
1195new global::System.Collections.Generic.KeyValuePair<string, object?>("ParentOperationName", o.ParentOperationName!),
1196new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim4Struct", o.ChildDimensionsStruct.Dim4Struct!),
1197new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim5FromAttribute", o.ChildDimensionsStruct.Dim5Struct!),
1228new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", o.Dim1!),
1229new global::System.Collections.Generic.KeyValuePair<string, object?>("OperationsEnum", o.OperationsEnum.ToString()),
1230new global::System.Collections.Generic.KeyValuePair<string, object?>("Enum2", o.OperationsEnum2.ToString()),
1231new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim2", o.ChildDimensionsObject?.Dim2!),
1232new global::System.Collections.Generic.KeyValuePair<string, object?>("dim2FromAttribute", o.ChildDimensionsObject?.SomeDim!),
1233new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim3", o.GrandChildDimensionsObject?.Dim3!),
1234new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim3FromAttribute", o.GrandChildDimensionsObject?.SomeDim!),
1235new global::System.Collections.Generic.KeyValuePair<string, object?>("ParentOperationName", o.ParentOperationName!),
1236new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim4Struct", o.ChildDimensionsStruct.Dim4Struct!),
1237new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim5FromAttribute", o.ChildDimensionsStruct.Dim5Struct!),
1258new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", o.Dim1!),
1259new global::System.Collections.Generic.KeyValuePair<string, object?>("DimInField", o.DimInField!),
1260new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim2_FromAttribute", o.Dim2!),
1261new global::System.Collections.Generic.KeyValuePair<string, object?>("Operations", o.Operations.ToString()),
1262new global::System.Collections.Generic.KeyValuePair<string, object?>("Operations_FromAttribute", o.Operations2.ToString()),
1283new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", o.Dim1!),
1284new global::System.Collections.Generic.KeyValuePair<string, object?>("DimInField", o.DimInField!),
1285new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim2_FromAttribute", o.Dim2!),
1286new global::System.Collections.Generic.KeyValuePair<string, object?>("Operations", o.Operations.ToString()),
1287new global::System.Collections.Generic.KeyValuePair<string, object?>("Operations_FromAttribute", o.Operations2.ToString()),
1313new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", o.Dim1!),
1314new global::System.Collections.Generic.KeyValuePair<string, object?>("DimInField", o.DimInField!),
1315new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim2_FromAttribute", o.Dim2!),
1316new global::System.Collections.Generic.KeyValuePair<string, object?>("Operations", o.Operations.ToString()),
1317new global::System.Collections.Generic.KeyValuePair<string, object?>("Operations_FromAttribute", o.Operations2.ToString()),
1570new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1591new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1612new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1613new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1634new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1635new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1656new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1657new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1678new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1679new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1700new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1701new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1702new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
1723new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1724new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1725new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
1746new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1747new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1748new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
1749new global::System.Collections.Generic.KeyValuePair<string, object?>("s4", s4),
1770new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1771new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1772new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
1773new global::System.Collections.Generic.KeyValuePair<string, object?>("s4", s4),
1794new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
1795new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
1816new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
1817new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
1838new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1839new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
1860new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1861new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
1882new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1883new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1884new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
1885new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
1886new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
1907new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1908new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1909new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
1910new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
1911new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
1937new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1938new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1939new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
1940new global::System.Collections.Generic.KeyValuePair<string, object?>("s4", s4),
1941new global::System.Collections.Generic.KeyValuePair<string, object?>("s5", s5),
1942new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
1943new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
1944new global::System.Collections.Generic.KeyValuePair<string, object?>("d3", d3),
1945new global::System.Collections.Generic.KeyValuePair<string, object?>("d4", d4),
1946new global::System.Collections.Generic.KeyValuePair<string, object?>("d5", d5),
1972new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
1973new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
1974new global::System.Collections.Generic.KeyValuePair<string, object?>("s3", s3),
1975new global::System.Collections.Generic.KeyValuePair<string, object?>("s4", s4),
1976new global::System.Collections.Generic.KeyValuePair<string, object?>("s5", s5),
1977new global::System.Collections.Generic.KeyValuePair<string, object?>("d1", d1),
1978new global::System.Collections.Generic.KeyValuePair<string, object?>("d2", d2),
1979new global::System.Collections.Generic.KeyValuePair<string, object?>("d3", d3),
1980new global::System.Collections.Generic.KeyValuePair<string, object?>("d4", d4),
1981new global::System.Collections.Generic.KeyValuePair<string, object?>("d5", d5),
2002new global::System.Collections.Generic.KeyValuePair<string, object?>("Static:1", Static_1),
2003new global::System.Collections.Generic.KeyValuePair<string, object?>("Static-2", Static_2),
2004new global::System.Collections.Generic.KeyValuePair<string, object?>("Dyn_1", Dyn_1),
2005new global::System.Collections.Generic.KeyValuePair<string, object?>("Dyn", Dyn),
2026new global::System.Collections.Generic.KeyValuePair<string, object?>("Static:1", Static_1),
2027new global::System.Collections.Generic.KeyValuePair<string, object?>("Static-2", Static_2),
2028new global::System.Collections.Generic.KeyValuePair<string, object?>("Dyn_1", Dyn_1),
2029new global::System.Collections.Generic.KeyValuePair<string, object?>("Dyn", Dyn),
2050new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", Dim1),
2051new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim_2", Dim_2),
2052new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim_3", Dim_3),
2073new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", Dim1),
2074new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim_2", Dim_2),
2075new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim_3", Dim_3),
2106new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", o.Dim1!),
2107new global::System.Collections.Generic.KeyValuePair<string, object?>("OperationsEnum", o.OperationsEnum.ToString()),
2108new global::System.Collections.Generic.KeyValuePair<string, object?>("Enum2", o.OperationsEnum2.ToString()),
2109new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim2", o.ChildDimensionsObject?.Dim2!),
2110new global::System.Collections.Generic.KeyValuePair<string, object?>("dim2FromAttribute", o.ChildDimensionsObject?.SomeDim!),
2111new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim3", o.GrandChildrenDimensionsObject?.Dim3!),
2112new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim3FromAttribute", o.GrandChildrenDimensionsObject?.SomeDim!),
2113new global::System.Collections.Generic.KeyValuePair<string, object?>("ParentOperationName", o.ParentOperationName!),
2114new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim4Struct", o.ChildDimensionsStruct.Dim4Struct!),
2115new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim5FromAttribute", o.ChildDimensionsStruct.Dim5Struct!),
2146new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", o.Dim1!),
2147new global::System.Collections.Generic.KeyValuePair<string, object?>("OperationsEnum", o.OperationsEnum.ToString()),
2148new global::System.Collections.Generic.KeyValuePair<string, object?>("Enum2", o.OperationsEnum2.ToString()),
2149new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim2", o.ChildDimensionsObject?.Dim2!),
2150new global::System.Collections.Generic.KeyValuePair<string, object?>("dim2FromAttribute", o.ChildDimensionsObject?.SomeDim!),
2151new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim3", o.GrandChildrenDimensionsObject?.Dim3!),
2152new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim3FromAttribute", o.GrandChildrenDimensionsObject?.SomeDim!),
2153new global::System.Collections.Generic.KeyValuePair<string, object?>("ParentOperationName", o.ParentOperationName!),
2154new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim4Struct", o.ChildDimensionsStruct.Dim4Struct!),
2155new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim5FromAttribute", o.ChildDimensionsStruct.Dim5Struct!),
2176new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", o.Dim1!),
2177new global::System.Collections.Generic.KeyValuePair<string, object?>("DimInField", o.DimInField!),
2178new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim2_FromAttribute", o.Dim2!),
2179new global::System.Collections.Generic.KeyValuePair<string, object?>("Operations", o.Operations.ToString()),
2180new global::System.Collections.Generic.KeyValuePair<string, object?>("Operations_FromAttribute", o.Operations2.ToString()),
2201new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", o.Dim1!),
2202new global::System.Collections.Generic.KeyValuePair<string, object?>("DimInField", o.DimInField!),
2203new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim2_FromAttribute", o.Dim2!),
2204new global::System.Collections.Generic.KeyValuePair<string, object?>("Operations", o.Operations.ToString()),
2205new global::System.Collections.Generic.KeyValuePair<string, object?>("Operations_FromAttribute", o.Operations2.ToString()),
2350new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
2351new global::System.Collections.Generic.KeyValuePair<string, object?>("s2", s2),
2377new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", o.Dim1!),
2378new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim2", o.Dim2!),
2436new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim1", o.Dim1!),
2437new global::System.Collections.Generic.KeyValuePair<string, object?>("Dim2", o.Dim2!),
2458new global::System.Collections.Generic.KeyValuePair<string, object?>("s1", s1),
2515new global::System.Collections.Generic.KeyValuePair<string, object?>("Dimension1", o.Dimension1!),
2516new global::System.Collections.Generic.KeyValuePair<string, object?>("Dimension2", o.Dimension2!),
2542new global::System.Collections.Generic.KeyValuePair<string, object?>("Dimension1", o.Dimension1!),
2543new global::System.Collections.Generic.KeyValuePair<string, object?>("Dimension2", o.Dimension2!),
Microsoft.Maui (2)
Microsoft.Maui.Controls (9)
Microsoft.Maui.Controls.Xaml (2)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
Microsoft.ML.AutoML (2)
Microsoft.ML.AutoML.Interactive (4)
NotebookMonitor.cs (4)
51new KeyValuePair<string, object>("Trial",result.TrialSettings.TrialId),
52new KeyValuePair<string, object>("Metric", result.Metric),
53new KeyValuePair<string, object>("Trainer",SweepablePipeline.ToString(result.TrialSettings.Parameter).Replace("Unknown=>","")),
54new KeyValuePair<string, object>("Parameters",activeRunParam),
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Core (13)
Data\RoleMappedSchema.cs (5)
118=> new KeyValuePair<ColumnRole, string>(this, name);
122=> new KeyValuePair<ColumnRole, string>(role, name);
267yield return new KeyValuePair<ColumnRole, DataViewSchema.Column>(roleAndList.Key, info);
279yield return new KeyValuePair<ColumnRole, string>(roleAndList.Key, info.Name);
292yield return new KeyValuePair<ColumnRole, string>(role, info.Name);
Microsoft.ML.Data (39)
Transforms\ColumnConcatenatingTransformer.cs (6)
89taggedColumn.Source = res.Source.Select(s => new KeyValuePair<string, string>(null, s)).ToArray();
812return new KeyValuePair<string, JToken>(outName, null);
820return new KeyValuePair<string, JToken>(outName, null);
827return new KeyValuePair<string, JToken>(outName, null);
853return new KeyValuePair<string, JToken>(outName, result);
932inputList.Add(new KeyValuePair<string, long>(ctx.GetVariableName(srcName),
Microsoft.ML.DataView (6)
VBuffer.cs (5)
480yield return new KeyValuePair<int, T>(i, values[i]);
485yield return new KeyValuePair<int, T>(indices[i], values[i]);
495yield return new KeyValuePair<int, T>(slotCur, default(T));
497yield return new KeyValuePair<int, T>(slotCur, values[i]);
501yield return new KeyValuePair<int, T>(slotCur, default(T));
Microsoft.ML.Ensemble (4)
Microsoft.ML.EntryPoints (4)
Microsoft.ML.FastTree (13)
FastTree.cs (11)
1017result.Add(new KeyValuePair<int, int>(indices[i], ge));
2406_sparse.Add(new KeyValuePair<int, double>(index, value));
2421_sparse.Add(new KeyValuePair<int, double>(i, _dense[i]));
2579yield return new KeyValuePair<int, int>(kvp.Key, binned);
2590yield return new KeyValuePair<int, int>(last, zeroBin);
2593yield return new KeyValuePair<int, int>(kvp.Key, binned);
2596yield return new KeyValuePair<int, int>(last, zeroBin);
2607yield return new KeyValuePair<int, int>(i, binned);
2612yield return new KeyValuePair<int, int>(i, zeroBin);
3160yield return new KeyValuePair<string, double>(name, Math.Sqrt(pair.Value) * normFactor);
3171results.Add(new KeyValuePair<string, object>(pair.Key, pair.Value));
Microsoft.ML.Predictor.Tests (4)
TestIniModels.cs (4)
536new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, "Features"),
537new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Label, "Label"));
575new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, "Features"),
576new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Label, "Label"));
Microsoft.ML.Recommender (5)
Microsoft.ML.ResultProcessor (5)
ResultProcessor.cs (5)
968return new KeyValuePair<int, Dictionary<string, float>>(-1, null);
974return new KeyValuePair<int, Dictionary<string, float>>(-1, null);
1000return new KeyValuePair<int, Dictionary<string, float>>(foldIdx, valuesDict);
1072srcFiles.Add(new KeyValuePair<string, string>(null, src));
1078srcFiles.Add(new KeyValuePair<string, string>(taggedPattern.Key, src));
Microsoft.ML.StandardTrainers (19)
Standard\ModelStatistics.cs (6)
175resultCollection.Add(new KeyValuePair<string, object>("Count of training examples", TrainingExampleCount));
176resultCollection.Add(new KeyValuePair<string, object>("Residual Deviance", Deviance));
177resultCollection.Add(new KeyValuePair<string, object>("Null Deviance", NullDeviance));
178resultCollection.Add(new KeyValuePair<string, object>("AIC", 2 * ParametersCount + Deviance));
543resultCollection.Add(new KeyValuePair<string, object>(
551resultCollection.Add(new KeyValuePair<string, object>(
Microsoft.ML.Sweeper (5)
Algorithms\NelderMead.cs (5)
166_pendingSweeps.Add(new KeyValuePair<ParameterSet, float[]>(FloatArrayAsParameterSet(nextPoint), nextPoint));
216_pendingSweeps.Add(new KeyValuePair<ParameterSet, float[]>(FloatArrayAsParameterSet(nextPoint), nextPoint));
370result.Add(new KeyValuePair<IRunResult, float[]>(run, sweep.Value));
410_pendingSweeps.Add(new KeyValuePair<ParameterSet, float[]>(newParameterSet, newPoint));
412_pendingSweepsNotSubmitted.Enqueue(new KeyValuePair<ParameterSet, float[]>(FloatArrayAsParameterSet(newPoint), newPoint));
Microsoft.ML.Sweeper.Tests (1)
Microsoft.ML.Tests (42)
Transformers\ValueMappingTests.cs (42)
140new KeyValuePair<string, string>("foo", "a"),
141new KeyValuePair<string, string>("bar", "b"),
142new KeyValuePair<string, string>("test", "c"),
143new KeyValuePair<string, string>("wahoo", "d")};
365new KeyValuePair<string,int>("foo", 1),
366new KeyValuePair<string,int>("bar", 2),
367new KeyValuePair<string,int>("test", 3),
368new KeyValuePair<string,int>("wahoo", 4)};
397new KeyValuePair<string, string>("foo", "t"),
398new KeyValuePair<string, string>("bar", "s"),
399new KeyValuePair<string, string>("test", "u"),
400new KeyValuePair<string, string>("wahoo", "v") };
431new KeyValuePair<string, uint>("foo", 51),
432new KeyValuePair<string, uint>("bar", 25),
433new KeyValuePair<string, uint>("test", 42),
434new KeyValuePair<string, uint>("wahoo", 61)};
472new KeyValuePair<string, ulong>("foo", 51),
473new KeyValuePair<string, ulong>("bar", Int32.MaxValue + 1L),
474new KeyValuePair<string, ulong>("test", 42),
475new KeyValuePair<string, ulong>("wahoo", 61)};
513new KeyValuePair<string, string>("foo", "foo1"),
514new KeyValuePair<string, string>("bar", "foo2"),
515new KeyValuePair<string, string>("test", "foo1"),
516new KeyValuePair<string, string>("wahoo", "foo3")};
553new KeyValuePair<string, string>("foo", "foo1"),
554new KeyValuePair<string, string>("bar", "foo2"),
555new KeyValuePair<string, string>("test", "foo1"),
556new KeyValuePair<string, string>("wahoo", "foo3")};
595new KeyValuePair<string, int>("foo", 1),
596new KeyValuePair<string, int>("bar", 2),
597new KeyValuePair<string, int>("test", 3),
598new KeyValuePair<string, int>("wahoo", 4)};
614new KeyValuePair<string,int[]>("foo", new int[] {2, 3, 4 }),
615new KeyValuePair<string,int[]>("bar", new int[] {100, 200 }),
616new KeyValuePair<string,int[]>("test", new int[] {400, 500, 600, 700 }),
634new KeyValuePair<ReadOnlyMemory<char>,int>("foo".AsMemory(), 1),
635new KeyValuePair<ReadOnlyMemory<char>,int>("bar".AsMemory(), 2),
636new KeyValuePair<ReadOnlyMemory<char>,int>("test".AsMemory(), 3),
637new KeyValuePair<ReadOnlyMemory<char>,int>("wahoo".AsMemory(), 4)
688new KeyValuePair<string,int>("foo", 2),
689new KeyValuePair<string,int>("bar", 43),
690new KeyValuePair<string,int>("test", 56)};
Microsoft.ML.TimeSeries (1)
Microsoft.ML.Tokenizers (2)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.ML.Transforms (18)
Microsoft.NET.Build.Tasks (2)
Microsoft.NET.Sdk.Publish.Tasks (2)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (1)
Microsoft.TemplateEngine.Core (3)
Microsoft.TemplateEngine.Edge (2)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (2)
Microsoft.TemplateEngine.Utils (1)
Microsoft.TemplateSearch.Common (1)
Microsoft.TestPlatform.CommunicationUtilities (2)
Microsoft.TestPlatform.CrossPlatEngine (2)
Microsoft.TestPlatform.Extensions.BlameDataCollector (5)
Microsoft.VisualStudio.TestPlatform.Common (2)
Microsoft.VisualStudio.TestPlatform.ObjectModel (77)
Mono.Cecil (1)
MSBuild (7)
OutOfProcTaskHostNode.cs (5)
1789s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(null, oldValue);
1795s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, oldValue);
1806s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, null);
1812s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, oldValue);
1838LogMessagePacketBase logMessage = new(new KeyValuePair<int, BuildEventArgs>(_currentConfiguration.NodeId, e));
NuGet.CommandLine.XPlat (1)
NuGet.Commands (5)
NuGet.Frameworks (74)
DefaultFrameworkMappings.cs (70)
16new KeyValuePair<string, string>("NETFramework", FrameworkConstants.FrameworkIdentifiers.Net),
17new KeyValuePair<string, string>(".NET", FrameworkConstants.FrameworkIdentifiers.Net),
20new KeyValuePair<string, string>("NETCore", FrameworkConstants.FrameworkIdentifiers.NetCore),
23new KeyValuePair<string, string>("NETPortable", FrameworkConstants.FrameworkIdentifiers.Portable),
26new KeyValuePair<string, string>("asp.net", FrameworkConstants.FrameworkIdentifiers.AspNet),
27new KeyValuePair<string, string>("asp.netcore", FrameworkConstants.FrameworkIdentifiers.AspNetCore),
30new KeyValuePair<string, string>("Xamarin.PlayStationThree", FrameworkConstants.FrameworkIdentifiers.XamarinPlayStation3),
31new KeyValuePair<string, string>("XamarinPlayStationThree", FrameworkConstants.FrameworkIdentifiers.XamarinPlayStation3),
32new KeyValuePair<string, string>("Xamarin.PlayStationFour", FrameworkConstants.FrameworkIdentifiers.XamarinPlayStation4),
33new KeyValuePair<string, string>("XamarinPlayStationFour", FrameworkConstants.FrameworkIdentifiers.XamarinPlayStation4),
34new KeyValuePair<string, string>("XamarinPlayStationVita", FrameworkConstants.FrameworkIdentifiers.XamarinPlayStationVita),
50new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.NetCoreApp, "netcoreapp"),
51new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.NetStandardApp, "netstandardapp"),
52new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.NetStandard, "netstandard"),
53new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.NetPlatform, "dotnet"),
54new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.Net, "net"),
55new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.NetMicro, "netmf"),
56new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.Silverlight, "sl"),
57new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.Portable, "portable"),
58new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.WindowsPhone, "wp"),
59new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.WindowsPhoneApp, "wpa"),
60new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.Windows, "win"),
61new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.AspNet, "aspnet"),
62new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.AspNetCore, "aspnetcore"),
63new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.Native, "native"),
64new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.MonoAndroid, "monoandroid"),
65new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.MonoTouch, "monotouch"),
66new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.MonoMac, "monomac"),
67new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.XamarinIOs, "xamarinios"),
68new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.XamarinMac, "xamarinmac"),
69new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.XamarinPlayStation3, "xamarinpsthree"),
70new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.XamarinPlayStation4, "xamarinpsfour"),
71new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.XamarinPlayStationVita, "xamarinpsvita"),
72new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.XamarinWatchOS, "xamarinwatchos"),
73new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.XamarinTVOS, "xamarintvos"),
74new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.XamarinXbox360, "xamarinxboxthreesixty"),
75new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.XamarinXboxOne, "xamarinxboxone"),
76new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.Dnx, "dnx"),
77new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.DnxCore, "dnxcore"),
78new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.NetCore, "netcore"),
79new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.WinRT, "winrt"), // legacy
80new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.UAP, "uap"),
81new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.Tizen, "tizen"),
82new KeyValuePair<string, string>(FrameworkConstants.FrameworkIdentifiers.NanoFramework, "netnano"),
119new KeyValuePair<NuGetFramework, NuGetFramework>(
124new KeyValuePair<NuGetFramework, NuGetFramework>(
129new KeyValuePair<NuGetFramework, NuGetFramework>(
134new KeyValuePair<NuGetFramework, NuGetFramework>(
139new KeyValuePair<NuGetFramework, NuGetFramework>(
144new KeyValuePair<NuGetFramework, NuGetFramework>(
149new KeyValuePair<NuGetFramework, NuGetFramework>(
154new KeyValuePair<NuGetFramework, NuGetFramework>(
159new KeyValuePair<NuGetFramework, NuGetFramework>(
164new KeyValuePair<NuGetFramework, NuGetFramework>(
169new KeyValuePair<NuGetFramework, NuGetFramework>(
174new KeyValuePair<NuGetFramework, NuGetFramework>(
179new KeyValuePair<NuGetFramework, NuGetFramework>(
184new KeyValuePair<NuGetFramework, NuGetFramework>(
189new KeyValuePair<NuGetFramework, NuGetFramework>(
194new KeyValuePair<NuGetFramework, NuGetFramework>(
199new KeyValuePair<NuGetFramework, NuGetFramework>(
205new KeyValuePair<NuGetFramework, NuGetFramework>(
210new KeyValuePair<NuGetFramework, NuGetFramework>(
215new KeyValuePair<NuGetFramework, NuGetFramework>(
220new KeyValuePair<NuGetFramework, NuGetFramework>(
259new KeyValuePair<string, string>(
264new KeyValuePair<string, string>(
269new KeyValuePair<string, string>(
623new KeyValuePair<NuGetFramework, NuGetFramework>(FrameworkConstants.CommonFrameworks.DotNet50, FrameworkConstants.CommonFrameworks.DotNet)
639new KeyValuePair<NuGetFramework, NuGetFramework>(FrameworkConstants.CommonFrameworks.DotNet, FrameworkConstants.CommonFrameworks.DotNet50)
NuGet.PackageManagement (1)
NuGet.Packaging (3)
NuGet.ProjectModel (1)
NuGet.Protocol (8)
LegacyFeed\MetadataResourceV2Feed.cs (3)
43var task = new KeyValuePair<string, Task<IEnumerable<NuGetVersion>>>(id, GetVersions(id, includePrerelease, includeUnlisted, sourceCacheContext, log, token));
54results.Add(new KeyValuePair<string, NuGetVersion?>(pair.Key, null));
61results.Add(new KeyValuePair<string, NuGetVersion?>(pair.Key, latestVersion));
LocalRepositories\LocalMetadataResource.cs (3)
47var task = new KeyValuePair<string, Task<IEnumerable<NuGetVersion>>>(id, GetVersions(id, includePrerelease, includeUnlisted, sourceCacheContext, log, token));
59results.Add(new KeyValuePair<string, NuGetVersion?>(pair.Key, null));
66results.Add(new KeyValuePair<string, NuGetVersion?>(pair.Key, latestVersion));
PresentationCore (5)
PresentationFramework (12)
System\Windows\Shell\WindowChromeWorker.cs (9)
62new HANDLE_MESSAGE(WM.SETTEXT, _HandleSetTextOrIcon),
63new HANDLE_MESSAGE(WM.SETICON, _HandleSetTextOrIcon),
64new HANDLE_MESSAGE(WM.NCACTIVATE, _HandleNCActivate),
65new HANDLE_MESSAGE(WM.NCCALCSIZE, _HandleNCCalcSize),
66new HANDLE_MESSAGE(WM.NCHITTEST, _HandleNCHitTest),
67new HANDLE_MESSAGE(WM.NCRBUTTONUP, _HandleNCRButtonUp),
68new HANDLE_MESSAGE(WM.SIZE, _HandleSize),
69new HANDLE_MESSAGE(WM.WINDOWPOSCHANGED, _HandleWindowPosChanged),
70new HANDLE_MESSAGE(WM.DWMCOMPOSITIONCHANGED, _HandleDwmCompositionChanged),
PresentationUI (1)
Publishers.AppHost (10)
DistributedApplicationBuilderExtensions.cs (10)
71new KeyValuePair<string, string>("self-signed", "Self-Signed Certificate"),
72new KeyValuePair<string, string>("lets-encrypt", "Let's Encrypt Certificate")
91options.Add(new KeyValuePair<string, string>($"{dependsOnInput.Value}-{i}", $"{dependsOnInput.Value}-{i}"));
194new KeyValuePair<string, string>("us-west-2", "US West (Oregon)"),
195new KeyValuePair<string, string>("us-east-1", "US East (N. Virginia)"),
196new KeyValuePair<string, string>("eu-central-1", "Europe (Frankfurt)"),
197new KeyValuePair<string, string>("ap-southeast-1", "Asia Pacific (Singapore)")
244new KeyValuePair<string, string>("rolling", "Rolling Deployment (Zero Downtime)"),
245new KeyValuePair<string, string>("blue-green", "Blue-Green Deployment (Full Replacement)"),
246new KeyValuePair<string, string>("canary", "Canary Deployment (Gradual Rollout)")
Roslyn.Diagnostics.Analyzers (14)
rzc (1)
ScenarioTests.Common.Tests (2)
Shared (1)
Shared.Tests (8)
JsonSchemaExporter\TestTypes.cs (4)
831Value: new([new("one", 1), new("two", 2), new("three", 3)]),
1131public IEnumerator<KeyValuePair<string, int>> GetEnumerator() => Enumerable.Repeat(new KeyValuePair<string, int>(nameof(BaseValue), BaseValue), 1).GetEnumerator();
Stress.ApiService (11)
Program.cs (8)
81metrics.IncrementCounter(1, new TagList([new KeyValuePair<string, object?>("add-tag", "1")]));
82metrics.IncrementCounter(2, new TagList([new KeyValuePair<string, object?>("add-tag", "")]));
108metrics.IncrementCounter(1, new TagList([new KeyValuePair<string, object?>($"add-tag-{i}", j.ToString(CultureInfo.InvariantCulture))]));
254new KeyValuePair<string, object?>("Message", message),
255new KeyValuePair<string, object?>("ActivityId", 123),
256new KeyValuePair<string, object?>("Level", (int) 10),
257new KeyValuePair<string, object?>("Tid", Environment.CurrentManagedThreadId),
258new KeyValuePair<string, object?>("Pid", Environment.ProcessId),
Stress.TelemetryService (1)
System.Collections (16)
System\Collections\Generic\SortedDictionary.cs (8)
112TreeSet<KeyValuePair<TKey, TValue>>.Node? node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue)!));
124TreeSet<KeyValuePair<TKey, TValue>>.Node? node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue)!));
127_set.Add(new KeyValuePair<TKey, TValue>(key, value));
131node.Item = new KeyValuePair<TKey, TValue>(node.Item.Key, value);
193_set.Add(new KeyValuePair<TKey, TValue>(key, value));
205return _set.Contains(new KeyValuePair<TKey, TValue>(key, default(TValue)!));
254return _set.Remove(new KeyValuePair<TKey, TValue>(key, default(TValue)!));
261TreeSet<KeyValuePair<TKey, TValue>>.Node? node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue)!));
System\Collections\Generic\SortedList.cs (5)
447KeyValuePair<TKey, TValue> entry = new KeyValuePair<TKey, TValue>(keys[i], values[i]);
480keyValuePairArray[i + index] = new KeyValuePair<TKey, TValue>(keys[i], values[i]);
495objects[i + index] = new KeyValuePair<TKey, TValue>(keys[i], values[i]);
823public KeyValuePair<TKey, TValue> Current => new KeyValuePair<TKey, TValue>(_key!, _value!);
840return new KeyValuePair<TKey, TValue>(_key!, _value!);
System.Collections.Concurrent (7)
System\Collections\Concurrent\PartitionerStatic.cs (7)
709= new KeyValuePair<long, TSource>(_sharedIndex.Value,
794= new KeyValuePair<long, TSource>(_sharedIndex.Value,
820= new KeyValuePair<long, TSource>(_sharedIndex.Value,
1222return new KeyValuePair<long, TSource>(_startIndex + _localOffset.Value,
1306return new KeyValuePair<long, TSource>(_startIndex + _localOffset.Value,
1529return (new KeyValuePair<long, TSource>(_offset, _list[_offset]));
1586return (new KeyValuePair<long, TSource>(_offset, _array[_offset]));
System.Collections.Immutable (15)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (3)
System.ComponentModel.TypeConverter (1)
System.Data.Common (2)
System.Diagnostics.DiagnosticSource (23)
System\Diagnostics\Activity.cs (8)
497KeyValuePair<string, object?> kvp = new KeyValuePair<string, object?>(key, value);
521KeyValuePair<string, object?> kvp = new KeyValuePair<string, object?>(key, value);
596exceptionTags.Add(new KeyValuePair<string, object?>(ExceptionMessageTag, exception.Message));
601exceptionTags.Add(new KeyValuePair<string, object?>(ExceptionStackTraceTag, exception.ToString()));
606exceptionTags.Add(new KeyValuePair<string, object?>(ExceptionTypeTag, exception.GetType().ToString()));
642KeyValuePair<string, string?> kvp = new KeyValuePair<string, string?>(key, value);
666KeyValuePair<string, string?> kvp = new KeyValuePair<string, string?>(key, value);
1908yield return new KeyValuePair<string, string?>(current.Value.Key, (string?)current.Value.Value);
System\Diagnostics\Metrics\RuntimeMetrics.cs (6)
139s_exceptions.Add(1, new KeyValuePair<string, object?>("error.type", e.Exception.GetType().Name));
166yield return new(collectionsFromThisGeneration - collectionsFromHigherGeneration, new KeyValuePair<string, object?>("gc.heap.generation", s_genNames[gen]));
181yield return new(processCpuUsage.UserTime.TotalSeconds, [new KeyValuePair<string, object?>("cpu.mode", "user")]);
182yield return new(processCpuUsage.PrivilegedTime.TotalSeconds, [new KeyValuePair<string, object?>("cpu.mode", "system")]);
191yield return new(gcInfo.GenerationInfo[i].SizeAfterBytes, new KeyValuePair<string, object?>("gc.heap.generation", s_genNames[i]));
201yield return new(gcInfo.GenerationInfo[i].FragmentationAfterBytes, new KeyValuePair<string, object?>("gc.heap.generation", s_genNames[i]));
System.IO.Packaging (1)
System.Linq.Expressions (4)
System.Linq.Parallel (1)
System.Net.Http (7)
System.Net.NameResolution (4)
System\Net\Dns.cs (4)
706asyncState = family == AddressFamily.Unspecified ? (object)ipAddress : new KeyValuePair<IPAddress, AddressFamily>(ipAddress, family);
758asyncState = family == AddressFamily.Unspecified ? (object)hostName : new KeyValuePair<string, AddressFamily>(hostName, family);
970((ICollection<KeyValuePair<object, Task>>)s_tasks).Remove(new KeyValuePair<object, Task>(key!, task!));
983((ICollection<KeyValuePair<object, Task>>)s_tasks).Remove(new KeyValuePair<object, Task>(key!, task));
System.Net.Security (2)
System.Net.WebSockets.Client (1)
System.Private.CoreLib (35)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterPayload.cs (21)
52yield return new KeyValuePair<string, object?>("Name", Name);
53yield return new KeyValuePair<string, object?>("DisplayName", DisplayName);
54yield return new KeyValuePair<string, object?>("DisplayUnits", DisplayUnits);
55yield return new KeyValuePair<string, object?>("Mean", Mean);
56yield return new KeyValuePair<string, object?>("StandardDeviation", StandardDeviation);
57yield return new KeyValuePair<string, object?>("Count", Count);
58yield return new KeyValuePair<string, object?>("Min", Min);
59yield return new KeyValuePair<string, object?>("Max", Max);
60yield return new KeyValuePair<string, object?>("IntervalSec", IntervalSec);
61yield return new KeyValuePair<string, object?>("Series", $"Interval={IntervalSec}");
62yield return new KeyValuePair<string, object?>("CounterType", "Mean");
63yield return new KeyValuePair<string, object?>("Metadata", Metadata);
107yield return new KeyValuePair<string, object?>("Name", Name);
108yield return new KeyValuePair<string, object?>("DisplayName", DisplayName);
109yield return new KeyValuePair<string, object?>("DisplayRateTimeScale", DisplayRateTimeScale);
110yield return new KeyValuePair<string, object?>("Increment", Increment);
111yield return new KeyValuePair<string, object?>("IntervalSec", IntervalSec);
112yield return new KeyValuePair<string, object?>("Series", $"Interval={IntervalSec}");
113yield return new KeyValuePair<string, object?>("CounterType", "Sum");
114yield return new KeyValuePair<string, object?>("Metadata", Metadata);
115yield return new KeyValuePair<string, object?>("DisplayUnits", DisplayUnits);
System.Private.Reflection.Execution (2)
System.Private.TypeLoader (2)
System.Private.Windows.Core.TestUtilities (1)
System.Reflection.Emit (3)
System.Reflection.Metadata (2)
System.ServiceModel.Primitives (11)
System\ServiceModel\Channels\MessageProperties.cs (10)
833array[index++] = new KeyValuePair<string, object>(ViaKey, _via);
838array[index++] = new KeyValuePair<string, object>(AllowOutputBatchingKey, _allowOutputBatching);
843array[index++] = new KeyValuePair<string, object>(SecurityKey, _security.CreateCopy());
848array[index++] = new KeyValuePair<string, object>(EncoderKey, _encoder);
862array[index++] = new KeyValuePair<string, object>(propertyName, CreateCopyOfPropertyValue(_properties[i].Value));
928pairs.Add(new KeyValuePair<string, object>(ViaKey, _via));
933pairs.Add(new KeyValuePair<string, object>(AllowOutputBatchingKey, _allowOutputBatching));
938pairs.Add(new KeyValuePair<string, object>(SecurityKey, _security));
943pairs.Add(new KeyValuePair<string, object>(EncoderKey, _encoder));
957pairs.Add(new KeyValuePair<string, object>(propertyName, _properties[i].Value));
System.Speech (6)
Internal\Synthesis\TextWriterEngine.cs (6)
315return ProcessPromptEngine("database", new KeyValuePair<string, string?>[] { new KeyValuePair<string, string?>("fname", fname), new KeyValuePair<string, string?>("delta", delta), new KeyValuePair<string, string?>("idset", idset) });
325return ProcessPromptEngine("id", new KeyValuePair<string, string?>[] { new KeyValuePair<string, string?>("id", id) });
339return ProcessPromptEngine("withtag", new KeyValuePair<string, string?>[] { new KeyValuePair<string, string?>("tag", tag) });
348return ProcessPromptEngine("rule", new KeyValuePair<string, string?>[] { new KeyValuePair<string, string?>("name", name) });
System.Text.Json (4)
System.Text.RegularExpressions (4)
System.Threading.Channels (6)
System.Threading.RateLimiting (1)
System.Threading.Tasks.Dataflow (24)
Blocks\BatchBlock.cs (12)
792var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
793var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
810var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
811var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
907var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
908var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
923var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
924var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
1006var consumedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value.Key, consumedValue!);
1007var consumedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, consumedMessage);
1051var consumedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value.Key, consumedValue!);
1052var consumedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, consumedMessage);
Internal\QueuedMap.cs (7)
81_storage[newIndex] = new KeyValuePair<int, T>(TERMINATOR_INDEX, item);
87_storage.Add(new KeyValuePair<int, T>(TERMINATOR_INDEX, item));
100_storage[_tailIndex] = new KeyValuePair<int, T>(newIndex, _storage[_tailIndex].Value);
127_storage[_headIndex] = new KeyValuePair<int, T>(_freeIndex, default(T)!);
146_storage[index] = new KeyValuePair<int, T>(_storage[index].Key, item);
182_queue.Replace(indexOfKeyInQueue, new KeyValuePair<TKey, TValue>(key, value));
187indexOfKeyInQueue = _queue.Enqueue(new KeyValuePair<TKey, TValue>(key, value));
System.Xaml (5)
UnitTests.Common (1)
8975 references to KeyValuePair
aspire (33)
Aspire.Acquisition.Tests (1)
Aspire.Azure.AI.Inference.Tests (1)
Aspire.Azure.AI.OpenAI.Tests (1)
Aspire.Azure.Data.Tables.Tests (1)
Aspire.Azure.Messaging.EventHubs (4)
Aspire.Azure.Messaging.ServiceBus (4)
Aspire.Azure.Messaging.ServiceBus.Tests (3)
Aspire.Azure.Messaging.WebPubSub (4)
Aspire.Azure.Messaging.WebPubSub.Tests (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
Aspire.Azure.Npgsql.Tests (1)
Aspire.Azure.Security.KeyVault.Tests (3)
Aspire.Azure.Storage.Blobs.Tests (1)
Aspire.Azure.Storage.Queues (4)
Aspire.Azure.Storage.Queues.Tests (1)
Aspire.Cli.EndToEnd.Tests (2)
Aspire.Cli.Tests (28)
Commands\PublishCommandPromptingIntegrationTests.cs (3)
122var options = new List<KeyValuePair<string, string>>
1017public void AddPrompt(string promptId, string label, string inputType, string message, bool isRequired, IReadOnlyList<KeyValuePair<string, string>>? options = null, string? defaultValue = null, IReadOnlyList<string>? validationErrors = null, long? maxFileSize = null, string? fileFilter = null)
1131internal sealed record PromptInputData(string Name, string Label, string InputType, bool IsRequired, IReadOnlyList<KeyValuePair<string, string>>? Options = null, string? Value = null, IReadOnlyList<string>? ValidationErrors = null, long? MaxFileSize = null, string? FileFilter = null);
tests\Shared\Logging\LogValuesAssert.cs (9)
19IEnumerable<KeyValuePair<string, object>> actualValues)
31IEnumerable<KeyValuePair<string, object>> expectedValues,
32IEnumerable<KeyValuePair<string, object>> actualValues)
39foreach (var expectedPair in expectedValues)
52private static string GetString(IEnumerable<KeyValuePair<string, object>> logValues)
57private sealed class LogValueComparer : IEqualityComparer<KeyValuePair<string, object>>
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
64public int GetHashCode(KeyValuePair<string, object> obj)
Aspire.Confluent.Kafka (4)
Aspire.Confluent.Kafka.Tests (2)
Aspire.Dashboard (94)
Otlp\Model\OtlpHelpers.cs (22)
170public static KeyValuePair<string, string>[] ToKeyValuePairs(this RepeatedField<KeyValue> attributes, OtlpContext context)
174return Array.Empty<KeyValuePair<string, string>>();
177var values = new KeyValuePair<string, string>[Math.Min(attributes.Count, context.Options.MaxAttributeCount)];
190public static KeyValuePair<string, string>[] ToKeyValuePairs(this RepeatedField<KeyValue> attributes, OtlpContext context, Func<KeyValue, bool> filter)
194return Array.Empty<KeyValuePair<string, string>>();
198List<KeyValuePair<string, string>>? values = null;
208values ??= new List<KeyValuePair<string, string>>(readLimit);
216var existingAttribute = values[existingIndex];
234static int GetIndex(List<KeyValuePair<string, string>> values, string name)
247public static void CopyKeyValuePairs(RepeatedField<KeyValue> attributes, KeyValuePair<string, string>[] parentAttributes, OtlpContext context, out int copyCount, [NotNull] ref KeyValuePair<string, string>[]? copiedAttributes)
261copiedAttributes = new KeyValuePair<string, string>[copyCount];
275private static void CopyKeyValues(RepeatedField<KeyValue> attributes, KeyValuePair<string, string>[] copiedAttributes, int index, OtlpContext context, out int copyCount)
293var existingAttribute = copiedAttributes[existingIndex];
311public static string? GetValue(this KeyValuePair<string, string>[] values, string name)
322public static string? GetValueWithFallback(this KeyValuePair<string, string>[] values, params ReadOnlySpan<string> names)
336public static int? GetValueAsInteger(this KeyValuePair<string, string>[] values, string name)
348public static int GetIndex(this KeyValuePair<string, string>[] values, string name)
360public static string? GetPeerAddress(this KeyValuePair<string, string>[] values)
391public static bool HasKey(this KeyValuePair<string, string>[] values, string name)
403public static string ConcatProperties(this KeyValuePair<string, string>[] properties)
407foreach (var kv in properties)
Otlp\Model\OtlpInstrument.cs (13)
41public Dictionary<ReadOnlyMemory<KeyValuePair<string, string>>, DimensionScope> Dimensions { get; } = new(ScopeAttributesComparer.Instance);
45public DimensionScope FindScope(RepeatedField<KeyValue> attributes, ref KeyValuePair<string, string>[]? tempAttributes)
78private DimensionScope CreateDimensionScope(Memory<KeyValuePair<string, string>> comparableAttributes)
133foreach (var item in instrument.KnownAttributeValues)
137foreach (var item in instrument.Dimensions)
146private sealed class ScopeAttributesComparer : IEqualityComparer<ReadOnlyMemory<KeyValuePair<string, string>>>
150public bool Equals(ReadOnlyMemory<KeyValuePair<string, string>> x, ReadOnlyMemory<KeyValuePair<string, string>> y)
155public int GetHashCode([DisallowNull] ReadOnlyMemory<KeyValuePair<string, string>> obj)
158foreach (KeyValuePair<string, string> pair in obj.Span)
167private sealed class KeyValuePairComparer : IComparer<KeyValuePair<string, string>>
171public int Compare(KeyValuePair<string, string> x, KeyValuePair<string, string> y)
Otlp\Model\OtlpResource.cs (8)
50private readonly ConcurrentDictionary<KeyValuePair<string, string>[], OtlpResourceView> _resourceViews = new(ResourceViewKeyComparer.Instance);
67KeyValuePair<string, string>[]? tempAttributes = null;
150private void AddMetrics(OtlpInstrument instrument, Metric metric, AddContext context, ref KeyValuePair<string, string>[]? tempAttributes)
273foreach (var instrument in _instruments)
328private sealed class ResourceViewKeyComparer : IEqualityComparer<KeyValuePair<string, string>[]>
332public bool Equals(KeyValuePair<string, string>[]? x, KeyValuePair<string, string>[]? y)
362public int GetHashCode([DisallowNull] KeyValuePair<string, string>[] obj)
Aspire.Dashboard.Components.Tests (28)
tests\Shared\Logging\LogValuesAssert.cs (9)
19IEnumerable<KeyValuePair<string, object>> actualValues)
31IEnumerable<KeyValuePair<string, object>> expectedValues,
32IEnumerable<KeyValuePair<string, object>> actualValues)
39foreach (var expectedPair in expectedValues)
52private static string GetString(IEnumerable<KeyValuePair<string, object>> logValues)
57private sealed class LogValueComparer : IEqualityComparer<KeyValuePair<string, object>>
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
64public int GetHashCode(KeyValuePair<string, object> obj)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (15)
47public static OtlpScope CreateOtlpScope(OtlpContext context, string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
53public static InstrumentationScope CreateScope(string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
59foreach (var attribute in attributes)
93public static Metric CreateSumMetric(string metricName, DateTime startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null, int? value = null)
112private static NumberDataPoint CreateNumberPoint(DateTime startTime, int value, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null)
122foreach (var attribute in attributes)
138public static Span.Types.Event CreateSpanEvent(string name, int startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null)
147foreach (var attribute in attributes)
156public static Span CreateSpan(string traceId, string spanId, DateTime startTime, DateTime endTime, string? parentSpanId = null, List<Span.Types.Event>? events = null, List<Span.Types.Link>? links = null, IEnumerable<KeyValuePair<string, string>>? attributes = null, Span.Types.SpanKind? kind = null, Status? status = null)
179foreach (var attribute in attributes)
188public static LogRecord CreateLogRecord(DateTime? time = null, DateTime? observedTime = null, string? message = null, SeverityNumber? severity = null, IEnumerable<KeyValuePair<string, string>>? attributes = null,
204foreach (var attribute in attributes)
212public static Resource CreateResource(string? name = null, string? instanceId = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
225foreach (var attribute in attributes)
318KeyValuePair<string, string>[]? attributes = null, OtlpSpanStatusCode? statusCode = null, string? statusMessage = null, OtlpSpanKind kind = OtlpSpanKind.Unspecified,
Aspire.Dashboard.Tests (80)
Model\GenAIVisualizerDialogViewModelTests.cs (22)
73var attributes = new KeyValuePair<string, string>[]
520var attributes = new KeyValuePair<string, string>[]
636var attributes = new KeyValuePair<string, string>[]
716var attributes = new KeyValuePair<string, string>[]
803var attributes = new KeyValuePair<string, string>[]
848var attributes = new KeyValuePair<string, string>[]
924var attributes = new KeyValuePair<string, string>[]
1000var attributes = new KeyValuePair<string, string>[]
1123var attributes = new KeyValuePair<string, string>[]
1194var attributes = new KeyValuePair<string, string>[]
1237var attributes = new KeyValuePair<string, string>[]
1320var attributes = new KeyValuePair<string, string>[]
1412var attributes = new KeyValuePair<string, string>[]
1485var attributes = new KeyValuePair<string, string>[]
1593var attributes = new KeyValuePair<string, string>[]
1817attributes: new KeyValuePair<string, string>[]
1828attributes: new KeyValuePair<string, string>[]
1970attributes: new KeyValuePair<string, string>[]
2076var attributes = new KeyValuePair<string, string>[]
2161var attributes = new KeyValuePair<string, string>[]
2233var attributes = new KeyValuePair<string, string>[]
2302var attributes = new KeyValuePair<string, string>[]
TelemetryRepositoryTests\MetricsTests.cs (13)
109var metricAttributes = new List<KeyValuePair<string, string>>();
110var meterAttributes = new List<KeyValuePair<string, string>>();
223var metricAttributes = new List<KeyValuePair<string, string>>();
224var meterAttributes = new List<KeyValuePair<string, string>>
403AssertDimensionValues(instrument.Dimensions, Array.Empty<KeyValuePair<string, string>>(), valueCount: 1);
404AssertDimensionValues(instrument.Dimensions, new KeyValuePair<string, string>[] { KeyValuePair.Create("key1", "value1") }, valueCount: 1);
405AssertDimensionValues(instrument.Dimensions, new KeyValuePair<string, string>[] { KeyValuePair.Create("key1", "value2") }, valueCount: 1);
406AssertDimensionValues(instrument.Dimensions, new KeyValuePair<string, string>[] { KeyValuePair.Create("key1", "value1"), KeyValuePair.Create("key2", "value1") }, valueCount: 1);
409private static Exemplar CreateExemplar(DateTime startTime, double value, IEnumerable<KeyValuePair<string, string>>? attributes = null)
421foreach (var attribute in attributes)
619var knownValues = Assert.Single(instrument.KnownAttributeValues);
1314private static void AssertDimensionValues(Dictionary<ReadOnlyMemory<KeyValuePair<string, string>>, DimensionScope> dimensions, ReadOnlyMemory<KeyValuePair<string, string>> key, int valueCount)
tests\Shared\Logging\LogValuesAssert.cs (9)
19IEnumerable<KeyValuePair<string, object>> actualValues)
31IEnumerable<KeyValuePair<string, object>> expectedValues,
32IEnumerable<KeyValuePair<string, object>> actualValues)
39foreach (var expectedPair in expectedValues)
52private static string GetString(IEnumerable<KeyValuePair<string, object>> logValues)
57private sealed class LogValueComparer : IEqualityComparer<KeyValuePair<string, object>>
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
64public int GetHashCode(KeyValuePair<string, object> obj)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (15)
47public static OtlpScope CreateOtlpScope(OtlpContext context, string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
53public static InstrumentationScope CreateScope(string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
59foreach (var attribute in attributes)
93public static Metric CreateSumMetric(string metricName, DateTime startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null, int? value = null)
112private static NumberDataPoint CreateNumberPoint(DateTime startTime, int value, IEnumerable<KeyValuePair<string, string>>? attributes = null, IEnumerable<Exemplar>? exemplars = null)
122foreach (var attribute in attributes)
138public static Span.Types.Event CreateSpanEvent(string name, int startTime, IEnumerable<KeyValuePair<string, string>>? attributes = null)
147foreach (var attribute in attributes)
156public static Span CreateSpan(string traceId, string spanId, DateTime startTime, DateTime endTime, string? parentSpanId = null, List<Span.Types.Event>? events = null, List<Span.Types.Link>? links = null, IEnumerable<KeyValuePair<string, string>>? attributes = null, Span.Types.SpanKind? kind = null, Status? status = null)
179foreach (var attribute in attributes)
188public static LogRecord CreateLogRecord(DateTime? time = null, DateTime? observedTime = null, string? message = null, SeverityNumber? severity = null, IEnumerable<KeyValuePair<string, string>>? attributes = null,
204foreach (var attribute in attributes)
212public static Resource CreateResource(string? name = null, string? instanceId = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
225foreach (var attribute in attributes)
318KeyValuePair<string, string>[]? attributes = null, OtlpSpanStatusCode? statusCode = null, string? statusMessage = null, OtlpSpanKind kind = OtlpSpanKind.Unspecified,
Aspire.EndToEnd.Tests (2)
Aspire.Hosting (54)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Azure (29)
Provisioning\Internal\BaseProvisioningContextProvider.cs (8)
249protected async Task<(List<KeyValuePair<string, string>>? tenantOptions, bool fetchSucceeded)> TryGetTenantsAsync(CancellationToken cancellationToken)
251List<KeyValuePair<string, string>>? tenantOptions = null;
298protected async Task<(List<KeyValuePair<string, string>>? subscriptionOptions, bool fetchSucceeded)> TryGetSubscriptionsAsync(string? tenantId, CancellationToken cancellationToken)
300List<KeyValuePair<string, string>>? subscriptionOptions = null;
326protected async Task<(List<KeyValuePair<string, string>>? subscriptionOptions, bool fetchSucceeded)> TryGetSubscriptionsAsync(CancellationToken cancellationToken)
364protected async Task<(List<KeyValuePair<string, string>> locationOptions, bool fetchSucceeded)> TryGetLocationsAsync(string subscriptionId, CancellationToken cancellationToken)
366List<KeyValuePair<string, string>>? locationOptions = null;
404private static List<KeyValuePair<string, string>> GetStaticAzureLocations()
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.AppService (1)
Aspire.Hosting.Azure.CognitiveServices (3)
Aspire.Hosting.Azure.CosmosDB (9)
Aspire.Hosting.Azure.EventHubs (5)
Aspire.Hosting.Azure.KeyVault (1)
Aspire.Hosting.Azure.Kusto (3)
Aspire.Hosting.Azure.Network (1)
Aspire.Hosting.Azure.PostgreSQL (6)
Aspire.Hosting.Azure.Redis (2)
Aspire.Hosting.Azure.Search (1)
Aspire.Hosting.Azure.ServiceBus (8)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Sql (6)
Aspire.Hosting.Azure.Storage (10)
Aspire.Hosting.Azure.Tests (5)
Aspire.Hosting.Azure.WebPubSub (2)
Aspire.Hosting.Browsers (1)
Aspire.Hosting.Browsers.Tests (1)
Aspire.Hosting.CodeGeneration.Go.Tests (1)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
Aspire.Hosting.CodeGeneration.Python (4)
Aspire.Hosting.CodeGeneration.Python.Tests (1)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.Docker (4)
Aspire.Hosting.EntityFrameworkCore (3)
Aspire.Hosting.EntityFrameworkCore.Tests (2)
Aspire.Hosting.Foundry (11)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.Integration.Analyzers (8)
Aspire.Hosting.Kafka (1)
Aspire.Hosting.Kubernetes (4)
Aspire.Hosting.Maui (1)
Aspire.Hosting.Milvus (2)
Aspire.Hosting.MongoDB (2)
Aspire.Hosting.MySql (2)
Aspire.Hosting.Nats (1)
Aspire.Hosting.OpenAI (2)
Aspire.Hosting.Oracle (2)
Aspire.Hosting.PostgreSQL (2)
Aspire.Hosting.PostgreSQL.Tests (1)
Aspire.Hosting.Qdrant (1)
Aspire.Hosting.RabbitMQ (1)
Aspire.Hosting.Radius (1)
Aspire.Hosting.Radius.Tests (2)
Aspire.Hosting.Redis (1)
Aspire.Hosting.RemoteHost (4)
Aspire.Hosting.RemoteHost.Tests (2)
Aspire.Hosting.Rust (3)
Aspire.Hosting.Seq (1)
Aspire.Hosting.SqlServer (2)
Aspire.Hosting.Testing (8)
Aspire.Hosting.Testing.Tests (10)
tests\Shared\Logging\LogValuesAssert.cs (9)
19IEnumerable<KeyValuePair<string, object>> actualValues)
31IEnumerable<KeyValuePair<string, object>> expectedValues,
32IEnumerable<KeyValuePair<string, object>> actualValues)
39foreach (var expectedPair in expectedValues)
52private static string GetString(IEnumerable<KeyValuePair<string, object>> logValues)
57private sealed class LogValueComparer : IEqualityComparer<KeyValuePair<string, object>>
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
64public int GetHashCode(KeyValuePair<string, object> obj)
Aspire.Hosting.Tests (21)
Aspire.Hosting.TestUtilities (10)
tests\Shared\Logging\LogValuesAssert.cs (9)
19IEnumerable<KeyValuePair<string, object>> actualValues)
31IEnumerable<KeyValuePair<string, object>> expectedValues,
32IEnumerable<KeyValuePair<string, object>> actualValues)
39foreach (var expectedPair in expectedValues)
52private static string GetString(IEnumerable<KeyValuePair<string, object>> logValues)
57private sealed class LogValueComparer : IEqualityComparer<KeyValuePair<string, object>>
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
64public int GetHashCode(KeyValuePair<string, object> obj)
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Yarp (2)
Aspire.Hosting.Yarp.Tests (2)
Aspire.Microsoft.Azure.Cosmos (4)
Aspire.Microsoft.Azure.Cosmos.Tests (1)
Aspire.Microsoft.Data.SqlClient.Tests (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (4)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (4)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (1)
Aspire.Milvus.Client.Tests (1)
Aspire.MongoDB.EntityFrameworkCore.Tests (1)
Aspire.MySqlConnector.Tests (1)
Aspire.NATS.Net.Tests (1)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
Aspire.Npgsql.Tests (1)
Aspire.OpenAI.Tests (1)
Aspire.Oracle.EntityFrameworkCore.Tests (2)
Aspire.Playground.Tests (14)
tests\Shared\Logging\LogValuesAssert.cs (9)
19IEnumerable<KeyValuePair<string, object>> actualValues)
31IEnumerable<KeyValuePair<string, object>> expectedValues,
32IEnumerable<KeyValuePair<string, object>> actualValues)
39foreach (var expectedPair in expectedValues)
52private static string GetString(IEnumerable<KeyValuePair<string, object>> logValues)
57private sealed class LogValueComparer : IEqualityComparer<KeyValuePair<string, object>>
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
64public int GetHashCode(KeyValuePair<string, object> obj)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
Aspire.RabbitMQ.Client (3)
Aspire.RabbitMQ.Client.Tests (2)
Aspire.RabbitMQ.Client.v6.Tests (2)
Aspire.StackExchange.Redis (6)
Aspire.StackExchange.Redis.Tests (4)
Aspire.Templates.Tests (2)
Aspire.TestUtilities (4)
Binding.Http.IntegrationTests (1)
BlazorHosted.ClientServiceDefaults (4)
BlazorStandalone.ClientServiceDefaults (4)
Client.ClientBase.IntegrationTests (1)
CodeStyleConfigFileGenerator (1)
ConfigurationSchemaGenerator (2)
crossgen2 (8)
csc (3)
dotnet (38)
dotnet-aot (8)
dotnet-format (1)
dotnet-openapi (2)
dotnet-svcutil-lib (107)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (7)
951public BodyWriterMessage(MessageHeaders headers, KeyValuePair<string, object>[] properties, BodyWriter bodyWriter)
1021KeyValuePair<string, object>[] properties = new KeyValuePair<string, object>[Properties.Count];
1022((ICollection<KeyValuePair<string, object>>)Properties).CopyTo(properties, 0);
1708KeyValuePair<string, object>[] properties = new KeyValuePair<string, object>[Properties.Count];
1709((ICollection<KeyValuePair<string, object>>)Properties).CopyTo(properties, 0);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageBuffer.cs (8)
53private KeyValuePair<string, object>[] _properties;
67_properties = new KeyValuePair<string, object>[message.Properties.Count];
68((ICollection<KeyValuePair<string, object>>)message.Properties).CopyTo(_properties, 0);
150private KeyValuePair<string, object>[] _properties;
157KeyValuePair<string, object>[] properties, bool[] understoodHeaders, bool understoodHeadersModified)
243private KeyValuePair<string, object>[] _properties;
249KeyValuePair<string, object>[] properties, BodyWriter bodyWriter)
300protected KeyValuePair<string, object>[] Properties
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (16)
44internal MessageProperties(KeyValuePair<string, object>[] array)
416internal void CopyProperties(KeyValuePair<string, object>[] array)
425KeyValuePair<string, object> property = array[i];
720void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int index)
761void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> pair)
771bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> pair)
793return ((IEnumerable<KeyValuePair<string, object>>)this).GetEnumerator();
796IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator()
801List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(_propertyCount);
833bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> pair)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (9)
65foreach (KeyValuePair<OperationDescription, IEnumerable<XmlElement>> entry in operationBindingAssertions)
71foreach (KeyValuePair<MessageDescription, IEnumerable<XmlElement>> entry in messageBindingAssertions)
77foreach (KeyValuePair<FaultDescription, IEnumerable<XmlElement>> entry in faultBindingAssertions)
245KeyValuePair<K, IEnumerator<V>>[] digits = InitializeCounter<K, V>(sets, counterValue);
253private static KeyValuePair<K, IEnumerator<V>>[] InitializeCounter<K, V>(Dictionary<K, IEnumerable<V>> sets, Dictionary<K, V> counterValue)
255KeyValuePair<K, IEnumerator<V>>[] digits = new KeyValuePair<K, IEnumerator<V>>[sets.Count];
259foreach (KeyValuePair<K, IEnumerable<V>> kvp in sets)
274private static bool IncrementCounter<K, V>(KeyValuePair<K, IEnumerator<V>>[] digits, Dictionary<K, IEnumerable<V>> sets, Dictionary<K, V> counterValue)
dotnet-svcutil-lib.Tests (1)
dotnet-user-jwts (4)
dotnet-user-secrets (5)
DotNetWatchTasks (1)
EventSourceGenerator (2)
GenerateDocumentationAndConfigFiles (163)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (8)
35internal sealed class SmallDictionary<K, V> : IEnumerable<KeyValuePair<K, V>>
55foreach (var kv in other)
763public KeyValuePair<K, V> Current => new KeyValuePair<K, V>(_current!.Key, _current!.Value);
803public class EnumerableImpl : IEnumerator<KeyValuePair<K, V>>
812KeyValuePair<K, V> IEnumerator<KeyValuePair<K, V>>.Current => _e.Current;
831IEnumerator<KeyValuePair<K, V>> IEnumerable<KeyValuePair<K, V>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (4)
35public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items)
39public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items)
43public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items)
56public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items, IEqualityComparer<TKey>? keyComparer)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (18)
106bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
157public ImmutableSegmentedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
183public bool Contains(KeyValuePair<TKey, TValue> pair)
232public ImmutableSegmentedDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
238foreach (var item in items)
318IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
324IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
332IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
341void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
342=> ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex);
356void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
359void ICollection<KeyValuePair<TKey, TValue>>.Clear()
362bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
374private static bool TryCastToImmutableSegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> pairs, out ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (12)
49bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => ICollectionCalls<KeyValuePair<TKey, TValue>>.IsReadOnly(ref _builder);
78public void Add(KeyValuePair<TKey, TValue> item)
81public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
87public bool Contains(KeyValuePair<TKey, TValue> item)
108public bool Remove(KeyValuePair<TKey, TValue> item)
125void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
126=> ICollectionCalls<KeyValuePair<TKey, TValue>>.CopyTo(ref _builder, array, arrayIndex);
128IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
129=> IEnumerableCalls<KeyValuePair<TKey, TValue>>.GetEnumerator(ref _builder);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (12)
70readonly bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
118public void Add(KeyValuePair<TKey, TValue> item)
121public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
126foreach (var pair in items)
146public readonly bool Contains(KeyValuePair<TKey, TValue> item)
185public bool Remove(KeyValuePair<TKey, TValue> item)
211foreach (var pair in this)
236readonly void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
237=> ((ICollection<KeyValuePair<TKey, TValue>>)ReadOnlyDictionary).CopyTo(array, arrayIndex);
239IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (29)
46private static IEnumerator<KeyValuePair<TKey, TValue>>? s_emptyEnumerator;
134public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)
139public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
140: this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
150private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> enumerable)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
195if (enumerable is KeyValuePair<TKey, TValue>[] array)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>))
202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
208foreach (var pair in enumerable)
216foreach (var pair in span)
270void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
273bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
284bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
358private void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
389IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
393private static IEnumerator<KeyValuePair<TKey, TValue>> GetEmptyEnumerator()
870bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
872void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
902if (array is KeyValuePair<TKey, TValue>[] pairs)
945=> ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1172public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1177private KeyValuePair<TKey, TValue> _current;
1217public readonly KeyValuePair<TKey, TValue> Current => _current;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (11)
37public static readonly IEnumerable<KeyValuePair<byte, string>> ByteSpecialValues = [];
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
GetDocument.Insider (3)
ILAssembler (3)
ilc (2)
ILCompiler.Compiler (65)
ILCompiler.MetadataTransform (8)
ILCompiler.ReadyToRun (53)
ILCompiler.RyuJit (14)
illink (14)
ILLink.RoslynAnalyzer (13)
ILLink.Tasks (2)
Infrastructure.Tests (2)
installer.tasks (1)
Microsoft.Analyzers.Extra (3)
Microsoft.Analyzers.Local (6)
Microsoft.Analyzers.Local.Tests (3)
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.App.Analyzers (3)
Microsoft.AspNetCore.App.CodeFixes (2)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.Cookies (4)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Twitter (5)
Microsoft.AspNetCore.Authorization (6)
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (6)
15return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1) }, includeNullValues, prefix);
20return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1), Create(key2, value2) }, includeNullValues, prefix);
25return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1), Create(key2, value2), Create(key3, value3) }, includeNullValues, prefix);
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
44var kvp = values[i];
114private static KeyValuePair<string, object?> Create(string key, object? value) => new KeyValuePair<string, object?>(key, value);
Microsoft.AspNetCore.Components (47)
src\aspnetcore\src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (21)
47internal KeyValuePair<string, object?>[] _arrayStorage;
108_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
167public RouteValueDictionary(IEnumerable<KeyValuePair<string, object?>>? values)
175_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
252private void Initialize(IEnumerable<KeyValuePair<string, object?>> keyValueEnumerable)
254_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
256foreach (var kvp in keyValueEnumerable)
315bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => false;
358void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> item)
409bool ICollection<KeyValuePair<string, object?>>.Contains(KeyValuePair<string, object?> item)
441void ICollection<KeyValuePair<string, object?>>.CopyTo(
442KeyValuePair<string, object?>[] array,
470IEnumerator<KeyValuePair<string, object?>> IEnumerable<KeyValuePair<string, object?>>.GetEnumerator()
482bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item)
695var array = new KeyValuePair<string, object?>[capacity];
788public struct Enumerator : IEnumerator<KeyValuePair<string, object?>>
808public KeyValuePair<string, object?> Current { get; private set; }
Microsoft.AspNetCore.Components.AI.SourceGenerators (1)
Microsoft.AspNetCore.Components.Analyzers (2)
Microsoft.AspNetCore.Components.Endpoints (48)
TempData\TempData.cs (19)
101foreach (var kvp in data)
119int ICollection<KeyValuePair<string, object?>>.Count => Data.Count;
120bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => ((ICollection<KeyValuePair<string, object?>>)Data).IsReadOnly;
137void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> item)
142bool ICollection<KeyValuePair<string, object?>>.Contains(KeyValuePair<string, object?> item)
147void ICollection<KeyValuePair<string, object?>>.CopyTo(KeyValuePair<string, object?>[] array, int arrayIndex)
149((ICollection<KeyValuePair<string, object?>>)Data).CopyTo(array, arrayIndex);
152bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item)
161IEnumerator<KeyValuePair<string, object?>> IEnumerable<KeyValuePair<string, object?>>.GetEnumerator()
171sealed class TempDataEnumerator : IEnumerator<KeyValuePair<string, object?>>
174private readonly IEnumerator<KeyValuePair<string, object?>> _innerEnumerator;
183public KeyValuePair<string, object?> Current
187var kvp = _innerEnumerator.Current;
Microsoft.AspNetCore.Components.Forms (3)
Microsoft.AspNetCore.Components.Media (2)
Microsoft.AspNetCore.Components.QuickGrid (2)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Components.Server (9)
Microsoft.AspNetCore.Components.Testing (5)
Microsoft.AspNetCore.Components.Web (5)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.Connections.Abstractions (16)
ConnectionItems.cs (13)
84void ICollection<KeyValuePair<object, object?>>.Add(KeyValuePair<object, object?> item)
89void ICollection<KeyValuePair<object, object?>>.Clear()
94bool ICollection<KeyValuePair<object, object?>>.Contains(KeyValuePair<object, object?> item)
99void ICollection<KeyValuePair<object, object?>>.CopyTo(KeyValuePair<object, object?>[] array, int arrayIndex)
104int ICollection<KeyValuePair<object, object?>>.Count
109bool ICollection<KeyValuePair<object, object?>>.IsReadOnly
114bool ICollection<KeyValuePair<object, object?>>.Remove(KeyValuePair<object, object?> item)
123IEnumerator<KeyValuePair<object, object?>> IEnumerable<KeyValuePair<object, object?>>.GetEnumerator()
Microsoft.AspNetCore.CookiePolicy (3)
Microsoft.AspNetCore.Cors (6)
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (6)
15return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1) }, includeNullValues, prefix);
20return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1), Create(key2, value2) }, includeNullValues, prefix);
25return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1), Create(key2, value2), Create(key3, value3) }, includeNullValues, prefix);
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
44var kvp = values[i];
114private static KeyValuePair<string, object?> Create(string key, object? value) => new KeyValuePair<string, object?>(key, value);
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.Diagnostics (16)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (8)
Microsoft.AspNetCore.Diagnostics.Middleware (20)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (10)
117public static void BindCore(IConfiguration configuration, ref global::System.Collections.Generic.KeyValuePair<string, object> instance, bool defaultValueIfNotFound, BinderOptions? binderOptions)
119ValidateConfigurationKeys(typeof(global::System.Collections.Generic.KeyValuePair<string, object>), s_configKeys_KeyValuePairStringObject, configuration, binderOptions);
122public static void BindCore(IConfiguration configuration, ref global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object>> instance, bool defaultValueIfNotFound, BinderOptions? binderOptions)
124if (instance is not ICollection<global::System.Collections.Generic.KeyValuePair<string, object>> temp)
135var value = InitializeKeyValuePairStringObject(section, binderOptions);
231public static global::System.Collections.Generic.KeyValuePair<string, object> InitializeKeyValuePairStringObject(IConfiguration configuration, BinderOptions? binderOptions)
292global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object>> attributes = default(global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object>>)!;
296attributes = (global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object>>)new List<global::System.Collections.Generic.KeyValuePair<string, object>>();
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (4)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (19)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (12)
27public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => EmptyReadOnlyList<KeyValuePair<TKey, TValue>>.Instance.GetEnumerator();
32bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
53void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
60void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
61bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) => false;
62bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => false;
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Hosting (29)
Internal\HostingMetrics.cs (1)
45public void RequestEnd(string protocol, string scheme, string method, string? route, int statusCode, bool unhandledRequest, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp, bool disableHttpRequestDurationMetric)
Microsoft.AspNetCore.Hosting.Abstractions (1)
Microsoft.AspNetCore.Http (97)
HeaderDictionary.cs (11)
23private static readonly IEnumerator<KeyValuePair<string, StringValues>> EmptyIEnumeratorType = default(Enumerator);
194public void Add(KeyValuePair<string, StringValues> item)
232public bool Contains(KeyValuePair<string, StringValues> item)
262public void CopyTo(KeyValuePair<string, StringValues>[] array, int arrayIndex)
269foreach (var item in Store)
281public bool Remove(KeyValuePair<string, StringValues> item)
345IEnumerator<KeyValuePair<string, StringValues>> IEnumerable<KeyValuePair<string, StringValues>>.GetEnumerator()
396public struct Enumerator : IEnumerator<KeyValuePair<string, StringValues>>
425public KeyValuePair<string, StringValues> Current
433return default(KeyValuePair<string, StringValues>);
Internal\ItemsDictionary.cs (17)
89void ICollection<KeyValuePair<object, object?>>.Add(KeyValuePair<object, object?> item)
95void ICollection<KeyValuePair<object, object?>>.Clear() => _items?.Clear();
97bool ICollection<KeyValuePair<object, object?>>.Contains(KeyValuePair<object, object?> item)
100void ICollection<KeyValuePair<object, object?>>.CopyTo(KeyValuePair<object, object?>[] array, int arrayIndex)
111int ICollection<KeyValuePair<object, object?>>.Count => _items?.Count ?? 0;
113bool ICollection<KeyValuePair<object, object?>>.IsReadOnly => _items?.IsReadOnly ?? false;
115bool ICollection<KeyValuePair<object, object?>>.Remove(KeyValuePair<object, object?> item)
138IEnumerator<KeyValuePair<object, object?>> IEnumerable<KeyValuePair<object, object?>>.GetEnumerator()
143private sealed class EmptyEnumerator : IEnumerator<KeyValuePair<object, object?>>
146public static readonly IEnumerator<KeyValuePair<object, object?>> Instance = new EmptyEnumerator();
147public KeyValuePair<object, object?> Current => default;
164public static ICollection<KeyValuePair<object, object?>> Collection => Dictionary;
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (8)
136public void Add(KeyValuePair<TKey, TValue> item)
138((ICollection<KeyValuePair<TKey, TValue>>)WriteDictionary).Add(item);
146public bool Contains(KeyValuePair<TKey, TValue> item)
148return ((ICollection<KeyValuePair<TKey, TValue>>)ReadDictionary).Contains(item);
151public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
153((ICollection<KeyValuePair<TKey, TValue>>)ReadDictionary).CopyTo(array, arrayIndex);
156public bool Remove(KeyValuePair<TKey, TValue> item)
158return ((ICollection<KeyValuePair<TKey, TValue>>)WriteDictionary).Remove(item);
src\aspnetcore\src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (24)
24internal KeyValuePair<TKey, TValue>[]? _arrayStorage;
73_arrayStorage = Array.Empty<KeyValuePair<TKey, TValue>>();
77_arrayStorage = new KeyValuePair<TKey, TValue>[capacity];
149bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
202void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
210((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage!).Add(item);
263bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item)
267return ((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage).Contains(item);
290void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(
291KeyValuePair<TKey, TValue>[] array,
313((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage!).CopyTo(array, arrayIndex);
323IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
345bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
367return ((ICollection<KeyValuePair<TKey, TValue>>)_dictionaryStorage!).Remove(item);
519foreach (var item in _arrayStorage)
530var array = new KeyValuePair<TKey, TValue>[capacity];
539private Span<KeyValuePair<TKey, TValue>> ArrayStorageSpan
580foreach (ref var item in ArrayStorageSpan)
598public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>
629public KeyValuePair<TKey, TValue> Current { get; private set; }
Microsoft.AspNetCore.Http.Abstractions (52)
Routing\RouteValueDictionary.cs (38)
47internal KeyValuePair<string, object?>[] _arrayStorage;
60public static RouteValueDictionary FromArray(KeyValuePair<string, object?>[] items)
108_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
120/// If the value is a dictionary or other <see cref="IEnumerable{T}"/> of <see cref="KeyValuePair{String, Object}"/>,
135if (values is IEnumerable<KeyValuePair<string, object?>> keyValueEnumerable)
142if (values is IEnumerable<KeyValuePair<string, string?>> stringValueEnumerable)
154_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
158_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
167public RouteValueDictionary(IEnumerable<KeyValuePair<string, object?>>? values)
175_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
184public RouteValueDictionary(IEnumerable<KeyValuePair<string, string?>>? values)
192_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
208_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
213private void Initialize(IEnumerable<KeyValuePair<string, string?>> stringValueEnumerable)
215_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
217foreach (var kvp in stringValueEnumerable)
231_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
239var storage = new KeyValuePair<string, object?>[count];
246_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
252private void Initialize(IEnumerable<KeyValuePair<string, object?>> keyValueEnumerable)
254_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
256foreach (var kvp in keyValueEnumerable)
315bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => false;
358void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> item)
398_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
409bool ICollection<KeyValuePair<string, object?>>.Contains(KeyValuePair<string, object?> item)
441void ICollection<KeyValuePair<string, object?>>.CopyTo(
442KeyValuePair<string, object?>[] array,
470IEnumerator<KeyValuePair<string, object?>> IEnumerable<KeyValuePair<string, object?>>.GetEnumerator()
482bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item)
679var array = new KeyValuePair<string, object?>[capacity];
695var array = new KeyValuePair<string, object?>[capacity];
788public struct Enumerator : IEnumerator<KeyValuePair<string, object?>>
808public KeyValuePair<string, object?> Current { get; private set; }
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (6)
15return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1) }, includeNullValues, prefix);
20return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1), Create(key2, value2) }, includeNullValues, prefix);
25return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1), Create(key2, value2), Create(key3, value3) }, includeNullValues, prefix);
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
44var kvp = values[i];
114private static KeyValuePair<string, object?> Create(string key, object? value) => new KeyValuePair<string, object?>(key, value);
Microsoft.AspNetCore.Http.Connections (6)
Microsoft.AspNetCore.Http.Connections.Client (5)
Microsoft.AspNetCore.Http.Extensions (21)
Microsoft.AspNetCore.Http.Features (6)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Http.Results (13)
Results.cs (6)
742IEnumerable<KeyValuePair<string, object?>>? extensions = null)
774return ValidationProblem(errors, detail, instance, statusCode, title, type, (IEnumerable<KeyValuePair<string, object?>>?)extensions);
792IEnumerable<KeyValuePair<string, string[]>> errors,
798IEnumerable<KeyValuePair<string, object?>>? extensions = null)
818private static void CopyExtensions(IEnumerable<KeyValuePair<string, object?>>? extensions, HttpValidationProblemDetails problemDetails)
822foreach (var extension in extensions)
TypedResults.cs (7)
766return Problem(detail, instance, statusCode, title, type, (IEnumerable<KeyValuePair<string, object?>>?)extensions);
787IEnumerable<KeyValuePair<string, object?>>? extensions = null)
833return ValidationProblem(errors, detail, instance, title, type, (IEnumerable<KeyValuePair<string, object?>>?)extensions);
849IEnumerable<KeyValuePair<string, string[]>> errors,
854IEnumerable<KeyValuePair<string, object?>>? extensions = null)
872private static void CopyExtensions(IEnumerable<KeyValuePair<string, object?>>? extensions, ProblemDetails problemDetails)
876foreach (var extension in extensions)
Microsoft.AspNetCore.HttpLogging (9)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.InternalTesting (12)
Logging\LogValuesAssert.cs (9)
23IEnumerable<KeyValuePair<string, object>> actualValues)
35IEnumerable<KeyValuePair<string, object>> expectedValues,
36IEnumerable<KeyValuePair<string, object>> actualValues)
43foreach (var expectedPair in expectedValues)
54private static string GetString(IEnumerable<KeyValuePair<string, object>> logValues)
59private sealed class LogValueComparer : IEqualityComparer<KeyValuePair<string, object>>
61public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
66public int GetHashCode(KeyValuePair<string, object> obj)
Microsoft.AspNetCore.Mvc.Abstractions (21)
Microsoft.AspNetCore.Mvc.Analyzers (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
Microsoft.AspNetCore.Mvc.Core (116)
_generated\0\LoggerMessage.g.cs (15)
570private readonly struct __TransformingClientErrorStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
597public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
610public global::System.Collections.Generic.IEnumerator<global::System.Collections.Generic.KeyValuePair<string, object?>> GetEnumerator()
1482private readonly struct __AttemptingToBindCollectionUsingIndicesStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
1503public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
1514public global::System.Collections.Generic.IEnumerator<global::System.Collections.Generic.KeyValuePair<string, object?>> GetEnumerator()
1542private readonly struct __AttemptingToBindCollectionOfKeyValuePairStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
1563public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
1574public global::System.Collections.Generic.IEnumerator<global::System.Collections.Generic.KeyValuePair<string, object?>> GetEnumerator()
1602private readonly struct __NoNonIndexBasedFormatFoundForCollectionStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
1623public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
1634public global::System.Collections.Generic.IEnumerator<global::System.Collections.Generic.KeyValuePair<string, object?>> GetEnumerator()
1756private readonly struct __NoKeyValueFormatForDictionaryModelBinderStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
1777public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
1788public global::System.Collections.Generic.IEnumerator<global::System.Collections.Generic.KeyValuePair<string, object?>> GetEnumerator()
Diagnostics\MvcDiagnostics.cs (28)
53protected override KeyValuePair<string, object> this[int index] => index switch
104protected override KeyValuePair<string, object> this[int index] => index switch
155protected override KeyValuePair<string, object> this[int index] => index switch
206protected override KeyValuePair<string, object> this[int index] => index switch
257protected override KeyValuePair<string, object> this[int index] => index switch
308protected override KeyValuePair<string, object> this[int index] => index switch
359protected override KeyValuePair<string, object> this[int index] => index switch
410protected override KeyValuePair<string, object> this[int index] => index switch
461protected override KeyValuePair<string, object> this[int index] => index switch
512protected override KeyValuePair<string, object> this[int index] => index switch
563protected override KeyValuePair<string, object> this[int index] => index switch
614protected override KeyValuePair<string, object> this[int index] => index switch
665protected override KeyValuePair<string, object> this[int index] => index switch
716protected override KeyValuePair<string, object> this[int index] => index switch
767protected override KeyValuePair<string, object> this[int index] => index switch
818protected override KeyValuePair<string, object> this[int index] => index switch
869protected override KeyValuePair<string, object> this[int index] => index switch
920protected override KeyValuePair<string, object> this[int index] => index switch
971protected sealed override KeyValuePair<string, object> this[int index] => index switch
1029protected override KeyValuePair<string, object> this[int index] => index switch
1081protected override KeyValuePair<string, object> this[int index] => index switch
1132protected override KeyValuePair<string, object> this[int index] => index switch
1183protected override KeyValuePair<string, object> this[int index] => index switch
1234protected override KeyValuePair<string, object> this[int index] => index switch
1285protected override KeyValuePair<string, object> this[int index] => index switch
1336protected override KeyValuePair<string, object> this[int index] => index switch
1380protected override KeyValuePair<string, object> this[int index] => index switch
1423protected override KeyValuePair<string, object> this[int index] => index switch
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (8)
136public void Add(KeyValuePair<TKey, TValue> item)
138((ICollection<KeyValuePair<TKey, TValue>>)WriteDictionary).Add(item);
146public bool Contains(KeyValuePair<TKey, TValue> item)
148return ((ICollection<KeyValuePair<TKey, TValue>>)ReadDictionary).Contains(item);
151public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
153((ICollection<KeyValuePair<TKey, TValue>>)ReadDictionary).CopyTo(array, arrayIndex);
156public bool Remove(KeyValuePair<TKey, TValue> item)
158return ((ICollection<KeyValuePair<TKey, TValue>>)WriteDictionary).Remove(item);
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml (3)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (6)
Microsoft.AspNetCore.Mvc.Razor (4)
Microsoft.AspNetCore.Mvc.RazorPages (14)
Diagnostics\MvcDiagnostics.cs (12)
59protected override KeyValuePair<string, object> this[int index] => index switch
125protected override KeyValuePair<string, object> this[int index] => index switch
178protected override KeyValuePair<string, object> this[int index] => index switch
229protected override KeyValuePair<string, object> this[int index] => index switch
280protected override KeyValuePair<string, object> this[int index] => index switch
331protected override KeyValuePair<string, object> this[int index] => index switch
382protected override KeyValuePair<string, object> this[int index] => index switch
433protected override KeyValuePair<string, object> this[int index] => index switch
484protected override KeyValuePair<string, object> this[int index] => index switch
535protected override KeyValuePair<string, object> this[int index] => index switch
586protected override KeyValuePair<string, object> this[int index] => index switch
637protected override KeyValuePair<string, object> this[int index] => index switch
Microsoft.AspNetCore.Mvc.TagHelpers (13)
Cache\CacheTagKey.cs (12)
41private readonly IList<KeyValuePair<string, string>> _headers;
42private readonly IList<KeyValuePair<string, string>> _queries;
43private readonly IList<KeyValuePair<string, string>> _routeValues;
44private readonly IList<KeyValuePair<string, string>> _cookies;
265private static IList<KeyValuePair<string, string>> ExtractCollection<TSourceCollection>(
277var result = new List<KeyValuePair<string, string>>();
296IList<KeyValuePair<string, string>> values)
311var item = values[i];
330IList<KeyValuePair<string, string>> values)
338var item = values[i];
345private static bool AreSame(IList<KeyValuePair<string, string>> values1, IList<KeyValuePair<string, string>> values2)
Microsoft.AspNetCore.Mvc.Testing (7)
Microsoft.AspNetCore.Mvc.ViewFeatures (69)
AttributeDictionary.cs (21)
19private List<KeyValuePair<string, string?>>? _items;
43var item = new KeyValuePair<string, string?>(key, value);
74private KeyValuePair<string, string?> Get(int index)
80private void Set(int index, KeyValuePair<string, string?> value)
87_items = new List<KeyValuePair<string, string?>>();
93private void Insert(int index, KeyValuePair<string, string?> value)
100_items = new List<KeyValuePair<string, string?>>();
158public void Add(KeyValuePair<string, string?> item)
164nameof(KeyValuePair<string, string?>.Key),
165nameof(KeyValuePair<string, string?>)),
189public bool Contains(KeyValuePair<string, string?> item)
195nameof(KeyValuePair<string, string?>.Key),
196nameof(KeyValuePair<string, string?>)),
225public void CopyTo(KeyValuePair<string, string?>[] array, int arrayIndex)
247public bool Remove(KeyValuePair<string, string?> item)
253nameof(KeyValuePair<string, string?>.Key),
254nameof(KeyValuePair<string, string?>)),
316IEnumerator<KeyValuePair<string, string?>> IEnumerable<KeyValuePair<string, string?>>.GetEnumerator()
324public struct Enumerator : IEnumerator<KeyValuePair<string, string?>>
342public KeyValuePair<string, string?> Current => _attributes.Get(_index);
TempDataDictionary.cs (20)
75bool ICollection<KeyValuePair<string, object?>>.IsReadOnly
80return ((ICollection<KeyValuePair<string, object?>>)_data).IsReadOnly;
167foreach (var entry in _data)
218public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()
242void ICollection<KeyValuePair<string, object?>>.CopyTo(KeyValuePair<string, object?>[] array, int index)
245((ICollection<KeyValuePair<string, object?>>)_data).CopyTo(array, index);
248void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> keyValuePair)
252((ICollection<KeyValuePair<string, object?>>)_data).Add(keyValuePair);
255bool ICollection<KeyValuePair<string, object?>>.Contains(KeyValuePair<string, object?> keyValuePair)
258return ((ICollection<KeyValuePair<string, object?>>)_data).Contains(keyValuePair);
261bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> keyValuePair)
265return ((ICollection<KeyValuePair<string, object?>>)_data).Remove(keyValuePair);
274private sealed class TempDataDictionaryEnumerator : IEnumerator<KeyValuePair<string, object?>>
287public KeyValuePair<string, object?> Current
291var kvp = _enumerator.Current;
308((IEnumerator<KeyValuePair<string, object?>>)_enumerator).Reset();
Microsoft.AspNetCore.OpenApi (4)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.OutputCaching (11)
Microsoft.AspNetCore.Owin (66)
DictionaryStringArrayWrapper.cs (22)
20private static KeyValuePair<string, StringValues> Convert(KeyValuePair<string, string[]> item) => new(item.Key, item.Value);
22private static KeyValuePair<string, string[]> Convert(KeyValuePair<string, StringValues> item) => new(item.Key, item.Value);
32int ICollection<KeyValuePair<string, string[]>>.Count => Inner.Count;
34bool ICollection<KeyValuePair<string, string[]>>.IsReadOnly => Inner.IsReadOnly;
40void ICollection<KeyValuePair<string, string[]>>.Add(KeyValuePair<string, string[]> item) => Inner.Add(Convert(item));
44void ICollection<KeyValuePair<string, string[]>>.Clear() => Inner.Clear();
46bool ICollection<KeyValuePair<string, string[]>>.Contains(KeyValuePair<string, string[]> item) => Inner.Contains(Convert(item));
50void ICollection<KeyValuePair<string, string[]>>.CopyTo(KeyValuePair<string, string[]>[] array, int arrayIndex)
52foreach (var kv in Inner)
60IEnumerator<KeyValuePair<string, string[]>> IEnumerable<KeyValuePair<string, string[]>>.GetEnumerator() => new ConvertingEnumerator(Inner);
64bool ICollection<KeyValuePair<string, string[]>>.Remove(KeyValuePair<string, string[]> item) => Inner.Remove(Convert(item));
80public struct ConvertingEnumerator : IEnumerator<KeyValuePair<string, string[]>>, IEnumerator
82private IEnumerator<KeyValuePair<string, StringValues>> _inner;
83private KeyValuePair<string, string[]> _current;
109public KeyValuePair<string, string[]> Current => _current;
DictionaryStringValuesWrapper.cs (22)
21private static KeyValuePair<string, StringValues> Convert(KeyValuePair<string, string[]> item) => new(item.Key, item.Value);
23private static KeyValuePair<string, string[]> Convert(KeyValuePair<string, StringValues> item) => new(item.Key, item.Value);
77int ICollection<KeyValuePair<string, StringValues>>.Count => Inner.Count;
79bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly => Inner.IsReadOnly;
85void ICollection<KeyValuePair<string, StringValues>>.Add(KeyValuePair<string, StringValues> item) => Inner.Add(Convert(item));
89void ICollection<KeyValuePair<string, StringValues>>.Clear() => Inner.Clear();
91bool ICollection<KeyValuePair<string, StringValues>>.Contains(KeyValuePair<string, StringValues> item) => Inner.Contains(Convert(item));
95void ICollection<KeyValuePair<string, StringValues>>.CopyTo(KeyValuePair<string, StringValues>[] array, int arrayIndex)
97foreach (var kv in Inner)
105IEnumerator<KeyValuePair<string, StringValues>> IEnumerable<KeyValuePair<string, StringValues>>.GetEnumerator() => new ConvertingEnumerator(Inner);
109bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item) => Inner.Remove(Convert(item));
125public struct ConvertingEnumerator : IEnumerator<KeyValuePair<string, StringValues>>, IEnumerator
127private IEnumerator<KeyValuePair<string, string[]>> _inner;
128private KeyValuePair<string, StringValues> _current;
154public KeyValuePair<string, StringValues> Current => _current;
OwinEnvironment.cs (21)
161void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> item)
166void ICollection<KeyValuePair<string, object>>.Clear()
172bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> item)
177void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
187foreach (var entryPair in this)
193int ICollection<KeyValuePair<string, object>>.Count
198bool ICollection<KeyValuePair<string, object>>.IsReadOnly
203bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item)
209public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
211foreach (var entryPair in _owinEntries)
219foreach (var entryPair in _context.Items)
404private sealed class OwinEntries : IEnumerable<KeyValuePair<string, FeatureMap>>
565public IEnumerator<KeyValuePair<string, FeatureMap>> GetEnumerator()
569foreach (var entry in _contextEntries)
576foreach (var entry in _entries)
586foreach (var entry in _contextDependentEntries)
614foreach (var entry in _contextDependentEntries)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.Razor.Runtime (15)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (8)
136public void Add(KeyValuePair<TKey, TValue> item)
138((ICollection<KeyValuePair<TKey, TValue>>)WriteDictionary).Add(item);
146public bool Contains(KeyValuePair<TKey, TValue> item)
148return ((ICollection<KeyValuePair<TKey, TValue>>)ReadDictionary).Contains(item);
151public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
153((ICollection<KeyValuePair<TKey, TValue>>)ReadDictionary).CopyTo(array, arrayIndex);
156public bool Remove(KeyValuePair<TKey, TValue> item)
158return ((ICollection<KeyValuePair<TKey, TValue>>)WriteDictionary).Remove(item);
Microsoft.AspNetCore.Razor.Utilities.Shared (4)
Microsoft.AspNetCore.ResponseCaching (6)
Microsoft.AspNetCore.Routing (81)
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (6)
15return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1) }, includeNullValues, prefix);
20return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1), Create(key2, value2) }, includeNullValues, prefix);
25return GetDebugText(new KeyValuePair<string, object?>[] { Create(key1, value1), Create(key2, value2), Create(key3, value3) }, includeNullValues, prefix);
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
44var kvp = values[i];
114private static KeyValuePair<string, object?> Create(string key, object? value) => new KeyValuePair<string, object?>(key, value);
Microsoft.AspNetCore.Routing.Abstractions (5)
Microsoft.AspNetCore.Server.HttpSys (32)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (13)
97foreach (var item in _extra)
145void ICollection<KeyValuePair<string, StringValues>>.Add(KeyValuePair<string, StringValues> item)
150void ICollection<KeyValuePair<string, StringValues>>.Clear()
159bool ICollection<KeyValuePair<string, StringValues>>.Contains(KeyValuePair<string, StringValues> item)
164void ICollection<KeyValuePair<string, StringValues>>.CopyTo(KeyValuePair<string, StringValues>[] array, int arrayIndex)
169bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly
239bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item)
245IEnumerator<KeyValuePair<string, StringValues>> IEnumerable<KeyValuePair<string, StringValues>>.GetEnumerator()
Microsoft.AspNetCore.Server.IIS (41)
Core\IISHttpContext.cs (10)
51protected Stack<KeyValuePair<Func<object, Task>, object>>? _onStarting;
52protected Stack<KeyValuePair<Func<object, Task>, object>>? _onCompleted;
647foreach (var headerPair in HttpResponseHeaders)
691foreach (var headerPair in HttpResponseTrailers)
737_onStarting = new Stack<KeyValuePair<Func<object, Task>, object>>();
749_onCompleted = new Stack<KeyValuePair<Func<object, Task>, object>>();
757Stack<KeyValuePair<Func<object, Task>, object>>? onStarting = null;
767foreach (var entry in onStarting)
781Stack<KeyValuePair<Func<object, Task>, object>>? onCompleted = null;
789foreach (var entry in onCompleted)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (13)
97foreach (var item in _extra)
145void ICollection<KeyValuePair<string, StringValues>>.Add(KeyValuePair<string, StringValues> item)
150void ICollection<KeyValuePair<string, StringValues>>.Clear()
159bool ICollection<KeyValuePair<string, StringValues>>.Contains(KeyValuePair<string, StringValues> item)
164void ICollection<KeyValuePair<string, StringValues>>.CopyTo(KeyValuePair<string, StringValues>[] array, int arrayIndex)
169bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly
239bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item)
245IEnumerator<KeyValuePair<string, StringValues>> IEnumerable<KeyValuePair<string, StringValues>>.GetEnumerator()
Microsoft.AspNetCore.Server.IntegrationTesting (5)
Microsoft.AspNetCore.Server.Kestrel.Core (98)
Internal\Http\HttpHeaders.cs (14)
117bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly => _isReadOnly;
178protected virtual bool CopyToFast(KeyValuePair<string, StringValues>[] array, int arrayIndex)
181protected virtual IEnumerator<KeyValuePair<string, StringValues>> GetEnumeratorFast()
184void ICollection<KeyValuePair<string, StringValues>>.Add(KeyValuePair<string, StringValues> item)
206void ICollection<KeyValuePair<string, StringValues>>.Clear()
215bool ICollection<KeyValuePair<string, StringValues>>.Contains(KeyValuePair<string, StringValues> item)
227void ICollection<KeyValuePair<string, StringValues>>.CopyTo(KeyValuePair<string, StringValues>[] array, int arrayIndex)
240IEnumerator<KeyValuePair<string, StringValues>> IEnumerable<KeyValuePair<string, StringValues>>.GetEnumerator()
245bool ICollection<KeyValuePair<string, StringValues>>.Remove(KeyValuePair<string, StringValues> item)
Internal\Http\HttpHeaders.Generated.cs (9)
7015protected override bool CopyToFast(KeyValuePair<string, StringValues>[] array, int arrayIndex)
7472((ICollection<KeyValuePair<string, StringValues>>?)MaybeUnknown)?.CopyTo(array, arrayIndex);
8655_current = default(KeyValuePair<string, StringValues>);
14441protected override bool CopyToFast(KeyValuePair<string, StringValues>[] array, int arrayIndex)
14799((ICollection<KeyValuePair<string, StringValues>>?)MaybeUnknown)?.CopyTo(array, arrayIndex);
15489_current = default(KeyValuePair<string, StringValues>);
17524protected override bool CopyToFast(KeyValuePair<string, StringValues>[] array, int arrayIndex)
17567((ICollection<KeyValuePair<string, StringValues>>?)MaybeUnknown)?.CopyTo(array, arrayIndex);
17610_current = default(KeyValuePair<string, StringValues>);
Internal\Http\HttpProtocol.cs (8)
43private Stack<KeyValuePair<Func<object, Task>, object>>? _onStarting;
44private Stack<KeyValuePair<Func<object, Task>, object>>? _onCompleted;
814_onStarting = new Stack<KeyValuePair<Func<object, Task>, object>>();
823_onCompleted = new Stack<KeyValuePair<Func<object, Task>, object>>();
838static async Task ProcessEvents(HttpProtocol protocol, Stack<KeyValuePair<Func<object, Task>, object>> events)
844while (events.TryPop(out var entry))
866static async Task ProcessEvents(HttpProtocol protocol, Stack<KeyValuePair<Func<object, Task>, object>> events)
870while (events.TryPop(out var entry))
Internal\Infrastructure\KestrelMetrics.cs (2)
112public void ConnectionStop(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp)
121private void ConnectionStopCore(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp)
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (8)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (7)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (19)
src\aspnetcore\src\Servers\Kestrel\shared\ConnectionCompletion.cs (5)
12public static Task FireOnCompletedAsync(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>>? onCompleted)
22private static Task CompleteAsyncMayAwait(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
24while (onCompleted.TryPop(out var entry))
43private static async Task CompleteAsyncAwaited(Task currentTask, ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
54while (onCompleted.TryPop(out var entry))
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (7)
Microsoft.AspNetCore.Session (5)
Microsoft.AspNetCore.SignalR.Client.Core (4)
Microsoft.AspNetCore.SignalR.Core (12)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.AspNetCore.SpaServices.Extensions (5)
Microsoft.AspNetCore.TestHost (7)
Microsoft.AspNetCore.WebUtilities (7)
Microsoft.Build (439)
BackEnd\Components\RequestBuilder\Lookup.cs (12)
337foreach (KeyValuePair<string, Dictionary<ProjectItemInstance, MetadataModifications>> entry in PrimaryModifyTable)
343foreach (KeyValuePair<ProjectItemInstance, MetadataModifications> modify in entry.Value)
380foreach (KeyValuePair<string, List<ProjectItemInstance>> kvp in PrimaryAddTable)
388foreach (KeyValuePair<string, List<ProjectItemInstance>> kvp in PrimaryRemoveTable)
396foreach (KeyValuePair<string, Dictionary<ProjectItemInstance, MetadataModifications>> entry in PrimaryModifyTable)
513foreach (KeyValuePair<ProjectItemInstance, MetadataModifications> modify in modifies)
882var modify = new KeyValuePair<ProjectItemInstance, MetadataModifications>(actualItem, metadataChangeCopy);
939foreach (KeyValuePair<string, string> m in metadataContainer.BackingMetadata.Dictionary)
949foreach (var modificationPair in modificationsToApply.ExplicitModifications)
1005KeyValuePair<ProjectItemInstance, MetadataModifications> modify,
1020foreach (var metadataChange in modify.Value.ExplicitModifications)
1193foreach (var modificationPair in other.ExplicitModifications)
Collections\CopyOnWritePropertyDictionary.cs (12)
77bool ICollection<KeyValuePair<string, T>>.IsReadOnly => false;
278void ICollection<KeyValuePair<string, T>>.Add(KeyValuePair<string, T> item)
286bool ICollection<KeyValuePair<string, T>>.Contains(KeyValuePair<string, T> item)
299void ICollection<KeyValuePair<string, T>>.CopyTo(KeyValuePair<string, T>[] array, int arrayIndex)
305bool ICollection<KeyValuePair<string, T>>.Remove(KeyValuePair<string, T> item)
318IEnumerator<KeyValuePair<string, T>> IEnumerable<KeyValuePair<string, T>>.GetEnumerator()
358foreach (KeyValuePair<string, T> kvp in copyOnWriteDictionary)
Collections\PropertyDictionary.cs (15)
136int ICollection<KeyValuePair<string, T>>.Count => Count;
142bool ICollection<KeyValuePair<string, T>>.IsReadOnly => ((ICollection<T>)_properties).IsReadOnly;
412void ICollection<KeyValuePair<string, T>>.Add(KeyValuePair<string, T> item)
420void ICollection<KeyValuePair<string, T>>.Clear()
428bool ICollection<KeyValuePair<string, T>>.Contains(KeyValuePair<string, T> item)
444void ICollection<KeyValuePair<string, T>>.CopyTo(KeyValuePair<string, T>[] array, int arrayIndex)
450bool ICollection<KeyValuePair<string, T>>.Remove(KeyValuePair<string, T> item)
487IEnumerator<KeyValuePair<string, T>> IEnumerable<KeyValuePair<string, T>>.GetEnumerator()
491foreach (KeyValuePair<string, T> kvp in (IEnumerable<KeyValuePair<string, T>>)_properties)
Collections\ReadOnlyConvertingDictionary.cs (11)
123public void Add(KeyValuePair<K, N> item)
139public bool Contains(KeyValuePair<K, N> item)
148public void CopyTo(KeyValuePair<K, N>[] array, int arrayIndex)
152foreach (KeyValuePair<K, V> pair in _backing)
161public bool Remove(KeyValuePair<K, N> item)
174public IEnumerator<KeyValuePair<K, N>> GetEnumerator()
176return new ConvertingEnumerable<KeyValuePair<K, V>, KeyValuePair<K, N>>(_backing, KeyValueConverter).GetEnumerator();
188return ((IEnumerable<KeyValuePair<K, N>>)this).GetEnumerator();
196private KeyValuePair<K, N> KeyValueConverter(KeyValuePair<K, V> original)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (11)
137public RetrievableEntryHashSet(IEnumerable<KeyValuePair<string, T>> collection, IEqualityComparer<string> comparer, bool readOnly = false)
282bool ICollection<KeyValuePair<string, T>>.Contains(KeyValuePair<string, T> entry)
396bool ICollection<KeyValuePair<string, T>>.Remove(KeyValuePair<string, T> entry)
489IEnumerator<KeyValuePair<string, T>> IEnumerable<KeyValuePair<string, T>>.GetEnumerator()
602void ICollection<KeyValuePair<string, T>>.Add(KeyValuePair<string, T> entry)
633void ICollection<KeyValuePair<string, T>>.CopyTo(KeyValuePair<string, T>[] array, int index)
Definition\Project.cs (18)
84/// - <see cref="AddItem(string,string, IEnumerable<KeyValuePair<string, string>>)"/>
85/// - <see cref="AddItemFast(string,string, IEnumerable<KeyValuePair<string, string>>)"/>
631internal IEnumerable<KeyValuePair<string, string>> GlobalPropertiesEnumerable => implementation.GlobalPropertiesEnumerable();
1216public IList<ProjectItem> AddItem(string itemType, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
1247public IList<ProjectItem> AddItemFast(string itemType, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
1738internal bool IsSuitableExistingItemXml(ProjectItemElement candidateExistingItemXml, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
2005/// - <see cref="AddItem(string,string, IEnumerable<KeyValuePair<string, string>>)"/>
2006/// - <see cref="AddItemFast(string,string, IEnumerable<KeyValuePair<string, string>>)"/>
2147public override IEnumerable<KeyValuePair<string, string>> GlobalPropertiesEnumerable()
2884public override IList<ProjectItem> AddItem(string itemType, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
2933public override IList<ProjectItem> AddItemFast(string itemType, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
3317public bool IsSuitableExistingItemXml(ProjectItemElement candidateExistingItemXml, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
3472private List<ProjectItem> AddItemHelper(ProjectItemElement itemElement, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)
3496foreach (KeyValuePair<string, string> metadatum in metadata)
3661foreach (KeyValuePair<string, string> pair in globalProperties)
3720private ProjectElement GetAnySuitableExistingItemXml(string itemType, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata, out ProjectItemElement suitableExistingItemXml)
3846bool IsSuitableExistingItemXml(ProjectItemElement candidateExistingItemXml, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata);
3871public bool IsSuitableExistingItemXml(ProjectItemElement candidateExistingItemXml, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata) { throw new NotImplementedException(); }
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (9)
51public void Add(KeyValuePair<string, T> item) => throw new NotSupportedException();
62public bool Contains(KeyValuePair<string, T> item) => _projectElements.ContainsKey(item.Key);
72public void CopyTo(KeyValuePair<string, T>[] array, int arrayIndex) => _values.CopyTo(array, arrayIndex);
88public bool Remove(KeyValuePair<string, T> item) => throw new NotSupportedException();
98IEnumerator<KeyValuePair<string, T>> IEnumerable<KeyValuePair<string, T>>.GetEnumerator() => _values.GetKvpEnumerator();
166public void CopyTo(KeyValuePair<string, T>[] array, int arrayIndex)
187public IEnumerator<KeyValuePair<string, T>> GetKvpEnumerator()
189foreach (var kvp in _projectElements)
Instance\ProjectItemInstance.cs (34)
124internal ProjectItemInstance(ProjectInstance project, string itemType, string includeEscaped, IEnumerable<KeyValuePair<string, string>> directMetadata, string definingFileEscaped)
315IEnumerable<KeyValuePair<string, string>> IItemData.EnumerateMetadata() => ((IMetadataContainer)this).EnumerateMetadata();
424public void SetMetadata(IEnumerable<KeyValuePair<string, string>> metadataDictionary)
553IEnumerable<KeyValuePair<string, string>> IMetadataContainer.EnumerateMetadata() => _taskItem.EnumerateMetadata();
555void IMetadataContainer.ImportMetadata(IEnumerable<KeyValuePair<string, string>> metadata) => _taskItem.ImportMetadata(metadata);
665internal void SetMetadataOnTaskOutput(IEnumerable<KeyValuePair<string, string>> items)
673/// Special case of <see cref="SetMetadataOnTaskOutput(IEnumerable{KeyValuePair{string, string}})"/> for when
979foreach (KeyValuePair<string, string> metadatum in metadataCollection)
1115public IEnumerable<KeyValuePair<string, string>> EnumerateMetadata()
1145public void ImportMetadata(IEnumerable<KeyValuePair<string, string>> metadata) =>
1171private void ImportMetadata(IEnumerable<KeyValuePair<string, string>> metadata, bool validateKeys)
1181foreach (KeyValuePair<string, string> metadatum in _directMetadata)
1216private IEnumerable<KeyValuePair<string, string>> EnumerateMetadata(ImmutableDictionary<string, string> list)
1218foreach (KeyValuePair<string, string> projectMetadataInstance in list)
1264foreach (var kvp in _itemDefinitions[i].BackingMetadata)
1273foreach (var kvp in _directMetadata)
1287foreach (KeyValuePair<string, string> metadatum in MetadataCollection)
1557foreach (KeyValuePair<string, string> metadatum in MetadataCollection)
1589IEnumerable<KeyValuePair<string, string>> metadataToImport = MetadataCollection;
1635foreach (KeyValuePair<string, string> metadatum in metadata)
1652foreach (KeyValuePair<string, string> metadatum in MetadataCollection)
1776foreach (KeyValuePair<string, string> metadatum in _directMetadata)
1789foreach (KeyValuePair<string, string> metadatum in otherMetadata)
1843public void SetMetadata(IEnumerable<KeyValuePair<string, string>> metadataDictionary)
1847foreach (KeyValuePair<string, string> metadataEntry in metadataDictionary)
1906foreach (KeyValuePair<string, string> metadatum in temp)
2032internal void SetMetadataOnTaskOutput(IEnumerable<KeyValuePair<string, string>> items)
2044/// Special case of <see cref="SetMetadataOnTaskOutput(IEnumerable{KeyValuePair{string, string}})"/> for when
2058foreach (KeyValuePair<string, string> item in items)
2139foreach (KeyValuePair<string, string> kvp in item.BackingMetadata)
2162private readonly IEnumerator<KeyValuePair<string, string>> _metadataCollectionEnumerator;
2300public void SetMetadata(IEnumerable<KeyValuePair<ProjectMetadataElement, string>> metadataList, IEnumerable<ProjectItemInstance> destinationItems)
2304IEnumerable<KeyValuePair<string, string>> projectMetadataInstances = metadataList.Select(metadatum => new KeyValuePair<string, string>(metadatum.Key.Name, metadatum.Value));
2468public void SetMetadata(IEnumerable<KeyValuePair<ProjectMetadataElement, string>> metadata, IEnumerable<TaskItem> destinationItems)
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (5)
183/// Facilitate remoting the <see cref="Project.AddItem(string, string, IEnumerable{KeyValuePair{string, string}})"/>.
185public abstract IList<ProjectItem> AddItem(string itemType, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata);
188/// Facilitate remoting the <see cref="Project.AddItemFast(string, string, IEnumerable{KeyValuePair{string, string}})"/>.
190public abstract IList<ProjectItem> AddItemFast(string itemType, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata);
283public virtual IEnumerable<KeyValuePair<string, string>> GlobalPropertiesEnumerable() => GlobalProperties;
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary.cs (4)
35public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items)
39public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items)
43public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items)
56public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items, IEqualityComparer<TKey>? keyComparer)
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2.cs (18)
106bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
157public ImmutableSegmentedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
183public bool Contains(KeyValuePair<TKey, TValue> pair)
232public ImmutableSegmentedDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
238foreach (var item in items)
318IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
324IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
332IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
341void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
342=> ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex);
356void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
359void ICollection<KeyValuePair<TKey, TValue>>.Clear()
362bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
374private static bool TryCastToImmutableSegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> pairs, out ImmutableSegmentedDictionary<TKey, TValue> other)
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2+Builder.cs (12)
49bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => ICollectionCalls<KeyValuePair<TKey, TValue>>.IsReadOnly(ref _builder);
78public void Add(KeyValuePair<TKey, TValue> item)
81public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
87public bool Contains(KeyValuePair<TKey, TValue> item)
108public bool Remove(KeyValuePair<TKey, TValue> item)
125void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
126=> ICollectionCalls<KeyValuePair<TKey, TValue>>.CopyTo(ref _builder, array, arrayIndex);
128IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
129=> IEnumerableCalls<KeyValuePair<TKey, TValue>>.GetEnumerator(ref _builder);
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2+ValueBuilder.cs (12)
70readonly bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
118public void Add(KeyValuePair<TKey, TValue> item)
121public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
126foreach (var pair in items)
146public readonly bool Contains(KeyValuePair<TKey, TValue> item)
185public bool Remove(KeyValuePair<TKey, TValue> item)
211foreach (var pair in this)
236readonly void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
237=> ((ICollection<KeyValuePair<TKey, TValue>>)ReadOnlyDictionary).CopyTo(array, arrayIndex);
239IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
src\5057ed6cf5d6323b\SegmentedDictionary`2.cs (29)
46private static IEnumerator<KeyValuePair<TKey, TValue>>? s_emptyEnumerator;
134public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)
139public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
140: this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
150private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> enumerable)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
195if (enumerable is KeyValuePair<TKey, TValue>[] array)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>))
202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
208foreach (var pair in enumerable)
216foreach (var pair in span)
270void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
273bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
284bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
358private void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
389IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
393private static IEnumerator<KeyValuePair<TKey, TValue>> GetEmptyEnumerator()
870bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
872void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
902if (array is KeyValuePair<TKey, TValue>[] pairs)
945=> ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1172public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1177private KeyValuePair<TKey, TValue> _current;
1217public readonly KeyValuePair<TKey, TValue> Current => _current;
Microsoft.Build.Framework (72)
Collections\CopyOnWriteDictionary.cs (14)
73object v = info.GetValue(nameof(_backing), typeof(KeyValuePair<string, V>[]))!;
79_backing = b.AddRange((KeyValuePair<string, V>[])v);
214public void SetItems(IEnumerable<KeyValuePair<string, V>> items)
219public IEnumerable<KeyValuePair<string, V>> Where(Func<KeyValuePair<string, V>, bool> predicate)
256public void Add(KeyValuePair<string, V> item)
272public bool Contains(KeyValuePair<string, V> item)
280public void CopyTo(KeyValuePair<string, V>[] array, int arrayIndex)
288public bool Remove(KeyValuePair<string, V> item)
306IEnumerator<KeyValuePair<string, V>> IEnumerable<KeyValuePair<string, V>>.GetEnumerator()
323return ((IEnumerable<KeyValuePair<string, V>>)this).GetEnumerator();
374foreach (KeyValuePair<string, V> entry in this)
400KeyValuePair<string, V>[] array = snapshot.ToArray();
Microsoft.Build.Tasks.CodeAnalysis (3)
Microsoft.Build.Tasks.Core (52)
AssemblyDependency\ReferenceTable.cs (12)
1135List<KeyValuePair<AssemblyNameExtension, Reference>> newEntries)
1182var newEntry = new KeyValuePair<AssemblyNameExtension, Reference>(unifiedDependency.PostUnified, newReference);
1421foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References)
1586foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References)
1725var newEntries = new List<KeyValuePair<AssemblyNameExtension, Reference>>();
1808foreach (KeyValuePair<AssemblyNameExtension, Reference> newEntry in newEntries)
1822foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References)
2218foreach (KeyValuePair<AssemblyNameExtension, Reference> assemblyNameWithReference in References)
2245foreach (KeyValuePair<string, List<AssemblyNameReference>> kvp in baseNameToReferences)
2628foreach (KeyValuePair<AssemblyNameExtension, Reference> kvp in References)
2796static IEnumerable<KeyValuePair<string, string>> EnumerateCommonMetadata(
3107foreach (KeyValuePair<AssemblyNameExtension, Reference> assembly in References)
BootstrapperUtil\BootstrapperBuilder.cs (6)
209var eulas = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.Ordinal);
224foreach (KeyValuePair<string, string> de in eulas.Values)
1363private bool BuildPackages(BuildSettings settings, XmlElement configElement, ResourceUpdater resourceUpdater, List<string> filesCopied, Dictionary<string, KeyValuePair<string, string>> eulas)
1529if (eulas.TryGetValue(key, out KeyValuePair<string, string> eulaInfo))
1536var de = new KeyValuePair<string, string>(configFileKey, eulaAttribute.Value);
1867KeyValuePair<string, XmlNode> altCulturePair = _cultures.FirstOrDefault();
Microsoft.Build.Tasks.Git (6)
Microsoft.Build.Utilities.Core (22)
Microsoft.CodeAnalysis (276)
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (6)
18private readonly ImmutableArray<KeyValuePair<ConstantValue, object>> _allLabels;
54internal SwitchBucket(ImmutableArray<KeyValuePair<ConstantValue, object>> allLabels, int index)
62private SwitchBucket(ImmutableArray<KeyValuePair<ConstantValue, object>> allLabels, int startIndex, int endIndex)
72internal SwitchBucket(ImmutableArray<KeyValuePair<ConstantValue, object>> allLabels, int startIndex, int endIndex, bool isDegenerate)
91internal KeyValuePair<ConstantValue, object> this[int i]
149var switchLabel = allLabels[idx];
Collections\SmallDictionary.cs (8)
35internal sealed class SmallDictionary<K, V> : IEnumerable<KeyValuePair<K, V>>
55foreach (var kv in other)
763public KeyValuePair<K, V> Current => new KeyValuePair<K, V>(_current!.Key, _current!.Value);
803public class EnumerableImpl : IEnumerator<KeyValuePair<K, V>>
812KeyValuePair<K, V> IEnumerator<KeyValuePair<K, V>>.Current => _e.Current;
831IEnumerator<KeyValuePair<K, V>> IEnumerable<KeyValuePair<K, V>>.GetEnumerator()
Compilation\DeterministicKeyBuilder.cs (6)
47ImmutableArray<KeyValuePair<string, string>> pathMap,
129ImmutableArray<KeyValuePair<string, string>> pathMap,
254ImmutableArray<KeyValuePair<string, string>> pathMap,
329ImmutableArray<KeyValuePair<string, string>> pathMap,
375ImmutableArray<KeyValuePair<string, string>> pathMap,
472ImmutableArray<KeyValuePair<string, string>> pathMap,
Emit\NoPia\EmbeddedTypesManager.cs (3)
158internal abstract TAttributeData CreateSynthesizedAttribute(WellKnownMember constructor, ImmutableArray<TypedConstant> constructorArguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics);
159internal abstract TAttributeData CreateSynthesizedAttribute(SpecialMember constructor, ImmutableArray<TypedConstant> constructorArguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics);
160internal abstract bool TryGetAttributeArguments(TAttributeData attrData, out ImmutableArray<TypedConstant> constructorArguments, out ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics);
MetadataReader\MetadataDecoder.cs (7)
108(KeyValuePair<string, TypedConstant> nameValuePair, bool isProperty, SerializationTypeCode typeCode, SerializationTypeCode elementTypeCode) DecodeCustomAttributeNamedArgumentOrThrow(ref BlobReader argReader);
402var argumentsBuilder = ArrayBuilder<KeyValuePair<TypeSymbol, ImmutableArray<ModifierInfo<TypeSymbol>>>>.GetInstance(argumentCount);
1554public (KeyValuePair<string, TypedConstant> nameValuePair, bool isProperty, SerializationTypeCode typeCode, SerializationTypeCode elementTypeCode) DecodeCustomAttributeNamedArgumentOrThrow(ref BlobReader argReader)
1623out KeyValuePair<string, TypedConstant>[] namedArgs)
1628namedArgs = Array.Empty<KeyValuePair<string, TypedConstant>>();
1662namedArgs = new KeyValuePair<string, TypedConstant>[namedParamCount];
1675namedArgs = Array.Empty<KeyValuePair<String, TypedConstant>>();
MetadataReader\PEModule.cs (5)
685foreach (var pair in namespaces)
775foreach (var kvp in namespaceHandles)
1412(KeyValuePair<string, TypedConstant> nameValuePair, bool isProperty, SerializationTypeCode typeCode, SerializationTypeCode elementTypeCode) namedArgValues =
1572(KeyValuePair<string, TypedConstant> nameValuePair, bool isProperty, SerializationTypeCode typeCode, SerializationTypeCode elementTypeCode) namedArgValues =
3846internal IEnumerable<KeyValuePair<string, (int FirstIndex, int SecondIndex)>> GetForwardedTypes()
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (4)
35public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items)
39public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items)
43public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items)
56public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items, IEqualityComparer<TKey>? keyComparer)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (18)
106bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
157public ImmutableSegmentedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
183public bool Contains(KeyValuePair<TKey, TValue> pair)
232public ImmutableSegmentedDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
238foreach (var item in items)
318IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
324IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
332IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
341void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
342=> ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex);
356void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
359void ICollection<KeyValuePair<TKey, TValue>>.Clear()
362bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
374private static bool TryCastToImmutableSegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> pairs, out ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (12)
49bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => ICollectionCalls<KeyValuePair<TKey, TValue>>.IsReadOnly(ref _builder);
78public void Add(KeyValuePair<TKey, TValue> item)
81public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
87public bool Contains(KeyValuePair<TKey, TValue> item)
108public bool Remove(KeyValuePair<TKey, TValue> item)
125void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
126=> ICollectionCalls<KeyValuePair<TKey, TValue>>.CopyTo(ref _builder, array, arrayIndex);
128IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
129=> IEnumerableCalls<KeyValuePair<TKey, TValue>>.GetEnumerator(ref _builder);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (12)
70readonly bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
118public void Add(KeyValuePair<TKey, TValue> item)
121public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
126foreach (var pair in items)
146public readonly bool Contains(KeyValuePair<TKey, TValue> item)
185public bool Remove(KeyValuePair<TKey, TValue> item)
211foreach (var pair in this)
236readonly void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
237=> ((ICollection<KeyValuePair<TKey, TValue>>)ReadOnlyDictionary).CopyTo(array, arrayIndex);
239IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (29)
46private static IEnumerator<KeyValuePair<TKey, TValue>>? s_emptyEnumerator;
134public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)
139public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
140: this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
150private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> enumerable)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
195if (enumerable is KeyValuePair<TKey, TValue>[] array)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>))
202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
208foreach (var pair in enumerable)
216foreach (var pair in span)
270void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
273bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
284bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
358private void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
389IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
393private static IEnumerator<KeyValuePair<TKey, TValue>> GetEmptyEnumerator()
870bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
872void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
902if (array is KeyValuePair<TKey, TValue>[] pairs)
945=> ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1172public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1177private KeyValuePair<TKey, TValue> _current;
1217public readonly KeyValuePair<TKey, TValue> Current => _current;
Symbols\Attributes\CommonAttributeData.cs (7)
48public ImmutableArray<KeyValuePair<string, TypedConstant>> NamedArguments { get { return CommonNamedArguments; } }
49protected internal abstract ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments { get; }
169private static T? DecodeNamedArgument<T>(ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, string name, SpecialType specialType, T? defaultValue = default)
175private static int IndexOfNamedArgument(ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, string name)
448foreach (var namedArg in attribute.CommonNamedArguments)
504foreach (var namedArg in attribute.CommonNamedArguments)
574internal static AttributeUsageInfo DecodeAttributeUsageAttribute(TypedConstant positionalArg, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArgs)
Microsoft.CodeAnalysis.Analyzers (166)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (8)
35internal sealed class SmallDictionary<K, V> : IEnumerable<KeyValuePair<K, V>>
55foreach (var kv in other)
763public KeyValuePair<K, V> Current => new KeyValuePair<K, V>(_current!.Key, _current!.Value);
803public class EnumerableImpl : IEnumerator<KeyValuePair<K, V>>
812KeyValuePair<K, V> IEnumerator<KeyValuePair<K, V>>.Current => _e.Current;
831IEnumerator<KeyValuePair<K, V>> IEnumerable<KeyValuePair<K, V>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (4)
35public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items)
39public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items)
43public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items)
56public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items, IEqualityComparer<TKey>? keyComparer)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (18)
106bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
157public ImmutableSegmentedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
183public bool Contains(KeyValuePair<TKey, TValue> pair)
232public ImmutableSegmentedDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
238foreach (var item in items)
318IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
324IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
332IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
341void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
342=> ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex);
356void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
359void ICollection<KeyValuePair<TKey, TValue>>.Clear()
362bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
374private static bool TryCastToImmutableSegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> pairs, out ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (12)
49bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => ICollectionCalls<KeyValuePair<TKey, TValue>>.IsReadOnly(ref _builder);
78public void Add(KeyValuePair<TKey, TValue> item)
81public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
87public bool Contains(KeyValuePair<TKey, TValue> item)
108public bool Remove(KeyValuePair<TKey, TValue> item)
125void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
126=> ICollectionCalls<KeyValuePair<TKey, TValue>>.CopyTo(ref _builder, array, arrayIndex);
128IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
129=> IEnumerableCalls<KeyValuePair<TKey, TValue>>.GetEnumerator(ref _builder);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (12)
70readonly bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
118public void Add(KeyValuePair<TKey, TValue> item)
121public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
126foreach (var pair in items)
146public readonly bool Contains(KeyValuePair<TKey, TValue> item)
185public bool Remove(KeyValuePair<TKey, TValue> item)
211foreach (var pair in this)
236readonly void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
237=> ((ICollection<KeyValuePair<TKey, TValue>>)ReadOnlyDictionary).CopyTo(array, arrayIndex);
239IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (27)
46private static IEnumerator<KeyValuePair<TKey, TValue>>? s_emptyEnumerator;
134public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)
139public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
140: this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
150private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> enumerable)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
195if (enumerable is KeyValuePair<TKey, TValue>[] array)
208foreach (var pair in enumerable)
216foreach (var pair in span)
270void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
273bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
284bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
358private void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
389IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
393private static IEnumerator<KeyValuePair<TKey, TValue>> GetEmptyEnumerator()
870bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
872void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
902if (array is KeyValuePair<TKey, TValue>[] pairs)
945=> ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1172public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1177private KeyValuePair<TKey, TValue> _current;
1217public readonly KeyValuePair<TKey, TValue> Current => _current;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (11)
37public static readonly IEnumerable<KeyValuePair<byte, string>> ByteSpecialValues = [];
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Microsoft.CodeAnalysis.AnalyzerUtilities (177)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (8)
35internal sealed class SmallDictionary<K, V> : IEnumerable<KeyValuePair<K, V>>
55foreach (var kv in other)
763public KeyValuePair<K, V> Current => new KeyValuePair<K, V>(_current!.Key, _current!.Value);
803public class EnumerableImpl : IEnumerator<KeyValuePair<K, V>>
812KeyValuePair<K, V> IEnumerator<KeyValuePair<K, V>>.Current => _e.Current;
831IEnumerator<KeyValuePair<K, V>> IEnumerable<KeyValuePair<K, V>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (4)
35public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items)
39public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items)
43public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items)
56public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items, IEqualityComparer<TKey>? keyComparer)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (18)
106bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
157public ImmutableSegmentedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
183public bool Contains(KeyValuePair<TKey, TValue> pair)
232public ImmutableSegmentedDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
238foreach (var item in items)
318IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
324IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
332IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
341void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
342=> ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex);
356void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
359void ICollection<KeyValuePair<TKey, TValue>>.Clear()
362bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
374private static bool TryCastToImmutableSegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> pairs, out ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (12)
49bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => ICollectionCalls<KeyValuePair<TKey, TValue>>.IsReadOnly(ref _builder);
78public void Add(KeyValuePair<TKey, TValue> item)
81public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
87public bool Contains(KeyValuePair<TKey, TValue> item)
108public bool Remove(KeyValuePair<TKey, TValue> item)
125void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
126=> ICollectionCalls<KeyValuePair<TKey, TValue>>.CopyTo(ref _builder, array, arrayIndex);
128IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
129=> IEnumerableCalls<KeyValuePair<TKey, TValue>>.GetEnumerator(ref _builder);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (12)
70readonly bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
118public void Add(KeyValuePair<TKey, TValue> item)
121public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
126foreach (var pair in items)
146public readonly bool Contains(KeyValuePair<TKey, TValue> item)
185public bool Remove(KeyValuePair<TKey, TValue> item)
211foreach (var pair in this)
236readonly void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
237=> ((ICollection<KeyValuePair<TKey, TValue>>)ReadOnlyDictionary).CopyTo(array, arrayIndex);
239IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (27)
46private static IEnumerator<KeyValuePair<TKey, TValue>>? s_emptyEnumerator;
134public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)
139public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
140: this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
150private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> enumerable)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
195if (enumerable is KeyValuePair<TKey, TValue>[] array)
208foreach (var pair in enumerable)
216foreach (var pair in span)
270void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
273bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
284bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
358private void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
389IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
393private static IEnumerator<KeyValuePair<TKey, TValue>> GetEmptyEnumerator()
870bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
872void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
902if (array is KeyValuePair<TKey, TValue>[] pairs)
945=> ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1172public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1177private KeyValuePair<TKey, TValue> _current;
1217public readonly KeyValuePair<TKey, TValue> Current => _current;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysisData.cs (1)
129foreach (var kvp in map)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
63foreach (var kvp in _info)
Microsoft.CodeAnalysis.CodeStyle (118)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (8)
35internal sealed class SmallDictionary<K, V> : IEnumerable<KeyValuePair<K, V>>
55foreach (var kv in other)
763public KeyValuePair<K, V> Current => new KeyValuePair<K, V>(_current!.Key, _current!.Value);
803public class EnumerableImpl : IEnumerator<KeyValuePair<K, V>>
812KeyValuePair<K, V> IEnumerator<KeyValuePair<K, V>>.Current => _e.Current;
831IEnumerator<KeyValuePair<K, V>> IEnumerable<KeyValuePair<K, V>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (4)
35public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items)
39public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items)
43public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items)
56public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items, IEqualityComparer<TKey>? keyComparer)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (18)
106bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
157public ImmutableSegmentedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
183public bool Contains(KeyValuePair<TKey, TValue> pair)
232public ImmutableSegmentedDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
238foreach (var item in items)
318IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
324IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
332IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
341void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
342=> ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex);
356void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
359void ICollection<KeyValuePair<TKey, TValue>>.Clear()
362bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
374private static bool TryCastToImmutableSegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> pairs, out ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (12)
49bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => ICollectionCalls<KeyValuePair<TKey, TValue>>.IsReadOnly(ref _builder);
78public void Add(KeyValuePair<TKey, TValue> item)
81public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
87public bool Contains(KeyValuePair<TKey, TValue> item)
108public bool Remove(KeyValuePair<TKey, TValue> item)
125void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
126=> ICollectionCalls<KeyValuePair<TKey, TValue>>.CopyTo(ref _builder, array, arrayIndex);
128IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
129=> IEnumerableCalls<KeyValuePair<TKey, TValue>>.GetEnumerator(ref _builder);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (12)
70readonly bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
118public void Add(KeyValuePair<TKey, TValue> item)
121public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
126foreach (var pair in items)
146public readonly bool Contains(KeyValuePair<TKey, TValue> item)
185public bool Remove(KeyValuePair<TKey, TValue> item)
211foreach (var pair in this)
236readonly void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
237=> ((ICollection<KeyValuePair<TKey, TValue>>)ReadOnlyDictionary).CopyTo(array, arrayIndex);
239IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (27)
46private static IEnumerator<KeyValuePair<TKey, TValue>>? s_emptyEnumerator;
134public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)
139public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
140: this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
150private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> enumerable)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
195if (enumerable is KeyValuePair<TKey, TValue>[] array)
208foreach (var pair in enumerable)
216foreach (var pair in span)
270void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
273bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
284bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
358private void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
389IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
393private static IEnumerator<KeyValuePair<TKey, TValue>> GetEmptyEnumerator()
870bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
872void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
902if (array is KeyValuePair<TKey, TValue>[] pairs)
945=> ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1172public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1177private KeyValuePair<TKey, TValue> _current;
1217public readonly KeyValuePair<TKey, TValue> Current => _current;
Microsoft.CodeAnalysis.CodeStyle.Fixes (15)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (11)
37public static readonly IEnumerable<KeyValuePair<byte, string>> ByteSpecialValues = [];
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Microsoft.CodeAnalysis.CSharp (129)
Binder\Binder_Attributes.cs (6)
790public ImmutableArray<KeyValuePair<string, TypedConstant>> VisitNamedArguments(ImmutableArray<BoundAssignmentOperator> arguments, BindingDiagnosticBag diagnostics, ref bool attrHasErrors)
792ArrayBuilder<KeyValuePair<string, TypedConstant>>? builder = null;
801builder = ArrayBuilder<KeyValuePair<string, TypedConstant>>.GetInstance();
810return ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty;
816private KeyValuePair<String, TypedConstant>? VisitNamedArgument(BoundAssignmentOperator assignment, BindingDiagnosticBag diagnostics, ref bool attrHasErrors)
818KeyValuePair<String, TypedConstant>? visitedArgument = null;
CSharpCompilationOptions.cs (9)
74IEnumerable<KeyValuePair<string, ReportDiagnostic>>? specificDiagnosticOptions = null,
124IEnumerable<KeyValuePair<string, ReportDiagnostic>>? specificDiagnosticOptions,
169IEnumerable<KeyValuePair<string, ReportDiagnostic>>? specificDiagnosticOptions,
211IEnumerable<KeyValuePair<string, ReportDiagnostic>>? specificDiagnosticOptions,
478protected override CompilationOptions CommonWithSpecificDiagnosticOptions(IEnumerable<KeyValuePair<string, ReportDiagnostic>>? specificDiagnosticOptions) =>
509public new CSharpCompilationOptions WithSpecificDiagnosticOptions(IEnumerable<KeyValuePair<string, ReportDiagnostic>>? values) =>
865IEnumerable<KeyValuePair<string, ReportDiagnostic>>? specificDiagnosticOptions,
904IEnumerable<KeyValuePair<string, ReportDiagnostic>>? specificDiagnosticOptions,
948IEnumerable<KeyValuePair<string, ReportDiagnostic>>? specificDiagnosticOptions,
Emitter\Model\PEAssemblyBuilder.cs (14)
215ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
227ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
241ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
255ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
270ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
284ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
298ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
326ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
340ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
354ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
368ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
382ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
401ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
415ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
Emitter\NoPia\EmbeddedTypesManager.cs (5)
165internal override CSharpAttributeData CreateSynthesizedAttribute(WellKnownMember constructor, ImmutableArray<TypedConstant> constructorArguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics)
181ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
190ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
197internal override CSharpAttributeData CreateSynthesizedAttribute(SpecialMember constructor, ImmutableArray<TypedConstant> constructorArguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics)
208internal override bool TryGetAttributeArguments(CSharpAttributeData attrData, out ImmutableArray<TypedConstant> constructorArguments, out ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics)
Symbols\Source\SynthesizedAttributeData.cs (5)
17public static SynthesizedAttributeData Create(CSharpCompilation compilation, MethodSymbol wellKnownMember, ImmutableArray<TypedConstant> arguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments)
32private readonly ImmutableArray<KeyValuePair<string, TypedConstant>> _namedArguments;
34internal FromMethodAndArguments(CSharpCompilation compilation, MethodSymbol wellKnownMember, ImmutableArray<TypedConstant> arguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments)
50protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments => _namedArguments;
80protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments => _original.CommonNamedArguments;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (4)
239ITypeSymbol? type, T value, IEnumerable<KeyValuePair<T, string>> constants,
250ITypeSymbol? type, T value, IEnumerable<KeyValuePair<T, string>> constants,
286private static ExpressionSyntax? GenerateFieldReference<T>(ITypeSymbol? type, T value, IEnumerable<KeyValuePair<T, string>> constants)
289foreach (var constant in constants)
Microsoft.CodeAnalysis.CSharp.Features (17)
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (4)
239ITypeSymbol? type, T value, IEnumerable<KeyValuePair<T, string>> constants,
250ITypeSymbol? type, T value, IEnumerable<KeyValuePair<T, string>> constants,
286private static ExpressionSyntax? GenerateFieldReference<T>(ITypeSymbol? type, T value, IEnumerable<KeyValuePair<T, string>> constants)
289foreach (var constant in constants)
Microsoft.CodeAnalysis.Extensions.Package (89)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (4)
35public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items)
39public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items)
43public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items)
56public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items, IEqualityComparer<TKey>? keyComparer)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (18)
106bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
157public ImmutableSegmentedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
183public bool Contains(KeyValuePair<TKey, TValue> pair)
232public ImmutableSegmentedDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
238foreach (var item in items)
318IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
324IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
332IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
341void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
342=> ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex);
356void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
359void ICollection<KeyValuePair<TKey, TValue>>.Clear()
362bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
374private static bool TryCastToImmutableSegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> pairs, out ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (12)
49bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => ICollectionCalls<KeyValuePair<TKey, TValue>>.IsReadOnly(ref _builder);
78public void Add(KeyValuePair<TKey, TValue> item)
81public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
87public bool Contains(KeyValuePair<TKey, TValue> item)
108public bool Remove(KeyValuePair<TKey, TValue> item)
125void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
126=> ICollectionCalls<KeyValuePair<TKey, TValue>>.CopyTo(ref _builder, array, arrayIndex);
128IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
129=> IEnumerableCalls<KeyValuePair<TKey, TValue>>.GetEnumerator(ref _builder);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (12)
70readonly bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
118public void Add(KeyValuePair<TKey, TValue> item)
121public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
126foreach (var pair in items)
146public readonly bool Contains(KeyValuePair<TKey, TValue> item)
185public bool Remove(KeyValuePair<TKey, TValue> item)
211foreach (var pair in this)
236readonly void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
237=> ((ICollection<KeyValuePair<TKey, TValue>>)ReadOnlyDictionary).CopyTo(array, arrayIndex);
239IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (27)
46private static IEnumerator<KeyValuePair<TKey, TValue>>? s_emptyEnumerator;
134public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)
139public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
140: this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
150private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> enumerable)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
195if (enumerable is KeyValuePair<TKey, TValue>[] array)
208foreach (var pair in enumerable)
216foreach (var pair in span)
270void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
273bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
284bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
358private void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
389IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
393private static IEnumerator<KeyValuePair<TKey, TValue>> GetEmptyEnumerator()
870bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
872void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
902if (array is KeyValuePair<TKey, TValue>[] pairs)
945=> ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1172public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1177private KeyValuePair<TKey, TValue> _current;
1217public readonly KeyValuePair<TKey, TValue> Current => _current;
Microsoft.CodeAnalysis.Features (66)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (7)
28private readonly IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>> _diagnosticsBySymbol;
33IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>> diagnosticsBySymbol,
152private static async Task<IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>>> CreateDiagnosticsBySymbolAsync(AbstractSuppressionCodeFixProvider fixer, IEnumerable<KeyValuePair<Document, ImmutableArray<Diagnostic>>> diagnosticsByDocument, CancellationToken cancellationToken)
173private static async Task<IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>>> CreateDiagnosticsBySymbolAsync(Project project, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken)
206private static IEnumerable<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>> CreateDiagnosticsBySymbol(ImmutableDictionary<ISymbol, List<Diagnostic>>.Builder diagnosticsMapBuilder)
211var builder = new List<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>>();
Completion\Providers\SymbolCompletionItem.cs (11)
24private static readonly Action<ImmutableArray<ISymbol>, ArrayBuilder<KeyValuePair<string, string>>> s_addSymbolEncoding = AddSymbolEncoding;
25private static readonly Action<ImmutableArray<ISymbol>, ArrayBuilder<KeyValuePair<string, string>>> s_addSymbolInfo = AddSymbolInfo;
36Action<ImmutableArray<ISymbol>, ArrayBuilder<KeyValuePair<string, string>>> symbolEncoder,
41ImmutableArray<KeyValuePair<string, string>> properties = default,
48using var _ = ArrayBuilder<KeyValuePair<string, string>>.GetInstance(out var builder);
82private static void AddSymbolEncoding(ImmutableArray<ISymbol> symbols, ArrayBuilder<KeyValuePair<string, string>> properties)
85private static void AddSymbolInfo(ImmutableArray<ISymbol> symbols, ArrayBuilder<KeyValuePair<string, string>> properties)
230private static void AddContextPosition(ArrayBuilder<KeyValuePair<string, string>> properties, int contextPosition)
250private static void AddSupportedPlatforms(ArrayBuilder<KeyValuePair<string, string>> properties, SupportedPlatformData? supportedPlatforms)
372ImmutableArray<KeyValuePair<string, string>> properties = default,
396ImmutableArray<KeyValuePair<string, string>> properties = default,
Microsoft.CodeAnalysis.Features.ExternalAccess (1)
Microsoft.CodeAnalysis.NetAnalyzers (120)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysisData.cs (1)
128foreach (var kvp in map)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (1)
62foreach (var kvp in _info)
Microsoft.CodeAnalysis.Razor.Compiler (16)
Microsoft.CodeAnalysis.ResxSourceGenerator (140)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (8)
35internal sealed class SmallDictionary<K, V> : IEnumerable<KeyValuePair<K, V>>
55foreach (var kv in other)
763public KeyValuePair<K, V> Current => new KeyValuePair<K, V>(_current!.Key, _current!.Value);
803public class EnumerableImpl : IEnumerator<KeyValuePair<K, V>>
812KeyValuePair<K, V> IEnumerator<KeyValuePair<K, V>>.Current => _e.Current;
831IEnumerator<KeyValuePair<K, V>> IEnumerable<KeyValuePair<K, V>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (4)
35public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items)
39public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items)
43public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items)
56public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items, IEqualityComparer<TKey>? keyComparer)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (18)
106bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
157public ImmutableSegmentedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
183public bool Contains(KeyValuePair<TKey, TValue> pair)
232public ImmutableSegmentedDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
238foreach (var item in items)
318IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
324IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
332IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
341void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
342=> ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex);
356void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
359void ICollection<KeyValuePair<TKey, TValue>>.Clear()
362bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
374private static bool TryCastToImmutableSegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> pairs, out ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (12)
49bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => ICollectionCalls<KeyValuePair<TKey, TValue>>.IsReadOnly(ref _builder);
78public void Add(KeyValuePair<TKey, TValue> item)
81public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
87public bool Contains(KeyValuePair<TKey, TValue> item)
108public bool Remove(KeyValuePair<TKey, TValue> item)
125void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
126=> ICollectionCalls<KeyValuePair<TKey, TValue>>.CopyTo(ref _builder, array, arrayIndex);
128IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
129=> IEnumerableCalls<KeyValuePair<TKey, TValue>>.GetEnumerator(ref _builder);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (12)
70readonly bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
118public void Add(KeyValuePair<TKey, TValue> item)
121public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
126foreach (var pair in items)
146public readonly bool Contains(KeyValuePair<TKey, TValue> item)
185public bool Remove(KeyValuePair<TKey, TValue> item)
211foreach (var pair in this)
236readonly void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
237=> ((ICollection<KeyValuePair<TKey, TValue>>)ReadOnlyDictionary).CopyTo(array, arrayIndex);
239IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (27)
46private static IEnumerator<KeyValuePair<TKey, TValue>>? s_emptyEnumerator;
134public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)
139public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
140: this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
150private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> enumerable)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
195if (enumerable is KeyValuePair<TKey, TValue>[] array)
208foreach (var pair in enumerable)
216foreach (var pair in span)
270void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
273bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
284bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
358private void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
389IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
393private static IEnumerator<KeyValuePair<TKey, TValue>> GetEmptyEnumerator()
870bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
872void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
902if (array is KeyValuePair<TKey, TValue>[] pairs)
945=> ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1172public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1177private KeyValuePair<TKey, TValue> _current;
1217public readonly KeyValuePair<TKey, TValue> Current => _current;
Microsoft.CodeAnalysis.Scripting (3)
Microsoft.CodeAnalysis.VisualBasic (63)
Binding\Binder_XmlLiterals.vb (15)
118Dim importedNamespaces = ArrayBuilder(Of KeyValuePair(Of String, String)).GetInstance()
237Dim inScopeXmlNamespaces As ImmutableArray(Of KeyValuePair(Of String, String)) = Nothing
286Dim builder = ArrayBuilder(Of KeyValuePair(Of String, String)).GetInstance()
825importedNamespaces As ArrayBuilder(Of KeyValuePair(Of String, String)),
1078importedNamespaces As ArrayBuilder(Of KeyValuePair(Of String, String)),
1318Private ReadOnly _importedNamespaces As ArrayBuilder(Of KeyValuePair(Of String, String))
1322Public Sub New(binder As Binder, syntax As XmlNodeSyntax, importedNamespaces As ArrayBuilder(Of KeyValuePair(Of String, String)))
1334Public ReadOnly Property ImportedNamespaces As ArrayBuilder(Of KeyValuePair(Of String, String))
1383importedNamespaces As ImmutableArray(Of KeyValuePair(Of String, String)),
1384inScopeXmlNamespaces As ImmutableArray(Of KeyValuePair(Of String, String)),
1414Public ReadOnly ImportedNamespaces As ImmutableArray(Of KeyValuePair(Of String, String))
1415Public ReadOnly InScopeXmlNamespaces As ImmutableArray(Of KeyValuePair(Of String, String))
1468Friend Overrides Sub GetInScopeXmlNamespaces(builder As ArrayBuilder(Of KeyValuePair(Of String, String)))
1496Friend Overrides Sub GetInScopeXmlNamespaces(builder As ArrayBuilder(Of KeyValuePair(Of String, String)))
1516Friend Overrides Sub GetInScopeXmlNamespaces(builder As ArrayBuilder(Of KeyValuePair(Of String, String)))
Symbols\TypeSubstitution.vb (16)
73Private ReadOnly _pairs As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers))
85Public ReadOnly Property Pairs As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers))
95Public ReadOnly Property PairsIncludingParent As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers))
100Dim pairBuilder = ArrayBuilder(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).GetInstance()
108Private Sub AddPairsIncludingParentToBuilder(pairBuilder As ArrayBuilder(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)))
342Return Concat(sub1, targetGenericDefinition, ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).Empty)
413Dim pairs = ArrayBuilder(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).GetInstance()
463currentParent = Concat(currentParent, targetGenericDefinition, ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).Empty)
513pairs As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers))
526Concat(parent, containingType, ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).Empty))
556Private Sub New(targetGenericDefinition As Symbol, pairs As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)), parent As TypeSubstitution)
606Dim pairs(typeParametersDefinitions.Length - 1) As KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)
666Dim pairs(countOfMeaningfulPairs - 1) As KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)
710Dim pairs = ArrayBuilder(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).GetInstance()
744pairs As ArrayBuilder(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)),
848Dim pairs(significantMaps - 1) As KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)
Microsoft.CodeAnalysis.Workspaces (172)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (8)
35internal sealed class SmallDictionary<K, V> : IEnumerable<KeyValuePair<K, V>>
55foreach (var kv in other)
763public KeyValuePair<K, V> Current => new KeyValuePair<K, V>(_current!.Key, _current!.Value);
803public class EnumerableImpl : IEnumerator<KeyValuePair<K, V>>
812KeyValuePair<K, V> IEnumerator<KeyValuePair<K, V>>.Current => _e.Current;
831IEnumerator<KeyValuePair<K, V>> IEnumerable<KeyValuePair<K, V>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (4)
35public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items)
39public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items)
43public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items)
56public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items, IEqualityComparer<TKey>? keyComparer)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (18)
106bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
157public ImmutableSegmentedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
183public bool Contains(KeyValuePair<TKey, TValue> pair)
232public ImmutableSegmentedDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
238foreach (var item in items)
318IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
324IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
332IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
341void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
342=> ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex);
356void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
359void ICollection<KeyValuePair<TKey, TValue>>.Clear()
362bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
374private static bool TryCastToImmutableSegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> pairs, out ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (12)
49bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => ICollectionCalls<KeyValuePair<TKey, TValue>>.IsReadOnly(ref _builder);
78public void Add(KeyValuePair<TKey, TValue> item)
81public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
87public bool Contains(KeyValuePair<TKey, TValue> item)
108public bool Remove(KeyValuePair<TKey, TValue> item)
125void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
126=> ICollectionCalls<KeyValuePair<TKey, TValue>>.CopyTo(ref _builder, array, arrayIndex);
128IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
129=> IEnumerableCalls<KeyValuePair<TKey, TValue>>.GetEnumerator(ref _builder);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (12)
70readonly bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
118public void Add(KeyValuePair<TKey, TValue> item)
121public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
126foreach (var pair in items)
146public readonly bool Contains(KeyValuePair<TKey, TValue> item)
185public bool Remove(KeyValuePair<TKey, TValue> item)
211foreach (var pair in this)
236readonly void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
237=> ((ICollection<KeyValuePair<TKey, TValue>>)ReadOnlyDictionary).CopyTo(array, arrayIndex);
239IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (29)
46private static IEnumerator<KeyValuePair<TKey, TValue>>? s_emptyEnumerator;
134public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)
139public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
140: this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
150private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> enumerable)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
195if (enumerable is KeyValuePair<TKey, TValue>[] array)
200else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>))
202span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
208foreach (var pair in enumerable)
216foreach (var pair in span)
270void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
273bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
284bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
358private void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
389IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
393private static IEnumerator<KeyValuePair<TKey, TValue>> GetEmptyEnumerator()
870bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
872void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
902if (array is KeyValuePair<TKey, TValue>[] pairs)
945=> ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1172public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1177private KeyValuePair<TKey, TValue> _current;
1217public readonly KeyValuePair<TKey, TValue> Current => _current;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (11)
37public static readonly IEnumerable<KeyValuePair<byte, string>> ByteSpecialValues = [];
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
Microsoft.CSharp (10)
Microsoft.Data.Analysis (9)
Microsoft.Diagnostics.DataContractReader (6)
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Microsoft.Diagnostics.DataContractReader.DataGenerator (3)
Microsoft.DotNet.ApiCompatibility (6)
Microsoft.DotNet.ApiSymbolExtensions (2)
Microsoft.DotNet.Arcade.Sdk (6)
Microsoft.DotNet.Build.Manifest (5)
Microsoft.DotNet.Build.Tasks.Installers (2)
Microsoft.DotNet.Build.Tasks.Packaging (23)
Microsoft.DotNet.Cli.Telemetry (8)
Microsoft.DotNet.Cli.Utils (8)
Microsoft.DotNet.HotReload.Utils.Generator (4)
Microsoft.DotNet.HotReload.Watch (6)
Microsoft.DotNet.PackageTesting (1)
Microsoft.DotNet.ProjectTools (3)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.TemplateLocator (11)
Microsoft.Extensions.AI (24)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (12)
27public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => EmptyReadOnlyList<KeyValuePair<TKey, TValue>>.Instance.GetEnumerator();
32bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
53void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
60void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
61bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) => false;
62bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => false;
Microsoft.Extensions.AI.Abstractions (58)
AdditionalPropertiesDictionary{TValue}.cs (21)
40public AdditionalPropertiesDictionary(IEnumerable<KeyValuePair<string, TValue>> collection)
46foreach (var item in collection)
77bool ICollection<KeyValuePair<string, TValue>>.IsReadOnly => false;
108void ICollection<KeyValuePair<string, TValue>>.Add(KeyValuePair<string, TValue> item) => ((ICollection<KeyValuePair<string, TValue>>)_dictionary).Add(item);
114bool ICollection<KeyValuePair<string, TValue>>.Contains(KeyValuePair<string, TValue> item) =>
115((ICollection<KeyValuePair<string, TValue>>)_dictionary).Contains(item);
121void ICollection<KeyValuePair<string, TValue>>.CopyTo(KeyValuePair<string, TValue>[] array, int arrayIndex) =>
122((ICollection<KeyValuePair<string, TValue>>)_dictionary).CopyTo(array, arrayIndex);
131IEnumerator<KeyValuePair<string, TValue>> IEnumerable<KeyValuePair<string, TValue>>.GetEnumerator() => GetEnumerator();
140bool ICollection<KeyValuePair<string, TValue>>.Remove(KeyValuePair<string, TValue> item) => ((ICollection<KeyValuePair<string, TValue>>)_dictionary).Remove(item);
203internal void SetAll(IEnumerable<KeyValuePair<string, TValue>> items)
207foreach (var item in items)
214public struct Enumerator : IEnumerator<KeyValuePair<string, TValue>>
227public KeyValuePair<string, TValue> Current => _dictionaryEnumerator.Current;
Functions\AIFunctionArguments.cs (13)
114bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => false;
126void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> item) =>
127((ICollection<KeyValuePair<string, object?>>)_arguments).Add(item);
133bool ICollection<KeyValuePair<string, object?>>.Contains(KeyValuePair<string, object?> item) =>
134((ICollection<KeyValuePair<string, object?>>)_arguments).Contains(item);
140public void CopyTo(KeyValuePair<string, object?>[] array, int arrayIndex) =>
141((ICollection<KeyValuePair<string, object?>>)_arguments).CopyTo(array, arrayIndex);
144public IEnumerator<KeyValuePair<string, object?>> GetEnumerator() => _arguments.GetEnumerator();
150bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item) =>
151((ICollection<KeyValuePair<string, object?>>)_arguments).Remove(item);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (12)
27public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => EmptyReadOnlyList<KeyValuePair<TKey, TValue>>.Instance.GetEnumerator();
32bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
53void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
60void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
61bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) => false;
62bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => false;
Microsoft.Extensions.AI.Abstractions.Tests (15)
Microsoft.Extensions.AI.Evaluation (1)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Evaluation.NLP (5)
Microsoft.Extensions.AI.Evaluation.Reporting (4)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (4)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.OpenAI (6)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Stabilization.Tests (1)
Microsoft.Extensions.AI.Tests (8)
Microsoft.Extensions.Caching.Hybrid.Tests (3)
Microsoft.Extensions.Caching.Memory (5)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Configuration (12)
Microsoft.Extensions.Configuration.Abstractions (2)
Microsoft.Extensions.Configuration.Binder (1)
Microsoft.Extensions.Configuration.CommandLine (1)
Microsoft.Extensions.DataIngestion (2)
Microsoft.Extensions.DataIngestion.Tests (1)
Microsoft.Extensions.DependencyInjection (3)
Microsoft.Extensions.Diagnostics (15)
src\runtime\src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (9)
22internal static unsafe bool CompareTags(IList<KeyValuePair<string, object?>>? sortedTags, IEnumerable<KeyValuePair<string, object?>>? tags2)
38if (tags2 is ICollection<KeyValuePair<string, object?>> tagsCol)
45if (tagsCol is IList<KeyValuePair<string, object?>> secondList)
49KeyValuePair<string, object?> pair = secondList[i];
59KeyValuePair<string, object?> pair1 = sortedTags[j];
80using (IEnumerator<KeyValuePair<string, object?>> enumerator = tags2.GetEnumerator())
90KeyValuePair<string, object?> pair = enumerator.Current;
99KeyValuePair<string, object?> pair1 = sortedTags[j];
Microsoft.Extensions.Diagnostics.HealthChecks (12)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (10)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (9)
Windows\Disk\WindowsDiskMetricsTests.cs (8)
79var readTag = new KeyValuePair<string, object?>("disk.io.direction", "read");
80var writeTag = new KeyValuePair<string, object?>("disk.io.direction", "write");
81var deviceTagC = new KeyValuePair<string, object?>("system.device", "C:");
82var deviceTagD = new KeyValuePair<string, object?>("system.device", "D:");
153var readTag = new KeyValuePair<string, object?>("disk.io.direction", "read");
154var writeTag = new KeyValuePair<string, object?>("disk.io.direction", "write");
155var deviceTagC = new KeyValuePair<string, object?>("system.device", "C:");
156var deviceTagD = new KeyValuePair<string, object?>("system.device", "D:");
Microsoft.Extensions.Diagnostics.Testing (16)
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Microsoft.Extensions.Features (9)
Microsoft.Extensions.FileProviders.Physical (3)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Hosting (4)
Microsoft.Extensions.Hosting.Testing (1)
Microsoft.Extensions.Http (9)
Logging\HttpHeadersLogValue.cs (9)
12internal sealed class HttpHeadersLogValue : IReadOnlyList<KeyValuePair<string, object>>
20private List<KeyValuePair<string, object>>? _values;
35private List<KeyValuePair<string, object>> Values
41var values = new List<KeyValuePair<string, object>>(GetHeaderCount(Headers) + GetHeaderCount(ContentHeaders));
57public KeyValuePair<string, object> this[int index]
74private void AddHeaders(List<KeyValuePair<string, object>> values, HttpHeaders headers)
77foreach (KeyValuePair<string, HeaderStringValues> kvp in headers.NonValidated)
102public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
121KeyValuePair<string, object> kvp = Values[i];
Microsoft.Extensions.Http.Diagnostics (34)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (12)
27public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => EmptyReadOnlyList<KeyValuePair<TKey, TValue>>.Instance.GetEnumerator();
32bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
53void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
60void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
61bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) => false;
62bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => false;
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
Microsoft.Extensions.Http.Diagnostics.Tests (60)
Logging\HttpClientLoggerTest.cs (6)
132It.IsAny<List<KeyValuePair<string, string>>>(),
533It.IsAny<List<KeyValuePair<string, string>>>(),
535.Returns((LogRecord a, HttpRequestMessage b, List<KeyValuePair<string, string>> c, CancellationToken d) =>
542It.IsAny<List<KeyValuePair<string, string>>>(),
984.Setup(r => r.ReadResponseAsync(It.IsAny<LogRecord>(), It.IsAny<HttpResponseMessage>(), It.IsAny<List<KeyValuePair<string, string>>?>(), It.IsAny<CancellationToken>()))
1038var pair = logRecord.StructuredState!.Last();
Logging\HttpHeadersReaderTest.cs (9)
28var buffer = new List<KeyValuePair<string, string>>();
66var buffer = new List<KeyValuePair<string, string>>();
82var requestBuffer = new List<KeyValuePair<string, string>>();
83var responseBuffer = new List<KeyValuePair<string, string>>();
149List<KeyValuePair<string, string>> expectedRequest = [new KeyValuePair<string, string>("Header1", "Value.1")];
150List<KeyValuePair<string, string>> expectedResponse = [new KeyValuePair<string, string>("Header3", "Value.3")];
160List<KeyValuePair<string, string>> requestBuffer = [];
164List<KeyValuePair<string, string>> responseBuffer = [];
175List<KeyValuePair<string, string>>? responseBuffer = null;
Logging\HttpRequestReaderTest.cs (37)
45var header1 = new KeyValuePair<string, string>("Header1", "Value1");
46var header2 = new KeyValuePair<string, string>("Header2", "Value2");
47var header3 = new KeyValuePair<string, string>("Header3", "Value3");
103var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
104var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
162var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
163var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
175var header1 = new KeyValuePair<string, string>("Header1", "Value1");
176var header2 = new KeyValuePair<string, string>("Header2", "Value2");
234var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
235var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
248var header1 = new KeyValuePair<string, string>("Header1", "Value1");
249var header2 = new KeyValuePair<string, string>("Header2", "Value2");
310var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
311var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
326var header1 = new KeyValuePair<string, string>("Header1", "Value1");
327var header2 = new KeyValuePair<string, string>("Header2", "Value2");
371var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
372var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
384var header1 = new KeyValuePair<string, string>("Header1", "Value1");
385var header2 = new KeyValuePair<string, string>("Header2", "Value2");
443var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
444var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
457var header1 = new KeyValuePair<string, string>("Header1", "Value1");
458var header2 = new KeyValuePair<string, string>("Header2", "Value2");
512var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
513var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
526var header1 = new KeyValuePair<string, string>("Header1", "Value1");
527var header2 = new KeyValuePair<string, string>("Header2", "Value2");
582var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
583var responseHeadersBuffer = new List<KeyValuePair<string, string>>();
669var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
698await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
728await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
764await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
853await reader.ReadRequestAsync(logRecord, httpRequestMessage, new List<KeyValuePair<string, string>>(), CancellationToken.None);
909var requestHeadersBuffer = new List<KeyValuePair<string, string>>();
Microsoft.Extensions.Http.Resilience (4)
Microsoft.Extensions.Http.Resilience.Tests (5)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.Logging (18)
LoggerFactoryScopeProvider.cs (16)
63IEnumerable<KeyValuePair<string, string?>> baggage = activity.Baggage;
78private static ActivityBaggageLogScopeWrapper GetOrCreateActivityBaggageLogScopeWrapper(Activity activity, IEnumerable<KeyValuePair<string, string?>> items)
131private sealed class ActivityLogScope : IReadOnlyList<KeyValuePair<string, object?>>
135private readonly KeyValuePair<string, object?>[] _items = new KeyValuePair<string, object?>[MaxItems];
173public KeyValuePair<string, object?> this[int index]
209public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()
223private sealed class ActivityBaggageLogScopeWrapper : IEnumerable<KeyValuePair<string, object?>>
225private readonly IEnumerable<KeyValuePair<string, string?>> _items;
229public ActivityBaggageLogScopeWrapper(IEnumerable<KeyValuePair<string, string?>> items)
234public IEnumerator<KeyValuePair<string, object?>> GetEnumerator() => new BaggageEnumerator(_items.GetEnumerator());
242IEnumerator<KeyValuePair<string, string?>> enumerator = _items.GetEnumerator();
267private struct BaggageEnumerator : IEnumerator<KeyValuePair<string, object?>>
269private readonly IEnumerator<KeyValuePair<string, string?>> _enumerator;
271public BaggageEnumerator(IEnumerator<KeyValuePair<string, string?>> enumerator)
276public KeyValuePair<string, object?> Current => new KeyValuePair<string, object?>(_enumerator.Current.Key, _enumerator.Current.Value);
Microsoft.Extensions.Logging.Abstractions (33)
LoggerMessage.cs (21)
466private readonly struct LogValues : IReadOnlyList<KeyValuePair<string, object?>>
477public KeyValuePair<string, object?> this[int index]
491public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()
504private readonly struct LogValues<T0> : IReadOnlyList<KeyValuePair<string, object?>>
517public KeyValuePair<string, object?> this[int index]
535public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()
552private readonly struct LogValues<T0, T1> : IReadOnlyList<KeyValuePair<string, object?>>
567public KeyValuePair<string, object?> this[int index]
587public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()
603private readonly struct LogValues<T0, T1, T2> : IReadOnlyList<KeyValuePair<string, object?>>
614public KeyValuePair<string, object?> this[int index]
644public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()
658private readonly struct LogValues<T0, T1, T2, T3> : IReadOnlyList<KeyValuePair<string, object?>>
670public KeyValuePair<string, object?> this[int index]
705public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()
719private readonly struct LogValues<T0, T1, T2, T3, T4> : IReadOnlyList<KeyValuePair<string, object?>>
732public KeyValuePair<string, object?> this[int index]
770public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()
784private readonly struct LogValues<T0, T1, T2, T3, T4, T5> : IReadOnlyList<KeyValuePair<string, object?>>
798public KeyValuePair<string, object?> this[int index]
839public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()
Microsoft.Extensions.Logging.Configuration (1)
Microsoft.Extensions.Logging.Console (8)
JsonConsoleFormatter.cs (6)
51logEntry.State != null, logEntry.State?.ToString(), logEntry.State as IReadOnlyList<KeyValuePair<string, object?>>, stamp);
56string category, int eventId, string? exception, bool hasState, string? stateMessage, IReadOnlyList<KeyValuePair<string, object?>>? stateProperties,
92foreach (KeyValuePair<string, object?> item in stateProperties)
140if (scope is IEnumerable<KeyValuePair<string, object?>> scopeItems)
144foreach (KeyValuePair<string, object?> item in scopeItems)
159private static void WriteItem(Utf8JsonWriter writer, KeyValuePair<string, object?> item)
Microsoft.Extensions.Logging.EventLog (2)
Microsoft.Extensions.Logging.EventSource (16)
EventSourceLogger.cs (12)
132IReadOnlyList<KeyValuePair<string, string?>> arguments = GetProperties(state);
154KeyValuePair<string, string?>[] exceptionInfoData = new[]
164IReadOnlyList<KeyValuePair<string, string?>> arguments = GetProperties(state);
193IReadOnlyList<KeyValuePair<string, string?>> arguments = GetProperties(state);
201IReadOnlyList<KeyValuePair<string, string?>> arguments = GetProperties(state);
257private static KeyValuePair<string, string?>[] GetProperties(object? state)
259if (state is IReadOnlyList<KeyValuePair<string, object?>> keyValuePairs)
261var arguments = new KeyValuePair<string, string?>[keyValuePairs.Count];
264KeyValuePair<string, object?> keyValuePair = keyValuePairs[i];
270return Array.Empty<KeyValuePair<string, string?>>();
273private static string ToJson(IReadOnlyList<KeyValuePair<string, string?>> keyValues)
284foreach (KeyValuePair<string, string?> keyValue in keyValues)
LoggingEventSource.cs (4)
200[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(KeyValuePair<string, string>))]
211IEnumerable<KeyValuePair<string, string?>> Arguments,
231[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(KeyValuePair<string, string>))]
234internal void ActivityStart(int ID, int FactoryID, string LoggerName, IEnumerable<KeyValuePair<string, string?>> Arguments)
Microsoft.Extensions.Logging.Generators (3)
Microsoft.Extensions.Logging.MSBuild (8)
MSBuildLogger.cs (8)
112private static void ProcessScope(object? scope, ref MSBuildMessageParameters message, ref string? originalFormat, List<KeyValuePair<string, object?>>? unprocessedKeyValues)
116foreach (var kvp in dict)
172private static void ApplyUnprocessedItemsToMessage(List<KeyValuePair<string, object?>>? unprocessedStateItems, string originalFormat, SpanBasedStringBuilder builder)
178foreach (var kvp in unprocessedStateItems)
189private static List<KeyValuePair<string, object?>>? ProcessState<TState>(TState state, ref MSBuildMessageParameters message, out string? originalFormat)
192List<KeyValuePair<string, object?>>? unmappedStateItems = null;
193if (state is IReadOnlyList<KeyValuePair<string, object?>> stateItems)
195foreach (var kvp in stateItems)
Microsoft.Extensions.Options.SourceGeneration (3)
Microsoft.Extensions.Resilience.PerformanceTests (1)
Microsoft.Extensions.Resilience.Tests (1)
Microsoft.Extensions.ServiceDiscovery (5)
Microsoft.Extensions.ServiceDiscovery.Abstractions (3)
Microsoft.Extensions.ServiceDiscovery.Dns (6)
Microsoft.Extensions.Telemetry (54)
Logging\Import\LoggerFactoryScopeProvider.cs (16)
78IEnumerable<KeyValuePair<string, string?>> baggage = activity.Baggage;
93private static ActivityBaggageLogScopeWrapper GetOrCreateActivityBaggageLogScopeWrapper(Activity activity, IEnumerable<KeyValuePair<string, string?>> items)
146private sealed class ActivityLogScope : IReadOnlyList<KeyValuePair<string, object?>>
150private readonly KeyValuePair<string, object?>[] _items = new KeyValuePair<string, object?>[MaxItems];
185public KeyValuePair<string, object?> this[int index]
221public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()
235private sealed class ActivityBaggageLogScopeWrapper : IEnumerable<KeyValuePair<string, object?>>
237private readonly IEnumerable<KeyValuePair<string, string?>> _items;
241public ActivityBaggageLogScopeWrapper(IEnumerable<KeyValuePair<string, string?>> items)
246public IEnumerator<KeyValuePair<string, object?>> GetEnumerator() =>
255IEnumerator<KeyValuePair<string, string?>> enumerator = _items.GetEnumerator();
280private readonly struct BaggageEnumerator : IEnumerator<KeyValuePair<string, object?>>
282private readonly IEnumerator<KeyValuePair<string, string?>> _enumerator;
284public BaggageEnumerator(IEnumerator<KeyValuePair<string, string?>> enumerator)
289public KeyValuePair<string, object?> Current =>
Microsoft.Extensions.Telemetry.Abstractions (11)
Microsoft.Extensions.Telemetry.Abstractions.Tests (5)
Microsoft.Extensions.Telemetry.PerformanceTests (4)
Microsoft.Extensions.Telemetry.Tests (31)
Logging\ExtendedLoggerTests.cs (15)
854var property = record.StructuredState!.Last();
890List<KeyValuePair<string, object?>> list =
899IEnumerable<KeyValuePair<string, object?>> enumerable =
900new List<KeyValuePair<string, object?>>
922var property = record.StructuredState!.Last();
1167private readonly KeyValuePair<string, object?>[] _values;
1169public ForcedEnricher(KeyValuePair<string, object?>[] values)
1176foreach (var kvp in _values)
1185private readonly KeyValuePair<string, object?>[] _values;
1188public FancyEnricher(KeyValuePair<string, object?>[] values, bool objectVersion)
1198var p = (KeyValuePair<string, object>[])(object)_values;
1199foreach (var kvp in p)
1206var a = new KeyValuePair<string, string>[_values.Length];
1208foreach (var kvp in _values)
1213foreach (var kvp in a)
Microsoft.Extensions.Validation.ValidationsGenerator (3)
Microsoft.Gen.BuildMetadata.Unit.Tests (12)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (12)
parent\parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (12)
27public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => EmptyReadOnlyList<KeyValuePair<TKey, TValue>>.Instance.GetEnumerator();
32bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
53void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
60void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
61bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) => false;
62bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => false;
Microsoft.Gen.ContextualOptions.Unit.Tests (14)
parent\parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (12)
27public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => EmptyReadOnlyList<KeyValuePair<TKey, TValue>>.Instance.GetEnumerator();
32bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
53void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
60void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
61bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) => false;
62bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => false;
Microsoft.Gen.Logging (3)
Microsoft.Gen.Logging.Generated.Tests (11)
Microsoft.Gen.Logging.Unit.Tests (14)
parent\parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (12)
27public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => EmptyReadOnlyList<KeyValuePair<TKey, TValue>>.Instance.GetEnumerator();
32bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
53void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
60void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
61bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) => false;
62bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => false;
Microsoft.Gen.MetadataExtractor (6)
Microsoft.Gen.MetadataExtractor.Unit.Tests (12)
Microsoft.Gen.Metrics (7)
Microsoft.Gen.Metrics.Generated.Tests (5)
Microsoft.Gen.Metrics.Unit.Tests (12)
parent\parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (12)
27public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => EmptyReadOnlyList<KeyValuePair<TKey, TValue>>.Instance.GetEnumerator();
32bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
53void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
60void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
61bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) => false;
62bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => false;
Microsoft.Gen.MetricsReports (5)
Microsoft.Gen.MetricsReports.Unit.Tests (12)
parent\parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (12)
27public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => EmptyReadOnlyList<KeyValuePair<TKey, TValue>>.Instance.GetEnumerator();
32bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
53void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
60void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
61bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) => false;
62bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => false;
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.LibraryImportGenerator (3)
Microsoft.Interop.SourceGeneration (20)
ValueEqualityImmutableDictionary.cs (13)
23foreach (var kvp in this)
39foreach (var kvp in Map.ToImmutableArray().Sort())
50public bool IsReadOnly => ((ICollection<KeyValuePair<T, U>>)Map).IsReadOnly;
51public bool Contains(KeyValuePair<T, U> item) => Map.Contains(item);
53public void CopyTo(KeyValuePair<T, U>[] array, int arrayIndex) => ((ICollection<KeyValuePair<T, U>>)Map).CopyTo(array, arrayIndex);
54public IEnumerator<KeyValuePair<T, U>> GetEnumerator() => ((IEnumerable<KeyValuePair<T, U>>)Map).GetEnumerator();
56public bool Remove(KeyValuePair<T, U> item) => ((ICollection<KeyValuePair<T, U>>)Map).Remove(item);
60public void Add(KeyValuePair<T, U> item) => ((ICollection<KeyValuePair<T, U>>)Map).Add(item);
61public void Clear() => ((ICollection<KeyValuePair<T, U>>)Map).Clear();
Microsoft.Maui (8)
Microsoft.Maui.Controls (110)
OrderedDictionary.cs (21)
40 internal sealed class OrderedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, IList<KeyValuePair<TKey, TValue>>
44 readonly ICollection<KeyValuePair<TKey, TValue>> _kvpCollection;
70 public OrderedDictionary(ICollection<KeyValuePair<TKey, TValue>> dictionary) : this(dictionary, EqualityComparer<TKey>.Default)
74 public OrderedDictionary(ICollection<KeyValuePair<TKey, TValue>> dictionary, IEqualityComparer<TKey> equalityComparer) : this(dictionary != null ? dictionary.Count : 0, equalityComparer)
79 foreach (KeyValuePair<TKey, TValue> kvp in dictionary)
105 void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
119 bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item)
124 void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
148 bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
153 bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
244 public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
250 int IList<KeyValuePair<TKey, TValue>>.IndexOf(KeyValuePair<TKey, TValue> item)
255 void IList<KeyValuePair<TKey, TValue>>.Insert(int index, KeyValuePair<TKey, TValue> item)
260 KeyValuePair<TKey, TValue> IList<KeyValuePair<TKey, TValue>>.this[int index]
ResourceDictionary.cs (21)
154 void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> item)
156 ((ICollection<KeyValuePair<string, object>>)_innerDictionary).Add(item);
166 bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> item)
168 return ((ICollection<KeyValuePair<string, object>>)_innerDictionary).Contains(item)
172 void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
174 ((ICollection<KeyValuePair<string, object>>)_innerDictionary).CopyTo(array, arrayIndex);
183 bool ICollection<KeyValuePair<string, object>>.IsReadOnly
185 get { return ((ICollection<KeyValuePair<string, object>>)_innerDictionary).IsReadOnly; }
188 bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item)
190 return ((ICollection<KeyValuePair<string, object>>)_innerDictionary).Remove(item);
279 public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
284 internal IEnumerable<KeyValuePair<string, object>> MergedResources
293 foreach (var x in r.MergedResources)
299 foreach (var r in _mergedInstance.MergedResources)
301 foreach (var r in _innerDictionary)
377 void OnValuesChanged(params KeyValuePair<string, object>[] values)
386 foreach (var mr in MergedResources)
Shell\ShellNavigationQueryParameters.cs (10)
17 public ShellNavigationQueryParameters(IEnumerable<KeyValuePair<string, object>> collection)
19 foreach (var item in collection)
25 foreach (var item in dictionary)
65 public void Add(KeyValuePair<string, object> item)
77 public bool Contains(KeyValuePair<string, object> item) => _internal.ContainsKey(item.Key);
81 public void CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
82 => (_internal as ICollection<KeyValuePair<string, object>>)?.CopyTo(array, arrayIndex);
84 public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => _internal.GetEnumerator();
92 public bool Remove(KeyValuePair<string, object> item)
95 return (_internal as ICollection<KeyValuePair<string, object>>).Remove(item);
Microsoft.Maui.Controls.Build.Tasks (8)
Microsoft.Maui.Controls.SourceGen (1)
Microsoft.Maui.Controls.Xaml (15)
XamlParser.cs (9)
45 var attributes = ParseXamlAttributes(reader, out IList<KeyValuePair<string, string>> xmlns);
163 IList<KeyValuePair<string, string>> xmlns;
197 static IList<XmlType> GetTypeArguments(IList<KeyValuePair<XmlName, INode>> attributes)
204 static IList<KeyValuePair<XmlName, INode>> ParseXamlAttributes(XmlReader reader, out IList<KeyValuePair<string, string>> xmlns)
207 var attributes = new List<KeyValuePair<XmlName, INode>>();
208 xmlns = new List<KeyValuePair<string, string>>();
287 static IList<string> PrefixesToIgnore(IList<KeyValuePair<string, string>> xmlns)
290 foreach (var kvp in xmlns)
Microsoft.Maui.Essentials (2)
Microsoft.Maui.Graphics (3)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (3)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.AutoML (7)
Microsoft.ML.AutoML.Interactive (1)
Microsoft.ML.AutoML.Tests (5)
Microsoft.ML.CodeGenerator (4)
Microsoft.ML.Core (48)
CommandLine\CmdParser.cs (7)
352public static IEnumerable<KeyValuePair<string, string>> GetSettingPairs(IHostEnvironment env, object values, object defaults, SettingsFlags flags = SettingsFlags.None)
372public static IEnumerable<KeyValuePair<string, string>> GetSettingPairs(IHostEnvironment env, object values, SettingsFlags flags = SettingsFlags.None)
828private IEnumerable<KeyValuePair<string, string>> GetSettingPairsCore(IHostEnvironment env, ArgumentInfo info, object values, SettingsFlags flags)
1175public List<KeyValuePair<string, object>> Values; // Key=tag.
1495if (!type.IsGenericEx(typeof(KeyValuePair<,>)))
1568var comList = new List<KeyValuePair<string, IComponentFactory>>();
1699val.Values = new List<KeyValuePair<string, object>>();
Data\RoleMappedSchema.cs (20)
117public KeyValuePair<ColumnRole, string> Bind(string name)
121public static KeyValuePair<ColumnRole, string> CreatePair(ColumnRole role, string name)
164foreach (var kvp in _map)
214private static Dictionary<string, List<DataViewSchema.Column>> MapFromNames(DataViewSchema schema, IEnumerable<KeyValuePair<ColumnRole, string>> roles, bool opt = false)
220foreach (var kvp in roles)
262public IEnumerable<KeyValuePair<ColumnRole, DataViewSchema.Column>> GetColumnRoles()
264foreach (var roleAndList in _map)
274public IEnumerable<KeyValuePair<ColumnRole, string>> GetColumnRoleNames()
276foreach (var roleAndList in _map)
287public IEnumerable<KeyValuePair<ColumnRole, string>> GetColumnRoleNames(ColumnRole role)
314foreach (var kvp in map)
333public RoleMappedSchema(DataViewSchema schema, bool opt = false, params KeyValuePair<ColumnRole, string>[] roles)
348public RoleMappedSchema(DataViewSchema schema, IEnumerable<KeyValuePair<ColumnRole, string>> roles, bool opt = false)
354private static IEnumerable<KeyValuePair<ColumnRole, string>> PredefinedRolesHelper(
356IEnumerable<KeyValuePair<ColumnRole, string>> custom = null)
370foreach (var role in custom)
391IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> custom = null, bool opt = false)
441public RoleMappedData(IDataView data, bool opt = false, params KeyValuePair<RoleMappedSchema.ColumnRole, string>[] roles)
456public RoleMappedData(IDataView data, IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> roles, bool opt = false)
477IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> custom = null, bool opt = false)
Utilities\Tree.cs (5)
119public bool Contains(KeyValuePair<TKey, Tree<TKey, TValue>> item)
128public void Add(KeyValuePair<TKey, Tree<TKey, TValue>> item)
184public bool Remove(KeyValuePair<TKey, Tree<TKey, TValue>> item)
206public IEnumerator<KeyValuePair<TKey, Tree<TKey, TValue>>> GetEnumerator()
216public void CopyTo(KeyValuePair<TKey, Tree<TKey, TValue>>[] array, int arrayIndex)
Microsoft.ML.Core.Tests (6)
Microsoft.ML.CpuMath.UnitTests (1)
Microsoft.ML.Data (173)
DataLoadSave\LegacyCompositeDataLoader.cs (7)
39public KeyValuePair<string, IComponentFactory<IDataView, IDataTransform>>[] Transforms;
113params KeyValuePair<string, IComponentFactory<IDataView, IDataTransform>>[] transformArgs)
124KeyValuePair<string, IComponentFactory<IDataView, IDataTransform>>[] transformArgs)
150foreach (var pair in tagData)
177KeyValuePair<string, string>[] tagData, Func<IHostEnvironment, int, IDataView, IDataView> createTransform)
191KeyValuePair<string, string>[] tagData, Func<IHostEnvironment, int, IDataView, IDataView> createTransform)
470var tagData = new List<KeyValuePair<string, string>>();
Transforms\ConversionsExtensionsCatalog.cs (5)
335IEnumerable<KeyValuePair<TInputType, TOutputType>> keyValuePairs,
366IEnumerable<KeyValuePair<TInputType, TOutputType>> keyValuePairs,
399IEnumerable<KeyValuePair<TInputType, TOutputType>> keyValuePairs,
440IEnumerable<KeyValuePair<TInputType, TOutputType[]>> keyValuePairs,
470IEnumerable<KeyValuePair<TInputType, TOutputType[]>> keyValuePairs,
Microsoft.ML.DataView (5)
Microsoft.ML.Ensemble (14)
Microsoft.ML.EntryPoints (8)
Microsoft.ML.FastTree (36)
FastTree.cs (22)
1008private static IEnumerable<KeyValuePair<int, int>> NonZeroBinnedValuesForSparse(ReadOnlySpan<double> values, ReadOnlySpan<int> indices, double[] binUpperBounds)
1012var result = new List<KeyValuePair<int, int>>();
1681foreach (var kv in temp.Items())
1874foreach (var kvp in cursor.Features.Items())
1955var kvEnums = new IEnumerator<KeyValuePair<int, int>>[features.Count];
1994var kvp = kvEnum.Current;
2377private List<KeyValuePair<int, double>> _sparse;
2417_sparse = new List<KeyValuePair<int, double>>(_nonZeroElements);
2469foreach (var kvp in _sparse)
2484foreach (var kvp in _sparse)
2552public IEnumerable<KeyValuePair<int, int>> Binned(double[] binUpperBounds, int length)
2574foreach (var kvp in _sparse)
2586foreach (var kvp in _sparse)
2665var s = sp[last++];
3139foreach (var pair in ((ICanGetSummaryInKeyValuePairs)this).GetSummaryInKeyValuePairs(schema))
3146private IEnumerable<KeyValuePair<string, double>> GetSortedFeatureGains(RoleMappedSchema schema)
3155foreach (var pair in ordered)
3165IList<KeyValuePair<string, object>> ICanGetSummaryInKeyValuePairs.GetSummaryInKeyValuePairs(RoleMappedSchema schema)
3167List<KeyValuePair<string, object>> results = new List<KeyValuePair<string, object>>();
3170foreach (var pair in ordered)
3250foreach (var pair in gainMap)
Microsoft.ML.GenAI.Core (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.KMeansClustering (1)
Microsoft.ML.LightGbm (2)
Microsoft.ML.OnnxTransformer (1)
Microsoft.ML.OnnxTransformerTest (2)
Microsoft.ML.PCA (1)
Microsoft.ML.Predictor.Tests (8)
Microsoft.ML.Recommender (3)
Microsoft.ML.ResultProcessor (14)
Microsoft.ML.Samples (5)
Microsoft.ML.SearchSpace (39)
Option\NestOption.cs (14)
53foreach (var kv in this.OrderBy(kv => kv.Key))
86public int Count => ((ICollection<KeyValuePair<string, OptionBase>>)_options).Count;
89public bool IsReadOnly => ((ICollection<KeyValuePair<string, OptionBase>>)_options).IsReadOnly;
98public void Add(KeyValuePair<string, OptionBase> item)
100((ICollection<KeyValuePair<string, OptionBase>>)_options).Add(item);
106((ICollection<KeyValuePair<string, OptionBase>>)_options).Clear();
110public bool Contains(KeyValuePair<string, OptionBase> item)
112return ((ICollection<KeyValuePair<string, OptionBase>>)_options).Contains(item);
122public void CopyTo(KeyValuePair<string, OptionBase>[] array, int arrayIndex)
124((ICollection<KeyValuePair<string, OptionBase>>)_options).CopyTo(array, arrayIndex);
128public IEnumerator<KeyValuePair<string, OptionBase>> GetEnumerator()
130return ((IEnumerable<KeyValuePair<string, OptionBase>>)_options).GetEnumerator();
140public bool Remove(KeyValuePair<string, OptionBase> item)
142return ((ICollection<KeyValuePair<string, OptionBase>>)_options).Remove(item);
SearchSpace.cs (17)
36internal SearchSpace(params KeyValuePair<string, OptionBase>[] options)
42internal SearchSpace(IEnumerable<KeyValuePair<string, OptionBase>> options)
89public int Count => ((ICollection<KeyValuePair<string, OptionBase>>)_options).Count;
92public bool IsReadOnly => ((ICollection<KeyValuePair<string, OptionBase>>)_options).IsReadOnly;
185foreach (var kv in propertyOptions.Concat(fieldOptions))
335public void Add(KeyValuePair<string, OptionBase> item)
337((ICollection<KeyValuePair<string, OptionBase>>)_options).Add(item);
343((ICollection<KeyValuePair<string, OptionBase>>)_options).Clear();
347public bool Contains(KeyValuePair<string, OptionBase> item)
349return ((ICollection<KeyValuePair<string, OptionBase>>)_options).Contains(item);
353public void CopyTo(KeyValuePair<string, OptionBase>[] array, int arrayIndex)
355((ICollection<KeyValuePair<string, OptionBase>>)_options).CopyTo(array, arrayIndex);
359public bool Remove(KeyValuePair<string, OptionBase> item)
361return ((ICollection<KeyValuePair<string, OptionBase>>)_options).Remove(item);
365public IEnumerator<KeyValuePair<string, OptionBase>> GetEnumerator()
367return ((IEnumerable<KeyValuePair<string, OptionBase>>)_options).GetEnumerator();
391foreach (var kv in left.Concat(right))
Microsoft.ML.StandardTrainers (29)
Standard\LinearPredictorUtils.cs (8)
196List<KeyValuePair<string, object>> weightValues = new List<KeyValuePair<string, object>>();
198foreach (var weightValue in weightValues)
207public static IEnumerable<KeyValuePair<string, Single>> GetSortedLinearModelFeatureNamesAndWeights(Single bias,
214var list = new List<KeyValuePair<string, Single>>() { new KeyValuePair<string, Single>("(Bias)", bias) };
215foreach (var weight in orderedWeights)
229in VBuffer<float> weights, float bias, RoleMappedSchema schema, List<KeyValuePair<string, object>> results)
236foreach (var kvp in pairs)
Microsoft.ML.Sweeper (13)
Algorithms\NelderMead.cs (13)
75private readonly List<KeyValuePair<ParameterSet, float[]>> _pendingSweeps;
76private readonly Queue<KeyValuePair<ParameterSet, float[]>> _pendingSweepsNotSubmitted;
77private KeyValuePair<IRunResult, float[]> _lastReflectionResult;
79private KeyValuePair<IRunResult, float[]> _worst;
80private KeyValuePair<IRunResult, float[]> _secondWorst;
81private KeyValuePair<IRunResult, float[]> _best;
121_pendingSweeps = new List<KeyValuePair<ParameterSet, float[]>>();
122_pendingSweepsNotSubmitted = new Queue<KeyValuePair<ParameterSet, float[]>>();
352foreach (var result in results)
361private List<KeyValuePair<IRunResult, float[]>> FindRunResult(IEnumerable<IRunResult> previousRuns)
363var result = new List<KeyValuePair<IRunResult, float[]>>();
364foreach (var sweep in _pendingSweeps)
424var point = _pendingSweepsNotSubmitted.Dequeue();
Microsoft.ML.Sweeper.Tests (2)
Microsoft.ML.TestFramework (1)
Microsoft.ML.Tests (14)
Transformers\ValueMappingTests.cs (11)
139var keyValuePairs = new List<KeyValuePair<string, string>>() {
364var keyValuePairs = new List<KeyValuePair<string, int>>() {
396var keyValuePairs = new List<KeyValuePair<string, string>>() {
430var keyValuePairs = new List<KeyValuePair<string, uint>>() {
471var keyValuePairs = new List<KeyValuePair<string, ulong>>() {
512var keyValuePairs = new List<KeyValuePair<string, string>>() {
552var keyValuePairs = new List<KeyValuePair<string, string>>() {
594var keyValuePairs = new List<KeyValuePair<string, int>>() {
613var keyValuePairs = new List<KeyValuePair<string, int[]>>() {
633var keyValuePairs = new List<KeyValuePair<ReadOnlyMemory<char>, int>>() {
687var keyValuePairs = new List<KeyValuePair<string, int>>() {
Microsoft.ML.TimeSeries (9)
Microsoft.ML.TimeSeries.Tests (5)
Microsoft.ML.Tokenizers (27)
Utils\LruCache.cs (7)
17private readonly Dictionary<StringSpanOrdinalKey, LinkedListNode<KeyValuePair<string, TValue>>> _cache = new();
18private readonly LinkedList<KeyValuePair<string, TValue>> _lruList = new();
51if (_cache.TryGetValue(new StringSpanOrdinalKey(key), out LinkedListNode<KeyValuePair<string, TValue>>? cached))
78if (_cache.TryGetValue(new StringSpanOrdinalKey(ptr, key.Length), out LinkedListNode<KeyValuePair<string, TValue>>? cached))
101if (_cache.TryGetValue(new StringSpanOrdinalKey(key), out LinkedListNode<KeyValuePair<string, TValue>>? cached))
111LinkedListNode<KeyValuePair<string, TValue>>? nodeToEvict = _lruList.Last;
116var node = new LinkedListNode<KeyValuePair<string, TValue>>(new KeyValuePair<string, TValue>(key, value));
Microsoft.ML.Tokenizers.Tests (5)
Microsoft.ML.TorchSharp (7)
Microsoft.ML.Transforms (40)
Microsoft.NET.Build.Containers (6)
Microsoft.NET.Build.Extensions.Tasks (1)
Microsoft.NET.Build.Tasks (28)
Microsoft.NET.HostModel (8)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (4)
Microsoft.NET.Sdk.Publish.Tasks (8)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (31)
Microsoft.NET.Sdk.WorkloadManifestReader (11)
Microsoft.NET.StringTools (3)
Microsoft.SourceLink.AzureDevOpsServer.Git (1)
Microsoft.SourceLink.AzureRepos.Git (1)
Microsoft.SourceLink.Bitbucket.Git (1)
Microsoft.SourceLink.Common (1)
Microsoft.SourceLink.Gitea (1)
Microsoft.SourceLink.Gitee (1)
Microsoft.SourceLink.GitHub (1)
Microsoft.SourceLink.GitLab (1)
Microsoft.SourceLink.GitWeb (1)
Microsoft.TemplateEngine.Abstractions (1)
Microsoft.TemplateEngine.Cli (30)
Microsoft.TemplateEngine.Core (13)
Util\Orchestrator.cs (6)
87private static List<KeyValuePair<IPathMatcher, IProcessor>> CreateFileGlobProcessors(ILogger logger, IGlobalRunSpec spec)
89List<KeyValuePair<IPathMatcher, IProcessor>> processorList = new List<KeyValuePair<IPathMatcher, IProcessor>>();
93foreach (KeyValuePair<IPathMatcher, IRunSpec> runSpec in spec.Special)
192List<KeyValuePair<IPathMatcher, IProcessor>> fileGlobProcessors = CreateFileGlobProcessors(_logger, spec);
253private void ProcessFile(IFile sourceFile, string sourceRel, string targetDir, IGlobalRunSpec spec, IProcessor fallback, IEnumerable<KeyValuePair<IPathMatcher, IProcessor>> fileGlobProcessors)
Microsoft.TemplateEngine.Core.Contracts (1)
Microsoft.TemplateEngine.Edge (36)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (32)
Microsoft.TemplateEngine.Utils (28)
InMemoryFileSystem.cs (12)
200foreach (KeyValuePair<string, FileSystemDirectory> entry in currentDir.Directories)
211Stack<IEnumerator<KeyValuePair<string, FileSystemDirectory>>> directories = new();
212IEnumerator<KeyValuePair<string, FileSystemDirectory>> current = currentDir.Directories.GetEnumerator();
277foreach (KeyValuePair<string, FileSystemFile> entry in currentDir.Files)
290Stack<IEnumerator<KeyValuePair<string, FileSystemDirectory>>> directories = new();
291IEnumerator<KeyValuePair<string, FileSystemDirectory>> current = currentDir.Directories.GetEnumerator();
314foreach (KeyValuePair<string, FileSystemFile> entry in current.Current.Value.Files)
360foreach (KeyValuePair<string, FileSystemFile> entry in currentDir.Files)
370foreach (KeyValuePair<string, FileSystemDirectory> entry in currentDir.Directories)
380Stack<IEnumerator<KeyValuePair<string, FileSystemDirectory>>> directories = new();
381IEnumerator<KeyValuePair<string, FileSystemDirectory>> current = currentDir.Directories.GetEnumerator();
409foreach (KeyValuePair<string, FileSystemFile> entry in current.Current.Value.Files)
Microsoft.TemplateSearch.Common (27)
Microsoft.TestPlatform.CommunicationUtilities (55)
Microsoft.TestPlatform.CrossPlatEngine (15)
Microsoft.TestPlatform.Extensions.BlameDataCollector (2)
Microsoft.TestPlatform.Filter.Source (1)
Microsoft.TestPlatform.PlatformAbstractions (2)
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
Microsoft.VisualStudio.TestPlatform.Client (4)
Microsoft.VisualStudio.TestPlatform.Common (23)
Microsoft.VisualStudio.TestPlatform.ObjectModel (75)
Mono.Cecil (13)
Mono.Cecil\WindowsRuntimeProjections.cs (7)
24 public readonly Collection<KeyValuePair<InterfaceImplementation, InterfaceImplementation>> RedirectedInterfaces;
26 public TypeDefinitionProjection (TypeDefinition type, TypeDefinitionTreatment treatment, Collection<MethodDefinition> redirectedMethods, Collection<KeyValuePair<InterfaceImplementation, InterfaceImplementation>> redirectedInterfaces)
223 Collection<KeyValuePair<InterfaceImplementation, InterfaceImplementation>> redirectedInterfaces = null;
271 private static TypeDefinitionTreatment GenerateRedirectionInformation (TypeDefinition type, out Collection<MethodDefinition> redirectedMethods, out Collection<KeyValuePair<InterfaceImplementation, InterfaceImplementation>> redirectedInterfaces)
289 redirectedInterfaces = new Collection<KeyValuePair<InterfaceImplementation, InterfaceImplementation>> ();
436 foreach (var redirectedInterfacePair in projection.RedirectedInterfaces) {
485 foreach (var redirectedInterfacePair in projection.RedirectedInterfaces) {
MSBuild (34)
OutOfProcTaskHostNode.cs (15)
62private static IDictionary<string, KeyValuePair<string, string>> s_mismatchedEnvironmentValues;
551foreach (KeyValuePair<string, ITaskItem[]> output in result.TargetOutputsPerProject[i])
971foreach (var kvp in _taskContexts)
1293foreach (var kvp in _taskContexts)
1355foreach (var kvp in _taskContexts)
1435foreach (var kvp in _pendingCallbackRequests)
1443foreach (var contextKvp in _taskContexts)
1445foreach (var reqKvp in contextKvp.Value.PendingCallbackRequests)
1662foreach (KeyValuePair<string, KeyValuePair<string, string>> variable in s_mismatchedEnvironmentValues)
1725foreach (KeyValuePair<string, KeyValuePair<string, string>> variable in s_mismatchedEnvironmentValues)
1781s_mismatchedEnvironmentValues = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.OrdinalIgnoreCase);
1783foreach (KeyValuePair<string, string> variable in _savedEnvironment)
1800foreach (KeyValuePair<string, string> variable in environment)
mscorlib (1)
netstandard (1)
NuGet.Build.Tasks (2)
NuGet.Build.Tasks.Console (4)
NuGet.Build.Tasks.Pack (2)
NuGet.CommandLine.XPlat (9)
NuGet.Commands (57)
RestoreCommand\Utility\BuildAssetsUtils.cs (8)
542List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>> sortedPackages = new List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>>(sortedGraph.Count);
598foreach (var sortedPackage in sortedPackages)
630foreach (var pkg in sortedPackages)
689static MSBuildRestoreItemGroup GenerateBuildGroup(string repositoryRoot, List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>> sortedPackages, string extension, IEnvironmentVariableReader environmentVariableReader)
695foreach (var pkg in sortedPackages)
712static MSBuildRestoreItemGroup GenerateMultiTargetingGroup(string repositoryRoot, List<KeyValuePair<LockFileTargetLibrary, Lazy<LocalPackageSourceInfo>>> sortedPackages, HashSet<string> multiTargetingImportsAdded, string extension, IEnvironmentVariableReader environmentVariableReader)
718foreach (var pkg in sortedPackages)
NuGet.Common (3)
NuGet.Configuration (31)
NuGet.Credentials (1)
NuGet.DependencyResolver.Core (5)
NuGet.Frameworks (67)
DefaultFrameworkMappings.cs (18)
12private static Lazy<KeyValuePair<string, string>[]> IdentifierSynonymsLazy = new Lazy<KeyValuePair<string, string>[]>(() =>
38public IEnumerable<KeyValuePair<string, string>> IdentifierSynonyms
46private static readonly Lazy<KeyValuePair<string, string>[]> IdentifierShortNamesLazy = new Lazy<KeyValuePair<string, string>[]>(() =>
86public IEnumerable<KeyValuePair<string, string>> IdentifierShortNames
114private static readonly Lazy<KeyValuePair<NuGetFramework, NuGetFramework>[]> EquivalentFrameworksLazy = new Lazy<KeyValuePair<NuGetFramework, NuGetFramework>[]>(() =>
226public IEnumerable<KeyValuePair<NuGetFramework, NuGetFramework>> EquivalentFrameworks
254private static readonly Lazy<KeyValuePair<string, string>[]> SubSetFrameworksLazy = new Lazy<KeyValuePair<string, string>[]>(() =>
275public IEnumerable<KeyValuePair<string, string>> SubSetFrameworks
619private static readonly Lazy<KeyValuePair<NuGetFramework, NuGetFramework>[]> ShortNameReplacementsLazy = new Lazy<KeyValuePair<NuGetFramework, NuGetFramework>[]>(() =>
627public IEnumerable<KeyValuePair<NuGetFramework, NuGetFramework>> ShortNameReplacements
635private static readonly Lazy<KeyValuePair<NuGetFramework, NuGetFramework>[]> FullNameReplacementsLazy = new Lazy<KeyValuePair<NuGetFramework, NuGetFramework>[]>(() =>
643public IEnumerable<KeyValuePair<NuGetFramework, NuGetFramework>> FullNameReplacements
DefaultPortableFrameworkMappings.cs (12)
15private static readonly Lazy<KeyValuePair<int, NuGetFramework[]>[]> ProfileFrameworksLazy = new Lazy<KeyValuePair<int, NuGetFramework[]>[]>(() =>
89public IEnumerable<KeyValuePair<int, NuGetFramework[]>> ProfileFrameworks
97private static KeyValuePair<int, NuGetFramework[]> CreateProfileFrameworks(int profile, params NuGetFramework[] frameworks)
108private static readonly Lazy<List<KeyValuePair<int, NuGetFramework[]>>> ProfileOptionalFrameworksLazy = new Lazy<List<KeyValuePair<int, NuGetFramework[]>>>(() =>
118var profileOptionalFrameworks = new List<KeyValuePair<int, NuGetFramework[]>>(ProfilesWithOptionalFrameworks.Length);
128public IEnumerable<KeyValuePair<int, NuGetFramework[]>> ProfileOptionalFrameworks
136private static readonly Lazy<KeyValuePair<int, FrameworkRange>[]> CompatibilityMappingsLazy = new Lazy<KeyValuePair<int, FrameworkRange>[]>(() =>
154public IEnumerable<KeyValuePair<int, FrameworkRange>> CompatibilityMappings
162private static KeyValuePair<int, FrameworkRange> CreateStandardMapping(
NuGet.LibraryModel (4)
NuGet.PackageManagement (7)
NuGet.Packaging (42)
NuGet.ProjectModel (12)
NuGet.Protocol (37)
LegacyFeed\MetadataResourceV2Feed.cs (5)
33public override async Task<IEnumerable<KeyValuePair<string, NuGetVersion?>>> GetLatestVersions(IEnumerable<string> packageIds, bool includePrerelease, bool includeUnlisted,
36var results = new List<KeyValuePair<string, NuGetVersion?>>();
38var tasks = new Stack<KeyValuePair<string, Task<IEnumerable<NuGetVersion>>>>();
43var task = new KeyValuePair<string, Task<IEnumerable<NuGetVersion>>>(id, GetVersions(id, includePrerelease, includeUnlisted, sourceCacheContext, log, token));
47foreach (var pair in tasks)
LocalRepositories\LocalMetadataResource.cs (5)
32public override async Task<IEnumerable<KeyValuePair<string, NuGetVersion?>>> GetLatestVersions(
40var results = new List<KeyValuePair<string, NuGetVersion?>>();
42var tasks = new Stack<KeyValuePair<string, Task<IEnumerable<NuGetVersion>>>>();
47var task = new KeyValuePair<string, Task<IEnumerable<NuGetVersion>>>(id, GetVersions(id, includePrerelease, includeUnlisted, sourceCacheContext, log, token));
51foreach (var pair in tasks)
NuGet.Resolver (5)
NuGet.Versioning (4)
PresentationBuildTasks (1)
PresentationCore (43)
System\Windows\Media\CharacterMetricsDictionary.cs (14)
26public IEnumerator<KeyValuePair<int, CharacterMetrics>> GetEnumerator()
83public void Add(KeyValuePair<int, CharacterMetrics> item)
105public bool Contains(KeyValuePair<int, CharacterMetrics> item)
114public void CopyTo(KeyValuePair<int, CharacterMetrics>[] array, int index)
156public bool Remove(KeyValuePair<int, CharacterMetrics> item)
187foreach (KeyValuePair<int, CharacterMetrics> item in this)
203foreach (KeyValuePair<int, CharacterMetrics> item in this)
463foreach (KeyValuePair<int, CharacterMetrics> pair in this)
474foreach (KeyValuePair<int, CharacterMetrics> pair in this)
520private struct Enumerator : SC.IDictionaryEnumerator, IEnumerator<KeyValuePair<int, CharacterMetrics>>
557KeyValuePair<int, CharacterMetrics> entry = GetCurrentEntry();
563public KeyValuePair<int, CharacterMetrics> Current
571private KeyValuePair<int, CharacterMetrics> GetCurrentEntry()
583KeyValuePair<int, CharacterMetrics> entry = GetCurrentEntry();
System\Windows\Media\CultureSpecificStringDictionary.cs (11)
31public IEnumerator<KeyValuePair<XmlLanguage, string>> GetEnumerator()
80public void Add(KeyValuePair<XmlLanguage, string> item)
97public bool Contains(KeyValuePair<XmlLanguage, string> item)
106public void CopyTo(KeyValuePair<XmlLanguage, string>[] array, int index)
125public bool Remove(KeyValuePair<XmlLanguage, string> item)
156foreach (KeyValuePair<XmlLanguage, string> item in _innerDictionary)
172foreach (KeyValuePair<XmlLanguage, string> item in _innerDictionary)
352protected IEnumerator<KeyValuePair<XmlLanguage, string>> _enumerator;
384private KeyValuePair<XmlLanguage, string> GetCurrentEntry()
387KeyValuePair<XmlLanguage, string> entry = _enumerator.Current;
402KeyValuePair<XmlLanguage, string> entry = GetCurrentEntry();
PresentationFramework (93)
MS\Internal\Annotations\ObservableDictionary.cs (14)
127public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
129return ((IEnumerable<KeyValuePair<string, string>>)_nameValues).GetEnumerator();
151void ICollection<KeyValuePair<string, string>>.Add(KeyValuePair<string, string> pair)
153((ICollection<KeyValuePair<string, string>>)_nameValues).Add(pair);
162bool ICollection<KeyValuePair<string, string>>.Contains(KeyValuePair<string, string> pair)
164return ((ICollection<KeyValuePair<string, string>>)_nameValues).Contains(pair);
173bool ICollection<KeyValuePair<string, string>>.Remove(KeyValuePair<string, string> pair)
175return ((ICollection<KeyValuePair<string, string>>)_nameValues).Remove(pair);
185void ICollection<KeyValuePair<string, string>>.CopyTo(KeyValuePair<string, string>[] target, int startIndex)
191((ICollection<KeyValuePair<string, string>>)_nameValues).CopyTo(target, startIndex);
MS\Internal\Helper.cs (23)
752List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item);
774List<KeyValuePair<int, object>> itemValues = EnsureItemValues(owner, item);
782KeyValuePair<int, object> keyValue = new KeyValuePair<int, object>(dpIndex, value);
805List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item);
826internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item)
831internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item,
832WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage)
835List<KeyValuePair<int, object>> itemValues = null;
843internal static List<KeyValuePair<int, object>> EnsureItemValues(DependencyObject owner, object item)
845WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage = EnsureItemValueStorage(owner);
846List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item, itemValueStorage);
850itemValues = new List<KeyValuePair<int, object>>(3); // So far the only use of this is to store three values.
858internal static WeakDictionary<object, List<KeyValuePair<int, object>>> EnsureItemValueStorage(DependencyObject owner)
860WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage = ItemValueStorageField.GetValue(owner);
864itemValueStorage = new WeakDictionary<object, List<KeyValuePair<int, object>>>();
879List<KeyValuePair<int, object>> itemValues = GetItemValues(owner, item) ?? new List<KeyValuePair<int, object>>();
1024private static void ClearItemValueStorageRecursive(WeakDictionary<object, List<KeyValuePair<int, object>>> itemValueStorage, int[] dpIndices)
1028foreach (List<KeyValuePair<int, object>> itemValuesList in itemValueStorage.Values)
1032KeyValuePair<int, object> itemValue = itemValuesList[i];
1035ClearItemValueStorageRecursive((WeakDictionary<object, List<KeyValuePair<int, object>>>)itemValue.Value, dpIndices);
1519private static readonly UncommonField<WeakDictionary<object, List<KeyValuePair<int, object>>>> ItemValueStorageField =
1520new UncommonField<WeakDictionary<object, List<KeyValuePair<int, object>>>>();
PresentationUI (1)
Publishers.AppHost (1)
ReachFramework (2)
RepoTasks (1)
Roslyn.Diagnostics.Analyzers (155)
src\roslyn\src\Compilers\Core\Portable\Collections\SmallDictionary.cs (8)
35internal sealed class SmallDictionary<K, V> : IEnumerable<KeyValuePair<K, V>>
55foreach (var kv in other)
763public KeyValuePair<K, V> Current => new KeyValuePair<K, V>(_current!.Key, _current!.Value);
803public class EnumerableImpl : IEnumerator<KeyValuePair<K, V>>
812KeyValuePair<K, V> IEnumerator<KeyValuePair<K, V>>.Current => _e.Current;
831IEnumerator<KeyValuePair<K, V>> IEnumerable<KeyValuePair<K, V>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (4)
35public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items)
39public static ImmutableSegmentedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items)
43public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items)
56public static ImmutableSegmentedDictionary<TKey, TValue> ToImmutableSegmentedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> items, IEqualityComparer<TKey>? keyComparer)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (18)
106bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
157public ImmutableSegmentedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
183public bool Contains(KeyValuePair<TKey, TValue> pair)
232public ImmutableSegmentedDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
238foreach (var item in items)
318IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
324IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
332IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
341void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
342=> ((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, arrayIndex);
356void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
359void ICollection<KeyValuePair<TKey, TValue>>.Clear()
362bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
374private static bool TryCastToImmutableSegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> pairs, out ImmutableSegmentedDictionary<TKey, TValue> other)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (12)
49bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => ICollectionCalls<KeyValuePair<TKey, TValue>>.IsReadOnly(ref _builder);
78public void Add(KeyValuePair<TKey, TValue> item)
81public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
87public bool Contains(KeyValuePair<TKey, TValue> item)
108public bool Remove(KeyValuePair<TKey, TValue> item)
125void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
126=> ICollectionCalls<KeyValuePair<TKey, TValue>>.CopyTo(ref _builder, array, arrayIndex);
128IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
129=> IEnumerableCalls<KeyValuePair<TKey, TValue>>.GetEnumerator(ref _builder);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (12)
70readonly bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
118public void Add(KeyValuePair<TKey, TValue> item)
121public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
126foreach (var pair in items)
146public readonly bool Contains(KeyValuePair<TKey, TValue> item)
185public bool Remove(KeyValuePair<TKey, TValue> item)
211foreach (var pair in this)
236readonly void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
237=> ((ICollection<KeyValuePair<TKey, TValue>>)ReadOnlyDictionary).CopyTo(array, arrayIndex);
239IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (27)
46private static IEnumerator<KeyValuePair<TKey, TValue>>? s_emptyEnumerator;
134public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)
139public SegmentedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
140: this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
150private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> enumerable)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
195if (enumerable is KeyValuePair<TKey, TValue>[] array)
208foreach (var pair in enumerable)
216foreach (var pair in span)
270void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
273bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
284bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
358private void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
389IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
393private static IEnumerator<KeyValuePair<TKey, TValue>> GetEmptyEnumerator()
870bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
872void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
902if (array is KeyValuePair<TKey, TValue>[] pairs)
945=> ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1172public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1177private KeyValuePair<TKey, TValue> _current;
1217public readonly KeyValuePair<TKey, TValue> Current => _current;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (11)
37public static readonly IEnumerable<KeyValuePair<byte, string>> ByteSpecialValues = [];
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>()
45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>()
51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>()
56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>()
62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>()
67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>()
73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>()
78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>()
88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>()
98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
Roslyn.Diagnostics.CSharp.Analyzers (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (4)
239ITypeSymbol? type, T value, IEnumerable<KeyValuePair<T, string>> constants,
250ITypeSymbol? type, T value, IEnumerable<KeyValuePair<T, string>> constants,
286private static ExpressionSyntax? GenerateFieldReference<T>(ITypeSymbol? type, T value, IEnumerable<KeyValuePair<T, string>> constants)
289foreach (var constant in constants)
rzc (4)
ScenarioTests.Common.Tests (3)
sdk-tasks (6)
SelectTests (2)
Shared (21)
EmptyCollections\EmptyReadonlyDictionary.cs (12)
27public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => EmptyReadOnlyList<KeyValuePair<TKey, TValue>>.Instance.GetEnumerator();
32bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
48void ICollection<KeyValuePair<TKey, TValue>>.Clear()
53void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
60void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
61bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) => false;
62bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => false;
Shared.Tests (9)
Stress.ApiService (2)
Stress.AppHost (2)
Stress.TelemetryService (3)
System.Collections (105)
System\Collections\Generic\OrderedDictionary.cs (47)
35IList<KeyValuePair<TKey, TValue>>, IReadOnlyList<KeyValuePair<TKey, TValue>>, IList
177public OrderedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection) : this(collection, null)
194public OrderedDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer) :
195this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
240bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
292if (value is not KeyValuePair<TKey, TValue> tpair)
294throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value));
344KeyValuePair<TKey, TValue> IList<KeyValuePair<TKey, TValue>>.this[int index]
351KeyValuePair<TKey, TValue> IReadOnlyList<KeyValuePair<TKey, TValue>>.this[int index] => GetAt(index);
507private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> collection)
511if (collection is KeyValuePair<TKey, TValue>[] array)
513foreach (KeyValuePair<TKey, TValue> pair in array)
520foreach (KeyValuePair<TKey, TValue> pair in collection)
589public KeyValuePair<TKey, TValue> GetAt(int index)
1159IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
1160Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<KeyValuePair<TKey, TValue>>() :
1164IEnumerator IEnumerable.GetEnumerator() => ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1170int IList<KeyValuePair<TKey, TValue>>.IndexOf(KeyValuePair<TKey, TValue> item)
1188void IList<KeyValuePair<TKey, TValue>>.Insert(int index, KeyValuePair<TKey, TValue> item) => Insert(index, item.Key, item.Value);
1191void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => Add(item.Key, item.Value);
1194bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item)
1204void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
1221bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
1301if (array is KeyValuePair<TKey, TValue>[] tarray)
1303((ICollection<KeyValuePair<TKey, TValue>>)this).CopyTo(tarray, index);
1314foreach (KeyValuePair<TKey, TValue> pair in this)
1329if (value is not KeyValuePair<TKey, TValue> pair)
1331throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value));
1340value is KeyValuePair<TKey, TValue> pair &&
1347if (value is KeyValuePair<TKey, TValue> pair)
1349return ((IList<KeyValuePair<TKey, TValue>>)this).IndexOf(pair);
1358if (value is not KeyValuePair<TKey, TValue> pair)
1360throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(KeyValuePair<TKey, TValue>)), nameof(value));
1369if (value is KeyValuePair<TKey, TValue> pair)
1371((ICollection<KeyValuePair<TKey, TValue>>)this).Remove(pair);
1390public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1410public KeyValuePair<TKey, TValue> Current { get; private set; }
System\Collections\Generic\SortedDictionary.cs (34)
21private readonly TreeSet<KeyValuePair<TKey, TValue>> _set; // Do not rename (binary serialization)
41_set = new TreeSet<KeyValuePair<TKey, TValue>>(sortedDictionary._set, keyValuePairComparer);
45_set = new TreeSet<KeyValuePair<TKey, TValue>>(keyValuePairComparer);
47foreach (KeyValuePair<TKey, TValue> pair in dictionary)
56_set = new TreeSet<KeyValuePair<TKey, TValue>>(new KeyValuePairComparer(comparer));
59void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
64bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
66TreeSet<KeyValuePair<TKey, TValue>>.Node? node = _set.FindNode(keyValuePair);
82bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
84TreeSet<KeyValuePair<TKey, TValue>>.Node? node = _set.FindNode(keyValuePair);
98bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
112TreeSet<KeyValuePair<TKey, TValue>>.Node? node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue)!));
124TreeSet<KeyValuePair<TKey, TValue>>.Node? node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue)!));
213_set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node)
226_set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node)
239public void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
246IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
247Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<KeyValuePair<TKey, TValue>>() :
261TreeSet<KeyValuePair<TKey, TValue>>.Node? node = _set.FindNode(new KeyValuePair<TKey, TValue>(key, default(TValue)!));
402IEnumerator IEnumerable.GetEnumerator() => ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
404public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
406private TreeSet<KeyValuePair<TKey, TValue>>.Enumerator _treeEnum;
428public KeyValuePair<TKey, TValue> Current
545_dictionary._set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node) { array[index++] = node.Item.Key; return true; });
578_dictionary._set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node) { objects[index++] = node.Item.Key; return true; });
706_dictionary._set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node) { array[index++] = node.Item.Value; return true; });
739_dictionary._set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node) { objects[index++] = node.Item.Value; return true; });
836public sealed class KeyValuePairComparer : Comparer<KeyValuePair<TKey, TValue>>
845public override int Compare(KeyValuePair<TKey, TValue> x, KeyValuePair<TKey, TValue> y)
System\Collections\Generic\SortedList.cs (18)
189void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair)
194bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
204bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
365bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
431void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
447KeyValuePair<TKey, TValue> entry = new KeyValuePair<TKey, TValue>(keys[i], values[i]);
476if (array is KeyValuePair<TKey, TValue>[] keyValuePairArray)
545public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => new Enumerator(this, Enumerator.KeyValuePair);
547IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
548Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<KeyValuePair<TKey, TValue>>() :
553IEnumerator IEnumerable.GetEnumerator() => ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
750private struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
823public KeyValuePair<TKey, TValue> Current => new KeyValuePair<TKey, TValue>(_key!, _value!);
System.Collections.Concurrent (51)
System\Collections\Concurrent\PartitionerStatic.cs (42)
305private abstract class DynamicPartitionEnumerator_Abstract<TSource, TSourceReader> : IEnumerator<KeyValuePair<long, TSource>>
371public abstract KeyValuePair<long, TSource> Current { get; }
501public override IList<IEnumerator<KeyValuePair<long, TSource>>> GetOrderablePartitions(int partitionCount)
504IEnumerator<KeyValuePair<long, TSource>>[] partitions
505= new IEnumerator<KeyValuePair<long, TSource>>[partitionCount];
519public override IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions()
539private sealed class InternalPartitionEnumerable : IEnumerable<KeyValuePair<long, TSource>>, IDisposable
545private volatile KeyValuePair<long, TSource>[]? _fillBuffer; // intermediate buffer to reduce locking
584_fillBuffer = new KeyValuePair<long, TSource>[fillBufferMultiplier * Partitioner.GetDefaultChunkSize<TSource>()];
603public IEnumerator<KeyValuePair<long, TSource>> GetEnumerator()
620private void TryCopyFromFillBuffer(KeyValuePair<long, TSource>[] destArray,
628KeyValuePair<long, TSource>[]? fillBufferLocalRef = _fillBuffer;
666internal bool GrabChunk(KeyValuePair<long, TSource>[] destArray, int requestedChunkSize, ref int actualNumElementsGrabbed)
692internal bool GrabChunk_Single(KeyValuePair<long, TSource>[] destArray, int requestedChunkSize, ref int actualNumElementsGrabbed)
741internal bool GrabChunk_Buffered(KeyValuePair<long, TSource>[] destArray, int requestedChunkSize, ref int actualNumElementsGrabbed)
872private KeyValuePair<long, TSource>[]? _localList; //defer allocating to avoid false sharing
921_localList ??= new KeyValuePair<long, TSource>[_maxChunkSize];
941public override KeyValuePair<long, TSource> Current
1002protected abstract IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions_Factory(TCollection data);
1010public override IList<IEnumerator<KeyValuePair<long, TSource>>> GetOrderablePartitions(int partitionCount)
1013IEnumerator<KeyValuePair<long, TSource>>[] partitions
1014= new IEnumerator<KeyValuePair<long, TSource>>[partitionCount];
1015IEnumerable<KeyValuePair<long, TSource>> partitionEnumerable = GetOrderableDynamicPartitions_Factory(_data);
1027public override IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions()
1159protected override IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions_Factory(IList<TSource> _data)
1169private sealed class InternalPartitionEnumerable : IEnumerable<KeyValuePair<long, TSource>>
1181public IEnumerator<KeyValuePair<long, TSource>> GetEnumerator()
1211public override KeyValuePair<long, TSource> Current
1245protected override IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions_Factory(TSource[] _data)
1254private sealed class InternalPartitionEnumerable : IEnumerable<KeyValuePair<long, TSource>>
1272public IEnumerator<KeyValuePair<long, TSource>> GetEnumerator()
1295public override KeyValuePair<long, TSource> Current
1347protected abstract IEnumerator<KeyValuePair<long, TSource>> CreatePartition(int startIndex, int endIndex);
1366public override IList<IEnumerator<KeyValuePair<long, TSource>>> GetOrderablePartitions(int partitionCount)
1372IEnumerator<KeyValuePair<long, TSource>>[] partitions = new IEnumerator<KeyValuePair<long, TSource>>[partitionCount];
1401private abstract class StaticIndexRangePartition<TSource> : IEnumerator<KeyValuePair<long, TSource>>
1428public abstract KeyValuePair<long, TSource> Current { get; }
1495protected override IEnumerator<KeyValuePair<long, TSource>> CreatePartition(int startIndex, int endIndex)
1518public override KeyValuePair<long, TSource> Current
1553protected override IEnumerator<KeyValuePair<long, TSource>> CreatePartition(int startIndex, int endIndex)
1575public override KeyValuePair<long, TSource> Current
System.Collections.Immutable (194)
System\Collections\Frozen\FrozenDictionary.cs (30)
28public static FrozenDictionary<TKey, TValue> Create<TKey, TValue>(params ReadOnlySpan<KeyValuePair<TKey, TValue>> source)
42public static FrozenDictionary<TKey, TValue> Create<TKey, TValue>(IEqualityComparer<TKey>? comparer, params ReadOnlySpan<KeyValuePair<TKey, TValue>> source)
55foreach (KeyValuePair<TKey, TValue> pair in source)
73public static FrozenDictionary<TKey, TValue> ToFrozenDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source, IEqualityComparer<TKey>? comparer = null)
115IEnumerable<KeyValuePair<TKey, TValue>> source, IEqualityComparer<TKey>? comparer,
134int capacity = (source as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0;
136foreach (KeyValuePair<TKey, TValue> pair in source)
372/// <summary>Copies the elements of the dictionary to an array of type <see cref="KeyValuePair{TKey, TValue}"/>, starting at the specified <paramref name="destinationIndex"/>.</summary>
375public void CopyTo(KeyValuePair<TKey, TValue>[] destination, int destinationIndex)
381/// <summary>Copies the elements of the dictionary to a span of type <see cref="KeyValuePair{TKey, TValue}"/>.</summary>
383public void CopyTo(Span<KeyValuePair<TKey, TValue>> destination)
425if (array is KeyValuePair<TKey, TValue>[] pairs)
427foreach (KeyValuePair<TKey, TValue> item in this)
434foreach (KeyValuePair<TKey, TValue> item in this)
448foreach (KeyValuePair<TKey, TValue> item in this)
461bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
602bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item) =>
635IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
636Count == 0 ? ((IList<KeyValuePair<TKey, TValue>>)Array.Empty<KeyValuePair<TKey, TValue>>()).GetEnumerator() :
641Count == 0 ? Array.Empty<KeyValuePair<TKey, TValue>>().GetEnumerator() :
652void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
661bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item) => throw new NotSupportedException();
667void ICollection<KeyValuePair<TKey, TValue>>.Clear() => throw new NotSupportedException();
673public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>
702public readonly KeyValuePair<TKey, TValue> Current
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (15)
22/// While <see cref="ImmutableDictionary{TKey, TValue}.AddRange(IEnumerable{KeyValuePair{TKey, TValue}})"/>
145bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
157foreach (KeyValuePair<TKey, TValue> item in this)
180foreach (KeyValuePair<TKey, TValue> item in this)
335foreach (KeyValuePair<TKey, TValue> item in this)
419public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
542foreach (KeyValuePair<TKey, TValue> item in this)
595public void Add(KeyValuePair<TKey, TValue> item)
617public bool Contains(KeyValuePair<TKey, TValue> item)
625void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
629foreach (KeyValuePair<TKey, TValue> item in this)
647public bool Remove(KeyValuePair<TKey, TValue> item)
668IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
System\Collections\Immutable\ImmutableDictionary_2.cs (32)
30private static readonly Action<KeyValuePair<int, HashBucket>> s_FreezeBucketAction = (kv) => kv.Value.Freeze();
172foreach (KeyValuePair<int, ImmutableDictionary<TKey, TValue>.HashBucket> bucket in _root)
174foreach (KeyValuePair<TKey, TValue> item in bucket.Value)
189foreach (KeyValuePair<int, ImmutableDictionary<TKey, TValue>.HashBucket> bucket in _root)
191foreach (KeyValuePair<TKey, TValue> item in bucket.Value)
271bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
311public ImmutableDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
318internal ImmutableDictionary<TKey, TValue> AddRange(ReadOnlySpan<KeyValuePair<TKey, TValue>> pairs, KeyCollisionBehavior collisionBehavior = KeyCollisionBehavior.ThrowIfValueDifferent)
339public ImmutableDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
406public bool Contains(KeyValuePair<TKey, TValue> pair)
483foreach (KeyValuePair<TKey, TValue> item in this)
529IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
537IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
601void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
606void ICollection<KeyValuePair<TKey, TValue>>.Clear()
611bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
616void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
622foreach (KeyValuePair<TKey, TValue> item in this)
762foreach (KeyValuePair<TKey, TValue> item in this)
806IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
809Enumerable.Empty<KeyValuePair<TKey, TValue>>().GetEnumerator() :
851private static bool TryCastToImmutableMap(IEnumerable<KeyValuePair<TKey, TValue>> sequence, [NotNullWhen(true)] out ImmutableDictionary<TKey, TValue>? other)
888private static bool Contains(KeyValuePair<TKey, TValue> keyValuePair, MutationInput origin)
957private static MutationResult AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items, MutationInput origin, KeyCollisionBehavior collisionBehavior = KeyCollisionBehavior.ThrowIfValueDifferent)
963foreach (KeyValuePair<TKey, TValue> pair in items)
983private static MutationResult AddRange(ReadOnlySpan<KeyValuePair<TKey, TValue>> items, MutationInput origin, KeyCollisionBehavior collisionBehavior = KeyCollisionBehavior.ThrowIfValueDifferent)
987foreach (KeyValuePair<TKey, TValue> pair in items)
1081private ImmutableDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs, bool avoidToHashMap)
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (22)
19internal readonly struct HashBucket : IEnumerable<KeyValuePair<TKey, TValue>>
25private readonly KeyValuePair<TKey, TValue> _firstValue;
34private readonly ImmutableList<KeyValuePair<TKey, TValue>>.Node _additionalElements;
41private HashBucket(KeyValuePair<TKey, TValue> firstElement, ImmutableList<KeyValuePair<TKey, TValue>>.Node? additionalElements = null)
44_additionalElements = additionalElements ?? ImmutableList<KeyValuePair<TKey, TValue>>.Node.EmptyNode;
61internal KeyValuePair<TKey, TValue> FirstValue
77internal ImmutableList<KeyValuePair<TKey, TValue>>.Node AdditionalElements
96IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
140internal HashBucket Add(TKey key, TValue value, IEqualityComparer<KeyValuePair<TKey, TValue>> keyOnlyComparer, IEqualityComparer<TValue> valueComparer, KeyCollisionBehavior behavior, out OperationResult result)
142var kv = new KeyValuePair<TKey, TValue>(key, value);
191ref readonly KeyValuePair<TKey, TValue> existingEntry = ref _additionalElements.ItemRef(keyCollisionIndex);
214internal HashBucket Remove(TKey key, IEqualityComparer<KeyValuePair<TKey, TValue>> keyOnlyComparer, out OperationResult result)
222var kv = new KeyValuePair<TKey, TValue>(key, default(TValue)!);
274var kv = new KeyValuePair<TKey, TValue>(key, default(TValue)!);
313var kv = new KeyValuePair<TKey, TValue>(equalKey, default(TValue)!);
336internal struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDisposable
351private ImmutableList<KeyValuePair<TKey, TValue>>.Enumerator _additionalEnumerator;
361_additionalEnumerator = default(ImmutableList<KeyValuePair<TKey, TValue>>.Enumerator);
401public KeyValuePair<TKey, TValue> Current
442_additionalEnumerator = new ImmutableList<KeyValuePair<TKey, TValue>>.Enumerator(_bucket._additionalElements);
System\Collections\Immutable\ImmutableDictionary.cs (10)
62public static ImmutableDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items) where TKey : notnull
75/// In contrast to <see cref="CreateRange{TKey, TValue}(IEnumerable{KeyValuePair{TKey, TValue}})"/>,
80params ReadOnlySpan<KeyValuePair<TKey, TValue>> items)
94public static ImmutableDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items) where TKey : notnull
108/// In contrast to <see cref="CreateRange{TKey, TValue}(IEqualityComparer{TKey}?, IEnumerable{KeyValuePair{TKey, TValue}})"/>,
114params ReadOnlySpan<KeyValuePair<TKey, TValue>> items)
129public static ImmutableDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEqualityComparer<TKey>? keyComparer, IEqualityComparer<TValue>? valueComparer, IEnumerable<KeyValuePair<TKey, TValue>> items) where TKey : notnull
271public static ImmutableDictionary<TKey, TValue> ToImmutableDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source, IEqualityComparer<TKey>? keyComparer, IEqualityComparer<TValue>? valueComparer) where TKey : notnull
291public static ImmutableDictionary<TKey, TValue> ToImmutableDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source, IEqualityComparer<TKey>? keyComparer) where TKey : notnull
303public static ImmutableDictionary<TKey, TValue> ToImmutableDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source) where TKey : notnull
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (11)
123bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
294foreach (KeyValuePair<TKey, TValue> item in this)
469public void Add(KeyValuePair<TKey, TValue> item)
486public bool Contains(KeyValuePair<TKey, TValue> item)
494void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
502public bool Remove(KeyValuePair<TKey, TValue> item)
523IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
561public void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
565foreach (KeyValuePair<TKey, TValue> pair in items)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (22)
161bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
268public ImmutableSortedDictionary<TKey, TValue> SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
278public ImmutableSortedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items)
399IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.SetItems(IEnumerable<KeyValuePair<TKey, TValue>> items)
407IImmutableDictionary<TKey, TValue> IImmutableDictionary<TKey, TValue>.AddRange(IEnumerable<KeyValuePair<TKey, TValue>> pairs)
440public bool Contains(KeyValuePair<TKey, TValue> pair)
506void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
511void ICollection<KeyValuePair<TKey, TValue>>.Clear()
516bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
521void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
527foreach (KeyValuePair<TKey, TValue> item in this)
696IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
699Enumerable.Empty<KeyValuePair<TKey, TValue>>().GetEnumerator() :
753private static bool TryCastToImmutableMap(IEnumerable<KeyValuePair<TKey, TValue>> sequence, [NotNullWhen(true)] out ImmutableSortedDictionary<TKey, TValue>? other)
776private ImmutableSortedDictionary<TKey, TValue> AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items, bool overwriteOnCollision, bool avoidToSortedMap)
790foreach (KeyValuePair<TKey, TValue> item in items)
831private ImmutableSortedDictionary<TKey, TValue> FillFromEmpty(IEnumerable<KeyValuePair<TKey, TValue>> items, bool overwriteOnCollision)
852foreach (KeyValuePair<TKey, TValue> item in items)
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (12)
17internal sealed class Node : IEnumerable<KeyValuePair<TKey, TValue>>
126public KeyValuePair<TKey, TValue> Value
166IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()
199internal void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex, int dictionarySize)
205foreach (KeyValuePair<TKey, TValue> item in this)
220foreach (KeyValuePair<TKey, TValue> item in this)
235IReadOnlyList<KeyValuePair<TKey, TValue>> list = dictionary.AsReadOnlyList();
394foreach (KeyValuePair<TKey, TValue> item in this)
413internal bool Contains(KeyValuePair<TKey, TValue> pair, IComparer<TKey> keyComparer, IEqualityComparer<TValue> valueComparer)
589private static Node NodeTreeFromList(IReadOnlyList<KeyValuePair<TKey, TValue>> items, int start, int length)
604KeyValuePair<TKey, TValue> item = items[start + leftCount];
System\Collections\Immutable\ImmutableSortedDictionary.cs (6)
58public static ImmutableSortedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> items) where TKey : notnull
71public static ImmutableSortedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IComparer<TKey>? keyComparer, IEnumerable<KeyValuePair<TKey, TValue>> items) where TKey : notnull
85public static ImmutableSortedDictionary<TKey, TValue> CreateRange<TKey, TValue>(IComparer<TKey>? keyComparer, IEqualityComparer<TValue>? valueComparer, IEnumerable<KeyValuePair<TKey, TValue>> items) where TKey : notnull
200public static ImmutableSortedDictionary<TKey, TValue> ToImmutableSortedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source, IComparer<TKey>? keyComparer, IEqualityComparer<TValue>? valueComparer) where TKey : notnull
220public static ImmutableSortedDictionary<TKey, TValue> ToImmutableSortedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source, IComparer<TKey>? keyComparer) where TKey : notnull
232public static ImmutableSortedDictionary<TKey, TValue> ToImmutableSortedDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source) where TKey : notnull
System.Collections.NonGeneric (1)
System.CommandLine (3)
System.ComponentModel.Annotations (5)
System.ComponentModel.Composition (28)
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (8)
24private readonly IEnumerable<KeyValuePair<string, Type>> _requiredMetadata = Enumerable.Empty<KeyValuePair<string, Type>>();
101public ContractBasedImportDefinition(string contractName, string? requiredTypeIdentity, IEnumerable<KeyValuePair<string, Type>>? requiredMetadata,
163public ContractBasedImportDefinition(string contractName, string? requiredTypeIdentity, IEnumerable<KeyValuePair<string, Type>>? requiredMetadata,
208public virtual IEnumerable<KeyValuePair<string, Type>> RequiredMetadata
224foreach (KeyValuePair<string, Type> metadataItem in _requiredMetadata)
319foreach (KeyValuePair<string, Type> metadataItem in RequiredMetadata)
374foreach (KeyValuePair<string, Type> metadataItem in _requiredMetadata)
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (5)
165IEnumerable<KeyValuePair<string, Type>>? requiredMetadata,
178IEnumerable<KeyValuePair<string, Type>>? requiredMetadata,
204IEnumerable<KeyValuePair<string, Type>>? requiredMetadata,
251IEnumerable<KeyValuePair<string, Type>>? requiredMetadata,
263IEnumerable<KeyValuePair<string, Type>>? requiredMetadata,
System.ComponentModel.TypeConverter (18)
System\ComponentModel\CollectibleKeyConcurrentHashtable.cs (9)
18internal sealed class CollectibleKeyConcurrentHashtable<TKey, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] TValue> : IEnumerable<KeyValuePair<TKey, TValue>>
78public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() =>
79new Enumerator(_defaultTable.GetEnumerator(), ((IEnumerable<KeyValuePair<TKey, object?>>)_collectibleTable).GetEnumerator());
83private sealed class Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>
85private readonly IEnumerator<KeyValuePair<TKey, TValue>> _defaultEnumerator;
86private readonly IEnumerator<KeyValuePair<TKey, object?>> _collectibleEnumerator;
89public Enumerator(IEnumerator<KeyValuePair<TKey, TValue>> defaultEnumerator, IEnumerator<KeyValuePair<TKey, object?>> collectibleEnumerator)
96public KeyValuePair<TKey, TValue> Current { get; private set; }
System.Composition.Hosting (6)
System.Composition.Runtime (3)
System.Composition.TypedParts (1)
System.Configuration.ConfigurationManager (1)
System.Console (1)
System.Data.Common (17)
System\Data\Common\ObjectStorage.cs (13)
552private static Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>? s_tempAssemblyCache;
589KeyValuePair<Type, XmlRootAttribute> key = new KeyValuePair<Type, XmlRootAttribute>(type, attribute);
592Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>? cache = s_tempAssemblyCache;
609Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer> tmp =
610new Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>(
612foreach (KeyValuePair<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer> entry in cache)
620cache = new Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>(
641private sealed class TempAssemblyComparer : IEqualityComparer<KeyValuePair<Type, XmlRootAttribute>>
643internal static readonly IEqualityComparer<KeyValuePair<Type, XmlRootAttribute>> s_default = new TempAssemblyComparer();
647public bool Equals(KeyValuePair<Type, XmlRootAttribute> x, KeyValuePair<Type, XmlRootAttribute> y)
658public int GetHashCode(KeyValuePair<Type, XmlRootAttribute> obj)
System.Data.Odbc (6)
System.Data.OleDb (8)
System.Diagnostics.DiagnosticSource (315)
src\runtime\src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (9)
22internal static unsafe bool CompareTags(IList<KeyValuePair<string, object?>>? sortedTags, IEnumerable<KeyValuePair<string, object?>>? tags2)
38if (tags2 is ICollection<KeyValuePair<string, object?>> tagsCol)
45if (tagsCol is IList<KeyValuePair<string, object?>> secondList)
49KeyValuePair<string, object?> pair = secondList[i];
59KeyValuePair<string, object?> pair1 = sortedTags[j];
80using (IEnumerator<KeyValuePair<string, object?>> enumerator = tags2.GetEnumerator())
90KeyValuePair<string, object?> pair = enumerator.Current;
99KeyValuePair<string, object?> pair1 = sortedTags[j];
System\Diagnostics\Activity.cs (72)
62private static readonly IEnumerable<KeyValuePair<string, string?>> s_emptyBaggageTags = new KeyValuePair<string, string?>[0];
63private static readonly IEnumerable<KeyValuePair<string, object?>> s_emptyTagObjects = new KeyValuePair<string, object?>[0];
339public IEnumerable<KeyValuePair<string, string?>> Tags
348public IEnumerable<KeyValuePair<string, object?>> TagObjects
379public IEnumerable<KeyValuePair<string, string?>> Baggage
393static IEnumerable<KeyValuePair<string, string?>> Iterate(Activity? activity)
400for (DiagNode<KeyValuePair<string, string?>>? current = activity._baggage.First; current != null; current = current.Next)
416public Enumerator<KeyValuePair<string, object?>> EnumerateTagObjects() => new Enumerator<KeyValuePair<string, object?>>(_tags?.First);
442foreach (KeyValuePair<string, string?> keyValue in EnumerateBaggage())
497KeyValuePair<string, object?> kvp = new KeyValuePair<string, object?>(key, value);
521KeyValuePair<string, object?> kvp = new KeyValuePair<string, object?>(key, value);
642KeyValuePair<string, string?> kvp = new KeyValuePair<string, string?>(key, value);
666KeyValuePair<string, string?> kvp = new KeyValuePair<string, string?>(key, value);
1190IEnumerable<KeyValuePair<string, object?>>? tags, IEnumerable<ActivityLink>? links, DateTimeOffset startTime,
1213using (IEnumerator<KeyValuePair<string, object?>> enumerator = tags.GetEnumerator())
1621private DiagNode<KeyValuePair<string, string?>>? _next;
1630public KeyValuePair<string, string?> Current { get; private set; }
1657private sealed class BaggageLinkedList : IEnumerable<KeyValuePair<string, string?>>
1659private DiagNode<KeyValuePair<string, string?>>? _first;
1661public BaggageLinkedList(KeyValuePair<string, string?> firstValue, bool set = false) => _first = ((set && firstValue.Value == null) ? null : new DiagNode<KeyValuePair<string, string?>>(firstValue));
1663public DiagNode<KeyValuePair<string, string?>>? First => _first;
1665public void Add(KeyValuePair<string, string?> value)
1667DiagNode<KeyValuePair<string, string?>> newNode = new DiagNode<KeyValuePair<string, string?>>(value);
1676public void Set(KeyValuePair<string, string?> value)
1686DiagNode<KeyValuePair<string, string?>>? current = _first;
1698DiagNode<KeyValuePair<string, string?>> newNode = new DiagNode<KeyValuePair<string, string?>>(value);
1719DiagNode<KeyValuePair<string, string?>> previous = _first;
1733public DiagEnumerator<KeyValuePair<string, string?>> GetEnumerator() => new DiagEnumerator<KeyValuePair<string, string?>>(_first);
1734IEnumerator<KeyValuePair<string, string?>> IEnumerable<KeyValuePair<string, string?>>.GetEnumerator() => GetEnumerator();
1738internal sealed class TagsLinkedList : IEnumerable<KeyValuePair<string, object?>>
1740private DiagNode<KeyValuePair<string, object?>>? _first;
1741private DiagNode<KeyValuePair<string, object?>>? _last;
1745public TagsLinkedList(KeyValuePair<string, object?> firstValue, bool set = false) => _last = _first = ((set && firstValue.Value == null) ? null : new DiagNode<KeyValuePair<string, object?>>(firstValue));
1747public TagsLinkedList(IEnumerator<KeyValuePair<string, object?>> e)
1749_last = _first = new DiagNode<KeyValuePair<string, object?>>(e.Current);
1753_last.Next = new DiagNode<KeyValuePair<string, object?>>(e.Current);
1758public DiagNode<KeyValuePair<string, object?>>? First => _first;
1760public TagsLinkedList(IEnumerable<KeyValuePair<string, object?>> list) => Add(list);
1763public void Add(IEnumerable<KeyValuePair<string, object?>> list)
1765IEnumerator<KeyValuePair<string, object?>> e = list.GetEnumerator();
1773_last = _first = new DiagNode<KeyValuePair<string, object?>>(e.Current);
1777_last!.Next = new DiagNode<KeyValuePair<string, object?>>(e.Current);
1783_last.Next = new DiagNode<KeyValuePair<string, object?>>(e.Current);
1788public void Add(KeyValuePair<string, object?> value)
1790DiagNode<KeyValuePair<string, object?>> newNode = new DiagNode<KeyValuePair<string, object?>>(value);
1810DiagNode<KeyValuePair<string, object?>>? current = _first;
1842DiagNode<KeyValuePair<string, object?>> previous = _first;
1860public void Set(KeyValuePair<string, object?> value)
1870DiagNode<KeyValuePair<string, object?>>? current = _first;
1882DiagNode<KeyValuePair<string, object?>> newNode = new DiagNode<KeyValuePair<string, object?>>(value);
1896public DiagEnumerator<KeyValuePair<string, object?>> GetEnumerator() => new DiagEnumerator<KeyValuePair<string, object?>>(_first);
1897IEnumerator<KeyValuePair<string, object?>> IEnumerable<KeyValuePair<string, object?>>.GetEnumerator() => GetEnumerator();
1900public IEnumerable<KeyValuePair<string, string?>> EnumerateStringValues()
1902DiagNode<KeyValuePair<string, object?>>? current = _first;
1929DiagNode<KeyValuePair<string, object?>>? current = _first.Next;
2270public List<KeyValuePair<string, string?>> Baggage => new List<KeyValuePair<string, string?>>(activity.Baggage);
2288public List<KeyValuePair<string, object?>> TagObjects => new List<KeyValuePair<string, object?>>(activity.TagObjects);
System\Diagnostics\ActivitySource.cs (11)
40public ActivitySource(string name, string? version = "", IEnumerable<KeyValuePair<string, object?>>? tags = default) : this(name, version, tags, scope: null, telemetrySchemaUrl: null) {}
48private ActivitySource(string name, string? version, IEnumerable<KeyValuePair<string, object?>>? tags, object? scope, string? telemetrySchemaUrl)
59var tagList = new List<KeyValuePair<string, object?>>(tags);
111public IEnumerable<KeyValuePair<string, object?>>? Tags { get; }
163public Activity? CreateActivity(string name, ActivityKind kind, ActivityContext parentContext, IEnumerable<KeyValuePair<string, object?>>? tags = null, IEnumerable<ActivityLink>? links = null, ActivityIdFormat idFormat = ActivityIdFormat.Unknown)
179public Activity? CreateActivity(string name, ActivityKind kind, string? parentId, IEnumerable<KeyValuePair<string, object?>>? tags = null, IEnumerable<ActivityLink>? links = null, ActivityIdFormat idFormat = ActivityIdFormat.Unknown)
201public Activity? StartActivity(string name, ActivityKind kind, ActivityContext parentContext, IEnumerable<KeyValuePair<string, object?>>? tags = null, IEnumerable<ActivityLink>? links = null, DateTimeOffset startTime = default)
214public Activity? StartActivity(string name, ActivityKind kind, string? parentId, IEnumerable<KeyValuePair<string, object?>>? tags = null, IEnumerable<ActivityLink>? links = null, DateTimeOffset startTime = default)
227public Activity? StartActivity(ActivityKind kind, ActivityContext parentContext = default, IEnumerable<KeyValuePair<string, object?>>? tags = null, IEnumerable<ActivityLink>? links = null, DateTimeOffset startTime = default, [CallerMemberName] string name = "")
230private Activity? CreateActivity(string name, ActivityKind kind, ActivityContext context, string? parentId, IEnumerable<KeyValuePair<string, object?>>? tags,
316foreach (KeyValuePair<string, object?> tag in atc)
System\Diagnostics\ActivityTagsCollection.cs (16)
24private readonly List<KeyValuePair<string, object?>> _list = new List<KeyValuePair<string, object?>>();
37public ActivityTagsCollection(IEnumerable<KeyValuePair<string, object?>> list)
41foreach (KeyValuePair<string, object?> kvp in list)
99foreach (KeyValuePair<string, object?> kvp in _list)
115foreach (KeyValuePair<string, object?> kvp in _list)
156public void Add(KeyValuePair<string, object?> item)
177public bool Contains(KeyValuePair<string, object?> item) => _list.Contains(item);
191public void CopyTo(KeyValuePair<string, object?>[] array, int arrayIndex) => _list.CopyTo(array, arrayIndex);
196IEnumerator<KeyValuePair<string, object?>> IEnumerable<KeyValuePair<string, object?>>.GetEnumerator() => new Enumerator(_list);
232public bool Remove(KeyValuePair<string, object?> item) => _list.Remove(item);
272public struct Enumerator : IEnumerator<KeyValuePair<string, object?>>, IEnumerator
274private List<KeyValuePair<string, object?>>.Enumerator _enumerator;
275internal Enumerator(List<KeyValuePair<string, object?>> list) => _enumerator = list.GetEnumerator();
277public KeyValuePair<string, object?> Current => _enumerator.Current;
System\Diagnostics\DiagnosticListener.cs (6)
29public partial class DiagnosticListener : DiagnosticSource, IObservable<KeyValuePair<string, object?>>, IDisposable
64public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer, Predicate<string>? isEnabled)
108public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer, Func<string, object?, object?, bool>? isEnabled)
122public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer)
269internal IObserver<KeyValuePair<string, object?>> Observer = null!;
433private DiagnosticSubscription SubscribeInternal(IObserver<KeyValuePair<string, object?>> observer,
System\Diagnostics\DiagnosticSourceEventSource.cs (18)
231[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(KeyValuePair<,>))]
233public void Event(string SourceName, string EventName, IEnumerable<KeyValuePair<string, string?>>? Arguments)
253[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(KeyValuePair<,>))]
255public void Activity1Start(string SourceName, string EventName, IEnumerable<KeyValuePair<string, string?>> Arguments)
265[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(KeyValuePair<,>))]
267public void Activity1Stop(string SourceName, string EventName, IEnumerable<KeyValuePair<string, string?>> Arguments)
277[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(KeyValuePair<,>))]
279public void Activity2Start(string SourceName, string EventName, IEnumerable<KeyValuePair<string, string?>> Arguments)
289[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(KeyValuePair<,>))]
291public void Activity2Stop(string SourceName, string EventName, IEnumerable<KeyValuePair<string, string?>> Arguments)
301[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(KeyValuePair<,>))]
303public void RecursiveActivity1Start(string SourceName, string EventName, IEnumerable<KeyValuePair<string, string?>> Arguments)
313[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(KeyValuePair<,>))]
315public void RecursiveActivity1Stop(string SourceName, string EventName, IEnumerable<KeyValuePair<string, string?>> Arguments)
338[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(KeyValuePair<,>))]
340public void ActivityStart(string SourceName, string ActivityName, IEnumerable<KeyValuePair<string, string?>> Arguments) =>
351[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(KeyValuePair<,>))]
353public void ActivityStop(string SourceName, string ActivityName, IEnumerable<KeyValuePair<string, string?>> Arguments) =>
System\Diagnostics\Metrics\AggregatorStore.cs (11)
70public TAggregator? GetAggregator(ReadOnlySpan<KeyValuePair<string, object?>> labels)
83private TAggregator? GetAggregatorSlow(ReadOnlySpan<KeyValuePair<string, object?>> labels)
323internal delegate bool AggregatorLookupFunc<TAggregator>(ReadOnlySpan<KeyValuePair<string, object?>> labels, out TAggregator? aggregator);
331ReadOnlySpan<KeyValuePair<string, object?>> labels)
341return (ReadOnlySpan<KeyValuePair<string, object?>> l, out TAggregator? aggregator) =>
396private static LabelInstruction[] Compile(ReadOnlySpan<KeyValuePair<string, object?>> labels)
434ReadOnlySpan<KeyValuePair<string, object?>> labels,
488foreach (KeyValuePair<TStringSequence, ConcurrentDictionary<TObjectSequence, TAggregator>> kvName in this)
495foreach (KeyValuePair<TObjectSequence, TAggregator> kvValue in kvName.Value)
502KeyValuePair<string, string>[] labels = new KeyValuePair<string, string>[indexedNames.Length];
System\Diagnostics\Metrics\Counter.cs (9)
22internal Counter(Meter meter, string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
38public void Add(T delta, KeyValuePair<string, object?> tag) => RecordMeasurement(delta, tag);
46public void Add(T delta, KeyValuePair<string, object?> tag1, KeyValuePair<string, object?> tag2) => RecordMeasurement(delta, tag1, tag2);
55public void Add(T delta, KeyValuePair<string, object?> tag1, KeyValuePair<string, object?> tag2, KeyValuePair<string, object?> tag3) => RecordMeasurement(delta, tag1, tag2, tag3);
62public void Add(T delta, params ReadOnlySpan<KeyValuePair<string, object?>> tags) => RecordMeasurement(delta, tags);
69public void Add(T delta, params KeyValuePair<string, object?>[] tags) => RecordMeasurement(delta, tags.AsSpan());
System\Diagnostics\Metrics\Gauge.cs (9)
20internal Gauge(Meter meter, string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
36public void Record(T value, KeyValuePair<string, object?> tag) => RecordMeasurement(value, tag);
44public void Record(T value, KeyValuePair<string, object?> tag1, KeyValuePair<string, object?> tag2) => RecordMeasurement(value, tag1, tag2);
53public void Record(T value, KeyValuePair<string, object?> tag1, KeyValuePair<string, object?> tag2, KeyValuePair<string, object?> tag3) => RecordMeasurement(value, tag1, tag2, tag3);
60public void Record(T value, params ReadOnlySpan<KeyValuePair<string, object?>> tags) => RecordMeasurement(value, tags);
67public void Record(T value, params KeyValuePair<string, object?>[] tags) => RecordMeasurement(value, tags.AsSpan());
System\Diagnostics\Metrics\Histogram.cs (9)
23internal Histogram(Meter meter, string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags, InstrumentAdvice<T>? advice)
40public void Record(T value, KeyValuePair<string, object?> tag) => RecordMeasurement(value, tag);
48public void Record(T value, KeyValuePair<string, object?> tag1, KeyValuePair<string, object?> tag2) => RecordMeasurement(value, tag1, tag2);
57public void Record(T value, KeyValuePair<string, object?> tag1, KeyValuePair<string, object?> tag2, KeyValuePair<string, object?> tag3) => RecordMeasurement(value, tag1, tag2, tag3);
64public void Record(T value, params ReadOnlySpan<KeyValuePair<string, object?>> tags) => RecordMeasurement(value, tags);
71public void Record(T value, params KeyValuePair<string, object?>[] tags) => RecordMeasurement(value, tags.AsSpan());
System\Diagnostics\Metrics\Instrument.netcore.cs (6)
23protected void RecordMeasurement(T measurement, KeyValuePair<string, object?> tag) =>
32protected void RecordMeasurement(T measurement, KeyValuePair<string, object?> tag1, KeyValuePair<string, object?> tag2) =>
42protected void RecordMeasurement(T measurement, KeyValuePair<string, object?> tag1, KeyValuePair<string, object?> tag2, KeyValuePair<string, object?> tag3) =>
System\Diagnostics\Metrics\Measurement.cs (11)
16private readonly KeyValuePair<string, object?>[] _tags;
32/// <param name="tags">The <see cref="KeyValuePair{TKey, TValue}"/> tags associated with the measurement.</param>
33public Measurement(T value, IEnumerable<KeyValuePair<string, object?>>? tags)
43/// <param name="tags">The <see cref="KeyValuePair{TKey, TValue}"/> tags associated with the measurement.</param>
44public Measurement(T value, params KeyValuePair<string, object?>[]? tags)
48_tags = new KeyValuePair<string, object?>[tags.Length];
64/// <param name="tags">The <see cref="KeyValuePair{TKey, TValue}"/> tags associated with the measurement.</param>
65public Measurement(T value, params ReadOnlySpan<KeyValuePair<string, object?>> tags)
76/// <param name="tags">A <see cref="TagList"/> containing the <see cref="KeyValuePair{TKey, TValue}"/> tags associated with the measurement.</param>
81_tags = new KeyValuePair<string, object?>[tags.Count];
95public ReadOnlySpan<KeyValuePair<string, object?>> Tags => _tags.AsSpan();
System\Diagnostics\Metrics\Meter.cs (21)
66public Meter(string name, string? version, IEnumerable<KeyValuePair<string, object?>>? tags, object? scope = null)
72private void Initialize(string name, string? version, IEnumerable<KeyValuePair<string, object?>>? tags, object? scope = null, string? telemetrySchemaUrl = null)
78var tagList = new List<KeyValuePair<string, object?>>(tags);
112public IEnumerable<KeyValuePair<string, object?>>? Tags { get; private set; }
148public Counter<T> CreateCounter<T>(string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct
172public Gauge<T> CreateGauge<T>(string name, string? unit = null, string? description = null, IEnumerable<KeyValuePair<string, object?>>? tags = null) where T : struct
209public Histogram<T> CreateHistogram<T>(string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct
223public Histogram<T> CreateHistogram<T>(string name, string? unit = default, string? description = default, IEnumerable<KeyValuePair<string, object?>>? tags = default, InstrumentAdvice<T>? advice = default) where T : struct
250public UpDownCounter<T> CreateUpDownCounter<T>(string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct
277public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
305public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
332public ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
359public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
386public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
414public ObservableCounter<T> CreateObservableCounter<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
435public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
456public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
477public ObservableGauge<T> CreateObservableGauge<T>(string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct =>
525private static Instrument? GetCachedInstrument(List<Instrument> instrumentList, Type instrumentType, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags)
531instrument.Description == description && DiagnosticsHelper.CompareTags(instrument.Tags as List<KeyValuePair<string, object?>>, tags))
541private Instrument GetOrCreateInstrument<T>(Type instrumentType, string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags, Func<Instrument> instrumentCreator)
System\Diagnostics\Metrics\ObservableCounter.cs (3)
26internal ObservableCounter(Meter meter, string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
36internal ObservableCounter(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
46internal ObservableCounter(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
System\Diagnostics\Metrics\ObservableGauge.cs (3)
26internal ObservableGauge(Meter meter, string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
36internal ObservableGauge(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
46internal ObservableGauge(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
System\Diagnostics\Metrics\ObservableUpDownCounter.cs (3)
26internal ObservableUpDownCounter(Meter meter, string name, Func<T> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
36internal ObservableUpDownCounter(Meter meter, string name, Func<Measurement<T>> observeValue, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
46internal ObservableUpDownCounter(Meter meter, string name, Func<IEnumerable<Measurement<T>>> observeValues, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
System\Diagnostics\Metrics\TagList.netcore.cs (28)
22public struct TagList : IList<KeyValuePair<string, object?>>, IReadOnlyList<KeyValuePair<string, object?>>
31private KeyValuePair<string, object?>[]? _overflowTags;
38public TagList(params ReadOnlySpan<KeyValuePair<string, object?>> tagList) : this()
42scoped Span<KeyValuePair<string, object?>> tags = _tagsCount <= InlineTags.Length ?
44_overflowTags = new KeyValuePair<string, object?>[_tagsCount + OverflowAdditionalCapacity];
63public KeyValuePair<string, object?> this[int index]
99public void Add(KeyValuePair<string, object?> tag)
117private void AddToOverflow(KeyValuePair<string, object?> tag)
123_overflowTags = new KeyValuePair<string, object?>[InlineTags.Length + OverflowAdditionalCapacity];
124((ReadOnlySpan<KeyValuePair<string, object?>>)_tags).CopyTo(_overflowTags);
141public readonly void CopyTo(Span<KeyValuePair<string, object?>> tags)
158public readonly void CopyTo(KeyValuePair<string, object?>[] array, int arrayIndex)
176public void Insert(int index, KeyValuePair<string, object?> item)
188_overflowTags = new KeyValuePair<string, object?>[InlineTags.Length + OverflowAdditionalCapacity];
189((ReadOnlySpan<KeyValuePair<string, object?>>)_tags).CopyTo(_overflowTags);
204Span<KeyValuePair<string, object?>> tags = _tags;
221Span<KeyValuePair<string, object?>> tags = _overflowTags is not null ? _overflowTags : _tags;
237public readonly bool Contains(KeyValuePair<string, object?> item) =>
245public bool Remove(KeyValuePair<string, object?> item)
261public readonly IEnumerator<KeyValuePair<string, object?>> GetEnumerator() => new Enumerator(in this);
274public readonly int IndexOf(KeyValuePair<string, object?> item)
276ReadOnlySpan<KeyValuePair<string, object?>> tags =
307internal readonly ReadOnlySpan<KeyValuePair<string, object?>> Tags =>
309((ReadOnlySpan<KeyValuePair<string, object?>>)_tags).Slice(0, _tagsCount);
315private KeyValuePair<string, object?> _first;
318public struct Enumerator : IEnumerator<KeyValuePair<string, object?>>
329public KeyValuePair<string, object?> Current => _tagList[_index];
System\Diagnostics\Metrics\UpDownCounter.cs (9)
21internal UpDownCounter(Meter meter, string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) : base(meter, name, unit, description, tags)
37public void Add(T delta, KeyValuePair<string, object?> tag) => RecordMeasurement(delta, tag);
45public void Add(T delta, KeyValuePair<string, object?> tag1, KeyValuePair<string, object?> tag2) => RecordMeasurement(delta, tag1, tag2);
54public void Add(T delta, KeyValuePair<string, object?> tag1, KeyValuePair<string, object?> tag2, KeyValuePair<string, object?> tag3) => RecordMeasurement(delta, tag1, tag2, tag3);
61public void Add(T delta, params ReadOnlySpan<KeyValuePair<string, object?>> tags) => RecordMeasurement(delta, tags);
68public void Add(T delta, params KeyValuePair<string, object?>[] tags) => RecordMeasurement(delta, tags.AsSpan());
System.Diagnostics.EventLog (1)
System.Diagnostics.PerformanceCounter (2)
System.Diagnostics.Process (9)
System.DirectoryServices.AccountManagement (2)
System.Formats.Nrbf (1)
System.Formats.Tar (12)
System.IO.Packaging (5)
System.Linq (11)
System\Linq\AggregateBy.cs (6)
27public static IEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(
71public static IEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(
103private static IEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateByIterator<TSource, TKey, TAccumulate>(IEnumerable<TSource> source, Func<TSource, TKey> keySelector, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func, IEqualityComparer<TKey>? keyComparer) where TKey : notnull
112foreach (KeyValuePair<TKey, TAccumulate> countBy in PopulateDictionary(enumerator, keySelector, seed, func, keyComparer))
135private static IEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateByIterator<TSource, TKey, TAccumulate>(IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TKey, TAccumulate> seedSelector, Func<TAccumulate, TSource, TAccumulate> func, IEqualityComparer<TKey>? keyComparer) where TKey : notnull
144foreach (KeyValuePair<TKey, TAccumulate> countBy in PopulateDictionary(enumerator, keySelector, seedSelector, func, keyComparer))
System\Linq\CountBy.cs (3)
20public static IEnumerable<KeyValuePair<TKey, int>> CountBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? keyComparer = null) where TKey : notnull
39private static IEnumerable<KeyValuePair<TKey, int>> CountByIterator<TSource, TKey>(IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? keyComparer) where TKey : notnull
48foreach (KeyValuePair<TKey, int> countBy in BuildCountDictionary(enumerator, keySelector, keyComparer))
System.Linq.AsyncEnumerable (27)
System\Linq\AggregateBy.cs (16)
33public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(
46source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, TAccumulate>>() :
49static async IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> Impl(
80foreach (KeyValuePair<TKey, TAccumulate> countBy in dict)
104public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(
117source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, TAccumulate>>() :
120static async IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> Impl(
146foreach (KeyValuePair<TKey, TAccumulate> countBy in dict)
171public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(
184source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, TAccumulate>>() :
187static async IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> Impl(
218foreach (KeyValuePair<TKey, TAccumulate> countBy in dict)
243public static IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(
256source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, TAccumulate>>() :
259static async IAsyncEnumerable<KeyValuePair<TKey, TAccumulate>> Impl(
285foreach (KeyValuePair<TKey, TAccumulate> countBy in dict)
System\Linq\CountBy.cs (8)
23public static IAsyncEnumerable<KeyValuePair<TKey, int>> CountBy<TSource, TKey>(
32source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, int>>() :
35static async IAsyncEnumerable<KeyValuePair<TKey, int>> Impl(
57foreach (KeyValuePair<TKey, int> countBy in countsBy)
74public static IAsyncEnumerable<KeyValuePair<TKey, int>> CountBy<TSource, TKey>(
83source.IsKnownEmpty() ? Empty<KeyValuePair<TKey, int>>() :
86static async IAsyncEnumerable<KeyValuePair<TKey, int>> Impl(
108foreach (KeyValuePair<TKey, int> countBy in countsBy)
System.Linq.Expressions (32)
System\Dynamic\ExpandoObject.cs (16)
669int ICollection<KeyValuePair<string, object?>>.Count => _count;
671bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => false;
673void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> item)
678void ICollection<KeyValuePair<string, object?>>.Clear()
703bool ICollection<KeyValuePair<string, object?>>.Contains(KeyValuePair<string, object?> item)
713void ICollection<KeyValuePair<string, object?>>.CopyTo(KeyValuePair<string, object?>[] array, int arrayIndex)
720ContractUtils.RequiresArrayRange(array, arrayIndex, _count, nameof(arrayIndex), nameof(ICollection<KeyValuePair<string, object>>.Count));
721foreach (KeyValuePair<string, object?> item in this)
728bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item)
737IEnumerator<KeyValuePair<string, object?>> IEnumerable<KeyValuePair<string, object?>>.GetEnumerator()
751private IEnumerator<KeyValuePair<string, object?>> GetExpandoEnumerator(ExpandoData data, int version)
System\Linq\Expressions\Interpreter\InstructionList.cs (7)
26internal readonly List<KeyValuePair<int, object?>>? DebugCookies;
29object[]? objects, RuntimeLabel[] labels, List<KeyValuePair<int, object?>>? debugCookies)
81private List<KeyValuePair<int, object?>>? _debugCookies;
112Func<int, int> labelIndexer, IReadOnlyList<KeyValuePair<int, object?>>? debugCookies)
119IEnumerator<KeyValuePair<int, object?>> cookieEnumerator = (debugCookies ?? Array.Empty<KeyValuePair<int, object?>>()).GetEnumerator();
237_debugCookies ??= new List<KeyValuePair<int, object?>>();
System.Linq.Parallel (12)
System.Linq.Queryable (10)
System\Linq\Queryable.cs (10)
2466/// <returns>An <see cref="IQueryable{T}" /> that contains count for each distinct elements from the source sequence as a <see cref="KeyValuePair{TKey, TValue}"/> object.</returns>
2469public static IQueryable<KeyValuePair<TKey, int>> CountBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer = null) where TKey : notnull
2474return source.Provider.CreateQuery<KeyValuePair<TKey, int>>(
2477new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<KeyValuePair<TKey, int>>>(CountBy).Method,
3298public static IQueryable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> func, IEqualityComparer<TKey>? keyComparer = null) where TKey : notnull
3304return source.Provider.CreateQuery<KeyValuePair<TKey, TAccumulate>>(
3307new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>, IEqualityComparer<TKey>, IQueryable<KeyValuePair<TKey, TAccumulate>>>(AggregateBy).Method,
3328public static IQueryable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TKey, TAccumulate>> seedSelector, Expression<Func<TAccumulate, TSource, TAccumulate>> func, IEqualityComparer<TKey>? keyComparer = null) where TKey : notnull
3335return source.Provider.CreateQuery<KeyValuePair<TKey, TAccumulate>>(
3338new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, TAccumulate>>, Expression<Func<TAccumulate, TSource, TAccumulate>>, IEqualityComparer<TKey>, IQueryable<KeyValuePair<TKey, TAccumulate>>>(AggregateBy).Method,
System.Net.Http (51)
System\Net\Http\HttpRequestOptions.cs (16)
35int ICollection<KeyValuePair<string, object?>>.Count => Options.Count;
36bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => ((IDictionary<string, object?>)Options).IsReadOnly;
38void ICollection<KeyValuePair<string, object?>>.Add(KeyValuePair<string, object?> item) => ((IDictionary<string, object?>)Options).Add(item);
39void ICollection<KeyValuePair<string, object?>>.Clear() => Options.Clear();
40bool ICollection<KeyValuePair<string, object?>>.Contains(KeyValuePair<string, object?> item) => ((IDictionary<string, object?>)Options).Contains(item);
42void ICollection<KeyValuePair<string, object?>>.CopyTo(KeyValuePair<string, object?>[] array, int arrayIndex) =>
44IEnumerator<KeyValuePair<string, object?>> IEnumerable<KeyValuePair<string, object?>>.GetEnumerator() => Options.GetEnumerator();
47bool ICollection<KeyValuePair<string, object?>>.Remove(KeyValuePair<string, object?> item) => ((IDictionary<string, object?>)Options).Remove(item);
50int IReadOnlyCollection<KeyValuePair<string, object?>>.Count => Options.Count;
92public KeyValuePair<string, object?>[] Items
97var items = new KeyValuePair<string, object?>[dictionary.Count];
System.Net.Http.WinHttpHandler (1)
System.Net.Mail (2)
System.Net.NameResolution (11)
System\Net\Dns.cs (7)
368KeyValuePair<IPAddress, AddressFamily> t => t.Key,
766KeyValuePair<string, AddressFamily> t => GetHostAddressesCore(t.Key, t.Value, activity),
768KeyValuePair<IPAddress, AddressFamily> t => GetHostAddressesCore(t.Key, t.Value, activity),
777KeyValuePair<string, AddressFamily> t => GetHostEntryCore(t.Key, t.Value, activity),
779KeyValuePair<IPAddress, AddressFamily> t => GetHostEntryCore(t.Key, t.Value, activity),
970((ICollection<KeyValuePair<object, Task>>)s_tasks).Remove(new KeyValuePair<object, Task>(key!, task!));
983((ICollection<KeyValuePair<object, Task>>)s_tasks).Remove(new KeyValuePair<object, Task>(key!, task));
System.Net.NetworkInformation (2)
System.Net.Requests (3)
System.Net.Security (3)
System.Net.WebSockets.Client (4)
System.Private.CoreLib (170)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (35)
98public ConcurrentDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)
118public ConcurrentDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
141public ConcurrentDictionary(int concurrencyLevel, IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)
285private static int GetCapacityFromCollection(IEnumerable<KeyValuePair<TKey, TValue>> collection) =>
288ICollection<KeyValuePair<TKey, TValue>> c => Math.Max(DefaultCapacity, c.Count),
289IReadOnlyCollection<KeyValuePair<TKey, TValue>> rc => Math.Max(DefaultCapacity, rc.Count),
334private void InitializeFromCollection(IEnumerable<KeyValuePair<TKey, TValue>> collection)
336foreach (KeyValuePair<TKey, TValue> pair in collection)
407/// <param name="item">The <see cref="KeyValuePair{TKey,TValue}"/> representing the key and value to remove.</param>
419/// The <see cref="KeyValuePair{TKey, TValue}.Key"/> property of <paramref name="item"/> is a null reference.
421public bool TryRemove(KeyValuePair<TKey, TValue> item)
736/// Copies the elements of the <see cref="ICollection{T}"/> to an array of type <see cref="KeyValuePair{TKey,TValue}"/>,
740/// The one-dimensional array of type <see cref="KeyValuePair{TKey,TValue}"/> that is the destination of the <see
741/// cref="KeyValuePair{TKey,TValue}"/> elements copied from the <see cref="ICollection"/>. The array must have zero-based indexing.
751void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
782public KeyValuePair<TKey, TValue>[] ToArray()
795var array = new KeyValuePair<TKey, TValue>[count];
807private void CopyToPairs(KeyValuePair<TKey, TValue>[] array, int index)
859public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator() => new Enumerator(this);
862private sealed class Enumerator(ConcurrentDictionary<TKey, TValue> dictionary) : IEnumerator<KeyValuePair<TKey, TValue>>
876public KeyValuePair<TKey, TValue> Current { get; private set; }
1592/// <param name="keyValuePair">The <see cref="KeyValuePair{TKey,TValue}"/>
1602void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair) => ((IDictionary<TKey, TValue>)this).Add(keyValuePair.Key, keyValuePair.Value);
1608/// <param name="keyValuePair">The <see cref="KeyValuePair{TKey,TValue}"/>
1613bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair) =>
1624bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
1630/// cref="KeyValuePair{TKey,TValue}"/>
1637bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair) =>
1887if (array is KeyValuePair<TKey, TValue>[] pairs)
2292private readonly IEnumerator<KeyValuePair<TKey, TValue>> _enumerator; // Enumerator over the dictionary.
2713var keyValuePairs = new KeyValuePair<TKey, TValue>[_dictionary.Count];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (33)
98public Dictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection) : this(collection, null) { }
100public Dictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer) :
101this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
111private void AddRange(IEnumerable<KeyValuePair<TKey, TValue>> enumerable)
157ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
158if (enumerable is KeyValuePair<TKey, TValue>[] array)
162else if (enumerable.GetType() == typeof(List<KeyValuePair<TKey, TValue>>))
164span = CollectionsMarshal.AsSpan((List<KeyValuePair<TKey, TValue>>)enumerable);
169foreach (KeyValuePair<TKey, TValue> pair in enumerable)
177foreach (KeyValuePair<TKey, TValue> pair in span)
254void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> keyValuePair) =>
257bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> keyValuePair)
268bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> keyValuePair)
342private void CopyTo(KeyValuePair<TKey, TValue>[] array, int index)
372IEnumerator<KeyValuePair<TKey, TValue>> IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator() =>
373Count == 0 ? GenericEmptyEnumerator<KeyValuePair<TKey, TValue>>.Instance :
391var array = new KeyValuePair<TKey, TValue>[Count];
393info.AddValue(KeyValuePairsName, array, typeof(KeyValuePair<TKey, TValue>[]));
1219KeyValuePair<TKey, TValue>[]? array = (KeyValuePair<TKey, TValue>[]?)
1220siInfo.GetValue(KeyValuePairsName, typeof(KeyValuePair<TKey, TValue>[]));
1566bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
1568void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int index) =>
1598if (array is KeyValuePair<TKey, TValue>[] pairs)
1640IEnumerator IEnumerable.GetEnumerator() => ((IEnumerable<KeyValuePair<TKey, TValue>>)this).GetEnumerator();
1874public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDictionaryEnumerator
1879private KeyValuePair<TKey, TValue> _current;
1919public KeyValuePair<TKey, TValue> Current => _current;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (15)
73bool ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue> item)
78void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
83bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
85void ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue> item)
90void ICollection<KeyValuePair<TKey, TValue>>.Clear()
95bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
100public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
179if (array is KeyValuePair<TKey, TValue>[] pairs)
187foreach (var item in m_dictionary)
197foreach (var item in m_dictionary)
217private readonly IEnumerator<KeyValuePair<TKey, TValue>> _enumerator;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\AsyncLocal.cs (35)
141private readonly KeyValuePair<IAsyncLocal, object?> _item0;
143public OneElementAsyncLocalValueMap(KeyValuePair<IAsyncLocal, object?> item0)
154KeyValuePair<IAsyncLocal, object?> newItem = KeyValuePair.Create(key, value);
187private readonly KeyValuePair<IAsyncLocal, object?> _item0;
188private readonly KeyValuePair<IAsyncLocal, object?> _item1;
191KeyValuePair<IAsyncLocal, object?> item0,
192KeyValuePair<IAsyncLocal, object?> item1)
204KeyValuePair<IAsyncLocal, object?> newItem = KeyValuePair.Create(key, value);
244private readonly KeyValuePair<IAsyncLocal, object?> _item0;
245private readonly KeyValuePair<IAsyncLocal, object?> _item1;
246private readonly KeyValuePair<IAsyncLocal, object?> _item2;
249KeyValuePair<IAsyncLocal, object?> item0,
250KeyValuePair<IAsyncLocal, object?> item1,
251KeyValuePair<IAsyncLocal, object?> item2)
264KeyValuePair<IAsyncLocal, object?> newItem = KeyValuePair.Create(key, value);
311private readonly KeyValuePair<IAsyncLocal, object?> _item0;
312private readonly KeyValuePair<IAsyncLocal, object?> _item1;
313private readonly KeyValuePair<IAsyncLocal, object?> _item2;
314private readonly KeyValuePair<IAsyncLocal, object?> _item3;
317KeyValuePair<IAsyncLocal, object?> item0,
318KeyValuePair<IAsyncLocal, object?> item1,
319KeyValuePair<IAsyncLocal, object?> item2,
320KeyValuePair<IAsyncLocal, object?> item3)
333KeyValuePair<IAsyncLocal, object?> newItem = KeyValuePair.Create(key, value);
388private readonly KeyValuePair<IAsyncLocal, object?>[] _keyValues;
390internal MultiElementAsyncLocalValueMap(KeyValuePair<IAsyncLocal, object?>[] keyValues)
407KeyValuePair<IAsyncLocal, object?>[] newValues = _keyValues.AsSpan().ToArray();
428var newValues = new KeyValuePair<IAsyncLocal, object?>[_keyValues.Length - 1];
448var newValues = new KeyValuePair<IAsyncLocal, object?>[_keyValues.Length + 1];
456foreach (KeyValuePair<IAsyncLocal, object?> pair in _keyValues)
466foreach (KeyValuePair<IAsyncLocal, object?> pair in _keyValues)
494foreach (KeyValuePair<IAsyncLocal, object?> pair in this)
513var newValues = new KeyValuePair<IAsyncLocal, object?>[MultiElementAsyncLocalValueMap.MaxMultiElements];
515foreach (KeyValuePair<IAsyncLocal, object?> pair in this)
528foreach (KeyValuePair<IAsyncLocal, object?> pair in this)
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (13)
System.Private.Reflection.Execution (12)
System.Private.TypeLoader (10)
System.Private.Windows.Core.TestUtilities (2)
System.Private.Xml (22)
System.Reflection.Emit (6)
System.Reflection.Metadata (19)
System.Resources.Extensions (3)
System.Resources.Writer (2)
System.Runtime (1)
System.Runtime.Caching (6)
System.Runtime.Serialization.Schema (5)
System.Security.Claims (1)
System.Security.Cryptography.Cose (9)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (8)
37private ICollection<KeyValuePair<CoseHeaderLabel, CoseHeaderValue>> HeaderParametersAsCollection => _headerParameters;
139public void Add(KeyValuePair<CoseHeaderLabel, CoseHeaderValue> item) => Add(item.Key, item.Value);
198public bool Contains(KeyValuePair<CoseHeaderLabel, CoseHeaderValue> item)
202public void CopyTo(KeyValuePair<CoseHeaderLabel, CoseHeaderValue>[] array, int arrayIndex)
206public IEnumerator<KeyValuePair<CoseHeaderLabel, CoseHeaderValue>> GetEnumerator()
231public bool Remove(KeyValuePair<CoseHeaderLabel, CoseHeaderValue> item)
358foreach (KeyValuePair<CoseHeaderLabel, CoseHeaderValue> kvp in map)
399foreach (KeyValuePair<CoseHeaderLabel, CoseHeaderValue> kvp in map)
System.ServiceModel.Http (3)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.Primitives (45)
System\ServiceModel\Channels\Message.cs (7)
1051public BodyWriterMessage(MessageHeaders headers, KeyValuePair<string, object>[] properties, BodyWriter bodyWriter)
1139KeyValuePair<string, object>[] properties = new KeyValuePair<string, object>[Properties.Count];
1140((ICollection<KeyValuePair<string, object>>)Properties).CopyTo(properties, 0);
1877KeyValuePair<string, object>[] properties = new KeyValuePair<string, object>[Properties.Count];
1878((ICollection<KeyValuePair<string, object>>)Properties).CopyTo(properties, 0);
System\ServiceModel\Channels\MessageBuffer.cs (7)
57private KeyValuePair<string, object>[] _properties;
71_properties = new KeyValuePair<string, object>[message.Properties.Count];
72((ICollection<KeyValuePair<string, object>>)message.Properties).CopyTo(_properties, 0);
164private KeyValuePair<string, object>[] _properties;
170KeyValuePair<string, object>[] properties, bool[] understoodHeaders, bool understoodHeadersModified)
273KeyValuePair<string, object>[] properties, BodyWriter bodyWriter)
321protected KeyValuePair<string, object>[] Properties { get; private set; }
System\ServiceModel\Channels\MessageProperties.cs (16)
45internal MessageProperties(KeyValuePair<string, object>[] array)
471internal void CopyProperties(KeyValuePair<string, object>[] array)
480KeyValuePair<string, object> property = array[i];
808void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int index)
867void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> pair)
882bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> pair)
914return ((IEnumerable<KeyValuePair<string, object>>)this).GetEnumerator();
917IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator()
924List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(_propertyCount);
964bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> pair)
System.ServiceModel.Primitives.Tests (1)
System.Speech (26)
Internal\Synthesis\TextWriterEngine.cs (6)
291private bool ProcessPromptEngine(string element, params KeyValuePair<string, string?>[]? attributes)
297foreach (KeyValuePair<string, string?> kp in attributes)
315return ProcessPromptEngine("database", new KeyValuePair<string, string?>[] { new KeyValuePair<string, string?>("fname", fname), new KeyValuePair<string, string?>("delta", delta), new KeyValuePair<string, string?>("idset", idset) });
325return ProcessPromptEngine("id", new KeyValuePair<string, string?>[] { new KeyValuePair<string, string?>("id", id) });
339return ProcessPromptEngine("withtag", new KeyValuePair<string, string?>[] { new KeyValuePair<string, string?>("tag", tag) });
348return ProcessPromptEngine("rule", new KeyValuePair<string, string?>[] { new KeyValuePair<string, string?>("name", name) });
Result\SemanticValue.cs (15)
46foreach (KeyValuePair<string, SemanticValue> kv in _dictionary)
96public bool Contains(KeyValuePair<string, SemanticValue> item)
112void ICollection<KeyValuePair<string, SemanticValue>>.Add(KeyValuePair<string, SemanticValue> key)
122void ICollection<KeyValuePair<string, SemanticValue>>.Clear()
127bool ICollection<KeyValuePair<string, SemanticValue>>.Remove(KeyValuePair<string, SemanticValue> key)
136void ICollection<KeyValuePair<string, SemanticValue>>.CopyTo(KeyValuePair<string, SemanticValue>[] array, int index)
138((ICollection<KeyValuePair<string, SemanticValue>>)_dictionary).CopyTo(array, index);
140IEnumerator<KeyValuePair<string, SemanticValue>> IEnumerable<KeyValuePair<string, SemanticValue>>.GetEnumerator()
145bool ICollection<KeyValuePair<string, SemanticValue>>.IsReadOnly
161return ((IEnumerable<KeyValuePair<string, SemanticValue>>)this).GetEnumerator();
250foreach (KeyValuePair<string, SemanticValue> kv in _dictionary)
System.Text.Json (72)
System\Text\Json\Nodes\JsonObject.cs (10)
36public JsonObject(IEnumerable<KeyValuePair<string, JsonNode?>> properties, JsonNodeOptions? options = null) : this(options)
38int capacity = properties is ICollection<KeyValuePair<string, JsonNode?>> propertiesCollection ? propertiesCollection.Count : 0;
41foreach (KeyValuePair<string, JsonNode?> node in properties)
99foreach (KeyValuePair<string, JsonNode?> item in dictionary)
109KeyValuePair<string, JsonNode?>? item = FindValue(node);
199foreach (KeyValuePair<string, JsonNode?> entry in Dictionary)
235foreach (KeyValuePair<string, JsonNode?> item in currentDict)
323private KeyValuePair<string, JsonNode?>? FindValue(JsonNode? value)
325foreach (KeyValuePair<string, JsonNode?> item in Dictionary)
358foreach (KeyValuePair<string, JsonNode?> item in _node)
System\Text\Json\Nodes\JsonObject.IDictionary.cs (9)
86public void Add(KeyValuePair<string, JsonNode?> property) => Add(property.Key, property.Value);
161bool ICollection<KeyValuePair<string, JsonNode?>>.Contains(KeyValuePair<string, JsonNode?> item) =>
181void ICollection<KeyValuePair<string, JsonNode?>>.CopyTo(KeyValuePair<string, JsonNode?>[] array, int index) =>
190public IEnumerator<KeyValuePair<string, JsonNode?>> GetEnumerator() => Dictionary.GetEnumerator();
201bool ICollection<KeyValuePair<string, JsonNode?>>.Remove(KeyValuePair<string, JsonNode?> item) => Remove(item.Key);
237bool ICollection<KeyValuePair<string, JsonNode?>>.IsReadOnly => false;
System\Text\Json\Nodes\JsonObject.IList.cs (13)
9public partial class JsonObject : IList<KeyValuePair<string, JsonNode?>>
15public KeyValuePair<string, JsonNode?> GetAt(int index) => Dictionary.GetAt(index);
29KeyValuePair<string, JsonNode?> existing = dictionary.GetAt(index);
43KeyValuePair<string, JsonNode?> existing = dictionary.GetAt(index);
80KeyValuePair<string, JsonNode?> existing = Dictionary.GetAt(index);
86KeyValuePair<string, JsonNode?> IList<KeyValuePair<string, JsonNode?>>.this[int index]
93int IList<KeyValuePair<string, JsonNode?>>.IndexOf(KeyValuePair<string, JsonNode?> item) => ((IList<KeyValuePair<string, JsonNode?>>)Dictionary).IndexOf(item);
96void IList<KeyValuePair<string, JsonNode?>>.Insert(int index, KeyValuePair<string, JsonNode?> item) => Insert(index, item.Key, item.Value);
99void IList<KeyValuePair<string, JsonNode?>>.RemoveAt(int index) => RemoveAt(index);
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (6)
385public override Func<IEnumerable<KeyValuePair<TKey, TValue>>, TCollection> CreateImmutableDictionaryCreateRangeDelegate<TCollection, TKey, TValue>() =>
386CreateDelegate<Func<IEnumerable<KeyValuePair<TKey, TValue>>, TCollection>>(
387CreateImmutableDictionaryCreateRangeDelegate(typeof(TCollection), typeof(TKey), typeof(TValue), typeof(IEnumerable<KeyValuePair<TKey, TValue>>)));
612public override UnionTryGetValueAccessor<TUnion> CreateUnionTryGetValueAccessor<TUnion>(IReadOnlyList<KeyValuePair<Type, MethodInfo>> entries) =>
615private static DynamicMethod CreateUnionTryGetValueAccessor(Type unionType, IReadOnlyList<KeyValuePair<Type, MethodInfo>> entries)
637KeyValuePair<Type, MethodInfo> entry = entries[i];
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (5)
173public override Func<IEnumerable<KeyValuePair<TKey, TValue>>, TCollection> CreateImmutableDictionaryCreateRangeDelegate<TCollection, TKey, TValue>()
176return (Func<IEnumerable<KeyValuePair<TKey, TValue>>, TCollection>)createRange.CreateDelegate(
177typeof(Func<IEnumerable<KeyValuePair<TKey, TValue>>, TCollection>));
232public override UnionTryGetValueAccessor<TUnion> CreateUnionTryGetValueAccessor<TUnion>(IReadOnlyList<KeyValuePair<Type, MethodInfo>> entries)
243KeyValuePair<Type, MethodInfo> entry = entries[i];
System.Text.Json.SourceGeneration (10)
System.Text.RegularExpressions (18)
System.Text.RegularExpressions.Generator (6)
System.Threading.Channels (2)
System.Threading.RateLimiting (5)
System.Threading.Tasks.Dataflow (120)
Blocks\BatchBlock.cs (59)
274internal readonly KeyValuePair<ISourceBlock<T>, DataflowMessageHeader>[] PostponedMessagesTemp;
276internal readonly List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> ReservedSourcesTemp;
292PostponedMessagesTemp = new KeyValuePair<ISourceBlock<T>, DataflowMessageHeader>[batchSize];
293ReservedSourcesTemp = new List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>>(batchSize);
758KeyValuePair<ISourceBlock<T>, DataflowMessageHeader>[] postponedTemp = _nonGreedyState.PostponedMessagesTemp;
759List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
789KeyValuePair<ISourceBlock<T>, DataflowMessageHeader> sourceAndMessage = postponedTemp[i];
792var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
793var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
803KeyValuePair<ISourceBlock<T>, DataflowMessageHeader> sourceAndMessage;
810var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
811var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
876KeyValuePair<ISourceBlock<T>, DataflowMessageHeader>[] postponedTemp = _nonGreedyState.PostponedMessagesTemp;
877List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
906KeyValuePair<ISourceBlock<T>, DataflowMessageHeader> sourceAndMessage = postponedTemp[i];
907var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
908var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
917KeyValuePair<ISourceBlock<T>, DataflowMessageHeader> sourceAndMessage;
923var reservedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value, default(T)!);
924var reservedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, reservedMessage);
984List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
993KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage = reserved[i];
994reserved[i] = default(KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>); // in case of exception from ConsumeMessage
1002for (int prev = 0; prev < i; prev++) reserved[prev] = default(KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>);
1006var consumedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value.Key, consumedValue!);
1007var consumedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, consumedMessage);
1016foreach (KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage in reserved)
1036List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
1045KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage = reserved[i];
1046reserved[i] = default(KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>); // in case of exception from ConsumeMessage
1051var consumedMessage = new KeyValuePair<DataflowMessageHeader, T>(sourceAndMessage.Value.Key, consumedValue!);
1052var consumedSourceAndMessage = new KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>(sourceAndMessage.Key, consumedMessage);
1065foreach (KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage in reserved)
1088List<KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>> reserved = _nonGreedyState.ReservedSourcesTemp;
1091KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage = reserved[i];
1092reserved[i] = default(KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>);
1094KeyValuePair<DataflowMessageHeader, T> message = sourceAndMessage.Value;
Blocks\TransformBlock.cs (4)
171private void ProcessMessage(Func<TInput, TOutput> transform, KeyValuePair<TInput, long> messageWithId)
223private void ProcessMessageWithTask(Func<TInput, Task<TOutput>> transform, KeyValuePair<TInput, long> messageWithId)
259var tuple = (Tuple<TransformBlock<TInput, TOutput>, KeyValuePair<TInput, long>>)state!;
268private void AsyncCompleteProcessMessageWithTask(Task<TOutput> completed, KeyValuePair<TInput, long> messageWithId)
Blocks\TransformManyBlock.cs (6)
99Action<KeyValuePair<TInput, long>> processMessageAction,
170private void ProcessMessage(Func<TInput, IEnumerable<TOutput>> transformFunction, KeyValuePair<TInput, long> messageWithId)
195private void ProcessMessageWithTask(Func<TInput, Task<IEnumerable<TOutput>>> function, KeyValuePair<TInput, long> messageWithId)
242var tuple = (Tuple<TransformManyBlock<TInput, TOutput>, KeyValuePair<TInput, long>>)state!;
254Task<IEnumerable<TOutput>> completed, KeyValuePair<TInput, long> messageWithId)
310KeyValuePair<TInput, long> messageWithId, IEnumerable<TOutput>? outputItems)
Internal\QueuedMap.cs (9)
47private readonly List<KeyValuePair<int, T>> _storage;
58_storage = new List<KeyValuePair<int, T>>();
65_storage = new List<KeyValuePair<int, T>>(capacity);
153private readonly ArrayBasedLinkedQueue<KeyValuePair<TKey, TValue>> _queue;
161_queue = new ArrayBasedLinkedQueue<KeyValuePair<TKey, TValue>>();
169_queue = new ArrayBasedLinkedQueue<KeyValuePair<TKey, TValue>>(capacity);
195internal bool TryPop(out KeyValuePair<TKey, TValue> item)
207internal int PopRange(KeyValuePair<TKey, TValue>[] items, int arrayOffset, int count)
219KeyValuePair<TKey, TValue> item;
Internal\TargetCore.cs (22)
51private static readonly Common.KeepAlivePredicate<TargetCore<TInput>, KeyValuePair<TInput, long>> _keepAlivePredicate =
52(TargetCore<TInput> thisTargetCore, out KeyValuePair<TInput, long> messageWithId) =>
66private readonly IProducerConsumerQueue<KeyValuePair<TInput, long>> _messages;
70private readonly Action<KeyValuePair<TInput, long>> _callAction;
108Action<KeyValuePair<TInput, long>> callAction,
125(IProducerConsumerQueue<KeyValuePair<TInput, long>>)new SingleProducerSingleConsumerQueue<KeyValuePair<TInput, long>>() :
126(IProducerConsumerQueue<KeyValuePair<TInput, long>>)new MultiProducerMultiConsumerQueue<KeyValuePair<TInput, long>>();
161KeyValuePair<TInput, long> dummy;
400KeyValuePair<TInput, long> messageWithId = default(KeyValuePair<TInput, long>);
418KeyValuePair<TInput, long> transferMessageWithId;
521private bool TryGetNextMessageForNewAsyncOperation(out KeyValuePair<TInput, long> messageWithId)
536messageWithId = default(KeyValuePair<TInput, long>);
575private bool TryGetNextAvailableOrPostponedMessage(out KeyValuePair<TInput, long> messageWithId)
596messageWithId = default(KeyValuePair<TInput, long>);
613out KeyValuePair<TInput, long> result)
625KeyValuePair<ISourceBlock<TInput>, DataflowMessageHeader> element;
699result = default(KeyValuePair<TInput, long>);
771KeyValuePair<TInput, long> ignored;
772IProducerConsumerQueue<KeyValuePair<TInput, long>> messages = _messages;
System.Threading.Tasks.Parallel (4)
System.Windows.Forms (12)
System.Windows.Forms.Design (8)
System.Windows.Input.Manipulations (3)
System.Xaml (76)
System\Xaml\NameScope.cs (10)
100private IEnumerator<KeyValuePair<string, object>> GetEnumerator() => new Enumerator(_nameMap);
104IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator() => GetEnumerator();
112public void CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
126public bool Remove(KeyValuePair<string, object> item)
141public void Add(KeyValuePair<string, object> item)
156public bool Contains(KeyValuePair<string, object> item)
258private class Enumerator : IEnumerator<KeyValuePair<string, object>>
269public KeyValuePair<string, object> Current
275return default(KeyValuePair<string, object>);
System\Xaml\NameScopeDictionary.cs (17)
127private class Enumerator : IEnumerator<KeyValuePair<string, object>>
159public KeyValuePair<string, object> Current
175return default(KeyValuePair<string, object>);
224private IEnumerator<KeyValuePair<string, object>> GetEnumerator()
237IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator()
244int ICollection<KeyValuePair<string, object>>.Count
252bool ICollection<KeyValuePair<string, object>>.IsReadOnly
260void ICollection<KeyValuePair<string, object>>.Clear()
265void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
270bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item)
275void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> item)
280bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> item)
UnitTests.Common (3)
vbc (3)
VBCSCompiler (3)
vstest.console (3)
vstest.console.arm64 (3)
WindowsFormsIntegration (2)